Small oops
[distributedratelimiting.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.59.
4 #
5 # Copyright (C) 2003 Free Software Foundation, Inc.
6 # This configure script is free software; the Free Software Foundation
7 # gives unlimited permission to copy, distribute and modify it.
8 ## --------------------- ##
9 ## M4sh Initialization.  ##
10 ## --------------------- ##
11
12 # Be Bourne compatible
13 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
14   emulate sh
15   NULLCMD=:
16   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
17   # is contrary to our usage.  Disable this feature.
18   alias -g '${1+"$@"}'='"$@"'
19 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
20   set -o posix
21 fi
22 DUALCASE=1; export DUALCASE # for MKS sh
23
24 # Support unset when possible.
25 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
26   as_unset=unset
27 else
28   as_unset=false
29 fi
30
31
32 # Work around bugs in pre-3.0 UWIN ksh.
33 $as_unset ENV MAIL MAILPATH
34 PS1='$ '
35 PS2='> '
36 PS4='+ '
37
38 # NLS nuisances.
39 for as_var in \
40   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
41   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
42   LC_TELEPHONE LC_TIME
43 do
44   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
45     eval $as_var=C; export $as_var
46   else
47     $as_unset $as_var
48   fi
49 done
50
51 # Required to use basename.
52 if expr a : '\(a\)' >/dev/null 2>&1; then
53   as_expr=expr
54 else
55   as_expr=false
56 fi
57
58 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
59   as_basename=basename
60 else
61   as_basename=false
62 fi
63
64
65 # Name of the executable.
66 as_me=`$as_basename "$0" ||
67 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
68          X"$0" : 'X\(//\)$' \| \
69          X"$0" : 'X\(/\)$' \| \
70          .     : '\(.\)' 2>/dev/null ||
71 echo X/"$0" |
72     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
73           /^X\/\(\/\/\)$/{ s//\1/; q; }
74           /^X\/\(\/\).*/{ s//\1/; q; }
75           s/.*/./; q'`
76
77
78 # PATH needs CR, and LINENO needs CR and PATH.
79 # Avoid depending upon Character Ranges.
80 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
81 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
82 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
83 as_cr_digits='0123456789'
84 as_cr_alnum=$as_cr_Letters$as_cr_digits
85
86 # The user is always right.
87 if test "${PATH_SEPARATOR+set}" != set; then
88   echo "#! /bin/sh" >conf$$.sh
89   echo  "exit 0"   >>conf$$.sh
90   chmod +x conf$$.sh
91   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
92     PATH_SEPARATOR=';'
93   else
94     PATH_SEPARATOR=:
95   fi
96   rm -f conf$$.sh
97 fi
98
99
100   as_lineno_1=$LINENO
101   as_lineno_2=$LINENO
102   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
103   test "x$as_lineno_1" != "x$as_lineno_2" &&
104   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
105   # Find who we are.  Look in the path if we contain no path at all
106   # relative or not.
107   case $0 in
108     *[\\/]* ) as_myself=$0 ;;
109     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
110 for as_dir in $PATH
111 do
112   IFS=$as_save_IFS
113   test -z "$as_dir" && as_dir=.
114   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
115 done
116
117        ;;
118   esac
119   # We did not find ourselves, most probably we were run as `sh COMMAND'
120   # in which case we are not to be found in the path.
121   if test "x$as_myself" = x; then
122     as_myself=$0
123   fi
124   if test ! -f "$as_myself"; then
125     { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2
126    { (exit 1); exit 1; }; }
127   fi
128   case $CONFIG_SHELL in
129   '')
130     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
131 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
132 do
133   IFS=$as_save_IFS
134   test -z "$as_dir" && as_dir=.
135   for as_base in sh bash ksh sh5; do
136          case $as_dir in
137          /*)
138            if ("$as_dir/$as_base" -c '
139   as_lineno_1=$LINENO
140   as_lineno_2=$LINENO
141   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
142   test "x$as_lineno_1" != "x$as_lineno_2" &&
143   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
144              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
145              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
146              CONFIG_SHELL=$as_dir/$as_base
147              export CONFIG_SHELL
148              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
149            fi;;
150          esac
151        done
152 done
153 ;;
154   esac
155
156   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
157   # uniformly replaced by the line number.  The first 'sed' inserts a
158   # line-number line before each line; the second 'sed' does the real
159   # work.  The second script uses 'N' to pair each line-number line
160   # with the numbered line, and appends trailing '-' during
161   # substitution so that $LINENO is not a special case at line end.
162   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
163   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
164   sed '=' <$as_myself |
165     sed '
166       N
167       s,$,-,
168       : loop
169       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
170       t loop
171       s,-$,,
172       s,^['$as_cr_digits']*\n,,
173     ' >$as_me.lineno &&
174   chmod +x $as_me.lineno ||
175     { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
176    { (exit 1); exit 1; }; }
177
178   # Don't try to exec as it changes $[0], causing all sort of problems
179   # (the dirname of $[0] is not the place where we might find the
180   # original and so on.  Autoconf is especially sensible to this).
181   . ./$as_me.lineno
182   # Exit status is that of the last command.
183   exit
184 }
185
186
187 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
188   *c*,-n*) ECHO_N= ECHO_C='
189 ' ECHO_T='      ' ;;
190   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
191   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
192 esac
193
194 if expr a : '\(a\)' >/dev/null 2>&1; then
195   as_expr=expr
196 else
197   as_expr=false
198 fi
199
200 rm -f conf$$ conf$$.exe conf$$.file
201 echo >conf$$.file
202 if ln -s conf$$.file conf$$ 2>/dev/null; then
203   # We could just check for DJGPP; but this test a) works b) is more generic
204   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
205   if test -f conf$$.exe; then
206     # Don't use ln at all; we don't have any links
207     as_ln_s='cp -p'
208   else
209     as_ln_s='ln -s'
210   fi
211 elif ln conf$$.file conf$$ 2>/dev/null; then
212   as_ln_s=ln
213 else
214   as_ln_s='cp -p'
215 fi
216 rm -f conf$$ conf$$.exe conf$$.file
217
218 if mkdir -p . 2>/dev/null; then
219   as_mkdir_p=:
220 else
221   test -d ./-p && rmdir ./-p
222   as_mkdir_p=false
223 fi
224
225 as_executable_p="test -f"
226
227 # Sed expression to map a string onto a valid CPP name.
228 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
229
230 # Sed expression to map a string onto a valid variable name.
231 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
232
233
234 # IFS
235 # We need space, tab and new line, in precisely that order.
236 as_nl='
237 '
238 IFS="   $as_nl"
239
240 # CDPATH.
241 $as_unset CDPATH
242
243
244 # Name of the host.
245 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
246 # so uname gets run too.
247 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
248
249 exec 6>&1
250
251 #
252 # Initializations.
253 #
254 ac_default_prefix=/usr/local
255 ac_config_libobj_dir=.
256 cross_compiling=no
257 subdirs=
258 MFLAGS=
259 MAKEFLAGS=
260 SHELL=${CONFIG_SHELL-/bin/sh}
261
262 # Maximum number of lines to put in a shell here document.
263 # This variable seems obsolete.  It should probably be removed, and
264 # only ac_max_sed_lines should be used.
265 : ${ac_max_here_lines=38}
266
267 # Identity of this package.
268 PACKAGE_NAME=
269 PACKAGE_TARNAME=
270 PACKAGE_VERSION=
271 PACKAGE_STRING=
272 PACKAGE_BUGREPORT=
273
274 ac_unique_file="ulogd.c"
275 # Factoring default headers for most tests.
276 ac_includes_default="\
277 #include <stdio.h>
278 #if HAVE_SYS_TYPES_H
279 # include <sys/types.h>
280 #endif
281 #if HAVE_SYS_STAT_H
282 # include <sys/stat.h>
283 #endif
284 #if STDC_HEADERS
285 # include <stdlib.h>
286 # include <stddef.h>
287 #else
288 # if HAVE_STDLIB_H
289 #  include <stdlib.h>
290 # endif
291 #endif
292 #if HAVE_STRING_H
293 # if !STDC_HEADERS && HAVE_MEMORY_H
294 #  include <memory.h>
295 # endif
296 # include <string.h>
297 #endif
298 #if HAVE_STRINGS_H
299 # include <strings.h>
300 #endif
301 #if HAVE_INTTYPES_H
302 # include <inttypes.h>
303 #else
304 # if HAVE_STDINT_H
305 #  include <stdint.h>
306 # endif
307 #endif
308 #if HAVE_UNISTD_H
309 # include <unistd.h>
310 #endif"
311
312 ac_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 SET_MAKE CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT LD ac_ct_LD INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CPP EGREP KSRC KVER MYSQLINCLUDES MYSQL_LIB PGSQLINCLUDES PGSQL_LIB DATABASE_DIR DATABASE_LIB DATABASE_LIB_DIR DB_DEF EXTRA_MYSQL_DEF EXTRA_PGSQL_DEF DATABASE_DRIVERS HAVE_PCAP_H HAVE_MYSQL_TRUE HAVE_MYSQL_FALSE HAVE_PGSQL_TRUE HAVE_PGSQL_FALSE LIBOBJS LTLIBOBJS'
313 ac_subst_files=''
314
315 # Initialize some variables set by options.
316 ac_init_help=
317 ac_init_version=false
318 # The variables have the same names as the options, with
319 # dashes changed to underlines.
320 cache_file=/dev/null
321 exec_prefix=NONE
322 no_create=
323 no_recursion=
324 prefix=NONE
325 program_prefix=NONE
326 program_suffix=NONE
327 program_transform_name=s,x,x,
328 silent=
329 site=
330 srcdir=
331 verbose=
332 x_includes=NONE
333 x_libraries=NONE
334
335 # Installation directory options.
336 # These are left unexpanded so users can "make install exec_prefix=/foo"
337 # and all the variables that are supposed to be based on exec_prefix
338 # by default will actually change.
339 # Use braces instead of parens because sh, perl, etc. also accept them.
340 bindir='${exec_prefix}/bin'
341 sbindir='${exec_prefix}/sbin'
342 libexecdir='${exec_prefix}/libexec'
343 datadir='${prefix}/share'
344 sysconfdir='${prefix}/etc'
345 sharedstatedir='${prefix}/com'
346 localstatedir='${prefix}/var'
347 libdir='${exec_prefix}/lib'
348 includedir='${prefix}/include'
349 oldincludedir='/usr/include'
350 infodir='${prefix}/info'
351 mandir='${prefix}/man'
352
353 ac_prev=
354 for ac_option
355 do
356   # If the previous option needs an argument, assign it.
357   if test -n "$ac_prev"; then
358     eval "$ac_prev=\$ac_option"
359     ac_prev=
360     continue
361   fi
362
363   ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'`
364
365   # Accept the important Cygnus configure options, so we can diagnose typos.
366
367   case $ac_option in
368
369   -bindir | --bindir | --bindi | --bind | --bin | --bi)
370     ac_prev=bindir ;;
371   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
372     bindir=$ac_optarg ;;
373
374   -build | --build | --buil | --bui | --bu)
375     ac_prev=build_alias ;;
376   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
377     build_alias=$ac_optarg ;;
378
379   -cache-file | --cache-file | --cache-fil | --cache-fi \
380   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
381     ac_prev=cache_file ;;
382   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
383   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
384     cache_file=$ac_optarg ;;
385
386   --config-cache | -C)
387     cache_file=config.cache ;;
388
389   -datadir | --datadir | --datadi | --datad | --data | --dat | --da)
390     ac_prev=datadir ;;
391   -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \
392   | --da=*)
393     datadir=$ac_optarg ;;
394
395   -disable-* | --disable-*)
396     ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
397     # Reject names that are not valid shell variable names.
398     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
399       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
400    { (exit 1); exit 1; }; }
401     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
402     eval "enable_$ac_feature=no" ;;
403
404   -enable-* | --enable-*)
405     ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
406     # Reject names that are not valid shell variable names.
407     expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
408       { echo "$as_me: error: invalid feature name: $ac_feature" >&2
409    { (exit 1); exit 1; }; }
410     ac_feature=`echo $ac_feature | sed 's/-/_/g'`
411     case $ac_option in
412       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
413       *) ac_optarg=yes ;;
414     esac
415     eval "enable_$ac_feature='$ac_optarg'" ;;
416
417   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
418   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
419   | --exec | --exe | --ex)
420     ac_prev=exec_prefix ;;
421   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
422   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
423   | --exec=* | --exe=* | --ex=*)
424     exec_prefix=$ac_optarg ;;
425
426   -gas | --gas | --ga | --g)
427     # Obsolete; use --with-gas.
428     with_gas=yes ;;
429
430   -help | --help | --hel | --he | -h)
431     ac_init_help=long ;;
432   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
433     ac_init_help=recursive ;;
434   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
435     ac_init_help=short ;;
436
437   -host | --host | --hos | --ho)
438     ac_prev=host_alias ;;
439   -host=* | --host=* | --hos=* | --ho=*)
440     host_alias=$ac_optarg ;;
441
442   -includedir | --includedir | --includedi | --included | --include \
443   | --includ | --inclu | --incl | --inc)
444     ac_prev=includedir ;;
445   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
446   | --includ=* | --inclu=* | --incl=* | --inc=*)
447     includedir=$ac_optarg ;;
448
449   -infodir | --infodir | --infodi | --infod | --info | --inf)
450     ac_prev=infodir ;;
451   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
452     infodir=$ac_optarg ;;
453
454   -libdir | --libdir | --libdi | --libd)
455     ac_prev=libdir ;;
456   -libdir=* | --libdir=* | --libdi=* | --libd=*)
457     libdir=$ac_optarg ;;
458
459   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
460   | --libexe | --libex | --libe)
461     ac_prev=libexecdir ;;
462   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
463   | --libexe=* | --libex=* | --libe=*)
464     libexecdir=$ac_optarg ;;
465
466   -localstatedir | --localstatedir | --localstatedi | --localstated \
467   | --localstate | --localstat | --localsta | --localst \
468   | --locals | --local | --loca | --loc | --lo)
469     ac_prev=localstatedir ;;
470   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
471   | --localstate=* | --localstat=* | --localsta=* | --localst=* \
472   | --locals=* | --local=* | --loca=* | --loc=* | --lo=*)
473     localstatedir=$ac_optarg ;;
474
475   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
476     ac_prev=mandir ;;
477   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
478     mandir=$ac_optarg ;;
479
480   -nfp | --nfp | --nf)
481     # Obsolete; use --without-fp.
482     with_fp=no ;;
483
484   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
485   | --no-cr | --no-c | -n)
486     no_create=yes ;;
487
488   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
489   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
490     no_recursion=yes ;;
491
492   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
493   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
494   | --oldin | --oldi | --old | --ol | --o)
495     ac_prev=oldincludedir ;;
496   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
497   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
498   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
499     oldincludedir=$ac_optarg ;;
500
501   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
502     ac_prev=prefix ;;
503   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
504     prefix=$ac_optarg ;;
505
506   -program-prefix | --program-prefix | --program-prefi | --program-pref \
507   | --program-pre | --program-pr | --program-p)
508     ac_prev=program_prefix ;;
509   -program-prefix=* | --program-prefix=* | --program-prefi=* \
510   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
511     program_prefix=$ac_optarg ;;
512
513   -program-suffix | --program-suffix | --program-suffi | --program-suff \
514   | --program-suf | --program-su | --program-s)
515     ac_prev=program_suffix ;;
516   -program-suffix=* | --program-suffix=* | --program-suffi=* \
517   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
518     program_suffix=$ac_optarg ;;
519
520   -program-transform-name | --program-transform-name \
521   | --program-transform-nam | --program-transform-na \
522   | --program-transform-n | --program-transform- \
523   | --program-transform | --program-transfor \
524   | --program-transfo | --program-transf \
525   | --program-trans | --program-tran \
526   | --progr-tra | --program-tr | --program-t)
527     ac_prev=program_transform_name ;;
528   -program-transform-name=* | --program-transform-name=* \
529   | --program-transform-nam=* | --program-transform-na=* \
530   | --program-transform-n=* | --program-transform-=* \
531   | --program-transform=* | --program-transfor=* \
532   | --program-transfo=* | --program-transf=* \
533   | --program-trans=* | --program-tran=* \
534   | --progr-tra=* | --program-tr=* | --program-t=*)
535     program_transform_name=$ac_optarg ;;
536
537   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
538   | -silent | --silent | --silen | --sile | --sil)
539     silent=yes ;;
540
541   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
542     ac_prev=sbindir ;;
543   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
544   | --sbi=* | --sb=*)
545     sbindir=$ac_optarg ;;
546
547   -sharedstatedir | --sharedstatedir | --sharedstatedi \
548   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
549   | --sharedst | --shareds | --shared | --share | --shar \
550   | --sha | --sh)
551     ac_prev=sharedstatedir ;;
552   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
553   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
554   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
555   | --sha=* | --sh=*)
556     sharedstatedir=$ac_optarg ;;
557
558   -site | --site | --sit)
559     ac_prev=site ;;
560   -site=* | --site=* | --sit=*)
561     site=$ac_optarg ;;
562
563   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
564     ac_prev=srcdir ;;
565   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
566     srcdir=$ac_optarg ;;
567
568   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
569   | --syscon | --sysco | --sysc | --sys | --sy)
570     ac_prev=sysconfdir ;;
571   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
572   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
573     sysconfdir=$ac_optarg ;;
574
575   -target | --target | --targe | --targ | --tar | --ta | --t)
576     ac_prev=target_alias ;;
577   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
578     target_alias=$ac_optarg ;;
579
580   -v | -verbose | --verbose | --verbos | --verbo | --verb)
581     verbose=yes ;;
582
583   -version | --version | --versio | --versi | --vers | -V)
584     ac_init_version=: ;;
585
586   -with-* | --with-*)
587     ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
588     # Reject names that are not valid shell variable names.
589     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
590       { echo "$as_me: error: invalid package name: $ac_package" >&2
591    { (exit 1); exit 1; }; }
592     ac_package=`echo $ac_package| sed 's/-/_/g'`
593     case $ac_option in
594       *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;;
595       *) ac_optarg=yes ;;
596     esac
597     eval "with_$ac_package='$ac_optarg'" ;;
598
599   -without-* | --without-*)
600     ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
601     # Reject names that are not valid shell variable names.
602     expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
603       { echo "$as_me: error: invalid package name: $ac_package" >&2
604    { (exit 1); exit 1; }; }
605     ac_package=`echo $ac_package | sed 's/-/_/g'`
606     eval "with_$ac_package=no" ;;
607
608   --x)
609     # Obsolete; use --with-x.
610     with_x=yes ;;
611
612   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
613   | --x-incl | --x-inc | --x-in | --x-i)
614     ac_prev=x_includes ;;
615   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
616   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
617     x_includes=$ac_optarg ;;
618
619   -x-libraries | --x-libraries | --x-librarie | --x-librari \
620   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
621     ac_prev=x_libraries ;;
622   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
623   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
624     x_libraries=$ac_optarg ;;
625
626   -*) { echo "$as_me: error: unrecognized option: $ac_option
627 Try \`$0 --help' for more information." >&2
628    { (exit 1); exit 1; }; }
629     ;;
630
631   *=*)
632     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
633     # Reject names that are not valid shell variable names.
634     expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
635       { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
636    { (exit 1); exit 1; }; }
637     ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`
638     eval "$ac_envvar='$ac_optarg'"
639     export $ac_envvar ;;
640
641   *)
642     # FIXME: should be removed in autoconf 3.0.
643     echo "$as_me: WARNING: you should use --build, --host, --target" >&2
644     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
645       echo "$as_me: WARNING: invalid host type: $ac_option" >&2
646     : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
647     ;;
648
649   esac
650 done
651
652 if test -n "$ac_prev"; then
653   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
654   { echo "$as_me: error: missing argument to $ac_option" >&2
655    { (exit 1); exit 1; }; }
656 fi
657
658 # Be sure to have absolute paths.
659 for ac_var in exec_prefix prefix
660 do
661   eval ac_val=$`echo $ac_var`
662   case $ac_val in
663     [\\/$]* | ?:[\\/]* | NONE | '' ) ;;
664     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
665    { (exit 1); exit 1; }; };;
666   esac
667 done
668
669 # Be sure to have absolute paths.
670 for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \
671               localstatedir libdir includedir oldincludedir infodir mandir
672 do
673   eval ac_val=$`echo $ac_var`
674   case $ac_val in
675     [\\/$]* | ?:[\\/]* ) ;;
676     *)  { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
677    { (exit 1); exit 1; }; };;
678   esac
679 done
680
681 # There might be people who depend on the old broken behavior: `$host'
682 # used to hold the argument of --host etc.
683 # FIXME: To remove some day.
684 build=$build_alias
685 host=$host_alias
686 target=$target_alias
687
688 # FIXME: To remove some day.
689 if test "x$host_alias" != x; then
690   if test "x$build_alias" = x; then
691     cross_compiling=maybe
692     echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
693     If a cross compiler is detected then cross compile mode will be used." >&2
694   elif test "x$build_alias" != "x$host_alias"; then
695     cross_compiling=yes
696   fi
697 fi
698
699 ac_tool_prefix=
700 test -n "$host_alias" && ac_tool_prefix=$host_alias-
701
702 test "$silent" = yes && exec 6>/dev/null
703
704
705 # Find the source files, if location was not specified.
706 if test -z "$srcdir"; then
707   ac_srcdir_defaulted=yes
708   # Try the directory containing this script, then its parent.
709   ac_confdir=`(dirname "$0") 2>/dev/null ||
710 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
711          X"$0" : 'X\(//\)[^/]' \| \
712          X"$0" : 'X\(//\)$' \| \
713          X"$0" : 'X\(/\)' \| \
714          .     : '\(.\)' 2>/dev/null ||
715 echo X"$0" |
716     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
717           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
718           /^X\(\/\/\)$/{ s//\1/; q; }
719           /^X\(\/\).*/{ s//\1/; q; }
720           s/.*/./; q'`
721   srcdir=$ac_confdir
722   if test ! -r $srcdir/$ac_unique_file; then
723     srcdir=..
724   fi
725 else
726   ac_srcdir_defaulted=no
727 fi
728 if test ! -r $srcdir/$ac_unique_file; then
729   if test "$ac_srcdir_defaulted" = yes; then
730     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2
731    { (exit 1); exit 1; }; }
732   else
733     { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
734    { (exit 1); exit 1; }; }
735   fi
736 fi
737 (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null ||
738   { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2
739    { (exit 1); exit 1; }; }
740 srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'`
741 ac_env_build_alias_set=${build_alias+set}
742 ac_env_build_alias_value=$build_alias
743 ac_cv_env_build_alias_set=${build_alias+set}
744 ac_cv_env_build_alias_value=$build_alias
745 ac_env_host_alias_set=${host_alias+set}
746 ac_env_host_alias_value=$host_alias
747 ac_cv_env_host_alias_set=${host_alias+set}
748 ac_cv_env_host_alias_value=$host_alias
749 ac_env_target_alias_set=${target_alias+set}
750 ac_env_target_alias_value=$target_alias
751 ac_cv_env_target_alias_set=${target_alias+set}
752 ac_cv_env_target_alias_value=$target_alias
753 ac_env_CC_set=${CC+set}
754 ac_env_CC_value=$CC
755 ac_cv_env_CC_set=${CC+set}
756 ac_cv_env_CC_value=$CC
757 ac_env_CFLAGS_set=${CFLAGS+set}
758 ac_env_CFLAGS_value=$CFLAGS
759 ac_cv_env_CFLAGS_set=${CFLAGS+set}
760 ac_cv_env_CFLAGS_value=$CFLAGS
761 ac_env_LDFLAGS_set=${LDFLAGS+set}
762 ac_env_LDFLAGS_value=$LDFLAGS
763 ac_cv_env_LDFLAGS_set=${LDFLAGS+set}
764 ac_cv_env_LDFLAGS_value=$LDFLAGS
765 ac_env_CPPFLAGS_set=${CPPFLAGS+set}
766 ac_env_CPPFLAGS_value=$CPPFLAGS
767 ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set}
768 ac_cv_env_CPPFLAGS_value=$CPPFLAGS
769 ac_env_CPP_set=${CPP+set}
770 ac_env_CPP_value=$CPP
771 ac_cv_env_CPP_set=${CPP+set}
772 ac_cv_env_CPP_value=$CPP
773
774 #
775 # Report the --help message.
776 #
777 if test "$ac_init_help" = "long"; then
778   # Omit some internal or obsolete options to make the list less imposing.
779   # This message is too long to be a string in the A/UX 3.1 sh.
780   cat <<_ACEOF
781 \`configure' configures this package to adapt to many kinds of systems.
782
783 Usage: $0 [OPTION]... [VAR=VALUE]...
784
785 To assign environment variables (e.g., CC, CFLAGS...), specify them as
786 VAR=VALUE.  See below for descriptions of some of the useful variables.
787
788 Defaults for the options are specified in brackets.
789
790 Configuration:
791   -h, --help              display this help and exit
792       --help=short        display options specific to this package
793       --help=recursive    display the short help of all the included packages
794   -V, --version           display version information and exit
795   -q, --quiet, --silent   do not print \`checking...' messages
796       --cache-file=FILE   cache test results in FILE [disabled]
797   -C, --config-cache      alias for \`--cache-file=config.cache'
798   -n, --no-create         do not create output files
799       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
800
801 _ACEOF
802
803   cat <<_ACEOF
804 Installation directories:
805   --prefix=PREFIX         install architecture-independent files in PREFIX
806                           [$ac_default_prefix]
807   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
808                           [PREFIX]
809
810 By default, \`make install' will install all the files in
811 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
812 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
813 for instance \`--prefix=\$HOME'.
814
815 For better control, use the options below.
816
817 Fine tuning of the installation directories:
818   --bindir=DIR           user executables [EPREFIX/bin]
819   --sbindir=DIR          system admin executables [EPREFIX/sbin]
820   --libexecdir=DIR       program executables [EPREFIX/libexec]
821   --datadir=DIR          read-only architecture-independent data [PREFIX/share]
822   --sysconfdir=DIR       read-only single-machine data [PREFIX/etc]
823   --sharedstatedir=DIR   modifiable architecture-independent data [PREFIX/com]
824   --localstatedir=DIR    modifiable single-machine data [PREFIX/var]
825   --libdir=DIR           object code libraries [EPREFIX/lib]
826   --includedir=DIR       C header files [PREFIX/include]
827   --oldincludedir=DIR    C header files for non-gcc [/usr/include]
828   --infodir=DIR          info documentation [PREFIX/info]
829   --mandir=DIR           man documentation [PREFIX/man]
830 _ACEOF
831
832   cat <<\_ACEOF
833 _ACEOF
834 fi
835
836 if test -n "$ac_init_help"; then
837
838   cat <<\_ACEOF
839
840 Optional Packages:
841   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
842   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
843 --with-kernel=DIR                       kernel source directory
844 --with-proper=<directory>               proper installed in <directory>
845 --with-mysql=<directory>                mysql installed in <directoty>
846 --with-mysql-log-ip-as-string           log IPs as string rather than as
847                                         unsigned long-integer.
848
849 --with-pgsql=<directory>                pgsql installed in <directoty>
850 --with-pgsql-log-ip-as-string           log IPs as string rather than as interger
851
852
853 Some influential environment variables:
854   CC          C compiler command
855   CFLAGS      C compiler flags
856   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
857               nonstandard directory <lib dir>
858   CPPFLAGS    C/C++ preprocessor flags, e.g. -I<include dir> if you have
859               headers in a nonstandard directory <include dir>
860   CPP         C preprocessor
861
862 Use these variables to override the choices made by `configure' or to help
863 it to find libraries and programs with nonstandard names/locations.
864
865 _ACEOF
866 fi
867
868 if test "$ac_init_help" = "recursive"; then
869   # If there are subdirs, report their specific --help.
870   ac_popdir=`pwd`
871   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
872     test -d $ac_dir || continue
873     ac_builddir=.
874
875 if test "$ac_dir" != .; then
876   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
877   # A "../" for each directory in $ac_dir_suffix.
878   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
879 else
880   ac_dir_suffix= ac_top_builddir=
881 fi
882
883 case $srcdir in
884   .)  # No --srcdir option.  We are building in place.
885     ac_srcdir=.
886     if test -z "$ac_top_builddir"; then
887        ac_top_srcdir=.
888     else
889        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
890     fi ;;
891   [\\/]* | ?:[\\/]* )  # Absolute path.
892     ac_srcdir=$srcdir$ac_dir_suffix;
893     ac_top_srcdir=$srcdir ;;
894   *) # Relative path.
895     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
896     ac_top_srcdir=$ac_top_builddir$srcdir ;;
897 esac
898
899 # Do not use `cd foo && pwd` to compute absolute paths, because
900 # the directories may not exist.
901 case `pwd` in
902 .) ac_abs_builddir="$ac_dir";;
903 *)
904   case "$ac_dir" in
905   .) ac_abs_builddir=`pwd`;;
906   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
907   *) ac_abs_builddir=`pwd`/"$ac_dir";;
908   esac;;
909 esac
910 case $ac_abs_builddir in
911 .) ac_abs_top_builddir=${ac_top_builddir}.;;
912 *)
913   case ${ac_top_builddir}. in
914   .) ac_abs_top_builddir=$ac_abs_builddir;;
915   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
916   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
917   esac;;
918 esac
919 case $ac_abs_builddir in
920 .) ac_abs_srcdir=$ac_srcdir;;
921 *)
922   case $ac_srcdir in
923   .) ac_abs_srcdir=$ac_abs_builddir;;
924   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
925   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
926   esac;;
927 esac
928 case $ac_abs_builddir in
929 .) ac_abs_top_srcdir=$ac_top_srcdir;;
930 *)
931   case $ac_top_srcdir in
932   .) ac_abs_top_srcdir=$ac_abs_builddir;;
933   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
934   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
935   esac;;
936 esac
937
938     cd $ac_dir
939     # Check for guested configure; otherwise get Cygnus style configure.
940     if test -f $ac_srcdir/configure.gnu; then
941       echo
942       $SHELL $ac_srcdir/configure.gnu  --help=recursive
943     elif test -f $ac_srcdir/configure; then
944       echo
945       $SHELL $ac_srcdir/configure  --help=recursive
946     elif test -f $ac_srcdir/configure.ac ||
947            test -f $ac_srcdir/configure.in; then
948       echo
949       $ac_configure --help
950     else
951       echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
952     fi
953     cd $ac_popdir
954   done
955 fi
956
957 test -n "$ac_init_help" && exit 0
958 if $ac_init_version; then
959   cat <<\_ACEOF
960
961 Copyright (C) 2003 Free Software Foundation, Inc.
962 This configure script is free software; the Free Software Foundation
963 gives unlimited permission to copy, distribute and modify it.
964 _ACEOF
965   exit 0
966 fi
967 exec 5>config.log
968 cat >&5 <<_ACEOF
969 This file contains any messages produced by compilers while
970 running configure, to aid debugging if configure makes a mistake.
971
972 It was created by $as_me, which was
973 generated by GNU Autoconf 2.59.  Invocation command line was
974
975   $ $0 $@
976
977 _ACEOF
978 {
979 cat <<_ASUNAME
980 ## --------- ##
981 ## Platform. ##
982 ## --------- ##
983
984 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
985 uname -m = `(uname -m) 2>/dev/null || echo unknown`
986 uname -r = `(uname -r) 2>/dev/null || echo unknown`
987 uname -s = `(uname -s) 2>/dev/null || echo unknown`
988 uname -v = `(uname -v) 2>/dev/null || echo unknown`
989
990 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
991 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
992
993 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
994 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
995 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
996 hostinfo               = `(hostinfo) 2>/dev/null               || echo unknown`
997 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
998 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
999 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1000
1001 _ASUNAME
1002
1003 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1004 for as_dir in $PATH
1005 do
1006   IFS=$as_save_IFS
1007   test -z "$as_dir" && as_dir=.
1008   echo "PATH: $as_dir"
1009 done
1010
1011 } >&5
1012
1013 cat >&5 <<_ACEOF
1014
1015
1016 ## ----------- ##
1017 ## Core tests. ##
1018 ## ----------- ##
1019
1020 _ACEOF
1021
1022
1023 # Keep a trace of the command line.
1024 # Strip out --no-create and --no-recursion so they do not pile up.
1025 # Strip out --silent because we don't want to record it for future runs.
1026 # Also quote any args containing shell meta-characters.
1027 # Make two passes to allow for proper duplicate-argument suppression.
1028 ac_configure_args=
1029 ac_configure_args0=
1030 ac_configure_args1=
1031 ac_sep=
1032 ac_must_keep_next=false
1033 for ac_pass in 1 2
1034 do
1035   for ac_arg
1036   do
1037     case $ac_arg in
1038     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1039     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1040     | -silent | --silent | --silen | --sile | --sil)
1041       continue ;;
1042     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1043       ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1044     esac
1045     case $ac_pass in
1046     1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1047     2)
1048       ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1049       if test $ac_must_keep_next = true; then
1050         ac_must_keep_next=false # Got value, back to normal.
1051       else
1052         case $ac_arg in
1053           *=* | --config-cache | -C | -disable-* | --disable-* \
1054           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1055           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1056           | -with-* | --with-* | -without-* | --without-* | --x)
1057             case "$ac_configure_args0 " in
1058               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1059             esac
1060             ;;
1061           -* ) ac_must_keep_next=true ;;
1062         esac
1063       fi
1064       ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'"
1065       # Get rid of the leading space.
1066       ac_sep=" "
1067       ;;
1068     esac
1069   done
1070 done
1071 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1072 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1073
1074 # When interrupted or exit'd, cleanup temporary files, and complete
1075 # config.log.  We remove comments because anyway the quotes in there
1076 # would cause problems or look ugly.
1077 # WARNING: Be sure not to use single quotes in there, as some shells,
1078 # such as our DU 5.0 friend, will then `close' the trap.
1079 trap 'exit_status=$?
1080   # Save into config.log some information that might help in debugging.
1081   {
1082     echo
1083
1084     cat <<\_ASBOX
1085 ## ---------------- ##
1086 ## Cache variables. ##
1087 ## ---------------- ##
1088 _ASBOX
1089     echo
1090     # The following way of writing the cache mishandles newlines in values,
1091 {
1092   (set) 2>&1 |
1093     case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in
1094     *ac_space=\ *)
1095       sed -n \
1096         "s/'"'"'/'"'"'\\\\'"'"''"'"'/g;
1097           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p"
1098       ;;
1099     *)
1100       sed -n \
1101         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
1102       ;;
1103     esac;
1104 }
1105     echo
1106
1107     cat <<\_ASBOX
1108 ## ----------------- ##
1109 ## Output variables. ##
1110 ## ----------------- ##
1111 _ASBOX
1112     echo
1113     for ac_var in $ac_subst_vars
1114     do
1115       eval ac_val=$`echo $ac_var`
1116       echo "$ac_var='"'"'$ac_val'"'"'"
1117     done | sort
1118     echo
1119
1120     if test -n "$ac_subst_files"; then
1121       cat <<\_ASBOX
1122 ## ------------- ##
1123 ## Output files. ##
1124 ## ------------- ##
1125 _ASBOX
1126       echo
1127       for ac_var in $ac_subst_files
1128       do
1129         eval ac_val=$`echo $ac_var`
1130         echo "$ac_var='"'"'$ac_val'"'"'"
1131       done | sort
1132       echo
1133     fi
1134
1135     if test -s confdefs.h; then
1136       cat <<\_ASBOX
1137 ## ----------- ##
1138 ## confdefs.h. ##
1139 ## ----------- ##
1140 _ASBOX
1141       echo
1142       sed "/^$/d" confdefs.h | sort
1143       echo
1144     fi
1145     test "$ac_signal" != 0 &&
1146       echo "$as_me: caught signal $ac_signal"
1147     echo "$as_me: exit $exit_status"
1148   } >&5
1149   rm -f core *.core &&
1150   rm -rf conftest* confdefs* conf$$* $ac_clean_files &&
1151     exit $exit_status
1152      ' 0
1153 for ac_signal in 1 2 13 15; do
1154   trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1155 done
1156 ac_signal=0
1157
1158 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1159 rm -rf conftest* confdefs.h
1160 # AIX cpp loses on an empty file, so make sure it contains at least a newline.
1161 echo >confdefs.h
1162
1163 # Predefined preprocessor variables.
1164
1165 cat >>confdefs.h <<_ACEOF
1166 #define PACKAGE_NAME "$PACKAGE_NAME"
1167 _ACEOF
1168
1169
1170 cat >>confdefs.h <<_ACEOF
1171 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1172 _ACEOF
1173
1174
1175 cat >>confdefs.h <<_ACEOF
1176 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1177 _ACEOF
1178
1179
1180 cat >>confdefs.h <<_ACEOF
1181 #define PACKAGE_STRING "$PACKAGE_STRING"
1182 _ACEOF
1183
1184
1185 cat >>confdefs.h <<_ACEOF
1186 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1187 _ACEOF
1188
1189
1190 # Let the site file select an alternate cache file if it wants to.
1191 # Prefer explicitly selected file to automatically selected ones.
1192 if test -z "$CONFIG_SITE"; then
1193   if test "x$prefix" != xNONE; then
1194     CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site"
1195   else
1196     CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
1197   fi
1198 fi
1199 for ac_site_file in $CONFIG_SITE; do
1200   if test -r "$ac_site_file"; then
1201     { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1202 echo "$as_me: loading site script $ac_site_file" >&6;}
1203     sed 's/^/| /' "$ac_site_file" >&5
1204     . "$ac_site_file"
1205   fi
1206 done
1207
1208 if test -r "$cache_file"; then
1209   # Some versions of bash will fail to source /dev/null (special
1210   # files actually), so we avoid doing that.
1211   if test -f "$cache_file"; then
1212     { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1213 echo "$as_me: loading cache $cache_file" >&6;}
1214     case $cache_file in
1215       [\\/]* | ?:[\\/]* ) . $cache_file;;
1216       *)                      . ./$cache_file;;
1217     esac
1218   fi
1219 else
1220   { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1221 echo "$as_me: creating cache $cache_file" >&6;}
1222   >$cache_file
1223 fi
1224
1225 # Check that the precious variables saved in the cache have kept the same
1226 # value.
1227 ac_cache_corrupted=false
1228 for ac_var in `(set) 2>&1 |
1229                sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do
1230   eval ac_old_set=\$ac_cv_env_${ac_var}_set
1231   eval ac_new_set=\$ac_env_${ac_var}_set
1232   eval ac_old_val="\$ac_cv_env_${ac_var}_value"
1233   eval ac_new_val="\$ac_env_${ac_var}_value"
1234   case $ac_old_set,$ac_new_set in
1235     set,)
1236       { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1237 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1238       ac_cache_corrupted=: ;;
1239     ,set)
1240       { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1241 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1242       ac_cache_corrupted=: ;;
1243     ,);;
1244     *)
1245       if test "x$ac_old_val" != "x$ac_new_val"; then
1246         { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1247 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1248         { echo "$as_me:$LINENO:   former value:  $ac_old_val" >&5
1249 echo "$as_me:   former value:  $ac_old_val" >&2;}
1250         { echo "$as_me:$LINENO:   current value: $ac_new_val" >&5
1251 echo "$as_me:   current value: $ac_new_val" >&2;}
1252         ac_cache_corrupted=:
1253       fi;;
1254   esac
1255   # Pass precious variables to config.status.
1256   if test "$ac_new_set" = set; then
1257     case $ac_new_val in
1258     *" "*|*"    "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*)
1259       ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1260     *) ac_arg=$ac_var=$ac_new_val ;;
1261     esac
1262     case " $ac_configure_args " in
1263       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
1264       *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1265     esac
1266   fi
1267 done
1268 if $ac_cache_corrupted; then
1269   { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1270 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1271   { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1272 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1273    { (exit 1); exit 1; }; }
1274 fi
1275
1276 ac_ext=c
1277 ac_cpp='$CPP $CPPFLAGS'
1278 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1279 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1280 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1281
1282
1283
1284
1285
1286
1287
1288
1289
1290
1291
1292
1293
1294
1295
1296
1297
1298
1299
1300
1301 echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
1302 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6
1303 set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'`
1304 if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then
1305   echo $ECHO_N "(cached) $ECHO_C" >&6
1306 else
1307   cat >conftest.make <<\_ACEOF
1308 all:
1309         @echo 'ac_maketemp="$(MAKE)"'
1310 _ACEOF
1311 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
1312 eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=`
1313 if test -n "$ac_maketemp"; then
1314   eval ac_cv_prog_make_${ac_make}_set=yes
1315 else
1316   eval ac_cv_prog_make_${ac_make}_set=no
1317 fi
1318 rm -f conftest.make
1319 fi
1320 if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then
1321   echo "$as_me:$LINENO: result: yes" >&5
1322 echo "${ECHO_T}yes" >&6
1323   SET_MAKE=
1324 else
1325   echo "$as_me:$LINENO: result: no" >&5
1326 echo "${ECHO_T}no" >&6
1327   SET_MAKE="MAKE=${MAKE-make}"
1328 fi
1329
1330 ac_ext=c
1331 ac_cpp='$CPP $CPPFLAGS'
1332 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1333 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1334 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1335 if test -n "$ac_tool_prefix"; then
1336   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
1337 set dummy ${ac_tool_prefix}gcc; ac_word=$2
1338 echo "$as_me:$LINENO: checking for $ac_word" >&5
1339 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1340 if test "${ac_cv_prog_CC+set}" = set; then
1341   echo $ECHO_N "(cached) $ECHO_C" >&6
1342 else
1343   if test -n "$CC"; then
1344   ac_cv_prog_CC="$CC" # Let the user override the test.
1345 else
1346 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1347 for as_dir in $PATH
1348 do
1349   IFS=$as_save_IFS
1350   test -z "$as_dir" && as_dir=.
1351   for ac_exec_ext in '' $ac_executable_extensions; do
1352   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1353     ac_cv_prog_CC="${ac_tool_prefix}gcc"
1354     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1355     break 2
1356   fi
1357 done
1358 done
1359
1360 fi
1361 fi
1362 CC=$ac_cv_prog_CC
1363 if test -n "$CC"; then
1364   echo "$as_me:$LINENO: result: $CC" >&5
1365 echo "${ECHO_T}$CC" >&6
1366 else
1367   echo "$as_me:$LINENO: result: no" >&5
1368 echo "${ECHO_T}no" >&6
1369 fi
1370
1371 fi
1372 if test -z "$ac_cv_prog_CC"; then
1373   ac_ct_CC=$CC
1374   # Extract the first word of "gcc", so it can be a program name with args.
1375 set dummy gcc; ac_word=$2
1376 echo "$as_me:$LINENO: checking for $ac_word" >&5
1377 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1378 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1379   echo $ECHO_N "(cached) $ECHO_C" >&6
1380 else
1381   if test -n "$ac_ct_CC"; then
1382   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1383 else
1384 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1385 for as_dir in $PATH
1386 do
1387   IFS=$as_save_IFS
1388   test -z "$as_dir" && as_dir=.
1389   for ac_exec_ext in '' $ac_executable_extensions; do
1390   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1391     ac_cv_prog_ac_ct_CC="gcc"
1392     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1393     break 2
1394   fi
1395 done
1396 done
1397
1398 fi
1399 fi
1400 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1401 if test -n "$ac_ct_CC"; then
1402   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1403 echo "${ECHO_T}$ac_ct_CC" >&6
1404 else
1405   echo "$as_me:$LINENO: result: no" >&5
1406 echo "${ECHO_T}no" >&6
1407 fi
1408
1409   CC=$ac_ct_CC
1410 else
1411   CC="$ac_cv_prog_CC"
1412 fi
1413
1414 if test -z "$CC"; then
1415   if test -n "$ac_tool_prefix"; then
1416   # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
1417 set dummy ${ac_tool_prefix}cc; ac_word=$2
1418 echo "$as_me:$LINENO: checking for $ac_word" >&5
1419 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1420 if test "${ac_cv_prog_CC+set}" = set; then
1421   echo $ECHO_N "(cached) $ECHO_C" >&6
1422 else
1423   if test -n "$CC"; then
1424   ac_cv_prog_CC="$CC" # Let the user override the test.
1425 else
1426 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1427 for as_dir in $PATH
1428 do
1429   IFS=$as_save_IFS
1430   test -z "$as_dir" && as_dir=.
1431   for ac_exec_ext in '' $ac_executable_extensions; do
1432   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1433     ac_cv_prog_CC="${ac_tool_prefix}cc"
1434     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1435     break 2
1436   fi
1437 done
1438 done
1439
1440 fi
1441 fi
1442 CC=$ac_cv_prog_CC
1443 if test -n "$CC"; then
1444   echo "$as_me:$LINENO: result: $CC" >&5
1445 echo "${ECHO_T}$CC" >&6
1446 else
1447   echo "$as_me:$LINENO: result: no" >&5
1448 echo "${ECHO_T}no" >&6
1449 fi
1450
1451 fi
1452 if test -z "$ac_cv_prog_CC"; then
1453   ac_ct_CC=$CC
1454   # Extract the first word of "cc", so it can be a program name with args.
1455 set dummy cc; ac_word=$2
1456 echo "$as_me:$LINENO: checking for $ac_word" >&5
1457 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1458 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1459   echo $ECHO_N "(cached) $ECHO_C" >&6
1460 else
1461   if test -n "$ac_ct_CC"; then
1462   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1463 else
1464 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1465 for as_dir in $PATH
1466 do
1467   IFS=$as_save_IFS
1468   test -z "$as_dir" && as_dir=.
1469   for ac_exec_ext in '' $ac_executable_extensions; do
1470   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1471     ac_cv_prog_ac_ct_CC="cc"
1472     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1473     break 2
1474   fi
1475 done
1476 done
1477
1478 fi
1479 fi
1480 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1481 if test -n "$ac_ct_CC"; then
1482   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1483 echo "${ECHO_T}$ac_ct_CC" >&6
1484 else
1485   echo "$as_me:$LINENO: result: no" >&5
1486 echo "${ECHO_T}no" >&6
1487 fi
1488
1489   CC=$ac_ct_CC
1490 else
1491   CC="$ac_cv_prog_CC"
1492 fi
1493
1494 fi
1495 if test -z "$CC"; then
1496   # Extract the first word of "cc", so it can be a program name with args.
1497 set dummy cc; ac_word=$2
1498 echo "$as_me:$LINENO: checking for $ac_word" >&5
1499 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1500 if test "${ac_cv_prog_CC+set}" = set; then
1501   echo $ECHO_N "(cached) $ECHO_C" >&6
1502 else
1503   if test -n "$CC"; then
1504   ac_cv_prog_CC="$CC" # Let the user override the test.
1505 else
1506   ac_prog_rejected=no
1507 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1508 for as_dir in $PATH
1509 do
1510   IFS=$as_save_IFS
1511   test -z "$as_dir" && as_dir=.
1512   for ac_exec_ext in '' $ac_executable_extensions; do
1513   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1514     if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
1515        ac_prog_rejected=yes
1516        continue
1517      fi
1518     ac_cv_prog_CC="cc"
1519     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1520     break 2
1521   fi
1522 done
1523 done
1524
1525 if test $ac_prog_rejected = yes; then
1526   # We found a bogon in the path, so make sure we never use it.
1527   set dummy $ac_cv_prog_CC
1528   shift
1529   if test $# != 0; then
1530     # We chose a different compiler from the bogus one.
1531     # However, it has the same basename, so the bogon will be chosen
1532     # first if we set CC to just the basename; use the full file name.
1533     shift
1534     ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
1535   fi
1536 fi
1537 fi
1538 fi
1539 CC=$ac_cv_prog_CC
1540 if test -n "$CC"; then
1541   echo "$as_me:$LINENO: result: $CC" >&5
1542 echo "${ECHO_T}$CC" >&6
1543 else
1544   echo "$as_me:$LINENO: result: no" >&5
1545 echo "${ECHO_T}no" >&6
1546 fi
1547
1548 fi
1549 if test -z "$CC"; then
1550   if test -n "$ac_tool_prefix"; then
1551   for ac_prog in cl
1552   do
1553     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
1554 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
1555 echo "$as_me:$LINENO: checking for $ac_word" >&5
1556 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1557 if test "${ac_cv_prog_CC+set}" = set; then
1558   echo $ECHO_N "(cached) $ECHO_C" >&6
1559 else
1560   if test -n "$CC"; then
1561   ac_cv_prog_CC="$CC" # Let the user override the test.
1562 else
1563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1564 for as_dir in $PATH
1565 do
1566   IFS=$as_save_IFS
1567   test -z "$as_dir" && as_dir=.
1568   for ac_exec_ext in '' $ac_executable_extensions; do
1569   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1570     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
1571     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1572     break 2
1573   fi
1574 done
1575 done
1576
1577 fi
1578 fi
1579 CC=$ac_cv_prog_CC
1580 if test -n "$CC"; then
1581   echo "$as_me:$LINENO: result: $CC" >&5
1582 echo "${ECHO_T}$CC" >&6
1583 else
1584   echo "$as_me:$LINENO: result: no" >&5
1585 echo "${ECHO_T}no" >&6
1586 fi
1587
1588     test -n "$CC" && break
1589   done
1590 fi
1591 if test -z "$CC"; then
1592   ac_ct_CC=$CC
1593   for ac_prog in cl
1594 do
1595   # Extract the first word of "$ac_prog", so it can be a program name with args.
1596 set dummy $ac_prog; ac_word=$2
1597 echo "$as_me:$LINENO: checking for $ac_word" >&5
1598 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
1599 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
1600   echo $ECHO_N "(cached) $ECHO_C" >&6
1601 else
1602   if test -n "$ac_ct_CC"; then
1603   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
1604 else
1605 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1606 for as_dir in $PATH
1607 do
1608   IFS=$as_save_IFS
1609   test -z "$as_dir" && as_dir=.
1610   for ac_exec_ext in '' $ac_executable_extensions; do
1611   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
1612     ac_cv_prog_ac_ct_CC="$ac_prog"
1613     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
1614     break 2
1615   fi
1616 done
1617 done
1618
1619 fi
1620 fi
1621 ac_ct_CC=$ac_cv_prog_ac_ct_CC
1622 if test -n "$ac_ct_CC"; then
1623   echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
1624 echo "${ECHO_T}$ac_ct_CC" >&6
1625 else
1626   echo "$as_me:$LINENO: result: no" >&5
1627 echo "${ECHO_T}no" >&6
1628 fi
1629
1630   test -n "$ac_ct_CC" && break
1631 done
1632
1633   CC=$ac_ct_CC
1634 fi
1635
1636 fi
1637
1638
1639 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
1640 See \`config.log' for more details." >&5
1641 echo "$as_me: error: no acceptable C compiler found in \$PATH
1642 See \`config.log' for more details." >&2;}
1643    { (exit 1); exit 1; }; }
1644
1645 # Provide some information about the compiler.
1646 echo "$as_me:$LINENO:" \
1647      "checking for C compiler version" >&5
1648 ac_compiler=`set X $ac_compile; echo $2`
1649 { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5
1650   (eval $ac_compiler --version </dev/null >&5) 2>&5
1651   ac_status=$?
1652   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1653   (exit $ac_status); }
1654 { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5
1655   (eval $ac_compiler -v </dev/null >&5) 2>&5
1656   ac_status=$?
1657   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1658   (exit $ac_status); }
1659 { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5
1660   (eval $ac_compiler -V </dev/null >&5) 2>&5
1661   ac_status=$?
1662   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1663   (exit $ac_status); }
1664
1665 cat >conftest.$ac_ext <<_ACEOF
1666 /* confdefs.h.  */
1667 _ACEOF
1668 cat confdefs.h >>conftest.$ac_ext
1669 cat >>conftest.$ac_ext <<_ACEOF
1670 /* end confdefs.h.  */
1671
1672 int
1673 main ()
1674 {
1675
1676   ;
1677   return 0;
1678 }
1679 _ACEOF
1680 ac_clean_files_save=$ac_clean_files
1681 ac_clean_files="$ac_clean_files a.out a.exe b.out"
1682 # Try to create an executable without -o first, disregard a.out.
1683 # It will help us diagnose broken compilers, and finding out an intuition
1684 # of exeext.
1685 echo "$as_me:$LINENO: checking for C compiler default output file name" >&5
1686 echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6
1687 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
1688 if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5
1689   (eval $ac_link_default) 2>&5
1690   ac_status=$?
1691   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1692   (exit $ac_status); }; then
1693   # Find the output, starting from the most likely.  This scheme is
1694 # not robust to junk in `.', hence go to wildcards (a.*) only as a last
1695 # resort.
1696
1697 # Be careful to initialize this variable, since it used to be cached.
1698 # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile.
1699 ac_cv_exeext=
1700 # b.out is created by i960 compilers.
1701 for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out
1702 do
1703   test -f "$ac_file" || continue
1704   case $ac_file in
1705     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj )
1706         ;;
1707     conftest.$ac_ext )
1708         # This is the source file.
1709         ;;
1710     [ab].out )
1711         # We found the default executable, but exeext='' is most
1712         # certainly right.
1713         break;;
1714     *.* )
1715         ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1716         # FIXME: I believe we export ac_cv_exeext for Libtool,
1717         # but it would be cool to find out if it's true.  Does anybody
1718         # maintain Libtool? --akim.
1719         export ac_cv_exeext
1720         break;;
1721     * )
1722         break;;
1723   esac
1724 done
1725 else
1726   echo "$as_me: failed program was:" >&5
1727 sed 's/^/| /' conftest.$ac_ext >&5
1728
1729 { { echo "$as_me:$LINENO: error: C compiler cannot create executables
1730 See \`config.log' for more details." >&5
1731 echo "$as_me: error: C compiler cannot create executables
1732 See \`config.log' for more details." >&2;}
1733    { (exit 77); exit 77; }; }
1734 fi
1735
1736 ac_exeext=$ac_cv_exeext
1737 echo "$as_me:$LINENO: result: $ac_file" >&5
1738 echo "${ECHO_T}$ac_file" >&6
1739
1740 # Check the compiler produces executables we can run.  If not, either
1741 # the compiler is broken, or we cross compile.
1742 echo "$as_me:$LINENO: checking whether the C compiler works" >&5
1743 echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6
1744 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
1745 # If not cross compiling, check that we can run a simple program.
1746 if test "$cross_compiling" != yes; then
1747   if { ac_try='./$ac_file'
1748   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1749   (eval $ac_try) 2>&5
1750   ac_status=$?
1751   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1752   (exit $ac_status); }; }; then
1753     cross_compiling=no
1754   else
1755     if test "$cross_compiling" = maybe; then
1756         cross_compiling=yes
1757     else
1758         { { echo "$as_me:$LINENO: error: cannot run C compiled programs.
1759 If you meant to cross compile, use \`--host'.
1760 See \`config.log' for more details." >&5
1761 echo "$as_me: error: cannot run C compiled programs.
1762 If you meant to cross compile, use \`--host'.
1763 See \`config.log' for more details." >&2;}
1764    { (exit 1); exit 1; }; }
1765     fi
1766   fi
1767 fi
1768 echo "$as_me:$LINENO: result: yes" >&5
1769 echo "${ECHO_T}yes" >&6
1770
1771 rm -f a.out a.exe conftest$ac_cv_exeext b.out
1772 ac_clean_files=$ac_clean_files_save
1773 # Check the compiler produces executables we can run.  If not, either
1774 # the compiler is broken, or we cross compile.
1775 echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
1776 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6
1777 echo "$as_me:$LINENO: result: $cross_compiling" >&5
1778 echo "${ECHO_T}$cross_compiling" >&6
1779
1780 echo "$as_me:$LINENO: checking for suffix of executables" >&5
1781 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6
1782 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
1783   (eval $ac_link) 2>&5
1784   ac_status=$?
1785   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1786   (exit $ac_status); }; then
1787   # If both `conftest.exe' and `conftest' are `present' (well, observable)
1788 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
1789 # work properly (i.e., refer to `conftest.exe'), while it won't with
1790 # `rm'.
1791 for ac_file in conftest.exe conftest conftest.*; do
1792   test -f "$ac_file" || continue
1793   case $ac_file in
1794     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;;
1795     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
1796           export ac_cv_exeext
1797           break;;
1798     * ) break;;
1799   esac
1800 done
1801 else
1802   { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
1803 See \`config.log' for more details." >&5
1804 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
1805 See \`config.log' for more details." >&2;}
1806    { (exit 1); exit 1; }; }
1807 fi
1808
1809 rm -f conftest$ac_cv_exeext
1810 echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
1811 echo "${ECHO_T}$ac_cv_exeext" >&6
1812
1813 rm -f conftest.$ac_ext
1814 EXEEXT=$ac_cv_exeext
1815 ac_exeext=$EXEEXT
1816 echo "$as_me:$LINENO: checking for suffix of object files" >&5
1817 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6
1818 if test "${ac_cv_objext+set}" = set; then
1819   echo $ECHO_N "(cached) $ECHO_C" >&6
1820 else
1821   cat >conftest.$ac_ext <<_ACEOF
1822 /* confdefs.h.  */
1823 _ACEOF
1824 cat confdefs.h >>conftest.$ac_ext
1825 cat >>conftest.$ac_ext <<_ACEOF
1826 /* end confdefs.h.  */
1827
1828 int
1829 main ()
1830 {
1831
1832   ;
1833   return 0;
1834 }
1835 _ACEOF
1836 rm -f conftest.o conftest.obj
1837 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1838   (eval $ac_compile) 2>&5
1839   ac_status=$?
1840   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1841   (exit $ac_status); }; then
1842   for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do
1843   case $ac_file in
1844     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;;
1845     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
1846        break;;
1847   esac
1848 done
1849 else
1850   echo "$as_me: failed program was:" >&5
1851 sed 's/^/| /' conftest.$ac_ext >&5
1852
1853 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
1854 See \`config.log' for more details." >&5
1855 echo "$as_me: error: cannot compute suffix of object files: cannot compile
1856 See \`config.log' for more details." >&2;}
1857    { (exit 1); exit 1; }; }
1858 fi
1859
1860 rm -f conftest.$ac_cv_objext conftest.$ac_ext
1861 fi
1862 echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
1863 echo "${ECHO_T}$ac_cv_objext" >&6
1864 OBJEXT=$ac_cv_objext
1865 ac_objext=$OBJEXT
1866 echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
1867 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6
1868 if test "${ac_cv_c_compiler_gnu+set}" = set; then
1869   echo $ECHO_N "(cached) $ECHO_C" >&6
1870 else
1871   cat >conftest.$ac_ext <<_ACEOF
1872 /* confdefs.h.  */
1873 _ACEOF
1874 cat confdefs.h >>conftest.$ac_ext
1875 cat >>conftest.$ac_ext <<_ACEOF
1876 /* end confdefs.h.  */
1877
1878 int
1879 main ()
1880 {
1881 #ifndef __GNUC__
1882        choke me
1883 #endif
1884
1885   ;
1886   return 0;
1887 }
1888 _ACEOF
1889 rm -f conftest.$ac_objext
1890 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1891   (eval $ac_compile) 2>conftest.er1
1892   ac_status=$?
1893   grep -v '^ *+' conftest.er1 >conftest.err
1894   rm -f conftest.er1
1895   cat conftest.err >&5
1896   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1897   (exit $ac_status); } &&
1898          { ac_try='test -z "$ac_c_werror_flag"
1899                          || test ! -s conftest.err'
1900   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1901   (eval $ac_try) 2>&5
1902   ac_status=$?
1903   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1904   (exit $ac_status); }; } &&
1905          { ac_try='test -s conftest.$ac_objext'
1906   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1907   (eval $ac_try) 2>&5
1908   ac_status=$?
1909   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1910   (exit $ac_status); }; }; then
1911   ac_compiler_gnu=yes
1912 else
1913   echo "$as_me: failed program was:" >&5
1914 sed 's/^/| /' conftest.$ac_ext >&5
1915
1916 ac_compiler_gnu=no
1917 fi
1918 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1919 ac_cv_c_compiler_gnu=$ac_compiler_gnu
1920
1921 fi
1922 echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
1923 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6
1924 GCC=`test $ac_compiler_gnu = yes && echo yes`
1925 ac_test_CFLAGS=${CFLAGS+set}
1926 ac_save_CFLAGS=$CFLAGS
1927 CFLAGS="-g"
1928 echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
1929 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6
1930 if test "${ac_cv_prog_cc_g+set}" = set; then
1931   echo $ECHO_N "(cached) $ECHO_C" >&6
1932 else
1933   cat >conftest.$ac_ext <<_ACEOF
1934 /* confdefs.h.  */
1935 _ACEOF
1936 cat confdefs.h >>conftest.$ac_ext
1937 cat >>conftest.$ac_ext <<_ACEOF
1938 /* end confdefs.h.  */
1939
1940 int
1941 main ()
1942 {
1943
1944   ;
1945   return 0;
1946 }
1947 _ACEOF
1948 rm -f conftest.$ac_objext
1949 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
1950   (eval $ac_compile) 2>conftest.er1
1951   ac_status=$?
1952   grep -v '^ *+' conftest.er1 >conftest.err
1953   rm -f conftest.er1
1954   cat conftest.err >&5
1955   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1956   (exit $ac_status); } &&
1957          { ac_try='test -z "$ac_c_werror_flag"
1958                          || test ! -s conftest.err'
1959   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1960   (eval $ac_try) 2>&5
1961   ac_status=$?
1962   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1963   (exit $ac_status); }; } &&
1964          { ac_try='test -s conftest.$ac_objext'
1965   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
1966   (eval $ac_try) 2>&5
1967   ac_status=$?
1968   echo "$as_me:$LINENO: \$? = $ac_status" >&5
1969   (exit $ac_status); }; }; then
1970   ac_cv_prog_cc_g=yes
1971 else
1972   echo "$as_me: failed program was:" >&5
1973 sed 's/^/| /' conftest.$ac_ext >&5
1974
1975 ac_cv_prog_cc_g=no
1976 fi
1977 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
1978 fi
1979 echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
1980 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6
1981 if test "$ac_test_CFLAGS" = set; then
1982   CFLAGS=$ac_save_CFLAGS
1983 elif test $ac_cv_prog_cc_g = yes; then
1984   if test "$GCC" = yes; then
1985     CFLAGS="-g -O2"
1986   else
1987     CFLAGS="-g"
1988   fi
1989 else
1990   if test "$GCC" = yes; then
1991     CFLAGS="-O2"
1992   else
1993     CFLAGS=
1994   fi
1995 fi
1996 echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5
1997 echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6
1998 if test "${ac_cv_prog_cc_stdc+set}" = set; then
1999   echo $ECHO_N "(cached) $ECHO_C" >&6
2000 else
2001   ac_cv_prog_cc_stdc=no
2002 ac_save_CC=$CC
2003 cat >conftest.$ac_ext <<_ACEOF
2004 /* confdefs.h.  */
2005 _ACEOF
2006 cat confdefs.h >>conftest.$ac_ext
2007 cat >>conftest.$ac_ext <<_ACEOF
2008 /* end confdefs.h.  */
2009 #include <stdarg.h>
2010 #include <stdio.h>
2011 #include <sys/types.h>
2012 #include <sys/stat.h>
2013 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh.  */
2014 struct buf { int x; };
2015 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2016 static char *e (p, i)
2017      char **p;
2018      int i;
2019 {
2020   return p[i];
2021 }
2022 static char *f (char * (*g) (char **, int), char **p, ...)
2023 {
2024   char *s;
2025   va_list v;
2026   va_start (v,p);
2027   s = g (p, va_arg (v,int));
2028   va_end (v);
2029   return s;
2030 }
2031
2032 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2033    function prototypes and stuff, but not '\xHH' hex character constants.
2034    These don't provoke an error unfortunately, instead are silently treated
2035    as 'x'.  The following induces an error, until -std1 is added to get
2036    proper ANSI mode.  Curiously '\x00'!='x' always comes out true, for an
2037    array size at least.  It's necessary to write '\x00'==0 to get something
2038    that's true only with -std1.  */
2039 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2040
2041 int test (int i, double x);
2042 struct s1 {int (*f) (int a);};
2043 struct s2 {int (*f) (double a);};
2044 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2045 int argc;
2046 char **argv;
2047 int
2048 main ()
2049 {
2050 return f (e, argv, 0) != argv[0]  ||  f (e, argv, 1) != argv[1];
2051   ;
2052   return 0;
2053 }
2054 _ACEOF
2055 # Don't try gcc -ansi; that turns off useful extensions and
2056 # breaks some systems' header files.
2057 # AIX                   -qlanglvl=ansi
2058 # Ultrix and OSF/1      -std1
2059 # HP-UX 10.20 and later -Ae
2060 # HP-UX older versions  -Aa -D_HPUX_SOURCE
2061 # SVR4                  -Xc -D__EXTENSIONS__
2062 for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2063 do
2064   CC="$ac_save_CC $ac_arg"
2065   rm -f conftest.$ac_objext
2066 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2067   (eval $ac_compile) 2>conftest.er1
2068   ac_status=$?
2069   grep -v '^ *+' conftest.er1 >conftest.err
2070   rm -f conftest.er1
2071   cat conftest.err >&5
2072   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2073   (exit $ac_status); } &&
2074          { ac_try='test -z "$ac_c_werror_flag"
2075                          || test ! -s conftest.err'
2076   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2077   (eval $ac_try) 2>&5
2078   ac_status=$?
2079   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2080   (exit $ac_status); }; } &&
2081          { ac_try='test -s conftest.$ac_objext'
2082   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2083   (eval $ac_try) 2>&5
2084   ac_status=$?
2085   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2086   (exit $ac_status); }; }; then
2087   ac_cv_prog_cc_stdc=$ac_arg
2088 break
2089 else
2090   echo "$as_me: failed program was:" >&5
2091 sed 's/^/| /' conftest.$ac_ext >&5
2092
2093 fi
2094 rm -f conftest.err conftest.$ac_objext
2095 done
2096 rm -f conftest.$ac_ext conftest.$ac_objext
2097 CC=$ac_save_CC
2098
2099 fi
2100
2101 case "x$ac_cv_prog_cc_stdc" in
2102   x|xno)
2103     echo "$as_me:$LINENO: result: none needed" >&5
2104 echo "${ECHO_T}none needed" >&6 ;;
2105   *)
2106     echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5
2107 echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6
2108     CC="$CC $ac_cv_prog_cc_stdc" ;;
2109 esac
2110
2111 # Some people use a C++ compiler to compile C.  Since we use `exit',
2112 # in C++ we need to declare it.  In case someone uses the same compiler
2113 # for both compiling C and C++ we need to have the C++ compiler decide
2114 # the declaration of exit, since it's the most demanding environment.
2115 cat >conftest.$ac_ext <<_ACEOF
2116 #ifndef __cplusplus
2117   choke me
2118 #endif
2119 _ACEOF
2120 rm -f conftest.$ac_objext
2121 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2122   (eval $ac_compile) 2>conftest.er1
2123   ac_status=$?
2124   grep -v '^ *+' conftest.er1 >conftest.err
2125   rm -f conftest.er1
2126   cat conftest.err >&5
2127   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2128   (exit $ac_status); } &&
2129          { ac_try='test -z "$ac_c_werror_flag"
2130                          || test ! -s conftest.err'
2131   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2132   (eval $ac_try) 2>&5
2133   ac_status=$?
2134   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2135   (exit $ac_status); }; } &&
2136          { ac_try='test -s conftest.$ac_objext'
2137   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2138   (eval $ac_try) 2>&5
2139   ac_status=$?
2140   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2141   (exit $ac_status); }; }; then
2142   for ac_declaration in \
2143    '' \
2144    'extern "C" void std::exit (int) throw (); using std::exit;' \
2145    'extern "C" void std::exit (int); using std::exit;' \
2146    'extern "C" void exit (int) throw ();' \
2147    'extern "C" void exit (int);' \
2148    'void exit (int);'
2149 do
2150   cat >conftest.$ac_ext <<_ACEOF
2151 /* confdefs.h.  */
2152 _ACEOF
2153 cat confdefs.h >>conftest.$ac_ext
2154 cat >>conftest.$ac_ext <<_ACEOF
2155 /* end confdefs.h.  */
2156 $ac_declaration
2157 #include <stdlib.h>
2158 int
2159 main ()
2160 {
2161 exit (42);
2162   ;
2163   return 0;
2164 }
2165 _ACEOF
2166 rm -f conftest.$ac_objext
2167 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2168   (eval $ac_compile) 2>conftest.er1
2169   ac_status=$?
2170   grep -v '^ *+' conftest.er1 >conftest.err
2171   rm -f conftest.er1
2172   cat conftest.err >&5
2173   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2174   (exit $ac_status); } &&
2175          { ac_try='test -z "$ac_c_werror_flag"
2176                          || test ! -s conftest.err'
2177   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2178   (eval $ac_try) 2>&5
2179   ac_status=$?
2180   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2181   (exit $ac_status); }; } &&
2182          { ac_try='test -s conftest.$ac_objext'
2183   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2184   (eval $ac_try) 2>&5
2185   ac_status=$?
2186   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2187   (exit $ac_status); }; }; then
2188   :
2189 else
2190   echo "$as_me: failed program was:" >&5
2191 sed 's/^/| /' conftest.$ac_ext >&5
2192
2193 continue
2194 fi
2195 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2196   cat >conftest.$ac_ext <<_ACEOF
2197 /* confdefs.h.  */
2198 _ACEOF
2199 cat confdefs.h >>conftest.$ac_ext
2200 cat >>conftest.$ac_ext <<_ACEOF
2201 /* end confdefs.h.  */
2202 $ac_declaration
2203 int
2204 main ()
2205 {
2206 exit (42);
2207   ;
2208   return 0;
2209 }
2210 _ACEOF
2211 rm -f conftest.$ac_objext
2212 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2213   (eval $ac_compile) 2>conftest.er1
2214   ac_status=$?
2215   grep -v '^ *+' conftest.er1 >conftest.err
2216   rm -f conftest.er1
2217   cat conftest.err >&5
2218   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2219   (exit $ac_status); } &&
2220          { ac_try='test -z "$ac_c_werror_flag"
2221                          || test ! -s conftest.err'
2222   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2223   (eval $ac_try) 2>&5
2224   ac_status=$?
2225   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2226   (exit $ac_status); }; } &&
2227          { ac_try='test -s conftest.$ac_objext'
2228   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2229   (eval $ac_try) 2>&5
2230   ac_status=$?
2231   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2232   (exit $ac_status); }; }; then
2233   break
2234 else
2235   echo "$as_me: failed program was:" >&5
2236 sed 's/^/| /' conftest.$ac_ext >&5
2237
2238 fi
2239 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2240 done
2241 rm -f conftest*
2242 if test -n "$ac_declaration"; then
2243   echo '#ifdef __cplusplus' >>confdefs.h
2244   echo $ac_declaration      >>confdefs.h
2245   echo '#endif'             >>confdefs.h
2246 fi
2247
2248 else
2249   echo "$as_me: failed program was:" >&5
2250 sed 's/^/| /' conftest.$ac_ext >&5
2251
2252 fi
2253 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2254 ac_ext=c
2255 ac_cpp='$CPP $CPPFLAGS'
2256 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2257 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2258 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2259
2260 if test -n "$ac_tool_prefix"; then
2261   # Extract the first word of "${ac_tool_prefix}ld", so it can be a program name with args.
2262 set dummy ${ac_tool_prefix}ld; ac_word=$2
2263 echo "$as_me:$LINENO: checking for $ac_word" >&5
2264 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2265 if test "${ac_cv_prog_LD+set}" = set; then
2266   echo $ECHO_N "(cached) $ECHO_C" >&6
2267 else
2268   if test -n "$LD"; then
2269   ac_cv_prog_LD="$LD" # Let the user override the test.
2270 else
2271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2272 for as_dir in $PATH
2273 do
2274   IFS=$as_save_IFS
2275   test -z "$as_dir" && as_dir=.
2276   for ac_exec_ext in '' $ac_executable_extensions; do
2277   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2278     ac_cv_prog_LD="${ac_tool_prefix}ld"
2279     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2280     break 2
2281   fi
2282 done
2283 done
2284
2285 fi
2286 fi
2287 LD=$ac_cv_prog_LD
2288 if test -n "$LD"; then
2289   echo "$as_me:$LINENO: result: $LD" >&5
2290 echo "${ECHO_T}$LD" >&6
2291 else
2292   echo "$as_me:$LINENO: result: no" >&5
2293 echo "${ECHO_T}no" >&6
2294 fi
2295
2296 fi
2297 if test -z "$ac_cv_prog_LD"; then
2298   ac_ct_LD=$LD
2299   # Extract the first word of "ld", so it can be a program name with args.
2300 set dummy ld; ac_word=$2
2301 echo "$as_me:$LINENO: checking for $ac_word" >&5
2302 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6
2303 if test "${ac_cv_prog_ac_ct_LD+set}" = set; then
2304   echo $ECHO_N "(cached) $ECHO_C" >&6
2305 else
2306   if test -n "$ac_ct_LD"; then
2307   ac_cv_prog_ac_ct_LD="$ac_ct_LD" # Let the user override the test.
2308 else
2309 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2310 for as_dir in $PATH
2311 do
2312   IFS=$as_save_IFS
2313   test -z "$as_dir" && as_dir=.
2314   for ac_exec_ext in '' $ac_executable_extensions; do
2315   if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2316     ac_cv_prog_ac_ct_LD="ld"
2317     echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2318     break 2
2319   fi
2320 done
2321 done
2322
2323 fi
2324 fi
2325 ac_ct_LD=$ac_cv_prog_ac_ct_LD
2326 if test -n "$ac_ct_LD"; then
2327   echo "$as_me:$LINENO: result: $ac_ct_LD" >&5
2328 echo "${ECHO_T}$ac_ct_LD" >&6
2329 else
2330   echo "$as_me:$LINENO: result: no" >&5
2331 echo "${ECHO_T}no" >&6
2332 fi
2333
2334   LD=$ac_ct_LD
2335 else
2336   LD="$ac_cv_prog_LD"
2337 fi
2338
2339 ac_aux_dir=
2340 for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do
2341   if test -f $ac_dir/install-sh; then
2342     ac_aux_dir=$ac_dir
2343     ac_install_sh="$ac_aux_dir/install-sh -c"
2344     break
2345   elif test -f $ac_dir/install.sh; then
2346     ac_aux_dir=$ac_dir
2347     ac_install_sh="$ac_aux_dir/install.sh -c"
2348     break
2349   elif test -f $ac_dir/shtool; then
2350     ac_aux_dir=$ac_dir
2351     ac_install_sh="$ac_aux_dir/shtool install -c"
2352     break
2353   fi
2354 done
2355 if test -z "$ac_aux_dir"; then
2356   { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5
2357 echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;}
2358    { (exit 1); exit 1; }; }
2359 fi
2360 ac_config_guess="$SHELL $ac_aux_dir/config.guess"
2361 ac_config_sub="$SHELL $ac_aux_dir/config.sub"
2362 ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure.
2363
2364 # Find a good install program.  We prefer a C program (faster),
2365 # so one script is as good as another.  But avoid the broken or
2366 # incompatible versions:
2367 # SysV /etc/install, /usr/sbin/install
2368 # SunOS /usr/etc/install
2369 # IRIX /sbin/install
2370 # AIX /bin/install
2371 # AmigaOS /C/install, which installs bootblocks on floppy discs
2372 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2373 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2374 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2375 # OS/2's system install, which has a completely different semantic
2376 # ./install, which can be erroneously created by make from ./install.sh.
2377 echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
2378 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6
2379 if test -z "$INSTALL"; then
2380 if test "${ac_cv_path_install+set}" = set; then
2381   echo $ECHO_N "(cached) $ECHO_C" >&6
2382 else
2383   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2384 for as_dir in $PATH
2385 do
2386   IFS=$as_save_IFS
2387   test -z "$as_dir" && as_dir=.
2388   # Account for people who put trailing slashes in PATH elements.
2389 case $as_dir/ in
2390   ./ | .// | /cC/* | \
2391   /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2392   ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
2393   /usr/ucb/* ) ;;
2394   *)
2395     # OSF1 and SCO ODT 3.0 have their own names for install.
2396     # Don't use installbsd from OSF since it installs stuff as root
2397     # by default.
2398     for ac_prog in ginstall scoinst install; do
2399       for ac_exec_ext in '' $ac_executable_extensions; do
2400         if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2401           if test $ac_prog = install &&
2402             grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2403             # AIX install.  It has an incompatible calling convention.
2404             :
2405           elif test $ac_prog = install &&
2406             grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2407             # program-specific install script used by HP pwplus--don't use.
2408             :
2409           else
2410             ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2411             break 3
2412           fi
2413         fi
2414       done
2415     done
2416     ;;
2417 esac
2418 done
2419
2420
2421 fi
2422   if test "${ac_cv_path_install+set}" = set; then
2423     INSTALL=$ac_cv_path_install
2424   else
2425     # As a last resort, use the slow shell script.  We don't cache a
2426     # path for INSTALL within a source directory, because that will
2427     # break other packages using the cache if that directory is
2428     # removed, or if the path is relative.
2429     INSTALL=$ac_install_sh
2430   fi
2431 fi
2432 echo "$as_me:$LINENO: result: $INSTALL" >&5
2433 echo "${ECHO_T}$INSTALL" >&6
2434
2435 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2436 # It thinks the first close brace ends the variable substitution.
2437 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2438
2439 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2440
2441 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2442
2443
2444
2445
2446 echo "$as_me:$LINENO: checking for dlopen in -ldl" >&5
2447 echo $ECHO_N "checking for dlopen in -ldl... $ECHO_C" >&6
2448 if test "${ac_cv_lib_dl_dlopen+set}" = set; then
2449   echo $ECHO_N "(cached) $ECHO_C" >&6
2450 else
2451   ac_check_lib_save_LIBS=$LIBS
2452 LIBS="-ldl  $LIBS"
2453 cat >conftest.$ac_ext <<_ACEOF
2454 /* confdefs.h.  */
2455 _ACEOF
2456 cat confdefs.h >>conftest.$ac_ext
2457 cat >>conftest.$ac_ext <<_ACEOF
2458 /* end confdefs.h.  */
2459
2460 /* Override any gcc2 internal prototype to avoid an error.  */
2461 #ifdef __cplusplus
2462 extern "C"
2463 #endif
2464 /* We use char because int might match the return type of a gcc2
2465    builtin and then its argument prototype would still apply.  */
2466 char dlopen ();
2467 int
2468 main ()
2469 {
2470 dlopen ();
2471   ;
2472   return 0;
2473 }
2474 _ACEOF
2475 rm -f conftest.$ac_objext conftest$ac_exeext
2476 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2477   (eval $ac_link) 2>conftest.er1
2478   ac_status=$?
2479   grep -v '^ *+' conftest.er1 >conftest.err
2480   rm -f conftest.er1
2481   cat conftest.err >&5
2482   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2483   (exit $ac_status); } &&
2484          { ac_try='test -z "$ac_c_werror_flag"
2485                          || test ! -s conftest.err'
2486   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2487   (eval $ac_try) 2>&5
2488   ac_status=$?
2489   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2490   (exit $ac_status); }; } &&
2491          { ac_try='test -s conftest$ac_exeext'
2492   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2493   (eval $ac_try) 2>&5
2494   ac_status=$?
2495   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2496   (exit $ac_status); }; }; then
2497   ac_cv_lib_dl_dlopen=yes
2498 else
2499   echo "$as_me: failed program was:" >&5
2500 sed 's/^/| /' conftest.$ac_ext >&5
2501
2502 ac_cv_lib_dl_dlopen=no
2503 fi
2504 rm -f conftest.err conftest.$ac_objext \
2505       conftest$ac_exeext conftest.$ac_ext
2506 LIBS=$ac_check_lib_save_LIBS
2507 fi
2508 echo "$as_me:$LINENO: result: $ac_cv_lib_dl_dlopen" >&5
2509 echo "${ECHO_T}$ac_cv_lib_dl_dlopen" >&6
2510 if test $ac_cv_lib_dl_dlopen = yes; then
2511   cat >>confdefs.h <<_ACEOF
2512 #define HAVE_LIBDL 1
2513 _ACEOF
2514
2515   LIBS="-ldl $LIBS"
2516
2517 fi
2518
2519 ac_ext=c
2520 ac_cpp='$CPP $CPPFLAGS'
2521 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2522 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2523 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2524 echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5
2525 echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6
2526 # On Suns, sometimes $CPP names a directory.
2527 if test -n "$CPP" && test -d "$CPP"; then
2528   CPP=
2529 fi
2530 if test -z "$CPP"; then
2531   if test "${ac_cv_prog_CPP+set}" = set; then
2532   echo $ECHO_N "(cached) $ECHO_C" >&6
2533 else
2534       # Double quotes because CPP needs to be expanded
2535     for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
2536     do
2537       ac_preproc_ok=false
2538 for ac_c_preproc_warn_flag in '' yes
2539 do
2540   # Use a header file that comes with gcc, so configuring glibc
2541   # with a fresh cross-compiler works.
2542   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2543   # <limits.h> exists even on freestanding compilers.
2544   # On the NeXT, cc -E runs the code through the compiler's parser,
2545   # not just through cpp. "Syntax error" is here to catch this case.
2546   cat >conftest.$ac_ext <<_ACEOF
2547 /* confdefs.h.  */
2548 _ACEOF
2549 cat confdefs.h >>conftest.$ac_ext
2550 cat >>conftest.$ac_ext <<_ACEOF
2551 /* end confdefs.h.  */
2552 #ifdef __STDC__
2553 # include <limits.h>
2554 #else
2555 # include <assert.h>
2556 #endif
2557                      Syntax error
2558 _ACEOF
2559 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2560   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2561   ac_status=$?
2562   grep -v '^ *+' conftest.er1 >conftest.err
2563   rm -f conftest.er1
2564   cat conftest.err >&5
2565   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2566   (exit $ac_status); } >/dev/null; then
2567   if test -s conftest.err; then
2568     ac_cpp_err=$ac_c_preproc_warn_flag
2569     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2570   else
2571     ac_cpp_err=
2572   fi
2573 else
2574   ac_cpp_err=yes
2575 fi
2576 if test -z "$ac_cpp_err"; then
2577   :
2578 else
2579   echo "$as_me: failed program was:" >&5
2580 sed 's/^/| /' conftest.$ac_ext >&5
2581
2582   # Broken: fails on valid input.
2583 continue
2584 fi
2585 rm -f conftest.err conftest.$ac_ext
2586
2587   # OK, works on sane cases.  Now check whether non-existent headers
2588   # can be detected and how.
2589   cat >conftest.$ac_ext <<_ACEOF
2590 /* confdefs.h.  */
2591 _ACEOF
2592 cat confdefs.h >>conftest.$ac_ext
2593 cat >>conftest.$ac_ext <<_ACEOF
2594 /* end confdefs.h.  */
2595 #include <ac_nonexistent.h>
2596 _ACEOF
2597 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2598   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2599   ac_status=$?
2600   grep -v '^ *+' conftest.er1 >conftest.err
2601   rm -f conftest.er1
2602   cat conftest.err >&5
2603   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2604   (exit $ac_status); } >/dev/null; then
2605   if test -s conftest.err; then
2606     ac_cpp_err=$ac_c_preproc_warn_flag
2607     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2608   else
2609     ac_cpp_err=
2610   fi
2611 else
2612   ac_cpp_err=yes
2613 fi
2614 if test -z "$ac_cpp_err"; then
2615   # Broken: success on invalid input.
2616 continue
2617 else
2618   echo "$as_me: failed program was:" >&5
2619 sed 's/^/| /' conftest.$ac_ext >&5
2620
2621   # Passes both tests.
2622 ac_preproc_ok=:
2623 break
2624 fi
2625 rm -f conftest.err conftest.$ac_ext
2626
2627 done
2628 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2629 rm -f conftest.err conftest.$ac_ext
2630 if $ac_preproc_ok; then
2631   break
2632 fi
2633
2634     done
2635     ac_cv_prog_CPP=$CPP
2636
2637 fi
2638   CPP=$ac_cv_prog_CPP
2639 else
2640   ac_cv_prog_CPP=$CPP
2641 fi
2642 echo "$as_me:$LINENO: result: $CPP" >&5
2643 echo "${ECHO_T}$CPP" >&6
2644 ac_preproc_ok=false
2645 for ac_c_preproc_warn_flag in '' yes
2646 do
2647   # Use a header file that comes with gcc, so configuring glibc
2648   # with a fresh cross-compiler works.
2649   # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2650   # <limits.h> exists even on freestanding compilers.
2651   # On the NeXT, cc -E runs the code through the compiler's parser,
2652   # not just through cpp. "Syntax error" is here to catch this case.
2653   cat >conftest.$ac_ext <<_ACEOF
2654 /* confdefs.h.  */
2655 _ACEOF
2656 cat confdefs.h >>conftest.$ac_ext
2657 cat >>conftest.$ac_ext <<_ACEOF
2658 /* end confdefs.h.  */
2659 #ifdef __STDC__
2660 # include <limits.h>
2661 #else
2662 # include <assert.h>
2663 #endif
2664                      Syntax error
2665 _ACEOF
2666 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2667   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2668   ac_status=$?
2669   grep -v '^ *+' conftest.er1 >conftest.err
2670   rm -f conftest.er1
2671   cat conftest.err >&5
2672   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2673   (exit $ac_status); } >/dev/null; then
2674   if test -s conftest.err; then
2675     ac_cpp_err=$ac_c_preproc_warn_flag
2676     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2677   else
2678     ac_cpp_err=
2679   fi
2680 else
2681   ac_cpp_err=yes
2682 fi
2683 if test -z "$ac_cpp_err"; then
2684   :
2685 else
2686   echo "$as_me: failed program was:" >&5
2687 sed 's/^/| /' conftest.$ac_ext >&5
2688
2689   # Broken: fails on valid input.
2690 continue
2691 fi
2692 rm -f conftest.err conftest.$ac_ext
2693
2694   # OK, works on sane cases.  Now check whether non-existent headers
2695   # can be detected and how.
2696   cat >conftest.$ac_ext <<_ACEOF
2697 /* confdefs.h.  */
2698 _ACEOF
2699 cat confdefs.h >>conftest.$ac_ext
2700 cat >>conftest.$ac_ext <<_ACEOF
2701 /* end confdefs.h.  */
2702 #include <ac_nonexistent.h>
2703 _ACEOF
2704 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
2705   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
2706   ac_status=$?
2707   grep -v '^ *+' conftest.er1 >conftest.err
2708   rm -f conftest.er1
2709   cat conftest.err >&5
2710   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2711   (exit $ac_status); } >/dev/null; then
2712   if test -s conftest.err; then
2713     ac_cpp_err=$ac_c_preproc_warn_flag
2714     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
2715   else
2716     ac_cpp_err=
2717   fi
2718 else
2719   ac_cpp_err=yes
2720 fi
2721 if test -z "$ac_cpp_err"; then
2722   # Broken: success on invalid input.
2723 continue
2724 else
2725   echo "$as_me: failed program was:" >&5
2726 sed 's/^/| /' conftest.$ac_ext >&5
2727
2728   # Passes both tests.
2729 ac_preproc_ok=:
2730 break
2731 fi
2732 rm -f conftest.err conftest.$ac_ext
2733
2734 done
2735 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
2736 rm -f conftest.err conftest.$ac_ext
2737 if $ac_preproc_ok; then
2738   :
2739 else
2740   { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check
2741 See \`config.log' for more details." >&5
2742 echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check
2743 See \`config.log' for more details." >&2;}
2744    { (exit 1); exit 1; }; }
2745 fi
2746
2747 ac_ext=c
2748 ac_cpp='$CPP $CPPFLAGS'
2749 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2750 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2751 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2752
2753
2754 echo "$as_me:$LINENO: checking for egrep" >&5
2755 echo $ECHO_N "checking for egrep... $ECHO_C" >&6
2756 if test "${ac_cv_prog_egrep+set}" = set; then
2757   echo $ECHO_N "(cached) $ECHO_C" >&6
2758 else
2759   if echo a | (grep -E '(a|b)') >/dev/null 2>&1
2760     then ac_cv_prog_egrep='grep -E'
2761     else ac_cv_prog_egrep='egrep'
2762     fi
2763 fi
2764 echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5
2765 echo "${ECHO_T}$ac_cv_prog_egrep" >&6
2766  EGREP=$ac_cv_prog_egrep
2767
2768
2769 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
2770 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
2771 if test "${ac_cv_header_stdc+set}" = set; then
2772   echo $ECHO_N "(cached) $ECHO_C" >&6
2773 else
2774   cat >conftest.$ac_ext <<_ACEOF
2775 /* confdefs.h.  */
2776 _ACEOF
2777 cat confdefs.h >>conftest.$ac_ext
2778 cat >>conftest.$ac_ext <<_ACEOF
2779 /* end confdefs.h.  */
2780 #include <stdlib.h>
2781 #include <stdarg.h>
2782 #include <string.h>
2783 #include <float.h>
2784
2785 int
2786 main ()
2787 {
2788
2789   ;
2790   return 0;
2791 }
2792 _ACEOF
2793 rm -f conftest.$ac_objext
2794 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2795   (eval $ac_compile) 2>conftest.er1
2796   ac_status=$?
2797   grep -v '^ *+' conftest.er1 >conftest.err
2798   rm -f conftest.er1
2799   cat conftest.err >&5
2800   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2801   (exit $ac_status); } &&
2802          { ac_try='test -z "$ac_c_werror_flag"
2803                          || test ! -s conftest.err'
2804   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2805   (eval $ac_try) 2>&5
2806   ac_status=$?
2807   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2808   (exit $ac_status); }; } &&
2809          { ac_try='test -s conftest.$ac_objext'
2810   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2811   (eval $ac_try) 2>&5
2812   ac_status=$?
2813   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2814   (exit $ac_status); }; }; then
2815   ac_cv_header_stdc=yes
2816 else
2817   echo "$as_me: failed program was:" >&5
2818 sed 's/^/| /' conftest.$ac_ext >&5
2819
2820 ac_cv_header_stdc=no
2821 fi
2822 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2823
2824 if test $ac_cv_header_stdc = yes; then
2825   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
2826   cat >conftest.$ac_ext <<_ACEOF
2827 /* confdefs.h.  */
2828 _ACEOF
2829 cat confdefs.h >>conftest.$ac_ext
2830 cat >>conftest.$ac_ext <<_ACEOF
2831 /* end confdefs.h.  */
2832 #include <string.h>
2833
2834 _ACEOF
2835 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2836   $EGREP "memchr" >/dev/null 2>&1; then
2837   :
2838 else
2839   ac_cv_header_stdc=no
2840 fi
2841 rm -f conftest*
2842
2843 fi
2844
2845 if test $ac_cv_header_stdc = yes; then
2846   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
2847   cat >conftest.$ac_ext <<_ACEOF
2848 /* confdefs.h.  */
2849 _ACEOF
2850 cat confdefs.h >>conftest.$ac_ext
2851 cat >>conftest.$ac_ext <<_ACEOF
2852 /* end confdefs.h.  */
2853 #include <stdlib.h>
2854
2855 _ACEOF
2856 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
2857   $EGREP "free" >/dev/null 2>&1; then
2858   :
2859 else
2860   ac_cv_header_stdc=no
2861 fi
2862 rm -f conftest*
2863
2864 fi
2865
2866 if test $ac_cv_header_stdc = yes; then
2867   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
2868   if test "$cross_compiling" = yes; then
2869   :
2870 else
2871   cat >conftest.$ac_ext <<_ACEOF
2872 /* confdefs.h.  */
2873 _ACEOF
2874 cat confdefs.h >>conftest.$ac_ext
2875 cat >>conftest.$ac_ext <<_ACEOF
2876 /* end confdefs.h.  */
2877 #include <ctype.h>
2878 #if ((' ' & 0x0FF) == 0x020)
2879 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
2880 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
2881 #else
2882 # define ISLOWER(c) \
2883                    (('a' <= (c) && (c) <= 'i') \
2884                      || ('j' <= (c) && (c) <= 'r') \
2885                      || ('s' <= (c) && (c) <= 'z'))
2886 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
2887 #endif
2888
2889 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
2890 int
2891 main ()
2892 {
2893   int i;
2894   for (i = 0; i < 256; i++)
2895     if (XOR (islower (i), ISLOWER (i))
2896         || toupper (i) != TOUPPER (i))
2897       exit(2);
2898   exit (0);
2899 }
2900 _ACEOF
2901 rm -f conftest$ac_exeext
2902 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
2903   (eval $ac_link) 2>&5
2904   ac_status=$?
2905   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2906   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
2907   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2908   (eval $ac_try) 2>&5
2909   ac_status=$?
2910   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2911   (exit $ac_status); }; }; then
2912   :
2913 else
2914   echo "$as_me: program exited with status $ac_status" >&5
2915 echo "$as_me: failed program was:" >&5
2916 sed 's/^/| /' conftest.$ac_ext >&5
2917
2918 ( exit $ac_status )
2919 ac_cv_header_stdc=no
2920 fi
2921 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
2922 fi
2923 fi
2924 fi
2925 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
2926 echo "${ECHO_T}$ac_cv_header_stdc" >&6
2927 if test $ac_cv_header_stdc = yes; then
2928
2929 cat >>confdefs.h <<\_ACEOF
2930 #define STDC_HEADERS 1
2931 _ACEOF
2932
2933 fi
2934
2935 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
2936
2937
2938
2939
2940
2941
2942
2943
2944
2945 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
2946                   inttypes.h stdint.h unistd.h
2947 do
2948 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
2949 echo "$as_me:$LINENO: checking for $ac_header" >&5
2950 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
2951 if eval "test \"\${$as_ac_Header+set}\" = set"; then
2952   echo $ECHO_N "(cached) $ECHO_C" >&6
2953 else
2954   cat >conftest.$ac_ext <<_ACEOF
2955 /* confdefs.h.  */
2956 _ACEOF
2957 cat confdefs.h >>conftest.$ac_ext
2958 cat >>conftest.$ac_ext <<_ACEOF
2959 /* end confdefs.h.  */
2960 $ac_includes_default
2961
2962 #include <$ac_header>
2963 _ACEOF
2964 rm -f conftest.$ac_objext
2965 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
2966   (eval $ac_compile) 2>conftest.er1
2967   ac_status=$?
2968   grep -v '^ *+' conftest.er1 >conftest.err
2969   rm -f conftest.er1
2970   cat conftest.err >&5
2971   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2972   (exit $ac_status); } &&
2973          { ac_try='test -z "$ac_c_werror_flag"
2974                          || test ! -s conftest.err'
2975   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2976   (eval $ac_try) 2>&5
2977   ac_status=$?
2978   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2979   (exit $ac_status); }; } &&
2980          { ac_try='test -s conftest.$ac_objext'
2981   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
2982   (eval $ac_try) 2>&5
2983   ac_status=$?
2984   echo "$as_me:$LINENO: \$? = $ac_status" >&5
2985   (exit $ac_status); }; }; then
2986   eval "$as_ac_Header=yes"
2987 else
2988   echo "$as_me: failed program was:" >&5
2989 sed 's/^/| /' conftest.$ac_ext >&5
2990
2991 eval "$as_ac_Header=no"
2992 fi
2993 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
2994 fi
2995 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
2996 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
2997 if test `eval echo '${'$as_ac_Header'}'` = yes; then
2998   cat >>confdefs.h <<_ACEOF
2999 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3000 _ACEOF
3001
3002 fi
3003
3004 done
3005
3006
3007 if test "${ac_cv_header_pcap_h+set}" = set; then
3008   echo "$as_me:$LINENO: checking for pcap.h" >&5
3009 echo $ECHO_N "checking for pcap.h... $ECHO_C" >&6
3010 if test "${ac_cv_header_pcap_h+set}" = set; then
3011   echo $ECHO_N "(cached) $ECHO_C" >&6
3012 fi
3013 echo "$as_me:$LINENO: result: $ac_cv_header_pcap_h" >&5
3014 echo "${ECHO_T}$ac_cv_header_pcap_h" >&6
3015 else
3016   # Is the header compilable?
3017 echo "$as_me:$LINENO: checking pcap.h usability" >&5
3018 echo $ECHO_N "checking pcap.h usability... $ECHO_C" >&6
3019 cat >conftest.$ac_ext <<_ACEOF
3020 /* confdefs.h.  */
3021 _ACEOF
3022 cat confdefs.h >>conftest.$ac_ext
3023 cat >>conftest.$ac_ext <<_ACEOF
3024 /* end confdefs.h.  */
3025 $ac_includes_default
3026 #include <pcap.h>
3027 _ACEOF
3028 rm -f conftest.$ac_objext
3029 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3030   (eval $ac_compile) 2>conftest.er1
3031   ac_status=$?
3032   grep -v '^ *+' conftest.er1 >conftest.err
3033   rm -f conftest.er1
3034   cat conftest.err >&5
3035   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3036   (exit $ac_status); } &&
3037          { ac_try='test -z "$ac_c_werror_flag"
3038                          || test ! -s conftest.err'
3039   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3040   (eval $ac_try) 2>&5
3041   ac_status=$?
3042   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3043   (exit $ac_status); }; } &&
3044          { ac_try='test -s conftest.$ac_objext'
3045   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3046   (eval $ac_try) 2>&5
3047   ac_status=$?
3048   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3049   (exit $ac_status); }; }; then
3050   ac_header_compiler=yes
3051 else
3052   echo "$as_me: failed program was:" >&5
3053 sed 's/^/| /' conftest.$ac_ext >&5
3054
3055 ac_header_compiler=no
3056 fi
3057 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3058 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3059 echo "${ECHO_T}$ac_header_compiler" >&6
3060
3061 # Is the header present?
3062 echo "$as_me:$LINENO: checking pcap.h presence" >&5
3063 echo $ECHO_N "checking pcap.h presence... $ECHO_C" >&6
3064 cat >conftest.$ac_ext <<_ACEOF
3065 /* confdefs.h.  */
3066 _ACEOF
3067 cat confdefs.h >>conftest.$ac_ext
3068 cat >>conftest.$ac_ext <<_ACEOF
3069 /* end confdefs.h.  */
3070 #include <pcap.h>
3071 _ACEOF
3072 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3073   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3074   ac_status=$?
3075   grep -v '^ *+' conftest.er1 >conftest.err
3076   rm -f conftest.er1
3077   cat conftest.err >&5
3078   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3079   (exit $ac_status); } >/dev/null; then
3080   if test -s conftest.err; then
3081     ac_cpp_err=$ac_c_preproc_warn_flag
3082     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3083   else
3084     ac_cpp_err=
3085   fi
3086 else
3087   ac_cpp_err=yes
3088 fi
3089 if test -z "$ac_cpp_err"; then
3090   ac_header_preproc=yes
3091 else
3092   echo "$as_me: failed program was:" >&5
3093 sed 's/^/| /' conftest.$ac_ext >&5
3094
3095   ac_header_preproc=no
3096 fi
3097 rm -f conftest.err conftest.$ac_ext
3098 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3099 echo "${ECHO_T}$ac_header_preproc" >&6
3100
3101 # So?  What about this header?
3102 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3103   yes:no: )
3104     { echo "$as_me:$LINENO: WARNING: pcap.h: accepted by the compiler, rejected by the preprocessor!" >&5
3105 echo "$as_me: WARNING: pcap.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
3106     { echo "$as_me:$LINENO: WARNING: pcap.h: proceeding with the compiler's result" >&5
3107 echo "$as_me: WARNING: pcap.h: proceeding with the compiler's result" >&2;}
3108     ac_header_preproc=yes
3109     ;;
3110   no:yes:* )
3111     { echo "$as_me:$LINENO: WARNING: pcap.h: present but cannot be compiled" >&5
3112 echo "$as_me: WARNING: pcap.h: present but cannot be compiled" >&2;}
3113     { echo "$as_me:$LINENO: WARNING: pcap.h:     check for missing prerequisite headers?" >&5
3114 echo "$as_me: WARNING: pcap.h:     check for missing prerequisite headers?" >&2;}
3115     { echo "$as_me:$LINENO: WARNING: pcap.h: see the Autoconf documentation" >&5
3116 echo "$as_me: WARNING: pcap.h: see the Autoconf documentation" >&2;}
3117     { echo "$as_me:$LINENO: WARNING: pcap.h:     section \"Present But Cannot Be Compiled\"" >&5
3118 echo "$as_me: WARNING: pcap.h:     section \"Present But Cannot Be Compiled\"" >&2;}
3119     { echo "$as_me:$LINENO: WARNING: pcap.h: proceeding with the preprocessor's result" >&5
3120 echo "$as_me: WARNING: pcap.h: proceeding with the preprocessor's result" >&2;}
3121     { echo "$as_me:$LINENO: WARNING: pcap.h: in the future, the compiler will take precedence" >&5
3122 echo "$as_me: WARNING: pcap.h: in the future, the compiler will take precedence" >&2;}
3123     (
3124       cat <<\_ASBOX
3125 ## ------------------------------------------ ##
3126 ## Report this to the AC_PACKAGE_NAME lists.  ##
3127 ## ------------------------------------------ ##
3128 _ASBOX
3129     ) |
3130       sed "s/^/$as_me: WARNING:     /" >&2
3131     ;;
3132 esac
3133 echo "$as_me:$LINENO: checking for pcap.h" >&5
3134 echo $ECHO_N "checking for pcap.h... $ECHO_C" >&6
3135 if test "${ac_cv_header_pcap_h+set}" = set; then
3136   echo $ECHO_N "(cached) $ECHO_C" >&6
3137 else
3138   ac_cv_header_pcap_h=$ac_header_preproc
3139 fi
3140 echo "$as_me:$LINENO: result: $ac_cv_header_pcap_h" >&5
3141 echo "${ECHO_T}$ac_cv_header_pcap_h" >&6
3142
3143 fi
3144 if test $ac_cv_header_pcap_h = yes; then
3145   HAVE_PCAP_H=true
3146 fi
3147
3148
3149
3150
3151
3152
3153
3154
3155 ac_header_dirent=no
3156 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
3157   as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
3158 echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5
3159 echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6
3160 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3161   echo $ECHO_N "(cached) $ECHO_C" >&6
3162 else
3163   cat >conftest.$ac_ext <<_ACEOF
3164 /* confdefs.h.  */
3165 _ACEOF
3166 cat confdefs.h >>conftest.$ac_ext
3167 cat >>conftest.$ac_ext <<_ACEOF
3168 /* end confdefs.h.  */
3169 #include <sys/types.h>
3170 #include <$ac_hdr>
3171
3172 int
3173 main ()
3174 {
3175 if ((DIR *) 0)
3176 return 0;
3177   ;
3178   return 0;
3179 }
3180 _ACEOF
3181 rm -f conftest.$ac_objext
3182 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3183   (eval $ac_compile) 2>conftest.er1
3184   ac_status=$?
3185   grep -v '^ *+' conftest.er1 >conftest.err
3186   rm -f conftest.er1
3187   cat conftest.err >&5
3188   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3189   (exit $ac_status); } &&
3190          { ac_try='test -z "$ac_c_werror_flag"
3191                          || test ! -s conftest.err'
3192   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3193   (eval $ac_try) 2>&5
3194   ac_status=$?
3195   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3196   (exit $ac_status); }; } &&
3197          { ac_try='test -s conftest.$ac_objext'
3198   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3199   (eval $ac_try) 2>&5
3200   ac_status=$?
3201   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3202   (exit $ac_status); }; }; then
3203   eval "$as_ac_Header=yes"
3204 else
3205   echo "$as_me: failed program was:" >&5
3206 sed 's/^/| /' conftest.$ac_ext >&5
3207
3208 eval "$as_ac_Header=no"
3209 fi
3210 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3211 fi
3212 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3213 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3214 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3215   cat >>confdefs.h <<_ACEOF
3216 #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
3217 _ACEOF
3218
3219 ac_header_dirent=$ac_hdr; break
3220 fi
3221
3222 done
3223 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
3224 if test $ac_header_dirent = dirent.h; then
3225   echo "$as_me:$LINENO: checking for library containing opendir" >&5
3226 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
3227 if test "${ac_cv_search_opendir+set}" = set; then
3228   echo $ECHO_N "(cached) $ECHO_C" >&6
3229 else
3230   ac_func_search_save_LIBS=$LIBS
3231 ac_cv_search_opendir=no
3232 cat >conftest.$ac_ext <<_ACEOF
3233 /* confdefs.h.  */
3234 _ACEOF
3235 cat confdefs.h >>conftest.$ac_ext
3236 cat >>conftest.$ac_ext <<_ACEOF
3237 /* end confdefs.h.  */
3238
3239 /* Override any gcc2 internal prototype to avoid an error.  */
3240 #ifdef __cplusplus
3241 extern "C"
3242 #endif
3243 /* We use char because int might match the return type of a gcc2
3244    builtin and then its argument prototype would still apply.  */
3245 char opendir ();
3246 int
3247 main ()
3248 {
3249 opendir ();
3250   ;
3251   return 0;
3252 }
3253 _ACEOF
3254 rm -f conftest.$ac_objext conftest$ac_exeext
3255 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3256   (eval $ac_link) 2>conftest.er1
3257   ac_status=$?
3258   grep -v '^ *+' conftest.er1 >conftest.err
3259   rm -f conftest.er1
3260   cat conftest.err >&5
3261   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3262   (exit $ac_status); } &&
3263          { ac_try='test -z "$ac_c_werror_flag"
3264                          || test ! -s conftest.err'
3265   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3266   (eval $ac_try) 2>&5
3267   ac_status=$?
3268   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3269   (exit $ac_status); }; } &&
3270          { ac_try='test -s conftest$ac_exeext'
3271   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3272   (eval $ac_try) 2>&5
3273   ac_status=$?
3274   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3275   (exit $ac_status); }; }; then
3276   ac_cv_search_opendir="none required"
3277 else
3278   echo "$as_me: failed program was:" >&5
3279 sed 's/^/| /' conftest.$ac_ext >&5
3280
3281 fi
3282 rm -f conftest.err conftest.$ac_objext \
3283       conftest$ac_exeext conftest.$ac_ext
3284 if test "$ac_cv_search_opendir" = no; then
3285   for ac_lib in dir; do
3286     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3287     cat >conftest.$ac_ext <<_ACEOF
3288 /* confdefs.h.  */
3289 _ACEOF
3290 cat confdefs.h >>conftest.$ac_ext
3291 cat >>conftest.$ac_ext <<_ACEOF
3292 /* end confdefs.h.  */
3293
3294 /* Override any gcc2 internal prototype to avoid an error.  */
3295 #ifdef __cplusplus
3296 extern "C"
3297 #endif
3298 /* We use char because int might match the return type of a gcc2
3299    builtin and then its argument prototype would still apply.  */
3300 char opendir ();
3301 int
3302 main ()
3303 {
3304 opendir ();
3305   ;
3306   return 0;
3307 }
3308 _ACEOF
3309 rm -f conftest.$ac_objext conftest$ac_exeext
3310 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3311   (eval $ac_link) 2>conftest.er1
3312   ac_status=$?
3313   grep -v '^ *+' conftest.er1 >conftest.err
3314   rm -f conftest.er1
3315   cat conftest.err >&5
3316   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3317   (exit $ac_status); } &&
3318          { ac_try='test -z "$ac_c_werror_flag"
3319                          || test ! -s conftest.err'
3320   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3321   (eval $ac_try) 2>&5
3322   ac_status=$?
3323   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3324   (exit $ac_status); }; } &&
3325          { ac_try='test -s conftest$ac_exeext'
3326   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3327   (eval $ac_try) 2>&5
3328   ac_status=$?
3329   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3330   (exit $ac_status); }; }; then
3331   ac_cv_search_opendir="-l$ac_lib"
3332 break
3333 else
3334   echo "$as_me: failed program was:" >&5
3335 sed 's/^/| /' conftest.$ac_ext >&5
3336
3337 fi
3338 rm -f conftest.err conftest.$ac_objext \
3339       conftest$ac_exeext conftest.$ac_ext
3340   done
3341 fi
3342 LIBS=$ac_func_search_save_LIBS
3343 fi
3344 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
3345 echo "${ECHO_T}$ac_cv_search_opendir" >&6
3346 if test "$ac_cv_search_opendir" != no; then
3347   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
3348
3349 fi
3350
3351 else
3352   echo "$as_me:$LINENO: checking for library containing opendir" >&5
3353 echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6
3354 if test "${ac_cv_search_opendir+set}" = set; then
3355   echo $ECHO_N "(cached) $ECHO_C" >&6
3356 else
3357   ac_func_search_save_LIBS=$LIBS
3358 ac_cv_search_opendir=no
3359 cat >conftest.$ac_ext <<_ACEOF
3360 /* confdefs.h.  */
3361 _ACEOF
3362 cat confdefs.h >>conftest.$ac_ext
3363 cat >>conftest.$ac_ext <<_ACEOF
3364 /* end confdefs.h.  */
3365
3366 /* Override any gcc2 internal prototype to avoid an error.  */
3367 #ifdef __cplusplus
3368 extern "C"
3369 #endif
3370 /* We use char because int might match the return type of a gcc2
3371    builtin and then its argument prototype would still apply.  */
3372 char opendir ();
3373 int
3374 main ()
3375 {
3376 opendir ();
3377   ;
3378   return 0;
3379 }
3380 _ACEOF
3381 rm -f conftest.$ac_objext conftest$ac_exeext
3382 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3383   (eval $ac_link) 2>conftest.er1
3384   ac_status=$?
3385   grep -v '^ *+' conftest.er1 >conftest.err
3386   rm -f conftest.er1
3387   cat conftest.err >&5
3388   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3389   (exit $ac_status); } &&
3390          { ac_try='test -z "$ac_c_werror_flag"
3391                          || test ! -s conftest.err'
3392   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3393   (eval $ac_try) 2>&5
3394   ac_status=$?
3395   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3396   (exit $ac_status); }; } &&
3397          { ac_try='test -s conftest$ac_exeext'
3398   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3399   (eval $ac_try) 2>&5
3400   ac_status=$?
3401   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3402   (exit $ac_status); }; }; then
3403   ac_cv_search_opendir="none required"
3404 else
3405   echo "$as_me: failed program was:" >&5
3406 sed 's/^/| /' conftest.$ac_ext >&5
3407
3408 fi
3409 rm -f conftest.err conftest.$ac_objext \
3410       conftest$ac_exeext conftest.$ac_ext
3411 if test "$ac_cv_search_opendir" = no; then
3412   for ac_lib in x; do
3413     LIBS="-l$ac_lib  $ac_func_search_save_LIBS"
3414     cat >conftest.$ac_ext <<_ACEOF
3415 /* confdefs.h.  */
3416 _ACEOF
3417 cat confdefs.h >>conftest.$ac_ext
3418 cat >>conftest.$ac_ext <<_ACEOF
3419 /* end confdefs.h.  */
3420
3421 /* Override any gcc2 internal prototype to avoid an error.  */
3422 #ifdef __cplusplus
3423 extern "C"
3424 #endif
3425 /* We use char because int might match the return type of a gcc2
3426    builtin and then its argument prototype would still apply.  */
3427 char opendir ();
3428 int
3429 main ()
3430 {
3431 opendir ();
3432   ;
3433   return 0;
3434 }
3435 _ACEOF
3436 rm -f conftest.$ac_objext conftest$ac_exeext
3437 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3438   (eval $ac_link) 2>conftest.er1
3439   ac_status=$?
3440   grep -v '^ *+' conftest.er1 >conftest.err
3441   rm -f conftest.er1
3442   cat conftest.err >&5
3443   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3444   (exit $ac_status); } &&
3445          { ac_try='test -z "$ac_c_werror_flag"
3446                          || test ! -s conftest.err'
3447   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3448   (eval $ac_try) 2>&5
3449   ac_status=$?
3450   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3451   (exit $ac_status); }; } &&
3452          { ac_try='test -s conftest$ac_exeext'
3453   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3454   (eval $ac_try) 2>&5
3455   ac_status=$?
3456   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3457   (exit $ac_status); }; }; then
3458   ac_cv_search_opendir="-l$ac_lib"
3459 break
3460 else
3461   echo "$as_me: failed program was:" >&5
3462 sed 's/^/| /' conftest.$ac_ext >&5
3463
3464 fi
3465 rm -f conftest.err conftest.$ac_objext \
3466       conftest$ac_exeext conftest.$ac_ext
3467   done
3468 fi
3469 LIBS=$ac_func_search_save_LIBS
3470 fi
3471 echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5
3472 echo "${ECHO_T}$ac_cv_search_opendir" >&6
3473 if test "$ac_cv_search_opendir" != no; then
3474   test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS"
3475
3476 fi
3477
3478 fi
3479
3480 echo "$as_me:$LINENO: checking for ANSI C header files" >&5
3481 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6
3482 if test "${ac_cv_header_stdc+set}" = set; then
3483   echo $ECHO_N "(cached) $ECHO_C" >&6
3484 else
3485   cat >conftest.$ac_ext <<_ACEOF
3486 /* confdefs.h.  */
3487 _ACEOF
3488 cat confdefs.h >>conftest.$ac_ext
3489 cat >>conftest.$ac_ext <<_ACEOF
3490 /* end confdefs.h.  */
3491 #include <stdlib.h>
3492 #include <stdarg.h>
3493 #include <string.h>
3494 #include <float.h>
3495
3496 int
3497 main ()
3498 {
3499
3500   ;
3501   return 0;
3502 }
3503 _ACEOF
3504 rm -f conftest.$ac_objext
3505 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3506   (eval $ac_compile) 2>conftest.er1
3507   ac_status=$?
3508   grep -v '^ *+' conftest.er1 >conftest.err
3509   rm -f conftest.er1
3510   cat conftest.err >&5
3511   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3512   (exit $ac_status); } &&
3513          { ac_try='test -z "$ac_c_werror_flag"
3514                          || test ! -s conftest.err'
3515   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3516   (eval $ac_try) 2>&5
3517   ac_status=$?
3518   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3519   (exit $ac_status); }; } &&
3520          { ac_try='test -s conftest.$ac_objext'
3521   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3522   (eval $ac_try) 2>&5
3523   ac_status=$?
3524   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3525   (exit $ac_status); }; }; then
3526   ac_cv_header_stdc=yes
3527 else
3528   echo "$as_me: failed program was:" >&5
3529 sed 's/^/| /' conftest.$ac_ext >&5
3530
3531 ac_cv_header_stdc=no
3532 fi
3533 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3534
3535 if test $ac_cv_header_stdc = yes; then
3536   # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3537   cat >conftest.$ac_ext <<_ACEOF
3538 /* confdefs.h.  */
3539 _ACEOF
3540 cat confdefs.h >>conftest.$ac_ext
3541 cat >>conftest.$ac_ext <<_ACEOF
3542 /* end confdefs.h.  */
3543 #include <string.h>
3544
3545 _ACEOF
3546 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3547   $EGREP "memchr" >/dev/null 2>&1; then
3548   :
3549 else
3550   ac_cv_header_stdc=no
3551 fi
3552 rm -f conftest*
3553
3554 fi
3555
3556 if test $ac_cv_header_stdc = yes; then
3557   # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3558   cat >conftest.$ac_ext <<_ACEOF
3559 /* confdefs.h.  */
3560 _ACEOF
3561 cat confdefs.h >>conftest.$ac_ext
3562 cat >>conftest.$ac_ext <<_ACEOF
3563 /* end confdefs.h.  */
3564 #include <stdlib.h>
3565
3566 _ACEOF
3567 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3568   $EGREP "free" >/dev/null 2>&1; then
3569   :
3570 else
3571   ac_cv_header_stdc=no
3572 fi
3573 rm -f conftest*
3574
3575 fi
3576
3577 if test $ac_cv_header_stdc = yes; then
3578   # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3579   if test "$cross_compiling" = yes; then
3580   :
3581 else
3582   cat >conftest.$ac_ext <<_ACEOF
3583 /* confdefs.h.  */
3584 _ACEOF
3585 cat confdefs.h >>conftest.$ac_ext
3586 cat >>conftest.$ac_ext <<_ACEOF
3587 /* end confdefs.h.  */
3588 #include <ctype.h>
3589 #if ((' ' & 0x0FF) == 0x020)
3590 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3591 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3592 #else
3593 # define ISLOWER(c) \
3594                    (('a' <= (c) && (c) <= 'i') \
3595                      || ('j' <= (c) && (c) <= 'r') \
3596                      || ('s' <= (c) && (c) <= 'z'))
3597 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3598 #endif
3599
3600 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3601 int
3602 main ()
3603 {
3604   int i;
3605   for (i = 0; i < 256; i++)
3606     if (XOR (islower (i), ISLOWER (i))
3607         || toupper (i) != TOUPPER (i))
3608       exit(2);
3609   exit (0);
3610 }
3611 _ACEOF
3612 rm -f conftest$ac_exeext
3613 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
3614   (eval $ac_link) 2>&5
3615   ac_status=$?
3616   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3617   (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
3618   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3619   (eval $ac_try) 2>&5
3620   ac_status=$?
3621   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3622   (exit $ac_status); }; }; then
3623   :
3624 else
3625   echo "$as_me: program exited with status $ac_status" >&5
3626 echo "$as_me: failed program was:" >&5
3627 sed 's/^/| /' conftest.$ac_ext >&5
3628
3629 ( exit $ac_status )
3630 ac_cv_header_stdc=no
3631 fi
3632 rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
3633 fi
3634 fi
3635 fi
3636 echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
3637 echo "${ECHO_T}$ac_cv_header_stdc" >&6
3638 if test $ac_cv_header_stdc = yes; then
3639
3640 cat >>confdefs.h <<\_ACEOF
3641 #define STDC_HEADERS 1
3642 _ACEOF
3643
3644 fi
3645
3646
3647
3648 for ac_header in fcntl.h unistd.h
3649 do
3650 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
3651 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3652   echo "$as_me:$LINENO: checking for $ac_header" >&5
3653 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3654 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3655   echo $ECHO_N "(cached) $ECHO_C" >&6
3656 fi
3657 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3658 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3659 else
3660   # Is the header compilable?
3661 echo "$as_me:$LINENO: checking $ac_header usability" >&5
3662 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6
3663 cat >conftest.$ac_ext <<_ACEOF
3664 /* confdefs.h.  */
3665 _ACEOF
3666 cat confdefs.h >>conftest.$ac_ext
3667 cat >>conftest.$ac_ext <<_ACEOF
3668 /* end confdefs.h.  */
3669 $ac_includes_default
3670 #include <$ac_header>
3671 _ACEOF
3672 rm -f conftest.$ac_objext
3673 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3674   (eval $ac_compile) 2>conftest.er1
3675   ac_status=$?
3676   grep -v '^ *+' conftest.er1 >conftest.err
3677   rm -f conftest.er1
3678   cat conftest.err >&5
3679   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3680   (exit $ac_status); } &&
3681          { ac_try='test -z "$ac_c_werror_flag"
3682                          || test ! -s conftest.err'
3683   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3684   (eval $ac_try) 2>&5
3685   ac_status=$?
3686   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3687   (exit $ac_status); }; } &&
3688          { ac_try='test -s conftest.$ac_objext'
3689   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3690   (eval $ac_try) 2>&5
3691   ac_status=$?
3692   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3693   (exit $ac_status); }; }; then
3694   ac_header_compiler=yes
3695 else
3696   echo "$as_me: failed program was:" >&5
3697 sed 's/^/| /' conftest.$ac_ext >&5
3698
3699 ac_header_compiler=no
3700 fi
3701 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3702 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
3703 echo "${ECHO_T}$ac_header_compiler" >&6
3704
3705 # Is the header present?
3706 echo "$as_me:$LINENO: checking $ac_header presence" >&5
3707 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6
3708 cat >conftest.$ac_ext <<_ACEOF
3709 /* confdefs.h.  */
3710 _ACEOF
3711 cat confdefs.h >>conftest.$ac_ext
3712 cat >>conftest.$ac_ext <<_ACEOF
3713 /* end confdefs.h.  */
3714 #include <$ac_header>
3715 _ACEOF
3716 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
3717   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
3718   ac_status=$?
3719   grep -v '^ *+' conftest.er1 >conftest.err
3720   rm -f conftest.er1
3721   cat conftest.err >&5
3722   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3723   (exit $ac_status); } >/dev/null; then
3724   if test -s conftest.err; then
3725     ac_cpp_err=$ac_c_preproc_warn_flag
3726     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
3727   else
3728     ac_cpp_err=
3729   fi
3730 else
3731   ac_cpp_err=yes
3732 fi
3733 if test -z "$ac_cpp_err"; then
3734   ac_header_preproc=yes
3735 else
3736   echo "$as_me: failed program was:" >&5
3737 sed 's/^/| /' conftest.$ac_ext >&5
3738
3739   ac_header_preproc=no
3740 fi
3741 rm -f conftest.err conftest.$ac_ext
3742 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
3743 echo "${ECHO_T}$ac_header_preproc" >&6
3744
3745 # So?  What about this header?
3746 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
3747   yes:no: )
3748     { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
3749 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
3750     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
3751 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
3752     ac_header_preproc=yes
3753     ;;
3754   no:yes:* )
3755     { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
3756 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
3757     { echo "$as_me:$LINENO: WARNING: $ac_header:     check for missing prerequisite headers?" >&5
3758 echo "$as_me: WARNING: $ac_header:     check for missing prerequisite headers?" >&2;}
3759     { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
3760 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
3761     { echo "$as_me:$LINENO: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&5
3762 echo "$as_me: WARNING: $ac_header:     section \"Present But Cannot Be Compiled\"" >&2;}
3763     { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
3764 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
3765     { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
3766 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
3767     (
3768       cat <<\_ASBOX
3769 ## ------------------------------------------ ##
3770 ## Report this to the AC_PACKAGE_NAME lists.  ##
3771 ## ------------------------------------------ ##
3772 _ASBOX
3773     ) |
3774       sed "s/^/$as_me: WARNING:     /" >&2
3775     ;;
3776 esac
3777 echo "$as_me:$LINENO: checking for $ac_header" >&5
3778 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6
3779 if eval "test \"\${$as_ac_Header+set}\" = set"; then
3780   echo $ECHO_N "(cached) $ECHO_C" >&6
3781 else
3782   eval "$as_ac_Header=\$ac_header_preproc"
3783 fi
3784 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5
3785 echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6
3786
3787 fi
3788 if test `eval echo '${'$as_ac_Header'}'` = yes; then
3789   cat >>confdefs.h <<_ACEOF
3790 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
3791 _ACEOF
3792
3793 fi
3794
3795 done
3796
3797
3798 echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5
3799 echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6
3800 if test "${ac_cv_c_const+set}" = set; then
3801   echo $ECHO_N "(cached) $ECHO_C" >&6
3802 else
3803   cat >conftest.$ac_ext <<_ACEOF
3804 /* confdefs.h.  */
3805 _ACEOF
3806 cat confdefs.h >>conftest.$ac_ext
3807 cat >>conftest.$ac_ext <<_ACEOF
3808 /* end confdefs.h.  */
3809
3810 int
3811 main ()
3812 {
3813 /* FIXME: Include the comments suggested by Paul. */
3814 #ifndef __cplusplus
3815   /* Ultrix mips cc rejects this.  */
3816   typedef int charset[2];
3817   const charset x;
3818   /* SunOS 4.1.1 cc rejects this.  */
3819   char const *const *ccp;
3820   char **p;
3821   /* NEC SVR4.0.2 mips cc rejects this.  */
3822   struct point {int x, y;};
3823   static struct point const zero = {0,0};
3824   /* AIX XL C 1.02.0.0 rejects this.
3825      It does not let you subtract one const X* pointer from another in
3826      an arm of an if-expression whose if-part is not a constant
3827      expression */
3828   const char *g = "string";
3829   ccp = &g + (g ? g-g : 0);
3830   /* HPUX 7.0 cc rejects these. */
3831   ++ccp;
3832   p = (char**) ccp;
3833   ccp = (char const *const *) p;
3834   { /* SCO 3.2v4 cc rejects this.  */
3835     char *t;
3836     char const *s = 0 ? (char *) 0 : (char const *) 0;
3837
3838     *t++ = 0;
3839   }
3840   { /* Someone thinks the Sun supposedly-ANSI compiler will reject this.  */
3841     int x[] = {25, 17};
3842     const int *foo = &x[0];
3843     ++foo;
3844   }
3845   { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
3846     typedef const int *iptr;
3847     iptr p = 0;
3848     ++p;
3849   }
3850   { /* AIX XL C 1.02.0.0 rejects this saying
3851        "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
3852     struct s { int j; const int *ap[3]; };
3853     struct s *b; b->j = 5;
3854   }
3855   { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
3856     const int foo = 10;
3857   }
3858 #endif
3859
3860   ;
3861   return 0;
3862 }
3863 _ACEOF
3864 rm -f conftest.$ac_objext
3865 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3866   (eval $ac_compile) 2>conftest.er1
3867   ac_status=$?
3868   grep -v '^ *+' conftest.er1 >conftest.err
3869   rm -f conftest.er1
3870   cat conftest.err >&5
3871   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3872   (exit $ac_status); } &&
3873          { ac_try='test -z "$ac_c_werror_flag"
3874                          || test ! -s conftest.err'
3875   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3876   (eval $ac_try) 2>&5
3877   ac_status=$?
3878   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3879   (exit $ac_status); }; } &&
3880          { ac_try='test -s conftest.$ac_objext'
3881   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3882   (eval $ac_try) 2>&5
3883   ac_status=$?
3884   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3885   (exit $ac_status); }; }; then
3886   ac_cv_c_const=yes
3887 else
3888   echo "$as_me: failed program was:" >&5
3889 sed 's/^/| /' conftest.$ac_ext >&5
3890
3891 ac_cv_c_const=no
3892 fi
3893 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3894 fi
3895 echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5
3896 echo "${ECHO_T}$ac_cv_c_const" >&6
3897 if test $ac_cv_c_const = no; then
3898
3899 cat >>confdefs.h <<\_ACEOF
3900 #define const
3901 _ACEOF
3902
3903 fi
3904
3905 echo "$as_me:$LINENO: checking for size_t" >&5
3906 echo $ECHO_N "checking for size_t... $ECHO_C" >&6
3907 if test "${ac_cv_type_size_t+set}" = set; then
3908   echo $ECHO_N "(cached) $ECHO_C" >&6
3909 else
3910   cat >conftest.$ac_ext <<_ACEOF
3911 /* confdefs.h.  */
3912 _ACEOF
3913 cat confdefs.h >>conftest.$ac_ext
3914 cat >>conftest.$ac_ext <<_ACEOF
3915 /* end confdefs.h.  */
3916 $ac_includes_default
3917 int
3918 main ()
3919 {
3920 if ((size_t *) 0)
3921   return 0;
3922 if (sizeof (size_t))
3923   return 0;
3924   ;
3925   return 0;
3926 }
3927 _ACEOF
3928 rm -f conftest.$ac_objext
3929 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3930   (eval $ac_compile) 2>conftest.er1
3931   ac_status=$?
3932   grep -v '^ *+' conftest.er1 >conftest.err
3933   rm -f conftest.er1
3934   cat conftest.err >&5
3935   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3936   (exit $ac_status); } &&
3937          { ac_try='test -z "$ac_c_werror_flag"
3938                          || test ! -s conftest.err'
3939   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3940   (eval $ac_try) 2>&5
3941   ac_status=$?
3942   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3943   (exit $ac_status); }; } &&
3944          { ac_try='test -s conftest.$ac_objext'
3945   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
3946   (eval $ac_try) 2>&5
3947   ac_status=$?
3948   echo "$as_me:$LINENO: \$? = $ac_status" >&5
3949   (exit $ac_status); }; }; then
3950   ac_cv_type_size_t=yes
3951 else
3952   echo "$as_me: failed program was:" >&5
3953 sed 's/^/| /' conftest.$ac_ext >&5
3954
3955 ac_cv_type_size_t=no
3956 fi
3957 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
3958 fi
3959 echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5
3960 echo "${ECHO_T}$ac_cv_type_size_t" >&6
3961 if test $ac_cv_type_size_t = yes; then
3962   :
3963 else
3964
3965 cat >>confdefs.h <<_ACEOF
3966 #define size_t unsigned
3967 _ACEOF
3968
3969 fi
3970
3971 echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5
3972 echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6
3973 if test "${ac_cv_struct_tm+set}" = set; then
3974   echo $ECHO_N "(cached) $ECHO_C" >&6
3975 else
3976   cat >conftest.$ac_ext <<_ACEOF
3977 /* confdefs.h.  */
3978 _ACEOF
3979 cat confdefs.h >>conftest.$ac_ext
3980 cat >>conftest.$ac_ext <<_ACEOF
3981 /* end confdefs.h.  */
3982 #include <sys/types.h>
3983 #include <time.h>
3984
3985 int
3986 main ()
3987 {
3988 struct tm *tp; tp->tm_sec;
3989   ;
3990   return 0;
3991 }
3992 _ACEOF
3993 rm -f conftest.$ac_objext
3994 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
3995   (eval $ac_compile) 2>conftest.er1
3996   ac_status=$?
3997   grep -v '^ *+' conftest.er1 >conftest.err
3998   rm -f conftest.er1
3999   cat conftest.err >&5
4000   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4001   (exit $ac_status); } &&
4002          { ac_try='test -z "$ac_c_werror_flag"
4003                          || test ! -s conftest.err'
4004   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4005   (eval $ac_try) 2>&5
4006   ac_status=$?
4007   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4008   (exit $ac_status); }; } &&
4009          { ac_try='test -s conftest.$ac_objext'
4010   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4011   (eval $ac_try) 2>&5
4012   ac_status=$?
4013   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4014   (exit $ac_status); }; }; then
4015   ac_cv_struct_tm=time.h
4016 else
4017   echo "$as_me: failed program was:" >&5
4018 sed 's/^/| /' conftest.$ac_ext >&5
4019
4020 ac_cv_struct_tm=sys/time.h
4021 fi
4022 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4023 fi
4024 echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5
4025 echo "${ECHO_T}$ac_cv_struct_tm" >&6
4026 if test $ac_cv_struct_tm = sys/time.h; then
4027
4028 cat >>confdefs.h <<\_ACEOF
4029 #define TM_IN_SYS_TIME 1
4030 _ACEOF
4031
4032 fi
4033
4034
4035
4036 for ac_func in vprintf
4037 do
4038 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4039 echo "$as_me:$LINENO: checking for $ac_func" >&5
4040 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4041 if eval "test \"\${$as_ac_var+set}\" = set"; then
4042   echo $ECHO_N "(cached) $ECHO_C" >&6
4043 else
4044   cat >conftest.$ac_ext <<_ACEOF
4045 /* confdefs.h.  */
4046 _ACEOF
4047 cat confdefs.h >>conftest.$ac_ext
4048 cat >>conftest.$ac_ext <<_ACEOF
4049 /* end confdefs.h.  */
4050 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4051    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4052 #define $ac_func innocuous_$ac_func
4053
4054 /* System header to define __stub macros and hopefully few prototypes,
4055     which can conflict with char $ac_func (); below.
4056     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4057     <limits.h> exists even on freestanding compilers.  */
4058
4059 #ifdef __STDC__
4060 # include <limits.h>
4061 #else
4062 # include <assert.h>
4063 #endif
4064
4065 #undef $ac_func
4066
4067 /* Override any gcc2 internal prototype to avoid an error.  */
4068 #ifdef __cplusplus
4069 extern "C"
4070 {
4071 #endif
4072 /* We use char because int might match the return type of a gcc2
4073    builtin and then its argument prototype would still apply.  */
4074 char $ac_func ();
4075 /* The GNU C library defines this for functions which it implements
4076     to always fail with ENOSYS.  Some functions are actually named
4077     something starting with __ and the normal name is an alias.  */
4078 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4079 choke me
4080 #else
4081 char (*f) () = $ac_func;
4082 #endif
4083 #ifdef __cplusplus
4084 }
4085 #endif
4086
4087 int
4088 main ()
4089 {
4090 return f != $ac_func;
4091   ;
4092   return 0;
4093 }
4094 _ACEOF
4095 rm -f conftest.$ac_objext conftest$ac_exeext
4096 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4097   (eval $ac_link) 2>conftest.er1
4098   ac_status=$?
4099   grep -v '^ *+' conftest.er1 >conftest.err
4100   rm -f conftest.er1
4101   cat conftest.err >&5
4102   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4103   (exit $ac_status); } &&
4104          { ac_try='test -z "$ac_c_werror_flag"
4105                          || test ! -s conftest.err'
4106   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4107   (eval $ac_try) 2>&5
4108   ac_status=$?
4109   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4110   (exit $ac_status); }; } &&
4111          { ac_try='test -s conftest$ac_exeext'
4112   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4113   (eval $ac_try) 2>&5
4114   ac_status=$?
4115   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4116   (exit $ac_status); }; }; then
4117   eval "$as_ac_var=yes"
4118 else
4119   echo "$as_me: failed program was:" >&5
4120 sed 's/^/| /' conftest.$ac_ext >&5
4121
4122 eval "$as_ac_var=no"
4123 fi
4124 rm -f conftest.err conftest.$ac_objext \
4125       conftest$ac_exeext conftest.$ac_ext
4126 fi
4127 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4128 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4129 if test `eval echo '${'$as_ac_var'}'` = yes; then
4130   cat >>confdefs.h <<_ACEOF
4131 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4132 _ACEOF
4133
4134 echo "$as_me:$LINENO: checking for _doprnt" >&5
4135 echo $ECHO_N "checking for _doprnt... $ECHO_C" >&6
4136 if test "${ac_cv_func__doprnt+set}" = set; then
4137   echo $ECHO_N "(cached) $ECHO_C" >&6
4138 else
4139   cat >conftest.$ac_ext <<_ACEOF
4140 /* confdefs.h.  */
4141 _ACEOF
4142 cat confdefs.h >>conftest.$ac_ext
4143 cat >>conftest.$ac_ext <<_ACEOF
4144 /* end confdefs.h.  */
4145 /* Define _doprnt to an innocuous variant, in case <limits.h> declares _doprnt.
4146    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4147 #define _doprnt innocuous__doprnt
4148
4149 /* System header to define __stub macros and hopefully few prototypes,
4150     which can conflict with char _doprnt (); below.
4151     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4152     <limits.h> exists even on freestanding compilers.  */
4153
4154 #ifdef __STDC__
4155 # include <limits.h>
4156 #else
4157 # include <assert.h>
4158 #endif
4159
4160 #undef _doprnt
4161
4162 /* Override any gcc2 internal prototype to avoid an error.  */
4163 #ifdef __cplusplus
4164 extern "C"
4165 {
4166 #endif
4167 /* We use char because int might match the return type of a gcc2
4168    builtin and then its argument prototype would still apply.  */
4169 char _doprnt ();
4170 /* The GNU C library defines this for functions which it implements
4171     to always fail with ENOSYS.  Some functions are actually named
4172     something starting with __ and the normal name is an alias.  */
4173 #if defined (__stub__doprnt) || defined (__stub____doprnt)
4174 choke me
4175 #else
4176 char (*f) () = _doprnt;
4177 #endif
4178 #ifdef __cplusplus
4179 }
4180 #endif
4181
4182 int
4183 main ()
4184 {
4185 return f != _doprnt;
4186   ;
4187   return 0;
4188 }
4189 _ACEOF
4190 rm -f conftest.$ac_objext conftest$ac_exeext
4191 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4192   (eval $ac_link) 2>conftest.er1
4193   ac_status=$?
4194   grep -v '^ *+' conftest.er1 >conftest.err
4195   rm -f conftest.er1
4196   cat conftest.err >&5
4197   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4198   (exit $ac_status); } &&
4199          { ac_try='test -z "$ac_c_werror_flag"
4200                          || test ! -s conftest.err'
4201   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4202   (eval $ac_try) 2>&5
4203   ac_status=$?
4204   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4205   (exit $ac_status); }; } &&
4206          { ac_try='test -s conftest$ac_exeext'
4207   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4208   (eval $ac_try) 2>&5
4209   ac_status=$?
4210   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4211   (exit $ac_status); }; }; then
4212   ac_cv_func__doprnt=yes
4213 else
4214   echo "$as_me: failed program was:" >&5
4215 sed 's/^/| /' conftest.$ac_ext >&5
4216
4217 ac_cv_func__doprnt=no
4218 fi
4219 rm -f conftest.err conftest.$ac_objext \
4220       conftest$ac_exeext conftest.$ac_ext
4221 fi
4222 echo "$as_me:$LINENO: result: $ac_cv_func__doprnt" >&5
4223 echo "${ECHO_T}$ac_cv_func__doprnt" >&6
4224 if test $ac_cv_func__doprnt = yes; then
4225
4226 cat >>confdefs.h <<\_ACEOF
4227 #define HAVE_DOPRNT 1
4228 _ACEOF
4229
4230 fi
4231
4232 fi
4233 done
4234
4235
4236
4237
4238 for ac_func in socket strerror
4239 do
4240 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
4241 echo "$as_me:$LINENO: checking for $ac_func" >&5
4242 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6
4243 if eval "test \"\${$as_ac_var+set}\" = set"; then
4244   echo $ECHO_N "(cached) $ECHO_C" >&6
4245 else
4246   cat >conftest.$ac_ext <<_ACEOF
4247 /* confdefs.h.  */
4248 _ACEOF
4249 cat confdefs.h >>conftest.$ac_ext
4250 cat >>conftest.$ac_ext <<_ACEOF
4251 /* end confdefs.h.  */
4252 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
4253    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
4254 #define $ac_func innocuous_$ac_func
4255
4256 /* System header to define __stub macros and hopefully few prototypes,
4257     which can conflict with char $ac_func (); below.
4258     Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4259     <limits.h> exists even on freestanding compilers.  */
4260
4261 #ifdef __STDC__
4262 # include <limits.h>
4263 #else
4264 # include <assert.h>
4265 #endif
4266
4267 #undef $ac_func
4268
4269 /* Override any gcc2 internal prototype to avoid an error.  */
4270 #ifdef __cplusplus
4271 extern "C"
4272 {
4273 #endif
4274 /* We use char because int might match the return type of a gcc2
4275    builtin and then its argument prototype would still apply.  */
4276 char $ac_func ();
4277 /* The GNU C library defines this for functions which it implements
4278     to always fail with ENOSYS.  Some functions are actually named
4279     something starting with __ and the normal name is an alias.  */
4280 #if defined (__stub_$ac_func) || defined (__stub___$ac_func)
4281 choke me
4282 #else
4283 char (*f) () = $ac_func;
4284 #endif
4285 #ifdef __cplusplus
4286 }
4287 #endif
4288
4289 int
4290 main ()
4291 {
4292 return f != $ac_func;
4293   ;
4294   return 0;
4295 }
4296 _ACEOF
4297 rm -f conftest.$ac_objext conftest$ac_exeext
4298 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4299   (eval $ac_link) 2>conftest.er1
4300   ac_status=$?
4301   grep -v '^ *+' conftest.er1 >conftest.err
4302   rm -f conftest.er1
4303   cat conftest.err >&5
4304   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4305   (exit $ac_status); } &&
4306          { ac_try='test -z "$ac_c_werror_flag"
4307                          || test ! -s conftest.err'
4308   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4309   (eval $ac_try) 2>&5
4310   ac_status=$?
4311   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4312   (exit $ac_status); }; } &&
4313          { ac_try='test -s conftest$ac_exeext'
4314   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4315   (eval $ac_try) 2>&5
4316   ac_status=$?
4317   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4318   (exit $ac_status); }; }; then
4319   eval "$as_ac_var=yes"
4320 else
4321   echo "$as_me: failed program was:" >&5
4322 sed 's/^/| /' conftest.$ac_ext >&5
4323
4324 eval "$as_ac_var=no"
4325 fi
4326 rm -f conftest.err conftest.$ac_objext \
4327       conftest$ac_exeext conftest.$ac_ext
4328 fi
4329 echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5
4330 echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6
4331 if test `eval echo '${'$as_ac_var'}'` = yes; then
4332   cat >>confdefs.h <<_ACEOF
4333 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
4334 _ACEOF
4335
4336 fi
4337 done
4338
4339
4340 echo "$as_me:$LINENO: checking kernel source directory" >&5
4341 echo $ECHO_N "checking kernel source directory... $ECHO_C" >&6
4342 KSRC="/lib/modules/`uname -r`/build"
4343
4344 # Check whether --with-kernel or --without-kernel was given.
4345 if test "${with_kernel+set}" = set; then
4346   withval="$with_kernel"
4347    KSRC="$withval"
4348 fi;
4349 # Check if kernel source directory has been configured
4350 if test -f "$KSRC/include/linux/version.h" ; then
4351     # Get kernel version number
4352     eval KVER=$(echo "#include <linux/version.h>" | cpp -I "$KSRC/include" -dM - | awk '/UTS_RELEASE/ { print $3 }')
4353     echo "$as_me:$LINENO: result: $KVER" >&5
4354 echo "${ECHO_T}$KVER" >&6
4355 else
4356     echo "$as_me:$LINENO: result: $KSRC/include/linux/version.h not found" >&5
4357 echo "${ECHO_T}$KSRC/include/linux/version.h not found" >&6
4358     { { echo "$as_me:$LINENO: error: kernel source directory not specified or not configured" >&5
4359 echo "$as_me: error: kernel source directory not specified or not configured" >&2;}
4360    { (exit 1); exit 1; }; }
4361 fi
4362
4363
4364
4365
4366 # Check whether --with-proper or --without-proper was given.
4367 if test "${with_proper+set}" = set; then
4368   withval="$with_proper"
4369    CPPFLAGS="$CPPFLAGS -I$withval/include" ; LDFLAGS="$LDFLAGS -L$withval/.libs"
4370 fi;
4371 if test "${ac_cv_header_prop_h+set}" = set; then
4372   echo "$as_me:$LINENO: checking for prop.h" >&5
4373 echo $ECHO_N "checking for prop.h... $ECHO_C" >&6
4374 if test "${ac_cv_header_prop_h+set}" = set; then
4375   echo $ECHO_N "(cached) $ECHO_C" >&6
4376 fi
4377 echo "$as_me:$LINENO: result: $ac_cv_header_prop_h" >&5
4378 echo "${ECHO_T}$ac_cv_header_prop_h" >&6
4379 else
4380   # Is the header compilable?
4381 echo "$as_me:$LINENO: checking prop.h usability" >&5
4382 echo $ECHO_N "checking prop.h usability... $ECHO_C" >&6
4383 cat >conftest.$ac_ext <<_ACEOF
4384 /* confdefs.h.  */
4385 _ACEOF
4386 cat confdefs.h >>conftest.$ac_ext
4387 cat >>conftest.$ac_ext <<_ACEOF
4388 /* end confdefs.h.  */
4389 $ac_includes_default
4390 #include <prop.h>
4391 _ACEOF
4392 rm -f conftest.$ac_objext
4393 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4394   (eval $ac_compile) 2>conftest.er1
4395   ac_status=$?
4396   grep -v '^ *+' conftest.er1 >conftest.err
4397   rm -f conftest.er1
4398   cat conftest.err >&5
4399   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4400   (exit $ac_status); } &&
4401          { ac_try='test -z "$ac_c_werror_flag"
4402                          || test ! -s conftest.err'
4403   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4404   (eval $ac_try) 2>&5
4405   ac_status=$?
4406   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4407   (exit $ac_status); }; } &&
4408          { ac_try='test -s conftest.$ac_objext'
4409   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4410   (eval $ac_try) 2>&5
4411   ac_status=$?
4412   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4413   (exit $ac_status); }; }; then
4414   ac_header_compiler=yes
4415 else
4416   echo "$as_me: failed program was:" >&5
4417 sed 's/^/| /' conftest.$ac_ext >&5
4418
4419 ac_header_compiler=no
4420 fi
4421 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4422 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4423 echo "${ECHO_T}$ac_header_compiler" >&6
4424
4425 # Is the header present?
4426 echo "$as_me:$LINENO: checking prop.h presence" >&5
4427 echo $ECHO_N "checking prop.h presence... $ECHO_C" >&6
4428 cat >conftest.$ac_ext <<_ACEOF
4429 /* confdefs.h.  */
4430 _ACEOF
4431 cat confdefs.h >>conftest.$ac_ext
4432 cat >>conftest.$ac_ext <<_ACEOF
4433 /* end confdefs.h.  */
4434 #include <prop.h>
4435 _ACEOF
4436 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4437   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4438   ac_status=$?
4439   grep -v '^ *+' conftest.er1 >conftest.err
4440   rm -f conftest.er1
4441   cat conftest.err >&5
4442   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4443   (exit $ac_status); } >/dev/null; then
4444   if test -s conftest.err; then
4445     ac_cpp_err=$ac_c_preproc_warn_flag
4446     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4447   else
4448     ac_cpp_err=
4449   fi
4450 else
4451   ac_cpp_err=yes
4452 fi
4453 if test -z "$ac_cpp_err"; then
4454   ac_header_preproc=yes
4455 else
4456   echo "$as_me: failed program was:" >&5
4457 sed 's/^/| /' conftest.$ac_ext >&5
4458
4459   ac_header_preproc=no
4460 fi
4461 rm -f conftest.err conftest.$ac_ext
4462 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4463 echo "${ECHO_T}$ac_header_preproc" >&6
4464
4465 # So?  What about this header?
4466 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4467   yes:no: )
4468     { echo "$as_me:$LINENO: WARNING: prop.h: accepted by the compiler, rejected by the preprocessor!" >&5
4469 echo "$as_me: WARNING: prop.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4470     { echo "$as_me:$LINENO: WARNING: prop.h: proceeding with the compiler's result" >&5
4471 echo "$as_me: WARNING: prop.h: proceeding with the compiler's result" >&2;}
4472     ac_header_preproc=yes
4473     ;;
4474   no:yes:* )
4475     { echo "$as_me:$LINENO: WARNING: prop.h: present but cannot be compiled" >&5
4476 echo "$as_me: WARNING: prop.h: present but cannot be compiled" >&2;}
4477     { echo "$as_me:$LINENO: WARNING: prop.h:     check for missing prerequisite headers?" >&5
4478 echo "$as_me: WARNING: prop.h:     check for missing prerequisite headers?" >&2;}
4479     { echo "$as_me:$LINENO: WARNING: prop.h: see the Autoconf documentation" >&5
4480 echo "$as_me: WARNING: prop.h: see the Autoconf documentation" >&2;}
4481     { echo "$as_me:$LINENO: WARNING: prop.h:     section \"Present But Cannot Be Compiled\"" >&5
4482 echo "$as_me: WARNING: prop.h:     section \"Present But Cannot Be Compiled\"" >&2;}
4483     { echo "$as_me:$LINENO: WARNING: prop.h: proceeding with the preprocessor's result" >&5
4484 echo "$as_me: WARNING: prop.h: proceeding with the preprocessor's result" >&2;}
4485     { echo "$as_me:$LINENO: WARNING: prop.h: in the future, the compiler will take precedence" >&5
4486 echo "$as_me: WARNING: prop.h: in the future, the compiler will take precedence" >&2;}
4487     (
4488       cat <<\_ASBOX
4489 ## ------------------------------------------ ##
4490 ## Report this to the AC_PACKAGE_NAME lists.  ##
4491 ## ------------------------------------------ ##
4492 _ASBOX
4493     ) |
4494       sed "s/^/$as_me: WARNING:     /" >&2
4495     ;;
4496 esac
4497 echo "$as_me:$LINENO: checking for prop.h" >&5
4498 echo $ECHO_N "checking for prop.h... $ECHO_C" >&6
4499 if test "${ac_cv_header_prop_h+set}" = set; then
4500   echo $ECHO_N "(cached) $ECHO_C" >&6
4501 else
4502   ac_cv_header_prop_h=$ac_header_preproc
4503 fi
4504 echo "$as_me:$LINENO: result: $ac_cv_header_prop_h" >&5
4505 echo "${ECHO_T}$ac_cv_header_prop_h" >&6
4506
4507 fi
4508 if test $ac_cv_header_prop_h = yes; then
4509   HAVE_PROP_H=true
4510 fi
4511
4512
4513
4514 echo "$as_me:$LINENO: checking for prop_create_socket in -lproper" >&5
4515 echo $ECHO_N "checking for prop_create_socket in -lproper... $ECHO_C" >&6
4516 if test "${ac_cv_lib_proper_prop_create_socket+set}" = set; then
4517   echo $ECHO_N "(cached) $ECHO_C" >&6
4518 else
4519   ac_check_lib_save_LIBS=$LIBS
4520 LIBS="-lproper  $LIBS"
4521 cat >conftest.$ac_ext <<_ACEOF
4522 /* confdefs.h.  */
4523 _ACEOF
4524 cat confdefs.h >>conftest.$ac_ext
4525 cat >>conftest.$ac_ext <<_ACEOF
4526 /* end confdefs.h.  */
4527
4528 /* Override any gcc2 internal prototype to avoid an error.  */
4529 #ifdef __cplusplus
4530 extern "C"
4531 #endif
4532 /* We use char because int might match the return type of a gcc2
4533    builtin and then its argument prototype would still apply.  */
4534 char prop_create_socket ();
4535 int
4536 main ()
4537 {
4538 prop_create_socket ();
4539   ;
4540   return 0;
4541 }
4542 _ACEOF
4543 rm -f conftest.$ac_objext conftest$ac_exeext
4544 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4545   (eval $ac_link) 2>conftest.er1
4546   ac_status=$?
4547   grep -v '^ *+' conftest.er1 >conftest.err
4548   rm -f conftest.er1
4549   cat conftest.err >&5
4550   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4551   (exit $ac_status); } &&
4552          { ac_try='test -z "$ac_c_werror_flag"
4553                          || test ! -s conftest.err'
4554   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4555   (eval $ac_try) 2>&5
4556   ac_status=$?
4557   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4558   (exit $ac_status); }; } &&
4559          { ac_try='test -s conftest$ac_exeext'
4560   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4561   (eval $ac_try) 2>&5
4562   ac_status=$?
4563   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4564   (exit $ac_status); }; }; then
4565   ac_cv_lib_proper_prop_create_socket=yes
4566 else
4567   echo "$as_me: failed program was:" >&5
4568 sed 's/^/| /' conftest.$ac_ext >&5
4569
4570 ac_cv_lib_proper_prop_create_socket=no
4571 fi
4572 rm -f conftest.err conftest.$ac_objext \
4573       conftest$ac_exeext conftest.$ac_ext
4574 LIBS=$ac_check_lib_save_LIBS
4575 fi
4576 echo "$as_me:$LINENO: result: $ac_cv_lib_proper_prop_create_socket" >&5
4577 echo "${ECHO_T}$ac_cv_lib_proper_prop_create_socket" >&6
4578 if test $ac_cv_lib_proper_prop_create_socket = yes; then
4579   cat >>confdefs.h <<_ACEOF
4580 #define HAVE_LIBPROPER 1
4581 _ACEOF
4582
4583   LIBS="-lproper $LIBS"
4584
4585 fi
4586
4587 if test "${ac_cv_header_pthread_h+set}" = set; then
4588   echo "$as_me:$LINENO: checking for pthread.h" >&5
4589 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
4590 if test "${ac_cv_header_pthread_h+set}" = set; then
4591   echo $ECHO_N "(cached) $ECHO_C" >&6
4592 fi
4593 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
4594 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
4595 else
4596   # Is the header compilable?
4597 echo "$as_me:$LINENO: checking pthread.h usability" >&5
4598 echo $ECHO_N "checking pthread.h usability... $ECHO_C" >&6
4599 cat >conftest.$ac_ext <<_ACEOF
4600 /* confdefs.h.  */
4601 _ACEOF
4602 cat confdefs.h >>conftest.$ac_ext
4603 cat >>conftest.$ac_ext <<_ACEOF
4604 /* end confdefs.h.  */
4605 $ac_includes_default
4606 #include <pthread.h>
4607 _ACEOF
4608 rm -f conftest.$ac_objext
4609 if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5
4610   (eval $ac_compile) 2>conftest.er1
4611   ac_status=$?
4612   grep -v '^ *+' conftest.er1 >conftest.err
4613   rm -f conftest.er1
4614   cat conftest.err >&5
4615   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4616   (exit $ac_status); } &&
4617          { ac_try='test -z "$ac_c_werror_flag"
4618                          || test ! -s conftest.err'
4619   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4620   (eval $ac_try) 2>&5
4621   ac_status=$?
4622   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4623   (exit $ac_status); }; } &&
4624          { ac_try='test -s conftest.$ac_objext'
4625   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4626   (eval $ac_try) 2>&5
4627   ac_status=$?
4628   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4629   (exit $ac_status); }; }; then
4630   ac_header_compiler=yes
4631 else
4632   echo "$as_me: failed program was:" >&5
4633 sed 's/^/| /' conftest.$ac_ext >&5
4634
4635 ac_header_compiler=no
4636 fi
4637 rm -f conftest.err conftest.$ac_objext conftest.$ac_ext
4638 echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
4639 echo "${ECHO_T}$ac_header_compiler" >&6
4640
4641 # Is the header present?
4642 echo "$as_me:$LINENO: checking pthread.h presence" >&5
4643 echo $ECHO_N "checking pthread.h presence... $ECHO_C" >&6
4644 cat >conftest.$ac_ext <<_ACEOF
4645 /* confdefs.h.  */
4646 _ACEOF
4647 cat confdefs.h >>conftest.$ac_ext
4648 cat >>conftest.$ac_ext <<_ACEOF
4649 /* end confdefs.h.  */
4650 #include <pthread.h>
4651 _ACEOF
4652 if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5
4653   (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1
4654   ac_status=$?
4655   grep -v '^ *+' conftest.er1 >conftest.err
4656   rm -f conftest.er1
4657   cat conftest.err >&5
4658   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4659   (exit $ac_status); } >/dev/null; then
4660   if test -s conftest.err; then
4661     ac_cpp_err=$ac_c_preproc_warn_flag
4662     ac_cpp_err=$ac_cpp_err$ac_c_werror_flag
4663   else
4664     ac_cpp_err=
4665   fi
4666 else
4667   ac_cpp_err=yes
4668 fi
4669 if test -z "$ac_cpp_err"; then
4670   ac_header_preproc=yes
4671 else
4672   echo "$as_me: failed program was:" >&5
4673 sed 's/^/| /' conftest.$ac_ext >&5
4674
4675   ac_header_preproc=no
4676 fi
4677 rm -f conftest.err conftest.$ac_ext
4678 echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
4679 echo "${ECHO_T}$ac_header_preproc" >&6
4680
4681 # So?  What about this header?
4682 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in
4683   yes:no: )
4684     { echo "$as_me:$LINENO: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&5
4685 echo "$as_me: WARNING: pthread.h: accepted by the compiler, rejected by the preprocessor!" >&2;}
4686     { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the compiler's result" >&5
4687 echo "$as_me: WARNING: pthread.h: proceeding with the compiler's result" >&2;}
4688     ac_header_preproc=yes
4689     ;;
4690   no:yes:* )
4691     { echo "$as_me:$LINENO: WARNING: pthread.h: present but cannot be compiled" >&5
4692 echo "$as_me: WARNING: pthread.h: present but cannot be compiled" >&2;}
4693     { echo "$as_me:$LINENO: WARNING: pthread.h:     check for missing prerequisite headers?" >&5
4694 echo "$as_me: WARNING: pthread.h:     check for missing prerequisite headers?" >&2;}
4695     { echo "$as_me:$LINENO: WARNING: pthread.h: see the Autoconf documentation" >&5
4696 echo "$as_me: WARNING: pthread.h: see the Autoconf documentation" >&2;}
4697     { echo "$as_me:$LINENO: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&5
4698 echo "$as_me: WARNING: pthread.h:     section \"Present But Cannot Be Compiled\"" >&2;}
4699     { echo "$as_me:$LINENO: WARNING: pthread.h: proceeding with the preprocessor's result" >&5
4700 echo "$as_me: WARNING: pthread.h: proceeding with the preprocessor's result" >&2;}
4701     { echo "$as_me:$LINENO: WARNING: pthread.h: in the future, the compiler will take precedence" >&5
4702 echo "$as_me: WARNING: pthread.h: in the future, the compiler will take precedence" >&2;}
4703     (
4704       cat <<\_ASBOX
4705 ## ------------------------------------------ ##
4706 ## Report this to the AC_PACKAGE_NAME lists.  ##
4707 ## ------------------------------------------ ##
4708 _ASBOX
4709     ) |
4710       sed "s/^/$as_me: WARNING:     /" >&2
4711     ;;
4712 esac
4713 echo "$as_me:$LINENO: checking for pthread.h" >&5
4714 echo $ECHO_N "checking for pthread.h... $ECHO_C" >&6
4715 if test "${ac_cv_header_pthread_h+set}" = set; then
4716   echo $ECHO_N "(cached) $ECHO_C" >&6
4717 else
4718   ac_cv_header_pthread_h=$ac_header_preproc
4719 fi
4720 echo "$as_me:$LINENO: result: $ac_cv_header_pthread_h" >&5
4721 echo "${ECHO_T}$ac_cv_header_pthread_h" >&6
4722
4723 fi
4724 if test $ac_cv_header_pthread_h = yes; then
4725   HAVE_PTHREAD_H=true
4726 else
4727   { { echo "$as_me:$LINENO: error: NetFlow requires pthread" >&5
4728 echo "$as_me: error: NetFlow requires pthread" >&2;}
4729    { (exit 1); exit 1; }; }
4730 fi
4731
4732
4733
4734 echo "$as_me:$LINENO: checking for pthread_create in -lpthread" >&5
4735 echo $ECHO_N "checking for pthread_create in -lpthread... $ECHO_C" >&6
4736 if test "${ac_cv_lib_pthread_pthread_create+set}" = set; then
4737   echo $ECHO_N "(cached) $ECHO_C" >&6
4738 else
4739   ac_check_lib_save_LIBS=$LIBS
4740 LIBS="-lpthread  $LIBS"
4741 cat >conftest.$ac_ext <<_ACEOF
4742 /* confdefs.h.  */
4743 _ACEOF
4744 cat confdefs.h >>conftest.$ac_ext
4745 cat >>conftest.$ac_ext <<_ACEOF
4746 /* end confdefs.h.  */
4747
4748 /* Override any gcc2 internal prototype to avoid an error.  */
4749 #ifdef __cplusplus
4750 extern "C"
4751 #endif
4752 /* We use char because int might match the return type of a gcc2
4753    builtin and then its argument prototype would still apply.  */
4754 char pthread_create ();
4755 int
4756 main ()
4757 {
4758 pthread_create ();
4759   ;
4760   return 0;
4761 }
4762 _ACEOF
4763 rm -f conftest.$ac_objext conftest$ac_exeext
4764 if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5
4765   (eval $ac_link) 2>conftest.er1
4766   ac_status=$?
4767   grep -v '^ *+' conftest.er1 >conftest.err
4768   rm -f conftest.er1
4769   cat conftest.err >&5
4770   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4771   (exit $ac_status); } &&
4772          { ac_try='test -z "$ac_c_werror_flag"
4773                          || test ! -s conftest.err'
4774   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4775   (eval $ac_try) 2>&5
4776   ac_status=$?
4777   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4778   (exit $ac_status); }; } &&
4779          { ac_try='test -s conftest$ac_exeext'
4780   { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5
4781   (eval $ac_try) 2>&5
4782   ac_status=$?
4783   echo "$as_me:$LINENO: \$? = $ac_status" >&5
4784   (exit $ac_status); }; }; then
4785   ac_cv_lib_pthread_pthread_create=yes
4786 else
4787   echo "$as_me: failed program was:" >&5
4788 sed 's/^/| /' conftest.$ac_ext >&5
4789
4790 ac_cv_lib_pthread_pthread_create=no
4791 fi
4792 rm -f conftest.err conftest.$ac_objext \
4793       conftest$ac_exeext conftest.$ac_ext
4794 LIBS=$ac_check_lib_save_LIBS
4795 fi
4796 echo "$as_me:$LINENO: result: $ac_cv_lib_pthread_pthread_create" >&5
4797 echo "${ECHO_T}$ac_cv_lib_pthread_pthread_create" >&6
4798 if test $ac_cv_lib_pthread_pthread_create = yes; then
4799   cat >>confdefs.h <<_ACEOF
4800 #define HAVE_LIBPTHREAD 1
4801 _ACEOF
4802
4803   LIBS="-lpthread $LIBS"
4804
4805 else
4806   { { echo "$as_me:$LINENO: error: NetFlow requires pthread" >&5
4807 echo "$as_me: error: NetFlow requires pthread" >&2;}
4808    { (exit 1); exit 1; }; }
4809 fi
4810
4811
4812 DATABASE_DIR=""
4813 DATABASE_LIB=""
4814 DATABASE_LIB_DIR=""
4815
4816 DATABASE_DRIVERS=""
4817
4818
4819 # Check whether --with-mysql or --without-mysql was given.
4820 if test "${with_mysql+set}" = set; then
4821   withval="$with_mysql"
4822
4823 if test $withval != yes
4824 then
4825         dir=$withval
4826 else
4827         dir="/usr/local"
4828 fi
4829 mysqldir=""
4830 echo "$as_me:$LINENO: checking for MySQL files" >&5
4831 echo $ECHO_N "checking for MySQL files... $ECHO_C" >&6
4832 for d in $dir /usr /usr/local /usr/local/mysql /opt/mysql /opt/packages/mysql
4833 do
4834         if test -f $d/lib/mysql/libmysqlclient.so
4835         then
4836                 echo "$as_me:$LINENO: result: found mysql in $d" >&5
4837 echo "${ECHO_T}found mysql in $d" >&6
4838                 mysqldir=$d
4839                 MYSQLINCLUDES=${mysqldir}/include/mysql
4840                 MYSQLLIBS=${mysqldir}/lib/mysql
4841                 break
4842         elif test -f $d/lib/libmysqlclient.so
4843         then
4844                 echo "$as_me:$LINENO: result: found mysql in $d" >&5
4845 echo "${ECHO_T}found mysql in $d" >&6
4846                 mysqldir=$d
4847                 MYSQLINCLUDES=${mysqldir}/include
4848                 MYSQLLIBS=${mysqldir}/lib
4849                 break
4850         elif test -f $d/libmysql/.libs/libmysqlclient.so
4851         then
4852                 echo "$as_me:$LINENO: result: found mysql in $d" >&5
4853 echo "${ECHO_T}found mysql in $d" >&6
4854                 mysqldir=$d
4855                 ln -nsf ${mysqldir}/include include/mysql
4856                 MYSQLINCLUDES=$PWD/include
4857                 MYSQLLIBS=${mysqldir}/libmysql/.libs
4858                 break
4859         fi
4860 done
4861
4862 if test x$mysqldir = x
4863 then
4864         { echo "$as_me:$LINENO: WARNING: MySQL backend not used" >&5
4865 echo "$as_me: WARNING: MySQL backend not used" >&2;}
4866 else
4867         cat >>confdefs.h <<\_ACEOF
4868 #define HAVE_MYSQL 1
4869 _ACEOF
4870
4871
4872         DATABASE_DIR="${DATABASE_DIR} mysql"
4873
4874         MYSQL_LIB="${DATABASE_LIB} -lmysqlclient "
4875         DATABASE_LIB_DIR="${DATABASE_LIB_DIR} -L${MYSQLLIBS} "
4876
4877         DATABASE_DRIVERS="${DATABASE_DRIVERS} ../mysql/mysql_driver.o "
4878
4879         DB_DEF="${DB_DEF} -DHAVE_MYSQL "
4880
4881
4882
4883
4884
4885         if test -f $MYSQLLIBS/libmystrings.so
4886         then
4887                 DATABASE_LIB="${DATABASE_LIB} -lmystrings "
4888         else
4889                 MYSQLEXTRALIBS=
4890         fi
4891
4892
4893         echo "$as_me:$LINENO: checking for mysql_real_escape_string support" >&5
4894 echo $ECHO_N "checking for mysql_real_escape_string support... $ECHO_C" >&6
4895
4896         MYSQL_FUNCTION_TEST=`strings ${MYSQLLIBS}/libmysqlclient.so | grep mysql_real_escape_string`
4897
4898         if test "x$MYSQL_FUNCTION_TEST" = x
4899         then
4900                 EXTRA_MYSQL_DEF="OLD_MYSQL=1 "
4901                 echo "$as_me:$LINENO: result: found old MySQL" >&5
4902 echo "${ECHO_T}found old MySQL" >&6
4903         else
4904                 echo "$as_me:$LINENO: result: found new MySQL" >&5
4905 echo "${ECHO_T}found new MySQL" >&6
4906         fi
4907
4908 fi
4909
4910 fi;
4911
4912
4913
4914
4915 # Check whether --with-mysql-log-ip-as-string or --without-mysql-log-ip-as-string was given.
4916 if test "${with_mysql_log_ip_as_string+set}" = set; then
4917   withval="$with_mysql_log_ip_as_string"
4918
4919    EXTRA_MYSQL_DEF="-D${EXTRA_MYSQL_DEF} -DIP_AS_STRING=1"
4920    { echo "$as_me:$LINENO: WARNING: the use of --with-mysql-log-ip-as-string is discouraged" >&5
4921 echo "$as_me: WARNING: the use of --with-mysql-log-ip-as-string is discouraged" >&2;}
4922
4923 fi;
4924
4925
4926
4927 # Check whether --with-pgsql or --without-pgsql was given.
4928 if test "${with_pgsql+set}" = set; then
4929   withval="$with_pgsql"
4930
4931 if test $withval != yes
4932 then
4933         dir=$withval
4934 else
4935         dir="/usr/local"
4936 fi
4937 pgsqldir=""
4938 echo "$as_me:$LINENO: checking for PGSQL files" >&5
4939 echo $ECHO_N "checking for PGSQL files... $ECHO_C" >&6
4940 for d in $dir /usr /usr/local /usr/local/pgsql /opt/pgsql /opt/packages/pgsql
4941 do
4942         if test -f $d/lib/pgsql/libpq.so
4943         then
4944                 echo "$as_me:$LINENO: result: found pgsql in $d" >&5
4945 echo "${ECHO_T}found pgsql in $d" >&6
4946                 pgsqldir=$d
4947                 break
4948         elif test -f $d/lib/libpq.so
4949         then
4950                 echo "$as_me:$LINENO: result: found pgsql in $d" >&5
4951 echo "${ECHO_T}found pgsql in $d" >&6
4952                 pgsqldir=$d
4953                 break
4954         fi
4955 done
4956
4957 if test x$pgsqldir = x
4958 then
4959         { echo "$as_me:$LINENO: WARNING: PGSQL backend not used" >&5
4960 echo "$as_me: WARNING: PGSQL backend not used" >&2;}
4961 else
4962         cat >>confdefs.h <<\_ACEOF
4963 #define HAVE_PGSQL 1
4964 _ACEOF
4965
4966         for i in include include/postgresql include/pgsql
4967         do
4968                 if test -f ${pgsqldir}/$i/libpq-fe.h
4969                 then
4970                         PGSQLINCLUDES=${pgsqldir}/$i
4971                         break
4972                 fi
4973         done
4974         PGSQLLIBS=${pgsqldir}/lib
4975
4976         DATABASE_DIR="${DATABASE_DIR} pgsql"
4977
4978         PGSQL_LIB="${DATABASE_LIB} -lpq "
4979         DATABASE_LIB_DIR="${DATABASE_LIB_DIR} -L${PGSQLLIBS} "
4980
4981         DB_DEF="${DB_DEF} -DHAVE_PGSQL "
4982
4983
4984
4985
4986 fi
4987
4988 fi;
4989
4990
4991
4992 # Check whether --with-pgsql-log-ip-as-string or --without-pgsql-log-ip-as-string was given.
4993 if test "${with_pgsql_log_ip_as_string+set}" = set; then
4994   withval="$with_pgsql_log_ip_as_string"
4995
4996    EXTRA_PGSQL_DEF="-DIP_AS_STRING=1"
4997
4998 fi;
4999
5000
5001
5002
5003
5004
5005
5006
5007
5008
5009
5010
5011
5012
5013
5014
5015 if test x$mysqldir != x; then
5016   HAVE_MYSQL_TRUE=
5017   HAVE_MYSQL_FALSE='#'
5018 else
5019   HAVE_MYSQL_TRUE='#'
5020   HAVE_MYSQL_FALSE=
5021 fi
5022
5023
5024 if test x$pgsqldir != x; then
5025   HAVE_PGSQL_TRUE=
5026   HAVE_PGSQL_FALSE='#'
5027 else
5028   HAVE_PGSQL_TRUE='#'
5029   HAVE_PGSQL_FALSE=
5030 fi
5031
5032                                                                                                     ac_config_files="$ac_config_files extensions/Makefile doc/Makefile conffile/Makefile libipulog/Makefile mysql/Makefile pgsql/Makefile pcap/Makefile netflow/Makefile Makefile Rules.make"
5033 cat >confcache <<\_ACEOF
5034 # This file is a shell script that caches the results of configure
5035 # tests run on this system so they can be shared between configure
5036 # scripts and configure runs, see configure's option --config-cache.
5037 # It is not useful on other systems.  If it contains results you don't
5038 # want to keep, you may remove or edit it.
5039 #
5040 # config.status only pays attention to the cache file if you give it
5041 # the --recheck option to rerun configure.
5042 #
5043 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5044 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5045 # following values.
5046
5047 _ACEOF
5048
5049 # The following way of writing the cache mishandles newlines in values,
5050 # but we know of no workaround that is simple, portable, and efficient.
5051 # So, don't put newlines in cache variables' values.
5052 # Ultrix sh set writes to stderr and can't be redirected directly,
5053 # and sets the high bit in the cache file unless we assign to the vars.
5054 {
5055   (set) 2>&1 |
5056     case `(ac_space=' '; set | grep ac_space) 2>&1` in
5057     *ac_space=\ *)
5058       # `set' does not quote correctly, so add quotes (double-quote
5059       # substitution turns \\\\ into \\, and sed turns \\ into \).
5060       sed -n \
5061         "s/'/'\\\\''/g;
5062           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5063       ;;
5064     *)
5065       # `set' quotes correctly as required by POSIX, so do not add quotes.
5066       sed -n \
5067         "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p"
5068       ;;
5069     esac;
5070 } |
5071   sed '
5072      t clear
5073      : clear
5074      s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5075      t end
5076      /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5077      : end' >>confcache
5078 if diff $cache_file confcache >/dev/null 2>&1; then :; else
5079   if test -w $cache_file; then
5080     test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file"
5081     cat confcache >$cache_file
5082   else
5083     echo "not updating unwritable cache $cache_file"
5084   fi
5085 fi
5086 rm -f confcache
5087
5088 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5089 # Let make expand exec_prefix.
5090 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5091
5092 # VPATH may cause trouble with some makes, so we remove $(srcdir),
5093 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
5094 # trailing colons and then remove the whole line if VPATH becomes empty
5095 # (actually we leave an empty line to preserve line numbers).
5096 if test "x$srcdir" = x.; then
5097   ac_vpsub='/^[  ]*VPATH[        ]*=/{
5098 s/:*\$(srcdir):*/:/;
5099 s/:*\${srcdir}:*/:/;
5100 s/:*@srcdir@:*/:/;
5101 s/^\([^=]*=[     ]*\):*/\1/;
5102 s/:*$//;
5103 s/^[^=]*=[       ]*$//;
5104 }'
5105 fi
5106
5107 # Transform confdefs.h into DEFS.
5108 # Protect against shell expansion while executing Makefile rules.
5109 # Protect against Makefile macro expansion.
5110 #
5111 # If the first sed substitution is executed (which looks for macros that
5112 # take arguments), then we branch to the quote section.  Otherwise,
5113 # look for a macro that doesn't take arguments.
5114 cat >confdef2opt.sed <<\_ACEOF
5115 t clear
5116 : clear
5117 s,^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\),-D\1=\2,g
5118 t quote
5119 s,^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\),-D\1=\2,g
5120 t quote
5121 d
5122 : quote
5123 s,[      `~#$^&*(){}\\|;'"<>?],\\&,g
5124 s,\[,\\&,g
5125 s,\],\\&,g
5126 s,\$,$$,g
5127 p
5128 _ACEOF
5129 # We use echo to avoid assuming a particular line-breaking character.
5130 # The extra dot is to prevent the shell from consuming trailing
5131 # line-breaks from the sub-command output.  A line-break within
5132 # single-quotes doesn't work because, if this script is created in a
5133 # platform that uses two characters for line-breaks (e.g., DOS), tr
5134 # would break.
5135 ac_LF_and_DOT=`echo; echo .`
5136 DEFS=`sed -n -f confdef2opt.sed confdefs.h | tr "$ac_LF_and_DOT" ' .'`
5137 rm -f confdef2opt.sed
5138
5139
5140 ac_libobjs=
5141 ac_ltlibobjs=
5142 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5143   # 1. Remove the extension, and $U if already installed.
5144   ac_i=`echo "$ac_i" |
5145          sed 's/\$U\././;s/\.o$//;s/\.obj$//'`
5146   # 2. Add them.
5147   ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext"
5148   ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo'
5149 done
5150 LIBOBJS=$ac_libobjs
5151
5152 LTLIBOBJS=$ac_ltlibobjs
5153
5154
5155
5156 : ${CONFIG_STATUS=./config.status}
5157 ac_clean_files_save=$ac_clean_files
5158 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5159 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
5160 echo "$as_me: creating $CONFIG_STATUS" >&6;}
5161 cat >$CONFIG_STATUS <<_ACEOF
5162 #! $SHELL
5163 # Generated by $as_me.
5164 # Run this file to recreate the current configuration.
5165 # Compiler output produced by configure, useful for debugging
5166 # configure, is in config.log if it exists.
5167
5168 debug=false
5169 ac_cs_recheck=false
5170 ac_cs_silent=false
5171 SHELL=\${CONFIG_SHELL-$SHELL}
5172 _ACEOF
5173
5174 cat >>$CONFIG_STATUS <<\_ACEOF
5175 ## --------------------- ##
5176 ## M4sh Initialization.  ##
5177 ## --------------------- ##
5178
5179 # Be Bourne compatible
5180 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
5181   emulate sh
5182   NULLCMD=:
5183   # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
5184   # is contrary to our usage.  Disable this feature.
5185   alias -g '${1+"$@"}'='"$@"'
5186 elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then
5187   set -o posix
5188 fi
5189 DUALCASE=1; export DUALCASE # for MKS sh
5190
5191 # Support unset when possible.
5192 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5193   as_unset=unset
5194 else
5195   as_unset=false
5196 fi
5197
5198
5199 # Work around bugs in pre-3.0 UWIN ksh.
5200 $as_unset ENV MAIL MAILPATH
5201 PS1='$ '
5202 PS2='> '
5203 PS4='+ '
5204
5205 # NLS nuisances.
5206 for as_var in \
5207   LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
5208   LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
5209   LC_TELEPHONE LC_TIME
5210 do
5211   if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
5212     eval $as_var=C; export $as_var
5213   else
5214     $as_unset $as_var
5215   fi
5216 done
5217
5218 # Required to use basename.
5219 if expr a : '\(a\)' >/dev/null 2>&1; then
5220   as_expr=expr
5221 else
5222   as_expr=false
5223 fi
5224
5225 if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then
5226   as_basename=basename
5227 else
5228   as_basename=false
5229 fi
5230
5231
5232 # Name of the executable.
5233 as_me=`$as_basename "$0" ||
5234 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5235          X"$0" : 'X\(//\)$' \| \
5236          X"$0" : 'X\(/\)$' \| \
5237          .     : '\(.\)' 2>/dev/null ||
5238 echo X/"$0" |
5239     sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; }
5240           /^X\/\(\/\/\)$/{ s//\1/; q; }
5241           /^X\/\(\/\).*/{ s//\1/; q; }
5242           s/.*/./; q'`
5243
5244
5245 # PATH needs CR, and LINENO needs CR and PATH.
5246 # Avoid depending upon Character Ranges.
5247 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5248 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5249 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5250 as_cr_digits='0123456789'
5251 as_cr_alnum=$as_cr_Letters$as_cr_digits
5252
5253 # The user is always right.
5254 if test "${PATH_SEPARATOR+set}" != set; then
5255   echo "#! /bin/sh" >conf$$.sh
5256   echo  "exit 0"   >>conf$$.sh
5257   chmod +x conf$$.sh
5258   if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
5259     PATH_SEPARATOR=';'
5260   else
5261     PATH_SEPARATOR=:
5262   fi
5263   rm -f conf$$.sh
5264 fi
5265
5266
5267   as_lineno_1=$LINENO
5268   as_lineno_2=$LINENO
5269   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5270   test "x$as_lineno_1" != "x$as_lineno_2" &&
5271   test "x$as_lineno_3"  = "x$as_lineno_2"  || {
5272   # Find who we are.  Look in the path if we contain no path at all
5273   # relative or not.
5274   case $0 in
5275     *[\\/]* ) as_myself=$0 ;;
5276     *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5277 for as_dir in $PATH
5278 do
5279   IFS=$as_save_IFS
5280   test -z "$as_dir" && as_dir=.
5281   test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5282 done
5283
5284        ;;
5285   esac
5286   # We did not find ourselves, most probably we were run as `sh COMMAND'
5287   # in which case we are not to be found in the path.
5288   if test "x$as_myself" = x; then
5289     as_myself=$0
5290   fi
5291   if test ! -f "$as_myself"; then
5292     { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5
5293 echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;}
5294    { (exit 1); exit 1; }; }
5295   fi
5296   case $CONFIG_SHELL in
5297   '')
5298     as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5299 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
5300 do
5301   IFS=$as_save_IFS
5302   test -z "$as_dir" && as_dir=.
5303   for as_base in sh bash ksh sh5; do
5304          case $as_dir in
5305          /*)
5306            if ("$as_dir/$as_base" -c '
5307   as_lineno_1=$LINENO
5308   as_lineno_2=$LINENO
5309   as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null`
5310   test "x$as_lineno_1" != "x$as_lineno_2" &&
5311   test "x$as_lineno_3"  = "x$as_lineno_2" ') 2>/dev/null; then
5312              $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; }
5313              $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; }
5314              CONFIG_SHELL=$as_dir/$as_base
5315              export CONFIG_SHELL
5316              exec "$CONFIG_SHELL" "$0" ${1+"$@"}
5317            fi;;
5318          esac
5319        done
5320 done
5321 ;;
5322   esac
5323
5324   # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
5325   # uniformly replaced by the line number.  The first 'sed' inserts a
5326   # line-number line before each line; the second 'sed' does the real
5327   # work.  The second script uses 'N' to pair each line-number line
5328   # with the numbered line, and appends trailing '-' during
5329   # substitution so that $LINENO is not a special case at line end.
5330   # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
5331   # second 'sed' script.  Blame Lee E. McMahon for sed's syntax.  :-)
5332   sed '=' <$as_myself |
5333     sed '
5334       N
5335       s,$,-,
5336       : loop
5337       s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3,
5338       t loop
5339       s,-$,,
5340       s,^['$as_cr_digits']*\n,,
5341     ' >$as_me.lineno &&
5342   chmod +x $as_me.lineno ||
5343     { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5
5344 echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;}
5345    { (exit 1); exit 1; }; }
5346
5347   # Don't try to exec as it changes $[0], causing all sort of problems
5348   # (the dirname of $[0] is not the place where we might find the
5349   # original and so on.  Autoconf is especially sensible to this).
5350   . ./$as_me.lineno
5351   # Exit status is that of the last command.
5352   exit
5353 }
5354
5355
5356 case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in
5357   *c*,-n*) ECHO_N= ECHO_C='
5358 ' ECHO_T='      ' ;;
5359   *c*,*  ) ECHO_N=-n ECHO_C= ECHO_T= ;;
5360   *)       ECHO_N= ECHO_C='\c' ECHO_T= ;;
5361 esac
5362
5363 if expr a : '\(a\)' >/dev/null 2>&1; then
5364   as_expr=expr
5365 else
5366   as_expr=false
5367 fi
5368
5369 rm -f conf$$ conf$$.exe conf$$.file
5370 echo >conf$$.file
5371 if ln -s conf$$.file conf$$ 2>/dev/null; then
5372   # We could just check for DJGPP; but this test a) works b) is more generic
5373   # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04).
5374   if test -f conf$$.exe; then
5375     # Don't use ln at all; we don't have any links
5376     as_ln_s='cp -p'
5377   else
5378     as_ln_s='ln -s'
5379   fi
5380 elif ln conf$$.file conf$$ 2>/dev/null; then
5381   as_ln_s=ln
5382 else
5383   as_ln_s='cp -p'
5384 fi
5385 rm -f conf$$ conf$$.exe conf$$.file
5386
5387 if mkdir -p . 2>/dev/null; then
5388   as_mkdir_p=:
5389 else
5390   test -d ./-p && rmdir ./-p
5391   as_mkdir_p=false
5392 fi
5393
5394 as_executable_p="test -f"
5395
5396 # Sed expression to map a string onto a valid CPP name.
5397 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5398
5399 # Sed expression to map a string onto a valid variable name.
5400 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5401
5402
5403 # IFS
5404 # We need space, tab and new line, in precisely that order.
5405 as_nl='
5406 '
5407 IFS="   $as_nl"
5408
5409 # CDPATH.
5410 $as_unset CDPATH
5411
5412 exec 6>&1
5413
5414 # Open the log real soon, to keep \$[0] and so on meaningful, and to
5415 # report actual input values of CONFIG_FILES etc. instead of their
5416 # values after options handling.  Logging --version etc. is OK.
5417 exec 5>>config.log
5418 {
5419   echo
5420   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5421 ## Running $as_me. ##
5422 _ASBOX
5423 } >&5
5424 cat >&5 <<_CSEOF
5425
5426 This file was extended by $as_me, which was
5427 generated by GNU Autoconf 2.59.  Invocation command line was
5428
5429   CONFIG_FILES    = $CONFIG_FILES
5430   CONFIG_HEADERS  = $CONFIG_HEADERS
5431   CONFIG_LINKS    = $CONFIG_LINKS
5432   CONFIG_COMMANDS = $CONFIG_COMMANDS
5433   $ $0 $@
5434
5435 _CSEOF
5436 echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5
5437 echo >&5
5438 _ACEOF
5439
5440 # Files that config.status was made for.
5441 if test -n "$ac_config_files"; then
5442   echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS
5443 fi
5444
5445 if test -n "$ac_config_headers"; then
5446   echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS
5447 fi
5448
5449 if test -n "$ac_config_links"; then
5450   echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS
5451 fi
5452
5453 if test -n "$ac_config_commands"; then
5454   echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS
5455 fi
5456
5457 cat >>$CONFIG_STATUS <<\_ACEOF
5458
5459 ac_cs_usage="\
5460 \`$as_me' instantiates files from templates according to the
5461 current configuration.
5462
5463 Usage: $0 [OPTIONS] [FILE]...
5464
5465   -h, --help       print this help, then exit
5466   -V, --version    print version number, then exit
5467   -q, --quiet      do not print progress messages
5468   -d, --debug      don't remove temporary files
5469       --recheck    update $as_me by reconfiguring in the same conditions
5470   --file=FILE[:TEMPLATE]
5471                    instantiate the configuration file FILE
5472
5473 Configuration files:
5474 $config_files
5475
5476 Report bugs to <bug-autoconf@gnu.org>."
5477 _ACEOF
5478
5479 cat >>$CONFIG_STATUS <<_ACEOF
5480 ac_cs_version="\\
5481 config.status
5482 configured by $0, generated by GNU Autoconf 2.59,
5483   with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\"
5484
5485 Copyright (C) 2003 Free Software Foundation, Inc.
5486 This config.status script is free software; the Free Software Foundation
5487 gives unlimited permission to copy, distribute and modify it."
5488 srcdir=$srcdir
5489 INSTALL="$INSTALL"
5490 _ACEOF
5491
5492 cat >>$CONFIG_STATUS <<\_ACEOF
5493 # If no file are specified by the user, then we need to provide default
5494 # value.  By we need to know if files were specified by the user.
5495 ac_need_defaults=:
5496 while test $# != 0
5497 do
5498   case $1 in
5499   --*=*)
5500     ac_option=`expr "x$1" : 'x\([^=]*\)='`
5501     ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'`
5502     ac_shift=:
5503     ;;
5504   -*)
5505     ac_option=$1
5506     ac_optarg=$2
5507     ac_shift=shift
5508     ;;
5509   *) # This is not an option, so the user has probably given explicit
5510      # arguments.
5511      ac_option=$1
5512      ac_need_defaults=false;;
5513   esac
5514
5515   case $ac_option in
5516   # Handling of the options.
5517 _ACEOF
5518 cat >>$CONFIG_STATUS <<\_ACEOF
5519   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5520     ac_cs_recheck=: ;;
5521   --version | --vers* | -V )
5522     echo "$ac_cs_version"; exit 0 ;;
5523   --he | --h)
5524     # Conflict between --help and --header
5525     { { echo "$as_me:$LINENO: error: ambiguous option: $1
5526 Try \`$0 --help' for more information." >&5
5527 echo "$as_me: error: ambiguous option: $1
5528 Try \`$0 --help' for more information." >&2;}
5529    { (exit 1); exit 1; }; };;
5530   --help | --hel | -h )
5531     echo "$ac_cs_usage"; exit 0 ;;
5532   --debug | --d* | -d )
5533     debug=: ;;
5534   --file | --fil | --fi | --f )
5535     $ac_shift
5536     CONFIG_FILES="$CONFIG_FILES $ac_optarg"
5537     ac_need_defaults=false;;
5538   --header | --heade | --head | --hea )
5539     $ac_shift
5540     CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
5541     ac_need_defaults=false;;
5542   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5543   | -silent | --silent | --silen | --sile | --sil | --si | --s)
5544     ac_cs_silent=: ;;
5545
5546   # This is an error.
5547   -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1
5548 Try \`$0 --help' for more information." >&5
5549 echo "$as_me: error: unrecognized option: $1
5550 Try \`$0 --help' for more information." >&2;}
5551    { (exit 1); exit 1; }; } ;;
5552
5553   *) ac_config_targets="$ac_config_targets $1" ;;
5554
5555   esac
5556   shift
5557 done
5558
5559 ac_configure_extra_args=
5560
5561 if $ac_cs_silent; then
5562   exec 6>/dev/null
5563   ac_configure_extra_args="$ac_configure_extra_args --silent"
5564 fi
5565
5566 _ACEOF
5567 cat >>$CONFIG_STATUS <<_ACEOF
5568 if \$ac_cs_recheck; then
5569   echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
5570   exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5571 fi
5572
5573 _ACEOF
5574
5575
5576
5577
5578
5579 cat >>$CONFIG_STATUS <<\_ACEOF
5580 for ac_config_target in $ac_config_targets
5581 do
5582   case "$ac_config_target" in
5583   # Handling of arguments.
5584   "extensions/Makefile" ) CONFIG_FILES="$CONFIG_FILES extensions/Makefile" ;;
5585   "doc/Makefile" ) CONFIG_FILES="$CONFIG_FILES doc/Makefile" ;;
5586   "conffile/Makefile" ) CONFIG_FILES="$CONFIG_FILES conffile/Makefile" ;;
5587   "libipulog/Makefile" ) CONFIG_FILES="$CONFIG_FILES libipulog/Makefile" ;;
5588   "mysql/Makefile" ) CONFIG_FILES="$CONFIG_FILES mysql/Makefile" ;;
5589   "pgsql/Makefile" ) CONFIG_FILES="$CONFIG_FILES pgsql/Makefile" ;;
5590   "pcap/Makefile" ) CONFIG_FILES="$CONFIG_FILES pcap/Makefile" ;;
5591   "netflow/Makefile" ) CONFIG_FILES="$CONFIG_FILES netflow/Makefile" ;;
5592   "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;;
5593   "Rules.make" ) CONFIG_FILES="$CONFIG_FILES Rules.make" ;;
5594   *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
5595 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
5596    { (exit 1); exit 1; }; };;
5597   esac
5598 done
5599
5600 # If the user did not use the arguments to specify the items to instantiate,
5601 # then the envvar interface is used.  Set only those that are not.
5602 # We use the long form for the default assignment because of an extremely
5603 # bizarre bug on SunOS 4.1.3.
5604 if $ac_need_defaults; then
5605   test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
5606 fi
5607
5608 # Have a temporary directory for convenience.  Make it in the build tree
5609 # simply because there is no reason to put it here, and in addition,
5610 # creating and moving files from /tmp can sometimes cause problems.
5611 # Create a temporary directory, and hook for its removal unless debugging.
5612 $debug ||
5613 {
5614   trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0
5615   trap '{ (exit 1); exit 1; }' 1 2 13 15
5616 }
5617
5618 # Create a (secure) tmp directory for tmp files.
5619
5620 {
5621   tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` &&
5622   test -n "$tmp" && test -d "$tmp"
5623 }  ||
5624 {
5625   tmp=./confstat$$-$RANDOM
5626   (umask 077 && mkdir $tmp)
5627 } ||
5628 {
5629    echo "$me: cannot create a temporary directory in ." >&2
5630    { (exit 1); exit 1; }
5631 }
5632
5633 _ACEOF
5634
5635 cat >>$CONFIG_STATUS <<_ACEOF
5636
5637 #
5638 # CONFIG_FILES section.
5639 #
5640
5641 # No need to generate the scripts if there are no CONFIG_FILES.
5642 # This happens for instance when ./config.status config.h
5643 if test -n "\$CONFIG_FILES"; then
5644   # Protect against being on the right side of a sed subst in config.status.
5645   sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g;
5646    s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF
5647 s,@SHELL@,$SHELL,;t t
5648 s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t
5649 s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t
5650 s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t
5651 s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t
5652 s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t
5653 s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t
5654 s,@exec_prefix@,$exec_prefix,;t t
5655 s,@prefix@,$prefix,;t t
5656 s,@program_transform_name@,$program_transform_name,;t t
5657 s,@bindir@,$bindir,;t t
5658 s,@sbindir@,$sbindir,;t t
5659 s,@libexecdir@,$libexecdir,;t t
5660 s,@datadir@,$datadir,;t t
5661 s,@sysconfdir@,$sysconfdir,;t t
5662 s,@sharedstatedir@,$sharedstatedir,;t t
5663 s,@localstatedir@,$localstatedir,;t t
5664 s,@libdir@,$libdir,;t t
5665 s,@includedir@,$includedir,;t t
5666 s,@oldincludedir@,$oldincludedir,;t t
5667 s,@infodir@,$infodir,;t t
5668 s,@mandir@,$mandir,;t t
5669 s,@build_alias@,$build_alias,;t t
5670 s,@host_alias@,$host_alias,;t t
5671 s,@target_alias@,$target_alias,;t t
5672 s,@DEFS@,$DEFS,;t t
5673 s,@ECHO_C@,$ECHO_C,;t t
5674 s,@ECHO_N@,$ECHO_N,;t t
5675 s,@ECHO_T@,$ECHO_T,;t t
5676 s,@LIBS@,$LIBS,;t t
5677 s,@SET_MAKE@,$SET_MAKE,;t t
5678 s,@CC@,$CC,;t t
5679 s,@CFLAGS@,$CFLAGS,;t t
5680 s,@LDFLAGS@,$LDFLAGS,;t t
5681 s,@CPPFLAGS@,$CPPFLAGS,;t t
5682 s,@ac_ct_CC@,$ac_ct_CC,;t t
5683 s,@EXEEXT@,$EXEEXT,;t t
5684 s,@OBJEXT@,$OBJEXT,;t t
5685 s,@LD@,$LD,;t t
5686 s,@ac_ct_LD@,$ac_ct_LD,;t t
5687 s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t
5688 s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t
5689 s,@INSTALL_DATA@,$INSTALL_DATA,;t t
5690 s,@CPP@,$CPP,;t t
5691 s,@EGREP@,$EGREP,;t t
5692 s,@KSRC@,$KSRC,;t t
5693 s,@KVER@,$KVER,;t t
5694 s,@MYSQLINCLUDES@,$MYSQLINCLUDES,;t t
5695 s,@MYSQL_LIB@,$MYSQL_LIB,;t t
5696 s,@PGSQLINCLUDES@,$PGSQLINCLUDES,;t t
5697 s,@PGSQL_LIB@,$PGSQL_LIB,;t t
5698 s,@DATABASE_DIR@,$DATABASE_DIR,;t t
5699 s,@DATABASE_LIB@,$DATABASE_LIB,;t t
5700 s,@DATABASE_LIB_DIR@,$DATABASE_LIB_DIR,;t t
5701 s,@DB_DEF@,$DB_DEF,;t t
5702 s,@EXTRA_MYSQL_DEF@,$EXTRA_MYSQL_DEF,;t t
5703 s,@EXTRA_PGSQL_DEF@,$EXTRA_PGSQL_DEF,;t t
5704 s,@DATABASE_DRIVERS@,$DATABASE_DRIVERS,;t t
5705 s,@HAVE_PCAP_H@,$HAVE_PCAP_H,;t t
5706 s,@HAVE_MYSQL_TRUE@,$HAVE_MYSQL_TRUE,;t t
5707 s,@HAVE_MYSQL_FALSE@,$HAVE_MYSQL_FALSE,;t t
5708 s,@HAVE_PGSQL_TRUE@,$HAVE_PGSQL_TRUE,;t t
5709 s,@HAVE_PGSQL_FALSE@,$HAVE_PGSQL_FALSE,;t t
5710 s,@LIBOBJS@,$LIBOBJS,;t t
5711 s,@LTLIBOBJS@,$LTLIBOBJS,;t t
5712 CEOF
5713
5714 _ACEOF
5715
5716   cat >>$CONFIG_STATUS <<\_ACEOF
5717   # Split the substitutions into bite-sized pieces for seds with
5718   # small command number limits, like on Digital OSF/1 and HP-UX.
5719   ac_max_sed_lines=48
5720   ac_sed_frag=1 # Number of current file.
5721   ac_beg=1 # First line for current file.
5722   ac_end=$ac_max_sed_lines # Line after last line for current file.
5723   ac_more_lines=:
5724   ac_sed_cmds=
5725   while $ac_more_lines; do
5726     if test $ac_beg -gt 1; then
5727       sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5728     else
5729       sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag
5730     fi
5731     if test ! -s $tmp/subs.frag; then
5732       ac_more_lines=false
5733     else
5734       # The purpose of the label and of the branching condition is to
5735       # speed up the sed processing (if there are no `@' at all, there
5736       # is no need to browse any of the substitutions).
5737       # These are the two extra sed commands mentioned above.
5738       (echo ':t
5739   /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed
5740       if test -z "$ac_sed_cmds"; then
5741         ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed"
5742       else
5743         ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed"
5744       fi
5745       ac_sed_frag=`expr $ac_sed_frag + 1`
5746       ac_beg=$ac_end
5747       ac_end=`expr $ac_end + $ac_max_sed_lines`
5748     fi
5749   done
5750   if test -z "$ac_sed_cmds"; then
5751     ac_sed_cmds=cat
5752   fi
5753 fi # test -n "$CONFIG_FILES"
5754
5755 _ACEOF
5756 cat >>$CONFIG_STATUS <<\_ACEOF
5757 for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue
5758   # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in".
5759   case $ac_file in
5760   - | *:- | *:-:* ) # input from stdin
5761         cat >$tmp/stdin
5762         ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5763         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5764   *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'`
5765         ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;;
5766   * )   ac_file_in=$ac_file.in ;;
5767   esac
5768
5769   # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories.
5770   ac_dir=`(dirname "$ac_file") 2>/dev/null ||
5771 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5772          X"$ac_file" : 'X\(//\)[^/]' \| \
5773          X"$ac_file" : 'X\(//\)$' \| \
5774          X"$ac_file" : 'X\(/\)' \| \
5775          .     : '\(.\)' 2>/dev/null ||
5776 echo X"$ac_file" |
5777     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5778           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5779           /^X\(\/\/\)$/{ s//\1/; q; }
5780           /^X\(\/\).*/{ s//\1/; q; }
5781           s/.*/./; q'`
5782   { if $as_mkdir_p; then
5783     mkdir -p "$ac_dir"
5784   else
5785     as_dir="$ac_dir"
5786     as_dirs=
5787     while test ! -d "$as_dir"; do
5788       as_dirs="$as_dir $as_dirs"
5789       as_dir=`(dirname "$as_dir") 2>/dev/null ||
5790 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5791          X"$as_dir" : 'X\(//\)[^/]' \| \
5792          X"$as_dir" : 'X\(//\)$' \| \
5793          X"$as_dir" : 'X\(/\)' \| \
5794          .     : '\(.\)' 2>/dev/null ||
5795 echo X"$as_dir" |
5796     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; }
5797           /^X\(\/\/\)[^/].*/{ s//\1/; q; }
5798           /^X\(\/\/\)$/{ s//\1/; q; }
5799           /^X\(\/\).*/{ s//\1/; q; }
5800           s/.*/./; q'`
5801     done
5802     test ! -n "$as_dirs" || mkdir $as_dirs
5803   fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5
5804 echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;}
5805    { (exit 1); exit 1; }; }; }
5806
5807   ac_builddir=.
5808
5809 if test "$ac_dir" != .; then
5810   ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
5811   # A "../" for each directory in $ac_dir_suffix.
5812   ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'`
5813 else
5814   ac_dir_suffix= ac_top_builddir=
5815 fi
5816
5817 case $srcdir in
5818   .)  # No --srcdir option.  We are building in place.
5819     ac_srcdir=.
5820     if test -z "$ac_top_builddir"; then
5821        ac_top_srcdir=.
5822     else
5823        ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'`
5824     fi ;;
5825   [\\/]* | ?:[\\/]* )  # Absolute path.
5826     ac_srcdir=$srcdir$ac_dir_suffix;
5827     ac_top_srcdir=$srcdir ;;
5828   *) # Relative path.
5829     ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix
5830     ac_top_srcdir=$ac_top_builddir$srcdir ;;
5831 esac
5832
5833 # Do not use `cd foo && pwd` to compute absolute paths, because
5834 # the directories may not exist.
5835 case `pwd` in
5836 .) ac_abs_builddir="$ac_dir";;
5837 *)
5838   case "$ac_dir" in
5839   .) ac_abs_builddir=`pwd`;;
5840   [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";;
5841   *) ac_abs_builddir=`pwd`/"$ac_dir";;
5842   esac;;
5843 esac
5844 case $ac_abs_builddir in
5845 .) ac_abs_top_builddir=${ac_top_builddir}.;;
5846 *)
5847   case ${ac_top_builddir}. in
5848   .) ac_abs_top_builddir=$ac_abs_builddir;;
5849   [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;;
5850   *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;;
5851   esac;;
5852 esac
5853 case $ac_abs_builddir in
5854 .) ac_abs_srcdir=$ac_srcdir;;
5855 *)
5856   case $ac_srcdir in
5857   .) ac_abs_srcdir=$ac_abs_builddir;;
5858   [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;;
5859   *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;;
5860   esac;;
5861 esac
5862 case $ac_abs_builddir in
5863 .) ac_abs_top_srcdir=$ac_top_srcdir;;
5864 *)
5865   case $ac_top_srcdir in
5866   .) ac_abs_top_srcdir=$ac_abs_builddir;;
5867   [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;;
5868   *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;;
5869   esac;;
5870 esac
5871
5872
5873   case $INSTALL in
5874   [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
5875   *) ac_INSTALL=$ac_top_builddir$INSTALL ;;
5876   esac
5877
5878   if test x"$ac_file" != x-; then
5879     { echo "$as_me:$LINENO: creating $ac_file" >&5
5880 echo "$as_me: creating $ac_file" >&6;}
5881     rm -f "$ac_file"
5882   fi
5883   # Let's still pretend it is `configure' which instantiates (i.e., don't
5884   # use $as_me), people would be surprised to read:
5885   #    /* config.h.  Generated by config.status.  */
5886   if test x"$ac_file" = x-; then
5887     configure_input=
5888   else
5889     configure_input="$ac_file.  "
5890   fi
5891   configure_input=$configure_input"Generated from `echo $ac_file_in |
5892                                      sed 's,.*/,,'` by configure."
5893
5894   # First look for the input files in the build tree, otherwise in the
5895   # src tree.
5896   ac_file_inputs=`IFS=:
5897     for f in $ac_file_in; do
5898       case $f in
5899       -) echo $tmp/stdin ;;
5900       [\\/$]*)
5901          # Absolute (can't be DOS-style, as IFS=:)
5902          test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5903 echo "$as_me: error: cannot find input file: $f" >&2;}
5904    { (exit 1); exit 1; }; }
5905          echo "$f";;
5906       *) # Relative
5907          if test -f "$f"; then
5908            # Build tree
5909            echo "$f"
5910          elif test -f "$srcdir/$f"; then
5911            # Source tree
5912            echo "$srcdir/$f"
5913          else
5914            # /dev/null tree
5915            { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5
5916 echo "$as_me: error: cannot find input file: $f" >&2;}
5917    { (exit 1); exit 1; }; }
5918          fi;;
5919       esac
5920     done` || { (exit 1); exit 1; }
5921 _ACEOF
5922 cat >>$CONFIG_STATUS <<_ACEOF
5923   sed "$ac_vpsub
5924 $extrasub
5925 _ACEOF
5926 cat >>$CONFIG_STATUS <<\_ACEOF
5927 :t
5928 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
5929 s,@configure_input@,$configure_input,;t t
5930 s,@srcdir@,$ac_srcdir,;t t
5931 s,@abs_srcdir@,$ac_abs_srcdir,;t t
5932 s,@top_srcdir@,$ac_top_srcdir,;t t
5933 s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t
5934 s,@builddir@,$ac_builddir,;t t
5935 s,@abs_builddir@,$ac_abs_builddir,;t t
5936 s,@top_builddir@,$ac_top_builddir,;t t
5937 s,@abs_top_builddir@,$ac_abs_top_builddir,;t t
5938 s,@INSTALL@,$ac_INSTALL,;t t
5939 " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out
5940   rm -f $tmp/stdin
5941   if test x"$ac_file" != x-; then
5942     mv $tmp/out $ac_file
5943   else
5944     cat $tmp/out
5945     rm -f $tmp/out
5946   fi
5947
5948 done
5949 _ACEOF
5950
5951 cat >>$CONFIG_STATUS <<\_ACEOF
5952
5953 { (exit 0); exit 0; }
5954 _ACEOF
5955 chmod +x $CONFIG_STATUS
5956 ac_clean_files=$ac_clean_files_save
5957
5958
5959 # configure is writing to config.log, and then calls config.status.
5960 # config.status does its own redirection, appending to config.log.
5961 # Unfortunately, on DOS this fails, as config.log is still kept open
5962 # by configure, so config.status won't be able to write to it; its
5963 # output is simply discarded.  So we exec the FD to /dev/null,
5964 # effectively closing config.log, so it can be properly (re)opened and
5965 # appended to by config.status.  When coming back to configure, we
5966 # need to make the FD available again.
5967 if test "$no_create" != yes; then
5968   ac_cs_success=:
5969   ac_config_status_args=
5970   test "$silent" = yes &&
5971     ac_config_status_args="$ac_config_status_args --quiet"
5972   exec 5>/dev/null
5973   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
5974   exec 5>>config.log
5975   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
5976   # would make configure fail if this is the last instruction.
5977   $ac_cs_success || { (exit 1); exit 1; }
5978 fi
5979