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