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