chiark / gitweb /
1c6ebf35de4350230bdc6e3e5f986dd5fa4f6494
[adns.git] / configure
1 #! /bin/sh
2
3 # Guess values for system-dependent variables and create Makefiles.
4 # Generated automatically using autoconf version 2.12 
5 # Copyright (C) 1992, 93, 94, 95, 96 Free Software Foundation, Inc.
6 #
7 # This configure script is free software; the Free Software Foundation
8 # gives unlimited permission to copy, distribute and modify it.
9
10 # Defaults:
11 ac_help=
12 ac_default_prefix=/usr/local
13 # Any additions from configure.in:
14 ac_help="$ac_help
15   --disable-dynamic       use static linking
16   --enable-dynamic[=elf]  create and use ELF dynamic library (default)"
17
18 # Initialize some variables set by options.
19 # The variables have the same names as the options, with
20 # dashes changed to underlines.
21 build=NONE
22 cache_file=./config.cache
23 exec_prefix=NONE
24 host=NONE
25 no_create=
26 nonopt=NONE
27 no_recursion=
28 prefix=NONE
29 program_prefix=NONE
30 program_suffix=NONE
31 program_transform_name=s,x,x,
32 silent=
33 site=
34 srcdir=
35 target=NONE
36 verbose=
37 x_includes=NONE
38 x_libraries=NONE
39 bindir='${exec_prefix}/bin'
40 sbindir='${exec_prefix}/sbin'
41 libexecdir='${exec_prefix}/libexec'
42 datadir='${prefix}/share'
43 sysconfdir='${prefix}/etc'
44 sharedstatedir='${prefix}/com'
45 localstatedir='${prefix}/var'
46 libdir='${exec_prefix}/lib'
47 includedir='${prefix}/include'
48 oldincludedir='/usr/include'
49 infodir='${prefix}/info'
50 mandir='${prefix}/man'
51
52 # Initialize some other variables.
53 subdirs=
54 MFLAGS= MAKEFLAGS=
55 # Maximum number of lines to put in a shell here document.
56 ac_max_here_lines=12
57
58 ac_prev=
59 for ac_option
60 do
61
62   # If the previous option needs an argument, assign it.
63   if test -n "$ac_prev"; then
64     eval "$ac_prev=\$ac_option"
65     ac_prev=
66     continue
67   fi
68
69   case "$ac_option" in
70   -*=*) ac_optarg=`echo "$ac_option" | sed 's/[-_a-zA-Z0-9]*=//'` ;;
71   *) ac_optarg= ;;
72   esac
73
74   # Accept the important Cygnus configure options, so we can diagnose typos.
75
76   case "$ac_option" in
77
78   -bindir | --bindir | --bindi | --bind | --bin | --bi)
79     ac_prev=bindir ;;
80   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
81     bindir="$ac_optarg" ;;
82
83   -build | --build | --buil | --bui | --bu)
84     ac_prev=build ;;
85   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
86     build="$ac_optarg" ;;
87
88   -cache-file | --cache-file | --cache-fil | --cache-fi \
89   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
90     ac_prev=cache_file ;;
91   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
92   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
93     cache_file="$ac_optarg" ;;
94
95   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
96     ac_prev=datadir ;;
97   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
98   | --da=*)
99     datadir="$ac_optarg" ;;
100
101   -disable-* | --disable-*)
102     ac_feature=`echo $ac_option|sed -e 's/-*disable-//'`
103     # Reject names that are not valid shell variable names.
104     if test -n "`echo $ac_feature| sed 's/[-a-zA-Z0-9_]//g'`"; then
105       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
106     fi
107     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
108     eval "enable_${ac_feature}=no" ;;
109
110   -enable-* | --enable-*)
111     ac_feature=`echo $ac_option|sed -e 's/-*enable-//' -e 's/=.*//'`
112     # Reject names that are not valid shell variable names.
113     if test -n "`echo $ac_feature| sed 's/[-_a-zA-Z0-9]//g'`"; then
114       { echo "configure: error: $ac_feature: invalid feature name" 1>&2; exit 1; }
115     fi
116     ac_feature=`echo $ac_feature| sed 's/-/_/g'`
117     case "$ac_option" in
118       *=*) ;;
119       *) ac_optarg=yes ;;
120     esac
121     eval "enable_${ac_feature}='$ac_optarg'" ;;
122
123   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
124   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
125   | --exec | --exe | --ex)
126     ac_prev=exec_prefix ;;
127   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
128   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
129   | --exec=* | --exe=* | --ex=*)
130     exec_prefix="$ac_optarg" ;;
131
132   -gas | --gas | --ga | --g)
133     # Obsolete; use --with-gas.
134     with_gas=yes ;;
135
136   -help | --help | --hel | --he)
137     # Omit some internal or obsolete options to make the list less imposing.
138     # This message is too long to be a string in the A/UX 3.1 sh.
139     cat << EOF
140 Usage: configure [options] [host]
141 Options: [defaults in brackets after descriptions]
142 Configuration:
143   --cache-file=FILE       cache test results in FILE
144   --help                  print this message
145   --no-create             do not create output files
146   --quiet, --silent       do not print \`checking...' messages
147   --version               print the version of autoconf that created configure
148 Directory and file names:
149   --prefix=PREFIX         install architecture-independent files in PREFIX
150                           [$ac_default_prefix]
151   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
152                           [same as prefix]
153   --bindir=DIR            user executables in DIR [EPREFIX/bin]
154   --sbindir=DIR           system admin executables in DIR [EPREFIX/sbin]
155   --libexecdir=DIR        program executables in DIR [EPREFIX/libexec]
156   --datadir=DIR           read-only architecture-independent data in DIR
157                           [PREFIX/share]
158   --sysconfdir=DIR        read-only single-machine data in DIR [PREFIX/etc]
159   --sharedstatedir=DIR    modifiable architecture-independent data in DIR
160                           [PREFIX/com]
161   --localstatedir=DIR     modifiable single-machine data in DIR [PREFIX/var]
162   --libdir=DIR            object code libraries in DIR [EPREFIX/lib]
163   --includedir=DIR        C header files in DIR [PREFIX/include]
164   --oldincludedir=DIR     C header files for non-gcc in DIR [/usr/include]
165   --infodir=DIR           info documentation in DIR [PREFIX/info]
166   --mandir=DIR            man documentation in DIR [PREFIX/man]
167   --srcdir=DIR            find the sources in DIR [configure dir or ..]
168   --program-prefix=PREFIX prepend PREFIX to installed program names
169   --program-suffix=SUFFIX append SUFFIX to installed program names
170   --program-transform-name=PROGRAM
171                           run sed PROGRAM on installed program names
172 EOF
173     cat << EOF
174 Host type:
175   --build=BUILD           configure for building on BUILD [BUILD=HOST]
176   --host=HOST             configure for HOST [guessed]
177   --target=TARGET         configure for TARGET [TARGET=HOST]
178 Features and packages:
179   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
180   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
181   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
182   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
183   --x-includes=DIR        X include files are in DIR
184   --x-libraries=DIR       X library files are in DIR
185 EOF
186     if test -n "$ac_help"; then
187       echo "--enable and --with options recognized:$ac_help"
188     fi
189     exit 0 ;;
190
191   -host | --host | --hos | --ho)
192     ac_prev=host ;;
193   -host=* | --host=* | --hos=* | --ho=*)
194     host="$ac_optarg" ;;
195
196   -includedir | --includedir | --includedi | --included | --include \
197   | --includ | --inclu | --incl | --inc)
198     ac_prev=includedir ;;
199   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
200   | --includ=* | --inclu=* | --incl=* | --inc=*)
201     includedir="$ac_optarg" ;;
202
203   -infodir | --infodir | --infodi | --infod | --info | --inf)
204     ac_prev=infodir ;;
205   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
206     infodir="$ac_optarg" ;;
207
208   -libdir | --libdir | --libdi | --libd)
209     ac_prev=libdir ;;
210   -libdir=* | --libdir=* | --libdi=* | --libd=*)
211     libdir="$ac_optarg" ;;
212
213   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
214   | --libexe | --libex | --libe)
215     ac_prev=libexecdir ;;
216   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
217   | --libexe=* | --libex=* | --libe=*)
218     libexecdir="$ac_optarg" ;;
219
220   -localstatedir | --localstatedir | --localstatedi | --localstated \
221   | --localstate | --localstat | --localsta | --localst \
222   | --locals | --local | --loca | --loc | --lo)
223     ac_prev=localstatedir ;;
224   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
225   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
226   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
227     localstatedir="$ac_optarg" ;;
228
229   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
230     ac_prev=mandir ;;
231   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
232     mandir="$ac_optarg" ;;
233
234   -nfp | --nfp | --nf)
235     # Obsolete; use --without-fp.
236     with_fp=no ;;
237
238   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
239   | --no-cr | --no-c)
240     no_create=yes ;;
241
242   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
243   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
244     no_recursion=yes ;;
245
246   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
247   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
248   | --oldin | --oldi | --old | --ol | --o)
249     ac_prev=oldincludedir ;;
250   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
251   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
252   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
253     oldincludedir="$ac_optarg" ;;
254
255   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
256     ac_prev=prefix ;;
257   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
258     prefix="$ac_optarg" ;;
259
260   -program-prefix | --program-prefix | --program-prefi | --program-pref \
261   | --program-pre | --program-pr | --program-p)
262     ac_prev=program_prefix ;;
263   -program-prefix=* | --program-prefix=* | --program-prefi=* \
264   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
265     program_prefix="$ac_optarg" ;;
266
267   -program-suffix | --program-suffix | --program-suffi | --program-suff \
268   | --program-suf | --program-su | --program-s)
269     ac_prev=program_suffix ;;
270   -program-suffix=* | --program-suffix=* | --program-suffi=* \
271   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
272     program_suffix="$ac_optarg" ;;
273
274   -program-transform-name | --program-transform-name \
275   | --program-transform-nam | --program-transform-na \
276   | --program-transform-n | --program-transform- \
277   | --program-transform | --program-transfor \
278   | --program-transfo | --program-transf \
279   | --program-trans | --program-tran \
280   | --progr-tra | --program-tr | --program-t)
281     ac_prev=program_transform_name ;;
282   -program-transform-name=* | --program-transform-name=* \
283   | --program-transform-nam=* | --program-transform-na=* \
284   | --program-transform-n=* | --program-transform-=* \
285   | --program-transform=* | --program-transfor=* \
286   | --program-transfo=* | --program-transf=* \
287   | --program-trans=* | --program-tran=* \
288   | --progr-tra=* | --program-tr=* | --program-t=*)
289     program_transform_name="$ac_optarg" ;;
290
291   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
292   | -silent | --silent | --silen | --sile | --sil)
293     silent=yes ;;
294
295   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
296     ac_prev=sbindir ;;
297   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
298   | --sbi=* | --sb=*)
299     sbindir="$ac_optarg" ;;
300
301   -sharedstatedir | --sharedstatedir | --sharedstatedi \
302   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
303   | --sharedst | --shareds | --shared | --share | --shar \
304   | --sha | --sh)
305     ac_prev=sharedstatedir ;;
306   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
307   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
308   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
309   | --sha=* | --sh=*)
310     sharedstatedir="$ac_optarg" ;;
311
312   -site | --site | --sit)
313     ac_prev=site ;;
314   -site=* | --site=* | --sit=*)
315     site="$ac_optarg" ;;
316
317   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
318     ac_prev=srcdir ;;
319   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
320     srcdir="$ac_optarg" ;;
321
322   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
323   | --syscon | --sysco | --sysc | --sys | --sy)
324     ac_prev=sysconfdir ;;
325   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
326   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
327     sysconfdir="$ac_optarg" ;;
328
329   -target | --target | --targe | --targ | --tar | --ta | --t)
330     ac_prev=target ;;
331   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
332     target="$ac_optarg" ;;
333
334   -v | -verbose | --verbose | --verbos | --verbo | --verb)
335     verbose=yes ;;
336
337   -version | --version | --versio | --versi | --vers)
338     echo "configure generated by autoconf version 2.12"
339     exit 0 ;;
340
341   -with-* | --with-*)
342     ac_package=`echo $ac_option|sed -e 's/-*with-//' -e 's/=.*//'`
343     # Reject names that are not valid shell variable names.
344     if test -n "`echo $ac_package| sed 's/[-_a-zA-Z0-9]//g'`"; then
345       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
346     fi
347     ac_package=`echo $ac_package| sed 's/-/_/g'`
348     case "$ac_option" in
349       *=*) ;;
350       *) ac_optarg=yes ;;
351     esac
352     eval "with_${ac_package}='$ac_optarg'" ;;
353
354   -without-* | --without-*)
355     ac_package=`echo $ac_option|sed -e 's/-*without-//'`
356     # Reject names that are not valid shell variable names.
357     if test -n "`echo $ac_package| sed 's/[-a-zA-Z0-9_]//g'`"; then
358       { echo "configure: error: $ac_package: invalid package name" 1>&2; exit 1; }
359     fi
360     ac_package=`echo $ac_package| sed 's/-/_/g'`
361     eval "with_${ac_package}=no" ;;
362
363   --x)
364     # Obsolete; use --with-x.
365     with_x=yes ;;
366
367   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
368   | --x-incl | --x-inc | --x-in | --x-i)
369     ac_prev=x_includes ;;
370   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
371   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
372     x_includes="$ac_optarg" ;;
373
374   -x-libraries | --x-libraries | --x-librarie | --x-librari \
375   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
376     ac_prev=x_libraries ;;
377   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
378   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
379     x_libraries="$ac_optarg" ;;
380
381   -*) { echo "configure: error: $ac_option: invalid option; use --help to show usage" 1>&2; exit 1; }
382     ;;
383
384   *)
385     if test -n "`echo $ac_option| sed 's/[-a-z0-9.]//g'`"; then
386       echo "configure: warning: $ac_option: invalid host type" 1>&2
387     fi
388     if test "x$nonopt" != xNONE; then
389       { echo "configure: error: can only configure for one host and one target at a time" 1>&2; exit 1; }
390     fi
391     nonopt="$ac_option"
392     ;;
393
394   esac
395 done
396
397 if test -n "$ac_prev"; then
398   { echo "configure: error: missing argument to --`echo $ac_prev | sed 's/_/-/g'`" 1>&2; exit 1; }
399 fi
400
401 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
402
403 # File descriptor usage:
404 # 0 standard input
405 # 1 file creation
406 # 2 errors and warnings
407 # 3 some systems may open it to /dev/tty
408 # 4 used on the Kubota Titan
409 # 6 checking for... messages and results
410 # 5 compiler messages saved in config.log
411 if test "$silent" = yes; then
412   exec 6>/dev/null
413 else
414   exec 6>&1
415 fi
416 exec 5>./config.log
417
418 echo "\
419 This file contains any messages produced by compilers while
420 running configure, to aid debugging if configure makes a mistake.
421 " 1>&5
422
423 # Strip out --no-create and --no-recursion so they do not pile up.
424 # Also quote any args containing shell metacharacters.
425 ac_configure_args=
426 for ac_arg
427 do
428   case "$ac_arg" in
429   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
430   | --no-cr | --no-c) ;;
431   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
432   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) ;;
433   *" "*|*"      "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?]*)
434   ac_configure_args="$ac_configure_args '$ac_arg'" ;;
435   *) ac_configure_args="$ac_configure_args $ac_arg" ;;
436   esac
437 done
438
439 # NLS nuisances.
440 # Only set these to C if already set.  These must not be set unconditionally
441 # because not all systems understand e.g. LANG=C (notably SCO).
442 # Fixing LC_MESSAGES prevents Solaris sh from translating var values in `set'!
443 # Non-C LC_CTYPE values break the ctype check.
444 if test "${LANG+set}"   = set; then LANG=C;   export LANG;   fi
445 if test "${LC_ALL+set}" = set; then LC_ALL=C; export LC_ALL; fi
446 if test "${LC_MESSAGES+set}" = set; then LC_MESSAGES=C; export LC_MESSAGES; fi
447 if test "${LC_CTYPE+set}"    = set; then LC_CTYPE=C;    export LC_CTYPE;    fi
448
449 # confdefs.h avoids OS command line length limits that DEFS can exceed.
450 rm -rf conftest* confdefs.h
451 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
452 echo > confdefs.h
453
454 # A filename unique to this package, relative to the directory that
455 # configure is in, which we can look for to find out if srcdir is correct.
456 ac_unique_file=src/adns.h
457
458 # Find the source files, if location was not specified.
459 if test -z "$srcdir"; then
460   ac_srcdir_defaulted=yes
461   # Try the directory containing this script, then its parent.
462   ac_prog=$0
463   ac_confdir=`echo $ac_prog|sed 's%/[^/][^/]*$%%'`
464   test "x$ac_confdir" = "x$ac_prog" && ac_confdir=.
465   srcdir=$ac_confdir
466   if test ! -r $srcdir/$ac_unique_file; then
467     srcdir=..
468   fi
469 else
470   ac_srcdir_defaulted=no
471 fi
472 if test ! -r $srcdir/$ac_unique_file; then
473   if test "$ac_srcdir_defaulted" = yes; then
474     { echo "configure: error: can not find sources in $ac_confdir or .." 1>&2; exit 1; }
475   else
476     { echo "configure: error: can not find sources in $srcdir" 1>&2; exit 1; }
477   fi
478 fi
479 srcdir=`echo "${srcdir}" | sed 's%\([^/]\)/*$%\1%'`
480
481 # Prefer explicitly selected file to automatically selected ones.
482 if test -z "$CONFIG_SITE"; then
483   if test "x$prefix" != xNONE; then
484     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
485   else
486     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
487   fi
488 fi
489 for ac_site_file in $CONFIG_SITE; do
490   if test -r "$ac_site_file"; then
491     echo "loading site script $ac_site_file"
492     . "$ac_site_file"
493   fi
494 done
495
496 if test -r "$cache_file"; then
497   echo "loading cache $cache_file"
498   . $cache_file
499 else
500   echo "creating cache $cache_file"
501   > $cache_file
502 fi
503
504 ac_ext=c
505 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
506 ac_cpp='$CPP $CPPFLAGS'
507 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
508 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
509 cross_compiling=$ac_cv_prog_cc_cross
510
511 if (echo "testing\c"; echo 1,2,3) | grep c >/dev/null; then
512   # Stardent Vistra SVR4 grep lacks -e, says ghazi@caip.rutgers.edu.
513   if (echo -n testing; echo 1,2,3) | sed s/-n/xn/ | grep xn >/dev/null; then
514     ac_n= ac_c='
515 ' ac_t='        '
516   else
517     ac_n=-n ac_c= ac_t=
518   fi
519 else
520   ac_n= ac_c='\c' ac_t=
521 fi
522
523
524
525
526 echo $ac_n "checking whether you requested dynamic linking""... $ac_c" 1>&6
527 echo "configure:528: checking whether you requested dynamic linking" >&5
528
529 # Check whether --enable-dynamic or --disable-dynamic was given.
530 if test "${enable_dynamic+set}" = set; then
531   enableval="$enable_dynamic"
532         case "$enableval" in
533         elf|yes)
534                 ENABLE_DYNAMIC=elf
535                 echo "$ac_t""yes (ELF)" 1>&6
536                 ;;
537         no)     ENABLE_DYNAMIC=no
538                 echo "$ac_t""no" 1>&6
539                 ;;
540         *)      { echo "configure: error: "invalid value $enableval for --enable-dynamic, try yes or elf"" 1>&2; exit 1; }
541                 ;;
542         esac
543
544 else
545   
546                 ENABLE_DYNAMIC=yes
547                 echo "$ac_t""yes, by default" 1>&6
548
549 fi
550
551
552 # Extract the first word of "gcc", so it can be a program name with args.
553 set dummy gcc; ac_word=$2
554 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
555 echo "configure:556: checking for $ac_word" >&5
556 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
557   echo $ac_n "(cached) $ac_c" 1>&6
558 else
559   if test -n "$CC"; then
560   ac_cv_prog_CC="$CC" # Let the user override the test.
561 else
562   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
563   for ac_dir in $PATH; do
564     test -z "$ac_dir" && ac_dir=.
565     if test -f $ac_dir/$ac_word; then
566       ac_cv_prog_CC="gcc"
567       break
568     fi
569   done
570   IFS="$ac_save_ifs"
571 fi
572 fi
573 CC="$ac_cv_prog_CC"
574 if test -n "$CC"; then
575   echo "$ac_t""$CC" 1>&6
576 else
577   echo "$ac_t""no" 1>&6
578 fi
579
580 if test -z "$CC"; then
581   # Extract the first word of "cc", so it can be a program name with args.
582 set dummy cc; ac_word=$2
583 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
584 echo "configure:585: checking for $ac_word" >&5
585 if eval "test \"`echo '$''{'ac_cv_prog_CC'+set}'`\" = set"; then
586   echo $ac_n "(cached) $ac_c" 1>&6
587 else
588   if test -n "$CC"; then
589   ac_cv_prog_CC="$CC" # Let the user override the test.
590 else
591   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
592   ac_prog_rejected=no
593   for ac_dir in $PATH; do
594     test -z "$ac_dir" && ac_dir=.
595     if test -f $ac_dir/$ac_word; then
596       if test "$ac_dir/$ac_word" = "/usr/ucb/cc"; then
597         ac_prog_rejected=yes
598         continue
599       fi
600       ac_cv_prog_CC="cc"
601       break
602     fi
603   done
604   IFS="$ac_save_ifs"
605 if test $ac_prog_rejected = yes; then
606   # We found a bogon in the path, so make sure we never use it.
607   set dummy $ac_cv_prog_CC
608   shift
609   if test $# -gt 0; then
610     # We chose a different compiler from the bogus one.
611     # However, it has the same basename, so the bogon will be chosen
612     # first if we set CC to just the basename; use the full file name.
613     shift
614     set dummy "$ac_dir/$ac_word" "$@"
615     shift
616     ac_cv_prog_CC="$@"
617   fi
618 fi
619 fi
620 fi
621 CC="$ac_cv_prog_CC"
622 if test -n "$CC"; then
623   echo "$ac_t""$CC" 1>&6
624 else
625   echo "$ac_t""no" 1>&6
626 fi
627
628   test -z "$CC" && { echo "configure: error: no acceptable cc found in \$PATH" 1>&2; exit 1; }
629 fi
630
631 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works""... $ac_c" 1>&6
632 echo "configure:633: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) works" >&5
633
634 ac_ext=c
635 # CFLAGS is not in ac_cpp because -g, -O, etc. are not valid cpp options.
636 ac_cpp='$CPP $CPPFLAGS'
637 ac_compile='${CC-cc} -c $CFLAGS $CPPFLAGS conftest.$ac_ext 1>&5'
638 ac_link='${CC-cc} -o conftest $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS 1>&5'
639 cross_compiling=$ac_cv_prog_cc_cross
640
641 cat > conftest.$ac_ext <<EOF
642 #line 643 "configure"
643 #include "confdefs.h"
644 main(){return(0);}
645 EOF
646 if { (eval echo configure:647: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
647   ac_cv_prog_cc_works=yes
648   # If we can't run a trivial program, we are probably using a cross compiler.
649   if (./conftest; exit) 2>/dev/null; then
650     ac_cv_prog_cc_cross=no
651   else
652     ac_cv_prog_cc_cross=yes
653   fi
654 else
655   echo "configure: failed program was:" >&5
656   cat conftest.$ac_ext >&5
657   ac_cv_prog_cc_works=no
658 fi
659 rm -fr conftest*
660
661 echo "$ac_t""$ac_cv_prog_cc_works" 1>&6
662 if test $ac_cv_prog_cc_works = no; then
663   { echo "configure: error: installation or configuration problem: C compiler cannot create executables." 1>&2; exit 1; }
664 fi
665 echo $ac_n "checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler""... $ac_c" 1>&6
666 echo "configure:667: checking whether the C compiler ($CC $CFLAGS $LDFLAGS) is a cross-compiler" >&5
667 echo "$ac_t""$ac_cv_prog_cc_cross" 1>&6
668 cross_compiling=$ac_cv_prog_cc_cross
669
670 echo $ac_n "checking whether we are using GNU C""... $ac_c" 1>&6
671 echo "configure:672: checking whether we are using GNU C" >&5
672 if eval "test \"`echo '$''{'ac_cv_prog_gcc'+set}'`\" = set"; then
673   echo $ac_n "(cached) $ac_c" 1>&6
674 else
675   cat > conftest.c <<EOF
676 #ifdef __GNUC__
677   yes;
678 #endif
679 EOF
680 if { ac_try='${CC-cc} -E conftest.c'; { (eval echo configure:681: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }; } | egrep yes >/dev/null 2>&1; then
681   ac_cv_prog_gcc=yes
682 else
683   ac_cv_prog_gcc=no
684 fi
685 fi
686
687 echo "$ac_t""$ac_cv_prog_gcc" 1>&6
688
689 if test $ac_cv_prog_gcc = yes; then
690   GCC=yes
691   ac_test_CFLAGS="${CFLAGS+set}"
692   ac_save_CFLAGS="$CFLAGS"
693   CFLAGS=
694   echo $ac_n "checking whether ${CC-cc} accepts -g""... $ac_c" 1>&6
695 echo "configure:696: checking whether ${CC-cc} accepts -g" >&5
696 if eval "test \"`echo '$''{'ac_cv_prog_cc_g'+set}'`\" = set"; then
697   echo $ac_n "(cached) $ac_c" 1>&6
698 else
699   echo 'void f(){}' > conftest.c
700 if test -z "`${CC-cc} -g -c conftest.c 2>&1`"; then
701   ac_cv_prog_cc_g=yes
702 else
703   ac_cv_prog_cc_g=no
704 fi
705 rm -f conftest*
706
707 fi
708
709 echo "$ac_t""$ac_cv_prog_cc_g" 1>&6
710   if test "$ac_test_CFLAGS" = set; then
711     CFLAGS="$ac_save_CFLAGS"
712   elif test $ac_cv_prog_cc_g = yes; then
713     CFLAGS="-g -O2"
714   else
715     CFLAGS="-O2"
716   fi
717 else
718   GCC=
719   test "${CFLAGS+set}" = set || CFLAGS="-g"
720 fi
721
722 echo $ac_n "checking how to run the C preprocessor""... $ac_c" 1>&6
723 echo "configure:724: checking how to run the C preprocessor" >&5
724 # On Suns, sometimes $CPP names a directory.
725 if test -n "$CPP" && test -d "$CPP"; then
726   CPP=
727 fi
728 if test -z "$CPP"; then
729 if eval "test \"`echo '$''{'ac_cv_prog_CPP'+set}'`\" = set"; then
730   echo $ac_n "(cached) $ac_c" 1>&6
731 else
732     # This must be in double quotes, not single quotes, because CPP may get
733   # substituted into the Makefile and "${CC-cc}" will confuse make.
734   CPP="${CC-cc} -E"
735   # On the NeXT, cc -E runs the code through the compiler's parser,
736   # not just through cpp.
737   cat > conftest.$ac_ext <<EOF
738 #line 739 "configure"
739 #include "confdefs.h"
740 #include <assert.h>
741 Syntax Error
742 EOF
743 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
744 { (eval echo configure:745: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
745 ac_err=`grep -v '^ *+' conftest.out`
746 if test -z "$ac_err"; then
747   :
748 else
749   echo "$ac_err" >&5
750   echo "configure: failed program was:" >&5
751   cat conftest.$ac_ext >&5
752   rm -rf conftest*
753   CPP="${CC-cc} -E -traditional-cpp"
754   cat > conftest.$ac_ext <<EOF
755 #line 756 "configure"
756 #include "confdefs.h"
757 #include <assert.h>
758 Syntax Error
759 EOF
760 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
761 { (eval echo configure:762: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
762 ac_err=`grep -v '^ *+' conftest.out`
763 if test -z "$ac_err"; then
764   :
765 else
766   echo "$ac_err" >&5
767   echo "configure: failed program was:" >&5
768   cat conftest.$ac_ext >&5
769   rm -rf conftest*
770   CPP=/lib/cpp
771 fi
772 rm -f conftest*
773 fi
774 rm -f conftest*
775   ac_cv_prog_CPP="$CPP"
776 fi
777   CPP="$ac_cv_prog_CPP"
778 else
779   ac_cv_prog_CPP="$CPP"
780 fi
781 echo "$ac_t""$CPP" 1>&6
782
783 # Extract the first word of "ranlib", so it can be a program name with args.
784 set dummy ranlib; ac_word=$2
785 echo $ac_n "checking for $ac_word""... $ac_c" 1>&6
786 echo "configure:787: checking for $ac_word" >&5
787 if eval "test \"`echo '$''{'ac_cv_prog_RANLIB'+set}'`\" = set"; then
788   echo $ac_n "(cached) $ac_c" 1>&6
789 else
790   if test -n "$RANLIB"; then
791   ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
792 else
793   IFS="${IFS=   }"; ac_save_ifs="$IFS"; IFS="${IFS}:"
794   for ac_dir in $PATH; do
795     test -z "$ac_dir" && ac_dir=.
796     if test -f $ac_dir/$ac_word; then
797       ac_cv_prog_RANLIB="ranlib"
798       break
799     fi
800   done
801   IFS="$ac_save_ifs"
802   test -z "$ac_cv_prog_RANLIB" && ac_cv_prog_RANLIB=":"
803 fi
804 fi
805 RANLIB="$ac_cv_prog_RANLIB"
806 if test -n "$RANLIB"; then
807   echo "$ac_t""$RANLIB" 1>&6
808 else
809   echo "$ac_t""no" 1>&6
810 fi
811
812 ac_aux_dir=
813 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
814   if test -f $ac_dir/install-sh; then
815     ac_aux_dir=$ac_dir
816     ac_install_sh="$ac_aux_dir/install-sh -c"
817     break
818   elif test -f $ac_dir/install.sh; then
819     ac_aux_dir=$ac_dir
820     ac_install_sh="$ac_aux_dir/install.sh -c"
821     break
822   fi
823 done
824 if test -z "$ac_aux_dir"; then
825   { echo "configure: error: can not find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." 1>&2; exit 1; }
826 fi
827 ac_config_guess=$ac_aux_dir/config.guess
828 ac_config_sub=$ac_aux_dir/config.sub
829 ac_configure=$ac_aux_dir/configure # This should be Cygnus configure.
830
831 # Find a good install program.  We prefer a C program (faster),
832 # so one script is as good as another.  But avoid the broken or
833 # incompatible versions:
834 # SysV /etc/install, /usr/sbin/install
835 # SunOS /usr/etc/install
836 # IRIX /sbin/install
837 # AIX /bin/install
838 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
839 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
840 # ./install, which can be erroneously created by make from ./install.sh.
841 echo $ac_n "checking for a BSD compatible install""... $ac_c" 1>&6
842 echo "configure:843: checking for a BSD compatible install" >&5
843 if test -z "$INSTALL"; then
844 if eval "test \"`echo '$''{'ac_cv_path_install'+set}'`\" = set"; then
845   echo $ac_n "(cached) $ac_c" 1>&6
846 else
847     IFS="${IFS=         }"; ac_save_IFS="$IFS"; IFS="${IFS}:"
848   for ac_dir in $PATH; do
849     # Account for people who put trailing slashes in PATH elements.
850     case "$ac_dir/" in
851     /|./|.//|/etc/*|/usr/sbin/*|/usr/etc/*|/sbin/*|/usr/afsws/bin/*|/usr/ucb/*) ;;
852     *)
853       # OSF1 and SCO ODT 3.0 have their own names for install.
854       for ac_prog in ginstall installbsd scoinst install; do
855         if test -f $ac_dir/$ac_prog; then
856           if test $ac_prog = install &&
857             grep dspmsg $ac_dir/$ac_prog >/dev/null 2>&1; then
858             # AIX install.  It has an incompatible calling convention.
859             # OSF/1 installbsd also uses dspmsg, but is usable.
860             :
861           else
862             ac_cv_path_install="$ac_dir/$ac_prog -c"
863             break 2
864           fi
865         fi
866       done
867       ;;
868     esac
869   done
870   IFS="$ac_save_IFS"
871
872 fi
873   if test "${ac_cv_path_install+set}" = set; then
874     INSTALL="$ac_cv_path_install"
875   else
876     # As a last resort, use the slow shell script.  We don't cache a
877     # path for INSTALL within a source directory, because that will
878     # break other packages using the cache if that directory is
879     # removed, or if the path is relative.
880     INSTALL="$ac_install_sh"
881   fi
882 fi
883 echo "$ac_t""$INSTALL" 1>&6
884
885 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
886 # It thinks the first close brace ends the variable substitution.
887 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
888
889 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
890
891
892 for ac_func in poll
893 do
894 echo $ac_n "checking for $ac_func""... $ac_c" 1>&6
895 echo "configure:896: checking for $ac_func" >&5
896 if eval "test \"`echo '$''{'ac_cv_func_$ac_func'+set}'`\" = set"; then
897   echo $ac_n "(cached) $ac_c" 1>&6
898 else
899   cat > conftest.$ac_ext <<EOF
900 #line 901 "configure"
901 #include "confdefs.h"
902 /* System header to define __stub macros and hopefully few prototypes,
903     which can conflict with char $ac_func(); below.  */
904 #include <assert.h>
905 /* Override any gcc2 internal prototype to avoid an error.  */
906 /* We use char because int might match the return type of a gcc2
907     builtin and then its argument prototype would still apply.  */
908 char $ac_func();
909
910 int main() {
911
912 /* The GNU C library defines this for functions which it implements
913     to always fail with ENOSYS.  Some functions are actually named
914     something starting with __ and the normal name is an alias.  */
915 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
916 choke me
917 #else
918 $ac_func();
919 #endif
920
921 ; return 0; }
922 EOF
923 if { (eval echo configure:924: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
924   rm -rf conftest*
925   eval "ac_cv_func_$ac_func=yes"
926 else
927   echo "configure: failed program was:" >&5
928   cat conftest.$ac_ext >&5
929   rm -rf conftest*
930   eval "ac_cv_func_$ac_func=no"
931 fi
932 rm -f conftest*
933 fi
934
935 if eval "test \"`echo '$ac_cv_func_'$ac_func`\" = yes"; then
936   echo "$ac_t""yes" 1>&6
937     ac_tr_func=HAVE_`echo $ac_func | tr 'abcdefghijklmnopqrstuvwxyz' 'ABCDEFGHIJKLMNOPQRSTUVWXYZ'`
938   cat >> confdefs.h <<EOF
939 #define $ac_tr_func 1
940 EOF
941  
942 else
943   echo "$ac_t""no" 1>&6
944 fi
945 done
946
947
948  echo $ac_n "checking for socket""... $ac_c" 1>&6
949 echo "configure:950: checking for socket" >&5
950 if eval "test \"`echo '$''{'ac_cv_func_socket'+set}'`\" = set"; then
951   echo $ac_n "(cached) $ac_c" 1>&6
952 else
953   cat > conftest.$ac_ext <<EOF
954 #line 955 "configure"
955 #include "confdefs.h"
956 /* System header to define __stub macros and hopefully few prototypes,
957     which can conflict with char socket(); below.  */
958 #include <assert.h>
959 /* Override any gcc2 internal prototype to avoid an error.  */
960 /* We use char because int might match the return type of a gcc2
961     builtin and then its argument prototype would still apply.  */
962 char socket();
963
964 int main() {
965
966 /* The GNU C library defines this for functions which it implements
967     to always fail with ENOSYS.  Some functions are actually named
968     something starting with __ and the normal name is an alias.  */
969 #if defined (__stub_socket) || defined (__stub___socket)
970 choke me
971 #else
972 socket();
973 #endif
974
975 ; return 0; }
976 EOF
977 if { (eval echo configure:978: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
978   rm -rf conftest*
979   eval "ac_cv_func_socket=yes"
980 else
981   echo "configure: failed program was:" >&5
982   cat conftest.$ac_ext >&5
983   rm -rf conftest*
984   eval "ac_cv_func_socket=no"
985 fi
986 rm -f conftest*
987 fi
988
989 if eval "test \"`echo '$ac_cv_func_'socket`\" = yes"; then
990   echo "$ac_t""yes" 1>&6
991   :
992 else
993   echo "$ac_t""no" 1>&6
994
995   echo $ac_n "checking for socket in -lsocket""... $ac_c" 1>&6
996 echo "configure:997: checking for socket in -lsocket" >&5
997 ac_lib_var=`echo socket'_'socket | sed 'y%./+-%__p_%'`
998 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
999   echo $ac_n "(cached) $ac_c" 1>&6
1000 else
1001   ac_save_LIBS="$LIBS"
1002 LIBS="-lsocket  $LIBS"
1003 cat > conftest.$ac_ext <<EOF
1004 #line 1005 "configure"
1005 #include "confdefs.h"
1006 /* Override any gcc2 internal prototype to avoid an error.  */
1007 /* We use char because int might match the return type of a gcc2
1008     builtin and then its argument prototype would still apply.  */
1009 char socket();
1010
1011 int main() {
1012 socket()
1013 ; return 0; }
1014 EOF
1015 if { (eval echo configure:1016: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1016   rm -rf conftest*
1017   eval "ac_cv_lib_$ac_lib_var=yes"
1018 else
1019   echo "configure: failed program was:" >&5
1020   cat conftest.$ac_ext >&5
1021   rm -rf conftest*
1022   eval "ac_cv_lib_$ac_lib_var=no"
1023 fi
1024 rm -f conftest*
1025 LIBS="$ac_save_LIBS"
1026
1027 fi
1028 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1029   echo "$ac_t""yes" 1>&6
1030     ac_tr_lib=HAVE_LIB`echo socket | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1031     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1032   cat >> confdefs.h <<EOF
1033 #define $ac_tr_lib 1
1034 EOF
1035
1036   LIBS="-lsocket $LIBS"
1037
1038 else
1039   echo "$ac_t""no" 1>&6
1040
1041     { echo "configure: error: cannot find library function socket" 1>&2; exit 1; }
1042   
1043 fi
1044
1045  
1046 fi
1047
1048
1049
1050  echo $ac_n "checking for inet_ntoa""... $ac_c" 1>&6
1051 echo "configure:1052: checking for inet_ntoa" >&5
1052 if eval "test \"`echo '$''{'ac_cv_func_inet_ntoa'+set}'`\" = set"; then
1053   echo $ac_n "(cached) $ac_c" 1>&6
1054 else
1055   cat > conftest.$ac_ext <<EOF
1056 #line 1057 "configure"
1057 #include "confdefs.h"
1058 /* System header to define __stub macros and hopefully few prototypes,
1059     which can conflict with char inet_ntoa(); below.  */
1060 #include <assert.h>
1061 /* Override any gcc2 internal prototype to avoid an error.  */
1062 /* We use char because int might match the return type of a gcc2
1063     builtin and then its argument prototype would still apply.  */
1064 char inet_ntoa();
1065
1066 int main() {
1067
1068 /* The GNU C library defines this for functions which it implements
1069     to always fail with ENOSYS.  Some functions are actually named
1070     something starting with __ and the normal name is an alias.  */
1071 #if defined (__stub_inet_ntoa) || defined (__stub___inet_ntoa)
1072 choke me
1073 #else
1074 inet_ntoa();
1075 #endif
1076
1077 ; return 0; }
1078 EOF
1079 if { (eval echo configure:1080: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1080   rm -rf conftest*
1081   eval "ac_cv_func_inet_ntoa=yes"
1082 else
1083   echo "configure: failed program was:" >&5
1084   cat conftest.$ac_ext >&5
1085   rm -rf conftest*
1086   eval "ac_cv_func_inet_ntoa=no"
1087 fi
1088 rm -f conftest*
1089 fi
1090
1091 if eval "test \"`echo '$ac_cv_func_'inet_ntoa`\" = yes"; then
1092   echo "$ac_t""yes" 1>&6
1093   :
1094 else
1095   echo "$ac_t""no" 1>&6
1096
1097   echo $ac_n "checking for inet_ntoa in -lnsl""... $ac_c" 1>&6
1098 echo "configure:1099: checking for inet_ntoa in -lnsl" >&5
1099 ac_lib_var=`echo nsl'_'inet_ntoa | sed 'y%./+-%__p_%'`
1100 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1101   echo $ac_n "(cached) $ac_c" 1>&6
1102 else
1103   ac_save_LIBS="$LIBS"
1104 LIBS="-lnsl  $LIBS"
1105 cat > conftest.$ac_ext <<EOF
1106 #line 1107 "configure"
1107 #include "confdefs.h"
1108 /* Override any gcc2 internal prototype to avoid an error.  */
1109 /* We use char because int might match the return type of a gcc2
1110     builtin and then its argument prototype would still apply.  */
1111 char inet_ntoa();
1112
1113 int main() {
1114 inet_ntoa()
1115 ; return 0; }
1116 EOF
1117 if { (eval echo configure:1118: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1118   rm -rf conftest*
1119   eval "ac_cv_lib_$ac_lib_var=yes"
1120 else
1121   echo "configure: failed program was:" >&5
1122   cat conftest.$ac_ext >&5
1123   rm -rf conftest*
1124   eval "ac_cv_lib_$ac_lib_var=no"
1125 fi
1126 rm -f conftest*
1127 LIBS="$ac_save_LIBS"
1128
1129 fi
1130 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1131   echo "$ac_t""yes" 1>&6
1132     ac_tr_lib=HAVE_LIB`echo nsl | sed -e 's/[^a-zA-Z0-9_]/_/g' \
1133     -e 'y/abcdefghijklmnopqrstuvwxyz/ABCDEFGHIJKLMNOPQRSTUVWXYZ/'`
1134   cat >> confdefs.h <<EOF
1135 #define $ac_tr_lib 1
1136 EOF
1137
1138   LIBS="-lnsl $LIBS"
1139
1140 else
1141   echo "$ac_t""no" 1>&6
1142
1143     { echo "configure: error: cannot find library function inet_ntoa" 1>&2; exit 1; }
1144   
1145 fi
1146
1147  
1148 fi
1149
1150
1151
1152 PROGS_IF_TSEARCH=adnsresfilter
1153
1154 echo $ac_n "checking for tsearch""... $ac_c" 1>&6
1155 echo "configure:1156: checking for tsearch" >&5
1156 if eval "test \"`echo '$''{'ac_cv_func_tsearch'+set}'`\" = set"; then
1157   echo $ac_n "(cached) $ac_c" 1>&6
1158 else
1159   cat > conftest.$ac_ext <<EOF
1160 #line 1161 "configure"
1161 #include "confdefs.h"
1162 /* System header to define __stub macros and hopefully few prototypes,
1163     which can conflict with char tsearch(); below.  */
1164 #include <assert.h>
1165 /* Override any gcc2 internal prototype to avoid an error.  */
1166 /* We use char because int might match the return type of a gcc2
1167     builtin and then its argument prototype would still apply.  */
1168 char tsearch();
1169
1170 int main() {
1171
1172 /* The GNU C library defines this for functions which it implements
1173     to always fail with ENOSYS.  Some functions are actually named
1174     something starting with __ and the normal name is an alias.  */
1175 #if defined (__stub_tsearch) || defined (__stub___tsearch)
1176 choke me
1177 #else
1178 tsearch();
1179 #endif
1180
1181 ; return 0; }
1182 EOF
1183 if { (eval echo configure:1184: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1184   rm -rf conftest*
1185   eval "ac_cv_func_tsearch=yes"
1186 else
1187   echo "configure: failed program was:" >&5
1188   cat conftest.$ac_ext >&5
1189   rm -rf conftest*
1190   eval "ac_cv_func_tsearch=no"
1191 fi
1192 rm -f conftest*
1193 fi
1194
1195 if eval "test \"`echo '$ac_cv_func_'tsearch`\" = yes"; then
1196   echo "$ac_t""yes" 1>&6
1197   
1198  PROGS_HAVE_TSEARCH=$PROGS_IF_TSEARCH
1199
1200 else
1201   echo "$ac_t""no" 1>&6
1202
1203  PROGS_HAVE_TSEARCH='';
1204  echo "configure: warning: tsearch missing - not building client program(s) $PROGS_IF_TSEARCH" 1>&2
1205
1206 fi
1207
1208
1209 echo $ac_n "checking for INADDR_LOOPBACK""... $ac_c" 1>&6
1210 echo "configure:1211: checking for INADDR_LOOPBACK" >&5
1211 if eval "test \"`echo '$''{'adns_cv_decl_inaddrloopback'+set}'`\" = set"; then
1212   echo $ac_n "(cached) $ac_c" 1>&6
1213 else
1214   
1215  cat > conftest.$ac_ext <<EOF
1216 #line 1217 "configure"
1217 #include "confdefs.h"
1218
1219 #include <sys/socket.h>
1220 #include <netinet/in.h>
1221 #include <arpa/inet.h>
1222  
1223 int main() {
1224
1225   INADDR_LOOPBACK;
1226  
1227 ; return 0; }
1228 EOF
1229 if { (eval echo configure:1230: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1230   rm -rf conftest*
1231   adns_cv_decl_inaddrloopback=yes
1232 else
1233   echo "configure: failed program was:" >&5
1234   cat conftest.$ac_ext >&5
1235   rm -rf conftest*
1236   adns_cv_decl_inaddrloopback=no
1237 fi
1238 rm -f conftest*
1239 fi
1240
1241 if test "$adns_cv_decl_inaddrloopback" = yes; then
1242  echo "$ac_t""found" 1>&6
1243 else
1244  echo "$ac_t""not in standard headers, urgh..." 1>&6
1245  ac_safe=`echo "rpc/types.h" | sed 'y%./+-%__p_%'`
1246 echo $ac_n "checking for rpc/types.h""... $ac_c" 1>&6
1247 echo "configure:1248: checking for rpc/types.h" >&5
1248 if eval "test \"`echo '$''{'ac_cv_header_$ac_safe'+set}'`\" = set"; then
1249   echo $ac_n "(cached) $ac_c" 1>&6
1250 else
1251   cat > conftest.$ac_ext <<EOF
1252 #line 1253 "configure"
1253 #include "confdefs.h"
1254 #include <rpc/types.h>
1255 EOF
1256 ac_try="$ac_cpp conftest.$ac_ext >/dev/null 2>conftest.out"
1257 { (eval echo configure:1258: \"$ac_try\") 1>&5; (eval $ac_try) 2>&5; }
1258 ac_err=`grep -v '^ *+' conftest.out`
1259 if test -z "$ac_err"; then
1260   rm -rf conftest*
1261   eval "ac_cv_header_$ac_safe=yes"
1262 else
1263   echo "$ac_err" >&5
1264   echo "configure: failed program was:" >&5
1265   cat conftest.$ac_ext >&5
1266   rm -rf conftest*
1267   eval "ac_cv_header_$ac_safe=no"
1268 fi
1269 rm -f conftest*
1270 fi
1271 if eval "test \"`echo '$ac_cv_header_'$ac_safe`\" = yes"; then
1272   echo "$ac_t""yes" 1>&6
1273   
1274   cat >> confdefs.h <<\EOF
1275 #define HAVEUSE_RPCTYPES_H 1
1276 EOF
1277
1278  
1279 else
1280   echo "$ac_t""no" 1>&6
1281
1282   { echo "configure: error: cannot find INADDR_LOOPBACK or rpc/types.h" 1>&2; exit 1; }
1283  
1284 fi
1285
1286 fi
1287
1288
1289  echo $ac_n "checking for inet_aton""... $ac_c" 1>&6
1290 echo "configure:1291: checking for inet_aton" >&5
1291 if eval "test \"`echo '$''{'ac_cv_func_inet_aton'+set}'`\" = set"; then
1292   echo $ac_n "(cached) $ac_c" 1>&6
1293 else
1294   cat > conftest.$ac_ext <<EOF
1295 #line 1296 "configure"
1296 #include "confdefs.h"
1297 /* System header to define __stub macros and hopefully few prototypes,
1298     which can conflict with char inet_aton(); below.  */
1299 #include <assert.h>
1300 /* Override any gcc2 internal prototype to avoid an error.  */
1301 /* We use char because int might match the return type of a gcc2
1302     builtin and then its argument prototype would still apply.  */
1303 char inet_aton();
1304
1305 int main() {
1306
1307 /* The GNU C library defines this for functions which it implements
1308     to always fail with ENOSYS.  Some functions are actually named
1309     something starting with __ and the normal name is an alias.  */
1310 #if defined (__stub_inet_aton) || defined (__stub___inet_aton)
1311 choke me
1312 #else
1313 inet_aton();
1314 #endif
1315
1316 ; return 0; }
1317 EOF
1318 if { (eval echo configure:1319: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1319   rm -rf conftest*
1320   eval "ac_cv_func_inet_aton=yes"
1321 else
1322   echo "configure: failed program was:" >&5
1323   cat conftest.$ac_ext >&5
1324   rm -rf conftest*
1325   eval "ac_cv_func_inet_aton=no"
1326 fi
1327 rm -f conftest*
1328 fi
1329
1330 if eval "test \"`echo '$ac_cv_func_'inet_aton`\" = yes"; then
1331   echo "$ac_t""yes" 1>&6
1332   :
1333 else
1334   echo "$ac_t""no" 1>&6
1335
1336   echo $ac_n "checking for inet_aton in -lresolv""... $ac_c" 1>&6
1337 echo "configure:1338: checking for inet_aton in -lresolv" >&5
1338 ac_lib_var=`echo resolv'_'inet_aton | sed 'y%./+-%__p_%'`
1339 if eval "test \"`echo '$''{'ac_cv_lib_$ac_lib_var'+set}'`\" = set"; then
1340   echo $ac_n "(cached) $ac_c" 1>&6
1341 else
1342   ac_save_LIBS="$LIBS"
1343 LIBS="-lresolv  $LIBS"
1344 cat > conftest.$ac_ext <<EOF
1345 #line 1346 "configure"
1346 #include "confdefs.h"
1347 /* Override any gcc2 internal prototype to avoid an error.  */
1348 /* We use char because int might match the return type of a gcc2
1349     builtin and then its argument prototype would still apply.  */
1350 char inet_aton();
1351
1352 int main() {
1353 inet_aton()
1354 ; return 0; }
1355 EOF
1356 if { (eval echo configure:1357: \"$ac_link\") 1>&5; (eval $ac_link) 2>&5; } && test -s conftest; then
1357   rm -rf conftest*
1358   eval "ac_cv_lib_$ac_lib_var=yes"
1359 else
1360   echo "configure: failed program was:" >&5
1361   cat conftest.$ac_ext >&5
1362   rm -rf conftest*
1363   eval "ac_cv_lib_$ac_lib_var=no"
1364 fi
1365 rm -f conftest*
1366 LIBS="$ac_save_LIBS"
1367
1368 fi
1369 if eval "test \"`echo '$ac_cv_lib_'$ac_lib_var`\" = yes"; then
1370   echo "$ac_t""yes" 1>&6
1371   
1372  LIBS="-lresolv $LIBS";
1373  echo "configure: warning: inet_aton is in libresolv, urgh.  Must use -lresolv." 1>&2
1374
1375 else
1376   echo "$ac_t""no" 1>&6
1377
1378     { echo "configure: error: cannot find library function inet_aton" 1>&2; exit 1; }
1379   
1380 fi
1381
1382  
1383 fi
1384
1385
1386
1387
1388  
1389  echo $ac_n "checking __attribute__((,,))""... $ac_c" 1>&6
1390 echo "configure:1391: checking __attribute__((,,))" >&5
1391  if eval "test \"`echo '$''{'adns_cv_c_attribute_supported'+set}'`\" = set"; then
1392   echo $ac_n "(cached) $ac_c" 1>&6
1393 else
1394   
1395   cat > conftest.$ac_ext <<EOF
1396 #line 1397 "configure"
1397 #include "confdefs.h"
1398
1399 int main() {
1400 extern int testfunction(int x) __attribute__((,,))
1401 ; return 0; }
1402 EOF
1403 if { (eval echo configure:1404: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1404   rm -rf conftest*
1405   adns_cv_c_attribute_supported=yes
1406 else
1407   echo "configure: failed program was:" >&5
1408   cat conftest.$ac_ext >&5
1409   rm -rf conftest*
1410   adns_cv_c_attribute_supported=no
1411 fi
1412 rm -f conftest*
1413  
1414 fi
1415
1416  if test "x$adns_cv_c_attribute_supported" = xyes; then
1417   true
1418   echo "$ac_t""yes" 1>&6
1419   cat >> confdefs.h <<\EOF
1420 #define HAVE_GNUC25_ATTRIB 1
1421 EOF
1422
1423    
1424  echo $ac_n "checking __attribute__((noreturn))""... $ac_c" 1>&6
1425 echo "configure:1426: checking __attribute__((noreturn))" >&5
1426  if eval "test \"`echo '$''{'adns_cv_c_attribute_noreturn'+set}'`\" = set"; then
1427   echo $ac_n "(cached) $ac_c" 1>&6
1428 else
1429   
1430   cat > conftest.$ac_ext <<EOF
1431 #line 1432 "configure"
1432 #include "confdefs.h"
1433
1434 int main() {
1435 extern int testfunction(int x) __attribute__((noreturn))
1436 ; return 0; }
1437 EOF
1438 if { (eval echo configure:1439: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1439   rm -rf conftest*
1440   adns_cv_c_attribute_noreturn=yes
1441 else
1442   echo "configure: failed program was:" >&5
1443   cat conftest.$ac_ext >&5
1444   rm -rf conftest*
1445   adns_cv_c_attribute_noreturn=no
1446 fi
1447 rm -f conftest*
1448  
1449 fi
1450
1451  if test "x$adns_cv_c_attribute_noreturn" = xyes; then
1452   true
1453   echo "$ac_t""yes" 1>&6
1454     cat >> confdefs.h <<\EOF
1455 #define HAVE_GNUC25_NORETURN 1
1456 EOF
1457
1458  else
1459   true
1460   echo "$ac_t""no" 1>&6
1461  fi
1462
1463    
1464  echo $ac_n "checking __attribute__((const))""... $ac_c" 1>&6
1465 echo "configure:1466: checking __attribute__((const))" >&5
1466  if eval "test \"`echo '$''{'adns_cv_c_attribute_const'+set}'`\" = set"; then
1467   echo $ac_n "(cached) $ac_c" 1>&6
1468 else
1469   
1470   cat > conftest.$ac_ext <<EOF
1471 #line 1472 "configure"
1472 #include "confdefs.h"
1473
1474 int main() {
1475 extern int testfunction(int x) __attribute__((const))
1476 ; return 0; }
1477 EOF
1478 if { (eval echo configure:1479: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1479   rm -rf conftest*
1480   adns_cv_c_attribute_const=yes
1481 else
1482   echo "configure: failed program was:" >&5
1483   cat conftest.$ac_ext >&5
1484   rm -rf conftest*
1485   adns_cv_c_attribute_const=no
1486 fi
1487 rm -f conftest*
1488  
1489 fi
1490
1491  if test "x$adns_cv_c_attribute_const" = xyes; then
1492   true
1493   echo "$ac_t""yes" 1>&6
1494     cat >> confdefs.h <<\EOF
1495 #define HAVE_GNUC25_CONST 1
1496 EOF
1497
1498  else
1499   true
1500   echo "$ac_t""no" 1>&6
1501  fi
1502
1503    
1504  echo $ac_n "checking __attribute__((format...))""... $ac_c" 1>&6
1505 echo "configure:1506: checking __attribute__((format...))" >&5
1506  if eval "test \"`echo '$''{'adns_cv_attribute_format'+set}'`\" = set"; then
1507   echo $ac_n "(cached) $ac_c" 1>&6
1508 else
1509   
1510   cat > conftest.$ac_ext <<EOF
1511 #line 1512 "configure"
1512 #include "confdefs.h"
1513
1514 int main() {
1515 extern int testfunction(char *y, ...) __attribute__((format(printf,1,2)))
1516 ; return 0; }
1517 EOF
1518 if { (eval echo configure:1519: \"$ac_compile\") 1>&5; (eval $ac_compile) 2>&5; }; then
1519   rm -rf conftest*
1520   adns_cv_attribute_format=yes
1521 else
1522   echo "configure: failed program was:" >&5
1523   cat conftest.$ac_ext >&5
1524   rm -rf conftest*
1525   adns_cv_attribute_format=no
1526 fi
1527 rm -f conftest*
1528  
1529 fi
1530
1531  if test "x$adns_cv_attribute_format" = xyes; then
1532   true
1533   echo "$ac_t""yes" 1>&6
1534     cat >> confdefs.h <<\EOF
1535 #define HAVE_GNUC25_PRINTFFORMAT 1
1536 EOF
1537
1538  else
1539   true
1540   echo "$ac_t""no" 1>&6
1541  fi
1542
1543  else
1544   true
1545   echo "$ac_t""no" 1>&6
1546  fi
1547
1548
1549
1550
1551
1552 if test "${GCC-no}" = yes; then
1553         WARNS="-Wall -Wmissing-prototypes -Wwrite-strings -Wstrict-prototypes -Wcast-qual -Wpointer-arith"
1554 else
1555         WARNS=
1556 fi
1557
1558
1559
1560
1561
1562
1563
1564
1565
1566
1567 SHLIBFORLINK='libadns.so'
1568 SHLIBSONAME='$(SHLIBFORLINK).$(MAJOR)'
1569 SHLIBFILE='$(SHLIBSONAME).$(MINOR)'
1570
1571 SHLIBCC='$(CC) $(CFLAGS) -fpic'
1572 MKSHLIB_1='$(CC) $(LDFLAGS) -shared -Wl,-soname=$(SHLIBSONAME) -o'
1573 MKSHLIB_2=''
1574 MKSHLIB_3='-lc'
1575
1576 trap '' 1 2 15
1577 cat > confcache <<\EOF
1578 # This file is a shell script that caches the results of configure
1579 # tests run on this system so they can be shared between configure
1580 # scripts and configure runs.  It is not useful on other systems.
1581 # If it contains results you don't want to keep, you may remove or edit it.
1582 #
1583 # By default, configure uses ./config.cache as the cache file,
1584 # creating it if it does not exist already.  You can give configure
1585 # the --cache-file=FILE option to use a different cache file; that is
1586 # what configure does when it calls configure scripts in
1587 # subdirectories, so they share the cache.
1588 # Giving --cache-file=/dev/null disables caching, for debugging configure.
1589 # config.status only pays attention to the cache file if you give it the
1590 # --recheck option to rerun configure.
1591 #
1592 EOF
1593 # The following way of writing the cache mishandles newlines in values,
1594 # but we know of no workaround that is simple, portable, and efficient.
1595 # So, don't put newlines in cache variables' values.
1596 # Ultrix sh set writes to stderr and can't be redirected directly,
1597 # and sets the high bit in the cache file unless we assign to the vars.
1598 (set) 2>&1 |
1599   case `(ac_space=' '; set) 2>&1` in
1600   *ac_space=\ *)
1601     # `set' does not quote correctly, so add quotes (double-quote substitution
1602     # turns \\\\ into \\, and sed turns \\ into \).
1603     sed -n \
1604       -e "s/'/'\\\\''/g" \
1605       -e "s/^\\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\\)=\\(.*\\)/\\1=\${\\1='\\2'}/p"
1606     ;;
1607   *)
1608     # `set' quotes correctly as required by POSIX, so do not add quotes.
1609     sed -n -e 's/^\([a-zA-Z0-9_]*_cv_[a-zA-Z0-9_]*\)=\(.*\)/\1=${\1=\2}/p'
1610     ;;
1611   esac >> confcache
1612 if cmp -s $cache_file confcache; then
1613   :
1614 else
1615   if test -w $cache_file; then
1616     echo "updating cache $cache_file"
1617     cat confcache > $cache_file
1618   else
1619     echo "not updating unwritable cache $cache_file"
1620   fi
1621 fi
1622 rm -f confcache
1623
1624 trap 'rm -fr conftest* confdefs* core core.* *.core $ac_clean_files; exit 1' 1 2 15
1625
1626 test "x$prefix" = xNONE && prefix=$ac_default_prefix
1627 # Let make expand exec_prefix.
1628 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
1629
1630 # Any assignment to VPATH causes Sun make to only execute
1631 # the first set of double-colon rules, so remove it if not needed.
1632 # If there is a colon in the path, we need to keep it.
1633 if test "x$srcdir" = x.; then
1634   ac_vpsub='/^[         ]*VPATH[        ]*=[^:]*$/d'
1635 fi
1636
1637 trap 'rm -f $CONFIG_STATUS conftest*; exit 1' 1 2 15
1638
1639 DEFS=-DHAVE_CONFIG_H
1640
1641 # Without the "./", some shells look in PATH for config.status.
1642 : ${CONFIG_STATUS=./config.status}
1643
1644 echo creating $CONFIG_STATUS
1645 rm -f $CONFIG_STATUS
1646 cat > $CONFIG_STATUS <<EOF
1647 #! /bin/sh
1648 # Generated automatically by configure.
1649 # Run this file to recreate the current configuration.
1650 # This directory was configured as follows,
1651 # on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
1652 #
1653 # $0 $ac_configure_args
1654 #
1655 # Compiler output produced by configure, useful for debugging
1656 # configure, is in ./config.log if it exists.
1657
1658 ac_cs_usage="Usage: $CONFIG_STATUS [--recheck] [--version] [--help]"
1659 for ac_option
1660 do
1661   case "\$ac_option" in
1662   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
1663     echo "running \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion"
1664     exec \${CONFIG_SHELL-/bin/sh} $0 $ac_configure_args --no-create --no-recursion ;;
1665   -version | --version | --versio | --versi | --vers | --ver | --ve | --v)
1666     echo "$CONFIG_STATUS generated by autoconf version 2.12"
1667     exit 0 ;;
1668   -help | --help | --hel | --he | --h)
1669     echo "\$ac_cs_usage"; exit 0 ;;
1670   *) echo "\$ac_cs_usage"; exit 1 ;;
1671   esac
1672 done
1673
1674 ac_given_srcdir=$srcdir
1675 ac_given_INSTALL="$INSTALL"
1676
1677 trap 'rm -fr `echo "settings.make Makefile
1678         src/Makefile client/Makefile dynamic/Makefile regress/Makefile
1679  src/config.h" | sed "s/:[^ ]*//g"` conftest*; exit 1' 1 2 15
1680 EOF
1681 cat >> $CONFIG_STATUS <<EOF
1682
1683 # Protect against being on the right side of a sed subst in config.status.
1684 sed 's/%@/@@/; s/@%/@@/; s/%g\$/@g/; /@g\$/s/[\\\\&%]/\\\\&/g;
1685  s/@@/%@/; s/@@/@%/; s/@g\$/%g/' > conftest.subs <<\\CEOF
1686 $ac_vpsub
1687 $extrasub
1688 s%@CFLAGS@%$CFLAGS%g
1689 s%@CPPFLAGS@%$CPPFLAGS%g
1690 s%@CXXFLAGS@%$CXXFLAGS%g
1691 s%@DEFS@%$DEFS%g
1692 s%@LDFLAGS@%$LDFLAGS%g
1693 s%@LIBS@%$LIBS%g
1694 s%@exec_prefix@%$exec_prefix%g
1695 s%@prefix@%$prefix%g
1696 s%@program_transform_name@%$program_transform_name%g
1697 s%@bindir@%$bindir%g
1698 s%@sbindir@%$sbindir%g
1699 s%@libexecdir@%$libexecdir%g
1700 s%@datadir@%$datadir%g
1701 s%@sysconfdir@%$sysconfdir%g
1702 s%@sharedstatedir@%$sharedstatedir%g
1703 s%@localstatedir@%$localstatedir%g
1704 s%@libdir@%$libdir%g
1705 s%@includedir@%$includedir%g
1706 s%@oldincludedir@%$oldincludedir%g
1707 s%@infodir@%$infodir%g
1708 s%@mandir@%$mandir%g
1709 s%@ENABLE_DYNAMIC@%$ENABLE_DYNAMIC%g
1710 s%@CC@%$CC%g
1711 s%@CPP@%$CPP%g
1712 s%@RANLIB@%$RANLIB%g
1713 s%@INSTALL_PROGRAM@%$INSTALL_PROGRAM%g
1714 s%@INSTALL_DATA@%$INSTALL_DATA%g
1715 s%@PROGS_HAVE_TSEARCH@%$PROGS_HAVE_TSEARCH%g
1716 s%@WARNS@%$WARNS%g
1717 s%@SHLIBCC@%$SHLIBCC%g
1718 s%@MKSHLIB_1@%$MKSHLIB_1%g
1719 s%@MKSHLIB_2@%$MKSHLIB_2%g
1720 s%@MKSHLIB_3@%$MKSHLIB_3%g
1721 s%@SHLIBFORLINK@%$SHLIBFORLINK%g
1722 s%@SHLIBFILE@%$SHLIBFILE%g
1723 s%@SHLIBSONAME@%$SHLIBSONAME%g
1724
1725 CEOF
1726 EOF
1727
1728 cat >> $CONFIG_STATUS <<\EOF
1729
1730 # Split the substitutions into bite-sized pieces for seds with
1731 # small command number limits, like on Digital OSF/1 and HP-UX.
1732 ac_max_sed_cmds=90 # Maximum number of lines to put in a sed script.
1733 ac_file=1 # Number of current file.
1734 ac_beg=1 # First line for current file.
1735 ac_end=$ac_max_sed_cmds # Line after last line for current file.
1736 ac_more_lines=:
1737 ac_sed_cmds=""
1738 while $ac_more_lines; do
1739   if test $ac_beg -gt 1; then
1740     sed "1,${ac_beg}d; ${ac_end}q" conftest.subs > conftest.s$ac_file
1741   else
1742     sed "${ac_end}q" conftest.subs > conftest.s$ac_file
1743   fi
1744   if test ! -s conftest.s$ac_file; then
1745     ac_more_lines=false
1746     rm -f conftest.s$ac_file
1747   else
1748     if test -z "$ac_sed_cmds"; then
1749       ac_sed_cmds="sed -f conftest.s$ac_file"
1750     else
1751       ac_sed_cmds="$ac_sed_cmds | sed -f conftest.s$ac_file"
1752     fi
1753     ac_file=`expr $ac_file + 1`
1754     ac_beg=$ac_end
1755     ac_end=`expr $ac_end + $ac_max_sed_cmds`
1756   fi
1757 done
1758 if test -z "$ac_sed_cmds"; then
1759   ac_sed_cmds=cat
1760 fi
1761 EOF
1762
1763 cat >> $CONFIG_STATUS <<EOF
1764
1765 CONFIG_FILES=\${CONFIG_FILES-"settings.make Makefile
1766         src/Makefile client/Makefile dynamic/Makefile regress/Makefile
1767 "}
1768 EOF
1769 cat >> $CONFIG_STATUS <<\EOF
1770 for ac_file in .. $CONFIG_FILES; do if test "x$ac_file" != x..; then
1771   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1772   case "$ac_file" in
1773   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1774        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1775   *) ac_file_in="${ac_file}.in" ;;
1776   esac
1777
1778   # Adjust a relative srcdir, top_srcdir, and INSTALL for subdirectories.
1779
1780   # Remove last slash and all that follows it.  Not all systems have dirname.
1781   ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1782   if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1783     # The file is in a subdirectory.
1784     test ! -d "$ac_dir" && mkdir "$ac_dir"
1785     ac_dir_suffix="/`echo $ac_dir|sed 's%^\./%%'`"
1786     # A "../" for each directory in $ac_dir_suffix.
1787     ac_dots=`echo $ac_dir_suffix|sed 's%/[^/]*%../%g'`
1788   else
1789     ac_dir_suffix= ac_dots=
1790   fi
1791
1792   case "$ac_given_srcdir" in
1793   .)  srcdir=.
1794       if test -z "$ac_dots"; then top_srcdir=.
1795       else top_srcdir=`echo $ac_dots|sed 's%/$%%'`; fi ;;
1796   /*) srcdir="$ac_given_srcdir$ac_dir_suffix"; top_srcdir="$ac_given_srcdir" ;;
1797   *) # Relative path.
1798     srcdir="$ac_dots$ac_given_srcdir$ac_dir_suffix"
1799     top_srcdir="$ac_dots$ac_given_srcdir" ;;
1800   esac
1801
1802   case "$ac_given_INSTALL" in
1803   [/$]*) INSTALL="$ac_given_INSTALL" ;;
1804   *) INSTALL="$ac_dots$ac_given_INSTALL" ;;
1805   esac
1806
1807   echo creating "$ac_file"
1808   rm -f "$ac_file"
1809   configure_input="Generated automatically from `echo $ac_file_in|sed 's%.*/%%'` by configure."
1810   case "$ac_file" in
1811   *Makefile*) ac_comsub="1i\\
1812 # $configure_input" ;;
1813   *) ac_comsub= ;;
1814   esac
1815
1816   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1817   sed -e "$ac_comsub
1818 s%@configure_input@%$configure_input%g
1819 s%@srcdir@%$srcdir%g
1820 s%@top_srcdir@%$top_srcdir%g
1821 s%@INSTALL@%$INSTALL%g
1822 " $ac_file_inputs | (eval "$ac_sed_cmds") > $ac_file
1823 fi; done
1824 rm -f conftest.s*
1825
1826 # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where
1827 # NAME is the cpp macro being defined and VALUE is the value it is being given.
1828 #
1829 # ac_d sets the value in "#define NAME VALUE" lines.
1830 ac_dA='s%^\([   ]*\)#\([        ]*define[       ][      ]*\)'
1831 ac_dB='\([      ][      ]*\)[^  ]*%\1#\2'
1832 ac_dC='\3'
1833 ac_dD='%g'
1834 # ac_u turns "#undef NAME" with trailing blanks into "#define NAME VALUE".
1835 ac_uA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
1836 ac_uB='\([      ]\)%\1#\2define\3'
1837 ac_uC=' '
1838 ac_uD='\4%g'
1839 # ac_e turns "#undef NAME" without trailing blanks into "#define NAME VALUE".
1840 ac_eA='s%^\([   ]*\)#\([        ]*\)undef\([    ][      ]*\)'
1841 ac_eB='$%\1#\2define\3'
1842 ac_eC=' '
1843 ac_eD='%g'
1844
1845 if test "${CONFIG_HEADERS+set}" != set; then
1846 EOF
1847 cat >> $CONFIG_STATUS <<EOF
1848   CONFIG_HEADERS="src/config.h"
1849 EOF
1850 cat >> $CONFIG_STATUS <<\EOF
1851 fi
1852 for ac_file in .. $CONFIG_HEADERS; do if test "x$ac_file" != x..; then
1853   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
1854   case "$ac_file" in
1855   *:*) ac_file_in=`echo "$ac_file"|sed 's%[^:]*:%%'`
1856        ac_file=`echo "$ac_file"|sed 's%:.*%%'` ;;
1857   *) ac_file_in="${ac_file}.in" ;;
1858   esac
1859
1860   echo creating $ac_file
1861
1862   rm -f conftest.frag conftest.in conftest.out
1863   ac_file_inputs=`echo $ac_file_in|sed -e "s%^%$ac_given_srcdir/%" -e "s%:% $ac_given_srcdir/%g"`
1864   cat $ac_file_inputs > conftest.in
1865
1866 EOF
1867
1868 # Transform confdefs.h into a sed script conftest.vals that substitutes
1869 # the proper values into config.h.in to produce config.h.  And first:
1870 # Protect against being on the right side of a sed subst in config.status.
1871 # Protect against being in an unquoted here document in config.status.
1872 rm -f conftest.vals
1873 cat > conftest.hdr <<\EOF
1874 s/[\\&%]/\\&/g
1875 s%[\\$`]%\\&%g
1876 s%#define \([A-Za-z_][A-Za-z0-9_]*\) *\(.*\)%${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD}%gp
1877 s%ac_d%ac_u%gp
1878 s%ac_u%ac_e%gp
1879 EOF
1880 sed -n -f conftest.hdr confdefs.h > conftest.vals
1881 rm -f conftest.hdr
1882
1883 # This sed command replaces #undef with comments.  This is necessary, for
1884 # example, in the case of _POSIX_SOURCE, which is predefined and required
1885 # on some systems where configure will not decide to define it.
1886 cat >> conftest.vals <<\EOF
1887 s%^[    ]*#[    ]*undef[        ][      ]*[a-zA-Z_][a-zA-Z_0-9]*%/* & */%
1888 EOF
1889
1890 # Break up conftest.vals because some shells have a limit on
1891 # the size of here documents, and old seds have small limits too.
1892
1893 rm -f conftest.tail
1894 while :
1895 do
1896   ac_lines=`grep -c . conftest.vals`
1897   # grep -c gives empty output for an empty file on some AIX systems.
1898   if test -z "$ac_lines" || test "$ac_lines" -eq 0; then break; fi
1899   # Write a limited-size here document to conftest.frag.
1900   echo '  cat > conftest.frag <<CEOF' >> $CONFIG_STATUS
1901   sed ${ac_max_here_lines}q conftest.vals >> $CONFIG_STATUS
1902   echo 'CEOF
1903   sed -f conftest.frag conftest.in > conftest.out
1904   rm -f conftest.in
1905   mv conftest.out conftest.in
1906 ' >> $CONFIG_STATUS
1907   sed 1,${ac_max_here_lines}d conftest.vals > conftest.tail
1908   rm -f conftest.vals
1909   mv conftest.tail conftest.vals
1910 done
1911 rm -f conftest.vals
1912
1913 cat >> $CONFIG_STATUS <<\EOF
1914   rm -f conftest.frag conftest.h
1915   echo "/* $ac_file.  Generated automatically by configure.  */" > conftest.h
1916   cat conftest.in >> conftest.h
1917   rm -f conftest.in
1918   if cmp -s $ac_file conftest.h 2>/dev/null; then
1919     echo "$ac_file is unchanged"
1920     rm -f conftest.h
1921   else
1922     # Remove last slash and all that follows it.  Not all systems have dirname.
1923       ac_dir=`echo $ac_file|sed 's%/[^/][^/]*$%%'`
1924       if test "$ac_dir" != "$ac_file" && test "$ac_dir" != .; then
1925       # The file is in a subdirectory.
1926       test ! -d "$ac_dir" && mkdir "$ac_dir"
1927     fi
1928     rm -f $ac_file
1929     mv conftest.h $ac_file
1930   fi
1931 fi; done
1932
1933 EOF
1934 cat >> $CONFIG_STATUS <<EOF
1935
1936 EOF
1937 cat >> $CONFIG_STATUS <<\EOF
1938
1939 exit 0
1940 EOF
1941 chmod +x $CONFIG_STATUS
1942 rm -fr confdefs* $ac_clean_files
1943 test "$no_create" = yes || ${CONFIG_SHELL-/bin/sh} $CONFIG_STATUS || exit 1
1944