1#! /bin/sh
2# From configure.ac Revision: 1.3 .
3# Guess values for system-dependent variables and create Makefiles.
4# Generated by GNU Autoconf 2.59 for Eggdrop DNS Module 1.6.18.
5#
6# Report bugs to <bugs@eggheads.org>.
7#
8# Copyright (C) 2003 Free Software Foundation, Inc.
9# This configure script is free software; the Free Software Foundation
10# gives unlimited permission to copy, distribute and modify it.
11#
12# Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004 Eggheads Development Team
13## --------------------- ##
14## M4sh Initialization.  ##
15## --------------------- ##
16
17# Be Bourne compatible
18if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
19  emulate sh
20  NULLCMD=:
21  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
22  # is contrary to our usage.  Disable this feature.
23  alias -g '${1+"$@"}'='"$@"'
24elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
25  set -o posix
26fi
27DUALCASE=1; export DUALCASE # for MKS sh
28
29# Support unset when possible.
30if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
31  as_unset=unset
32else
33  as_unset=false
34fi
35
36
37# Work around bugs in pre-3.0 UWIN ksh.
38$as_unset ENV MAIL MAILPATH
39PS1='$ '
40PS2='> '
41PS4='+ '
42
43# NLS nuisances.
44for as_var in \
45  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
46  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
47  LC_TELEPHONE LC_TIME
48do
49  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
50    eval $as_var=C; export $as_var
51  else
52    $as_unset $as_var
53  fi
54done
55
56# Required to use basename.
57if expr a : '\(a\)' >/dev/null 2>&1; then
58  as_expr=expr
59else
60  as_expr=false
61fi
62
63if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
64  as_basename=basename
65else
66  as_basename=false
67fi
68
69
70# Name of the executable.
71as_me=`$as_basename "$0" ||
72$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
73   X"$0" : 'X\(//\)$' \| \
74   X"$0" : 'X\(/\)$' \| \
75   .     : '\(.\)' 2>/dev/null ||
76echo X/"$0" |
77    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
78      /^X\/\(\/\/\)$/{ s//\1/; q; }
79      /^X\/\(\/\).*/{ s//\1/; q; }
80      s/.*/./; q'`
81
82
83# PATH needs CR, and LINENO needs CR and PATH.
84# Avoid depending upon Character Ranges.
85as_cr_letters='abcdefghijklmnopqrstuvwxyz'
86as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
87as_cr_Letters=$as_cr_letters$as_cr_LETTERS
88as_cr_digits='0123456789'
89as_cr_alnum=$as_cr_Letters$as_cr_digits
90
91# The user is always right.
92if test "${PATH_SEPARATOR+set}" != set; then
93  echo "#! /bin/sh" >conf$$.sh
94  echo  "exit 0"   >>conf$$.sh
95  chmod +x conf$$.sh
96  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
97    PATH_SEPARATOR=';'
98  else
99    PATH_SEPARATOR=:
100  fi
101  rm -f conf$$.sh
102fi
103
104
105  as_lineno_1=$LINENO
106  as_lineno_2=$LINENO
107  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
108  test "x$as_lineno_1" != "x$as_lineno_2" &&
109  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
110  # Find who we are.  Look in the path if we contain no path at all
111  # relative or not.
112  case $0 in
113    *[\\/]* ) as_myself=$0 ;;
114    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
115for as_dir in $PATH
116do
117  IFS=$as_save_IFS
118  test -z "$as_dir" && as_dir=.
119  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
120done
121
122       ;;
123  esac
124  # We did not find ourselves, most probably we were run as `sh COMMAND'
125  # in which case we are not to be found in the path.
126  if test "x$as_myself" = x; then
127    as_myself=$0
128  fi
129  if test ! -f "$as_myself"; then
130    { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
131   { (exit 1); exit 1; }; }
132  fi
133  case $CONFIG_SHELL in
134  '')
135    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
136for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
137do
138  IFS=$as_save_IFS
139  test -z "$as_dir" && as_dir=.
140  for as_base in sh bash ksh sh5; do
141   case $as_dir in
142   /*)
143     if ("$as_dir/$as_base" -c '
144  as_lineno_1=$LINENO
145  as_lineno_2=$LINENO
146  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
147  test "x$as_lineno_1" != "x$as_lineno_2" &&
148  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
149       $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
150       $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
151       CONFIG_SHELL=$as_dir/$as_base
152       export CONFIG_SHELL
153       exec "$CONFIG_SHELL" "$0" ${1+"$@"}
154     fi;;
155   esac
156       done
157done
158;;
159  esac
160
161  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
162  # uniformly replaced by the line number.  The first 'sed' inserts a
163  # line-number line before each line; the second 'sed' does the real
164  # work.  The second script uses 'N' to pair each line-number line
165  # with the numbered line, and appends trailing '-' during
166  # substitution so that $LINENO is not a special case at line end.
167  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
168  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
169  sed '=' <$as_myself |
170    sed '
171      N
172      s,$,-,
173      : loop
174      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
175      t loop
176      s,-$,,
177      s,^['$as_cr_digits']*\n,,
178    ' >$as_me.lineno &&
179  chmod +x $as_me.lineno ||
180    { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
181   { (exit 1); exit 1; }; }
182
183  # Don't try to exec as it changes $[0], causing all sort of problems
184  # (the dirname of $[0] is not the place where we might find the
185  # original and so on.  Autoconf is especially sensible to this).
186  . ./$as_me.lineno
187  # Exit status is that of the last command.
188  exit
189}
190
191
192case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
193  *c*,-n*) ECHO_N= ECHO_C='
194' ECHO_T='  ' ;;
195  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
196  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
197esac
198
199if expr a : '\(a\)' >/dev/null 2>&1; then
200  as_expr=expr
201else
202  as_expr=false
203fi
204
205rm -f conf$$ conf$$.exe conf$$.file
206echo >conf$$.file
207if ln -s conf$$.file conf$$ 2>/dev/null; then
208  # We could just check for DJGPP; but this test a) works b) is more generic
209  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
210  if test -f conf$$.exe; then
211    # Don't use ln at all; we don't have any links
212    as_ln_s='cp -p'
213  else
214    as_ln_s='ln -s'
215  fi
216elif ln conf$$.file conf$$ 2>/dev/null; then
217  as_ln_s=ln
218else
219  as_ln_s='cp -p'
220fi
221rm -f conf$$ conf$$.exe conf$$.file
222
223if mkdir -p . 2>/dev/null; then
224  as_mkdir_p=:
225else
226  test -d ./-p && rmdir ./-p
227  as_mkdir_p=false
228fi
229
230as_executable_p="test -f"
231
232# Sed expression to map a string onto a valid CPP name.
233as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
234
235# Sed expression to map a string onto a valid variable name.
236as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
237
238
239# IFS
240# We need space, tab and new line, in precisely that order.
241as_nl='
242'
243IFS="   $as_nl"
244
245# CDPATH.
246$as_unset CDPATH
247
248
249# Name of the host.
250# hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
251# so uname gets run too.
252ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
253
254exec 6>&1
255
256#
257# Initializations.
258#
259ac_default_prefix=/usr/local
260ac_config_libobj_dir=.
261cross_compiling=no
262subdirs=
263MFLAGS=
264MAKEFLAGS=
265SHELL=${CONFIG_SHELL-/bin/sh}
266
267# Maximum number of lines to put in a shell here document.
268# This variable seems obsolete.  It should probably be removed, and
269# only ac_max_sed_lines should be used.
270: ${ac_max_here_lines=38}
271
272# Identity of this package.
273PACKAGE_NAME='Eggdrop DNS Module'
274PACKAGE_TARNAME='eggdrop-dns-module'
275PACKAGE_VERSION='1.6.18'
276PACKAGE_STRING='Eggdrop DNS Module 1.6.18'
277PACKAGE_BUGREPORT='bugs@eggheads.org'
278
279ac_unique_file="coredns.c"
280ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT build build_cpu build_vendor build_os host host_cpu host_vendor host_os RESLIB RESINCLUDE LIBOBJS LTLIBOBJS'
281ac_subst_files=''
282
283# Initialize some variables set by options.
284ac_init_help=
285ac_init_version=false
286# The variables have the same names as the options, with
287# dashes changed to underlines.
288cache_file=/dev/null
289exec_prefix=NONE
290no_create=
291no_recursion=
292prefix=NONE
293program_prefix=NONE
294program_suffix=NONE
295program_transform_name=s,x,x,
296silent=
297site=
298srcdir=
299verbose=
300x_includes=NONE
301x_libraries=NONE
302
303# Installation directory options.
304# These are left unexpanded so users can "make install exec_prefix=/foo"
305# and all the variables that are supposed to be based on exec_prefix
306# by default will actually change.
307# Use braces instead of parens because sh, perl, etc. also accept them.
308bindir='${exec_prefix}/bin'
309sbindir='${exec_prefix}/sbin'
310libexecdir='${exec_prefix}/libexec'
311datadir='${prefix}/share'
312sysconfdir='${prefix}/etc'
313sharedstatedir='${prefix}/com'
314localstatedir='${prefix}/var'
315libdir='${exec_prefix}/lib'
316includedir='${prefix}/include'
317oldincludedir='/usr/include'
318infodir='${prefix}/info'
319mandir='${prefix}/man'
320
321ac_prev=
322for ac_option
323do
324  # If the previous option needs an argument, assign it.
325  if test -n "$ac_prev"; then
326    eval "$ac_prev=\$ac_option"
327    ac_prev=
328    continue
329  fi
330
331  ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
332
333  # Accept the important Cygnus configure options, so we can diagnose typos.
334
335  case $ac_option in
336
337  -bindir | --bindir | --bindi | --bind | --bin | --bi)
338    ac_prev=bindir ;;
339  -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
340    bindir=$ac_optarg ;;
341
342  -build | --build | --buil | --bui | --bu)
343    ac_prev=build_alias ;;
344  -build=* | --build=* | --buil=* | --bui=* | --bu=*)
345    build_alias=$ac_optarg ;;
346
347  -cache-file | --cache-file | --cache-fil | --cache-fi \
348  | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
349    ac_prev=cache_file ;;
350  -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
351  | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
352    cache_file=$ac_optarg ;;
353
354  --config-cache | -C)
355    cache_file=config.cache ;;
356
357  -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
358    ac_prev=datadir ;;
359  -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
360  | --da=*)
361    datadir=$ac_optarg ;;
362
363  -disable-* | --disable-*)
364    ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
365    # Reject names that are not valid shell variable names.
366    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
367      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
368   { (exit 1); exit 1; }; }
369    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
370    eval "enable_$ac_feature=no" ;;
371
372  -enable-* | --enable-*)
373    ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
374    # Reject names that are not valid shell variable names.
375    expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
376      { echo "$as_me: error: invalid feature name: $ac_feature" >&2
377   { (exit 1); exit 1; }; }
378    ac_feature=`echo $ac_feature | sed 's/-/_/g'`
379    case $ac_option in
380      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
381      *) ac_optarg=yes ;;
382    esac
383    eval "enable_$ac_feature='$ac_optarg'" ;;
384
385  -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
386  | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
387  | --exec | --exe | --ex)
388    ac_prev=exec_prefix ;;
389  -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
390  | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
391  | --exec=* | --exe=* | --ex=*)
392    exec_prefix=$ac_optarg ;;
393
394  -gas | --gas | --ga | --g)
395    # Obsolete; use --with-gas.
396    with_gas=yes ;;
397
398  -help | --help | --hel | --he | -h)
399    ac_init_help=long ;;
400  -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
401    ac_init_help=recursive ;;
402  -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
403    ac_init_help=short ;;
404
405  -host | --host | --hos | --ho)
406    ac_prev=host_alias ;;
407  -host=* | --host=* | --hos=* | --ho=*)
408    host_alias=$ac_optarg ;;
409
410  -includedir | --includedir | --includedi | --included | --include \
411  | --includ | --inclu | --incl | --inc)
412    ac_prev=includedir ;;
413  -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
414  | --includ=* | --inclu=* | --incl=* | --inc=*)
415    includedir=$ac_optarg ;;
416
417  -infodir | --infodir | --infodi | --infod | --info | --inf)
418    ac_prev=infodir ;;
419  -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
420    infodir=$ac_optarg ;;
421
422  -libdir | --libdir | --libdi | --libd)
423    ac_prev=libdir ;;
424  -libdir=* | --libdir=* | --libdi=* | --libd=*)
425    libdir=$ac_optarg ;;
426
427  -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
428  | --libexe | --libex | --libe)
429    ac_prev=libexecdir ;;
430  -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
431  | --libexe=* | --libex=* | --libe=*)
432    libexecdir=$ac_optarg ;;
433
434  -localstatedir | --localstatedir | --localstatedi | --localstated \
435  | --localstate | --localstat | --localsta | --localst \
436  | --locals | --local | --loca | --loc | --lo)
437    ac_prev=localstatedir ;;
438  -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
439  | --localstate=* | --localstat=* | --localsta=* | --localst=* \
440  | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
441    localstatedir=$ac_optarg ;;
442
443  -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
444    ac_prev=mandir ;;
445  -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
446    mandir=$ac_optarg ;;
447
448  -nfp | --nfp | --nf)
449    # Obsolete; use --without-fp.
450    with_fp=no ;;
451
452  -no-create | --no-create | --no-creat | --no-crea | --no-cre \
453  | --no-cr | --no-c | -n)
454    no_create=yes ;;
455
456  -no-recursion | --no-recursion | --no-recursio | --no-recursi \
457  | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
458    no_recursion=yes ;;
459
460  -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
461  | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
462  | --oldin | --oldi | --old | --ol | --o)
463    ac_prev=oldincludedir ;;
464  -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
465  | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
466  | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
467    oldincludedir=$ac_optarg ;;
468
469  -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
470    ac_prev=prefix ;;
471  -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
472    prefix=$ac_optarg ;;
473
474  -program-prefix | --program-prefix | --program-prefi | --program-pref \
475  | --program-pre | --program-pr | --program-p)
476    ac_prev=program_prefix ;;
477  -program-prefix=* | --program-prefix=* | --program-prefi=* \
478  | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
479    program_prefix=$ac_optarg ;;
480
481  -program-suffix | --program-suffix | --program-suffi | --program-suff \
482  | --program-suf | --program-su | --program-s)
483    ac_prev=program_suffix ;;
484  -program-suffix=* | --program-suffix=* | --program-suffi=* \
485  | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
486    program_suffix=$ac_optarg ;;
487
488  -program-transform-name | --program-transform-name \
489  | --program-transform-nam | --program-transform-na \
490  | --program-transform-n | --program-transform- \
491  | --program-transform | --program-transfor \
492  | --program-transfo | --program-transf \
493  | --program-trans | --program-tran \
494  | --progr-tra | --program-tr | --program-t)
495    ac_prev=program_transform_name ;;
496  -program-transform-name=* | --program-transform-name=* \
497  | --program-transform-nam=* | --program-transform-na=* \
498  | --program-transform-n=* | --program-transform-=* \
499  | --program-transform=* | --program-transfor=* \
500  | --program-transfo=* | --program-transf=* \
501  | --program-trans=* | --program-tran=* \
502  | --progr-tra=* | --program-tr=* | --program-t=*)
503    program_transform_name=$ac_optarg ;;
504
505  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
506  | -silent | --silent | --silen | --sile | --sil)
507    silent=yes ;;
508
509  -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
510    ac_prev=sbindir ;;
511  -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
512  | --sbi=* | --sb=*)
513    sbindir=$ac_optarg ;;
514
515  -sharedstatedir | --sharedstatedir | --sharedstatedi \
516  | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
517  | --sharedst | --shareds | --shared | --share | --shar \
518  | --sha | --sh)
519    ac_prev=sharedstatedir ;;
520  -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
521  | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
522  | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
523  | --sha=* | --sh=*)
524    sharedstatedir=$ac_optarg ;;
525
526  -site | --site | --sit)
527    ac_prev=site ;;
528  -site=* | --site=* | --sit=*)
529    site=$ac_optarg ;;
530
531  -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
532    ac_prev=srcdir ;;
533  -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
534    srcdir=$ac_optarg ;;
535
536  -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
537  | --syscon | --sysco | --sysc | --sys | --sy)
538    ac_prev=sysconfdir ;;
539  -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
540  | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
541    sysconfdir=$ac_optarg ;;
542
543  -target | --target | --targe | --targ | --tar | --ta | --t)
544    ac_prev=target_alias ;;
545  -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
546    target_alias=$ac_optarg ;;
547
548  -v | -verbose | --verbose | --verbos | --verbo | --verb)
549    verbose=yes ;;
550
551  -version | --version | --versio | --versi | --vers | -V)
552    ac_init_version=: ;;
553
554  -custom-key | --custom-key)
555    custom_key=yes ;;
556
557  -with-* | --with-*)
558    ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
559    # Reject names that are not valid shell variable names.
560    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
561      { echo "$as_me: error: invalid package name: $ac_package" >&2
562   { (exit 1); exit 1; }; }
563    ac_package=`echo $ac_package| sed 's/-/_/g'`
564    case $ac_option in
565      *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
566      *) ac_optarg=yes ;;
567    esac
568    eval "with_$ac_package='$ac_optarg'" ;;
569
570  -without-* | --without-*)
571    ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
572    # Reject names that are not valid shell variable names.
573    expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
574      { echo "$as_me: error: invalid package name: $ac_package" >&2
575   { (exit 1); exit 1; }; }
576    ac_package=`echo $ac_package | sed 's/-/_/g'`
577    eval "with_$ac_package=no" ;;
578
579  --x)
580    # Obsolete; use --with-x.
581    with_x=yes ;;
582
583  -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
584  | --x-incl | --x-inc | --x-in | --x-i)
585    ac_prev=x_includes ;;
586  -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
587  | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
588    x_includes=$ac_optarg ;;
589
590  -x-libraries | --x-libraries | --x-librarie | --x-librari \
591  | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
592    ac_prev=x_libraries ;;
593  -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
594  | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
595    x_libraries=$ac_optarg ;;
596
597  -*) { echo "$as_me: error: unrecognized option: $ac_option
598Try \`$0 --help' for more information." >&2
599   { (exit 1); exit 1; }; }
600    ;;
601
602  *=*)
603    ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
604    # Reject names that are not valid shell variable names.
605    expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
606      { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
607   { (exit 1); exit 1; }; }
608    ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
609    eval "$ac_envvar='$ac_optarg'"
610    export $ac_envvar ;;
611
612  *)
613    # FIXME: should be removed in autoconf 3.0.
614    echo "$as_me: WARNING: you should use --build, --host, --target" >&2
615    expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
616      echo "$as_me: WARNING: invalid host type: $ac_option" >&2
617    : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
618    ;;
619
620  esac
621done
622
623if test -n "$ac_prev"; then
624  ac_option=--`echo $ac_prev | sed 's/_/-/g'`
625  { echo "$as_me: error: missing argument to $ac_option" >&2
626   { (exit 1); exit 1; }; }
627fi
628
629# Be sure to have absolute paths.
630for ac_var in exec_prefix prefix
631do
632  eval ac_val=$`echo $ac_var`
633  case $ac_val in
634    [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
635    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
636   { (exit 1); exit 1; }; };;
637  esac
638done
639
640# Be sure to have absolute paths.
641for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
642        localstatedir libdir includedir oldincludedir infodir mandir
643do
644  eval ac_val=$`echo $ac_var`
645  case $ac_val in
646    [\\/$]* | ?:[\\/]* ) ;;
647    *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
648   { (exit 1); exit 1; }; };;
649  esac
650done
651
652# There might be people who depend on the old broken behavior: `$host'
653# used to hold the argument of --host etc.
654# FIXME: To remove some day.
655build=$build_alias
656host=$host_alias
657target=$target_alias
658
659# FIXME: To remove some day.
660if test "x$host_alias" != x; then
661  if test "x$build_alias" = x; then
662    cross_compiling=maybe
663    echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
664    If a cross compiler is detected then cross compile mode will be used." >&2
665  elif test "x$build_alias" != "x$host_alias"; then
666    cross_compiling=yes
667  fi
668fi
669
670ac_tool_prefix=
671test -n "$host_alias" && ac_tool_prefix=$host_alias-
672
673test "$silent" = yes && exec 6>/dev/null
674
675
676# Find the source files, if location was not specified.
677if test -z "$srcdir"; then
678  ac_srcdir_defaulted=yes
679  # Try the directory containing this script, then its parent.
680  ac_confdir=`(dirname "$0") 2>/dev/null ||
681$as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
682   X"$0" : 'X\(//\)[^/]' \| \
683   X"$0" : 'X\(//\)$' \| \
684   X"$0" : 'X\(/\)' \| \
685   .     : '\(.\)' 2>/dev/null ||
686echo X"$0" |
687    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
688      /^X\(\/\/\)[^/].*/{ s//\1/; q; }
689      /^X\(\/\/\)$/{ s//\1/; q; }
690      /^X\(\/\).*/{ s//\1/; q; }
691      s/.*/./; q'`
692  srcdir=$ac_confdir
693  if test ! -r $srcdir/$ac_unique_file; then
694    srcdir=..
695  fi
696else
697  ac_srcdir_defaulted=no
698fi
699if test ! -r $srcdir/$ac_unique_file; then
700  if test "$ac_srcdir_defaulted" = yes; then
701    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
702   { (exit 1); exit 1; }; }
703  else
704    { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
705   { (exit 1); exit 1; }; }
706  fi
707fi
708(cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
709  { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
710   { (exit 1); exit 1; }; }
711srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
712ac_env_build_alias_set=${build_alias+set}
713ac_env_build_alias_value=$build_alias
714ac_cv_env_build_alias_set=${build_alias+set}
715ac_cv_env_build_alias_value=$build_alias
716ac_env_host_alias_set=${host_alias+set}
717ac_env_host_alias_value=$host_alias
718ac_cv_env_host_alias_set=${host_alias+set}
719ac_cv_env_host_alias_value=$host_alias
720ac_env_target_alias_set=${target_alias+set}
721ac_env_target_alias_value=$target_alias
722ac_cv_env_target_alias_set=${target_alias+set}
723ac_cv_env_target_alias_value=$target_alias
724ac_env_CC_set=${CC+set}
725ac_env_CC_value=$CC
726ac_cv_env_CC_set=${CC+set}
727ac_cv_env_CC_value=$CC
728ac_env_CFLAGS_set=${CFLAGS+set}
729ac_env_CFLAGS_value=$CFLAGS
730ac_cv_env_CFLAGS_set=${CFLAGS+set}
731ac_cv_env_CFLAGS_value=$CFLAGS
732ac_env_LDFLAGS_set=${LDFLAGS+set}
733ac_env_LDFLAGS_value=$LDFLAGS
734ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
735ac_cv_env_LDFLAGS_value=$LDFLAGS
736ac_env_CPPFLAGS_set=${CPPFLAGS+set}
737ac_env_CPPFLAGS_value=$CPPFLAGS
738ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
739ac_cv_env_CPPFLAGS_value=$CPPFLAGS
740
741#
742# Report the --help message.
743#
744if test "$ac_init_help" = "long"; then
745  # Omit some internal or obsolete options to make the list less imposing.
746  # This message is too long to be a string in the A/UX 3.1 sh.
747  cat <<_ACEOF
748\`configure' configures Eggdrop DNS Module 1.6.18 to adapt to many kinds of systems.
749
750Usage: $0 [OPTION]... [VAR=VALUE]...
751
752To assign environment variables (e.g., CC, CFLAGS...), specify them as
753VAR=VALUE.  See below for descriptions of some of the useful variables.
754
755Defaults for the options are specified in brackets.
756
757Configuration:
758  -h, --help              display this help and exit
759      --help=short        display options specific to this package
760      --help=recursive    display the short help of all the included packages
761  -V, --version           display version information and exit
762  -q, --quiet, --silent   do not print \`checking...' messages
763      --cache-file=FILE   cache test results in FILE [disabled]
764  -C, --config-cache      alias for \`--cache-file=config.cache'
765  -n, --no-create         do not create output files
766      --srcdir=DIR        find the sources in DIR [configure dir or \`..']
767
768_ACEOF
769
770  cat <<_ACEOF
771Installation directories:
772  --prefix=PREFIX         install architecture-independent files in PREFIX
773        [$ac_default_prefix]
774  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
775        [PREFIX]
776
777By default, \`make install' will install all the files in
778\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
779an installation prefix other than \`$ac_default_prefix' using \`--prefix',
780for instance \`--prefix=\$HOME'.
781
782For better control, use the options below.
783
784Fine tuning of the installation directories:
785  --bindir=DIR           user executables [EPREFIX/bin]
786  --sbindir=DIR          system admin executables [EPREFIX/sbin]
787  --libexecdir=DIR       program executables [EPREFIX/libexec]
788  --datadir=DIR          read-only architecture-independent data [PREFIX/share]
789  --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
790  --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
791  --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
792  --libdir=DIR           object code libraries [EPREFIX/lib]
793  --includedir=DIR       C header files [PREFIX/include]
794  --oldincludedir=DIR    C header files for non-gcc [/usr/include]
795  --infodir=DIR          info documentation [PREFIX/info]
796  --mandir=DIR           man documentation [PREFIX/man]
797_ACEOF
798
799  cat <<\_ACEOF
800
801System types:
802  --build=BUILD     configure for building on BUILD [guessed]
803  --host=HOST       cross-compile to build programs to run on HOST [BUILD]
804_ACEOF
805fi
806
807if test -n "$ac_init_help"; then
808  case $ac_init_help in
809     short | recursive ) echo "Configuration of Eggdrop DNS Module 1.6.18:";;
810   esac
811  cat <<\_ACEOF
812
813Some influential environment variables:
814  CC          C compiler command
815  CFLAGS      C compiler flags
816  LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
817              nonstandard directory <lib dir>
818  CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
819              headers in a nonstandard directory <include dir>
820
821Use these variables to override the choices made by `configure' or to help
822it to find libraries and programs with nonstandard names/locations.
823
824Report bugs to <bugs@eggheads.org>.
825_ACEOF
826fi
827
828if test "$ac_init_help" = "recursive"; then
829  # If there are subdirs, report their specific --help.
830  ac_popdir=`pwd`
831  for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
832    test -d $ac_dir || continue
833    ac_builddir=.
834
835if test "$ac_dir" != .; then
836  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
837  # A "../" for each directory in $ac_dir_suffix.
838  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
839else
840  ac_dir_suffix= ac_top_builddir=
841fi
842
843case $srcdir in
844  .)  # No --srcdir option.  We are building in place.
845    ac_srcdir=.
846    if test -z "$ac_top_builddir"; then
847       ac_top_srcdir=.
848    else
849       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
850    fi ;;
851  [\\/]* | ?:[\\/]* )  # Absolute path.
852    ac_srcdir=$srcdir$ac_dir_suffix;
853    ac_top_srcdir=$srcdir ;;
854  *) # Relative path.
855    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
856    ac_top_srcdir=$ac_top_builddir$srcdir ;;
857esac
858
859# Do not use `cd foo && pwd` to compute absolute paths, because
860# the directories may not exist.
861case `pwd` in
862.) ac_abs_builddir="$ac_dir";;
863*)
864  case "$ac_dir" in
865  .) ac_abs_builddir=`pwd`;;
866  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
867  *) ac_abs_builddir=`pwd`/"$ac_dir";;
868  esac;;
869esac
870case $ac_abs_builddir in
871.) ac_abs_top_builddir=${ac_top_builddir}.;;
872*)
873  case ${ac_top_builddir}. in
874  .) ac_abs_top_builddir=$ac_abs_builddir;;
875  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
876  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
877  esac;;
878esac
879case $ac_abs_builddir in
880.) ac_abs_srcdir=$ac_srcdir;;
881*)
882  case $ac_srcdir in
883  .) ac_abs_srcdir=$ac_abs_builddir;;
884  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
885  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
886  esac;;
887esac
888case $ac_abs_builddir in
889.) ac_abs_top_srcdir=$ac_top_srcdir;;
890*)
891  case $ac_top_srcdir in
892  .) ac_abs_top_srcdir=$ac_abs_builddir;;
893  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
894  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
895  esac;;
896esac
897
898    cd $ac_dir
899    # Check for guested configure; otherwise get Cygnus style configure.
900    if test -f $ac_srcdir/configure.gnu; then
901      echo
902      $SHELL $ac_srcdir/configure.gnu  --help=recursive
903    elif test -f $ac_srcdir/configure; then
904      echo
905      $SHELL $ac_srcdir/configure  --help=recursive
906    elif test -f $ac_srcdir/configure.ac ||
907     test -f $ac_srcdir/configure.in; then
908      echo
909      $ac_configure --help
910    else
911      echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
912    fi
913    cd $ac_popdir
914  done
915fi
916
917test -n "$ac_init_help" && exit 0
918if $ac_init_version; then
919  cat <<\_ACEOF
920Eggdrop DNS Module configure 1.6.18
921generated by GNU Autoconf 2.59
922
923Copyright (C) 2003 Free Software Foundation, Inc.
924This configure script is free software; the Free Software Foundation
925gives unlimited permission to copy, distribute and modify it.
926
927Copyright (C) 1999, 2000, 2001, 2002, 2003, 2004 Eggheads Development Team
928_ACEOF
929  exit 0
930fi
931exec 5>config.log
932cat >&5 <<_ACEOF
933This file contains any messages produced by compilers while
934running configure, to aid debugging if configure makes a mistake.
935
936It was created by Eggdrop DNS Module $as_me 1.6.18, which was
937generated by GNU Autoconf 2.59.  Invocation command line was
938
939  $ $0 $@
940
941_ACEOF
942{
943cat <<_ASUNAME
944## --------- ##
945## Platform. ##
946## --------- ##
947
948hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
949uname -m = `(uname -m) 2>/dev/null || echo unknown`
950uname -r = `(uname -r) 2>/dev/null || echo unknown`
951uname -s = `(uname -s) 2>/dev/null || echo unknown`
952uname -v = `(uname -v) 2>/dev/null || echo unknown`
953
954/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
955/bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
956
957/bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
958/usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
959/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
960hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
961/bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
962/usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
963/bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
964
965_ASUNAME
966
967as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
968for as_dir in $PATH
969do
970  IFS=$as_save_IFS
971  test -z "$as_dir" && as_dir=.
972  echo "PATH: $as_dir"
973done
974
975} >&5
976
977cat >&5 <<_ACEOF
978
979
980## ----------- ##
981## Core tests. ##
982## ----------- ##
983
984_ACEOF
985
986
987# Keep a trace of the command line.
988# Strip out --no-create and --no-recursion so they do not pile up.
989# Strip out --silent because we don't want to record it for future runs.
990# Also quote any args containing shell meta-characters.
991# Make two passes to allow for proper duplicate-argument suppression.
992ac_configure_args=
993ac_configure_args0=
994ac_configure_args1=
995ac_sep=
996ac_must_keep_next=false
997for ac_pass in 1 2
998do
999  for ac_arg
1000  do
1001    case $ac_arg in
1002    -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1003    -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1004    | -silent | --silent | --silen | --sile | --sil)
1005      continue ;;
1006    *" "*|*"  "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1007      ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1008    esac
1009    case $ac_pass in
1010    1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1011    2)
1012      ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1013      if test $ac_must_keep_next = true; then
1014  ac_must_keep_next=false # Got value, back to normal.
1015      else
1016  case $ac_arg in
1017    *=* | --config-cache | -C | -disable-* | --disable-* \
1018    | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1019    | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1020    | -with-* | --with-* | -without-* | --without-* | --x)
1021      case "$ac_configure_args0 " in
1022        "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1023      esac
1024      ;;
1025    -* ) ac_must_keep_next=true ;;
1026  esac
1027      fi
1028      ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1029      # Get rid of the leading space.
1030      ac_sep=" "
1031      ;;
1032    esac
1033  done
1034done
1035$as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1036$as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1037
1038# When interrupted or exit'd, cleanup temporary files, and complete
1039# config.log.  We remove comments because anyway the quotes in there
1040# would cause problems or look ugly.
1041# WARNING: Be sure not to use single quotes in there, as some shells,
1042# such as our DU 5.0 friend, will then `close' the trap.
1043trap 'exit_status=$?
1044  # Save into config.log some information that might help in debugging.
1045  {
1046    echo
1047
1048    cat <<\_ASBOX
1049## ---------------- ##
1050## Cache variables. ##
1051## ---------------- ##
1052_ASBOX
1053    echo
1054    # The following way of writing the cache mishandles newlines in values,
1055{
1056  (set) 2>&1 |
1057    case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1058    *ac_space=\ *)
1059      sed -n \
1060  "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1061    s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1062      ;;
1063    *)
1064      sed -n \
1065  "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1066      ;;
1067    esac;
1068}
1069    echo
1070
1071    cat <<\_ASBOX
1072## ----------------- ##
1073## Output variables. ##
1074## ----------------- ##
1075_ASBOX
1076    echo
1077    for ac_var in $ac_subst_vars
1078    do
1079      eval ac_val=$`echo $ac_var`
1080      echo "$ac_var='"'"'$ac_val'"'"'"
1081    done | sort
1082    echo
1083
1084    if test -n "$ac_subst_files"; then
1085      cat <<\_ASBOX
1086## ------------- ##
1087## Output files. ##
1088## ------------- ##
1089_ASBOX
1090      echo
1091      for ac_var in $ac_subst_files
1092      do
1093  eval ac_val=$`echo $ac_var`
1094  echo "$ac_var='"'"'$ac_val'"'"'"
1095      done | sort
1096      echo
1097    fi
1098
1099    if test -s confdefs.h; then
1100      cat <<\_ASBOX
1101## ----------- ##
1102## confdefs.h. ##
1103## ----------- ##
1104_ASBOX
1105      echo
1106      sed "/^$/d" confdefs.h | sort
1107      echo
1108    fi
1109    test "$ac_signal" != 0 &&
1110      echo "$as_me: caught signal $ac_signal"
1111    echo "$as_me: exit $exit_status"
1112  } >&5
1113  rm -f core *.core &&
1114  rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1115    exit $exit_status
1116     ' 0
1117for ac_signal in 1 2 13 15; do
1118  trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1119done
1120ac_signal=0
1121
1122# confdefs.h avoids OS command line length limits that DEFS can exceed.
1123rm -rf conftest* confdefs.h
1124# AIX cpp loses on an empty file, so make sure it contains at least a newline.
1125echo >confdefs.h
1126
1127# Predefined preprocessor variables.
1128
1129cat >>confdefs.h <<_ACEOF
1130#define PACKAGE_NAME "$PACKAGE_NAME"
1131_ACEOF
1132
1133
1134cat >>confdefs.h <<_ACEOF
1135#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1136_ACEOF
1137
1138
1139cat >>confdefs.h <<_ACEOF
1140#define PACKAGE_VERSION "$PACKAGE_VERSION"
1141_ACEOF
1142
1143
1144cat >>confdefs.h <<_ACEOF
1145#define PACKAGE_STRING "$PACKAGE_STRING"
1146_ACEOF
1147
1148
1149cat >>confdefs.h <<_ACEOF
1150#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1151_ACEOF
1152
1153
1154# Let the site file select an alternate cache file if it wants to.
1155# Prefer explicitly selected file to automatically selected ones.
1156if test -z "$CONFIG_SITE"; then
1157  if test "x$prefix" != xNONE; then
1158    CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1159  else
1160    CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1161  fi
1162fi
1163for ac_site_file in $CONFIG_SITE; do
1164  if test -r "$ac_site_file"; then
1165    { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1166echo "$as_me: loading site script $ac_site_file" >&6;}
1167    sed 's/^/| /' "$ac_site_file" >&5
1168    . "$ac_site_file"
1169  fi
1170done
1171
1172if test -r "$cache_file"; then
1173  # Some versions of bash will fail to source /dev/null (special
1174  # files actually), so we avoid doing that.
1175  if test -f "$cache_file"; then
1176    { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1177echo "$as_me: loading cache $cache_file" >&6;}
1178    case $cache_file in
1179      [\\/]* | ?:[\\/]* ) . $cache_file;;
1180      *)                      . ./$cache_file;;
1181    esac
1182  fi
1183else
1184  { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1185echo "$as_me: creating cache $cache_file" >&6;}
1186  >$cache_file
1187fi
1188
1189# Check that the precious variables saved in the cache have kept the same
1190# value.
1191ac_cache_corrupted=false
1192for ac_var in `(set) 2>&1 |
1193         sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1194  eval ac_old_set=\$ac_cv_env_${ac_var}_set
1195  eval ac_new_set=\$ac_env_${ac_var}_set
1196  eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1197  eval ac_new_val="\$ac_env_${ac_var}_value"
1198  case $ac_old_set,$ac_new_set in
1199    set,)
1200      { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1201echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1202      ac_cache_corrupted=: ;;
1203    ,set)
1204      { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1205echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1206      ac_cache_corrupted=: ;;
1207    ,);;
1208    *)
1209      if test "x$ac_old_val" != "x$ac_new_val"; then
1210  { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1211echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1212  { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1213echo "$as_me:   former value:  $ac_old_val" >&2;}
1214  { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1215echo "$as_me:   current value: $ac_new_val" >&2;}
1216  ac_cache_corrupted=:
1217      fi;;
1218  esac
1219  # Pass precious variables to config.status.
1220  if test "$ac_new_set" = set; then
1221    case $ac_new_val in
1222    *" "*|*"  "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1223      ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1224    *) ac_arg=$ac_var=$ac_new_val ;;
1225    esac
1226    case " $ac_configure_args " in
1227      *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1228      *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1229    esac
1230  fi
1231done
1232if $ac_cache_corrupted; then
1233  { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1234echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1235  { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1236echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1237   { (exit 1); exit 1; }; }
1238fi
1239
1240ac_ext=c
1241ac_cpp='$CPP $CPPFLAGS'
1242ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1243ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1244ac_compiler_gnu=$ac_cv_c_compiler_gnu
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274ac_aux_dir=
1275for ac_dir in ../../ifiles $srcdir/../../ifiles; do
1276  if test -f $ac_dir/install-sh; then
1277    ac_aux_dir=$ac_dir
1278    ac_install_sh="$ac_aux_dir/install-sh -c"
1279    break
1280  elif test -f $ac_dir/install.sh; then
1281    ac_aux_dir=$ac_dir
1282    ac_install_sh="$ac_aux_dir/install.sh -c"
1283    break
1284  elif test -f $ac_dir/shtool; then
1285    ac_aux_dir=$ac_dir
1286    ac_install_sh="$ac_aux_dir/shtool install -c"
1287    break
1288  fi
1289done
1290if test -z "$ac_aux_dir"; then
1291  { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in ../../ifiles $srcdir/../../ifiles" >&5
1292echo "$as_me: error: cannot find install-sh or install.sh in ../../ifiles $srcdir/../../ifiles" >&2;}
1293   { (exit 1); exit 1; }; }
1294fi
1295ac_config_guess="$SHELL $ac_aux_dir/config.guess"
1296ac_config_sub="$SHELL $ac_aux_dir/config.sub"
1297ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
1298
1299
1300
1301
1302
1303dns_reslib_avail="true"
1304
1305ac_ext=c
1306ac_cpp='$CPP $CPPFLAGS'
1307ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1308ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1309ac_compiler_gnu=$ac_cv_c_compiler_gnu
1310if test -n "$ac_tool_prefix"; then
1311  # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1312set dummy ${ac_tool_prefix}gcc; ac_word=$2
1313echo "$as_me:$LINENO: checking for $ac_word" >&5
1314echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1315if test "${ac_cv_prog_CC+set}" = set; then
1316  echo $ECHO_N "(cached) $ECHO_C" >&6
1317else
1318  if test -n "$CC"; then
1319  ac_cv_prog_CC="$CC" # Let the user override the test.
1320else
1321as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1322for as_dir in $PATH
1323do
1324  IFS=$as_save_IFS
1325  test -z "$as_dir" && as_dir=.
1326  for ac_exec_ext in '' $ac_executable_extensions; do
1327  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1328    ac_cv_prog_CC="${ac_tool_prefix}gcc"
1329    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1330    break 2
1331  fi
1332done
1333done
1334
1335fi
1336fi
1337CC=$ac_cv_prog_CC
1338if test -n "$CC"; then
1339  echo "$as_me:$LINENO: result: $CC" >&5
1340echo "${ECHO_T}$CC" >&6
1341else
1342  echo "$as_me:$LINENO: result: no" >&5
1343echo "${ECHO_T}no" >&6
1344fi
1345
1346fi
1347if test -z "$ac_cv_prog_CC"; then
1348  ac_ct_CC=$CC
1349  # Extract the first word of "gcc", so it can be a program name with args.
1350set dummy gcc; ac_word=$2
1351echo "$as_me:$LINENO: checking for $ac_word" >&5
1352echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1353if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1354  echo $ECHO_N "(cached) $ECHO_C" >&6
1355else
1356  if test -n "$ac_ct_CC"; then
1357  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1358else
1359as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1360for as_dir in $PATH
1361do
1362  IFS=$as_save_IFS
1363  test -z "$as_dir" && as_dir=.
1364  for ac_exec_ext in '' $ac_executable_extensions; do
1365  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1366    ac_cv_prog_ac_ct_CC="gcc"
1367    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1368    break 2
1369  fi
1370done
1371done
1372
1373fi
1374fi
1375ac_ct_CC=$ac_cv_prog_ac_ct_CC
1376if test -n "$ac_ct_CC"; then
1377  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1378echo "${ECHO_T}$ac_ct_CC" >&6
1379else
1380  echo "$as_me:$LINENO: result: no" >&5
1381echo "${ECHO_T}no" >&6
1382fi
1383
1384  CC=$ac_ct_CC
1385else
1386  CC="$ac_cv_prog_CC"
1387fi
1388
1389if test -z "$CC"; then
1390  if test -n "$ac_tool_prefix"; then
1391  # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1392set dummy ${ac_tool_prefix}cc; ac_word=$2
1393echo "$as_me:$LINENO: checking for $ac_word" >&5
1394echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1395if test "${ac_cv_prog_CC+set}" = set; then
1396  echo $ECHO_N "(cached) $ECHO_C" >&6
1397else
1398  if test -n "$CC"; then
1399  ac_cv_prog_CC="$CC" # Let the user override the test.
1400else
1401as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1402for as_dir in $PATH
1403do
1404  IFS=$as_save_IFS
1405  test -z "$as_dir" && as_dir=.
1406  for ac_exec_ext in '' $ac_executable_extensions; do
1407  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1408    ac_cv_prog_CC="${ac_tool_prefix}cc"
1409    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1410    break 2
1411  fi
1412done
1413done
1414
1415fi
1416fi
1417CC=$ac_cv_prog_CC
1418if test -n "$CC"; then
1419  echo "$as_me:$LINENO: result: $CC" >&5
1420echo "${ECHO_T}$CC" >&6
1421else
1422  echo "$as_me:$LINENO: result: no" >&5
1423echo "${ECHO_T}no" >&6
1424fi
1425
1426fi
1427if test -z "$ac_cv_prog_CC"; then
1428  ac_ct_CC=$CC
1429  # Extract the first word of "cc", so it can be a program name with args.
1430set dummy cc; ac_word=$2
1431echo "$as_me:$LINENO: checking for $ac_word" >&5
1432echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1433if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1434  echo $ECHO_N "(cached) $ECHO_C" >&6
1435else
1436  if test -n "$ac_ct_CC"; then
1437  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1438else
1439as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1440for as_dir in $PATH
1441do
1442  IFS=$as_save_IFS
1443  test -z "$as_dir" && as_dir=.
1444  for ac_exec_ext in '' $ac_executable_extensions; do
1445  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1446    ac_cv_prog_ac_ct_CC="cc"
1447    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1448    break 2
1449  fi
1450done
1451done
1452
1453fi
1454fi
1455ac_ct_CC=$ac_cv_prog_ac_ct_CC
1456if test -n "$ac_ct_CC"; then
1457  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1458echo "${ECHO_T}$ac_ct_CC" >&6
1459else
1460  echo "$as_me:$LINENO: result: no" >&5
1461echo "${ECHO_T}no" >&6
1462fi
1463
1464  CC=$ac_ct_CC
1465else
1466  CC="$ac_cv_prog_CC"
1467fi
1468
1469fi
1470if test -z "$CC"; then
1471  # Extract the first word of "cc", so it can be a program name with args.
1472set dummy cc; ac_word=$2
1473echo "$as_me:$LINENO: checking for $ac_word" >&5
1474echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1475if test "${ac_cv_prog_CC+set}" = set; then
1476  echo $ECHO_N "(cached) $ECHO_C" >&6
1477else
1478  if test -n "$CC"; then
1479  ac_cv_prog_CC="$CC" # Let the user override the test.
1480else
1481  ac_prog_rejected=no
1482as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1483for as_dir in $PATH
1484do
1485  IFS=$as_save_IFS
1486  test -z "$as_dir" && as_dir=.
1487  for ac_exec_ext in '' $ac_executable_extensions; do
1488  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1489    if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1490       ac_prog_rejected=yes
1491       continue
1492     fi
1493    ac_cv_prog_CC="cc"
1494    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1495    break 2
1496  fi
1497done
1498done
1499
1500if test $ac_prog_rejected = yes; then
1501  # We found a bogon in the path, so make sure we never use it.
1502  set dummy $ac_cv_prog_CC
1503  shift
1504  if test $# != 0; then
1505    # We chose a different compiler from the bogus one.
1506    # However, it has the same basename, so the bogon will be chosen
1507    # first if we set CC to just the basename; use the full file name.
1508    shift
1509    ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1510  fi
1511fi
1512fi
1513fi
1514CC=$ac_cv_prog_CC
1515if test -n "$CC"; then
1516  echo "$as_me:$LINENO: result: $CC" >&5
1517echo "${ECHO_T}$CC" >&6
1518else
1519  echo "$as_me:$LINENO: result: no" >&5
1520echo "${ECHO_T}no" >&6
1521fi
1522
1523fi
1524if test -z "$CC"; then
1525  if test -n "$ac_tool_prefix"; then
1526  for ac_prog in cl
1527  do
1528    # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1529set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1530echo "$as_me:$LINENO: checking for $ac_word" >&5
1531echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1532if test "${ac_cv_prog_CC+set}" = set; then
1533  echo $ECHO_N "(cached) $ECHO_C" >&6
1534else
1535  if test -n "$CC"; then
1536  ac_cv_prog_CC="$CC" # Let the user override the test.
1537else
1538as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1539for as_dir in $PATH
1540do
1541  IFS=$as_save_IFS
1542  test -z "$as_dir" && as_dir=.
1543  for ac_exec_ext in '' $ac_executable_extensions; do
1544  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1545    ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1546    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1547    break 2
1548  fi
1549done
1550done
1551
1552fi
1553fi
1554CC=$ac_cv_prog_CC
1555if test -n "$CC"; then
1556  echo "$as_me:$LINENO: result: $CC" >&5
1557echo "${ECHO_T}$CC" >&6
1558else
1559  echo "$as_me:$LINENO: result: no" >&5
1560echo "${ECHO_T}no" >&6
1561fi
1562
1563    test -n "$CC" && break
1564  done
1565fi
1566if test -z "$CC"; then
1567  ac_ct_CC=$CC
1568  for ac_prog in cl
1569do
1570  # Extract the first word of "$ac_prog", so it can be a program name with args.
1571set dummy $ac_prog; ac_word=$2
1572echo "$as_me:$LINENO: checking for $ac_word" >&5
1573echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1574if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1575  echo $ECHO_N "(cached) $ECHO_C" >&6
1576else
1577  if test -n "$ac_ct_CC"; then
1578  ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1579else
1580as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1581for as_dir in $PATH
1582do
1583  IFS=$as_save_IFS
1584  test -z "$as_dir" && as_dir=.
1585  for ac_exec_ext in '' $ac_executable_extensions; do
1586  if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1587    ac_cv_prog_ac_ct_CC="$ac_prog"
1588    echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1589    break 2
1590  fi
1591done
1592done
1593
1594fi
1595fi
1596ac_ct_CC=$ac_cv_prog_ac_ct_CC
1597if test -n "$ac_ct_CC"; then
1598  echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1599echo "${ECHO_T}$ac_ct_CC" >&6
1600else
1601  echo "$as_me:$LINENO: result: no" >&5
1602echo "${ECHO_T}no" >&6
1603fi
1604
1605  test -n "$ac_ct_CC" && break
1606done
1607
1608  CC=$ac_ct_CC
1609fi
1610
1611fi
1612
1613
1614test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1615See \`config.log' for more details." >&5
1616echo "$as_me: error: no acceptable C compiler found in \$PATH
1617See \`config.log' for more details." >&2;}
1618   { (exit 1); exit 1; }; }
1619
1620# Provide some information about the compiler.
1621echo "$as_me:$LINENO:" \
1622     "checking for C compiler version" >&5
1623ac_compiler=`set X $ac_compile; echo $2`
1624{ (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1625  (eval $ac_compiler --version </dev/null >&5) 2>&5
1626  ac_status=$?
1627  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1628  (exit $ac_status); }
1629{ (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1630  (eval $ac_compiler -v </dev/null >&5) 2>&5
1631  ac_status=$?
1632  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1633  (exit $ac_status); }
1634{ (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1635  (eval $ac_compiler -V </dev/null >&5) 2>&5
1636  ac_status=$?
1637  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1638  (exit $ac_status); }
1639
1640cat >conftest.$ac_ext <<_ACEOF
1641/* confdefs.h.  */
1642_ACEOF
1643cat confdefs.h >>conftest.$ac_ext
1644cat >>conftest.$ac_ext <<_ACEOF
1645/* end confdefs.h.  */
1646
1647int
1648main ()
1649{
1650
1651  ;
1652  return 0;
1653}
1654_ACEOF
1655ac_clean_files_save=$ac_clean_files
1656ac_clean_files="$ac_clean_files a.out a.exe b.out"
1657# Try to create an executable without -o first, disregard a.out.
1658# It will help us diagnose broken compilers, and finding out an intuition
1659# of exeext.
1660echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1661echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1662ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1663if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1664  (eval $ac_link_default) 2>&5
1665  ac_status=$?
1666  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1667  (exit $ac_status); }; then
1668  # Find the output, starting from the most likely.  This scheme is
1669# not robust to junk in `.', hence go to wildcards (a.*) only as a last
1670# resort.
1671
1672# Be careful to initialize this variable, since it used to be cached.
1673# Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1674ac_cv_exeext=
1675# b.out is created by i960 compilers.
1676for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1677do
1678  test -f "$ac_file" || continue
1679  case $ac_file in
1680    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1681  ;;
1682    conftest.$ac_ext )
1683  # This is the source file.
1684  ;;
1685    [ab].out )
1686  # We found the default executable, but exeext='' is most
1687  # certainly right.
1688  break;;
1689    *.* )
1690  ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1691  # FIXME: I believe we export ac_cv_exeext for Libtool,
1692  # but it would be cool to find out if it's true.  Does anybody
1693  # maintain Libtool? --akim.
1694  export ac_cv_exeext
1695  break;;
1696    * )
1697  break;;
1698  esac
1699done
1700else
1701  echo "$as_me: failed program was:" >&5
1702sed 's/^/| /' conftest.$ac_ext >&5
1703
1704{ { echo "$as_me:$LINENO: error: C compiler cannot create executables
1705See \`config.log' for more details." >&5
1706echo "$as_me: error: C compiler cannot create executables
1707See \`config.log' for more details." >&2;}
1708   { (exit 77); exit 77; }; }
1709fi
1710
1711ac_exeext=$ac_cv_exeext
1712echo "$as_me:$LINENO: result: $ac_file" >&5
1713echo "${ECHO_T}$ac_file" >&6
1714
1715# Check the compiler produces executables we can run.  If not, either
1716# the compiler is broken, or we cross compile.
1717echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1718echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1719# FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1720# If not cross compiling, check that we can run a simple program.
1721if test "$cross_compiling" != yes; then
1722  if { ac_try='./$ac_file'
1723  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1724  (eval $ac_try) 2>&5
1725  ac_status=$?
1726  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1727  (exit $ac_status); }; }; then
1728    cross_compiling=no
1729  else
1730    if test "$cross_compiling" = maybe; then
1731  cross_compiling=yes
1732    else
1733  { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1734If you meant to cross compile, use \`--host'.
1735See \`config.log' for more details." >&5
1736echo "$as_me: error: cannot run C compiled programs.
1737If you meant to cross compile, use \`--host'.
1738See \`config.log' for more details." >&2;}
1739   { (exit 1); exit 1; }; }
1740    fi
1741  fi
1742fi
1743echo "$as_me:$LINENO: result: yes" >&5
1744echo "${ECHO_T}yes" >&6
1745
1746rm -f a.out a.exe conftest$ac_cv_exeext b.out
1747ac_clean_files=$ac_clean_files_save
1748# Check the compiler produces executables we can run.  If not, either
1749# the compiler is broken, or we cross compile.
1750echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1751echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1752echo "$as_me:$LINENO: result: $cross_compiling" >&5
1753echo "${ECHO_T}$cross_compiling" >&6
1754
1755echo "$as_me:$LINENO: checking for suffix of executables" >&5
1756echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1757if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1758  (eval $ac_link) 2>&5
1759  ac_status=$?
1760  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1761  (exit $ac_status); }; then
1762  # If both `conftest.exe' and `conftest' are `present' (well, observable)
1763# catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1764# work properly (i.e., refer to `conftest.exe'), while it won't with
1765# `rm'.
1766for ac_file in conftest.exe conftest conftest.*; do
1767  test -f "$ac_file" || continue
1768  case $ac_file in
1769    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1770    *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1771    export ac_cv_exeext
1772    break;;
1773    * ) break;;
1774  esac
1775done
1776else
1777  { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1778See \`config.log' for more details." >&5
1779echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1780See \`config.log' for more details." >&2;}
1781   { (exit 1); exit 1; }; }
1782fi
1783
1784rm -f conftest$ac_cv_exeext
1785echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1786echo "${ECHO_T}$ac_cv_exeext" >&6
1787
1788rm -f conftest.$ac_ext
1789EXEEXT=$ac_cv_exeext
1790ac_exeext=$EXEEXT
1791echo "$as_me:$LINENO: checking for suffix of object files" >&5
1792echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1793if test "${ac_cv_objext+set}" = set; then
1794  echo $ECHO_N "(cached) $ECHO_C" >&6
1795else
1796  cat >conftest.$ac_ext <<_ACEOF
1797/* confdefs.h.  */
1798_ACEOF
1799cat confdefs.h >>conftest.$ac_ext
1800cat >>conftest.$ac_ext <<_ACEOF
1801/* end confdefs.h.  */
1802
1803int
1804main ()
1805{
1806
1807  ;
1808  return 0;
1809}
1810_ACEOF
1811rm -f conftest.o conftest.obj
1812if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1813  (eval $ac_compile) 2>&5
1814  ac_status=$?
1815  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1816  (exit $ac_status); }; then
1817  for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1818  case $ac_file in
1819    *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1820    *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1821       break;;
1822  esac
1823done
1824else
1825  echo "$as_me: failed program was:" >&5
1826sed 's/^/| /' conftest.$ac_ext >&5
1827
1828{ { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1829See \`config.log' for more details." >&5
1830echo "$as_me: error: cannot compute suffix of object files: cannot compile
1831See \`config.log' for more details." >&2;}
1832   { (exit 1); exit 1; }; }
1833fi
1834
1835rm -f conftest.$ac_cv_objext conftest.$ac_ext
1836fi
1837echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1838echo "${ECHO_T}$ac_cv_objext" >&6
1839OBJEXT=$ac_cv_objext
1840ac_objext=$OBJEXT
1841echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1842echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1843if test "${ac_cv_c_compiler_gnu+set}" = set; then
1844  echo $ECHO_N "(cached) $ECHO_C" >&6
1845else
1846  cat >conftest.$ac_ext <<_ACEOF
1847/* confdefs.h.  */
1848_ACEOF
1849cat confdefs.h >>conftest.$ac_ext
1850cat >>conftest.$ac_ext <<_ACEOF
1851/* end confdefs.h.  */
1852
1853int
1854main ()
1855{
1856#ifndef __GNUC__
1857       choke me
1858#endif
1859
1860  ;
1861  return 0;
1862}
1863_ACEOF
1864rm -f conftest.$ac_objext
1865if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1866  (eval $ac_compile) 2>conftest.er1
1867  ac_status=$?
1868  grep -v '^ *+' conftest.er1 >conftest.err
1869  rm -f conftest.er1
1870  cat conftest.err >&5
1871  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1872  (exit $ac_status); } &&
1873   { ac_try='test -z "$ac_c_werror_flag"
1874       || test ! -s conftest.err'
1875  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1876  (eval $ac_try) 2>&5
1877  ac_status=$?
1878  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1879  (exit $ac_status); }; } &&
1880   { ac_try='test -s conftest.$ac_objext'
1881  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1882  (eval $ac_try) 2>&5
1883  ac_status=$?
1884  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1885  (exit $ac_status); }; }; then
1886  ac_compiler_gnu=yes
1887else
1888  echo "$as_me: failed program was:" >&5
1889sed 's/^/| /' conftest.$ac_ext >&5
1890
1891ac_compiler_gnu=no
1892fi
1893rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1894ac_cv_c_compiler_gnu=$ac_compiler_gnu
1895
1896fi
1897echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1898echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1899GCC=`test $ac_compiler_gnu = yes && echo yes`
1900ac_test_CFLAGS=${CFLAGS+set}
1901ac_save_CFLAGS=$CFLAGS
1902CFLAGS="-g"
1903echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1904echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1905if test "${ac_cv_prog_cc_g+set}" = set; then
1906  echo $ECHO_N "(cached) $ECHO_C" >&6
1907else
1908  cat >conftest.$ac_ext <<_ACEOF
1909/* confdefs.h.  */
1910_ACEOF
1911cat confdefs.h >>conftest.$ac_ext
1912cat >>conftest.$ac_ext <<_ACEOF
1913/* end confdefs.h.  */
1914
1915int
1916main ()
1917{
1918
1919  ;
1920  return 0;
1921}
1922_ACEOF
1923rm -f conftest.$ac_objext
1924if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1925  (eval $ac_compile) 2>conftest.er1
1926  ac_status=$?
1927  grep -v '^ *+' conftest.er1 >conftest.err
1928  rm -f conftest.er1
1929  cat conftest.err >&5
1930  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1931  (exit $ac_status); } &&
1932   { ac_try='test -z "$ac_c_werror_flag"
1933       || test ! -s conftest.err'
1934  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1935  (eval $ac_try) 2>&5
1936  ac_status=$?
1937  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1938  (exit $ac_status); }; } &&
1939   { ac_try='test -s conftest.$ac_objext'
1940  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1941  (eval $ac_try) 2>&5
1942  ac_status=$?
1943  echo "$as_me:$LINENO: \$? = $ac_status" >&5
1944  (exit $ac_status); }; }; then
1945  ac_cv_prog_cc_g=yes
1946else
1947  echo "$as_me: failed program was:" >&5
1948sed 's/^/| /' conftest.$ac_ext >&5
1949
1950ac_cv_prog_cc_g=no
1951fi
1952rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1953fi
1954echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1955echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1956if test "$ac_test_CFLAGS" = set; then
1957  CFLAGS=$ac_save_CFLAGS
1958elif test $ac_cv_prog_cc_g = yes; then
1959  if test "$GCC" = yes; then
1960    CFLAGS="-g -O2"
1961  else
1962    CFLAGS="-g"
1963  fi
1964else
1965  if test "$GCC" = yes; then
1966    CFLAGS="-O2"
1967  else
1968    CFLAGS=
1969  fi
1970fi
1971echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
1972echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1973if test "${ac_cv_prog_cc_stdc+set}" = set; then
1974  echo $ECHO_N "(cached) $ECHO_C" >&6
1975else
1976  ac_cv_prog_cc_stdc=no
1977ac_save_CC=$CC
1978cat >conftest.$ac_ext <<_ACEOF
1979/* confdefs.h.  */
1980_ACEOF
1981cat confdefs.h >>conftest.$ac_ext
1982cat >>conftest.$ac_ext <<_ACEOF
1983/* end confdefs.h.  */
1984#include <stdarg.h>
1985#include <stdio.h>
1986#include <sys/types.h>
1987#include <sys/stat.h>
1988/* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
1989struct buf { int x; };
1990FILE * (*rcsopen) (struct buf *, struct stat *, int);
1991static char *e (p, i)
1992     char **p;
1993     int i;
1994{
1995  return p[i];
1996}
1997static char *f (char * (*g) (char **, int), char **p, ...)
1998{
1999  char *s;
2000  va_list v;
2001  va_start (v,p);
2002  s = g (p, va_arg (v,int));
2003  va_end (v);
2004  return s;
2005}
2006
2007/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2008   function prototypes and stuff, but not '\xHH' hex character constants.
2009   These don't provoke an error unfortunately, instead are silently treated
2010   as 'x'.  The following induces an error, until -std1 is added to get
2011   proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2012   array size at least.  It's necessary to write '\x00'==0 to get something
2013   that's true only with -std1.  */
2014int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2015
2016int test (int i, double x);
2017struct s1 {int (*f) (int a);};
2018struct s2 {int (*f) (double a);};
2019int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2020int argc;
2021char **argv;
2022int
2023main ()
2024{
2025return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2026  ;
2027  return 0;
2028}
2029_ACEOF
2030# Don't try gcc -ansi; that turns off useful extensions and
2031# breaks some systems' header files.
2032# AIX     -qlanglvl=ansi
2033# Ultrix and OSF/1  -std1
2034# HP-UX 10.20 and later -Ae
2035# HP-UX older versions  -Aa -D_HPUX_SOURCE
2036# SVR4      -Xc -D__EXTENSIONS__
2037for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2038do
2039  CC="$ac_save_CC $ac_arg"
2040  rm -f conftest.$ac_objext
2041if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2042  (eval $ac_compile) 2>conftest.er1
2043  ac_status=$?
2044  grep -v '^ *+' conftest.er1 >conftest.err
2045  rm -f conftest.er1
2046  cat conftest.err >&5
2047  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2048  (exit $ac_status); } &&
2049   { ac_try='test -z "$ac_c_werror_flag"
2050       || test ! -s conftest.err'
2051  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2052  (eval $ac_try) 2>&5
2053  ac_status=$?
2054  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2055  (exit $ac_status); }; } &&
2056   { ac_try='test -s conftest.$ac_objext'
2057  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2058  (eval $ac_try) 2>&5
2059  ac_status=$?
2060  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2061  (exit $ac_status); }; }; then
2062  ac_cv_prog_cc_stdc=$ac_arg
2063break
2064else
2065  echo "$as_me: failed program was:" >&5
2066sed 's/^/| /' conftest.$ac_ext >&5
2067
2068fi
2069rm -f conftest.err conftest.$ac_objext
2070done
2071rm -f conftest.$ac_ext conftest.$ac_objext
2072CC=$ac_save_CC
2073
2074fi
2075
2076case "x$ac_cv_prog_cc_stdc" in
2077  x|xno)
2078    echo "$as_me:$LINENO: result: none needed" >&5
2079echo "${ECHO_T}none needed" >&6 ;;
2080  *)
2081    echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2082echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2083    CC="$CC $ac_cv_prog_cc_stdc" ;;
2084esac
2085
2086# Some people use a C++ compiler to compile C.  Since we use `exit',
2087# in C++ we need to declare it.  In case someone uses the same compiler
2088# for both compiling C and C++ we need to have the C++ compiler decide
2089# the declaration of exit, since it's the most demanding environment.
2090cat >conftest.$ac_ext <<_ACEOF
2091#ifndef __cplusplus
2092  choke me
2093#endif
2094_ACEOF
2095rm -f conftest.$ac_objext
2096if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2097  (eval $ac_compile) 2>conftest.er1
2098  ac_status=$?
2099  grep -v '^ *+' conftest.er1 >conftest.err
2100  rm -f conftest.er1
2101  cat conftest.err >&5
2102  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2103  (exit $ac_status); } &&
2104   { ac_try='test -z "$ac_c_werror_flag"
2105       || test ! -s conftest.err'
2106  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2107  (eval $ac_try) 2>&5
2108  ac_status=$?
2109  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2110  (exit $ac_status); }; } &&
2111   { ac_try='test -s conftest.$ac_objext'
2112  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2113  (eval $ac_try) 2>&5
2114  ac_status=$?
2115  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2116  (exit $ac_status); }; }; then
2117  for ac_declaration in \
2118   '' \
2119   'extern "C" void std::exit (int) throw (); using std::exit;' \
2120   'extern "C" void std::exit (int); using std::exit;' \
2121   'extern "C" void exit (int) throw ();' \
2122   'extern "C" void exit (int);' \
2123   'void exit (int);'
2124do
2125  cat >conftest.$ac_ext <<_ACEOF
2126/* confdefs.h.  */
2127_ACEOF
2128cat confdefs.h >>conftest.$ac_ext
2129cat >>conftest.$ac_ext <<_ACEOF
2130/* end confdefs.h.  */
2131$ac_declaration
2132#include <stdlib.h>
2133int
2134main ()
2135{
2136exit (42);
2137  ;
2138  return 0;
2139}
2140_ACEOF
2141rm -f conftest.$ac_objext
2142if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2143  (eval $ac_compile) 2>conftest.er1
2144  ac_status=$?
2145  grep -v '^ *+' conftest.er1 >conftest.err
2146  rm -f conftest.er1
2147  cat conftest.err >&5
2148  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2149  (exit $ac_status); } &&
2150   { ac_try='test -z "$ac_c_werror_flag"
2151       || test ! -s conftest.err'
2152  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2153  (eval $ac_try) 2>&5
2154  ac_status=$?
2155  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2156  (exit $ac_status); }; } &&
2157   { ac_try='test -s conftest.$ac_objext'
2158  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2159  (eval $ac_try) 2>&5
2160  ac_status=$?
2161  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2162  (exit $ac_status); }; }; then
2163  :
2164else
2165  echo "$as_me: failed program was:" >&5
2166sed 's/^/| /' conftest.$ac_ext >&5
2167
2168continue
2169fi
2170rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2171  cat >conftest.$ac_ext <<_ACEOF
2172/* confdefs.h.  */
2173_ACEOF
2174cat confdefs.h >>conftest.$ac_ext
2175cat >>conftest.$ac_ext <<_ACEOF
2176/* end confdefs.h.  */
2177$ac_declaration
2178int
2179main ()
2180{
2181exit (42);
2182  ;
2183  return 0;
2184}
2185_ACEOF
2186rm -f conftest.$ac_objext
2187if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2188  (eval $ac_compile) 2>conftest.er1
2189  ac_status=$?
2190  grep -v '^ *+' conftest.er1 >conftest.err
2191  rm -f conftest.er1
2192  cat conftest.err >&5
2193  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2194  (exit $ac_status); } &&
2195   { ac_try='test -z "$ac_c_werror_flag"
2196       || test ! -s conftest.err'
2197  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2198  (eval $ac_try) 2>&5
2199  ac_status=$?
2200  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2201  (exit $ac_status); }; } &&
2202   { ac_try='test -s conftest.$ac_objext'
2203  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2204  (eval $ac_try) 2>&5
2205  ac_status=$?
2206  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2207  (exit $ac_status); }; }; then
2208  break
2209else
2210  echo "$as_me: failed program was:" >&5
2211sed 's/^/| /' conftest.$ac_ext >&5
2212
2213fi
2214rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2215done
2216rm -f conftest*
2217if test -n "$ac_declaration"; then
2218  echo '#ifdef __cplusplus' >>confdefs.h
2219  echo $ac_declaration      >>confdefs.h
2220  echo '#endif'             >>confdefs.h
2221fi
2222
2223else
2224  echo "$as_me: failed program was:" >&5
2225sed 's/^/| /' conftest.$ac_ext >&5
2226
2227fi
2228rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2229ac_ext=c
2230ac_cpp='$CPP $CPPFLAGS'
2231ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2232ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2233ac_compiler_gnu=$ac_cv_c_compiler_gnu
2234
2235
2236echo "$as_me:$LINENO: checking for res_init" >&5
2237echo $ECHO_N "checking for res_init... $ECHO_C" >&6
2238if test "${ac_cv_func_res_init+set}" = set; then
2239  echo $ECHO_N "(cached) $ECHO_C" >&6
2240else
2241  cat >conftest.$ac_ext <<_ACEOF
2242/* confdefs.h.  */
2243_ACEOF
2244cat confdefs.h >>conftest.$ac_ext
2245cat >>conftest.$ac_ext <<_ACEOF
2246/* end confdefs.h.  */
2247/* Define res_init to an innocuous variant, in case <limits.h> declares res_init.
2248   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2249#define res_init innocuous_res_init
2250
2251/* System header to define __stub macros and hopefully few prototypes,
2252    which can conflict with char res_init (); below.
2253    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2254    <limits.h> exists even on freestanding compilers.  */
2255
2256#ifdef __STDC__
2257# include <limits.h>
2258#else
2259# include <assert.h>
2260#endif
2261
2262#undef res_init
2263
2264/* Override any gcc2 internal prototype to avoid an error.  */
2265#ifdef __cplusplus
2266extern "C"
2267{
2268#endif
2269/* We use char because int might match the return type of a gcc2
2270   builtin and then its argument prototype would still apply.  */
2271char res_init ();
2272/* The GNU C library defines this for functions which it implements
2273    to always fail with ENOSYS.  Some functions are actually named
2274    something starting with __ and the normal name is an alias.  */
2275#if defined (__stub_res_init) || defined (__stub___res_init)
2276choke me
2277#else
2278char (*f) () = res_init;
2279#endif
2280#ifdef __cplusplus
2281}
2282#endif
2283
2284int
2285main ()
2286{
2287return f != res_init;
2288  ;
2289  return 0;
2290}
2291_ACEOF
2292rm -f conftest.$ac_objext conftest$ac_exeext
2293if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2294  (eval $ac_link) 2>conftest.er1
2295  ac_status=$?
2296  grep -v '^ *+' conftest.er1 >conftest.err
2297  rm -f conftest.er1
2298  cat conftest.err >&5
2299  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2300  (exit $ac_status); } &&
2301   { ac_try='test -z "$ac_c_werror_flag"
2302       || test ! -s conftest.err'
2303  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2304  (eval $ac_try) 2>&5
2305  ac_status=$?
2306  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2307  (exit $ac_status); }; } &&
2308   { ac_try='test -s conftest$ac_exeext'
2309  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2310  (eval $ac_try) 2>&5
2311  ac_status=$?
2312  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2313  (exit $ac_status); }; }; then
2314  ac_cv_func_res_init=yes
2315else
2316  echo "$as_me: failed program was:" >&5
2317sed 's/^/| /' conftest.$ac_ext >&5
2318
2319ac_cv_func_res_init=no
2320fi
2321rm -f conftest.err conftest.$ac_objext \
2322      conftest$ac_exeext conftest.$ac_ext
2323fi
2324echo "$as_me:$LINENO: result: $ac_cv_func_res_init" >&5
2325echo "${ECHO_T}$ac_cv_func_res_init" >&6
2326if test $ac_cv_func_res_init = yes; then
2327  :
2328else
2329
2330  echo "$as_me:$LINENO: checking for res_init in -lresolv" >&5
2331echo $ECHO_N "checking for res_init in -lresolv... $ECHO_C" >&6
2332if test "${ac_cv_lib_resolv_res_init+set}" = set; then
2333  echo $ECHO_N "(cached) $ECHO_C" >&6
2334else
2335  ac_check_lib_save_LIBS=$LIBS
2336LIBS="-lresolv  $LIBS"
2337cat >conftest.$ac_ext <<_ACEOF
2338/* confdefs.h.  */
2339_ACEOF
2340cat confdefs.h >>conftest.$ac_ext
2341cat >>conftest.$ac_ext <<_ACEOF
2342/* end confdefs.h.  */
2343
2344/* Override any gcc2 internal prototype to avoid an error.  */
2345#ifdef __cplusplus
2346extern "C"
2347#endif
2348/* We use char because int might match the return type of a gcc2
2349   builtin and then its argument prototype would still apply.  */
2350char res_init ();
2351int
2352main ()
2353{
2354res_init ();
2355  ;
2356  return 0;
2357}
2358_ACEOF
2359rm -f conftest.$ac_objext conftest$ac_exeext
2360if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2361  (eval $ac_link) 2>conftest.er1
2362  ac_status=$?
2363  grep -v '^ *+' conftest.er1 >conftest.err
2364  rm -f conftest.er1
2365  cat conftest.err >&5
2366  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2367  (exit $ac_status); } &&
2368   { ac_try='test -z "$ac_c_werror_flag"
2369       || test ! -s conftest.err'
2370  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2371  (eval $ac_try) 2>&5
2372  ac_status=$?
2373  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2374  (exit $ac_status); }; } &&
2375   { ac_try='test -s conftest$ac_exeext'
2376  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2377  (eval $ac_try) 2>&5
2378  ac_status=$?
2379  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2380  (exit $ac_status); }; }; then
2381  ac_cv_lib_resolv_res_init=yes
2382else
2383  echo "$as_me: failed program was:" >&5
2384sed 's/^/| /' conftest.$ac_ext >&5
2385
2386ac_cv_lib_resolv_res_init=no
2387fi
2388rm -f conftest.err conftest.$ac_objext \
2389      conftest$ac_exeext conftest.$ac_ext
2390LIBS=$ac_check_lib_save_LIBS
2391fi
2392echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_init" >&5
2393echo "${ECHO_T}$ac_cv_lib_resolv_res_init" >&6
2394if test $ac_cv_lib_resolv_res_init = yes; then
2395
2396    RESLIB="-lresolv"
2397
2398else
2399
2400    echo "$as_me:$LINENO: checking for res_init in -lbind" >&5
2401echo $ECHO_N "checking for res_init in -lbind... $ECHO_C" >&6
2402if test "${ac_cv_lib_bind_res_init+set}" = set; then
2403  echo $ECHO_N "(cached) $ECHO_C" >&6
2404else
2405  ac_check_lib_save_LIBS=$LIBS
2406LIBS="-lbind  $LIBS"
2407cat >conftest.$ac_ext <<_ACEOF
2408/* confdefs.h.  */
2409_ACEOF
2410cat confdefs.h >>conftest.$ac_ext
2411cat >>conftest.$ac_ext <<_ACEOF
2412/* end confdefs.h.  */
2413
2414/* Override any gcc2 internal prototype to avoid an error.  */
2415#ifdef __cplusplus
2416extern "C"
2417#endif
2418/* We use char because int might match the return type of a gcc2
2419   builtin and then its argument prototype would still apply.  */
2420char res_init ();
2421int
2422main ()
2423{
2424res_init ();
2425  ;
2426  return 0;
2427}
2428_ACEOF
2429rm -f conftest.$ac_objext conftest$ac_exeext
2430if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2431  (eval $ac_link) 2>conftest.er1
2432  ac_status=$?
2433  grep -v '^ *+' conftest.er1 >conftest.err
2434  rm -f conftest.er1
2435  cat conftest.err >&5
2436  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2437  (exit $ac_status); } &&
2438   { ac_try='test -z "$ac_c_werror_flag"
2439       || test ! -s conftest.err'
2440  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2441  (eval $ac_try) 2>&5
2442  ac_status=$?
2443  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2444  (exit $ac_status); }; } &&
2445   { ac_try='test -s conftest$ac_exeext'
2446  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2447  (eval $ac_try) 2>&5
2448  ac_status=$?
2449  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2450  (exit $ac_status); }; }; then
2451  ac_cv_lib_bind_res_init=yes
2452else
2453  echo "$as_me: failed program was:" >&5
2454sed 's/^/| /' conftest.$ac_ext >&5
2455
2456ac_cv_lib_bind_res_init=no
2457fi
2458rm -f conftest.err conftest.$ac_objext \
2459      conftest$ac_exeext conftest.$ac_ext
2460LIBS=$ac_check_lib_save_LIBS
2461fi
2462echo "$as_me:$LINENO: result: $ac_cv_lib_bind_res_init" >&5
2463echo "${ECHO_T}$ac_cv_lib_bind_res_init" >&6
2464if test $ac_cv_lib_bind_res_init = yes; then
2465
2466      RESLIB="-lbind"
2467
2468else
2469
2470      dns_reslib_avail="false"
2471
2472fi
2473
2474
2475fi
2476
2477
2478fi
2479
2480
2481if test "${dns_reslib_avail}" = "false"; then
2482  dns_reslib_avail="true"
2483
2484  echo "$as_me:$LINENO: checking for __res_init" >&5
2485echo $ECHO_N "checking for __res_init... $ECHO_C" >&6
2486if test "${ac_cv_func___res_init+set}" = set; then
2487  echo $ECHO_N "(cached) $ECHO_C" >&6
2488else
2489  cat >conftest.$ac_ext <<_ACEOF
2490/* confdefs.h.  */
2491_ACEOF
2492cat confdefs.h >>conftest.$ac_ext
2493cat >>conftest.$ac_ext <<_ACEOF
2494/* end confdefs.h.  */
2495/* Define __res_init to an innocuous variant, in case <limits.h> declares __res_init.
2496   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2497#define __res_init innocuous___res_init
2498
2499/* System header to define __stub macros and hopefully few prototypes,
2500    which can conflict with char __res_init (); below.
2501    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2502    <limits.h> exists even on freestanding compilers.  */
2503
2504#ifdef __STDC__
2505# include <limits.h>
2506#else
2507# include <assert.h>
2508#endif
2509
2510#undef __res_init
2511
2512/* Override any gcc2 internal prototype to avoid an error.  */
2513#ifdef __cplusplus
2514extern "C"
2515{
2516#endif
2517/* We use char because int might match the return type of a gcc2
2518   builtin and then its argument prototype would still apply.  */
2519char __res_init ();
2520/* The GNU C library defines this for functions which it implements
2521    to always fail with ENOSYS.  Some functions are actually named
2522    something starting with __ and the normal name is an alias.  */
2523#if defined (__stub___res_init) || defined (__stub_____res_init)
2524choke me
2525#else
2526char (*f) () = __res_init;
2527#endif
2528#ifdef __cplusplus
2529}
2530#endif
2531
2532int
2533main ()
2534{
2535return f != __res_init;
2536  ;
2537  return 0;
2538}
2539_ACEOF
2540rm -f conftest.$ac_objext conftest$ac_exeext
2541if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2542  (eval $ac_link) 2>conftest.er1
2543  ac_status=$?
2544  grep -v '^ *+' conftest.er1 >conftest.err
2545  rm -f conftest.er1
2546  cat conftest.err >&5
2547  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2548  (exit $ac_status); } &&
2549   { ac_try='test -z "$ac_c_werror_flag"
2550       || test ! -s conftest.err'
2551  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2552  (eval $ac_try) 2>&5
2553  ac_status=$?
2554  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2555  (exit $ac_status); }; } &&
2556   { ac_try='test -s conftest$ac_exeext'
2557  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2558  (eval $ac_try) 2>&5
2559  ac_status=$?
2560  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2561  (exit $ac_status); }; }; then
2562  ac_cv_func___res_init=yes
2563else
2564  echo "$as_me: failed program was:" >&5
2565sed 's/^/| /' conftest.$ac_ext >&5
2566
2567ac_cv_func___res_init=no
2568fi
2569rm -f conftest.err conftest.$ac_objext \
2570      conftest$ac_exeext conftest.$ac_ext
2571fi
2572echo "$as_me:$LINENO: result: $ac_cv_func___res_init" >&5
2573echo "${ECHO_T}$ac_cv_func___res_init" >&6
2574if test $ac_cv_func___res_init = yes; then
2575  :
2576else
2577
2578    echo "$as_me:$LINENO: checking for __res_init in -lresolv" >&5
2579echo $ECHO_N "checking for __res_init in -lresolv... $ECHO_C" >&6
2580if test "${ac_cv_lib_resolv___res_init+set}" = set; then
2581  echo $ECHO_N "(cached) $ECHO_C" >&6
2582else
2583  ac_check_lib_save_LIBS=$LIBS
2584LIBS="-lresolv  $LIBS"
2585cat >conftest.$ac_ext <<_ACEOF
2586/* confdefs.h.  */
2587_ACEOF
2588cat confdefs.h >>conftest.$ac_ext
2589cat >>conftest.$ac_ext <<_ACEOF
2590/* end confdefs.h.  */
2591
2592/* Override any gcc2 internal prototype to avoid an error.  */
2593#ifdef __cplusplus
2594extern "C"
2595#endif
2596/* We use char because int might match the return type of a gcc2
2597   builtin and then its argument prototype would still apply.  */
2598char __res_init ();
2599int
2600main ()
2601{
2602__res_init ();
2603  ;
2604  return 0;
2605}
2606_ACEOF
2607rm -f conftest.$ac_objext conftest$ac_exeext
2608if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2609  (eval $ac_link) 2>conftest.er1
2610  ac_status=$?
2611  grep -v '^ *+' conftest.er1 >conftest.err
2612  rm -f conftest.er1
2613  cat conftest.err >&5
2614  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2615  (exit $ac_status); } &&
2616   { ac_try='test -z "$ac_c_werror_flag"
2617       || test ! -s conftest.err'
2618  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2619  (eval $ac_try) 2>&5
2620  ac_status=$?
2621  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2622  (exit $ac_status); }; } &&
2623   { ac_try='test -s conftest$ac_exeext'
2624  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2625  (eval $ac_try) 2>&5
2626  ac_status=$?
2627  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2628  (exit $ac_status); }; }; then
2629  ac_cv_lib_resolv___res_init=yes
2630else
2631  echo "$as_me: failed program was:" >&5
2632sed 's/^/| /' conftest.$ac_ext >&5
2633
2634ac_cv_lib_resolv___res_init=no
2635fi
2636rm -f conftest.err conftest.$ac_objext \
2637      conftest$ac_exeext conftest.$ac_ext
2638LIBS=$ac_check_lib_save_LIBS
2639fi
2640echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_init" >&5
2641echo "${ECHO_T}$ac_cv_lib_resolv___res_init" >&6
2642if test $ac_cv_lib_resolv___res_init = yes; then
2643
2644      RESLIB="-lresolv"
2645
2646else
2647
2648      echo "$as_me:$LINENO: checking for __res_init in -lbind" >&5
2649echo $ECHO_N "checking for __res_init in -lbind... $ECHO_C" >&6
2650if test "${ac_cv_lib_bind___res_init+set}" = set; then
2651  echo $ECHO_N "(cached) $ECHO_C" >&6
2652else
2653  ac_check_lib_save_LIBS=$LIBS
2654LIBS="-lbind  $LIBS"
2655cat >conftest.$ac_ext <<_ACEOF
2656/* confdefs.h.  */
2657_ACEOF
2658cat confdefs.h >>conftest.$ac_ext
2659cat >>conftest.$ac_ext <<_ACEOF
2660/* end confdefs.h.  */
2661
2662/* Override any gcc2 internal prototype to avoid an error.  */
2663#ifdef __cplusplus
2664extern "C"
2665#endif
2666/* We use char because int might match the return type of a gcc2
2667   builtin and then its argument prototype would still apply.  */
2668char __res_init ();
2669int
2670main ()
2671{
2672__res_init ();
2673  ;
2674  return 0;
2675}
2676_ACEOF
2677rm -f conftest.$ac_objext conftest$ac_exeext
2678if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2679  (eval $ac_link) 2>conftest.er1
2680  ac_status=$?
2681  grep -v '^ *+' conftest.er1 >conftest.err
2682  rm -f conftest.er1
2683  cat conftest.err >&5
2684  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2685  (exit $ac_status); } &&
2686   { ac_try='test -z "$ac_c_werror_flag"
2687       || test ! -s conftest.err'
2688  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2689  (eval $ac_try) 2>&5
2690  ac_status=$?
2691  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2692  (exit $ac_status); }; } &&
2693   { ac_try='test -s conftest$ac_exeext'
2694  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2695  (eval $ac_try) 2>&5
2696  ac_status=$?
2697  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2698  (exit $ac_status); }; }; then
2699  ac_cv_lib_bind___res_init=yes
2700else
2701  echo "$as_me: failed program was:" >&5
2702sed 's/^/| /' conftest.$ac_ext >&5
2703
2704ac_cv_lib_bind___res_init=no
2705fi
2706rm -f conftest.err conftest.$ac_objext \
2707      conftest$ac_exeext conftest.$ac_ext
2708LIBS=$ac_check_lib_save_LIBS
2709fi
2710echo "$as_me:$LINENO: result: $ac_cv_lib_bind___res_init" >&5
2711echo "${ECHO_T}$ac_cv_lib_bind___res_init" >&6
2712if test $ac_cv_lib_bind___res_init = yes; then
2713
2714        RESLIB="-lbind"
2715
2716else
2717
2718        dns_reslib_avail="false"
2719
2720fi
2721
2722
2723fi
2724
2725
2726fi
2727
2728fi
2729
2730echo "$as_me:$LINENO: checking for res_mkquery" >&5
2731echo $ECHO_N "checking for res_mkquery... $ECHO_C" >&6
2732if test "${ac_cv_func_res_mkquery+set}" = set; then
2733  echo $ECHO_N "(cached) $ECHO_C" >&6
2734else
2735  cat >conftest.$ac_ext <<_ACEOF
2736/* confdefs.h.  */
2737_ACEOF
2738cat confdefs.h >>conftest.$ac_ext
2739cat >>conftest.$ac_ext <<_ACEOF
2740/* end confdefs.h.  */
2741/* Define res_mkquery to an innocuous variant, in case <limits.h> declares res_mkquery.
2742   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2743#define res_mkquery innocuous_res_mkquery
2744
2745/* System header to define __stub macros and hopefully few prototypes,
2746    which can conflict with char res_mkquery (); below.
2747    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2748    <limits.h> exists even on freestanding compilers.  */
2749
2750#ifdef __STDC__
2751# include <limits.h>
2752#else
2753# include <assert.h>
2754#endif
2755
2756#undef res_mkquery
2757
2758/* Override any gcc2 internal prototype to avoid an error.  */
2759#ifdef __cplusplus
2760extern "C"
2761{
2762#endif
2763/* We use char because int might match the return type of a gcc2
2764   builtin and then its argument prototype would still apply.  */
2765char res_mkquery ();
2766/* The GNU C library defines this for functions which it implements
2767    to always fail with ENOSYS.  Some functions are actually named
2768    something starting with __ and the normal name is an alias.  */
2769#if defined (__stub_res_mkquery) || defined (__stub___res_mkquery)
2770choke me
2771#else
2772char (*f) () = res_mkquery;
2773#endif
2774#ifdef __cplusplus
2775}
2776#endif
2777
2778int
2779main ()
2780{
2781return f != res_mkquery;
2782  ;
2783  return 0;
2784}
2785_ACEOF
2786rm -f conftest.$ac_objext conftest$ac_exeext
2787if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2788  (eval $ac_link) 2>conftest.er1
2789  ac_status=$?
2790  grep -v '^ *+' conftest.er1 >conftest.err
2791  rm -f conftest.er1
2792  cat conftest.err >&5
2793  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2794  (exit $ac_status); } &&
2795   { ac_try='test -z "$ac_c_werror_flag"
2796       || test ! -s conftest.err'
2797  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2798  (eval $ac_try) 2>&5
2799  ac_status=$?
2800  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2801  (exit $ac_status); }; } &&
2802   { ac_try='test -s conftest$ac_exeext'
2803  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2804  (eval $ac_try) 2>&5
2805  ac_status=$?
2806  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2807  (exit $ac_status); }; }; then
2808  ac_cv_func_res_mkquery=yes
2809else
2810  echo "$as_me: failed program was:" >&5
2811sed 's/^/| /' conftest.$ac_ext >&5
2812
2813ac_cv_func_res_mkquery=no
2814fi
2815rm -f conftest.err conftest.$ac_objext \
2816      conftest$ac_exeext conftest.$ac_ext
2817fi
2818echo "$as_me:$LINENO: result: $ac_cv_func_res_mkquery" >&5
2819echo "${ECHO_T}$ac_cv_func_res_mkquery" >&6
2820if test $ac_cv_func_res_mkquery = yes; then
2821  :
2822else
2823
2824  echo "$as_me:$LINENO: checking for res_mkquery in -lresolv" >&5
2825echo $ECHO_N "checking for res_mkquery in -lresolv... $ECHO_C" >&6
2826if test "${ac_cv_lib_resolv_res_mkquery+set}" = set; then
2827  echo $ECHO_N "(cached) $ECHO_C" >&6
2828else
2829  ac_check_lib_save_LIBS=$LIBS
2830LIBS="-lresolv  $LIBS"
2831cat >conftest.$ac_ext <<_ACEOF
2832/* confdefs.h.  */
2833_ACEOF
2834cat confdefs.h >>conftest.$ac_ext
2835cat >>conftest.$ac_ext <<_ACEOF
2836/* end confdefs.h.  */
2837
2838/* Override any gcc2 internal prototype to avoid an error.  */
2839#ifdef __cplusplus
2840extern "C"
2841#endif
2842/* We use char because int might match the return type of a gcc2
2843   builtin and then its argument prototype would still apply.  */
2844char res_mkquery ();
2845int
2846main ()
2847{
2848res_mkquery ();
2849  ;
2850  return 0;
2851}
2852_ACEOF
2853rm -f conftest.$ac_objext conftest$ac_exeext
2854if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2855  (eval $ac_link) 2>conftest.er1
2856  ac_status=$?
2857  grep -v '^ *+' conftest.er1 >conftest.err
2858  rm -f conftest.er1
2859  cat conftest.err >&5
2860  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2861  (exit $ac_status); } &&
2862   { ac_try='test -z "$ac_c_werror_flag"
2863       || test ! -s conftest.err'
2864  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2865  (eval $ac_try) 2>&5
2866  ac_status=$?
2867  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2868  (exit $ac_status); }; } &&
2869   { ac_try='test -s conftest$ac_exeext'
2870  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2871  (eval $ac_try) 2>&5
2872  ac_status=$?
2873  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2874  (exit $ac_status); }; }; then
2875  ac_cv_lib_resolv_res_mkquery=yes
2876else
2877  echo "$as_me: failed program was:" >&5
2878sed 's/^/| /' conftest.$ac_ext >&5
2879
2880ac_cv_lib_resolv_res_mkquery=no
2881fi
2882rm -f conftest.err conftest.$ac_objext \
2883      conftest$ac_exeext conftest.$ac_ext
2884LIBS=$ac_check_lib_save_LIBS
2885fi
2886echo "$as_me:$LINENO: result: $ac_cv_lib_resolv_res_mkquery" >&5
2887echo "${ECHO_T}$ac_cv_lib_resolv_res_mkquery" >&6
2888if test $ac_cv_lib_resolv_res_mkquery = yes; then
2889
2890    if test "x${RESLIB}" != "x-lresolv"; then
2891      RESLIB="${RESLIB} -lresolv"
2892    fi
2893
2894else
2895
2896    echo "$as_me:$LINENO: checking for res_mkquery in -lbind" >&5
2897echo $ECHO_N "checking for res_mkquery in -lbind... $ECHO_C" >&6
2898if test "${ac_cv_lib_bind_res_mkquery+set}" = set; then
2899  echo $ECHO_N "(cached) $ECHO_C" >&6
2900else
2901  ac_check_lib_save_LIBS=$LIBS
2902LIBS="-lbind  $LIBS"
2903cat >conftest.$ac_ext <<_ACEOF
2904/* confdefs.h.  */
2905_ACEOF
2906cat confdefs.h >>conftest.$ac_ext
2907cat >>conftest.$ac_ext <<_ACEOF
2908/* end confdefs.h.  */
2909
2910/* Override any gcc2 internal prototype to avoid an error.  */
2911#ifdef __cplusplus
2912extern "C"
2913#endif
2914/* We use char because int might match the return type of a gcc2
2915   builtin and then its argument prototype would still apply.  */
2916char res_mkquery ();
2917int
2918main ()
2919{
2920res_mkquery ();
2921  ;
2922  return 0;
2923}
2924_ACEOF
2925rm -f conftest.$ac_objext conftest$ac_exeext
2926if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2927  (eval $ac_link) 2>conftest.er1
2928  ac_status=$?
2929  grep -v '^ *+' conftest.er1 >conftest.err
2930  rm -f conftest.er1
2931  cat conftest.err >&5
2932  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2933  (exit $ac_status); } &&
2934   { ac_try='test -z "$ac_c_werror_flag"
2935       || test ! -s conftest.err'
2936  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2937  (eval $ac_try) 2>&5
2938  ac_status=$?
2939  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2940  (exit $ac_status); }; } &&
2941   { ac_try='test -s conftest$ac_exeext'
2942  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2943  (eval $ac_try) 2>&5
2944  ac_status=$?
2945  echo "$as_me:$LINENO: \$? = $ac_status" >&5
2946  (exit $ac_status); }; }; then
2947  ac_cv_lib_bind_res_mkquery=yes
2948else
2949  echo "$as_me: failed program was:" >&5
2950sed 's/^/| /' conftest.$ac_ext >&5
2951
2952ac_cv_lib_bind_res_mkquery=no
2953fi
2954rm -f conftest.err conftest.$ac_objext \
2955      conftest$ac_exeext conftest.$ac_ext
2956LIBS=$ac_check_lib_save_LIBS
2957fi
2958echo "$as_me:$LINENO: result: $ac_cv_lib_bind_res_mkquery" >&5
2959echo "${ECHO_T}$ac_cv_lib_bind_res_mkquery" >&6
2960if test $ac_cv_lib_bind_res_mkquery = yes; then
2961
2962      if test "x${RESLIB}" != "x-lbind"; then
2963        RESLIB="${RESLIB} -lbind"
2964      fi
2965
2966else
2967
2968      dns_reslib_avail="false"
2969
2970fi
2971
2972
2973fi
2974
2975
2976fi
2977
2978
2979if test "${dns_reslib_avail}" = "false"; then
2980  dns_reslib_avail="true"
2981
2982  echo "$as_me:$LINENO: checking for __res_mkquery" >&5
2983echo $ECHO_N "checking for __res_mkquery... $ECHO_C" >&6
2984if test "${ac_cv_func___res_mkquery+set}" = set; then
2985  echo $ECHO_N "(cached) $ECHO_C" >&6
2986else
2987  cat >conftest.$ac_ext <<_ACEOF
2988/* confdefs.h.  */
2989_ACEOF
2990cat confdefs.h >>conftest.$ac_ext
2991cat >>conftest.$ac_ext <<_ACEOF
2992/* end confdefs.h.  */
2993/* Define __res_mkquery to an innocuous variant, in case <limits.h> declares __res_mkquery.
2994   For example, HP-UX 11i <limits.h> declares gettimeofday.  */
2995#define __res_mkquery innocuous___res_mkquery
2996
2997/* System header to define __stub macros and hopefully few prototypes,
2998    which can conflict with char __res_mkquery (); below.
2999    Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3000    <limits.h> exists even on freestanding compilers.  */
3001
3002#ifdef __STDC__
3003# include <limits.h>
3004#else
3005# include <assert.h>
3006#endif
3007
3008#undef __res_mkquery
3009
3010/* Override any gcc2 internal prototype to avoid an error.  */
3011#ifdef __cplusplus
3012extern "C"
3013{
3014#endif
3015/* We use char because int might match the return type of a gcc2
3016   builtin and then its argument prototype would still apply.  */
3017char __res_mkquery ();
3018/* The GNU C library defines this for functions which it implements
3019    to always fail with ENOSYS.  Some functions are actually named
3020    something starting with __ and the normal name is an alias.  */
3021#if defined (__stub___res_mkquery) || defined (__stub_____res_mkquery)
3022choke me
3023#else
3024char (*f) () = __res_mkquery;
3025#endif
3026#ifdef __cplusplus
3027}
3028#endif
3029
3030int
3031main ()
3032{
3033return f != __res_mkquery;
3034  ;
3035  return 0;
3036}
3037_ACEOF
3038rm -f conftest.$ac_objext conftest$ac_exeext
3039if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3040  (eval $ac_link) 2>conftest.er1
3041  ac_status=$?
3042  grep -v '^ *+' conftest.er1 >conftest.err
3043  rm -f conftest.er1
3044  cat conftest.err >&5
3045  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3046  (exit $ac_status); } &&
3047   { ac_try='test -z "$ac_c_werror_flag"
3048       || test ! -s conftest.err'
3049  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3050  (eval $ac_try) 2>&5
3051  ac_status=$?
3052  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3053  (exit $ac_status); }; } &&
3054   { ac_try='test -s conftest$ac_exeext'
3055  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3056  (eval $ac_try) 2>&5
3057  ac_status=$?
3058  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3059  (exit $ac_status); }; }; then
3060  ac_cv_func___res_mkquery=yes
3061else
3062  echo "$as_me: failed program was:" >&5
3063sed 's/^/| /' conftest.$ac_ext >&5
3064
3065ac_cv_func___res_mkquery=no
3066fi
3067rm -f conftest.err conftest.$ac_objext \
3068      conftest$ac_exeext conftest.$ac_ext
3069fi
3070echo "$as_me:$LINENO: result: $ac_cv_func___res_mkquery" >&5
3071echo "${ECHO_T}$ac_cv_func___res_mkquery" >&6
3072if test $ac_cv_func___res_mkquery = yes; then
3073  :
3074else
3075
3076    echo "$as_me:$LINENO: checking for __res_mkquery in -lresolv" >&5
3077echo $ECHO_N "checking for __res_mkquery in -lresolv... $ECHO_C" >&6
3078if test "${ac_cv_lib_resolv___res_mkquery+set}" = set; then
3079  echo $ECHO_N "(cached) $ECHO_C" >&6
3080else
3081  ac_check_lib_save_LIBS=$LIBS
3082LIBS="-lresolv  $LIBS"
3083cat >conftest.$ac_ext <<_ACEOF
3084/* confdefs.h.  */
3085_ACEOF
3086cat confdefs.h >>conftest.$ac_ext
3087cat >>conftest.$ac_ext <<_ACEOF
3088/* end confdefs.h.  */
3089
3090/* Override any gcc2 internal prototype to avoid an error.  */
3091#ifdef __cplusplus
3092extern "C"
3093#endif
3094/* We use char because int might match the return type of a gcc2
3095   builtin and then its argument prototype would still apply.  */
3096char __res_mkquery ();
3097int
3098main ()
3099{
3100__res_mkquery ();
3101  ;
3102  return 0;
3103}
3104_ACEOF
3105rm -f conftest.$ac_objext conftest$ac_exeext
3106if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3107  (eval $ac_link) 2>conftest.er1
3108  ac_status=$?
3109  grep -v '^ *+' conftest.er1 >conftest.err
3110  rm -f conftest.er1
3111  cat conftest.err >&5
3112  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3113  (exit $ac_status); } &&
3114   { ac_try='test -z "$ac_c_werror_flag"
3115       || test ! -s conftest.err'
3116  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3117  (eval $ac_try) 2>&5
3118  ac_status=$?
3119  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3120  (exit $ac_status); }; } &&
3121   { ac_try='test -s conftest$ac_exeext'
3122  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3123  (eval $ac_try) 2>&5
3124  ac_status=$?
3125  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3126  (exit $ac_status); }; }; then
3127  ac_cv_lib_resolv___res_mkquery=yes
3128else
3129  echo "$as_me: failed program was:" >&5
3130sed 's/^/| /' conftest.$ac_ext >&5
3131
3132ac_cv_lib_resolv___res_mkquery=no
3133fi
3134rm -f conftest.err conftest.$ac_objext \
3135      conftest$ac_exeext conftest.$ac_ext
3136LIBS=$ac_check_lib_save_LIBS
3137fi
3138echo "$as_me:$LINENO: result: $ac_cv_lib_resolv___res_mkquery" >&5
3139echo "${ECHO_T}$ac_cv_lib_resolv___res_mkquery" >&6
3140if test $ac_cv_lib_resolv___res_mkquery = yes; then
3141
3142      if test "x${RESLIB}" != "x-lresolv"; then
3143        RESLIB="${RESLIB} -lresolv"
3144      fi
3145
3146else
3147
3148      echo "$as_me:$LINENO: checking for __res_mkquery in -lbind" >&5
3149echo $ECHO_N "checking for __res_mkquery in -lbind... $ECHO_C" >&6
3150if test "${ac_cv_lib_bind___res_mkquery+set}" = set; then
3151  echo $ECHO_N "(cached) $ECHO_C" >&6
3152else
3153  ac_check_lib_save_LIBS=$LIBS
3154LIBS="-lbind  $LIBS"
3155cat >conftest.$ac_ext <<_ACEOF
3156/* confdefs.h.  */
3157_ACEOF
3158cat confdefs.h >>conftest.$ac_ext
3159cat >>conftest.$ac_ext <<_ACEOF
3160/* end confdefs.h.  */
3161
3162/* Override any gcc2 internal prototype to avoid an error.  */
3163#ifdef __cplusplus
3164extern "C"
3165#endif
3166/* We use char because int might match the return type of a gcc2
3167   builtin and then its argument prototype would still apply.  */
3168char __res_mkquery ();
3169int
3170main ()
3171{
3172__res_mkquery ();
3173  ;
3174  return 0;
3175}
3176_ACEOF
3177rm -f conftest.$ac_objext conftest$ac_exeext
3178if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3179  (eval $ac_link) 2>conftest.er1
3180  ac_status=$?
3181  grep -v '^ *+' conftest.er1 >conftest.err
3182  rm -f conftest.er1
3183  cat conftest.err >&5
3184  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3185  (exit $ac_status); } &&
3186   { ac_try='test -z "$ac_c_werror_flag"
3187       || test ! -s conftest.err'
3188  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3189  (eval $ac_try) 2>&5
3190  ac_status=$?
3191  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3192  (exit $ac_status); }; } &&
3193   { ac_try='test -s conftest$ac_exeext'
3194  { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3195  (eval $ac_try) 2>&5
3196  ac_status=$?
3197  echo "$as_me:$LINENO: \$? = $ac_status" >&5
3198  (exit $ac_status); }; }; then
3199  ac_cv_lib_bind___res_mkquery=yes
3200else
3201  echo "$as_me: failed program was:" >&5
3202sed 's/^/| /' conftest.$ac_ext >&5
3203
3204ac_cv_lib_bind___res_mkquery=no
3205fi
3206rm -f conftest.err conftest.$ac_objext \
3207      conftest$ac_exeext conftest.$ac_ext
3208LIBS=$ac_check_lib_save_LIBS
3209fi
3210echo "$as_me:$LINENO: result: $ac_cv_lib_bind___res_mkquery" >&5
3211echo "${ECHO_T}$ac_cv_lib_bind___res_mkquery" >&6
3212if test $ac_cv_lib_bind___res_mkquery = yes; then
3213
3214        if test "x${RESLIB}" != "x-lbind"; then
3215          RESLIB="${RESLIB} -lbind"
3216        fi
3217
3218else
3219
3220        dns_reslib_avail="false";
3221
3222fi
3223
3224
3225fi
3226
3227
3228fi
3229
3230fi
3231
3232# Cygwin checks.
3233# Make sure we can run config.sub.
3234$ac_config_sub sun4 >/dev/null 2>&1 ||
3235  { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5
3236echo "$as_me: error: cannot run $ac_config_sub" >&2;}
3237   { (exit 1); exit 1; }; }
3238
3239echo "$as_me:$LINENO: checking build system type" >&5
3240echo $ECHO_N "checking build system type... $ECHO_C" >&6
3241if test "${ac_cv_build+set}" = set; then
3242  echo $ECHO_N "(cached) $ECHO_C" >&6
3243else
3244  ac_cv_build_alias=$build_alias
3245test -z "$ac_cv_build_alias" &&
3246  ac_cv_build_alias=`$ac_config_guess`
3247test -z "$ac_cv_build_alias" &&
3248  { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
3249echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
3250   { (exit 1); exit 1; }; }
3251ac_cv_build=`$ac_config_sub $ac_cv_build_alias` ||
3252  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5
3253echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;}
3254   { (exit 1); exit 1; }; }
3255
3256fi
3257echo "$as_me:$LINENO: result: $ac_cv_build" >&5
3258echo "${ECHO_T}$ac_cv_build" >&6
3259build=$ac_cv_build
3260build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3261build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3262build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3263
3264
3265echo "$as_me:$LINENO: checking host system type" >&5
3266echo $ECHO_N "checking host system type... $ECHO_C" >&6
3267if test "${ac_cv_host+set}" = set; then
3268  echo $ECHO_N "(cached) $ECHO_C" >&6
3269else
3270  ac_cv_host_alias=$host_alias
3271test -z "$ac_cv_host_alias" &&
3272  ac_cv_host_alias=$ac_cv_build_alias
3273ac_cv_host=`$ac_config_sub $ac_cv_host_alias` ||
3274  { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5
3275echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;}
3276   { (exit 1); exit 1; }; }
3277
3278fi
3279echo "$as_me:$LINENO: result: $ac_cv_host" >&5
3280echo "${ECHO_T}$ac_cv_host" >&6
3281host=$ac_cv_host
3282host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'`
3283host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'`
3284host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'`
3285
3286
3287if test "${dns_reslib_avail}" = "false"; then
3288  case $host_os in
3289    *cygwin* )
3290      echo "$as_me:$LINENO: checking for /usr/local/bind/lib/libbind.a" >&5
3291echo $ECHO_N "checking for /usr/local/bind/lib/libbind.a... $ECHO_C" >&6
3292      if test -r /usr/local/bind/lib/libbind.a; then
3293        echo "$as_me:$LINENO: result: yes" >&5
3294echo "${ECHO_T}yes" >&6
3295        RESLIB="${RESLIB} -L/usr/local/bind/lib -lbind"
3296        RESINCLUDE="-I/usr/local/bind/include"
3297        dns_reslib_avail="true"
3298      else
3299        echo "$as_me:$LINENO: result: no" >&5
3300echo "${ECHO_T}no" >&6
3301      fi
3302    ;;
3303  esac
3304fi
3305
3306if test "${dns_reslib_avail}" = "false"; then
3307  cat >&2 <<EOF
3308configure: warning:
3309
3310  Your system provides no functional resolver library. The DNS
3311  module will therefore be disabled.
3312
3313EOF
3314
3315  ${srcdir}/../../ifiles/modconfig -q --top_srcdir=${srcdir}/../.. --bindir=../.. del dns
3316
3317fi
3318
3319
3320
3321
3322          ac_config_files="$ac_config_files Makefile"
3323
3324cat >confcache <<\_ACEOF
3325# This file is a shell script that caches the results of configure
3326# tests run on this system so they can be shared between configure
3327# scripts and configure runs, see configure's option --config-cache.
3328# It is not useful on other systems.  If it contains results you don't
3329# want to keep, you may remove or edit it.
3330#
3331# config.status only pays attention to the cache file if you give it
3332# the --recheck option to rerun configure.
3333#
3334# `ac_cv_env_foo' variables (set or unset) will be overridden when
3335# loading this file, other *unset* `ac_cv_foo' will be assigned the
3336# following values.
3337
3338_ACEOF
3339
3340# The following way of writing the cache mishandles newlines in values,
3341# but we know of no workaround that is simple, portable, and efficient.
3342# So, don't put newlines in cache variables' values.
3343# Ultrix sh set writes to stderr and can't be redirected directly,
3344# and sets the high bit in the cache file unless we assign to the vars.
3345{
3346  (set) 2>&1 |
3347    case `(ac_space=' '; set | grep ac_space) 2>&1` in
3348    *ac_space=\ *)
3349      # `set' does not quote correctly, so add quotes (double-quote
3350      # substitution turns \\\\ into \\, and sed turns \\ into \).
3351      sed -n \
3352  "s/'/'\\\\''/g;
3353    s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
3354      ;;
3355    *)
3356      # `set' quotes correctly as required by POSIX, so do not add quotes.
3357      sed -n \
3358  "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
3359      ;;
3360    esac;
3361} |
3362  sed '
3363     t clear
3364     : clear
3365     s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
3366     t end
3367     /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
3368     : end' >>confcache
3369if diff $cache_file confcache >/dev/null 2>&1; then :; else
3370  if test -w $cache_file; then
3371    test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
3372    cat confcache >$cache_file
3373  else
3374    echo "not updating unwritable cache $cache_file"
3375  fi
3376fi
3377rm -f confcache
3378
3379test "x$prefix" = xNONE && prefix=$ac_default_prefix
3380# Let make expand exec_prefix.
3381test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
3382
3383# VPATH may cause trouble with some makes, so we remove $(srcdir),
3384# ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
3385# trailing colons and then remove the whole line if VPATH becomes empty
3386# (actually we leave an empty line to preserve line numbers).
3387if test "x$srcdir" = x.; then
3388  ac_vpsub='/^[  ]*VPATH[  ]*=/{
3389s/:*\$(srcdir):*/:/;
3390s/:*\${srcdir}:*/:/;
3391s/:*@srcdir@:*/:/;
3392s/^\([^=]*=[   ]*\):*/\1/;
3393s/:*$//;
3394s/^[^=]*=[   ]*$//;
3395}'
3396fi
3397
3398# Transform confdefs.h into DEFS.
3399# Protect against shell expansion while executing Makefile rules.
3400# Protect against Makefile macro expansion.
3401#
3402# If the first sed substitution is executed (which looks for macros that
3403# take arguments), then we branch to the quote section.  Otherwise,
3404# look for a macro that doesn't take arguments.
3405cat >confdef2opt.sed <<\_ACEOF
3406t clear
3407: clear
3408s,^[   ]*#[  ]*define[   ][  ]*\([^  (][^  (]*([^)]*)\)[   ]*\(.*\),-D\1=\2,g
3409t quote
3410s,^[   ]*#[  ]*define[   ][  ]*\([^  ][^   ]*\)[   ]*\(.*\),-D\1=\2,g
3411t quote
3412d
3413: quote
3414s,[  `~#$^&*(){}\\|;'"<>?],\\&,g
3415s,\[,\\&,g
3416s,\],\\&,g
3417s,\$,$$,g
3418p
3419_ACEOF
3420# We use echo to avoid assuming a particular line-breaking character.
3421# The extra dot is to prevent the shell from consuming trailing
3422# line-breaks from the sub-command output.  A line-break within
3423# single-quotes doesn't work because, if this script is created in a
3424# platform that uses two characters for line-breaks (e.g., DOS), tr
3425# would break.
3426ac_LF_and_DOT=`echo; echo .`
3427DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
3428rm -f confdef2opt.sed
3429
3430
3431ac_libobjs=
3432ac_ltlibobjs=
3433for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
3434  # 1. Remove the extension, and $U if already installed.
3435  ac_i=`echo "$ac_i" |
3436   sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
3437  # 2. Add them.
3438  ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
3439  ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
3440done
3441LIBOBJS=$ac_libobjs
3442
3443LTLIBOBJS=$ac_ltlibobjs
3444
3445
3446
3447: ${CONFIG_STATUS=./config.status}
3448ac_clean_files_save=$ac_clean_files
3449ac_clean_files="$ac_clean_files $CONFIG_STATUS"
3450{ echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
3451echo "$as_me: creating $CONFIG_STATUS" >&6;}
3452cat >$CONFIG_STATUS <<_ACEOF
3453#! $SHELL
3454# Generated by $as_me.
3455# Run this file to recreate the current configuration.
3456# Compiler output produced by configure, useful for debugging
3457# configure, is in config.log if it exists.
3458
3459debug=false
3460ac_cs_recheck=false
3461ac_cs_silent=false
3462SHELL=\${CONFIG_SHELL-$SHELL}
3463_ACEOF
3464
3465cat >>$CONFIG_STATUS <<\_ACEOF
3466## --------------------- ##
3467## M4sh Initialization.  ##
3468## --------------------- ##
3469
3470# Be Bourne compatible
3471if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
3472  emulate sh
3473  NULLCMD=:
3474  # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
3475  # is contrary to our usage.  Disable this feature.
3476  alias -g '${1+"$@"}'='"$@"'
3477elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
3478  set -o posix
3479fi
3480DUALCASE=1; export DUALCASE # for MKS sh
3481
3482# Support unset when possible.
3483if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
3484  as_unset=unset
3485else
3486  as_unset=false
3487fi
3488
3489
3490# Work around bugs in pre-3.0 UWIN ksh.
3491$as_unset ENV MAIL MAILPATH
3492PS1='$ '
3493PS2='> '
3494PS4='+ '
3495
3496# NLS nuisances.
3497for as_var in \
3498  LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
3499  LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
3500  LC_TELEPHONE LC_TIME
3501do
3502  if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
3503    eval $as_var=C; export $as_var
3504  else
3505    $as_unset $as_var
3506  fi
3507done
3508
3509# Required to use basename.
3510if expr a : '\(a\)' >/dev/null 2>&1; then
3511  as_expr=expr
3512else
3513  as_expr=false
3514fi
3515
3516if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
3517  as_basename=basename
3518else
3519  as_basename=false
3520fi
3521
3522
3523# Name of the executable.
3524as_me=`$as_basename "$0" ||
3525$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
3526   X"$0" : 'X\(//\)$' \| \
3527   X"$0" : 'X\(/\)$' \| \
3528   .     : '\(.\)' 2>/dev/null ||
3529echo X/"$0" |
3530    sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
3531      /^X\/\(\/\/\)$/{ s//\1/; q; }
3532      /^X\/\(\/\).*/{ s//\1/; q; }
3533      s/.*/./; q'`
3534
3535
3536# PATH needs CR, and LINENO needs CR and PATH.
3537# Avoid depending upon Character Ranges.
3538as_cr_letters='abcdefghijklmnopqrstuvwxyz'
3539as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
3540as_cr_Letters=$as_cr_letters$as_cr_LETTERS
3541as_cr_digits='0123456789'
3542as_cr_alnum=$as_cr_Letters$as_cr_digits
3543
3544# The user is always right.
3545if test "${PATH_SEPARATOR+set}" != set; then
3546  echo "#! /bin/sh" >conf$$.sh
3547  echo  "exit 0"   >>conf$$.sh
3548  chmod +x conf$$.sh
3549  if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
3550    PATH_SEPARATOR=';'
3551  else
3552    PATH_SEPARATOR=:
3553  fi
3554  rm -f conf$$.sh
3555fi
3556
3557
3558  as_lineno_1=$LINENO
3559  as_lineno_2=$LINENO
3560  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3561  test "x$as_lineno_1" != "x$as_lineno_2" &&
3562  test "x$as_lineno_3"  = "x$as_lineno_2"  || {
3563  # Find who we are.  Look in the path if we contain no path at all
3564  # relative or not.
3565  case $0 in
3566    *[\\/]* ) as_myself=$0 ;;
3567    *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3568for as_dir in $PATH
3569do
3570  IFS=$as_save_IFS
3571  test -z "$as_dir" && as_dir=.
3572  test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
3573done
3574
3575       ;;
3576  esac
3577  # We did not find ourselves, most probably we were run as `sh COMMAND'
3578  # in which case we are not to be found in the path.
3579  if test "x$as_myself" = x; then
3580    as_myself=$0
3581  fi
3582  if test ! -f "$as_myself"; then
3583    { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
3584echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
3585   { (exit 1); exit 1; }; }
3586  fi
3587  case $CONFIG_SHELL in
3588  '')
3589    as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3590for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
3591do
3592  IFS=$as_save_IFS
3593  test -z "$as_dir" && as_dir=.
3594  for as_base in sh bash ksh sh5; do
3595   case $as_dir in
3596   /*)
3597     if ("$as_dir/$as_base" -c '
3598  as_lineno_1=$LINENO
3599  as_lineno_2=$LINENO
3600  as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
3601  test "x$as_lineno_1" != "x$as_lineno_2" &&
3602  test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
3603       $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
3604       $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
3605       CONFIG_SHELL=$as_dir/$as_base
3606       export CONFIG_SHELL
3607       exec "$CONFIG_SHELL" "$0" ${1+"$@"}
3608     fi;;
3609   esac
3610       done
3611done
3612;;
3613  esac
3614
3615  # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
3616  # uniformly replaced by the line number.  The first 'sed' inserts a
3617  # line-number line before each line; the second 'sed' does the real
3618  # work.  The second script uses 'N' to pair each line-number line
3619  # with the numbered line, and appends trailing '-' during
3620  # substitution so that $LINENO is not a special case at line end.
3621  # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
3622  # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
3623  sed '=' <$as_myself |
3624    sed '
3625      N
3626      s,$,-,
3627      : loop
3628      s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
3629      t loop
3630      s,-$,,
3631      s,^['$as_cr_digits']*\n,,
3632    ' >$as_me.lineno &&
3633  chmod +x $as_me.lineno ||
3634    { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
3635echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
3636   { (exit 1); exit 1; }; }
3637
3638  # Don't try to exec as it changes $[0], causing all sort of problems
3639  # (the dirname of $[0] is not the place where we might find the
3640  # original and so on.  Autoconf is especially sensible to this).
3641  . ./$as_me.lineno
3642  # Exit status is that of the last command.
3643  exit
3644}
3645
3646
3647case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
3648  *c*,-n*) ECHO_N= ECHO_C='
3649' ECHO_T='  ' ;;
3650  *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
3651  *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
3652esac
3653
3654if expr a : '\(a\)' >/dev/null 2>&1; then
3655  as_expr=expr
3656else
3657  as_expr=false
3658fi
3659
3660rm -f conf$$ conf$$.exe conf$$.file
3661echo >conf$$.file
3662if ln -s conf$$.file conf$$ 2>/dev/null; then
3663  # We could just check for DJGPP; but this test a) works b) is more generic
3664  # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
3665  if test -f conf$$.exe; then
3666    # Don't use ln at all; we don't have any links
3667    as_ln_s='cp -p'
3668  else
3669    as_ln_s='ln -s'
3670  fi
3671elif ln conf$$.file conf$$ 2>/dev/null; then
3672  as_ln_s=ln
3673else
3674  as_ln_s='cp -p'
3675fi
3676rm -f conf$$ conf$$.exe conf$$.file
3677
3678if mkdir -p . 2>/dev/null; then
3679  as_mkdir_p=:
3680else
3681  test -d ./-p && rmdir ./-p
3682  as_mkdir_p=false
3683fi
3684
3685as_executable_p="test -f"
3686
3687# Sed expression to map a string onto a valid CPP name.
3688as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
3689
3690# Sed expression to map a string onto a valid variable name.
3691as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
3692
3693
3694# IFS
3695# We need space, tab and new line, in precisely that order.
3696as_nl='
3697'
3698IFS="   $as_nl"
3699
3700# CDPATH.
3701$as_unset CDPATH
3702
3703exec 6>&1
3704
3705# Open the log real soon, to keep \$[0] and so on meaningful, and to
3706# report actual input values of CONFIG_FILES etc. instead of their
3707# values after options handling.  Logging --version etc. is OK.
3708exec 5>>config.log
3709{
3710  echo
3711  sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
3712## Running $as_me. ##
3713_ASBOX
3714} >&5
3715cat >&5 <<_CSEOF
3716
3717This file was extended by Eggdrop DNS Module $as_me 1.6.18, which was
3718generated by GNU Autoconf 2.59.  Invocation command line was
3719
3720  CONFIG_FILES    = $CONFIG_FILES
3721  CONFIG_HEADERS  = $CONFIG_HEADERS
3722  CONFIG_LINKS    = $CONFIG_LINKS
3723  CONFIG_COMMANDS = $CONFIG_COMMANDS
3724  $ $0 $@
3725
3726_CSEOF
3727echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
3728echo >&5
3729_ACEOF
3730
3731# Files that config.status was made for.
3732if test -n "$ac_config_files"; then
3733  echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
3734fi
3735
3736if test -n "$ac_config_headers"; then
3737  echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
3738fi
3739
3740if test -n "$ac_config_links"; then
3741  echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
3742fi
3743
3744if test -n "$ac_config_commands"; then
3745  echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
3746fi
3747
3748cat >>$CONFIG_STATUS <<\_ACEOF
3749
3750ac_cs_usage="\
3751\`$as_me' instantiates files from templates according to the
3752current configuration.
3753
3754Usage: $0 [OPTIONS] [FILE]...
3755
3756  -h, --help       print this help, then exit
3757  -V, --version    print version number, then exit
3758  -q, --quiet      do not print progress messages
3759  -d, --debug      don't remove temporary files
3760      --recheck    update $as_me by reconfiguring in the same conditions
3761  --file=FILE[:TEMPLATE]
3762       instantiate the configuration file FILE
3763
3764Configuration files:
3765$config_files
3766
3767Report bugs to <bug-autoconf@gnu.org>."
3768_ACEOF
3769
3770cat >>$CONFIG_STATUS <<_ACEOF
3771ac_cs_version="\\
3772Eggdrop DNS Module config.status 1.6.18
3773configured by $0, generated by GNU Autoconf 2.59,
3774  with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
3775
3776Copyright (C) 2003 Free Software Foundation, Inc.
3777This config.status script is free software; the Free Software Foundation
3778gives unlimited permission to copy, distribute and modify it."
3779srcdir=$srcdir
3780_ACEOF
3781
3782cat >>$CONFIG_STATUS <<\_ACEOF
3783# If no file are specified by the user, then we need to provide default
3784# value.  By we need to know if files were specified by the user.
3785ac_need_defaults=:
3786while test $# != 0
3787do
3788  case $1 in
3789  --*=*)
3790    ac_option=`expr "x$1" : 'x\([^=]*\)='`
3791    ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
3792    ac_shift=:
3793    ;;
3794  -*)
3795    ac_option=$1
3796    ac_optarg=$2
3797    ac_shift=shift
3798    ;;
3799  *) # This is not an option, so the user has probably given explicit
3800     # arguments.
3801     ac_option=$1
3802     ac_need_defaults=false;;
3803  esac
3804
3805  case $ac_option in
3806  # Handling of the options.
3807_ACEOF
3808cat >>$CONFIG_STATUS <<\_ACEOF
3809  -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
3810    ac_cs_recheck=: ;;
3811  --version | --vers* | -V )
3812    echo "$ac_cs_version"; exit 0 ;;
3813  --he | --h)
3814    # Conflict between --help and --header
3815    { { echo "$as_me:$LINENO: error: ambiguous option: $1
3816Try \`$0 --help' for more information." >&5
3817echo "$as_me: error: ambiguous option: $1
3818Try \`$0 --help' for more information." >&2;}
3819   { (exit 1); exit 1; }; };;
3820  --help | --hel | -h )
3821    echo "$ac_cs_usage"; exit 0 ;;
3822  --debug | --d* | -d )
3823    debug=: ;;
3824  --file | --fil | --fi | --f )
3825    $ac_shift
3826    CONFIG_FILES="$CONFIG_FILES $ac_optarg"
3827    ac_need_defaults=false;;
3828  --header | --heade | --head | --hea )
3829    $ac_shift
3830    CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
3831    ac_need_defaults=false;;
3832  -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3833  | -silent | --silent | --silen | --sile | --sil | --si | --s)
3834    ac_cs_silent=: ;;
3835
3836  # This is an error.
3837  -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
3838Try \`$0 --help' for more information." >&5
3839echo "$as_me: error: unrecognized option: $1
3840Try \`$0 --help' for more information." >&2;}
3841   { (exit 1); exit 1; }; } ;;
3842
3843  *) ac_config_targets="$ac_config_targets $1" ;;
3844
3845  esac
3846  shift
3847done
3848
3849ac_configure_extra_args=
3850
3851if $ac_cs_silent; then
3852  exec 6>/dev/null
3853  ac_configure_extra_args="$ac_configure_extra_args --silent"
3854fi
3855
3856_ACEOF
3857cat >>$CONFIG_STATUS <<_ACEOF
3858if \$ac_cs_recheck; then
3859  echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
3860  exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
3861fi
3862
3863_ACEOF
3864
3865
3866
3867
3868
3869cat >>$CONFIG_STATUS <<\_ACEOF
3870for ac_config_target in $ac_config_targets
3871do
3872  case "$ac_config_target" in
3873  # Handling of arguments.
3874  "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
3875  *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
3876echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
3877   { (exit 1); exit 1; }; };;
3878  esac
3879done
3880
3881# If the user did not use the arguments to specify the items to instantiate,
3882# then the envvar interface is used.  Set only those that are not.
3883# We use the long form for the default assignment because of an extremely
3884# bizarre bug on SunOS 4.1.3.
3885if $ac_need_defaults; then
3886  test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
3887fi
3888
3889# Have a temporary directory for convenience.  Make it in the build tree
3890# simply because there is no reason to put it here, and in addition,
3891# creating and moving files from /tmp can sometimes cause problems.
3892# Create a temporary directory, and hook for its removal unless debugging.
3893$debug ||
3894{
3895  trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
3896  trap '{ (exit 1); exit 1; }' 1 2 13 15
3897}
3898
3899# Create a (secure) tmp directory for tmp files.
3900
3901{
3902  tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
3903  test -n "$tmp" && test -d "$tmp"
3904}  ||
3905{
3906  tmp=./confstat$$-$RANDOM
3907  (umask 077 && mkdir $tmp)
3908} ||
3909{
3910   echo "$me: cannot create a temporary directory in ." >&2
3911   { (exit 1); exit 1; }
3912}
3913
3914_ACEOF
3915
3916cat >>$CONFIG_STATUS <<_ACEOF
3917
3918#
3919# CONFIG_FILES section.
3920#
3921
3922# No need to generate the scripts if there are no CONFIG_FILES.
3923# This happens for instance when ./config.status config.h
3924if test -n "\$CONFIG_FILES"; then
3925  # Protect against being on the right side of a sed subst in config.status.
3926  sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
3927   s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
3928s,@SHELL@,$SHELL,;t t
3929s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
3930s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
3931s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
3932s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
3933s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
3934s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
3935s,@exec_prefix@,$exec_prefix,;t t
3936s,@prefix@,$prefix,;t t
3937s,@program_transform_name@,$program_transform_name,;t t
3938s,@bindir@,$bindir,;t t
3939s,@sbindir@,$sbindir,;t t
3940s,@libexecdir@,$libexecdir,;t t
3941s,@datadir@,$datadir,;t t
3942s,@sysconfdir@,$sysconfdir,;t t
3943s,@sharedstatedir@,$sharedstatedir,;t t
3944s,@localstatedir@,$localstatedir,;t t
3945s,@libdir@,$libdir,;t t
3946s,@includedir@,$includedir,;t t
3947s,@oldincludedir@,$oldincludedir,;t t
3948s,@infodir@,$infodir,;t t
3949s,@mandir@,$mandir,;t t
3950s,@build_alias@,$build_alias,;t t
3951s,@host_alias@,$host_alias,;t t
3952s,@target_alias@,$target_alias,;t t
3953s,@DEFS@,$DEFS,;t t
3954s,@ECHO_C@,$ECHO_C,;t t
3955s,@ECHO_N@,$ECHO_N,;t t
3956s,@ECHO_T@,$ECHO_T,;t t
3957s,@LIBS@,$LIBS,;t t
3958s,@CC@,$CC,;t t
3959s,@CFLAGS@,$CFLAGS,;t t
3960s,@LDFLAGS@,$LDFLAGS,;t t
3961s,@CPPFLAGS@,$CPPFLAGS,;t t
3962s,@ac_ct_CC@,$ac_ct_CC,;t t
3963s,@EXEEXT@,$EXEEXT,;t t
3964s,@OBJEXT@,$OBJEXT,;t t
3965s,@build@,$build,;t t
3966s,@build_cpu@,$build_cpu,;t t
3967s,@build_vendor@,$build_vendor,;t t
3968s,@build_os@,$build_os,;t t
3969s,@host@,$host,;t t
3970s,@host_cpu@,$host_cpu,;t t
3971s,@host_vendor@,$host_vendor,;t t
3972s,@host_os@,$host_os,;t t
3973s,@RESLIB@,$RESLIB,;t t
3974s,@RESINCLUDE@,$RESINCLUDE,;t t
3975s,@LIBOBJS@,$LIBOBJS,;t t
3976s,@LTLIBOBJS@,$LTLIBOBJS,;t t
3977CEOF
3978
3979_ACEOF
3980
3981  cat >>$CONFIG_STATUS <<\_ACEOF
3982  # Split the substitutions into bite-sized pieces for seds with
3983  # small command number limits, like on Digital OSF/1 and HP-UX.
3984  ac_max_sed_lines=48
3985  ac_sed_frag=1 # Number of current file.
3986  ac_beg=1 # First line for current file.
3987  ac_end=$ac_max_sed_lines # Line after last line for current file.
3988  ac_more_lines=:
3989  ac_sed_cmds=
3990  while $ac_more_lines; do
3991    if test $ac_beg -gt 1; then
3992      sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
3993    else
3994      sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
3995    fi
3996    if test ! -s $tmp/subs.frag; then
3997      ac_more_lines=false
3998    else
3999      # The purpose of the label and of the branching condition is to
4000      # speed up the sed processing (if there are no `@' at all, there
4001      # is no need to browse any of the substitutions).
4002      # These are the two extra sed commands mentioned above.
4003      (echo ':t
4004  /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
4005      if test -z "$ac_sed_cmds"; then
4006  ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
4007      else
4008  ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
4009      fi
4010      ac_sed_frag=`expr $ac_sed_frag + 1`
4011      ac_beg=$ac_end
4012      ac_end=`expr $ac_end + $ac_max_sed_lines`
4013    fi
4014  done
4015  if test -z "$ac_sed_cmds"; then
4016    ac_sed_cmds=cat
4017  fi
4018fi # test -n "$CONFIG_FILES"
4019
4020_ACEOF
4021cat >>$CONFIG_STATUS <<\_ACEOF
4022for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
4023  # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
4024  case $ac_file in
4025  - | *:- | *:-:* ) # input from stdin
4026  cat >$tmp/stdin
4027  ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4028  ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4029  *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
4030  ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
4031  * )   ac_file_in=$ac_file.in ;;
4032  esac
4033
4034  # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
4035  ac_dir=`(dirname "$ac_file") 2>/dev/null ||
4036$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4037   X"$ac_file" : 'X\(//\)[^/]' \| \
4038   X"$ac_file" : 'X\(//\)$' \| \
4039   X"$ac_file" : 'X\(/\)' \| \
4040   .     : '\(.\)' 2>/dev/null ||
4041echo X"$ac_file" |
4042    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4043      /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4044      /^X\(\/\/\)$/{ s//\1/; q; }
4045      /^X\(\/\).*/{ s//\1/; q; }
4046      s/.*/./; q'`
4047  { if $as_mkdir_p; then
4048    mkdir -p "$ac_dir"
4049  else
4050    as_dir="$ac_dir"
4051    as_dirs=
4052    while test ! -d "$as_dir"; do
4053      as_dirs="$as_dir $as_dirs"
4054      as_dir=`(dirname "$as_dir") 2>/dev/null ||
4055$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4056   X"$as_dir" : 'X\(//\)[^/]' \| \
4057   X"$as_dir" : 'X\(//\)$' \| \
4058   X"$as_dir" : 'X\(/\)' \| \
4059   .     : '\(.\)' 2>/dev/null ||
4060echo X"$as_dir" |
4061    sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
4062      /^X\(\/\/\)[^/].*/{ s//\1/; q; }
4063      /^X\(\/\/\)$/{ s//\1/; q; }
4064      /^X\(\/\).*/{ s//\1/; q; }
4065      s/.*/./; q'`
4066    done
4067    test ! -n "$as_dirs" || mkdir $as_dirs
4068  fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
4069echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
4070   { (exit 1); exit 1; }; }; }
4071
4072  ac_builddir=.
4073
4074if test "$ac_dir" != .; then
4075  ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
4076  # A "../" for each directory in $ac_dir_suffix.
4077  ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
4078else
4079  ac_dir_suffix= ac_top_builddir=
4080fi
4081
4082case $srcdir in
4083  .)  # No --srcdir option.  We are building in place.
4084    ac_srcdir=.
4085    if test -z "$ac_top_builddir"; then
4086       ac_top_srcdir=.
4087    else
4088       ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
4089    fi ;;
4090  [\\/]* | ?:[\\/]* )  # Absolute path.
4091    ac_srcdir=$srcdir$ac_dir_suffix;
4092    ac_top_srcdir=$srcdir ;;
4093  *) # Relative path.
4094    ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
4095    ac_top_srcdir=$ac_top_builddir$srcdir ;;
4096esac
4097
4098# Do not use `cd foo && pwd` to compute absolute paths, because
4099# the directories may not exist.
4100case `pwd` in
4101.) ac_abs_builddir="$ac_dir";;
4102*)
4103  case "$ac_dir" in
4104  .) ac_abs_builddir=`pwd`;;
4105  [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
4106  *) ac_abs_builddir=`pwd`/"$ac_dir";;
4107  esac;;
4108esac
4109case $ac_abs_builddir in
4110.) ac_abs_top_builddir=${ac_top_builddir}.;;
4111*)
4112  case ${ac_top_builddir}. in
4113  .) ac_abs_top_builddir=$ac_abs_builddir;;
4114  [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
4115  *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
4116  esac;;
4117esac
4118case $ac_abs_builddir in
4119.) ac_abs_srcdir=$ac_srcdir;;
4120*)
4121  case $ac_srcdir in
4122  .) ac_abs_srcdir=$ac_abs_builddir;;
4123  [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
4124  *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
4125  esac;;
4126esac
4127case $ac_abs_builddir in
4128.) ac_abs_top_srcdir=$ac_top_srcdir;;
4129*)
4130  case $ac_top_srcdir in
4131  .) ac_abs_top_srcdir=$ac_abs_builddir;;
4132  [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
4133  *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
4134  esac;;
4135esac
4136
4137
4138
4139  if test x"$ac_file" != x-; then
4140    { echo "$as_me:$LINENO: creating $ac_file" >&5
4141echo "$as_me: creating $ac_file" >&6;}
4142    rm -f "$ac_file"
4143  fi
4144  # Let's still pretend it is `configure' which instantiates (i.e., don't
4145  # use $as_me), people would be surprised to read:
4146  #    /* config.h.  Generated by config.status.  */
4147  if test x"$ac_file" = x-; then
4148    configure_input=
4149  else
4150    configure_input="$ac_file.  "
4151  fi
4152  configure_input=$configure_input"Generated from `echo $ac_file_in |
4153             sed 's,.*/,,'` by configure."
4154
4155  # First look for the input files in the build tree, otherwise in the
4156  # src tree.
4157  ac_file_inputs=`IFS=:
4158    for f in $ac_file_in; do
4159      case $f in
4160      -) echo $tmp/stdin ;;
4161      [\\/$]*)
4162   # Absolute (can't be DOS-style, as IFS=:)
4163   test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4164echo "$as_me: error: cannot find input file: $f" >&2;}
4165   { (exit 1); exit 1; }; }
4166   echo "$f";;
4167      *) # Relative
4168   if test -f "$f"; then
4169     # Build tree
4170     echo "$f"
4171   elif test -f "$srcdir/$f"; then
4172     # Source tree
4173     echo "$srcdir/$f"
4174   else
4175     # /dev/null tree
4176     { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
4177echo "$as_me: error: cannot find input file: $f" >&2;}
4178   { (exit 1); exit 1; }; }
4179   fi;;
4180      esac
4181    done` || { (exit 1); exit 1; }
4182_ACEOF
4183cat >>$CONFIG_STATUS <<_ACEOF
4184  sed "$ac_vpsub
4185$extrasub
4186_ACEOF
4187cat >>$CONFIG_STATUS <<\_ACEOF
4188:t
4189/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
4190s,@configure_input@,$configure_input,;t t
4191s,@srcdir@,$ac_srcdir,;t t
4192s,@abs_srcdir@,$ac_abs_srcdir,;t t
4193s,@top_srcdir@,$ac_top_srcdir,;t t
4194s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
4195s,@builddir@,$ac_builddir,;t t
4196s,@abs_builddir@,$ac_abs_builddir,;t t
4197s,@top_builddir@,$ac_top_builddir,;t t
4198s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
4199" $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
4200  rm -f $tmp/stdin
4201  if test x"$ac_file" != x-; then
4202    mv $tmp/out $ac_file
4203  else
4204    cat $tmp/out
4205    rm -f $tmp/out
4206  fi
4207
4208done
4209_ACEOF
4210
4211cat >>$CONFIG_STATUS <<\_ACEOF
4212
4213{ (exit 0); exit 0; }
4214_ACEOF
4215chmod +x $CONFIG_STATUS
4216ac_clean_files=$ac_clean_files_save
4217
4218
4219# configure is writing to config.log, and then calls config.status.
4220# config.status does its own redirection, appending to config.log.
4221# Unfortunately, on DOS this fails, as config.log is still kept open
4222# by configure, so config.status won't be able to write to it; its
4223# output is simply discarded.  So we exec the FD to /dev/null,
4224# effectively closing config.log, so it can be properly (re)opened and
4225# appended to by config.status.  When coming back to configure, we
4226# need to make the FD available again.
4227if test "$no_create" != yes; then
4228  ac_cs_success=:
4229  ac_config_status_args=
4230  test "$silent" = yes &&
4231    ac_config_status_args="$ac_config_status_args --quiet"
4232  exec 5>/dev/null
4233  $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
4234  exec 5>>config.log
4235  # Use ||, not &&, to avoid exiting from the if with $? = 1, which
4236  # would make configure fail if this is the last instruction.
4237  $ac_cs_success || { (exit 1); exit 1; }
4238fi
4239
4240