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