2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for darkstat 3.0.718.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 as_echo_n='sh -c $as_echo_n_body as_echo'
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
147 *v*x* | *x*v* ) as_opts=-vx ;;
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 case \`(set -o) 2>/dev/null\` in #(
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213 test -z "$as_dir" && as_dir=.
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
238 if test "x$CONFIG_SHELL" != x; then :
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
248 *v*x* | *x*v* ) as_opts=-vx ;;
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
276 SHELL=${CONFIG_SHELL-/bin/sh}
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
287 # Portably unset VAR.
290 { eval $1=; unset $1;}
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
314 # Create "$as_dir" as a directory, including parents if necessary.
319 -*) as_dir=./$as_dir;;
321 test -d "$as_dir" || eval $as_mkdir_p || {
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
352 test -d "$as_dir" && break
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
398 as_val=`expr "$@" || test $? -eq 1`
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
410 as_status=$1; test $as_status -eq 0 && as_status=1
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
496 # Exit status is that of the last command.
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
518 mkdir conf$$.dir 2>/dev/null
520 if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
529 elif ln conf$$.file conf$$ 2>/dev/null; then
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
540 if mkdir -p . 2>/dev/null; then
541 as_mkdir_p='mkdir -p "$as_dir"'
543 test -d ./-p && rmdir ./-p
548 as_executable_p=as_fn_executable_p
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 test -n "$DJDIR" || exec 7<&0 </dev/null
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
568 ac_default_prefix=/usr/local
570 ac_config_libobj_dir=.
577 # Identity of this package.
578 PACKAGE_NAME='darkstat'
579 PACKAGE_TARNAME='darkstat'
580 PACKAGE_VERSION='3.0.718'
581 PACKAGE_STRING='darkstat 3.0.718'
583 PACKAGE_URL='http://unix4lyfe.org/darkstat/'
585 ac_unique_file="darkstat.c"
586 # Factoring default headers for most tests.
587 ac_includes_default="\
589 #ifdef HAVE_SYS_TYPES_H
590 # include <sys/types.h>
592 #ifdef HAVE_SYS_STAT_H
593 # include <sys/stat.h>
599 # ifdef HAVE_STDLIB_H
604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
609 #ifdef HAVE_STRINGS_H
610 # include <strings.h>
612 #ifdef HAVE_INTTYPES_H
613 # include <inttypes.h>
622 ac_subst_vars='LTLIBOBJS
665 program_transform_name
678 enable_option_checking
685 ac_precious_vars='build_alias
696 # Initialize some variables set by options.
698 ac_init_version=false
699 ac_unrecognized_opts=
701 # The variables have the same names as the options, with
702 # dashes changed to underlines.
710 program_transform_name=s,x,x,
718 # Installation directory options.
719 # These are left unexpanded so users can "make install exec_prefix=/foo"
720 # and all the variables that are supposed to be based on exec_prefix
721 # by default will actually change.
722 # Use braces instead of parens because sh, perl, etc. also accept them.
723 # (The list follows the same order as the GNU Coding Standards.)
724 bindir='${exec_prefix}/bin'
725 sbindir='${exec_prefix}/sbin'
726 libexecdir='${exec_prefix}/libexec'
727 datarootdir='${prefix}/share'
728 datadir='${datarootdir}'
729 sysconfdir='${prefix}/etc'
730 sharedstatedir='${prefix}/com'
731 localstatedir='${prefix}/var'
732 includedir='${prefix}/include'
733 oldincludedir='/usr/include'
734 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
735 infodir='${datarootdir}/info'
740 libdir='${exec_prefix}/lib'
741 localedir='${datarootdir}/locale'
742 mandir='${datarootdir}/man'
748 # If the previous option needs an argument, assign it.
749 if test -n "$ac_prev"; then
750 eval $ac_prev=\$ac_option
756 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
761 # Accept the important Cygnus configure options, so we can diagnose typos.
763 case $ac_dashdash$ac_option in
767 -bindir | --bindir | --bindi | --bind | --bin | --bi)
769 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
772 -build | --build | --buil | --bui | --bu)
773 ac_prev=build_alias ;;
774 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
775 build_alias=$ac_optarg ;;
777 -cache-file | --cache-file | --cache-fil | --cache-fi \
778 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
779 ac_prev=cache_file ;;
780 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
781 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
782 cache_file=$ac_optarg ;;
785 cache_file=config.cache ;;
787 -datadir | --datadir | --datadi | --datad)
789 -datadir=* | --datadir=* | --datadi=* | --datad=*)
790 datadir=$ac_optarg ;;
792 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
793 | --dataroo | --dataro | --datar)
794 ac_prev=datarootdir ;;
795 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
796 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
797 datarootdir=$ac_optarg ;;
799 -disable-* | --disable-*)
800 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
801 # Reject names that are not valid shell variable names.
802 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
803 as_fn_error $? "invalid feature name: $ac_useropt"
804 ac_useropt_orig=$ac_useropt
805 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
806 case $ac_user_opts in
810 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
811 ac_unrecognized_sep=', ';;
813 eval enable_$ac_useropt=no ;;
815 -docdir | --docdir | --docdi | --doc | --do)
817 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
820 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
822 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
825 -enable-* | --enable-*)
826 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
827 # Reject names that are not valid shell variable names.
828 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
829 as_fn_error $? "invalid feature name: $ac_useropt"
830 ac_useropt_orig=$ac_useropt
831 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
832 case $ac_user_opts in
836 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
837 ac_unrecognized_sep=', ';;
839 eval enable_$ac_useropt=\$ac_optarg ;;
841 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
842 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
843 | --exec | --exe | --ex)
844 ac_prev=exec_prefix ;;
845 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
846 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
847 | --exec=* | --exe=* | --ex=*)
848 exec_prefix=$ac_optarg ;;
850 -gas | --gas | --ga | --g)
851 # Obsolete; use --with-gas.
854 -help | --help | --hel | --he | -h)
856 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
857 ac_init_help=recursive ;;
858 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
859 ac_init_help=short ;;
861 -host | --host | --hos | --ho)
862 ac_prev=host_alias ;;
863 -host=* | --host=* | --hos=* | --ho=*)
864 host_alias=$ac_optarg ;;
866 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
868 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
870 htmldir=$ac_optarg ;;
872 -includedir | --includedir | --includedi | --included | --include \
873 | --includ | --inclu | --incl | --inc)
874 ac_prev=includedir ;;
875 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
876 | --includ=* | --inclu=* | --incl=* | --inc=*)
877 includedir=$ac_optarg ;;
879 -infodir | --infodir | --infodi | --infod | --info | --inf)
881 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
882 infodir=$ac_optarg ;;
884 -libdir | --libdir | --libdi | --libd)
886 -libdir=* | --libdir=* | --libdi=* | --libd=*)
889 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
890 | --libexe | --libex | --libe)
891 ac_prev=libexecdir ;;
892 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
893 | --libexe=* | --libex=* | --libe=*)
894 libexecdir=$ac_optarg ;;
896 -localedir | --localedir | --localedi | --localed | --locale)
898 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
899 localedir=$ac_optarg ;;
901 -localstatedir | --localstatedir | --localstatedi | --localstated \
902 | --localstate | --localstat | --localsta | --localst | --locals)
903 ac_prev=localstatedir ;;
904 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
905 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
906 localstatedir=$ac_optarg ;;
908 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
910 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
914 # Obsolete; use --without-fp.
917 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
918 | --no-cr | --no-c | -n)
921 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
922 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
925 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
926 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
927 | --oldin | --oldi | --old | --ol | --o)
928 ac_prev=oldincludedir ;;
929 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
930 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
931 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
932 oldincludedir=$ac_optarg ;;
934 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
936 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
939 -program-prefix | --program-prefix | --program-prefi | --program-pref \
940 | --program-pre | --program-pr | --program-p)
941 ac_prev=program_prefix ;;
942 -program-prefix=* | --program-prefix=* | --program-prefi=* \
943 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
944 program_prefix=$ac_optarg ;;
946 -program-suffix | --program-suffix | --program-suffi | --program-suff \
947 | --program-suf | --program-su | --program-s)
948 ac_prev=program_suffix ;;
949 -program-suffix=* | --program-suffix=* | --program-suffi=* \
950 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
951 program_suffix=$ac_optarg ;;
953 -program-transform-name | --program-transform-name \
954 | --program-transform-nam | --program-transform-na \
955 | --program-transform-n | --program-transform- \
956 | --program-transform | --program-transfor \
957 | --program-transfo | --program-transf \
958 | --program-trans | --program-tran \
959 | --progr-tra | --program-tr | --program-t)
960 ac_prev=program_transform_name ;;
961 -program-transform-name=* | --program-transform-name=* \
962 | --program-transform-nam=* | --program-transform-na=* \
963 | --program-transform-n=* | --program-transform-=* \
964 | --program-transform=* | --program-transfor=* \
965 | --program-transfo=* | --program-transf=* \
966 | --program-trans=* | --program-tran=* \
967 | --progr-tra=* | --program-tr=* | --program-t=*)
968 program_transform_name=$ac_optarg ;;
970 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
972 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
975 -psdir | --psdir | --psdi | --psd | --ps)
977 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
980 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
981 | -silent | --silent | --silen | --sile | --sil)
984 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
986 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
988 sbindir=$ac_optarg ;;
990 -sharedstatedir | --sharedstatedir | --sharedstatedi \
991 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
992 | --sharedst | --shareds | --shared | --share | --shar \
994 ac_prev=sharedstatedir ;;
995 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
996 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
997 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
999 sharedstatedir=$ac_optarg ;;
1001 -site | --site | --sit)
1003 -site=* | --site=* | --sit=*)
1006 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1008 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1009 srcdir=$ac_optarg ;;
1011 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1012 | --syscon | --sysco | --sysc | --sys | --sy)
1013 ac_prev=sysconfdir ;;
1014 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1015 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1016 sysconfdir=$ac_optarg ;;
1018 -target | --target | --targe | --targ | --tar | --ta | --t)
1019 ac_prev=target_alias ;;
1020 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1021 target_alias=$ac_optarg ;;
1023 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1026 -version | --version | --versio | --versi | --vers | -V)
1027 ac_init_version=: ;;
1030 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1031 # Reject names that are not valid shell variable names.
1032 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1033 as_fn_error $? "invalid package name: $ac_useropt"
1034 ac_useropt_orig=$ac_useropt
1035 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1036 case $ac_user_opts in
1040 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1041 ac_unrecognized_sep=', ';;
1043 eval with_$ac_useropt=\$ac_optarg ;;
1045 -without-* | --without-*)
1046 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1047 # Reject names that are not valid shell variable names.
1048 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1049 as_fn_error $? "invalid package name: $ac_useropt"
1050 ac_useropt_orig=$ac_useropt
1051 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1052 case $ac_user_opts in
1056 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1057 ac_unrecognized_sep=', ';;
1059 eval with_$ac_useropt=no ;;
1062 # Obsolete; use --with-x.
1065 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1066 | --x-incl | --x-inc | --x-in | --x-i)
1067 ac_prev=x_includes ;;
1068 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1069 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1070 x_includes=$ac_optarg ;;
1072 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1073 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1074 ac_prev=x_libraries ;;
1075 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1076 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1077 x_libraries=$ac_optarg ;;
1079 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1080 Try \`$0 --help' for more information"
1084 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1085 # Reject names that are not valid shell variable names.
1086 case $ac_envvar in #(
1087 '' | [0-9]* | *[!_$as_cr_alnum]* )
1088 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1090 eval $ac_envvar=\$ac_optarg
1091 export $ac_envvar ;;
1094 # FIXME: should be removed in autoconf 3.0.
1095 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1096 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1097 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1098 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1104 if test -n "$ac_prev"; then
1105 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1106 as_fn_error $? "missing argument to $ac_option"
1109 if test -n "$ac_unrecognized_opts"; then
1110 case $enable_option_checking in
1112 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1113 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1117 # Check all directory arguments for consistency.
1118 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1119 datadir sysconfdir sharedstatedir localstatedir includedir \
1120 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1121 libdir localedir mandir
1123 eval ac_val=\$$ac_var
1124 # Remove trailing slashes.
1127 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1128 eval $ac_var=\$ac_val;;
1130 # Be sure to have absolute directory names.
1132 [\\/$]* | ?:[\\/]* ) continue;;
1133 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1135 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1138 # There might be people who depend on the old broken behavior: `$host'
1139 # used to hold the argument of --host etc.
1140 # FIXME: To remove some day.
1143 target=$target_alias
1145 # FIXME: To remove some day.
1146 if test "x$host_alias" != x; then
1147 if test "x$build_alias" = x; then
1148 cross_compiling=maybe
1149 elif test "x$build_alias" != "x$host_alias"; then
1155 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1157 test "$silent" = yes && exec 6>/dev/null
1160 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1161 ac_ls_di=`ls -di .` &&
1162 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1163 as_fn_error $? "working directory cannot be determined"
1164 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1165 as_fn_error $? "pwd does not report name of working directory"
1168 # Find the source files, if location was not specified.
1169 if test -z "$srcdir"; then
1170 ac_srcdir_defaulted=yes
1171 # Try the directory containing this script, then the parent directory.
1172 ac_confdir=`$as_dirname -- "$as_myself" ||
1173 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1174 X"$as_myself" : 'X\(//\)[^/]' \| \
1175 X"$as_myself" : 'X\(//\)$' \| \
1176 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1177 $as_echo X"$as_myself" |
1178 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1196 if test ! -r "$srcdir/$ac_unique_file"; then
1200 ac_srcdir_defaulted=no
1202 if test ! -r "$srcdir/$ac_unique_file"; then
1203 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1204 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1206 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1208 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1210 # When building in place, set srcdir=.
1211 if test "$ac_abs_confdir" = "$ac_pwd"; then
1214 # Remove unnecessary trailing slashes from srcdir.
1215 # Double slashes in file names in object file debugging info
1216 # mess up M-x gdb in Emacs.
1218 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1220 for ac_var in $ac_precious_vars; do
1221 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1222 eval ac_env_${ac_var}_value=\$${ac_var}
1223 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1224 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1228 # Report the --help message.
1230 if test "$ac_init_help" = "long"; then
1231 # Omit some internal or obsolete options to make the list less imposing.
1232 # This message is too long to be a string in the A/UX 3.1 sh.
1234 \`configure' configures darkstat 3.0.718 to adapt to many kinds of systems.
1236 Usage: $0 [OPTION]... [VAR=VALUE]...
1238 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1239 VAR=VALUE. See below for descriptions of some of the useful variables.
1241 Defaults for the options are specified in brackets.
1244 -h, --help display this help and exit
1245 --help=short display options specific to this package
1246 --help=recursive display the short help of all the included packages
1247 -V, --version display version information and exit
1248 -q, --quiet, --silent do not print \`checking ...' messages
1249 --cache-file=FILE cache test results in FILE [disabled]
1250 -C, --config-cache alias for \`--cache-file=config.cache'
1251 -n, --no-create do not create output files
1252 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1254 Installation directories:
1255 --prefix=PREFIX install architecture-independent files in PREFIX
1256 [$ac_default_prefix]
1257 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1260 By default, \`make install' will install all the files in
1261 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1262 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1263 for instance \`--prefix=\$HOME'.
1265 For better control, use the options below.
1267 Fine tuning of the installation directories:
1268 --bindir=DIR user executables [EPREFIX/bin]
1269 --sbindir=DIR system admin executables [EPREFIX/sbin]
1270 --libexecdir=DIR program executables [EPREFIX/libexec]
1271 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1272 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1273 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1274 --libdir=DIR object code libraries [EPREFIX/lib]
1275 --includedir=DIR C header files [PREFIX/include]
1276 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1277 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1278 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1279 --infodir=DIR info documentation [DATAROOTDIR/info]
1280 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1281 --mandir=DIR man documentation [DATAROOTDIR/man]
1282 --docdir=DIR documentation root [DATAROOTDIR/doc/darkstat]
1283 --htmldir=DIR html documentation [DOCDIR]
1284 --dvidir=DIR dvi documentation [DOCDIR]
1285 --pdfdir=DIR pdf documentation [DOCDIR]
1286 --psdir=DIR ps documentation [DOCDIR]
1293 if test -n "$ac_init_help"; then
1294 case $ac_init_help in
1295 short | recursive ) echo "Configuration of darkstat 3.0.718:";;
1300 --disable-option-checking ignore unrecognized --enable/--with options
1301 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1302 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1303 --enable-silent-rules less verbose build output (undo: 'make V=1')
1304 --disable-silent-rules verbose build output (undo: 'make V=0')
1305 --disable-debug turn off debugging code and asserts
1306 --enable-warnings turn on lots of compile-time warnings, these are
1307 only useful for development
1310 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1311 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1312 --with-privdrop-user specify which user to drop privileges to (default:
1314 --with-pcap=DIR prefix to libpcap installation
1316 Some influential environment variables:
1317 CC C compiler command
1318 CFLAGS C compiler flags
1319 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1320 nonstandard directory <lib dir>
1321 LIBS libraries to pass to the linker, e.g. -l<library>
1322 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1323 you have headers in a nonstandard directory <include dir>
1326 Use these variables to override the choices made by `configure' or to help
1327 it to find libraries and programs with nonstandard names/locations.
1329 Report bugs to the package provider.
1330 darkstat home page: <http://unix4lyfe.org/darkstat/>.
1335 if test "$ac_init_help" = "recursive"; then
1336 # If there are subdirs, report their specific --help.
1337 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1338 test -d "$ac_dir" ||
1339 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1344 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1346 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1347 # A ".." for each directory in $ac_dir_suffix.
1348 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1349 case $ac_top_builddir_sub in
1350 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1351 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1354 ac_abs_top_builddir=$ac_pwd
1355 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1356 # for backward compatibility:
1357 ac_top_builddir=$ac_top_build_prefix
1360 .) # We are building in place.
1362 ac_top_srcdir=$ac_top_builddir_sub
1363 ac_abs_top_srcdir=$ac_pwd ;;
1364 [\\/]* | ?:[\\/]* ) # Absolute name.
1365 ac_srcdir=$srcdir$ac_dir_suffix;
1366 ac_top_srcdir=$srcdir
1367 ac_abs_top_srcdir=$srcdir ;;
1369 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1370 ac_top_srcdir=$ac_top_build_prefix$srcdir
1371 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1373 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1375 cd "$ac_dir" || { ac_status=$?; continue; }
1376 # Check for guested configure.
1377 if test -f "$ac_srcdir/configure.gnu"; then
1379 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1380 elif test -f "$ac_srcdir/configure"; then
1382 $SHELL "$ac_srcdir/configure" --help=recursive
1384 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1386 cd "$ac_pwd" || { ac_status=$?; break; }
1390 test -n "$ac_init_help" && exit $ac_status
1391 if $ac_init_version; then
1393 darkstat configure 3.0.718
1394 generated by GNU Autoconf 2.69
1396 Copyright (C) 2012 Free Software Foundation, Inc.
1397 This configure script is free software; the Free Software Foundation
1398 gives unlimited permission to copy, distribute and modify it.
1403 ## ------------------------ ##
1404 ## Autoconf initialization. ##
1405 ## ------------------------ ##
1407 # ac_fn_c_try_compile LINENO
1408 # --------------------------
1409 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1410 ac_fn_c_try_compile ()
1412 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1413 rm -f conftest.$ac_objext
1414 if { { ac_try="$ac_compile"
1416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1417 *) ac_try_echo=$ac_try;;
1419 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1420 $as_echo "$ac_try_echo"; } >&5
1421 (eval "$ac_compile") 2>conftest.err
1423 if test -s conftest.err; then
1424 grep -v '^ *+' conftest.err >conftest.er1
1425 cat conftest.er1 >&5
1426 mv -f conftest.er1 conftest.err
1428 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1429 test $ac_status = 0; } && {
1430 test -z "$ac_c_werror_flag" ||
1431 test ! -s conftest.err
1432 } && test -s conftest.$ac_objext; then :
1435 $as_echo "$as_me: failed program was:" >&5
1436 sed 's/^/| /' conftest.$ac_ext >&5
1440 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1441 as_fn_set_status $ac_retval
1443 } # ac_fn_c_try_compile
1445 # ac_fn_c_try_link LINENO
1446 # -----------------------
1447 # Try to link conftest.$ac_ext, and return whether this succeeded.
1450 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1451 rm -f conftest.$ac_objext conftest$ac_exeext
1452 if { { ac_try="$ac_link"
1454 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1455 *) ac_try_echo=$ac_try;;
1457 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1458 $as_echo "$ac_try_echo"; } >&5
1459 (eval "$ac_link") 2>conftest.err
1461 if test -s conftest.err; then
1462 grep -v '^ *+' conftest.err >conftest.er1
1463 cat conftest.er1 >&5
1464 mv -f conftest.er1 conftest.err
1466 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1467 test $ac_status = 0; } && {
1468 test -z "$ac_c_werror_flag" ||
1469 test ! -s conftest.err
1470 } && test -s conftest$ac_exeext && {
1471 test "$cross_compiling" = yes ||
1472 test -x conftest$ac_exeext
1476 $as_echo "$as_me: failed program was:" >&5
1477 sed 's/^/| /' conftest.$ac_ext >&5
1481 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1482 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1483 # interfere with the next link command; also delete a directory that is
1484 # left behind by Apple's compiler. We do this before executing the actions.
1485 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1486 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1487 as_fn_set_status $ac_retval
1489 } # ac_fn_c_try_link
1491 # ac_fn_c_try_cpp LINENO
1492 # ----------------------
1493 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1496 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1497 if { { ac_try="$ac_cpp conftest.$ac_ext"
1499 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1500 *) ac_try_echo=$ac_try;;
1502 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1503 $as_echo "$ac_try_echo"; } >&5
1504 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1506 if test -s conftest.err; then
1507 grep -v '^ *+' conftest.err >conftest.er1
1508 cat conftest.er1 >&5
1509 mv -f conftest.er1 conftest.err
1511 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1512 test $ac_status = 0; } > conftest.i && {
1513 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1514 test ! -s conftest.err
1518 $as_echo "$as_me: failed program was:" >&5
1519 sed 's/^/| /' conftest.$ac_ext >&5
1523 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1524 as_fn_set_status $ac_retval
1528 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1529 # -------------------------------------------------------
1530 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1531 # the include files in INCLUDES and setting the cache variable VAR
1533 ac_fn_c_check_header_mongrel ()
1535 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1536 if eval \${$3+:} false; then :
1537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1538 $as_echo_n "checking for $2... " >&6; }
1539 if eval \${$3+:} false; then :
1540 $as_echo_n "(cached) " >&6
1543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1544 $as_echo "$ac_res" >&6; }
1546 # Is the header compilable?
1547 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1548 $as_echo_n "checking $2 usability... " >&6; }
1549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1550 /* end confdefs.h. */
1554 if ac_fn_c_try_compile "$LINENO"; then :
1555 ac_header_compiler=yes
1557 ac_header_compiler=no
1559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1561 $as_echo "$ac_header_compiler" >&6; }
1563 # Is the header present?
1564 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1565 $as_echo_n "checking $2 presence... " >&6; }
1566 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1567 /* end confdefs.h. */
1570 if ac_fn_c_try_cpp "$LINENO"; then :
1571 ac_header_preproc=yes
1573 ac_header_preproc=no
1575 rm -f conftest.err conftest.i conftest.$ac_ext
1576 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1577 $as_echo "$ac_header_preproc" >&6; }
1579 # So? What about this header?
1580 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1582 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1583 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1584 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1585 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1588 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1589 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1590 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1591 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1592 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1593 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1594 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1595 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1596 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1597 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1601 $as_echo_n "checking for $2... " >&6; }
1602 if eval \${$3+:} false; then :
1603 $as_echo_n "(cached) " >&6
1605 eval "$3=\$ac_header_compiler"
1608 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1609 $as_echo "$ac_res" >&6; }
1611 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1613 } # ac_fn_c_check_header_mongrel
1615 # ac_fn_c_try_run LINENO
1616 # ----------------------
1617 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1618 # that executables *can* be run.
1621 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1622 if { { ac_try="$ac_link"
1624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1625 *) ac_try_echo=$ac_try;;
1627 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1628 $as_echo "$ac_try_echo"; } >&5
1629 (eval "$ac_link") 2>&5
1631 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1632 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1633 { { case "(($ac_try" in
1634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1635 *) ac_try_echo=$ac_try;;
1637 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1638 $as_echo "$ac_try_echo"; } >&5
1639 (eval "$ac_try") 2>&5
1641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1642 test $ac_status = 0; }; }; then :
1645 $as_echo "$as_me: program exited with status $ac_status" >&5
1646 $as_echo "$as_me: failed program was:" >&5
1647 sed 's/^/| /' conftest.$ac_ext >&5
1649 ac_retval=$ac_status
1651 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1652 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1653 as_fn_set_status $ac_retval
1657 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1658 # -------------------------------------------------------
1659 # Tests whether HEADER exists and can be compiled using the include files in
1660 # INCLUDES, setting the cache variable VAR accordingly.
1661 ac_fn_c_check_header_compile ()
1663 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1665 $as_echo_n "checking for $2... " >&6; }
1666 if eval \${$3+:} false; then :
1667 $as_echo_n "(cached) " >&6
1669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1670 /* end confdefs.h. */
1674 if ac_fn_c_try_compile "$LINENO"; then :
1679 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1683 $as_echo "$ac_res" >&6; }
1684 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1686 } # ac_fn_c_check_header_compile
1687 cat >config.log <<_ACEOF
1688 This file contains any messages produced by compilers while
1689 running configure, to aid debugging if configure makes a mistake.
1691 It was created by darkstat $as_me 3.0.718, which was
1692 generated by GNU Autoconf 2.69. Invocation command line was
1704 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1705 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1706 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1707 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1708 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1710 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1711 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1713 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1714 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1715 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1716 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1717 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1718 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1719 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1727 test -z "$as_dir" && as_dir=.
1728 $as_echo "PATH: $as_dir"
1744 # Keep a trace of the command line.
1745 # Strip out --no-create and --no-recursion so they do not pile up.
1746 # Strip out --silent because we don't want to record it for future runs.
1747 # Also quote any args containing shell meta-characters.
1748 # Make two passes to allow for proper duplicate-argument suppression.
1752 ac_must_keep_next=false
1758 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1759 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1760 | -silent | --silent | --silen | --sile | --sil)
1763 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1766 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1768 as_fn_append ac_configure_args1 " '$ac_arg'"
1769 if test $ac_must_keep_next = true; then
1770 ac_must_keep_next=false # Got value, back to normal.
1773 *=* | --config-cache | -C | -disable-* | --disable-* \
1774 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1775 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1776 | -with-* | --with-* | -without-* | --without-* | --x)
1777 case "$ac_configure_args0 " in
1778 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1781 -* ) ac_must_keep_next=true ;;
1784 as_fn_append ac_configure_args " '$ac_arg'"
1789 { ac_configure_args0=; unset ac_configure_args0;}
1790 { ac_configure_args1=; unset ac_configure_args1;}
1792 # When interrupted or exit'd, cleanup temporary files, and complete
1793 # config.log. We remove comments because anyway the quotes in there
1794 # would cause problems or look ugly.
1795 # WARNING: Use '\'' to represent an apostrophe within the trap.
1796 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1797 trap 'exit_status=$?
1798 # Save into config.log some information that might help in debugging.
1802 $as_echo "## ---------------- ##
1803 ## Cache variables. ##
1804 ## ---------------- ##"
1806 # The following way of writing the cache mishandles newlines in values,
1808 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1809 eval ac_val=\$$ac_var
1813 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1814 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1817 _ | IFS | as_nl) ;; #(
1818 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1819 *) { eval $ac_var=; unset $ac_var;} ;;
1824 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1825 *${as_nl}ac_space=\ *)
1827 "s/'\''/'\''\\\\'\'''\''/g;
1828 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1831 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1838 $as_echo "## ----------------- ##
1839 ## Output variables. ##
1840 ## ----------------- ##"
1842 for ac_var in $ac_subst_vars
1844 eval ac_val=\$$ac_var
1846 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1848 $as_echo "$ac_var='\''$ac_val'\''"
1852 if test -n "$ac_subst_files"; then
1853 $as_echo "## ------------------- ##
1854 ## File substitutions. ##
1855 ## ------------------- ##"
1857 for ac_var in $ac_subst_files
1859 eval ac_val=\$$ac_var
1861 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1863 $as_echo "$ac_var='\''$ac_val'\''"
1868 if test -s confdefs.h; then
1869 $as_echo "## ----------- ##
1876 test "$ac_signal" != 0 &&
1877 $as_echo "$as_me: caught signal $ac_signal"
1878 $as_echo "$as_me: exit $exit_status"
1880 rm -f core *.core core.conftest.* &&
1881 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1884 for ac_signal in 1 2 13 15; do
1885 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
1889 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1890 rm -f -r conftest* confdefs.h
1892 $as_echo "/* confdefs.h */" > confdefs.h
1894 # Predefined preprocessor variables.
1896 cat >>confdefs.h <<_ACEOF
1897 #define PACKAGE_NAME "$PACKAGE_NAME"
1900 cat >>confdefs.h <<_ACEOF
1901 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1904 cat >>confdefs.h <<_ACEOF
1905 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1908 cat >>confdefs.h <<_ACEOF
1909 #define PACKAGE_STRING "$PACKAGE_STRING"
1912 cat >>confdefs.h <<_ACEOF
1913 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1916 cat >>confdefs.h <<_ACEOF
1917 #define PACKAGE_URL "$PACKAGE_URL"
1921 # Let the site file select an alternate cache file if it wants to.
1922 # Prefer an explicitly selected file to automatically selected ones.
1925 if test -n "$CONFIG_SITE"; then
1926 # We do not want a PATH search for config.site.
1927 case $CONFIG_SITE in #((
1928 -*) ac_site_file1=./$CONFIG_SITE;;
1929 */*) ac_site_file1=$CONFIG_SITE;;
1930 *) ac_site_file1=./$CONFIG_SITE;;
1932 elif test "x$prefix" != xNONE; then
1933 ac_site_file1=$prefix/share/config.site
1934 ac_site_file2=$prefix/etc/config.site
1936 ac_site_file1=$ac_default_prefix/share/config.site
1937 ac_site_file2=$ac_default_prefix/etc/config.site
1939 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
1941 test "x$ac_site_file" = xNONE && continue
1942 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
1943 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
1944 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
1945 sed 's/^/| /' "$ac_site_file" >&5
1947 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
1948 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
1949 as_fn_error $? "failed to load site script $ac_site_file
1950 See \`config.log' for more details" "$LINENO" 5; }
1954 if test -r "$cache_file"; then
1955 # Some versions of bash will fail to source /dev/null (special files
1956 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
1957 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
1958 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
1959 $as_echo "$as_me: loading cache $cache_file" >&6;}
1961 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1962 *) . "./$cache_file";;
1966 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
1967 $as_echo "$as_me: creating cache $cache_file" >&6;}
1971 # Check that the precious variables saved in the cache have kept the same
1973 ac_cache_corrupted=false
1974 for ac_var in $ac_precious_vars; do
1975 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1976 eval ac_new_set=\$ac_env_${ac_var}_set
1977 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1978 eval ac_new_val=\$ac_env_${ac_var}_value
1979 case $ac_old_set,$ac_new_set in
1981 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1982 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1983 ac_cache_corrupted=: ;;
1985 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
1986 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1987 ac_cache_corrupted=: ;;
1990 if test "x$ac_old_val" != "x$ac_new_val"; then
1991 # differences in whitespace do not lead to failure.
1992 ac_old_val_w=`echo x $ac_old_val`
1993 ac_new_val_w=`echo x $ac_new_val`
1994 if test "$ac_old_val_w" != "$ac_new_val_w"; then
1995 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
1996 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1997 ac_cache_corrupted=:
1999 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2000 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2001 eval $ac_var=\$ac_old_val
2003 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2004 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2005 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2006 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2009 # Pass precious variables to config.status.
2010 if test "$ac_new_set" = set; then
2012 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2013 *) ac_arg=$ac_var=$ac_new_val ;;
2015 case " $ac_configure_args " in
2016 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2017 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2021 if $ac_cache_corrupted; then
2022 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2023 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2024 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2025 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2026 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2028 ## -------------------- ##
2029 ## Main body of script. ##
2030 ## -------------------- ##
2033 ac_cpp='$CPP $CPPFLAGS'
2034 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2035 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2036 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2040 ac_config_headers="$ac_config_headers config.h"
2043 RULE="------------------------------------------------------------"
2045 # Allow configure-time override of PRIVDROP_USER.
2047 # Check whether --with-privdrop-user was given.
2048 if test "${with_privdrop_user+set}" = set; then :
2049 withval=$with_privdrop_user; _pdu="$withval"
2055 cat >>confdefs.h <<_ACEOF
2056 #define PRIVDROP_USER "$_pdu"
2060 # Checks for programs.
2062 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2063 if test -f "$ac_dir/install-sh"; then
2065 ac_install_sh="$ac_aux_dir/install-sh -c"
2067 elif test -f "$ac_dir/install.sh"; then
2069 ac_install_sh="$ac_aux_dir/install.sh -c"
2071 elif test -f "$ac_dir/shtool"; then
2073 ac_install_sh="$ac_aux_dir/shtool install -c"
2077 if test -z "$ac_aux_dir"; then
2078 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2081 # These three variables are undocumented and unsupported,
2082 # and are intended to be withdrawn in a future Autoconf release.
2083 # They can cause serious problems if a builder's source tree is in a directory
2084 # whose full name contains unusual characters.
2085 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2086 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2087 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2090 # Find a good install program. We prefer a C program (faster),
2091 # so one script is as good as another. But avoid the broken or
2092 # incompatible versions:
2093 # SysV /etc/install, /usr/sbin/install
2094 # SunOS /usr/etc/install
2095 # IRIX /sbin/install
2097 # AmigaOS /C/install, which installs bootblocks on floppy discs
2098 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2099 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2100 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2101 # OS/2's system install, which has a completely different semantic
2102 # ./install, which can be erroneously created by make from ./install.sh.
2103 # Reject install programs that cannot install multiple files.
2104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2105 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2106 if test -z "$INSTALL"; then
2107 if ${ac_cv_path_install+:} false; then :
2108 $as_echo_n "(cached) " >&6
2110 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2114 test -z "$as_dir" && as_dir=.
2115 # Account for people who put trailing slashes in PATH elements.
2116 case $as_dir/ in #((
2117 ./ | .// | /[cC]/* | \
2118 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2119 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2122 # OSF1 and SCO ODT 3.0 have their own names for install.
2123 # Don't use installbsd from OSF since it installs stuff as root
2125 for ac_prog in ginstall scoinst install; do
2126 for ac_exec_ext in '' $ac_executable_extensions; do
2127 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2128 if test $ac_prog = install &&
2129 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2130 # AIX install. It has an incompatible calling convention.
2132 elif test $ac_prog = install &&
2133 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2134 # program-specific install script used by HP pwplus--don't use.
2137 rm -rf conftest.one conftest.two conftest.dir
2138 echo one > conftest.one
2139 echo two > conftest.two
2141 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2142 test -s conftest.one && test -s conftest.two &&
2143 test -s conftest.dir/conftest.one &&
2144 test -s conftest.dir/conftest.two
2146 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2159 rm -rf conftest.one conftest.two conftest.dir
2162 if test "${ac_cv_path_install+set}" = set; then
2163 INSTALL=$ac_cv_path_install
2165 # As a last resort, use the slow shell script. Don't cache a
2166 # value for INSTALL within a source directory, because that will
2167 # break other packages using the cache if that directory is
2168 # removed, or if the value is a relative name.
2169 INSTALL=$ac_install_sh
2172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2173 $as_echo "$INSTALL" >&6; }
2175 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2176 # It thinks the first close brace ends the variable substitution.
2177 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2179 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2181 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2184 ac_cpp='$CPP $CPPFLAGS'
2185 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2186 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2187 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2188 if test -n "$ac_tool_prefix"; then
2189 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2190 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2192 $as_echo_n "checking for $ac_word... " >&6; }
2193 if ${ac_cv_prog_CC+:} false; then :
2194 $as_echo_n "(cached) " >&6
2196 if test -n "$CC"; then
2197 ac_cv_prog_CC="$CC" # Let the user override the test.
2199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2203 test -z "$as_dir" && as_dir=.
2204 for ac_exec_ext in '' $ac_executable_extensions; do
2205 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2206 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2217 if test -n "$CC"; then
2218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2219 $as_echo "$CC" >&6; }
2221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2222 $as_echo "no" >&6; }
2227 if test -z "$ac_cv_prog_CC"; then
2229 # Extract the first word of "gcc", so it can be a program name with args.
2230 set dummy gcc; ac_word=$2
2231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2232 $as_echo_n "checking for $ac_word... " >&6; }
2233 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2234 $as_echo_n "(cached) " >&6
2236 if test -n "$ac_ct_CC"; then
2237 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2239 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2243 test -z "$as_dir" && as_dir=.
2244 for ac_exec_ext in '' $ac_executable_extensions; do
2245 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2246 ac_cv_prog_ac_ct_CC="gcc"
2247 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2256 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2257 if test -n "$ac_ct_CC"; then
2258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2259 $as_echo "$ac_ct_CC" >&6; }
2261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2262 $as_echo "no" >&6; }
2265 if test "x$ac_ct_CC" = x; then
2268 case $cross_compiling:$ac_tool_warned in
2270 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2271 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2272 ac_tool_warned=yes ;;
2280 if test -z "$CC"; then
2281 if test -n "$ac_tool_prefix"; then
2282 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2283 set dummy ${ac_tool_prefix}cc; ac_word=$2
2284 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2285 $as_echo_n "checking for $ac_word... " >&6; }
2286 if ${ac_cv_prog_CC+:} false; then :
2287 $as_echo_n "(cached) " >&6
2289 if test -n "$CC"; then
2290 ac_cv_prog_CC="$CC" # Let the user override the test.
2292 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2296 test -z "$as_dir" && as_dir=.
2297 for ac_exec_ext in '' $ac_executable_extensions; do
2298 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2299 ac_cv_prog_CC="${ac_tool_prefix}cc"
2300 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2310 if test -n "$CC"; then
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2312 $as_echo "$CC" >&6; }
2314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2315 $as_echo "no" >&6; }
2321 if test -z "$CC"; then
2322 # Extract the first word of "cc", so it can be a program name with args.
2323 set dummy cc; ac_word=$2
2324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2325 $as_echo_n "checking for $ac_word... " >&6; }
2326 if ${ac_cv_prog_CC+:} false; then :
2327 $as_echo_n "(cached) " >&6
2329 if test -n "$CC"; then
2330 ac_cv_prog_CC="$CC" # Let the user override the test.
2333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2337 test -z "$as_dir" && as_dir=.
2338 for ac_exec_ext in '' $ac_executable_extensions; do
2339 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2340 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2341 ac_prog_rejected=yes
2345 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2352 if test $ac_prog_rejected = yes; then
2353 # We found a bogon in the path, so make sure we never use it.
2354 set dummy $ac_cv_prog_CC
2356 if test $# != 0; then
2357 # We chose a different compiler from the bogus one.
2358 # However, it has the same basename, so the bogon will be chosen
2359 # first if we set CC to just the basename; use the full file name.
2361 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2367 if test -n "$CC"; then
2368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2369 $as_echo "$CC" >&6; }
2371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2372 $as_echo "no" >&6; }
2377 if test -z "$CC"; then
2378 if test -n "$ac_tool_prefix"; then
2379 for ac_prog in cl.exe
2381 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2382 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2384 $as_echo_n "checking for $ac_word... " >&6; }
2385 if ${ac_cv_prog_CC+:} false; then :
2386 $as_echo_n "(cached) " >&6
2388 if test -n "$CC"; then
2389 ac_cv_prog_CC="$CC" # Let the user override the test.
2391 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2395 test -z "$as_dir" && as_dir=.
2396 for ac_exec_ext in '' $ac_executable_extensions; do
2397 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2398 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2399 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2409 if test -n "$CC"; then
2410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2411 $as_echo "$CC" >&6; }
2413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2414 $as_echo "no" >&6; }
2418 test -n "$CC" && break
2421 if test -z "$CC"; then
2423 for ac_prog in cl.exe
2425 # Extract the first word of "$ac_prog", so it can be a program name with args.
2426 set dummy $ac_prog; ac_word=$2
2427 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2428 $as_echo_n "checking for $ac_word... " >&6; }
2429 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2430 $as_echo_n "(cached) " >&6
2432 if test -n "$ac_ct_CC"; then
2433 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2439 test -z "$as_dir" && as_dir=.
2440 for ac_exec_ext in '' $ac_executable_extensions; do
2441 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2442 ac_cv_prog_ac_ct_CC="$ac_prog"
2443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2452 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2453 if test -n "$ac_ct_CC"; then
2454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2455 $as_echo "$ac_ct_CC" >&6; }
2457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2458 $as_echo "no" >&6; }
2462 test -n "$ac_ct_CC" && break
2465 if test "x$ac_ct_CC" = x; then
2468 case $cross_compiling:$ac_tool_warned in
2470 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2471 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2472 ac_tool_warned=yes ;;
2481 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2482 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2483 as_fn_error $? "no acceptable C compiler found in \$PATH
2484 See \`config.log' for more details" "$LINENO" 5; }
2486 # Provide some information about the compiler.
2487 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2490 for ac_option in --version -v -V -qversion; do
2491 { { ac_try="$ac_compiler $ac_option >&5"
2493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2494 *) ac_try_echo=$ac_try;;
2496 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2497 $as_echo "$ac_try_echo"; } >&5
2498 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2500 if test -s conftest.err; then
2502 ... rest of stderr output deleted ...
2503 10q' conftest.err >conftest.er1
2504 cat conftest.er1 >&5
2506 rm -f conftest.er1 conftest.err
2507 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2508 test $ac_status = 0; }
2511 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2512 /* end confdefs.h. */
2522 ac_clean_files_save=$ac_clean_files
2523 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2524 # Try to create an executable without -o first, disregard a.out.
2525 # It will help us diagnose broken compilers, and finding out an intuition
2527 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2528 $as_echo_n "checking whether the C compiler works... " >&6; }
2529 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2531 # The possible output files:
2532 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2535 for ac_file in $ac_files
2538 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2539 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2544 if { { ac_try="$ac_link_default"
2546 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2547 *) ac_try_echo=$ac_try;;
2549 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2550 $as_echo "$ac_try_echo"; } >&5
2551 (eval "$ac_link_default") 2>&5
2553 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2554 test $ac_status = 0; }; then :
2555 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2556 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2557 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2558 # so that the user can short-circuit this test for compilers unknown to
2560 for ac_file in $ac_files ''
2562 test -f "$ac_file" || continue
2564 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2567 # We found the default executable, but exeext='' is most
2571 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2573 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2575 # We set ac_cv_exeext here because the later test for it is not
2576 # safe: cross compilers may not add the suffix if given an `-o'
2577 # argument, so we may need to know it at that point already.
2578 # Even if this section looks crufty: it has the advantage of
2585 test "$ac_cv_exeext" = no && ac_cv_exeext=
2590 if test -z "$ac_file"; then :
2591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2592 $as_echo "no" >&6; }
2593 $as_echo "$as_me: failed program was:" >&5
2594 sed 's/^/| /' conftest.$ac_ext >&5
2596 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2597 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2598 as_fn_error 77 "C compiler cannot create executables
2599 See \`config.log' for more details" "$LINENO" 5; }
2601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2602 $as_echo "yes" >&6; }
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2605 $as_echo_n "checking for C compiler default output file name... " >&6; }
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2607 $as_echo "$ac_file" >&6; }
2608 ac_exeext=$ac_cv_exeext
2610 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2611 ac_clean_files=$ac_clean_files_save
2612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2613 $as_echo_n "checking for suffix of executables... " >&6; }
2614 if { { ac_try="$ac_link"
2616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2617 *) ac_try_echo=$ac_try;;
2619 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2620 $as_echo "$ac_try_echo"; } >&5
2621 (eval "$ac_link") 2>&5
2623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2624 test $ac_status = 0; }; then :
2625 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2626 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2627 # work properly (i.e., refer to `conftest.exe'), while it won't with
2629 for ac_file in conftest.exe conftest conftest.*; do
2630 test -f "$ac_file" || continue
2632 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2633 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2639 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2640 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2641 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2642 See \`config.log' for more details" "$LINENO" 5; }
2644 rm -f conftest conftest$ac_cv_exeext
2645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2646 $as_echo "$ac_cv_exeext" >&6; }
2648 rm -f conftest.$ac_ext
2649 EXEEXT=$ac_cv_exeext
2651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2652 /* end confdefs.h. */
2657 FILE *f = fopen ("conftest.out", "w");
2658 return ferror (f) || fclose (f) != 0;
2664 ac_clean_files="$ac_clean_files conftest.out"
2665 # Check that the compiler produces executables we can run. If not, either
2666 # the compiler is broken, or we cross compile.
2667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2668 $as_echo_n "checking whether we are cross compiling... " >&6; }
2669 if test "$cross_compiling" != yes; then
2670 { { ac_try="$ac_link"
2672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2673 *) ac_try_echo=$ac_try;;
2675 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2676 $as_echo "$ac_try_echo"; } >&5
2677 (eval "$ac_link") 2>&5
2679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2680 test $ac_status = 0; }
2681 if { ac_try='./conftest$ac_cv_exeext'
2682 { { case "(($ac_try" in
2683 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2684 *) ac_try_echo=$ac_try;;
2686 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2687 $as_echo "$ac_try_echo"; } >&5
2688 (eval "$ac_try") 2>&5
2690 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2691 test $ac_status = 0; }; }; then
2694 if test "$cross_compiling" = maybe; then
2697 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2698 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2699 as_fn_error $? "cannot run C compiled programs.
2700 If you meant to cross compile, use \`--host'.
2701 See \`config.log' for more details" "$LINENO" 5; }
2705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2706 $as_echo "$cross_compiling" >&6; }
2708 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2709 ac_clean_files=$ac_clean_files_save
2710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2711 $as_echo_n "checking for suffix of object files... " >&6; }
2712 if ${ac_cv_objext+:} false; then :
2713 $as_echo_n "(cached) " >&6
2715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2716 /* end confdefs.h. */
2726 rm -f conftest.o conftest.obj
2727 if { { ac_try="$ac_compile"
2729 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2730 *) ac_try_echo=$ac_try;;
2732 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2733 $as_echo "$ac_try_echo"; } >&5
2734 (eval "$ac_compile") 2>&5
2736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2737 test $ac_status = 0; }; then :
2738 for ac_file in conftest.o conftest.obj conftest.*; do
2739 test -f "$ac_file" || continue;
2741 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2742 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2747 $as_echo "$as_me: failed program was:" >&5
2748 sed 's/^/| /' conftest.$ac_ext >&5
2750 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2751 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2752 as_fn_error $? "cannot compute suffix of object files: cannot compile
2753 See \`config.log' for more details" "$LINENO" 5; }
2755 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2758 $as_echo "$ac_cv_objext" >&6; }
2759 OBJEXT=$ac_cv_objext
2761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2762 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2763 if ${ac_cv_c_compiler_gnu+:} false; then :
2764 $as_echo_n "(cached) " >&6
2766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2767 /* end confdefs.h. */
2780 if ac_fn_c_try_compile "$LINENO"; then :
2785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2786 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2790 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2791 if test $ac_compiler_gnu = yes; then
2796 ac_test_CFLAGS=${CFLAGS+set}
2797 ac_save_CFLAGS=$CFLAGS
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2799 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2800 if ${ac_cv_prog_cc_g+:} false; then :
2801 $as_echo_n "(cached) " >&6
2803 ac_save_c_werror_flag=$ac_c_werror_flag
2804 ac_c_werror_flag=yes
2807 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2808 /* end confdefs.h. */
2818 if ac_fn_c_try_compile "$LINENO"; then :
2822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2823 /* end confdefs.h. */
2833 if ac_fn_c_try_compile "$LINENO"; then :
2836 ac_c_werror_flag=$ac_save_c_werror_flag
2838 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2839 /* end confdefs.h. */
2849 if ac_fn_c_try_compile "$LINENO"; then :
2852 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2854 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2857 ac_c_werror_flag=$ac_save_c_werror_flag
2859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2860 $as_echo "$ac_cv_prog_cc_g" >&6; }
2861 if test "$ac_test_CFLAGS" = set; then
2862 CFLAGS=$ac_save_CFLAGS
2863 elif test $ac_cv_prog_cc_g = yes; then
2864 if test "$GCC" = yes; then
2870 if test "$GCC" = yes; then
2876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2877 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2878 if ${ac_cv_prog_cc_c89+:} false; then :
2879 $as_echo_n "(cached) " >&6
2881 ac_cv_prog_cc_c89=no
2883 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2884 /* end confdefs.h. */
2888 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2889 struct buf { int x; };
2890 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2891 static char *e (p, i)
2897 static char *f (char * (*g) (char **, int), char **p, ...)
2902 s = g (p, va_arg (v,int));
2907 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2908 function prototypes and stuff, but not '\xHH' hex character constants.
2909 These don't provoke an error unfortunately, instead are silently treated
2910 as 'x'. The following induces an error, until -std is added to get
2911 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2912 array size at least. It's necessary to write '\x00'==0 to get something
2913 that's true only with -std. */
2914 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2916 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2917 inside strings and character constants. */
2919 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2921 int test (int i, double x);
2922 struct s1 {int (*f) (int a);};
2923 struct s2 {int (*f) (double a);};
2924 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2930 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2935 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2936 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2938 CC="$ac_save_CC $ac_arg"
2939 if ac_fn_c_try_compile "$LINENO"; then :
2940 ac_cv_prog_cc_c89=$ac_arg
2942 rm -f core conftest.err conftest.$ac_objext
2943 test "x$ac_cv_prog_cc_c89" != "xno" && break
2945 rm -f conftest.$ac_ext
2950 case "x$ac_cv_prog_cc_c89" in
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
2953 $as_echo "none needed" >&6; } ;;
2955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
2956 $as_echo "unsupported" >&6; } ;;
2958 CC="$CC $ac_cv_prog_cc_c89"
2959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
2960 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
2962 if test "x$ac_cv_prog_cc_c89" != xno; then :
2967 ac_cpp='$CPP $CPPFLAGS'
2968 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2969 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2970 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2974 # Check whether --enable-silent-rules was given.
2975 if test "${enable_silent_rules+set}" = set; then :
2976 enableval=$enable_silent_rules;
2979 case $enable_silent_rules in
2980 no) AM_DEFAULT_VERBOSITY=1;;
2981 *) AM_DEFAULT_VERBOSITY=0;;
2985 # Let user disable debugging symbols so we create smaller binaries.
2986 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we want debug code" >&5
2987 $as_echo_n "checking if we want debug code... " >&6; }
2988 # Check whether --enable-debug was given.
2989 if test "${enable_debug+set}" = set; then :
2990 enableval=$enable_debug; if test "x$enableval" = "xno" ; then
2991 CFLAGS="$CFLAGS -DNDEBUG -g0"
2992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: nope" >&5
2993 $as_echo "nope" >&6; }
2994 elif test "x$enableval" = "xyes" ; then
2995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: sure" >&5
2996 $as_echo "sure" >&6; }
2998 CFLAGS="$CFLAGS -g$enableval"
2999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: sure ($enableval)" >&5
3000 $as_echo "sure ($enableval)" >&6; }
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: sure" >&5
3004 $as_echo "sure" >&6; }
3008 # Augment CFLAGS for fun.
3009 echo "int main(void){return 1;}" > conftest.$ac_ext
3011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your C compiler wants a hit off the pipe" >&5
3012 $as_echo_n "checking if your C compiler wants a hit off the pipe... " >&6; }
3013 save_cflags="$CFLAGS"
3014 CFLAGS="-pipe $CFLAGS"
3015 if (eval $ac_link) 2>/dev/null; then
3016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: sure does" >&5
3017 $as_echo "sure does" >&6; }
3019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3020 $as_echo "no" >&6; }
3021 CFLAGS="$save_cflags"
3024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your C compiler has a link-time optimizer" >&5
3025 $as_echo_n "checking if your C compiler has a link-time optimizer... " >&6; }
3026 if test x$GCC = xyes; then
3027 save_cflags="$CFLAGS"
3028 CFLAGS="-flto $CFLAGS"
3029 if (eval $ac_link) 2>/dev/null; then
3030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: sure does" >&5
3031 $as_echo "sure does" >&6; }
3033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3034 $as_echo "no" >&6; }
3035 CFLAGS="$save_cflags"
3038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: skipped" >&5
3039 $as_echo "skipped" >&6; }
3042 # Check whether --enable-warnings was given.
3043 if test "${enable_warnings+set}" = set; then :
3044 enableval=$enable_warnings; if test "x$enableval" = "xyes" ; then
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your C compiler has gcc-like --extra-warnings" >&5
3046 $as_echo_n "checking if your C compiler has gcc-like --extra-warnings... " >&6; }
3047 save_cflags="$CFLAGS"
3048 CFLAGS="$CFLAGS -fdiagnostics-show-option --all-warnings --extra-warnings"
3049 if (eval $ac_link) 2>/dev/null; then
3050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3051 $as_echo "yes" >&6; }
3053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3054 $as_echo "no" >&6; }
3055 CFLAGS="$save_cflags"
3058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if your C compiler has clang-like -Weverything" >&5
3059 $as_echo_n "checking if your C compiler has clang-like -Weverything... " >&6; }
3060 save_cflags="$CFLAGS"
3061 CFLAGS="$CFLAGS -Weverything"
3062 if (eval $ac_link) 2>/dev/null; then
3063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3064 $as_echo "yes" >&6; }
3066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3067 $as_echo "no" >&6; }
3068 CFLAGS="$save_cflags"
3074 rm -f conftest.$ac_objext conftest.$ac_ext
3080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for deflate in -lz" >&5
3081 $as_echo_n "checking for deflate in -lz... " >&6; }
3082 if ${ac_cv_lib_z_deflate+:} false; then :
3083 $as_echo_n "(cached) " >&6
3085 ac_check_lib_save_LIBS=$LIBS
3087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3088 /* end confdefs.h. */
3090 /* Override any GCC internal prototype to avoid an error.
3091 Use char because int might match the return type of a GCC
3092 builtin and then its argument prototype would still apply. */
3105 if ac_fn_c_try_link "$LINENO"; then :
3106 ac_cv_lib_z_deflate=yes
3108 ac_cv_lib_z_deflate=no
3110 rm -f core conftest.err conftest.$ac_objext \
3111 conftest$ac_exeext conftest.$ac_ext
3112 LIBS=$ac_check_lib_save_LIBS
3114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_z_deflate" >&5
3115 $as_echo "$ac_cv_lib_z_deflate" >&6; }
3116 if test "x$ac_cv_lib_z_deflate" = xyes; then :
3117 cat >>confdefs.h <<_ACEOF
3128 I can't link to zlib. You really can't have a modern
3129 operating system without zlib.
3131 If you are using a package-based operating system (like
3132 something with RPMs), see if there is a zlib-devel package
3133 that you can install, to provide the zlib headers and
3138 as_fn_error $? "can't find usable zlib" "$LINENO" 5
3144 # Check for Solaris.
3145 # Must do at least socket and nsl before checking for libpcap.
3146 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
3147 $as_echo_n "checking for library containing gethostbyname... " >&6; }
3148 if ${ac_cv_search_gethostbyname+:} false; then :
3149 $as_echo_n "(cached) " >&6
3151 ac_func_search_save_LIBS=$LIBS
3152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3153 /* end confdefs.h. */
3155 /* Override any GCC internal prototype to avoid an error.
3156 Use char because int might match the return type of a GCC
3157 builtin and then its argument prototype would still apply. */
3161 char gethostbyname ();
3165 return gethostbyname ();
3170 for ac_lib in '' nsl; do
3171 if test -z "$ac_lib"; then
3172 ac_res="none required"
3175 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3177 if ac_fn_c_try_link "$LINENO"; then :
3178 ac_cv_search_gethostbyname=$ac_res
3180 rm -f core conftest.err conftest.$ac_objext \
3182 if ${ac_cv_search_gethostbyname+:} false; then :
3186 if ${ac_cv_search_gethostbyname+:} false; then :
3189 ac_cv_search_gethostbyname=no
3192 LIBS=$ac_func_search_save_LIBS
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
3195 $as_echo "$ac_cv_search_gethostbyname" >&6; }
3196 ac_res=$ac_cv_search_gethostbyname
3197 if test "$ac_res" != no; then :
3198 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3201 as_fn_error $? "gethostbyname() not found" "$LINENO" 5
3204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
3205 $as_echo_n "checking for library containing socket... " >&6; }
3206 if ${ac_cv_search_socket+:} false; then :
3207 $as_echo_n "(cached) " >&6
3209 ac_func_search_save_LIBS=$LIBS
3210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3211 /* end confdefs.h. */
3213 /* Override any GCC internal prototype to avoid an error.
3214 Use char because int might match the return type of a GCC
3215 builtin and then its argument prototype would still apply. */
3228 for ac_lib in '' socket; do
3229 if test -z "$ac_lib"; then
3230 ac_res="none required"
3233 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3235 if ac_fn_c_try_link "$LINENO"; then :
3236 ac_cv_search_socket=$ac_res
3238 rm -f core conftest.err conftest.$ac_objext \
3240 if ${ac_cv_search_socket+:} false; then :
3244 if ${ac_cv_search_socket+:} false; then :
3247 ac_cv_search_socket=no
3250 LIBS=$ac_func_search_save_LIBS
3252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
3253 $as_echo "$ac_cv_search_socket" >&6; }
3254 ac_res=$ac_cv_search_socket
3255 if test "$ac_res" != no; then :
3256 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3259 as_fn_error $? "socket() not found" "$LINENO" 5
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing hstrerror" >&5
3263 $as_echo_n "checking for library containing hstrerror... " >&6; }
3264 if ${ac_cv_search_hstrerror+:} false; then :
3265 $as_echo_n "(cached) " >&6
3267 ac_func_search_save_LIBS=$LIBS
3268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3269 /* end confdefs.h. */
3271 /* Override any GCC internal prototype to avoid an error.
3272 Use char because int might match the return type of a GCC
3273 builtin and then its argument prototype would still apply. */
3281 return hstrerror ();
3286 for ac_lib in '' resolv; do
3287 if test -z "$ac_lib"; then
3288 ac_res="none required"
3291 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3293 if ac_fn_c_try_link "$LINENO"; then :
3294 ac_cv_search_hstrerror=$ac_res
3296 rm -f core conftest.err conftest.$ac_objext \
3298 if ${ac_cv_search_hstrerror+:} false; then :
3302 if ${ac_cv_search_hstrerror+:} false; then :
3305 ac_cv_search_hstrerror=no
3308 LIBS=$ac_func_search_save_LIBS
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_hstrerror" >&5
3311 $as_echo "$ac_cv_search_hstrerror" >&6; }
3312 ac_res=$ac_cv_search_hstrerror
3313 if test "$ac_res" != no; then :
3314 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3317 as_fn_error $? "hstrerror() not found" "$LINENO" 5
3321 # Solaris need sys/filio.h for FIONBIO
3323 ac_cpp='$CPP $CPPFLAGS'
3324 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3325 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3326 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3328 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3329 # On Suns, sometimes $CPP names a directory.
3330 if test -n "$CPP" && test -d "$CPP"; then
3333 if test -z "$CPP"; then
3334 if ${ac_cv_prog_CPP+:} false; then :
3335 $as_echo_n "(cached) " >&6
3337 # Double quotes because CPP needs to be expanded
3338 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3341 for ac_c_preproc_warn_flag in '' yes
3343 # Use a header file that comes with gcc, so configuring glibc
3344 # with a fresh cross-compiler works.
3345 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3346 # <limits.h> exists even on freestanding compilers.
3347 # On the NeXT, cc -E runs the code through the compiler's parser,
3348 # not just through cpp. "Syntax error" is here to catch this case.
3349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3350 /* end confdefs.h. */
3352 # include <limits.h>
3354 # include <assert.h>
3358 if ac_fn_c_try_cpp "$LINENO"; then :
3361 # Broken: fails on valid input.
3364 rm -f conftest.err conftest.i conftest.$ac_ext
3366 # OK, works on sane cases. Now check whether nonexistent headers
3367 # can be detected and how.
3368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3369 /* end confdefs.h. */
3370 #include <ac_nonexistent.h>
3372 if ac_fn_c_try_cpp "$LINENO"; then :
3373 # Broken: success on invalid input.
3376 # Passes both tests.
3380 rm -f conftest.err conftest.i conftest.$ac_ext
3383 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3384 rm -f conftest.i conftest.err conftest.$ac_ext
3385 if $ac_preproc_ok; then :
3397 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3398 $as_echo "$CPP" >&6; }
3400 for ac_c_preproc_warn_flag in '' yes
3402 # Use a header file that comes with gcc, so configuring glibc
3403 # with a fresh cross-compiler works.
3404 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3405 # <limits.h> exists even on freestanding compilers.
3406 # On the NeXT, cc -E runs the code through the compiler's parser,
3407 # not just through cpp. "Syntax error" is here to catch this case.
3408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3409 /* end confdefs.h. */
3411 # include <limits.h>
3413 # include <assert.h>
3417 if ac_fn_c_try_cpp "$LINENO"; then :
3420 # Broken: fails on valid input.
3423 rm -f conftest.err conftest.i conftest.$ac_ext
3425 # OK, works on sane cases. Now check whether nonexistent headers
3426 # can be detected and how.
3427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3428 /* end confdefs.h. */
3429 #include <ac_nonexistent.h>
3431 if ac_fn_c_try_cpp "$LINENO"; then :
3432 # Broken: success on invalid input.
3435 # Passes both tests.
3439 rm -f conftest.err conftest.i conftest.$ac_ext
3442 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3443 rm -f conftest.i conftest.err conftest.$ac_ext
3444 if $ac_preproc_ok; then :
3447 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3448 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3449 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3450 See \`config.log' for more details" "$LINENO" 5; }
3454 ac_cpp='$CPP $CPPFLAGS'
3455 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3456 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3457 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3461 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3462 if ${ac_cv_path_GREP+:} false; then :
3463 $as_echo_n "(cached) " >&6
3465 if test -z "$GREP"; then
3466 ac_path_GREP_found=false
3467 # Loop through the user's path and test for each of PROGNAME-LIST
3468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3469 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3472 test -z "$as_dir" && as_dir=.
3473 for ac_prog in grep ggrep; do
3474 for ac_exec_ext in '' $ac_executable_extensions; do
3475 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3476 as_fn_executable_p "$ac_path_GREP" || continue
3477 # Check for GNU ac_path_GREP and select it if it is found.
3478 # Check for GNU $ac_path_GREP
3479 case `"$ac_path_GREP" --version 2>&1` in
3481 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3484 $as_echo_n 0123456789 >"conftest.in"
3487 cat "conftest.in" "conftest.in" >"conftest.tmp"
3488 mv "conftest.tmp" "conftest.in"
3489 cp "conftest.in" "conftest.nl"
3490 $as_echo 'GREP' >> "conftest.nl"
3491 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3492 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3493 as_fn_arith $ac_count + 1 && ac_count=$as_val
3494 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3495 # Best one so far, save it but keep looking for a better one
3496 ac_cv_path_GREP="$ac_path_GREP"
3497 ac_path_GREP_max=$ac_count
3499 # 10*(2^10) chars as input seems more than enough
3500 test $ac_count -gt 10 && break
3502 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3505 $ac_path_GREP_found && break 3
3510 if test -z "$ac_cv_path_GREP"; then
3511 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3514 ac_cv_path_GREP=$GREP
3518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3519 $as_echo "$ac_cv_path_GREP" >&6; }
3520 GREP="$ac_cv_path_GREP"
3523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3524 $as_echo_n "checking for egrep... " >&6; }
3525 if ${ac_cv_path_EGREP+:} false; then :
3526 $as_echo_n "(cached) " >&6
3528 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3529 then ac_cv_path_EGREP="$GREP -E"
3531 if test -z "$EGREP"; then
3532 ac_path_EGREP_found=false
3533 # Loop through the user's path and test for each of PROGNAME-LIST
3534 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3535 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3538 test -z "$as_dir" && as_dir=.
3539 for ac_prog in egrep; do
3540 for ac_exec_ext in '' $ac_executable_extensions; do
3541 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3542 as_fn_executable_p "$ac_path_EGREP" || continue
3543 # Check for GNU ac_path_EGREP and select it if it is found.
3544 # Check for GNU $ac_path_EGREP
3545 case `"$ac_path_EGREP" --version 2>&1` in
3547 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3550 $as_echo_n 0123456789 >"conftest.in"
3553 cat "conftest.in" "conftest.in" >"conftest.tmp"
3554 mv "conftest.tmp" "conftest.in"
3555 cp "conftest.in" "conftest.nl"
3556 $as_echo 'EGREP' >> "conftest.nl"
3557 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3558 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3559 as_fn_arith $ac_count + 1 && ac_count=$as_val
3560 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3561 # Best one so far, save it but keep looking for a better one
3562 ac_cv_path_EGREP="$ac_path_EGREP"
3563 ac_path_EGREP_max=$ac_count
3565 # 10*(2^10) chars as input seems more than enough
3566 test $ac_count -gt 10 && break
3568 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3571 $ac_path_EGREP_found && break 3
3576 if test -z "$ac_cv_path_EGREP"; then
3577 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3580 ac_cv_path_EGREP=$EGREP
3585 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3586 $as_echo "$ac_cv_path_EGREP" >&6; }
3587 EGREP="$ac_cv_path_EGREP"
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3591 $as_echo_n "checking for ANSI C header files... " >&6; }
3592 if ${ac_cv_header_stdc+:} false; then :
3593 $as_echo_n "(cached) " >&6
3595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3596 /* end confdefs.h. */
3610 if ac_fn_c_try_compile "$LINENO"; then :
3611 ac_cv_header_stdc=yes
3613 ac_cv_header_stdc=no
3615 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3617 if test $ac_cv_header_stdc = yes; then
3618 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3620 /* end confdefs.h. */
3624 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3625 $EGREP "memchr" >/dev/null 2>&1; then :
3628 ac_cv_header_stdc=no
3634 if test $ac_cv_header_stdc = yes; then
3635 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3636 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3637 /* end confdefs.h. */
3641 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3642 $EGREP "free" >/dev/null 2>&1; then :
3645 ac_cv_header_stdc=no
3651 if test $ac_cv_header_stdc = yes; then
3652 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3653 if test "$cross_compiling" = yes; then :
3656 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3657 /* end confdefs.h. */
3660 #if ((' ' & 0x0FF) == 0x020)
3661 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3662 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3664 # define ISLOWER(c) \
3665 (('a' <= (c) && (c) <= 'i') \
3666 || ('j' <= (c) && (c) <= 'r') \
3667 || ('s' <= (c) && (c) <= 'z'))
3668 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3671 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3676 for (i = 0; i < 256; i++)
3677 if (XOR (islower (i), ISLOWER (i))
3678 || toupper (i) != TOUPPER (i))
3683 if ac_fn_c_try_run "$LINENO"; then :
3686 ac_cv_header_stdc=no
3688 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3689 conftest.$ac_objext conftest.beam conftest.$ac_ext
3694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3695 $as_echo "$ac_cv_header_stdc" >&6; }
3696 if test $ac_cv_header_stdc = yes; then
3698 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3702 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3703 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3704 inttypes.h stdint.h unistd.h
3706 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3707 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3709 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3710 cat >>confdefs.h <<_ACEOF
3711 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3719 for ac_header in sys/filio.h
3721 ac_fn_c_check_header_mongrel "$LINENO" "sys/filio.h" "ac_cv_header_sys_filio_h" "$ac_includes_default"
3722 if test "x$ac_cv_header_sys_filio_h" = xyes; then :
3723 cat >>confdefs.h <<_ACEOF
3724 #define HAVE_SYS_FILIO_H 1
3732 # This is the modern way. Older systems use the ioctl method.
3733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getifaddrs" >&5
3734 $as_echo_n "checking for library containing getifaddrs... " >&6; }
3735 if ${ac_cv_search_getifaddrs+:} false; then :
3736 $as_echo_n "(cached) " >&6
3738 ac_func_search_save_LIBS=$LIBS
3739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3740 /* end confdefs.h. */
3742 /* Override any GCC internal prototype to avoid an error.
3743 Use char because int might match the return type of a GCC
3744 builtin and then its argument prototype would still apply. */
3752 return getifaddrs ();
3757 for ac_lib in '' c; do
3758 if test -z "$ac_lib"; then
3759 ac_res="none required"
3762 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3764 if ac_fn_c_try_link "$LINENO"; then :
3765 ac_cv_search_getifaddrs=$ac_res
3767 rm -f core conftest.err conftest.$ac_objext \
3769 if ${ac_cv_search_getifaddrs+:} false; then :
3773 if ${ac_cv_search_getifaddrs+:} false; then :
3776 ac_cv_search_getifaddrs=no
3779 LIBS=$ac_func_search_save_LIBS
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getifaddrs" >&5
3782 $as_echo "$ac_cv_search_getifaddrs" >&6; }
3783 ac_res=$ac_cv_search_getifaddrs
3784 if test "$ac_res" != no; then :
3785 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3786 for ac_header in ifaddrs.h
3788 ac_fn_c_check_header_mongrel "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default"
3789 if test "x$ac_cv_header_ifaddrs_h" = xyes; then :
3790 cat >>confdefs.h <<_ACEOF
3791 #define HAVE_IFADDRS_H 1
3803 # Some OSes (Solaris) need sys/sockio.h for SIOCGIFADDR
3804 for ac_header in sys/sockio.h
3806 ac_fn_c_check_header_mongrel "$LINENO" "sys/sockio.h" "ac_cv_header_sys_sockio_h" "$ac_includes_default"
3807 if test "x$ac_cv_header_sys_sockio_h" = xyes; then :
3808 cat >>confdefs.h <<_ACEOF
3809 #define HAVE_SYS_SOCKIO_H 1
3819 # Check whether --with-pcap was given.
3820 if test "${with_pcap+set}" = set; then :
3821 withval=$with_pcap; if test "$withval" = yes ; then
3822 as_fn_error $? "must specify a path, as in --with-pcap=DIR" "$LINENO" 5
3824 if test "$withval" != no ; then
3825 PCAP_HOME="$withval"
3830 if test -n "$PCAP_HOME" ; then
3831 LDFLAGS="$LDFLAGS -L$PCAP_HOME/lib"
3832 CPPFLAGS2="$CPPFLAGS -I$PCAP_HOME/include/pcap"
3833 CPPFLAGS="$CPPFLAGS -I$PCAP_HOME/include"
3835 CPPFLAGS2="$CPPFLAGS -I/usr/include/pcap"
3838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_loop in -lpcap" >&5
3839 $as_echo_n "checking for pcap_loop in -lpcap... " >&6; }
3840 if ${ac_cv_lib_pcap_pcap_loop+:} false; then :
3841 $as_echo_n "(cached) " >&6
3843 ac_check_lib_save_LIBS=$LIBS
3845 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3846 /* end confdefs.h. */
3848 /* Override any GCC internal prototype to avoid an error.
3849 Use char because int might match the return type of a GCC
3850 builtin and then its argument prototype would still apply. */
3858 return pcap_loop ();
3863 if ac_fn_c_try_link "$LINENO"; then :
3864 ac_cv_lib_pcap_pcap_loop=yes
3866 ac_cv_lib_pcap_pcap_loop=no
3868 rm -f core conftest.err conftest.$ac_objext \
3869 conftest$ac_exeext conftest.$ac_ext
3870 LIBS=$ac_check_lib_save_LIBS
3872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_loop" >&5
3873 $as_echo "$ac_cv_lib_pcap_pcap_loop" >&6; }
3874 if test "x$ac_cv_lib_pcap_pcap_loop" = xyes; then :
3875 cat >>confdefs.h <<_ACEOF
3876 #define HAVE_LIBPCAP 1
3886 if test -z "$PCAP_BROKEN" ; then
3887 for ac_header in pcap.h
3889 ac_fn_c_check_header_mongrel "$LINENO" "pcap.h" "ac_cv_header_pcap_h" "$ac_includes_default"
3890 if test "x$ac_cv_header_pcap_h" = xyes; then :
3891 cat >>confdefs.h <<_ACEOF
3892 #define HAVE_PCAP_H 1
3896 # Couldn't find headers, try include/pcap
3897 CPPFLAGS="$CPPFLAGS2"
3898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking in include/pcap" >&5
3899 $as_echo "$as_me: checking in include/pcap" >&6;}
3900 unset ac_cv_header_pcap_h
3901 for ac_header in pcap.h
3903 ac_fn_c_check_header_mongrel "$LINENO" "pcap.h" "ac_cv_header_pcap_h" "$ac_includes_default"
3904 if test "x$ac_cv_header_pcap_h" = xyes; then :
3905 cat >>confdefs.h <<_ACEOF
3906 #define HAVE_PCAP_H 1
3908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: I hate you." >&5
3909 $as_echo "I hate you." >&6; }
3922 if test -n "$PCAP_BROKEN" ; then
3926 darkstat absolutely requires libpcap to be installed. On Debian
3927 systems, apt-get install libpcap-dev. On RPM systems like RedHat, try
3928 installing the libpcap-devel package.
3930 If libpcap is installed into a prefix that isn't being picked up by
3931 configure, for example /usr/local, re-run configure and add
3932 --with-pcap=/usr/local
3934 Failing all of the above, go to http://www.tcpdump.org/ and download the
3935 source distribution of libpcap and build it yourself.
3939 as_fn_error $? "can't find usable libpcap" "$LINENO" 5
3942 # If not in libc, we might find these in libbsd.
3943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing setproctitle" >&5
3944 $as_echo_n "checking for library containing setproctitle... " >&6; }
3945 if ${ac_cv_search_setproctitle+:} false; then :
3946 $as_echo_n "(cached) " >&6
3948 ac_func_search_save_LIBS=$LIBS
3949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3950 /* end confdefs.h. */
3952 /* Override any GCC internal prototype to avoid an error.
3953 Use char because int might match the return type of a GCC
3954 builtin and then its argument prototype would still apply. */
3958 char setproctitle ();
3962 return setproctitle ();
3967 for ac_lib in '' bsd; do
3968 if test -z "$ac_lib"; then
3969 ac_res="none required"
3972 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
3974 if ac_fn_c_try_link "$LINENO"; then :
3975 ac_cv_search_setproctitle=$ac_res
3977 rm -f core conftest.err conftest.$ac_objext \
3979 if ${ac_cv_search_setproctitle+:} false; then :
3983 if ${ac_cv_search_setproctitle+:} false; then :
3986 ac_cv_search_setproctitle=no
3989 LIBS=$ac_func_search_save_LIBS
3991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_setproctitle" >&5
3992 $as_echo "$ac_cv_search_setproctitle" >&6; }
3993 ac_res=$ac_cv_search_setproctitle
3994 if test "$ac_res" != no; then :
3995 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
3997 $as_echo "#define HAVE_SETPROCTITLE 1" >>confdefs.h
4001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strlcpy" >&5
4002 $as_echo_n "checking for library containing strlcpy... " >&6; }
4003 if ${ac_cv_search_strlcpy+:} false; then :
4004 $as_echo_n "(cached) " >&6
4006 ac_func_search_save_LIBS=$LIBS
4007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4008 /* end confdefs.h. */
4010 /* Override any GCC internal prototype to avoid an error.
4011 Use char because int might match the return type of a GCC
4012 builtin and then its argument prototype would still apply. */
4025 for ac_lib in '' bsd; do
4026 if test -z "$ac_lib"; then
4027 ac_res="none required"
4030 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4032 if ac_fn_c_try_link "$LINENO"; then :
4033 ac_cv_search_strlcpy=$ac_res
4035 rm -f core conftest.err conftest.$ac_objext \
4037 if ${ac_cv_search_strlcpy+:} false; then :
4041 if ${ac_cv_search_strlcpy+:} false; then :
4044 ac_cv_search_strlcpy=no
4047 LIBS=$ac_func_search_save_LIBS
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strlcpy" >&5
4050 $as_echo "$ac_cv_search_strlcpy" >&6; }
4051 ac_res=$ac_cv_search_strlcpy
4052 if test "$ac_res" != no; then :
4053 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4055 $as_echo "#define HAVE_STRLCPY 1" >>confdefs.h
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing strlcat" >&5
4060 $as_echo_n "checking for library containing strlcat... " >&6; }
4061 if ${ac_cv_search_strlcat+:} false; then :
4062 $as_echo_n "(cached) " >&6
4064 ac_func_search_save_LIBS=$LIBS
4065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4066 /* end confdefs.h. */
4068 /* Override any GCC internal prototype to avoid an error.
4069 Use char because int might match the return type of a GCC
4070 builtin and then its argument prototype would still apply. */
4083 for ac_lib in '' bsd; do
4084 if test -z "$ac_lib"; then
4085 ac_res="none required"
4088 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4090 if ac_fn_c_try_link "$LINENO"; then :
4091 ac_cv_search_strlcat=$ac_res
4093 rm -f core conftest.err conftest.$ac_objext \
4095 if ${ac_cv_search_strlcat+:} false; then :
4099 if ${ac_cv_search_strlcat+:} false; then :
4102 ac_cv_search_strlcat=no
4105 LIBS=$ac_func_search_save_LIBS
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_strlcat" >&5
4108 $as_echo "$ac_cv_search_strlcat" >&6; }
4109 ac_res=$ac_cv_search_strlcat
4110 if test "$ac_res" != no; then :
4111 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4113 $as_echo "#define HAVE_STRLCAT 1" >>confdefs.h
4118 for ac_header in bsd/string.h
4120 ac_fn_c_check_header_mongrel "$LINENO" "bsd/string.h" "ac_cv_header_bsd_string_h" "$ac_includes_default"
4121 if test "x$ac_cv_header_bsd_string_h" = xyes; then :
4122 cat >>confdefs.h <<_ACEOF
4123 #define HAVE_BSD_STRING_H 1
4130 for ac_header in bsd/unistd.h
4132 ac_fn_c_check_header_mongrel "$LINENO" "bsd/unistd.h" "ac_cv_header_bsd_unistd_h" "$ac_includes_default"
4133 if test "x$ac_cv_header_bsd_unistd_h" = xyes; then :
4134 cat >>confdefs.h <<_ACEOF
4135 #define HAVE_BSD_UNISTD_H 1
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing clock_gettime" >&5
4144 $as_echo_n "checking for library containing clock_gettime... " >&6; }
4145 if ${ac_cv_search_clock_gettime+:} false; then :
4146 $as_echo_n "(cached) " >&6
4148 ac_func_search_save_LIBS=$LIBS
4149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4150 /* end confdefs.h. */
4152 /* Override any GCC internal prototype to avoid an error.
4153 Use char because int might match the return type of a GCC
4154 builtin and then its argument prototype would still apply. */
4158 char clock_gettime ();
4162 return clock_gettime ();
4167 for ac_lib in '' rt; do
4168 if test -z "$ac_lib"; then
4169 ac_res="none required"
4172 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4174 if ac_fn_c_try_link "$LINENO"; then :
4175 ac_cv_search_clock_gettime=$ac_res
4177 rm -f core conftest.err conftest.$ac_objext \
4179 if ${ac_cv_search_clock_gettime+:} false; then :
4183 if ${ac_cv_search_clock_gettime+:} false; then :
4186 ac_cv_search_clock_gettime=no
4189 LIBS=$ac_func_search_save_LIBS
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_clock_gettime" >&5
4192 $as_echo "$ac_cv_search_clock_gettime" >&6; }
4193 ac_res=$ac_cv_search_clock_gettime
4194 if test "$ac_res" != no; then :
4195 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4200 ac_config_files="$ac_config_files Makefile darkstat.8"
4202 cat >confcache <<\_ACEOF
4203 # This file is a shell script that caches the results of configure
4204 # tests run on this system so they can be shared between configure
4205 # scripts and configure runs, see configure's option --config-cache.
4206 # It is not useful on other systems. If it contains results you don't
4207 # want to keep, you may remove or edit it.
4209 # config.status only pays attention to the cache file if you give it
4210 # the --recheck option to rerun configure.
4212 # `ac_cv_env_foo' variables (set or unset) will be overridden when
4213 # loading this file, other *unset* `ac_cv_foo' will be assigned the
4218 # The following way of writing the cache mishandles newlines in values,
4219 # but we know of no workaround that is simple, portable, and efficient.
4220 # So, we kill variables containing newlines.
4221 # Ultrix sh set writes to stderr and can't be redirected directly,
4222 # and sets the high bit in the cache file unless we assign to the vars.
4224 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
4225 eval ac_val=\$$ac_var
4229 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
4230 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
4233 _ | IFS | as_nl) ;; #(
4234 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
4235 *) { eval $ac_var=; unset $ac_var;} ;;
4241 case $as_nl`(ac_space=' '; set) 2>&1` in #(
4242 *${as_nl}ac_space=\ *)
4243 # `set' does not quote correctly, so add quotes: double-quote
4244 # substitution turns \\\\ into \\, and sed turns \\ into \.
4247 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
4250 # `set' quotes correctly as required by POSIX, so do not add quotes.
4251 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
4260 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
4262 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
4264 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
4265 if test -w "$cache_file"; then
4266 if test "x$cache_file" != "x/dev/null"; then
4267 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
4268 $as_echo "$as_me: updating cache $cache_file" >&6;}
4269 if test ! -f "$cache_file" || test -h "$cache_file"; then
4270 cat confcache >"$cache_file"
4272 case $cache_file in #(
4274 mv -f confcache "$cache_file"$$ &&
4275 mv -f "$cache_file"$$ "$cache_file" ;; #(
4277 mv -f confcache "$cache_file" ;;
4282 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
4283 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
4288 test "x$prefix" = xNONE && prefix=$ac_default_prefix
4289 # Let make expand exec_prefix.
4290 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
4292 DEFS=-DHAVE_CONFIG_H
4297 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
4298 # 1. Remove the extension, and $U if already installed.
4299 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
4300 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
4301 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
4302 # will be set to the directory where LIBOBJS objects are built.
4303 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
4304 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
4308 LTLIBOBJS=$ac_ltlibobjs
4312 : "${CONFIG_STATUS=./config.status}"
4314 ac_clean_files_save=$ac_clean_files
4315 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
4316 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
4317 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
4319 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
4321 # Generated by $as_me.
4322 # Run this file to recreate the current configuration.
4323 # Compiler output produced by configure, useful for debugging
4324 # configure, is in config.log if it exists.
4330 SHELL=\${CONFIG_SHELL-$SHELL}
4333 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
4334 ## -------------------- ##
4335 ## M4sh Initialization. ##
4336 ## -------------------- ##
4338 # Be more Bourne compatible
4339 DUALCASE=1; export DUALCASE # for MKS sh
4340 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
4343 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
4344 # is contrary to our usage. Disable this feature.
4345 alias -g '${1+"$@"}'='"$@"'
4346 setopt NO_GLOB_SUBST
4348 case `(set -o) 2>/dev/null` in #(
4360 # Printing a long string crashes Solaris 7 /usr/bin/printf.
4361 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
4362 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
4363 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
4364 # Prefer a ksh shell builtin over an external printf program on Solaris,
4365 # but without wasting forks for bash or zsh.
4366 if test -z "$BASH_VERSION$ZSH_VERSION" \
4367 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
4368 as_echo='print -r --'
4369 as_echo_n='print -rn --'
4370 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
4371 as_echo='printf %s\n'
4372 as_echo_n='printf %s'
4374 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
4375 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
4376 as_echo_n='/usr/ucb/echo -n'
4378 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
4379 as_echo_n_body='eval
4383 expr "X$arg" : "X\\(.*\\)$as_nl";
4384 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
4386 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
4388 export as_echo_n_body
4389 as_echo_n='sh -c $as_echo_n_body as_echo'
4392 as_echo='sh -c $as_echo_body as_echo'
4395 # The user is always right.
4396 if test "${PATH_SEPARATOR+set}" != set; then
4398 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
4399 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
4406 # We need space, tab and new line, in precisely that order. Quoting is
4407 # there to prevent editors from complaining about space-tab.
4408 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
4409 # splitting by setting IFS to empty value.)
4412 # Find who we are. Look in the path if we contain no directory separator.
4415 *[\\/]* ) as_myself=$0 ;;
4416 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4420 test -z "$as_dir" && as_dir=.
4421 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
4427 # We did not find ourselves, most probably we were run as `sh COMMAND'
4428 # in which case we are not to be found in the path.
4429 if test "x$as_myself" = x; then
4432 if test ! -f "$as_myself"; then
4433 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
4437 # Unset variables that we do not need and which cause bugs (e.g. in
4438 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
4439 # suppresses any "Segmentation fault" message there. '((' could
4440 # trigger a bug in pdksh 5.2.14.
4441 for as_var in BASH_ENV ENV MAIL MAILPATH
4442 do eval test x\${$as_var+set} = xset \
4443 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
4456 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
4459 # as_fn_error STATUS ERROR [LINENO LOG_FD]
4460 # ----------------------------------------
4461 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
4462 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
4463 # script with STATUS, using 1 if that was 0.
4466 as_status=$1; test $as_status -eq 0 && as_status=1
4468 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
4469 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
4471 $as_echo "$as_me: error: $2" >&2
4472 as_fn_exit $as_status
4476 # as_fn_set_status STATUS
4477 # -----------------------
4478 # Set $? to STATUS, without forking.
4482 } # as_fn_set_status
4486 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
4496 # Portably unset VAR.
4499 { eval $1=; unset $1;}
4501 as_unset=as_fn_unset
4502 # as_fn_append VAR VALUE
4503 # ----------------------
4504 # Append the text in VALUE to the end of the definition contained in VAR. Take
4505 # advantage of any shell optimizations that allow amortized linear growth over
4506 # repeated appends, instead of the typical quadratic growth present in naive
4508 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
4509 eval 'as_fn_append ()
4520 # as_fn_arith ARG...
4521 # ------------------
4522 # Perform arithmetic evaluation on the ARGs, and store the result in the
4523 # global $as_val. Take advantage of shells that can avoid forks. The arguments
4524 # must be portable across $(()) and expr.
4525 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
4526 eval 'as_fn_arith ()
4533 as_val=`expr "$@" || test $? -eq 1`
4538 if expr a : '\(a\)' >/dev/null 2>&1 &&
4539 test "X`expr 00001 : '.*\(...\)'`" = X001; then
4545 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
4546 as_basename=basename
4551 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
4557 as_me=`$as_basename -- "$0" ||
4558 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
4559 X"$0" : 'X\(//\)$' \| \
4560 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
4562 sed '/^.*\/\([^/][^/]*\)\/*$/{
4576 # Avoid depending upon Character Ranges.
4577 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
4578 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
4579 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
4580 as_cr_digits='0123456789'
4581 as_cr_alnum=$as_cr_Letters$as_cr_digits
4583 ECHO_C= ECHO_N= ECHO_T=
4584 case `echo -n x` in #(((((
4586 case `echo 'xy\c'` in
4587 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
4589 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
4596 rm -f conf$$ conf$$.exe conf$$.file
4597 if test -d conf$$.dir; then
4598 rm -f conf$$.dir/conf$$.file
4601 mkdir conf$$.dir 2>/dev/null
4603 if (echo >conf$$.file) 2>/dev/null; then
4604 if ln -s conf$$.file conf$$ 2>/dev/null; then
4606 # ... but there are two gotchas:
4607 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
4608 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
4609 # In both cases, we have to default to `cp -pR'.
4610 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
4612 elif ln conf$$.file conf$$ 2>/dev/null; then
4620 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
4621 rmdir conf$$.dir 2>/dev/null
4626 # Create "$as_dir" as a directory, including parents if necessary.
4631 -*) as_dir=./$as_dir;;
4633 test -d "$as_dir" || eval $as_mkdir_p || {
4637 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
4638 *) as_qdir=$as_dir;;
4640 as_dirs="'$as_qdir' $as_dirs"
4641 as_dir=`$as_dirname -- "$as_dir" ||
4642 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
4643 X"$as_dir" : 'X\(//\)[^/]' \| \
4644 X"$as_dir" : 'X\(//\)$' \| \
4645 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
4646 $as_echo X"$as_dir" |
4647 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
4664 test -d "$as_dir" && break
4666 test -z "$as_dirs" || eval "mkdir $as_dirs"
4667 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
4671 if mkdir -p . 2>/dev/null; then
4672 as_mkdir_p='mkdir -p "$as_dir"'
4674 test -d ./-p && rmdir ./-p
4679 # as_fn_executable_p FILE
4680 # -----------------------
4681 # Test if FILE is an executable regular file.
4682 as_fn_executable_p ()
4684 test -f "$1" && test -x "$1"
4685 } # as_fn_executable_p
4687 as_executable_p=as_fn_executable_p
4689 # Sed expression to map a string onto a valid CPP name.
4690 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
4692 # Sed expression to map a string onto a valid variable name.
4693 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
4697 ## ----------------------------------- ##
4698 ## Main body of $CONFIG_STATUS script. ##
4699 ## ----------------------------------- ##
4701 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
4703 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4704 # Save the log message, to keep $0 and so on meaningful, and to
4705 # report actual input values of CONFIG_FILES etc. instead of their
4706 # values after options handling.
4708 This file was extended by darkstat $as_me 3.0.718, which was
4709 generated by GNU Autoconf 2.69. Invocation command line was
4711 CONFIG_FILES = $CONFIG_FILES
4712 CONFIG_HEADERS = $CONFIG_HEADERS
4713 CONFIG_LINKS = $CONFIG_LINKS
4714 CONFIG_COMMANDS = $CONFIG_COMMANDS
4717 on `(hostname || uname -n) 2>/dev/null | sed 1q`
4722 case $ac_config_files in *"
4723 "*) set x $ac_config_files; shift; ac_config_files=$*;;
4726 case $ac_config_headers in *"
4727 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
4731 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4732 # Files that config.status was made for.
4733 config_files="$ac_config_files"
4734 config_headers="$ac_config_headers"
4738 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4740 \`$as_me' instantiates files and other configuration actions
4741 from templates according to the current configuration. Unless the files
4742 and actions are specified as TAGs, all are instantiated by default.
4744 Usage: $0 [OPTION]... [TAG]...
4746 -h, --help print this help, then exit
4747 -V, --version print version number and configuration settings, then exit
4748 --config print configuration, then exit
4749 -q, --quiet, --silent
4750 do not print progress messages
4751 -d, --debug don't remove temporary files
4752 --recheck update $as_me by reconfiguring in the same conditions
4753 --file=FILE[:TEMPLATE]
4754 instantiate the configuration file FILE
4755 --header=FILE[:TEMPLATE]
4756 instantiate the configuration header FILE
4758 Configuration files:
4761 Configuration headers:
4764 Report bugs to the package provider.
4765 darkstat home page: <http://unix4lyfe.org/darkstat/>."
4768 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4769 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
4771 darkstat config.status 3.0.718
4772 configured by $0, generated by GNU Autoconf 2.69,
4773 with options \\"\$ac_cs_config\\"
4775 Copyright (C) 2012 Free Software Foundation, Inc.
4776 This config.status script is free software; the Free Software Foundation
4777 gives unlimited permission to copy, distribute and modify it."
4782 test -n "\$AWK" || AWK=awk
4785 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4786 # The default lists apply if the user does not specify any file.
4792 ac_option=`expr "X$1" : 'X\([^=]*\)='`
4793 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
4797 ac_option=`expr "X$1" : 'X\([^=]*\)='`
4809 # Handling of the options.
4810 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
4812 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
4813 $as_echo "$ac_cs_version"; exit ;;
4814 --config | --confi | --conf | --con | --co | --c )
4815 $as_echo "$ac_cs_config"; exit ;;
4816 --debug | --debu | --deb | --de | --d | -d )
4818 --file | --fil | --fi | --f )
4821 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
4822 '') as_fn_error $? "missing file argument" ;;
4824 as_fn_append CONFIG_FILES " '$ac_optarg'"
4825 ac_need_defaults=false;;
4826 --header | --heade | --head | --hea )
4829 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
4831 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
4832 ac_need_defaults=false;;
4834 # Conflict between --help and --header
4835 as_fn_error $? "ambiguous option: \`$1'
4836 Try \`$0 --help' for more information.";;
4837 --help | --hel | -h )
4838 $as_echo "$ac_cs_usage"; exit ;;
4839 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
4840 | -silent | --silent | --silen | --sile | --sil | --si | --s)
4844 -*) as_fn_error $? "unrecognized option: \`$1'
4845 Try \`$0 --help' for more information." ;;
4847 *) as_fn_append ac_config_targets " $1"
4848 ac_need_defaults=false ;;
4854 ac_configure_extra_args=
4856 if $ac_cs_silent; then
4858 ac_configure_extra_args="$ac_configure_extra_args --silent"
4862 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4863 if \$ac_cs_recheck; then
4864 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
4866 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
4867 CONFIG_SHELL='$SHELL'
4873 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4877 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
4878 ## Running $as_me. ##
4884 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
4887 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
4889 # Handling of arguments.
4890 for ac_config_target in $ac_config_targets
4892 case $ac_config_target in
4893 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
4894 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
4895 "darkstat.8") CONFIG_FILES="$CONFIG_FILES darkstat.8" ;;
4897 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
4902 # If the user did not use the arguments to specify the items to instantiate,
4903 # then the envvar interface is used. Set only those that are not.
4904 # We use the long form for the default assignment because of an extremely
4905 # bizarre bug on SunOS 4.1.3.
4906 if $ac_need_defaults; then
4907 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
4908 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
4911 # Have a temporary directory for convenience. Make it in the build tree
4912 # simply because there is no reason against having it here, and in addition,
4913 # creating and moving files from /tmp can sometimes cause problems.
4914 # Hook for its removal unless debugging.
4915 # Note that there is a small window in which the directory will not be cleaned:
4916 # after its creation but before its name has been assigned to `$tmp'.
4920 trap 'exit_status=$?
4922 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
4924 trap 'as_fn_exit 1' 1 2 13 15
4926 # Create a (secure) tmp directory for tmp files.
4929 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
4933 tmp=./conf$$-$RANDOM
4934 (umask 077 && mkdir "$tmp")
4935 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
4938 # Set up the scripts for CONFIG_FILES section.
4939 # No need to generate them if there are no CONFIG_FILES.
4940 # This happens for instance with `./config.status config.h'.
4941 if test -n "$CONFIG_FILES"; then
4944 ac_cr=`echo X | tr X '\015'`
4945 # On cygwin, bash can eat \r inside `` if the user requested igncr.
4946 # But we know of no other shell where ac_cr would be empty at this