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