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