1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for collectd 5.5.0.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
7 #
8 #
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
29 ;;
30 esac
31 fi
34 as_nl='
35 '
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
64 '
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
67 fi
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
70 fi
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
78 }
79 fi
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
95 do
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
102 ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
112 fi
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
157 fi
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
173 ;;
174 esac
175 fi
176 "
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
190 else
191 exitcode=1; echo positional parameters were not saved.
192 fi
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
200 test -n \"\${ZSH_VERSION+set}\${BASH_VERSION+set}\" || (
201 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
202 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
203 ECHO=\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO\$ECHO
204 PATH=/empty FPATH=/empty; export PATH FPATH
205 test \"X\`printf %s \$ECHO\`\" = \"X\$ECHO\" \\
206 || test \"X\`print -r -- \$ECHO\`\" = \"X\$ECHO\" ) || exit 1
207 test \$(( 1 + 1 )) = 2 || exit 1"
208 if (eval "$as_required") 2>/dev/null; then :
209 as_have_required=yes
210 else
211 as_have_required=no
212 fi
213 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
215 else
216 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
217 as_found=false
218 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
219 do
220 IFS=$as_save_IFS
221 test -z "$as_dir" && as_dir=.
222 as_found=:
223 case $as_dir in #(
224 /*)
225 for as_base in sh bash ksh sh5; do
226 # Try only shells that exist, to save several forks.
227 as_shell=$as_dir/$as_base
228 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
229 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
230 CONFIG_SHELL=$as_shell as_have_required=yes
231 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
232 break 2
233 fi
234 fi
235 done;;
236 esac
237 as_found=false
238 done
239 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
240 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
241 CONFIG_SHELL=$SHELL as_have_required=yes
242 fi; }
243 IFS=$as_save_IFS
246 if test "x$CONFIG_SHELL" != x; then :
247 export CONFIG_SHELL
248 # We cannot yet assume a decent shell, so we have to provide a
249 # neutralization value for shells without unset; and this also
250 # works around shells that cannot unset nonexistent variables.
251 # Preserve -v and -x to the replacement shell.
252 BASH_ENV=/dev/null
253 ENV=/dev/null
254 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
255 case $- in # ((((
256 *v*x* | *x*v* ) as_opts=-vx ;;
257 *v* ) as_opts=-v ;;
258 *x* ) as_opts=-x ;;
259 * ) as_opts= ;;
260 esac
261 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
262 # Admittedly, this is quite paranoid, since all the known shells bail
263 # out after a failed `exec'.
264 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
265 exit 255
266 fi
268 if test x$as_have_required = xno; then :
269 $as_echo "$0: This script requires a shell more modern than all"
270 $as_echo "$0: the shells that I found on your system."
271 if test x${ZSH_VERSION+set} = xset ; then
272 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
273 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
274 else
275 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
276 $0: including any error possibly output before this
277 $0: message. Then install a modern shell, or manually run
278 $0: the script under such a shell if you do have one."
279 fi
280 exit 1
281 fi
282 fi
283 fi
284 SHELL=${CONFIG_SHELL-/bin/sh}
285 export SHELL
286 # Unset more variables known to interfere with behavior of common tools.
287 CLICOLOR_FORCE= GREP_OPTIONS=
288 unset CLICOLOR_FORCE GREP_OPTIONS
290 ## --------------------- ##
291 ## M4sh Shell Functions. ##
292 ## --------------------- ##
293 # as_fn_unset VAR
294 # ---------------
295 # Portably unset VAR.
296 as_fn_unset ()
297 {
298 { eval $1=; unset $1;}
299 }
300 as_unset=as_fn_unset
302 # as_fn_set_status STATUS
303 # -----------------------
304 # Set $? to STATUS, without forking.
305 as_fn_set_status ()
306 {
307 return $1
308 } # as_fn_set_status
310 # as_fn_exit STATUS
311 # -----------------
312 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
313 as_fn_exit ()
314 {
315 set +e
316 as_fn_set_status $1
317 exit $1
318 } # as_fn_exit
320 # as_fn_mkdir_p
321 # -------------
322 # Create "$as_dir" as a directory, including parents if necessary.
323 as_fn_mkdir_p ()
324 {
326 case $as_dir in #(
327 -*) as_dir=./$as_dir;;
328 esac
329 test -d "$as_dir" || eval $as_mkdir_p || {
330 as_dirs=
331 while :; do
332 case $as_dir in #(
333 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
334 *) as_qdir=$as_dir;;
335 esac
336 as_dirs="'$as_qdir' $as_dirs"
337 as_dir=`$as_dirname -- "$as_dir" ||
338 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
339 X"$as_dir" : 'X\(//\)[^/]' \| \
340 X"$as_dir" : 'X\(//\)$' \| \
341 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
342 $as_echo X"$as_dir" |
343 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
344 s//\1/
345 q
346 }
347 /^X\(\/\/\)[^/].*/{
348 s//\1/
349 q
350 }
351 /^X\(\/\/\)$/{
352 s//\1/
353 q
354 }
355 /^X\(\/\).*/{
356 s//\1/
357 q
358 }
359 s/.*/./; q'`
360 test -d "$as_dir" && break
361 done
362 test -z "$as_dirs" || eval "mkdir $as_dirs"
363 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
366 } # as_fn_mkdir_p
368 # as_fn_executable_p FILE
369 # -----------------------
370 # Test if FILE is an executable regular file.
371 as_fn_executable_p ()
372 {
373 test -f "$1" && test -x "$1"
374 } # as_fn_executable_p
375 # as_fn_append VAR VALUE
376 # ----------------------
377 # Append the text in VALUE to the end of the definition contained in VAR. Take
378 # advantage of any shell optimizations that allow amortized linear growth over
379 # repeated appends, instead of the typical quadratic growth present in naive
380 # implementations.
381 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
382 eval 'as_fn_append ()
383 {
384 eval $1+=\$2
385 }'
386 else
387 as_fn_append ()
388 {
389 eval $1=\$$1\$2
390 }
391 fi # as_fn_append
393 # as_fn_arith ARG...
394 # ------------------
395 # Perform arithmetic evaluation on the ARGs, and store the result in the
396 # global $as_val. Take advantage of shells that can avoid forks. The arguments
397 # must be portable across $(()) and expr.
398 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
399 eval 'as_fn_arith ()
400 {
401 as_val=$(( $* ))
402 }'
403 else
404 as_fn_arith ()
405 {
406 as_val=`expr "$@" || test $? -eq 1`
407 }
408 fi # as_fn_arith
411 # as_fn_error STATUS ERROR [LINENO LOG_FD]
412 # ----------------------------------------
413 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
414 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
415 # script with STATUS, using 1 if that was 0.
416 as_fn_error ()
417 {
418 as_status=$1; test $as_status -eq 0 && as_status=1
419 if test "$4"; then
420 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
421 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
422 fi
423 $as_echo "$as_me: error: $2" >&2
424 as_fn_exit $as_status
425 } # as_fn_error
427 if expr a : '\(a\)' >/dev/null 2>&1 &&
428 test "X`expr 00001 : '.*\(...\)'`" = X001; then
429 as_expr=expr
430 else
431 as_expr=false
432 fi
434 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
435 as_basename=basename
436 else
437 as_basename=false
438 fi
440 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
441 as_dirname=dirname
442 else
443 as_dirname=false
444 fi
446 as_me=`$as_basename -- "$0" ||
447 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
448 X"$0" : 'X\(//\)$' \| \
449 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
450 $as_echo X/"$0" |
451 sed '/^.*\/\([^/][^/]*\)\/*$/{
452 s//\1/
453 q
454 }
455 /^X\/\(\/\/\)$/{
456 s//\1/
457 q
458 }
459 /^X\/\(\/\).*/{
460 s//\1/
461 q
462 }
463 s/.*/./; q'`
465 # Avoid depending upon Character Ranges.
466 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
467 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
468 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
469 as_cr_digits='0123456789'
470 as_cr_alnum=$as_cr_Letters$as_cr_digits
473 as_lineno_1=$LINENO as_lineno_1a=$LINENO
474 as_lineno_2=$LINENO as_lineno_2a=$LINENO
475 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
476 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
477 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
478 sed -n '
479 p
480 /[$]LINENO/=
481 ' <$as_myself |
482 sed '
483 s/[$]LINENO.*/&-/
484 t lineno
485 b
486 :lineno
487 N
488 :loop
489 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
490 t loop
491 s/-\n.*//
492 ' >$as_me.lineno &&
493 chmod +x "$as_me.lineno" ||
494 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
496 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
497 # already done that, so ensure we don't try to do so again and fall
498 # in an infinite loop. This has already happened in practice.
499 _as_can_reexec=no; export _as_can_reexec
500 # Don't try to exec as it changes $[0], causing all sort of problems
501 # (the dirname of $[0] is not the place where we might find the
502 # original and so on. Autoconf is especially sensitive to this).
503 . "./$as_me.lineno"
504 # Exit status is that of the last command.
505 exit
506 }
508 ECHO_C= ECHO_N= ECHO_T=
509 case `echo -n x` in #(((((
510 -n*)
511 case `echo 'xy\c'` in
512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
513 xy) ECHO_C='\c';;
514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
515 ECHO_T=' ';;
516 esac;;
517 *)
518 ECHO_N='-n';;
519 esac
521 rm -f conf$$ conf$$.exe conf$$.file
522 if test -d conf$$.dir; then
523 rm -f conf$$.dir/conf$$.file
524 else
525 rm -f conf$$.dir
526 mkdir conf$$.dir 2>/dev/null
527 fi
528 if (echo >conf$$.file) 2>/dev/null; then
529 if ln -s conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s='ln -s'
531 # ... but there are two gotchas:
532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
534 # In both cases, we have to default to `cp -pR'.
535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
536 as_ln_s='cp -pR'
537 elif ln conf$$.file conf$$ 2>/dev/null; then
538 as_ln_s=ln
539 else
540 as_ln_s='cp -pR'
541 fi
542 else
543 as_ln_s='cp -pR'
544 fi
545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
546 rmdir conf$$.dir 2>/dev/null
548 if mkdir -p . 2>/dev/null; then
549 as_mkdir_p='mkdir -p "$as_dir"'
550 else
551 test -d ./-p && rmdir ./-p
552 as_mkdir_p=false
553 fi
555 as_test_x='test -x'
556 as_executable_p=as_fn_executable_p
558 # Sed expression to map a string onto a valid CPP name.
559 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
561 # Sed expression to map a string onto a valid variable name.
562 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
564 lt_ltdl_dir='libltdl'
566 SHELL=${CONFIG_SHELL-/bin/sh}
568 lt_dlopen_dir="$lt_ltdl_dir"
571 test -n "$DJDIR" || exec 7<&0 </dev/null
572 exec 6>&1
574 # Name of the host.
575 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
576 # so uname gets run too.
577 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
579 #
580 # Initializations.
581 #
582 ac_default_prefix=/usr/local
583 ac_clean_files=
584 ac_config_libobj_dir=.
585 LIBOBJS=
586 cross_compiling=no
587 subdirs=
588 MFLAGS=
589 MAKEFLAGS=
591 # Identity of this package.
592 PACKAGE_NAME='collectd'
593 PACKAGE_TARNAME='collectd'
594 PACKAGE_VERSION='5.5.0'
595 PACKAGE_STRING='collectd 5.5.0'
596 PACKAGE_BUGREPORT=''
597 PACKAGE_URL=''
599 ac_unique_file="src/"
600 # Factoring default headers for most tests.
601 ac_includes_default="\
602 #include <stdio.h>
603 #ifdef HAVE_SYS_TYPES_H
604 # include <sys/types.h>
605 #endif
606 #ifdef HAVE_SYS_STAT_H
607 # include <sys/stat.h>
608 #endif
609 #ifdef STDC_HEADERS
610 # include <stdlib.h>
611 # include <stddef.h>
612 #else
613 # ifdef HAVE_STDLIB_H
614 # include <stdlib.h>
615 # endif
616 #endif
617 #ifdef HAVE_STRING_H
618 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
619 # include <memory.h>
620 # endif
621 # include <string.h>
622 #endif
623 #ifdef HAVE_STRINGS_H
624 # include <strings.h>
625 #endif
626 #ifdef HAVE_INTTYPES_H
627 # include <inttypes.h>
628 #endif
629 #ifdef HAVE_STDINT_H
630 # include <stdint.h>
631 #endif
632 #ifdef HAVE_UNISTD_H
633 # include <unistd.h>
634 #endif"
636 enable_option_checking=no
637 ac_default_prefix="/opt/collectd"
638 ac_subst_vars='am__EXEEXT_FALSE
639 am__EXEEXT_TRUE
640 ltdl_LTLIBOBJS
641 ltdl_LIBOBJS
642 LTLIBOBJS
643 LIBOBJS
644 LCC_VERSION_STRING
645 LCC_VERSION_EXTRA
646 LCC_VERSION_PATCH
647 LCC_VERSION_MINOR
648 LCC_VERSION_MAJOR
649 PERL_BINDINGS_OPTIONS
650 PERL_BINDINGS
651 LOAD_PLUGIN_CSV
652 LOAD_PLUGIN_NETWORK
653 LOAD_PLUGIN_RRDTOOL
654 DEFAULT_LOG_LEVEL
655 LOAD_PLUGIN_LOG_LOGSTASH
656 LOAD_PLUGIN_LOGFILE
657 LOAD_PLUGIN_SYSLOG
658 BUILD_PLUGIN_ZOOKEEPER_FALSE
659 BUILD_PLUGIN_ZOOKEEPER_TRUE
660 BUILD_PLUGIN_ZFS_ARC_FALSE
661 BUILD_PLUGIN_ZFS_ARC_TRUE
662 BUILD_PLUGIN_XMMS_FALSE
663 BUILD_PLUGIN_XMMS_TRUE
664 BUILD_PLUGIN_WRITE_TSDB_FALSE
665 BUILD_PLUGIN_WRITE_TSDB_TRUE
666 BUILD_PLUGIN_WRITE_SENSU_FALSE
667 BUILD_PLUGIN_WRITE_SENSU_TRUE
668 BUILD_PLUGIN_WRITE_RIEMANN_FALSE
669 BUILD_PLUGIN_WRITE_RIEMANN_TRUE
670 BUILD_PLUGIN_WRITE_REDIS_FALSE
671 BUILD_PLUGIN_WRITE_REDIS_TRUE
672 BUILD_PLUGIN_WRITE_MONGODB_FALSE
673 BUILD_PLUGIN_WRITE_MONGODB_TRUE
674 BUILD_PLUGIN_WRITE_LOG_FALSE
675 BUILD_PLUGIN_WRITE_LOG_TRUE
676 BUILD_PLUGIN_WRITE_KAFKA_FALSE
677 BUILD_PLUGIN_WRITE_KAFKA_TRUE
678 BUILD_PLUGIN_WRITE_HTTP_FALSE
679 BUILD_PLUGIN_WRITE_HTTP_TRUE
680 BUILD_PLUGIN_WRITE_GRAPHITE_FALSE
681 BUILD_PLUGIN_WRITE_GRAPHITE_TRUE
682 BUILD_PLUGIN_WIRELESS_FALSE
683 BUILD_PLUGIN_WIRELESS_TRUE
684 BUILD_PLUGIN_VSERVER_FALSE
685 BUILD_PLUGIN_VSERVER_TRUE
686 BUILD_PLUGIN_VMEM_FALSE
687 BUILD_PLUGIN_VMEM_TRUE
688 BUILD_PLUGIN_VIRT_FALSE
689 BUILD_PLUGIN_VIRT_TRUE
690 BUILD_PLUGIN_VARNISH_FALSE
691 BUILD_PLUGIN_VARNISH_TRUE
692 BUILD_PLUGIN_UUID_FALSE
693 BUILD_PLUGIN_UUID_TRUE
694 BUILD_PLUGIN_USERS_FALSE
695 BUILD_PLUGIN_USERS_TRUE
696 BUILD_PLUGIN_UPTIME_FALSE
697 BUILD_PLUGIN_UPTIME_TRUE
698 BUILD_PLUGIN_UNIXSOCK_FALSE
699 BUILD_PLUGIN_UNIXSOCK_TRUE
700 BUILD_PLUGIN_TURBOSTAT_FALSE
701 BUILD_PLUGIN_TURBOSTAT_TRUE
702 BUILD_PLUGIN_TOKYOTYRANT_FALSE
703 BUILD_PLUGIN_TOKYOTYRANT_TRUE
704 BUILD_PLUGIN_THRESHOLD_FALSE
705 BUILD_PLUGIN_THRESHOLD_TRUE
706 BUILD_PLUGIN_THERMAL_FALSE
707 BUILD_PLUGIN_THERMAL_TRUE
708 BUILD_PLUGIN_TED_FALSE
709 BUILD_PLUGIN_TED_TRUE
710 BUILD_PLUGIN_TEAMSPEAK2_FALSE
711 BUILD_PLUGIN_TEAMSPEAK2_TRUE
712 BUILD_PLUGIN_TCPCONNS_FALSE
713 BUILD_PLUGIN_TCPCONNS_TRUE
714 BUILD_PLUGIN_TARGET_V5UPGRADE_FALSE
715 BUILD_PLUGIN_TARGET_V5UPGRADE_TRUE
716 BUILD_PLUGIN_TARGET_SET_FALSE
717 BUILD_PLUGIN_TARGET_SET_TRUE
718 BUILD_PLUGIN_TARGET_SCALE_FALSE
719 BUILD_PLUGIN_TARGET_SCALE_TRUE
720 BUILD_PLUGIN_TARGET_REPLACE_FALSE
721 BUILD_PLUGIN_TARGET_REPLACE_TRUE
722 BUILD_PLUGIN_TARGET_NOTIFICATION_FALSE
723 BUILD_PLUGIN_TARGET_NOTIFICATION_TRUE
724 BUILD_PLUGIN_TAPE_FALSE
725 BUILD_PLUGIN_TAPE_TRUE
726 BUILD_PLUGIN_TAIL_CSV_FALSE
727 BUILD_PLUGIN_TAIL_CSV_TRUE
728 BUILD_PLUGIN_TAIL_FALSE
729 BUILD_PLUGIN_TAIL_TRUE
730 BUILD_PLUGIN_TABLE_FALSE
731 BUILD_PLUGIN_TABLE_TRUE
732 BUILD_PLUGIN_SYSLOG_FALSE
733 BUILD_PLUGIN_SYSLOG_TRUE
734 BUILD_PLUGIN_SWAP_FALSE
735 BUILD_PLUGIN_SWAP_TRUE
736 BUILD_PLUGIN_STATSD_FALSE
737 BUILD_PLUGIN_STATSD_TRUE
738 BUILD_PLUGIN_SNMP_FALSE
739 BUILD_PLUGIN_SNMP_TRUE
740 BUILD_PLUGIN_SMART_FALSE
741 BUILD_PLUGIN_SMART_TRUE
742 BUILD_PLUGIN_SIGROK_FALSE
743 BUILD_PLUGIN_SIGROK_TRUE
744 BUILD_PLUGIN_SERIAL_FALSE
745 BUILD_PLUGIN_SERIAL_TRUE
746 BUILD_PLUGIN_SENSORS_FALSE
747 BUILD_PLUGIN_SENSORS_TRUE
748 BUILD_PLUGIN_RRDTOOL_FALSE
749 BUILD_PLUGIN_RRDTOOL_TRUE
750 BUILD_PLUGIN_RRDCACHED_FALSE
751 BUILD_PLUGIN_RRDCACHED_TRUE
752 BUILD_PLUGIN_ROUTEROS_FALSE
753 BUILD_PLUGIN_ROUTEROS_TRUE
754 BUILD_PLUGIN_REDIS_FALSE
755 BUILD_PLUGIN_REDIS_TRUE
756 BUILD_PLUGIN_PYTHON_FALSE
757 BUILD_PLUGIN_PYTHON_TRUE
758 BUILD_PLUGIN_PROTOCOLS_FALSE
759 BUILD_PLUGIN_PROTOCOLS_TRUE
760 BUILD_PLUGIN_PROCESSES_FALSE
761 BUILD_PLUGIN_PROCESSES_TRUE
762 BUILD_PLUGIN_POWERDNS_FALSE
763 BUILD_PLUGIN_POWERDNS_TRUE
764 BUILD_PLUGIN_POSTGRESQL_FALSE
765 BUILD_PLUGIN_POSTGRESQL_TRUE
766 BUILD_PLUGIN_PING_FALSE
767 BUILD_PLUGIN_PING_TRUE
768 BUILD_PLUGIN_PINBA_FALSE
769 BUILD_PLUGIN_PINBA_TRUE
770 BUILD_PLUGIN_PF_FALSE
771 BUILD_PLUGIN_PF_TRUE
772 BUILD_PLUGIN_PERL_FALSE
773 BUILD_PLUGIN_PERL_TRUE
774 BUILD_PLUGIN_ORACLE_FALSE
775 BUILD_PLUGIN_ORACLE_TRUE
776 BUILD_PLUGIN_OPENVPN_FALSE
777 BUILD_PLUGIN_OPENVPN_TRUE
778 BUILD_PLUGIN_OPENLDAP_FALSE
779 BUILD_PLUGIN_OPENLDAP_TRUE
780 BUILD_PLUGIN_ONEWIRE_FALSE
781 BUILD_PLUGIN_ONEWIRE_TRUE
782 BUILD_PLUGIN_OLSRD_FALSE
783 BUILD_PLUGIN_OLSRD_TRUE
784 BUILD_PLUGIN_NUT_FALSE
785 BUILD_PLUGIN_NUT_TRUE
786 BUILD_PLUGIN_NUMA_FALSE
787 BUILD_PLUGIN_NUMA_TRUE
788 BUILD_PLUGIN_NTPD_FALSE
789 BUILD_PLUGIN_NTPD_TRUE
790 BUILD_PLUGIN_NOTIFY_EMAIL_FALSE
791 BUILD_PLUGIN_NOTIFY_EMAIL_TRUE
792 BUILD_PLUGIN_NOTIFY_DESKTOP_FALSE
793 BUILD_PLUGIN_NOTIFY_DESKTOP_TRUE
794 BUILD_PLUGIN_NGINX_FALSE
795 BUILD_PLUGIN_NGINX_TRUE
796 BUILD_PLUGIN_NFS_FALSE
797 BUILD_PLUGIN_NFS_TRUE
798 BUILD_PLUGIN_NETWORK_FALSE
799 BUILD_PLUGIN_NETWORK_TRUE
800 BUILD_PLUGIN_NETLINK_FALSE
801 BUILD_PLUGIN_NETLINK_TRUE
802 BUILD_PLUGIN_NETAPP_FALSE
803 BUILD_PLUGIN_NETAPP_TRUE
804 BUILD_PLUGIN_MYSQL_FALSE
805 BUILD_PLUGIN_MYSQL_TRUE
806 BUILD_PLUGIN_MULTIMETER_FALSE
807 BUILD_PLUGIN_MULTIMETER_TRUE
808 BUILD_PLUGIN_MODBUS_FALSE
809 BUILD_PLUGIN_MODBUS_TRUE
810 BUILD_PLUGIN_MIC_FALSE
811 BUILD_PLUGIN_MIC_TRUE
812 BUILD_PLUGIN_MEMORY_FALSE
813 BUILD_PLUGIN_MEMORY_TRUE
814 BUILD_PLUGIN_MEMCACHED_FALSE
815 BUILD_PLUGIN_MEMCACHED_TRUE
816 BUILD_PLUGIN_MEMCACHEC_FALSE
817 BUILD_PLUGIN_MEMCACHEC_TRUE
818 BUILD_PLUGIN_MD_FALSE
819 BUILD_PLUGIN_MD_TRUE
820 BUILD_PLUGIN_MBMON_FALSE
821 BUILD_PLUGIN_MBMON_TRUE
822 BUILD_PLUGIN_MATCH_VALUE_FALSE
823 BUILD_PLUGIN_MATCH_VALUE_TRUE
824 BUILD_PLUGIN_MATCH_TIMEDIFF_FALSE
825 BUILD_PLUGIN_MATCH_TIMEDIFF_TRUE
826 BUILD_PLUGIN_MATCH_REGEX_FALSE
827 BUILD_PLUGIN_MATCH_REGEX_TRUE
828 BUILD_PLUGIN_MATCH_HASHED_FALSE
829 BUILD_PLUGIN_MATCH_HASHED_TRUE
830 BUILD_PLUGIN_MATCH_EMPTY_COUNTER_FALSE
831 BUILD_PLUGIN_MATCH_EMPTY_COUNTER_TRUE
832 BUILD_PLUGIN_MADWIFI_FALSE
833 BUILD_PLUGIN_MADWIFI_TRUE
834 BUILD_PLUGIN_LVM_FALSE
835 BUILD_PLUGIN_LVM_TRUE
836 BUILD_PLUGIN_LPAR_FALSE
837 BUILD_PLUGIN_LPAR_TRUE
838 BUILD_PLUGIN_LOG_LOGSTASH_FALSE
839 BUILD_PLUGIN_LOG_LOGSTASH_TRUE
840 BUILD_PLUGIN_LOGFILE_FALSE
841 BUILD_PLUGIN_LOGFILE_TRUE
842 BUILD_PLUGIN_LOAD_FALSE
843 BUILD_PLUGIN_LOAD_TRUE
844 BUILD_PLUGIN_JAVA_FALSE
845 BUILD_PLUGIN_JAVA_TRUE
846 BUILD_PLUGIN_IRQ_FALSE
847 BUILD_PLUGIN_IRQ_TRUE
848 BUILD_PLUGIN_IPVS_FALSE
849 BUILD_PLUGIN_IPVS_TRUE
850 BUILD_PLUGIN_IPTABLES_FALSE
851 BUILD_PLUGIN_IPTABLES_TRUE
852 BUILD_PLUGIN_IPMI_FALSE
853 BUILD_PLUGIN_IPMI_TRUE
854 BUILD_PLUGIN_IPC_FALSE
855 BUILD_PLUGIN_IPC_TRUE
856 BUILD_PLUGIN_INTERFACE_FALSE
857 BUILD_PLUGIN_INTERFACE_TRUE
858 BUILD_PLUGIN_HDDTEMP_FALSE
859 BUILD_PLUGIN_HDDTEMP_TRUE
860 BUILD_PLUGIN_GMOND_FALSE
861 BUILD_PLUGIN_GMOND_TRUE
862 BUILD_PLUGIN_FSCACHE_FALSE
863 BUILD_PLUGIN_FSCACHE_TRUE
864 BUILD_PLUGIN_FILECOUNT_FALSE
865 BUILD_PLUGIN_FILECOUNT_TRUE
866 BUILD_PLUGIN_FHCOUNT_FALSE
867 BUILD_PLUGIN_FHCOUNT_TRUE
868 BUILD_PLUGIN_EXEC_FALSE
869 BUILD_PLUGIN_EXEC_TRUE
870 BUILD_PLUGIN_ETHSTAT_FALSE
871 BUILD_PLUGIN_ETHSTAT_TRUE
872 BUILD_PLUGIN_ENTROPY_FALSE
873 BUILD_PLUGIN_ENTROPY_TRUE
874 BUILD_PLUGIN_EMAIL_FALSE
875 BUILD_PLUGIN_EMAIL_TRUE
876 BUILD_PLUGIN_DNS_FALSE
877 BUILD_PLUGIN_DNS_TRUE
878 BUILD_PLUGIN_DRBD_FALSE
879 BUILD_PLUGIN_DRBD_TRUE
880 BUILD_PLUGIN_DISK_FALSE
881 BUILD_PLUGIN_DISK_TRUE
882 BUILD_PLUGIN_DF_FALSE
883 BUILD_PLUGIN_DF_TRUE
884 BUILD_PLUGIN_DBI_FALSE
885 BUILD_PLUGIN_DBI_TRUE
886 BUILD_PLUGIN_CGROUPS_FALSE
887 BUILD_PLUGIN_CGROUPS_TRUE
888 BUILD_PLUGIN_CURL_XML_FALSE
889 BUILD_PLUGIN_CURL_XML_TRUE
890 BUILD_PLUGIN_CURL_JSON_FALSE
891 BUILD_PLUGIN_CURL_JSON_TRUE
892 BUILD_PLUGIN_CURL_FALSE
893 BUILD_PLUGIN_CURL_TRUE
894 BUILD_PLUGIN_CSV_FALSE
895 BUILD_PLUGIN_CSV_TRUE
896 BUILD_PLUGIN_CPU_FALSE
897 BUILD_PLUGIN_CPU_TRUE
898 BUILD_PLUGIN_CPUFREQ_FALSE
899 BUILD_PLUGIN_CPUFREQ_TRUE
900 BUILD_PLUGIN_CONTEXTSWITCH_FALSE
901 BUILD_PLUGIN_CONTEXTSWITCH_TRUE
902 BUILD_PLUGIN_CONNTRACK_FALSE
903 BUILD_PLUGIN_CONNTRACK_TRUE
904 BUILD_PLUGIN_CEPH_FALSE
905 BUILD_PLUGIN_CEPH_TRUE
906 BUILD_PLUGIN_BIND_FALSE
907 BUILD_PLUGIN_BIND_TRUE
908 BUILD_PLUGIN_BATTERY_FALSE
909 BUILD_PLUGIN_BATTERY_TRUE
910 BUILD_PLUGIN_BAROMETER_FALSE
911 BUILD_PLUGIN_BAROMETER_TRUE
912 BUILD_PLUGIN_ASCENT_FALSE
913 BUILD_PLUGIN_ASCENT_TRUE
914 BUILD_PLUGIN_AQUAERO_FALSE
915 BUILD_PLUGIN_AQUAERO_TRUE
916 BUILD_PLUGIN_APPLE_SENSORS_FALSE
917 BUILD_PLUGIN_APPLE_SENSORS_TRUE
918 BUILD_PLUGIN_APCUPS_FALSE
919 BUILD_PLUGIN_APCUPS_TRUE
920 BUILD_PLUGIN_APACHE_FALSE
921 BUILD_PLUGIN_APACHE_TRUE
922 BUILD_PLUGIN_AMQP_FALSE
923 BUILD_PLUGIN_AMQP_TRUE
924 BUILD_PLUGIN_AGGREGATION_FALSE
925 BUILD_PLUGIN_AGGREGATION_TRUE
926 BUILD_FEATURE_GETIFADDRS_FALSE
927 BUILD_FEATURE_GETIFADDRS_TRUE
928 BUILD_FEATURE_DAEMON_FALSE
929 BUILD_FEATURE_DAEMON_TRUE
930 BUILD_FEATURE_DEBUG_FALSE
931 BUILD_FEATURE_DEBUG_TRUE
932 LIBNOTIFY_LIBS
933 LIBNOTIFY_CFLAGS
934 BUILD_WITH_LIBATASMART_FALSE
935 BUILD_WITH_LIBATASMART_TRUE
936 BUILD_WITH_LIBATASMART_LIBS
937 BUILD_WITH_LIBATASMART_LDFLAGS
938 BUILD_WITH_LIBATASMART_CPPFLAGS
939 BUILD_WITH_OPENIPMI_LIBS
940 BUILD_WITH_OPENIPMI_CFLAGS
941 BUILD_WITH_LIBVIRT_LIBS
942 BUILD_WITH_LIBVIRT_CFLAGS
943 BUILD_WITH_LIBXML2_LIBS
944 BUILD_WITH_LIBXML2_CFLAGS
945 BUILD_WITH_LIBVARNISH_LIBS
946 BUILD_WITH_LIBVARNISH_CFLAGS
947 BUILD_WITH_MIC_LDADD
948 BUILD_WITH_MIC_LIBPATH
949 BUILD_WITH_MIC_CPPFLAGS
950 BUILD_WITH_LIBYAJL_FALSE
951 BUILD_WITH_LIBYAJL_TRUE
952 BUILD_WITH_LIBYAJL_LIBS
953 BUILD_WITH_LIBYAJL_LDFLAGS
954 BUILD_WITH_LIBYAJL_CPPFLAGS
955 BUILD_WITH_LIBXMMS_FALSE
956 BUILD_WITH_LIBXMMS_TRUE
957 BUILD_WITH_LIBXMMS_LIBS
958 BUILD_WITH_LIBXMMS_CFLAGS
959 BUILD_WITH_LIBUPSCLIENT_LIBS
960 BUILD_WITH_LIBUPSCLIENT_CFLAGS
961 BUILD_WITH_LIBUDEV_FALSE
962 BUILD_WITH_LIBUDEV_TRUE
963 BUILD_WITH_LIBUDEV_LDFLAGS
964 BUILD_WITH_LIBUDEV_CFLAGS
965 BUILD_WITH_LIBTOKYOTYRANT_FALSE
966 BUILD_WITH_LIBTOKYOTYRANT_TRUE
967 BUILD_WITH_LIBTOKYOTYRANT_LIBS
968 BUILD_WITH_LIBTOKYOTYRANT_LDFLAGS
969 BUILD_WITH_LIBTOKYOTYRANT_CPPFLAGS
970 BUILD_WITH_LIBSTATGRAB_LDFLAGS
971 BUILD_WITH_LIBSTATGRAB_CFLAGS
972 BUILD_WITH_LIBSTATGRAB_FALSE
973 BUILD_WITH_LIBSTATGRAB_TRUE
974 BUILD_WITH_LIBSIGROK_FALSE
975 BUILD_WITH_LIBSIGROK_TRUE
976 BUILD_WITH_LIBSIGROK_LDFLAGS
977 BUILD_WITH_LIBSIGROK_CFLAGS
978 GLIB_COMPILE_RESOURCES
979 GLIB_MKENUMS
980 GOBJECT_QUERY
981 GLIB_GENMARSHAL
982 GLIB_LIBS
983 GLIB_CFLAGS
984 BUILD_WITH_LM_SENSORS_FALSE
985 BUILD_WITH_LM_SENSORS_TRUE
986 BUILD_WITH_LIBSENSORS_LDFLAGS
987 BUILD_WITH_LIBSENSORS_CFLAGS
988 BUILD_WITH_LIBRRD_LDFLAGS
989 BUILD_WITH_LIBRRD_CFLAGS
990 BUILD_WITH_LIBROUTEROS_FALSE
991 BUILD_WITH_LIBROUTEROS_TRUE
992 BUILD_WITH_LIBROUTEROS_LDFLAGS
993 BUILD_WITH_LIBROUTEROS_CPPFLAGS
994 BUILD_WITH_LIBRDKAFKA_FALSE
995 BUILD_WITH_LIBRDKAFKA_TRUE
996 BUILD_WITH_LIBRDKAFKA_LIBS
997 BUILD_WITH_LIBRDKAFKA_LDFLAGS
998 BUILD_WITH_LIBRDKAFKA_CPPFLAGS
999 BUILD_WITH_LIBRABBITMQ_FALSE
1000 BUILD_WITH_LIBRABBITMQ_TRUE
1001 BUILD_WITH_LIBRABBITMQ_LIBS
1002 BUILD_WITH_LIBRABBITMQ_LDFLAGS
1003 BUILD_WITH_LIBRABBITMQ_CPPFLAGS
1004 BUILD_WITH_PYTHON_LIBS
1005 BUILD_WITH_PYTHON_LDFLAGS
1006 BUILD_WITH_PYTHON_CPPFLAGS
1007 BUILD_WITH_LIBPTHREAD_FALSE
1008 BUILD_WITH_LIBPTHREAD_TRUE
1009 BUILD_WITH_LIBPQ_FALSE
1010 BUILD_WITH_LIBPQ_TRUE
1011 BUILD_WITH_LIBPQ_LDFLAGS
1012 BUILD_WITH_LIBPQ_CPPFLAGS
1013 HAVE_BROKEN_PERL_LOAD_MODULE_FALSE
1014 HAVE_BROKEN_PERL_LOAD_MODULE_TRUE
1015 BUILD_WITH_LIBPERL_FALSE
1016 BUILD_WITH_LIBPERL_TRUE
1017 PERL_LIBS
1018 PERL_CFLAGS
1019 PERL
1020 BUILD_WITH_LIBPCAP_FALSE
1021 BUILD_WITH_LIBPCAP_TRUE
1022 BUILD_WITH_LIBOWCAPI_LIBS
1023 BUILD_WITH_LIBOWCAPI_CPPFLAGS
1024 BUILD_WITH_ORACLE_LIBS
1025 BUILD_WITH_ORACLE_CFLAGS
1026 BUILD_WITH_LIBOPING_FALSE
1027 BUILD_WITH_LIBOPING_TRUE
1028 BUILD_WITH_LIBOPING_LDFLAGS
1029 BUILD_WITH_LIBOPING_CPPFLAGS
1030 BUILD_WITH_OWN_LIBOCONFIG_FALSE
1031 BUILD_WITH_OWN_LIBOCONFIG_TRUE
1032 BUILD_WITH_LIBNETSNMP_FALSE
1033 BUILD_WITH_LIBNETSNMP_TRUE
1034 BUILD_WITH_LIBSNMP_LIBS
1035 BUILD_WITH_LIBSNMP_CFLAGS
1036 BUILD_WITH_LIBNETAPP_FALSE
1037 BUILD_WITH_LIBNETAPP_TRUE
1038 LIBNETAPP_LIBS
1039 LIBNETAPP_LDFLAGS
1040 LIBNETAPP_CPPFLAGS
1041 BUILD_WITH_LIBMNL_FALSE
1042 BUILD_WITH_LIBMNL_TRUE
1043 BUILD_WITH_LIBMNL_LIBS
1044 BUILD_WITH_LIBMNL_CFLAGS
1045 BUILD_WITH_LIBMYSQL_FALSE
1046 BUILD_WITH_LIBMYSQL_TRUE
1047 BUILD_WITH_LIBMYSQL_LIBS
1048 BUILD_WITH_LIBMYSQL_CFLAGS
1049 BUILD_WITH_LIBMONGOC_FALSE
1050 BUILD_WITH_LIBMONGOC_TRUE
1051 BUILD_WITH_LIBMONGOC_LDFLAGS
1052 BUILD_WITH_LIBMONGOC_CPPFLAGS
1053 BUILD_WITH_LIBMODBUS_LIBS
1054 BUILD_WITH_LIBMODBUS_CFLAGS
1055 BUILD_WITH_LIBMEMCACHED_FALSE
1056 BUILD_WITH_LIBMEMCACHED_TRUE
1057 BUILD_WITH_LIBMEMCACHED_LIBS
1058 BUILD_WITH_LIBMEMCACHED_LDFLAGS
1059 BUILD_WITH_LIBMEMCACHED_CPPFLAGS
1060 BUILD_WITH_LIBLVM2APP_FALSE
1061 BUILD_WITH_LIBLVM2APP_TRUE
1062 BUILD_WITH_LIBLVM2APP_LIBS
1063 BUILD_WITH_LIBLVM2APP_LDFLAGS
1064 BUILD_WITH_LIBLVM2APP_CPPFLAGS
1065 BUILD_WITH_LIBLDAP_FALSE
1066 BUILD_WITH_LIBLDAP_TRUE
1067 BUILD_WITH_LIBLDAP_LDFLAGS
1068 BUILD_WITH_LIBLDAP_CPPFLAGS
1069 BUILD_WITH_JAVA_FALSE
1070 BUILD_WITH_JAVA_TRUE
1071 JAVA_LIBS
1072 JAVA_LDFLAGS
1073 JAVA_CFLAGS
1074 JAVA_CPPFLAGS
1075 JAR
1076 JAVAC
1077 BUILD_WITH_LIBIPTC_LDFLAGS
1078 BUILD_WITH_LIBIPTC_CPPFLAGS
1079 BUILD_WITH_LIBIPTC_FALSE
1080 BUILD_WITH_LIBIPTC_TRUE
1081 BUILD_WITH_LIBGCRYPT_FALSE
1082 BUILD_WITH_LIBGCRYPT_TRUE
1083 GCRYPT_LIBS
1084 GCRYPT_LDFLAGS
1085 GCRYPT_CPPFLAGS
1086 LIBGCRYPT_LIBS
1087 LIBGCRYPT_CFLAGS
1088 LIBGCRYPT_CONFIG
1089 BUILD_WITH_LIBGANGLIA_FALSE
1090 BUILD_WITH_LIBGANGLIA_TRUE
1091 GANGLIA_LIBS
1092 GANGLIA_LDFLAGS
1093 GANGLIA_CPPFLAGS
1094 BUILD_WITH_LIBESMTP_FALSE
1095 BUILD_WITH_LIBESMTP_TRUE
1096 BUILD_WITH_LIBDBI_FALSE
1097 BUILD_WITH_LIBDBI_TRUE
1098 BUILD_WITH_LIBDBI_LIBS
1099 BUILD_WITH_LIBDBI_LDFLAGS
1100 BUILD_WITH_LIBDBI_CPPFLAGS
1101 BUILD_WITH_LIBCURL_FALSE
1102 BUILD_WITH_LIBCURL_TRUE
1103 BUILD_WITH_LIBCURL_LIBS
1104 BUILD_WITH_LIBCURL_CFLAGS
1105 BUILD_WITH_LIBHIREDIS_FALSE
1106 BUILD_WITH_LIBHIREDIS_TRUE
1107 BUILD_WITH_LIBHIREDIS_LDFLAGS
1108 BUILD_WITH_LIBHIREDIS_CPPFLAGS
1109 BUILD_WITH_LIBAQUAERO5_FALSE
1110 BUILD_WITH_LIBAQUAERO5_TRUE
1111 BUILD_WITH_LIBAQUAERO5_LDFLAGS
1112 BUILD_WITH_LIBAQUAERO5_CFLAGS
1113 BUILD_WITH_LIBKVM_OPENFILES_FALSE
1114 BUILD_WITH_LIBKVM_OPENFILES_TRUE
1115 BUILD_WITH_LIBKVM_NLIST_FALSE
1116 BUILD_WITH_LIBKVM_NLIST_TRUE
1117 BUILD_WITH_LIBKVM_GETSWAPINFO_FALSE
1118 BUILD_WITH_LIBKVM_GETSWAPINFO_TRUE
1119 BUILD_WITH_LIBKVM_GETPROCS_FALSE
1120 BUILD_WITH_LIBKVM_GETPROCS_TRUE
1121 BUILD_WITH_LIBIOKIT_FALSE
1122 BUILD_WITH_LIBIOKIT_TRUE
1123 BUILD_WITH_LIBDEVINFO_FALSE
1124 BUILD_WITH_LIBDEVINFO_TRUE
1125 BUILD_WITH_LIBKSTAT_FALSE
1126 BUILD_WITH_LIBKSTAT_TRUE
1127 BUILD_WITH_PERFSTAT_FALSE
1128 BUILD_WITH_PERFSTAT_TRUE
1129 BUILD_WITH_LIBHAL_LIBS
1130 BUILD_WITH_LIBHAL_CFLAGS
1131 BUILD_WITH_LIBRESOLV_FALSE
1132 BUILD_WITH_LIBRESOLV_TRUE
1133 BUILD_WITH_LIBPOSIX4_FALSE
1134 BUILD_WITH_LIBPOSIX4_TRUE
1135 BUILD_WITH_LIBRT_FALSE
1136 BUILD_WITH_LIBRT_TRUE
1137 BUILD_WITH_LIBSOCKET_FALSE
1138 BUILD_WITH_LIBSOCKET_TRUE
1139 IP_VS_H_NEEDS_KERNEL_CFLAGS_FALSE
1140 IP_VS_H_NEEDS_KERNEL_CFLAGS_TRUE
1141 BUILD_FEATURE_STANDARDS_FALSE
1142 BUILD_FEATURE_STANDARDS_TRUE
1143 pkgconfigdir
1144 KERNEL_CFLAGS
1145 KERNEL_DIR
1146 BUILD_FREEBSD_FALSE
1147 BUILD_FREEBSD_TRUE
1148 BUILD_AIX_FALSE
1149 BUILD_AIX_TRUE
1150 BUILD_OPENBSD_FALSE
1151 BUILD_OPENBSD_TRUE
1152 BUILD_DARWIN_FALSE
1153 BUILD_DARWIN_TRUE
1154 BUILD_SOLARIS_FALSE
1155 BUILD_SOLARIS_TRUE
1156 BUILD_LINUX_FALSE
1157 BUILD_LINUX_TRUE
1158 HAVE_PROTOC_C_FALSE
1159 HAVE_PROTOC_C_TRUE
1160 have_protoc_c
1161 PKG_CONFIG_LIBDIR
1162 PKG_CONFIG_PATH
1163 PKG_CONFIG
1164 YFLAGS
1165 YACC
1166 LEXLIB
1167 LEX_OUTPUT_ROOT
1168 LEX
1169 COMPILER_IS_GCC_FALSE
1170 COMPILER_IS_GCC_TRUE
1171 AM_BACKSLASH
1172 AM_DEFAULT_VERBOSITY
1173 AM_DEFAULT_V
1174 AM_V
1175 am__fastdepCC_FALSE
1176 am__fastdepCC_TRUE
1177 CCDEPMODE
1178 am__nodep
1179 AMDEPBACKSLASH
1180 AMDEP_FALSE
1181 AMDEP_TRUE
1182 am__quote
1183 am__include
1184 DEPDIR
1185 am__untar
1186 am__tar
1187 AMTAR
1188 am__leading_dot
1189 SET_MAKE
1190 mkdir_p
1191 MKDIR_P
1192 INSTALL_STRIP_PROGRAM
1193 install_sh
1194 MAKEINFO
1195 AUTOHEADER
1196 AUTOMAKE
1197 AUTOCONF
1198 ACLOCAL
1199 VERSION
1200 PACKAGE
1201 CYGPATH_W
1202 am__isrc
1203 INSTALL_DATA
1204 INSTALL_SCRIPT
1205 INSTALL_PROGRAM
1206 LTDLOPEN
1207 LT_CONFIG_H
1208 subdirs
1209 CONVENIENCE_LTDL_FALSE
1210 CONVENIENCE_LTDL_TRUE
1211 INSTALL_LTDL_FALSE
1212 INSTALL_LTDL_TRUE
1213 ARGZ_H
1214 sys_symbol_underscore
1215 LIBADD_DL
1216 LT_DLPREOPEN
1217 LIBADD_DLD_LINK
1218 LIBADD_SHL_LOAD
1219 LIBADD_DLOPEN
1220 LT_DLLOADERS
1221 INCLTDL
1222 LTDLINCL
1223 LTDLDEPS
1224 LIBLTDL
1225 CPP
1226 OTOOL64
1227 OTOOL
1228 LIPO
1229 NMEDIT
1230 DSYMUTIL
1231 MANIFEST_TOOL
1232 AWK
1233 RANLIB
1234 STRIP
1235 ac_ct_AR
1236 AR
1237 DLLTOOL
1238 OBJDUMP
1239 LN_S
1240 NM
1241 ac_ct_DUMPBIN
1242 DUMPBIN
1243 LD
1244 FGREP
1245 EGREP
1246 GREP
1247 SED
1248 OBJEXT
1249 EXEEXT
1250 ac_ct_CC
1251 CPPFLAGS
1252 LDFLAGS
1253 CFLAGS
1254 CC
1255 host_os
1256 host_vendor
1257 host_cpu
1258 host
1259 build_os
1260 build_vendor
1261 build_cpu
1262 build
1263 LIBTOOL
1264 target_alias
1265 host_alias
1266 build_alias
1267 LIBS
1268 ECHO_T
1269 ECHO_N
1270 ECHO_C
1271 DEFS
1272 mandir
1273 localedir
1274 libdir
1275 psdir
1276 pdfdir
1277 dvidir
1278 htmldir
1279 infodir
1280 docdir
1281 oldincludedir
1282 includedir
1283 localstatedir
1284 sharedstatedir
1285 sysconfdir
1286 datadir
1287 datarootdir
1288 libexecdir
1289 sbindir
1290 bindir
1291 program_transform_name
1292 prefix
1293 exec_prefix
1294 PACKAGE_URL
1295 PACKAGE_BUGREPORT
1296 PACKAGE_STRING
1297 PACKAGE_VERSION
1298 PACKAGE_TARNAME
1299 PACKAGE_NAME
1300 PATH_SEPARATOR
1301 SHELL'
1302 ac_subst_files=''
1303 ac_user_opts='
1304 enable_option_checking
1305 enable_shared
1306 enable_static
1307 with_pic
1308 enable_fast_install
1309 with_gnu_ld
1310 with_sysroot
1311 enable_libtool_lock
1312 with_included_ltdl
1313 with_ltdl_include
1314 with_ltdl_lib
1315 enable_ltdl_install
1316 enable_dependency_tracking
1317 enable_silent_rules
1318 enable_largefile
1319 enable_standards
1320 with_nan_emulation
1321 with_fp_layout
1322 with_useragent
1323 with_libaquaero5
1324 with_libhiredis
1325 with_libcurl
1326 with_libdbi
1327 with_libesmtp
1328 with_libganglia
1329 with_libgcrypt
1330 with_libgcrypt_prefix
1331 with_libiptc
1332 with_java
1333 with_libldap
1334 with_liblvm2app
1335 with_libmemcached
1336 with_libmodbus
1337 with_libmongoc
1338 with_libmysql
1339 with_libmnl
1340 with_libnetapp
1341 with_libnetsnmp
1342 with_liboconfig
1343 with_liboping
1344 with_oracle
1345 with_libowcapi
1346 with_libpcap
1347 with_libperl
1348 with_libpq
1349 with_libpthread
1350 with_python
1351 with_librabbitmq
1352 with_librdkafka
1353 with_librouteros
1354 with_librrd
1355 with_libsensors
1356 with_libsigrok
1357 enable_glibtest
1358 with_libstatgrab
1359 with_libtokyotyrant
1360 with_libudev
1361 with_libupsclient
1362 with_libxmms
1363 with_libyajl
1364 with_mic
1365 with_libvarnish
1366 with_libatasmart
1367 enable_debug
1368 enable_daemon
1369 enable_getifaddrs
1370 enable_all_plugins
1371 enable_aggregation
1372 enable_amqp
1373 enable_apache
1374 enable_apcups
1375 enable_apple_sensors
1376 enable_aquaero
1377 enable_ascent
1378 enable_barometer
1379 enable_battery
1380 enable_bind
1381 enable_ceph
1382 enable_conntrack
1383 enable_contextswitch
1384 enable_cpufreq
1385 enable_cpu
1386 enable_csv
1387 enable_curl
1388 enable_curl_json
1389 enable_curl_xml
1390 enable_cgroups
1391 enable_dbi
1392 enable_df
1393 enable_disk
1394 enable_drbd
1395 enable_dns
1396 enable_email
1397 enable_entropy
1398 enable_ethstat
1399 enable_exec
1400 enable_fhcount
1401 enable_filecount
1402 enable_fscache
1403 enable_gmond
1404 enable_hddtemp
1405 enable_interface
1406 enable_ipc
1407 enable_ipmi
1408 enable_iptables
1409 enable_ipvs
1410 enable_irq
1411 enable_java
1412 enable_load
1413 enable_logfile
1414 enable_log_logstash
1415 enable_lpar
1416 enable_lvm
1417 enable_madwifi
1418 enable_match_empty_counter
1419 enable_match_hashed
1420 enable_match_regex
1421 enable_match_timediff
1422 enable_match_value
1423 enable_mbmon
1424 enable_md
1425 enable_memcachec
1426 enable_memcached
1427 enable_memory
1428 enable_mic
1429 enable_modbus
1430 enable_multimeter
1431 enable_mysql
1432 enable_netapp
1433 enable_netlink
1434 enable_network
1435 enable_nfs
1436 enable_nginx
1437 enable_notify_desktop
1438 enable_notify_email
1439 enable_ntpd
1440 enable_numa
1441 enable_nut
1442 enable_olsrd
1443 enable_onewire
1444 enable_openldap
1445 enable_openvpn
1446 enable_oracle
1447 enable_perl
1448 enable_pf
1449 enable_pinba
1450 enable_ping
1451 enable_postgresql
1452 enable_powerdns
1453 enable_processes
1454 enable_protocols
1455 enable_python
1456 enable_redis
1457 enable_routeros
1458 enable_rrdcached
1459 enable_rrdtool
1460 enable_sensors
1461 enable_serial
1462 enable_sigrok
1463 enable_smart
1464 enable_snmp
1465 enable_statsd
1466 enable_swap
1467 enable_syslog
1468 enable_table
1469 enable_tail
1470 enable_tail_csv
1471 enable_tape
1472 enable_target_notification
1473 enable_target_replace
1474 enable_target_scale
1475 enable_target_set
1476 enable_target_v5upgrade
1477 enable_tcpconns
1478 enable_teamspeak2
1479 enable_ted
1480 enable_thermal
1481 enable_threshold
1482 enable_tokyotyrant
1483 enable_turbostat
1484 enable_unixsock
1485 enable_uptime
1486 enable_users
1487 enable_uuid
1488 enable_varnish
1489 enable_virt
1490 enable_vmem
1491 enable_vserver
1492 enable_wireless
1493 enable_write_graphite
1494 enable_write_http
1495 enable_write_kafka
1496 enable_write_log
1497 enable_write_mongodb
1498 enable_write_redis
1499 enable_write_riemann
1500 enable_write_sensu
1501 enable_write_tsdb
1502 enable_xmms
1503 enable_zfs_arc
1504 enable_zookeeper
1505 with_perl_bindings
1506 '
1507 ac_precious_vars='build_alias
1508 host_alias
1509 target_alias
1510 CC
1511 CFLAGS
1512 LDFLAGS
1513 LIBS
1514 CPPFLAGS
1515 CPP
1516 YACC
1517 YFLAGS
1518 PKG_CONFIG
1519 PKG_CONFIG_PATH
1520 PKG_CONFIG_LIBDIR
1521 KERNEL_DIR
1522 LIBNETAPP_CPPFLAGS
1523 LIBNETAPP_LDFLAGS
1524 LIBNETAPP_LIBS
1525 LIBNOTIFY_CFLAGS
1526 LIBNOTIFY_LIBS'
1527 ac_subdirs_all='libltdl'
1529 # Initialize some variables set by options.
1530 ac_init_help=
1531 ac_init_version=false
1532 ac_unrecognized_opts=
1533 ac_unrecognized_sep=
1534 # The variables have the same names as the options, with
1535 # dashes changed to underlines.
1536 cache_file=/dev/null
1537 exec_prefix=NONE
1538 no_create=
1539 no_recursion=
1540 prefix=NONE
1541 program_prefix=NONE
1542 program_suffix=NONE
1543 program_transform_name=s,x,x,
1544 silent=
1545 site=
1546 srcdir=
1547 verbose=
1548 x_includes=NONE
1549 x_libraries=NONE
1551 # Installation directory options.
1552 # These are left unexpanded so users can "make install exec_prefix=/foo"
1553 # and all the variables that are supposed to be based on exec_prefix
1554 # by default will actually change.
1555 # Use braces instead of parens because sh, perl, etc. also accept them.
1556 # (The list follows the same order as the GNU Coding Standards.)
1557 bindir='${exec_prefix}/bin'
1558 sbindir='${exec_prefix}/sbin'
1559 libexecdir='${exec_prefix}/libexec'
1560 datarootdir='${prefix}/share'
1561 datadir='${datarootdir}'
1562 sysconfdir='${prefix}/etc'
1563 sharedstatedir='${prefix}/com'
1564 localstatedir='${prefix}/var'
1565 includedir='${prefix}/include'
1566 oldincludedir='/usr/include'
1567 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
1568 infodir='${datarootdir}/info'
1569 htmldir='${docdir}'
1570 dvidir='${docdir}'
1571 pdfdir='${docdir}'
1572 psdir='${docdir}'
1573 libdir='${exec_prefix}/lib'
1574 localedir='${datarootdir}/locale'
1575 mandir='${datarootdir}/man'
1577 ac_prev=
1578 ac_dashdash=
1579 for ac_option
1580 do
1581 # If the previous option needs an argument, assign it.
1582 if test -n "$ac_prev"; then
1583 eval $ac_prev=\$ac_option
1584 ac_prev=
1585 continue
1586 fi
1588 case $ac_option in
1589 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1590 *=) ac_optarg= ;;
1591 *) ac_optarg=yes ;;
1592 esac
1594 # Accept the important Cygnus configure options, so we can diagnose typos.
1596 case $ac_dashdash$ac_option in
1597 --)
1598 ac_dashdash=yes ;;
1600 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1601 ac_prev=bindir ;;
1602 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1603 bindir=$ac_optarg ;;
1605 -build | --build | --buil | --bui | --bu)
1606 ac_prev=build_alias ;;
1607 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1608 build_alias=$ac_optarg ;;
1610 -cache-file | --cache-file | --cache-fil | --cache-fi \
1611 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1612 ac_prev=cache_file ;;
1613 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1614 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1615 cache_file=$ac_optarg ;;
1617 --config-cache | -C)
1618 cache_file=config.cache ;;
1620 -datadir | --datadir | --datadi | --datad)
1621 ac_prev=datadir ;;
1622 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1623 datadir=$ac_optarg ;;
1625 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1626 | --dataroo | --dataro | --datar)
1627 ac_prev=datarootdir ;;
1628 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1629 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1630 datarootdir=$ac_optarg ;;
1632 -disable-* | --disable-*)
1633 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1634 # Reject names that are not valid shell variable names.
1635 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1636 as_fn_error $? "invalid feature name: $ac_useropt"
1637 ac_useropt_orig=$ac_useropt
1638 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1639 case $ac_user_opts in
1640 *"
1641 "enable_$ac_useropt"
1642 "*) ;;
1643 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1644 ac_unrecognized_sep=', ';;
1645 esac
1646 eval enable_$ac_useropt=no ;;
1648 -docdir | --docdir | --docdi | --doc | --do)
1649 ac_prev=docdir ;;
1650 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1651 docdir=$ac_optarg ;;
1653 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1654 ac_prev=dvidir ;;
1655 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1656 dvidir=$ac_optarg ;;
1658 -enable-* | --enable-*)
1659 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1660 # Reject names that are not valid shell variable names.
1661 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1662 as_fn_error $? "invalid feature name: $ac_useropt"
1663 ac_useropt_orig=$ac_useropt
1664 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1665 case $ac_user_opts in
1666 *"
1667 "enable_$ac_useropt"
1668 "*) ;;
1669 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1670 ac_unrecognized_sep=', ';;
1671 esac
1672 eval enable_$ac_useropt=\$ac_optarg ;;
1674 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1675 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1676 | --exec | --exe | --ex)
1677 ac_prev=exec_prefix ;;
1678 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1679 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1680 | --exec=* | --exe=* | --ex=*)
1681 exec_prefix=$ac_optarg ;;
1683 -gas | --gas | --ga | --g)
1684 # Obsolete; use --with-gas.
1685 with_gas=yes ;;
1687 -help | --help | --hel | --he | -h)
1688 ac_init_help=long ;;
1689 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1690 ac_init_help=recursive ;;
1691 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1692 ac_init_help=short ;;
1694 -host | --host | --hos | --ho)
1695 ac_prev=host_alias ;;
1696 -host=* | --host=* | --hos=* | --ho=*)
1697 host_alias=$ac_optarg ;;
1699 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1700 ac_prev=htmldir ;;
1701 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1702 | --ht=*)
1703 htmldir=$ac_optarg ;;
1705 -includedir | --includedir | --includedi | --included | --include \
1706 | --includ | --inclu | --incl | --inc)
1707 ac_prev=includedir ;;
1708 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1709 | --includ=* | --inclu=* | --incl=* | --inc=*)
1710 includedir=$ac_optarg ;;
1712 -infodir | --infodir | --infodi | --infod | --info | --inf)
1713 ac_prev=infodir ;;
1714 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1715 infodir=$ac_optarg ;;
1717 -libdir | --libdir | --libdi | --libd)
1718 ac_prev=libdir ;;
1719 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1720 libdir=$ac_optarg ;;
1722 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1723 | --libexe | --libex | --libe)
1724 ac_prev=libexecdir ;;
1725 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1726 | --libexe=* | --libex=* | --libe=*)
1727 libexecdir=$ac_optarg ;;
1729 -localedir | --localedir | --localedi | --localed | --locale)
1730 ac_prev=localedir ;;
1731 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1732 localedir=$ac_optarg ;;
1734 -localstatedir | --localstatedir | --localstatedi | --localstated \
1735 | --localstate | --localstat | --localsta | --localst | --locals)
1736 ac_prev=localstatedir ;;
1737 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1738 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1739 localstatedir=$ac_optarg ;;
1741 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1742 ac_prev=mandir ;;
1743 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1744 mandir=$ac_optarg ;;
1746 -nfp | --nfp | --nf)
1747 # Obsolete; use --without-fp.
1748 with_fp=no ;;
1750 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1751 | --no-cr | --no-c | -n)
1752 no_create=yes ;;
1754 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1755 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1756 no_recursion=yes ;;
1758 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1759 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1760 | --oldin | --oldi | --old | --ol | --o)
1761 ac_prev=oldincludedir ;;
1762 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1763 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1764 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1765 oldincludedir=$ac_optarg ;;
1767 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1768 ac_prev=prefix ;;
1769 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1770 prefix=$ac_optarg ;;
1772 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1773 | --program-pre | --program-pr | --program-p)
1774 ac_prev=program_prefix ;;
1775 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1776 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1777 program_prefix=$ac_optarg ;;
1779 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1780 | --program-suf | --program-su | --program-s)
1781 ac_prev=program_suffix ;;
1782 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1783 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1784 program_suffix=$ac_optarg ;;
1786 -program-transform-name | --program-transform-name \
1787 | --program-transform-nam | --program-transform-na \
1788 | --program-transform-n | --program-transform- \
1789 | --program-transform | --program-transfor \
1790 | --program-transfo | --program-transf \
1791 | --program-trans | --program-tran \
1792 | --progr-tra | --program-tr | --program-t)
1793 ac_prev=program_transform_name ;;
1794 -program-transform-name=* | --program-transform-name=* \
1795 | --program-transform-nam=* | --program-transform-na=* \
1796 | --program-transform-n=* | --program-transform-=* \
1797 | --program-transform=* | --program-transfor=* \
1798 | --program-transfo=* | --program-transf=* \
1799 | --program-trans=* | --program-tran=* \
1800 | --progr-tra=* | --program-tr=* | --program-t=*)
1801 program_transform_name=$ac_optarg ;;
1803 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1804 ac_prev=pdfdir ;;
1805 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1806 pdfdir=$ac_optarg ;;
1808 -psdir | --psdir | --psdi | --psd | --ps)
1809 ac_prev=psdir ;;
1810 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1811 psdir=$ac_optarg ;;
1813 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1814 | -silent | --silent | --silen | --sile | --sil)
1815 silent=yes ;;
1817 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1818 ac_prev=sbindir ;;
1819 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1820 | --sbi=* | --sb=*)
1821 sbindir=$ac_optarg ;;
1823 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1824 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1825 | --sharedst | --shareds | --shared | --share | --shar \
1826 | --sha | --sh)
1827 ac_prev=sharedstatedir ;;
1828 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1829 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1830 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1831 | --sha=* | --sh=*)
1832 sharedstatedir=$ac_optarg ;;
1834 -site | --site | --sit)
1835 ac_prev=site ;;
1836 -site=* | --site=* | --sit=*)
1837 site=$ac_optarg ;;
1839 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1840 ac_prev=srcdir ;;
1841 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1842 srcdir=$ac_optarg ;;
1844 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1845 | --syscon | --sysco | --sysc | --sys | --sy)
1846 ac_prev=sysconfdir ;;
1847 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1848 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1849 sysconfdir=$ac_optarg ;;
1851 -target | --target | --targe | --targ | --tar | --ta | --t)
1852 ac_prev=target_alias ;;
1853 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1854 target_alias=$ac_optarg ;;
1856 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1857 verbose=yes ;;
1859 -version | --version | --versio | --versi | --vers | -V)
1860 ac_init_version=: ;;
1862 -with-* | --with-*)
1863 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1864 # Reject names that are not valid shell variable names.
1865 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1866 as_fn_error $? "invalid package name: $ac_useropt"
1867 ac_useropt_orig=$ac_useropt
1868 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1869 case $ac_user_opts in
1870 *"
1871 "with_$ac_useropt"
1872 "*) ;;
1873 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1874 ac_unrecognized_sep=', ';;
1875 esac
1876 eval with_$ac_useropt=\$ac_optarg ;;
1878 -without-* | --without-*)
1879 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1880 # Reject names that are not valid shell variable names.
1881 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1882 as_fn_error $? "invalid package name: $ac_useropt"
1883 ac_useropt_orig=$ac_useropt
1884 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1885 case $ac_user_opts in
1886 *"
1887 "with_$ac_useropt"
1888 "*) ;;
1889 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1890 ac_unrecognized_sep=', ';;
1891 esac
1892 eval with_$ac_useropt=no ;;
1894 --x)
1895 # Obsolete; use --with-x.
1896 with_x=yes ;;
1898 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1899 | --x-incl | --x-inc | --x-in | --x-i)
1900 ac_prev=x_includes ;;
1901 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1902 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1903 x_includes=$ac_optarg ;;
1905 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1906 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1907 ac_prev=x_libraries ;;
1908 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1909 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1910 x_libraries=$ac_optarg ;;
1912 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1913 Try \`$0 --help' for more information"
1914 ;;
1916 *=*)
1917 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1918 # Reject names that are not valid shell variable names.
1919 case $ac_envvar in #(
1920 '' | [0-9]* | *[!_$as_cr_alnum]* )
1921 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1922 esac
1923 eval $ac_envvar=\$ac_optarg
1924 export $ac_envvar ;;
1926 *)
1927 # FIXME: should be removed in autoconf 3.0.
1928 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1929 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1930 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1931 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1932 ;;
1934 esac
1935 done
1937 if test -n "$ac_prev"; then
1938 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1939 as_fn_error $? "missing argument to $ac_option"
1940 fi
1942 if test -n "$ac_unrecognized_opts"; then
1943 case $enable_option_checking in
1944 no) ;;
1945 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1946 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1947 esac
1948 fi
1950 # Check all directory arguments for consistency.
1951 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1952 datadir sysconfdir sharedstatedir localstatedir includedir \
1953 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1954 libdir localedir mandir
1955 do
1956 eval ac_val=\$$ac_var
1957 # Remove trailing slashes.
1958 case $ac_val in
1959 */ )
1960 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1961 eval $ac_var=\$ac_val;;
1962 esac
1963 # Be sure to have absolute directory names.
1964 case $ac_val in
1965 [\\/$]* | ?:[\\/]* ) continue;;
1966 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1967 esac
1968 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1969 done
1971 # There might be people who depend on the old broken behavior: `$host'
1972 # used to hold the argument of --host etc.
1973 # FIXME: To remove some day.
1974 build=$build_alias
1975 host=$host_alias
1976 target=$target_alias
1978 # FIXME: To remove some day.
1979 if test "x$host_alias" != x; then
1980 if test "x$build_alias" = x; then
1981 cross_compiling=maybe
1982 elif test "x$build_alias" != "x$host_alias"; then
1983 cross_compiling=yes
1984 fi
1985 fi
1987 ac_tool_prefix=
1988 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1990 test "$silent" = yes && exec 6>/dev/null
1993 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1994 ac_ls_di=`ls -di .` &&
1995 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1996 as_fn_error $? "working directory cannot be determined"
1997 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1998 as_fn_error $? "pwd does not report name of working directory"
2001 # Find the source files, if location was not specified.
2002 if test -z "$srcdir"; then
2003 ac_srcdir_defaulted=yes
2004 # Try the directory containing this script, then the parent directory.
2005 ac_confdir=`$as_dirname -- "$as_myself" ||
2006 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
2007 X"$as_myself" : 'X\(//\)[^/]' \| \
2008 X"$as_myself" : 'X\(//\)$' \| \
2009 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
2010 $as_echo X"$as_myself" |
2011 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
2012 s//\1/
2013 q
2014 }
2015 /^X\(\/\/\)[^/].*/{
2016 s//\1/
2017 q
2018 }
2019 /^X\(\/\/\)$/{
2020 s//\1/
2021 q
2022 }
2023 /^X\(\/\).*/{
2024 s//\1/
2025 q
2026 }
2027 s/.*/./; q'`
2028 srcdir=$ac_confdir
2029 if test ! -r "$srcdir/$ac_unique_file"; then
2030 srcdir=..
2031 fi
2032 else
2033 ac_srcdir_defaulted=no
2034 fi
2035 if test ! -r "$srcdir/$ac_unique_file"; then
2036 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
2037 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
2038 fi
2039 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
2040 ac_abs_confdir=`(
2041 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
2042 pwd)`
2043 # When building in place, set srcdir=.
2044 if test "$ac_abs_confdir" = "$ac_pwd"; then
2045 srcdir=.
2046 fi
2047 # Remove unnecessary trailing slashes from srcdir.
2048 # Double slashes in file names in object file debugging info
2049 # mess up M-x gdb in Emacs.
2050 case $srcdir in
2051 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
2052 esac
2053 for ac_var in $ac_precious_vars; do
2054 eval ac_env_${ac_var}_set=\${${ac_var}+set}
2055 eval ac_env_${ac_var}_value=\$${ac_var}
2056 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
2057 eval ac_cv_env_${ac_var}_value=\$${ac_var}
2058 done
2060 #
2061 # Report the --help message.
2062 #
2063 if test "$ac_init_help" = "long"; then
2064 # Omit some internal or obsolete options to make the list less imposing.
2065 # This message is too long to be a string in the A/UX 3.1 sh.
2066 cat <<_ACEOF
2067 \`configure' configures collectd 5.5.0 to adapt to many kinds of systems.
2069 Usage: $0 [OPTION]... [VAR=VALUE]...
2071 To assign environment variables (e.g., CC, CFLAGS...), specify them as
2072 VAR=VALUE. See below for descriptions of some of the useful variables.
2074 Defaults for the options are specified in brackets.
2076 Configuration:
2077 -h, --help display this help and exit
2078 --help=short display options specific to this package
2079 --help=recursive display the short help of all the included packages
2080 -V, --version display version information and exit
2081 -q, --quiet, --silent do not print \`checking ...' messages
2082 --cache-file=FILE cache test results in FILE [disabled]
2083 -C, --config-cache alias for \`--cache-file=config.cache'
2084 -n, --no-create do not create output files
2085 --srcdir=DIR find the sources in DIR [configure dir or \`..']
2087 Installation directories:
2088 --prefix=PREFIX install architecture-independent files in PREFIX
2089 [$ac_default_prefix]
2090 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
2091 [PREFIX]
2093 By default, \`make install' will install all the files in
2094 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
2095 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
2096 for instance \`--prefix=\$HOME'.
2098 For better control, use the options below.
2100 Fine tuning of the installation directories:
2101 --bindir=DIR user executables [EPREFIX/bin]
2102 --sbindir=DIR system admin executables [EPREFIX/sbin]
2103 --libexecdir=DIR program executables [EPREFIX/libexec]
2104 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
2105 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
2106 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
2107 --libdir=DIR object code libraries [EPREFIX/lib]
2108 --includedir=DIR C header files [PREFIX/include]
2109 --oldincludedir=DIR C header files for non-gcc [/usr/include]
2110 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
2111 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
2112 --infodir=DIR info documentation [DATAROOTDIR/info]
2113 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
2114 --mandir=DIR man documentation [DATAROOTDIR/man]
2115 --docdir=DIR documentation root [DATAROOTDIR/doc/collectd]
2116 --htmldir=DIR html documentation [DOCDIR]
2117 --dvidir=DIR dvi documentation [DOCDIR]
2118 --pdfdir=DIR pdf documentation [DOCDIR]
2119 --psdir=DIR ps documentation [DOCDIR]
2120 _ACEOF
2122 cat <<\_ACEOF
2124 Program names:
2125 --program-prefix=PREFIX prepend PREFIX to installed program names
2126 --program-suffix=SUFFIX append SUFFIX to installed program names
2127 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
2129 System types:
2130 --build=BUILD configure for building on BUILD [guessed]
2131 --host=HOST cross-compile to build programs to run on HOST [BUILD]
2132 _ACEOF
2133 fi
2135 if test -n "$ac_init_help"; then
2136 case $ac_init_help in
2137 short | recursive ) echo "Configuration of collectd 5.5.0:";;
2138 esac
2139 cat <<\_ACEOF
2141 Optional Features:
2142 --disable-option-checking ignore unrecognized --enable/--with options
2143 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
2144 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
2145 --enable-shared[=PKGS] build shared libraries [default=yes]
2146 --enable-static[=PKGS] build static libraries [default=yes]
2147 --enable-fast-install[=PKGS]
2148 optimize for fast installation [default=yes]
2149 --disable-libtool-lock avoid locking (might break parallel builds)
2150 --enable-ltdl-install install libltdl
2151 --enable-dependency-tracking
2152 do not reject slow dependency extractors
2153 --disable-dependency-tracking
2154 speeds up one-time build
2155 --enable-silent-rules less verbose build output (undo: "make V=1")
2156 --disable-silent-rules verbose build output (undo: "make V=0")
2157 --disable-largefile omit support for large files
2158 --enable-standards Enable standards compliance mode
2159 --disable-glibtest do not try to compile and run a test GLIB program
2161 collectd features:
2162 --enable-debug enable debugging (disabled by def)
2163 --disable-daemon disable daemon mode (enabled by def)
2164 --enable-getifaddrs enable getifaddrs under Linux (disabled by def)
2166 collectd plugins:
2167 --enable-all-plugins enable all plugins (auto by def)
2169 --enable-aggregation Aggregation plugin
2170 --enable-amqp AMQP output plugin
2171 --enable-apache Apache httpd statistics
2172 --enable-apcups Statistics of UPSes by APC
2173 --enable-apple_sensors Apple's hardware sensors
2174 --enable-aquaero Aquaero's hardware sensors
2175 --enable-ascent AscentEmu player statistics
2176 --enable-barometer Barometer sensor on I2C
2177 --enable-battery Battery statistics
2178 --enable-bind ISC Bind nameserver statistics
2179 --enable-ceph Ceph daemon statistics
2180 --enable-conntrack nf_conntrack statistics
2181 --enable-contextswitch context switch statistics
2182 --enable-cpufreq CPU frequency statistics
2183 --enable-cpu CPU usage statistics
2184 --enable-csv CSV output plugin
2185 --enable-curl CURL generic web statistics
2186 --enable-curl_json CouchDB statistics
2187 --enable-curl_xml CURL generic xml statistics
2188 --enable-cgroups CGroups CPU usage accounting
2189 --enable-dbi General database statistics
2190 --enable-df Filesystem usage statistics
2191 --enable-disk Disk usage statistics
2192 --enable-drbd DRBD statistics
2193 --enable-dns DNS traffic analysis
2194 --enable-email EMail statistics
2195 --enable-entropy Entropy statistics
2196 --enable-ethstat Stats from NIC driver
2197 --enable-exec Execution of external programs
2198 --enable-fhcount File handles statistics
2199 --enable-filecount Count files in directories
2200 --enable-fscache fscache statistics
2201 --enable-gmond Ganglia plugin
2202 --enable-hddtemp Query hddtempd
2203 --enable-interface Interface traffic statistics
2204 --enable-ipc IPC statistics
2205 --enable-ipmi IPMI sensor statistics
2206 --enable-iptables IPTables rule counters
2207 --enable-ipvs IPVS connection statistics
2208 --enable-irq IRQ statistics
2209 --enable-java Embed the Java Virtual Machine
2210 --enable-load System load
2211 --enable-logfile File logging plugin
2212 --enable-log_logstash Logstash json_event compatible logging
2213 --enable-lpar AIX logical partitions statistics
2214 --enable-lvm LVM statistics
2215 --enable-madwifi Madwifi wireless statistics
2216 --enable-match_empty_counter
2217 The empty counter match
2218 --enable-match_hashed The hashed match
2219 --enable-match_regex The regex match
2220 --enable-match_timediff The timediff match
2221 --enable-match_value The value match
2222 --enable-mbmon Query mbmond
2223 --enable-md md (Linux software RAID) devices
2224 --enable-memcachec memcachec statistics
2225 --enable-memcached memcached statistics
2226 --enable-memory Memory usage
2227 --enable-mic Intel Many Integrated Core stats
2228 --enable-modbus Modbus plugin
2229 --enable-multimeter Read multimeter values
2230 --enable-mysql MySQL statistics
2231 --enable-netapp NetApp plugin
2232 --enable-netlink Enhanced Linux network statistics
2233 --enable-network Network communication plugin
2234 --enable-nfs NFS statistics
2235 --enable-nginx nginx statistics
2236 --enable-notify_desktop Desktop notifications
2237 --enable-notify_email Email notifier
2238 --enable-ntpd NTPd statistics
2239 --enable-numa NUMA virtual memory statistics
2240 --enable-nut Network UPS tools statistics
2241 --enable-olsrd olsrd statistics
2242 --enable-onewire OneWire sensor statistics
2243 --enable-openldap OpenLDAP statistics
2244 --enable-openvpn OpenVPN client statistics
2245 --enable-oracle Oracle plugin
2246 --enable-perl Embed a Perl interpreter
2247 --enable-pf BSD packet filter (PF) statistics
2248 --enable-pinba Pinba statistics
2249 --enable-ping Network latency statistics
2250 --enable-postgresql PostgreSQL database statistics
2251 --enable-powerdns PowerDNS statistics
2252 --enable-processes Process statistics
2253 --enable-protocols Protocol (IP, TCP, ...) statistics
2254 --enable-python Embed a Python interpreter
2255 --enable-redis Redis plugin
2256 --enable-routeros RouterOS plugin
2257 --enable-rrdcached RRDTool output plugin
2258 --enable-rrdtool RRDTool output plugin
2259 --enable-sensors lm_sensors statistics
2260 --enable-serial serial port traffic
2261 --enable-sigrok sigrok acquisition sources
2262 --enable-smart SMART statistics
2263 --enable-snmp SNMP querying plugin
2264 --enable-statsd StatsD plugin
2265 --enable-swap Swap usage statistics
2266 --enable-syslog Syslog logging plugin
2267 --enable-table Parsing of tabular data
2268 --enable-tail Parsing of logfiles
2269 --enable-tail_csv Parsing of CSV files
2270 --enable-tape Tape drive statistics
2271 --enable-target_notification
2272 The notification target
2273 --enable-target_replace The replace target
2274 --enable-target_scale The scale target
2275 --enable-target_set The set target
2276 --enable-target_v5upgrade
2277 The v5upgrade target
2278 --enable-tcpconns TCP connection statistics
2279 --enable-teamspeak2 TeamSpeak2 server statistics
2280 --enable-ted Read The Energy Detective values
2281 --enable-thermal Linux ACPI thermal zone statistics
2282 --enable-threshold Threshold checking plugin
2283 --enable-tokyotyrant TokyoTyrant database statistics
2284 --enable-turbostat Advanced statistic on Intel cpu states
2285 --enable-unixsock Unixsock communication plugin
2286 --enable-uptime Uptime statistics
2287 --enable-users User statistics
2288 --enable-uuid UUID as hostname plugin
2289 --enable-varnish Varnish cache statistics
2290 --enable-virt Virtual machine statistics
2291 --enable-vmem Virtual memory statistics
2292 --enable-vserver Linux VServer statistics
2293 --enable-wireless Wireless statistics
2294 --enable-write_graphite Graphite / Carbon output plugin
2295 --enable-write_http HTTP output plugin
2296 --enable-write_kafka Kafka output plugin
2297 --enable-write_log Log output plugin
2298 --enable-write_mongodb MongoDB output plugin
2299 --enable-write_redis Redis output plugin
2300 --enable-write_riemann Riemann output plugin
2301 --enable-write_sensu Sensu output plugin
2302 --enable-write_tsdb TSDB output plugin
2303 --enable-xmms XMMS statistics
2304 --enable-zfs_arc ZFS ARC statistics
2305 --enable-zookeeper Zookeeper statistics
2307 Optional Packages:
2308 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
2309 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
2310 --with-pic[=PKGS] try to use only PIC/non-PIC objects [default=use
2311 both]
2312 --with-gnu-ld assume the C compiler uses GNU ld [default=no]
2313 --with-sysroot=DIR Search for dependent libraries within DIR
2314 (or the compiler's sysroot if not specified).
2315 --with-included-ltdl use the GNU ltdl sources included here
2316 --with-ltdl-include=DIR use the ltdl headers installed in DIR
2317 --with-ltdl-lib=DIR use the libltdl.la installed in DIR
2318 --with-nan-emulation use emulated NAN. For crosscompiling only.
2319 --with-fp-layout set the memory layout of doubles. For crosscompiling
2320 only.
2321 --with-useragent[=AGENT]
2322 User agent to use on http requests
2324 collectd additional packages:
2325 --with-libaquaero5[=PREFIX]
2326 Path to aquatools-ng source code.
2327 --with-libhiredis[=PREFIX]
2328 Path to libhiredis.
2329 --with-libcurl[=PREFIX] Path to libcurl.
2330 --with-libdbi[=PREFIX] Path to libdbi.
2331 --with-libesmtp[=PREFIX]
2332 Path to libesmtp.
2333 --with-libganglia[=PREFIX]
2334 Path to libganglia.
2335 --with-libgcrypt[=PREFIX]
2336 Path to libgcrypt.
2337 --with-libgcrypt-prefix=PFX
2338 prefix where LIBGCRYPT is installed (optional)
2339 --with-libiptc[=PREFIX] Path to libiptc.
2340 --with-java[=PREFIX] Path to Java home.
2341 --with-libldap[=PREFIX] Path to libldap.
2342 --with-liblvm2app[=PREFIX]
2343 Path to liblvm2app.
2344 --with-libmemcached[=PREFIX]
2345 Path to libmemcached.
2346 --with-libmodbus[=PREFIX]
2347 Path to the modbus library.
2348 --with-libmongoc[=PREFIX]
2349 Path to libmongoc.
2350 --with-libmysql[=PREFIX]
2351 Path to libmysql.
2352 --with-libmnl[=PREFIX] Path to libmnl.
2353 --with-libnetapp[=PREFIX]
2354 Path to libnetapp.
2355 --with-libnetsnmp[=PREFIX]
2356 Path to the Net-SNMPD library.
2357 --with-liboconfig[=PREFIX]
2358 Path to liboconfig.
2359 --with-liboping[=PREFIX]
2360 Path to liboping.
2361 --with-oracle[=ORACLE_HOME]
2362 Path to Oracle.
2363 --with-libowcapi[=PREFIX]
2364 Path to libowcapi.
2365 --with-libpcap[=PREFIX] Path to libpcap.
2366 --with-libperl[=PREFIX] Path to libperl.
2367 --with-libpq[=PREFIX] Path to libpq.
2368 --with-libpthread=[=PREFIX]
2369 Path to libpthread.
2370 --with-python[=PREFIX] Path to the python interpreter.
2371 --with-librabbitmq[=PREFIX]
2372 Path to librabbitmq.
2373 --with-librdkafka[=PREFIX]
2374 Path to librdkafka.
2375 --with-librouteros[=PREFIX]
2376 Path to librouteros.
2377 --with-librrd[=PREFIX] Path to rrdtool.
2378 --with-libsensors[=PREFIX]
2379 Path to lm_sensors.
2380 --with-libsigrok[=PREFIX]
2381 Path to libsigrok.
2382 --with-libstatgrab[=PREFIX]
2383 Path to libstatgrab.
2384 --with-libtokyotyrant[=PREFIX]
2385 Path to libtokyotyrant.
2386 --with-libudev[=PREFIX] Path to libudev.
2387 --with-libupsclient[=PREFIX]
2388 Path to the upsclient library.
2389 --with-libxmms[=PREFIX] Path to libxmms.
2390 --with-libyajl[=PREFIX] Path to libyajl.
2391 --with-mic[=PREFIX] Path to Intel MIC Access API.
2392 --with-libvarnish[=PREFIX]
2393 Path to libvarnish.
2394 --with-libatasmart[=PREFIX]
2395 Path to libatasmart.
2396 --with-perl-bindings[=OPTIONS]
2397 Options passed to "perl Makefile.PL".
2399 Some influential environment variables:
2400 CC C compiler command
2401 CFLAGS C compiler flags
2402 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
2403 nonstandard directory <lib dir>
2404 LIBS libraries to pass to the linker, e.g. -l<library>
2405 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
2406 you have headers in a nonstandard directory <include dir>
2407 CPP C preprocessor
2408 YACC The `Yet Another Compiler Compiler' implementation to use.
2409 Defaults to the first program found out of: `bison -y', `byacc',
2410 `yacc'.
2411 YFLAGS The list of arguments that will be passed by default to $YACC.
2412 This script will default YFLAGS to the empty string to avoid a
2413 default value of `-d' given by some make applications.
2414 PKG_CONFIG path to pkg-config utility
2415 PKG_CONFIG_PATH
2416 directories to add to pkg-config's search path
2417 PKG_CONFIG_LIBDIR
2418 path overriding pkg-config's built-in search path
2419 KERNEL_DIR path to Linux kernel sources
2420 LIBNETAPP_CPPFLAGS
2421 C preprocessor flags required to build with libnetapp
2422 LIBNETAPP_LDFLAGS
2423 Linker flags required to build with libnetapp
2424 LIBNETAPP_LIBS
2425 Other libraries required to link against libnetapp
2426 LIBNOTIFY_CFLAGS
2427 C compiler flags for LIBNOTIFY, overriding pkg-config
2428 LIBNOTIFY_LIBS
2429 linker flags for LIBNOTIFY, overriding pkg-config
2431 Use these variables to override the choices made by `configure' or to help
2432 it to find libraries and programs with nonstandard names/locations.
2434 Report bugs to the package provider.
2435 _ACEOF
2436 ac_status=$?
2437 fi
2439 if test "$ac_init_help" = "recursive"; then
2440 # If there are subdirs, report their specific --help.
2441 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
2442 test -d "$ac_dir" ||
2443 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
2444 continue
2445 ac_builddir=.
2447 case "$ac_dir" in
2448 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
2449 *)
2450 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
2451 # A ".." for each directory in $ac_dir_suffix.
2452 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
2453 case $ac_top_builddir_sub in
2454 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
2455 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
2456 esac ;;
2457 esac
2458 ac_abs_top_builddir=$ac_pwd
2459 ac_abs_builddir=$ac_pwd$ac_dir_suffix
2460 # for backward compatibility:
2461 ac_top_builddir=$ac_top_build_prefix
2463 case $srcdir in
2464 .) # We are building in place.
2465 ac_srcdir=.
2466 ac_top_srcdir=$ac_top_builddir_sub
2467 ac_abs_top_srcdir=$ac_pwd ;;
2468 [\\/]* | ?:[\\/]* ) # Absolute name.
2469 ac_srcdir=$srcdir$ac_dir_suffix;
2470 ac_top_srcdir=$srcdir
2471 ac_abs_top_srcdir=$srcdir ;;
2472 *) # Relative name.
2473 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
2474 ac_top_srcdir=$ac_top_build_prefix$srcdir
2475 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
2476 esac
2477 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
2479 cd "$ac_dir" || { ac_status=$?; continue; }
2480 # Check for guested configure.
2481 if test -f "$ac_srcdir/configure.gnu"; then
2482 echo &&
2483 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
2484 elif test -f "$ac_srcdir/configure"; then
2485 echo &&
2486 $SHELL "$ac_srcdir/configure" --help=recursive
2487 else
2488 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
2489 fi || ac_status=$?
2490 cd "$ac_pwd" || { ac_status=$?; break; }
2491 done
2492 fi
2494 test -n "$ac_init_help" && exit $ac_status
2495 if $ac_init_version; then
2496 cat <<\_ACEOF
2497 collectd configure 5.5.0
2498 generated by GNU Autoconf 2.69
2500 Copyright (C) 2012 Free Software Foundation, Inc.
2501 This configure script is free software; the Free Software Foundation
2502 gives unlimited permission to copy, distribute and modify it.
2503 _ACEOF
2504 exit
2505 fi
2507 ## ------------------------ ##
2508 ## Autoconf initialization. ##
2509 ## ------------------------ ##
2511 # ac_fn_c_try_compile LINENO
2512 # --------------------------
2513 # Try to compile conftest.$ac_ext, and return whether this succeeded.
2514 ac_fn_c_try_compile ()
2515 {
2516 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2517 rm -f conftest.$ac_objext
2518 if { { ac_try="$ac_compile"
2519 case "(($ac_try" in
2520 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2521 *) ac_try_echo=$ac_try;;
2522 esac
2523 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2524 $as_echo "$ac_try_echo"; } >&5
2525 (eval "$ac_compile") 2>conftest.err
2526 ac_status=$?
2527 if test -s conftest.err; then
2528 grep -v '^ *+' conftest.err >conftest.er1
2529 cat conftest.er1 >&5
2530 mv -f conftest.er1 conftest.err
2531 fi
2532 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2533 test $ac_status = 0; } && {
2534 test -z "$ac_c_werror_flag" ||
2535 test ! -s conftest.err
2536 } && test -s conftest.$ac_objext; then :
2537 ac_retval=0
2538 else
2539 $as_echo "$as_me: failed program was:" >&5
2540 sed 's/^/| /' conftest.$ac_ext >&5
2542 ac_retval=1
2543 fi
2544 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2545 as_fn_set_status $ac_retval
2547 } # ac_fn_c_try_compile
2549 # ac_fn_c_try_link LINENO
2550 # -----------------------
2551 # Try to link conftest.$ac_ext, and return whether this succeeded.
2552 ac_fn_c_try_link ()
2553 {
2554 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2555 rm -f conftest.$ac_objext conftest$ac_exeext
2556 if { { ac_try="$ac_link"
2557 case "(($ac_try" in
2558 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2559 *) ac_try_echo=$ac_try;;
2560 esac
2561 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2562 $as_echo "$ac_try_echo"; } >&5
2563 (eval "$ac_link") 2>conftest.err
2564 ac_status=$?
2565 if test -s conftest.err; then
2566 grep -v '^ *+' conftest.err >conftest.er1
2567 cat conftest.er1 >&5
2568 mv -f conftest.er1 conftest.err
2569 fi
2570 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2571 test $ac_status = 0; } && {
2572 test -z "$ac_c_werror_flag" ||
2573 test ! -s conftest.err
2574 } && test -s conftest$ac_exeext && {
2575 test "$cross_compiling" = yes ||
2576 test -x conftest$ac_exeext
2577 }; then :
2578 ac_retval=0
2579 else
2580 $as_echo "$as_me: failed program was:" >&5
2581 sed 's/^/| /' conftest.$ac_ext >&5
2583 ac_retval=1
2584 fi
2585 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2586 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2587 # interfere with the next link command; also delete a directory that is
2588 # left behind by Apple's compiler. We do this before executing the actions.
2589 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2590 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2591 as_fn_set_status $ac_retval
2593 } # ac_fn_c_try_link
2595 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2596 # -------------------------------------------------------
2597 # Tests whether HEADER exists and can be compiled using the include files in
2598 # INCLUDES, setting the cache variable VAR accordingly.
2599 ac_fn_c_check_header_compile ()
2600 {
2601 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2603 $as_echo_n "checking for $2... " >&6; }
2604 if eval \${$3+:} false; then :
2605 $as_echo_n "(cached) " >&6
2606 else
2607 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2608 /* end confdefs.h. */
2609 $4
2610 #include <$2>
2611 _ACEOF
2612 if ac_fn_c_try_compile "$LINENO"; then :
2613 eval "$3=yes"
2614 else
2615 eval "$3=no"
2616 fi
2617 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2618 fi
2619 eval ac_res=\$$3
2620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2621 $as_echo "$ac_res" >&6; }
2622 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2624 } # ac_fn_c_check_header_compile
2626 # ac_fn_c_try_cpp LINENO
2627 # ----------------------
2628 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
2629 ac_fn_c_try_cpp ()
2630 {
2631 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2632 if { { ac_try="$ac_cpp conftest.$ac_ext"
2633 case "(($ac_try" in
2634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2635 *) ac_try_echo=$ac_try;;
2636 esac
2637 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2638 $as_echo "$ac_try_echo"; } >&5
2639 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
2640 ac_status=$?
2641 if test -s conftest.err; then
2642 grep -v '^ *+' conftest.err >conftest.er1
2643 cat conftest.er1 >&5
2644 mv -f conftest.er1 conftest.err
2645 fi
2646 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2647 test $ac_status = 0; } > conftest.i && {
2648 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
2649 test ! -s conftest.err
2650 }; then :
2651 ac_retval=0
2652 else
2653 $as_echo "$as_me: failed program was:" >&5
2654 sed 's/^/| /' conftest.$ac_ext >&5
2656 ac_retval=1
2657 fi
2658 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2659 as_fn_set_status $ac_retval
2661 } # ac_fn_c_try_cpp
2663 # ac_fn_c_try_run LINENO
2664 # ----------------------
2665 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2666 # that executables *can* be run.
2667 ac_fn_c_try_run ()
2668 {
2669 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2670 if { { ac_try="$ac_link"
2671 case "(($ac_try" in
2672 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2673 *) ac_try_echo=$ac_try;;
2674 esac
2675 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2676 $as_echo "$ac_try_echo"; } >&5
2677 (eval "$ac_link") 2>&5
2678 ac_status=$?
2679 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2680 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2681 { { case "(($ac_try" in
2682 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2683 *) ac_try_echo=$ac_try;;
2684 esac
2685 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2686 $as_echo "$ac_try_echo"; } >&5
2687 (eval "$ac_try") 2>&5
2688 ac_status=$?
2689 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2690 test $ac_status = 0; }; }; then :
2691 ac_retval=0
2692 else
2693 $as_echo "$as_me: program exited with status $ac_status" >&5
2694 $as_echo "$as_me: failed program was:" >&5
2695 sed 's/^/| /' conftest.$ac_ext >&5
2697 ac_retval=$ac_status
2698 fi
2699 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2700 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2701 as_fn_set_status $ac_retval
2703 } # ac_fn_c_try_run
2705 # ac_fn_c_check_func LINENO FUNC VAR
2706 # ----------------------------------
2707 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2708 ac_fn_c_check_func ()
2709 {
2710 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2712 $as_echo_n "checking for $2... " >&6; }
2713 if eval \${$3+:} false; then :
2714 $as_echo_n "(cached) " >&6
2715 else
2716 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2717 /* end confdefs.h. */
2718 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2719 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2720 #define $2 innocuous_$2
2722 /* System header to define __stub macros and hopefully few prototypes,
2723 which can conflict with char $2 (); below.
2724 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2725 <limits.h> exists even on freestanding compilers. */
2727 #ifdef __STDC__
2728 # include <limits.h>
2729 #else
2730 # include <assert.h>
2731 #endif
2733 #undef $2
2735 /* Override any GCC internal prototype to avoid an error.
2736 Use char because int might match the return type of a GCC
2737 builtin and then its argument prototype would still apply. */
2738 #ifdef __cplusplus
2739 extern "C"
2740 #endif
2741 char $2 ();
2742 /* The GNU C library defines this for functions which it implements
2743 to always fail with ENOSYS. Some functions are actually named
2744 something starting with __ and the normal name is an alias. */
2745 #if defined __stub_$2 || defined __stub___$2
2746 choke me
2747 #endif
2749 int
2750 main ()
2751 {
2752 return $2 ();
2753 ;
2754 return 0;
2755 }
2756 _ACEOF
2757 if ac_fn_c_try_link "$LINENO"; then :
2758 eval "$3=yes"
2759 else
2760 eval "$3=no"
2761 fi
2762 rm -f core conftest.err conftest.$ac_objext \
2763 conftest$ac_exeext conftest.$ac_ext
2764 fi
2765 eval ac_res=\$$3
2766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2767 $as_echo "$ac_res" >&6; }
2768 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2770 } # ac_fn_c_check_func
2772 # ac_fn_c_check_decl LINENO SYMBOL VAR INCLUDES
2773 # ---------------------------------------------
2774 # Tests whether SYMBOL is declared in INCLUDES, setting cache variable VAR
2775 # accordingly.
2776 ac_fn_c_check_decl ()
2777 {
2778 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2779 as_decl_name=`echo $2|sed 's/ *(.*//'`
2780 as_decl_use=`echo $2|sed -e 's/(/((/' -e 's/)/) 0&/' -e 's/,/) 0& (/g'`
2781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $as_decl_name is declared" >&5
2782 $as_echo_n "checking whether $as_decl_name is declared... " >&6; }
2783 if eval \${$3+:} false; then :
2784 $as_echo_n "(cached) " >&6
2785 else
2786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2787 /* end confdefs.h. */
2788 $4
2789 int
2790 main ()
2791 {
2792 #ifndef $as_decl_name
2793 #ifdef __cplusplus
2794 (void) $as_decl_use;
2795 #else
2796 (void) $as_decl_name;
2797 #endif
2798 #endif
2800 ;
2801 return 0;
2802 }
2803 _ACEOF
2804 if ac_fn_c_try_compile "$LINENO"; then :
2805 eval "$3=yes"
2806 else
2807 eval "$3=no"
2808 fi
2809 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2810 fi
2811 eval ac_res=\$$3
2812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2813 $as_echo "$ac_res" >&6; }
2814 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2816 } # ac_fn_c_check_decl
2818 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2819 # -------------------------------------------
2820 # Tests whether TYPE exists after having included INCLUDES, setting cache
2821 # variable VAR accordingly.
2822 ac_fn_c_check_type ()
2823 {
2824 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2826 $as_echo_n "checking for $2... " >&6; }
2827 if eval \${$3+:} false; then :
2828 $as_echo_n "(cached) " >&6
2829 else
2830 eval "$3=no"
2831 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2832 /* end confdefs.h. */
2833 $4
2834 int
2835 main ()
2836 {
2837 if (sizeof ($2))
2838 return 0;
2839 ;
2840 return 0;
2841 }
2842 _ACEOF
2843 if ac_fn_c_try_compile "$LINENO"; then :
2844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2845 /* end confdefs.h. */
2846 $4
2847 int
2848 main ()
2849 {
2850 if (sizeof (($2)))
2851 return 0;
2852 ;
2853 return 0;
2854 }
2855 _ACEOF
2856 if ac_fn_c_try_compile "$LINENO"; then :
2858 else
2859 eval "$3=yes"
2860 fi
2861 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2862 fi
2863 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2864 fi
2865 eval ac_res=\$$3
2866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2867 $as_echo "$ac_res" >&6; }
2868 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2870 } # ac_fn_c_check_type
2872 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
2873 # -------------------------------------------------------
2874 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
2875 # the include files in INCLUDES and setting the cache variable VAR
2876 # accordingly.
2877 ac_fn_c_check_header_mongrel ()
2878 {
2879 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2880 if eval \${$3+:} false; then :
2881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2882 $as_echo_n "checking for $2... " >&6; }
2883 if eval \${$3+:} false; then :
2884 $as_echo_n "(cached) " >&6
2885 fi
2886 eval ac_res=\$$3
2887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2888 $as_echo "$ac_res" >&6; }
2889 else
2890 # Is the header compilable?
2891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2892 $as_echo_n "checking $2 usability... " >&6; }
2893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2894 /* end confdefs.h. */
2895 $4
2896 #include <$2>
2897 _ACEOF
2898 if ac_fn_c_try_compile "$LINENO"; then :
2899 ac_header_compiler=yes
2900 else
2901 ac_header_compiler=no
2902 fi
2903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2905 $as_echo "$ac_header_compiler" >&6; }
2907 # Is the header present?
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2909 $as_echo_n "checking $2 presence... " >&6; }
2910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2911 /* end confdefs.h. */
2912 #include <$2>
2913 _ACEOF
2914 if ac_fn_c_try_cpp "$LINENO"; then :
2915 ac_header_preproc=yes
2916 else
2917 ac_header_preproc=no
2918 fi
2919 rm -f conftest.err conftest.i conftest.$ac_ext
2920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2921 $as_echo "$ac_header_preproc" >&6; }
2923 # So? What about this header?
2924 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2925 yes:no: )
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2927 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2928 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2929 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2930 ;;
2931 no:yes:* )
2932 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2933 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2934 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2935 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2937 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2938 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2939 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2940 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2941 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2942 ;;
2943 esac
2944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2945 $as_echo_n "checking for $2... " >&6; }
2946 if eval \${$3+:} false; then :
2947 $as_echo_n "(cached) " >&6
2948 else
2949 eval "$3=\$ac_header_compiler"
2950 fi
2951 eval ac_res=\$$3
2952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2953 $as_echo "$ac_res" >&6; }
2954 fi
2955 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2957 } # ac_fn_c_check_header_mongrel
2959 # ac_fn_c_find_uintX_t LINENO BITS VAR
2960 # ------------------------------------
2961 # Finds an unsigned integer type with width BITS, setting cache variable VAR
2962 # accordingly.
2963 ac_fn_c_find_uintX_t ()
2964 {
2965 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uint$2_t" >&5
2967 $as_echo_n "checking for uint$2_t... " >&6; }
2968 if eval \${$3+:} false; then :
2969 $as_echo_n "(cached) " >&6
2970 else
2971 eval "$3=no"
2972 # Order is important - never check a type that is potentially smaller
2973 # than half of the expected target width.
2974 for ac_type in uint$2_t 'unsigned int' 'unsigned long int' \
2975 'unsigned long long int' 'unsigned short int' 'unsigned char'; do
2976 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2977 /* end confdefs.h. */
2978 $ac_includes_default
2979 int
2980 main ()
2981 {
2982 static int test_array [1 - 2 * !((($ac_type) -1 >> ($2 / 2 - 1)) >> ($2 / 2 - 1) == 3)];
2983 test_array [0] = 0;
2984 return test_array [0];
2986 ;
2987 return 0;
2988 }
2989 _ACEOF
2990 if ac_fn_c_try_compile "$LINENO"; then :
2991 case $ac_type in #(
2992 uint$2_t) :
2993 eval "$3=yes" ;; #(
2994 *) :
2995 eval "$3=\$ac_type" ;;
2996 esac
2997 fi
2998 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2999 if eval test \"x\$"$3"\" = x"no"; then :
3001 else
3002 break
3003 fi
3004 done
3005 fi
3006 eval ac_res=\$$3
3007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3008 $as_echo "$ac_res" >&6; }
3009 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3011 } # ac_fn_c_find_uintX_t
3013 # ac_fn_c_check_member LINENO AGGR MEMBER VAR INCLUDES
3014 # ----------------------------------------------------
3015 # Tries to find if the field MEMBER exists in type AGGR, after including
3016 # INCLUDES, setting cache variable VAR accordingly.
3017 ac_fn_c_check_member ()
3018 {
3019 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
3020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2.$3" >&5
3021 $as_echo_n "checking for $2.$3... " >&6; }
3022 if eval \${$4+:} false; then :
3023 $as_echo_n "(cached) " >&6
3024 else
3025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3026 /* end confdefs.h. */
3027 $5
3028 int
3029 main ()
3030 {
3031 static $2 ac_aggr;
3032 if (ac_aggr.$3)
3033 return 0;
3034 ;
3035 return 0;
3036 }
3037 _ACEOF
3038 if ac_fn_c_try_compile "$LINENO"; then :
3039 eval "$4=yes"
3040 else
3041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3042 /* end confdefs.h. */
3043 $5
3044 int
3045 main ()
3046 {
3047 static $2 ac_aggr;
3048 if (sizeof ac_aggr.$3)
3049 return 0;
3050 ;
3051 return 0;
3052 }
3053 _ACEOF
3054 if ac_fn_c_try_compile "$LINENO"; then :
3055 eval "$4=yes"
3056 else
3057 eval "$4=no"
3058 fi
3059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3060 fi
3061 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3062 fi
3063 eval ac_res=\$$4
3064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
3065 $as_echo "$ac_res" >&6; }
3066 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
3068 } # ac_fn_c_check_member
3069 cat >config.log <<_ACEOF
3070 This file contains any messages produced by compilers while
3071 running configure, to aid debugging if configure makes a mistake.
3073 It was created by collectd $as_me 5.5.0, which was
3074 generated by GNU Autoconf 2.69. Invocation command line was
3076 $ $0 $@
3078 _ACEOF
3079 exec 5>>config.log
3080 {
3081 cat <<_ASUNAME
3082 ## --------- ##
3083 ## Platform. ##
3084 ## --------- ##
3086 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
3087 uname -m = `(uname -m) 2>/dev/null || echo unknown`
3088 uname -r = `(uname -r) 2>/dev/null || echo unknown`
3089 uname -s = `(uname -s) 2>/dev/null || echo unknown`
3090 uname -v = `(uname -v) 2>/dev/null || echo unknown`
3092 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
3093 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
3095 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
3096 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
3097 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
3098 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
3099 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
3100 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
3101 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
3103 _ASUNAME
3105 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3106 for as_dir in $PATH
3107 do
3108 IFS=$as_save_IFS
3109 test -z "$as_dir" && as_dir=.
3110 $as_echo "PATH: $as_dir"
3111 done
3112 IFS=$as_save_IFS
3114 } >&5
3116 cat >&5 <<_ACEOF
3119 ## ----------- ##
3120 ## Core tests. ##
3121 ## ----------- ##
3123 _ACEOF
3126 # Keep a trace of the command line.
3127 # Strip out --no-create and --no-recursion so they do not pile up.
3128 # Strip out --silent because we don't want to record it for future runs.
3129 # Also quote any args containing shell meta-characters.
3130 # Make two passes to allow for proper duplicate-argument suppression.
3131 ac_configure_args=
3132 ac_configure_args0=
3133 ac_configure_args1=
3134 ac_must_keep_next=false
3135 for ac_pass in 1 2
3136 do
3137 for ac_arg
3138 do
3139 case $ac_arg in
3140 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
3141 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
3142 | -silent | --silent | --silen | --sile | --sil)
3143 continue ;;
3144 *\'*)
3145 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
3146 esac
3147 case $ac_pass in
3148 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
3149 2)
3150 as_fn_append ac_configure_args1 " '$ac_arg'"
3151 if test $ac_must_keep_next = true; then
3152 ac_must_keep_next=false # Got value, back to normal.
3153 else
3154 case $ac_arg in
3155 *=* | --config-cache | -C | -disable-* | --disable-* \
3156 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
3157 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
3158 | -with-* | --with-* | -without-* | --without-* | --x)
3159 case "$ac_configure_args0 " in
3160 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
3161 esac
3162 ;;
3163 -* ) ac_must_keep_next=true ;;
3164 esac
3165 fi
3166 as_fn_append ac_configure_args " '$ac_arg'"
3167 ;;
3168 esac
3169 done
3170 done
3171 { ac_configure_args0=; unset ac_configure_args0;}
3172 { ac_configure_args1=; unset ac_configure_args1;}
3174 # When interrupted or exit'd, cleanup temporary files, and complete
3175 # config.log. We remove comments because anyway the quotes in there
3176 # would cause problems or look ugly.
3177 # WARNING: Use '\'' to represent an apostrophe within the trap.
3178 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
3179 trap 'exit_status=$?
3180 # Save into config.log some information that might help in debugging.
3181 {
3182 echo
3184 $as_echo "## ---------------- ##
3185 ## Cache variables. ##
3186 ## ---------------- ##"
3187 echo
3188 # The following way of writing the cache mishandles newlines in values,
3189 (
3190 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
3191 eval ac_val=\$$ac_var
3192 case $ac_val in #(
3193 *${as_nl}*)
3194 case $ac_var in #(
3195 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
3196 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
3197 esac
3198 case $ac_var in #(
3199 _ | IFS | as_nl) ;; #(
3200 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
3201 *) { eval $ac_var=; unset $ac_var;} ;;
3202 esac ;;
3203 esac
3204 done
3205 (set) 2>&1 |
3206 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
3207 *${as_nl}ac_space=\ *)
3208 sed -n \
3209 "s/'\''/'\''\\\\'\'''\''/g;
3210 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
3211 ;; #(
3212 *)
3213 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
3214 ;;
3215 esac |
3216 sort
3217 )
3218 echo
3220 $as_echo "## ----------------- ##
3221 ## Output variables. ##
3222 ## ----------------- ##"
3223 echo
3224 for ac_var in $ac_subst_vars
3225 do
3226 eval ac_val=\$$ac_var
3227 case $ac_val in
3228 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3229 esac
3230 $as_echo "$ac_var='\''$ac_val'\''"
3231 done | sort
3232 echo
3234 if test -n "$ac_subst_files"; then
3235 $as_echo "## ------------------- ##
3236 ## File substitutions. ##
3237 ## ------------------- ##"
3238 echo
3239 for ac_var in $ac_subst_files
3240 do
3241 eval ac_val=\$$ac_var
3242 case $ac_val in
3243 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
3244 esac
3245 $as_echo "$ac_var='\''$ac_val'\''"
3246 done | sort
3247 echo
3248 fi
3250 if test -s confdefs.h; then
3251 $as_echo "## ----------- ##
3252 ## confdefs.h. ##
3253 ## ----------- ##"
3254 echo
3255 cat confdefs.h
3256 echo
3257 fi
3258 test "$ac_signal" != 0 &&
3259 $as_echo "$as_me: caught signal $ac_signal"
3260 $as_echo "$as_me: exit $exit_status"
3261 } >&5
3262 rm -f core *.core core.conftest.* &&
3263 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
3264 exit $exit_status
3265 ' 0
3266 for ac_signal in 1 2 13 15; do
3267 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
3268 done
3269 ac_signal=0
3271 # confdefs.h avoids OS command line length limits that DEFS can exceed.
3272 rm -f -r conftest* confdefs.h
3274 $as_echo "/* confdefs.h */" > confdefs.h
3276 # Predefined preprocessor variables.
3278 cat >>confdefs.h <<_ACEOF
3279 #define PACKAGE_NAME "$PACKAGE_NAME"
3280 _ACEOF
3282 cat >>confdefs.h <<_ACEOF
3283 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
3284 _ACEOF
3286 cat >>confdefs.h <<_ACEOF
3287 #define PACKAGE_VERSION "$PACKAGE_VERSION"
3288 _ACEOF
3290 cat >>confdefs.h <<_ACEOF
3291 #define PACKAGE_STRING "$PACKAGE_STRING"
3292 _ACEOF
3294 cat >>confdefs.h <<_ACEOF
3295 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
3296 _ACEOF
3298 cat >>confdefs.h <<_ACEOF
3299 #define PACKAGE_URL "$PACKAGE_URL"
3300 _ACEOF
3303 # Let the site file select an alternate cache file if it wants to.
3304 # Prefer an explicitly selected file to automatically selected ones.
3305 ac_site_file1=NONE
3306 ac_site_file2=NONE
3307 if test -n "$CONFIG_SITE"; then
3308 # We do not want a PATH search for config.site.
3309 case $CONFIG_SITE in #((
3310 -*) ac_site_file1=./$CONFIG_SITE;;
3311 */*) ac_site_file1=$CONFIG_SITE;;
3312 *) ac_site_file1=./$CONFIG_SITE;;
3313 esac
3314 elif test "x$prefix" != xNONE; then
3315 ac_site_file1=$prefix/share/config.site
3316 ac_site_file2=$prefix/etc/config.site
3317 else
3318 ac_site_file1=$ac_default_prefix/share/config.site
3319 ac_site_file2=$ac_default_prefix/etc/config.site
3320 fi
3321 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
3322 do
3323 test "x$ac_site_file" = xNONE && continue
3324 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
3325 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
3326 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
3327 sed 's/^/| /' "$ac_site_file" >&5
3328 . "$ac_site_file" \
3329 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3330 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3331 as_fn_error $? "failed to load site script $ac_site_file
3332 See \`config.log' for more details" "$LINENO" 5; }
3333 fi
3334 done
3336 if test -r "$cache_file"; then
3337 # Some versions of bash will fail to source /dev/null (special files
3338 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
3339 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
3340 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
3341 $as_echo "$as_me: loading cache $cache_file" >&6;}
3342 case $cache_file in
3343 [\\/]* | ?:[\\/]* ) . "$cache_file";;
3344 *) . "./$cache_file";;
3345 esac
3346 fi
3347 else
3348 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
3349 $as_echo "$as_me: creating cache $cache_file" >&6;}
3350 >$cache_file
3351 fi
3353 # Check that the precious variables saved in the cache have kept the same
3354 # value.
3355 ac_cache_corrupted=false
3356 for ac_var in $ac_precious_vars; do
3357 eval ac_old_set=\$ac_cv_env_${ac_var}_set
3358 eval ac_new_set=\$ac_env_${ac_var}_set
3359 eval ac_old_val=\$ac_cv_env_${ac_var}_value
3360 eval ac_new_val=\$ac_env_${ac_var}_value
3361 case $ac_old_set,$ac_new_set in
3362 set,)
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
3364 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
3365 ac_cache_corrupted=: ;;
3366 ,set)
3367 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
3368 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
3369 ac_cache_corrupted=: ;;
3370 ,);;
3371 *)
3372 if test "x$ac_old_val" != "x$ac_new_val"; then
3373 # differences in whitespace do not lead to failure.
3374 ac_old_val_w=`echo x $ac_old_val`
3375 ac_new_val_w=`echo x $ac_new_val`
3376 if test "$ac_old_val_w" != "$ac_new_val_w"; then
3377 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
3378 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
3379 ac_cache_corrupted=:
3380 else
3381 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
3382 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
3383 eval $ac_var=\$ac_old_val
3384 fi
3385 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
3386 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
3387 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
3388 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
3389 fi;;
3390 esac
3391 # Pass precious variables to config.status.
3392 if test "$ac_new_set" = set; then
3393 case $ac_new_val in
3394 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
3395 *) ac_arg=$ac_var=$ac_new_val ;;
3396 esac
3397 case " $ac_configure_args " in
3398 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
3399 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
3400 esac
3401 fi
3402 done
3403 if $ac_cache_corrupted; then
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3405 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
3407 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
3408 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
3409 fi
3410 ## -------------------- ##
3411 ## Main body of script. ##
3412 ## -------------------- ##
3414 ac_ext=c
3415 ac_cpp='$CPP $CPPFLAGS'
3416 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3417 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3418 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3422 ac_config_headers="$ac_config_headers src/config.h"
3424 ac_aux_dir=
3425 for ac_dir in libltdl/config "$srcdir"/libltdl/config; do
3426 if test -f "$ac_dir/install-sh"; then
3427 ac_aux_dir=$ac_dir
3428 ac_install_sh="$ac_aux_dir/install-sh -c"
3429 break
3430 elif test -f "$ac_dir/install.sh"; then
3431 ac_aux_dir=$ac_dir
3432 ac_install_sh="$ac_aux_dir/install.sh -c"
3433 break
3434 elif test -f "$ac_dir/shtool"; then
3435 ac_aux_dir=$ac_dir
3436 ac_install_sh="$ac_aux_dir/shtool install -c"
3437 break
3438 fi
3439 done
3440 if test -z "$ac_aux_dir"; then
3441 as_fn_error $? "cannot find install-sh, install.sh, or shtool in libltdl/config \"$srcdir\"/libltdl/config" "$LINENO" 5
3442 fi
3444 # These three variables are undocumented and unsupported,
3445 # and are intended to be withdrawn in a future Autoconf release.
3446 # They can cause serious problems if a builder's source tree is in a directory
3447 # whose full name contains unusual characters.
3448 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
3449 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
3450 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
3454 # libtool >= 2.2
3463 case `pwd` in
3464 *\ * | *\ *)
3465 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&5
3466 $as_echo "$as_me: WARNING: Libtool does not cope well with whitespace in \`pwd\`" >&2;} ;;
3467 esac
3471 macro_version='2.4.2'
3472 macro_revision='1.3337'
3486 ltmain="$ac_aux_dir/ltmain.sh"
3488 # Make sure we can run config.sub.
3489 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
3490 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
3492 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
3493 $as_echo_n "checking build system type... " >&6; }
3494 if ${ac_cv_build+:} false; then :
3495 $as_echo_n "(cached) " >&6
3496 else
3497 ac_build_alias=$build_alias
3498 test "x$ac_build_alias" = x &&
3499 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
3500 test "x$ac_build_alias" = x &&
3501 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
3502 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
3503 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
3505 fi
3506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
3507 $as_echo "$ac_cv_build" >&6; }
3508 case $ac_cv_build in
3509 *-*-*) ;;
3510 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
3511 esac
3512 build=$ac_cv_build
3513 ac_save_IFS=$IFS; IFS='-'
3514 set x $ac_cv_build
3515 shift
3516 build_cpu=$1
3517 build_vendor=$2
3518 shift; shift
3519 # Remember, the first character of IFS is used to create $*,
3520 # except with old shells:
3521 build_os=$*
3522 IFS=$ac_save_IFS
3523 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
3527 $as_echo_n "checking host system type... " >&6; }
3528 if ${ac_cv_host+:} false; then :
3529 $as_echo_n "(cached) " >&6
3530 else
3531 if test "x$host_alias" = x; then
3532 ac_cv_host=$ac_cv_build
3533 else
3534 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
3535 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
3536 fi
3538 fi
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
3540 $as_echo "$ac_cv_host" >&6; }
3541 case $ac_cv_host in
3542 *-*-*) ;;
3543 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
3544 esac
3545 host=$ac_cv_host
3546 ac_save_IFS=$IFS; IFS='-'
3547 set x $ac_cv_host
3548 shift
3549 host_cpu=$1
3550 host_vendor=$2
3551 shift; shift
3552 # Remember, the first character of IFS is used to create $*,
3553 # except with old shells:
3554 host_os=$*
3555 IFS=$ac_save_IFS
3556 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
3559 # Backslashify metacharacters that are still active within
3560 # double-quoted strings.
3561 sed_quote_subst='s/\(["`$\\]\)/\\\1/g'
3563 # Same as above, but do not quote variable references.
3564 double_quote_subst='s/\(["`\\]\)/\\\1/g'
3566 # Sed substitution to delay expansion of an escaped shell variable in a
3567 # double_quote_subst'ed string.
3568 delay_variable_subst='s/\\\\\\\\\\\$/\\\\\\$/g'
3570 # Sed substitution to delay expansion of an escaped single quote.
3571 delay_single_quote_subst='s/'\''/'\'\\\\\\\'\''/g'
3573 # Sed substitution to avoid accidental globbing in evaled expressions
3574 no_glob_subst='s/\*/\\\*/g'
3576 ECHO='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
3577 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO
3578 ECHO=$ECHO$ECHO$ECHO$ECHO$ECHO$ECHO
3580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to print strings" >&5
3581 $as_echo_n "checking how to print strings... " >&6; }
3582 # Test print first, because it will be a builtin if present.
3583 if test "X`( print -r -- -n ) 2>/dev/null`" = X-n && \
3584 test "X`print -r -- $ECHO 2>/dev/null`" = "X$ECHO"; then
3585 ECHO='print -r --'
3586 elif test "X`printf %s $ECHO 2>/dev/null`" = "X$ECHO"; then
3587 ECHO='printf %s\n'
3588 else
3589 # Use this function as a fallback that always works.
3590 func_fallback_echo ()
3591 {
3592 eval 'cat <<_LTECHO_EOF
3593 $1
3594 _LTECHO_EOF'
3595 }
3596 ECHO='func_fallback_echo'
3597 fi
3599 # func_echo_all arg...
3600 # Invoke $ECHO with all args, space-separated.
3601 func_echo_all ()
3602 {
3603 $ECHO ""
3604 }
3606 case "$ECHO" in
3607 printf*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: printf" >&5
3608 $as_echo "printf" >&6; } ;;
3609 print*) { $as_echo "$as_me:${as_lineno-$LINENO}: result: print -r" >&5
3610 $as_echo "print -r" >&6; } ;;
3611 *) { $as_echo "$as_me:${as_lineno-$LINENO}: result: cat" >&5
3612 $as_echo "cat" >&6; } ;;
3613 esac
3628 # expand $ac_aux_dir to an absolute path
3629 am_aux_dir=`cd $ac_aux_dir && pwd`
3631 ac_ext=c
3632 ac_cpp='$CPP $CPPFLAGS'
3633 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3634 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3635 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3636 if test -n "$ac_tool_prefix"; then
3637 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3638 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3640 $as_echo_n "checking for $ac_word... " >&6; }
3641 if ${ac_cv_prog_CC+:} false; then :
3642 $as_echo_n "(cached) " >&6
3643 else
3644 if test -n "$CC"; then
3645 ac_cv_prog_CC="$CC" # Let the user override the test.
3646 else
3647 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3648 for as_dir in $PATH
3649 do
3650 IFS=$as_save_IFS
3651 test -z "$as_dir" && as_dir=.
3652 for ac_exec_ext in '' $ac_executable_extensions; do
3653 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3654 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3655 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3656 break 2
3657 fi
3658 done
3659 done
3660 IFS=$as_save_IFS
3662 fi
3663 fi
3664 CC=$ac_cv_prog_CC
3665 if test -n "$CC"; then
3666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3667 $as_echo "$CC" >&6; }
3668 else
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3670 $as_echo "no" >&6; }
3671 fi
3674 fi
3675 if test -z "$ac_cv_prog_CC"; then
3676 ac_ct_CC=$CC
3677 # Extract the first word of "gcc", so it can be a program name with args.
3678 set dummy gcc; ac_word=$2
3679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3680 $as_echo_n "checking for $ac_word... " >&6; }
3681 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3682 $as_echo_n "(cached) " >&6
3683 else
3684 if test -n "$ac_ct_CC"; then
3685 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3686 else
3687 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3688 for as_dir in $PATH
3689 do
3690 IFS=$as_save_IFS
3691 test -z "$as_dir" && as_dir=.
3692 for ac_exec_ext in '' $ac_executable_extensions; do
3693 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3694 ac_cv_prog_ac_ct_CC="gcc"
3695 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3696 break 2
3697 fi
3698 done
3699 done
3700 IFS=$as_save_IFS
3702 fi
3703 fi
3704 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3705 if test -n "$ac_ct_CC"; then
3706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3707 $as_echo "$ac_ct_CC" >&6; }
3708 else
3709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3710 $as_echo "no" >&6; }
3711 fi
3713 if test "x$ac_ct_CC" = x; then
3714 CC=""
3715 else
3716 case $cross_compiling:$ac_tool_warned in
3717 yes:)
3718 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3719 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3720 ac_tool_warned=yes ;;
3721 esac
3722 CC=$ac_ct_CC
3723 fi
3724 else
3725 CC="$ac_cv_prog_CC"
3726 fi
3728 if test -z "$CC"; then
3729 if test -n "$ac_tool_prefix"; then
3730 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3731 set dummy ${ac_tool_prefix}cc; ac_word=$2
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3733 $as_echo_n "checking for $ac_word... " >&6; }
3734 if ${ac_cv_prog_CC+:} false; then :
3735 $as_echo_n "(cached) " >&6
3736 else
3737 if test -n "$CC"; then
3738 ac_cv_prog_CC="$CC" # Let the user override the test.
3739 else
3740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3741 for as_dir in $PATH
3742 do
3743 IFS=$as_save_IFS
3744 test -z "$as_dir" && as_dir=.
3745 for ac_exec_ext in '' $ac_executable_extensions; do
3746 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3747 ac_cv_prog_CC="${ac_tool_prefix}cc"
3748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3749 break 2
3750 fi
3751 done
3752 done
3753 IFS=$as_save_IFS
3755 fi
3756 fi
3757 CC=$ac_cv_prog_CC
3758 if test -n "$CC"; then
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3760 $as_echo "$CC" >&6; }
3761 else
3762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3763 $as_echo "no" >&6; }
3764 fi
3767 fi
3768 fi
3769 if test -z "$CC"; then
3770 # Extract the first word of "cc", so it can be a program name with args.
3771 set dummy cc; ac_word=$2
3772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3773 $as_echo_n "checking for $ac_word... " >&6; }
3774 if ${ac_cv_prog_CC+:} false; then :
3775 $as_echo_n "(cached) " >&6
3776 else
3777 if test -n "$CC"; then
3778 ac_cv_prog_CC="$CC" # Let the user override the test.
3779 else
3780 ac_prog_rejected=no
3781 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3782 for as_dir in $PATH
3783 do
3784 IFS=$as_save_IFS
3785 test -z "$as_dir" && as_dir=.
3786 for ac_exec_ext in '' $ac_executable_extensions; do
3787 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3788 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3789 ac_prog_rejected=yes
3790 continue
3791 fi
3792 ac_cv_prog_CC="cc"
3793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3794 break 2
3795 fi
3796 done
3797 done
3798 IFS=$as_save_IFS
3800 if test $ac_prog_rejected = yes; then
3801 # We found a bogon in the path, so make sure we never use it.
3802 set dummy $ac_cv_prog_CC
3803 shift
3804 if test $# != 0; then
3805 # We chose a different compiler from the bogus one.
3806 # However, it has the same basename, so the bogon will be chosen
3807 # first if we set CC to just the basename; use the full file name.
3808 shift
3809 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3810 fi
3811 fi
3812 fi
3813 fi
3814 CC=$ac_cv_prog_CC
3815 if test -n "$CC"; then
3816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3817 $as_echo "$CC" >&6; }
3818 else
3819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3820 $as_echo "no" >&6; }
3821 fi
3824 fi
3825 if test -z "$CC"; then
3826 if test -n "$ac_tool_prefix"; then
3827 for ac_prog in cl.exe
3828 do
3829 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3830 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3831 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3832 $as_echo_n "checking for $ac_word... " >&6; }
3833 if ${ac_cv_prog_CC+:} false; then :
3834 $as_echo_n "(cached) " >&6
3835 else
3836 if test -n "$CC"; then
3837 ac_cv_prog_CC="$CC" # Let the user override the test.
3838 else
3839 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3840 for as_dir in $PATH
3841 do
3842 IFS=$as_save_IFS
3843 test -z "$as_dir" && as_dir=.
3844 for ac_exec_ext in '' $ac_executable_extensions; do
3845 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3846 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3847 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3848 break 2
3849 fi
3850 done
3851 done
3852 IFS=$as_save_IFS
3854 fi
3855 fi
3856 CC=$ac_cv_prog_CC
3857 if test -n "$CC"; then
3858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3859 $as_echo "$CC" >&6; }
3860 else
3861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3862 $as_echo "no" >&6; }
3863 fi
3866 test -n "$CC" && break
3867 done
3868 fi
3869 if test -z "$CC"; then
3870 ac_ct_CC=$CC
3871 for ac_prog in cl.exe
3872 do
3873 # Extract the first word of "$ac_prog", so it can be a program name with args.
3874 set dummy $ac_prog; ac_word=$2
3875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3876 $as_echo_n "checking for $ac_word... " >&6; }
3877 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3878 $as_echo_n "(cached) " >&6
3879 else
3880 if test -n "$ac_ct_CC"; then
3881 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3882 else
3883 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3884 for as_dir in $PATH
3885 do
3886 IFS=$as_save_IFS
3887 test -z "$as_dir" && as_dir=.
3888 for ac_exec_ext in '' $ac_executable_extensions; do
3889 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3890 ac_cv_prog_ac_ct_CC="$ac_prog"
3891 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3892 break 2
3893 fi
3894 done
3895 done
3896 IFS=$as_save_IFS
3898 fi
3899 fi
3900 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3901 if test -n "$ac_ct_CC"; then
3902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3903 $as_echo "$ac_ct_CC" >&6; }
3904 else
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3906 $as_echo "no" >&6; }
3907 fi
3910 test -n "$ac_ct_CC" && break
3911 done
3913 if test "x$ac_ct_CC" = x; then
3914 CC=""
3915 else
3916 case $cross_compiling:$ac_tool_warned in
3917 yes:)
3918 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3919 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3920 ac_tool_warned=yes ;;
3921 esac
3922 CC=$ac_ct_CC
3923 fi
3924 fi
3926 fi
3929 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3930 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3931 as_fn_error $? "no acceptable C compiler found in \$PATH
3932 See \`config.log' for more details" "$LINENO" 5; }
3934 # Provide some information about the compiler.
3935 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3936 set X $ac_compile
3937 ac_compiler=$2
3938 for ac_option in --version -v -V -qversion; do
3939 { { ac_try="$ac_compiler $ac_option >&5"
3940 case "(($ac_try" in
3941 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3942 *) ac_try_echo=$ac_try;;
3943 esac
3944 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3945 $as_echo "$ac_try_echo"; } >&5
3946 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3947 ac_status=$?
3948 if test -s conftest.err; then
3949 sed '10a\
3950 ... rest of stderr output deleted ...
3951 10q' conftest.err >conftest.er1
3952 cat conftest.er1 >&5
3953 fi
3954 rm -f conftest.er1 conftest.err
3955 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3956 test $ac_status = 0; }
3957 done
3959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3960 /* end confdefs.h. */
3962 int
3963 main ()
3964 {
3966 ;
3967 return 0;
3968 }
3969 _ACEOF
3970 ac_clean_files_save=$ac_clean_files
3971 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3972 # Try to create an executable without -o first, disregard a.out.
3973 # It will help us diagnose broken compilers, and finding out an intuition
3974 # of exeext.
3975 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3976 $as_echo_n "checking whether the C compiler works... " >&6; }
3977 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3979 # The possible output files:
3980 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3982 ac_rmfiles=
3983 for ac_file in $ac_files
3984 do
3985 case $ac_file in
3986 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3987 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3988 esac
3989 done
3990 rm -f $ac_rmfiles
3992 if { { ac_try="$ac_link_default"
3993 case "(($ac_try" in
3994 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3995 *) ac_try_echo=$ac_try;;
3996 esac
3997 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3998 $as_echo "$ac_try_echo"; } >&5
3999 (eval "$ac_link_default") 2>&5
4000 ac_status=$?
4001 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4002 test $ac_status = 0; }; then :
4003 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
4004 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
4005 # in a Makefile. We should not override ac_cv_exeext if it was cached,
4006 # so that the user can short-circuit this test for compilers unknown to
4007 # Autoconf.
4008 for ac_file in $ac_files ''
4009 do
4010 test -f "$ac_file" || continue
4011 case $ac_file in
4012 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
4013 ;;
4014 [ab].out )
4015 # We found the default executable, but exeext='' is most
4016 # certainly right.
4017 break;;
4018 *.* )
4019 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
4020 then :; else
4021 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4022 fi
4023 # We set ac_cv_exeext here because the later test for it is not
4024 # safe: cross compilers may not add the suffix if given an `-o'
4025 # argument, so we may need to know it at that point already.
4026 # Even if this section looks crufty: it has the advantage of
4027 # actually working.
4028 break;;
4029 * )
4030 break;;
4031 esac
4032 done
4033 test "$ac_cv_exeext" = no && ac_cv_exeext=
4035 else
4036 ac_file=''
4037 fi
4038 if test -z "$ac_file"; then :
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4040 $as_echo "no" >&6; }
4041 $as_echo "$as_me: failed program was:" >&5
4042 sed 's/^/| /' conftest.$ac_ext >&5
4044 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4045 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4046 as_fn_error 77 "C compiler cannot create executables
4047 See \`config.log' for more details" "$LINENO" 5; }
4048 else
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4050 $as_echo "yes" >&6; }
4051 fi
4052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
4053 $as_echo_n "checking for C compiler default output file name... " >&6; }
4054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
4055 $as_echo "$ac_file" >&6; }
4056 ac_exeext=$ac_cv_exeext
4058 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
4059 ac_clean_files=$ac_clean_files_save
4060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
4061 $as_echo_n "checking for suffix of executables... " >&6; }
4062 if { { ac_try="$ac_link"
4063 case "(($ac_try" in
4064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4065 *) ac_try_echo=$ac_try;;
4066 esac
4067 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4068 $as_echo "$ac_try_echo"; } >&5
4069 (eval "$ac_link") 2>&5
4070 ac_status=$?
4071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4072 test $ac_status = 0; }; then :
4073 # If both `conftest.exe' and `conftest' are `present' (well, observable)
4074 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
4075 # work properly (i.e., refer to `conftest.exe'), while it won't with
4076 # `rm'.
4077 for ac_file in conftest.exe conftest conftest.*; do
4078 test -f "$ac_file" || continue
4079 case $ac_file in
4080 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
4081 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
4082 break;;
4083 * ) break;;
4084 esac
4085 done
4086 else
4087 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4088 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4089 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
4090 See \`config.log' for more details" "$LINENO" 5; }
4091 fi
4092 rm -f conftest conftest$ac_cv_exeext
4093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
4094 $as_echo "$ac_cv_exeext" >&6; }
4096 rm -f conftest.$ac_ext
4097 EXEEXT=$ac_cv_exeext
4098 ac_exeext=$EXEEXT
4099 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4100 /* end confdefs.h. */
4101 #include <stdio.h>
4102 int
4103 main ()
4104 {
4105 FILE *f = fopen ("conftest.out", "w");
4106 return ferror (f) || fclose (f) != 0;
4108 ;
4109 return 0;
4110 }
4111 _ACEOF
4112 ac_clean_files="$ac_clean_files conftest.out"
4113 # Check that the compiler produces executables we can run. If not, either
4114 # the compiler is broken, or we cross compile.
4115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
4116 $as_echo_n "checking whether we are cross compiling... " >&6; }
4117 if test "$cross_compiling" != yes; then
4118 { { ac_try="$ac_link"
4119 case "(($ac_try" in
4120 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4121 *) ac_try_echo=$ac_try;;
4122 esac
4123 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4124 $as_echo "$ac_try_echo"; } >&5
4125 (eval "$ac_link") 2>&5
4126 ac_status=$?
4127 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4128 test $ac_status = 0; }
4129 if { ac_try='./conftest$ac_cv_exeext'
4130 { { case "(($ac_try" in
4131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4132 *) ac_try_echo=$ac_try;;
4133 esac
4134 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4135 $as_echo "$ac_try_echo"; } >&5
4136 (eval "$ac_try") 2>&5
4137 ac_status=$?
4138 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4139 test $ac_status = 0; }; }; then
4140 cross_compiling=no
4141 else
4142 if test "$cross_compiling" = maybe; then
4143 cross_compiling=yes
4144 else
4145 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4146 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4147 as_fn_error $? "cannot run C compiled programs.
4148 If you meant to cross compile, use \`--host'.
4149 See \`config.log' for more details" "$LINENO" 5; }
4150 fi
4151 fi
4152 fi
4153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
4154 $as_echo "$cross_compiling" >&6; }
4156 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
4157 ac_clean_files=$ac_clean_files_save
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
4159 $as_echo_n "checking for suffix of object files... " >&6; }
4160 if ${ac_cv_objext+:} false; then :
4161 $as_echo_n "(cached) " >&6
4162 else
4163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4164 /* end confdefs.h. */
4166 int
4167 main ()
4168 {
4170 ;
4171 return 0;
4172 }
4173 _ACEOF
4174 rm -f conftest.o conftest.obj
4175 if { { ac_try="$ac_compile"
4176 case "(($ac_try" in
4177 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4178 *) ac_try_echo=$ac_try;;
4179 esac
4180 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4181 $as_echo "$ac_try_echo"; } >&5
4182 (eval "$ac_compile") 2>&5
4183 ac_status=$?
4184 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4185 test $ac_status = 0; }; then :
4186 for ac_file in conftest.o conftest.obj conftest.*; do
4187 test -f "$ac_file" || continue;
4188 case $ac_file in
4189 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
4190 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
4191 break;;
4192 esac
4193 done
4194 else
4195 $as_echo "$as_me: failed program was:" >&5
4196 sed 's/^/| /' conftest.$ac_ext >&5
4198 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4199 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4200 as_fn_error $? "cannot compute suffix of object files: cannot compile
4201 See \`config.log' for more details" "$LINENO" 5; }
4202 fi
4203 rm -f conftest.$ac_cv_objext conftest.$ac_ext
4204 fi
4205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
4206 $as_echo "$ac_cv_objext" >&6; }
4207 OBJEXT=$ac_cv_objext
4208 ac_objext=$OBJEXT
4209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4210 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4211 if ${ac_cv_c_compiler_gnu+:} false; then :
4212 $as_echo_n "(cached) " >&6
4213 else
4214 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4215 /* end confdefs.h. */
4217 int
4218 main ()
4219 {
4220 #ifndef __GNUC__
4221 choke me
4222 #endif
4224 ;
4225 return 0;
4226 }
4227 _ACEOF
4228 if ac_fn_c_try_compile "$LINENO"; then :
4229 ac_compiler_gnu=yes
4230 else
4231 ac_compiler_gnu=no
4232 fi
4233 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4234 ac_cv_c_compiler_gnu=$ac_compiler_gnu
4236 fi
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4238 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
4239 if test $ac_compiler_gnu = yes; then
4240 GCC=yes
4241 else
4242 GCC=
4243 fi
4244 ac_test_CFLAGS=${CFLAGS+set}
4245 ac_save_CFLAGS=$CFLAGS
4246 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4247 $as_echo_n "checking whether $CC accepts -g... " >&6; }
4248 if ${ac_cv_prog_cc_g+:} false; then :
4249 $as_echo_n "(cached) " >&6
4250 else
4251 ac_save_c_werror_flag=$ac_c_werror_flag
4252 ac_c_werror_flag=yes
4253 ac_cv_prog_cc_g=no
4254 CFLAGS="-g"
4255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4256 /* end confdefs.h. */
4258 int
4259 main ()
4260 {
4262 ;
4263 return 0;
4264 }
4265 _ACEOF
4266 if ac_fn_c_try_compile "$LINENO"; then :
4267 ac_cv_prog_cc_g=yes
4268 else
4269 CFLAGS=""
4270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4271 /* end confdefs.h. */
4273 int
4274 main ()
4275 {
4277 ;
4278 return 0;
4279 }
4280 _ACEOF
4281 if ac_fn_c_try_compile "$LINENO"; then :
4283 else
4284 ac_c_werror_flag=$ac_save_c_werror_flag
4285 CFLAGS="-g"
4286 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4287 /* end confdefs.h. */
4289 int
4290 main ()
4291 {
4293 ;
4294 return 0;
4295 }
4296 _ACEOF
4297 if ac_fn_c_try_compile "$LINENO"; then :
4298 ac_cv_prog_cc_g=yes
4299 fi
4300 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4301 fi
4302 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4303 fi
4304 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4305 ac_c_werror_flag=$ac_save_c_werror_flag
4306 fi
4307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4308 $as_echo "$ac_cv_prog_cc_g" >&6; }
4309 if test "$ac_test_CFLAGS" = set; then
4310 CFLAGS=$ac_save_CFLAGS
4311 elif test $ac_cv_prog_cc_g = yes; then
4312 if test "$GCC" = yes; then
4313 CFLAGS="-g -O2"
4314 else
4315 CFLAGS="-g"
4316 fi
4317 else
4318 if test "$GCC" = yes; then
4319 CFLAGS="-O2"
4320 else
4321 CFLAGS=
4322 fi
4323 fi
4324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4325 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4326 if ${ac_cv_prog_cc_c89+:} false; then :
4327 $as_echo_n "(cached) " >&6
4328 else
4329 ac_cv_prog_cc_c89=no
4330 ac_save_CC=$CC
4331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4332 /* end confdefs.h. */
4333 #include <stdarg.h>
4334 #include <stdio.h>
4335 struct stat;
4336 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4337 struct buf { int x; };
4338 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4339 static char *e (p, i)
4340 char **p;
4341 int i;
4342 {
4343 return p[i];
4344 }
4345 static char *f (char * (*g) (char **, int), char **p, ...)
4346 {
4347 char *s;
4348 va_list v;
4349 va_start (v,p);
4350 s = g (p, va_arg (v,int));
4351 va_end (v);
4352 return s;
4353 }
4355 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4356 function prototypes and stuff, but not '\xHH' hex character constants.
4357 These don't provoke an error unfortunately, instead are silently treated
4358 as 'x'. The following induces an error, until -std is added to get
4359 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4360 array size at least. It's necessary to write '\x00'==0 to get something
4361 that's true only with -std. */
4362 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4364 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4365 inside strings and character constants. */
4366 #define FOO(x) 'x'
4367 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4369 int test (int i, double x);
4370 struct s1 {int (*f) (int a);};
4371 struct s2 {int (*f) (double a);};
4372 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4373 int argc;
4374 char **argv;
4375 int
4376 main ()
4377 {
4378 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4379 ;
4380 return 0;
4381 }
4382 _ACEOF
4383 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4384 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4385 do
4386 CC="$ac_save_CC $ac_arg"
4387 if ac_fn_c_try_compile "$LINENO"; then :
4388 ac_cv_prog_cc_c89=$ac_arg
4389 fi
4390 rm -f core conftest.err conftest.$ac_objext
4391 test "x$ac_cv_prog_cc_c89" != "xno" && break
4392 done
4393 rm -f conftest.$ac_ext
4394 CC=$ac_save_CC
4396 fi
4397 # AC_CACHE_VAL
4398 case "x$ac_cv_prog_cc_c89" in
4399 x)
4400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4401 $as_echo "none needed" >&6; } ;;
4402 xno)
4403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4404 $as_echo "unsupported" >&6; } ;;
4405 *)
4406 CC="$CC $ac_cv_prog_cc_c89"
4407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4408 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4409 esac
4410 if test "x$ac_cv_prog_cc_c89" != xno; then :
4412 fi
4414 ac_ext=c
4415 ac_cpp='$CPP $CPPFLAGS'
4416 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4417 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4418 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4420 ac_ext=c
4421 ac_cpp='$CPP $CPPFLAGS'
4422 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4423 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4424 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4426 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4427 if ${am_cv_prog_cc_c_o+:} false; then :
4428 $as_echo_n "(cached) " >&6
4429 else
4430 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4431 /* end confdefs.h. */
4433 int
4434 main ()
4435 {
4437 ;
4438 return 0;
4439 }
4440 _ACEOF
4441 # Make sure it works both with $CC and with simple cc.
4442 # Following AC_PROG_CC_C_O, we do the test twice because some
4443 # compilers refuse to overwrite an existing .o file with -o,
4444 # though they will create one.
4445 am_cv_prog_cc_c_o=yes
4446 for am_i in 1 2; do
4447 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4448 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4449 ac_status=$?
4450 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4451 (exit $ac_status); } \
4452 && test -f conftest2.$ac_objext; then
4453 : OK
4454 else
4455 am_cv_prog_cc_c_o=no
4456 break
4457 fi
4458 done
4459 rm -f core conftest*
4460 unset am_i
4461 fi
4462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4463 $as_echo "$am_cv_prog_cc_c_o" >&6; }
4464 if test "$am_cv_prog_cc_c_o" != yes; then
4465 # Losing compiler, so override with the script.
4466 # FIXME: It is wrong to rewrite CC.
4467 # But if we don't then we get into trouble of one sort or another.
4468 # A longer-term fix would be to have automake use am__CC in this case,
4469 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4470 CC="$am_aux_dir/compile $CC"
4471 fi
4472 ac_ext=c
4473 ac_cpp='$CPP $CPPFLAGS'
4474 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4475 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4476 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a sed that does not truncate output" >&5
4480 $as_echo_n "checking for a sed that does not truncate output... " >&6; }
4481 if ${ac_cv_path_SED+:} false; then :
4482 $as_echo_n "(cached) " >&6
4483 else
4484 ac_script=s/aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa/bbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbbb/
4485 for ac_i in 1 2 3 4 5 6 7; do
4486 ac_script="$ac_script$as_nl$ac_script"
4487 done
4488 echo "$ac_script" 2>/dev/null | sed 99q >conftest.sed
4489 { ac_script=; unset ac_script;}
4490 if test -z "$SED"; then
4491 ac_path_SED_found=false
4492 # Loop through the user's path and test for each of PROGNAME-LIST
4493 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4494 for as_dir in $PATH
4495 do
4496 IFS=$as_save_IFS
4497 test -z "$as_dir" && as_dir=.
4498 for ac_prog in sed gsed; do
4499 for ac_exec_ext in '' $ac_executable_extensions; do
4500 ac_path_SED="$as_dir/$ac_prog$ac_exec_ext"
4501 as_fn_executable_p "$ac_path_SED" || continue
4502 # Check for GNU ac_path_SED and select it if it is found.
4503 # Check for GNU $ac_path_SED
4504 case `"$ac_path_SED" --version 2>&1` in
4505 *GNU*)
4506 ac_cv_path_SED="$ac_path_SED" ac_path_SED_found=:;;
4507 *)
4508 ac_count=0
4509 $as_echo_n 0123456789 >"conftest.in"
4510 while :
4511 do
4512 cat "conftest.in" "conftest.in" >"conftest.tmp"
4513 mv "conftest.tmp" "conftest.in"
4514 cp "conftest.in" "conftest.nl"
4515 $as_echo '' >> "conftest.nl"
4516 "$ac_path_SED" -f conftest.sed < "conftest.nl" >"conftest.out" 2>/dev/null || break
4517 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4518 as_fn_arith $ac_count + 1 && ac_count=$as_val
4519 if test $ac_count -gt ${ac_path_SED_max-0}; then
4520 # Best one so far, save it but keep looking for a better one
4521 ac_cv_path_SED="$ac_path_SED"
4522 ac_path_SED_max=$ac_count
4523 fi
4524 # 10*(2^10) chars as input seems more than enough
4525 test $ac_count -gt 10 && break
4526 done
4527 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4528 esac
4530 $ac_path_SED_found && break 3
4531 done
4532 done
4533 done
4534 IFS=$as_save_IFS
4535 if test -z "$ac_cv_path_SED"; then
4536 as_fn_error $? "no acceptable sed could be found in \$PATH" "$LINENO" 5
4537 fi
4538 else
4539 ac_cv_path_SED=$SED
4540 fi
4542 fi
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_SED" >&5
4544 $as_echo "$ac_cv_path_SED" >&6; }
4545 SED="$ac_cv_path_SED"
4546 rm -f conftest.sed
4548 test -z "$SED" && SED=sed
4549 Xsed="$SED -e 1s/^X//"
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4562 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4563 if ${ac_cv_path_GREP+:} false; then :
4564 $as_echo_n "(cached) " >&6
4565 else
4566 if test -z "$GREP"; then
4567 ac_path_GREP_found=false
4568 # Loop through the user's path and test for each of PROGNAME-LIST
4569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4570 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4571 do
4572 IFS=$as_save_IFS
4573 test -z "$as_dir" && as_dir=.
4574 for ac_prog in grep ggrep; do
4575 for ac_exec_ext in '' $ac_executable_extensions; do
4576 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4577 as_fn_executable_p "$ac_path_GREP" || continue
4578 # Check for GNU ac_path_GREP and select it if it is found.
4579 # Check for GNU $ac_path_GREP
4580 case `"$ac_path_GREP" --version 2>&1` in
4581 *GNU*)
4582 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4583 *)
4584 ac_count=0
4585 $as_echo_n 0123456789 >"conftest.in"
4586 while :
4587 do
4588 cat "conftest.in" "conftest.in" >"conftest.tmp"
4589 mv "conftest.tmp" "conftest.in"
4590 cp "conftest.in" "conftest.nl"
4591 $as_echo 'GREP' >> "conftest.nl"
4592 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4593 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4594 as_fn_arith $ac_count + 1 && ac_count=$as_val
4595 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4596 # Best one so far, save it but keep looking for a better one
4597 ac_cv_path_GREP="$ac_path_GREP"
4598 ac_path_GREP_max=$ac_count
4599 fi
4600 # 10*(2^10) chars as input seems more than enough
4601 test $ac_count -gt 10 && break
4602 done
4603 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4604 esac
4606 $ac_path_GREP_found && break 3
4607 done
4608 done
4609 done
4610 IFS=$as_save_IFS
4611 if test -z "$ac_cv_path_GREP"; then
4612 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4613 fi
4614 else
4615 ac_cv_path_GREP=$GREP
4616 fi
4618 fi
4619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4620 $as_echo "$ac_cv_path_GREP" >&6; }
4621 GREP="$ac_cv_path_GREP"
4624 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4625 $as_echo_n "checking for egrep... " >&6; }
4626 if ${ac_cv_path_EGREP+:} false; then :
4627 $as_echo_n "(cached) " >&6
4628 else
4629 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4630 then ac_cv_path_EGREP="$GREP -E"
4631 else
4632 if test -z "$EGREP"; then
4633 ac_path_EGREP_found=false
4634 # Loop through the user's path and test for each of PROGNAME-LIST
4635 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4636 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4637 do
4638 IFS=$as_save_IFS
4639 test -z "$as_dir" && as_dir=.
4640 for ac_prog in egrep; do
4641 for ac_exec_ext in '' $ac_executable_extensions; do
4642 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4643 as_fn_executable_p "$ac_path_EGREP" || continue
4644 # Check for GNU ac_path_EGREP and select it if it is found.
4645 # Check for GNU $ac_path_EGREP
4646 case `"$ac_path_EGREP" --version 2>&1` in
4647 *GNU*)
4648 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4649 *)
4650 ac_count=0
4651 $as_echo_n 0123456789 >"conftest.in"
4652 while :
4653 do
4654 cat "conftest.in" "conftest.in" >"conftest.tmp"
4655 mv "conftest.tmp" "conftest.in"
4656 cp "conftest.in" "conftest.nl"
4657 $as_echo 'EGREP' >> "conftest.nl"
4658 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4659 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4660 as_fn_arith $ac_count + 1 && ac_count=$as_val
4661 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4662 # Best one so far, save it but keep looking for a better one
4663 ac_cv_path_EGREP="$ac_path_EGREP"
4664 ac_path_EGREP_max=$ac_count
4665 fi
4666 # 10*(2^10) chars as input seems more than enough
4667 test $ac_count -gt 10 && break
4668 done
4669 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4670 esac
4672 $ac_path_EGREP_found && break 3
4673 done
4674 done
4675 done
4676 IFS=$as_save_IFS
4677 if test -z "$ac_cv_path_EGREP"; then
4678 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4679 fi
4680 else
4681 ac_cv_path_EGREP=$EGREP
4682 fi
4684 fi
4685 fi
4686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4687 $as_echo "$ac_cv_path_EGREP" >&6; }
4688 EGREP="$ac_cv_path_EGREP"
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fgrep" >&5
4692 $as_echo_n "checking for fgrep... " >&6; }
4693 if ${ac_cv_path_FGREP+:} false; then :
4694 $as_echo_n "(cached) " >&6
4695 else
4696 if echo 'ab*c' | $GREP -F 'ab*c' >/dev/null 2>&1
4697 then ac_cv_path_FGREP="$GREP -F"
4698 else
4699 if test -z "$FGREP"; then
4700 ac_path_FGREP_found=false
4701 # Loop through the user's path and test for each of PROGNAME-LIST
4702 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4703 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4704 do
4705 IFS=$as_save_IFS
4706 test -z "$as_dir" && as_dir=.
4707 for ac_prog in fgrep; do
4708 for ac_exec_ext in '' $ac_executable_extensions; do
4709 ac_path_FGREP="$as_dir/$ac_prog$ac_exec_ext"
4710 as_fn_executable_p "$ac_path_FGREP" || continue
4711 # Check for GNU ac_path_FGREP and select it if it is found.
4712 # Check for GNU $ac_path_FGREP
4713 case `"$ac_path_FGREP" --version 2>&1` in
4714 *GNU*)
4715 ac_cv_path_FGREP="$ac_path_FGREP" ac_path_FGREP_found=:;;
4716 *)
4717 ac_count=0
4718 $as_echo_n 0123456789 >"conftest.in"
4719 while :
4720 do
4721 cat "conftest.in" "conftest.in" >"conftest.tmp"
4722 mv "conftest.tmp" "conftest.in"
4723 cp "conftest.in" "conftest.nl"
4724 $as_echo 'FGREP' >> "conftest.nl"
4725 "$ac_path_FGREP" FGREP < "conftest.nl" >"conftest.out" 2>/dev/null || break
4726 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4727 as_fn_arith $ac_count + 1 && ac_count=$as_val
4728 if test $ac_count -gt ${ac_path_FGREP_max-0}; then
4729 # Best one so far, save it but keep looking for a better one
4730 ac_cv_path_FGREP="$ac_path_FGREP"
4731 ac_path_FGREP_max=$ac_count
4732 fi
4733 # 10*(2^10) chars as input seems more than enough
4734 test $ac_count -gt 10 && break
4735 done
4736 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4737 esac
4739 $ac_path_FGREP_found && break 3
4740 done
4741 done
4742 done
4743 IFS=$as_save_IFS
4744 if test -z "$ac_cv_path_FGREP"; then
4745 as_fn_error $? "no acceptable fgrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4746 fi
4747 else
4748 ac_cv_path_FGREP=$FGREP
4749 fi
4751 fi
4752 fi
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_FGREP" >&5
4754 $as_echo "$ac_cv_path_FGREP" >&6; }
4755 FGREP="$ac_cv_path_FGREP"
4758 test -z "$GREP" && GREP=grep
4778 # Check whether --with-gnu-ld was given.
4779 if test "${with_gnu_ld+set}" = set; then :
4780 withval=$with_gnu_ld; test "$withval" = no || with_gnu_ld=yes
4781 else
4782 with_gnu_ld=no
4783 fi
4785 ac_prog=ld
4786 if test "$GCC" = yes; then
4787 # Check if gcc -print-prog-name=ld gives a path.
4788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ld used by $CC" >&5
4789 $as_echo_n "checking for ld used by $CC... " >&6; }
4790 case $host in
4791 *-*-mingw*)
4792 # gcc leaves a trailing carriage return which upsets mingw
4793 ac_prog=`($CC -print-prog-name=ld) 2>&5 | tr -d '\015'` ;;
4794 *)
4795 ac_prog=`($CC -print-prog-name=ld) 2>&5` ;;
4796 esac
4797 case $ac_prog in
4798 # Accept absolute paths.
4799 [\\/]* | ?:[\\/]*)
4800 re_direlt='/[^/][^/]*/\.\./'
4801 # Canonicalize the pathname of ld
4802 ac_prog=`$ECHO "$ac_prog"| $SED 's%\\\\%/%g'`
4803 while $ECHO "$ac_prog" | $GREP "$re_direlt" > /dev/null 2>&1; do
4804 ac_prog=`$ECHO $ac_prog| $SED "s%$re_direlt%/%"`
4805 done
4806 test -z "$LD" && LD="$ac_prog"
4807 ;;
4808 "")
4809 # If it fails, then pretend we aren't using GCC.
4810 ac_prog=ld
4811 ;;
4812 *)
4813 # If it is relative, then search for the first ld in PATH.
4814 with_gnu_ld=unknown
4815 ;;
4816 esac
4817 elif test "$with_gnu_ld" = yes; then
4818 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU ld" >&5
4819 $as_echo_n "checking for GNU ld... " >&6; }
4820 else
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for non-GNU ld" >&5
4822 $as_echo_n "checking for non-GNU ld... " >&6; }
4823 fi
4824 if ${lt_cv_path_LD+:} false; then :
4825 $as_echo_n "(cached) " >&6
4826 else
4827 if test -z "$LD"; then
4828 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4829 for ac_dir in $PATH; do
4830 IFS="$lt_save_ifs"
4831 test -z "$ac_dir" && ac_dir=.
4832 if test -f "$ac_dir/$ac_prog" || test -f "$ac_dir/$ac_prog$ac_exeext"; then
4833 lt_cv_path_LD="$ac_dir/$ac_prog"
4834 # Check to see if the program is GNU ld. I'd rather use --version,
4835 # but apparently some variants of GNU ld only accept -v.
4836 # Break only if it was the GNU/non-GNU ld that we prefer.
4837 case `"$lt_cv_path_LD" -v 2>&1 </dev/null` in
4838 *GNU* | *'with BFD'*)
4839 test "$with_gnu_ld" != no && break
4840 ;;
4841 *)
4842 test "$with_gnu_ld" != yes && break
4843 ;;
4844 esac
4845 fi
4846 done
4847 IFS="$lt_save_ifs"
4848 else
4849 lt_cv_path_LD="$LD" # Let the user override the test with a path.
4850 fi
4851 fi
4853 LD="$lt_cv_path_LD"
4854 if test -n "$LD"; then
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
4856 $as_echo "$LD" >&6; }
4857 else
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4859 $as_echo "no" >&6; }
4860 fi
4861 test -z "$LD" && as_fn_error $? "no acceptable ld found in \$PATH" "$LINENO" 5
4862 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the linker ($LD) is GNU ld" >&5
4863 $as_echo_n "checking if the linker ($LD) is GNU ld... " >&6; }
4864 if ${lt_cv_prog_gnu_ld+:} false; then :
4865 $as_echo_n "(cached) " >&6
4866 else
4867 # I'd rather use --version here, but apparently some GNU lds only accept -v.
4868 case `$LD -v 2>&1 </dev/null` in
4869 *GNU* | *'with BFD'*)
4870 lt_cv_prog_gnu_ld=yes
4871 ;;
4872 *)
4873 lt_cv_prog_gnu_ld=no
4874 ;;
4875 esac
4876 fi
4877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_gnu_ld" >&5
4878 $as_echo "$lt_cv_prog_gnu_ld" >&6; }
4879 with_gnu_ld=$lt_cv_prog_gnu_ld
4889 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for BSD- or MS-compatible name lister (nm)" >&5
4890 $as_echo_n "checking for BSD- or MS-compatible name lister (nm)... " >&6; }
4891 if ${lt_cv_path_NM+:} false; then :
4892 $as_echo_n "(cached) " >&6
4893 else
4894 if test -n "$NM"; then
4895 # Let the user override the test.
4896 lt_cv_path_NM="$NM"
4897 else
4898 lt_nm_to_check="${ac_tool_prefix}nm"
4899 if test -n "$ac_tool_prefix" && test "$build" = "$host"; then
4900 lt_nm_to_check="$lt_nm_to_check nm"
4901 fi
4902 for lt_tmp_nm in $lt_nm_to_check; do
4903 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
4904 for ac_dir in $PATH /usr/ccs/bin/elf /usr/ccs/bin /usr/ucb /bin; do
4905 IFS="$lt_save_ifs"
4906 test -z "$ac_dir" && ac_dir=.
4907 tmp_nm="$ac_dir/$lt_tmp_nm"
4908 if test -f "$tmp_nm" || test -f "$tmp_nm$ac_exeext" ; then
4909 # Check to see if the nm accepts a BSD-compat flag.
4910 # Adding the `sed 1q' prevents false positives on HP-UX, which says:
4911 # nm: unknown option "B" ignored
4912 # Tru64's nm complains that /dev/null is an invalid object file
4913 case `"$tmp_nm" -B /dev/null 2>&1 | sed '1q'` in
4914 */dev/null* | *'Invalid file or object type'*)
4915 lt_cv_path_NM="$tmp_nm -B"
4916 break
4917 ;;
4918 *)
4919 case `"$tmp_nm" -p /dev/null 2>&1 | sed '1q'` in
4920 */dev/null*)
4921 lt_cv_path_NM="$tmp_nm -p"
4922 break
4923 ;;
4924 *)
4925 lt_cv_path_NM=${lt_cv_path_NM="$tmp_nm"} # keep the first match, but
4926 continue # so that we can try to find one that supports BSD flags
4927 ;;
4928 esac
4929 ;;
4930 esac
4931 fi
4932 done
4933 IFS="$lt_save_ifs"
4934 done
4935 : ${lt_cv_path_NM=no}
4936 fi
4937 fi
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_NM" >&5
4939 $as_echo "$lt_cv_path_NM" >&6; }
4940 if test "$lt_cv_path_NM" != "no"; then
4941 NM="$lt_cv_path_NM"
4942 else
4943 # Didn't find any BSD compatible name lister, look for dumpbin.
4944 if test -n "$DUMPBIN"; then :
4945 # Let the user override the test.
4946 else
4947 if test -n "$ac_tool_prefix"; then
4948 for ac_prog in dumpbin "link -dump"
4949 do
4950 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4951 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4952 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4953 $as_echo_n "checking for $ac_word... " >&6; }
4954 if ${ac_cv_prog_DUMPBIN+:} false; then :
4955 $as_echo_n "(cached) " >&6
4956 else
4957 if test -n "$DUMPBIN"; then
4958 ac_cv_prog_DUMPBIN="$DUMPBIN" # Let the user override the test.
4959 else
4960 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4961 for as_dir in $PATH
4962 do
4963 IFS=$as_save_IFS
4964 test -z "$as_dir" && as_dir=.
4965 for ac_exec_ext in '' $ac_executable_extensions; do
4966 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4967 ac_cv_prog_DUMPBIN="$ac_tool_prefix$ac_prog"
4968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4969 break 2
4970 fi
4971 done
4972 done
4973 IFS=$as_save_IFS
4975 fi
4976 fi
4977 DUMPBIN=$ac_cv_prog_DUMPBIN
4978 if test -n "$DUMPBIN"; then
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DUMPBIN" >&5
4980 $as_echo "$DUMPBIN" >&6; }
4981 else
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4983 $as_echo "no" >&6; }
4984 fi
4987 test -n "$DUMPBIN" && break
4988 done
4989 fi
4990 if test -z "$DUMPBIN"; then
4991 ac_ct_DUMPBIN=$DUMPBIN
4992 for ac_prog in dumpbin "link -dump"
4993 do
4994 # Extract the first word of "$ac_prog", so it can be a program name with args.
4995 set dummy $ac_prog; ac_word=$2
4996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4997 $as_echo_n "checking for $ac_word... " >&6; }
4998 if ${ac_cv_prog_ac_ct_DUMPBIN+:} false; then :
4999 $as_echo_n "(cached) " >&6
5000 else
5001 if test -n "$ac_ct_DUMPBIN"; then
5002 ac_cv_prog_ac_ct_DUMPBIN="$ac_ct_DUMPBIN" # Let the user override the test.
5003 else
5004 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5005 for as_dir in $PATH
5006 do
5007 IFS=$as_save_IFS
5008 test -z "$as_dir" && as_dir=.
5009 for ac_exec_ext in '' $ac_executable_extensions; do
5010 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5011 ac_cv_prog_ac_ct_DUMPBIN="$ac_prog"
5012 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5013 break 2
5014 fi
5015 done
5016 done
5017 IFS=$as_save_IFS
5019 fi
5020 fi
5021 ac_ct_DUMPBIN=$ac_cv_prog_ac_ct_DUMPBIN
5022 if test -n "$ac_ct_DUMPBIN"; then
5023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DUMPBIN" >&5
5024 $as_echo "$ac_ct_DUMPBIN" >&6; }
5025 else
5026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5027 $as_echo "no" >&6; }
5028 fi
5031 test -n "$ac_ct_DUMPBIN" && break
5032 done
5034 if test "x$ac_ct_DUMPBIN" = x; then
5035 DUMPBIN=":"
5036 else
5037 case $cross_compiling:$ac_tool_warned in
5038 yes:)
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5040 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5041 ac_tool_warned=yes ;;
5042 esac
5043 DUMPBIN=$ac_ct_DUMPBIN
5044 fi
5045 fi
5047 case `$DUMPBIN -symbols /dev/null 2>&1 | sed '1q'` in
5048 *COFF*)
5049 DUMPBIN="$DUMPBIN -symbols"
5050 ;;
5051 *)
5052 DUMPBIN=:
5053 ;;
5054 esac
5055 fi
5057 if test "$DUMPBIN" != ":"; then
5058 NM="$DUMPBIN"
5059 fi
5060 fi
5061 test -z "$NM" && NM=nm
5068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the name lister ($NM) interface" >&5
5069 $as_echo_n "checking the name lister ($NM) interface... " >&6; }
5070 if ${lt_cv_nm_interface+:} false; then :
5071 $as_echo_n "(cached) " >&6
5072 else
5073 lt_cv_nm_interface="BSD nm"
5074 echo "int some_variable = 0;" > conftest.$ac_ext
5075 (eval echo "\"\$as_me:$LINENO: $ac_compile\"" >&5)
5076 (eval "$ac_compile" 2>conftest.err)
5077 cat conftest.err >&5
5078 (eval echo "\"\$as_me:$LINENO: $NM \\\"conftest.$ac_objext\\\"\"" >&5)
5079 (eval "$NM \"conftest.$ac_objext\"" 2>conftest.err > conftest.out)
5080 cat conftest.err >&5
5081 (eval echo "\"\$as_me:$LINENO: output\"" >&5)
5082 cat conftest.out >&5
5083 if $GREP 'External.*some_variable' conftest.out > /dev/null; then
5084 lt_cv_nm_interface="MS dumpbin"
5085 fi
5086 rm -f conftest*
5087 fi
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_nm_interface" >&5
5089 $as_echo "$lt_cv_nm_interface" >&6; }
5091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
5092 $as_echo_n "checking whether ln -s works... " >&6; }
5093 LN_S=$as_ln_s
5094 if test "$LN_S" = "ln -s"; then
5095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5096 $as_echo "yes" >&6; }
5097 else
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
5099 $as_echo "no, using $LN_S" >&6; }
5100 fi
5102 # find the maximum length of command line arguments
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking the maximum length of command line arguments" >&5
5104 $as_echo_n "checking the maximum length of command line arguments... " >&6; }
5105 if ${lt_cv_sys_max_cmd_len+:} false; then :
5106 $as_echo_n "(cached) " >&6
5107 else
5108 i=0
5109 teststring="ABCD"
5111 case $build_os in
5112 msdosdjgpp*)
5113 # On DJGPP, this test can blow up pretty badly due to problems in libc
5114 # (any single argument exceeding 2000 bytes causes a buffer overrun
5115 # during glob expansion). Even if it were fixed, the result of this
5116 # check would be larger than it should be.
5117 lt_cv_sys_max_cmd_len=12288; # 12K is about right
5118 ;;
5120 gnu*)
5121 # Under GNU Hurd, this test is not required because there is
5122 # no limit to the length of command line arguments.
5123 # Libtool will interpret -1 as no limit whatsoever
5124 lt_cv_sys_max_cmd_len=-1;
5125 ;;
5127 cygwin* | mingw* | cegcc*)
5128 # On Win9x/ME, this test blows up -- it succeeds, but takes
5129 # about 5 minutes as the teststring grows exponentially.
5130 # Worse, since 9x/ME are not pre-emptively multitasking,
5131 # you end up with a "frozen" computer, even though with patience
5132 # the test eventually succeeds (with a max line length of 256k).
5133 # Instead, let's just punt: use the minimum linelength reported by
5134 # all of the supported platforms: 8192 (on NT/2K/XP).
5135 lt_cv_sys_max_cmd_len=8192;
5136 ;;
5138 mint*)
5139 # On MiNT this can take a long time and run out of memory.
5140 lt_cv_sys_max_cmd_len=8192;
5141 ;;
5143 amigaos*)
5144 # On AmigaOS with pdksh, this test takes hours, literally.
5145 # So we just punt and use a minimum line length of 8192.
5146 lt_cv_sys_max_cmd_len=8192;
5147 ;;
5149 netbsd* | freebsd* | openbsd* | darwin* | dragonfly*)
5150 # This has been around since 386BSD, at least. Likely further.
5151 if test -x /sbin/sysctl; then
5152 lt_cv_sys_max_cmd_len=`/sbin/sysctl -n kern.argmax`
5153 elif test -x /usr/sbin/sysctl; then
5154 lt_cv_sys_max_cmd_len=`/usr/sbin/sysctl -n kern.argmax`
5155 else
5156 lt_cv_sys_max_cmd_len=65536 # usable default for all BSDs
5157 fi
5158 # And add a safety zone
5159 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5160 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5161 ;;
5163 interix*)
5164 # We know the value 262144 and hardcode it with a safety zone (like BSD)
5165 lt_cv_sys_max_cmd_len=196608
5166 ;;
5168 os2*)
5169 # The test takes a long time on OS/2.
5170 lt_cv_sys_max_cmd_len=8192
5171 ;;
5173 osf*)
5174 # Dr. Hans Ekkehard Plesser reports seeing a kernel panic running configure
5175 # due to this test when exec_disable_arg_limit is 1 on Tru64. It is not
5176 # nice to cause kernel panics so lets avoid the loop below.
5177 # First set a reasonable default.
5178 lt_cv_sys_max_cmd_len=16384
5179 #
5180 if test -x /sbin/sysconfig; then
5181 case `/sbin/sysconfig -q proc exec_disable_arg_limit` in
5182 *1*) lt_cv_sys_max_cmd_len=-1 ;;
5183 esac
5184 fi
5185 ;;
5186 sco3.2v5*)
5187 lt_cv_sys_max_cmd_len=102400
5188 ;;
5189 sysv5* | sco5v6* | sysv4.2uw2*)
5190 kargmax=`grep ARG_MAX /etc/conf/cf.d/stune 2>/dev/null`
5191 if test -n "$kargmax"; then
5192 lt_cv_sys_max_cmd_len=`echo $kargmax | sed 's/.*[ ]//'`
5193 else
5194 lt_cv_sys_max_cmd_len=32768
5195 fi
5196 ;;
5197 *)
5198 lt_cv_sys_max_cmd_len=`(getconf ARG_MAX) 2> /dev/null`
5199 if test -n "$lt_cv_sys_max_cmd_len" && \
5200 test undefined != "$lt_cv_sys_max_cmd_len"; then
5201 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 4`
5202 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \* 3`
5203 else
5204 # Make teststring a little bigger before we do anything with it.
5205 # a 1K string should be a reasonable start.
5206 for i in 1 2 3 4 5 6 7 8 ; do
5207 teststring=$teststring$teststring
5208 done
5209 SHELL=${SHELL-${CONFIG_SHELL-/bin/sh}}
5210 # If test is not a shell built-in, we'll probably end up computing a
5211 # maximum length that is only half of the actual maximum length, but
5212 # we can't tell.
5213 while { test "X"`env echo "$teststring$teststring" 2>/dev/null` \
5214 = "X$teststring$teststring"; } >/dev/null 2>&1 &&
5215 test $i != 17 # 1/2 MB should be enough
5216 do
5217 i=`expr $i + 1`
5218 teststring=$teststring$teststring
5219 done
5220 # Only check the string length outside the loop.
5221 lt_cv_sys_max_cmd_len=`expr "X$teststring" : ".*" 2>&1`
5222 teststring=
5223 # Add a significant safety factor because C++ compilers can tack on
5224 # massive amounts of additional arguments before passing them to the
5225 # linker. It appears as though 1/2 is a usable value.
5226 lt_cv_sys_max_cmd_len=`expr $lt_cv_sys_max_cmd_len \/ 2`
5227 fi
5228 ;;
5229 esac
5231 fi
5233 if test -n $lt_cv_sys_max_cmd_len ; then
5234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_max_cmd_len" >&5
5235 $as_echo "$lt_cv_sys_max_cmd_len" >&6; }
5236 else
5237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none" >&5
5238 $as_echo "none" >&6; }
5239 fi
5240 max_cmd_len=$lt_cv_sys_max_cmd_len
5247 : ${CP="cp -f"}
5248 : ${MV="mv -f"}
5249 : ${RM="rm -f"}
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands some XSI constructs" >&5
5252 $as_echo_n "checking whether the shell understands some XSI constructs... " >&6; }
5253 # Try some XSI features
5254 xsi_shell=no
5255 ( _lt_dummy="a/b/c"
5256 test "${_lt_dummy##*/},${_lt_dummy%/*},${_lt_dummy#??}"${_lt_dummy%"$_lt_dummy"}, \
5257 = c,a/b,b/c, \
5258 && eval 'test $(( 1 + 1 )) -eq 2 \
5259 && test "${#_lt_dummy}" -eq 5' ) >/dev/null 2>&1 \
5260 && xsi_shell=yes
5261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $xsi_shell" >&5
5262 $as_echo "$xsi_shell" >&6; }
5265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the shell understands \"+=\"" >&5
5266 $as_echo_n "checking whether the shell understands \"+=\"... " >&6; }
5267 lt_shell_append=no
5268 ( foo=bar; set foo baz; eval "$1+=\$2" && test "$foo" = barbaz ) \
5269 >/dev/null 2>&1 \
5270 && lt_shell_append=yes
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_shell_append" >&5
5272 $as_echo "$lt_shell_append" >&6; }
5275 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
5276 lt_unset=unset
5277 else
5278 lt_unset=false
5279 fi
5285 # test EBCDIC or ASCII
5286 case `echo X|tr X '\101'` in
5287 A) # ASCII based system
5288 # \n is not interpreted correctly by Solaris 8 /usr/ucb/tr
5289 lt_SP2NL='tr \040 \012'
5290 lt_NL2SP='tr \015\012 \040\040'
5291 ;;
5292 *) # EBCDIC based system
5293 lt_SP2NL='tr \100 \n'
5294 lt_NL2SP='tr \r\n \100\100'
5295 ;;
5296 esac
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to $host format" >&5
5307 $as_echo_n "checking how to convert $build file names to $host format... " >&6; }
5308 if ${lt_cv_to_host_file_cmd+:} false; then :
5309 $as_echo_n "(cached) " >&6
5310 else
5311 case $host in
5312 *-*-mingw* )
5313 case $build in
5314 *-*-mingw* ) # actually msys
5315 lt_cv_to_host_file_cmd=func_convert_file_msys_to_w32
5316 ;;
5317 *-*-cygwin* )
5318 lt_cv_to_host_file_cmd=func_convert_file_cygwin_to_w32
5319 ;;
5320 * ) # otherwise, assume *nix
5321 lt_cv_to_host_file_cmd=func_convert_file_nix_to_w32
5322 ;;
5323 esac
5324 ;;
5325 *-*-cygwin* )
5326 case $build in
5327 *-*-mingw* ) # actually msys
5328 lt_cv_to_host_file_cmd=func_convert_file_msys_to_cygwin
5329 ;;
5330 *-*-cygwin* )
5331 lt_cv_to_host_file_cmd=func_convert_file_noop
5332 ;;
5333 * ) # otherwise, assume *nix
5334 lt_cv_to_host_file_cmd=func_convert_file_nix_to_cygwin
5335 ;;
5336 esac
5337 ;;
5338 * ) # unhandled hosts (and "normal" native builds)
5339 lt_cv_to_host_file_cmd=func_convert_file_noop
5340 ;;
5341 esac
5343 fi
5345 to_host_file_cmd=$lt_cv_to_host_file_cmd
5346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_host_file_cmd" >&5
5347 $as_echo "$lt_cv_to_host_file_cmd" >&6; }
5353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to convert $build file names to toolchain format" >&5
5354 $as_echo_n "checking how to convert $build file names to toolchain format... " >&6; }
5355 if ${lt_cv_to_tool_file_cmd+:} false; then :
5356 $as_echo_n "(cached) " >&6
5357 else
5358 #assume ordinary cross tools, or native build.
5359 lt_cv_to_tool_file_cmd=func_convert_file_noop
5360 case $host in
5361 *-*-mingw* )
5362 case $build in
5363 *-*-mingw* ) # actually msys
5364 lt_cv_to_tool_file_cmd=func_convert_file_msys_to_w32
5365 ;;
5366 esac
5367 ;;
5368 esac
5370 fi
5372 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
5373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_to_tool_file_cmd" >&5
5374 $as_echo "$lt_cv_to_tool_file_cmd" >&6; }
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $LD option to reload object files" >&5
5381 $as_echo_n "checking for $LD option to reload object files... " >&6; }
5382 if ${lt_cv_ld_reload_flag+:} false; then :
5383 $as_echo_n "(cached) " >&6
5384 else
5385 lt_cv_ld_reload_flag='-r'
5386 fi
5387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_reload_flag" >&5
5388 $as_echo "$lt_cv_ld_reload_flag" >&6; }
5389 reload_flag=$lt_cv_ld_reload_flag
5390 case $reload_flag in
5391 "" | " "*) ;;
5392 *) reload_flag=" $reload_flag" ;;
5393 esac
5394 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5395 case $host_os in
5396 cygwin* | mingw* | pw32* | cegcc*)
5397 if test "$GCC" != yes; then
5398 reload_cmds=false
5399 fi
5400 ;;
5401 darwin*)
5402 if test "$GCC" = yes; then
5403 reload_cmds='$LTCC $LTCFLAGS -nostdlib ${wl}-r -o $output$reload_objs'
5404 else
5405 reload_cmds='$LD$reload_flag -o $output$reload_objs'
5406 fi
5407 ;;
5408 esac
5418 if test -n "$ac_tool_prefix"; then
5419 # Extract the first word of "${ac_tool_prefix}objdump", so it can be a program name with args.
5420 set dummy ${ac_tool_prefix}objdump; ac_word=$2
5421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5422 $as_echo_n "checking for $ac_word... " >&6; }
5423 if ${ac_cv_prog_OBJDUMP+:} false; then :
5424 $as_echo_n "(cached) " >&6
5425 else
5426 if test -n "$OBJDUMP"; then
5427 ac_cv_prog_OBJDUMP="$OBJDUMP" # Let the user override the test.
5428 else
5429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5430 for as_dir in $PATH
5431 do
5432 IFS=$as_save_IFS
5433 test -z "$as_dir" && as_dir=.
5434 for ac_exec_ext in '' $ac_executable_extensions; do
5435 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5436 ac_cv_prog_OBJDUMP="${ac_tool_prefix}objdump"
5437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5438 break 2
5439 fi
5440 done
5441 done
5442 IFS=$as_save_IFS
5444 fi
5445 fi
5446 OBJDUMP=$ac_cv_prog_OBJDUMP
5447 if test -n "$OBJDUMP"; then
5448 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OBJDUMP" >&5
5449 $as_echo "$OBJDUMP" >&6; }
5450 else
5451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5452 $as_echo "no" >&6; }
5453 fi
5456 fi
5457 if test -z "$ac_cv_prog_OBJDUMP"; then
5458 ac_ct_OBJDUMP=$OBJDUMP
5459 # Extract the first word of "objdump", so it can be a program name with args.
5460 set dummy objdump; ac_word=$2
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5462 $as_echo_n "checking for $ac_word... " >&6; }
5463 if ${ac_cv_prog_ac_ct_OBJDUMP+:} false; then :
5464 $as_echo_n "(cached) " >&6
5465 else
5466 if test -n "$ac_ct_OBJDUMP"; then
5467 ac_cv_prog_ac_ct_OBJDUMP="$ac_ct_OBJDUMP" # Let the user override the test.
5468 else
5469 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5470 for as_dir in $PATH
5471 do
5472 IFS=$as_save_IFS
5473 test -z "$as_dir" && as_dir=.
5474 for ac_exec_ext in '' $ac_executable_extensions; do
5475 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5476 ac_cv_prog_ac_ct_OBJDUMP="objdump"
5477 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5478 break 2
5479 fi
5480 done
5481 done
5482 IFS=$as_save_IFS
5484 fi
5485 fi
5486 ac_ct_OBJDUMP=$ac_cv_prog_ac_ct_OBJDUMP
5487 if test -n "$ac_ct_OBJDUMP"; then
5488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OBJDUMP" >&5
5489 $as_echo "$ac_ct_OBJDUMP" >&6; }
5490 else
5491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5492 $as_echo "no" >&6; }
5493 fi
5495 if test "x$ac_ct_OBJDUMP" = x; then
5496 OBJDUMP="false"
5497 else
5498 case $cross_compiling:$ac_tool_warned in
5499 yes:)
5500 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5501 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5502 ac_tool_warned=yes ;;
5503 esac
5504 OBJDUMP=$ac_ct_OBJDUMP
5505 fi
5506 else
5507 OBJDUMP="$ac_cv_prog_OBJDUMP"
5508 fi
5510 test -z "$OBJDUMP" && OBJDUMP=objdump
5520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to recognize dependent libraries" >&5
5521 $as_echo_n "checking how to recognize dependent libraries... " >&6; }
5522 if ${lt_cv_deplibs_check_method+:} false; then :
5523 $as_echo_n "(cached) " >&6
5524 else
5525 lt_cv_file_magic_cmd='$MAGIC_CMD'
5526 lt_cv_file_magic_test_file=
5527 lt_cv_deplibs_check_method='unknown'
5528 # Need to set the preceding variable on all platforms that support
5529 # interlibrary dependencies.
5530 # 'none' -- dependencies not supported.
5531 # `unknown' -- same as none, but documents that we really don't know.
5532 # 'pass_all' -- all dependencies passed with no checks.
5533 # 'test_compile' -- check by making test program.
5534 # 'file_magic [[regex]]' -- check by looking for files in library path
5535 # which responds to the $file_magic_cmd with a given extended regex.
5536 # If you have `file' or equivalent on your system and you're not sure
5537 # whether `pass_all' will *always* work, you probably want this one.
5539 case $host_os in
5540 aix[4-9]*)
5541 lt_cv_deplibs_check_method=pass_all
5542 ;;
5544 beos*)
5545 lt_cv_deplibs_check_method=pass_all
5546 ;;
5548 bsdi[45]*)
5549 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib)'
5550 lt_cv_file_magic_cmd='/usr/bin/file -L'
5551 lt_cv_file_magic_test_file=/shlib/libc.so
5552 ;;
5554 cygwin*)
5555 # func_win32_libid is a shell function defined in ltmain.sh
5556 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5557 lt_cv_file_magic_cmd='func_win32_libid'
5558 ;;
5560 mingw* | pw32*)
5561 # Base MSYS/MinGW do not provide the 'file' command needed by
5562 # func_win32_libid shell function, so use a weaker test based on 'objdump',
5563 # unless we find 'file', for example because we are cross-compiling.
5564 # func_win32_libid assumes BSD nm, so disallow it if using MS dumpbin.
5565 if ( test "$lt_cv_nm_interface" = "BSD nm" && file / ) >/dev/null 2>&1; then
5566 lt_cv_deplibs_check_method='file_magic ^x86 archive import|^x86 DLL'
5567 lt_cv_file_magic_cmd='func_win32_libid'
5568 else
5569 # Keep this pattern in sync with the one in func_win32_libid.
5570 lt_cv_deplibs_check_method='file_magic file format (pei*-i386(.*architecture: i386)?|pe-arm-wince|pe-x86-64)'
5571 lt_cv_file_magic_cmd='$OBJDUMP -f'
5572 fi
5573 ;;
5575 cegcc*)
5576 # use the weaker test based on 'objdump'. See mingw*.
5577 lt_cv_deplibs_check_method='file_magic file format pe-arm-.*little(.*architecture: arm)?'
5578 lt_cv_file_magic_cmd='$OBJDUMP -f'
5579 ;;
5581 darwin* | rhapsody*)
5582 lt_cv_deplibs_check_method=pass_all
5583 ;;
5585 freebsd* | dragonfly*)
5586 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5587 case $host_cpu in
5588 i*86 )
5589 # Not sure whether the presence of OpenBSD here was a mistake.
5590 # Let's accept both of them until this is cleared up.
5591 lt_cv_deplibs_check_method='file_magic (FreeBSD|OpenBSD|DragonFly)/i[3-9]86 (compact )?demand paged shared library'
5592 lt_cv_file_magic_cmd=/usr/bin/file
5593 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so.*`
5594 ;;
5595 esac
5596 else
5597 lt_cv_deplibs_check_method=pass_all
5598 fi
5599 ;;
5601 haiku*)
5602 lt_cv_deplibs_check_method=pass_all
5603 ;;
5605 hpux10.20* | hpux11*)
5606 lt_cv_file_magic_cmd=/usr/bin/file
5607 case $host_cpu in
5608 ia64*)
5609 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF-[0-9][0-9]) shared object file - IA64'
5610 lt_cv_file_magic_test_file=/usr/lib/hpux32/libc.so
5611 ;;
5612 hppa*64*)
5613 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|ELF[ -][0-9][0-9])(-bit)?( [LM]SB)? shared object( file)?[, -]* PA-RISC [0-9]\.[0-9]'
5614 lt_cv_file_magic_test_file=/usr/lib/pa20_64/libc.sl
5615 ;;
5616 *)
5617 lt_cv_deplibs_check_method='file_magic (s[0-9][0-9][0-9]|PA-RISC[0-9]\.[0-9]) shared library'
5618 lt_cv_file_magic_test_file=/usr/lib/libc.sl
5619 ;;
5620 esac
5621 ;;
5623 interix[3-9]*)
5624 # PIC code is broken on Interix 3.x, that's why |\.a not |_pic\.a here
5625 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|\.a)$'
5626 ;;
5628 irix5* | irix6* | nonstopux*)
5629 case $LD in
5630 *-32|*"-32 ") libmagic=32-bit;;
5631 *-n32|*"-n32 ") libmagic=N32;;
5632 *-64|*"-64 ") libmagic=64-bit;;
5633 *) libmagic=never-match;;
5634 esac
5635 lt_cv_deplibs_check_method=pass_all
5636 ;;
5638 # This must be glibc/ELF.
5639 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
5640 lt_cv_deplibs_check_method=pass_all
5641 ;;
5643 netbsd* | netbsdelf*-gnu)
5644 if echo __ELF__ | $CC -E - | $GREP __ELF__ > /dev/null; then
5645 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5646 else
5647 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so|_pic\.a)$'
5648 fi
5649 ;;
5651 newos6*)
5652 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (executable|dynamic lib)'
5653 lt_cv_file_magic_cmd=/usr/bin/file
5654 lt_cv_file_magic_test_file=/usr/lib/libnls.so
5655 ;;
5657 *nto* | *qnx*)
5658 lt_cv_deplibs_check_method=pass_all
5659 ;;
5661 openbsd*)
5662 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
5663 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|\.so|_pic\.a)$'
5664 else
5665 lt_cv_deplibs_check_method='match_pattern /lib[^/]+(\.so\.[0-9]+\.[0-9]+|_pic\.a)$'
5666 fi
5667 ;;
5669 osf3* | osf4* | osf5*)
5670 lt_cv_deplibs_check_method=pass_all
5671 ;;
5673 rdos*)
5674 lt_cv_deplibs_check_method=pass_all
5675 ;;
5677 solaris*)
5678 lt_cv_deplibs_check_method=pass_all
5679 ;;
5681 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
5682 lt_cv_deplibs_check_method=pass_all
5683 ;;
5685 sysv4 | sysv4.3*)
5686 case $host_vendor in
5687 motorola)
5688 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [ML]SB (shared object|dynamic lib) M[0-9][0-9]* Version [0-9]'
5689 lt_cv_file_magic_test_file=`echo /usr/lib/libc.so*`
5690 ;;
5691 ncr)
5692 lt_cv_deplibs_check_method=pass_all
5693 ;;
5694 sequent)
5695 lt_cv_file_magic_cmd='/bin/file'
5696 lt_cv_deplibs_check_method='file_magic ELF [0-9][0-9]*-bit [LM]SB (shared object|dynamic lib )'
5697 ;;
5698 sni)
5699 lt_cv_file_magic_cmd='/bin/file'
5700 lt_cv_deplibs_check_method="file_magic ELF [0-9][0-9]*-bit [LM]SB dynamic lib"
5701 lt_cv_file_magic_test_file=/lib/libc.so
5702 ;;
5703 siemens)
5704 lt_cv_deplibs_check_method=pass_all
5705 ;;
5706 pc)
5707 lt_cv_deplibs_check_method=pass_all
5708 ;;
5709 esac
5710 ;;
5712 tpf*)
5713 lt_cv_deplibs_check_method=pass_all
5714 ;;
5715 esac
5717 fi
5718 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_deplibs_check_method" >&5
5719 $as_echo "$lt_cv_deplibs_check_method" >&6; }
5721 file_magic_glob=
5722 want_nocaseglob=no
5723 if test "$build" = "$host"; then
5724 case $host_os in
5725 mingw* | pw32*)
5726 if ( shopt | grep nocaseglob ) >/dev/null 2>&1; then
5727 want_nocaseglob=yes
5728 else
5729 file_magic_glob=`echo aAbBcCdDeEfFgGhHiIjJkKlLmMnNoOpPqQrRsStTuUvVwWxXyYzZ | $SED -e "s/\(..\)/s\/[\1]\/[\1]\/g;/g"`
5730 fi
5731 ;;
5732 esac
5733 fi
5735 file_magic_cmd=$lt_cv_file_magic_cmd
5736 deplibs_check_method=$lt_cv_deplibs_check_method
5737 test -z "$deplibs_check_method" && deplibs_check_method=unknown
5760 if test -n "$ac_tool_prefix"; then
5761 # Extract the first word of "${ac_tool_prefix}dlltool", so it can be a program name with args.
5762 set dummy ${ac_tool_prefix}dlltool; ac_word=$2
5763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5764 $as_echo_n "checking for $ac_word... " >&6; }
5765 if ${ac_cv_prog_DLLTOOL+:} false; then :
5766 $as_echo_n "(cached) " >&6
5767 else
5768 if test -n "$DLLTOOL"; then
5769 ac_cv_prog_DLLTOOL="$DLLTOOL" # Let the user override the test.
5770 else
5771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5772 for as_dir in $PATH
5773 do
5774 IFS=$as_save_IFS
5775 test -z "$as_dir" && as_dir=.
5776 for ac_exec_ext in '' $ac_executable_extensions; do
5777 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5778 ac_cv_prog_DLLTOOL="${ac_tool_prefix}dlltool"
5779 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5780 break 2
5781 fi
5782 done
5783 done
5784 IFS=$as_save_IFS
5786 fi
5787 fi
5788 DLLTOOL=$ac_cv_prog_DLLTOOL
5789 if test -n "$DLLTOOL"; then
5790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
5791 $as_echo "$DLLTOOL" >&6; }
5792 else
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5794 $as_echo "no" >&6; }
5795 fi
5798 fi
5799 if test -z "$ac_cv_prog_DLLTOOL"; then
5800 ac_ct_DLLTOOL=$DLLTOOL
5801 # Extract the first word of "dlltool", so it can be a program name with args.
5802 set dummy dlltool; ac_word=$2
5803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5804 $as_echo_n "checking for $ac_word... " >&6; }
5805 if ${ac_cv_prog_ac_ct_DLLTOOL+:} false; then :
5806 $as_echo_n "(cached) " >&6
5807 else
5808 if test -n "$ac_ct_DLLTOOL"; then
5809 ac_cv_prog_ac_ct_DLLTOOL="$ac_ct_DLLTOOL" # Let the user override the test.
5810 else
5811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5812 for as_dir in $PATH
5813 do
5814 IFS=$as_save_IFS
5815 test -z "$as_dir" && as_dir=.
5816 for ac_exec_ext in '' $ac_executable_extensions; do
5817 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5818 ac_cv_prog_ac_ct_DLLTOOL="dlltool"
5819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5820 break 2
5821 fi
5822 done
5823 done
5824 IFS=$as_save_IFS
5826 fi
5827 fi
5828 ac_ct_DLLTOOL=$ac_cv_prog_ac_ct_DLLTOOL
5829 if test -n "$ac_ct_DLLTOOL"; then
5830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DLLTOOL" >&5
5831 $as_echo "$ac_ct_DLLTOOL" >&6; }
5832 else
5833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5834 $as_echo "no" >&6; }
5835 fi
5837 if test "x$ac_ct_DLLTOOL" = x; then
5838 DLLTOOL="false"
5839 else
5840 case $cross_compiling:$ac_tool_warned in
5841 yes:)
5842 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5843 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5844 ac_tool_warned=yes ;;
5845 esac
5846 DLLTOOL=$ac_ct_DLLTOOL
5847 fi
5848 else
5849 DLLTOOL="$ac_cv_prog_DLLTOOL"
5850 fi
5852 test -z "$DLLTOOL" && DLLTOOL=dlltool
5863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to associate runtime and link libraries" >&5
5864 $as_echo_n "checking how to associate runtime and link libraries... " >&6; }
5865 if ${lt_cv_sharedlib_from_linklib_cmd+:} false; then :
5866 $as_echo_n "(cached) " >&6
5867 else
5868 lt_cv_sharedlib_from_linklib_cmd='unknown'
5870 case $host_os in
5871 cygwin* | mingw* | pw32* | cegcc*)
5872 # two different shell functions defined in ltmain.sh
5873 # decide which to use based on capabilities of $DLLTOOL
5874 case `$DLLTOOL --help 2>&1` in
5875 *--identify-strict*)
5876 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib
5877 ;;
5878 *)
5879 lt_cv_sharedlib_from_linklib_cmd=func_cygming_dll_for_implib_fallback
5880 ;;
5881 esac
5882 ;;
5883 *)
5884 # fallback: assume linklib IS sharedlib
5885 lt_cv_sharedlib_from_linklib_cmd="$ECHO"
5886 ;;
5887 esac
5889 fi
5890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sharedlib_from_linklib_cmd" >&5
5891 $as_echo "$lt_cv_sharedlib_from_linklib_cmd" >&6; }
5892 sharedlib_from_linklib_cmd=$lt_cv_sharedlib_from_linklib_cmd
5893 test -z "$sharedlib_from_linklib_cmd" && sharedlib_from_linklib_cmd=$ECHO
5902 if test -n "$ac_tool_prefix"; then
5903 for ac_prog in ar
5904 do
5905 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
5906 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
5907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5908 $as_echo_n "checking for $ac_word... " >&6; }
5909 if ${ac_cv_prog_AR+:} false; then :
5910 $as_echo_n "(cached) " >&6
5911 else
5912 if test -n "$AR"; then
5913 ac_cv_prog_AR="$AR" # Let the user override the test.
5914 else
5915 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5916 for as_dir in $PATH
5917 do
5918 IFS=$as_save_IFS
5919 test -z "$as_dir" && as_dir=.
5920 for ac_exec_ext in '' $ac_executable_extensions; do
5921 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5922 ac_cv_prog_AR="$ac_tool_prefix$ac_prog"
5923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5924 break 2
5925 fi
5926 done
5927 done
5928 IFS=$as_save_IFS
5930 fi
5931 fi
5932 AR=$ac_cv_prog_AR
5933 if test -n "$AR"; then
5934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
5935 $as_echo "$AR" >&6; }
5936 else
5937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5938 $as_echo "no" >&6; }
5939 fi
5942 test -n "$AR" && break
5943 done
5944 fi
5945 if test -z "$AR"; then
5946 ac_ct_AR=$AR
5947 for ac_prog in ar
5948 do
5949 # Extract the first word of "$ac_prog", so it can be a program name with args.
5950 set dummy $ac_prog; ac_word=$2
5951 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5952 $as_echo_n "checking for $ac_word... " >&6; }
5953 if ${ac_cv_prog_ac_ct_AR+:} false; then :
5954 $as_echo_n "(cached) " >&6
5955 else
5956 if test -n "$ac_ct_AR"; then
5957 ac_cv_prog_ac_ct_AR="$ac_ct_AR" # Let the user override the test.
5958 else
5959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5960 for as_dir in $PATH
5961 do
5962 IFS=$as_save_IFS
5963 test -z "$as_dir" && as_dir=.
5964 for ac_exec_ext in '' $ac_executable_extensions; do
5965 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5966 ac_cv_prog_ac_ct_AR="$ac_prog"
5967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5968 break 2
5969 fi
5970 done
5971 done
5972 IFS=$as_save_IFS
5974 fi
5975 fi
5976 ac_ct_AR=$ac_cv_prog_ac_ct_AR
5977 if test -n "$ac_ct_AR"; then
5978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_AR" >&5
5979 $as_echo "$ac_ct_AR" >&6; }
5980 else
5981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5982 $as_echo "no" >&6; }
5983 fi
5986 test -n "$ac_ct_AR" && break
5987 done
5989 if test "x$ac_ct_AR" = x; then
5990 AR="false"
5991 else
5992 case $cross_compiling:$ac_tool_warned in
5993 yes:)
5994 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5995 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5996 ac_tool_warned=yes ;;
5997 esac
5998 AR=$ac_ct_AR
5999 fi
6000 fi
6002 : ${AR=ar}
6003 : ${AR_FLAGS=cru}
6015 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for archiver @FILE support" >&5
6016 $as_echo_n "checking for archiver @FILE support... " >&6; }
6017 if ${lt_cv_ar_at_file+:} false; then :
6018 $as_echo_n "(cached) " >&6
6019 else
6020 lt_cv_ar_at_file=no
6021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6022 /* end confdefs.h. */
6024 int
6025 main ()
6026 {
6028 ;
6029 return 0;
6030 }
6031 _ACEOF
6032 if ac_fn_c_try_compile "$LINENO"; then :
6033 echo conftest.$ac_objext > conftest.lst
6034 lt_ar_try='$AR $AR_FLAGS libconftest.a @conftest.lst >&5'
6035 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6036 (eval $lt_ar_try) 2>&5
6037 ac_status=$?
6038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6039 test $ac_status = 0; }
6040 if test "$ac_status" -eq 0; then
6041 # Ensure the archiver fails upon bogus file names.
6042 rm -f conftest.$ac_objext libconftest.a
6043 { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$lt_ar_try\""; } >&5
6044 (eval $lt_ar_try) 2>&5
6045 ac_status=$?
6046 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6047 test $ac_status = 0; }
6048 if test "$ac_status" -ne 0; then
6049 lt_cv_ar_at_file=@
6050 fi
6051 fi
6052 rm -f conftest.* libconftest.a
6054 fi
6055 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6057 fi
6058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ar_at_file" >&5
6059 $as_echo "$lt_cv_ar_at_file" >&6; }
6061 if test "x$lt_cv_ar_at_file" = xno; then
6062 archiver_list_spec=
6063 else
6064 archiver_list_spec=$lt_cv_ar_at_file
6065 fi
6073 if test -n "$ac_tool_prefix"; then
6074 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
6075 set dummy ${ac_tool_prefix}strip; ac_word=$2
6076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6077 $as_echo_n "checking for $ac_word... " >&6; }
6078 if ${ac_cv_prog_STRIP+:} false; then :
6079 $as_echo_n "(cached) " >&6
6080 else
6081 if test -n "$STRIP"; then
6082 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
6083 else
6084 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6085 for as_dir in $PATH
6086 do
6087 IFS=$as_save_IFS
6088 test -z "$as_dir" && as_dir=.
6089 for ac_exec_ext in '' $ac_executable_extensions; do
6090 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6091 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
6092 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6093 break 2
6094 fi
6095 done
6096 done
6097 IFS=$as_save_IFS
6099 fi
6100 fi
6101 STRIP=$ac_cv_prog_STRIP
6102 if test -n "$STRIP"; then
6103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
6104 $as_echo "$STRIP" >&6; }
6105 else
6106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6107 $as_echo "no" >&6; }
6108 fi
6111 fi
6112 if test -z "$ac_cv_prog_STRIP"; then
6113 ac_ct_STRIP=$STRIP
6114 # Extract the first word of "strip", so it can be a program name with args.
6115 set dummy strip; ac_word=$2
6116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6117 $as_echo_n "checking for $ac_word... " >&6; }
6118 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
6119 $as_echo_n "(cached) " >&6
6120 else
6121 if test -n "$ac_ct_STRIP"; then
6122 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
6123 else
6124 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6125 for as_dir in $PATH
6126 do
6127 IFS=$as_save_IFS
6128 test -z "$as_dir" && as_dir=.
6129 for ac_exec_ext in '' $ac_executable_extensions; do
6130 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6131 ac_cv_prog_ac_ct_STRIP="strip"
6132 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6133 break 2
6134 fi
6135 done
6136 done
6137 IFS=$as_save_IFS
6139 fi
6140 fi
6141 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
6142 if test -n "$ac_ct_STRIP"; then
6143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
6144 $as_echo "$ac_ct_STRIP" >&6; }
6145 else
6146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6147 $as_echo "no" >&6; }
6148 fi
6150 if test "x$ac_ct_STRIP" = x; then
6151 STRIP=":"
6152 else
6153 case $cross_compiling:$ac_tool_warned in
6154 yes:)
6155 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6156 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6157 ac_tool_warned=yes ;;
6158 esac
6159 STRIP=$ac_ct_STRIP
6160 fi
6161 else
6162 STRIP="$ac_cv_prog_STRIP"
6163 fi
6165 test -z "$STRIP" && STRIP=:
6172 if test -n "$ac_tool_prefix"; then
6173 # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args.
6174 set dummy ${ac_tool_prefix}ranlib; ac_word=$2
6175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6176 $as_echo_n "checking for $ac_word... " >&6; }
6177 if ${ac_cv_prog_RANLIB+:} false; then :
6178 $as_echo_n "(cached) " >&6
6179 else
6180 if test -n "$RANLIB"; then
6181 ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test.
6182 else
6183 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6184 for as_dir in $PATH
6185 do
6186 IFS=$as_save_IFS
6187 test -z "$as_dir" && as_dir=.
6188 for ac_exec_ext in '' $ac_executable_extensions; do
6189 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6190 ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib"
6191 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6192 break 2
6193 fi
6194 done
6195 done
6196 IFS=$as_save_IFS
6198 fi
6199 fi
6200 RANLIB=$ac_cv_prog_RANLIB
6201 if test -n "$RANLIB"; then
6202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RANLIB" >&5
6203 $as_echo "$RANLIB" >&6; }
6204 else
6205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6206 $as_echo "no" >&6; }
6207 fi
6210 fi
6211 if test -z "$ac_cv_prog_RANLIB"; then
6212 ac_ct_RANLIB=$RANLIB
6213 # Extract the first word of "ranlib", so it can be a program name with args.
6214 set dummy ranlib; ac_word=$2
6215 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6216 $as_echo_n "checking for $ac_word... " >&6; }
6217 if ${ac_cv_prog_ac_ct_RANLIB+:} false; then :
6218 $as_echo_n "(cached) " >&6
6219 else
6220 if test -n "$ac_ct_RANLIB"; then
6221 ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test.
6222 else
6223 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6224 for as_dir in $PATH
6225 do
6226 IFS=$as_save_IFS
6227 test -z "$as_dir" && as_dir=.
6228 for ac_exec_ext in '' $ac_executable_extensions; do
6229 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6230 ac_cv_prog_ac_ct_RANLIB="ranlib"
6231 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6232 break 2
6233 fi
6234 done
6235 done
6236 IFS=$as_save_IFS
6238 fi
6239 fi
6240 ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB
6241 if test -n "$ac_ct_RANLIB"; then
6242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_RANLIB" >&5
6243 $as_echo "$ac_ct_RANLIB" >&6; }
6244 else
6245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6246 $as_echo "no" >&6; }
6247 fi
6249 if test "x$ac_ct_RANLIB" = x; then
6250 RANLIB=":"
6251 else
6252 case $cross_compiling:$ac_tool_warned in
6253 yes:)
6254 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6255 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
6256 ac_tool_warned=yes ;;
6257 esac
6258 RANLIB=$ac_ct_RANLIB
6259 fi
6260 else
6261 RANLIB="$ac_cv_prog_RANLIB"
6262 fi
6264 test -z "$RANLIB" && RANLIB=:
6271 # Determine commands to create old-style static archives.
6272 old_archive_cmds='$AR $AR_FLAGS $oldlib$oldobjs'
6273 old_postinstall_cmds='chmod 644 $oldlib'
6274 old_postuninstall_cmds=
6276 if test -n "$RANLIB"; then
6277 case $host_os in
6278 openbsd*)
6279 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB -t \$tool_oldlib"
6280 ;;
6281 *)
6282 old_postinstall_cmds="$old_postinstall_cmds~\$RANLIB \$tool_oldlib"
6283 ;;
6284 esac
6285 old_archive_cmds="$old_archive_cmds~\$RANLIB \$tool_oldlib"
6286 fi
6288 case $host_os in
6289 darwin*)
6290 lock_old_archive_extraction=yes ;;
6291 *)
6292 lock_old_archive_extraction=no ;;
6293 esac
6315 for ac_prog in gawk mawk nawk awk
6316 do
6317 # Extract the first word of "$ac_prog", so it can be a program name with args.
6318 set dummy $ac_prog; ac_word=$2
6319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6320 $as_echo_n "checking for $ac_word... " >&6; }
6321 if ${ac_cv_prog_AWK+:} false; then :
6322 $as_echo_n "(cached) " >&6
6323 else
6324 if test -n "$AWK"; then
6325 ac_cv_prog_AWK="$AWK" # Let the user override the test.
6326 else
6327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6328 for as_dir in $PATH
6329 do
6330 IFS=$as_save_IFS
6331 test -z "$as_dir" && as_dir=.
6332 for ac_exec_ext in '' $ac_executable_extensions; do
6333 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6334 ac_cv_prog_AWK="$ac_prog"
6335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6336 break 2
6337 fi
6338 done
6339 done
6340 IFS=$as_save_IFS
6342 fi
6343 fi
6344 AWK=$ac_cv_prog_AWK
6345 if test -n "$AWK"; then
6346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
6347 $as_echo "$AWK" >&6; }
6348 else
6349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6350 $as_echo "no" >&6; }
6351 fi
6354 test -n "$AWK" && break
6355 done
6375 # If no C compiler was specified, use CC.
6376 LTCC=${LTCC-"$CC"}
6378 # If no C compiler flags were specified, use CFLAGS.
6379 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
6381 # Allow CC to be a program name with arguments.
6382 compiler=$CC
6385 # Check for command to grab the raw symbol name followed by C symbol from nm.
6386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking command to parse $NM output from $compiler object" >&5
6387 $as_echo_n "checking command to parse $NM output from $compiler object... " >&6; }
6388 if ${lt_cv_sys_global_symbol_pipe+:} false; then :
6389 $as_echo_n "(cached) " >&6
6390 else
6392 # These are sane defaults that work on at least a few old systems.
6393 # [They come from Ultrix. What could be older than Ultrix?!! ;)]
6395 # Character class describing NM global symbol codes.
6396 symcode='[BCDEGRST]'
6398 # Regexp to match symbols that can be accessed directly from C.
6399 sympat='\([_A-Za-z][_A-Za-z0-9]*\)'
6401 # Define system-specific variables.
6402 case $host_os in
6403 aix*)
6404 symcode='[BCDT]'
6405 ;;
6406 cygwin* | mingw* | pw32* | cegcc*)
6407 symcode='[ABCDGISTW]'
6408 ;;
6409 hpux*)
6410 if test "$host_cpu" = ia64; then
6411 symcode='[ABCDEGRST]'
6412 fi
6413 ;;
6414 irix* | nonstopux*)
6415 symcode='[BCDEGRST]'
6416 ;;
6417 osf*)
6418 symcode='[BCDEGQRST]'
6419 ;;
6420 solaris*)
6421 symcode='[BDRT]'
6422 ;;
6423 sco3.2v5*)
6424 symcode='[DT]'
6425 ;;
6426 sysv4.2uw2*)
6427 symcode='[DT]'
6428 ;;
6429 sysv5* | sco5v6* | unixware* | OpenUNIX*)
6430 symcode='[ABDT]'
6431 ;;
6432 sysv4)
6433 symcode='[DFNSTU]'
6434 ;;
6435 esac
6437 # If we're using GNU nm, then use its standard symbol codes.
6438 case `$NM -V 2>&1` in
6439 *GNU* | *'with BFD'*)
6440 symcode='[ABCDGIRSTW]' ;;
6441 esac
6443 # Transform an extracted symbol line into a proper C declaration.
6444 # Some systems (esp. on ia64) link data and code symbols differently,
6445 # so use this general approach.
6446 lt_cv_sys_global_symbol_to_cdecl="sed -n -e 's/^T .* \(.*\)$/extern int \1();/p' -e 's/^$symcode* .* \(.*\)$/extern char \1;/p'"
6448 # Transform an extracted symbol line into symbol name and symbol address
6449 lt_cv_sys_global_symbol_to_c_name_address="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"\2\", (void *) \&\2},/p'"
6450 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix="sed -n -e 's/^: \([^ ]*\)[ ]*$/ {\\\"\1\\\", (void *) 0},/p' -e 's/^$symcode* \([^ ]*\) \(lib[^ ]*\)$/ {\"\2\", (void *) \&\2},/p' -e 's/^$symcode* \([^ ]*\) \([^ ]*\)$/ {\"lib\2\", (void *) \&\2},/p'"
6452 # Handle CRLF in mingw tool chain
6453 opt_cr=
6454 case $build_os in
6455 mingw*)
6456 opt_cr=`$ECHO 'x\{0,1\}' | tr x '\015'` # option cr in regexp
6457 ;;
6458 esac
6460 # Try without a prefix underscore, then with it.
6461 for ac_symprfx in "" "_"; do
6463 # Transform symcode, sympat, and symprfx into a raw symbol and a C symbol.
6464 symxfrm="\\1 $ac_symprfx\\2 \\2"
6466 # Write the raw and C identifiers.
6467 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6468 # Fake it for dumpbin and say T for any non-static function
6469 # and D for any global variable.
6470 # Also find C++ and __fastcall symbols from MSVC++,
6471 # which start with @ or ?.
6472 lt_cv_sys_global_symbol_pipe="$AWK '"\
6473 " {last_section=section; section=\$ 3};"\
6474 " /^COFF SYMBOL TABLE/{for(i in hide) delete hide[i]};"\
6475 " /Section length .*#relocs.*(pick any)/{hide[last_section]=1};"\
6476 " \$ 0!~/External *\|/{next};"\
6477 " / 0+ UNDEF /{next}; / UNDEF \([^|]\)*()/{next};"\
6478 " {if(hide[section]) next};"\
6479 " {f=0}; \$ 0~/\(\).*\|/{f=1}; {printf f ? \"T \" : \"D \"};"\
6480 " {split(\$ 0, a, /\||\r/); split(a[2], s)};"\
6481 " s[1]~/^[@?]/{print s[1], s[1]; next};"\
6482 " s[1]~prfx {split(s[1],t,\"@\"); print t[1], substr(t[1],length(prfx))}"\
6483 " ' prfx=^$ac_symprfx"
6484 else
6485 lt_cv_sys_global_symbol_pipe="sed -n -e 's/^.*[ ]\($symcode$symcode*\)[ ][ ]*$ac_symprfx$sympat$opt_cr$/$symxfrm/p'"
6486 fi
6487 lt_cv_sys_global_symbol_pipe="$lt_cv_sys_global_symbol_pipe | sed '/ __gnu_lto/d'"
6489 # Check to see that the pipe works correctly.
6490 pipe_works=no
6492 rm -f conftest*
6493 cat > conftest.$ac_ext <<_LT_EOF
6494 #ifdef __cplusplus
6495 extern "C" {
6496 #endif
6497 char nm_test_var;
6498 void nm_test_func(void);
6499 void nm_test_func(void){}
6500 #ifdef __cplusplus
6501 }
6502 #endif
6503 int main(){nm_test_var='a';nm_test_func();return(0);}
6504 _LT_EOF
6506 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6507 (eval $ac_compile) 2>&5
6508 ac_status=$?
6509 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6510 test $ac_status = 0; }; then
6511 # Now try to grab the symbols.
6512 nlist=conftest.nm
6513 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist\""; } >&5
6514 (eval $NM conftest.$ac_objext \| "$lt_cv_sys_global_symbol_pipe" \> $nlist) 2>&5
6515 ac_status=$?
6516 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6517 test $ac_status = 0; } && test -s "$nlist"; then
6518 # Try sorting and uniquifying the output.
6519 if sort "$nlist" | uniq > "$nlist"T; then
6520 mv -f "$nlist"T "$nlist"
6521 else
6522 rm -f "$nlist"T
6523 fi
6525 # Make sure that we snagged all the symbols we need.
6526 if $GREP ' nm_test_var$' "$nlist" >/dev/null; then
6527 if $GREP ' nm_test_func$' "$nlist" >/dev/null; then
6528 cat <<_LT_EOF > conftest.$ac_ext
6529 /* Keep this code in sync between libtool.m4, ltmain, lt_system.h, and tests. */
6530 #if defined(_WIN32) || defined(__CYGWIN__) || defined(_WIN32_WCE)
6531 /* DATA imports from DLLs on WIN32 con't be const, because runtime
6532 relocations are performed -- see ld's documentation on pseudo-relocs. */
6533 # define LT_DLSYM_CONST
6534 #elif defined(__osf__)
6535 /* This system does not cope well with relocations in const data. */
6536 # define LT_DLSYM_CONST
6537 #else
6538 # define LT_DLSYM_CONST const
6539 #endif
6541 #ifdef __cplusplus
6542 extern "C" {
6543 #endif
6545 _LT_EOF
6546 # Now generate the symbol file.
6547 eval "$lt_cv_sys_global_symbol_to_cdecl"' < "$nlist" | $GREP -v main >> conftest.$ac_ext'
6549 cat <<_LT_EOF >> conftest.$ac_ext
6551 /* The mapping between symbol names and symbols. */
6552 LT_DLSYM_CONST struct {
6553 const char *name;
6554 void *address;
6555 }
6556 lt__PROGRAM__LTX_preloaded_symbols[] =
6557 {
6558 { "@PROGRAM@", (void *) 0 },
6559 _LT_EOF
6560 $SED "s/^$symcode$symcode* \(.*\) \(.*\)$/ {\"\2\", (void *) \&\2},/" < "$nlist" | $GREP -v main >> conftest.$ac_ext
6561 cat <<\_LT_EOF >> conftest.$ac_ext
6562 {0, (void *) 0}
6563 };
6565 /* This works around a problem in FreeBSD linker */
6566 #ifdef FREEBSD_WORKAROUND
6567 static const void *lt_preloaded_setup() {
6568 return lt__PROGRAM__LTX_preloaded_symbols;
6569 }
6570 #endif
6572 #ifdef __cplusplus
6573 }
6574 #endif
6575 _LT_EOF
6576 # Now try linking the two files.
6577 mv conftest.$ac_objext conftstm.$ac_objext
6578 lt_globsym_save_LIBS=$LIBS
6579 lt_globsym_save_CFLAGS=$CFLAGS
6580 LIBS="conftstm.$ac_objext"
6581 CFLAGS="$CFLAGS$lt_prog_compiler_no_builtin_flag"
6582 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
6583 (eval $ac_link) 2>&5
6584 ac_status=$?
6585 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6586 test $ac_status = 0; } && test -s conftest${ac_exeext}; then
6587 pipe_works=yes
6588 fi
6589 LIBS=$lt_globsym_save_LIBS
6590 CFLAGS=$lt_globsym_save_CFLAGS
6591 else
6592 echo "cannot find nm_test_func in $nlist" >&5
6593 fi
6594 else
6595 echo "cannot find nm_test_var in $nlist" >&5
6596 fi
6597 else
6598 echo "cannot run $lt_cv_sys_global_symbol_pipe" >&5
6599 fi
6600 else
6601 echo "$progname: failed program was:" >&5
6602 cat conftest.$ac_ext >&5
6603 fi
6604 rm -rf conftest* conftst*
6606 # Do not use the global_symbol_pipe unless it works.
6607 if test "$pipe_works" = yes; then
6608 break
6609 else
6610 lt_cv_sys_global_symbol_pipe=
6611 fi
6612 done
6614 fi
6616 if test -z "$lt_cv_sys_global_symbol_pipe"; then
6617 lt_cv_sys_global_symbol_to_cdecl=
6618 fi
6619 if test -z "$lt_cv_sys_global_symbol_pipe$lt_cv_sys_global_symbol_to_cdecl"; then
6620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed" >&5
6621 $as_echo "failed" >&6; }
6622 else
6623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ok" >&5
6624 $as_echo "ok" >&6; }
6625 fi
6627 # Response file support.
6628 if test "$lt_cv_nm_interface" = "MS dumpbin"; then
6629 nm_file_list_spec='@'
6630 elif $NM --help 2>/dev/null | grep '[@]FILE' >/dev/null; then
6631 nm_file_list_spec='@'
6632 fi
6660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysroot" >&5
6661 $as_echo_n "checking for sysroot... " >&6; }
6663 # Check whether --with-sysroot was given.
6664 if test "${with_sysroot+set}" = set; then :
6665 withval=$with_sysroot;
6666 else
6667 with_sysroot=no
6668 fi
6671 lt_sysroot=
6672 case ${with_sysroot} in #(
6673 yes)
6674 if test "$GCC" = yes; then
6675 lt_sysroot=`$CC --print-sysroot 2>/dev/null`
6676 fi
6677 ;; #(
6678 /*)
6679 lt_sysroot=`echo "$with_sysroot" | sed -e "$sed_quote_subst"`
6680 ;; #(
6681 no|'')
6682 ;; #(
6683 *)
6684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_sysroot}" >&5
6685 $as_echo "${with_sysroot}" >&6; }
6686 as_fn_error $? "The sysroot must be an absolute path." "$LINENO" 5
6687 ;;
6688 esac
6690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${lt_sysroot:-no}" >&5
6691 $as_echo "${lt_sysroot:-no}" >&6; }
6697 # Check whether --enable-libtool-lock was given.
6698 if test "${enable_libtool_lock+set}" = set; then :
6699 enableval=$enable_libtool_lock;
6700 fi
6702 test "x$enable_libtool_lock" != xno && enable_libtool_lock=yes
6704 # Some flags need to be propagated to the compiler or linker for good
6705 # libtool support.
6706 case $host in
6707 ia64-*-hpux*)
6708 # Find out which ABI we are using.
6709 echo 'int i;' > conftest.$ac_ext
6710 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6711 (eval $ac_compile) 2>&5
6712 ac_status=$?
6713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6714 test $ac_status = 0; }; then
6715 case `/usr/bin/file conftest.$ac_objext` in
6716 *ELF-32*)
6717 HPUX_IA64_MODE="32"
6718 ;;
6719 *ELF-64*)
6720 HPUX_IA64_MODE="64"
6721 ;;
6722 esac
6723 fi
6724 rm -rf conftest*
6725 ;;
6726 *-*-irix6*)
6727 # Find out which ABI we are using.
6728 echo '#line '$LINENO' "configure"' > conftest.$ac_ext
6729 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6730 (eval $ac_compile) 2>&5
6731 ac_status=$?
6732 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6733 test $ac_status = 0; }; then
6734 if test "$lt_cv_prog_gnu_ld" = yes; then
6735 case `/usr/bin/file conftest.$ac_objext` in
6736 *32-bit*)
6737 LD="${LD-ld} -melf32bsmip"
6738 ;;
6739 *N32*)
6740 LD="${LD-ld} -melf32bmipn32"
6741 ;;
6742 *64-bit*)
6743 LD="${LD-ld} -melf64bmip"
6744 ;;
6745 esac
6746 else
6747 case `/usr/bin/file conftest.$ac_objext` in
6748 *32-bit*)
6749 LD="${LD-ld} -32"
6750 ;;
6751 *N32*)
6752 LD="${LD-ld} -n32"
6753 ;;
6754 *64-bit*)
6755 LD="${LD-ld} -64"
6756 ;;
6757 esac
6758 fi
6759 fi
6760 rm -rf conftest*
6761 ;;
6763 x86_64-*kfreebsd*-gnu|x86_64-*linux*|powerpc*-*linux*| \
6764 s390*-*linux*|s390*-*tpf*|sparc*-*linux*)
6765 # Find out which ABI we are using.
6766 echo 'int i;' > conftest.$ac_ext
6767 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6768 (eval $ac_compile) 2>&5
6769 ac_status=$?
6770 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6771 test $ac_status = 0; }; then
6772 case `/usr/bin/file conftest.o` in
6773 *32-bit*)
6774 case $host in
6775 x86_64-*kfreebsd*-gnu)
6776 LD="${LD-ld} -m elf_i386_fbsd"
6777 ;;
6778 x86_64-*linux*)
6779 case `/usr/bin/file conftest.o` in
6780 *x86-64*)
6781 LD="${LD-ld} -m elf32_x86_64"
6782 ;;
6783 *)
6784 LD="${LD-ld} -m elf_i386"
6785 ;;
6786 esac
6787 ;;
6788 powerpc64le-*)
6789 LD="${LD-ld} -m elf32lppclinux"
6790 ;;
6791 powerpc64-*)
6792 LD="${LD-ld} -m elf32ppclinux"
6793 ;;
6794 s390x-*linux*)
6795 LD="${LD-ld} -m elf_s390"
6796 ;;
6797 sparc64-*linux*)
6798 LD="${LD-ld} -m elf32_sparc"
6799 ;;
6800 esac
6801 ;;
6802 *64-bit*)
6803 case $host in
6804 x86_64-*kfreebsd*-gnu)
6805 LD="${LD-ld} -m elf_x86_64_fbsd"
6806 ;;
6807 x86_64-*linux*)
6808 LD="${LD-ld} -m elf_x86_64"
6809 ;;
6810 powerpcle-*)
6811 LD="${LD-ld} -m elf64lppc"
6812 ;;
6813 powerpc-*)
6814 LD="${LD-ld} -m elf64ppc"
6815 ;;
6816 s390*-*linux*|s390*-*tpf*)
6817 LD="${LD-ld} -m elf64_s390"
6818 ;;
6819 sparc*-*linux*)
6820 LD="${LD-ld} -m elf64_sparc"
6821 ;;
6822 esac
6823 ;;
6824 esac
6825 fi
6826 rm -rf conftest*
6827 ;;
6829 *-*-sco3.2v5*)
6830 # On SCO OpenServer 5, we need -belf to get full-featured binaries.
6831 SAVE_CFLAGS="$CFLAGS"
6832 CFLAGS="$CFLAGS -belf"
6833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler needs -belf" >&5
6834 $as_echo_n "checking whether the C compiler needs -belf... " >&6; }
6835 if ${lt_cv_cc_needs_belf+:} false; then :
6836 $as_echo_n "(cached) " >&6
6837 else
6838 ac_ext=c
6839 ac_cpp='$CPP $CPPFLAGS'
6840 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6841 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6842 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6845 /* end confdefs.h. */
6847 int
6848 main ()
6849 {
6851 ;
6852 return 0;
6853 }
6854 _ACEOF
6855 if ac_fn_c_try_link "$LINENO"; then :
6856 lt_cv_cc_needs_belf=yes
6857 else
6858 lt_cv_cc_needs_belf=no
6859 fi
6860 rm -f core conftest.err conftest.$ac_objext \
6861 conftest$ac_exeext conftest.$ac_ext
6862 ac_ext=c
6863 ac_cpp='$CPP $CPPFLAGS'
6864 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
6865 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
6866 ac_compiler_gnu=$ac_cv_c_compiler_gnu
6868 fi
6869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_cc_needs_belf" >&5
6870 $as_echo "$lt_cv_cc_needs_belf" >&6; }
6871 if test x"$lt_cv_cc_needs_belf" != x"yes"; then
6872 # this is probably gcc 2.8.0, egcs 1.0 or newer; no need for -belf
6873 CFLAGS="$SAVE_CFLAGS"
6874 fi
6875 ;;
6876 *-*solaris*)
6877 # Find out which ABI we are using.
6878 echo 'int i;' > conftest.$ac_ext
6879 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
6880 (eval $ac_compile) 2>&5
6881 ac_status=$?
6882 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
6883 test $ac_status = 0; }; then
6884 case `/usr/bin/file conftest.o` in
6885 *64-bit*)
6886 case $lt_cv_prog_gnu_ld in
6887 yes*)
6888 case $host in
6889 i?86-*-solaris*)
6890 LD="${LD-ld} -m elf_x86_64"
6891 ;;
6892 sparc*-*-solaris*)
6893 LD="${LD-ld} -m elf64_sparc"
6894 ;;
6895 esac
6896 # GNU ld 2.21 introduced _sol2 emulations. Use them if available.
6897 if ${LD-ld} -V | grep _sol2 >/dev/null 2>&1; then
6898 LD="${LD-ld}_sol2"
6899 fi
6900 ;;
6901 *)
6902 if ${LD-ld} -64 -r -o conftest2.o conftest.o >/dev/null 2>&1; then
6903 LD="${LD-ld} -64"
6904 fi
6905 ;;
6906 esac
6907 ;;
6908 esac
6909 fi
6910 rm -rf conftest*
6911 ;;
6912 esac
6914 need_locks="$enable_libtool_lock"
6916 if test -n "$ac_tool_prefix"; then
6917 # Extract the first word of "${ac_tool_prefix}mt", so it can be a program name with args.
6918 set dummy ${ac_tool_prefix}mt; ac_word=$2
6919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6920 $as_echo_n "checking for $ac_word... " >&6; }
6921 if ${ac_cv_prog_MANIFEST_TOOL+:} false; then :
6922 $as_echo_n "(cached) " >&6
6923 else
6924 if test -n "$MANIFEST_TOOL"; then
6925 ac_cv_prog_MANIFEST_TOOL="$MANIFEST_TOOL" # Let the user override the test.
6926 else
6927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6928 for as_dir in $PATH
6929 do
6930 IFS=$as_save_IFS
6931 test -z "$as_dir" && as_dir=.
6932 for ac_exec_ext in '' $ac_executable_extensions; do
6933 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6934 ac_cv_prog_MANIFEST_TOOL="${ac_tool_prefix}mt"
6935 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6936 break 2
6937 fi
6938 done
6939 done
6940 IFS=$as_save_IFS
6942 fi
6943 fi
6944 MANIFEST_TOOL=$ac_cv_prog_MANIFEST_TOOL
6945 if test -n "$MANIFEST_TOOL"; then
6946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MANIFEST_TOOL" >&5
6947 $as_echo "$MANIFEST_TOOL" >&6; }
6948 else
6949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6950 $as_echo "no" >&6; }
6951 fi
6954 fi
6955 if test -z "$ac_cv_prog_MANIFEST_TOOL"; then
6956 ac_ct_MANIFEST_TOOL=$MANIFEST_TOOL
6957 # Extract the first word of "mt", so it can be a program name with args.
6958 set dummy mt; ac_word=$2
6959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6960 $as_echo_n "checking for $ac_word... " >&6; }
6961 if ${ac_cv_prog_ac_ct_MANIFEST_TOOL+:} false; then :
6962 $as_echo_n "(cached) " >&6
6963 else
6964 if test -n "$ac_ct_MANIFEST_TOOL"; then
6965 ac_cv_prog_ac_ct_MANIFEST_TOOL="$ac_ct_MANIFEST_TOOL" # Let the user override the test.
6966 else
6967 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6968 for as_dir in $PATH
6969 do
6970 IFS=$as_save_IFS
6971 test -z "$as_dir" && as_dir=.
6972 for ac_exec_ext in '' $ac_executable_extensions; do
6973 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6974 ac_cv_prog_ac_ct_MANIFEST_TOOL="mt"
6975 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6976 break 2
6977 fi
6978 done
6979 done
6980 IFS=$as_save_IFS
6982 fi
6983 fi
6984 ac_ct_MANIFEST_TOOL=$ac_cv_prog_ac_ct_MANIFEST_TOOL
6985 if test -n "$ac_ct_MANIFEST_TOOL"; then
6986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_MANIFEST_TOOL" >&5
6987 $as_echo "$ac_ct_MANIFEST_TOOL" >&6; }
6988 else
6989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6990 $as_echo "no" >&6; }
6991 fi
6993 if test "x$ac_ct_MANIFEST_TOOL" = x; then
6994 MANIFEST_TOOL=":"
6995 else
6996 case $cross_compiling:$ac_tool_warned in
6997 yes:)
6998 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
6999 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7000 ac_tool_warned=yes ;;
7001 esac
7002 MANIFEST_TOOL=$ac_ct_MANIFEST_TOOL
7003 fi
7004 else
7005 MANIFEST_TOOL="$ac_cv_prog_MANIFEST_TOOL"
7006 fi
7008 test -z "$MANIFEST_TOOL" && MANIFEST_TOOL=mt
7009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $MANIFEST_TOOL is a manifest tool" >&5
7010 $as_echo_n "checking if $MANIFEST_TOOL is a manifest tool... " >&6; }
7011 if ${lt_cv_path_mainfest_tool+:} false; then :
7012 $as_echo_n "(cached) " >&6
7013 else
7014 lt_cv_path_mainfest_tool=no
7015 echo "$as_me:$LINENO: $MANIFEST_TOOL '-?'" >&5
7016 $MANIFEST_TOOL '-?' 2>conftest.err > conftest.out
7017 cat conftest.err >&5
7018 if $GREP 'Manifest Tool' conftest.out > /dev/null; then
7019 lt_cv_path_mainfest_tool=yes
7020 fi
7021 rm -f conftest*
7022 fi
7023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_path_mainfest_tool" >&5
7024 $as_echo "$lt_cv_path_mainfest_tool" >&6; }
7025 if test "x$lt_cv_path_mainfest_tool" != xyes; then
7026 MANIFEST_TOOL=:
7027 fi
7034 case $host_os in
7035 rhapsody* | darwin*)
7036 if test -n "$ac_tool_prefix"; then
7037 # Extract the first word of "${ac_tool_prefix}dsymutil", so it can be a program name with args.
7038 set dummy ${ac_tool_prefix}dsymutil; ac_word=$2
7039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7040 $as_echo_n "checking for $ac_word... " >&6; }
7041 if ${ac_cv_prog_DSYMUTIL+:} false; then :
7042 $as_echo_n "(cached) " >&6
7043 else
7044 if test -n "$DSYMUTIL"; then
7045 ac_cv_prog_DSYMUTIL="$DSYMUTIL" # Let the user override the test.
7046 else
7047 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7048 for as_dir in $PATH
7049 do
7050 IFS=$as_save_IFS
7051 test -z "$as_dir" && as_dir=.
7052 for ac_exec_ext in '' $ac_executable_extensions; do
7053 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7054 ac_cv_prog_DSYMUTIL="${ac_tool_prefix}dsymutil"
7055 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7056 break 2
7057 fi
7058 done
7059 done
7060 IFS=$as_save_IFS
7062 fi
7063 fi
7064 DSYMUTIL=$ac_cv_prog_DSYMUTIL
7065 if test -n "$DSYMUTIL"; then
7066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DSYMUTIL" >&5
7067 $as_echo "$DSYMUTIL" >&6; }
7068 else
7069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7070 $as_echo "no" >&6; }
7071 fi
7074 fi
7075 if test -z "$ac_cv_prog_DSYMUTIL"; then
7076 ac_ct_DSYMUTIL=$DSYMUTIL
7077 # Extract the first word of "dsymutil", so it can be a program name with args.
7078 set dummy dsymutil; ac_word=$2
7079 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7080 $as_echo_n "checking for $ac_word... " >&6; }
7081 if ${ac_cv_prog_ac_ct_DSYMUTIL+:} false; then :
7082 $as_echo_n "(cached) " >&6
7083 else
7084 if test -n "$ac_ct_DSYMUTIL"; then
7085 ac_cv_prog_ac_ct_DSYMUTIL="$ac_ct_DSYMUTIL" # Let the user override the test.
7086 else
7087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7088 for as_dir in $PATH
7089 do
7090 IFS=$as_save_IFS
7091 test -z "$as_dir" && as_dir=.
7092 for ac_exec_ext in '' $ac_executable_extensions; do
7093 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7094 ac_cv_prog_ac_ct_DSYMUTIL="dsymutil"
7095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7096 break 2
7097 fi
7098 done
7099 done
7100 IFS=$as_save_IFS
7102 fi
7103 fi
7104 ac_ct_DSYMUTIL=$ac_cv_prog_ac_ct_DSYMUTIL
7105 if test -n "$ac_ct_DSYMUTIL"; then
7106 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_DSYMUTIL" >&5
7107 $as_echo "$ac_ct_DSYMUTIL" >&6; }
7108 else
7109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7110 $as_echo "no" >&6; }
7111 fi
7113 if test "x$ac_ct_DSYMUTIL" = x; then
7114 DSYMUTIL=":"
7115 else
7116 case $cross_compiling:$ac_tool_warned in
7117 yes:)
7118 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7119 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7120 ac_tool_warned=yes ;;
7121 esac
7122 DSYMUTIL=$ac_ct_DSYMUTIL
7123 fi
7124 else
7125 DSYMUTIL="$ac_cv_prog_DSYMUTIL"
7126 fi
7128 if test -n "$ac_tool_prefix"; then
7129 # Extract the first word of "${ac_tool_prefix}nmedit", so it can be a program name with args.
7130 set dummy ${ac_tool_prefix}nmedit; ac_word=$2
7131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7132 $as_echo_n "checking for $ac_word... " >&6; }
7133 if ${ac_cv_prog_NMEDIT+:} false; then :
7134 $as_echo_n "(cached) " >&6
7135 else
7136 if test -n "$NMEDIT"; then
7137 ac_cv_prog_NMEDIT="$NMEDIT" # Let the user override the test.
7138 else
7139 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7140 for as_dir in $PATH
7141 do
7142 IFS=$as_save_IFS
7143 test -z "$as_dir" && as_dir=.
7144 for ac_exec_ext in '' $ac_executable_extensions; do
7145 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7146 ac_cv_prog_NMEDIT="${ac_tool_prefix}nmedit"
7147 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7148 break 2
7149 fi
7150 done
7151 done
7152 IFS=$as_save_IFS
7154 fi
7155 fi
7156 NMEDIT=$ac_cv_prog_NMEDIT
7157 if test -n "$NMEDIT"; then
7158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $NMEDIT" >&5
7159 $as_echo "$NMEDIT" >&6; }
7160 else
7161 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7162 $as_echo "no" >&6; }
7163 fi
7166 fi
7167 if test -z "$ac_cv_prog_NMEDIT"; then
7168 ac_ct_NMEDIT=$NMEDIT
7169 # Extract the first word of "nmedit", so it can be a program name with args.
7170 set dummy nmedit; ac_word=$2
7171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7172 $as_echo_n "checking for $ac_word... " >&6; }
7173 if ${ac_cv_prog_ac_ct_NMEDIT+:} false; then :
7174 $as_echo_n "(cached) " >&6
7175 else
7176 if test -n "$ac_ct_NMEDIT"; then
7177 ac_cv_prog_ac_ct_NMEDIT="$ac_ct_NMEDIT" # Let the user override the test.
7178 else
7179 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7180 for as_dir in $PATH
7181 do
7182 IFS=$as_save_IFS
7183 test -z "$as_dir" && as_dir=.
7184 for ac_exec_ext in '' $ac_executable_extensions; do
7185 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7186 ac_cv_prog_ac_ct_NMEDIT="nmedit"
7187 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7188 break 2
7189 fi
7190 done
7191 done
7192 IFS=$as_save_IFS
7194 fi
7195 fi
7196 ac_ct_NMEDIT=$ac_cv_prog_ac_ct_NMEDIT
7197 if test -n "$ac_ct_NMEDIT"; then
7198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_NMEDIT" >&5
7199 $as_echo "$ac_ct_NMEDIT" >&6; }
7200 else
7201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7202 $as_echo "no" >&6; }
7203 fi
7205 if test "x$ac_ct_NMEDIT" = x; then
7206 NMEDIT=":"
7207 else
7208 case $cross_compiling:$ac_tool_warned in
7209 yes:)
7210 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7211 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7212 ac_tool_warned=yes ;;
7213 esac
7214 NMEDIT=$ac_ct_NMEDIT
7215 fi
7216 else
7217 NMEDIT="$ac_cv_prog_NMEDIT"
7218 fi
7220 if test -n "$ac_tool_prefix"; then
7221 # Extract the first word of "${ac_tool_prefix}lipo", so it can be a program name with args.
7222 set dummy ${ac_tool_prefix}lipo; ac_word=$2
7223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7224 $as_echo_n "checking for $ac_word... " >&6; }
7225 if ${ac_cv_prog_LIPO+:} false; then :
7226 $as_echo_n "(cached) " >&6
7227 else
7228 if test -n "$LIPO"; then
7229 ac_cv_prog_LIPO="$LIPO" # Let the user override the test.
7230 else
7231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7232 for as_dir in $PATH
7233 do
7234 IFS=$as_save_IFS
7235 test -z "$as_dir" && as_dir=.
7236 for ac_exec_ext in '' $ac_executable_extensions; do
7237 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7238 ac_cv_prog_LIPO="${ac_tool_prefix}lipo"
7239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7240 break 2
7241 fi
7242 done
7243 done
7244 IFS=$as_save_IFS
7246 fi
7247 fi
7248 LIPO=$ac_cv_prog_LIPO
7249 if test -n "$LIPO"; then
7250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIPO" >&5
7251 $as_echo "$LIPO" >&6; }
7252 else
7253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7254 $as_echo "no" >&6; }
7255 fi
7258 fi
7259 if test -z "$ac_cv_prog_LIPO"; then
7260 ac_ct_LIPO=$LIPO
7261 # Extract the first word of "lipo", so it can be a program name with args.
7262 set dummy lipo; ac_word=$2
7263 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7264 $as_echo_n "checking for $ac_word... " >&6; }
7265 if ${ac_cv_prog_ac_ct_LIPO+:} false; then :
7266 $as_echo_n "(cached) " >&6
7267 else
7268 if test -n "$ac_ct_LIPO"; then
7269 ac_cv_prog_ac_ct_LIPO="$ac_ct_LIPO" # Let the user override the test.
7270 else
7271 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7272 for as_dir in $PATH
7273 do
7274 IFS=$as_save_IFS
7275 test -z "$as_dir" && as_dir=.
7276 for ac_exec_ext in '' $ac_executable_extensions; do
7277 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7278 ac_cv_prog_ac_ct_LIPO="lipo"
7279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7280 break 2
7281 fi
7282 done
7283 done
7284 IFS=$as_save_IFS
7286 fi
7287 fi
7288 ac_ct_LIPO=$ac_cv_prog_ac_ct_LIPO
7289 if test -n "$ac_ct_LIPO"; then
7290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_LIPO" >&5
7291 $as_echo "$ac_ct_LIPO" >&6; }
7292 else
7293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7294 $as_echo "no" >&6; }
7295 fi
7297 if test "x$ac_ct_LIPO" = x; then
7298 LIPO=":"
7299 else
7300 case $cross_compiling:$ac_tool_warned in
7301 yes:)
7302 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7303 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7304 ac_tool_warned=yes ;;
7305 esac
7306 LIPO=$ac_ct_LIPO
7307 fi
7308 else
7309 LIPO="$ac_cv_prog_LIPO"
7310 fi
7312 if test -n "$ac_tool_prefix"; then
7313 # Extract the first word of "${ac_tool_prefix}otool", so it can be a program name with args.
7314 set dummy ${ac_tool_prefix}otool; ac_word=$2
7315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7316 $as_echo_n "checking for $ac_word... " >&6; }
7317 if ${ac_cv_prog_OTOOL+:} false; then :
7318 $as_echo_n "(cached) " >&6
7319 else
7320 if test -n "$OTOOL"; then
7321 ac_cv_prog_OTOOL="$OTOOL" # Let the user override the test.
7322 else
7323 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7324 for as_dir in $PATH
7325 do
7326 IFS=$as_save_IFS
7327 test -z "$as_dir" && as_dir=.
7328 for ac_exec_ext in '' $ac_executable_extensions; do
7329 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7330 ac_cv_prog_OTOOL="${ac_tool_prefix}otool"
7331 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7332 break 2
7333 fi
7334 done
7335 done
7336 IFS=$as_save_IFS
7338 fi
7339 fi
7340 OTOOL=$ac_cv_prog_OTOOL
7341 if test -n "$OTOOL"; then
7342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL" >&5
7343 $as_echo "$OTOOL" >&6; }
7344 else
7345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7346 $as_echo "no" >&6; }
7347 fi
7350 fi
7351 if test -z "$ac_cv_prog_OTOOL"; then
7352 ac_ct_OTOOL=$OTOOL
7353 # Extract the first word of "otool", so it can be a program name with args.
7354 set dummy otool; ac_word=$2
7355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7356 $as_echo_n "checking for $ac_word... " >&6; }
7357 if ${ac_cv_prog_ac_ct_OTOOL+:} false; then :
7358 $as_echo_n "(cached) " >&6
7359 else
7360 if test -n "$ac_ct_OTOOL"; then
7361 ac_cv_prog_ac_ct_OTOOL="$ac_ct_OTOOL" # Let the user override the test.
7362 else
7363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7364 for as_dir in $PATH
7365 do
7366 IFS=$as_save_IFS
7367 test -z "$as_dir" && as_dir=.
7368 for ac_exec_ext in '' $ac_executable_extensions; do
7369 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7370 ac_cv_prog_ac_ct_OTOOL="otool"
7371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7372 break 2
7373 fi
7374 done
7375 done
7376 IFS=$as_save_IFS
7378 fi
7379 fi
7380 ac_ct_OTOOL=$ac_cv_prog_ac_ct_OTOOL
7381 if test -n "$ac_ct_OTOOL"; then
7382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL" >&5
7383 $as_echo "$ac_ct_OTOOL" >&6; }
7384 else
7385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7386 $as_echo "no" >&6; }
7387 fi
7389 if test "x$ac_ct_OTOOL" = x; then
7390 OTOOL=":"
7391 else
7392 case $cross_compiling:$ac_tool_warned in
7393 yes:)
7394 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7395 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7396 ac_tool_warned=yes ;;
7397 esac
7398 OTOOL=$ac_ct_OTOOL
7399 fi
7400 else
7401 OTOOL="$ac_cv_prog_OTOOL"
7402 fi
7404 if test -n "$ac_tool_prefix"; then
7405 # Extract the first word of "${ac_tool_prefix}otool64", so it can be a program name with args.
7406 set dummy ${ac_tool_prefix}otool64; ac_word=$2
7407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7408 $as_echo_n "checking for $ac_word... " >&6; }
7409 if ${ac_cv_prog_OTOOL64+:} false; then :
7410 $as_echo_n "(cached) " >&6
7411 else
7412 if test -n "$OTOOL64"; then
7413 ac_cv_prog_OTOOL64="$OTOOL64" # Let the user override the test.
7414 else
7415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7416 for as_dir in $PATH
7417 do
7418 IFS=$as_save_IFS
7419 test -z "$as_dir" && as_dir=.
7420 for ac_exec_ext in '' $ac_executable_extensions; do
7421 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7422 ac_cv_prog_OTOOL64="${ac_tool_prefix}otool64"
7423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7424 break 2
7425 fi
7426 done
7427 done
7428 IFS=$as_save_IFS
7430 fi
7431 fi
7432 OTOOL64=$ac_cv_prog_OTOOL64
7433 if test -n "$OTOOL64"; then
7434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OTOOL64" >&5
7435 $as_echo "$OTOOL64" >&6; }
7436 else
7437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7438 $as_echo "no" >&6; }
7439 fi
7442 fi
7443 if test -z "$ac_cv_prog_OTOOL64"; then
7444 ac_ct_OTOOL64=$OTOOL64
7445 # Extract the first word of "otool64", so it can be a program name with args.
7446 set dummy otool64; ac_word=$2
7447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7448 $as_echo_n "checking for $ac_word... " >&6; }
7449 if ${ac_cv_prog_ac_ct_OTOOL64+:} false; then :
7450 $as_echo_n "(cached) " >&6
7451 else
7452 if test -n "$ac_ct_OTOOL64"; then
7453 ac_cv_prog_ac_ct_OTOOL64="$ac_ct_OTOOL64" # Let the user override the test.
7454 else
7455 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7456 for as_dir in $PATH
7457 do
7458 IFS=$as_save_IFS
7459 test -z "$as_dir" && as_dir=.
7460 for ac_exec_ext in '' $ac_executable_extensions; do
7461 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7462 ac_cv_prog_ac_ct_OTOOL64="otool64"
7463 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7464 break 2
7465 fi
7466 done
7467 done
7468 IFS=$as_save_IFS
7470 fi
7471 fi
7472 ac_ct_OTOOL64=$ac_cv_prog_ac_ct_OTOOL64
7473 if test -n "$ac_ct_OTOOL64"; then
7474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_OTOOL64" >&5
7475 $as_echo "$ac_ct_OTOOL64" >&6; }
7476 else
7477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7478 $as_echo "no" >&6; }
7479 fi
7481 if test "x$ac_ct_OTOOL64" = x; then
7482 OTOOL64=":"
7483 else
7484 case $cross_compiling:$ac_tool_warned in
7485 yes:)
7486 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
7487 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
7488 ac_tool_warned=yes ;;
7489 esac
7490 OTOOL64=$ac_ct_OTOOL64
7491 fi
7492 else
7493 OTOOL64="$ac_cv_prog_OTOOL64"
7494 fi
7522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -single_module linker flag" >&5
7523 $as_echo_n "checking for -single_module linker flag... " >&6; }
7524 if ${lt_cv_apple_cc_single_mod+:} false; then :
7525 $as_echo_n "(cached) " >&6
7526 else
7527 lt_cv_apple_cc_single_mod=no
7528 if test -z "${LT_MULTI_MODULE}"; then
7529 # By default we will add the -single_module flag. You can override
7530 # by either setting the environment variable LT_MULTI_MODULE
7531 # non-empty at configure time, or by adding -multi_module to the
7532 # link flags.
7533 rm -rf libconftest.dylib*
7534 echo "int foo(void){return 1;}" > conftest.c
7535 echo "$LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7536 -dynamiclib -Wl,-single_module conftest.c" >&5
7537 $LTCC $LTCFLAGS $LDFLAGS -o libconftest.dylib \
7538 -dynamiclib -Wl,-single_module conftest.c 2>conftest.err
7539 _lt_result=$?
7540 # If there is a non-empty error log, and "single_module"
7541 # appears in it, assume the flag caused a linker warning
7542 if test -s conftest.err && $GREP single_module conftest.err; then
7543 cat conftest.err >&5
7544 # Otherwise, if the output was created with a 0 exit code from
7545 # the compiler, it worked.
7546 elif test -f libconftest.dylib && test $_lt_result -eq 0; then
7547 lt_cv_apple_cc_single_mod=yes
7548 else
7549 cat conftest.err >&5
7550 fi
7551 rm -rf libconftest.dylib*
7552 rm -f conftest.*
7553 fi
7554 fi
7555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_apple_cc_single_mod" >&5
7556 $as_echo "$lt_cv_apple_cc_single_mod" >&6; }
7558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -exported_symbols_list linker flag" >&5
7559 $as_echo_n "checking for -exported_symbols_list linker flag... " >&6; }
7560 if ${lt_cv_ld_exported_symbols_list+:} false; then :
7561 $as_echo_n "(cached) " >&6
7562 else
7563 lt_cv_ld_exported_symbols_list=no
7564 save_LDFLAGS=$LDFLAGS
7565 echo "_main" > conftest.sym
7566 LDFLAGS="$LDFLAGS -Wl,-exported_symbols_list,conftest.sym"
7567 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7568 /* end confdefs.h. */
7570 int
7571 main ()
7572 {
7574 ;
7575 return 0;
7576 }
7577 _ACEOF
7578 if ac_fn_c_try_link "$LINENO"; then :
7579 lt_cv_ld_exported_symbols_list=yes
7580 else
7581 lt_cv_ld_exported_symbols_list=no
7582 fi
7583 rm -f core conftest.err conftest.$ac_objext \
7584 conftest$ac_exeext conftest.$ac_ext
7585 LDFLAGS="$save_LDFLAGS"
7587 fi
7588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_exported_symbols_list" >&5
7589 $as_echo "$lt_cv_ld_exported_symbols_list" >&6; }
7591 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for -force_load linker flag" >&5
7592 $as_echo_n "checking for -force_load linker flag... " >&6; }
7593 if ${lt_cv_ld_force_load+:} false; then :
7594 $as_echo_n "(cached) " >&6
7595 else
7596 lt_cv_ld_force_load=no
7597 cat > conftest.c << _LT_EOF
7598 int forced_loaded() { return 2;}
7599 _LT_EOF
7600 echo "$LTCC $LTCFLAGS -c -o conftest.o conftest.c" >&5
7601 $LTCC $LTCFLAGS -c -o conftest.o conftest.c 2>&5
7602 echo "$AR cru libconftest.a conftest.o" >&5
7603 $AR cru libconftest.a conftest.o 2>&5
7604 echo "$RANLIB libconftest.a" >&5
7605 $RANLIB libconftest.a 2>&5
7606 cat > conftest.c << _LT_EOF
7607 int main() { return 0;}
7608 _LT_EOF
7609 echo "$LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a" >&5
7610 $LTCC $LTCFLAGS $LDFLAGS -o conftest conftest.c -Wl,-force_load,./libconftest.a 2>conftest.err
7611 _lt_result=$?
7612 if test -s conftest.err && $GREP force_load conftest.err; then
7613 cat conftest.err >&5
7614 elif test -f conftest && test $_lt_result -eq 0 && $GREP forced_load conftest >/dev/null 2>&1 ; then
7615 lt_cv_ld_force_load=yes
7616 else
7617 cat conftest.err >&5
7618 fi
7619 rm -f conftest.err libconftest.a conftest conftest.c
7620 rm -rf conftest.dSYM
7622 fi
7623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_ld_force_load" >&5
7624 $as_echo "$lt_cv_ld_force_load" >&6; }
7625 case $host_os in
7626 rhapsody* | darwin1.[012])
7627 _lt_dar_allow_undefined='${wl}-undefined ${wl}suppress' ;;
7628 darwin1.*)
7629 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7630 darwin*) # darwin 5.x on
7631 # if running on 10.5 or later, the deployment target defaults
7632 # to the OS version, if on x86, and 10.4, the deployment
7633 # target defaults to 10.4. Don't you love it?
7634 case ${MACOSX_DEPLOYMENT_TARGET-10.0},$host in
7635 10.0,*86*-darwin8*|10.0,*-darwin[91]*)
7636 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7637 10.[012]*)
7638 _lt_dar_allow_undefined='${wl}-flat_namespace ${wl}-undefined ${wl}suppress' ;;
7639 10.*)
7640 _lt_dar_allow_undefined='${wl}-undefined ${wl}dynamic_lookup' ;;
7641 esac
7642 ;;
7643 esac
7644 if test "$lt_cv_apple_cc_single_mod" = "yes"; then
7645 _lt_dar_single_mod='$single_module'
7646 fi
7647 if test "$lt_cv_ld_exported_symbols_list" = "yes"; then
7648 _lt_dar_export_syms=' ${wl}-exported_symbols_list,$output_objdir/${libname}-symbols.expsym'
7649 else
7650 _lt_dar_export_syms='~$NMEDIT -s $output_objdir/${libname}-symbols.expsym ${lib}'
7651 fi
7652 if test "$DSYMUTIL" != ":" && test "$lt_cv_ld_force_load" = "no"; then
7653 _lt_dsymutil='~$DSYMUTIL $lib || :'
7654 else
7655 _lt_dsymutil=
7656 fi
7657 ;;
7658 esac
7660 ac_ext=c
7661 ac_cpp='$CPP $CPPFLAGS'
7662 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7663 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7664 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7666 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7667 # On Suns, sometimes $CPP names a directory.
7668 if test -n "$CPP" && test -d "$CPP"; then
7669 CPP=
7670 fi
7671 if test -z "$CPP"; then
7672 if ${ac_cv_prog_CPP+:} false; then :
7673 $as_echo_n "(cached) " >&6
7674 else
7675 # Double quotes because CPP needs to be expanded
7676 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7677 do
7678 ac_preproc_ok=false
7679 for ac_c_preproc_warn_flag in '' yes
7680 do
7681 # Use a header file that comes with gcc, so configuring glibc
7682 # with a fresh cross-compiler works.
7683 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7684 # <limits.h> exists even on freestanding compilers.
7685 # On the NeXT, cc -E runs the code through the compiler's parser,
7686 # not just through cpp. "Syntax error" is here to catch this case.
7687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7688 /* end confdefs.h. */
7689 #ifdef __STDC__
7690 # include <limits.h>
7691 #else
7692 # include <assert.h>
7693 #endif
7694 Syntax error
7695 _ACEOF
7696 if ac_fn_c_try_cpp "$LINENO"; then :
7698 else
7699 # Broken: fails on valid input.
7700 continue
7701 fi
7702 rm -f conftest.err conftest.i conftest.$ac_ext
7704 # OK, works on sane cases. Now check whether nonexistent headers
7705 # can be detected and how.
7706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7707 /* end confdefs.h. */
7708 #include <ac_nonexistent.h>
7709 _ACEOF
7710 if ac_fn_c_try_cpp "$LINENO"; then :
7711 # Broken: success on invalid input.
7712 continue
7713 else
7714 # Passes both tests.
7715 ac_preproc_ok=:
7716 break
7717 fi
7718 rm -f conftest.err conftest.i conftest.$ac_ext
7720 done
7721 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7722 rm -f conftest.i conftest.err conftest.$ac_ext
7723 if $ac_preproc_ok; then :
7724 break
7725 fi
7727 done
7728 ac_cv_prog_CPP=$CPP
7730 fi
7731 CPP=$ac_cv_prog_CPP
7732 else
7733 ac_cv_prog_CPP=$CPP
7734 fi
7735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7736 $as_echo "$CPP" >&6; }
7737 ac_preproc_ok=false
7738 for ac_c_preproc_warn_flag in '' yes
7739 do
7740 # Use a header file that comes with gcc, so configuring glibc
7741 # with a fresh cross-compiler works.
7742 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7743 # <limits.h> exists even on freestanding compilers.
7744 # On the NeXT, cc -E runs the code through the compiler's parser,
7745 # not just through cpp. "Syntax error" is here to catch this case.
7746 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7747 /* end confdefs.h. */
7748 #ifdef __STDC__
7749 # include <limits.h>
7750 #else
7751 # include <assert.h>
7752 #endif
7753 Syntax error
7754 _ACEOF
7755 if ac_fn_c_try_cpp "$LINENO"; then :
7757 else
7758 # Broken: fails on valid input.
7759 continue
7760 fi
7761 rm -f conftest.err conftest.i conftest.$ac_ext
7763 # OK, works on sane cases. Now check whether nonexistent headers
7764 # can be detected and how.
7765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7766 /* end confdefs.h. */
7767 #include <ac_nonexistent.h>
7768 _ACEOF
7769 if ac_fn_c_try_cpp "$LINENO"; then :
7770 # Broken: success on invalid input.
7771 continue
7772 else
7773 # Passes both tests.
7774 ac_preproc_ok=:
7775 break
7776 fi
7777 rm -f conftest.err conftest.i conftest.$ac_ext
7779 done
7780 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7781 rm -f conftest.i conftest.err conftest.$ac_ext
7782 if $ac_preproc_ok; then :
7784 else
7785 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7786 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7787 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7788 See \`config.log' for more details" "$LINENO" 5; }
7789 fi
7791 ac_ext=c
7792 ac_cpp='$CPP $CPPFLAGS'
7793 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7794 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7795 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
7799 $as_echo_n "checking for ANSI C header files... " >&6; }
7800 if ${ac_cv_header_stdc+:} false; then :
7801 $as_echo_n "(cached) " >&6
7802 else
7803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7804 /* end confdefs.h. */
7805 #include <stdlib.h>
7806 #include <stdarg.h>
7807 #include <string.h>
7808 #include <float.h>
7810 int
7811 main ()
7812 {
7814 ;
7815 return 0;
7816 }
7817 _ACEOF
7818 if ac_fn_c_try_compile "$LINENO"; then :
7819 ac_cv_header_stdc=yes
7820 else
7821 ac_cv_header_stdc=no
7822 fi
7823 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7825 if test $ac_cv_header_stdc = yes; then
7826 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
7827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7828 /* end confdefs.h. */
7829 #include <string.h>
7831 _ACEOF
7832 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7833 $EGREP "memchr" >/dev/null 2>&1; then :
7835 else
7836 ac_cv_header_stdc=no
7837 fi
7838 rm -f conftest*
7840 fi
7842 if test $ac_cv_header_stdc = yes; then
7843 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
7844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7845 /* end confdefs.h. */
7846 #include <stdlib.h>
7848 _ACEOF
7849 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
7850 $EGREP "free" >/dev/null 2>&1; then :
7852 else
7853 ac_cv_header_stdc=no
7854 fi
7855 rm -f conftest*
7857 fi
7859 if test $ac_cv_header_stdc = yes; then
7860 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
7861 if test "$cross_compiling" = yes; then :
7862 :
7863 else
7864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7865 /* end confdefs.h. */
7866 #include <ctype.h>
7867 #include <stdlib.h>
7868 #if ((' ' & 0x0FF) == 0x020)
7869 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
7870 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
7871 #else
7872 # define ISLOWER(c) \
7873 (('a' <= (c) && (c) <= 'i') \
7874 || ('j' <= (c) && (c) <= 'r') \
7875 || ('s' <= (c) && (c) <= 'z'))
7876 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
7877 #endif
7879 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
7880 int
7881 main ()
7882 {
7883 int i;
7884 for (i = 0; i < 256; i++)
7885 if (XOR (islower (i), ISLOWER (i))
7886 || toupper (i) != TOUPPER (i))
7887 return 2;
7888 return 0;
7889 }
7890 _ACEOF
7891 if ac_fn_c_try_run "$LINENO"; then :
7893 else
7894 ac_cv_header_stdc=no
7895 fi
7896 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
7897 conftest.$ac_objext conftest.beam conftest.$ac_ext
7898 fi
7900 fi
7901 fi
7902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
7903 $as_echo "$ac_cv_header_stdc" >&6; }
7904 if test $ac_cv_header_stdc = yes; then
7906 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
7908 fi
7910 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
7911 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
7912 inttypes.h stdint.h unistd.h
7913 do :
7914 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7915 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
7916 "
7917 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7918 cat >>confdefs.h <<_ACEOF
7919 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7920 _ACEOF
7922 fi
7924 done
7927 for ac_header in dlfcn.h
7928 do :
7929 ac_fn_c_check_header_compile "$LINENO" "dlfcn.h" "ac_cv_header_dlfcn_h" "$ac_includes_default
7930 "
7931 if test "x$ac_cv_header_dlfcn_h" = xyes; then :
7932 cat >>confdefs.h <<_ACEOF
7933 #define HAVE_DLFCN_H 1
7934 _ACEOF
7936 fi
7938 done
7944 # Set options
7945 enable_dlopen=yes
7950 enable_win32_dll=no
7953 # Check whether --enable-shared was given.
7954 if test "${enable_shared+set}" = set; then :
7955 enableval=$enable_shared; p=${PACKAGE-default}
7956 case $enableval in
7957 yes) enable_shared=yes ;;
7958 no) enable_shared=no ;;
7959 *)
7960 enable_shared=no
7961 # Look at the argument we got. We use all the common list separators.
7962 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7963 for pkg in $enableval; do
7964 IFS="$lt_save_ifs"
7965 if test "X$pkg" = "X$p"; then
7966 enable_shared=yes
7967 fi
7968 done
7969 IFS="$lt_save_ifs"
7970 ;;
7971 esac
7972 else
7973 enable_shared=yes
7974 fi
7984 # Check whether --enable-static was given.
7985 if test "${enable_static+set}" = set; then :
7986 enableval=$enable_static; p=${PACKAGE-default}
7987 case $enableval in
7988 yes) enable_static=yes ;;
7989 no) enable_static=no ;;
7990 *)
7991 enable_static=no
7992 # Look at the argument we got. We use all the common list separators.
7993 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
7994 for pkg in $enableval; do
7995 IFS="$lt_save_ifs"
7996 if test "X$pkg" = "X$p"; then
7997 enable_static=yes
7998 fi
7999 done
8000 IFS="$lt_save_ifs"
8001 ;;
8002 esac
8003 else
8004 enable_static=yes
8005 fi
8016 # Check whether --with-pic was given.
8017 if test "${with_pic+set}" = set; then :
8018 withval=$with_pic; lt_p=${PACKAGE-default}
8019 case $withval in
8020 yes|no) pic_mode=$withval ;;
8021 *)
8022 pic_mode=default
8023 # Look at the argument we got. We use all the common list separators.
8024 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8025 for lt_pkg in $withval; do
8026 IFS="$lt_save_ifs"
8027 if test "X$lt_pkg" = "X$lt_p"; then
8028 pic_mode=yes
8029 fi
8030 done
8031 IFS="$lt_save_ifs"
8032 ;;
8033 esac
8034 else
8035 pic_mode=default
8036 fi
8039 test -z "$pic_mode" && pic_mode=default
8047 # Check whether --enable-fast-install was given.
8048 if test "${enable_fast_install+set}" = set; then :
8049 enableval=$enable_fast_install; p=${PACKAGE-default}
8050 case $enableval in
8051 yes) enable_fast_install=yes ;;
8052 no) enable_fast_install=no ;;
8053 *)
8054 enable_fast_install=no
8055 # Look at the argument we got. We use all the common list separators.
8056 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
8057 for pkg in $enableval; do
8058 IFS="$lt_save_ifs"
8059 if test "X$pkg" = "X$p"; then
8060 enable_fast_install=yes
8061 fi
8062 done
8063 IFS="$lt_save_ifs"
8064 ;;
8065 esac
8066 else
8067 enable_fast_install=yes
8068 fi
8080 # This can be used to rebuild libtool when needed
8081 LIBTOOL_DEPS="$ltmain"
8083 # Always use our own libtool.
8084 LIBTOOL='$(SHELL) $(top_builddir)/libtool'
8115 test -z "$LN_S" && LN_S="ln -s"
8130 if test -n "${ZSH_VERSION+set}" ; then
8131 setopt NO_GLOB_SUBST
8132 fi
8134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for objdir" >&5
8135 $as_echo_n "checking for objdir... " >&6; }
8136 if ${lt_cv_objdir+:} false; then :
8137 $as_echo_n "(cached) " >&6
8138 else
8139 rm -f .libs 2>/dev/null
8140 mkdir .libs 2>/dev/null
8141 if test -d .libs; then
8142 lt_cv_objdir=.libs
8143 else
8144 # MS-DOS does not allow filenames that begin with a dot.
8145 lt_cv_objdir=_libs
8146 fi
8147 rmdir .libs 2>/dev/null
8148 fi
8149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_objdir" >&5
8150 $as_echo "$lt_cv_objdir" >&6; }
8151 objdir=$lt_cv_objdir
8157 cat >>confdefs.h <<_ACEOF
8158 #define LT_OBJDIR "$lt_cv_objdir/"
8159 _ACEOF
8164 case $host_os in
8165 aix3*)
8166 # AIX sometimes has problems with the GCC collect2 program. For some
8167 # reason, if we set the COLLECT_NAMES environment variable, the problems
8168 # vanish in a puff of smoke.
8169 if test "X${COLLECT_NAMES+set}" != Xset; then
8170 COLLECT_NAMES=
8171 export COLLECT_NAMES
8172 fi
8173 ;;
8174 esac
8176 # Global variables:
8177 ofile=libtool
8178 can_build_shared=yes
8180 # All known linkers require a `.a' archive for static linking (except MSVC,
8181 # which needs '.lib').
8182 libext=a
8184 with_gnu_ld="$lt_cv_prog_gnu_ld"
8186 old_CC="$CC"
8187 old_CFLAGS="$CFLAGS"
8189 # Set sane defaults for various variables
8190 test -z "$CC" && CC=cc
8191 test -z "$LTCC" && LTCC=$CC
8192 test -z "$LTCFLAGS" && LTCFLAGS=$CFLAGS
8193 test -z "$LD" && LD=ld
8194 test -z "$ac_objext" && ac_objext=o
8196 for cc_temp in $compiler""; do
8197 case $cc_temp in
8198 compile | *[\\/]compile | ccache | *[\\/]ccache ) ;;
8199 distcc | *[\\/]distcc | purify | *[\\/]purify ) ;;
8200 \-*) ;;
8201 *) break;;
8202 esac
8203 done
8204 cc_basename=`$ECHO "$cc_temp" | $SED "s%.*/%%; s%^$host_alias-%%"`
8207 # Only perform the check for file, if the check method requires it
8208 test -z "$MAGIC_CMD" && MAGIC_CMD=file
8209 case $deplibs_check_method in
8210 file_magic*)
8211 if test "$file_magic_cmd" = '$MAGIC_CMD'; then
8212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ${ac_tool_prefix}file" >&5
8213 $as_echo_n "checking for ${ac_tool_prefix}file... " >&6; }
8214 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8215 $as_echo_n "(cached) " >&6
8216 else
8217 case $MAGIC_CMD in
8218 [\\/*] | ?:[\\/]*)
8219 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8220 ;;
8221 *)
8222 lt_save_MAGIC_CMD="$MAGIC_CMD"
8223 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8224 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8225 for ac_dir in $ac_dummy; do
8226 IFS="$lt_save_ifs"
8227 test -z "$ac_dir" && ac_dir=.
8228 if test -f $ac_dir/${ac_tool_prefix}file; then
8229 lt_cv_path_MAGIC_CMD="$ac_dir/${ac_tool_prefix}file"
8230 if test -n "$file_magic_test_file"; then
8231 case $deplibs_check_method in
8232 "file_magic "*)
8233 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8234 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8235 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8236 $EGREP "$file_magic_regex" > /dev/null; then
8237 :
8238 else
8239 cat <<_LT_EOF 1>&2
8241 *** Warning: the command libtool uses to detect shared libraries,
8242 *** $file_magic_cmd, produces output that libtool cannot recognize.
8243 *** The result is that libtool may fail to recognize shared libraries
8244 *** as such. This will affect the creation of libtool libraries that
8245 *** depend on shared libraries, but programs linked with such libtool
8246 *** libraries will work regardless of this problem. Nevertheless, you
8247 *** may want to report the problem to your system manager and/or to
8248 *** bug-libtool@gnu.org
8250 _LT_EOF
8251 fi ;;
8252 esac
8253 fi
8254 break
8255 fi
8256 done
8257 IFS="$lt_save_ifs"
8258 MAGIC_CMD="$lt_save_MAGIC_CMD"
8259 ;;
8260 esac
8261 fi
8263 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8264 if test -n "$MAGIC_CMD"; then
8265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8266 $as_echo "$MAGIC_CMD" >&6; }
8267 else
8268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8269 $as_echo "no" >&6; }
8270 fi
8276 if test -z "$lt_cv_path_MAGIC_CMD"; then
8277 if test -n "$ac_tool_prefix"; then
8278 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for file" >&5
8279 $as_echo_n "checking for file... " >&6; }
8280 if ${lt_cv_path_MAGIC_CMD+:} false; then :
8281 $as_echo_n "(cached) " >&6
8282 else
8283 case $MAGIC_CMD in
8284 [\\/*] | ?:[\\/]*)
8285 lt_cv_path_MAGIC_CMD="$MAGIC_CMD" # Let the user override the test with a path.
8286 ;;
8287 *)
8288 lt_save_MAGIC_CMD="$MAGIC_CMD"
8289 lt_save_ifs="$IFS"; IFS=$PATH_SEPARATOR
8290 ac_dummy="/usr/bin$PATH_SEPARATOR$PATH"
8291 for ac_dir in $ac_dummy; do
8292 IFS="$lt_save_ifs"
8293 test -z "$ac_dir" && ac_dir=.
8294 if test -f $ac_dir/file; then
8295 lt_cv_path_MAGIC_CMD="$ac_dir/file"
8296 if test -n "$file_magic_test_file"; then
8297 case $deplibs_check_method in
8298 "file_magic "*)
8299 file_magic_regex=`expr "$deplibs_check_method" : "file_magic \(.*\)"`
8300 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8301 if eval $file_magic_cmd \$file_magic_test_file 2> /dev/null |
8302 $EGREP "$file_magic_regex" > /dev/null; then
8303 :
8304 else
8305 cat <<_LT_EOF 1>&2
8307 *** Warning: the command libtool uses to detect shared libraries,
8308 *** $file_magic_cmd, produces output that libtool cannot recognize.
8309 *** The result is that libtool may fail to recognize shared libraries
8310 *** as such. This will affect the creation of libtool libraries that
8311 *** depend on shared libraries, but programs linked with such libtool
8312 *** libraries will work regardless of this problem. Nevertheless, you
8313 *** may want to report the problem to your system manager and/or to
8314 *** bug-libtool@gnu.org
8316 _LT_EOF
8317 fi ;;
8318 esac
8319 fi
8320 break
8321 fi
8322 done
8323 IFS="$lt_save_ifs"
8324 MAGIC_CMD="$lt_save_MAGIC_CMD"
8325 ;;
8326 esac
8327 fi
8329 MAGIC_CMD="$lt_cv_path_MAGIC_CMD"
8330 if test -n "$MAGIC_CMD"; then
8331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAGIC_CMD" >&5
8332 $as_echo "$MAGIC_CMD" >&6; }
8333 else
8334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8335 $as_echo "no" >&6; }
8336 fi
8339 else
8340 MAGIC_CMD=:
8341 fi
8342 fi
8344 fi
8345 ;;
8346 esac
8348 # Use C for the default configuration in the libtool script
8350 lt_save_CC="$CC"
8351 ac_ext=c
8352 ac_cpp='$CPP $CPPFLAGS'
8353 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
8354 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
8355 ac_compiler_gnu=$ac_cv_c_compiler_gnu
8358 # Source file extension for C test sources.
8359 ac_ext=c
8361 # Object file extension for compiled C test sources.
8362 objext=o
8363 objext=$objext
8365 # Code to be used in simple compile tests
8366 lt_simple_compile_test_code="int some_variable = 0;"
8368 # Code to be used in simple link tests
8369 lt_simple_link_test_code='int main(){return(0);}'
8377 # If no C compiler was specified, use CC.
8378 LTCC=${LTCC-"$CC"}
8380 # If no C compiler flags were specified, use CFLAGS.
8381 LTCFLAGS=${LTCFLAGS-"$CFLAGS"}
8383 # Allow CC to be a program name with arguments.
8384 compiler=$CC
8386 # Save the default compiler, since it gets overwritten when the other
8387 # tags are being tested, and _LT_TAGVAR(compiler, []) is a NOP.
8388 compiler_DEFAULT=$CC
8390 # save warnings/boilerplate of simple test code
8391 ac_outfile=conftest.$ac_objext
8392 echo "$lt_simple_compile_test_code" >conftest.$ac_ext
8393 eval "$ac_compile" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8394 _lt_compiler_boilerplate=`cat conftest.err`
8395 $RM conftest*
8397 ac_outfile=conftest.$ac_objext
8398 echo "$lt_simple_link_test_code" >conftest.$ac_ext
8399 eval "$ac_link" 2>&1 >/dev/null | $SED '/^$/d; /^ *+/d' >conftest.err
8400 _lt_linker_boilerplate=`cat conftest.err`
8401 $RM -r conftest*
8404 if test -n "$compiler"; then
8406 lt_prog_compiler_no_builtin_flag=
8408 if test "$GCC" = yes; then
8409 case $cc_basename in
8410 nvcc*)
8411 lt_prog_compiler_no_builtin_flag=' -Xcompiler -fno-builtin' ;;
8412 *)
8413 lt_prog_compiler_no_builtin_flag=' -fno-builtin' ;;
8414 esac
8416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -fno-rtti -fno-exceptions" >&5
8417 $as_echo_n "checking if $compiler supports -fno-rtti -fno-exceptions... " >&6; }
8418 if ${lt_cv_prog_compiler_rtti_exceptions+:} false; then :
8419 $as_echo_n "(cached) " >&6
8420 else
8421 lt_cv_prog_compiler_rtti_exceptions=no
8422 ac_outfile=conftest.$ac_objext
8423 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8424 lt_compiler_flag="-fno-rtti -fno-exceptions"
8425 # Insert the option either (1) after the last *FLAGS variable, or
8426 # (2) before a word containing "conftest.", or (3) at the end.
8427 # Note that $ac_compile itself does not contain backslashes and begins
8428 # with a dollar sign (not a hyphen), so the echo should work correctly.
8429 # The option is referenced via a variable to avoid confusing sed.
8430 lt_compile=`echo "$ac_compile" | $SED \
8431 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8432 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8433 -e 's:$: $lt_compiler_flag:'`
8434 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8435 (eval "$lt_compile" 2>conftest.err)
8436 ac_status=$?
8437 cat conftest.err >&5
8438 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8439 if (exit $ac_status) && test -s "$ac_outfile"; then
8440 # The compiler can only warn and ignore the option if not recognized
8441 # So say no if there are warnings other than the usual output.
8442 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8443 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8444 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8445 lt_cv_prog_compiler_rtti_exceptions=yes
8446 fi
8447 fi
8448 $RM conftest*
8450 fi
8451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_rtti_exceptions" >&5
8452 $as_echo "$lt_cv_prog_compiler_rtti_exceptions" >&6; }
8454 if test x"$lt_cv_prog_compiler_rtti_exceptions" = xyes; then
8455 lt_prog_compiler_no_builtin_flag="$lt_prog_compiler_no_builtin_flag -fno-rtti -fno-exceptions"
8456 else
8457 :
8458 fi
8460 fi
8467 lt_prog_compiler_wl=
8468 lt_prog_compiler_pic=
8469 lt_prog_compiler_static=
8472 if test "$GCC" = yes; then
8473 lt_prog_compiler_wl='-Wl,'
8474 lt_prog_compiler_static='-static'
8476 case $host_os in
8477 aix*)
8478 # All AIX code is PIC.
8479 if test "$host_cpu" = ia64; then
8480 # AIX 5 now supports IA64 processor
8481 lt_prog_compiler_static='-Bstatic'
8482 fi
8483 ;;
8485 amigaos*)
8486 case $host_cpu in
8487 powerpc)
8488 # see comment about AmigaOS4 .so support
8489 lt_prog_compiler_pic='-fPIC'
8490 ;;
8491 m68k)
8492 # FIXME: we need at least 68020 code to build shared libraries, but
8493 # adding the `-m68020' flag to GCC prevents building anything better,
8494 # like `-m68040'.
8495 lt_prog_compiler_pic='-m68020 -resident32 -malways-restore-a4'
8496 ;;
8497 esac
8498 ;;
8500 beos* | irix5* | irix6* | nonstopux* | osf3* | osf4* | osf5*)
8501 # PIC is the default for these OSes.
8502 ;;
8504 mingw* | cygwin* | pw32* | os2* | cegcc*)
8505 # This hack is so that the source file can tell whether it is being
8506 # built for inclusion in a dll (and should export symbols for example).
8507 # Although the cygwin gcc ignores -fPIC, still need this for old-style
8508 # (--disable-auto-import) libraries
8509 lt_prog_compiler_pic='-DDLL_EXPORT'
8510 ;;
8512 darwin* | rhapsody*)
8513 # PIC is the default on this platform
8514 # Common symbols not allowed in MH_DYLIB files
8515 lt_prog_compiler_pic='-fno-common'
8516 ;;
8518 haiku*)
8519 # PIC is the default for Haiku.
8520 # The "-static" flag exists, but is broken.
8521 lt_prog_compiler_static=
8522 ;;
8524 hpux*)
8525 # PIC is the default for 64-bit PA HP-UX, but not for 32-bit
8526 # PA HP-UX. On IA64 HP-UX, PIC is the default but the pic flag
8527 # sets the default TLS model and affects inlining.
8528 case $host_cpu in
8529 hppa*64*)
8530 # +Z the default
8531 ;;
8532 *)
8533 lt_prog_compiler_pic='-fPIC'
8534 ;;
8535 esac
8536 ;;
8538 interix[3-9]*)
8539 # Interix 3.x gcc -fpic/-fPIC options generate broken code.
8540 # Instead, we relocate shared libraries at runtime.
8541 ;;
8543 msdosdjgpp*)
8544 # Just because we use GCC doesn't mean we suddenly get shared libraries
8545 # on systems that don't support them.
8546 lt_prog_compiler_can_build_shared=no
8547 enable_shared=no
8548 ;;
8550 *nto* | *qnx*)
8551 # QNX uses GNU C++, but need to define -shared option too, otherwise
8552 # it will coredump.
8553 lt_prog_compiler_pic='-fPIC -shared'
8554 ;;
8556 sysv4*MP*)
8557 if test -d /usr/nec; then
8558 lt_prog_compiler_pic=-Kconform_pic
8559 fi
8560 ;;
8562 *)
8563 lt_prog_compiler_pic='-fPIC'
8564 ;;
8565 esac
8567 case $cc_basename in
8568 nvcc*) # Cuda Compiler Driver 2.2
8569 lt_prog_compiler_wl='-Xlinker '
8570 if test -n "$lt_prog_compiler_pic"; then
8571 lt_prog_compiler_pic="-Xcompiler $lt_prog_compiler_pic"
8572 fi
8573 ;;
8574 esac
8575 else
8576 # PORTME Check for flag to pass linker flags through the system compiler.
8577 case $host_os in
8578 aix*)
8579 lt_prog_compiler_wl='-Wl,'
8580 if test "$host_cpu" = ia64; then
8581 # AIX 5 now supports IA64 processor
8582 lt_prog_compiler_static='-Bstatic'
8583 else
8584 lt_prog_compiler_static='-bnso -bI:/lib/syscalls.exp'
8585 fi
8586 ;;
8588 mingw* | cygwin* | pw32* | os2* | cegcc*)
8589 # This hack is so that the source file can tell whether it is being
8590 # built for inclusion in a dll (and should export symbols for example).
8591 lt_prog_compiler_pic='-DDLL_EXPORT'
8592 ;;
8594 hpux9* | hpux10* | hpux11*)
8595 lt_prog_compiler_wl='-Wl,'
8596 # PIC is the default for IA64 HP-UX and 64-bit HP-UX, but
8597 # not for PA HP-UX.
8598 case $host_cpu in
8599 hppa*64*|ia64*)
8600 # +Z the default
8601 ;;
8602 *)
8603 lt_prog_compiler_pic='+Z'
8604 ;;
8605 esac
8606 # Is there a better lt_prog_compiler_static that works with the bundled CC?
8607 lt_prog_compiler_static='${wl}-a ${wl}archive'
8608 ;;
8610 irix5* | irix6* | nonstopux*)
8611 lt_prog_compiler_wl='-Wl,'
8612 # PIC (with -KPIC) is the default.
8613 lt_prog_compiler_static='-non_shared'
8614 ;;
8616 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
8617 case $cc_basename in
8618 # old Intel for x86_64 which still supported -KPIC.
8619 ecc*)
8620 lt_prog_compiler_wl='-Wl,'
8621 lt_prog_compiler_pic='-KPIC'
8622 lt_prog_compiler_static='-static'
8623 ;;
8624 # icc used to be incompatible with GCC.
8625 # ICC 10 doesn't accept -KPIC any more.
8626 icc* | ifort*)
8627 lt_prog_compiler_wl='-Wl,'
8628 lt_prog_compiler_pic='-fPIC'
8629 lt_prog_compiler_static='-static'
8630 ;;
8631 # Lahey Fortran 8.1.
8632 lf95*)
8633 lt_prog_compiler_wl='-Wl,'
8634 lt_prog_compiler_pic='--shared'
8635 lt_prog_compiler_static='--static'
8636 ;;
8637 nagfor*)
8638 # NAG Fortran compiler
8639 lt_prog_compiler_wl='-Wl,-Wl,,'
8640 lt_prog_compiler_pic='-PIC'
8641 lt_prog_compiler_static='-Bstatic'
8642 ;;
8643 pgcc* | pgf77* | pgf90* | pgf95* | pgfortran*)
8644 # Portland Group compilers (*not* the Pentium gcc compiler,
8645 # which looks to be a dead project)
8646 lt_prog_compiler_wl='-Wl,'
8647 lt_prog_compiler_pic='-fpic'
8648 lt_prog_compiler_static='-Bstatic'
8649 ;;
8650 ccc*)
8651 lt_prog_compiler_wl='-Wl,'
8652 # All Alpha code is PIC.
8653 lt_prog_compiler_static='-non_shared'
8654 ;;
8655 xl* | bgxl* | bgf* | mpixl*)
8656 # IBM XL C 8.0/Fortran 10.1, 11.1 on PPC and BlueGene
8657 lt_prog_compiler_wl='-Wl,'
8658 lt_prog_compiler_pic='-qpic'
8659 lt_prog_compiler_static='-qstaticlink'
8660 ;;
8661 *)
8662 case `$CC -V 2>&1 | sed 5q` in
8663 *Sun\ Ceres\ Fortran* | *Sun*Fortran*\ [1-7].* | *Sun*Fortran*\ 8.[0-3]*)
8664 # Sun Fortran 8.3 passes all unrecognized flags to the linker
8665 lt_prog_compiler_pic='-KPIC'
8666 lt_prog_compiler_static='-Bstatic'
8667 lt_prog_compiler_wl=''
8668 ;;
8669 *Sun\ F* | *Sun*Fortran*)
8670 lt_prog_compiler_pic='-KPIC'
8671 lt_prog_compiler_static='-Bstatic'
8672 lt_prog_compiler_wl='-Qoption ld '
8673 ;;
8674 *Sun\ C*)
8675 # Sun C 5.9
8676 lt_prog_compiler_pic='-KPIC'
8677 lt_prog_compiler_static='-Bstatic'
8678 lt_prog_compiler_wl='-Wl,'
8679 ;;
8680 *Intel*\ [CF]*Compiler*)
8681 lt_prog_compiler_wl='-Wl,'
8682 lt_prog_compiler_pic='-fPIC'
8683 lt_prog_compiler_static='-static'
8684 ;;
8685 *Portland\ Group*)
8686 lt_prog_compiler_wl='-Wl,'
8687 lt_prog_compiler_pic='-fpic'
8688 lt_prog_compiler_static='-Bstatic'
8689 ;;
8690 esac
8691 ;;
8692 esac
8693 ;;
8695 newsos6)
8696 lt_prog_compiler_pic='-KPIC'
8697 lt_prog_compiler_static='-Bstatic'
8698 ;;
8700 *nto* | *qnx*)
8701 # QNX uses GNU C++, but need to define -shared option too, otherwise
8702 # it will coredump.
8703 lt_prog_compiler_pic='-fPIC -shared'
8704 ;;
8706 osf3* | osf4* | osf5*)
8707 lt_prog_compiler_wl='-Wl,'
8708 # All OSF/1 code is PIC.
8709 lt_prog_compiler_static='-non_shared'
8710 ;;
8712 rdos*)
8713 lt_prog_compiler_static='-non_shared'
8714 ;;
8716 solaris*)
8717 lt_prog_compiler_pic='-KPIC'
8718 lt_prog_compiler_static='-Bstatic'
8719 case $cc_basename in
8720 f77* | f90* | f95* | sunf77* | sunf90* | sunf95*)
8721 lt_prog_compiler_wl='-Qoption ld ';;
8722 *)
8723 lt_prog_compiler_wl='-Wl,';;
8724 esac
8725 ;;
8727 sunos4*)
8728 lt_prog_compiler_wl='-Qoption ld '
8729 lt_prog_compiler_pic='-PIC'
8730 lt_prog_compiler_static='-Bstatic'
8731 ;;
8733 sysv4 | sysv4.2uw2* | sysv4.3*)
8734 lt_prog_compiler_wl='-Wl,'
8735 lt_prog_compiler_pic='-KPIC'
8736 lt_prog_compiler_static='-Bstatic'
8737 ;;
8739 sysv4*MP*)
8740 if test -d /usr/nec ;then
8741 lt_prog_compiler_pic='-Kconform_pic'
8742 lt_prog_compiler_static='-Bstatic'
8743 fi
8744 ;;
8746 sysv5* | unixware* | sco3.2v5* | sco5v6* | OpenUNIX*)
8747 lt_prog_compiler_wl='-Wl,'
8748 lt_prog_compiler_pic='-KPIC'
8749 lt_prog_compiler_static='-Bstatic'
8750 ;;
8752 unicos*)
8753 lt_prog_compiler_wl='-Wl,'
8754 lt_prog_compiler_can_build_shared=no
8755 ;;
8757 uts4*)
8758 lt_prog_compiler_pic='-pic'
8759 lt_prog_compiler_static='-Bstatic'
8760 ;;
8762 *)
8763 lt_prog_compiler_can_build_shared=no
8764 ;;
8765 esac
8766 fi
8768 case $host_os in
8769 # For platforms which do not support PIC, -DPIC is meaningless:
8770 *djgpp*)
8771 lt_prog_compiler_pic=
8772 ;;
8773 *)
8774 lt_prog_compiler_pic="$lt_prog_compiler_pic -DPIC"
8775 ;;
8776 esac
8778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $compiler option to produce PIC" >&5
8779 $as_echo_n "checking for $compiler option to produce PIC... " >&6; }
8780 if ${lt_cv_prog_compiler_pic+:} false; then :
8781 $as_echo_n "(cached) " >&6
8782 else
8783 lt_cv_prog_compiler_pic=$lt_prog_compiler_pic
8784 fi
8785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic" >&5
8786 $as_echo "$lt_cv_prog_compiler_pic" >&6; }
8787 lt_prog_compiler_pic=$lt_cv_prog_compiler_pic
8789 #
8790 # Check to make sure the PIC flag actually works.
8791 #
8792 if test -n "$lt_prog_compiler_pic"; then
8793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler PIC flag $lt_prog_compiler_pic works" >&5
8794 $as_echo_n "checking if $compiler PIC flag $lt_prog_compiler_pic works... " >&6; }
8795 if ${lt_cv_prog_compiler_pic_works+:} false; then :
8796 $as_echo_n "(cached) " >&6
8797 else
8798 lt_cv_prog_compiler_pic_works=no
8799 ac_outfile=conftest.$ac_objext
8800 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8801 lt_compiler_flag="$lt_prog_compiler_pic -DPIC"
8802 # Insert the option either (1) after the last *FLAGS variable, or
8803 # (2) before a word containing "conftest.", or (3) at the end.
8804 # Note that $ac_compile itself does not contain backslashes and begins
8805 # with a dollar sign (not a hyphen), so the echo should work correctly.
8806 # The option is referenced via a variable to avoid confusing sed.
8807 lt_compile=`echo "$ac_compile" | $SED \
8808 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8809 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8810 -e 's:$: $lt_compiler_flag:'`
8811 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8812 (eval "$lt_compile" 2>conftest.err)
8813 ac_status=$?
8814 cat conftest.err >&5
8815 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8816 if (exit $ac_status) && test -s "$ac_outfile"; then
8817 # The compiler can only warn and ignore the option if not recognized
8818 # So say no if there are warnings other than the usual output.
8819 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' >conftest.exp
8820 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8821 if test ! -s conftest.er2 || diff conftest.exp conftest.er2 >/dev/null; then
8822 lt_cv_prog_compiler_pic_works=yes
8823 fi
8824 fi
8825 $RM conftest*
8827 fi
8828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_pic_works" >&5
8829 $as_echo "$lt_cv_prog_compiler_pic_works" >&6; }
8831 if test x"$lt_cv_prog_compiler_pic_works" = xyes; then
8832 case $lt_prog_compiler_pic in
8833 "" | " "*) ;;
8834 *) lt_prog_compiler_pic=" $lt_prog_compiler_pic" ;;
8835 esac
8836 else
8837 lt_prog_compiler_pic=
8838 lt_prog_compiler_can_build_shared=no
8839 fi
8841 fi
8853 #
8854 # Check to make sure the static flag actually works.
8855 #
8856 wl=$lt_prog_compiler_wl eval lt_tmp_static_flag=\"$lt_prog_compiler_static\"
8857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler static flag $lt_tmp_static_flag works" >&5
8858 $as_echo_n "checking if $compiler static flag $lt_tmp_static_flag works... " >&6; }
8859 if ${lt_cv_prog_compiler_static_works+:} false; then :
8860 $as_echo_n "(cached) " >&6
8861 else
8862 lt_cv_prog_compiler_static_works=no
8863 save_LDFLAGS="$LDFLAGS"
8864 LDFLAGS="$LDFLAGS $lt_tmp_static_flag"
8865 echo "$lt_simple_link_test_code" > conftest.$ac_ext
8866 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
8867 # The linker can only warn and ignore the option if not recognized
8868 # So say no if there are warnings
8869 if test -s conftest.err; then
8870 # Append any errors to the config.log.
8871 cat conftest.err 1>&5
8872 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
8873 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
8874 if diff conftest.exp conftest.er2 >/dev/null; then
8875 lt_cv_prog_compiler_static_works=yes
8876 fi
8877 else
8878 lt_cv_prog_compiler_static_works=yes
8879 fi
8880 fi
8881 $RM -r conftest*
8882 LDFLAGS="$save_LDFLAGS"
8884 fi
8885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_static_works" >&5
8886 $as_echo "$lt_cv_prog_compiler_static_works" >&6; }
8888 if test x"$lt_cv_prog_compiler_static_works" = xyes; then
8889 :
8890 else
8891 lt_prog_compiler_static=
8892 fi
8900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8901 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8902 if ${lt_cv_prog_compiler_c_o+:} false; then :
8903 $as_echo_n "(cached) " >&6
8904 else
8905 lt_cv_prog_compiler_c_o=no
8906 $RM -r conftest 2>/dev/null
8907 mkdir conftest
8908 cd conftest
8909 mkdir out
8910 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8912 lt_compiler_flag="-o out/conftest2.$ac_objext"
8913 # Insert the option either (1) after the last *FLAGS variable, or
8914 # (2) before a word containing "conftest.", or (3) at the end.
8915 # Note that $ac_compile itself does not contain backslashes and begins
8916 # with a dollar sign (not a hyphen), so the echo should work correctly.
8917 lt_compile=`echo "$ac_compile" | $SED \
8918 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8919 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8920 -e 's:$: $lt_compiler_flag:'`
8921 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8922 (eval "$lt_compile" 2>out/conftest.err)
8923 ac_status=$?
8924 cat out/conftest.err >&5
8925 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8926 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8927 then
8928 # The compiler can only warn and ignore the option if not recognized
8929 # So say no if there are warnings
8930 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8931 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8932 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8933 lt_cv_prog_compiler_c_o=yes
8934 fi
8935 fi
8936 chmod u+w . 2>&5
8937 $RM conftest*
8938 # SGI C++ compiler will create directory out/ii_files/ for
8939 # template instantiation
8940 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8941 $RM out/* && rmdir out
8942 cd ..
8943 $RM -r conftest
8944 $RM conftest*
8946 fi
8947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
8948 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
8955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $compiler supports -c -o file.$ac_objext" >&5
8956 $as_echo_n "checking if $compiler supports -c -o file.$ac_objext... " >&6; }
8957 if ${lt_cv_prog_compiler_c_o+:} false; then :
8958 $as_echo_n "(cached) " >&6
8959 else
8960 lt_cv_prog_compiler_c_o=no
8961 $RM -r conftest 2>/dev/null
8962 mkdir conftest
8963 cd conftest
8964 mkdir out
8965 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
8967 lt_compiler_flag="-o out/conftest2.$ac_objext"
8968 # Insert the option either (1) after the last *FLAGS variable, or
8969 # (2) before a word containing "conftest.", or (3) at the end.
8970 # Note that $ac_compile itself does not contain backslashes and begins
8971 # with a dollar sign (not a hyphen), so the echo should work correctly.
8972 lt_compile=`echo "$ac_compile" | $SED \
8973 -e 's:.*FLAGS}\{0,1\} :&$lt_compiler_flag :; t' \
8974 -e 's: [^ ]*conftest\.: $lt_compiler_flag&:; t' \
8975 -e 's:$: $lt_compiler_flag:'`
8976 (eval echo "\"\$as_me:$LINENO: $lt_compile\"" >&5)
8977 (eval "$lt_compile" 2>out/conftest.err)
8978 ac_status=$?
8979 cat out/conftest.err >&5
8980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8981 if (exit $ac_status) && test -s out/conftest2.$ac_objext
8982 then
8983 # The compiler can only warn and ignore the option if not recognized
8984 # So say no if there are warnings
8985 $ECHO "$_lt_compiler_boilerplate" | $SED '/^$/d' > out/conftest.exp
8986 $SED '/^$/d; /^ *+/d' out/conftest.err >out/conftest.er2
8987 if test ! -s out/conftest.er2 || diff out/conftest.exp out/conftest.er2 >/dev/null; then
8988 lt_cv_prog_compiler_c_o=yes
8989 fi
8990 fi
8991 chmod u+w . 2>&5
8992 $RM conftest*
8993 # SGI C++ compiler will create directory out/ii_files/ for
8994 # template instantiation
8995 test -d out/ii_files && $RM out/ii_files/* && rmdir out/ii_files
8996 $RM out/* && rmdir out
8997 cd ..
8998 $RM -r conftest
8999 $RM conftest*
9001 fi
9002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler_c_o" >&5
9003 $as_echo "$lt_cv_prog_compiler_c_o" >&6; }
9008 hard_links="nottested"
9009 if test "$lt_cv_prog_compiler_c_o" = no && test "$need_locks" != no; then
9010 # do not overwrite the value of need_locks provided by the user
9011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if we can lock with hard links" >&5
9012 $as_echo_n "checking if we can lock with hard links... " >&6; }
9013 hard_links=yes
9014 $RM conftest*
9015 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9016 touch conftest.a
9017 ln conftest.a conftest.b 2>&5 || hard_links=no
9018 ln conftest.a conftest.b 2>/dev/null && hard_links=no
9019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hard_links" >&5
9020 $as_echo "$hard_links" >&6; }
9021 if test "$hard_links" = no; then
9022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&5
9023 $as_echo "$as_me: WARNING: \`$CC' does not support \`-c -o', so \`make -j' may be unsafe" >&2;}
9024 need_locks=warn
9025 fi
9026 else
9027 need_locks=no
9028 fi
9035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $compiler linker ($LD) supports shared libraries" >&5
9036 $as_echo_n "checking whether the $compiler linker ($LD) supports shared libraries... " >&6; }
9038 runpath_var=
9039 allow_undefined_flag=
9040 always_export_symbols=no
9041 archive_cmds=
9042 archive_expsym_cmds=
9043 compiler_needs_object=no
9044 enable_shared_with_static_runtimes=no
9045 export_dynamic_flag_spec=
9046 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED '\''s/.* //'\'' | sort | uniq > $export_symbols'
9047 hardcode_automatic=no
9048 hardcode_direct=no
9049 hardcode_direct_absolute=no
9050 hardcode_libdir_flag_spec=
9051 hardcode_libdir_separator=
9052 hardcode_minus_L=no
9053 hardcode_shlibpath_var=unsupported
9054 inherit_rpath=no
9055 link_all_deplibs=unknown
9056 module_cmds=
9057 module_expsym_cmds=
9058 old_archive_from_new_cmds=
9059 old_archive_from_expsyms_cmds=
9060 thread_safe_flag_spec=
9061 whole_archive_flag_spec=
9062 # include_expsyms should be a list of space-separated symbols to be *always*
9063 # included in the symbol list
9064 include_expsyms=
9065 # exclude_expsyms can be an extended regexp of symbols to exclude
9066 # it will be wrapped by ` (' and `)$', so one must not match beginning or
9067 # end of line. Example: `a|bc|.*d.*' will exclude the symbols `a' and `bc',
9068 # as well as any symbol that contains `d'.
9069 exclude_expsyms='_GLOBAL_OFFSET_TABLE_|_GLOBAL__F[ID]_.*'
9070 # Although _GLOBAL_OFFSET_TABLE_ is a valid symbol C name, most a.out
9071 # platforms (ab)use it in PIC code, but their linkers get confused if
9072 # the symbol is explicitly referenced. Since portable code cannot
9073 # rely on this symbol name, it's probably fine to never include it in
9074 # preloaded symbol tables.
9075 # Exclude shared library initialization/finalization symbols.
9076 extract_expsyms_cmds=
9078 case $host_os in
9079 cygwin* | mingw* | pw32* | cegcc*)
9080 # FIXME: the MSVC++ port hasn't been tested in a loooong time
9081 # When not using gcc, we currently assume that we are using
9082 # Microsoft Visual C++.
9083 if test "$GCC" != yes; then
9084 with_gnu_ld=no
9085 fi
9086 ;;
9087 interix*)
9088 # we just hope/assume this is gcc and not c89 (= MSVC++)
9089 with_gnu_ld=yes
9090 ;;
9091 openbsd*)
9092 with_gnu_ld=no
9093 ;;
9094 linux* | k*bsd*-gnu | gnu*)
9095 link_all_deplibs=no
9096 ;;
9097 esac
9099 ld_shlibs=yes
9101 # On some targets, GNU ld is compatible enough with the native linker
9102 # that we're better off using the native interface for both.
9103 lt_use_gnu_ld_interface=no
9104 if test "$with_gnu_ld" = yes; then
9105 case $host_os in
9106 aix*)
9107 # The AIX port of GNU ld has always aspired to compatibility
9108 # with the native linker. However, as the warning in the GNU ld
9109 # block says, versions before 2.19.5* couldn't really create working
9110 # shared libraries, regardless of the interface used.
9111 case `$LD -v 2>&1` in
9112 *\ \(GNU\ Binutils\)\ 2.19.5*) ;;
9113 *\ \(GNU\ Binutils\)\ 2.[2-9]*) ;;
9114 *\ \(GNU\ Binutils\)\ [3-9]*) ;;
9115 *)
9116 lt_use_gnu_ld_interface=yes
9117 ;;
9118 esac
9119 ;;
9120 *)
9121 lt_use_gnu_ld_interface=yes
9122 ;;
9123 esac
9124 fi
9126 if test "$lt_use_gnu_ld_interface" = yes; then
9127 # If archive_cmds runs LD, not CC, wlarc should be empty
9128 wlarc='${wl}'
9130 # Set some defaults for GNU ld with shared library support. These
9131 # are reset later if shared libraries are not supported. Putting them
9132 # here allows them to be overridden if necessary.
9133 runpath_var=LD_RUN_PATH
9134 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9135 export_dynamic_flag_spec='${wl}--export-dynamic'
9136 # ancient GNU ld didn't support --whole-archive et. al.
9137 if $LD --help 2>&1 | $GREP 'no-whole-archive' > /dev/null; then
9138 whole_archive_flag_spec="$wlarc"'--whole-archive$convenience '"$wlarc"'--no-whole-archive'
9139 else
9140 whole_archive_flag_spec=
9141 fi
9142 supports_anon_versioning=no
9143 case `$LD -v 2>&1` in
9144 *GNU\ gold*) supports_anon_versioning=yes ;;
9145 *\ [01].* | *\ 2.[0-9].* | *\ 2.10.*) ;; # catch versions < 2.11
9146 *\ 2.11.93.0.2\ *) supports_anon_versioning=yes ;; # RH7.3 ...
9147 *\ 2.11.92.0.12\ *) supports_anon_versioning=yes ;; # Mandrake 8.2 ...
9148 *\ 2.11.*) ;; # other 2.11 versions
9149 *) supports_anon_versioning=yes ;;
9150 esac
9152 # See if GNU ld supports shared libraries.
9153 case $host_os in
9154 aix[3-9]*)
9155 # On AIX/PPC, the GNU linker is very broken
9156 if test "$host_cpu" != ia64; then
9157 ld_shlibs=no
9158 cat <<_LT_EOF 1>&2
9160 *** Warning: the GNU linker, at least up to release 2.19, is reported
9161 *** to be unable to reliably create shared libraries on AIX.
9162 *** Therefore, libtool is disabling shared libraries support. If you
9163 *** really care for shared libraries, you may want to install binutils
9164 *** 2.20 or above, or modify your PATH so that a non-GNU linker is found.
9165 *** You will then need to restart the configuration process.
9167 _LT_EOF
9168 fi
9169 ;;
9171 amigaos*)
9172 case $host_cpu in
9173 powerpc)
9174 # see comment about AmigaOS4 .so support
9175 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9176 archive_expsym_cmds=''
9177 ;;
9178 m68k)
9179 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
9180 hardcode_libdir_flag_spec='-L$libdir'
9181 hardcode_minus_L=yes
9182 ;;
9183 esac
9184 ;;
9186 beos*)
9187 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9188 allow_undefined_flag=unsupported
9189 # Joseph Beckenbach <jrb3@best.com> says some releases of gcc
9190 # support --undefined. This deserves some investigation. FIXME
9191 archive_cmds='$CC -nostart $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9192 else
9193 ld_shlibs=no
9194 fi
9195 ;;
9197 cygwin* | mingw* | pw32* | cegcc*)
9198 # _LT_TAGVAR(hardcode_libdir_flag_spec, ) is actually meaningless,
9199 # as there is no search path for DLLs.
9200 hardcode_libdir_flag_spec='-L$libdir'
9201 export_dynamic_flag_spec='${wl}--export-all-symbols'
9202 allow_undefined_flag=unsupported
9203 always_export_symbols=no
9204 enable_shared_with_static_runtimes=yes
9205 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1 DATA/;s/^.*[ ]__nm__\([^ ]*\)[ ][^ ]*/\1 DATA/;/^I[ ]/d;/^[AITW][ ]/s/.* //'\'' | sort | uniq > $export_symbols'
9206 exclude_expsyms='[_]+GLOBAL_OFFSET_TABLE_|[_]+GLOBAL__[FID]_.*|[_]+head_[A-Za-z0-9_]+_dll|[A-Za-z0-9_]+_dll_iname'
9208 if $LD --help 2>&1 | $GREP 'auto-import' > /dev/null; then
9209 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9210 # If the export-symbols file already is a .def file (1st line
9211 # is EXPORTS), use it as is; otherwise, prepend...
9212 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9213 cp $export_symbols $output_objdir/$soname.def;
9214 else
9215 echo EXPORTS > $output_objdir/$soname.def;
9216 cat $export_symbols >> $output_objdir/$soname.def;
9217 fi~
9218 $CC -shared $output_objdir/$soname.def $libobjs $deplibs $compiler_flags -o $output_objdir/$soname ${wl}--enable-auto-image-base -Xlinker --out-implib -Xlinker $lib'
9219 else
9220 ld_shlibs=no
9221 fi
9222 ;;
9224 haiku*)
9225 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9226 link_all_deplibs=yes
9227 ;;
9229 interix[3-9]*)
9230 hardcode_direct=no
9231 hardcode_shlibpath_var=no
9232 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9233 export_dynamic_flag_spec='${wl}-E'
9234 # Hack: On Interix 3.x, we cannot compile PIC because of a broken gcc.
9235 # Instead, shared libraries are loaded at an image base (0x10000000 by
9236 # default) and relocated if they conflict, which is a slow very memory
9237 # consuming and fragmenting process. To avoid this, we pick a random,
9238 # 256 KiB-aligned image base between 0x50000000 and 0x6FFC0000 at link
9239 # time. Moving up from 0x10000000 also allows more sbrk(2) space.
9240 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9241 archive_expsym_cmds='sed "s,^,_," $export_symbols >$output_objdir/$soname.expsym~$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-h,$soname ${wl}--retain-symbols-file,$output_objdir/$soname.expsym ${wl}--image-base,`expr ${RANDOM-$$} % 4096 / 2 \* 262144 + 1342177280` -o $lib'
9242 ;;
9244 gnu* | linux* | tpf* | k*bsd*-gnu | kopensolaris*-gnu)
9245 tmp_diet=no
9246 if test "$host_os" = linux-dietlibc; then
9247 case $cc_basename in
9248 diet\ *) tmp_diet=yes;; # linux-dietlibc with static linking (!diet-dyn)
9249 esac
9250 fi
9251 if $LD --help 2>&1 | $EGREP ': supported targets:.* elf' > /dev/null \
9252 && test "$tmp_diet" = no
9253 then
9254 tmp_addflag=' $pic_flag'
9255 tmp_sharedflag='-shared'
9256 case $cc_basename,$host_cpu in
9257 pgcc*) # Portland Group C compiler
9258 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9259 tmp_addflag=' $pic_flag'
9260 ;;
9261 pgf77* | pgf90* | pgf95* | pgfortran*)
9262 # Portland Group f77 and f90 compilers
9263 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9264 tmp_addflag=' $pic_flag -Mnomain' ;;
9265 ecc*,ia64* | icc*,ia64*) # Intel C compiler on ia64
9266 tmp_addflag=' -i_dynamic' ;;
9267 efc*,ia64* | ifort*,ia64*) # Intel Fortran compiler on ia64
9268 tmp_addflag=' -i_dynamic -nofor_main' ;;
9269 ifc* | ifort*) # Intel Fortran compiler
9270 tmp_addflag=' -nofor_main' ;;
9271 lf95*) # Lahey Fortran 8.1
9272 whole_archive_flag_spec=
9273 tmp_sharedflag='--shared' ;;
9274 xl[cC]* | bgxl[cC]* | mpixl[cC]*) # IBM XL C 8.0 on PPC (deal with xlf below)
9275 tmp_sharedflag='-qmkshrobj'
9276 tmp_addflag= ;;
9277 nvcc*) # Cuda Compiler Driver 2.2
9278 whole_archive_flag_spec='${wl}--whole-archive`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9279 compiler_needs_object=yes
9280 ;;
9281 esac
9282 case `$CC -V 2>&1 | sed 5q` in
9283 *Sun\ C*) # Sun C 5.9
9284 whole_archive_flag_spec='${wl}--whole-archive`new_convenience=; for conv in $convenience\"\"; do test -z \"$conv\" || new_convenience=\"$new_convenience,$conv\"; done; func_echo_all \"$new_convenience\"` ${wl}--no-whole-archive'
9285 compiler_needs_object=yes
9286 tmp_sharedflag='-G' ;;
9287 *Sun\ F*) # Sun Fortran 8.3
9288 tmp_sharedflag='-G' ;;
9289 esac
9290 archive_cmds='$CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9292 if test "x$supports_anon_versioning" = xyes; then
9293 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9294 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9295 echo "local: *; };" >> $output_objdir/$libname.ver~
9296 $CC '"$tmp_sharedflag""$tmp_addflag"' $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-version-script ${wl}$output_objdir/$libname.ver -o $lib'
9297 fi
9299 case $cc_basename in
9300 xlf* | bgf* | bgxlf* | mpixlf*)
9301 # IBM XL Fortran 10.1 on PPC cannot create shared libs itself
9302 whole_archive_flag_spec='--whole-archive$convenience --no-whole-archive'
9303 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9304 archive_cmds='$LD -shared $libobjs $deplibs $linker_flags -soname $soname -o $lib'
9305 if test "x$supports_anon_versioning" = xyes; then
9306 archive_expsym_cmds='echo "{ global:" > $output_objdir/$libname.ver~
9307 cat $export_symbols | sed -e "s/\(.*\)/\1;/" >> $output_objdir/$libname.ver~
9308 echo "local: *; };" >> $output_objdir/$libname.ver~
9309 $LD -shared $libobjs $deplibs $linker_flags -soname $soname -version-script $output_objdir/$libname.ver -o $lib'
9310 fi
9311 ;;
9312 esac
9313 else
9314 ld_shlibs=no
9315 fi
9316 ;;
9318 netbsd* | netbsdelf*-gnu)
9319 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9320 archive_cmds='$LD -Bshareable $libobjs $deplibs $linker_flags -o $lib'
9321 wlarc=
9322 else
9323 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9324 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9325 fi
9326 ;;
9328 solaris*)
9329 if $LD -v 2>&1 | $GREP 'BFD 2\.8' > /dev/null; then
9330 ld_shlibs=no
9331 cat <<_LT_EOF 1>&2
9333 *** Warning: The releases 2.8.* of the GNU linker cannot reliably
9334 *** create shared libraries on Solaris systems. Therefore, libtool
9335 *** is disabling shared libraries support. We urge you to upgrade GNU
9336 *** binutils to release 2.9.1 or newer. Another option is to modify
9337 *** your PATH or compiler configuration so that the native linker is
9338 *** used, and then restart.
9340 _LT_EOF
9341 elif $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9342 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9343 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9344 else
9345 ld_shlibs=no
9346 fi
9347 ;;
9349 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX*)
9350 case `$LD -v 2>&1` in
9351 *\ [01].* | *\ 2.[0-9].* | *\ 2.1[0-5].*)
9352 ld_shlibs=no
9353 cat <<_LT_EOF 1>&2
9355 *** Warning: Releases of the GNU linker prior to 2.16.91.0.3 can not
9356 *** reliably create shared libraries on SCO systems. Therefore, libtool
9357 *** is disabling shared libraries support. We urge you to upgrade GNU
9358 *** binutils to release 2.16.91.0.3 or newer. Another option is to modify
9359 *** your PATH or compiler configuration so that the native linker is
9360 *** used, and then restart.
9362 _LT_EOF
9363 ;;
9364 *)
9365 # For security reasons, it is highly recommended that you always
9366 # use absolute paths for naming shared libraries, and exclude the
9367 # DT_RUNPATH tag from executables and libraries. But doing so
9368 # requires that you compile everything twice, which is a pain.
9369 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9370 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9371 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9372 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9373 else
9374 ld_shlibs=no
9375 fi
9376 ;;
9377 esac
9378 ;;
9380 sunos4*)
9381 archive_cmds='$LD -assert pure-text -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9382 wlarc=
9383 hardcode_direct=yes
9384 hardcode_shlibpath_var=no
9385 ;;
9387 *)
9388 if $LD --help 2>&1 | $GREP ': supported targets:.* elf' > /dev/null; then
9389 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9390 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname ${wl}-retain-symbols-file $wl$export_symbols -o $lib'
9391 else
9392 ld_shlibs=no
9393 fi
9394 ;;
9395 esac
9397 if test "$ld_shlibs" = no; then
9398 runpath_var=
9399 hardcode_libdir_flag_spec=
9400 export_dynamic_flag_spec=
9401 whole_archive_flag_spec=
9402 fi
9403 else
9404 # PORTME fill in a description of your system's linker (not GNU ld)
9405 case $host_os in
9406 aix3*)
9407 allow_undefined_flag=unsupported
9408 always_export_symbols=yes
9409 archive_expsym_cmds='$LD -o $output_objdir/$soname $libobjs $deplibs $linker_flags -bE:$export_symbols -T512 -H512 -bM:SRE~$AR $AR_FLAGS $lib $output_objdir/$soname'
9410 # Note: this linker hardcodes the directories in LIBPATH if there
9411 # are no directories specified by -L.
9412 hardcode_minus_L=yes
9413 if test "$GCC" = yes && test -z "$lt_prog_compiler_static"; then
9414 # Neither direct hardcoding nor static linking is supported with a
9415 # broken collect2.
9416 hardcode_direct=unsupported
9417 fi
9418 ;;
9420 aix[4-9]*)
9421 if test "$host_cpu" = ia64; then
9422 # On IA64, the linker does run time linking by default, so we don't
9423 # have to do anything special.
9424 aix_use_runtimelinking=no
9425 exp_sym_flag='-Bexport'
9426 no_entry_flag=""
9427 else
9428 # If we're using GNU nm, then we don't want the "-C" option.
9429 # -C means demangle to AIX nm, but means don't demangle with GNU nm
9430 # Also, AIX nm treats weak defined symbols like other global
9431 # defined symbols, whereas GNU nm marks them as "W".
9432 if $NM -V 2>&1 | $GREP 'GNU' > /dev/null; then
9433 export_symbols_cmds='$NM -Bpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B") || (\$ 2 == "W")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9434 else
9435 export_symbols_cmds='$NM -BCpg $libobjs $convenience | awk '\''{ if (((\$ 2 == "T") || (\$ 2 == "D") || (\$ 2 == "B")) && (substr(\$ 3,1,1) != ".")) { print \$ 3 } }'\'' | sort -u > $export_symbols'
9436 fi
9437 aix_use_runtimelinking=no
9439 # Test if we are trying to use run time linking or normal
9440 # AIX style linking. If -brtl is somewhere in LDFLAGS, we
9441 # need to do runtime linking.
9442 case $host_os in aix4.[23]|aix4.[23].*|aix[5-9]*)
9443 for ld_flag in $LDFLAGS; do
9444 if (test $ld_flag = "-brtl" || test $ld_flag = "-Wl,-brtl"); then
9445 aix_use_runtimelinking=yes
9446 break
9447 fi
9448 done
9449 ;;
9450 esac
9452 exp_sym_flag='-bexport'
9453 no_entry_flag='-bnoentry'
9454 fi
9456 # When large executables or shared objects are built, AIX ld can
9457 # have problems creating the table of contents. If linking a library
9458 # or program results in "error TOC overflow" add -mminimal-toc to
9459 # CXXFLAGS/CFLAGS for g++/gcc. In the cases where that is not
9460 # enough to fix the problem, add -Wl,-bbigtoc to LDFLAGS.
9462 archive_cmds=''
9463 hardcode_direct=yes
9464 hardcode_direct_absolute=yes
9465 hardcode_libdir_separator=':'
9466 link_all_deplibs=yes
9467 file_list_spec='${wl}-f,'
9469 if test "$GCC" = yes; then
9470 case $host_os in aix4.[012]|aix4.[012].*)
9471 # We only want to do this on AIX 4.2 and lower, the check
9472 # below for broken collect2 doesn't work under 4.3+
9473 collect2name=`${CC} -print-prog-name=collect2`
9474 if test -f "$collect2name" &&
9475 strings "$collect2name" | $GREP resolve_lib_name >/dev/null
9476 then
9477 # We have reworked collect2
9478 :
9479 else
9480 # We have old collect2
9481 hardcode_direct=unsupported
9482 # It fails to find uninstalled libraries when the uninstalled
9483 # path is not listed in the libpath. Setting hardcode_minus_L
9484 # to unsupported forces relinking
9485 hardcode_minus_L=yes
9486 hardcode_libdir_flag_spec='-L$libdir'
9487 hardcode_libdir_separator=
9488 fi
9489 ;;
9490 esac
9491 shared_flag='-shared'
9492 if test "$aix_use_runtimelinking" = yes; then
9493 shared_flag="$shared_flag "'${wl}-G'
9494 fi
9495 link_all_deplibs=no
9496 else
9497 # not using gcc
9498 if test "$host_cpu" = ia64; then
9499 # VisualAge C++, Version 5.5 for AIX 5L for IA-64, Beta 3 Release
9500 # chokes on -Wl,-G. The following line is correct:
9501 shared_flag='-G'
9502 else
9503 if test "$aix_use_runtimelinking" = yes; then
9504 shared_flag='${wl}-G'
9505 else
9506 shared_flag='${wl}-bM:SRE'
9507 fi
9508 fi
9509 fi
9511 export_dynamic_flag_spec='${wl}-bexpall'
9512 # It seems that -bexpall does not export symbols beginning with
9513 # underscore (_), so it is better to generate a list of symbols to export.
9514 always_export_symbols=yes
9515 if test "$aix_use_runtimelinking" = yes; then
9516 # Warning - without using the other runtime loading flags (-brtl),
9517 # -berok will link without error, but may produce a broken library.
9518 allow_undefined_flag='-berok'
9519 # Determine the default libpath from the value encoded in an
9520 # empty executable.
9521 if test "${lt_cv_aix_libpath+set}" = set; then
9522 aix_libpath=$lt_cv_aix_libpath
9523 else
9524 if ${lt_cv_aix_libpath_+:} false; then :
9525 $as_echo_n "(cached) " >&6
9526 else
9527 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9528 /* end confdefs.h. */
9530 int
9531 main ()
9532 {
9534 ;
9535 return 0;
9536 }
9537 _ACEOF
9538 if ac_fn_c_try_link "$LINENO"; then :
9540 lt_aix_libpath_sed='
9541 /Import File Strings/,/^$/ {
9542 /^0/ {
9543 s/^0 *\([^ ]*\) *$/\1/
9544 p
9545 }
9546 }'
9547 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9548 # Check for a 64-bit object if we didn't find anything.
9549 if test -z "$lt_cv_aix_libpath_"; then
9550 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9551 fi
9552 fi
9553 rm -f core conftest.err conftest.$ac_objext \
9554 conftest$ac_exeext conftest.$ac_ext
9555 if test -z "$lt_cv_aix_libpath_"; then
9556 lt_cv_aix_libpath_="/usr/lib:/lib"
9557 fi
9559 fi
9561 aix_libpath=$lt_cv_aix_libpath_
9562 fi
9564 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9565 archive_expsym_cmds='$CC -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags `if test "x${allow_undefined_flag}" != "x"; then func_echo_all "${wl}${allow_undefined_flag}"; else :; fi` '"\${wl}$exp_sym_flag:\$export_symbols $shared_flag"
9566 else
9567 if test "$host_cpu" = ia64; then
9568 hardcode_libdir_flag_spec='${wl}-R $libdir:/usr/lib:/lib'
9569 allow_undefined_flag="-z nodefs"
9570 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs '"\${wl}$no_entry_flag"' $compiler_flags ${wl}${allow_undefined_flag} '"\${wl}$exp_sym_flag:\$export_symbols"
9571 else
9572 # Determine the default libpath from the value encoded in an
9573 # empty executable.
9574 if test "${lt_cv_aix_libpath+set}" = set; then
9575 aix_libpath=$lt_cv_aix_libpath
9576 else
9577 if ${lt_cv_aix_libpath_+:} false; then :
9578 $as_echo_n "(cached) " >&6
9579 else
9580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9581 /* end confdefs.h. */
9583 int
9584 main ()
9585 {
9587 ;
9588 return 0;
9589 }
9590 _ACEOF
9591 if ac_fn_c_try_link "$LINENO"; then :
9593 lt_aix_libpath_sed='
9594 /Import File Strings/,/^$/ {
9595 /^0/ {
9596 s/^0 *\([^ ]*\) *$/\1/
9597 p
9598 }
9599 }'
9600 lt_cv_aix_libpath_=`dump -H conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9601 # Check for a 64-bit object if we didn't find anything.
9602 if test -z "$lt_cv_aix_libpath_"; then
9603 lt_cv_aix_libpath_=`dump -HX64 conftest$ac_exeext 2>/dev/null | $SED -n -e "$lt_aix_libpath_sed"`
9604 fi
9605 fi
9606 rm -f core conftest.err conftest.$ac_objext \
9607 conftest$ac_exeext conftest.$ac_ext
9608 if test -z "$lt_cv_aix_libpath_"; then
9609 lt_cv_aix_libpath_="/usr/lib:/lib"
9610 fi
9612 fi
9614 aix_libpath=$lt_cv_aix_libpath_
9615 fi
9617 hardcode_libdir_flag_spec='${wl}-blibpath:$libdir:'"$aix_libpath"
9618 # Warning - without using the other run time loading flags,
9619 # -berok will link without error, but may produce a broken library.
9620 no_undefined_flag=' ${wl}-bernotok'
9621 allow_undefined_flag=' ${wl}-berok'
9622 if test "$with_gnu_ld" = yes; then
9623 # We only use this code for GNU lds that support --whole-archive.
9624 whole_archive_flag_spec='${wl}--whole-archive$convenience ${wl}--no-whole-archive'
9625 else
9626 # Exported symbols can be pulled into shared objects from archives
9627 whole_archive_flag_spec='$convenience'
9628 fi
9629 archive_cmds_need_lc=yes
9630 # This is similar to how AIX traditionally builds its shared libraries.
9631 archive_expsym_cmds="\$CC $shared_flag"' -o $output_objdir/$soname $libobjs $deplibs ${wl}-bnoentry $compiler_flags ${wl}-bE:$export_symbols${allow_undefined_flag}~$AR $AR_FLAGS $output_objdir/$libname$release.a $output_objdir/$soname'
9632 fi
9633 fi
9634 ;;
9636 amigaos*)
9637 case $host_cpu in
9638 powerpc)
9639 # see comment about AmigaOS4 .so support
9640 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags ${wl}-soname $wl$soname -o $lib'
9641 archive_expsym_cmds=''
9642 ;;
9643 m68k)
9644 archive_cmds='$RM $output_objdir/a2ixlibrary.data~$ECHO "#define NAME $libname" > $output_objdir/a2ixlibrary.data~$ECHO "#define LIBRARY_ID 1" >> $output_objdir/a2ixlibrary.data~$ECHO "#define VERSION $major" >> $output_objdir/a2ixlibrary.data~$ECHO "#define REVISION $revision" >> $output_objdir/a2ixlibrary.data~$AR $AR_FLAGS $lib $libobjs~$RANLIB $lib~(cd $output_objdir && a2ixlibrary -32)'
9645 hardcode_libdir_flag_spec='-L$libdir'
9646 hardcode_minus_L=yes
9647 ;;
9648 esac
9649 ;;
9651 bsdi[45]*)
9652 export_dynamic_flag_spec=-rdynamic
9653 ;;
9655 cygwin* | mingw* | pw32* | cegcc*)
9656 # When not using gcc, we currently assume that we are using
9657 # Microsoft Visual C++.
9658 # hardcode_libdir_flag_spec is actually meaningless, as there is
9659 # no search path for DLLs.
9660 case $cc_basename in
9661 cl*)
9662 # Native MSVC
9663 hardcode_libdir_flag_spec=' '
9664 allow_undefined_flag=unsupported
9665 always_export_symbols=yes
9666 file_list_spec='@'
9667 # Tell ltmain to make .lib files, not .a files.
9668 libext=lib
9669 # Tell ltmain to make .dll files, not .so files.
9670 shrext_cmds=".dll"
9671 # FIXME: Setting linknames here is a bad hack.
9672 archive_cmds='$CC -o $output_objdir/$soname $libobjs $compiler_flags $deplibs -Wl,-dll~linknames='
9673 archive_expsym_cmds='if test "x`$SED 1q $export_symbols`" = xEXPORTS; then
9674 sed -n -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' -e '1\\\!p' < $export_symbols > $output_objdir/$soname.exp;
9675 else
9676 sed -e 's/\\\\\\\(.*\\\\\\\)/-link\\\ -EXPORT:\\\\\\\1/' < $export_symbols > $output_objdir/$soname.exp;
9677 fi~
9678 $CC -o $tool_output_objdir$soname $libobjs $compiler_flags $deplibs "@$tool_output_objdir$soname.exp" -Wl,-DLL,-IMPLIB:"$tool_output_objdir$libname.dll.lib"~
9679 linknames='
9680 # The linker will not automatically build a static lib if we build a DLL.
9681 # _LT_TAGVAR(old_archive_from_new_cmds, )='true'
9682 enable_shared_with_static_runtimes=yes
9683 exclude_expsyms='_NULL_IMPORT_DESCRIPTOR|_IMPORT_DESCRIPTOR_.*'
9684 export_symbols_cmds='$NM $libobjs $convenience | $global_symbol_pipe | $SED -e '\''/^[BCDGRS][ ]/s/.*[ ]\([^ ]*\)/\1,DATA/'\'' | $SED -e '\''/^[AITW][ ]/s/.*[ ]//'\'' | sort | uniq > $export_symbols'
9685 # Don't use ranlib
9686 old_postinstall_cmds='chmod 644 $oldlib'
9687 postlink_cmds='lt_outputfile="@OUTPUT@"~
9688 lt_tool_outputfile="@TOOL_OUTPUT@"~
9689 case $lt_outputfile in
9690 *.exe|*.EXE) ;;
9691 *)
9692 lt_outputfile="$lt_outputfile.exe"
9693 lt_tool_outputfile="$lt_tool_outputfile.exe"
9694 ;;
9695 esac~
9696 if test "$MANIFEST_TOOL" != ":" && test -f "$lt_outputfile.manifest"; then
9697 $MANIFEST_TOOL -manifest "$lt_tool_outputfile.manifest" -outputresource:"$lt_tool_outputfile" || exit 1;
9698 $RM "$lt_outputfile.manifest";
9699 fi'
9700 ;;
9701 *)
9702 # Assume MSVC wrapper
9703 hardcode_libdir_flag_spec=' '
9704 allow_undefined_flag=unsupported
9705 # Tell ltmain to make .lib files, not .a files.
9706 libext=lib
9707 # Tell ltmain to make .dll files, not .so files.
9708 shrext_cmds=".dll"
9709 # FIXME: Setting linknames here is a bad hack.
9710 archive_cmds='$CC -o $lib $libobjs $compiler_flags `func_echo_all "$deplibs" | $SED '\''s/ -lc$//'\''` -link -dll~linknames='
9711 # The linker will automatically build a .lib file if we build a DLL.
9712 old_archive_from_new_cmds='true'
9713 # FIXME: Should let the user specify the lib program.
9714 old_archive_cmds='lib -OUT:$oldlib$oldobjs$old_deplibs'
9715 enable_shared_with_static_runtimes=yes
9716 ;;
9717 esac
9718 ;;
9720 darwin* | rhapsody*)
9723 archive_cmds_need_lc=no
9724 hardcode_direct=no
9725 hardcode_automatic=yes
9726 hardcode_shlibpath_var=unsupported
9727 if test "$lt_cv_ld_force_load" = "yes"; then
9728 whole_archive_flag_spec='`for conv in $convenience\"\"; do test -n \"$conv\" && new_convenience=\"$new_convenience ${wl}-force_load,$conv\"; done; func_echo_all \"$new_convenience\"`'
9730 else
9731 whole_archive_flag_spec=''
9732 fi
9733 link_all_deplibs=yes
9734 allow_undefined_flag="$_lt_dar_allow_undefined"
9735 case $cc_basename in
9736 ifort*) _lt_dar_can_shared=yes ;;
9737 *) _lt_dar_can_shared=$GCC ;;
9738 esac
9739 if test "$_lt_dar_can_shared" = "yes"; then
9740 output_verbose_link_cmd=func_echo_all
9741 archive_cmds="\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring $_lt_dar_single_mod${_lt_dsymutil}"
9742 module_cmds="\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dsymutil}"
9743 archive_expsym_cmds="sed 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC -dynamiclib \$allow_undefined_flag -o \$lib \$libobjs \$deplibs \$compiler_flags -install_name \$rpath/\$soname \$verstring ${_lt_dar_single_mod}${_lt_dar_export_syms}${_lt_dsymutil}"
9744 module_expsym_cmds="sed -e 's,^,_,' < \$export_symbols > \$output_objdir/\${libname}-symbols.expsym~\$CC \$allow_undefined_flag -o \$lib -bundle \$libobjs \$deplibs \$compiler_flags${_lt_dar_export_syms}${_lt_dsymutil}"
9746 else
9747 ld_shlibs=no
9748 fi
9750 ;;
9752 dgux*)
9753 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9754 hardcode_libdir_flag_spec='-L$libdir'
9755 hardcode_shlibpath_var=no
9756 ;;
9758 # FreeBSD 2.2.[012] allows us to include c++rt0.o to get C++ constructor
9759 # support. Future versions do this automatically, but an explicit c++rt0.o
9760 # does not break anything, and helps significantly (at the cost of a little
9761 # extra space).
9762 freebsd2.2*)
9763 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags /usr/lib/c++rt0.o'
9764 hardcode_libdir_flag_spec='-R$libdir'
9765 hardcode_direct=yes
9766 hardcode_shlibpath_var=no
9767 ;;
9769 # Unfortunately, older versions of FreeBSD 2 do not have this feature.
9770 freebsd2.*)
9771 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9772 hardcode_direct=yes
9773 hardcode_minus_L=yes
9774 hardcode_shlibpath_var=no
9775 ;;
9777 # FreeBSD 3 and greater uses gcc -shared to do shared libraries.
9778 freebsd* | dragonfly*)
9779 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9780 hardcode_libdir_flag_spec='-R$libdir'
9781 hardcode_direct=yes
9782 hardcode_shlibpath_var=no
9783 ;;
9785 hpux9*)
9786 if test "$GCC" = yes; then
9787 archive_cmds='$RM $output_objdir/$soname~$CC -shared $pic_flag ${wl}+b ${wl}$install_libdir -o $output_objdir/$soname $libobjs $deplibs $compiler_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9788 else
9789 archive_cmds='$RM $output_objdir/$soname~$LD -b +b $install_libdir -o $output_objdir/$soname $libobjs $deplibs $linker_flags~test $output_objdir/$soname = $lib || mv $output_objdir/$soname $lib'
9790 fi
9791 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9792 hardcode_libdir_separator=:
9793 hardcode_direct=yes
9795 # hardcode_minus_L: Not really in the search PATH,
9796 # but as the default location of the library.
9797 hardcode_minus_L=yes
9798 export_dynamic_flag_spec='${wl}-E'
9799 ;;
9801 hpux10*)
9802 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9803 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9804 else
9805 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9806 fi
9807 if test "$with_gnu_ld" = no; then
9808 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9809 hardcode_libdir_separator=:
9810 hardcode_direct=yes
9811 hardcode_direct_absolute=yes
9812 export_dynamic_flag_spec='${wl}-E'
9813 # hardcode_minus_L: Not really in the search PATH,
9814 # but as the default location of the library.
9815 hardcode_minus_L=yes
9816 fi
9817 ;;
9819 hpux11*)
9820 if test "$GCC" = yes && test "$with_gnu_ld" = no; then
9821 case $host_cpu in
9822 hppa*64*)
9823 archive_cmds='$CC -shared ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9824 ;;
9825 ia64*)
9826 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9827 ;;
9828 *)
9829 archive_cmds='$CC -shared $pic_flag ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9830 ;;
9831 esac
9832 else
9833 case $host_cpu in
9834 hppa*64*)
9835 archive_cmds='$CC -b ${wl}+h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
9836 ;;
9837 ia64*)
9838 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+nodefaultrpath -o $lib $libobjs $deplibs $compiler_flags'
9839 ;;
9840 *)
9842 # Older versions of the 11.00 compiler do not understand -b yet
9843 # (HP92453-01 A.11.01.20 doesn't, HP92453-01 B.11.X.35175-35176.GP does)
9844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if $CC understands -b" >&5
9845 $as_echo_n "checking if $CC understands -b... " >&6; }
9846 if ${lt_cv_prog_compiler__b+:} false; then :
9847 $as_echo_n "(cached) " >&6
9848 else
9849 lt_cv_prog_compiler__b=no
9850 save_LDFLAGS="$LDFLAGS"
9851 LDFLAGS="$LDFLAGS -b"
9852 echo "$lt_simple_link_test_code" > conftest.$ac_ext
9853 if (eval $ac_link 2>conftest.err) && test -s conftest$ac_exeext; then
9854 # The linker can only warn and ignore the option if not recognized
9855 # So say no if there are warnings
9856 if test -s conftest.err; then
9857 # Append any errors to the config.log.
9858 cat conftest.err 1>&5
9859 $ECHO "$_lt_linker_boilerplate" | $SED '/^$/d' > conftest.exp
9860 $SED '/^$/d; /^ *+/d' conftest.err >conftest.er2
9861 if diff conftest.exp conftest.er2 >/dev/null; then
9862 lt_cv_prog_compiler__b=yes
9863 fi
9864 else
9865 lt_cv_prog_compiler__b=yes
9866 fi
9867 fi
9868 $RM -r conftest*
9869 LDFLAGS="$save_LDFLAGS"
9871 fi
9872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_prog_compiler__b" >&5
9873 $as_echo "$lt_cv_prog_compiler__b" >&6; }
9875 if test x"$lt_cv_prog_compiler__b" = xyes; then
9876 archive_cmds='$CC -b ${wl}+h ${wl}$soname ${wl}+b ${wl}$install_libdir -o $lib $libobjs $deplibs $compiler_flags'
9877 else
9878 archive_cmds='$LD -b +h $soname +b $install_libdir -o $lib $libobjs $deplibs $linker_flags'
9879 fi
9881 ;;
9882 esac
9883 fi
9884 if test "$with_gnu_ld" = no; then
9885 hardcode_libdir_flag_spec='${wl}+b ${wl}$libdir'
9886 hardcode_libdir_separator=:
9888 case $host_cpu in
9889 hppa*64*|ia64*)
9890 hardcode_direct=no
9891 hardcode_shlibpath_var=no
9892 ;;
9893 *)
9894 hardcode_direct=yes
9895 hardcode_direct_absolute=yes
9896 export_dynamic_flag_spec='${wl}-E'
9898 # hardcode_minus_L: Not really in the search PATH,
9899 # but as the default location of the library.
9900 hardcode_minus_L=yes
9901 ;;
9902 esac
9903 fi
9904 ;;
9906 irix5* | irix6* | nonstopux*)
9907 if test "$GCC" = yes; then
9908 archive_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
9909 # Try to use the -exported_symbol ld option, if it does not
9910 # work, assume that -exports_file does not work either and
9911 # implicitly export all symbols.
9912 # This should be the same for all languages, so no per-tag cache variable.
9913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the $host_os linker accepts -exported_symbol" >&5
9914 $as_echo_n "checking whether the $host_os linker accepts -exported_symbol... " >&6; }
9915 if ${lt_cv_irix_exported_symbol+:} false; then :
9916 $as_echo_n "(cached) " >&6
9917 else
9918 save_LDFLAGS="$LDFLAGS"
9919 LDFLAGS="$LDFLAGS -shared ${wl}-exported_symbol ${wl}foo ${wl}-update_registry ${wl}/dev/null"
9920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9921 /* end confdefs.h. */
9922 int foo (void) { return 0; }
9923 _ACEOF
9924 if ac_fn_c_try_link "$LINENO"; then :
9925 lt_cv_irix_exported_symbol=yes
9926 else
9927 lt_cv_irix_exported_symbol=no
9928 fi
9929 rm -f core conftest.err conftest.$ac_objext \
9930 conftest$ac_exeext conftest.$ac_ext
9931 LDFLAGS="$save_LDFLAGS"
9932 fi
9933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_irix_exported_symbol" >&5
9934 $as_echo "$lt_cv_irix_exported_symbol" >&6; }
9935 if test "$lt_cv_irix_exported_symbol" = yes; then
9936 archive_expsym_cmds='$CC -shared $pic_flag $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations ${wl}-exports_file ${wl}$export_symbols -o $lib'
9937 fi
9938 else
9939 archive_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
9940 archive_expsym_cmds='$CC -shared $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -exports_file $export_symbols -o $lib'
9941 fi
9942 archive_cmds_need_lc='no'
9943 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9944 hardcode_libdir_separator=:
9945 inherit_rpath=yes
9946 link_all_deplibs=yes
9947 ;;
9949 netbsd* | netbsdelf*-gnu)
9950 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
9951 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags' # a.out
9952 else
9953 archive_cmds='$LD -shared -o $lib $libobjs $deplibs $linker_flags' # ELF
9954 fi
9955 hardcode_libdir_flag_spec='-R$libdir'
9956 hardcode_direct=yes
9957 hardcode_shlibpath_var=no
9958 ;;
9960 newsos6)
9961 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
9962 hardcode_direct=yes
9963 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
9964 hardcode_libdir_separator=:
9965 hardcode_shlibpath_var=no
9966 ;;
9968 *nto* | *qnx*)
9969 ;;
9971 openbsd*)
9972 if test -f /usr/libexec/ld.so; then
9973 hardcode_direct=yes
9974 hardcode_shlibpath_var=no
9975 hardcode_direct_absolute=yes
9976 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
9977 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9978 archive_expsym_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags ${wl}-retain-symbols-file,$export_symbols'
9979 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9980 export_dynamic_flag_spec='${wl}-E'
9981 else
9982 case $host_os in
9983 openbsd[01].* | openbsd2.[0-7] | openbsd2.[0-7].*)
9984 archive_cmds='$LD -Bshareable -o $lib $libobjs $deplibs $linker_flags'
9985 hardcode_libdir_flag_spec='-R$libdir'
9986 ;;
9987 *)
9988 archive_cmds='$CC -shared $pic_flag -o $lib $libobjs $deplibs $compiler_flags'
9989 hardcode_libdir_flag_spec='${wl}-rpath,$libdir'
9990 ;;
9991 esac
9992 fi
9993 else
9994 ld_shlibs=no
9995 fi
9996 ;;
9998 os2*)
9999 hardcode_libdir_flag_spec='-L$libdir'
10000 hardcode_minus_L=yes
10001 allow_undefined_flag=unsupported
10002 archive_cmds='$ECHO "LIBRARY $libname INITINSTANCE" > $output_objdir/$libname.def~$ECHO "DESCRIPTION \"$libname\"" >> $output_objdir/$libname.def~echo DATA >> $output_objdir/$libname.def~echo " SINGLE NONSHARED" >> $output_objdir/$libname.def~echo EXPORTS >> $output_objdir/$libname.def~emxexp $libobjs >> $output_objdir/$libname.def~$CC -Zdll -Zcrtdll -o $lib $libobjs $deplibs $compiler_flags $output_objdir/$libname.def'
10003 old_archive_from_new_cmds='emximp -o $output_objdir/$libname.a $output_objdir/$libname.def'
10004 ;;
10006 osf3*)
10007 if test "$GCC" = yes; then
10008 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10009 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10010 else
10011 allow_undefined_flag=' -expect_unresolved \*'
10012 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10013 fi
10014 archive_cmds_need_lc='no'
10015 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10016 hardcode_libdir_separator=:
10017 ;;
10019 osf4* | osf5*) # as osf3* with the addition of -msym flag
10020 if test "$GCC" = yes; then
10021 allow_undefined_flag=' ${wl}-expect_unresolved ${wl}\*'
10022 archive_cmds='$CC -shared${allow_undefined_flag} $pic_flag $libobjs $deplibs $compiler_flags ${wl}-msym ${wl}-soname ${wl}$soname `test -n "$verstring" && func_echo_all "${wl}-set_version ${wl}$verstring"` ${wl}-update_registry ${wl}${output_objdir}/so_locations -o $lib'
10023 hardcode_libdir_flag_spec='${wl}-rpath ${wl}$libdir'
10024 else
10025 allow_undefined_flag=' -expect_unresolved \*'
10026 archive_cmds='$CC -shared${allow_undefined_flag} $libobjs $deplibs $compiler_flags -msym -soname $soname `test -n "$verstring" && func_echo_all "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib'
10027 archive_expsym_cmds='for i in `cat $export_symbols`; do printf "%s %s\\n" -exported_symbol "\$i" >> $lib.exp; done; printf "%s\\n" "-hidden">> $lib.exp~
10028 $CC -shared${allow_undefined_flag} ${wl}-input ${wl}$lib.exp $compiler_flags $libobjs $deplibs -soname $soname `test -n "$verstring" && $ECHO "-set_version $verstring"` -update_registry ${output_objdir}/so_locations -o $lib~$RM $lib.exp'
10030 # Both c and cxx compiler support -rpath directly
10031 hardcode_libdir_flag_spec='-rpath $libdir'
10032 fi
10033 archive_cmds_need_lc='no'
10034 hardcode_libdir_separator=:
10035 ;;
10037 solaris*)
10038 no_undefined_flag=' -z defs'
10039 if test "$GCC" = yes; then
10040 wlarc='${wl}'
10041 archive_cmds='$CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags'
10042 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10043 $CC -shared $pic_flag ${wl}-z ${wl}text ${wl}-M ${wl}$lib.exp ${wl}-h ${wl}$soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10044 else
10045 case `$CC -V 2>&1` in
10046 *"Compilers 5.0"*)
10047 wlarc=''
10048 archive_cmds='$LD -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $linker_flags'
10049 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10050 $LD -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $linker_flags~$RM $lib.exp'
10051 ;;
10052 *)
10053 wlarc='${wl}'
10054 archive_cmds='$CC -G${allow_undefined_flag} -h $soname -o $lib $libobjs $deplibs $compiler_flags'
10055 archive_expsym_cmds='echo "{ global:" > $lib.exp~cat $export_symbols | $SED -e "s/\(.*\)/\1;/" >> $lib.exp~echo "local: *; };" >> $lib.exp~
10056 $CC -G${allow_undefined_flag} -M $lib.exp -h $soname -o $lib $libobjs $deplibs $compiler_flags~$RM $lib.exp'
10057 ;;
10058 esac
10059 fi
10060 hardcode_libdir_flag_spec='-R$libdir'
10061 hardcode_shlibpath_var=no
10062 case $host_os in
10063 solaris2.[0-5] | solaris2.[0-5].*) ;;
10064 *)
10065 # The compiler driver will combine and reorder linker options,
10066 # but understands `-z linker_flag'. GCC discards it without `$wl',
10067 # but is careful enough not to reorder.
10068 # Supported since Solaris 2.6 (maybe 2.5.1?)
10069 if test "$GCC" = yes; then
10070 whole_archive_flag_spec='${wl}-z ${wl}allextract$convenience ${wl}-z ${wl}defaultextract'
10071 else
10072 whole_archive_flag_spec='-z allextract$convenience -z defaultextract'
10073 fi
10074 ;;
10075 esac
10076 link_all_deplibs=yes
10077 ;;
10079 sunos4*)
10080 if test "x$host_vendor" = xsequent; then
10081 # Use $CC to link under sequent, because it throws in some extra .o
10082 # files that make .init and .fini sections work.
10083 archive_cmds='$CC -G ${wl}-h $soname -o $lib $libobjs $deplibs $compiler_flags'
10084 else
10085 archive_cmds='$LD -assert pure-text -Bstatic -o $lib $libobjs $deplibs $linker_flags'
10086 fi
10087 hardcode_libdir_flag_spec='-L$libdir'
10088 hardcode_direct=yes
10089 hardcode_minus_L=yes
10090 hardcode_shlibpath_var=no
10091 ;;
10093 sysv4)
10094 case $host_vendor in
10095 sni)
10096 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10097 hardcode_direct=yes # is this really true???
10098 ;;
10099 siemens)
10100 ## LD is ld it makes a PLAMLIB
10101 ## CC just makes a GrossModule.
10102 archive_cmds='$LD -G -o $lib $libobjs $deplibs $linker_flags'
10103 reload_cmds='$CC -r -o $output$reload_objs'
10104 hardcode_direct=no
10105 ;;
10106 motorola)
10107 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10108 hardcode_direct=no #Motorola manual says yes, but my tests say they lie
10109 ;;
10110 esac
10111 runpath_var='LD_RUN_PATH'
10112 hardcode_shlibpath_var=no
10113 ;;
10115 sysv4.3*)
10116 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10117 hardcode_shlibpath_var=no
10118 export_dynamic_flag_spec='-Bexport'
10119 ;;
10121 sysv4*MP*)
10122 if test -d /usr/nec; then
10123 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10124 hardcode_shlibpath_var=no
10125 runpath_var=LD_RUN_PATH
10126 hardcode_runpath_var=yes
10127 ld_shlibs=yes
10128 fi
10129 ;;
10131 sysv4*uw2* | sysv5OpenUNIX* | sysv5UnixWare7.[01].[10]* | unixware7* | sco3.2v5.0.[024]*)
10132 no_undefined_flag='${wl}-z,text'
10133 archive_cmds_need_lc=no
10134 hardcode_shlibpath_var=no
10135 runpath_var='LD_RUN_PATH'
10137 if test "$GCC" = yes; then
10138 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10139 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10140 else
10141 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10142 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10143 fi
10144 ;;
10146 sysv5* | sco3.2v5* | sco5v6*)
10147 # Note: We can NOT use -z defs as we might desire, because we do not
10148 # link with -lc, and that would cause any symbols used from libc to
10149 # always be unresolved, which means just about no library would
10150 # ever link correctly. If we're not using GNU ld we use -z text
10151 # though, which does catch some bad symbols but isn't as heavy-handed
10152 # as -z defs.
10153 no_undefined_flag='${wl}-z,text'
10154 allow_undefined_flag='${wl}-z,nodefs'
10155 archive_cmds_need_lc=no
10156 hardcode_shlibpath_var=no
10157 hardcode_libdir_flag_spec='${wl}-R,$libdir'
10158 hardcode_libdir_separator=':'
10159 link_all_deplibs=yes
10160 export_dynamic_flag_spec='${wl}-Bexport'
10161 runpath_var='LD_RUN_PATH'
10163 if test "$GCC" = yes; then
10164 archive_cmds='$CC -shared ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10165 archive_expsym_cmds='$CC -shared ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10166 else
10167 archive_cmds='$CC -G ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10168 archive_expsym_cmds='$CC -G ${wl}-Bexport:$export_symbols ${wl}-h,$soname -o $lib $libobjs $deplibs $compiler_flags'
10169 fi
10170 ;;
10172 uts4*)
10173 archive_cmds='$LD -G -h $soname -o $lib $libobjs $deplibs $linker_flags'
10174 hardcode_libdir_flag_spec='-L$libdir'
10175 hardcode_shlibpath_var=no
10176 ;;
10178 *)
10179 ld_shlibs=no
10180 ;;
10181 esac
10183 if test x$host_vendor = xsni; then
10184 case $host in
10185 sysv4 | sysv4.2uw2* | sysv4.3* | sysv5*)
10186 export_dynamic_flag_spec='${wl}-Blargedynsym'
10187 ;;
10188 esac
10189 fi
10190 fi
10192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ld_shlibs" >&5
10193 $as_echo "$ld_shlibs" >&6; }
10194 test "$ld_shlibs" = no && can_build_shared=no
10196 with_gnu_ld=$with_gnu_ld
10212 #
10213 # Do we need to explicitly link libc?
10214 #
10215 case "x$archive_cmds_need_lc" in
10216 x|xyes)
10217 # Assume -lc should be added
10218 archive_cmds_need_lc=yes
10220 if test "$enable_shared" = yes && test "$GCC" = yes; then
10221 case $archive_cmds in
10222 *'~'*)
10223 # FIXME: we may have to deal with multi-command sequences.
10224 ;;
10225 '$CC '*)
10226 # Test whether the compiler implicitly links with -lc since on some
10227 # systems, -lgcc has to come before -lc. If gcc already passes -lc
10228 # to ld, don't add -lc before -lgcc.
10229 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -lc should be explicitly linked in" >&5
10230 $as_echo_n "checking whether -lc should be explicitly linked in... " >&6; }
10231 if ${lt_cv_archive_cmds_need_lc+:} false; then :
10232 $as_echo_n "(cached) " >&6
10233 else
10234 $RM conftest*
10235 echo "$lt_simple_compile_test_code" > conftest.$ac_ext
10237 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
10238 (eval $ac_compile) 2>&5
10239 ac_status=$?
10240 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10241 test $ac_status = 0; } 2>conftest.err; then
10242 soname=conftest
10243 lib=conftest
10244 libobjs=conftest.$ac_objext
10245 deplibs=
10246 wl=$lt_prog_compiler_wl
10247 pic_flag=$lt_prog_compiler_pic
10248 compiler_flags=-v
10249 linker_flags=-v
10250 verstring=
10251 output_objdir=.
10252 libname=conftest
10253 lt_save_allow_undefined_flag=$allow_undefined_flag
10254 allow_undefined_flag=
10255 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1\""; } >&5
10256 (eval $archive_cmds 2\>\&1 \| $GREP \" -lc \" \>/dev/null 2\>\&1) 2>&5
10257 ac_status=$?
10258 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10259 test $ac_status = 0; }
10260 then
10261 lt_cv_archive_cmds_need_lc=no
10262 else
10263 lt_cv_archive_cmds_need_lc=yes
10264 fi
10265 allow_undefined_flag=$lt_save_allow_undefined_flag
10266 else
10267 cat conftest.err 1>&5
10268 fi
10269 $RM conftest*
10271 fi
10272 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_archive_cmds_need_lc" >&5
10273 $as_echo "$lt_cv_archive_cmds_need_lc" >&6; }
10274 archive_cmds_need_lc=$lt_cv_archive_cmds_need_lc
10275 ;;
10276 esac
10277 fi
10278 ;;
10279 esac
10432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dynamic linker characteristics" >&5
10433 $as_echo_n "checking dynamic linker characteristics... " >&6; }
10435 if test "$GCC" = yes; then
10436 case $host_os in
10437 darwin*) lt_awk_arg="/^libraries:/,/LR/" ;;
10438 *) lt_awk_arg="/^libraries:/" ;;
10439 esac
10440 case $host_os in
10441 mingw* | cegcc*) lt_sed_strip_eq="s,=\([A-Za-z]:\),\1,g" ;;
10442 *) lt_sed_strip_eq="s,=/,/,g" ;;
10443 esac
10444 lt_search_path_spec=`$CC -print-search-dirs | awk $lt_awk_arg | $SED -e "s/^libraries://" -e $lt_sed_strip_eq`
10445 case $lt_search_path_spec in
10446 *\;*)
10447 # if the path contains ";" then we assume it to be the separator
10448 # otherwise default to the standard path separator (i.e. ":") - it is
10449 # assumed that no part of a normal pathname contains ";" but that should
10450 # okay in the real world where ";" in dirpaths is itself problematic.
10451 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED 's/;/ /g'`
10452 ;;
10453 *)
10454 lt_search_path_spec=`$ECHO "$lt_search_path_spec" | $SED "s/$PATH_SEPARATOR/ /g"`
10455 ;;
10456 esac
10457 # Ok, now we have the path, separated by spaces, we can step through it
10458 # and add multilib dir if necessary.
10459 lt_tmp_lt_search_path_spec=
10460 lt_multi_os_dir=`$CC $CPPFLAGS $CFLAGS $LDFLAGS -print-multi-os-directory 2>/dev/null`
10461 for lt_sys_path in $lt_search_path_spec; do
10462 if test -d "$lt_sys_path/$lt_multi_os_dir"; then
10463 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path/$lt_multi_os_dir"
10464 else
10465 test -d "$lt_sys_path" && \
10466 lt_tmp_lt_search_path_spec="$lt_tmp_lt_search_path_spec $lt_sys_path"
10467 fi
10468 done
10469 lt_search_path_spec=`$ECHO "$lt_tmp_lt_search_path_spec" | awk '
10470 BEGIN {RS=" "; FS="/|\n";} {
10471 lt_foo="";
10472 lt_count=0;
10473 for (lt_i = NF; lt_i > 0; lt_i--) {
10474 if ($lt_i != "" && $lt_i != ".") {
10475 if ($lt_i == "..") {
10476 lt_count++;
10477 } else {
10478 if (lt_count == 0) {
10479 lt_foo="/" $lt_i lt_foo;
10480 } else {
10481 lt_count--;
10482 }
10483 }
10484 }
10485 }
10486 if (lt_foo != "") { lt_freq[lt_foo]++; }
10487 if (lt_freq[lt_foo] == 1) { print lt_foo; }
10488 }'`
10489 # AWK program above erroneously prepends '/' to C:/dos/paths
10490 # for these hosts.
10491 case $host_os in
10492 mingw* | cegcc*) lt_search_path_spec=`$ECHO "$lt_search_path_spec" |\
10493 $SED 's,/\([A-Za-z]:\),\1,g'` ;;
10494 esac
10495 sys_lib_search_path_spec=`$ECHO "$lt_search_path_spec" | $lt_NL2SP`
10496 else
10497 sys_lib_search_path_spec="/lib /usr/lib /usr/local/lib"
10498 fi
10499 library_names_spec=
10500 libname_spec='lib$name'
10501 soname_spec=
10502 shrext_cmds=".so"
10503 postinstall_cmds=
10504 postuninstall_cmds=
10505 finish_cmds=
10506 finish_eval=
10507 shlibpath_var=
10508 shlibpath_overrides_runpath=unknown
10509 version_type=none
10510 dynamic_linker="$host_os ld.so"
10511 sys_lib_dlsearch_path_spec="/lib /usr/lib"
10512 need_lib_prefix=unknown
10513 hardcode_into_libs=no
10515 # when you set need_version to no, make sure it does not cause -set_version
10516 # flags to be left without arguments
10517 need_version=unknown
10519 case $host_os in
10520 aix3*)
10521 version_type=linux # correct to gnu/linux during the next big refactor
10522 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname.a'
10523 shlibpath_var=LIBPATH
10525 # AIX 3 has no versioning support, so we append a major version to the name.
10526 soname_spec='${libname}${release}${shared_ext}$major'
10527 ;;
10529 aix[4-9]*)
10530 version_type=linux # correct to gnu/linux during the next big refactor
10531 need_lib_prefix=no
10532 need_version=no
10533 hardcode_into_libs=yes
10534 if test "$host_cpu" = ia64; then
10535 # AIX 5 supports IA64
10536 library_names_spec='${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext}$versuffix $libname${shared_ext}'
10537 shlibpath_var=LD_LIBRARY_PATH
10538 else
10539 # With GCC up to 2.95.x, collect2 would create an import file
10540 # for dependence libraries. The import file would start with
10541 # the line `#! .'. This would cause the generated library to
10542 # depend on `.', always an invalid library. This was fixed in
10543 # development snapshots of GCC prior to 3.0.
10544 case $host_os in
10545 aix4 | aix4.[01] | aix4.[01].*)
10546 if { echo '#if __GNUC__ > 2 || (__GNUC__ == 2 && __GNUC_MINOR__ >= 97)'
10547 echo ' yes '
10548 echo '#endif'; } | ${CC} -E - | $GREP yes > /dev/null; then
10549 :
10550 else
10551 can_build_shared=no
10552 fi
10553 ;;
10554 esac
10555 # AIX (on Power*) has no versioning support, so currently we can not hardcode correct
10556 # soname into executable. Probably we can add versioning support to
10557 # collect2, so additional links can be useful in future.
10558 if test "$aix_use_runtimelinking" = yes; then
10559 # If using run time linking (on AIX 4.2 or later) use lib<name>.so
10560 # instead of lib<name>.a to let people know that these are not
10561 # typical AIX shared libraries.
10562 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10563 else
10564 # We preserve .a as extension for shared libraries through AIX4.2
10565 # and later when we are not doing run time linking.
10566 library_names_spec='${libname}${release}.a $libname.a'
10567 soname_spec='${libname}${release}${shared_ext}$major'
10568 fi
10569 shlibpath_var=LIBPATH
10570 fi
10571 ;;
10573 amigaos*)
10574 case $host_cpu in
10575 powerpc)
10576 # Since July 2007 AmigaOS4 officially supports .so libraries.
10577 # When compiling the executable, add -use-dynld -Lsobjs: to the compileline.
10578 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10579 ;;
10580 m68k)
10581 library_names_spec='$libname.ixlibrary $libname.a'
10582 # Create ${libname}_ixlibrary.a entries in /sys/libs.
10583 finish_eval='for lib in `ls $libdir/*.ixlibrary 2>/dev/null`; do libname=`func_echo_all "$lib" | $SED '\''s%^.*/\([^/]*\)\.ixlibrary$%\1%'\''`; test $RM /sys/libs/${libname}_ixlibrary.a; $show "cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a"; cd /sys/libs && $LN_S $lib ${libname}_ixlibrary.a || exit 1; done'
10584 ;;
10585 esac
10586 ;;
10588 beos*)
10589 library_names_spec='${libname}${shared_ext}'
10590 dynamic_linker="$host_os ld.so"
10591 shlibpath_var=LIBRARY_PATH
10592 ;;
10594 bsdi[45]*)
10595 version_type=linux # correct to gnu/linux during the next big refactor
10596 need_version=no
10597 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10598 soname_spec='${libname}${release}${shared_ext}$major'
10599 finish_cmds='PATH="\$PATH:/sbin" ldconfig $libdir'
10600 shlibpath_var=LD_LIBRARY_PATH
10601 sys_lib_search_path_spec="/shlib /usr/lib /usr/X11/lib /usr/contrib/lib /lib /usr/local/lib"
10602 sys_lib_dlsearch_path_spec="/shlib /usr/lib /usr/local/lib"
10603 # the default ld.so.conf also contains /usr/contrib/lib and
10604 # /usr/X11R6/lib (/usr/X11 is a link to /usr/X11R6), but let us allow
10605 # libtool to hard-code these into programs
10606 ;;
10608 cygwin* | mingw* | pw32* | cegcc*)
10609 version_type=windows
10610 shrext_cmds=".dll"
10611 need_version=no
10612 need_lib_prefix=no
10614 case $GCC,$cc_basename in
10615 yes,*)
10616 # gcc
10617 library_names_spec='$libname.dll.a'
10618 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10619 postinstall_cmds='base_file=`basename \${file}`~
10620 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10621 dldir=$destdir/`dirname \$dlpath`~
10622 test -d \$dldir || mkdir -p \$dldir~
10623 $install_prog $dir/$dlname \$dldir/$dlname~
10624 chmod a+x \$dldir/$dlname~
10625 if test -n '\''$stripme'\'' && test -n '\''$striplib'\''; then
10626 eval '\''$striplib \$dldir/$dlname'\'' || exit \$?;
10627 fi'
10628 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10629 dlpath=$dir/\$dldll~
10630 $RM \$dlpath'
10631 shlibpath_overrides_runpath=yes
10633 case $host_os in
10634 cygwin*)
10635 # Cygwin DLLs use 'cyg' prefix rather than 'lib'
10636 soname_spec='`echo ${libname} | sed -e 's/^lib/cyg/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10638 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/lib/w32api"
10639 ;;
10640 mingw* | cegcc*)
10641 # MinGW DLLs use traditional 'lib' prefix
10642 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10643 ;;
10644 pw32*)
10645 # pw32 DLLs use 'pw' prefix rather than 'lib'
10646 library_names_spec='`echo ${libname} | sed -e 's/^lib/pw/'``echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10647 ;;
10648 esac
10649 dynamic_linker='Win32 ld.exe'
10650 ;;
10652 *,cl*)
10653 # Native MSVC
10654 libname_spec='$name'
10655 soname_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext}'
10656 library_names_spec='${libname}.dll.lib'
10658 case $build_os in
10659 mingw*)
10660 sys_lib_search_path_spec=
10661 lt_save_ifs=$IFS
10662 IFS=';'
10663 for lt_path in $LIB
10664 do
10665 IFS=$lt_save_ifs
10666 # Let DOS variable expansion print the short 8.3 style file name.
10667 lt_path=`cd "$lt_path" 2>/dev/null && cmd //C "for %i in (".") do @echo %~si"`
10668 sys_lib_search_path_spec="$sys_lib_search_path_spec $lt_path"
10669 done
10670 IFS=$lt_save_ifs
10671 # Convert to MSYS style.
10672 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | sed -e 's|\\\\|/|g' -e 's| \\([a-zA-Z]\\):| /\\1|g' -e 's|^ ||'`
10673 ;;
10674 cygwin*)
10675 # Convert to unix form, then to dos form, then back to unix form
10676 # but this time dos style (no spaces!) so that the unix form looks
10677 # like /cygdrive/c/PROGRA~1:/cygdr...
10678 sys_lib_search_path_spec=`cygpath --path --unix "$LIB"`
10679 sys_lib_search_path_spec=`cygpath --path --dos "$sys_lib_search_path_spec" 2>/dev/null`
10680 sys_lib_search_path_spec=`cygpath --path --unix "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10681 ;;
10682 *)
10683 sys_lib_search_path_spec="$LIB"
10684 if $ECHO "$sys_lib_search_path_spec" | $GREP ';[c-zC-Z]:/' >/dev/null; then
10685 # It is most probably a Windows format PATH.
10686 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e 's/;/ /g'`
10687 else
10688 sys_lib_search_path_spec=`$ECHO "$sys_lib_search_path_spec" | $SED -e "s/$PATH_SEPARATOR/ /g"`
10689 fi
10690 # FIXME: find the short name or the path components, as spaces are
10691 # common. (e.g. "Program Files" -> "PROGRA~1")
10692 ;;
10693 esac
10695 # DLL is installed to $(libdir)/../bin by postinstall_cmds
10696 postinstall_cmds='base_file=`basename \${file}`~
10697 dlpath=`$SHELL 2>&1 -c '\''. $dir/'\''\${base_file}'\''i; echo \$dlname'\''`~
10698 dldir=$destdir/`dirname \$dlpath`~
10699 test -d \$dldir || mkdir -p \$dldir~
10700 $install_prog $dir/$dlname \$dldir/$dlname'
10701 postuninstall_cmds='dldll=`$SHELL 2>&1 -c '\''. $file; echo \$dlname'\''`~
10702 dlpath=$dir/\$dldll~
10703 $RM \$dlpath'
10704 shlibpath_overrides_runpath=yes
10705 dynamic_linker='Win32 link.exe'
10706 ;;
10708 *)
10709 # Assume MSVC wrapper
10710 library_names_spec='${libname}`echo ${release} | $SED -e 's/[.]/-/g'`${versuffix}${shared_ext} $libname.lib'
10711 dynamic_linker='Win32 ld.exe'
10712 ;;
10713 esac
10714 # FIXME: first we should search . and the directory the executable is in
10715 shlibpath_var=PATH
10716 ;;
10718 darwin* | rhapsody*)
10719 dynamic_linker="$host_os dyld"
10720 version_type=darwin
10721 need_lib_prefix=no
10722 need_version=no
10723 library_names_spec='${libname}${release}${major}$shared_ext ${libname}$shared_ext'
10724 soname_spec='${libname}${release}${major}$shared_ext'
10725 shlibpath_overrides_runpath=yes
10726 shlibpath_var=DYLD_LIBRARY_PATH
10727 shrext_cmds='`test .$module = .yes && echo .so || echo .dylib`'
10729 sys_lib_search_path_spec="$sys_lib_search_path_spec /usr/local/lib"
10730 sys_lib_dlsearch_path_spec='/usr/local/lib /lib /usr/lib'
10731 ;;
10733 dgux*)
10734 version_type=linux # correct to gnu/linux during the next big refactor
10735 need_lib_prefix=no
10736 need_version=no
10737 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname$shared_ext'
10738 soname_spec='${libname}${release}${shared_ext}$major'
10739 shlibpath_var=LD_LIBRARY_PATH
10740 ;;
10742 freebsd* | dragonfly*)
10743 # DragonFly does not have aout. When/if they implement a new
10744 # versioning mechanism, adjust this.
10745 if test -x /usr/bin/objformat; then
10746 objformat=`/usr/bin/objformat`
10747 else
10748 case $host_os in
10749 freebsd[23].*) objformat=aout ;;
10750 *) objformat=elf ;;
10751 esac
10752 fi
10753 version_type=freebsd-$objformat
10754 case $version_type in
10755 freebsd-elf*)
10756 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
10757 need_version=no
10758 need_lib_prefix=no
10759 ;;
10760 freebsd-*)
10761 library_names_spec='${libname}${release}${shared_ext}$versuffix $libname${shared_ext}$versuffix'
10762 need_version=yes
10763 ;;
10764 esac
10765 shlibpath_var=LD_LIBRARY_PATH
10766 case $host_os in
10767 freebsd2.*)
10768 shlibpath_overrides_runpath=yes
10769 ;;
10770 freebsd3.[01]* | freebsdelf3.[01]*)
10771 shlibpath_overrides_runpath=yes
10772 hardcode_into_libs=yes
10773 ;;
10774 freebsd3.[2-9]* | freebsdelf3.[2-9]* | \
10775 freebsd4.[0-5] | freebsdelf4.[0-5] | freebsd4.1.1 | freebsdelf4.1.1)
10776 shlibpath_overrides_runpath=no
10777 hardcode_into_libs=yes
10778 ;;
10779 *) # from 4.6 on, and DragonFly
10780 shlibpath_overrides_runpath=yes
10781 hardcode_into_libs=yes
10782 ;;
10783 esac
10784 ;;
10786 haiku*)
10787 version_type=linux # correct to gnu/linux during the next big refactor
10788 need_lib_prefix=no
10789 need_version=no
10790 dynamic_linker="$host_os runtime_loader"
10791 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}${major} ${libname}${shared_ext}'
10792 soname_spec='${libname}${release}${shared_ext}$major'
10793 shlibpath_var=LIBRARY_PATH
10794 shlibpath_overrides_runpath=yes
10795 sys_lib_dlsearch_path_spec='/boot/home/config/lib /boot/common/lib /boot/system/lib'
10796 hardcode_into_libs=yes
10797 ;;
10799 hpux9* | hpux10* | hpux11*)
10800 # Give a soname corresponding to the major version so that dld.sl refuses to
10801 # link against other versions.
10802 version_type=sunos
10803 need_lib_prefix=no
10804 need_version=no
10805 case $host_cpu in
10806 ia64*)
10807 shrext_cmds='.so'
10808 hardcode_into_libs=yes
10809 dynamic_linker="$host_os dld.so"
10810 shlibpath_var=LD_LIBRARY_PATH
10811 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10812 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10813 soname_spec='${libname}${release}${shared_ext}$major'
10814 if test "X$HPUX_IA64_MODE" = X32; then
10815 sys_lib_search_path_spec="/usr/lib/hpux32 /usr/local/lib/hpux32 /usr/local/lib"
10816 else
10817 sys_lib_search_path_spec="/usr/lib/hpux64 /usr/local/lib/hpux64"
10818 fi
10819 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10820 ;;
10821 hppa*64*)
10822 shrext_cmds='.sl'
10823 hardcode_into_libs=yes
10824 dynamic_linker="$host_os dld.sl"
10825 shlibpath_var=LD_LIBRARY_PATH # How should we handle SHLIB_PATH
10826 shlibpath_overrides_runpath=yes # Unless +noenvvar is specified.
10827 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10828 soname_spec='${libname}${release}${shared_ext}$major'
10829 sys_lib_search_path_spec="/usr/lib/pa20_64 /usr/ccs/lib/pa20_64"
10830 sys_lib_dlsearch_path_spec=$sys_lib_search_path_spec
10831 ;;
10832 *)
10833 shrext_cmds='.sl'
10834 dynamic_linker="$host_os dld.sl"
10835 shlibpath_var=SHLIB_PATH
10836 shlibpath_overrides_runpath=no # +s is required to enable SHLIB_PATH
10837 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10838 soname_spec='${libname}${release}${shared_ext}$major'
10839 ;;
10840 esac
10841 # HP-UX runs *really* slowly unless shared libraries are mode 555, ...
10842 postinstall_cmds='chmod 555 $lib'
10843 # or fails outright, so override atomically:
10844 install_override_mode=555
10845 ;;
10847 interix[3-9]*)
10848 version_type=linux # correct to gnu/linux during the next big refactor
10849 need_lib_prefix=no
10850 need_version=no
10851 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10852 soname_spec='${libname}${release}${shared_ext}$major'
10853 dynamic_linker='Interix 3.x ld.so.1 (PE, like ELF)'
10854 shlibpath_var=LD_LIBRARY_PATH
10855 shlibpath_overrides_runpath=no
10856 hardcode_into_libs=yes
10857 ;;
10859 irix5* | irix6* | nonstopux*)
10860 case $host_os in
10861 nonstopux*) version_type=nonstopux ;;
10862 *)
10863 if test "$lt_cv_prog_gnu_ld" = yes; then
10864 version_type=linux # correct to gnu/linux during the next big refactor
10865 else
10866 version_type=irix
10867 fi ;;
10868 esac
10869 need_lib_prefix=no
10870 need_version=no
10871 soname_spec='${libname}${release}${shared_ext}$major'
10872 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${release}${shared_ext} $libname${shared_ext}'
10873 case $host_os in
10874 irix5* | nonstopux*)
10875 libsuff= shlibsuff=
10876 ;;
10877 *)
10878 case $LD in # libtool.m4 will add one of these switches to LD
10879 *-32|*"-32 "|*-melf32bsmip|*"-melf32bsmip ")
10880 libsuff= shlibsuff= libmagic=32-bit;;
10881 *-n32|*"-n32 "|*-melf32bmipn32|*"-melf32bmipn32 ")
10882 libsuff=32 shlibsuff=N32 libmagic=N32;;
10883 *-64|*"-64 "|*-melf64bmip|*"-melf64bmip ")
10884 libsuff=64 shlibsuff=64 libmagic=64-bit;;
10885 *) libsuff= shlibsuff= libmagic=never-match;;
10886 esac
10887 ;;
10888 esac
10889 shlibpath_var=LD_LIBRARY${shlibsuff}_PATH
10890 shlibpath_overrides_runpath=no
10891 sys_lib_search_path_spec="/usr/lib${libsuff} /lib${libsuff} /usr/local/lib${libsuff}"
10892 sys_lib_dlsearch_path_spec="/usr/lib${libsuff} /lib${libsuff}"
10893 hardcode_into_libs=yes
10894 ;;
10896 # No shared lib support for Linux oldld, aout, or coff.
10897 linux*oldld* | linux*aout* | linux*coff*)
10898 dynamic_linker=no
10899 ;;
10901 # This must be glibc/ELF.
10902 linux* | k*bsd*-gnu | kopensolaris*-gnu | gnu*)
10903 version_type=linux # correct to gnu/linux during the next big refactor
10904 need_lib_prefix=no
10905 need_version=no
10906 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10907 soname_spec='${libname}${release}${shared_ext}$major'
10908 finish_cmds='PATH="\$PATH:/sbin" ldconfig -n $libdir'
10909 shlibpath_var=LD_LIBRARY_PATH
10910 shlibpath_overrides_runpath=no
10912 # Some binutils ld are patched to set DT_RUNPATH
10913 if ${lt_cv_shlibpath_overrides_runpath+:} false; then :
10914 $as_echo_n "(cached) " >&6
10915 else
10916 lt_cv_shlibpath_overrides_runpath=no
10917 save_LDFLAGS=$LDFLAGS
10918 save_libdir=$libdir
10919 eval "libdir=/foo; wl=\"$lt_prog_compiler_wl\"; \
10920 LDFLAGS=\"\$LDFLAGS $hardcode_libdir_flag_spec\""
10921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10922 /* end confdefs.h. */
10924 int
10925 main ()
10926 {
10928 ;
10929 return 0;
10930 }
10931 _ACEOF
10932 if ac_fn_c_try_link "$LINENO"; then :
10933 if ($OBJDUMP -p conftest$ac_exeext) 2>/dev/null | grep "RUNPATH.*$libdir" >/dev/null; then :
10934 lt_cv_shlibpath_overrides_runpath=yes
10935 fi
10936 fi
10937 rm -f core conftest.err conftest.$ac_objext \
10938 conftest$ac_exeext conftest.$ac_ext
10939 LDFLAGS=$save_LDFLAGS
10940 libdir=$save_libdir
10942 fi
10944 shlibpath_overrides_runpath=$lt_cv_shlibpath_overrides_runpath
10946 # This implies no fast_install, which is unacceptable.
10947 # Some rework will be needed to allow for fast_install
10948 # before this can be enabled.
10949 hardcode_into_libs=yes
10951 # Append ld.so.conf contents to the search path
10952 if test -f /etc/ld.so.conf; then
10953 lt_ld_extra=`awk '/^include / { system(sprintf("cd /etc; cat %s 2>/dev/null", \$2)); skip = 1; } { if (!skip) print \$0; skip = 0; }' < /etc/ld.so.conf | $SED -e 's/#.*//;/^[ ]*hwcap[ ]/d;s/[:, ]/ /g;s/=[^=]*$//;s/=[^= ]* / /g;s/"//g;/^$/d' | tr '\n' ' '`
10954 sys_lib_dlsearch_path_spec="/lib /usr/lib $lt_ld_extra"
10955 fi
10957 # We used to test for /lib/ld.so.1 and disable shared libraries on
10958 # powerpc, because MkLinux only supported shared libraries with the
10959 # GNU dynamic linker. Since this was broken with cross compilers,
10960 # most powerpc-linux boxes support dynamic linking these days and
10961 # people can always --disable-shared, the test was removed, and we
10962 # assume the GNU/Linux dynamic linker is in use.
10963 dynamic_linker='GNU/Linux ld.so'
10964 ;;
10966 netbsdelf*-gnu)
10967 version_type=linux
10968 need_lib_prefix=no
10969 need_version=no
10970 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10971 soname_spec='${libname}${release}${shared_ext}$major'
10972 shlibpath_var=LD_LIBRARY_PATH
10973 shlibpath_overrides_runpath=no
10974 hardcode_into_libs=yes
10975 dynamic_linker='NetBSD ld.elf_so'
10976 ;;
10978 netbsd*)
10979 version_type=sunos
10980 need_lib_prefix=no
10981 need_version=no
10982 if echo __ELF__ | $CC -E - | $GREP __ELF__ >/dev/null; then
10983 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
10984 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
10985 dynamic_linker='NetBSD (a.out) ld.so'
10986 else
10987 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major ${libname}${shared_ext}'
10988 soname_spec='${libname}${release}${shared_ext}$major'
10989 dynamic_linker='NetBSD ld.elf_so'
10990 fi
10991 shlibpath_var=LD_LIBRARY_PATH
10992 shlibpath_overrides_runpath=yes
10993 hardcode_into_libs=yes
10994 ;;
10996 newsos6)
10997 version_type=linux # correct to gnu/linux during the next big refactor
10998 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
10999 shlibpath_var=LD_LIBRARY_PATH
11000 shlibpath_overrides_runpath=yes
11001 ;;
11003 *nto* | *qnx*)
11004 version_type=qnx
11005 need_lib_prefix=no
11006 need_version=no
11007 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11008 soname_spec='${libname}${release}${shared_ext}$major'
11009 shlibpath_var=LD_LIBRARY_PATH
11010 shlibpath_overrides_runpath=no
11011 hardcode_into_libs=yes
11012 dynamic_linker='ldqnx.so'
11013 ;;
11015 openbsd*)
11016 version_type=sunos
11017 sys_lib_dlsearch_path_spec="/usr/lib"
11018 need_lib_prefix=no
11019 # Some older versions of OpenBSD (3.3 at least) *do* need versioned libs.
11020 case $host_os in
11021 openbsd3.3 | openbsd3.3.*) need_version=yes ;;
11022 *) need_version=no ;;
11023 esac
11024 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11025 finish_cmds='PATH="\$PATH:/sbin" ldconfig -m $libdir'
11026 shlibpath_var=LD_LIBRARY_PATH
11027 if test -z "`echo __ELF__ | $CC -E - | $GREP __ELF__`" || test "$host_os-$host_cpu" = "openbsd2.8-powerpc"; then
11028 case $host_os in
11029 openbsd2.[89] | openbsd2.[89].*)
11030 shlibpath_overrides_runpath=no
11031 ;;
11032 *)
11033 shlibpath_overrides_runpath=yes
11034 ;;
11035 esac
11036 else
11037 shlibpath_overrides_runpath=yes
11038 fi
11039 ;;
11041 os2*)
11042 libname_spec='$name'
11043 shrext_cmds=".dll"
11044 need_lib_prefix=no
11045 library_names_spec='$libname${shared_ext} $libname.a'
11046 dynamic_linker='OS/2 ld.exe'
11047 shlibpath_var=LIBPATH
11048 ;;
11050 osf3* | osf4* | osf5*)
11051 version_type=osf
11052 need_lib_prefix=no
11053 need_version=no
11054 soname_spec='${libname}${release}${shared_ext}$major'
11055 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11056 shlibpath_var=LD_LIBRARY_PATH
11057 sys_lib_search_path_spec="/usr/shlib /usr/ccs/lib /usr/lib/cmplrs/cc /usr/lib /usr/local/lib /var/shlib"
11058 sys_lib_dlsearch_path_spec="$sys_lib_search_path_spec"
11059 ;;
11061 rdos*)
11062 dynamic_linker=no
11063 ;;
11065 solaris*)
11066 version_type=linux # correct to gnu/linux during the next big refactor
11067 need_lib_prefix=no
11068 need_version=no
11069 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11070 soname_spec='${libname}${release}${shared_ext}$major'
11071 shlibpath_var=LD_LIBRARY_PATH
11072 shlibpath_overrides_runpath=yes
11073 hardcode_into_libs=yes
11074 # ldd complains unless libraries are executable
11075 postinstall_cmds='chmod +x $lib'
11076 ;;
11078 sunos4*)
11079 version_type=sunos
11080 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${shared_ext}$versuffix'
11081 finish_cmds='PATH="\$PATH:/usr/etc" ldconfig $libdir'
11082 shlibpath_var=LD_LIBRARY_PATH
11083 shlibpath_overrides_runpath=yes
11084 if test "$with_gnu_ld" = yes; then
11085 need_lib_prefix=no
11086 fi
11087 need_version=yes
11088 ;;
11090 sysv4 | sysv4.3*)
11091 version_type=linux # correct to gnu/linux during the next big refactor
11092 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11093 soname_spec='${libname}${release}${shared_ext}$major'
11094 shlibpath_var=LD_LIBRARY_PATH
11095 case $host_vendor in
11096 sni)
11097 shlibpath_overrides_runpath=no
11098 need_lib_prefix=no
11099 runpath_var=LD_RUN_PATH
11100 ;;
11101 siemens)
11102 need_lib_prefix=no
11103 ;;
11104 motorola)
11105 need_lib_prefix=no
11106 need_version=no
11107 shlibpath_overrides_runpath=no
11108 sys_lib_search_path_spec='/lib /usr/lib /usr/ccs/lib'
11109 ;;
11110 esac
11111 ;;
11113 sysv4*MP*)
11114 if test -d /usr/nec ;then
11115 version_type=linux # correct to gnu/linux during the next big refactor
11116 library_names_spec='$libname${shared_ext}.$versuffix $libname${shared_ext}.$major $libname${shared_ext}'
11117 soname_spec='$libname${shared_ext}.$major'
11118 shlibpath_var=LD_LIBRARY_PATH
11119 fi
11120 ;;
11122 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
11123 version_type=freebsd-elf
11124 need_lib_prefix=no
11125 need_version=no
11126 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext} $libname${shared_ext}'
11127 soname_spec='${libname}${release}${shared_ext}$major'
11128 shlibpath_var=LD_LIBRARY_PATH
11129 shlibpath_overrides_runpath=yes
11130 hardcode_into_libs=yes
11131 if test "$with_gnu_ld" = yes; then
11132 sys_lib_search_path_spec='/usr/local/lib /usr/gnu/lib /usr/ccs/lib /usr/lib /lib'
11133 else
11134 sys_lib_search_path_spec='/usr/ccs/lib /usr/lib'
11135 case $host_os in
11136 sco3.2v5*)
11137 sys_lib_search_path_spec="$sys_lib_search_path_spec /lib"
11138 ;;
11139 esac
11140 fi
11141 sys_lib_dlsearch_path_spec='/usr/lib'
11142 ;;
11144 tpf*)
11145 # TPF is a cross-target only. Preferred cross-host = GNU/Linux.
11146 version_type=linux # correct to gnu/linux during the next big refactor
11147 need_lib_prefix=no
11148 need_version=no
11149 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11150 shlibpath_var=LD_LIBRARY_PATH
11151 shlibpath_overrides_runpath=no
11152 hardcode_into_libs=yes
11153 ;;
11155 uts4*)
11156 version_type=linux # correct to gnu/linux during the next big refactor
11157 library_names_spec='${libname}${release}${shared_ext}$versuffix ${libname}${release}${shared_ext}$major $libname${shared_ext}'
11158 soname_spec='${libname}${release}${shared_ext}$major'
11159 shlibpath_var=LD_LIBRARY_PATH
11160 ;;
11162 *)
11163 dynamic_linker=no
11164 ;;
11165 esac
11166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $dynamic_linker" >&5
11167 $as_echo "$dynamic_linker" >&6; }
11168 test "$dynamic_linker" = no && can_build_shared=no
11170 variables_saved_for_relink="PATH $shlibpath_var $runpath_var"
11171 if test "$GCC" = yes; then
11172 variables_saved_for_relink="$variables_saved_for_relink GCC_EXEC_PREFIX COMPILER_PATH LIBRARY_PATH"
11173 fi
11175 if test "${lt_cv_sys_lib_search_path_spec+set}" = set; then
11176 sys_lib_search_path_spec="$lt_cv_sys_lib_search_path_spec"
11177 fi
11178 if test "${lt_cv_sys_lib_dlsearch_path_spec+set}" = set; then
11179 sys_lib_dlsearch_path_spec="$lt_cv_sys_lib_dlsearch_path_spec"
11180 fi
11273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to hardcode library paths into programs" >&5
11274 $as_echo_n "checking how to hardcode library paths into programs... " >&6; }
11275 hardcode_action=
11276 if test -n "$hardcode_libdir_flag_spec" ||
11277 test -n "$runpath_var" ||
11278 test "X$hardcode_automatic" = "Xyes" ; then
11280 # We can hardcode non-existent directories.
11281 if test "$hardcode_direct" != no &&
11282 # If the only mechanism to avoid hardcoding is shlibpath_var, we
11283 # have to relink, otherwise we might link with an installed library
11284 # when we should be linking with a yet-to-be-installed one
11285 ## test "$_LT_TAGVAR(hardcode_shlibpath_var, )" != no &&
11286 test "$hardcode_minus_L" != no; then
11287 # Linking always hardcodes the temporary library directory.
11288 hardcode_action=relink
11289 else
11290 # We can link without hardcoding, and we can hardcode nonexisting dirs.
11291 hardcode_action=immediate
11292 fi
11293 else
11294 # We cannot hardcode anything, or else we can only hardcode existing
11295 # directories.
11296 hardcode_action=unsupported
11297 fi
11298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $hardcode_action" >&5
11299 $as_echo "$hardcode_action" >&6; }
11301 if test "$hardcode_action" = relink ||
11302 test "$inherit_rpath" = yes; then
11303 # Fast installation is not supported
11304 enable_fast_install=no
11305 elif test "$shlibpath_overrides_runpath" = yes ||
11306 test "$enable_shared" = no; then
11307 # Fast installation is not necessary
11308 enable_fast_install=needless
11309 fi
11316 if test "x$enable_dlopen" != xyes; then
11317 enable_dlopen=unknown
11318 enable_dlopen_self=unknown
11319 enable_dlopen_self_static=unknown
11320 else
11321 lt_cv_dlopen=no
11322 lt_cv_dlopen_libs=
11324 case $host_os in
11325 beos*)
11326 lt_cv_dlopen="load_add_on"
11327 lt_cv_dlopen_libs=
11328 lt_cv_dlopen_self=yes
11329 ;;
11331 mingw* | pw32* | cegcc*)
11332 lt_cv_dlopen="LoadLibrary"
11333 lt_cv_dlopen_libs=
11334 ;;
11336 cygwin*)
11337 lt_cv_dlopen="dlopen"
11338 lt_cv_dlopen_libs=
11339 ;;
11341 darwin*)
11342 # if libdl is installed we need to link against it
11343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11344 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11345 if ${ac_cv_lib_dl_dlopen+:} false; then :
11346 $as_echo_n "(cached) " >&6
11347 else
11348 ac_check_lib_save_LIBS=$LIBS
11349 LIBS="-ldl $LIBS"
11350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11351 /* end confdefs.h. */
11353 /* Override any GCC internal prototype to avoid an error.
11354 Use char because int might match the return type of a GCC
11355 builtin and then its argument prototype would still apply. */
11356 #ifdef __cplusplus
11357 extern "C"
11358 #endif
11359 char dlopen ();
11360 int
11361 main ()
11362 {
11363 return dlopen ();
11364 ;
11365 return 0;
11366 }
11367 _ACEOF
11368 if ac_fn_c_try_link "$LINENO"; then :
11369 ac_cv_lib_dl_dlopen=yes
11370 else
11371 ac_cv_lib_dl_dlopen=no
11372 fi
11373 rm -f core conftest.err conftest.$ac_objext \
11374 conftest$ac_exeext conftest.$ac_ext
11375 LIBS=$ac_check_lib_save_LIBS
11376 fi
11377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11378 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11379 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11380 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11381 else
11383 lt_cv_dlopen="dyld"
11384 lt_cv_dlopen_libs=
11385 lt_cv_dlopen_self=yes
11387 fi
11389 ;;
11391 *)
11392 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
11393 if test "x$ac_cv_func_shl_load" = xyes; then :
11394 lt_cv_dlopen="shl_load"
11395 else
11396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
11397 $as_echo_n "checking for shl_load in -ldld... " >&6; }
11398 if ${ac_cv_lib_dld_shl_load+:} false; then :
11399 $as_echo_n "(cached) " >&6
11400 else
11401 ac_check_lib_save_LIBS=$LIBS
11402 LIBS="-ldld $LIBS"
11403 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11404 /* end confdefs.h. */
11406 /* Override any GCC internal prototype to avoid an error.
11407 Use char because int might match the return type of a GCC
11408 builtin and then its argument prototype would still apply. */
11409 #ifdef __cplusplus
11410 extern "C"
11411 #endif
11412 char shl_load ();
11413 int
11414 main ()
11415 {
11416 return shl_load ();
11417 ;
11418 return 0;
11419 }
11420 _ACEOF
11421 if ac_fn_c_try_link "$LINENO"; then :
11422 ac_cv_lib_dld_shl_load=yes
11423 else
11424 ac_cv_lib_dld_shl_load=no
11425 fi
11426 rm -f core conftest.err conftest.$ac_objext \
11427 conftest$ac_exeext conftest.$ac_ext
11428 LIBS=$ac_check_lib_save_LIBS
11429 fi
11430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
11431 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
11432 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
11433 lt_cv_dlopen="shl_load" lt_cv_dlopen_libs="-ldld"
11434 else
11435 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
11436 if test "x$ac_cv_func_dlopen" = xyes; then :
11437 lt_cv_dlopen="dlopen"
11438 else
11439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
11440 $as_echo_n "checking for dlopen in -ldl... " >&6; }
11441 if ${ac_cv_lib_dl_dlopen+:} false; then :
11442 $as_echo_n "(cached) " >&6
11443 else
11444 ac_check_lib_save_LIBS=$LIBS
11445 LIBS="-ldl $LIBS"
11446 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11447 /* end confdefs.h. */
11449 /* Override any GCC internal prototype to avoid an error.
11450 Use char because int might match the return type of a GCC
11451 builtin and then its argument prototype would still apply. */
11452 #ifdef __cplusplus
11453 extern "C"
11454 #endif
11455 char dlopen ();
11456 int
11457 main ()
11458 {
11459 return dlopen ();
11460 ;
11461 return 0;
11462 }
11463 _ACEOF
11464 if ac_fn_c_try_link "$LINENO"; then :
11465 ac_cv_lib_dl_dlopen=yes
11466 else
11467 ac_cv_lib_dl_dlopen=no
11468 fi
11469 rm -f core conftest.err conftest.$ac_objext \
11470 conftest$ac_exeext conftest.$ac_ext
11471 LIBS=$ac_check_lib_save_LIBS
11472 fi
11473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
11474 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
11475 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
11476 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-ldl"
11477 else
11478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
11479 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
11480 if ${ac_cv_lib_svld_dlopen+:} false; then :
11481 $as_echo_n "(cached) " >&6
11482 else
11483 ac_check_lib_save_LIBS=$LIBS
11484 LIBS="-lsvld $LIBS"
11485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11486 /* end confdefs.h. */
11488 /* Override any GCC internal prototype to avoid an error.
11489 Use char because int might match the return type of a GCC
11490 builtin and then its argument prototype would still apply. */
11491 #ifdef __cplusplus
11492 extern "C"
11493 #endif
11494 char dlopen ();
11495 int
11496 main ()
11497 {
11498 return dlopen ();
11499 ;
11500 return 0;
11501 }
11502 _ACEOF
11503 if ac_fn_c_try_link "$LINENO"; then :
11504 ac_cv_lib_svld_dlopen=yes
11505 else
11506 ac_cv_lib_svld_dlopen=no
11507 fi
11508 rm -f core conftest.err conftest.$ac_objext \
11509 conftest$ac_exeext conftest.$ac_ext
11510 LIBS=$ac_check_lib_save_LIBS
11511 fi
11512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
11513 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
11514 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
11515 lt_cv_dlopen="dlopen" lt_cv_dlopen_libs="-lsvld"
11516 else
11517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
11518 $as_echo_n "checking for dld_link in -ldld... " >&6; }
11519 if ${ac_cv_lib_dld_dld_link+:} false; then :
11520 $as_echo_n "(cached) " >&6
11521 else
11522 ac_check_lib_save_LIBS=$LIBS
11523 LIBS="-ldld $LIBS"
11524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11525 /* end confdefs.h. */
11527 /* Override any GCC internal prototype to avoid an error.
11528 Use char because int might match the return type of a GCC
11529 builtin and then its argument prototype would still apply. */
11530 #ifdef __cplusplus
11531 extern "C"
11532 #endif
11533 char dld_link ();
11534 int
11535 main ()
11536 {
11537 return dld_link ();
11538 ;
11539 return 0;
11540 }
11541 _ACEOF
11542 if ac_fn_c_try_link "$LINENO"; then :
11543 ac_cv_lib_dld_dld_link=yes
11544 else
11545 ac_cv_lib_dld_dld_link=no
11546 fi
11547 rm -f core conftest.err conftest.$ac_objext \
11548 conftest$ac_exeext conftest.$ac_ext
11549 LIBS=$ac_check_lib_save_LIBS
11550 fi
11551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
11552 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
11553 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
11554 lt_cv_dlopen="dld_link" lt_cv_dlopen_libs="-ldld"
11555 fi
11558 fi
11561 fi
11564 fi
11567 fi
11570 fi
11572 ;;
11573 esac
11575 if test "x$lt_cv_dlopen" != xno; then
11576 enable_dlopen=yes
11577 else
11578 enable_dlopen=no
11579 fi
11581 case $lt_cv_dlopen in
11582 dlopen)
11583 save_CPPFLAGS="$CPPFLAGS"
11584 test "x$ac_cv_header_dlfcn_h" = xyes && CPPFLAGS="$CPPFLAGS -DHAVE_DLFCN_H"
11586 save_LDFLAGS="$LDFLAGS"
11587 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $export_dynamic_flag_spec\"
11589 save_LIBS="$LIBS"
11590 LIBS="$lt_cv_dlopen_libs $LIBS"
11592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a program can dlopen itself" >&5
11593 $as_echo_n "checking whether a program can dlopen itself... " >&6; }
11594 if ${lt_cv_dlopen_self+:} false; then :
11595 $as_echo_n "(cached) " >&6
11596 else
11597 if test "$cross_compiling" = yes; then :
11598 lt_cv_dlopen_self=cross
11599 else
11600 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11601 lt_status=$lt_dlunknown
11602 cat > conftest.$ac_ext <<_LT_EOF
11603 #line $LINENO "configure"
11604 #include "confdefs.h"
11606 #if HAVE_DLFCN_H
11607 #include <dlfcn.h>
11608 #endif
11610 #include <stdio.h>
11612 #ifdef RTLD_GLOBAL
11613 # define LT_DLGLOBAL RTLD_GLOBAL
11614 #else
11615 # ifdef DL_GLOBAL
11616 # define LT_DLGLOBAL DL_GLOBAL
11617 # else
11618 # define LT_DLGLOBAL 0
11619 # endif
11620 #endif
11622 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11623 find out it does not work in some platform. */
11624 #ifndef LT_DLLAZY_OR_NOW
11625 # ifdef RTLD_LAZY
11626 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11627 # else
11628 # ifdef DL_LAZY
11629 # define LT_DLLAZY_OR_NOW DL_LAZY
11630 # else
11631 # ifdef RTLD_NOW
11632 # define LT_DLLAZY_OR_NOW RTLD_NOW
11633 # else
11634 # ifdef DL_NOW
11635 # define LT_DLLAZY_OR_NOW DL_NOW
11636 # else
11637 # define LT_DLLAZY_OR_NOW 0
11638 # endif
11639 # endif
11640 # endif
11641 # endif
11642 #endif
11644 /* When -fvisbility=hidden is used, assume the code has been annotated
11645 correspondingly for the symbols needed. */
11646 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11647 int fnord () __attribute__((visibility("default")));
11648 #endif
11650 int fnord () { return 42; }
11651 int main ()
11652 {
11653 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11654 int status = $lt_dlunknown;
11656 if (self)
11657 {
11658 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11659 else
11660 {
11661 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11662 else puts (dlerror ());
11663 }
11664 /* dlclose (self); */
11665 }
11666 else
11667 puts (dlerror ());
11669 return status;
11670 }
11671 _LT_EOF
11672 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11673 (eval $ac_link) 2>&5
11674 ac_status=$?
11675 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11676 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11677 (./conftest; exit; ) >&5 2>/dev/null
11678 lt_status=$?
11679 case x$lt_status in
11680 x$lt_dlno_uscore) lt_cv_dlopen_self=yes ;;
11681 x$lt_dlneed_uscore) lt_cv_dlopen_self=yes ;;
11682 x$lt_dlunknown|x*) lt_cv_dlopen_self=no ;;
11683 esac
11684 else :
11685 # compilation failed
11686 lt_cv_dlopen_self=no
11687 fi
11688 fi
11689 rm -fr conftest*
11692 fi
11693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self" >&5
11694 $as_echo "$lt_cv_dlopen_self" >&6; }
11696 if test "x$lt_cv_dlopen_self" = xyes; then
11697 wl=$lt_prog_compiler_wl eval LDFLAGS=\"\$LDFLAGS $lt_prog_compiler_static\"
11698 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether a statically linked program can dlopen itself" >&5
11699 $as_echo_n "checking whether a statically linked program can dlopen itself... " >&6; }
11700 if ${lt_cv_dlopen_self_static+:} false; then :
11701 $as_echo_n "(cached) " >&6
11702 else
11703 if test "$cross_compiling" = yes; then :
11704 lt_cv_dlopen_self_static=cross
11705 else
11706 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
11707 lt_status=$lt_dlunknown
11708 cat > conftest.$ac_ext <<_LT_EOF
11709 #line $LINENO "configure"
11710 #include "confdefs.h"
11712 #if HAVE_DLFCN_H
11713 #include <dlfcn.h>
11714 #endif
11716 #include <stdio.h>
11718 #ifdef RTLD_GLOBAL
11719 # define LT_DLGLOBAL RTLD_GLOBAL
11720 #else
11721 # ifdef DL_GLOBAL
11722 # define LT_DLGLOBAL DL_GLOBAL
11723 # else
11724 # define LT_DLGLOBAL 0
11725 # endif
11726 #endif
11728 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
11729 find out it does not work in some platform. */
11730 #ifndef LT_DLLAZY_OR_NOW
11731 # ifdef RTLD_LAZY
11732 # define LT_DLLAZY_OR_NOW RTLD_LAZY
11733 # else
11734 # ifdef DL_LAZY
11735 # define LT_DLLAZY_OR_NOW DL_LAZY
11736 # else
11737 # ifdef RTLD_NOW
11738 # define LT_DLLAZY_OR_NOW RTLD_NOW
11739 # else
11740 # ifdef DL_NOW
11741 # define LT_DLLAZY_OR_NOW DL_NOW
11742 # else
11743 # define LT_DLLAZY_OR_NOW 0
11744 # endif
11745 # endif
11746 # endif
11747 # endif
11748 #endif
11750 /* When -fvisbility=hidden is used, assume the code has been annotated
11751 correspondingly for the symbols needed. */
11752 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
11753 int fnord () __attribute__((visibility("default")));
11754 #endif
11756 int fnord () { return 42; }
11757 int main ()
11758 {
11759 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
11760 int status = $lt_dlunknown;
11762 if (self)
11763 {
11764 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
11765 else
11766 {
11767 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
11768 else puts (dlerror ());
11769 }
11770 /* dlclose (self); */
11771 }
11772 else
11773 puts (dlerror ());
11775 return status;
11776 }
11777 _LT_EOF
11778 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
11779 (eval $ac_link) 2>&5
11780 ac_status=$?
11781 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
11782 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
11783 (./conftest; exit; ) >&5 2>/dev/null
11784 lt_status=$?
11785 case x$lt_status in
11786 x$lt_dlno_uscore) lt_cv_dlopen_self_static=yes ;;
11787 x$lt_dlneed_uscore) lt_cv_dlopen_self_static=yes ;;
11788 x$lt_dlunknown|x*) lt_cv_dlopen_self_static=no ;;
11789 esac
11790 else :
11791 # compilation failed
11792 lt_cv_dlopen_self_static=no
11793 fi
11794 fi
11795 rm -fr conftest*
11798 fi
11799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_dlopen_self_static" >&5
11800 $as_echo "$lt_cv_dlopen_self_static" >&6; }
11801 fi
11803 CPPFLAGS="$save_CPPFLAGS"
11804 LDFLAGS="$save_LDFLAGS"
11805 LIBS="$save_LIBS"
11806 ;;
11807 esac
11809 case $lt_cv_dlopen_self in
11810 yes|no) enable_dlopen_self=$lt_cv_dlopen_self ;;
11811 *) enable_dlopen_self=unknown ;;
11812 esac
11814 case $lt_cv_dlopen_self_static in
11815 yes|no) enable_dlopen_self_static=$lt_cv_dlopen_self_static ;;
11816 *) enable_dlopen_self_static=unknown ;;
11817 esac
11818 fi
11836 striplib=
11837 old_striplib=
11838 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether stripping libraries is possible" >&5
11839 $as_echo_n "checking whether stripping libraries is possible... " >&6; }
11840 if test -n "$STRIP" && $STRIP -V 2>&1 | $GREP "GNU strip" >/dev/null; then
11841 test -z "$old_striplib" && old_striplib="$STRIP --strip-debug"
11842 test -z "$striplib" && striplib="$STRIP --strip-unneeded"
11843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11844 $as_echo "yes" >&6; }
11845 else
11846 # FIXME - insert some real tests, host_os isn't really good enough
11847 case $host_os in
11848 darwin*)
11849 if test -n "$STRIP" ; then
11850 striplib="$STRIP -x"
11851 old_striplib="$STRIP -S"
11852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11853 $as_echo "yes" >&6; }
11854 else
11855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11856 $as_echo "no" >&6; }
11857 fi
11858 ;;
11859 *)
11860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11861 $as_echo "no" >&6; }
11862 ;;
11863 esac
11864 fi
11877 # Report which library types will actually be built
11878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libtool supports shared libraries" >&5
11879 $as_echo_n "checking if libtool supports shared libraries... " >&6; }
11880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $can_build_shared" >&5
11881 $as_echo "$can_build_shared" >&6; }
11883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build shared libraries" >&5
11884 $as_echo_n "checking whether to build shared libraries... " >&6; }
11885 test "$can_build_shared" = "no" && enable_shared=no
11887 # On AIX, shared libraries and static libraries use the same namespace, and
11888 # are all built from PIC.
11889 case $host_os in
11890 aix3*)
11891 test "$enable_shared" = yes && enable_static=no
11892 if test -n "$RANLIB"; then
11893 archive_cmds="$archive_cmds~\$RANLIB \$lib"
11894 postinstall_cmds='$RANLIB $lib'
11895 fi
11896 ;;
11898 aix[4-9]*)
11899 if test "$host_cpu" != ia64 && test "$aix_use_runtimelinking" = no ; then
11900 test "$enable_shared" = yes && enable_static=no
11901 fi
11902 ;;
11903 esac
11904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_shared" >&5
11905 $as_echo "$enable_shared" >&6; }
11907 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to build static libraries" >&5
11908 $as_echo_n "checking whether to build static libraries... " >&6; }
11909 # Make sure either enable_shared or enable_static is yes.
11910 test "$enable_shared" = yes || enable_static=yes
11911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $enable_static" >&5
11912 $as_echo "$enable_static" >&6; }
11917 fi
11918 ac_ext=c
11919 ac_cpp='$CPP $CPPFLAGS'
11920 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
11921 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
11922 ac_compiler_gnu=$ac_cv_c_compiler_gnu
11924 CC="$lt_save_CC"
11940 ac_config_commands="$ac_config_commands libtool"
11945 # Only expand once:
11948 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which extension is used for runtime loadable modules" >&5
11949 $as_echo_n "checking which extension is used for runtime loadable modules... " >&6; }
11950 if ${libltdl_cv_shlibext+:} false; then :
11951 $as_echo_n "(cached) " >&6
11952 else
11954 module=yes
11955 eval libltdl_cv_shlibext=$shrext_cmds
11956 module=no
11957 eval libltdl_cv_shrext=$shrext_cmds
11959 fi
11960 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_shlibext" >&5
11961 $as_echo "$libltdl_cv_shlibext" >&6; }
11962 if test -n "$libltdl_cv_shlibext"; then
11964 cat >>confdefs.h <<_ACEOF
11965 #define LT_MODULE_EXT "$libltdl_cv_shlibext"
11966 _ACEOF
11968 fi
11969 if test "$libltdl_cv_shrext" != "$libltdl_cv_shlibext"; then
11971 cat >>confdefs.h <<_ACEOF
11972 #define LT_SHARED_EXT "$libltdl_cv_shrext"
11973 _ACEOF
11975 fi
11977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which variable specifies run-time module search path" >&5
11978 $as_echo_n "checking which variable specifies run-time module search path... " >&6; }
11979 if ${lt_cv_module_path_var+:} false; then :
11980 $as_echo_n "(cached) " >&6
11981 else
11982 lt_cv_module_path_var="$shlibpath_var"
11983 fi
11984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_module_path_var" >&5
11985 $as_echo "$lt_cv_module_path_var" >&6; }
11986 if test -n "$lt_cv_module_path_var"; then
11988 cat >>confdefs.h <<_ACEOF
11989 #define LT_MODULE_PATH_VAR "$lt_cv_module_path_var"
11990 _ACEOF
11992 fi
11994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for the default library search path" >&5
11995 $as_echo_n "checking for the default library search path... " >&6; }
11996 if ${lt_cv_sys_dlsearch_path+:} false; then :
11997 $as_echo_n "(cached) " >&6
11998 else
11999 lt_cv_sys_dlsearch_path="$sys_lib_dlsearch_path_spec"
12000 fi
12001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlsearch_path" >&5
12002 $as_echo "$lt_cv_sys_dlsearch_path" >&6; }
12003 if test -n "$lt_cv_sys_dlsearch_path"; then
12004 sys_dlsearch_path=
12005 for dir in $lt_cv_sys_dlsearch_path; do
12006 if test -z "$sys_dlsearch_path"; then
12007 sys_dlsearch_path="$dir"
12008 else
12009 sys_dlsearch_path="$sys_dlsearch_path$PATH_SEPARATOR$dir"
12010 fi
12011 done
12013 cat >>confdefs.h <<_ACEOF
12014 #define LT_DLSEARCH_PATH "$sys_dlsearch_path"
12015 _ACEOF
12017 fi
12020 LT_DLLOADERS=
12023 ac_ext=c
12024 ac_cpp='$CPP $CPPFLAGS'
12025 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12026 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12027 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12030 LIBADD_DLOPEN=
12031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing dlopen" >&5
12032 $as_echo_n "checking for library containing dlopen... " >&6; }
12033 if ${ac_cv_search_dlopen+:} false; then :
12034 $as_echo_n "(cached) " >&6
12035 else
12036 ac_func_search_save_LIBS=$LIBS
12037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12038 /* end confdefs.h. */
12040 /* Override any GCC internal prototype to avoid an error.
12041 Use char because int might match the return type of a GCC
12042 builtin and then its argument prototype would still apply. */
12043 #ifdef __cplusplus
12044 extern "C"
12045 #endif
12046 char dlopen ();
12047 int
12048 main ()
12049 {
12050 return dlopen ();
12051 ;
12052 return 0;
12053 }
12054 _ACEOF
12055 for ac_lib in '' dl; do
12056 if test -z "$ac_lib"; then
12057 ac_res="none required"
12058 else
12059 ac_res=-l$ac_lib
12060 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
12061 fi
12062 if ac_fn_c_try_link "$LINENO"; then :
12063 ac_cv_search_dlopen=$ac_res
12064 fi
12065 rm -f core conftest.err conftest.$ac_objext \
12066 conftest$ac_exeext
12067 if ${ac_cv_search_dlopen+:} false; then :
12068 break
12069 fi
12070 done
12071 if ${ac_cv_search_dlopen+:} false; then :
12073 else
12074 ac_cv_search_dlopen=no
12075 fi
12076 rm conftest.$ac_ext
12077 LIBS=$ac_func_search_save_LIBS
12078 fi
12079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_dlopen" >&5
12080 $as_echo "$ac_cv_search_dlopen" >&6; }
12081 ac_res=$ac_cv_search_dlopen
12082 if test "$ac_res" != no; then :
12083 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
12085 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
12087 if test "$ac_cv_search_dlopen" != "none required" ; then
12088 LIBADD_DLOPEN="-ldl"
12089 fi
12090 libltdl_cv_lib_dl_dlopen="yes"
12091 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
12092 else
12093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12094 /* end confdefs.h. */
12095 #if HAVE_DLFCN_H
12096 # include <dlfcn.h>
12097 #endif
12099 int
12100 main ()
12101 {
12102 dlopen(0, 0);
12103 ;
12104 return 0;
12105 }
12106 _ACEOF
12107 if ac_fn_c_try_link "$LINENO"; then :
12109 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
12111 libltdl_cv_func_dlopen="yes"
12112 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
12113 else
12114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -lsvld" >&5
12115 $as_echo_n "checking for dlopen in -lsvld... " >&6; }
12116 if ${ac_cv_lib_svld_dlopen+:} false; then :
12117 $as_echo_n "(cached) " >&6
12118 else
12119 ac_check_lib_save_LIBS=$LIBS
12120 LIBS="-lsvld $LIBS"
12121 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12122 /* end confdefs.h. */
12124 /* Override any GCC internal prototype to avoid an error.
12125 Use char because int might match the return type of a GCC
12126 builtin and then its argument prototype would still apply. */
12127 #ifdef __cplusplus
12128 extern "C"
12129 #endif
12130 char dlopen ();
12131 int
12132 main ()
12133 {
12134 return dlopen ();
12135 ;
12136 return 0;
12137 }
12138 _ACEOF
12139 if ac_fn_c_try_link "$LINENO"; then :
12140 ac_cv_lib_svld_dlopen=yes
12141 else
12142 ac_cv_lib_svld_dlopen=no
12143 fi
12144 rm -f core conftest.err conftest.$ac_objext \
12145 conftest$ac_exeext conftest.$ac_ext
12146 LIBS=$ac_check_lib_save_LIBS
12147 fi
12148 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_svld_dlopen" >&5
12149 $as_echo "$ac_cv_lib_svld_dlopen" >&6; }
12150 if test "x$ac_cv_lib_svld_dlopen" = xyes; then :
12152 $as_echo "#define HAVE_LIBDL 1" >>confdefs.h
12154 LIBADD_DLOPEN="-lsvld" libltdl_cv_func_dlopen="yes"
12155 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dlopen.la"
12156 fi
12158 fi
12159 rm -f core conftest.err conftest.$ac_objext \
12160 conftest$ac_exeext conftest.$ac_ext
12161 fi
12163 if test x"$libltdl_cv_func_dlopen" = xyes || test x"$libltdl_cv_lib_dl_dlopen" = xyes
12164 then
12165 lt_save_LIBS="$LIBS"
12166 LIBS="$LIBS $LIBADD_DLOPEN"
12167 for ac_func in dlerror
12168 do :
12169 ac_fn_c_check_func "$LINENO" "dlerror" "ac_cv_func_dlerror"
12170 if test "x$ac_cv_func_dlerror" = xyes; then :
12171 cat >>confdefs.h <<_ACEOF
12172 #define HAVE_DLERROR 1
12173 _ACEOF
12175 fi
12176 done
12178 LIBS="$lt_save_LIBS"
12179 fi
12182 LIBADD_SHL_LOAD=
12183 ac_fn_c_check_func "$LINENO" "shl_load" "ac_cv_func_shl_load"
12184 if test "x$ac_cv_func_shl_load" = xyes; then :
12186 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
12188 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
12189 else
12190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shl_load in -ldld" >&5
12191 $as_echo_n "checking for shl_load in -ldld... " >&6; }
12192 if ${ac_cv_lib_dld_shl_load+:} false; then :
12193 $as_echo_n "(cached) " >&6
12194 else
12195 ac_check_lib_save_LIBS=$LIBS
12196 LIBS="-ldld $LIBS"
12197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12198 /* end confdefs.h. */
12200 /* Override any GCC internal prototype to avoid an error.
12201 Use char because int might match the return type of a GCC
12202 builtin and then its argument prototype would still apply. */
12203 #ifdef __cplusplus
12204 extern "C"
12205 #endif
12206 char shl_load ();
12207 int
12208 main ()
12209 {
12210 return shl_load ();
12211 ;
12212 return 0;
12213 }
12214 _ACEOF
12215 if ac_fn_c_try_link "$LINENO"; then :
12216 ac_cv_lib_dld_shl_load=yes
12217 else
12218 ac_cv_lib_dld_shl_load=no
12219 fi
12220 rm -f core conftest.err conftest.$ac_objext \
12221 conftest$ac_exeext conftest.$ac_ext
12222 LIBS=$ac_check_lib_save_LIBS
12223 fi
12224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_shl_load" >&5
12225 $as_echo "$ac_cv_lib_dld_shl_load" >&6; }
12226 if test "x$ac_cv_lib_dld_shl_load" = xyes; then :
12228 $as_echo "#define HAVE_SHL_LOAD 1" >>confdefs.h
12230 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}shl_load.la"
12231 LIBADD_SHL_LOAD="-ldld"
12232 fi
12234 fi
12238 case $host_os in
12239 darwin[1567].*)
12240 # We only want this for pre-Mac OS X 10.4.
12241 ac_fn_c_check_func "$LINENO" "_dyld_func_lookup" "ac_cv_func__dyld_func_lookup"
12242 if test "x$ac_cv_func__dyld_func_lookup" = xyes; then :
12244 $as_echo "#define HAVE_DYLD 1" >>confdefs.h
12246 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dyld.la"
12247 fi
12249 ;;
12250 beos*)
12251 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}load_add_on.la"
12252 ;;
12253 cygwin* | mingw* | os2* | pw32*)
12254 ac_fn_c_check_decl "$LINENO" "cygwin_conv_path" "ac_cv_have_decl_cygwin_conv_path" "#include <sys/cygwin.h>
12255 "
12256 if test "x$ac_cv_have_decl_cygwin_conv_path" = xyes; then :
12257 ac_have_decl=1
12258 else
12259 ac_have_decl=0
12260 fi
12262 cat >>confdefs.h <<_ACEOF
12263 #define HAVE_DECL_CYGWIN_CONV_PATH $ac_have_decl
12264 _ACEOF
12266 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}loadlibrary.la"
12267 ;;
12268 esac
12270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dld_link in -ldld" >&5
12271 $as_echo_n "checking for dld_link in -ldld... " >&6; }
12272 if ${ac_cv_lib_dld_dld_link+:} false; then :
12273 $as_echo_n "(cached) " >&6
12274 else
12275 ac_check_lib_save_LIBS=$LIBS
12276 LIBS="-ldld $LIBS"
12277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12278 /* end confdefs.h. */
12280 /* Override any GCC internal prototype to avoid an error.
12281 Use char because int might match the return type of a GCC
12282 builtin and then its argument prototype would still apply. */
12283 #ifdef __cplusplus
12284 extern "C"
12285 #endif
12286 char dld_link ();
12287 int
12288 main ()
12289 {
12290 return dld_link ();
12291 ;
12292 return 0;
12293 }
12294 _ACEOF
12295 if ac_fn_c_try_link "$LINENO"; then :
12296 ac_cv_lib_dld_dld_link=yes
12297 else
12298 ac_cv_lib_dld_dld_link=no
12299 fi
12300 rm -f core conftest.err conftest.$ac_objext \
12301 conftest$ac_exeext conftest.$ac_ext
12302 LIBS=$ac_check_lib_save_LIBS
12303 fi
12304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dld_dld_link" >&5
12305 $as_echo "$ac_cv_lib_dld_dld_link" >&6; }
12306 if test "x$ac_cv_lib_dld_dld_link" = xyes; then :
12308 $as_echo "#define HAVE_DLD 1" >>confdefs.h
12310 LT_DLLOADERS="$LT_DLLOADERS ${lt_dlopen_dir+$lt_dlopen_dir/}dld_link.la"
12311 fi
12316 LT_DLPREOPEN=
12317 if test -n "$LT_DLLOADERS"
12318 then
12319 for lt_loader in $LT_DLLOADERS; do
12320 LT_DLPREOPEN="$LT_DLPREOPEN-dlpreopen $lt_loader "
12321 done
12323 $as_echo "#define HAVE_LIBDLLOADER 1" >>confdefs.h
12325 fi
12328 LIBADD_DL="$LIBADD_DLOPEN $LIBADD_SHL_LOAD"
12331 ac_ext=c
12332 ac_cpp='$CPP $CPPFLAGS'
12333 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
12334 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
12335 ac_compiler_gnu=$ac_cv_c_compiler_gnu
12338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _ prefix in compiled symbols" >&5
12339 $as_echo_n "checking for _ prefix in compiled symbols... " >&6; }
12340 if ${lt_cv_sys_symbol_underscore+:} false; then :
12341 $as_echo_n "(cached) " >&6
12342 else
12343 lt_cv_sys_symbol_underscore=no
12344 cat > conftest.$ac_ext <<_LT_EOF
12345 void nm_test_func(){}
12346 int main(){nm_test_func;return 0;}
12347 _LT_EOF
12348 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_compile\""; } >&5
12349 (eval $ac_compile) 2>&5
12350 ac_status=$?
12351 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12352 test $ac_status = 0; }; then
12353 # Now try to grab the symbols.
12354 ac_nlist=conftest.nm
12355 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist\""; } >&5
12356 (eval $NM conftest.$ac_objext \| $lt_cv_sys_global_symbol_pipe \> $ac_nlist) 2>&5
12357 ac_status=$?
12358 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12359 test $ac_status = 0; } && test -s "$ac_nlist"; then
12360 # See whether the symbols have a leading underscore.
12361 if grep '^. _nm_test_func' "$ac_nlist" >/dev/null; then
12362 lt_cv_sys_symbol_underscore=yes
12363 else
12364 if grep '^. nm_test_func ' "$ac_nlist" >/dev/null; then
12365 :
12366 else
12367 echo "configure: cannot find nm_test_func in $ac_nlist" >&5
12368 fi
12369 fi
12370 else
12371 echo "configure: cannot run $lt_cv_sys_global_symbol_pipe" >&5
12372 fi
12373 else
12374 echo "configure: failed program was:" >&5
12375 cat conftest.c >&5
12376 fi
12377 rm -rf conftest*
12379 fi
12380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_symbol_underscore" >&5
12381 $as_echo "$lt_cv_sys_symbol_underscore" >&6; }
12382 sys_symbol_underscore=$lt_cv_sys_symbol_underscore
12385 if test x"$lt_cv_sys_symbol_underscore" = xyes; then
12386 if test x"$libltdl_cv_func_dlopen" = xyes ||
12387 test x"$libltdl_cv_lib_dl_dlopen" = xyes ; then
12388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we have to add an underscore for dlsym" >&5
12389 $as_echo_n "checking whether we have to add an underscore for dlsym... " >&6; }
12390 if ${libltdl_cv_need_uscore+:} false; then :
12391 $as_echo_n "(cached) " >&6
12392 else
12393 libltdl_cv_need_uscore=unknown
12394 save_LIBS="$LIBS"
12395 LIBS="$LIBS $LIBADD_DLOPEN"
12396 if test "$cross_compiling" = yes; then :
12397 libltdl_cv_need_uscore=cross
12398 else
12399 lt_dlunknown=0; lt_dlno_uscore=1; lt_dlneed_uscore=2
12400 lt_status=$lt_dlunknown
12401 cat > conftest.$ac_ext <<_LT_EOF
12402 #line $LINENO "configure"
12403 #include "confdefs.h"
12405 #if HAVE_DLFCN_H
12406 #include <dlfcn.h>
12407 #endif
12409 #include <stdio.h>
12411 #ifdef RTLD_GLOBAL
12412 # define LT_DLGLOBAL RTLD_GLOBAL
12413 #else
12414 # ifdef DL_GLOBAL
12415 # define LT_DLGLOBAL DL_GLOBAL
12416 # else
12417 # define LT_DLGLOBAL 0
12418 # endif
12419 #endif
12421 /* We may have to define LT_DLLAZY_OR_NOW in the command line if we
12422 find out it does not work in some platform. */
12423 #ifndef LT_DLLAZY_OR_NOW
12424 # ifdef RTLD_LAZY
12425 # define LT_DLLAZY_OR_NOW RTLD_LAZY
12426 # else
12427 # ifdef DL_LAZY
12428 # define LT_DLLAZY_OR_NOW DL_LAZY
12429 # else
12430 # ifdef RTLD_NOW
12431 # define LT_DLLAZY_OR_NOW RTLD_NOW
12432 # else
12433 # ifdef DL_NOW
12434 # define LT_DLLAZY_OR_NOW DL_NOW
12435 # else
12436 # define LT_DLLAZY_OR_NOW 0
12437 # endif
12438 # endif
12439 # endif
12440 # endif
12441 #endif
12443 /* When -fvisbility=hidden is used, assume the code has been annotated
12444 correspondingly for the symbols needed. */
12445 #if defined(__GNUC__) && (((__GNUC__ == 3) && (__GNUC_MINOR__ >= 3)) || (__GNUC__ > 3))
12446 int fnord () __attribute__((visibility("default")));
12447 #endif
12449 int fnord () { return 42; }
12450 int main ()
12451 {
12452 void *self = dlopen (0, LT_DLGLOBAL|LT_DLLAZY_OR_NOW);
12453 int status = $lt_dlunknown;
12455 if (self)
12456 {
12457 if (dlsym (self,"fnord")) status = $lt_dlno_uscore;
12458 else
12459 {
12460 if (dlsym( self,"_fnord")) status = $lt_dlneed_uscore;
12461 else puts (dlerror ());
12462 }
12463 /* dlclose (self); */
12464 }
12465 else
12466 puts (dlerror ());
12468 return status;
12469 }
12470 _LT_EOF
12471 if { { eval echo "\"\$as_me\":${as_lineno-$LINENO}: \"$ac_link\""; } >&5
12472 (eval $ac_link) 2>&5
12473 ac_status=$?
12474 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
12475 test $ac_status = 0; } && test -s conftest${ac_exeext} 2>/dev/null; then
12476 (./conftest; exit; ) >&5 2>/dev/null
12477 lt_status=$?
12478 case x$lt_status in
12479 x$lt_dlno_uscore) libltdl_cv_need_uscore=no ;;
12480 x$lt_dlneed_uscore) libltdl_cv_need_uscore=yes ;;
12481 x$lt_dlunknown|x*) ;;
12482 esac
12483 else :
12484 # compilation failed
12486 fi
12487 fi
12488 rm -fr conftest*
12490 LIBS="$save_LIBS"
12492 fi
12493 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_need_uscore" >&5
12494 $as_echo "$libltdl_cv_need_uscore" >&6; }
12495 fi
12496 fi
12498 if test x"$libltdl_cv_need_uscore" = xyes; then
12500 $as_echo "#define NEED_USCORE 1" >>confdefs.h
12502 fi
12504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether deplibs are loaded by dlopen" >&5
12505 $as_echo_n "checking whether deplibs are loaded by dlopen... " >&6; }
12506 if ${lt_cv_sys_dlopen_deplibs+:} false; then :
12507 $as_echo_n "(cached) " >&6
12508 else
12509 # PORTME does your system automatically load deplibs for dlopen?
12510 # or its logical equivalent (e.g. shl_load for HP-UX < 11)
12511 # For now, we just catch OSes we know something about -- in the
12512 # future, we'll try test this programmatically.
12513 lt_cv_sys_dlopen_deplibs=unknown
12514 case $host_os in
12515 aix3*|aix4.1.*|aix4.2.*)
12516 # Unknown whether this is true for these versions of AIX, but
12517 # we want this `case' here to explicitly catch those versions.
12518 lt_cv_sys_dlopen_deplibs=unknown
12519 ;;
12520 aix[4-9]*)
12521 lt_cv_sys_dlopen_deplibs=yes
12522 ;;
12523 amigaos*)
12524 case $host_cpu in
12525 powerpc)
12526 lt_cv_sys_dlopen_deplibs=no
12527 ;;
12528 esac
12529 ;;
12530 darwin*)
12531 # Assuming the user has installed a libdl from somewhere, this is true
12532 # If you are looking for one http://www.opendarwin.org/projects/dlcompat
12533 lt_cv_sys_dlopen_deplibs=yes
12534 ;;
12535 freebsd* | dragonfly*)
12536 lt_cv_sys_dlopen_deplibs=yes
12537 ;;
12538 gnu* | linux* | k*bsd*-gnu | kopensolaris*-gnu)
12539 # GNU and its variants, using gnu ld.so (Glibc)
12540 lt_cv_sys_dlopen_deplibs=yes
12541 ;;
12542 hpux10*|hpux11*)
12543 lt_cv_sys_dlopen_deplibs=yes
12544 ;;
12545 interix*)
12546 lt_cv_sys_dlopen_deplibs=yes
12547 ;;
12548 irix[12345]*|irix6.[01]*)
12549 # Catch all versions of IRIX before 6.2, and indicate that we don't
12550 # know how it worked for any of those versions.
12551 lt_cv_sys_dlopen_deplibs=unknown
12552 ;;
12553 irix*)
12554 # The case above catches anything before 6.2, and it's known that
12555 # at 6.2 and later dlopen does load deplibs.
12556 lt_cv_sys_dlopen_deplibs=yes
12557 ;;
12558 netbsd* | netbsdelf*-gnu)
12559 lt_cv_sys_dlopen_deplibs=yes
12560 ;;
12561 openbsd*)
12562 lt_cv_sys_dlopen_deplibs=yes
12563 ;;
12564 osf[1234]*)
12565 # dlopen did load deplibs (at least at 4.x), but until the 5.x series,
12566 # it did *not* use an RPATH in a shared library to find objects the
12567 # library depends on, so we explicitly say `no'.
12568 lt_cv_sys_dlopen_deplibs=no
12569 ;;
12570 osf5.0|osf5.0a|osf5.1)
12571 # dlopen *does* load deplibs and with the right loader patch applied
12572 # it even uses RPATH in a shared library to search for shared objects
12573 # that the library depends on, but there's no easy way to know if that
12574 # patch is installed. Since this is the case, all we can really
12575 # say is unknown -- it depends on the patch being installed. If
12576 # it is, this changes to `yes'. Without it, it would be `no'.
12577 lt_cv_sys_dlopen_deplibs=unknown
12578 ;;
12579 osf*)
12580 # the two cases above should catch all versions of osf <= 5.1. Read
12581 # the comments above for what we know about them.
12582 # At > 5.1, deplibs are loaded *and* any RPATH in a shared library
12583 # is used to find them so we can finally say `yes'.
12584 lt_cv_sys_dlopen_deplibs=yes
12585 ;;
12586 qnx*)
12587 lt_cv_sys_dlopen_deplibs=yes
12588 ;;
12589 solaris*)
12590 lt_cv_sys_dlopen_deplibs=yes
12591 ;;
12592 sysv5* | sco3.2v5* | sco5v6* | unixware* | OpenUNIX* | sysv4*uw2*)
12593 libltdl_cv_sys_dlopen_deplibs=yes
12594 ;;
12595 esac
12597 fi
12598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_dlopen_deplibs" >&5
12599 $as_echo "$lt_cv_sys_dlopen_deplibs" >&6; }
12600 if test "$lt_cv_sys_dlopen_deplibs" != yes; then
12602 $as_echo "#define LTDL_DLOPEN_DEPLIBS 1" >>confdefs.h
12604 fi
12606 :
12608 for ac_header in argz.h
12609 do :
12610 ac_fn_c_check_header_compile "$LINENO" "argz.h" "ac_cv_header_argz_h" "$ac_includes_default
12611 "
12612 if test "x$ac_cv_header_argz_h" = xyes; then :
12613 cat >>confdefs.h <<_ACEOF
12614 #define HAVE_ARGZ_H 1
12615 _ACEOF
12617 fi
12619 done
12622 ac_fn_c_check_type "$LINENO" "error_t" "ac_cv_type_error_t" "#if defined(HAVE_ARGZ_H)
12623 # include <argz.h>
12624 #endif
12625 "
12626 if test "x$ac_cv_type_error_t" = xyes; then :
12628 cat >>confdefs.h <<_ACEOF
12629 #define HAVE_ERROR_T 1
12630 _ACEOF
12633 else
12635 $as_echo "#define error_t int" >>confdefs.h
12638 $as_echo "#define __error_t_defined 1" >>confdefs.h
12640 fi
12643 ARGZ_H=
12644 for ac_func in argz_add argz_append argz_count argz_create_sep argz_insert \
12645 argz_next argz_stringify
12646 do :
12647 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12648 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12649 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12650 cat >>confdefs.h <<_ACEOF
12651 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12652 _ACEOF
12654 else
12655 ARGZ_H=argz.h;
12657 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
12659 fi
12660 done
12663 if test -z "$ARGZ_H"; then :
12664 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if argz actually works" >&5
12665 $as_echo_n "checking if argz actually works... " >&6; }
12666 if ${lt_cv_sys_argz_works+:} false; then :
12667 $as_echo_n "(cached) " >&6
12668 else
12669 case $host_os in #(
12670 *cygwin*)
12671 lt_cv_sys_argz_works=no
12672 if test "$cross_compiling" != no; then
12673 lt_cv_sys_argz_works="guessing no"
12674 else
12675 lt_sed_extract_leading_digits='s/^\([0-9\.]*\).*/\1/'
12676 save_IFS=$IFS
12677 IFS=-.
12678 set x `uname -r | sed -e "$lt_sed_extract_leading_digits"`
12679 IFS=$save_IFS
12680 lt_os_major=${2-0}
12681 lt_os_minor=${3-0}
12682 lt_os_micro=${4-0}
12683 if test "$lt_os_major" -gt 1 \
12684 || { test "$lt_os_major" -eq 1 \
12685 && { test "$lt_os_minor" -gt 5 \
12686 || { test "$lt_os_minor" -eq 5 \
12687 && test "$lt_os_micro" -gt 24; }; }; }; then
12688 lt_cv_sys_argz_works=yes
12689 fi
12690 fi
12691 ;; #(
12692 *) lt_cv_sys_argz_works=yes ;;
12693 esac
12694 fi
12695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $lt_cv_sys_argz_works" >&5
12696 $as_echo "$lt_cv_sys_argz_works" >&6; }
12697 if test "$lt_cv_sys_argz_works" = yes; then :
12699 $as_echo "#define HAVE_WORKING_ARGZ 1" >>confdefs.h
12701 else
12702 ARGZ_H=argz.h
12705 _LT_LIBOBJS="$_LT_LIBOBJS argz.$ac_objext"
12707 fi
12708 fi
12712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libtool supports -dlopen/-dlpreopen" >&5
12713 $as_echo_n "checking whether libtool supports -dlopen/-dlpreopen... " >&6; }
12714 if ${libltdl_cv_preloaded_symbols+:} false; then :
12715 $as_echo_n "(cached) " >&6
12716 else
12717 if test -n "$lt_cv_sys_global_symbol_pipe"; then
12718 libltdl_cv_preloaded_symbols=yes
12719 else
12720 libltdl_cv_preloaded_symbols=no
12721 fi
12723 fi
12724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libltdl_cv_preloaded_symbols" >&5
12725 $as_echo "$libltdl_cv_preloaded_symbols" >&6; }
12726 if test x"$libltdl_cv_preloaded_symbols" = xyes; then
12728 $as_echo "#define HAVE_PRELOADED_SYMBOLS 1" >>confdefs.h
12730 fi
12734 # Set options
12747 # Check whether --with-included_ltdl was given.
12748 if test "${with_included_ltdl+set}" = set; then :
12749 withval=$with_included_ltdl;
12750 fi
12753 if test "x$with_included_ltdl" != xyes; then
12754 # We are not being forced to use the included libltdl sources, so
12755 # decide whether there is a useful installed version we can use.
12756 ac_fn_c_check_header_compile "$LINENO" "ltdl.h" "ac_cv_header_ltdl_h" "$ac_includes_default
12758 "
12759 if test "x$ac_cv_header_ltdl_h" = xyes; then :
12760 ac_fn_c_check_decl "$LINENO" "lt_dlinterface_register" "ac_cv_have_decl_lt_dlinterface_register" "$ac_includes_default
12761 #include <ltdl.h>
12762 "
12763 if test "x$ac_cv_have_decl_lt_dlinterface_register" = xyes; then :
12764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lt_dladvise_preload in -lltdl" >&5
12765 $as_echo_n "checking for lt_dladvise_preload in -lltdl... " >&6; }
12766 if ${ac_cv_lib_ltdl_lt_dladvise_preload+:} false; then :
12767 $as_echo_n "(cached) " >&6
12768 else
12769 ac_check_lib_save_LIBS=$LIBS
12770 LIBS="-lltdl $LIBS"
12771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12772 /* end confdefs.h. */
12774 /* Override any GCC internal prototype to avoid an error.
12775 Use char because int might match the return type of a GCC
12776 builtin and then its argument prototype would still apply. */
12777 #ifdef __cplusplus
12778 extern "C"
12779 #endif
12780 char lt_dladvise_preload ();
12781 int
12782 main ()
12783 {
12784 return lt_dladvise_preload ();
12785 ;
12786 return 0;
12787 }
12788 _ACEOF
12789 if ac_fn_c_try_link "$LINENO"; then :
12790 ac_cv_lib_ltdl_lt_dladvise_preload=yes
12791 else
12792 ac_cv_lib_ltdl_lt_dladvise_preload=no
12793 fi
12794 rm -f core conftest.err conftest.$ac_objext \
12795 conftest$ac_exeext conftest.$ac_ext
12796 LIBS=$ac_check_lib_save_LIBS
12797 fi
12798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ltdl_lt_dladvise_preload" >&5
12799 $as_echo "$ac_cv_lib_ltdl_lt_dladvise_preload" >&6; }
12800 if test "x$ac_cv_lib_ltdl_lt_dladvise_preload" = xyes; then :
12801 with_included_ltdl=no
12802 else
12803 with_included_ltdl=yes
12804 fi
12806 else
12807 with_included_ltdl=yes
12808 fi
12810 else
12811 with_included_ltdl=yes
12812 fi
12815 fi
12820 # Check whether --with-ltdl_include was given.
12821 if test "${with_ltdl_include+set}" = set; then :
12822 withval=$with_ltdl_include;
12823 fi
12826 if test -n "$with_ltdl_include"; then
12827 if test -f "$with_ltdl_include/ltdl.h"; then :
12828 else
12829 as_fn_error $? "invalid ltdl include directory: \`$with_ltdl_include'" "$LINENO" 5
12830 fi
12831 else
12832 with_ltdl_include=no
12833 fi
12836 # Check whether --with-ltdl_lib was given.
12837 if test "${with_ltdl_lib+set}" = set; then :
12838 withval=$with_ltdl_lib;
12839 fi
12842 if test -n "$with_ltdl_lib"; then
12843 if test -f "$with_ltdl_lib/libltdl.la"; then :
12844 else
12845 as_fn_error $? "invalid ltdl library directory: \`$with_ltdl_lib'" "$LINENO" 5
12846 fi
12847 else
12848 with_ltdl_lib=no
12849 fi
12851 case ,$with_included_ltdl,$with_ltdl_include,$with_ltdl_lib, in
12852 ,yes,no,no,)
12853 case $enable_ltdl_convenience in
12854 no) as_fn_error $? "this package needs a convenience libltdl" "$LINENO" 5 ;;
12855 "") enable_ltdl_convenience=yes
12856 ac_configure_args="$ac_configure_args --enable-ltdl-convenience" ;;
12857 esac
12858 LIBLTDL='${top_build_prefix}'"${lt_ltdl_dir+$lt_ltdl_dir/}libltdlc.la"
12859 LTDLDEPS=$LIBLTDL
12860 LTDLINCL='-I${top_srcdir}'"${lt_ltdl_dir+/$lt_ltdl_dir}"
12866 # For backwards non-gettext consistent compatibility...
12867 INCLTDL="$LTDLINCL"
12870 ;;
12871 ,no,no,no,)
12872 # If the included ltdl is not to be used, then use the
12873 # preinstalled libltdl we found.
12875 $as_echo "#define HAVE_LTDL 1" >>confdefs.h
12877 LIBLTDL=-lltdl
12878 LTDLDEPS=
12879 LTDLINCL=
12880 ;;
12881 ,no*,no,*)
12882 as_fn_error $? "\`--with-ltdl-include' and \`--with-ltdl-lib' options must be used together" "$LINENO" 5
12883 ;;
12884 *) with_included_ltdl=no
12885 LIBLTDL="-L$with_ltdl_lib -lltdl"
12886 LTDLDEPS=
12887 LTDLINCL="-I$with_ltdl_include"
12888 ;;
12889 esac
12890 INCLTDL="$LTDLINCL"
12892 # Report our decision...
12893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl headers" >&5
12894 $as_echo_n "checking where to find libltdl headers... " >&6; }
12895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LTDLINCL" >&5
12896 $as_echo "$LTDLINCL" >&6; }
12897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where to find libltdl library" >&5
12898 $as_echo_n "checking where to find libltdl library... " >&6; }
12899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBLTDL" >&5
12900 $as_echo "$LIBLTDL" >&6; }
12904 # Check whether --enable-ltdl-install was given.
12905 if test "${enable_ltdl_install+set}" = set; then :
12906 enableval=$enable_ltdl_install;
12907 fi
12910 case ,${enable_ltdl_install},${enable_ltdl_convenience} in
12911 *yes*) ;;
12912 *) enable_ltdl_convenience=yes ;;
12913 esac
12915 if test x"${enable_ltdl_install-no}" != xno; then
12916 INSTALL_LTDL_TRUE=
12917 INSTALL_LTDL_FALSE='#'
12918 else
12919 INSTALL_LTDL_TRUE='#'
12920 INSTALL_LTDL_FALSE=
12921 fi
12923 if test x"${enable_ltdl_convenience-no}" != xno; then
12924 CONVENIENCE_LTDL_TRUE=
12925 CONVENIENCE_LTDL_FALSE='#'
12926 else
12927 CONVENIENCE_LTDL_TRUE='#'
12928 CONVENIENCE_LTDL_FALSE=
12929 fi
12933 subdirs="$subdirs libltdl"
12938 # In order that ltdl.c can compile, find out the first AC_CONFIG_HEADERS
12939 # the user used. This is so that ltdl.h can pick up the parent projects
12940 # config.h file, The first file in AC_CONFIG_HEADERS must contain the
12941 # definitions required by ltdl.c.
12942 # FIXME: Remove use of undocumented AC_LIST_HEADERS (2.59 compatibility).
12946 for ac_header in unistd.h dl.h sys/dl.h dld.h mach-o/dyld.h dirent.h
12947 do :
12948 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
12949 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
12950 "
12951 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
12952 cat >>confdefs.h <<_ACEOF
12953 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
12954 _ACEOF
12956 fi
12958 done
12961 for ac_func in closedir opendir readdir
12962 do :
12963 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12964 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12965 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12966 cat >>confdefs.h <<_ACEOF
12967 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12968 _ACEOF
12970 else
12973 _LT_LIBOBJS="$_LT_LIBOBJS lt__dirent.$ac_objext"
12975 fi
12976 done
12978 for ac_func in strlcat strlcpy
12979 do :
12980 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
12981 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
12982 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
12983 cat >>confdefs.h <<_ACEOF
12984 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
12985 _ACEOF
12987 else
12990 _LT_LIBOBJS="$_LT_LIBOBJS lt__strl.$ac_objext"
12992 fi
12993 done
12997 cat >>confdefs.h <<_ACEOF
12998 #define LT_LIBEXT "$libext"
12999 _ACEOF
13002 name=
13003 eval "lt_libprefix=\"$libname_spec\""
13005 cat >>confdefs.h <<_ACEOF
13006 #define LT_LIBPREFIX "$lt_libprefix"
13007 _ACEOF
13010 name=ltdl
13011 eval "LTDLOPEN=\"$libname_spec\""
13020 # Only expand once:
13024 $as_echo "#define LIBTOOL_VERSION 2" >>confdefs.h
13029 am__api_version='1.14'
13031 # Find a good install program. We prefer a C program (faster),
13032 # so one script is as good as another. But avoid the broken or
13033 # incompatible versions:
13034 # SysV /etc/install, /usr/sbin/install
13035 # SunOS /usr/etc/install
13036 # IRIX /sbin/install
13037 # AIX /bin/install
13038 # AmigaOS /C/install, which installs bootblocks on floppy discs
13039 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
13040 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
13041 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
13042 # OS/2's system install, which has a completely different semantic
13043 # ./install, which can be erroneously created by make from ./install.sh.
13044 # Reject install programs that cannot install multiple files.
13045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
13046 $as_echo_n "checking for a BSD-compatible install... " >&6; }
13047 if test -z "$INSTALL"; then
13048 if ${ac_cv_path_install+:} false; then :
13049 $as_echo_n "(cached) " >&6
13050 else
13051 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13052 for as_dir in $PATH
13053 do
13054 IFS=$as_save_IFS
13055 test -z "$as_dir" && as_dir=.
13056 # Account for people who put trailing slashes in PATH elements.
13057 case $as_dir/ in #((
13058 ./ | .// | /[cC]/* | \
13059 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
13060 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
13061 /usr/ucb/* ) ;;
13062 *)
13063 # OSF1 and SCO ODT 3.0 have their own names for install.
13064 # Don't use installbsd from OSF since it installs stuff as root
13065 # by default.
13066 for ac_prog in ginstall scoinst install; do
13067 for ac_exec_ext in '' $ac_executable_extensions; do
13068 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
13069 if test $ac_prog = install &&
13070 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
13071 # AIX install. It has an incompatible calling convention.
13072 :
13073 elif test $ac_prog = install &&
13074 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
13075 # program-specific install script used by HP pwplus--don't use.
13076 :
13077 else
13078 rm -rf conftest.one conftest.two conftest.dir
13079 echo one > conftest.one
13080 echo two > conftest.two
13081 mkdir conftest.dir
13082 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
13083 test -s conftest.one && test -s conftest.two &&
13084 test -s conftest.dir/conftest.one &&
13085 test -s conftest.dir/conftest.two
13086 then
13087 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
13088 break 3
13089 fi
13090 fi
13091 fi
13092 done
13093 done
13094 ;;
13095 esac
13097 done
13098 IFS=$as_save_IFS
13100 rm -rf conftest.one conftest.two conftest.dir
13102 fi
13103 if test "${ac_cv_path_install+set}" = set; then
13104 INSTALL=$ac_cv_path_install
13105 else
13106 # As a last resort, use the slow shell script. Don't cache a
13107 # value for INSTALL within a source directory, because that will
13108 # break other packages using the cache if that directory is
13109 # removed, or if the value is a relative name.
13110 INSTALL=$ac_install_sh
13111 fi
13112 fi
13113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
13114 $as_echo "$INSTALL" >&6; }
13116 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
13117 # It thinks the first close brace ends the variable substitution.
13118 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
13120 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
13122 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
13124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
13125 $as_echo_n "checking whether build environment is sane... " >&6; }
13126 # Reject unsafe characters in $srcdir or the absolute working directory
13127 # name. Accept space and tab only in the latter.
13128 am_lf='
13129 '
13130 case `pwd` in
13131 *[\\\"\#\$\&\'\`$am_lf]*)
13132 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
13133 esac
13134 case $srcdir in
13135 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
13136 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
13137 esac
13139 # Do 'set' in a subshell so we don't clobber the current shell's
13140 # arguments. Must try -L first in case configure is actually a
13141 # symlink; some systems play weird games with the mod time of symlinks
13142 # (eg FreeBSD returns the mod time of the symlink's containing
13143 # directory).
13144 if (
13145 am_has_slept=no
13146 for am_try in 1 2; do
13147 echo "timestamp, slept: $am_has_slept" > conftest.file
13148 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
13149 if test "$*" = "X"; then
13150 # -L didn't work.
13151 set X `ls -t "$srcdir/configure" conftest.file`
13152 fi
13153 if test "$*" != "X $srcdir/configure conftest.file" \
13154 && test "$*" != "X conftest.file $srcdir/configure"; then
13156 # If neither matched, then we have a broken ls. This can happen
13157 # if, for instance, CONFIG_SHELL is bash and it inherits a
13158 # broken ls alias from the environment. This has actually
13159 # happened. Such a system could not be considered "sane".
13160 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
13161 alias in your environment" "$LINENO" 5
13162 fi
13163 if test "$2" = conftest.file || test $am_try -eq 2; then
13164 break
13165 fi
13166 # Just in case.
13167 sleep 1
13168 am_has_slept=yes
13169 done
13170 test "$2" = conftest.file
13171 )
13172 then
13173 # Ok.
13174 :
13175 else
13176 as_fn_error $? "newly created file is older than distributed files!
13177 Check your system clock" "$LINENO" 5
13178 fi
13179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13180 $as_echo "yes" >&6; }
13181 # If we didn't sleep, we still need to ensure time stamps of config.status and
13182 # generated files are strictly newer.
13183 am_sleep_pid=
13184 if grep 'slept: no' conftest.file >/dev/null 2>&1; then
13185 ( sleep 1 ) &
13186 am_sleep_pid=$!
13187 fi
13189 rm -f conftest.file
13191 test "$program_prefix" != NONE &&
13192 program_transform_name="s&^&$program_prefix&;$program_transform_name"
13193 # Use a double $ so make ignores it.
13194 test "$program_suffix" != NONE &&
13195 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
13196 # Double any \ or $.
13197 # By default was `s,x,x', remove it if useless.
13198 ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
13199 program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
13201 if test x"${MISSING+set}" != xset; then
13202 case $am_aux_dir in
13203 *\ * | *\ *)
13204 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
13205 *)
13206 MISSING="\${SHELL} $am_aux_dir/missing" ;;
13207 esac
13208 fi
13209 # Use eval to expand $SHELL
13210 if eval "$MISSING --is-lightweight"; then
13211 am_missing_run="$MISSING "
13212 else
13213 am_missing_run=
13214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
13215 $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
13216 fi
13218 if test x"${install_sh}" != xset; then
13219 case $am_aux_dir in
13220 *\ * | *\ *)
13221 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
13222 *)
13223 install_sh="\${SHELL} $am_aux_dir/install-sh"
13224 esac
13225 fi
13227 # Installed binaries are usually stripped using 'strip' when the user
13228 # run "make install-strip". However 'strip' might not be the right
13229 # tool to use in cross-compilation environments, therefore Automake
13230 # will honor the 'STRIP' environment variable to overrule this program.
13231 if test "$cross_compiling" != no; then
13232 if test -n "$ac_tool_prefix"; then
13233 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
13234 set dummy ${ac_tool_prefix}strip; ac_word=$2
13235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13236 $as_echo_n "checking for $ac_word... " >&6; }
13237 if ${ac_cv_prog_STRIP+:} false; then :
13238 $as_echo_n "(cached) " >&6
13239 else
13240 if test -n "$STRIP"; then
13241 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
13242 else
13243 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13244 for as_dir in $PATH
13245 do
13246 IFS=$as_save_IFS
13247 test -z "$as_dir" && as_dir=.
13248 for ac_exec_ext in '' $ac_executable_extensions; do
13249 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13250 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
13251 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13252 break 2
13253 fi
13254 done
13255 done
13256 IFS=$as_save_IFS
13258 fi
13259 fi
13260 STRIP=$ac_cv_prog_STRIP
13261 if test -n "$STRIP"; then
13262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
13263 $as_echo "$STRIP" >&6; }
13264 else
13265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13266 $as_echo "no" >&6; }
13267 fi
13270 fi
13271 if test -z "$ac_cv_prog_STRIP"; then
13272 ac_ct_STRIP=$STRIP
13273 # Extract the first word of "strip", so it can be a program name with args.
13274 set dummy strip; ac_word=$2
13275 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13276 $as_echo_n "checking for $ac_word... " >&6; }
13277 if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
13278 $as_echo_n "(cached) " >&6
13279 else
13280 if test -n "$ac_ct_STRIP"; then
13281 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
13282 else
13283 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13284 for as_dir in $PATH
13285 do
13286 IFS=$as_save_IFS
13287 test -z "$as_dir" && as_dir=.
13288 for ac_exec_ext in '' $ac_executable_extensions; do
13289 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
13290 ac_cv_prog_ac_ct_STRIP="strip"
13291 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
13292 break 2
13293 fi
13294 done
13295 done
13296 IFS=$as_save_IFS
13298 fi
13299 fi
13300 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
13301 if test -n "$ac_ct_STRIP"; then
13302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
13303 $as_echo "$ac_ct_STRIP" >&6; }
13304 else
13305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13306 $as_echo "no" >&6; }
13307 fi
13309 if test "x$ac_ct_STRIP" = x; then
13310 STRIP=":"
13311 else
13312 case $cross_compiling:$ac_tool_warned in
13313 yes:)
13314 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
13315 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
13316 ac_tool_warned=yes ;;
13317 esac
13318 STRIP=$ac_ct_STRIP
13319 fi
13320 else
13321 STRIP="$ac_cv_prog_STRIP"
13322 fi
13324 fi
13325 INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
13327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
13328 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
13329 if test -z "$MKDIR_P"; then
13330 if ${ac_cv_path_mkdir+:} false; then :
13331 $as_echo_n "(cached) " >&6
13332 else
13333 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
13334 for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
13335 do
13336 IFS=$as_save_IFS
13337 test -z "$as_dir" && as_dir=.
13338 for ac_prog in mkdir gmkdir; do
13339 for ac_exec_ext in '' $ac_executable_extensions; do
13340 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
13341 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
13342 'mkdir (GNU coreutils) '* | \
13343 'mkdir (coreutils) '* | \
13344 'mkdir (fileutils) '4.1*)
13345 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
13346 break 3;;
13347 esac
13348 done
13349 done
13350 done
13351 IFS=$as_save_IFS
13353 fi
13355 test -d ./--version && rmdir ./--version
13356 if test "${ac_cv_path_mkdir+set}" = set; then
13357 MKDIR_P="$ac_cv_path_mkdir -p"
13358 else
13359 # As a last resort, use the slow shell script. Don't cache a
13360 # value for MKDIR_P within a source directory, because that will
13361 # break other packages using the cache if that directory is
13362 # removed, or if the value is a relative name.
13363 MKDIR_P="$ac_install_sh -d"
13364 fi
13365 fi
13366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
13367 $as_echo "$MKDIR_P" >&6; }
13369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
13370 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
13371 set x ${MAKE-make}
13372 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
13373 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
13374 $as_echo_n "(cached) " >&6
13375 else
13376 cat >conftest.make <<\_ACEOF
13377 SHELL = /bin/sh
13378 all:
13379 @echo '@@@%%%=$(MAKE)=@@@%%%'
13380 _ACEOF
13381 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
13382 case `${MAKE-make} -f conftest.make 2>/dev/null` in
13383 *@@@%%%=?*=@@@%%%*)
13384 eval ac_cv_prog_make_${ac_make}_set=yes;;
13385 *)
13386 eval ac_cv_prog_make_${ac_make}_set=no;;
13387 esac
13388 rm -f conftest.make
13389 fi
13390 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
13391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13392 $as_echo "yes" >&6; }
13393 SET_MAKE=
13394 else
13395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13396 $as_echo "no" >&6; }
13397 SET_MAKE="MAKE=${MAKE-make}"
13398 fi
13400 rm -rf .tst 2>/dev/null
13401 mkdir .tst 2>/dev/null
13402 if test -d .tst; then
13403 am__leading_dot=.
13404 else
13405 am__leading_dot=_
13406 fi
13407 rmdir .tst 2>/dev/null
13409 DEPDIR="${am__leading_dot}deps"
13411 ac_config_commands="$ac_config_commands depfiles"
13414 am_make=${MAKE-make}
13415 cat > confinc << 'END'
13416 am__doit:
13417 @echo this is the am__doit target
13418 .PHONY: am__doit
13419 END
13420 # If we don't find an include directive, just comment out the code.
13421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
13422 $as_echo_n "checking for style of include used by $am_make... " >&6; }
13423 am__include="#"
13424 am__quote=
13425 _am_result=none
13426 # First try GNU make style include.
13427 echo "include confinc" > confmf
13428 # Ignore all kinds of additional output from 'make'.
13429 case `$am_make -s -f confmf 2> /dev/null` in #(
13430 *the\ am__doit\ target*)
13431 am__include=include
13432 am__quote=
13433 _am_result=GNU
13434 ;;
13435 esac
13436 # Now try BSD make style include.
13437 if test "$am__include" = "#"; then
13438 echo '.include "confinc"' > confmf
13439 case `$am_make -s -f confmf 2> /dev/null` in #(
13440 *the\ am__doit\ target*)
13441 am__include=.include
13442 am__quote="\""
13443 _am_result=BSD
13444 ;;
13445 esac
13446 fi
13449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
13450 $as_echo "$_am_result" >&6; }
13451 rm -f confinc confmf
13453 # Check whether --enable-dependency-tracking was given.
13454 if test "${enable_dependency_tracking+set}" = set; then :
13455 enableval=$enable_dependency_tracking;
13456 fi
13458 if test "x$enable_dependency_tracking" != xno; then
13459 am_depcomp="$ac_aux_dir/depcomp"
13460 AMDEPBACKSLASH='\'
13461 am__nodep='_no'
13462 fi
13463 if test "x$enable_dependency_tracking" != xno; then
13464 AMDEP_TRUE=
13465 AMDEP_FALSE='#'
13466 else
13467 AMDEP_TRUE='#'
13468 AMDEP_FALSE=
13469 fi
13472 # Check whether --enable-silent-rules was given.
13473 if test "${enable_silent_rules+set}" = set; then :
13474 enableval=$enable_silent_rules;
13475 fi
13477 case $enable_silent_rules in # (((
13478 yes) AM_DEFAULT_VERBOSITY=0;;
13479 no) AM_DEFAULT_VERBOSITY=1;;
13480 *) AM_DEFAULT_VERBOSITY=1;;
13481 esac
13482 am_make=${MAKE-make}
13483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
13484 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
13485 if ${am_cv_make_support_nested_variables+:} false; then :
13486 $as_echo_n "(cached) " >&6
13487 else
13488 if $as_echo 'TRUE=$(BAR$(V))
13489 BAR0=false
13490 BAR1=true
13491 V=1
13492 am__doit:
13493 @$(TRUE)
13494 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
13495 am_cv_make_support_nested_variables=yes
13496 else
13497 am_cv_make_support_nested_variables=no
13498 fi
13499 fi
13500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
13501 $as_echo "$am_cv_make_support_nested_variables" >&6; }
13502 if test $am_cv_make_support_nested_variables = yes; then
13503 AM_V='$(V)'
13504 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
13505 else
13506 AM_V=$AM_DEFAULT_VERBOSITY
13507 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
13508 fi
13509 AM_BACKSLASH='\'
13511 if test "`cd $srcdir && pwd`" != "`pwd`"; then
13512 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
13513 # is not polluted with repeated "-I."
13514 am__isrc=' -I$(srcdir)'
13515 # test to see if srcdir already configured
13516 if test -f $srcdir/config.status; then
13517 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
13518 fi
13519 fi
13521 # test whether we have cygpath
13522 if test -z "$CYGPATH_W"; then
13523 if (cygpath --version) >/dev/null 2>/dev/null; then
13524 CYGPATH_W='cygpath -w'
13525 else
13526 CYGPATH_W=echo
13527 fi
13528 fi
13531 # Define the identity of the package.
13532 PACKAGE='collectd'
13533 VERSION='5.5.0'
13536 cat >>confdefs.h <<_ACEOF
13537 #define PACKAGE "$PACKAGE"
13538 _ACEOF
13541 cat >>confdefs.h <<_ACEOF
13542 #define VERSION "$VERSION"
13543 _ACEOF
13545 # Some tools Automake needs.
13547 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
13550 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
13553 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
13556 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
13559 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
13561 # For better backward compatibility. To be removed once Automake 1.9.x
13562 # dies out for good. For more background, see:
13563 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
13564 # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
13565 mkdir_p='$(MKDIR_P)'
13567 # We need awk for the "check" target. The system "awk" is bad on
13568 # some platforms.
13569 # Always define AMTAR for backward compatibility. Yes, it's still used
13570 # in the wild :-( We should find a proper way to deprecate it ...
13571 AMTAR='$${TAR-tar}'
13574 # We'll loop over all known methods to create a tar archive until one works.
13575 _am_tools='gnutar pax cpio none'
13579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to create a pax tar archive" >&5
13580 $as_echo_n "checking how to create a pax tar archive... " >&6; }
13582 # Go ahead even if we have the value already cached. We do so because we
13583 # need to set the values for the 'am__tar' and 'am__untar' variables.
13584 _am_tools=${am_cv_prog_tar_pax-$_am_tools}
13586 for _am_tool in $_am_tools; do
13587 case $_am_tool in
13588 gnutar)
13589 for _am_tar in tar gnutar gtar; do
13590 { echo "$as_me:$LINENO: $_am_tar --version" >&5
13591 ($_am_tar --version) >&5 2>&5
13592 ac_status=$?
13593 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13594 (exit $ac_status); } && break
13595 done
13596 am__tar="$_am_tar --format=posix -chf - "'"$$tardir"'
13597 am__tar_="$_am_tar --format=posix -chf - "'"$tardir"'
13598 am__untar="$_am_tar -xf -"
13599 ;;
13600 plaintar)
13601 # Must skip GNU tar: if it does not support --format= it doesn't create
13602 # ustar tarball either.
13603 (tar --version) >/dev/null 2>&1 && continue
13604 am__tar='tar chf - "$$tardir"'
13605 am__tar_='tar chf - "$tardir"'
13606 am__untar='tar xf -'
13607 ;;
13608 pax)
13609 am__tar='pax -L -x pax -w "$$tardir"'
13610 am__tar_='pax -L -x pax -w "$tardir"'
13611 am__untar='pax -r'
13612 ;;
13613 cpio)
13614 am__tar='find "$$tardir" -print | cpio -o -H pax -L'
13615 am__tar_='find "$tardir" -print | cpio -o -H pax -L'
13616 am__untar='cpio -i -H pax -d'
13617 ;;
13618 none)
13619 am__tar=false
13620 am__tar_=false
13621 am__untar=false
13622 ;;
13623 esac
13625 # If the value was cached, stop now. We just wanted to have am__tar
13626 # and am__untar set.
13627 test -n "${am_cv_prog_tar_pax}" && break
13629 # tar/untar a dummy directory, and stop if the command works.
13630 rm -rf conftest.dir
13631 mkdir conftest.dir
13632 echo GrepMe > conftest.dir/file
13633 { echo "$as_me:$LINENO: tardir=conftest.dir && eval $am__tar_ >conftest.tar" >&5
13634 (tardir=conftest.dir && eval $am__tar_ >conftest.tar) >&5 2>&5
13635 ac_status=$?
13636 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13637 (exit $ac_status); }
13638 rm -rf conftest.dir
13639 if test -s conftest.tar; then
13640 { echo "$as_me:$LINENO: $am__untar <conftest.tar" >&5
13641 ($am__untar <conftest.tar) >&5 2>&5
13642 ac_status=$?
13643 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13644 (exit $ac_status); }
13645 { echo "$as_me:$LINENO: cat conftest.dir/file" >&5
13646 (cat conftest.dir/file) >&5 2>&5
13647 ac_status=$?
13648 echo "$as_me:$LINENO: \$? = $ac_status" >&5
13649 (exit $ac_status); }
13650 grep GrepMe conftest.dir/file >/dev/null 2>&1 && break
13651 fi
13652 done
13653 rm -rf conftest.dir
13655 if ${am_cv_prog_tar_pax+:} false; then :
13656 $as_echo_n "(cached) " >&6
13657 else
13658 am_cv_prog_tar_pax=$_am_tool
13659 fi
13661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_tar_pax" >&5
13662 $as_echo "$am_cv_prog_tar_pax" >&6; }
13668 depcc="$CC" am_compiler_list=
13670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
13671 $as_echo_n "checking dependency style of $depcc... " >&6; }
13672 if ${am_cv_CC_dependencies_compiler_type+:} false; then :
13673 $as_echo_n "(cached) " >&6
13674 else
13675 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
13676 # We make a subdir and do the tests there. Otherwise we can end up
13677 # making bogus files that we don't know about and never remove. For
13678 # instance it was reported that on HP-UX the gcc test will end up
13679 # making a dummy file named 'D' -- because '-MD' means "put the output
13680 # in D".
13681 rm -rf conftest.dir
13682 mkdir conftest.dir
13683 # Copy depcomp to subdir because otherwise we won't find it if we're
13684 # using a relative directory.
13685 cp "$am_depcomp" conftest.dir
13686 cd conftest.dir
13687 # We will build objects and dependencies in a subdirectory because
13688 # it helps to detect inapplicable dependency modes. For instance
13689 # both Tru64's cc and ICC support -MD to output dependencies as a
13690 # side effect of compilation, but ICC will put the dependencies in
13691 # the current directory while Tru64 will put them in the object
13692 # directory.
13693 mkdir sub
13695 am_cv_CC_dependencies_compiler_type=none
13696 if test "$am_compiler_list" = ""; then
13697 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
13698 fi
13699 am__universal=false
13700 case " $depcc " in #(
13701 *\ -arch\ *\ -arch\ *) am__universal=true ;;
13702 esac
13704 for depmode in $am_compiler_list; do
13705 # Setup a source with many dependencies, because some compilers
13706 # like to wrap large dependency lists on column 80 (with \), and
13707 # we should not choose a depcomp mode which is confused by this.
13708 #
13709 # We need to recreate these files for each test, as the compiler may
13710 # overwrite some of them when testing with obscure command lines.
13711 # This happens at least with the AIX C compiler.
13712 : > sub/conftest.c
13713 for i in 1 2 3 4 5 6; do
13714 echo '#include "conftst'$i'.h"' >> sub/conftest.c
13715 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
13716 # Solaris 10 /bin/sh.
13717 echo '/* dummy */' > sub/conftst$i.h
13718 done
13719 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
13721 # We check with '-c' and '-o' for the sake of the "dashmstdout"
13722 # mode. It turns out that the SunPro C++ compiler does not properly
13723 # handle '-M -o', and we need to detect this. Also, some Intel
13724 # versions had trouble with output in subdirs.
13725 am__obj=sub/conftest.${OBJEXT-o}
13726 am__minus_obj="-o $am__obj"
13727 case $depmode in
13728 gcc)
13729 # This depmode causes a compiler race in universal mode.
13730 test "$am__universal" = false || continue
13731 ;;
13732 nosideeffect)
13733 # After this tag, mechanisms are not by side-effect, so they'll
13734 # only be used when explicitly requested.
13735 if test "x$enable_dependency_tracking" = xyes; then
13736 continue
13737 else
13738 break
13739 fi
13740 ;;
13741 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
13742 # This compiler won't grok '-c -o', but also, the minuso test has
13743 # not run yet. These depmodes are late enough in the game, and
13744 # so weak that their functioning should not be impacted.
13745 am__obj=conftest.${OBJEXT-o}
13746 am__minus_obj=
13747 ;;
13748 none) break ;;
13749 esac
13750 if depmode=$depmode \
13751 source=sub/conftest.c object=$am__obj \
13752 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
13753 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
13754 >/dev/null 2>conftest.err &&
13755 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
13756 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
13757 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
13758 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
13759 # icc doesn't choke on unknown options, it will just issue warnings
13760 # or remarks (even with -Werror). So we grep stderr for any message
13761 # that says an option was ignored or not supported.
13762 # When given -MP, icc 7.0 and 7.1 complain thusly:
13763 # icc: Command line warning: ignoring option '-M'; no argument required
13764 # The diagnosis changed in icc 8.0:
13765 # icc: Command line remark: option '-MP' not supported
13766 if (grep 'ignoring option' conftest.err ||
13767 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
13768 am_cv_CC_dependencies_compiler_type=$depmode
13769 break
13770 fi
13771 fi
13772 done
13774 cd ..
13775 rm -rf conftest.dir
13776 else
13777 am_cv_CC_dependencies_compiler_type=none
13778 fi
13780 fi
13781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
13782 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
13783 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
13785 if
13786 test "x$enable_dependency_tracking" != xno \
13787 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
13788 am__fastdepCC_TRUE=
13789 am__fastdepCC_FALSE='#'
13790 else
13791 am__fastdepCC_TRUE='#'
13792 am__fastdepCC_FALSE=
13793 fi
13797 # POSIX will say in a future version that running "rm -f" with no argument
13798 # is OK; and we want to be able to make that assumption in our Makefile
13799 # recipes. So use an aggressive probe to check that the usage we want is
13800 # actually supported "in the wild" to an acceptable degree.
13801 # See automake bug#10828.
13802 # To make any issue more visible, cause the running configure to be aborted
13803 # by default if the 'rm' program in use doesn't match our expectations; the
13804 # user can still override this though.
13805 if rm -f && rm -fr && rm -rf; then : OK; else
13806 cat >&2 <<'END'
13807 Oops!
13809 Your 'rm' program seems unable to run without file operands specified
13810 on the command line, even when the '-f' option is present. This is contrary
13811 to the behaviour of most rm programs out there, and not conforming with
13812 the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
13814 Please tell bug-automake@gnu.org about your system, including the value
13815 of your $PATH and any error possibly output before this message. This
13816 can help us improve future automake versions.
13818 END
13819 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
13820 echo 'Configuration will proceed anyway, since you have set the' >&2
13821 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
13822 echo >&2
13823 else
13824 cat >&2 <<'END'
13825 Aborting the configuration process, to ensure you take notice of the issue.
13827 You can download and install GNU coreutils to get an 'rm' implementation
13828 that behaves properly: <http://www.gnu.org/software/coreutils/>.
13830 If you want to complete the configuration process using your problematic
13831 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
13832 to "yes", and re-run configure.
13834 END
13835 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
13836 fi
13837 fi
13838 # Check whether --enable-silent-rules was given.
13839 if test "${enable_silent_rules+set}" = set; then :
13840 enableval=$enable_silent_rules;
13841 fi
13843 case $enable_silent_rules in # (((
13844 yes) AM_DEFAULT_VERBOSITY=0;;
13845 no) AM_DEFAULT_VERBOSITY=1;;
13846 *) AM_DEFAULT_VERBOSITY=0;;
13847 esac
13848 am_make=${MAKE-make}
13849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
13850 $as_echo_n "checking whether $am_make supports nested variables... " >&6; }
13851 if ${am_cv_make_support_nested_variables+:} false; then :
13852 $as_echo_n "(cached) " >&6
13853 else
13854 if $as_echo 'TRUE=$(BAR$(V))
13855 BAR0=false
13856 BAR1=true
13857 V=1
13858 am__doit:
13859 @$(TRUE)
13860 .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
13861 am_cv_make_support_nested_variables=yes
13862 else
13863 am_cv_make_support_nested_variables=no
13864 fi
13865 fi
13866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
13867 $as_echo "$am_cv_make_support_nested_variables" >&6; }
13868 if test $am_cv_make_support_nested_variables = yes; then
13869 AM_V='$(V)'
13870 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
13871 else
13872 AM_V=$AM_DEFAULT_VERBOSITY
13873 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
13874 fi
13875 AM_BACKSLASH='\'
13877 ac_ext=c
13878 ac_cpp='$CPP $CPPFLAGS'
13879 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
13880 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
13881 ac_compiler_gnu=$ac_cv_c_compiler_gnu
13886 # Check whether --enable-largefile was given.
13887 if test "${enable_largefile+set}" = set; then :
13888 enableval=$enable_largefile;
13889 fi
13891 if test "$enable_largefile" != no; then
13893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
13894 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
13895 if ${ac_cv_sys_largefile_CC+:} false; then :
13896 $as_echo_n "(cached) " >&6
13897 else
13898 ac_cv_sys_largefile_CC=no
13899 if test "$GCC" != yes; then
13900 ac_save_CC=$CC
13901 while :; do
13902 # IRIX 6.2 and later do not support large files by default,
13903 # so use the C compiler's -n32 option if that helps.
13904 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13905 /* end confdefs.h. */
13906 #include <sys/types.h>
13907 /* Check that off_t can represent 2**63 - 1 correctly.
13908 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13909 since some C++ compilers masquerading as C compilers
13910 incorrectly reject 9223372036854775807. */
13911 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
13912 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13913 && LARGE_OFF_T % 2147483647 == 1)
13914 ? 1 : -1];
13915 int
13916 main ()
13917 {
13919 ;
13920 return 0;
13921 }
13922 _ACEOF
13923 if ac_fn_c_try_compile "$LINENO"; then :
13924 break
13925 fi
13926 rm -f core conftest.err conftest.$ac_objext
13927 CC="$CC -n32"
13928 if ac_fn_c_try_compile "$LINENO"; then :
13929 ac_cv_sys_largefile_CC=' -n32'; break
13930 fi
13931 rm -f core conftest.err conftest.$ac_objext
13932 break
13933 done
13934 CC=$ac_save_CC
13935 rm -f conftest.$ac_ext
13936 fi
13937 fi
13938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
13939 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
13940 if test "$ac_cv_sys_largefile_CC" != no; then
13941 CC=$CC$ac_cv_sys_largefile_CC
13942 fi
13944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
13945 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
13946 if ${ac_cv_sys_file_offset_bits+:} false; then :
13947 $as_echo_n "(cached) " >&6
13948 else
13949 while :; do
13950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13951 /* end confdefs.h. */
13952 #include <sys/types.h>
13953 /* Check that off_t can represent 2**63 - 1 correctly.
13954 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13955 since some C++ compilers masquerading as C compilers
13956 incorrectly reject 9223372036854775807. */
13957 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
13958 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13959 && LARGE_OFF_T % 2147483647 == 1)
13960 ? 1 : -1];
13961 int
13962 main ()
13963 {
13965 ;
13966 return 0;
13967 }
13968 _ACEOF
13969 if ac_fn_c_try_compile "$LINENO"; then :
13970 ac_cv_sys_file_offset_bits=no; break
13971 fi
13972 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13974 /* end confdefs.h. */
13975 #define _FILE_OFFSET_BITS 64
13976 #include <sys/types.h>
13977 /* Check that off_t can represent 2**63 - 1 correctly.
13978 We can't simply define LARGE_OFF_T to be 9223372036854775807,
13979 since some C++ compilers masquerading as C compilers
13980 incorrectly reject 9223372036854775807. */
13981 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
13982 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
13983 && LARGE_OFF_T % 2147483647 == 1)
13984 ? 1 : -1];
13985 int
13986 main ()
13987 {
13989 ;
13990 return 0;
13991 }
13992 _ACEOF
13993 if ac_fn_c_try_compile "$LINENO"; then :
13994 ac_cv_sys_file_offset_bits=64; break
13995 fi
13996 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
13997 ac_cv_sys_file_offset_bits=unknown
13998 break
13999 done
14000 fi
14001 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
14002 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
14003 case $ac_cv_sys_file_offset_bits in #(
14004 no | unknown) ;;
14005 *)
14006 cat >>confdefs.h <<_ACEOF
14007 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
14008 _ACEOF
14009 ;;
14010 esac
14011 rm -rf conftest*
14012 if test $ac_cv_sys_file_offset_bits = unknown; then
14013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
14014 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
14015 if ${ac_cv_sys_large_files+:} false; then :
14016 $as_echo_n "(cached) " >&6
14017 else
14018 while :; do
14019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14020 /* end confdefs.h. */
14021 #include <sys/types.h>
14022 /* Check that off_t can represent 2**63 - 1 correctly.
14023 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14024 since some C++ compilers masquerading as C compilers
14025 incorrectly reject 9223372036854775807. */
14026 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
14027 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14028 && LARGE_OFF_T % 2147483647 == 1)
14029 ? 1 : -1];
14030 int
14031 main ()
14032 {
14034 ;
14035 return 0;
14036 }
14037 _ACEOF
14038 if ac_fn_c_try_compile "$LINENO"; then :
14039 ac_cv_sys_large_files=no; break
14040 fi
14041 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14043 /* end confdefs.h. */
14044 #define _LARGE_FILES 1
14045 #include <sys/types.h>
14046 /* Check that off_t can represent 2**63 - 1 correctly.
14047 We can't simply define LARGE_OFF_T to be 9223372036854775807,
14048 since some C++ compilers masquerading as C compilers
14049 incorrectly reject 9223372036854775807. */
14050 #define LARGE_OFF_T ((((off_t) 1 << 31) << 31) - 1 + (((off_t) 1 << 31) << 31))
14051 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
14052 && LARGE_OFF_T % 2147483647 == 1)
14053 ? 1 : -1];
14054 int
14055 main ()
14056 {
14058 ;
14059 return 0;
14060 }
14061 _ACEOF
14062 if ac_fn_c_try_compile "$LINENO"; then :
14063 ac_cv_sys_large_files=1; break
14064 fi
14065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14066 ac_cv_sys_large_files=unknown
14067 break
14068 done
14069 fi
14070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
14071 $as_echo "$ac_cv_sys_large_files" >&6; }
14072 case $ac_cv_sys_large_files in #(
14073 no | unknown) ;;
14074 *)
14075 cat >>confdefs.h <<_ACEOF
14076 #define _LARGE_FILES $ac_cv_sys_large_files
14077 _ACEOF
14078 ;;
14079 esac
14080 rm -rf conftest*
14081 fi
14084 fi
14087 #
14088 # Checks for programs.
14089 #
14090 ac_ext=c
14091 ac_cpp='$CPP $CPPFLAGS'
14092 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14093 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14094 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14095 if test -n "$ac_tool_prefix"; then
14096 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
14097 set dummy ${ac_tool_prefix}gcc; ac_word=$2
14098 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14099 $as_echo_n "checking for $ac_word... " >&6; }
14100 if ${ac_cv_prog_CC+:} false; then :
14101 $as_echo_n "(cached) " >&6
14102 else
14103 if test -n "$CC"; then
14104 ac_cv_prog_CC="$CC" # Let the user override the test.
14105 else
14106 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14107 for as_dir in $PATH
14108 do
14109 IFS=$as_save_IFS
14110 test -z "$as_dir" && as_dir=.
14111 for ac_exec_ext in '' $ac_executable_extensions; do
14112 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14113 ac_cv_prog_CC="${ac_tool_prefix}gcc"
14114 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14115 break 2
14116 fi
14117 done
14118 done
14119 IFS=$as_save_IFS
14121 fi
14122 fi
14123 CC=$ac_cv_prog_CC
14124 if test -n "$CC"; then
14125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
14126 $as_echo "$CC" >&6; }
14127 else
14128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14129 $as_echo "no" >&6; }
14130 fi
14133 fi
14134 if test -z "$ac_cv_prog_CC"; then
14135 ac_ct_CC=$CC
14136 # Extract the first word of "gcc", so it can be a program name with args.
14137 set dummy gcc; ac_word=$2
14138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14139 $as_echo_n "checking for $ac_word... " >&6; }
14140 if ${ac_cv_prog_ac_ct_CC+:} false; then :
14141 $as_echo_n "(cached) " >&6
14142 else
14143 if test -n "$ac_ct_CC"; then
14144 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
14145 else
14146 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14147 for as_dir in $PATH
14148 do
14149 IFS=$as_save_IFS
14150 test -z "$as_dir" && as_dir=.
14151 for ac_exec_ext in '' $ac_executable_extensions; do
14152 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14153 ac_cv_prog_ac_ct_CC="gcc"
14154 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14155 break 2
14156 fi
14157 done
14158 done
14159 IFS=$as_save_IFS
14161 fi
14162 fi
14163 ac_ct_CC=$ac_cv_prog_ac_ct_CC
14164 if test -n "$ac_ct_CC"; then
14165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
14166 $as_echo "$ac_ct_CC" >&6; }
14167 else
14168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14169 $as_echo "no" >&6; }
14170 fi
14172 if test "x$ac_ct_CC" = x; then
14173 CC=""
14174 else
14175 case $cross_compiling:$ac_tool_warned in
14176 yes:)
14177 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14178 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14179 ac_tool_warned=yes ;;
14180 esac
14181 CC=$ac_ct_CC
14182 fi
14183 else
14184 CC="$ac_cv_prog_CC"
14185 fi
14187 if test -z "$CC"; then
14188 if test -n "$ac_tool_prefix"; then
14189 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
14190 set dummy ${ac_tool_prefix}cc; ac_word=$2
14191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14192 $as_echo_n "checking for $ac_word... " >&6; }
14193 if ${ac_cv_prog_CC+:} false; then :
14194 $as_echo_n "(cached) " >&6
14195 else
14196 if test -n "$CC"; then
14197 ac_cv_prog_CC="$CC" # Let the user override the test.
14198 else
14199 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14200 for as_dir in $PATH
14201 do
14202 IFS=$as_save_IFS
14203 test -z "$as_dir" && as_dir=.
14204 for ac_exec_ext in '' $ac_executable_extensions; do
14205 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14206 ac_cv_prog_CC="${ac_tool_prefix}cc"
14207 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14208 break 2
14209 fi
14210 done
14211 done
14212 IFS=$as_save_IFS
14214 fi
14215 fi
14216 CC=$ac_cv_prog_CC
14217 if test -n "$CC"; then
14218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
14219 $as_echo "$CC" >&6; }
14220 else
14221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14222 $as_echo "no" >&6; }
14223 fi
14226 fi
14227 fi
14228 if test -z "$CC"; then
14229 # Extract the first word of "cc", so it can be a program name with args.
14230 set dummy cc; ac_word=$2
14231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14232 $as_echo_n "checking for $ac_word... " >&6; }
14233 if ${ac_cv_prog_CC+:} false; then :
14234 $as_echo_n "(cached) " >&6
14235 else
14236 if test -n "$CC"; then
14237 ac_cv_prog_CC="$CC" # Let the user override the test.
14238 else
14239 ac_prog_rejected=no
14240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14241 for as_dir in $PATH
14242 do
14243 IFS=$as_save_IFS
14244 test -z "$as_dir" && as_dir=.
14245 for ac_exec_ext in '' $ac_executable_extensions; do
14246 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14247 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
14248 ac_prog_rejected=yes
14249 continue
14250 fi
14251 ac_cv_prog_CC="cc"
14252 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14253 break 2
14254 fi
14255 done
14256 done
14257 IFS=$as_save_IFS
14259 if test $ac_prog_rejected = yes; then
14260 # We found a bogon in the path, so make sure we never use it.
14261 set dummy $ac_cv_prog_CC
14262 shift
14263 if test $# != 0; then
14264 # We chose a different compiler from the bogus one.
14265 # However, it has the same basename, so the bogon will be chosen
14266 # first if we set CC to just the basename; use the full file name.
14267 shift
14268 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
14269 fi
14270 fi
14271 fi
14272 fi
14273 CC=$ac_cv_prog_CC
14274 if test -n "$CC"; then
14275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
14276 $as_echo "$CC" >&6; }
14277 else
14278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14279 $as_echo "no" >&6; }
14280 fi
14283 fi
14284 if test -z "$CC"; then
14285 if test -n "$ac_tool_prefix"; then
14286 for ac_prog in cl.exe
14287 do
14288 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
14289 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
14290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14291 $as_echo_n "checking for $ac_word... " >&6; }
14292 if ${ac_cv_prog_CC+:} false; then :
14293 $as_echo_n "(cached) " >&6
14294 else
14295 if test -n "$CC"; then
14296 ac_cv_prog_CC="$CC" # Let the user override the test.
14297 else
14298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14299 for as_dir in $PATH
14300 do
14301 IFS=$as_save_IFS
14302 test -z "$as_dir" && as_dir=.
14303 for ac_exec_ext in '' $ac_executable_extensions; do
14304 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14305 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
14306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14307 break 2
14308 fi
14309 done
14310 done
14311 IFS=$as_save_IFS
14313 fi
14314 fi
14315 CC=$ac_cv_prog_CC
14316 if test -n "$CC"; then
14317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
14318 $as_echo "$CC" >&6; }
14319 else
14320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14321 $as_echo "no" >&6; }
14322 fi
14325 test -n "$CC" && break
14326 done
14327 fi
14328 if test -z "$CC"; then
14329 ac_ct_CC=$CC
14330 for ac_prog in cl.exe
14331 do
14332 # Extract the first word of "$ac_prog", so it can be a program name with args.
14333 set dummy $ac_prog; ac_word=$2
14334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14335 $as_echo_n "checking for $ac_word... " >&6; }
14336 if ${ac_cv_prog_ac_ct_CC+:} false; then :
14337 $as_echo_n "(cached) " >&6
14338 else
14339 if test -n "$ac_ct_CC"; then
14340 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
14341 else
14342 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14343 for as_dir in $PATH
14344 do
14345 IFS=$as_save_IFS
14346 test -z "$as_dir" && as_dir=.
14347 for ac_exec_ext in '' $ac_executable_extensions; do
14348 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14349 ac_cv_prog_ac_ct_CC="$ac_prog"
14350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14351 break 2
14352 fi
14353 done
14354 done
14355 IFS=$as_save_IFS
14357 fi
14358 fi
14359 ac_ct_CC=$ac_cv_prog_ac_ct_CC
14360 if test -n "$ac_ct_CC"; then
14361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
14362 $as_echo "$ac_ct_CC" >&6; }
14363 else
14364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14365 $as_echo "no" >&6; }
14366 fi
14369 test -n "$ac_ct_CC" && break
14370 done
14372 if test "x$ac_ct_CC" = x; then
14373 CC=""
14374 else
14375 case $cross_compiling:$ac_tool_warned in
14376 yes:)
14377 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
14378 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
14379 ac_tool_warned=yes ;;
14380 esac
14381 CC=$ac_ct_CC
14382 fi
14383 fi
14385 fi
14388 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14389 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14390 as_fn_error $? "no acceptable C compiler found in \$PATH
14391 See \`config.log' for more details" "$LINENO" 5; }
14393 # Provide some information about the compiler.
14394 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
14395 set X $ac_compile
14396 ac_compiler=$2
14397 for ac_option in --version -v -V -qversion; do
14398 { { ac_try="$ac_compiler $ac_option >&5"
14399 case "(($ac_try" in
14400 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14401 *) ac_try_echo=$ac_try;;
14402 esac
14403 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14404 $as_echo "$ac_try_echo"; } >&5
14405 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
14406 ac_status=$?
14407 if test -s conftest.err; then
14408 sed '10a\
14409 ... rest of stderr output deleted ...
14410 10q' conftest.err >conftest.er1
14411 cat conftest.er1 >&5
14412 fi
14413 rm -f conftest.er1 conftest.err
14414 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14415 test $ac_status = 0; }
14416 done
14418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
14419 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
14420 if ${ac_cv_c_compiler_gnu+:} false; then :
14421 $as_echo_n "(cached) " >&6
14422 else
14423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14424 /* end confdefs.h. */
14426 int
14427 main ()
14428 {
14429 #ifndef __GNUC__
14430 choke me
14431 #endif
14433 ;
14434 return 0;
14435 }
14436 _ACEOF
14437 if ac_fn_c_try_compile "$LINENO"; then :
14438 ac_compiler_gnu=yes
14439 else
14440 ac_compiler_gnu=no
14441 fi
14442 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14443 ac_cv_c_compiler_gnu=$ac_compiler_gnu
14445 fi
14446 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
14447 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
14448 if test $ac_compiler_gnu = yes; then
14449 GCC=yes
14450 else
14451 GCC=
14452 fi
14453 ac_test_CFLAGS=${CFLAGS+set}
14454 ac_save_CFLAGS=$CFLAGS
14455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
14456 $as_echo_n "checking whether $CC accepts -g... " >&6; }
14457 if ${ac_cv_prog_cc_g+:} false; then :
14458 $as_echo_n "(cached) " >&6
14459 else
14460 ac_save_c_werror_flag=$ac_c_werror_flag
14461 ac_c_werror_flag=yes
14462 ac_cv_prog_cc_g=no
14463 CFLAGS="-g"
14464 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14465 /* end confdefs.h. */
14467 int
14468 main ()
14469 {
14471 ;
14472 return 0;
14473 }
14474 _ACEOF
14475 if ac_fn_c_try_compile "$LINENO"; then :
14476 ac_cv_prog_cc_g=yes
14477 else
14478 CFLAGS=""
14479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14480 /* end confdefs.h. */
14482 int
14483 main ()
14484 {
14486 ;
14487 return 0;
14488 }
14489 _ACEOF
14490 if ac_fn_c_try_compile "$LINENO"; then :
14492 else
14493 ac_c_werror_flag=$ac_save_c_werror_flag
14494 CFLAGS="-g"
14495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14496 /* end confdefs.h. */
14498 int
14499 main ()
14500 {
14502 ;
14503 return 0;
14504 }
14505 _ACEOF
14506 if ac_fn_c_try_compile "$LINENO"; then :
14507 ac_cv_prog_cc_g=yes
14508 fi
14509 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14510 fi
14511 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14512 fi
14513 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14514 ac_c_werror_flag=$ac_save_c_werror_flag
14515 fi
14516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
14517 $as_echo "$ac_cv_prog_cc_g" >&6; }
14518 if test "$ac_test_CFLAGS" = set; then
14519 CFLAGS=$ac_save_CFLAGS
14520 elif test $ac_cv_prog_cc_g = yes; then
14521 if test "$GCC" = yes; then
14522 CFLAGS="-g -O2"
14523 else
14524 CFLAGS="-g"
14525 fi
14526 else
14527 if test "$GCC" = yes; then
14528 CFLAGS="-O2"
14529 else
14530 CFLAGS=
14531 fi
14532 fi
14533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
14534 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
14535 if ${ac_cv_prog_cc_c89+:} false; then :
14536 $as_echo_n "(cached) " >&6
14537 else
14538 ac_cv_prog_cc_c89=no
14539 ac_save_CC=$CC
14540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14541 /* end confdefs.h. */
14542 #include <stdarg.h>
14543 #include <stdio.h>
14544 struct stat;
14545 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
14546 struct buf { int x; };
14547 FILE * (*rcsopen) (struct buf *, struct stat *, int);
14548 static char *e (p, i)
14549 char **p;
14550 int i;
14551 {
14552 return p[i];
14553 }
14554 static char *f (char * (*g) (char **, int), char **p, ...)
14555 {
14556 char *s;
14557 va_list v;
14558 va_start (v,p);
14559 s = g (p, va_arg (v,int));
14560 va_end (v);
14561 return s;
14562 }
14564 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
14565 function prototypes and stuff, but not '\xHH' hex character constants.
14566 These don't provoke an error unfortunately, instead are silently treated
14567 as 'x'. The following induces an error, until -std is added to get
14568 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
14569 array size at least. It's necessary to write '\x00'==0 to get something
14570 that's true only with -std. */
14571 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
14573 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
14574 inside strings and character constants. */
14575 #define FOO(x) 'x'
14576 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
14578 int test (int i, double x);
14579 struct s1 {int (*f) (int a);};
14580 struct s2 {int (*f) (double a);};
14581 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
14582 int argc;
14583 char **argv;
14584 int
14585 main ()
14586 {
14587 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
14588 ;
14589 return 0;
14590 }
14591 _ACEOF
14592 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
14593 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
14594 do
14595 CC="$ac_save_CC $ac_arg"
14596 if ac_fn_c_try_compile "$LINENO"; then :
14597 ac_cv_prog_cc_c89=$ac_arg
14598 fi
14599 rm -f core conftest.err conftest.$ac_objext
14600 test "x$ac_cv_prog_cc_c89" != "xno" && break
14601 done
14602 rm -f conftest.$ac_ext
14603 CC=$ac_save_CC
14605 fi
14606 # AC_CACHE_VAL
14607 case "x$ac_cv_prog_cc_c89" in
14608 x)
14609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
14610 $as_echo "none needed" >&6; } ;;
14611 xno)
14612 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
14613 $as_echo "unsupported" >&6; } ;;
14614 *)
14615 CC="$CC $ac_cv_prog_cc_c89"
14616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
14617 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
14618 esac
14619 if test "x$ac_cv_prog_cc_c89" != xno; then :
14621 fi
14623 ac_ext=c
14624 ac_cpp='$CPP $CPPFLAGS'
14625 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14626 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14627 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14629 ac_ext=c
14630 ac_cpp='$CPP $CPPFLAGS'
14631 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14632 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14633 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
14635 $as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
14636 if ${am_cv_prog_cc_c_o+:} false; then :
14637 $as_echo_n "(cached) " >&6
14638 else
14639 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14640 /* end confdefs.h. */
14642 int
14643 main ()
14644 {
14646 ;
14647 return 0;
14648 }
14649 _ACEOF
14650 # Make sure it works both with $CC and with simple cc.
14651 # Following AC_PROG_CC_C_O, we do the test twice because some
14652 # compilers refuse to overwrite an existing .o file with -o,
14653 # though they will create one.
14654 am_cv_prog_cc_c_o=yes
14655 for am_i in 1 2; do
14656 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
14657 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
14658 ac_status=$?
14659 echo "$as_me:$LINENO: \$? = $ac_status" >&5
14660 (exit $ac_status); } \
14661 && test -f conftest2.$ac_objext; then
14662 : OK
14663 else
14664 am_cv_prog_cc_c_o=no
14665 break
14666 fi
14667 done
14668 rm -f core conftest*
14669 unset am_i
14670 fi
14671 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
14672 $as_echo "$am_cv_prog_cc_c_o" >&6; }
14673 if test "$am_cv_prog_cc_c_o" != yes; then
14674 # Losing compiler, so override with the script.
14675 # FIXME: It is wrong to rewrite CC.
14676 # But if we don't then we get into trouble of one sort or another.
14677 # A longer-term fix would be to have automake use am__CC in this case,
14678 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
14679 CC="$am_aux_dir/compile $CC"
14680 fi
14681 ac_ext=c
14682 ac_cpp='$CPP $CPPFLAGS'
14683 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14684 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14685 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14688 ac_ext=c
14689 ac_cpp='$CPP $CPPFLAGS'
14690 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14691 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14692 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14693 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
14694 $as_echo_n "checking how to run the C preprocessor... " >&6; }
14695 # On Suns, sometimes $CPP names a directory.
14696 if test -n "$CPP" && test -d "$CPP"; then
14697 CPP=
14698 fi
14699 if test -z "$CPP"; then
14700 if ${ac_cv_prog_CPP+:} false; then :
14701 $as_echo_n "(cached) " >&6
14702 else
14703 # Double quotes because CPP needs to be expanded
14704 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
14705 do
14706 ac_preproc_ok=false
14707 for ac_c_preproc_warn_flag in '' yes
14708 do
14709 # Use a header file that comes with gcc, so configuring glibc
14710 # with a fresh cross-compiler works.
14711 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14712 # <limits.h> exists even on freestanding compilers.
14713 # On the NeXT, cc -E runs the code through the compiler's parser,
14714 # not just through cpp. "Syntax error" is here to catch this case.
14715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14716 /* end confdefs.h. */
14717 #ifdef __STDC__
14718 # include <limits.h>
14719 #else
14720 # include <assert.h>
14721 #endif
14722 Syntax error
14723 _ACEOF
14724 if ac_fn_c_try_cpp "$LINENO"; then :
14726 else
14727 # Broken: fails on valid input.
14728 continue
14729 fi
14730 rm -f conftest.err conftest.i conftest.$ac_ext
14732 # OK, works on sane cases. Now check whether nonexistent headers
14733 # can be detected and how.
14734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14735 /* end confdefs.h. */
14736 #include <ac_nonexistent.h>
14737 _ACEOF
14738 if ac_fn_c_try_cpp "$LINENO"; then :
14739 # Broken: success on invalid input.
14740 continue
14741 else
14742 # Passes both tests.
14743 ac_preproc_ok=:
14744 break
14745 fi
14746 rm -f conftest.err conftest.i conftest.$ac_ext
14748 done
14749 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14750 rm -f conftest.i conftest.err conftest.$ac_ext
14751 if $ac_preproc_ok; then :
14752 break
14753 fi
14755 done
14756 ac_cv_prog_CPP=$CPP
14758 fi
14759 CPP=$ac_cv_prog_CPP
14760 else
14761 ac_cv_prog_CPP=$CPP
14762 fi
14763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
14764 $as_echo "$CPP" >&6; }
14765 ac_preproc_ok=false
14766 for ac_c_preproc_warn_flag in '' yes
14767 do
14768 # Use a header file that comes with gcc, so configuring glibc
14769 # with a fresh cross-compiler works.
14770 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
14771 # <limits.h> exists even on freestanding compilers.
14772 # On the NeXT, cc -E runs the code through the compiler's parser,
14773 # not just through cpp. "Syntax error" is here to catch this case.
14774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14775 /* end confdefs.h. */
14776 #ifdef __STDC__
14777 # include <limits.h>
14778 #else
14779 # include <assert.h>
14780 #endif
14781 Syntax error
14782 _ACEOF
14783 if ac_fn_c_try_cpp "$LINENO"; then :
14785 else
14786 # Broken: fails on valid input.
14787 continue
14788 fi
14789 rm -f conftest.err conftest.i conftest.$ac_ext
14791 # OK, works on sane cases. Now check whether nonexistent headers
14792 # can be detected and how.
14793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14794 /* end confdefs.h. */
14795 #include <ac_nonexistent.h>
14796 _ACEOF
14797 if ac_fn_c_try_cpp "$LINENO"; then :
14798 # Broken: success on invalid input.
14799 continue
14800 else
14801 # Passes both tests.
14802 ac_preproc_ok=:
14803 break
14804 fi
14805 rm -f conftest.err conftest.i conftest.$ac_ext
14807 done
14808 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
14809 rm -f conftest.i conftest.err conftest.$ac_ext
14810 if $ac_preproc_ok; then :
14812 else
14813 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
14814 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
14815 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
14816 See \`config.log' for more details" "$LINENO" 5; }
14817 fi
14819 ac_ext=c
14820 ac_cpp='$CPP $CPPFLAGS'
14821 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
14822 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
14823 ac_compiler_gnu=$ac_cv_c_compiler_gnu
14826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
14827 $as_echo_n "checking whether ln -s works... " >&6; }
14828 LN_S=$as_ln_s
14829 if test "$LN_S" = "ln -s"; then
14830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14831 $as_echo "yes" >&6; }
14832 else
14833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
14834 $as_echo "no, using $LN_S" >&6; }
14835 fi
14837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
14838 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
14839 set x ${MAKE-make}
14840 ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
14841 if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
14842 $as_echo_n "(cached) " >&6
14843 else
14844 cat >conftest.make <<\_ACEOF
14845 SHELL = /bin/sh
14846 all:
14847 @echo '@@@%%%=$(MAKE)=@@@%%%'
14848 _ACEOF
14849 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
14850 case `${MAKE-make} -f conftest.make 2>/dev/null` in
14851 *@@@%%%=?*=@@@%%%*)
14852 eval ac_cv_prog_make_${ac_make}_set=yes;;
14853 *)
14854 eval ac_cv_prog_make_${ac_make}_set=no;;
14855 esac
14856 rm -f conftest.make
14857 fi
14858 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
14859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14860 $as_echo "yes" >&6; }
14861 SET_MAKE=
14862 else
14863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14864 $as_echo "no" >&6; }
14865 SET_MAKE="MAKE=${MAKE-make}"
14866 fi
14869 if test "x$GCC" = "xyes"; then
14870 COMPILER_IS_GCC_TRUE=
14871 COMPILER_IS_GCC_FALSE='#'
14872 else
14873 COMPILER_IS_GCC_TRUE='#'
14874 COMPILER_IS_GCC_FALSE=
14875 fi
14878 # Check whether --enable-static was given.
14879 if test "${enable_static+set}" = set; then :
14880 enableval=$enable_static; p=${PACKAGE-default}
14881 case $enableval in
14882 yes) enable_static=yes ;;
14883 no) enable_static=no ;;
14884 *)
14885 enable_static=no
14886 # Look at the argument we got. We use all the common list separators.
14887 lt_save_ifs="$IFS"; IFS="${IFS}$PATH_SEPARATOR,"
14888 for pkg in $enableval; do
14889 IFS="$lt_save_ifs"
14890 if test "X$pkg" = "X$p"; then
14891 enable_static=yes
14892 fi
14893 done
14894 IFS="$lt_save_ifs"
14895 ;;
14896 esac
14897 else
14898 enable_static=no
14899 fi
14907 for ac_prog in flex lex
14908 do
14909 # Extract the first word of "$ac_prog", so it can be a program name with args.
14910 set dummy $ac_prog; ac_word=$2
14911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14912 $as_echo_n "checking for $ac_word... " >&6; }
14913 if ${ac_cv_prog_LEX+:} false; then :
14914 $as_echo_n "(cached) " >&6
14915 else
14916 if test -n "$LEX"; then
14917 ac_cv_prog_LEX="$LEX" # Let the user override the test.
14918 else
14919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14920 for as_dir in $PATH
14921 do
14922 IFS=$as_save_IFS
14923 test -z "$as_dir" && as_dir=.
14924 for ac_exec_ext in '' $ac_executable_extensions; do
14925 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14926 ac_cv_prog_LEX="$ac_prog"
14927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14928 break 2
14929 fi
14930 done
14931 done
14932 IFS=$as_save_IFS
14934 fi
14935 fi
14936 LEX=$ac_cv_prog_LEX
14937 if test -n "$LEX"; then
14938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
14939 $as_echo "$LEX" >&6; }
14940 else
14941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14942 $as_echo "no" >&6; }
14943 fi
14946 test -n "$LEX" && break
14947 done
14948 test -n "$LEX" || LEX=":"
14950 if test "x$LEX" != "x:"; then
14951 cat >conftest.l <<_ACEOF
14952 %%
14953 a { ECHO; }
14954 b { REJECT; }
14955 c { yymore (); }
14956 d { yyless (1); }
14957 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
14958 yyless ((input () != 0)); }
14959 f { unput (yytext[0]); }
14960 . { BEGIN INITIAL; }
14961 %%
14962 #ifdef YYTEXT_POINTER
14963 extern char *yytext;
14964 #endif
14965 int
14966 main (void)
14967 {
14968 return ! yylex () + ! yywrap ();
14969 }
14970 _ACEOF
14971 { { ac_try="$LEX conftest.l"
14972 case "(($ac_try" in
14973 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
14974 *) ac_try_echo=$ac_try;;
14975 esac
14976 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
14977 $as_echo "$ac_try_echo"; } >&5
14978 (eval "$LEX conftest.l") 2>&5
14979 ac_status=$?
14980 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14981 test $ac_status = 0; }
14982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
14983 $as_echo_n "checking lex output file root... " >&6; }
14984 if ${ac_cv_prog_lex_root+:} false; then :
14985 $as_echo_n "(cached) " >&6
14986 else
14988 if test -f lex.yy.c; then
14989 ac_cv_prog_lex_root=lex.yy
14990 elif test -f lexyy.c; then
14991 ac_cv_prog_lex_root=lexyy
14992 else
14993 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
14994 fi
14995 fi
14996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
14997 $as_echo "$ac_cv_prog_lex_root" >&6; }
14998 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
15000 if test -z "${LEXLIB+set}"; then
15001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
15002 $as_echo_n "checking lex library... " >&6; }
15003 if ${ac_cv_lib_lex+:} false; then :
15004 $as_echo_n "(cached) " >&6
15005 else
15007 ac_save_LIBS=$LIBS
15008 ac_cv_lib_lex='none needed'
15009 for ac_lib in '' -lfl -ll; do
15010 LIBS="$ac_lib $ac_save_LIBS"
15011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15012 /* end confdefs.h. */
15013 `cat $LEX_OUTPUT_ROOT.c`
15014 _ACEOF
15015 if ac_fn_c_try_link "$LINENO"; then :
15016 ac_cv_lib_lex=$ac_lib
15017 fi
15018 rm -f core conftest.err conftest.$ac_objext \
15019 conftest$ac_exeext conftest.$ac_ext
15020 test "$ac_cv_lib_lex" != 'none needed' && break
15021 done
15022 LIBS=$ac_save_LIBS
15024 fi
15025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
15026 $as_echo "$ac_cv_lib_lex" >&6; }
15027 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
15028 fi
15031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
15032 $as_echo_n "checking whether yytext is a pointer... " >&6; }
15033 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
15034 $as_echo_n "(cached) " >&6
15035 else
15036 # POSIX says lex can declare yytext either as a pointer or an array; the
15037 # default is implementation-dependent. Figure out which it is, since
15038 # not all implementations provide the %pointer and %array declarations.
15039 ac_cv_prog_lex_yytext_pointer=no
15040 ac_save_LIBS=$LIBS
15041 LIBS="$LEXLIB $ac_save_LIBS"
15042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15043 /* end confdefs.h. */
15045 #define YYTEXT_POINTER 1
15046 `cat $LEX_OUTPUT_ROOT.c`
15047 _ACEOF
15048 if ac_fn_c_try_link "$LINENO"; then :
15049 ac_cv_prog_lex_yytext_pointer=yes
15050 fi
15051 rm -f core conftest.err conftest.$ac_objext \
15052 conftest$ac_exeext conftest.$ac_ext
15053 LIBS=$ac_save_LIBS
15055 fi
15056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
15057 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
15058 if test $ac_cv_prog_lex_yytext_pointer = yes; then
15060 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
15062 fi
15063 rm -f conftest.l $LEX_OUTPUT_ROOT.c
15065 fi
15066 for ac_prog in 'bison -y' byacc
15067 do
15068 # Extract the first word of "$ac_prog", so it can be a program name with args.
15069 set dummy $ac_prog; ac_word=$2
15070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15071 $as_echo_n "checking for $ac_word... " >&6; }
15072 if ${ac_cv_prog_YACC+:} false; then :
15073 $as_echo_n "(cached) " >&6
15074 else
15075 if test -n "$YACC"; then
15076 ac_cv_prog_YACC="$YACC" # Let the user override the test.
15077 else
15078 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15079 for as_dir in $PATH
15080 do
15081 IFS=$as_save_IFS
15082 test -z "$as_dir" && as_dir=.
15083 for ac_exec_ext in '' $ac_executable_extensions; do
15084 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15085 ac_cv_prog_YACC="$ac_prog"
15086 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15087 break 2
15088 fi
15089 done
15090 done
15091 IFS=$as_save_IFS
15093 fi
15094 fi
15095 YACC=$ac_cv_prog_YACC
15096 if test -n "$YACC"; then
15097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
15098 $as_echo "$YACC" >&6; }
15099 else
15100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15101 $as_echo "no" >&6; }
15102 fi
15105 test -n "$YACC" && break
15106 done
15107 test -n "$YACC" || YACC="yacc"
15116 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
15117 if test -n "$ac_tool_prefix"; then
15118 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
15119 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
15120 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15121 $as_echo_n "checking for $ac_word... " >&6; }
15122 if ${ac_cv_path_PKG_CONFIG+:} false; then :
15123 $as_echo_n "(cached) " >&6
15124 else
15125 case $PKG_CONFIG in
15126 [\\/]* | ?:[\\/]*)
15127 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
15128 ;;
15129 *)
15130 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15131 for as_dir in $PATH
15132 do
15133 IFS=$as_save_IFS
15134 test -z "$as_dir" && as_dir=.
15135 for ac_exec_ext in '' $ac_executable_extensions; do
15136 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15137 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15139 break 2
15140 fi
15141 done
15142 done
15143 IFS=$as_save_IFS
15145 ;;
15146 esac
15147 fi
15148 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
15149 if test -n "$PKG_CONFIG"; then
15150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
15151 $as_echo "$PKG_CONFIG" >&6; }
15152 else
15153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15154 $as_echo "no" >&6; }
15155 fi
15158 fi
15159 if test -z "$ac_cv_path_PKG_CONFIG"; then
15160 ac_pt_PKG_CONFIG=$PKG_CONFIG
15161 # Extract the first word of "pkg-config", so it can be a program name with args.
15162 set dummy pkg-config; ac_word=$2
15163 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15164 $as_echo_n "checking for $ac_word... " >&6; }
15165 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
15166 $as_echo_n "(cached) " >&6
15167 else
15168 case $ac_pt_PKG_CONFIG in
15169 [\\/]* | ?:[\\/]*)
15170 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
15171 ;;
15172 *)
15173 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15174 for as_dir in $PATH
15175 do
15176 IFS=$as_save_IFS
15177 test -z "$as_dir" && as_dir=.
15178 for ac_exec_ext in '' $ac_executable_extensions; do
15179 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15180 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
15181 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15182 break 2
15183 fi
15184 done
15185 done
15186 IFS=$as_save_IFS
15188 ;;
15189 esac
15190 fi
15191 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
15192 if test -n "$ac_pt_PKG_CONFIG"; then
15193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
15194 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
15195 else
15196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15197 $as_echo "no" >&6; }
15198 fi
15200 if test "x$ac_pt_PKG_CONFIG" = x; then
15201 PKG_CONFIG=""
15202 else
15203 case $cross_compiling:$ac_tool_warned in
15204 yes:)
15205 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
15206 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
15207 ac_tool_warned=yes ;;
15208 esac
15209 PKG_CONFIG=$ac_pt_PKG_CONFIG
15210 fi
15211 else
15212 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
15213 fi
15215 fi
15216 if test -n "$PKG_CONFIG"; then
15217 _pkg_min_version=0.9.0
15218 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
15219 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
15220 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
15221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15222 $as_echo "yes" >&6; }
15223 else
15224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15225 $as_echo "no" >&6; }
15226 PKG_CONFIG=""
15227 fi
15228 fi
15230 # Extract the first word of "protoc-c", so it can be a program name with args.
15231 set dummy protoc-c; ac_word=$2
15232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
15233 $as_echo_n "checking for $ac_word... " >&6; }
15234 if ${ac_cv_prog_have_protoc_c+:} false; then :
15235 $as_echo_n "(cached) " >&6
15236 else
15237 if test -n "$have_protoc_c"; then
15238 ac_cv_prog_have_protoc_c="$have_protoc_c" # Let the user override the test.
15239 else
15240 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15241 for as_dir in $PATH
15242 do
15243 IFS=$as_save_IFS
15244 test -z "$as_dir" && as_dir=.
15245 for ac_exec_ext in '' $ac_executable_extensions; do
15246 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
15247 ac_cv_prog_have_protoc_c="yes"
15248 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
15249 break 2
15250 fi
15251 done
15252 done
15253 IFS=$as_save_IFS
15255 test -z "$ac_cv_prog_have_protoc_c" && ac_cv_prog_have_protoc_c="no"
15256 fi
15257 fi
15258 have_protoc_c=$ac_cv_prog_have_protoc_c
15259 if test -n "$have_protoc_c"; then
15260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_protoc_c" >&5
15261 $as_echo "$have_protoc_c" >&6; }
15262 else
15263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15264 $as_echo "no" >&6; }
15265 fi
15268 for ac_header in google/protobuf-c/protobuf-c.h
15269 do :
15270 ac_fn_c_check_header_mongrel "$LINENO" "google/protobuf-c/protobuf-c.h" "ac_cv_header_google_protobuf_c_protobuf_c_h" "$ac_includes_default"
15271 if test "x$ac_cv_header_google_protobuf_c_protobuf_c_h" = xyes; then :
15272 cat >>confdefs.h <<_ACEOF
15273 #define HAVE_GOOGLE_PROTOBUF_C_PROTOBUF_C_H 1
15274 _ACEOF
15275 have_protobuf_c_h="yes"
15276 else
15277 have_protobuf_c_h="no"
15278 fi
15280 done
15282 if test "x$have_protoc_c" = "xyes" && test "x$have_protobuf_c_h" != "xyes"
15283 then
15284 have_protoc_c="no (unable to find <google/protobuf-c/protobuf-c.h>)"
15285 fi
15286 if test "x$have_protoc_c" = "xyes"; then
15287 HAVE_PROTOC_C_TRUE=
15288 HAVE_PROTOC_C_FALSE='#'
15289 else
15290 HAVE_PROTOC_C_TRUE='#'
15291 HAVE_PROTOC_C_FALSE=
15292 fi
15295 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kernel type ($host_os)" >&5
15296 $as_echo_n "checking for kernel type ($host_os)... " >&6; }
15297 case $host_os in
15298 *linux*)
15300 $as_echo "#define KERNEL_LINUX 1" >>confdefs.h
15302 ac_system="Linux"
15303 ;;
15304 *solaris*)
15306 $as_echo "#define KERNEL_SOLARIS 1" >>confdefs.h
15308 ac_system="Solaris"
15309 ;;
15310 *darwin*)
15312 $as_echo "#define KERNEL_DARWIN 1" >>confdefs.h
15314 ac_system="Darwin"
15315 ;;
15316 *openbsd*)
15318 $as_echo "#define KERNEL_OPENBSD 1" >>confdefs.h
15320 ac_system="OpenBSD"
15321 ;;
15322 *aix*)
15324 $as_echo "#define KERNEL_AIX 1" >>confdefs.h
15326 ac_system="AIX"
15327 ;;
15328 *freebsd*)
15330 $as_echo "#define KERNEL_FREEBSD 1" >>confdefs.h
15332 ac_system="FreeBSD"
15333 ;;
15334 *)
15335 ac_system="unknown"
15336 esac
15337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_system" >&5
15338 $as_echo "$ac_system" >&6; }
15340 if test "x$x$ac_system" = "xLinux"; then
15341 BUILD_LINUX_TRUE=
15342 BUILD_LINUX_FALSE='#'
15343 else
15344 BUILD_LINUX_TRUE='#'
15345 BUILD_LINUX_FALSE=
15346 fi
15348 if test "x$x$ac_system" = "xSolaris"; then
15349 BUILD_SOLARIS_TRUE=
15350 BUILD_SOLARIS_FALSE='#'
15351 else
15352 BUILD_SOLARIS_TRUE='#'
15353 BUILD_SOLARIS_FALSE=
15354 fi
15356 if test "x$x$ac_system" = "xDarwin"; then
15357 BUILD_DARWIN_TRUE=
15358 BUILD_DARWIN_FALSE='#'
15359 else
15360 BUILD_DARWIN_TRUE='#'
15361 BUILD_DARWIN_FALSE=
15362 fi
15364 if test "x$x$ac_system" = "xOpenBSD"; then
15365 BUILD_OPENBSD_TRUE=
15366 BUILD_OPENBSD_FALSE='#'
15367 else
15368 BUILD_OPENBSD_TRUE='#'
15369 BUILD_OPENBSD_FALSE=
15370 fi
15372 if test "x$x$ac_system" = "xAIX"; then
15373 BUILD_AIX_TRUE=
15374 BUILD_AIX_FALSE='#'
15375 else
15376 BUILD_AIX_TRUE='#'
15377 BUILD_AIX_FALSE=
15378 fi
15380 if test "x$x$ac_system" = "xFreeBSD"; then
15381 BUILD_FREEBSD_TRUE=
15382 BUILD_FREEBSD_FALSE='#'
15383 else
15384 BUILD_FREEBSD_TRUE='#'
15385 BUILD_FREEBSD_FALSE=
15386 fi
15389 if test "x$ac_system" = "xLinux"
15390 then
15392 if test -z "$KERNEL_DIR"
15393 then
15394 KERNEL_DIR="/lib/modules/`uname -r`/source"
15395 fi
15397 KERNEL_CFLAGS="-I$KERNEL_DIR/include"
15399 fi
15401 if test "x$ac_system" = "xSolaris"
15402 then
15404 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
15407 $as_echo "#define _REENTRANT 1" >>confdefs.h
15409 fi
15410 if test "x$ac_system" = "xAIX"
15411 then
15413 $as_echo "#define _THREAD_SAFE_ERRNO 1" >>confdefs.h
15415 fi
15417 # Where to install .pc files.
15418 pkgconfigdir="${libdir}/pkgconfig"
15421 # Check for standards compliance mode
15422 # Check whether --enable-standards was given.
15423 if test "${enable_standards+set}" = set; then :
15424 enableval=$enable_standards; enable_standards="$enableval"
15425 else
15426 enable_standards="no"
15427 fi
15429 if test "x$enable_standards" = "xyes"
15430 then
15432 $as_echo "#define _ISOC99_SOURCE 1" >>confdefs.h
15435 $as_echo "#define _POSIX_C_SOURCE 200809L" >>confdefs.h
15438 $as_echo "#define _XOPEN_SOURCE 700" >>confdefs.h
15441 $as_echo "#define _REENTRANT 1" >>confdefs.h
15443 if test "x$GCC" = "xyes"
15444 then
15445 CFLAGS="$CFLAGS -std=c99"
15446 fi
15447 fi
15448 if test "x$enable_standards" = "xyes"; then
15449 BUILD_FEATURE_STANDARDS_TRUE=
15450 BUILD_FEATURE_STANDARDS_FALSE='#'
15451 else
15452 BUILD_FEATURE_STANDARDS_TRUE='#'
15453 BUILD_FEATURE_STANDARDS_FALSE=
15454 fi
15457 #
15458 # Checks for header files.
15459 #
15460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
15461 $as_echo_n "checking for ANSI C header files... " >&6; }
15462 if ${ac_cv_header_stdc+:} false; then :
15463 $as_echo_n "(cached) " >&6
15464 else
15465 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15466 /* end confdefs.h. */
15467 #include <stdlib.h>
15468 #include <stdarg.h>
15469 #include <string.h>
15470 #include <float.h>
15472 int
15473 main ()
15474 {
15476 ;
15477 return 0;
15478 }
15479 _ACEOF
15480 if ac_fn_c_try_compile "$LINENO"; then :
15481 ac_cv_header_stdc=yes
15482 else
15483 ac_cv_header_stdc=no
15484 fi
15485 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15487 if test $ac_cv_header_stdc = yes; then
15488 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
15489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15490 /* end confdefs.h. */
15491 #include <string.h>
15493 _ACEOF
15494 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15495 $EGREP "memchr" >/dev/null 2>&1; then :
15497 else
15498 ac_cv_header_stdc=no
15499 fi
15500 rm -f conftest*
15502 fi
15504 if test $ac_cv_header_stdc = yes; then
15505 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
15506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15507 /* end confdefs.h. */
15508 #include <stdlib.h>
15510 _ACEOF
15511 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
15512 $EGREP "free" >/dev/null 2>&1; then :
15514 else
15515 ac_cv_header_stdc=no
15516 fi
15517 rm -f conftest*
15519 fi
15521 if test $ac_cv_header_stdc = yes; then
15522 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
15523 if test "$cross_compiling" = yes; then :
15524 :
15525 else
15526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15527 /* end confdefs.h. */
15528 #include <ctype.h>
15529 #include <stdlib.h>
15530 #if ((' ' & 0x0FF) == 0x020)
15531 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
15532 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
15533 #else
15534 # define ISLOWER(c) \
15535 (('a' <= (c) && (c) <= 'i') \
15536 || ('j' <= (c) && (c) <= 'r') \
15537 || ('s' <= (c) && (c) <= 'z'))
15538 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
15539 #endif
15541 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
15542 int
15543 main ()
15544 {
15545 int i;
15546 for (i = 0; i < 256; i++)
15547 if (XOR (islower (i), ISLOWER (i))
15548 || toupper (i) != TOUPPER (i))
15549 return 2;
15550 return 0;
15551 }
15552 _ACEOF
15553 if ac_fn_c_try_run "$LINENO"; then :
15555 else
15556 ac_cv_header_stdc=no
15557 fi
15558 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15559 conftest.$ac_objext conftest.beam conftest.$ac_ext
15560 fi
15562 fi
15563 fi
15564 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
15565 $as_echo "$ac_cv_header_stdc" >&6; }
15566 if test $ac_cv_header_stdc = yes; then
15568 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
15570 fi
15572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
15573 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
15574 if ${ac_cv_header_sys_wait_h+:} false; then :
15575 $as_echo_n "(cached) " >&6
15576 else
15577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15578 /* end confdefs.h. */
15579 #include <sys/types.h>
15580 #include <sys/wait.h>
15581 #ifndef WEXITSTATUS
15582 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
15583 #endif
15584 #ifndef WIFEXITED
15585 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
15586 #endif
15588 int
15589 main ()
15590 {
15591 int s;
15592 wait (&s);
15593 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
15594 ;
15595 return 0;
15596 }
15597 _ACEOF
15598 if ac_fn_c_try_compile "$LINENO"; then :
15599 ac_cv_header_sys_wait_h=yes
15600 else
15601 ac_cv_header_sys_wait_h=no
15602 fi
15603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15604 fi
15605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
15606 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
15607 if test $ac_cv_header_sys_wait_h = yes; then
15609 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
15611 fi
15613 ac_header_dirent=no
15614 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
15615 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
15616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
15617 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
15618 if eval \${$as_ac_Header+:} false; then :
15619 $as_echo_n "(cached) " >&6
15620 else
15621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15622 /* end confdefs.h. */
15623 #include <sys/types.h>
15624 #include <$ac_hdr>
15626 int
15627 main ()
15628 {
15629 if ((DIR *) 0)
15630 return 0;
15631 ;
15632 return 0;
15633 }
15634 _ACEOF
15635 if ac_fn_c_try_compile "$LINENO"; then :
15636 eval "$as_ac_Header=yes"
15637 else
15638 eval "$as_ac_Header=no"
15639 fi
15640 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15641 fi
15642 eval ac_res=\$$as_ac_Header
15643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
15644 $as_echo "$ac_res" >&6; }
15645 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15646 cat >>confdefs.h <<_ACEOF
15647 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
15648 _ACEOF
15650 ac_header_dirent=$ac_hdr; break
15651 fi
15653 done
15654 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
15655 if test $ac_header_dirent = dirent.h; then
15656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
15657 $as_echo_n "checking for library containing opendir... " >&6; }
15658 if ${ac_cv_search_opendir+:} false; then :
15659 $as_echo_n "(cached) " >&6
15660 else
15661 ac_func_search_save_LIBS=$LIBS
15662 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15663 /* end confdefs.h. */
15665 /* Override any GCC internal prototype to avoid an error.
15666 Use char because int might match the return type of a GCC
15667 builtin and then its argument prototype would still apply. */
15668 #ifdef __cplusplus
15669 extern "C"
15670 #endif
15671 char opendir ();
15672 int
15673 main ()
15674 {
15675 return opendir ();
15676 ;
15677 return 0;
15678 }
15679 _ACEOF
15680 for ac_lib in '' dir; do
15681 if test -z "$ac_lib"; then
15682 ac_res="none required"
15683 else
15684 ac_res=-l$ac_lib
15685 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15686 fi
15687 if ac_fn_c_try_link "$LINENO"; then :
15688 ac_cv_search_opendir=$ac_res
15689 fi
15690 rm -f core conftest.err conftest.$ac_objext \
15691 conftest$ac_exeext
15692 if ${ac_cv_search_opendir+:} false; then :
15693 break
15694 fi
15695 done
15696 if ${ac_cv_search_opendir+:} false; then :
15698 else
15699 ac_cv_search_opendir=no
15700 fi
15701 rm conftest.$ac_ext
15702 LIBS=$ac_func_search_save_LIBS
15703 fi
15704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
15705 $as_echo "$ac_cv_search_opendir" >&6; }
15706 ac_res=$ac_cv_search_opendir
15707 if test "$ac_res" != no; then :
15708 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15710 fi
15712 else
15713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
15714 $as_echo_n "checking for library containing opendir... " >&6; }
15715 if ${ac_cv_search_opendir+:} false; then :
15716 $as_echo_n "(cached) " >&6
15717 else
15718 ac_func_search_save_LIBS=$LIBS
15719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15720 /* end confdefs.h. */
15722 /* Override any GCC internal prototype to avoid an error.
15723 Use char because int might match the return type of a GCC
15724 builtin and then its argument prototype would still apply. */
15725 #ifdef __cplusplus
15726 extern "C"
15727 #endif
15728 char opendir ();
15729 int
15730 main ()
15731 {
15732 return opendir ();
15733 ;
15734 return 0;
15735 }
15736 _ACEOF
15737 for ac_lib in '' x; do
15738 if test -z "$ac_lib"; then
15739 ac_res="none required"
15740 else
15741 ac_res=-l$ac_lib
15742 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
15743 fi
15744 if ac_fn_c_try_link "$LINENO"; then :
15745 ac_cv_search_opendir=$ac_res
15746 fi
15747 rm -f core conftest.err conftest.$ac_objext \
15748 conftest$ac_exeext
15749 if ${ac_cv_search_opendir+:} false; then :
15750 break
15751 fi
15752 done
15753 if ${ac_cv_search_opendir+:} false; then :
15755 else
15756 ac_cv_search_opendir=no
15757 fi
15758 rm conftest.$ac_ext
15759 LIBS=$ac_func_search_save_LIBS
15760 fi
15761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
15762 $as_echo "$ac_cv_search_opendir" >&6; }
15763 ac_res=$ac_cv_search_opendir
15764 if test "$ac_res" != no; then :
15765 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
15767 fi
15769 fi
15771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for stdbool.h that conforms to C99" >&5
15772 $as_echo_n "checking for stdbool.h that conforms to C99... " >&6; }
15773 if ${ac_cv_header_stdbool_h+:} false; then :
15774 $as_echo_n "(cached) " >&6
15775 else
15776 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15777 /* end confdefs.h. */
15779 #include <stdbool.h>
15780 #ifndef bool
15781 "error: bool is not defined"
15782 #endif
15783 #ifndef false
15784 "error: false is not defined"
15785 #endif
15786 #if false
15787 "error: false is not 0"
15788 #endif
15789 #ifndef true
15790 "error: true is not defined"
15791 #endif
15792 #if true != 1
15793 "error: true is not 1"
15794 #endif
15795 #ifndef __bool_true_false_are_defined
15796 "error: __bool_true_false_are_defined is not defined"
15797 #endif
15799 struct s { _Bool s: 1; _Bool t; } s;
15801 char a[true == 1 ? 1 : -1];
15802 char b[false == 0 ? 1 : -1];
15803 char c[__bool_true_false_are_defined == 1 ? 1 : -1];
15804 char d[(bool) 0.5 == true ? 1 : -1];
15805 /* See body of main program for 'e'. */
15806 char f[(_Bool) 0.0 == false ? 1 : -1];
15807 char g[true];
15808 char h[sizeof (_Bool)];
15809 char i[sizeof s.t];
15810 enum { j = false, k = true, l = false * true, m = true * 256 };
15811 /* The following fails for
15812 HP aC++/ANSI C B3910B A.05.55 [Dec 04 2003]. */
15813 _Bool n[m];
15814 char o[sizeof n == m * sizeof n[0] ? 1 : -1];
15815 char p[-1 - (_Bool) 0 < 0 && -1 - (bool) 0 < 0 ? 1 : -1];
15816 /* Catch a bug in an HP-UX C compiler. See
15817 http://gcc.gnu.org/ml/gcc-patches/2003-12/msg02303.html
15818 http://lists.gnu.org/archive/html/bug-coreutils/2005-11/msg00161.html
15819 */
15820 _Bool q = true;
15821 _Bool *pq = &q;
15823 int
15824 main ()
15825 {
15827 bool e = &s;
15828 *pq |= q;
15829 *pq |= ! q;
15830 /* Refer to every declared value, to avoid compiler optimizations. */
15831 return (!a + !b + !c + !d + !e + !f + !g + !h + !i + !!j + !k + !!l
15832 + !m + !n + !o + !p + !q + !pq);
15834 ;
15835 return 0;
15836 }
15837 _ACEOF
15838 if ac_fn_c_try_compile "$LINENO"; then :
15839 ac_cv_header_stdbool_h=yes
15840 else
15841 ac_cv_header_stdbool_h=no
15842 fi
15843 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15844 fi
15845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdbool_h" >&5
15846 $as_echo "$ac_cv_header_stdbool_h" >&6; }
15847 ac_fn_c_check_type "$LINENO" "_Bool" "ac_cv_type__Bool" "$ac_includes_default"
15848 if test "x$ac_cv_type__Bool" = xyes; then :
15850 cat >>confdefs.h <<_ACEOF
15851 #define HAVE__BOOL 1
15852 _ACEOF
15855 fi
15858 if test $ac_cv_header_stdbool_h = yes; then
15860 $as_echo "#define HAVE_STDBOOL_H 1" >>confdefs.h
15862 fi
15865 for ac_header in stdio.h errno.h math.h stdarg.h syslog.h fcntl.h signal.h assert.h sys/types.h sys/socket.h sys/select.h poll.h netdb.h arpa/inet.h sys/resource.h sys/param.h kstat.h regex.h sys/ioctl.h endian.h sys/isa_defs.h fnmatch.h libgen.h
15866 do :
15867 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
15868 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
15869 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
15870 cat >>confdefs.h <<_ACEOF
15871 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
15872 _ACEOF
15874 fi
15876 done
15879 # For ping library
15880 for ac_header in netinet/in_systm.h
15881 do :
15882 ac_fn_c_check_header_compile "$LINENO" "netinet/in_systm.h" "ac_cv_header_netinet_in_systm_h" "#if HAVE_STDINT_H
15883 # include <stdint.h>
15884 #endif
15885 #if HAVE_SYS_TYPES_H
15886 # include <sys/types.h>
15887 #endif
15889 "
15890 if test "x$ac_cv_header_netinet_in_systm_h" = xyes; then :
15891 cat >>confdefs.h <<_ACEOF
15892 #define HAVE_NETINET_IN_SYSTM_H 1
15893 _ACEOF
15895 fi
15897 done
15899 for ac_header in netinet/in.h
15900 do :
15901 ac_fn_c_check_header_compile "$LINENO" "netinet/in.h" "ac_cv_header_netinet_in_h" "#if HAVE_STDINT_H
15902 # include <stdint.h>
15903 #endif
15904 #if HAVE_SYS_TYPES_H
15905 # include <sys/types.h>
15906 #endif
15907 #if HAVE_NETINET_IN_SYSTM_H
15908 # include <netinet/in_systm.h>
15909 #endif
15911 "
15912 if test "x$ac_cv_header_netinet_in_h" = xyes; then :
15913 cat >>confdefs.h <<_ACEOF
15914 #define HAVE_NETINET_IN_H 1
15915 _ACEOF
15917 fi
15919 done
15921 for ac_header in netinet/ip.h
15922 do :
15923 ac_fn_c_check_header_compile "$LINENO" "netinet/ip.h" "ac_cv_header_netinet_ip_h" "#if HAVE_STDINT_H
15924 # include <stdint.h>
15925 #endif
15926 #if HAVE_SYS_TYPES_H
15927 # include <sys/types.h>
15928 #endif
15929 #if HAVE_NETINET_IN_SYSTM_H
15930 # include <netinet/in_systm.h>
15931 #endif
15932 #if HAVE_NETINET_IN_H
15933 # include <netinet/in.h>
15934 #endif
15936 "
15937 if test "x$ac_cv_header_netinet_ip_h" = xyes; then :
15938 cat >>confdefs.h <<_ACEOF
15939 #define HAVE_NETINET_IP_H 1
15940 _ACEOF
15942 fi
15944 done
15946 for ac_header in netinet/ip_icmp.h
15947 do :
15948 ac_fn_c_check_header_compile "$LINENO" "netinet/ip_icmp.h" "ac_cv_header_netinet_ip_icmp_h" "#if HAVE_STDINT_H
15949 # include <stdint.h>
15950 #endif
15951 #if HAVE_SYS_TYPES_H
15952 # include <sys/types.h>
15953 #endif
15954 #if HAVE_NETINET_IN_SYSTM_H
15955 # include <netinet/in_systm.h>
15956 #endif
15957 #if HAVE_NETINET_IN_H
15958 # include <netinet/in.h>
15959 #endif
15960 #if HAVE_NETINET_IP_H
15961 # include <netinet/ip.h>
15962 #endif
15964 "
15965 if test "x$ac_cv_header_netinet_ip_icmp_h" = xyes; then :
15966 cat >>confdefs.h <<_ACEOF
15967 #define HAVE_NETINET_IP_ICMP_H 1
15968 _ACEOF
15970 fi
15972 done
15974 for ac_header in netinet/ip_var.h
15975 do :
15976 ac_fn_c_check_header_compile "$LINENO" "netinet/ip_var.h" "ac_cv_header_netinet_ip_var_h" "#if HAVE_STDINT_H
15977 # include <stdint.h>
15978 #endif
15979 #if HAVE_SYS_TYPES_H
15980 # include <sys/types.h>
15981 #endif
15982 #if HAVE_NETINET_IN_SYSTM_H
15983 # include <netinet/in_systm.h>
15984 #endif
15985 #if HAVE_NETINET_IN_H
15986 # include <netinet/in.h>
15987 #endif
15988 #if HAVE_NETINET_IP_H
15989 # include <netinet/ip.h>
15990 #endif
15992 "
15993 if test "x$ac_cv_header_netinet_ip_var_h" = xyes; then :
15994 cat >>confdefs.h <<_ACEOF
15995 #define HAVE_NETINET_IP_VAR_H 1
15996 _ACEOF
15998 fi
16000 done
16002 for ac_header in netinet/ip6.h
16003 do :
16004 ac_fn_c_check_header_compile "$LINENO" "netinet/ip6.h" "ac_cv_header_netinet_ip6_h" "#if HAVE_STDINT_H
16005 # include <stdint.h>
16006 #endif
16007 #if HAVE_SYS_TYPES_H
16008 # include <sys/types.h>
16009 #endif
16010 #if HAVE_NETINET_IN_SYSTM_H
16011 # include <netinet/in_systm.h>
16012 #endif
16013 #if HAVE_NETINET_IN_H
16014 # include <netinet/in.h>
16015 #endif
16017 "
16018 if test "x$ac_cv_header_netinet_ip6_h" = xyes; then :
16019 cat >>confdefs.h <<_ACEOF
16020 #define HAVE_NETINET_IP6_H 1
16021 _ACEOF
16023 fi
16025 done
16027 for ac_header in netinet/icmp6.h
16028 do :
16029 ac_fn_c_check_header_compile "$LINENO" "netinet/icmp6.h" "ac_cv_header_netinet_icmp6_h" "#if HAVE_STDINT_H
16030 # include <stdint.h>
16031 #endif
16032 #if HAVE_SYS_TYPES_H
16033 # include <sys/types.h>
16034 #endif
16035 #if HAVE_NETINET_IN_SYSTM_H
16036 # include <netinet/in_systm.h>
16037 #endif
16038 #if HAVE_NETINET_IN_H
16039 # include <netinet/in.h>
16040 #endif
16041 #if HAVE_NETINET_IP6_H
16042 # include <netinet/ip6.h>
16043 #endif
16045 "
16046 if test "x$ac_cv_header_netinet_icmp6_h" = xyes; then :
16047 cat >>confdefs.h <<_ACEOF
16048 #define HAVE_NETINET_ICMP6_H 1
16049 _ACEOF
16051 fi
16053 done
16055 for ac_header in netinet/tcp.h
16056 do :
16057 ac_fn_c_check_header_compile "$LINENO" "netinet/tcp.h" "ac_cv_header_netinet_tcp_h" "#if HAVE_STDINT_H
16058 # include <stdint.h>
16059 #endif
16060 #if HAVE_SYS_TYPES_H
16061 # include <sys/types.h>
16062 #endif
16063 #if HAVE_NETINET_IN_SYSTM_H
16064 # include <netinet/in_systm.h>
16065 #endif
16066 #if HAVE_NETINET_IN_H
16067 # include <netinet/in.h>
16068 #endif
16069 #if HAVE_NETINET_IP_H
16070 # include <netinet/ip.h>
16071 #endif
16073 "
16074 if test "x$ac_cv_header_netinet_tcp_h" = xyes; then :
16075 cat >>confdefs.h <<_ACEOF
16076 #define HAVE_NETINET_TCP_H 1
16077 _ACEOF
16079 fi
16081 done
16083 for ac_header in netinet/udp.h
16084 do :
16085 ac_fn_c_check_header_compile "$LINENO" "netinet/udp.h" "ac_cv_header_netinet_udp_h" "#if HAVE_STDINT_H
16086 # include <stdint.h>
16087 #endif
16088 #if HAVE_SYS_TYPES_H
16089 # include <sys/types.h>
16090 #endif
16091 #if HAVE_NETINET_IN_SYSTM_H
16092 # include <netinet/in_systm.h>
16093 #endif
16094 #if HAVE_NETINET_IN_H
16095 # include <netinet/in.h>
16096 #endif
16097 #if HAVE_NETINET_IP_H
16098 # include <netinet/ip.h>
16099 #endif
16101 "
16102 if test "x$ac_cv_header_netinet_udp_h" = xyes; then :
16103 cat >>confdefs.h <<_ACEOF
16104 #define HAVE_NETINET_UDP_H 1
16105 _ACEOF
16107 fi
16109 done
16112 # For cpu modules
16113 for ac_header in sys/dkstat.h
16114 do :
16115 ac_fn_c_check_header_mongrel "$LINENO" "sys/dkstat.h" "ac_cv_header_sys_dkstat_h" "$ac_includes_default"
16116 if test "x$ac_cv_header_sys_dkstat_h" = xyes; then :
16117 cat >>confdefs.h <<_ACEOF
16118 #define HAVE_SYS_DKSTAT_H 1
16119 _ACEOF
16121 fi
16123 done
16125 if test "x$ac_system" = "xDarwin"
16126 then
16127 for ac_header in mach/mach_init.h mach/host_priv.h mach/mach_error.h mach/mach_host.h mach/mach_port.h mach/mach_types.h mach/message.h mach/processor_set.h mach/processor.h mach/processor_info.h mach/task.h mach/thread_act.h mach/vm_region.h mach/vm_map.h mach/vm_prot.h mach/vm_statistics.h mach/kern_return.h
16128 do :
16129 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16130 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16131 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16132 cat >>confdefs.h <<_ACEOF
16133 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16134 _ACEOF
16136 fi
16138 done
16140 for ac_header in CoreFoundation/CoreFoundation.h IOKit/IOKitLib.h IOKit/IOTypes.h IOKit/ps/IOPSKeys.h IOKit/IOBSD.h IOKit/storage/IOBlockStorageDriver.h
16141 do :
16142 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16143 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16144 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16145 cat >>confdefs.h <<_ACEOF
16146 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16147 _ACEOF
16149 fi
16151 done
16153 # For the battery plugin
16154 for ac_header in IOKit/ps/IOPowerSources.h
16155 do :
16156 ac_fn_c_check_header_compile "$LINENO" "IOKit/ps/IOPowerSources.h" "ac_cv_header_IOKit_ps_IOPowerSources_h" "
16157 #if HAVE_IOKIT_IOKITLIB_H
16158 # include <IOKit/IOKitLib.h>
16159 #endif
16160 #if HAVE_IOKIT_IOTYPES_H
16161 # include <IOKit/IOTypes.h>
16162 #endif
16164 "
16165 if test "x$ac_cv_header_IOKit_ps_IOPowerSources_h" = xyes; then :
16166 cat >>confdefs.h <<_ACEOF
16167 #define HAVE_IOKIT_PS_IOPOWERSOURCES_H 1
16168 _ACEOF
16170 fi
16172 done
16175 fi
16177 for ac_header in sys/sysctl.h
16178 do :
16179 ac_fn_c_check_header_compile "$LINENO" "sys/sysctl.h" "ac_cv_header_sys_sysctl_h" "
16180 #if HAVE_SYS_TYPES_H
16181 # include <sys/types.h>
16182 #endif
16183 #if HAVE_SYS_PARAM_H
16184 # include <sys/param.h>
16185 #endif
16187 "
16188 if test "x$ac_cv_header_sys_sysctl_h" = xyes; then :
16189 cat >>confdefs.h <<_ACEOF
16190 #define HAVE_SYS_SYSCTL_H 1
16191 _ACEOF
16193 fi
16195 done
16198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sysctl kern.cp_times" >&5
16199 $as_echo_n "checking for sysctl kern.cp_times... " >&6; }
16200 if test -x /sbin/sysctl
16201 then
16202 /sbin/sysctl kern.cp_times 2>/dev/null
16203 if test $? -eq 0
16204 then
16205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
16206 $as_echo "yes" >&6; }
16208 $as_echo "#define HAVE_SYSCTL_KERN_CP_TIMES 1" >>confdefs.h
16210 else
16211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16212 $as_echo "no" >&6; }
16213 fi
16214 else
16215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
16216 $as_echo "no" >&6; }
16217 fi
16219 # For hddtemp module
16220 for ac_header in linux/major.h
16221 do :
16222 ac_fn_c_check_header_mongrel "$LINENO" "linux/major.h" "ac_cv_header_linux_major_h" "$ac_includes_default"
16223 if test "x$ac_cv_header_linux_major_h" = xyes; then :
16224 cat >>confdefs.h <<_ACEOF
16225 #define HAVE_LINUX_MAJOR_H 1
16226 _ACEOF
16228 fi
16230 done
16233 # For md module (Linux only)
16234 if test "x$ac_system" = "xLinux"
16235 then
16236 for ac_header in linux/raid/md_u.h
16237 do :
16238 ac_fn_c_check_header_compile "$LINENO" "linux/raid/md_u.h" "ac_cv_header_linux_raid_md_u_h" "
16239 #include <sys/ioctl.h>
16240 #include <linux/major.h>
16241 #include <linux/types.h>
16243 "
16244 if test "x$ac_cv_header_linux_raid_md_u_h" = xyes; then :
16245 cat >>confdefs.h <<_ACEOF
16246 #define HAVE_LINUX_RAID_MD_U_H 1
16247 _ACEOF
16248 have_linux_raid_md_u_h="yes"
16249 else
16250 have_linux_raid_md_u_h="no"
16251 fi
16253 done
16255 else
16256 have_linux_raid_md_u_h="no"
16257 fi
16259 # For the swap module
16260 have_linux_wireless_h="no"
16261 if test "x$ac_system" = "xLinux"
16262 then
16263 for ac_header in linux/wireless.h
16264 do :
16265 ac_fn_c_check_header_compile "$LINENO" "linux/wireless.h" "ac_cv_header_linux_wireless_h" "
16266 #include <dirent.h>
16267 #include <sys/ioctl.h>
16268 #include <sys/socket.h>
16270 "
16271 if test "x$ac_cv_header_linux_wireless_h" = xyes; then :
16272 cat >>confdefs.h <<_ACEOF
16273 #define HAVE_LINUX_WIRELESS_H 1
16274 _ACEOF
16275 have_linux_wireless_h="yes"
16276 else
16277 have_linux_wireless_h="no"
16278 fi
16280 done
16282 fi
16284 # For the swap module
16285 have_sys_swap_h="yes"
16286 for ac_header in sys/swap.h vm/anon.h
16287 do :
16288 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16289 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "
16290 #undef _FILE_OFFSET_BITS
16291 #undef _LARGEFILE64_SOURCE
16292 #if HAVE_SYS_TYPES_H
16293 # include <sys/types.h>
16294 #endif
16295 #if HAVE_SYS_PARAM_H
16296 # include <sys/param.h>
16297 #endif
16299 "
16300 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16301 cat >>confdefs.h <<_ACEOF
16302 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16303 _ACEOF
16305 else
16306 have_sys_swap_h="no"
16307 fi
16309 done
16312 if test "x$have_sys_swap_h$ac_system" = "xnoSolaris"
16313 then
16314 hint_64=""
16315 if test "x$GCC" = "xyes"
16316 then
16317 hint_64="CFLAGS='-m64'"
16318 else
16319 hint_64="CFLAGS='-xarch=v9'"
16320 fi
16321 { $as_echo "$as_me:${as_lineno-$LINENO}: Solaris detected and sys/swap.h not usable. Try building a 64-bit binary ($hint_64 ./configure)." >&5
16322 $as_echo "$as_me: Solaris detected and sys/swap.h not usable. Try building a 64-bit binary ($hint_64 ./configure)." >&6;}
16323 fi
16325 # For load module
16326 # For the processes plugin
16327 # For users module
16328 for ac_header in sys/loadavg.h linux/config.h utmp.h utmpx.h
16329 do :
16330 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16331 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16332 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16333 cat >>confdefs.h <<_ACEOF
16334 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16335 _ACEOF
16337 fi
16339 done
16342 # For interface plugin
16343 for ac_header in ifaddrs.h
16344 do :
16345 ac_fn_c_check_header_mongrel "$LINENO" "ifaddrs.h" "ac_cv_header_ifaddrs_h" "$ac_includes_default"
16346 if test "x$ac_cv_header_ifaddrs_h" = xyes; then :
16347 cat >>confdefs.h <<_ACEOF
16348 #define HAVE_IFADDRS_H 1
16349 _ACEOF
16351 fi
16353 done
16355 for ac_header in net/if.h
16356 do :
16357 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "
16358 #if HAVE_SYS_TYPES_H
16359 # include <sys/types.h>
16360 #endif
16361 #if HAVE_SYS_SOCKET_H
16362 # include <sys/socket.h>
16363 #endif
16365 "
16366 if test "x$ac_cv_header_net_if_h" = xyes; then :
16367 cat >>confdefs.h <<_ACEOF
16368 #define HAVE_NET_IF_H 1
16369 _ACEOF
16371 fi
16373 done
16375 for ac_header in linux/if.h
16376 do :
16377 ac_fn_c_check_header_compile "$LINENO" "linux/if.h" "ac_cv_header_linux_if_h" "
16378 #if HAVE_SYS_TYPES_H
16379 # include <sys/types.h>
16380 #endif
16381 #if HAVE_SYS_SOCKET_H
16382 # include <sys/socket.h>
16383 #endif
16385 "
16386 if test "x$ac_cv_header_linux_if_h" = xyes; then :
16387 cat >>confdefs.h <<_ACEOF
16388 #define HAVE_LINUX_IF_H 1
16389 _ACEOF
16391 fi
16393 done
16395 for ac_header in linux/inet_diag.h
16396 do :
16397 ac_fn_c_check_header_compile "$LINENO" "linux/inet_diag.h" "ac_cv_header_linux_inet_diag_h" "
16398 #if HAVE_SYS_TYPES_H
16399 # include <sys/types.h>
16400 #endif
16401 #if HAVE_SYS_SOCKET_H
16402 # include <sys/socket.h>
16403 #endif
16404 #if HAVE_LINUX_INET_DIAG_H
16405 # include <linux/inet_diag.h>
16406 #endif
16408 "
16409 if test "x$ac_cv_header_linux_inet_diag_h" = xyes; then :
16410 cat >>confdefs.h <<_ACEOF
16411 #define HAVE_LINUX_INET_DIAG_H 1
16412 _ACEOF
16414 fi
16416 done
16418 for ac_header in linux/netdevice.h
16419 do :
16420 ac_fn_c_check_header_compile "$LINENO" "linux/netdevice.h" "ac_cv_header_linux_netdevice_h" "
16421 #if HAVE_SYS_TYPES_H
16422 # include <sys/types.h>
16423 #endif
16424 #if HAVE_SYS_SOCKET_H
16425 # include <sys/socket.h>
16426 #endif
16427 #if HAVE_LINUX_IF_H
16428 # include <linux/if.h>
16429 #endif
16431 "
16432 if test "x$ac_cv_header_linux_netdevice_h" = xyes; then :
16433 cat >>confdefs.h <<_ACEOF
16434 #define HAVE_LINUX_NETDEVICE_H 1
16435 _ACEOF
16437 fi
16439 done
16442 # For ethstat module
16443 for ac_header in linux/sockios.h
16444 do :
16445 ac_fn_c_check_header_compile "$LINENO" "linux/sockios.h" "ac_cv_header_linux_sockios_h" "
16446 #if HAVE_SYS_IOCTL_H
16447 # include <sys/ioctl.h>
16448 #endif
16449 #if HAVE_NET_IF_H
16450 # include <net/if.h>
16451 #endif
16453 "
16454 if test "x$ac_cv_header_linux_sockios_h" = xyes; then :
16455 cat >>confdefs.h <<_ACEOF
16456 #define HAVE_LINUX_SOCKIOS_H 1
16457 _ACEOF
16458 have_linux_sockios_h="yes"
16459 else
16460 have_linux_sockios_h="no"
16461 fi
16463 done
16465 for ac_header in linux/ethtool.h
16466 do :
16467 ac_fn_c_check_header_compile "$LINENO" "linux/ethtool.h" "ac_cv_header_linux_ethtool_h" "
16468 #if HAVE_SYS_IOCTL_H
16469 # include <sys/ioctl.h>
16470 #endif
16471 #if HAVE_NET_IF_H
16472 # include <net/if.h>
16473 #endif
16474 #if HAVE_LINUX_SOCKIOS_H
16475 # include <linux/sockios.h>
16476 #endif
16478 "
16479 if test "x$ac_cv_header_linux_ethtool_h" = xyes; then :
16480 cat >>confdefs.h <<_ACEOF
16481 #define HAVE_LINUX_ETHTOOL_H 1
16482 _ACEOF
16483 have_linux_ethtool_h="yes"
16484 else
16485 have_linux_ethtool_h="no"
16486 fi
16488 done
16491 # For ipvs module
16492 have_linux_ip_vs_h="no"
16493 have_net_ip_vs_h="no"
16494 have_ip_vs_h="no"
16495 ip_vs_h_needs_kernel_cflags="no"
16496 if test "x$ac_system" = "xLinux"
16497 then
16498 for ac_header in linux/ip_vs.h
16499 do :
16500 ac_fn_c_check_header_mongrel "$LINENO" "linux/ip_vs.h" "ac_cv_header_linux_ip_vs_h" "$ac_includes_default"
16501 if test "x$ac_cv_header_linux_ip_vs_h" = xyes; then :
16502 cat >>confdefs.h <<_ACEOF
16503 #define HAVE_LINUX_IP_VS_H 1
16504 _ACEOF
16505 have_linux_ip_vs_h="yes"
16506 fi
16508 done
16510 for ac_header in net/ip_vs.h
16511 do :
16512 ac_fn_c_check_header_mongrel "$LINENO" "net/ip_vs.h" "ac_cv_header_net_ip_vs_h" "$ac_includes_default"
16513 if test "x$ac_cv_header_net_ip_vs_h" = xyes; then :
16514 cat >>confdefs.h <<_ACEOF
16515 #define HAVE_NET_IP_VS_H 1
16516 _ACEOF
16517 have_net_ip_vs_h="yes"
16518 fi
16520 done
16522 for ac_header in ip_vs.h
16523 do :
16524 ac_fn_c_check_header_mongrel "$LINENO" "ip_vs.h" "ac_cv_header_ip_vs_h" "$ac_includes_default"
16525 if test "x$ac_cv_header_ip_vs_h" = xyes; then :
16526 cat >>confdefs.h <<_ACEOF
16527 #define HAVE_IP_VS_H 1
16528 _ACEOF
16529 have_ip_vs_h="yes"
16530 fi
16532 done
16535 if test "x$have_linux_ip_vs_h$have_net_ip_vs_h$have_ip_vs_h" = "xnonono" && test -d "$KERNEL_DIR"
16536 then
16537 SAVE_CFLAGS="$CFLAGS"
16538 CFLAGS="$CFLAGS $KERNEL_CFLAGS"
16540 { $as_echo "$as_me:${as_lineno-$LINENO}: Did not find ip_vs.h. Trying again using headers from $KERNEL_DIR." >&5
16541 $as_echo "$as_me: Did not find ip_vs.h. Trying again using headers from $KERNEL_DIR." >&6;}
16543 for ac_header in linux/ip_vs.h
16544 do :
16545 ac_fn_c_check_header_mongrel "$LINENO" "linux/ip_vs.h" "ac_cv_header_linux_ip_vs_h" "$ac_includes_default"
16546 if test "x$ac_cv_header_linux_ip_vs_h" = xyes; then :
16547 cat >>confdefs.h <<_ACEOF
16548 #define HAVE_LINUX_IP_VS_H 1
16549 _ACEOF
16550 have_linux_ip_vs_h="yes"
16551 fi
16553 done
16555 for ac_header in net/ip_vs.h
16556 do :
16557 ac_fn_c_check_header_mongrel "$LINENO" "net/ip_vs.h" "ac_cv_header_net_ip_vs_h" "$ac_includes_default"
16558 if test "x$ac_cv_header_net_ip_vs_h" = xyes; then :
16559 cat >>confdefs.h <<_ACEOF
16560 #define HAVE_NET_IP_VS_H 1
16561 _ACEOF
16562 have_net_ip_vs_h="yes"
16563 fi
16565 done
16567 for ac_header in ip_vs.h
16568 do :
16569 ac_fn_c_check_header_mongrel "$LINENO" "ip_vs.h" "ac_cv_header_ip_vs_h" "$ac_includes_default"
16570 if test "x$ac_cv_header_ip_vs_h" = xyes; then :
16571 cat >>confdefs.h <<_ACEOF
16572 #define HAVE_IP_VS_H 1
16573 _ACEOF
16574 have_ip_vs_h="yes"
16575 fi
16577 done
16580 if test "x$have_linux_ip_vs_h" = "xyes" || test "x$have_net_ip_vs_h" = "xyes" || test "x$have_ip_vs_h" = "xyes"
16581 then
16582 ip_vs_h_needs_kernel_cflags="yes"
16583 fi
16585 CFLAGS="$SAVE_CFLAGS"
16586 fi
16587 fi
16588 if test "x$ip_vs_h_needs_kernel_cflags" = "xyes"; then
16589 IP_VS_H_NEEDS_KERNEL_CFLAGS_TRUE=
16590 IP_VS_H_NEEDS_KERNEL_CFLAGS_FALSE='#'
16591 else
16592 IP_VS_H_NEEDS_KERNEL_CFLAGS_TRUE='#'
16593 IP_VS_H_NEEDS_KERNEL_CFLAGS_FALSE=
16594 fi
16597 # For quota module
16598 for ac_header in sys/ucred.h
16599 do :
16600 ac_fn_c_check_header_compile "$LINENO" "sys/ucred.h" "ac_cv_header_sys_ucred_h" "
16601 #if HAVE_SYS_TYPES_H
16602 # include <sys/types.h>
16603 #endif
16604 #if HAVE_SYS_PARAM_H
16605 # include <sys/param.h>
16606 #endif
16608 "
16609 if test "x$ac_cv_header_sys_ucred_h" = xyes; then :
16610 cat >>confdefs.h <<_ACEOF
16611 #define HAVE_SYS_UCRED_H 1
16612 _ACEOF
16614 fi
16616 done
16619 # For mount interface
16620 for ac_header in sys/mount.h
16621 do :
16622 ac_fn_c_check_header_compile "$LINENO" "sys/mount.h" "ac_cv_header_sys_mount_h" "
16623 #if HAVE_SYS_TYPES_H
16624 # include <sys/types.h>
16625 #endif
16626 #if HAVE_SYS_PARAM_H
16627 # include <sys/param.h>
16628 #endif
16630 "
16631 if test "x$ac_cv_header_sys_mount_h" = xyes; then :
16632 cat >>confdefs.h <<_ACEOF
16633 #define HAVE_SYS_MOUNT_H 1
16634 _ACEOF
16636 fi
16638 done
16641 # For the email plugin
16642 for ac_header in linux/un.h
16643 do :
16644 ac_fn_c_check_header_compile "$LINENO" "linux/un.h" "ac_cv_header_linux_un_h" "
16645 #if HAVE_SYS_SOCKET_H
16646 # include <sys/socket.h>
16647 #endif
16649 "
16650 if test "x$ac_cv_header_linux_un_h" = xyes; then :
16651 cat >>confdefs.h <<_ACEOF
16652 #define HAVE_LINUX_UN_H 1
16653 _ACEOF
16655 fi
16657 done
16660 for ac_header in pwd.h grp.h sys/un.h ctype.h limits.h xfs/xqm.h fs_info.h fshelp.h paths.h mntent.h mnttab.h sys/fstyp.h sys/fs_types.h sys/mntent.h sys/mnttab.h sys/statfs.h sys/statvfs.h sys/vfs.h sys/vfstab.h sys/vmmeter.h kvm.h wordexp.h locale.h
16661 do :
16662 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
16663 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
16664 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
16665 cat >>confdefs.h <<_ACEOF
16666 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
16667 _ACEOF
16669 fi
16671 done
16674 # For the dns plugin
16675 for ac_header in arpa/nameser.h
16676 do :
16677 ac_fn_c_check_header_mongrel "$LINENO" "arpa/nameser.h" "ac_cv_header_arpa_nameser_h" "$ac_includes_default"
16678 if test "x$ac_cv_header_arpa_nameser_h" = xyes; then :
16679 cat >>confdefs.h <<_ACEOF
16680 #define HAVE_ARPA_NAMESER_H 1
16681 _ACEOF
16683 fi
16685 done
16687 for ac_header in arpa/nameser_compat.h
16688 do :
16689 ac_fn_c_check_header_compile "$LINENO" "arpa/nameser_compat.h" "ac_cv_header_arpa_nameser_compat_h" "
16690 #if HAVE_ARPA_NAMESER_H
16691 # include <arpa/nameser.h>
16692 #endif
16694 "
16695 if test "x$ac_cv_header_arpa_nameser_compat_h" = xyes; then :
16696 cat >>confdefs.h <<_ACEOF
16697 #define HAVE_ARPA_NAMESER_COMPAT_H 1
16698 _ACEOF
16700 fi
16702 done
16705 for ac_header in net/if_arp.h
16706 do :
16707 ac_fn_c_check_header_compile "$LINENO" "net/if_arp.h" "ac_cv_header_net_if_arp_h" "#if HAVE_SYS_SOCKET_H
16708 # include <sys/socket.h>
16709 #endif
16711 "
16712 if test "x$ac_cv_header_net_if_arp_h" = xyes; then :
16713 cat >>confdefs.h <<_ACEOF
16714 #define HAVE_NET_IF_ARP_H 1
16715 _ACEOF
16717 fi
16719 done
16721 for ac_header in net/ppp_defs.h
16722 do :
16723 ac_fn_c_check_header_mongrel "$LINENO" "net/ppp_defs.h" "ac_cv_header_net_ppp_defs_h" "$ac_includes_default"
16724 if test "x$ac_cv_header_net_ppp_defs_h" = xyes; then :
16725 cat >>confdefs.h <<_ACEOF
16726 #define HAVE_NET_PPP_DEFS_H 1
16727 _ACEOF
16729 fi
16731 done
16733 for ac_header in net/if_ppp.h
16734 do :
16735 ac_fn_c_check_header_compile "$LINENO" "net/if_ppp.h" "ac_cv_header_net_if_ppp_h" "#if HAVE_NET_PPP_DEFS_H
16736 # include <net/ppp_defs.h>
16737 #endif
16739 "
16740 if test "x$ac_cv_header_net_if_ppp_h" = xyes; then :
16741 cat >>confdefs.h <<_ACEOF
16742 #define HAVE_NET_IF_PPP_H 1
16743 _ACEOF
16745 fi
16747 done
16749 for ac_header in netinet/if_ether.h
16750 do :
16751 ac_fn_c_check_header_compile "$LINENO" "netinet/if_ether.h" "ac_cv_header_netinet_if_ether_h" "#if HAVE_STDINT_H
16752 # include <stdint.h>
16753 #endif
16754 #if HAVE_SYS_TYPES_H
16755 # include <sys/types.h>
16756 #endif
16757 #if HAVE_SYS_SOCKET_H
16758 # include <sys/socket.h>
16759 #endif
16760 #if HAVE_NET_IF_H
16761 # include <net/if.h>
16762 #endif
16763 #if HAVE_NETINET_IN_H
16764 # include <netinet/in.h>
16765 #endif
16767 "
16768 if test "x$ac_cv_header_netinet_if_ether_h" = xyes; then :
16769 cat >>confdefs.h <<_ACEOF
16770 #define HAVE_NETINET_IF_ETHER_H 1
16771 _ACEOF
16773 fi
16775 done
16778 for ac_header in netinet/ip_compat.h
16779 do :
16780 ac_fn_c_check_header_mongrel "$LINENO" "netinet/ip_compat.h" "ac_cv_header_netinet_ip_compat_h" "$ac_includes_default"
16781 if test "x$ac_cv_header_netinet_ip_compat_h" = xyes; then :
16782 cat >>confdefs.h <<_ACEOF
16783 #define HAVE_NETINET_IP_COMPAT_H 1
16784 _ACEOF
16786 fi
16788 done
16791 have_net_pfvar_h="no"
16792 for ac_header in net/pfvar.h
16793 do :
16794 ac_fn_c_check_header_compile "$LINENO" "net/pfvar.h" "ac_cv_header_net_pfvar_h" "
16795 #if HAVE_SYS_IOCTL_H
16796 # include <sys/ioctl.h>
16797 #endif
16798 #if HAVE_SYS_SOCKET_H
16799 # include <sys/socket.h>
16800 #endif
16801 #if HAVE_NET_IF_H
16802 # include <net/if.h>
16803 #endif
16805 "
16806 if test "x$ac_cv_header_net_pfvar_h" = xyes; then :
16807 cat >>confdefs.h <<_ACEOF
16808 #define HAVE_NET_PFVAR_H 1
16809 _ACEOF
16810 have_net_pfvar_h="yes"
16811 else
16812 have_net_pfvar_h="no"
16813 fi
16815 done
16818 # For the multimeter plugin
16819 have_termios_h="no"
16820 for ac_header in termios.h
16821 do :
16822 ac_fn_c_check_header_mongrel "$LINENO" "termios.h" "ac_cv_header_termios_h" "$ac_includes_default"
16823 if test "x$ac_cv_header_termios_h" = xyes; then :
16824 cat >>confdefs.h <<_ACEOF
16825 #define HAVE_TERMIOS_H 1
16826 _ACEOF
16827 have_termios_h="yes"
16828 fi
16830 done
16833 # For the turbostat plugin
16834 have_asm_msrindex_h="no"
16835 for ac_header in asm/msr-index.h
16836 do :
16837 ac_fn_c_check_header_mongrel "$LINENO" "asm/msr-index.h" "ac_cv_header_asm_msr_index_h" "$ac_includes_default"
16838 if test "x$ac_cv_header_asm_msr_index_h" = xyes; then :
16839 cat >>confdefs.h <<_ACEOF
16840 #define HAVE_ASM_MSR_INDEX_H 1
16841 _ACEOF
16842 have_asm_msrindex_h="yes"
16843 fi
16845 done
16848 if test "x$have_asm_msrindex_h" = "xyes"
16849 then
16850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether asm/msr-index.h has MSR_CORE_C3_RESIDENCY" >&5
16851 $as_echo_n "checking whether asm/msr-index.h has MSR_CORE_C3_RESIDENCY... " >&6; }
16852 if ${c_cv_have_usable_asm_msrindex_h+:} false; then :
16853 $as_echo_n "(cached) " >&6
16854 else
16855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16856 /* end confdefs.h. */
16858 #include<asm/msr-index.h>
16860 int
16861 main ()
16862 {
16864 int y = MSR_CORE_C3_RESIDENCY;
16865 return(y);
16868 ;
16869 return 0;
16870 }
16871 _ACEOF
16872 if ac_fn_c_try_compile "$LINENO"; then :
16873 c_cv_have_usable_asm_msrindex_h="yes"
16874 else
16875 c_cv_have_usable_asm_msrindex_h="no"
16876 fi
16877 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16879 fi
16880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $c_cv_have_usable_asm_msrindex_h" >&5
16881 $as_echo "$c_cv_have_usable_asm_msrindex_h" >&6; }
16882 fi
16884 have_cpuid_h="no"
16885 for ac_header in cpuid.h
16886 do :
16887 ac_fn_c_check_header_mongrel "$LINENO" "cpuid.h" "ac_cv_header_cpuid_h" "$ac_includes_default"
16888 if test "x$ac_cv_header_cpuid_h" = xyes; then :
16889 cat >>confdefs.h <<_ACEOF
16890 #define HAVE_CPUID_H 1
16891 _ACEOF
16892 have_cpuid_h="yes"
16893 fi
16895 done
16898 for ac_header in sys/capability.h
16899 do :
16900 ac_fn_c_check_header_mongrel "$LINENO" "sys/capability.h" "ac_cv_header_sys_capability_h" "$ac_includes_default"
16901 if test "x$ac_cv_header_sys_capability_h" = xyes; then :
16902 cat >>confdefs.h <<_ACEOF
16903 #define HAVE_SYS_CAPABILITY_H 1
16904 _ACEOF
16906 fi
16908 done
16910 #
16911 # Checks for typedefs, structures, and compiler characteristics.
16912 #
16913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
16914 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
16915 if ${ac_cv_c_const+:} false; then :
16916 $as_echo_n "(cached) " >&6
16917 else
16918 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
16919 /* end confdefs.h. */
16921 int
16922 main ()
16923 {
16925 #ifndef __cplusplus
16926 /* Ultrix mips cc rejects this sort of thing. */
16927 typedef int charset[2];
16928 const charset cs = { 0, 0 };
16929 /* SunOS 4.1.1 cc rejects this. */
16930 char const *const *pcpcc;
16931 char **ppc;
16932 /* NEC SVR4.0.2 mips cc rejects this. */
16933 struct point {int x, y;};
16934 static struct point const zero = {0,0};
16935 /* AIX XL C 1.02.0.0 rejects this.
16936 It does not let you subtract one const X* pointer from another in
16937 an arm of an if-expression whose if-part is not a constant
16938 expression */
16939 const char *g = "string";
16940 pcpcc = &g + (g ? g-g : 0);
16941 /* HPUX 7.0 cc rejects these. */
16942 ++pcpcc;
16943 ppc = (char**) pcpcc;
16944 pcpcc = (char const *const *) ppc;
16945 { /* SCO 3.2v4 cc rejects this sort of thing. */
16946 char tx;
16947 char *t = &tx;
16948 char const *s = 0 ? (char *) 0 : (char const *) 0;
16950 *t++ = 0;
16951 if (s) return 0;
16952 }
16953 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
16954 int x[] = {25, 17};
16955 const int *foo = &x[0];
16956 ++foo;
16957 }
16958 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
16959 typedef const int *iptr;
16960 iptr p = 0;
16961 ++p;
16962 }
16963 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
16964 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
16965 struct s { int j; const int *ap[3]; } bx;
16966 struct s *b = &bx; b->j = 5;
16967 }
16968 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
16969 const int foo = 10;
16970 if (!foo) return 0;
16971 }
16972 return !cs[0] && !zero.x;
16973 #endif
16975 ;
16976 return 0;
16977 }
16978 _ACEOF
16979 if ac_fn_c_try_compile "$LINENO"; then :
16980 ac_cv_c_const=yes
16981 else
16982 ac_cv_c_const=no
16983 fi
16984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
16985 fi
16986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
16987 $as_echo "$ac_cv_c_const" >&6; }
16988 if test $ac_cv_c_const = no; then
16990 $as_echo "#define const /**/" >>confdefs.h
16992 fi
16994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
16995 $as_echo_n "checking for inline... " >&6; }
16996 if ${ac_cv_c_inline+:} false; then :
16997 $as_echo_n "(cached) " >&6
16998 else
16999 ac_cv_c_inline=no
17000 for ac_kw in inline __inline__ __inline; do
17001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17002 /* end confdefs.h. */
17003 #ifndef __cplusplus
17004 typedef int foo_t;
17005 static $ac_kw foo_t static_foo () {return 0; }
17006 $ac_kw foo_t foo () {return 0; }
17007 #endif
17009 _ACEOF
17010 if ac_fn_c_try_compile "$LINENO"; then :
17011 ac_cv_c_inline=$ac_kw
17012 fi
17013 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17014 test "$ac_cv_c_inline" != no && break
17015 done
17017 fi
17018 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
17019 $as_echo "$ac_cv_c_inline" >&6; }
17021 case $ac_cv_c_inline in
17022 inline | yes) ;;
17023 *)
17024 case $ac_cv_c_inline in
17025 no) ac_val=;;
17026 *) ac_val=$ac_cv_c_inline;;
17027 esac
17028 cat >>confdefs.h <<_ACEOF
17029 #ifndef __cplusplus
17030 #define inline $ac_val
17031 #endif
17032 _ACEOF
17033 ;;
17034 esac
17036 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
17037 if test "x$ac_cv_type_off_t" = xyes; then :
17039 else
17041 cat >>confdefs.h <<_ACEOF
17042 #define off_t long int
17043 _ACEOF
17045 fi
17047 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
17048 if test "x$ac_cv_type_pid_t" = xyes; then :
17050 else
17052 cat >>confdefs.h <<_ACEOF
17053 #define pid_t int
17054 _ACEOF
17056 fi
17058 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
17059 if test "x$ac_cv_type_size_t" = xyes; then :
17061 else
17063 cat >>confdefs.h <<_ACEOF
17064 #define size_t unsigned int
17065 _ACEOF
17067 fi
17069 ac_fn_c_check_type "$LINENO" "ssize_t" "ac_cv_type_ssize_t" "$ac_includes_default"
17070 if test "x$ac_cv_type_ssize_t" = xyes; then :
17072 else
17074 cat >>confdefs.h <<_ACEOF
17075 #define ssize_t int
17076 _ACEOF
17078 fi
17080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t in sys/types.h" >&5
17081 $as_echo_n "checking for uid_t in sys/types.h... " >&6; }
17082 if ${ac_cv_type_uid_t+:} false; then :
17083 $as_echo_n "(cached) " >&6
17084 else
17085 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17086 /* end confdefs.h. */
17087 #include <sys/types.h>
17089 _ACEOF
17090 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17091 $EGREP "uid_t" >/dev/null 2>&1; then :
17092 ac_cv_type_uid_t=yes
17093 else
17094 ac_cv_type_uid_t=no
17095 fi
17096 rm -f conftest*
17098 fi
17099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_uid_t" >&5
17100 $as_echo "$ac_cv_type_uid_t" >&6; }
17101 if test $ac_cv_type_uid_t = no; then
17103 $as_echo "#define uid_t int" >>confdefs.h
17106 $as_echo "#define gid_t int" >>confdefs.h
17108 fi
17110 ac_fn_c_find_uintX_t "$LINENO" "32" "ac_cv_c_uint32_t"
17111 case $ac_cv_c_uint32_t in #(
17112 no|yes) ;; #(
17113 *)
17115 $as_echo "#define _UINT32_T 1" >>confdefs.h
17118 cat >>confdefs.h <<_ACEOF
17119 #define uint32_t $ac_cv_c_uint32_t
17120 _ACEOF
17121 ;;
17122 esac
17124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
17125 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
17126 if ${ac_cv_header_time+:} false; then :
17127 $as_echo_n "(cached) " >&6
17128 else
17129 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17130 /* end confdefs.h. */
17131 #include <sys/types.h>
17132 #include <sys/time.h>
17133 #include <time.h>
17135 int
17136 main ()
17137 {
17138 if ((struct tm *) 0)
17139 return 0;
17140 ;
17141 return 0;
17142 }
17143 _ACEOF
17144 if ac_fn_c_try_compile "$LINENO"; then :
17145 ac_cv_header_time=yes
17146 else
17147 ac_cv_header_time=no
17148 fi
17149 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17150 fi
17151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
17152 $as_echo "$ac_cv_header_time" >&6; }
17153 if test $ac_cv_header_time = yes; then
17155 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
17157 fi
17160 #
17161 # Checks for library functions.
17162 #
17163 if test $ac_cv_c_compiler_gnu = yes; then
17164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC needs -traditional" >&5
17165 $as_echo_n "checking whether $CC needs -traditional... " >&6; }
17166 if ${ac_cv_prog_gcc_traditional+:} false; then :
17167 $as_echo_n "(cached) " >&6
17168 else
17169 ac_pattern="Autoconf.*'x'"
17170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17171 /* end confdefs.h. */
17172 #include <sgtty.h>
17173 Autoconf TIOCGETP
17174 _ACEOF
17175 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17176 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
17177 ac_cv_prog_gcc_traditional=yes
17178 else
17179 ac_cv_prog_gcc_traditional=no
17180 fi
17181 rm -f conftest*
17184 if test $ac_cv_prog_gcc_traditional = no; then
17185 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17186 /* end confdefs.h. */
17187 #include <termio.h>
17188 Autoconf TCGETA
17189 _ACEOF
17190 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
17191 $EGREP "$ac_pattern" >/dev/null 2>&1; then :
17192 ac_cv_prog_gcc_traditional=yes
17193 fi
17194 rm -f conftest*
17196 fi
17197 fi
17198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_gcc_traditional" >&5
17199 $as_echo "$ac_cv_prog_gcc_traditional" >&6; }
17200 if test $ac_cv_prog_gcc_traditional = yes; then
17201 CC="$CC -traditional"
17202 fi
17203 fi
17205 for ac_func in gettimeofday select strdup strtol getaddrinfo getnameinfo strchr memcpy strstr strcmp strncmp strncpy strlen strncasecmp strcasecmp openlog closelog sysconf setenv if_indextoname setlocale
17206 do :
17207 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17208 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17209 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17210 cat >>confdefs.h <<_ACEOF
17211 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17212 _ACEOF
17214 fi
17215 done
17218 ac_fn_c_check_decl "$LINENO" "strerror_r" "ac_cv_have_decl_strerror_r" "$ac_includes_default"
17219 if test "x$ac_cv_have_decl_strerror_r" = xyes; then :
17220 ac_have_decl=1
17221 else
17222 ac_have_decl=0
17223 fi
17225 cat >>confdefs.h <<_ACEOF
17226 #define HAVE_DECL_STRERROR_R $ac_have_decl
17227 _ACEOF
17229 for ac_func in strerror_r
17230 do :
17231 ac_fn_c_check_func "$LINENO" "strerror_r" "ac_cv_func_strerror_r"
17232 if test "x$ac_cv_func_strerror_r" = xyes; then :
17233 cat >>confdefs.h <<_ACEOF
17234 #define HAVE_STRERROR_R 1
17235 _ACEOF
17237 fi
17238 done
17240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strerror_r returns char *" >&5
17241 $as_echo_n "checking whether strerror_r returns char *... " >&6; }
17242 if ${ac_cv_func_strerror_r_char_p+:} false; then :
17243 $as_echo_n "(cached) " >&6
17244 else
17246 ac_cv_func_strerror_r_char_p=no
17247 if test $ac_cv_have_decl_strerror_r = yes; then
17248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17249 /* end confdefs.h. */
17250 $ac_includes_default
17251 int
17252 main ()
17253 {
17255 char buf[100];
17256 char x = *strerror_r (0, buf, sizeof buf);
17257 char *p = strerror_r (0, buf, sizeof buf);
17258 return !p || x;
17260 ;
17261 return 0;
17262 }
17263 _ACEOF
17264 if ac_fn_c_try_compile "$LINENO"; then :
17265 ac_cv_func_strerror_r_char_p=yes
17266 fi
17267 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17268 else
17269 # strerror_r is not declared. Choose between
17270 # systems that have relatively inaccessible declarations for the
17271 # function. BeOS and DEC UNIX 4.0 fall in this category, but the
17272 # former has a strerror_r that returns char*, while the latter
17273 # has a strerror_r that returns `int'.
17274 # This test should segfault on the DEC system.
17275 if test "$cross_compiling" = yes; then :
17276 :
17277 else
17278 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17279 /* end confdefs.h. */
17280 $ac_includes_default
17281 extern char *strerror_r ();
17282 int
17283 main ()
17284 {
17285 char buf[100];
17286 char x = *strerror_r (0, buf, sizeof buf);
17287 return ! isalpha (x);
17288 ;
17289 return 0;
17290 }
17291 _ACEOF
17292 if ac_fn_c_try_run "$LINENO"; then :
17293 ac_cv_func_strerror_r_char_p=yes
17294 fi
17295 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
17296 conftest.$ac_objext conftest.beam conftest.$ac_ext
17297 fi
17299 fi
17301 fi
17302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_strerror_r_char_p" >&5
17303 $as_echo "$ac_cv_func_strerror_r_char_p" >&6; }
17304 if test $ac_cv_func_strerror_r_char_p = yes; then
17306 $as_echo "#define STRERROR_R_CHAR_P 1" >>confdefs.h
17308 fi
17311 SAVE_CFLAGS="$CFLAGS"
17312 # Emulate behavior of src/Makefile.am
17313 if test "x$GCC" = "xyes"
17314 then
17315 CFLAGS="$CFLAGS -Wall -Werror"
17316 fi
17318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for strtok_r" >&5
17319 $as_echo_n "checking for strtok_r... " >&6; }
17320 if ${c_cv_have_strtok_r_default+:} false; then :
17321 $as_echo_n "(cached) " >&6
17322 else
17323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17324 /* end confdefs.h. */
17326 #include <stdlib.h>
17327 #include <stdio.h>
17328 #include <string.h>
17330 int
17331 main ()
17332 {
17334 char buffer[] = "foo,bar,baz";
17335 char *token;
17336 char *dummy;
17337 char *saveptr;
17339 dummy = buffer;
17340 saveptr = NULL;
17341 while ((token = strtok_r (dummy, ",", &saveptr)) != NULL)
17342 {
17343 dummy = NULL;
17344 printf ("token = %s;\n", token);
17345 }
17348 ;
17349 return 0;
17350 }
17351 _ACEOF
17352 if ac_fn_c_try_link "$LINENO"; then :
17353 c_cv_have_strtok_r_default="yes"
17354 else
17355 c_cv_have_strtok_r_default="no"
17357 fi
17358 rm -f core conftest.err conftest.$ac_objext \
17359 conftest$ac_exeext conftest.$ac_ext
17361 fi
17362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $c_cv_have_strtok_r_default" >&5
17363 $as_echo "$c_cv_have_strtok_r_default" >&6; }
17365 if test "x$c_cv_have_strtok_r_default" = "xno"
17366 then
17367 CFLAGS="$CFLAGS -D_REENTRANT=1"
17369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strtok_r needs _REENTRANT" >&5
17370 $as_echo_n "checking if strtok_r needs _REENTRANT... " >&6; }
17371 if ${c_cv_have_strtok_r_reentrant+:} false; then :
17372 $as_echo_n "(cached) " >&6
17373 else
17374 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17375 /* end confdefs.h. */
17377 #include <stdlib.h>
17378 #include <stdio.h>
17379 #include <string.h>
17381 int
17382 main ()
17383 {
17385 char buffer[] = "foo,bar,baz";
17386 char *token;
17387 char *dummy;
17388 char *saveptr;
17390 dummy = buffer;
17391 saveptr = NULL;
17392 while ((token = strtok_r (dummy, ",", &saveptr)) != NULL)
17393 {
17394 dummy = NULL;
17395 printf ("token = %s;\n", token);
17396 }
17399 ;
17400 return 0;
17401 }
17402 _ACEOF
17403 if ac_fn_c_try_link "$LINENO"; then :
17404 c_cv_have_strtok_r_reentrant="yes"
17405 else
17406 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
17407 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
17408 as_fn_error $? "strtok_r isn't available. Please file a bugreport!
17409 See \`config.log' for more details" "$LINENO" 5; }
17411 fi
17412 rm -f core conftest.err conftest.$ac_objext \
17413 conftest$ac_exeext conftest.$ac_ext
17415 fi
17416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $c_cv_have_strtok_r_reentrant" >&5
17417 $as_echo "$c_cv_have_strtok_r_reentrant" >&6; }
17418 fi
17420 CFLAGS="$SAVE_CFLAGS"
17421 if test "x$c_cv_have_strtok_r_reentrant" = "xyes"
17422 then
17423 CFLAGS="$CFLAGS -D_REENTRANT=1"
17424 fi
17426 for ac_func in getpwnam_r getgrnam_r setgroups regcomp regerror regexec regfree
17427 do :
17428 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
17429 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
17430 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
17431 cat >>confdefs.h <<_ACEOF
17432 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
17433 _ACEOF
17435 fi
17436 done
17439 socket_needs_socket="no"
17440 for ac_func in socket
17441 do :
17442 ac_fn_c_check_func "$LINENO" "socket" "ac_cv_func_socket"
17443 if test "x$ac_cv_func_socket" = xyes; then :
17444 cat >>confdefs.h <<_ACEOF
17445 #define HAVE_SOCKET 1
17446 _ACEOF
17448 else
17449 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socket in -lsocket" >&5
17450 $as_echo_n "checking for socket in -lsocket... " >&6; }
17451 if ${ac_cv_lib_socket_socket+:} false; then :
17452 $as_echo_n "(cached) " >&6
17453 else
17454 ac_check_lib_save_LIBS=$LIBS
17455 LIBS="-lsocket $LIBS"
17456 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17457 /* end confdefs.h. */
17459 /* Override any GCC internal prototype to avoid an error.
17460 Use char because int might match the return type of a GCC
17461 builtin and then its argument prototype would still apply. */
17462 #ifdef __cplusplus
17463 extern "C"
17464 #endif
17465 char socket ();
17466 int
17467 main ()
17468 {
17469 return socket ();
17470 ;
17471 return 0;
17472 }
17473 _ACEOF
17474 if ac_fn_c_try_link "$LINENO"; then :
17475 ac_cv_lib_socket_socket=yes
17476 else
17477 ac_cv_lib_socket_socket=no
17478 fi
17479 rm -f core conftest.err conftest.$ac_objext \
17480 conftest$ac_exeext conftest.$ac_ext
17481 LIBS=$ac_check_lib_save_LIBS
17482 fi
17483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_socket" >&5
17484 $as_echo "$ac_cv_lib_socket_socket" >&6; }
17485 if test "x$ac_cv_lib_socket_socket" = xyes; then :
17486 socket_needs_socket="yes"
17487 else
17488 as_fn_error $? "cannot find socket" "$LINENO" 5
17489 fi
17491 fi
17492 done
17494 if test "x$socket_needs_socket" = "xyes"; then
17495 BUILD_WITH_LIBSOCKET_TRUE=
17496 BUILD_WITH_LIBSOCKET_FALSE='#'
17497 else
17498 BUILD_WITH_LIBSOCKET_TRUE='#'
17499 BUILD_WITH_LIBSOCKET_FALSE=
17500 fi
17503 clock_gettime_needs_rt="no"
17504 clock_gettime_needs_posix4="no"
17505 have_clock_gettime="no"
17506 for ac_func in clock_gettime
17507 do :
17508 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
17509 if test "x$ac_cv_func_clock_gettime" = xyes; then :
17510 cat >>confdefs.h <<_ACEOF
17511 #define HAVE_CLOCK_GETTIME 1
17512 _ACEOF
17513 have_clock_gettime="yes"
17514 fi
17515 done
17517 if test "x$have_clock_gettime" = "xno"
17518 then
17519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
17520 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
17521 if ${ac_cv_lib_rt_clock_gettime+:} false; then :
17522 $as_echo_n "(cached) " >&6
17523 else
17524 ac_check_lib_save_LIBS=$LIBS
17525 LIBS="-lrt $LIBS"
17526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17527 /* end confdefs.h. */
17529 /* Override any GCC internal prototype to avoid an error.
17530 Use char because int might match the return type of a GCC
17531 builtin and then its argument prototype would still apply. */
17532 #ifdef __cplusplus
17533 extern "C"
17534 #endif
17535 char clock_gettime ();
17536 int
17537 main ()
17538 {
17539 return clock_gettime ();
17540 ;
17541 return 0;
17542 }
17543 _ACEOF
17544 if ac_fn_c_try_link "$LINENO"; then :
17545 ac_cv_lib_rt_clock_gettime=yes
17546 else
17547 ac_cv_lib_rt_clock_gettime=no
17548 fi
17549 rm -f core conftest.err conftest.$ac_objext \
17550 conftest$ac_exeext conftest.$ac_ext
17551 LIBS=$ac_check_lib_save_LIBS
17552 fi
17553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
17554 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
17555 if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
17556 clock_gettime_needs_rt="yes"
17557 have_clock_gettime="yes"
17558 fi
17560 fi
17561 if test "x$have_clock_gettime" = "xno"
17562 then
17563 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lposix4" >&5
17564 $as_echo_n "checking for clock_gettime in -lposix4... " >&6; }
17565 if ${ac_cv_lib_posix4_clock_gettime+:} false; then :
17566 $as_echo_n "(cached) " >&6
17567 else
17568 ac_check_lib_save_LIBS=$LIBS
17569 LIBS="-lposix4 $LIBS"
17570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17571 /* end confdefs.h. */
17573 /* Override any GCC internal prototype to avoid an error.
17574 Use char because int might match the return type of a GCC
17575 builtin and then its argument prototype would still apply. */
17576 #ifdef __cplusplus
17577 extern "C"
17578 #endif
17579 char clock_gettime ();
17580 int
17581 main ()
17582 {
17583 return clock_gettime ();
17584 ;
17585 return 0;
17586 }
17587 _ACEOF
17588 if ac_fn_c_try_link "$LINENO"; then :
17589 ac_cv_lib_posix4_clock_gettime=yes
17590 else
17591 ac_cv_lib_posix4_clock_gettime=no
17592 fi
17593 rm -f core conftest.err conftest.$ac_objext \
17594 conftest$ac_exeext conftest.$ac_ext
17595 LIBS=$ac_check_lib_save_LIBS
17596 fi
17597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_clock_gettime" >&5
17598 $as_echo "$ac_cv_lib_posix4_clock_gettime" >&6; }
17599 if test "x$ac_cv_lib_posix4_clock_gettime" = xyes; then :
17600 clock_gettime_needs_posix4="yes"
17601 have_clock_gettime="yes"
17602 fi
17604 fi
17605 if test "x$have_clock_gettime" = "xyes"
17606 then
17608 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
17610 else
17611 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cannot find clock_gettime" >&5
17612 $as_echo "$as_me: WARNING: cannot find clock_gettime" >&2;}
17613 fi
17615 nanosleep_needs_rt="no"
17616 nanosleep_needs_posix4="no"
17617 for ac_func in nanosleep
17618 do :
17619 ac_fn_c_check_func "$LINENO" "nanosleep" "ac_cv_func_nanosleep"
17620 if test "x$ac_cv_func_nanosleep" = xyes; then :
17621 cat >>confdefs.h <<_ACEOF
17622 #define HAVE_NANOSLEEP 1
17623 _ACEOF
17625 else
17626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lrt" >&5
17627 $as_echo_n "checking for nanosleep in -lrt... " >&6; }
17628 if ${ac_cv_lib_rt_nanosleep+:} false; then :
17629 $as_echo_n "(cached) " >&6
17630 else
17631 ac_check_lib_save_LIBS=$LIBS
17632 LIBS="-lrt $LIBS"
17633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17634 /* end confdefs.h. */
17636 /* Override any GCC internal prototype to avoid an error.
17637 Use char because int might match the return type of a GCC
17638 builtin and then its argument prototype would still apply. */
17639 #ifdef __cplusplus
17640 extern "C"
17641 #endif
17642 char nanosleep ();
17643 int
17644 main ()
17645 {
17646 return nanosleep ();
17647 ;
17648 return 0;
17649 }
17650 _ACEOF
17651 if ac_fn_c_try_link "$LINENO"; then :
17652 ac_cv_lib_rt_nanosleep=yes
17653 else
17654 ac_cv_lib_rt_nanosleep=no
17655 fi
17656 rm -f core conftest.err conftest.$ac_objext \
17657 conftest$ac_exeext conftest.$ac_ext
17658 LIBS=$ac_check_lib_save_LIBS
17659 fi
17660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_nanosleep" >&5
17661 $as_echo "$ac_cv_lib_rt_nanosleep" >&6; }
17662 if test "x$ac_cv_lib_rt_nanosleep" = xyes; then :
17663 nanosleep_needs_rt="yes"
17664 else
17665 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for nanosleep in -lposix4" >&5
17666 $as_echo_n "checking for nanosleep in -lposix4... " >&6; }
17667 if ${ac_cv_lib_posix4_nanosleep+:} false; then :
17668 $as_echo_n "(cached) " >&6
17669 else
17670 ac_check_lib_save_LIBS=$LIBS
17671 LIBS="-lposix4 $LIBS"
17672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17673 /* end confdefs.h. */
17675 /* Override any GCC internal prototype to avoid an error.
17676 Use char because int might match the return type of a GCC
17677 builtin and then its argument prototype would still apply. */
17678 #ifdef __cplusplus
17679 extern "C"
17680 #endif
17681 char nanosleep ();
17682 int
17683 main ()
17684 {
17685 return nanosleep ();
17686 ;
17687 return 0;
17688 }
17689 _ACEOF
17690 if ac_fn_c_try_link "$LINENO"; then :
17691 ac_cv_lib_posix4_nanosleep=yes
17692 else
17693 ac_cv_lib_posix4_nanosleep=no
17694 fi
17695 rm -f core conftest.err conftest.$ac_objext \
17696 conftest$ac_exeext conftest.$ac_ext
17697 LIBS=$ac_check_lib_save_LIBS
17698 fi
17699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix4_nanosleep" >&5
17700 $as_echo "$ac_cv_lib_posix4_nanosleep" >&6; }
17701 if test "x$ac_cv_lib_posix4_nanosleep" = xyes; then :
17702 nanosleep_needs_posix4="yes"
17703 else
17704 as_fn_error $? "cannot find nanosleep" "$LINENO" 5
17705 fi
17707 fi
17709 fi
17710 done
17713 if test "x$clock_gettime_needs_rt" = "xyes" || test "x$nanosleep_needs_rt" = "xyes"; then
17714 BUILD_WITH_LIBRT_TRUE=
17715 BUILD_WITH_LIBRT_FALSE='#'
17716 else
17717 BUILD_WITH_LIBRT_TRUE='#'
17718 BUILD_WITH_LIBRT_FALSE=
17719 fi
17721 if test "x$clock_gettime_needs_posix4" = "xyes" || test "x$nanosleep_needs_posix4" = "xyes"; then
17722 BUILD_WITH_LIBPOSIX4_TRUE=
17723 BUILD_WITH_LIBPOSIX4_FALSE='#'
17724 else
17725 BUILD_WITH_LIBPOSIX4_TRUE='#'
17726 BUILD_WITH_LIBPOSIX4_FALSE=
17727 fi
17730 for ac_func in sysctl
17731 do :
17732 ac_fn_c_check_func "$LINENO" "sysctl" "ac_cv_func_sysctl"
17733 if test "x$ac_cv_func_sysctl" = xyes; then :
17734 cat >>confdefs.h <<_ACEOF
17735 #define HAVE_SYSCTL 1
17736 _ACEOF
17737 have_sysctl="yes"
17738 else
17739 have_sysctl="no"
17740 fi
17741 done
17743 for ac_func in sysctlbyname
17744 do :
17745 ac_fn_c_check_func "$LINENO" "sysctlbyname" "ac_cv_func_sysctlbyname"
17746 if test "x$ac_cv_func_sysctlbyname" = xyes; then :
17747 cat >>confdefs.h <<_ACEOF
17748 #define HAVE_SYSCTLBYNAME 1
17749 _ACEOF
17750 have_sysctlbyname="yes"
17751 else
17752 have_sysctlbyname="no"
17753 fi
17754 done
17756 for ac_func in host_statistics
17757 do :
17758 ac_fn_c_check_func "$LINENO" "host_statistics" "ac_cv_func_host_statistics"
17759 if test "x$ac_cv_func_host_statistics" = xyes; then :
17760 cat >>confdefs.h <<_ACEOF
17761 #define HAVE_HOST_STATISTICS 1
17762 _ACEOF
17763 have_host_statistics="yes"
17764 else
17765 have_host_statistics="no"
17766 fi
17767 done
17769 for ac_func in processor_info
17770 do :
17771 ac_fn_c_check_func "$LINENO" "processor_info" "ac_cv_func_processor_info"
17772 if test "x$ac_cv_func_processor_info" = xyes; then :
17773 cat >>confdefs.h <<_ACEOF
17774 #define HAVE_PROCESSOR_INFO 1
17775 _ACEOF
17776 have_processor_info="yes"
17777 else
17778 have_processor_info="no"
17779 fi
17780 done
17782 for ac_func in thread_info
17783 do :
17784 ac_fn_c_check_func "$LINENO" "thread_info" "ac_cv_func_thread_info"
17785 if test "x$ac_cv_func_thread_info" = xyes; then :
17786 cat >>confdefs.h <<_ACEOF
17787 #define HAVE_THREAD_INFO 1
17788 _ACEOF
17789 have_thread_info="yes"
17790 else
17791 have_thread_info="no"
17792 fi
17793 done
17795 for ac_func in statfs
17796 do :
17797 ac_fn_c_check_func "$LINENO" "statfs" "ac_cv_func_statfs"
17798 if test "x$ac_cv_func_statfs" = xyes; then :
17799 cat >>confdefs.h <<_ACEOF
17800 #define HAVE_STATFS 1
17801 _ACEOF
17802 have_statfs="yes"
17803 else
17804 have_statfs="no"
17805 fi
17806 done
17808 for ac_func in statvfs
17809 do :
17810 ac_fn_c_check_func "$LINENO" "statvfs" "ac_cv_func_statvfs"
17811 if test "x$ac_cv_func_statvfs" = xyes; then :
17812 cat >>confdefs.h <<_ACEOF
17813 #define HAVE_STATVFS 1
17814 _ACEOF
17815 have_statvfs="yes"
17816 else
17817 have_statvfs="no"
17818 fi
17819 done
17821 for ac_func in getifaddrs
17822 do :
17823 ac_fn_c_check_func "$LINENO" "getifaddrs" "ac_cv_func_getifaddrs"
17824 if test "x$ac_cv_func_getifaddrs" = xyes; then :
17825 cat >>confdefs.h <<_ACEOF
17826 #define HAVE_GETIFADDRS 1
17827 _ACEOF
17828 have_getifaddrs="yes"
17829 else
17830 have_getifaddrs="no"
17831 fi
17832 done
17834 for ac_func in getloadavg
17835 do :
17836 ac_fn_c_check_func "$LINENO" "getloadavg" "ac_cv_func_getloadavg"
17837 if test "x$ac_cv_func_getloadavg" = xyes; then :
17838 cat >>confdefs.h <<_ACEOF
17839 #define HAVE_GETLOADAVG 1
17840 _ACEOF
17841 have_getloadavg="yes"
17842 else
17843 have_getloadavg="no"
17844 fi
17845 done
17847 for ac_func in syslog
17848 do :
17849 ac_fn_c_check_func "$LINENO" "syslog" "ac_cv_func_syslog"
17850 if test "x$ac_cv_func_syslog" = xyes; then :
17851 cat >>confdefs.h <<_ACEOF
17852 #define HAVE_SYSLOG 1
17853 _ACEOF
17854 have_syslog="yes"
17855 else
17856 have_syslog="no"
17857 fi
17858 done
17860 for ac_func in getutent
17861 do :
17862 ac_fn_c_check_func "$LINENO" "getutent" "ac_cv_func_getutent"
17863 if test "x$ac_cv_func_getutent" = xyes; then :
17864 cat >>confdefs.h <<_ACEOF
17865 #define HAVE_GETUTENT 1
17866 _ACEOF
17867 have_getutent="yes"
17868 else
17869 have_getutent="no"
17870 fi
17871 done
17873 for ac_func in getutxent
17874 do :
17875 ac_fn_c_check_func "$LINENO" "getutxent" "ac_cv_func_getutxent"
17876 if test "x$ac_cv_func_getutxent" = xyes; then :
17877 cat >>confdefs.h <<_ACEOF
17878 #define HAVE_GETUTXENT 1
17879 _ACEOF
17880 have_getutxent="yes"
17881 else
17882 have_getutxent="no"
17883 fi
17884 done
17887 # Check for strptime {{{
17888 if test "x$GCC" = "xyes"
17889 then
17890 SAVE_CFLAGS="$CFLAGS"
17891 CFLAGS="$CFLAGS -Wall -Wextra -Werror"
17892 fi
17894 for ac_func in strptime
17895 do :
17896 ac_fn_c_check_func "$LINENO" "strptime" "ac_cv_func_strptime"
17897 if test "x$ac_cv_func_strptime" = xyes; then :
17898 cat >>confdefs.h <<_ACEOF
17899 #define HAVE_STRPTIME 1
17900 _ACEOF
17901 have_strptime="yes"
17902 else
17903 have_strptime="no"
17904 fi
17905 done
17907 if test "x$have_strptime" = "xyes"
17908 then
17909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strptime is exported by default" >&5
17910 $as_echo_n "checking whether strptime is exported by default... " >&6; }
17911 if ${c_cv_have_strptime_default+:} false; then :
17912 $as_echo_n "(cached) " >&6
17913 else
17914 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17915 /* end confdefs.h. */
17917 #include <time.h>
17919 int
17920 main ()
17921 {
17923 struct tm stm;
17924 (void) strptime ("2010-12-30%13:42:42", "%Y-%m-%dT%T", &stm);
17927 ;
17928 return 0;
17929 }
17930 _ACEOF
17931 if ac_fn_c_try_compile "$LINENO"; then :
17932 c_cv_have_strptime_default="yes"
17933 else
17934 c_cv_have_strptime_default="no"
17935 fi
17936 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17937 fi
17938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $c_cv_have_strptime_default" >&5
17939 $as_echo "$c_cv_have_strptime_default" >&6; }
17940 fi
17941 if test "x$have_strptime" = "xyes" && test "x$c_cv_have_strptime_default" = "xno"
17942 then
17943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether strptime needs standards mode" >&5
17944 $as_echo_n "checking whether strptime needs standards mode... " >&6; }
17945 if ${c_cv_have_strptime_standards+:} false; then :
17946 $as_echo_n "(cached) " >&6
17947 else
17948 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
17949 /* end confdefs.h. */
17951 #ifndef _ISOC99_SOURCE
17952 # define _ISOC99_SOURCE 1
17953 #endif
17954 #ifndef _POSIX_C_SOURCE
17955 # define _POSIX_C_SOURCE 200112L
17956 #endif
17957 #ifndef _XOPEN_SOURCE
17958 # define _XOPEN_SOURCE 500
17959 #endif
17960 #include <time.h>
17962 int
17963 main ()
17964 {
17966 struct tm stm;
17967 (void) strptime ("2010-12-30%13:42:42", "%Y-%m-%dT%T", &stm);
17970 ;
17971 return 0;
17972 }
17973 _ACEOF
17974 if ac_fn_c_try_compile "$LINENO"; then :
17975 c_cv_have_strptime_standards="yes"
17976 else
17977 c_cv_have_strptime_standards="no"
17978 fi
17979 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
17980 fi
17981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $c_cv_have_strptime_standards" >&5
17982 $as_echo "$c_cv_have_strptime_standards" >&6; }
17984 if test "x$c_cv_have_strptime_standards" = "xyes"
17985 then
17987 $as_echo "#define STRPTIME_NEEDS_STANDARDS 1" >>confdefs.h
17989 else
17990 have_strptime="no"
17991 fi
17992 fi
17994 if test "x$GCC" = "xyes"
17995 then
17996 CFLAGS="$SAVE_CFLAGS"
17997 fi
17998 # }}} Check for strptime
18000 for ac_func in swapctl
18001 do :
18002 ac_fn_c_check_func "$LINENO" "swapctl" "ac_cv_func_swapctl"
18003 if test "x$ac_cv_func_swapctl" = xyes; then :
18004 cat >>confdefs.h <<_ACEOF
18005 #define HAVE_SWAPCTL 1
18006 _ACEOF
18007 have_swapctl="yes"
18008 else
18009 have_swapctl="no"
18010 fi
18011 done
18013 if test "x$have_swapctl" = "xyes"; then
18014 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether swapctl takes two arguments" >&5
18015 $as_echo_n "checking whether swapctl takes two arguments... " >&6; }
18016 if ${c_cv_have_swapctl_two_args+:} false; then :
18017 $as_echo_n "(cached) " >&6
18018 else
18019 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18020 /* end confdefs.h. */
18022 #if HAVE_SYS_SWAP_H && !defined(_LP64) && _FILE_OFFSET_BITS == 64
18023 # undef _FILE_OFFSET_BITS
18024 # undef _LARGEFILE64_SOURCE
18025 #endif
18026 #include <sys/stat.h>
18027 #include <sys/param.h>
18028 #include <sys/swap.h>
18029 #include <unistd.h>
18031 int
18032 main ()
18033 {
18035 int num = swapctl(0, NULL);
18038 ;
18039 return 0;
18040 }
18041 _ACEOF
18042 if ac_fn_c_try_compile "$LINENO"; then :
18043 c_cv_have_swapctl_two_args="yes"
18044 else
18045 c_cv_have_swapctl_two_args="no"
18047 fi
18048 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18050 fi
18051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $c_cv_have_swapctl_two_args" >&5
18052 $as_echo "$c_cv_have_swapctl_two_args" >&6; }
18053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether swapctl takes three arguments" >&5
18054 $as_echo_n "checking whether swapctl takes three arguments... " >&6; }
18055 if ${c_cv_have_swapctl_three_args+:} false; then :
18056 $as_echo_n "(cached) " >&6
18057 else
18058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18059 /* end confdefs.h. */
18061 #if HAVE_SYS_SWAP_H && !defined(_LP64) && _FILE_OFFSET_BITS == 64
18062 # undef _FILE_OFFSET_BITS
18063 # undef _LARGEFILE64_SOURCE
18064 #endif
18065 #include <sys/stat.h>
18066 #include <sys/param.h>
18067 #include <sys/swap.h>
18068 #include <unistd.h>
18070 int
18071 main ()
18072 {
18074 int num = swapctl(0, NULL, 0);
18077 ;
18078 return 0;
18079 }
18080 _ACEOF
18081 if ac_fn_c_try_compile "$LINENO"; then :
18082 c_cv_have_swapctl_three_args="yes"
18083 else
18084 c_cv_have_swapctl_three_args="no"
18086 fi
18087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18089 fi
18090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $c_cv_have_swapctl_three_args" >&5
18091 $as_echo "$c_cv_have_swapctl_three_args" >&6; }
18092 fi
18093 # Check for different versions of `swapctl' here..
18094 if test "x$have_swapctl" = "xyes"; then
18095 if test "x$c_cv_have_swapctl_two_args" = "xyes"; then
18097 $as_echo "#define HAVE_SWAPCTL_TWO_ARGS 1" >>confdefs.h
18099 fi
18100 if test "x$c_cv_have_swapctl_three_args" = "xyes"; then
18102 $as_echo "#define HAVE_SWAPCTL_THREE_ARGS 1" >>confdefs.h
18104 fi
18105 fi
18107 # Check for NAN
18109 # Check whether --with-nan-emulation was given.
18110 if test "${with_nan_emulation+set}" = set; then :
18111 withval=$with_nan_emulation;
18112 if test "x$withval" = "xno"; then
18113 nan_type="none"
18114 else if test "x$withval" = "xyes"; then
18115 nan_type="zero"
18116 else
18117 nan_type="$withval"
18118 fi; fi
18120 else
18121 nan_type="none"
18122 fi
18124 if test "x$nan_type" = "xnone"; then
18125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NAN is defined by default" >&5
18126 $as_echo_n "checking whether NAN is defined by default... " >&6; }
18127 if ${c_cv_have_nan_default+:} false; then :
18128 $as_echo_n "(cached) " >&6
18129 else
18130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18131 /* end confdefs.h. */
18133 #include <stdlib.h>
18134 #include <math.h>
18135 static double foo = NAN;
18137 int
18138 main ()
18139 {
18141 if (isnan (foo))
18142 return 0;
18143 else
18144 return 1;
18147 ;
18148 return 0;
18149 }
18150 _ACEOF
18151 if ac_fn_c_try_compile "$LINENO"; then :
18152 c_cv_have_nan_default="yes"
18153 else
18154 c_cv_have_nan_default="no"
18156 fi
18157 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18159 fi
18160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $c_cv_have_nan_default" >&5
18161 $as_echo "$c_cv_have_nan_default" >&6; }
18162 if test "x$c_cv_have_nan_default" = "xyes"
18163 then
18164 nan_type="default"
18165 fi
18166 fi
18167 if test "x$nan_type" = "xnone"; then
18168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NAN is defined by __USE_ISOC99" >&5
18169 $as_echo_n "checking whether NAN is defined by __USE_ISOC99... " >&6; }
18170 if ${c_cv_have_nan_isoc+:} false; then :
18171 $as_echo_n "(cached) " >&6
18172 else
18173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18174 /* end confdefs.h. */
18176 #include <stdlib.h>
18177 #define __USE_ISOC99 1
18178 #include <math.h>
18179 static double foo = NAN;
18181 int
18182 main ()
18183 {
18185 if (isnan (foo))
18186 return 0;
18187 else
18188 return 1;
18191 ;
18192 return 0;
18193 }
18194 _ACEOF
18195 if ac_fn_c_try_compile "$LINENO"; then :
18196 c_cv_have_nan_isoc="yes"
18197 else
18198 c_cv_have_nan_isoc="no"
18200 fi
18201 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18203 fi
18204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $c_cv_have_nan_isoc" >&5
18205 $as_echo "$c_cv_have_nan_isoc" >&6; }
18206 if test "x$c_cv_have_nan_isoc" = "xyes"
18207 then
18208 nan_type="isoc99"
18209 fi
18210 fi
18211 if test "x$nan_type" = "xnone"; then
18212 SAVE_LDFLAGS=$LDFLAGS
18213 LDFLAGS="$LDFLAGS -lm"
18214 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NAN can be defined by 0/0" >&5
18215 $as_echo_n "checking whether NAN can be defined by 0/0... " >&6; }
18216 if ${c_cv_have_nan_zero+:} false; then :
18217 $as_echo_n "(cached) " >&6
18218 else
18219 if test "$cross_compiling" = yes; then :
18220 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18221 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18222 as_fn_error $? "cannot run test program while cross compiling
18223 See \`config.log' for more details" "$LINENO" 5; }
18224 else
18225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18226 /* end confdefs.h. */
18228 #include <stdlib.h>
18229 #include <math.h>
18230 #ifdef NAN
18231 # undef NAN
18232 #endif
18233 #define NAN (0.0 / 0.0)
18234 #ifndef isnan
18235 # define isnan(f) ((f) != (f))
18236 #endif
18237 static double foo = NAN;
18239 int
18240 main ()
18241 {
18243 if (isnan (foo))
18244 return 0;
18245 else
18246 return 1;
18249 ;
18250 return 0;
18251 }
18252 _ACEOF
18253 if ac_fn_c_try_run "$LINENO"; then :
18254 c_cv_have_nan_zero="yes"
18255 else
18256 c_cv_have_nan_zero="no"
18258 fi
18259 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18260 conftest.$ac_objext conftest.beam conftest.$ac_ext
18261 fi
18264 fi
18265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $c_cv_have_nan_zero" >&5
18266 $as_echo "$c_cv_have_nan_zero" >&6; }
18267 LDFLAGS=$SAVE_LDFLAGS
18268 if test "x$c_cv_have_nan_zero" = "xyes"
18269 then
18270 nan_type="zero"
18271 fi
18272 fi
18274 if test "x$nan_type" = "xdefault"; then
18276 $as_echo "#define NAN_STATIC_DEFAULT 1" >>confdefs.h
18278 else if test "x$nan_type" = "xisoc99"; then
18280 $as_echo "#define NAN_STATIC_ISOC 1" >>confdefs.h
18282 else if test "x$nan_type" = "xzero"; then
18284 $as_echo "#define NAN_ZERO_ZERO 1" >>confdefs.h
18286 else
18287 as_fn_error $? "Didn't find out how to statically initialize variables to NAN. Sorry." "$LINENO" 5
18288 fi; fi; fi
18291 # Check whether --with-fp-layout was given.
18292 if test "${with_fp_layout+set}" = set; then :
18293 withval=$with_fp_layout;
18294 if test "x$withval" = "xnothing"; then
18295 fp_layout_type="nothing"
18296 else if test "x$withval" = "xendianflip"; then
18297 fp_layout_type="endianflip"
18298 else if test "x$withval" = "xintswap"; then
18299 fp_layout_type="intswap"
18300 else
18301 as_fn_error $? "Invalid argument for --with-fp-layout. Valid arguments are: nothing, endianflip, intswap" "$LINENO" 5;
18302 fi; fi; fi
18304 else
18305 fp_layout_type="unknown"
18306 fi
18309 if test "x$fp_layout_type" = "xunknown"; then
18310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if doubles are stored in x86 representation" >&5
18311 $as_echo_n "checking if doubles are stored in x86 representation... " >&6; }
18312 if ${c_cv_fp_layout_need_nothing+:} false; then :
18313 $as_echo_n "(cached) " >&6
18314 else
18315 if test "$cross_compiling" = yes; then :
18316 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18317 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18318 as_fn_error $? "cannot run test program while cross compiling
18319 See \`config.log' for more details" "$LINENO" 5; }
18320 else
18321 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18322 /* end confdefs.h. */
18324 #include <stdlib.h>
18325 #include <stdio.h>
18326 #include <string.h>
18327 #if HAVE_STDINT_H
18328 # include <stdint.h>
18329 #endif
18330 #if HAVE_INTTYPES_H
18331 # include <inttypes.h>
18332 #endif
18333 #if HAVE_STDBOOL_H
18334 # include <stdbool.h>
18335 #endif
18337 int
18338 main ()
18339 {
18341 uint64_t i0;
18342 uint64_t i1;
18343 uint8_t c[8];
18344 double d;
18346 d = 8.642135e130;
18347 memcpy ((void *) &i0, (void *) &d, 8);
18349 i1 = i0;
18350 memcpy ((void *) c, (void *) &i1, 8);
18352 if ((c[0] == 0x2f) && (c[1] == 0x25)
18353 && (c[2] == 0xc0) && (c[3] == 0xc7)
18354 && (c[4] == 0x43) && (c[5] == 0x2b)
18355 && (c[6] == 0x1f) && (c[7] == 0x5b))
18356 return (0);
18357 else
18358 return (1);
18361 ;
18362 return 0;
18363 }
18364 _ACEOF
18365 if ac_fn_c_try_run "$LINENO"; then :
18366 c_cv_fp_layout_need_nothing="yes"
18367 else
18368 c_cv_fp_layout_need_nothing="no"
18370 fi
18371 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18372 conftest.$ac_objext conftest.beam conftest.$ac_ext
18373 fi
18376 fi
18377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $c_cv_fp_layout_need_nothing" >&5
18378 $as_echo "$c_cv_fp_layout_need_nothing" >&6; }
18379 if test "x$c_cv_fp_layout_need_nothing" = "xyes"; then
18380 fp_layout_type="nothing"
18381 fi
18382 fi
18383 if test "x$fp_layout_type" = "xunknown"; then
18384 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if endianflip converts to x86 representation" >&5
18385 $as_echo_n "checking if endianflip converts to x86 representation... " >&6; }
18386 if ${c_cv_fp_layout_need_endianflip+:} false; then :
18387 $as_echo_n "(cached) " >&6
18388 else
18389 if test "$cross_compiling" = yes; then :
18390 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18391 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18392 as_fn_error $? "cannot run test program while cross compiling
18393 See \`config.log' for more details" "$LINENO" 5; }
18394 else
18395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18396 /* end confdefs.h. */
18398 #include <stdlib.h>
18399 #include <stdio.h>
18400 #include <string.h>
18401 #if HAVE_STDINT_H
18402 # include <stdint.h>
18403 #endif
18404 #if HAVE_INTTYPES_H
18405 # include <inttypes.h>
18406 #endif
18407 #if HAVE_STDBOOL_H
18408 # include <stdbool.h>
18409 #endif
18410 #define endianflip(A) ((((uint64_t)(A) & 0xff00000000000000LL) >> 56) | \
18411 (((uint64_t)(A) & 0x00ff000000000000LL) >> 40) | \
18412 (((uint64_t)(A) & 0x0000ff0000000000LL) >> 24) | \
18413 (((uint64_t)(A) & 0x000000ff00000000LL) >> 8) | \
18414 (((uint64_t)(A) & 0x00000000ff000000LL) << 8) | \
18415 (((uint64_t)(A) & 0x0000000000ff0000LL) << 24) | \
18416 (((uint64_t)(A) & 0x000000000000ff00LL) << 40) | \
18417 (((uint64_t)(A) & 0x00000000000000ffLL) << 56))
18419 int
18420 main ()
18421 {
18423 uint64_t i0;
18424 uint64_t i1;
18425 uint8_t c[8];
18426 double d;
18428 d = 8.642135e130;
18429 memcpy ((void *) &i0, (void *) &d, 8);
18431 i1 = endianflip (i0);
18432 memcpy ((void *) c, (void *) &i1, 8);
18434 if ((c[0] == 0x2f) && (c[1] == 0x25)
18435 && (c[2] == 0xc0) && (c[3] == 0xc7)
18436 && (c[4] == 0x43) && (c[5] == 0x2b)
18437 && (c[6] == 0x1f) && (c[7] == 0x5b))
18438 return (0);
18439 else
18440 return (1);
18443 ;
18444 return 0;
18445 }
18446 _ACEOF
18447 if ac_fn_c_try_run "$LINENO"; then :
18448 c_cv_fp_layout_need_endianflip="yes"
18449 else
18450 c_cv_fp_layout_need_endianflip="no"
18452 fi
18453 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18454 conftest.$ac_objext conftest.beam conftest.$ac_ext
18455 fi
18458 fi
18459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $c_cv_fp_layout_need_endianflip" >&5
18460 $as_echo "$c_cv_fp_layout_need_endianflip" >&6; }
18461 if test "x$c_cv_fp_layout_need_endianflip" = "xyes"; then
18462 fp_layout_type="endianflip"
18463 fi
18464 fi
18465 if test "x$fp_layout_type" = "xunknown"; then
18466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if intswap converts to x86 representation" >&5
18467 $as_echo_n "checking if intswap converts to x86 representation... " >&6; }
18468 if ${c_cv_fp_layout_need_intswap+:} false; then :
18469 $as_echo_n "(cached) " >&6
18470 else
18471 if test "$cross_compiling" = yes; then :
18472 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
18473 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
18474 as_fn_error $? "cannot run test program while cross compiling
18475 See \`config.log' for more details" "$LINENO" 5; }
18476 else
18477 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18478 /* end confdefs.h. */
18480 #include <stdlib.h>
18481 #include <stdio.h>
18482 #include <string.h>
18483 #if HAVE_STDINT_H
18484 # include <stdint.h>
18485 #endif
18486 #if HAVE_INTTYPES_H
18487 # include <inttypes.h>
18488 #endif
18489 #if HAVE_STDBOOL_H
18490 # include <stdbool.h>
18491 #endif
18492 #define intswap(A) ((((uint64_t)(A) & 0xffffffff00000000LL) >> 32) | \
18493 (((uint64_t)(A) & 0x00000000ffffffffLL) << 32))
18495 int
18496 main ()
18497 {
18499 uint64_t i0;
18500 uint64_t i1;
18501 uint8_t c[8];
18502 double d;
18504 d = 8.642135e130;
18505 memcpy ((void *) &i0, (void *) &d, 8);
18507 i1 = intswap (i0);
18508 memcpy ((void *) c, (void *) &i1, 8);
18510 if ((c[0] == 0x2f) && (c[1] == 0x25)
18511 && (c[2] == 0xc0) && (c[3] == 0xc7)
18512 && (c[4] == 0x43) && (c[5] == 0x2b)
18513 && (c[6] == 0x1f) && (c[7] == 0x5b))
18514 return (0);
18515 else
18516 return (1);
18519 ;
18520 return 0;
18521 }
18522 _ACEOF
18523 if ac_fn_c_try_run "$LINENO"; then :
18524 c_cv_fp_layout_need_intswap="yes"
18525 else
18526 c_cv_fp_layout_need_intswap="no"
18528 fi
18529 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
18530 conftest.$ac_objext conftest.beam conftest.$ac_ext
18531 fi
18534 fi
18535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $c_cv_fp_layout_need_intswap" >&5
18536 $as_echo "$c_cv_fp_layout_need_intswap" >&6; }
18537 if test "x$c_cv_fp_layout_need_intswap" = "xyes"; then
18538 fp_layout_type="intswap"
18539 fi
18540 fi
18542 if test "x$fp_layout_type" = "xnothing"; then
18544 $as_echo "#define FP_LAYOUT_NEED_NOTHING 1" >>confdefs.h
18546 else if test "x$fp_layout_type" = "xendianflip"; then
18548 $as_echo "#define FP_LAYOUT_NEED_ENDIANFLIP 1" >>confdefs.h
18550 else if test "x$fp_layout_type" = "xintswap"; then
18552 $as_echo "#define FP_LAYOUT_NEED_INTSWAP 1" >>confdefs.h
18554 else
18555 as_fn_error $? "Didn't find out how doubles are stored in memory. Sorry." "$LINENO" 5
18556 fi; fi; fi
18558 # --with-useragent {{{
18560 # Check whether --with-useragent was given.
18561 if test "${with_useragent+set}" = set; then :
18562 withval=$with_useragent;
18563 if test "x$withval" != "xno" && test "x$withval" != "xyes"
18564 then
18566 cat >>confdefs.h <<_ACEOF
18567 #define COLLECTD_USERAGENT "$withval"
18568 _ACEOF
18570 fi
18572 fi
18575 # }}}
18577 have_getfsstat="no"
18578 for ac_func in getfsstat
18579 do :
18580 ac_fn_c_check_func "$LINENO" "getfsstat" "ac_cv_func_getfsstat"
18581 if test "x$ac_cv_func_getfsstat" = xyes; then :
18582 cat >>confdefs.h <<_ACEOF
18583 #define HAVE_GETFSSTAT 1
18584 _ACEOF
18585 have_getfsstat="yes"
18586 fi
18587 done
18589 have_getvfsstat="no"
18590 for ac_func in getvfsstat
18591 do :
18592 ac_fn_c_check_func "$LINENO" "getvfsstat" "ac_cv_func_getvfsstat"
18593 if test "x$ac_cv_func_getvfsstat" = xyes; then :
18594 cat >>confdefs.h <<_ACEOF
18595 #define HAVE_GETVFSSTAT 1
18596 _ACEOF
18597 have_getvfsstat="yes"
18598 fi
18599 done
18601 have_listmntent="no"
18602 for ac_func in listmntent
18603 do :
18604 ac_fn_c_check_func "$LINENO" "listmntent" "ac_cv_func_listmntent"
18605 if test "x$ac_cv_func_listmntent" = xyes; then :
18606 cat >>confdefs.h <<_ACEOF
18607 #define HAVE_LISTMNTENT 1
18608 _ACEOF
18609 have_listmntent="yes"
18610 fi
18611 done
18614 have_getmntent="no"
18615 for ac_func in getmntent
18616 do :
18617 ac_fn_c_check_func "$LINENO" "getmntent" "ac_cv_func_getmntent"
18618 if test "x$ac_cv_func_getmntent" = xyes; then :
18619 cat >>confdefs.h <<_ACEOF
18620 #define HAVE_GETMNTENT 1
18621 _ACEOF
18622 have_getmntent="c"
18623 fi
18624 done
18626 if test "x$have_getmntent" = "xno"; then
18627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getmntent in -lsun" >&5
18628 $as_echo_n "checking for getmntent in -lsun... " >&6; }
18629 if ${ac_cv_lib_sun_getmntent+:} false; then :
18630 $as_echo_n "(cached) " >&6
18631 else
18632 ac_check_lib_save_LIBS=$LIBS
18633 LIBS="-lsun $LIBS"
18634 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18635 /* end confdefs.h. */
18637 /* Override any GCC internal prototype to avoid an error.
18638 Use char because int might match the return type of a GCC
18639 builtin and then its argument prototype would still apply. */
18640 #ifdef __cplusplus
18641 extern "C"
18642 #endif
18643 char getmntent ();
18644 int
18645 main ()
18646 {
18647 return getmntent ();
18648 ;
18649 return 0;
18650 }
18651 _ACEOF
18652 if ac_fn_c_try_link "$LINENO"; then :
18653 ac_cv_lib_sun_getmntent=yes
18654 else
18655 ac_cv_lib_sun_getmntent=no
18656 fi
18657 rm -f core conftest.err conftest.$ac_objext \
18658 conftest$ac_exeext conftest.$ac_ext
18659 LIBS=$ac_check_lib_save_LIBS
18660 fi
18661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sun_getmntent" >&5
18662 $as_echo "$ac_cv_lib_sun_getmntent" >&6; }
18663 if test "x$ac_cv_lib_sun_getmntent" = xyes; then :
18664 have_getmntent="sun"
18665 fi
18667 fi
18668 if test "x$have_getmntent" = "xno"; then
18669 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getmntent in -lseq" >&5
18670 $as_echo_n "checking for getmntent in -lseq... " >&6; }
18671 if ${ac_cv_lib_seq_getmntent+:} false; then :
18672 $as_echo_n "(cached) " >&6
18673 else
18674 ac_check_lib_save_LIBS=$LIBS
18675 LIBS="-lseq $LIBS"
18676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18677 /* end confdefs.h. */
18679 /* Override any GCC internal prototype to avoid an error.
18680 Use char because int might match the return type of a GCC
18681 builtin and then its argument prototype would still apply. */
18682 #ifdef __cplusplus
18683 extern "C"
18684 #endif
18685 char getmntent ();
18686 int
18687 main ()
18688 {
18689 return getmntent ();
18690 ;
18691 return 0;
18692 }
18693 _ACEOF
18694 if ac_fn_c_try_link "$LINENO"; then :
18695 ac_cv_lib_seq_getmntent=yes
18696 else
18697 ac_cv_lib_seq_getmntent=no
18698 fi
18699 rm -f core conftest.err conftest.$ac_objext \
18700 conftest$ac_exeext conftest.$ac_ext
18701 LIBS=$ac_check_lib_save_LIBS
18702 fi
18703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_seq_getmntent" >&5
18704 $as_echo "$ac_cv_lib_seq_getmntent" >&6; }
18705 if test "x$ac_cv_lib_seq_getmntent" = xyes; then :
18706 have_getmntent="seq"
18707 fi
18709 fi
18710 if test "x$have_getmntent" = "xno"; then
18711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for getmntent in -lgen" >&5
18712 $as_echo_n "checking for getmntent in -lgen... " >&6; }
18713 if ${ac_cv_lib_gen_getmntent+:} false; then :
18714 $as_echo_n "(cached) " >&6
18715 else
18716 ac_check_lib_save_LIBS=$LIBS
18717 LIBS="-lgen $LIBS"
18718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18719 /* end confdefs.h. */
18721 /* Override any GCC internal prototype to avoid an error.
18722 Use char because int might match the return type of a GCC
18723 builtin and then its argument prototype would still apply. */
18724 #ifdef __cplusplus
18725 extern "C"
18726 #endif
18727 char getmntent ();
18728 int
18729 main ()
18730 {
18731 return getmntent ();
18732 ;
18733 return 0;
18734 }
18735 _ACEOF
18736 if ac_fn_c_try_link "$LINENO"; then :
18737 ac_cv_lib_gen_getmntent=yes
18738 else
18739 ac_cv_lib_gen_getmntent=no
18740 fi
18741 rm -f core conftest.err conftest.$ac_objext \
18742 conftest$ac_exeext conftest.$ac_ext
18743 LIBS=$ac_check_lib_save_LIBS
18744 fi
18745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_getmntent" >&5
18746 $as_echo "$ac_cv_lib_gen_getmntent" >&6; }
18747 if test "x$ac_cv_lib_gen_getmntent" = xyes; then :
18748 have_getmntent="gen"
18749 fi
18751 fi
18753 if test "x$have_getmntent" = "xc"; then
18754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getmntent takes one argument" >&5
18755 $as_echo_n "checking whether getmntent takes one argument... " >&6; }
18756 if ${c_cv_have_one_getmntent+:} false; then :
18757 $as_echo_n "(cached) " >&6
18758 else
18759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18760 /* end confdefs.h. */
18762 #include "$srcdir/src/utils_mount.h"
18764 int
18765 main ()
18766 {
18768 FILE *fh;
18769 struct mntent *me;
18770 fh = setmntent ("/etc/mtab", "r");
18771 me = getmntent (fh);
18772 return(me->mnt_passno);
18775 ;
18776 return 0;
18777 }
18778 _ACEOF
18779 if ac_fn_c_try_compile "$LINENO"; then :
18780 c_cv_have_one_getmntent="yes"
18781 else
18782 c_cv_have_one_getmntent="no"
18784 fi
18785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18787 fi
18788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $c_cv_have_one_getmntent" >&5
18789 $as_echo "$c_cv_have_one_getmntent" >&6; }
18790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether getmntent takes two arguments" >&5
18791 $as_echo_n "checking whether getmntent takes two arguments... " >&6; }
18792 if ${c_cv_have_two_getmntent+:} false; then :
18793 $as_echo_n "(cached) " >&6
18794 else
18795 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18796 /* end confdefs.h. */
18798 #include "$srcdir/src/utils_mount.h"
18800 int
18801 main ()
18802 {
18804 FILE *fh;
18805 struct mnttab mt;
18806 int status;
18807 fh = fopen ("/etc/mnttab", "r");
18808 status = getmntent (fh, &mt);
18809 return(status);
18812 ;
18813 return 0;
18814 }
18815 _ACEOF
18816 if ac_fn_c_try_compile "$LINENO"; then :
18817 c_cv_have_two_getmntent="yes"
18818 else
18819 c_cv_have_two_getmntent="no"
18821 fi
18822 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
18824 fi
18825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $c_cv_have_two_getmntent" >&5
18826 $as_echo "$c_cv_have_two_getmntent" >&6; }
18827 fi
18829 # Check for different versions of `getmntent' here..
18831 if test "x$have_getmntent" = "xc"; then
18832 if test "x$c_cv_have_one_getmntent" = "xyes"; then
18834 $as_echo "#define HAVE_ONE_GETMNTENT 1" >>confdefs.h
18836 fi
18837 if test "x$c_cv_have_two_getmntent" = "xyes"; then
18839 $as_echo "#define HAVE_TWO_GETMNTENT 1" >>confdefs.h
18841 fi
18842 fi
18843 if test "x$have_getmntent" = "xsun"; then
18845 $as_echo "#define HAVE_SUN_GETMNTENT 1" >>confdefs.h
18847 fi
18848 if test "x$have_getmntent" = "xseq"; then
18850 $as_echo "#define HAVE_SEQ_GETMNTENT 1" >>confdefs.h
18852 fi
18853 if test "x$have_getmntent" = "xgen"; then
18855 $as_echo "#define HAVE_GEN_GETMNTENT 1" >>confdefs.h
18857 fi
18859 # Check for htonll
18860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if have htonll defined" >&5
18861 $as_echo_n "checking if have htonll defined... " >&6; }
18862 if ${c_cv_have_htonll+:} false; then :
18863 $as_echo_n "(cached) " >&6
18864 else
18865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
18866 /* end confdefs.h. */
18868 #include <sys/types.h>
18869 #include <netinet/in.h>
18870 #if HAVE_INTTYPES_H
18871 # include <inttypes.h>
18872 #endif
18874 int
18875 main ()
18876 {
18878 return htonll(0);
18881 ;
18882 return 0;
18883 }
18884 _ACEOF
18885 if ac_fn_c_try_link "$LINENO"; then :
18886 c_cv_have_htonll="yes"
18887 else
18888 c_cv_have_htonll="no"
18890 fi
18891 rm -f core conftest.err conftest.$ac_objext \
18892 conftest$ac_exeext conftest.$ac_ext
18894 fi
18895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $c_cv_have_htonll" >&5
18896 $as_echo "$c_cv_have_htonll" >&6; }
18897 if test "x$c_cv_have_htonll" = "xyes"
18898 then
18900 $as_echo "#define HAVE_HTONLL 1" >>confdefs.h
18902 fi
18904 # Check for structures
18905 ac_fn_c_check_member "$LINENO" "struct if_data" "ifi_ibytes" "ac_cv_member_struct_if_data_ifi_ibytes" "
18906 #include <sys/types.h>
18907 #include <sys/socket.h>
18908 #include <net/if.h>
18910 "
18911 if test "x$ac_cv_member_struct_if_data_ifi_ibytes" = xyes; then :
18913 cat >>confdefs.h <<_ACEOF
18914 #define HAVE_STRUCT_IF_DATA_IFI_IBYTES 1
18915 _ACEOF
18918 $as_echo "#define HAVE_STRUCT_IF_DATA 1" >>confdefs.h
18920 fi
18921 ac_fn_c_check_member "$LINENO" "struct if_data" "ifi_opackets" "ac_cv_member_struct_if_data_ifi_opackets" "
18922 #include <sys/types.h>
18923 #include <sys/socket.h>
18924 #include <net/if.h>
18926 "
18927 if test "x$ac_cv_member_struct_if_data_ifi_opackets" = xyes; then :
18929 cat >>confdefs.h <<_ACEOF
18930 #define HAVE_STRUCT_IF_DATA_IFI_OPACKETS 1
18931 _ACEOF
18934 $as_echo "#define HAVE_STRUCT_IF_DATA 1" >>confdefs.h
18936 fi
18937 ac_fn_c_check_member "$LINENO" "struct if_data" "ifi_ierrors" "ac_cv_member_struct_if_data_ifi_ierrors" "
18938 #include <sys/types.h>
18939 #include <sys/socket.h>
18940 #include <net/if.h>
18942 "
18943 if test "x$ac_cv_member_struct_if_data_ifi_ierrors" = xyes; then :
18945 cat >>confdefs.h <<_ACEOF
18946 #define HAVE_STRUCT_IF_DATA_IFI_IERRORS 1
18947 _ACEOF
18950 $as_echo "#define HAVE_STRUCT_IF_DATA 1" >>confdefs.h
18952 fi
18954 ac_fn_c_check_member "$LINENO" "struct net_device_stats" "rx_bytes" "ac_cv_member_struct_net_device_stats_rx_bytes" "
18955 #include <sys/types.h>
18956 #include <sys/socket.h>
18957 #include <linux/if.h>
18958 #include <linux/netdevice.h>
18960 "
18961 if test "x$ac_cv_member_struct_net_device_stats_rx_bytes" = xyes; then :
18963 cat >>confdefs.h <<_ACEOF
18964 #define HAVE_STRUCT_NET_DEVICE_STATS_RX_BYTES 1
18965 _ACEOF
18968 $as_echo "#define HAVE_STRUCT_NET_DEVICE_STATS 1" >>confdefs.h
18970 fi
18971 ac_fn_c_check_member "$LINENO" "struct net_device_stats" "tx_packets" "ac_cv_member_struct_net_device_stats_tx_packets" "
18972 #include <sys/types.h>
18973 #include <sys/socket.h>
18974 #include <linux/if.h>
18975 #include <linux/netdevice.h>
18977 "
18978 if test "x$ac_cv_member_struct_net_device_stats_tx_packets" = xyes; then :
18980 cat >>confdefs.h <<_ACEOF
18981 #define HAVE_STRUCT_NET_DEVICE_STATS_TX_PACKETS 1
18982 _ACEOF
18985 $as_echo "#define HAVE_STRUCT_NET_DEVICE_STATS 1" >>confdefs.h
18987 fi
18988 ac_fn_c_check_member "$LINENO" "struct net_device_stats" "rx_errors" "ac_cv_member_struct_net_device_stats_rx_errors" "
18989 #include <sys/types.h>
18990 #include <sys/socket.h>
18991 #include <linux/if.h>
18992 #include <linux/netdevice.h>
18994 "
18995 if test "x$ac_cv_member_struct_net_device_stats_rx_errors" = xyes; then :
18997 cat >>confdefs.h <<_ACEOF
18998 #define HAVE_STRUCT_NET_DEVICE_STATS_RX_ERRORS 1
18999 _ACEOF
19002 $as_echo "#define HAVE_STRUCT_NET_DEVICE_STATS 1" >>confdefs.h
19004 fi
19006 ac_fn_c_check_member "$LINENO" "struct inet_diag_req" "id" "ac_cv_member_struct_inet_diag_req_id" "
19007 #include <linux/inet_diag.h>
19009 "
19010 if test "x$ac_cv_member_struct_inet_diag_req_id" = xyes; then :
19012 cat >>confdefs.h <<_ACEOF
19013 #define HAVE_STRUCT_INET_DIAG_REQ_ID 1
19014 _ACEOF
19017 $as_echo "#define HAVE_STRUCT_LINUX_INET_DIAG_REQ 1" >>confdefs.h
19019 fi
19020 ac_fn_c_check_member "$LINENO" "struct inet_diag_req" "idiag_states" "ac_cv_member_struct_inet_diag_req_idiag_states" "
19021 #include <linux/inet_diag.h>
19023 "
19024 if test "x$ac_cv_member_struct_inet_diag_req_idiag_states" = xyes; then :
19026 cat >>confdefs.h <<_ACEOF
19027 #define HAVE_STRUCT_INET_DIAG_REQ_IDIAG_STATES 1
19028 _ACEOF
19031 $as_echo "#define HAVE_STRUCT_LINUX_INET_DIAG_REQ 1" >>confdefs.h
19033 fi
19037 ac_fn_c_check_member "$LINENO" "struct ip_mreqn" "imr_ifindex" "ac_cv_member_struct_ip_mreqn_imr_ifindex" "
19038 #include <netinet/in.h>
19039 #include <net/if.h>
19041 "
19042 if test "x$ac_cv_member_struct_ip_mreqn_imr_ifindex" = xyes; then :
19044 cat >>confdefs.h <<_ACEOF
19045 #define HAVE_STRUCT_IP_MREQN_IMR_IFINDEX 1
19046 _ACEOF
19049 fi
19052 ac_fn_c_check_member "$LINENO" "struct kinfo_proc" "ki_pid" "ac_cv_member_struct_kinfo_proc_ki_pid" "
19053 #include <kvm.h>
19054 #include <sys/param.h>
19055 #include <sys/sysctl.h>
19056 #include <sys/user.h>
19058 "
19059 if test "x$ac_cv_member_struct_kinfo_proc_ki_pid" = xyes; then :
19061 cat >>confdefs.h <<_ACEOF
19062 #define HAVE_STRUCT_KINFO_PROC_KI_PID 1
19063 _ACEOF
19067 $as_echo "#define HAVE_STRUCT_KINFO_PROC_FREEBSD 1" >>confdefs.h
19069 have_struct_kinfo_proc_freebsd="yes"
19071 else
19073 have_struct_kinfo_proc_freebsd="no"
19075 fi
19076 ac_fn_c_check_member "$LINENO" "struct kinfo_proc" "ki_rssize" "ac_cv_member_struct_kinfo_proc_ki_rssize" "
19077 #include <kvm.h>
19078 #include <sys/param.h>
19079 #include <sys/sysctl.h>
19080 #include <sys/user.h>
19082 "
19083 if test "x$ac_cv_member_struct_kinfo_proc_ki_rssize" = xyes; then :
19085 cat >>confdefs.h <<_ACEOF
19086 #define HAVE_STRUCT_KINFO_PROC_KI_RSSIZE 1
19087 _ACEOF
19091 $as_echo "#define HAVE_STRUCT_KINFO_PROC_FREEBSD 1" >>confdefs.h
19093 have_struct_kinfo_proc_freebsd="yes"
19095 else
19097 have_struct_kinfo_proc_freebsd="no"
19099 fi
19100 ac_fn_c_check_member "$LINENO" "struct kinfo_proc" "ki_rusage" "ac_cv_member_struct_kinfo_proc_ki_rusage" "
19101 #include <kvm.h>
19102 #include <sys/param.h>
19103 #include <sys/sysctl.h>
19104 #include <sys/user.h>
19106 "
19107 if test "x$ac_cv_member_struct_kinfo_proc_ki_rusage" = xyes; then :
19109 cat >>confdefs.h <<_ACEOF
19110 #define HAVE_STRUCT_KINFO_PROC_KI_RUSAGE 1
19111 _ACEOF
19115 $as_echo "#define HAVE_STRUCT_KINFO_PROC_FREEBSD 1" >>confdefs.h
19117 have_struct_kinfo_proc_freebsd="yes"
19119 else
19121 have_struct_kinfo_proc_freebsd="no"
19123 fi
19126 ac_fn_c_check_member "$LINENO" "struct kinfo_proc" "p_pid" "ac_cv_member_struct_kinfo_proc_p_pid" "
19127 #include <sys/param.h>
19128 #include <sys/sysctl.h>
19129 #include <kvm.h>
19131 "
19132 if test "x$ac_cv_member_struct_kinfo_proc_p_pid" = xyes; then :
19134 cat >>confdefs.h <<_ACEOF
19135 #define HAVE_STRUCT_KINFO_PROC_P_PID 1
19136 _ACEOF
19140 $as_echo "#define HAVE_STRUCT_KINFO_PROC_OPENBSD 1" >>confdefs.h
19142 have_struct_kinfo_proc_openbsd="yes"
19144 else
19146 have_struct_kinfo_proc_openbsd="no"
19148 fi
19149 ac_fn_c_check_member "$LINENO" "struct kinfo_proc" "p_vm_rssize" "ac_cv_member_struct_kinfo_proc_p_vm_rssize" "
19150 #include <sys/param.h>
19151 #include <sys/sysctl.h>
19152 #include <kvm.h>
19154 "
19155 if test "x$ac_cv_member_struct_kinfo_proc_p_vm_rssize" = xyes; then :
19157 cat >>confdefs.h <<_ACEOF
19158 #define HAVE_STRUCT_KINFO_PROC_P_VM_RSSIZE 1
19159 _ACEOF
19163 $as_echo "#define HAVE_STRUCT_KINFO_PROC_OPENBSD 1" >>confdefs.h
19165 have_struct_kinfo_proc_openbsd="yes"
19167 else
19169 have_struct_kinfo_proc_openbsd="no"
19171 fi
19174 ac_fn_c_check_member "$LINENO" "struct udphdr" "uh_dport" "ac_cv_member_struct_udphdr_uh_dport" "#define _BSD_SOURCE
19175 #define _DEFAULT_SOURCE
19176 #if HAVE_STDINT_H
19177 # include <stdint.h>
19178 #endif
19179 #if HAVE_SYS_TYPES_H
19180 # include <sys/types.h>
19181 #endif
19182 #if HAVE_NETINET_IN_SYSTM_H
19183 # include <netinet/in_systm.h>
19184 #endif
19185 #if HAVE_NETINET_IN_H
19186 # include <netinet/in.h>
19187 #endif
19188 #if HAVE_NETINET_IP_H
19189 # include <netinet/ip.h>
19190 #endif
19191 #if HAVE_NETINET_UDP_H
19192 # include <netinet/udp.h>
19193 #endif
19195 "
19196 if test "x$ac_cv_member_struct_udphdr_uh_dport" = xyes; then :
19198 cat >>confdefs.h <<_ACEOF
19199 #define HAVE_STRUCT_UDPHDR_UH_DPORT 1
19200 _ACEOF
19203 fi
19204 ac_fn_c_check_member "$LINENO" "struct udphdr" "uh_sport" "ac_cv_member_struct_udphdr_uh_sport" "#define _BSD_SOURCE
19205 #define _DEFAULT_SOURCE
19206 #if HAVE_STDINT_H
19207 # include <stdint.h>
19208 #endif
19209 #if HAVE_SYS_TYPES_H
19210 # include <sys/types.h>
19211 #endif
19212 #if HAVE_NETINET_IN_SYSTM_H
19213 # include <netinet/in_systm.h>
19214 #endif
19215 #if HAVE_NETINET_IN_H
19216 # include <netinet/in.h>
19217 #endif
19218 #if HAVE_NETINET_IP_H
19219 # include <netinet/ip.h>
19220 #endif
19221 #if HAVE_NETINET_UDP_H
19222 # include <netinet/udp.h>
19223 #endif
19225 "
19226 if test "x$ac_cv_member_struct_udphdr_uh_sport" = xyes; then :
19228 cat >>confdefs.h <<_ACEOF
19229 #define HAVE_STRUCT_UDPHDR_UH_SPORT 1
19230 _ACEOF
19233 fi
19235 ac_fn_c_check_member "$LINENO" "struct udphdr" "dest" "ac_cv_member_struct_udphdr_dest" "#define _BSD_SOURCE
19236 #define _DEFAULT_SOURCE
19237 #if HAVE_STDINT_H
19238 # include <stdint.h>
19239 #endif
19240 #if HAVE_SYS_TYPES_H
19241 # include <sys/types.h>
19242 #endif
19243 #if HAVE_NETINET_IN_SYSTM_H
19244 # include <netinet/in_systm.h>
19245 #endif
19246 #if HAVE_NETINET_IN_H
19247 # include <netinet/in.h>
19248 #endif
19249 #if HAVE_NETINET_IP_H
19250 # include <netinet/ip.h>
19251 #endif
19252 #if HAVE_NETINET_UDP_H
19253 # include <netinet/udp.h>
19254 #endif
19256 "
19257 if test "x$ac_cv_member_struct_udphdr_dest" = xyes; then :
19259 cat >>confdefs.h <<_ACEOF
19260 #define HAVE_STRUCT_UDPHDR_DEST 1
19261 _ACEOF
19264 fi
19265 ac_fn_c_check_member "$LINENO" "struct udphdr" "source" "ac_cv_member_struct_udphdr_source" "#define _BSD_SOURCE
19266 #define _DEFAULT_SOURCE
19267 #if HAVE_STDINT_H
19268 # include <stdint.h>
19269 #endif
19270 #if HAVE_SYS_TYPES_H
19271 # include <sys/types.h>
19272 #endif
19273 #if HAVE_NETINET_IN_SYSTM_H
19274 # include <netinet/in_systm.h>
19275 #endif
19276 #if HAVE_NETINET_IN_H
19277 # include <netinet/in.h>
19278 #endif
19279 #if HAVE_NETINET_IP_H
19280 # include <netinet/ip.h>
19281 #endif
19282 #if HAVE_NETINET_UDP_H
19283 # include <netinet/udp.h>
19284 #endif
19286 "
19287 if test "x$ac_cv_member_struct_udphdr_source" = xyes; then :
19289 cat >>confdefs.h <<_ACEOF
19290 #define HAVE_STRUCT_UDPHDR_SOURCE 1
19291 _ACEOF
19294 fi
19297 ac_fn_c_check_member "$LINENO" "kstat_io_t" "nwritten" "ac_cv_member_kstat_io_t_nwritten" "
19298 #if HAVE_KSTAT_H
19299 # include <kstat.h>
19300 #endif
19302 "
19303 if test "x$ac_cv_member_kstat_io_t_nwritten" = xyes; then :
19305 cat >>confdefs.h <<_ACEOF
19306 #define HAVE_KSTAT_IO_T_NWRITTEN 1
19307 _ACEOF
19310 fi
19311 ac_fn_c_check_member "$LINENO" "kstat_io_t" "writes" "ac_cv_member_kstat_io_t_writes" "
19312 #if HAVE_KSTAT_H
19313 # include <kstat.h>
19314 #endif
19316 "
19317 if test "x$ac_cv_member_kstat_io_t_writes" = xyes; then :
19319 cat >>confdefs.h <<_ACEOF
19320 #define HAVE_KSTAT_IO_T_WRITES 1
19321 _ACEOF
19324 fi
19325 ac_fn_c_check_member "$LINENO" "kstat_io_t" "nwrites" "ac_cv_member_kstat_io_t_nwrites" "
19326 #if HAVE_KSTAT_H
19327 # include <kstat.h>
19328 #endif
19330 "
19331 if test "x$ac_cv_member_kstat_io_t_nwrites" = xyes; then :
19333 cat >>confdefs.h <<_ACEOF
19334 #define HAVE_KSTAT_IO_T_NWRITES 1
19335 _ACEOF
19338 fi
19339 ac_fn_c_check_member "$LINENO" "kstat_io_t" "wtime" "ac_cv_member_kstat_io_t_wtime" "
19340 #if HAVE_KSTAT_H
19341 # include <kstat.h>
19342 #endif
19344 "
19345 if test "x$ac_cv_member_kstat_io_t_wtime" = xyes; then :
19347 cat >>confdefs.h <<_ACEOF
19348 #define HAVE_KSTAT_IO_T_WTIME 1
19349 _ACEOF
19352 fi
19355 #
19356 # Checks for libraries begin here
19357 #
19359 with_libresolv="yes"
19360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for res_search in -lresolv" >&5
19361 $as_echo_n "checking for res_search in -lresolv... " >&6; }
19362 if ${ac_cv_lib_resolv_res_search+:} false; then :
19363 $as_echo_n "(cached) " >&6
19364 else
19365 ac_check_lib_save_LIBS=$LIBS
19366 LIBS="-lresolv $LIBS"
19367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19368 /* end confdefs.h. */
19370 /* Override any GCC internal prototype to avoid an error.
19371 Use char because int might match the return type of a GCC
19372 builtin and then its argument prototype would still apply. */
19373 #ifdef __cplusplus
19374 extern "C"
19375 #endif
19376 char res_search ();
19377 int
19378 main ()
19379 {
19380 return res_search ();
19381 ;
19382 return 0;
19383 }
19384 _ACEOF
19385 if ac_fn_c_try_link "$LINENO"; then :
19386 ac_cv_lib_resolv_res_search=yes
19387 else
19388 ac_cv_lib_resolv_res_search=no
19389 fi
19390 rm -f core conftest.err conftest.$ac_objext \
19391 conftest$ac_exeext conftest.$ac_ext
19392 LIBS=$ac_check_lib_save_LIBS
19393 fi
19394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_resolv_res_search" >&5
19395 $as_echo "$ac_cv_lib_resolv_res_search" >&6; }
19396 if test "x$ac_cv_lib_resolv_res_search" = xyes; then :
19399 $as_echo "#define HAVE_LIBRESOLV 1" >>confdefs.h
19402 else
19403 with_libresolv="no"
19404 fi
19406 if test "x$with_libresolv" = "xyes"; then
19407 BUILD_WITH_LIBRESOLV_TRUE=
19408 BUILD_WITH_LIBRESOLV_FALSE='#'
19409 else
19410 BUILD_WITH_LIBRESOLV_TRUE='#'
19411 BUILD_WITH_LIBRESOLV_FALSE=
19412 fi
19415 with_libhal="yes"
19416 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libhal_device_property_exists in -lhal" >&5
19417 $as_echo_n "checking for libhal_device_property_exists in -lhal... " >&6; }
19418 if ${ac_cv_lib_hal_libhal_device_property_exists+:} false; then :
19419 $as_echo_n "(cached) " >&6
19420 else
19421 ac_check_lib_save_LIBS=$LIBS
19422 LIBS="-lhal $LIBS"
19423 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19424 /* end confdefs.h. */
19426 /* Override any GCC internal prototype to avoid an error.
19427 Use char because int might match the return type of a GCC
19428 builtin and then its argument prototype would still apply. */
19429 #ifdef __cplusplus
19430 extern "C"
19431 #endif
19432 char libhal_device_property_exists ();
19433 int
19434 main ()
19435 {
19436 return libhal_device_property_exists ();
19437 ;
19438 return 0;
19439 }
19440 _ACEOF
19441 if ac_fn_c_try_link "$LINENO"; then :
19442 ac_cv_lib_hal_libhal_device_property_exists=yes
19443 else
19444 ac_cv_lib_hal_libhal_device_property_exists=no
19445 fi
19446 rm -f core conftest.err conftest.$ac_objext \
19447 conftest$ac_exeext conftest.$ac_ext
19448 LIBS=$ac_check_lib_save_LIBS
19449 fi
19450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hal_libhal_device_property_exists" >&5
19451 $as_echo "$ac_cv_lib_hal_libhal_device_property_exists" >&6; }
19452 if test "x$ac_cv_lib_hal_libhal_device_property_exists" = xyes; then :
19454 $as_echo "#define HAVE_LIBHAL 1" >>confdefs.h
19456 else
19457 with_libhal="no"
19458 fi
19460 if test "x$with_libhal" = "xyes"; then
19461 if test "x$PKG_CONFIG" != "x"; then
19462 BUILD_WITH_LIBHAL_CFLAGS="`$PKG_CONFIG --cflags hal`"
19463 BUILD_WITH_LIBHAL_LIBS="`$PKG_CONFIG --libs hal`"
19466 fi
19467 fi
19471 if test "x$ac_system" = "xAIX"
19472 then
19473 with_perfstat="yes"
19474 with_procinfo="yes"
19475 else
19476 with_perfstat="no (AIX only)"
19477 with_procinfo="no (AIX only)"
19478 fi
19480 if test "x$with_perfstat" = "xyes"
19481 then
19482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perfstat_reset in -lperfstat" >&5
19483 $as_echo_n "checking for perfstat_reset in -lperfstat... " >&6; }
19484 if ${ac_cv_lib_perfstat_perfstat_reset+:} false; then :
19485 $as_echo_n "(cached) " >&6
19486 else
19487 ac_check_lib_save_LIBS=$LIBS
19488 LIBS="-lperfstat $LIBS"
19489 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19490 /* end confdefs.h. */
19492 /* Override any GCC internal prototype to avoid an error.
19493 Use char because int might match the return type of a GCC
19494 builtin and then its argument prototype would still apply. */
19495 #ifdef __cplusplus
19496 extern "C"
19497 #endif
19498 char perfstat_reset ();
19499 int
19500 main ()
19501 {
19502 return perfstat_reset ();
19503 ;
19504 return 0;
19505 }
19506 _ACEOF
19507 if ac_fn_c_try_link "$LINENO"; then :
19508 ac_cv_lib_perfstat_perfstat_reset=yes
19509 else
19510 ac_cv_lib_perfstat_perfstat_reset=no
19511 fi
19512 rm -f core conftest.err conftest.$ac_objext \
19513 conftest$ac_exeext conftest.$ac_ext
19514 LIBS=$ac_check_lib_save_LIBS
19515 fi
19516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_perfstat_perfstat_reset" >&5
19517 $as_echo "$ac_cv_lib_perfstat_perfstat_reset" >&6; }
19518 if test "x$ac_cv_lib_perfstat_perfstat_reset" = xyes; then :
19519 with_perfstat="yes"
19520 else
19521 with_perfstat="no (perfstat not found)"
19522 fi
19524 # AC_CHECK_HEADERS(sys/protosw.h libperfstat.h,, [with_perfstat="no (perfstat not found)"])
19525 fi
19526 if test "x$with_perfstat" = "xyes"
19527 then
19529 $as_echo "#define HAVE_PERFSTAT 1" >>confdefs.h
19531 # struct members pertaining to donation have been added to libperfstat somewhere between AIX5.3ML5 and AIX5.3ML9
19532 ac_fn_c_check_member "$LINENO" "perfstat_partition_type_t" "b.donate_enabled" "ac_cv_member_perfstat_partition_type_t_b_donate_enabled" "#include <libperfstat.h
19533 "
19534 if test "x$ac_cv_member_perfstat_partition_type_t_b_donate_enabled" = xyes; then :
19536 fi
19538 if test "x$av_cv_member_perfstat_partition_type_t_b_donate_enabled" = "xyes"
19539 then
19541 $as_echo "#define PERFSTAT_SUPPORTS_DONATION 1" >>confdefs.h
19543 fi
19544 fi
19545 if test "x$with_perfstat" = "xyes"; then
19546 BUILD_WITH_PERFSTAT_TRUE=
19547 BUILD_WITH_PERFSTAT_FALSE='#'
19548 else
19549 BUILD_WITH_PERFSTAT_TRUE='#'
19550 BUILD_WITH_PERFSTAT_FALSE=
19551 fi
19554 # Processes plugin under AIX.
19555 if test "x$with_procinfo" = "xyes"
19556 then
19557 for ac_header in procinfo.h
19558 do :
19559 ac_fn_c_check_header_mongrel "$LINENO" "procinfo.h" "ac_cv_header_procinfo_h" "$ac_includes_default"
19560 if test "x$ac_cv_header_procinfo_h" = xyes; then :
19561 cat >>confdefs.h <<_ACEOF
19562 #define HAVE_PROCINFO_H 1
19563 _ACEOF
19565 else
19566 with_procinfo="no (procinfo.h not found)"
19567 fi
19569 done
19571 fi
19572 if test "x$with_procinfo" = "xyes"
19573 then
19575 $as_echo "#define HAVE_PROCINFO_H 1" >>confdefs.h
19577 fi
19579 if test "x$ac_system" = "xSolaris"
19580 then
19581 with_kstat="yes"
19582 with_devinfo="yes"
19583 else
19584 with_kstat="no (Solaris only)"
19585 with_devinfo="no (Solaris only)"
19586 fi
19588 if test "x$with_kstat" = "xyes"
19589 then
19590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kstat_open in -lkstat" >&5
19591 $as_echo_n "checking for kstat_open in -lkstat... " >&6; }
19592 if ${ac_cv_lib_kstat_kstat_open+:} false; then :
19593 $as_echo_n "(cached) " >&6
19594 else
19595 ac_check_lib_save_LIBS=$LIBS
19596 LIBS="-lkstat $LIBS"
19597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19598 /* end confdefs.h. */
19600 /* Override any GCC internal prototype to avoid an error.
19601 Use char because int might match the return type of a GCC
19602 builtin and then its argument prototype would still apply. */
19603 #ifdef __cplusplus
19604 extern "C"
19605 #endif
19606 char kstat_open ();
19607 int
19608 main ()
19609 {
19610 return kstat_open ();
19611 ;
19612 return 0;
19613 }
19614 _ACEOF
19615 if ac_fn_c_try_link "$LINENO"; then :
19616 ac_cv_lib_kstat_kstat_open=yes
19617 else
19618 ac_cv_lib_kstat_kstat_open=no
19619 fi
19620 rm -f core conftest.err conftest.$ac_objext \
19621 conftest$ac_exeext conftest.$ac_ext
19622 LIBS=$ac_check_lib_save_LIBS
19623 fi
19624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kstat_kstat_open" >&5
19625 $as_echo "$ac_cv_lib_kstat_kstat_open" >&6; }
19626 if test "x$ac_cv_lib_kstat_kstat_open" = xyes; then :
19627 with_kstat="yes"
19628 else
19629 with_kstat="no (libkstat not found)"
19630 fi
19632 fi
19633 if test "x$with_kstat" = "xyes"
19634 then
19635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for di_init in -ldevinfo" >&5
19636 $as_echo_n "checking for di_init in -ldevinfo... " >&6; }
19637 if ${ac_cv_lib_devinfo_di_init+:} false; then :
19638 $as_echo_n "(cached) " >&6
19639 else
19640 ac_check_lib_save_LIBS=$LIBS
19641 LIBS="-ldevinfo $LIBS"
19642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19643 /* end confdefs.h. */
19645 /* Override any GCC internal prototype to avoid an error.
19646 Use char because int might match the return type of a GCC
19647 builtin and then its argument prototype would still apply. */
19648 #ifdef __cplusplus
19649 extern "C"
19650 #endif
19651 char di_init ();
19652 int
19653 main ()
19654 {
19655 return di_init ();
19656 ;
19657 return 0;
19658 }
19659 _ACEOF
19660 if ac_fn_c_try_link "$LINENO"; then :
19661 ac_cv_lib_devinfo_di_init=yes
19662 else
19663 ac_cv_lib_devinfo_di_init=no
19664 fi
19665 rm -f core conftest.err conftest.$ac_objext \
19666 conftest$ac_exeext conftest.$ac_ext
19667 LIBS=$ac_check_lib_save_LIBS
19668 fi
19669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_devinfo_di_init" >&5
19670 $as_echo "$ac_cv_lib_devinfo_di_init" >&6; }
19671 if test "x$ac_cv_lib_devinfo_di_init" = xyes; then :
19672 with_devinfo="yes"
19673 else
19674 with_devinfo="no (not found)"
19675 fi
19677 for ac_header in kstat.h
19678 do :
19679 ac_fn_c_check_header_mongrel "$LINENO" "kstat.h" "ac_cv_header_kstat_h" "$ac_includes_default"
19680 if test "x$ac_cv_header_kstat_h" = xyes; then :
19681 cat >>confdefs.h <<_ACEOF
19682 #define HAVE_KSTAT_H 1
19683 _ACEOF
19685 else
19686 with_kstat="no (kstat.h not found)"
19687 fi
19689 done
19691 fi
19692 if test "x$with_kstat" = "xyes"
19693 then
19695 $as_echo "#define HAVE_LIBKSTAT 1" >>confdefs.h
19697 fi
19698 if test "x$with_kstat" = "xyes"; then
19699 BUILD_WITH_LIBKSTAT_TRUE=
19700 BUILD_WITH_LIBKSTAT_FALSE='#'
19701 else
19702 BUILD_WITH_LIBKSTAT_TRUE='#'
19703 BUILD_WITH_LIBKSTAT_FALSE=
19704 fi
19706 if test "x$with_devinfo" = "xyes"; then
19707 BUILD_WITH_LIBDEVINFO_TRUE=
19708 BUILD_WITH_LIBDEVINFO_FALSE='#'
19709 else
19710 BUILD_WITH_LIBDEVINFO_TRUE='#'
19711 BUILD_WITH_LIBDEVINFO_FALSE=
19712 fi
19715 with_libiokit="no"
19716 if test "x$ac_system" = "xDarwin"
19717 then
19718 with_libiokit="yes"
19719 else
19720 with_libiokit="no"
19721 fi
19722 if test "x$with_libiokit" = "xyes"; then
19723 BUILD_WITH_LIBIOKIT_TRUE=
19724 BUILD_WITH_LIBIOKIT_FALSE='#'
19725 else
19726 BUILD_WITH_LIBIOKIT_TRUE='#'
19727 BUILD_WITH_LIBIOKIT_FALSE=
19728 fi
19731 with_libkvm="no"
19732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_getprocs in -lkvm" >&5
19733 $as_echo_n "checking for kvm_getprocs in -lkvm... " >&6; }
19734 if ${ac_cv_lib_kvm_kvm_getprocs+:} false; then :
19735 $as_echo_n "(cached) " >&6
19736 else
19737 ac_check_lib_save_LIBS=$LIBS
19738 LIBS="-lkvm $LIBS"
19739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19740 /* end confdefs.h. */
19742 /* Override any GCC internal prototype to avoid an error.
19743 Use char because int might match the return type of a GCC
19744 builtin and then its argument prototype would still apply. */
19745 #ifdef __cplusplus
19746 extern "C"
19747 #endif
19748 char kvm_getprocs ();
19749 int
19750 main ()
19751 {
19752 return kvm_getprocs ();
19753 ;
19754 return 0;
19755 }
19756 _ACEOF
19757 if ac_fn_c_try_link "$LINENO"; then :
19758 ac_cv_lib_kvm_kvm_getprocs=yes
19759 else
19760 ac_cv_lib_kvm_kvm_getprocs=no
19761 fi
19762 rm -f core conftest.err conftest.$ac_objext \
19763 conftest$ac_exeext conftest.$ac_ext
19764 LIBS=$ac_check_lib_save_LIBS
19765 fi
19766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_getprocs" >&5
19767 $as_echo "$ac_cv_lib_kvm_kvm_getprocs" >&6; }
19768 if test "x$ac_cv_lib_kvm_kvm_getprocs" = xyes; then :
19769 with_kvm_getprocs="yes"
19770 else
19771 with_kvm_getprocs="no"
19772 fi
19774 if test "x$with_kvm_getprocs" = "xyes"
19775 then
19777 $as_echo "#define HAVE_LIBKVM_GETPROCS 1" >>confdefs.h
19779 with_libkvm="yes"
19780 fi
19781 if test "x$with_kvm_getprocs" = "xyes"; then
19782 BUILD_WITH_LIBKVM_GETPROCS_TRUE=
19783 BUILD_WITH_LIBKVM_GETPROCS_FALSE='#'
19784 else
19785 BUILD_WITH_LIBKVM_GETPROCS_TRUE='#'
19786 BUILD_WITH_LIBKVM_GETPROCS_FALSE=
19787 fi
19790 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_getswapinfo in -lkvm" >&5
19791 $as_echo_n "checking for kvm_getswapinfo in -lkvm... " >&6; }
19792 if ${ac_cv_lib_kvm_kvm_getswapinfo+:} false; then :
19793 $as_echo_n "(cached) " >&6
19794 else
19795 ac_check_lib_save_LIBS=$LIBS
19796 LIBS="-lkvm $LIBS"
19797 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19798 /* end confdefs.h. */
19800 /* Override any GCC internal prototype to avoid an error.
19801 Use char because int might match the return type of a GCC
19802 builtin and then its argument prototype would still apply. */
19803 #ifdef __cplusplus
19804 extern "C"
19805 #endif
19806 char kvm_getswapinfo ();
19807 int
19808 main ()
19809 {
19810 return kvm_getswapinfo ();
19811 ;
19812 return 0;
19813 }
19814 _ACEOF
19815 if ac_fn_c_try_link "$LINENO"; then :
19816 ac_cv_lib_kvm_kvm_getswapinfo=yes
19817 else
19818 ac_cv_lib_kvm_kvm_getswapinfo=no
19819 fi
19820 rm -f core conftest.err conftest.$ac_objext \
19821 conftest$ac_exeext conftest.$ac_ext
19822 LIBS=$ac_check_lib_save_LIBS
19823 fi
19824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_getswapinfo" >&5
19825 $as_echo "$ac_cv_lib_kvm_kvm_getswapinfo" >&6; }
19826 if test "x$ac_cv_lib_kvm_kvm_getswapinfo" = xyes; then :
19827 with_kvm_getswapinfo="yes"
19828 else
19829 with_kvm_getswapinfo="no"
19830 fi
19832 if test "x$with_kvm_getswapinfo" = "xyes"
19833 then
19835 $as_echo "#define HAVE_LIBKVM_GETSWAPINFO 1" >>confdefs.h
19837 with_libkvm="yes"
19838 fi
19839 if test "x$with_kvm_getswapinfo" = "xyes"; then
19840 BUILD_WITH_LIBKVM_GETSWAPINFO_TRUE=
19841 BUILD_WITH_LIBKVM_GETSWAPINFO_FALSE='#'
19842 else
19843 BUILD_WITH_LIBKVM_GETSWAPINFO_TRUE='#'
19844 BUILD_WITH_LIBKVM_GETSWAPINFO_FALSE=
19845 fi
19848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_nlist in -lkvm" >&5
19849 $as_echo_n "checking for kvm_nlist in -lkvm... " >&6; }
19850 if ${ac_cv_lib_kvm_kvm_nlist+:} false; then :
19851 $as_echo_n "(cached) " >&6
19852 else
19853 ac_check_lib_save_LIBS=$LIBS
19854 LIBS="-lkvm $LIBS"
19855 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19856 /* end confdefs.h. */
19858 /* Override any GCC internal prototype to avoid an error.
19859 Use char because int might match the return type of a GCC
19860 builtin and then its argument prototype would still apply. */
19861 #ifdef __cplusplus
19862 extern "C"
19863 #endif
19864 char kvm_nlist ();
19865 int
19866 main ()
19867 {
19868 return kvm_nlist ();
19869 ;
19870 return 0;
19871 }
19872 _ACEOF
19873 if ac_fn_c_try_link "$LINENO"; then :
19874 ac_cv_lib_kvm_kvm_nlist=yes
19875 else
19876 ac_cv_lib_kvm_kvm_nlist=no
19877 fi
19878 rm -f core conftest.err conftest.$ac_objext \
19879 conftest$ac_exeext conftest.$ac_ext
19880 LIBS=$ac_check_lib_save_LIBS
19881 fi
19882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_nlist" >&5
19883 $as_echo "$ac_cv_lib_kvm_kvm_nlist" >&6; }
19884 if test "x$ac_cv_lib_kvm_kvm_nlist" = xyes; then :
19885 with_kvm_nlist="yes"
19886 else
19887 with_kvm_nlist="no"
19888 fi
19890 if test "x$with_kvm_nlist" = "xyes"
19891 then
19892 for ac_header in bsd/nlist.h nlist.h
19893 do :
19894 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
19895 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
19896 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
19897 cat >>confdefs.h <<_ACEOF
19898 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
19899 _ACEOF
19901 fi
19903 done
19906 $as_echo "#define HAVE_LIBKVM_NLIST 1" >>confdefs.h
19908 with_libkvm="yes"
19909 fi
19910 if test "x$with_kvm_nlist" = "xyes"; then
19911 BUILD_WITH_LIBKVM_NLIST_TRUE=
19912 BUILD_WITH_LIBKVM_NLIST_FALSE='#'
19913 else
19914 BUILD_WITH_LIBKVM_NLIST_TRUE='#'
19915 BUILD_WITH_LIBKVM_NLIST_FALSE=
19916 fi
19919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for kvm_openfiles in -lkvm" >&5
19920 $as_echo_n "checking for kvm_openfiles in -lkvm... " >&6; }
19921 if ${ac_cv_lib_kvm_kvm_openfiles+:} false; then :
19922 $as_echo_n "(cached) " >&6
19923 else
19924 ac_check_lib_save_LIBS=$LIBS
19925 LIBS="-lkvm $LIBS"
19926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
19927 /* end confdefs.h. */
19929 /* Override any GCC internal prototype to avoid an error.
19930 Use char because int might match the return type of a GCC
19931 builtin and then its argument prototype would still apply. */
19932 #ifdef __cplusplus
19933 extern "C"
19934 #endif
19935 char kvm_openfiles ();
19936 int
19937 main ()
19938 {
19939 return kvm_openfiles ();
19940 ;
19941 return 0;
19942 }
19943 _ACEOF
19944 if ac_fn_c_try_link "$LINENO"; then :
19945 ac_cv_lib_kvm_kvm_openfiles=yes
19946 else
19947 ac_cv_lib_kvm_kvm_openfiles=no
19948 fi
19949 rm -f core conftest.err conftest.$ac_objext \
19950 conftest$ac_exeext conftest.$ac_ext
19951 LIBS=$ac_check_lib_save_LIBS
19952 fi
19953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_kvm_kvm_openfiles" >&5
19954 $as_echo "$ac_cv_lib_kvm_kvm_openfiles" >&6; }
19955 if test "x$ac_cv_lib_kvm_kvm_openfiles" = xyes; then :
19956 with_kvm_openfiles="yes"
19957 else
19958 with_kvm_openfiles="no"
19959 fi
19961 if test "x$with_kvm_openfiles" = "xyes"
19962 then
19964 $as_echo "#define HAVE_LIBKVM_NLIST 1" >>confdefs.h
19966 with_libkvm="yes"
19967 fi
19968 if test "x$with_kvm_openfiles" = "xyes"; then
19969 BUILD_WITH_LIBKVM_OPENFILES_TRUE=
19970 BUILD_WITH_LIBKVM_OPENFILES_FALSE='#'
19971 else
19972 BUILD_WITH_LIBKVM_OPENFILES_TRUE='#'
19973 BUILD_WITH_LIBKVM_OPENFILES_FALSE=
19974 fi
19977 # --with-libaquaero5 {{{
19979 # Check whether --with-libaquaero5 was given.
19980 if test "${with_libaquaero5+set}" = set; then :
19981 withval=$with_libaquaero5;
19982 if test "x$withval" = "xyes"
19983 then
19984 with_libaquaero5="yes"
19985 else if test "x$withval" = "xno"
19986 then
19987 with_libaquaero5="no"
19988 else
19989 with_libaquaero5="yes"
19990 LIBAQUAERO5_CFLAGS="$LIBAQUAERO5_CFLAGS -I$withval/src"
19991 LIBAQUAERO5_LDFLAGS="$LIBAQUAERO5_LDFLAGS -L$withval/obj"
19992 fi; fi
19994 else
19995 with_libaquaero5="yes"
19996 fi
19999 SAVE_CPPFLAGS="$CPPFLAGS"
20000 SAVE_LDFLAGS="$LDFLAGS"
20002 CPPFLAGS="$CPPFLAGS $LIBAQUAERO5_CFLAGS"
20003 LDFLAGS="$LDFLAGS $LIBAQUAERO5_LDFLAGS"
20005 if test "x$with_libaquaero5" = "xyes"
20006 then
20007 if test "x$LIBAQUAERO5_CFLAGS" != "x"
20008 then
20009 { $as_echo "$as_me:${as_lineno-$LINENO}: libaquaero5 CPPFLAGS: $LIBAQUAERO5_CFLAGS" >&5
20010 $as_echo "$as_me: libaquaero5 CPPFLAGS: $LIBAQUAERO5_CFLAGS" >&6;}
20011 fi
20012 for ac_header in libaquaero5.h
20013 do :
20014 ac_fn_c_check_header_mongrel "$LINENO" "libaquaero5.h" "ac_cv_header_libaquaero5_h" "$ac_includes_default"
20015 if test "x$ac_cv_header_libaquaero5_h" = xyes; then :
20016 cat >>confdefs.h <<_ACEOF
20017 #define HAVE_LIBAQUAERO5_H 1
20018 _ACEOF
20019 with_libaquaero5="yes"
20020 else
20021 with_libaquaero5="no (libaquaero5.h not found)"
20022 fi
20024 done
20026 fi
20027 if test "x$with_libaquaero5" = "xyes"
20028 then
20029 if test "x$LIBAQUAERO5_LDFLAGS" != "x"
20030 then
20031 { $as_echo "$as_me:${as_lineno-$LINENO}: libaquaero5 LDFLAGS: $LIBAQUAERO5_LDFLAGS" >&5
20032 $as_echo "$as_me: libaquaero5 LDFLAGS: $LIBAQUAERO5_LDFLAGS" >&6;}
20033 fi
20034 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libaquaero5_poll in -laquaero5" >&5
20035 $as_echo_n "checking for libaquaero5_poll in -laquaero5... " >&6; }
20036 if ${ac_cv_lib_aquaero5_libaquaero5_poll+:} false; then :
20037 $as_echo_n "(cached) " >&6
20038 else
20039 ac_check_lib_save_LIBS=$LIBS
20040 LIBS="-laquaero5 $LIBS"
20041 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20042 /* end confdefs.h. */
20044 /* Override any GCC internal prototype to avoid an error.
20045 Use char because int might match the return type of a GCC
20046 builtin and then its argument prototype would still apply. */
20047 #ifdef __cplusplus
20048 extern "C"
20049 #endif
20050 char libaquaero5_poll ();
20051 int
20052 main ()
20053 {
20054 return libaquaero5_poll ();
20055 ;
20056 return 0;
20057 }
20058 _ACEOF
20059 if ac_fn_c_try_link "$LINENO"; then :
20060 ac_cv_lib_aquaero5_libaquaero5_poll=yes
20061 else
20062 ac_cv_lib_aquaero5_libaquaero5_poll=no
20063 fi
20064 rm -f core conftest.err conftest.$ac_objext \
20065 conftest$ac_exeext conftest.$ac_ext
20066 LIBS=$ac_check_lib_save_LIBS
20067 fi
20068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_aquaero5_libaquaero5_poll" >&5
20069 $as_echo "$ac_cv_lib_aquaero5_libaquaero5_poll" >&6; }
20070 if test "x$ac_cv_lib_aquaero5_libaquaero5_poll" = xyes; then :
20071 with_libaquaero5="yes"
20072 else
20073 with_libaquaero5="no (symbol 'libaquaero5_poll' not found)"
20074 fi
20076 fi
20078 CPPFLAGS="$SAVE_CPPFLAGS"
20079 LDFLAGS="$SAVE_LDFLAGS"
20081 if test "x$with_libaquaero5" = "xyes"
20082 then
20083 BUILD_WITH_LIBAQUAERO5_CFLAGS="$LIBAQUAERO5_CFLAGS"
20084 BUILD_WITH_LIBAQUAERO5_LDFLAGS="$LIBAQUAERO5_LDFLAGS"
20087 fi
20088 if test "x$with_libaquaero5" = "xyes"; then
20089 BUILD_WITH_LIBAQUAERO5_TRUE=
20090 BUILD_WITH_LIBAQUAERO5_FALSE='#'
20091 else
20092 BUILD_WITH_LIBAQUAERO5_TRUE='#'
20093 BUILD_WITH_LIBAQUAERO5_FALSE=
20094 fi
20096 # }}}
20098 # --with-libhiredis {{{
20100 # Check whether --with-libhiredis was given.
20101 if test "${with_libhiredis+set}" = set; then :
20102 withval=$with_libhiredis;
20103 if test "x$withval" = "xyes"
20104 then
20105 with_libhiredis="yes"
20106 else if test "x$withval" = "xno"
20107 then
20108 with_libhiredis="no"
20109 else
20110 with_libhiredis="yes"
20111 LIBHIREDIS_CPPFLAGS="$LIBHIREDIS_CPPFLAGS -I$withval/include"
20112 LIBHIREDIS_LDFLAGS="$LIBHIREDIS_LDFLAGS -L$withval/lib"
20113 fi; fi
20115 else
20116 with_libhiredis="yes"
20117 fi
20120 SAVE_CPPFLAGS="$CPPFLAGS"
20121 SAVE_LDFLAGS="$LDFLAGS"
20123 CPPFLAGS="$CPPFLAGS $LIBHIREDIS_CPPFLAGS"
20124 LDFLAGS="$LDFLAGS $LIBHIREDIS_LDFLAGS"
20126 if test "x$with_libhiredis" = "xyes"
20127 then
20128 if test "x$LIBHIREDIS_CPPFLAGS" != "x"
20129 then
20130 { $as_echo "$as_me:${as_lineno-$LINENO}: libhiredis CPPFLAGS: $LIBHIREDIS_CPPFLAGS" >&5
20131 $as_echo "$as_me: libhiredis CPPFLAGS: $LIBHIREDIS_CPPFLAGS" >&6;}
20132 fi
20133 for ac_header in hiredis/hiredis.h
20134 do :
20135 ac_fn_c_check_header_mongrel "$LINENO" "hiredis/hiredis.h" "ac_cv_header_hiredis_hiredis_h" "$ac_includes_default"
20136 if test "x$ac_cv_header_hiredis_hiredis_h" = xyes; then :
20137 cat >>confdefs.h <<_ACEOF
20138 #define HAVE_HIREDIS_HIREDIS_H 1
20139 _ACEOF
20140 with_libhiredis="yes"
20141 else
20142 with_libhiredis="no (hiredis.h not found)"
20143 fi
20145 done
20147 fi
20148 if test "x$with_libhiredis" = "xyes"
20149 then
20150 if test "x$LIBHIREDIS_LDFLAGS" != "x"
20151 then
20152 { $as_echo "$as_me:${as_lineno-$LINENO}: libhiredis LDFLAGS: $LIBHIREDIS_LDFLAGS" >&5
20153 $as_echo "$as_me: libhiredis LDFLAGS: $LIBHIREDIS_LDFLAGS" >&6;}
20154 fi
20155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for redisCommand in -lhiredis" >&5
20156 $as_echo_n "checking for redisCommand in -lhiredis... " >&6; }
20157 if ${ac_cv_lib_hiredis_redisCommand+:} false; then :
20158 $as_echo_n "(cached) " >&6
20159 else
20160 ac_check_lib_save_LIBS=$LIBS
20161 LIBS="-lhiredis $LIBS"
20162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20163 /* end confdefs.h. */
20165 /* Override any GCC internal prototype to avoid an error.
20166 Use char because int might match the return type of a GCC
20167 builtin and then its argument prototype would still apply. */
20168 #ifdef __cplusplus
20169 extern "C"
20170 #endif
20171 char redisCommand ();
20172 int
20173 main ()
20174 {
20175 return redisCommand ();
20176 ;
20177 return 0;
20178 }
20179 _ACEOF
20180 if ac_fn_c_try_link "$LINENO"; then :
20181 ac_cv_lib_hiredis_redisCommand=yes
20182 else
20183 ac_cv_lib_hiredis_redisCommand=no
20184 fi
20185 rm -f core conftest.err conftest.$ac_objext \
20186 conftest$ac_exeext conftest.$ac_ext
20187 LIBS=$ac_check_lib_save_LIBS
20188 fi
20189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_hiredis_redisCommand" >&5
20190 $as_echo "$ac_cv_lib_hiredis_redisCommand" >&6; }
20191 if test "x$ac_cv_lib_hiredis_redisCommand" = xyes; then :
20192 with_libhiredis="yes"
20193 else
20194 with_libhiredis="no (symbol 'redisCommand' not found)"
20195 fi
20198 fi
20200 CPPFLAGS="$SAVE_CPPFLAGS"
20201 LDFLAGS="$SAVE_LDFLAGS"
20203 if test "x$with_libhiredis" = "xyes"
20204 then
20205 BUILD_WITH_LIBHIREDIS_CPPFLAGS="$LIBHIREDIS_CPPFLAGS"
20206 BUILD_WITH_LIBHIREDIS_LDFLAGS="$LIBHIREDIS_LDFLAGS"
20209 fi
20210 if test "x$with_libhiredis" = "xyes"; then
20211 BUILD_WITH_LIBHIREDIS_TRUE=
20212 BUILD_WITH_LIBHIREDIS_FALSE='#'
20213 else
20214 BUILD_WITH_LIBHIREDIS_TRUE='#'
20215 BUILD_WITH_LIBHIREDIS_FALSE=
20216 fi
20218 # }}}
20220 # --with-libcurl {{{
20221 with_curl_config="curl-config"
20222 with_curl_cflags=""
20223 with_curl_libs=""
20225 # Check whether --with-libcurl was given.
20226 if test "${with_libcurl+set}" = set; then :
20227 withval=$with_libcurl;
20228 if test "x$withval" = "xno"
20229 then
20230 with_libcurl="no"
20231 else if test "x$withval" = "xyes"
20232 then
20233 with_libcurl="yes"
20234 else
20235 if test -f "$withval" && test -x "$withval"
20236 then
20237 with_curl_config="$withval"
20238 with_libcurl="yes"
20239 else if test -x "$withval/bin/curl-config"
20240 then
20241 with_curl_config="$withval/bin/curl-config"
20242 with_libcurl="yes"
20243 fi; fi
20244 with_libcurl="yes"
20245 fi; fi
20247 else
20249 with_libcurl="yes"
20251 fi
20253 if test "x$with_libcurl" = "xyes"
20254 then
20255 with_curl_cflags=`$with_curl_config --cflags 2>/dev/null`
20256 curl_config_status=$?
20258 if test $curl_config_status -ne 0
20259 then
20260 with_libcurl="no ($with_curl_config failed)"
20261 else
20262 SAVE_CPPFLAGS="$CPPFLAGS"
20263 CPPFLAGS="$CPPFLAGS $with_curl_cflags"
20265 for ac_header in curl/curl.h
20266 do :
20267 ac_fn_c_check_header_mongrel "$LINENO" "curl/curl.h" "ac_cv_header_curl_curl_h" "$ac_includes_default"
20268 if test "x$ac_cv_header_curl_curl_h" = xyes; then :
20269 cat >>confdefs.h <<_ACEOF
20270 #define HAVE_CURL_CURL_H 1
20271 _ACEOF
20273 else
20274 with_libcurl="no (curl/curl.h not found)"
20275 fi
20277 done
20280 CPPFLAGS="$SAVE_CPPFLAGS"
20281 fi
20282 fi
20283 if test "x$with_libcurl" = "xyes"
20284 then
20285 with_curl_libs=`$with_curl_config --libs 2>/dev/null`
20286 curl_config_status=$?
20288 if test $curl_config_status -ne 0
20289 then
20290 with_libcurl="no ($with_curl_config failed)"
20291 else
20292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for curl_easy_init in -lcurl" >&5
20293 $as_echo_n "checking for curl_easy_init in -lcurl... " >&6; }
20294 if ${ac_cv_lib_curl_curl_easy_init+:} false; then :
20295 $as_echo_n "(cached) " >&6
20296 else
20297 ac_check_lib_save_LIBS=$LIBS
20298 LIBS="-lcurl $with_curl_libs $LIBS"
20299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20300 /* end confdefs.h. */
20302 /* Override any GCC internal prototype to avoid an error.
20303 Use char because int might match the return type of a GCC
20304 builtin and then its argument prototype would still apply. */
20305 #ifdef __cplusplus
20306 extern "C"
20307 #endif
20308 char curl_easy_init ();
20309 int
20310 main ()
20311 {
20312 return curl_easy_init ();
20313 ;
20314 return 0;
20315 }
20316 _ACEOF
20317 if ac_fn_c_try_link "$LINENO"; then :
20318 ac_cv_lib_curl_curl_easy_init=yes
20319 else
20320 ac_cv_lib_curl_curl_easy_init=no
20321 fi
20322 rm -f core conftest.err conftest.$ac_objext \
20323 conftest$ac_exeext conftest.$ac_ext
20324 LIBS=$ac_check_lib_save_LIBS
20325 fi
20326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_curl_curl_easy_init" >&5
20327 $as_echo "$ac_cv_lib_curl_curl_easy_init" >&6; }
20328 if test "x$ac_cv_lib_curl_curl_easy_init" = xyes; then :
20329 with_libcurl="yes"
20330 else
20331 with_libcurl="no (symbol 'curl_easy_init' not found)"
20332 fi
20334 ac_fn_c_check_decl "$LINENO" "CURLOPT_USERNAME" "ac_cv_have_decl_CURLOPT_USERNAME" "#include <curl/curl.h>
20335 "
20336 if test "x$ac_cv_have_decl_CURLOPT_USERNAME" = xyes; then :
20337 have_curlopt_username="yes"
20338 else
20339 have_curlopt_username="no"
20340 fi
20342 ac_fn_c_check_decl "$LINENO" "CURLOPT_TIMEOUT_MS" "ac_cv_have_decl_CURLOPT_TIMEOUT_MS" "#include <curl/curl.h>
20343 "
20344 if test "x$ac_cv_have_decl_CURLOPT_TIMEOUT_MS" = xyes; then :
20345 have_curlopt_timeout="yes"
20346 else
20347 have_curlopt_timeout="no"
20348 fi
20350 fi
20351 fi
20352 if test "x$with_libcurl" = "xyes"
20353 then
20354 BUILD_WITH_LIBCURL_CFLAGS="$with_curl_cflags"
20355 BUILD_WITH_LIBCURL_LIBS="$with_curl_libs"
20359 if test "x$have_curlopt_username" = "xyes"
20360 then
20362 $as_echo "#define HAVE_CURLOPT_USERNAME 1" >>confdefs.h
20364 fi
20366 if test "x$have_curlopt_timeout" = "xyes"
20367 then
20369 $as_echo "#define HAVE_CURLOPT_TIMEOUT_MS 1" >>confdefs.h
20371 fi
20372 fi
20373 if test "x$with_libcurl" = "xyes"; then
20374 BUILD_WITH_LIBCURL_TRUE=
20375 BUILD_WITH_LIBCURL_FALSE='#'
20376 else
20377 BUILD_WITH_LIBCURL_TRUE='#'
20378 BUILD_WITH_LIBCURL_FALSE=
20379 fi
20381 # }}}
20383 # --with-libdbi {{{
20384 with_libdbi_cppflags=""
20385 with_libdbi_ldflags=""
20387 # Check whether --with-libdbi was given.
20388 if test "${with_libdbi+set}" = set; then :
20389 withval=$with_libdbi;
20390 if test "x$withval" != "xno" && test "x$withval" != "xyes"
20391 then
20392 with_libdbi_cppflags="-I$withval/include"
20393 with_libdbi_ldflags="-L$withval/lib"
20394 with_libdbi="yes"
20395 else
20396 with_libdbi="$withval"
20397 fi
20399 else
20401 with_libdbi="yes"
20403 fi
20405 if test "x$with_libdbi" = "xyes"
20406 then
20407 SAVE_CPPFLAGS="$CPPFLAGS"
20408 CPPFLAGS="$CPPFLAGS $with_libdbi_cppflags"
20410 for ac_header in dbi/dbi.h
20411 do :
20412 ac_fn_c_check_header_mongrel "$LINENO" "dbi/dbi.h" "ac_cv_header_dbi_dbi_h" "$ac_includes_default"
20413 if test "x$ac_cv_header_dbi_dbi_h" = xyes; then :
20414 cat >>confdefs.h <<_ACEOF
20415 #define HAVE_DBI_DBI_H 1
20416 _ACEOF
20417 with_libdbi="yes"
20418 else
20419 with_libdbi="no (dbi/dbi.h not found)"
20420 fi
20422 done
20425 CPPFLAGS="$SAVE_CPPFLAGS"
20426 fi
20427 if test "x$with_libdbi" = "xyes"
20428 then
20429 SAVE_CPPFLAGS="$CPPFLAGS"
20430 SAVE_LDFLAGS="$LDFLAGS"
20431 CPPFLAGS="$CPPFLAGS $with_libdbi_cppflags"
20432 LDFLAGS="$LDFLAGS $with_libdbi_ldflags"
20434 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dbi_initialize in -ldbi" >&5
20435 $as_echo_n "checking for dbi_initialize in -ldbi... " >&6; }
20436 if ${ac_cv_lib_dbi_dbi_initialize+:} false; then :
20437 $as_echo_n "(cached) " >&6
20438 else
20439 ac_check_lib_save_LIBS=$LIBS
20440 LIBS="-ldbi $LIBS"
20441 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20442 /* end confdefs.h. */
20444 /* Override any GCC internal prototype to avoid an error.
20445 Use char because int might match the return type of a GCC
20446 builtin and then its argument prototype would still apply. */
20447 #ifdef __cplusplus
20448 extern "C"
20449 #endif
20450 char dbi_initialize ();
20451 int
20452 main ()
20453 {
20454 return dbi_initialize ();
20455 ;
20456 return 0;
20457 }
20458 _ACEOF
20459 if ac_fn_c_try_link "$LINENO"; then :
20460 ac_cv_lib_dbi_dbi_initialize=yes
20461 else
20462 ac_cv_lib_dbi_dbi_initialize=no
20463 fi
20464 rm -f core conftest.err conftest.$ac_objext \
20465 conftest$ac_exeext conftest.$ac_ext
20466 LIBS=$ac_check_lib_save_LIBS
20467 fi
20468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dbi_dbi_initialize" >&5
20469 $as_echo "$ac_cv_lib_dbi_dbi_initialize" >&6; }
20470 if test "x$ac_cv_lib_dbi_dbi_initialize" = xyes; then :
20471 with_libdbi="yes"
20472 else
20473 with_libdbi="no (Symbol 'dbi_initialize' not found)"
20474 fi
20477 CPPFLAGS="$SAVE_CPPFLAGS"
20478 LDFLAGS="$SAVE_LDFLAGS"
20479 fi
20480 if test "x$with_libdbi" = "xyes"
20481 then
20482 BUILD_WITH_LIBDBI_CPPFLAGS="$with_libdbi_cppflags"
20483 BUILD_WITH_LIBDBI_LDFLAGS="$with_libdbi_ldflags"
20484 BUILD_WITH_LIBDBI_LIBS="-ldbi"
20488 fi
20489 if test "x$with_libdbi" = "xyes"; then
20490 BUILD_WITH_LIBDBI_TRUE=
20491 BUILD_WITH_LIBDBI_FALSE='#'
20492 else
20493 BUILD_WITH_LIBDBI_TRUE='#'
20494 BUILD_WITH_LIBDBI_FALSE=
20495 fi
20497 # }}}
20499 # --with-libesmtp {{{
20501 # Check whether --with-libesmtp was given.
20502 if test "${with_libesmtp+set}" = set; then :
20503 withval=$with_libesmtp;
20504 if test "x$withval" != "xno" && test "x$withval" != "xyes"
20505 then
20506 LDFLAGS="$LDFLAGS -L$withval/lib"
20507 CPPFLAGS="$CPPFLAGS -I$withval/include -D_THREAD_SAFE"
20508 with_libesmtp="yes"
20509 else
20510 with_libesmtp="$withval"
20511 fi
20513 else
20515 with_libesmtp="yes"
20517 fi
20519 if test "x$with_libesmtp" = "xyes"
20520 then
20521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for smtp_create_session in -lesmtp" >&5
20522 $as_echo_n "checking for smtp_create_session in -lesmtp... " >&6; }
20523 if ${ac_cv_lib_esmtp_smtp_create_session+:} false; then :
20524 $as_echo_n "(cached) " >&6
20525 else
20526 ac_check_lib_save_LIBS=$LIBS
20527 LIBS="-lesmtp $LIBS"
20528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20529 /* end confdefs.h. */
20531 /* Override any GCC internal prototype to avoid an error.
20532 Use char because int might match the return type of a GCC
20533 builtin and then its argument prototype would still apply. */
20534 #ifdef __cplusplus
20535 extern "C"
20536 #endif
20537 char smtp_create_session ();
20538 int
20539 main ()
20540 {
20541 return smtp_create_session ();
20542 ;
20543 return 0;
20544 }
20545 _ACEOF
20546 if ac_fn_c_try_link "$LINENO"; then :
20547 ac_cv_lib_esmtp_smtp_create_session=yes
20548 else
20549 ac_cv_lib_esmtp_smtp_create_session=no
20550 fi
20551 rm -f core conftest.err conftest.$ac_objext \
20552 conftest$ac_exeext conftest.$ac_ext
20553 LIBS=$ac_check_lib_save_LIBS
20554 fi
20555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_esmtp_smtp_create_session" >&5
20556 $as_echo "$ac_cv_lib_esmtp_smtp_create_session" >&6; }
20557 if test "x$ac_cv_lib_esmtp_smtp_create_session" = xyes; then :
20560 $as_echo "#define HAVE_LIBESMTP 1" >>confdefs.h
20563 else
20564 with_libesmtp="no (libesmtp not found)"
20565 fi
20567 fi
20568 if test "x$with_libesmtp" = "xyes"
20569 then
20570 for ac_header in libesmtp.h
20571 do :
20572 ac_fn_c_check_header_mongrel "$LINENO" "libesmtp.h" "ac_cv_header_libesmtp_h" "$ac_includes_default"
20573 if test "x$ac_cv_header_libesmtp_h" = xyes; then :
20574 cat >>confdefs.h <<_ACEOF
20575 #define HAVE_LIBESMTP_H 1
20576 _ACEOF
20579 $as_echo "#define HAVE_LIBESMTP_H 1" >>confdefs.h
20582 else
20583 with_libesmtp="no (libesmtp.h not found)"
20584 fi
20586 done
20588 fi
20589 if test "x$with_libesmtp" = "xyes"
20590 then
20591 collect_libesmtp=1
20592 else
20593 collect_libesmtp=0
20594 fi
20596 cat >>confdefs.h <<_ACEOF
20597 #define COLLECT_LIBESMTP $collect_libesmtp
20598 _ACEOF
20600 if test "x$with_libesmtp" = "xyes"; then
20601 BUILD_WITH_LIBESMTP_TRUE=
20602 BUILD_WITH_LIBESMTP_FALSE='#'
20603 else
20604 BUILD_WITH_LIBESMTP_TRUE='#'
20605 BUILD_WITH_LIBESMTP_FALSE=
20606 fi
20608 # }}}
20610 # --with-libganglia {{{
20612 # Check whether --with-libganglia was given.
20613 if test "${with_libganglia+set}" = set; then :
20614 withval=$with_libganglia;
20615 if test -f "$withval" && test -x "$withval"
20616 then
20617 with_libganglia_config="$withval"
20618 with_libganglia="yes"
20619 else if test -f "$withval/bin/ganglia-config" && test -x "$withval/bin/ganglia-config"
20620 then
20621 with_libganglia_config="$withval/bin/ganglia-config"
20622 with_libganglia="yes"
20623 else if test -d "$withval"
20624 then
20625 GANGLIA_CPPFLAGS="-I$withval/include"
20626 GANGLIA_LDFLAGS="-L$withval/lib"
20627 with_libganglia="yes"
20628 else
20629 with_libganglia_config="ganglia-config"
20630 with_libganglia="$withval"
20631 fi; fi; fi
20633 else
20635 with_libganglia_config="ganglia-config"
20636 with_libganglia="yes"
20638 fi
20641 if test "x$with_libganglia" = "xyes" && test "x$with_libganglia_config" != "x"
20642 then
20643 if test "x$GANGLIA_CPPFLAGS" = "x"
20644 then
20645 GANGLIA_CPPFLAGS=`"$with_libganglia_config" --cflags 2>/dev/null`
20646 fi
20648 if test "x$GANGLIA_LDFLAGS" = "x"
20649 then
20650 GANGLIA_LDFLAGS=`"$with_libganglia_config" --ldflags 2>/dev/null`
20651 fi
20653 if test "x$GANGLIA_LIBS" = "x"
20654 then
20655 GANGLIA_LIBS=`"$with_libganglia_config" --libs 2>/dev/null`
20656 fi
20657 fi
20659 SAVE_CPPFLAGS="$CPPFLAGS"
20660 SAVE_LDFLAGS="$LDFLAGS"
20661 CPPFLAGS="$CPPFLAGS $GANGLIA_CPPFLAGS"
20662 LDFLAGS="$LDFLAGS $GANGLIA_LDFLAGS"
20664 if test "x$with_libganglia" = "xyes"
20665 then
20666 for ac_header in gm_protocol.h
20667 do :
20668 ac_fn_c_check_header_mongrel "$LINENO" "gm_protocol.h" "ac_cv_header_gm_protocol_h" "$ac_includes_default"
20669 if test "x$ac_cv_header_gm_protocol_h" = xyes; then :
20670 cat >>confdefs.h <<_ACEOF
20671 #define HAVE_GM_PROTOCOL_H 1
20672 _ACEOF
20675 $as_echo "#define HAVE_GM_PROTOCOL_H 1" >>confdefs.h
20678 else
20679 with_libganglia="no (gm_protocol.h not found)"
20680 fi
20682 done
20684 fi
20686 if test "x$with_libganglia" = "xyes"
20687 then
20688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xdr_Ganglia_value_msg in -lganglia" >&5
20689 $as_echo_n "checking for xdr_Ganglia_value_msg in -lganglia... " >&6; }
20690 if ${ac_cv_lib_ganglia_xdr_Ganglia_value_msg+:} false; then :
20691 $as_echo_n "(cached) " >&6
20692 else
20693 ac_check_lib_save_LIBS=$LIBS
20694 LIBS="-lganglia $LIBS"
20695 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20696 /* end confdefs.h. */
20698 /* Override any GCC internal prototype to avoid an error.
20699 Use char because int might match the return type of a GCC
20700 builtin and then its argument prototype would still apply. */
20701 #ifdef __cplusplus
20702 extern "C"
20703 #endif
20704 char xdr_Ganglia_value_msg ();
20705 int
20706 main ()
20707 {
20708 return xdr_Ganglia_value_msg ();
20709 ;
20710 return 0;
20711 }
20712 _ACEOF
20713 if ac_fn_c_try_link "$LINENO"; then :
20714 ac_cv_lib_ganglia_xdr_Ganglia_value_msg=yes
20715 else
20716 ac_cv_lib_ganglia_xdr_Ganglia_value_msg=no
20717 fi
20718 rm -f core conftest.err conftest.$ac_objext \
20719 conftest$ac_exeext conftest.$ac_ext
20720 LIBS=$ac_check_lib_save_LIBS
20721 fi
20722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ganglia_xdr_Ganglia_value_msg" >&5
20723 $as_echo "$ac_cv_lib_ganglia_xdr_Ganglia_value_msg" >&6; }
20724 if test "x$ac_cv_lib_ganglia_xdr_Ganglia_value_msg" = xyes; then :
20727 $as_echo "#define HAVE_LIBGANGLIA 1" >>confdefs.h
20730 else
20731 with_libganglia="no (symbol xdr_Ganglia_value_msg not found)"
20732 fi
20734 fi
20736 CPPFLAGS="$SAVE_CPPFLAGS"
20737 LDFLAGS="$SAVE_LDFLAGS"
20742 if test "x$with_libganglia" = "xyes"; then
20743 BUILD_WITH_LIBGANGLIA_TRUE=
20744 BUILD_WITH_LIBGANGLIA_FALSE='#'
20745 else
20746 BUILD_WITH_LIBGANGLIA_TRUE='#'
20747 BUILD_WITH_LIBGANGLIA_FALSE=
20748 fi
20750 # }}}
20752 # --with-libgcrypt {{{
20753 GCRYPT_CPPFLAGS="$GCRYPT_CPPFLAGS"
20754 GCRYPT_LDFLAGS="$GCRYPT_LDFLAGS"
20755 GCRYPT_LIBS="$GCRYPT_LIBS"
20757 # Check whether --with-libgcrypt was given.
20758 if test "${with_libgcrypt+set}" = set; then :
20759 withval=$with_libgcrypt;
20760 if test -f "$withval" && test -x "$withval"
20761 then
20762 with_libgcrypt_config="$withval"
20763 with_libgcrypt="yes"
20764 else if test -f "$withval/bin/gcrypt-config" && test -x "$withval/bin/gcrypt-config"
20765 then
20766 with_libgcrypt_config="$withval/bin/gcrypt-config"
20767 with_libgcrypt="yes"
20768 else if test -d "$withval"
20769 then
20770 GCRYPT_CPPFLAGS="$GCRYPT_CPPFLAGS -I$withval/include"
20771 GCRYPT_LDFLAGS="$GCRYPT_LDFLAGS -L$withval/lib"
20772 with_libgcrypt="yes"
20773 else
20774 with_libgcrypt_config="gcrypt-config"
20775 with_libgcrypt="$withval"
20776 fi; fi; fi
20778 else
20780 with_libgcrypt_config="libgcrypt-config"
20781 with_libgcrypt="yes"
20783 fi
20786 if test "x$with_libgcrypt" = "xyes" && test "x$with_libgcrypt_config" != "x"
20787 then
20788 if test "x$GCRYPT_CPPFLAGS" = "x"
20789 then
20790 GCRYPT_CPPFLAGS=`"$with_libgcrypt_config" --cflags 2>/dev/null`
20791 fi
20793 if test "x$GCRYPT_LDFLAGS" = "x"
20794 then
20795 gcrypt_exec_prefix=`"$with_libgcrypt_config" --exec-prefix 2>/dev/null`
20796 GCRYPT_LDFLAGS="-L$gcrypt_exec_prefix/lib"
20797 fi
20799 if test "x$GCRYPT_LIBS" = "x"
20800 then
20801 GCRYPT_LIBS=`"$with_libgcrypt_config" --libs 2>/dev/null`
20802 fi
20803 fi
20805 SAVE_CPPFLAGS="$CPPFLAGS"
20806 SAVE_LDFLAGS="$LDFLAGS"
20807 CPPFLAGS="$CPPFLAGS $GCRYPT_CPPFLAGS"
20808 LDFLAGS="$LDFLAGS $GCRYPT_LDFLAGS"
20810 if test "x$with_libgcrypt" = "xyes"
20811 then
20812 if test "x$GCRYPT_CPPFLAGS" != "x"
20813 then
20814 { $as_echo "$as_me:${as_lineno-$LINENO}: gcrypt CPPFLAGS: $GCRYPT_CPPFLAGS" >&5
20815 $as_echo "$as_me: gcrypt CPPFLAGS: $GCRYPT_CPPFLAGS" >&6;}
20816 fi
20817 for ac_header in gcrypt.h
20818 do :
20819 ac_fn_c_check_header_mongrel "$LINENO" "gcrypt.h" "ac_cv_header_gcrypt_h" "$ac_includes_default"
20820 if test "x$ac_cv_header_gcrypt_h" = xyes; then :
20821 cat >>confdefs.h <<_ACEOF
20822 #define HAVE_GCRYPT_H 1
20823 _ACEOF
20824 with_libgcrypt="yes"
20825 else
20826 with_libgcrypt="no (gcrypt.h not found)"
20827 fi
20829 done
20831 fi
20833 if test "x$with_libgcrypt" = "xyes"
20834 then
20835 if test "x$GCRYPT_LDFLAGS" != "x"
20836 then
20837 { $as_echo "$as_me:${as_lineno-$LINENO}: gcrypt LDFLAGS: $GCRYPT_LDFLAGS" >&5
20838 $as_echo "$as_me: gcrypt LDFLAGS: $GCRYPT_LDFLAGS" >&6;}
20839 fi
20840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gcry_md_hash_buffer in -lgcrypt" >&5
20841 $as_echo_n "checking for gcry_md_hash_buffer in -lgcrypt... " >&6; }
20842 if ${ac_cv_lib_gcrypt_gcry_md_hash_buffer+:} false; then :
20843 $as_echo_n "(cached) " >&6
20844 else
20845 ac_check_lib_save_LIBS=$LIBS
20846 LIBS="-lgcrypt $LIBS"
20847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
20848 /* end confdefs.h. */
20850 /* Override any GCC internal prototype to avoid an error.
20851 Use char because int might match the return type of a GCC
20852 builtin and then its argument prototype would still apply. */
20853 #ifdef __cplusplus
20854 extern "C"
20855 #endif
20856 char gcry_md_hash_buffer ();
20857 int
20858 main ()
20859 {
20860 return gcry_md_hash_buffer ();
20861 ;
20862 return 0;
20863 }
20864 _ACEOF
20865 if ac_fn_c_try_link "$LINENO"; then :
20866 ac_cv_lib_gcrypt_gcry_md_hash_buffer=yes
20867 else
20868 ac_cv_lib_gcrypt_gcry_md_hash_buffer=no
20869 fi
20870 rm -f core conftest.err conftest.$ac_objext \
20871 conftest$ac_exeext conftest.$ac_ext
20872 LIBS=$ac_check_lib_save_LIBS
20873 fi
20874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gcrypt_gcry_md_hash_buffer" >&5
20875 $as_echo "$ac_cv_lib_gcrypt_gcry_md_hash_buffer" >&6; }
20876 if test "x$ac_cv_lib_gcrypt_gcry_md_hash_buffer" = xyes; then :
20877 with_libgcrypt="yes"
20878 else
20879 with_libgcrypt="no (symbol gcry_md_hash_buffer not found)"
20880 fi
20883 if test "$with_libgcrypt" != "no"; then
20885 # Check whether --with-libgcrypt-prefix was given.
20886 if test "${with_libgcrypt_prefix+set}" = set; then :
20887 withval=$with_libgcrypt_prefix; libgcrypt_config_prefix="$withval"
20888 else
20889 libgcrypt_config_prefix=""
20890 fi
20892 if test x$libgcrypt_config_prefix != x ; then
20893 if test x${LIBGCRYPT_CONFIG+set} != xset ; then
20894 LIBGCRYPT_CONFIG=$libgcrypt_config_prefix/bin/libgcrypt-config
20895 fi
20896 fi
20898 if test -n "$ac_tool_prefix"; then
20899 # Extract the first word of "${ac_tool_prefix}libgcrypt-config", so it can be a program name with args.
20900 set dummy ${ac_tool_prefix}libgcrypt-config; ac_word=$2
20901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20902 $as_echo_n "checking for $ac_word... " >&6; }
20903 if ${ac_cv_path_LIBGCRYPT_CONFIG+:} false; then :
20904 $as_echo_n "(cached) " >&6
20905 else
20906 case $LIBGCRYPT_CONFIG in
20907 [\\/]* | ?:[\\/]*)
20908 ac_cv_path_LIBGCRYPT_CONFIG="$LIBGCRYPT_CONFIG" # Let the user override the test with a path.
20909 ;;
20910 *)
20911 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20912 for as_dir in $PATH
20913 do
20914 IFS=$as_save_IFS
20915 test -z "$as_dir" && as_dir=.
20916 for ac_exec_ext in '' $ac_executable_extensions; do
20917 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20918 ac_cv_path_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20919 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20920 break 2
20921 fi
20922 done
20923 done
20924 IFS=$as_save_IFS
20926 ;;
20927 esac
20928 fi
20929 LIBGCRYPT_CONFIG=$ac_cv_path_LIBGCRYPT_CONFIG
20930 if test -n "$LIBGCRYPT_CONFIG"; then
20931 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LIBGCRYPT_CONFIG" >&5
20932 $as_echo "$LIBGCRYPT_CONFIG" >&6; }
20933 else
20934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20935 $as_echo "no" >&6; }
20936 fi
20939 fi
20940 if test -z "$ac_cv_path_LIBGCRYPT_CONFIG"; then
20941 ac_pt_LIBGCRYPT_CONFIG=$LIBGCRYPT_CONFIG
20942 # Extract the first word of "libgcrypt-config", so it can be a program name with args.
20943 set dummy libgcrypt-config; ac_word=$2
20944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
20945 $as_echo_n "checking for $ac_word... " >&6; }
20946 if ${ac_cv_path_ac_pt_LIBGCRYPT_CONFIG+:} false; then :
20947 $as_echo_n "(cached) " >&6
20948 else
20949 case $ac_pt_LIBGCRYPT_CONFIG in
20950 [\\/]* | ?:[\\/]*)
20951 ac_cv_path_ac_pt_LIBGCRYPT_CONFIG="$ac_pt_LIBGCRYPT_CONFIG" # Let the user override the test with a path.
20952 ;;
20953 *)
20954 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
20955 for as_dir in $PATH
20956 do
20957 IFS=$as_save_IFS
20958 test -z "$as_dir" && as_dir=.
20959 for ac_exec_ext in '' $ac_executable_extensions; do
20960 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
20961 ac_cv_path_ac_pt_LIBGCRYPT_CONFIG="$as_dir/$ac_word$ac_exec_ext"
20962 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
20963 break 2
20964 fi
20965 done
20966 done
20967 IFS=$as_save_IFS
20969 ;;
20970 esac
20971 fi
20972 ac_pt_LIBGCRYPT_CONFIG=$ac_cv_path_ac_pt_LIBGCRYPT_CONFIG
20973 if test -n "$ac_pt_LIBGCRYPT_CONFIG"; then
20974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_LIBGCRYPT_CONFIG" >&5
20975 $as_echo "$ac_pt_LIBGCRYPT_CONFIG" >&6; }
20976 else
20977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
20978 $as_echo "no" >&6; }
20979 fi
20981 if test "x$ac_pt_LIBGCRYPT_CONFIG" = x; then
20982 LIBGCRYPT_CONFIG="no"
20983 else
20984 case $cross_compiling:$ac_tool_warned in
20985 yes:)
20986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
20987 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
20988 ac_tool_warned=yes ;;
20989 esac
20990 LIBGCRYPT_CONFIG=$ac_pt_LIBGCRYPT_CONFIG
20991 fi
20992 else
20993 LIBGCRYPT_CONFIG="$ac_cv_path_LIBGCRYPT_CONFIG"
20994 fi
20996 tmp=1:1.2.0
20997 if echo "$tmp" | grep ':' >/dev/null 2>/dev/null ; then
20998 req_libgcrypt_api=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\1/'`
20999 min_libgcrypt_version=`echo "$tmp" | sed 's/\(.*\):\(.*\)/\2/'`
21000 else
21001 req_libgcrypt_api=0
21002 min_libgcrypt_version="$tmp"
21003 fi
21005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBGCRYPT - version >= $min_libgcrypt_version" >&5
21006 $as_echo_n "checking for LIBGCRYPT - version >= $min_libgcrypt_version... " >&6; }
21007 ok=no
21008 if test "$LIBGCRYPT_CONFIG" != "no" ; then
21009 req_major=`echo $min_libgcrypt_version | \
21010 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\1/'`
21011 req_minor=`echo $min_libgcrypt_version | \
21012 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\2/'`
21013 req_micro=`echo $min_libgcrypt_version | \
21014 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\)/\3/'`
21015 libgcrypt_config_version=`$LIBGCRYPT_CONFIG --version`
21016 major=`echo $libgcrypt_config_version | \
21017 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\1/'`
21018 minor=`echo $libgcrypt_config_version | \
21019 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\2/'`
21020 micro=`echo $libgcrypt_config_version | \
21021 sed 's/\([0-9]*\)\.\([0-9]*\)\.\([0-9]*\).*/\3/'`
21022 if test "$major" -gt "$req_major"; then
21023 ok=yes
21024 else
21025 if test "$major" -eq "$req_major"; then
21026 if test "$minor" -gt "$req_minor"; then
21027 ok=yes
21028 else
21029 if test "$minor" -eq "$req_minor"; then
21030 if test "$micro" -ge "$req_micro"; then
21031 ok=yes
21032 fi
21033 fi
21034 fi
21035 fi
21036 fi
21037 fi
21038 if test $ok = yes; then
21039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($libgcrypt_config_version)" >&5
21040 $as_echo "yes ($libgcrypt_config_version)" >&6; }
21041 else
21042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21043 $as_echo "no" >&6; }
21044 fi
21045 if test $ok = yes; then
21046 # If we have a recent libgcrypt, we should also check that the
21047 # API is compatible
21048 if test "$req_libgcrypt_api" -gt 0 ; then
21049 tmp=`$LIBGCRYPT_CONFIG --api-version 2>/dev/null || echo 0`
21050 if test "$tmp" -gt 0 ; then
21051 { $as_echo "$as_me:${as_lineno-$LINENO}: checking LIBGCRYPT API version" >&5
21052 $as_echo_n "checking LIBGCRYPT API version... " >&6; }
21053 if test "$req_libgcrypt_api" -eq "$tmp" ; then
21054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: okay" >&5
21055 $as_echo "okay" >&6; }
21056 else
21057 ok=no
21058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: does not match. want=$req_libgcrypt_api got=$tmp" >&5
21059 $as_echo "does not match. want=$req_libgcrypt_api got=$tmp" >&6; }
21060 fi
21061 fi
21062 fi
21063 fi
21064 if test $ok = yes; then
21065 LIBGCRYPT_CFLAGS=`$LIBGCRYPT_CONFIG --cflags`
21066 LIBGCRYPT_LIBS=`$LIBGCRYPT_CONFIG --libs`
21067 :
21068 if test x"$host" != x ; then
21069 libgcrypt_config_host=`$LIBGCRYPT_CONFIG --host 2>/dev/null || echo none`
21070 if test x"$libgcrypt_config_host" != xnone ; then
21071 if test x"$libgcrypt_config_host" != x"$host" ; then
21072 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
21073 ***
21074 *** The config script $LIBGCRYPT_CONFIG was
21075 *** built for $libgcrypt_config_host and thus may not match the
21076 *** used host $host.
21077 *** You may want to use the configure option --with-libgcrypt-prefix
21078 *** to specify a matching config script.
21079 ***" >&5
21080 $as_echo "$as_me: WARNING:
21081 ***
21082 *** The config script $LIBGCRYPT_CONFIG was
21083 *** built for $libgcrypt_config_host and thus may not match the
21084 *** used host $host.
21085 *** You may want to use the configure option --with-libgcrypt-prefix
21086 *** to specify a matching config script.
21087 ***" >&2;}
21088 fi
21089 fi
21090 fi
21091 else
21092 LIBGCRYPT_CFLAGS=""
21093 LIBGCRYPT_LIBS=""
21094 with_libgcrypt="no (version 1.2.0+ required)"
21095 fi
21099 GCRYPT_CPPFLAGS="$LIBGCRYPT_CPPFLAGS $LIBGCRYPT_CFLAGS"
21100 GCRYPT_LIBS="$LIBGCRYPT_LIBS"
21101 fi
21102 fi
21104 CPPFLAGS="$SAVE_CPPFLAGS"
21105 LDFLAGS="$SAVE_LDFLAGS"
21107 if test "x$with_libgcrypt" = "xyes"
21108 then
21110 $as_echo "#define HAVE_LIBGCRYPT 1" >>confdefs.h
21112 fi
21117 if test "x$with_libgcrypt" = "xyes"; then
21118 BUILD_WITH_LIBGCRYPT_TRUE=
21119 BUILD_WITH_LIBGCRYPT_FALSE='#'
21120 else
21121 BUILD_WITH_LIBGCRYPT_TRUE='#'
21122 BUILD_WITH_LIBGCRYPT_FALSE=
21123 fi
21125 # }}}
21127 # --with-libiptc {{{
21129 # Check whether --with-libiptc was given.
21130 if test "${with_libiptc+set}" = set; then :
21131 withval=$with_libiptc;
21132 if test "x$withval" = "xyes"
21133 then
21134 with_libiptc="pkgconfig"
21135 else if test "x$withval" = "xno"
21136 then
21137 with_libiptc="no"
21138 else
21139 with_libiptc="yes"
21140 with_libiptc_cflags="-I$withval/include"
21141 with_libiptc_libs="-L$withval/lib"
21142 fi; fi
21144 else
21146 if test "x$ac_system" = "xLinux"
21147 then
21148 with_libiptc="pkgconfig"
21149 else
21150 with_libiptc="no (Linux only)"
21151 fi
21153 fi
21156 if test "x$with_libiptc" = "xpkgconfig" && test "x$PKG_CONFIG" = "x"
21157 then
21158 with_libiptc="no (Don't have pkg-config)"
21159 fi
21161 if test "x$with_libiptc" = "xpkgconfig"
21162 then
21163 $PKG_CONFIG --exists 'libiptc' 2>/dev/null
21164 if test $? -ne 0
21165 then
21166 with_libiptc="no (pkg-config doesn't know libiptc)"
21167 fi
21168 fi
21169 if test "x$with_libiptc" = "xpkgconfig"
21170 then
21171 with_libiptc_cflags="`$PKG_CONFIG --cflags 'libiptc'`"
21172 if test $? -ne 0
21173 then
21174 with_libiptc="no ($PKG_CONFIG failed)"
21175 fi
21176 with_libiptc_libs="`$PKG_CONFIG --libs 'libiptc'`"
21177 if test $? -ne 0
21178 then
21179 with_libiptc="no ($PKG_CONFIG failed)"
21180 fi
21181 fi
21183 SAVE_CPPFLAGS="$CPPFLAGS"
21184 CPPFLAGS="$CPPFLAGS $with_libiptc_cflags"
21186 # check whether the header file for libiptc is available.
21187 if test "x$with_libiptc" = "xpkgconfig"
21188 then
21189 for ac_header in libiptc/libiptc.h libiptc/libip6tc.h
21190 do :
21191 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
21192 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
21193 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
21194 cat >>confdefs.h <<_ACEOF
21195 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
21196 _ACEOF
21198 else
21199 with_libiptc="no (header file missing)"
21200 fi
21202 done
21204 fi
21205 # If the header file is available, check for the required type declaractions.
21206 # They may be missing in old versions of libiptc. In that case, they will be
21207 # declared in the iptables plugin.
21208 if test "x$with_libiptc" = "xpkgconfig"
21209 then
21210 ac_fn_c_check_type "$LINENO" "iptc_handle_t" "ac_cv_type_iptc_handle_t" "$ac_includes_default"
21211 if test "x$ac_cv_type_iptc_handle_t" = xyes; then :
21213 cat >>confdefs.h <<_ACEOF
21214 #define HAVE_IPTC_HANDLE_T 1
21215 _ACEOF
21218 fi
21219 ac_fn_c_check_type "$LINENO" "ip6tc_handle_t" "ac_cv_type_ip6tc_handle_t" "$ac_includes_default"
21220 if test "x$ac_cv_type_ip6tc_handle_t" = xyes; then :
21222 cat >>confdefs.h <<_ACEOF
21223 #define HAVE_IP6TC_HANDLE_T 1
21224 _ACEOF
21227 fi
21229 fi
21230 # Check for the iptc_init symbol in the library.
21231 # This could be in iptc or ip4tc
21232 if test "x$with_libiptc" = "xpkgconfig"
21233 then
21234 SAVE_LIBS="$LIBS"
21235 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing iptc_init" >&5
21236 $as_echo_n "checking for library containing iptc_init... " >&6; }
21237 if ${ac_cv_search_iptc_init+:} false; then :
21238 $as_echo_n "(cached) " >&6
21239 else
21240 ac_func_search_save_LIBS=$LIBS
21241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21242 /* end confdefs.h. */
21244 /* Override any GCC internal prototype to avoid an error.
21245 Use char because int might match the return type of a GCC
21246 builtin and then its argument prototype would still apply. */
21247 #ifdef __cplusplus
21248 extern "C"
21249 #endif
21250 char iptc_init ();
21251 int
21252 main ()
21253 {
21254 return iptc_init ();
21255 ;
21256 return 0;
21257 }
21258 _ACEOF
21259 for ac_lib in '' iptc ip4tc; do
21260 if test -z "$ac_lib"; then
21261 ac_res="none required"
21262 else
21263 ac_res=-l$ac_lib
21264 LIBS="-l$ac_lib $with_libiptc_libs $ac_func_search_save_LIBS"
21265 fi
21266 if ac_fn_c_try_link "$LINENO"; then :
21267 ac_cv_search_iptc_init=$ac_res
21268 fi
21269 rm -f core conftest.err conftest.$ac_objext \
21270 conftest$ac_exeext
21271 if ${ac_cv_search_iptc_init+:} false; then :
21272 break
21273 fi
21274 done
21275 if ${ac_cv_search_iptc_init+:} false; then :
21277 else
21278 ac_cv_search_iptc_init=no
21279 fi
21280 rm conftest.$ac_ext
21281 LIBS=$ac_func_search_save_LIBS
21282 fi
21283 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_iptc_init" >&5
21284 $as_echo "$ac_cv_search_iptc_init" >&6; }
21285 ac_res=$ac_cv_search_iptc_init
21286 if test "$ac_res" != no; then :
21287 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
21288 with_libiptc="pkgconfig"
21289 else
21290 with_libiptc="no"
21291 fi
21293 LIBS="$SAVE_LIBS"
21294 fi
21295 if test "x$with_libiptc" = "xpkgconfig"
21296 then
21297 with_libiptc="yes"
21298 fi
21300 CPPFLAGS="$SAVE_CPPFLAGS"
21302 if test "x$with_libiptc" = "xyes"; then
21303 BUILD_WITH_LIBIPTC_TRUE=
21304 BUILD_WITH_LIBIPTC_FALSE='#'
21305 else
21306 BUILD_WITH_LIBIPTC_TRUE='#'
21307 BUILD_WITH_LIBIPTC_FALSE=
21308 fi
21310 if test "x$with_libiptc" = "xyes"
21311 then
21312 BUILD_WITH_LIBIPTC_CPPFLAGS="$with_libiptc_cflags"
21313 BUILD_WITH_LIBIPTC_LDFLAGS="$with_libiptc_libs"
21316 fi
21317 # }}}
21319 # --with-java {{{
21320 with_java_home="$JAVA_HOME"
21321 if test "x$with_java_home" = "x"
21322 then
21323 with_java_home="/usr/lib/jvm"
21324 fi
21325 with_java_vmtype="client"
21326 with_java_cflags=""
21327 with_java_libs=""
21328 JAVAC="$JAVAC"
21329 JAR="$JAR"
21331 # Check whether --with-java was given.
21332 if test "${with_java+set}" = set; then :
21333 withval=$with_java;
21334 if test "x$withval" = "xno"
21335 then
21336 with_java="no"
21337 else if test "x$withval" = "xyes"
21338 then
21339 with_java="yes"
21340 else
21341 with_java_home="$withval"
21342 with_java="yes"
21343 fi; fi
21345 else
21346 with_java="yes"
21347 fi
21349 if test "x$with_java" = "xyes"
21350 then
21351 if test -d "$with_java_home"
21352 then
21353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jni.h" >&5
21354 $as_echo_n "checking for jni.h... " >&6; }
21355 TMPVAR=`find -L "$with_java_home" -name jni.h -type f -exec 'dirname' '{}' ';' 2>/dev/null | head -n 1`
21356 if test "x$TMPVAR" != "x"
21357 then
21358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $TMPVAR" >&5
21359 $as_echo "found in $TMPVAR" >&6; }
21360 JAVA_CPPFLAGS="$JAVA_CPPFLAGS -I$TMPVAR"
21361 else
21362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21363 $as_echo "not found" >&6; }
21364 fi
21366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jni_md.h" >&5
21367 $as_echo_n "checking for jni_md.h... " >&6; }
21368 TMPVAR=`find -L "$with_java_home" -name jni_md.h -type f -exec 'dirname' '{}' ';' 2>/dev/null | head -n 1`
21369 if test "x$TMPVAR" != "x"
21370 then
21371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $TMPVAR" >&5
21372 $as_echo "found in $TMPVAR" >&6; }
21373 JAVA_CPPFLAGS="$JAVA_CPPFLAGS -I$TMPVAR"
21374 else
21375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21376 $as_echo "not found" >&6; }
21377 fi
21379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libjvm.so" >&5
21380 $as_echo_n "checking for libjvm.so... " >&6; }
21381 TMPVAR=`find -L "$with_java_home" -name libjvm.so -type f -exec 'dirname' '{}' ';' 2>/dev/null | head -n 1`
21382 if test "x$TMPVAR" != "x"
21383 then
21384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: found in $TMPVAR" >&5
21385 $as_echo "found in $TMPVAR" >&6; }
21386 JAVA_LDFLAGS="$JAVA_LDFLAGS -L$TMPVAR -Wl,-rpath -Wl,$TMPVAR"
21387 else
21388 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21389 $as_echo "not found" >&6; }
21390 fi
21392 if test "x$JAVAC" = "x"
21393 then
21394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for javac" >&5
21395 $as_echo_n "checking for javac... " >&6; }
21396 TMPVAR=`find -L "$with_java_home" -name javac -type f 2>/dev/null | head -n 1`
21397 if test "x$TMPVAR" != "x"
21398 then
21399 JAVAC="$TMPVAR"
21400 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
21401 $as_echo "$JAVAC" >&6; }
21402 else
21403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21404 $as_echo "not found" >&6; }
21405 fi
21406 fi
21407 if test "x$JAR" = "x"
21408 then
21409 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for jar" >&5
21410 $as_echo_n "checking for jar... " >&6; }
21411 TMPVAR=`find -L "$with_java_home" -name jar -type f 2>/dev/null | head -n 1`
21412 if test "x$TMPVAR" != "x"
21413 then
21414 JAR="$TMPVAR"
21415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAR" >&5
21416 $as_echo "$JAR" >&6; }
21417 else
21418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
21419 $as_echo "not found" >&6; }
21420 fi
21421 fi
21422 else if test "x$with_java_home" != "x"
21423 then
21424 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: JAVA_HOME: No such directory: $with_java_home" >&5
21425 $as_echo "$as_me: WARNING: JAVA_HOME: No such directory: $with_java_home" >&2;}
21426 fi; fi
21427 fi
21429 if test "x$JAVA_CPPFLAGS" != "x"
21430 then
21431 { $as_echo "$as_me:${as_lineno-$LINENO}: Building with JAVA_CPPFLAGS set to: $JAVA_CPPFLAGS" >&5
21432 $as_echo "$as_me: Building with JAVA_CPPFLAGS set to: $JAVA_CPPFLAGS" >&6;}
21433 fi
21434 if test "x$JAVA_CFLAGS" != "x"
21435 then
21436 { $as_echo "$as_me:${as_lineno-$LINENO}: Building with JAVA_CFLAGS set to: $JAVA_CFLAGS" >&5
21437 $as_echo "$as_me: Building with JAVA_CFLAGS set to: $JAVA_CFLAGS" >&6;}
21438 fi
21439 if test "x$JAVA_LDFLAGS" != "x"
21440 then
21441 { $as_echo "$as_me:${as_lineno-$LINENO}: Building with JAVA_LDFLAGS set to: $JAVA_LDFLAGS" >&5
21442 $as_echo "$as_me: Building with JAVA_LDFLAGS set to: $JAVA_LDFLAGS" >&6;}
21443 fi
21444 if test "x$JAVAC" = "x"
21445 then
21446 with_javac_path="$PATH"
21447 if test "x$with_java_home" != "x"
21448 then
21449 with_javac_path="$with_java_home:with_javac_path"
21450 if test -d "$with_java_home/bin"
21451 then
21452 with_javac_path="$with_java_home/bin:with_javac_path"
21453 fi
21454 fi
21456 # Extract the first word of "javac", so it can be a program name with args.
21457 set dummy javac; ac_word=$2
21458 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21459 $as_echo_n "checking for $ac_word... " >&6; }
21460 if ${ac_cv_path_JAVAC+:} false; then :
21461 $as_echo_n "(cached) " >&6
21462 else
21463 case $JAVAC in
21464 [\\/]* | ?:[\\/]*)
21465 ac_cv_path_JAVAC="$JAVAC" # Let the user override the test with a path.
21466 ;;
21467 *)
21468 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21469 for as_dir in "$with_javac_path"
21470 do
21471 IFS=$as_save_IFS
21472 test -z "$as_dir" && as_dir=.
21473 for ac_exec_ext in '' $ac_executable_extensions; do
21474 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21475 ac_cv_path_JAVAC="$as_dir/$ac_word$ac_exec_ext"
21476 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21477 break 2
21478 fi
21479 done
21480 done
21481 IFS=$as_save_IFS
21483 ;;
21484 esac
21485 fi
21486 JAVAC=$ac_cv_path_JAVAC
21487 if test -n "$JAVAC"; then
21488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAVAC" >&5
21489 $as_echo "$JAVAC" >&6; }
21490 else
21491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21492 $as_echo "no" >&6; }
21493 fi
21496 fi
21497 if test "x$JAVAC" = "x"
21498 then
21499 with_java="no (javac not found)"
21500 fi
21501 if test "x$JAR" = "x"
21502 then
21503 with_jar_path="$PATH"
21504 if test "x$with_java_home" != "x"
21505 then
21506 with_jar_path="$with_java_home:$with_jar_path"
21507 if test -d "$with_java_home/bin"
21508 then
21509 with_jar_path="$with_java_home/bin:$with_jar_path"
21510 fi
21511 fi
21513 # Extract the first word of "jar", so it can be a program name with args.
21514 set dummy jar; ac_word=$2
21515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
21516 $as_echo_n "checking for $ac_word... " >&6; }
21517 if ${ac_cv_path_JAR+:} false; then :
21518 $as_echo_n "(cached) " >&6
21519 else
21520 case $JAR in
21521 [\\/]* | ?:[\\/]*)
21522 ac_cv_path_JAR="$JAR" # Let the user override the test with a path.
21523 ;;
21524 *)
21525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
21526 for as_dir in "$with_jar_path"
21527 do
21528 IFS=$as_save_IFS
21529 test -z "$as_dir" && as_dir=.
21530 for ac_exec_ext in '' $ac_executable_extensions; do
21531 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
21532 ac_cv_path_JAR="$as_dir/$ac_word$ac_exec_ext"
21533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
21534 break 2
21535 fi
21536 done
21537 done
21538 IFS=$as_save_IFS
21540 ;;
21541 esac
21542 fi
21543 JAR=$ac_cv_path_JAR
21544 if test -n "$JAR"; then
21545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $JAR" >&5
21546 $as_echo "$JAR" >&6; }
21547 else
21548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
21549 $as_echo "no" >&6; }
21550 fi
21553 fi
21554 if test "x$JAR" = "x"
21555 then
21556 with_java="no (jar not found)"
21557 fi
21559 SAVE_CPPFLAGS="$CPPFLAGS"
21560 SAVE_CFLAGS="$CFLAGS"
21561 SAVE_LDFLAGS="$LDFLAGS"
21562 CPPFLAGS="$CPPFLAGS $JAVA_CPPFLAGS"
21563 CFLAGS="$CFLAGS $JAVA_CFLAGS"
21564 LDFLAGS="$LDFLAGS $JAVA_LDFLAGS"
21566 if test "x$with_java" = "xyes"
21567 then
21568 for ac_header in jni.h
21569 do :
21570 ac_fn_c_check_header_mongrel "$LINENO" "jni.h" "ac_cv_header_jni_h" "$ac_includes_default"
21571 if test "x$ac_cv_header_jni_h" = xyes; then :
21572 cat >>confdefs.h <<_ACEOF
21573 #define HAVE_JNI_H 1
21574 _ACEOF
21576 else
21577 with_java="no (jni.h not found)"
21578 fi
21580 done
21582 fi
21583 if test "x$with_java" = "xyes"
21584 then
21585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for JNI_CreateJavaVM in -ljvm" >&5
21586 $as_echo_n "checking for JNI_CreateJavaVM in -ljvm... " >&6; }
21587 if ${ac_cv_lib_jvm_JNI_CreateJavaVM+:} false; then :
21588 $as_echo_n "(cached) " >&6
21589 else
21590 ac_check_lib_save_LIBS=$LIBS
21591 LIBS="-ljvm $JAVA_LIBS $LIBS"
21592 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21593 /* end confdefs.h. */
21595 /* Override any GCC internal prototype to avoid an error.
21596 Use char because int might match the return type of a GCC
21597 builtin and then its argument prototype would still apply. */
21598 #ifdef __cplusplus
21599 extern "C"
21600 #endif
21601 char JNI_CreateJavaVM ();
21602 int
21603 main ()
21604 {
21605 return JNI_CreateJavaVM ();
21606 ;
21607 return 0;
21608 }
21609 _ACEOF
21610 if ac_fn_c_try_link "$LINENO"; then :
21611 ac_cv_lib_jvm_JNI_CreateJavaVM=yes
21612 else
21613 ac_cv_lib_jvm_JNI_CreateJavaVM=no
21614 fi
21615 rm -f core conftest.err conftest.$ac_objext \
21616 conftest$ac_exeext conftest.$ac_ext
21617 LIBS=$ac_check_lib_save_LIBS
21618 fi
21619 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_jvm_JNI_CreateJavaVM" >&5
21620 $as_echo "$ac_cv_lib_jvm_JNI_CreateJavaVM" >&6; }
21621 if test "x$ac_cv_lib_jvm_JNI_CreateJavaVM" = xyes; then :
21622 with_java="yes"
21623 else
21624 with_java="no (libjvm not found)"
21625 fi
21627 fi
21628 if test "x$with_java" = "xyes"
21629 then
21630 JAVA_LIBS="$JAVA_LIBS -ljvm"
21631 { $as_echo "$as_me:${as_lineno-$LINENO}: Building with JAVA_LIBS set to: $JAVA_LIBS" >&5
21632 $as_echo "$as_me: Building with JAVA_LIBS set to: $JAVA_LIBS" >&6;}
21633 fi
21635 CPPFLAGS="$SAVE_CPPFLAGS"
21636 CFLAGS="$SAVE_CFLAGS"
21637 LDFLAGS="$SAVE_LDFLAGS"
21643 if test "x$with_java" = "xyes"; then
21644 BUILD_WITH_JAVA_TRUE=
21645 BUILD_WITH_JAVA_FALSE='#'
21646 else
21647 BUILD_WITH_JAVA_TRUE='#'
21648 BUILD_WITH_JAVA_FALSE=
21649 fi
21651 # }}}
21653 # --with-libldap {{{
21655 # Check whether --with-libldap was given.
21656 if test "${with_libldap+set}" = set; then :
21657 withval=$with_libldap;
21658 if test "x$withval" = "xyes"
21659 then
21660 with_libldap="yes"
21661 else if test "x$withval" = "xno"
21662 then
21663 with_libldap="no"
21664 else
21665 with_libldap="yes"
21666 LIBLDAP_CPPFLAGS="$LIBLDAP_CPPFLAGS -I$withval/include"
21667 LIBLDAP_LDFLAGS="$LIBLDAP_LDFLAGS -L$withval/lib"
21668 fi; fi
21670 else
21671 with_libldap="yes"
21672 fi
21675 SAVE_CPPFLAGS="$CPPFLAGS"
21676 SAVE_LDFLAGS="$LDFLAGS"
21678 CPPFLAGS="$CPPFLAGS $LIBLDAP_CPPFLAGS"
21679 LDFLAGS="$LDFLAGS $LIBLDAP_LDFLAGS"
21681 if test "x$with_libldap" = "xyes"
21682 then
21683 if test "x$LIBLDAP_CPPFLAGS" != "x"
21684 then
21685 { $as_echo "$as_me:${as_lineno-$LINENO}: libldap CPPFLAGS: $LIBLDAP_CPPFLAGS" >&5
21686 $as_echo "$as_me: libldap CPPFLAGS: $LIBLDAP_CPPFLAGS" >&6;}
21687 fi
21688 for ac_header in ldap.h
21689 do :
21690 ac_fn_c_check_header_mongrel "$LINENO" "ldap.h" "ac_cv_header_ldap_h" "$ac_includes_default"
21691 if test "x$ac_cv_header_ldap_h" = xyes; then :
21692 cat >>confdefs.h <<_ACEOF
21693 #define HAVE_LDAP_H 1
21694 _ACEOF
21695 with_libldap="yes"
21696 else
21697 with_libldap="no ('ldap.h' not found)"
21698 fi
21700 done
21702 fi
21703 if test "x$with_libldap" = "xyes"
21704 then
21705 if test "x$LIBLDAP_LDFLAGS" != "x"
21706 then
21707 { $as_echo "$as_me:${as_lineno-$LINENO}: libldap LDFLAGS: $LIBLDAP_LDFLAGS" >&5
21708 $as_echo "$as_me: libldap LDFLAGS: $LIBLDAP_LDFLAGS" >&6;}
21709 fi
21710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ldap_initialize in -lldap" >&5
21711 $as_echo_n "checking for ldap_initialize in -lldap... " >&6; }
21712 if ${ac_cv_lib_ldap_ldap_initialize+:} false; then :
21713 $as_echo_n "(cached) " >&6
21714 else
21715 ac_check_lib_save_LIBS=$LIBS
21716 LIBS="-lldap $LIBS"
21717 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21718 /* end confdefs.h. */
21720 /* Override any GCC internal prototype to avoid an error.
21721 Use char because int might match the return type of a GCC
21722 builtin and then its argument prototype would still apply. */
21723 #ifdef __cplusplus
21724 extern "C"
21725 #endif
21726 char ldap_initialize ();
21727 int
21728 main ()
21729 {
21730 return ldap_initialize ();
21731 ;
21732 return 0;
21733 }
21734 _ACEOF
21735 if ac_fn_c_try_link "$LINENO"; then :
21736 ac_cv_lib_ldap_ldap_initialize=yes
21737 else
21738 ac_cv_lib_ldap_ldap_initialize=no
21739 fi
21740 rm -f core conftest.err conftest.$ac_objext \
21741 conftest$ac_exeext conftest.$ac_ext
21742 LIBS=$ac_check_lib_save_LIBS
21743 fi
21744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ldap_ldap_initialize" >&5
21745 $as_echo "$ac_cv_lib_ldap_ldap_initialize" >&6; }
21746 if test "x$ac_cv_lib_ldap_ldap_initialize" = xyes; then :
21747 with_libldap="yes"
21748 else
21749 with_libldap="no (symbol 'ldap_initialize' not found)"
21750 fi
21753 fi
21755 CPPFLAGS="$SAVE_CPPFLAGS"
21756 LDFLAGS="$SAVE_LDFLAGS"
21758 if test "x$with_libldap" = "xyes"
21759 then
21760 BUILD_WITH_LIBLDAP_CPPFLAGS="$LIBLDAP_CPPFLAGS"
21761 BUILD_WITH_LIBLDAP_LDFLAGS="$LIBLDAP_LDFLAGS"
21764 fi
21765 if test "x$with_libldap" = "xyes"; then
21766 BUILD_WITH_LIBLDAP_TRUE=
21767 BUILD_WITH_LIBLDAP_FALSE='#'
21768 else
21769 BUILD_WITH_LIBLDAP_TRUE='#'
21770 BUILD_WITH_LIBLDAP_FALSE=
21771 fi
21773 # }}}
21775 # --with-liblvm2app {{{
21776 with_liblvm2app_cppflags=""
21777 with_liblvm2app_ldflags=""
21779 # Check whether --with-liblvm2app was given.
21780 if test "${with_liblvm2app+set}" = set; then :
21781 withval=$with_liblvm2app;
21782 if test "x$withval" != "xno" && test "x$withval" != "xyes"
21783 then
21784 with_liblvm2app_cppflags="-I$withval/include"
21785 with_liblvm2app_ldflags="-L$withval/lib"
21786 with_liblvm2app="yes"
21787 else
21788 with_liblvm2app="$withval"
21789 fi
21791 else
21793 with_liblvm2app="yes"
21795 fi
21797 if test "x$with_liblvm2app" = "xyes"
21798 then
21799 SAVE_CPPFLAGS="$CPPFLAGS"
21800 CPPFLAGS="$CPPFLAGS $with_liblvm2app_cppflags"
21802 for ac_header in lvm2app.h
21803 do :
21804 ac_fn_c_check_header_mongrel "$LINENO" "lvm2app.h" "ac_cv_header_lvm2app_h" "$ac_includes_default"
21805 if test "x$ac_cv_header_lvm2app_h" = xyes; then :
21806 cat >>confdefs.h <<_ACEOF
21807 #define HAVE_LVM2APP_H 1
21808 _ACEOF
21809 with_liblvm2app="yes"
21810 else
21811 with_liblvm2app="no (lvm2app.h not found)"
21812 fi
21814 done
21817 CPPFLAGS="$SAVE_CPPFLAGS"
21818 fi
21820 if test "x$with_liblvm2app" = "xyes"
21821 then
21822 SAVE_CPPFLAGS="$CPPFLAGS"
21823 SAVE_LDFLAGS="$LDFLAGS"
21824 CPPFLAGS="$CPPFLAGS $with_liblvm2app_cppflags"
21825 LDFLAGS="$LDFLAGS $with_liblvm2app_ldflags"
21827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for lvm_lv_get_property in -llvm2app" >&5
21828 $as_echo_n "checking for lvm_lv_get_property in -llvm2app... " >&6; }
21829 if ${ac_cv_lib_lvm2app_lvm_lv_get_property+:} false; then :
21830 $as_echo_n "(cached) " >&6
21831 else
21832 ac_check_lib_save_LIBS=$LIBS
21833 LIBS="-llvm2app $LIBS"
21834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21835 /* end confdefs.h. */
21837 /* Override any GCC internal prototype to avoid an error.
21838 Use char because int might match the return type of a GCC
21839 builtin and then its argument prototype would still apply. */
21840 #ifdef __cplusplus
21841 extern "C"
21842 #endif
21843 char lvm_lv_get_property ();
21844 int
21845 main ()
21846 {
21847 return lvm_lv_get_property ();
21848 ;
21849 return 0;
21850 }
21851 _ACEOF
21852 if ac_fn_c_try_link "$LINENO"; then :
21853 ac_cv_lib_lvm2app_lvm_lv_get_property=yes
21854 else
21855 ac_cv_lib_lvm2app_lvm_lv_get_property=no
21856 fi
21857 rm -f core conftest.err conftest.$ac_objext \
21858 conftest$ac_exeext conftest.$ac_ext
21859 LIBS=$ac_check_lib_save_LIBS
21860 fi
21861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lvm2app_lvm_lv_get_property" >&5
21862 $as_echo "$ac_cv_lib_lvm2app_lvm_lv_get_property" >&6; }
21863 if test "x$ac_cv_lib_lvm2app_lvm_lv_get_property" = xyes; then :
21864 with_liblvm2app="yes"
21865 else
21866 with_liblvm2app="no (Symbol 'lvm_lv_get_property' not found)"
21867 fi
21870 CPPFLAGS="$SAVE_CPPFLAGS"
21871 LDFLAGS="$SAVE_LDFLAGS"
21872 fi
21873 if test "x$with_liblvm2app" = "xyes"
21874 then
21875 BUILD_WITH_LIBLVM2APP_CPPFLAGS="$with_liblvm2app_cppflags"
21876 BUILD_WITH_LIBLVM2APP_LDFLAGS="$with_liblvm2app_ldflags"
21877 BUILD_WITH_LIBLVM2APP_LIBS="-llvm2app"
21882 $as_echo "#define HAVE_LIBLVM2APP 1" >>confdefs.h
21884 fi
21885 if test "x$with_liblvm2app" = "xyes"; then
21886 BUILD_WITH_LIBLVM2APP_TRUE=
21887 BUILD_WITH_LIBLVM2APP_FALSE='#'
21888 else
21889 BUILD_WITH_LIBLVM2APP_TRUE='#'
21890 BUILD_WITH_LIBLVM2APP_FALSE=
21891 fi
21893 # }}}
21895 # --with-libmemcached {{{
21896 with_libmemcached_cppflags=""
21897 with_libmemcached_ldflags=""
21899 # Check whether --with-libmemcached was given.
21900 if test "${with_libmemcached+set}" = set; then :
21901 withval=$with_libmemcached;
21902 if test "x$withval" != "xno" && test "x$withval" != "xyes"
21903 then
21904 with_libmemcached_cppflags="-I$withval/include"
21905 with_libmemcached_ldflags="-L$withval/lib"
21906 with_libmemcached="yes"
21907 else
21908 with_libmemcached="$withval"
21909 fi
21911 else
21913 with_libmemcached="yes"
21915 fi
21917 if test "x$with_libmemcached" = "xyes"
21918 then
21919 SAVE_CPPFLAGS="$CPPFLAGS"
21920 CPPFLAGS="$CPPFLAGS $with_libmemcached_cppflags"
21922 for ac_header in libmemcached/memcached.h
21923 do :
21924 ac_fn_c_check_header_mongrel "$LINENO" "libmemcached/memcached.h" "ac_cv_header_libmemcached_memcached_h" "$ac_includes_default"
21925 if test "x$ac_cv_header_libmemcached_memcached_h" = xyes; then :
21926 cat >>confdefs.h <<_ACEOF
21927 #define HAVE_LIBMEMCACHED_MEMCACHED_H 1
21928 _ACEOF
21929 with_libmemcached="yes"
21930 else
21931 with_libmemcached="no (libmemcached/memcached.h not found)"
21932 fi
21934 done
21937 CPPFLAGS="$SAVE_CPPFLAGS"
21938 fi
21939 if test "x$with_libmemcached" = "xyes"
21940 then
21941 SAVE_CPPFLAGS="$CPPFLAGS"
21942 SAVE_LDFLAGS="$LDFLAGS"
21943 CPPFLAGS="$CPPFLAGS $with_libmemcached_cppflags"
21944 LDFLAGS="$LDFLAGS $with_libmemcached_ldflags"
21946 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for memcached_create in -lmemcached" >&5
21947 $as_echo_n "checking for memcached_create in -lmemcached... " >&6; }
21948 if ${ac_cv_lib_memcached_memcached_create+:} false; then :
21949 $as_echo_n "(cached) " >&6
21950 else
21951 ac_check_lib_save_LIBS=$LIBS
21952 LIBS="-lmemcached $LIBS"
21953 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
21954 /* end confdefs.h. */
21956 /* Override any GCC internal prototype to avoid an error.
21957 Use char because int might match the return type of a GCC
21958 builtin and then its argument prototype would still apply. */
21959 #ifdef __cplusplus
21960 extern "C"
21961 #endif
21962 char memcached_create ();
21963 int
21964 main ()
21965 {
21966 return memcached_create ();
21967 ;
21968 return 0;
21969 }
21970 _ACEOF
21971 if ac_fn_c_try_link "$LINENO"; then :
21972 ac_cv_lib_memcached_memcached_create=yes
21973 else
21974 ac_cv_lib_memcached_memcached_create=no
21975 fi
21976 rm -f core conftest.err conftest.$ac_objext \
21977 conftest$ac_exeext conftest.$ac_ext
21978 LIBS=$ac_check_lib_save_LIBS
21979 fi
21980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_memcached_memcached_create" >&5
21981 $as_echo "$ac_cv_lib_memcached_memcached_create" >&6; }
21982 if test "x$ac_cv_lib_memcached_memcached_create" = xyes; then :
21983 with_libmemcached="yes"
21984 else
21985 with_libmemcached="no (Symbol 'memcached_create' not found)"
21986 fi
21989 CPPFLAGS="$SAVE_CPPFLAGS"
21990 LDFLAGS="$SAVE_LDFLAGS"
21991 fi
21992 if test "x$with_libmemcached" = "xyes"
21993 then
21994 BUILD_WITH_LIBMEMCACHED_CPPFLAGS="$with_libmemcached_cppflags"
21995 BUILD_WITH_LIBMEMCACHED_LDFLAGS="$with_libmemcached_ldflags"
21996 BUILD_WITH_LIBMEMCACHED_LIBS="-lmemcached"
22001 $as_echo "#define HAVE_LIBMEMCACHED 1" >>confdefs.h
22003 fi
22004 if test "x$with_libmemcached" = "xyes"; then
22005 BUILD_WITH_LIBMEMCACHED_TRUE=
22006 BUILD_WITH_LIBMEMCACHED_FALSE='#'
22007 else
22008 BUILD_WITH_LIBMEMCACHED_TRUE='#'
22009 BUILD_WITH_LIBMEMCACHED_FALSE=
22010 fi
22012 # }}}
22014 # --with-libmodbus {{{
22015 with_libmodbus_config=""
22016 with_libmodbus_cflags=""
22017 with_libmodbus_libs=""
22019 # Check whether --with-libmodbus was given.
22020 if test "${with_libmodbus+set}" = set; then :
22021 withval=$with_libmodbus;
22022 if test "x$withval" = "xno"
22023 then
22024 with_libmodbus="no"
22025 else if test "x$withval" = "xyes"
22026 then
22027 with_libmodbus="use_pkgconfig"
22028 else if test -d "$with_libmodbus/lib"
22029 then
22030 { $as_echo "$as_me:${as_lineno-$LINENO}: Not checking for libmodbus: Manually configured" >&5
22031 $as_echo "$as_me: Not checking for libmodbus: Manually configured" >&6;}
22032 with_libmodbus_cflags="-I$withval/include"
22033 with_libmodbus_libs="-L$withval/lib -lmodbus"
22034 with_libmodbus="yes"
22035 fi; fi; fi
22037 else
22038 with_libmodbus="use_pkgconfig"
22039 fi
22042 # configure using pkg-config
22043 if test "x$with_libmodbus" = "xuse_pkgconfig"
22044 then
22045 if test "x$PKG_CONFIG" = "x"
22046 then
22047 with_libmodbus="no (Don't have pkg-config)"
22048 fi
22049 fi
22050 if test "x$with_libmodbus" = "xuse_pkgconfig"
22051 then
22052 { $as_echo "$as_me:${as_lineno-$LINENO}: Checking for libmodbus using $PKG_CONFIG" >&5
22053 $as_echo "$as_me: Checking for libmodbus using $PKG_CONFIG" >&6;}
22054 $PKG_CONFIG --exists 'libmodbus' 2>/dev/null
22055 if test $? -ne 0
22056 then
22057 with_libmodbus="no (pkg-config doesn't know libmodbus)"
22058 fi
22059 fi
22060 if test "x$with_libmodbus" = "xuse_pkgconfig"
22061 then
22062 with_libmodbus_cflags="`$PKG_CONFIG --cflags 'libmodbus'`"
22063 if test $? -ne 0
22064 then
22065 with_libmodbus="no ($PKG_CONFIG failed)"
22066 fi
22067 with_libmodbus_libs="`$PKG_CONFIG --libs 'libmodbus'`"
22068 if test $? -ne 0
22069 then
22070 with_libmodbus="no ($PKG_CONFIG failed)"
22071 fi
22072 fi
22073 if test "x$with_libmodbus" = "xuse_pkgconfig"
22074 then
22075 with_libmodbus="yes"
22076 fi
22078 # with_libmodbus_cflags and with_libmodbus_libs are set up now, let's do
22079 # the actual checks.
22080 if test "x$with_libmodbus" = "xyes"
22081 then
22082 SAVE_CPPFLAGS="$CPPFLAGS"
22083 CPPFLAGS="$CPPFLAGS $with_libmodbus_cflags"
22085 for ac_header in modbus/modbus.h
22086 do :
22087 ac_fn_c_check_header_mongrel "$LINENO" "modbus/modbus.h" "ac_cv_header_modbus_modbus_h" "$ac_includes_default"
22088 if test "x$ac_cv_header_modbus_modbus_h" = xyes; then :
22089 cat >>confdefs.h <<_ACEOF
22090 #define HAVE_MODBUS_MODBUS_H 1
22091 _ACEOF
22093 else
22094 with_libmodbus="no (modbus/modbus.h not found)"
22095 fi
22097 done
22100 CPPFLAGS="$SAVE_CPPFLAGS"
22101 fi
22102 if test "x$with_libmodbus" = "xyes"
22103 then
22104 SAVE_CPPFLAGS="$CPPFLAGS"
22105 SAVE_LDFLAGS="$LDFLAGS"
22107 CPPFLAGS="$CPPFLAGS $with_libmodbus_cflags"
22108 LDFLAGS="$LDFLAGS $with_libmodbus_libs"
22110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for modbus_connect in -lmodbus" >&5
22111 $as_echo_n "checking for modbus_connect in -lmodbus... " >&6; }
22112 if ${ac_cv_lib_modbus_modbus_connect+:} false; then :
22113 $as_echo_n "(cached) " >&6
22114 else
22115 ac_check_lib_save_LIBS=$LIBS
22116 LIBS="-lmodbus $LIBS"
22117 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22118 /* end confdefs.h. */
22120 /* Override any GCC internal prototype to avoid an error.
22121 Use char because int might match the return type of a GCC
22122 builtin and then its argument prototype would still apply. */
22123 #ifdef __cplusplus
22124 extern "C"
22125 #endif
22126 char modbus_connect ();
22127 int
22128 main ()
22129 {
22130 return modbus_connect ();
22131 ;
22132 return 0;
22133 }
22134 _ACEOF
22135 if ac_fn_c_try_link "$LINENO"; then :
22136 ac_cv_lib_modbus_modbus_connect=yes
22137 else
22138 ac_cv_lib_modbus_modbus_connect=no
22139 fi
22140 rm -f core conftest.err conftest.$ac_objext \
22141 conftest$ac_exeext conftest.$ac_ext
22142 LIBS=$ac_check_lib_save_LIBS
22143 fi
22144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_modbus_modbus_connect" >&5
22145 $as_echo "$ac_cv_lib_modbus_modbus_connect" >&6; }
22146 if test "x$ac_cv_lib_modbus_modbus_connect" = xyes; then :
22147 with_libmodbus="yes"
22148 else
22149 with_libmodbus="no (symbol modbus_connect not found)"
22150 fi
22153 CPPFLAGS="$SAVE_CPPFLAGS"
22154 LDFLAGS="$SAVE_LDFLAGS"
22155 fi
22156 if test "x$with_libmodbus" = "xyes"
22157 then
22158 BUILD_WITH_LIBMODBUS_CFLAGS="$with_libmodbus_cflags"
22159 BUILD_WITH_LIBMODBUS_LIBS="$with_libmodbus_libs"
22162 fi
22163 # }}}
22165 # --with-libmongoc {{{
22167 # Check whether --with-libmongoc was given.
22168 if test "${with_libmongoc+set}" = set; then :
22169 withval=$with_libmongoc;
22170 if test "x$withval" = "xyes"
22171 then
22172 with_libmongoc="yes"
22173 else if test "x$withval" = "xno"
22174 then
22175 with_libmongoc="no"
22176 else
22177 with_libmongoc="yes"
22178 LIBMONGOC_CPPFLAGS="$LIBMONGOC_CPPFLAGS -I$withval/include"
22179 LIBMONGOC_LDFLAGS="$LIBMONGOC_LDFLAGS -L$withval/lib"
22180 fi; fi
22182 else
22183 with_libmongoc="yes"
22184 fi
22187 SAVE_CPPFLAGS="$CPPFLAGS"
22188 SAVE_LDFLAGS="$LDFLAGS"
22190 CPPFLAGS="$CPPFLAGS $LIBMONGOC_CPPFLAGS"
22191 LDFLAGS="$LDFLAGS $LIBMONGOC_LDFLAGS"
22193 if test "x$with_libmongoc" = "xyes"
22194 then
22195 if test "x$LIBMONGOC_CPPFLAGS" != "x"
22196 then
22197 { $as_echo "$as_me:${as_lineno-$LINENO}: libmongoc CPPFLAGS: $LIBMONGOC_CPPFLAGS" >&5
22198 $as_echo "$as_me: libmongoc CPPFLAGS: $LIBMONGOC_CPPFLAGS" >&6;}
22199 fi
22200 for ac_header in mongo.h
22201 do :
22202 ac_fn_c_check_header_compile "$LINENO" "mongo.h" "ac_cv_header_mongo_h" "#if HAVE_STDINT_H
22203 # define MONGO_HAVE_STDINT 1
22204 #else
22205 # define MONGO_USE_LONG_LONG_INT 1
22206 #endif
22208 "
22209 if test "x$ac_cv_header_mongo_h" = xyes; then :
22210 cat >>confdefs.h <<_ACEOF
22211 #define HAVE_MONGO_H 1
22212 _ACEOF
22213 with_libmongoc="yes"
22214 else
22215 with_libmongoc="no ('mongo.h' not found)"
22216 fi
22218 done
22220 fi
22221 if test "x$with_libmongoc" = "xyes"
22222 then
22223 if test "x$LIBMONGOC_LDFLAGS" != "x"
22224 then
22225 { $as_echo "$as_me:${as_lineno-$LINENO}: libmongoc LDFLAGS: $LIBMONGOC_LDFLAGS" >&5
22226 $as_echo "$as_me: libmongoc LDFLAGS: $LIBMONGOC_LDFLAGS" >&6;}
22227 fi
22228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mongo_run_command in -lmongoc" >&5
22229 $as_echo_n "checking for mongo_run_command in -lmongoc... " >&6; }
22230 if ${ac_cv_lib_mongoc_mongo_run_command+:} false; then :
22231 $as_echo_n "(cached) " >&6
22232 else
22233 ac_check_lib_save_LIBS=$LIBS
22234 LIBS="-lmongoc $LIBS"
22235 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22236 /* end confdefs.h. */
22238 /* Override any GCC internal prototype to avoid an error.
22239 Use char because int might match the return type of a GCC
22240 builtin and then its argument prototype would still apply. */
22241 #ifdef __cplusplus
22242 extern "C"
22243 #endif
22244 char mongo_run_command ();
22245 int
22246 main ()
22247 {
22248 return mongo_run_command ();
22249 ;
22250 return 0;
22251 }
22252 _ACEOF
22253 if ac_fn_c_try_link "$LINENO"; then :
22254 ac_cv_lib_mongoc_mongo_run_command=yes
22255 else
22256 ac_cv_lib_mongoc_mongo_run_command=no
22257 fi
22258 rm -f core conftest.err conftest.$ac_objext \
22259 conftest$ac_exeext conftest.$ac_ext
22260 LIBS=$ac_check_lib_save_LIBS
22261 fi
22262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mongoc_mongo_run_command" >&5
22263 $as_echo "$ac_cv_lib_mongoc_mongo_run_command" >&6; }
22264 if test "x$ac_cv_lib_mongoc_mongo_run_command" = xyes; then :
22265 with_libmongoc="yes"
22266 else
22267 with_libmongoc="no (symbol 'mongo_run_command' not found)"
22268 fi
22270 fi
22272 CPPFLAGS="$SAVE_CPPFLAGS"
22273 LDFLAGS="$SAVE_LDFLAGS"
22275 if test "x$with_libmongoc" = "xyes"
22276 then
22277 BUILD_WITH_LIBMONGOC_CPPFLAGS="$LIBMONGOC_CPPFLAGS"
22278 BUILD_WITH_LIBMONGOC_LDFLAGS="$LIBMONGOC_LDFLAGS"
22281 fi
22282 if test "x$with_libmongoc" = "xyes"; then
22283 BUILD_WITH_LIBMONGOC_TRUE=
22284 BUILD_WITH_LIBMONGOC_FALSE='#'
22285 else
22286 BUILD_WITH_LIBMONGOC_TRUE='#'
22287 BUILD_WITH_LIBMONGOC_FALSE=
22288 fi
22290 # }}}
22292 # --with-libmysql {{{
22293 with_mysql_config="mysql_config"
22294 with_mysql_cflags=""
22295 with_mysql_libs=""
22297 # Check whether --with-libmysql was given.
22298 if test "${with_libmysql+set}" = set; then :
22299 withval=$with_libmysql;
22300 if test "x$withval" = "xno"
22301 then
22302 with_libmysql="no"
22303 else if test "x$withval" = "xyes"
22304 then
22305 with_libmysql="yes"
22306 else
22307 if test -f "$withval" && test -x "$withval";
22308 then
22309 with_mysql_config="$withval"
22310 else if test -x "$withval/bin/mysql_config"
22311 then
22312 with_mysql_config="$withval/bin/mysql_config"
22313 fi; fi
22314 with_libmysql="yes"
22315 fi; fi
22317 else
22319 with_libmysql="yes"
22321 fi
22323 if test "x$with_libmysql" = "xyes"
22324 then
22325 with_mysql_cflags=`$with_mysql_config --cflags 2>/dev/null`
22326 mysql_config_status=$?
22328 if test $mysql_config_status -ne 0
22329 then
22330 with_libmysql="no ($with_mysql_config failed)"
22331 else
22332 SAVE_CPPFLAGS="$CPPFLAGS"
22333 CPPFLAGS="$CPPFLAGS $with_mysql_cflags"
22335 have_mysql_h="no"
22336 have_mysql_mysql_h="no"
22337 for ac_header in mysql.h
22338 do :
22339 ac_fn_c_check_header_mongrel "$LINENO" "mysql.h" "ac_cv_header_mysql_h" "$ac_includes_default"
22340 if test "x$ac_cv_header_mysql_h" = xyes; then :
22341 cat >>confdefs.h <<_ACEOF
22342 #define HAVE_MYSQL_H 1
22343 _ACEOF
22344 have_mysql_h="yes"
22345 fi
22347 done
22350 if test "x$have_mysql_h" = "xno"
22351 then
22352 for ac_header in mysql/mysql.h
22353 do :
22354 ac_fn_c_check_header_mongrel "$LINENO" "mysql/mysql.h" "ac_cv_header_mysql_mysql_h" "$ac_includes_default"
22355 if test "x$ac_cv_header_mysql_mysql_h" = xyes; then :
22356 cat >>confdefs.h <<_ACEOF
22357 #define HAVE_MYSQL_MYSQL_H 1
22358 _ACEOF
22359 have_mysql_mysql_h="yes"
22360 fi
22362 done
22364 fi
22366 if test "x$have_mysql_h$have_mysql_mysql_h" = "xnono"
22367 then
22368 with_libmysql="no (mysql.h not found)"
22369 fi
22371 CPPFLAGS="$SAVE_CPPFLAGS"
22372 fi
22373 fi
22374 if test "x$with_libmysql" = "xyes"
22375 then
22376 with_mysql_libs=`$with_mysql_config --libs_r 2>/dev/null`
22377 mysql_config_status=$?
22379 if test $mysql_config_status -ne 0
22380 then
22381 with_libmysql="no ($with_mysql_config failed)"
22382 else
22383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_init in -lmysqlclient" >&5
22384 $as_echo_n "checking for mysql_init in -lmysqlclient... " >&6; }
22385 if ${ac_cv_lib_mysqlclient_mysql_init+:} false; then :
22386 $as_echo_n "(cached) " >&6
22387 else
22388 ac_check_lib_save_LIBS=$LIBS
22389 LIBS="-lmysqlclient $with_mysql_libs $LIBS"
22390 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22391 /* end confdefs.h. */
22393 /* Override any GCC internal prototype to avoid an error.
22394 Use char because int might match the return type of a GCC
22395 builtin and then its argument prototype would still apply. */
22396 #ifdef __cplusplus
22397 extern "C"
22398 #endif
22399 char mysql_init ();
22400 int
22401 main ()
22402 {
22403 return mysql_init ();
22404 ;
22405 return 0;
22406 }
22407 _ACEOF
22408 if ac_fn_c_try_link "$LINENO"; then :
22409 ac_cv_lib_mysqlclient_mysql_init=yes
22410 else
22411 ac_cv_lib_mysqlclient_mysql_init=no
22412 fi
22413 rm -f core conftest.err conftest.$ac_objext \
22414 conftest$ac_exeext conftest.$ac_ext
22415 LIBS=$ac_check_lib_save_LIBS
22416 fi
22417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_mysql_init" >&5
22418 $as_echo "$ac_cv_lib_mysqlclient_mysql_init" >&6; }
22419 if test "x$ac_cv_lib_mysqlclient_mysql_init" = xyes; then :
22420 with_libmysql="yes"
22421 else
22422 with_libmysql="no (symbol 'mysql_init' not found)"
22423 fi
22426 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mysql_get_server_version in -lmysqlclient" >&5
22427 $as_echo_n "checking for mysql_get_server_version in -lmysqlclient... " >&6; }
22428 if ${ac_cv_lib_mysqlclient_mysql_get_server_version+:} false; then :
22429 $as_echo_n "(cached) " >&6
22430 else
22431 ac_check_lib_save_LIBS=$LIBS
22432 LIBS="-lmysqlclient $with_mysql_libs $LIBS"
22433 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22434 /* end confdefs.h. */
22436 /* Override any GCC internal prototype to avoid an error.
22437 Use char because int might match the return type of a GCC
22438 builtin and then its argument prototype would still apply. */
22439 #ifdef __cplusplus
22440 extern "C"
22441 #endif
22442 char mysql_get_server_version ();
22443 int
22444 main ()
22445 {
22446 return mysql_get_server_version ();
22447 ;
22448 return 0;
22449 }
22450 _ACEOF
22451 if ac_fn_c_try_link "$LINENO"; then :
22452 ac_cv_lib_mysqlclient_mysql_get_server_version=yes
22453 else
22454 ac_cv_lib_mysqlclient_mysql_get_server_version=no
22455 fi
22456 rm -f core conftest.err conftest.$ac_objext \
22457 conftest$ac_exeext conftest.$ac_ext
22458 LIBS=$ac_check_lib_save_LIBS
22459 fi
22460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mysqlclient_mysql_get_server_version" >&5
22461 $as_echo "$ac_cv_lib_mysqlclient_mysql_get_server_version" >&6; }
22462 if test "x$ac_cv_lib_mysqlclient_mysql_get_server_version" = xyes; then :
22463 with_libmysql="yes"
22464 else
22465 with_libmysql="no (symbol 'mysql_get_server_version' not found)"
22466 fi
22468 fi
22469 fi
22470 if test "x$with_libmysql" = "xyes"
22471 then
22472 BUILD_WITH_LIBMYSQL_CFLAGS="$with_mysql_cflags"
22473 BUILD_WITH_LIBMYSQL_LIBS="$with_mysql_libs"
22476 fi
22477 if test "x$with_libmysql" = "xyes"; then
22478 BUILD_WITH_LIBMYSQL_TRUE=
22479 BUILD_WITH_LIBMYSQL_FALSE='#'
22480 else
22481 BUILD_WITH_LIBMYSQL_TRUE='#'
22482 BUILD_WITH_LIBMYSQL_FALSE=
22483 fi
22485 # }}}
22487 # --with-libmnl {{{
22488 with_libmnl_cflags=""
22489 with_libmnl_libs=""
22491 # Check whether --with-libmnl was given.
22492 if test "${with_libmnl+set}" = set; then :
22493 withval=$with_libmnl;
22494 echo "libmnl: withval = $withval"
22495 if test "x$withval" = "xyes"
22496 then
22497 with_libmnl="yes"
22498 else if test "x$withval" = "xno"
22499 then
22500 with_libmnl="no"
22501 else
22502 if test -d "$withval/include"
22503 then
22504 with_libmnl_cflags="-I$withval/include"
22505 with_libmnl_libs="-L$withval/lib -lmnl"
22506 with_libmnl="yes"
22507 else
22508 as_fn_error $? "\"no such directory: $withval/include\"" "$LINENO" 5
22509 fi
22510 fi; fi
22512 else
22514 if test "x$ac_system" = "xLinux"
22515 then
22516 with_libmnl="yes"
22517 else
22518 with_libmnl="no (Linux only library)"
22519 fi
22521 fi
22523 if test "x$PKG_CONFIG" = "x"
22524 then
22525 with_libmnl="no (Don't have pkg-config)"
22526 fi
22527 if test "x$with_libmnl" = "xyes"
22528 then
22529 if $PKG_CONFIG --exists libmnl 2>/dev/null; then
22530 with_libmnl_cflags="$with_libmnl_ldflags `$PKG_CONFIG --cflags libmnl`"
22531 with_libmnl_libs="$with_libmnl_libs `$PKG_CONFIG --libs libmnl`"
22532 fi
22534 for ac_header in libmnl.h libmnl/libmnl.h
22535 do :
22536 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22537 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <stdio.h>
22538 #include <sys/types.h>
22539 #include <asm/types.h>
22540 #include <sys/socket.h>
22541 #include <linux/netlink.h>
22542 #include <linux/rtnetlink.h>
22543 "
22544 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22545 cat >>confdefs.h <<_ACEOF
22546 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22547 _ACEOF
22549 with_libmnl="yes"
22550 break
22552 fi
22554 done
22556 for ac_header in linux/gen_stats.h linux/pkt_sched.h
22557 do :
22558 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
22559 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "#include <stdio.h>
22560 #include <sys/types.h>
22561 #include <asm/types.h>
22562 #include <sys/socket.h>
22563 "
22564 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
22565 cat >>confdefs.h <<_ACEOF
22566 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
22567 _ACEOF
22569 fi
22571 done
22574 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22575 /* end confdefs.h. */
22577 #include <stdio.h>
22578 #include <sys/types.h>
22579 #include <asm/types.h>
22580 #include <sys/socket.h>
22581 #include <linux/netlink.h>
22582 #include <linux/rtnetlink.h>
22584 int
22585 main ()
22586 {
22588 int retval = TCA_STATS2;
22589 return (retval);
22592 ;
22593 return 0;
22594 }
22595 _ACEOF
22596 if ac_fn_c_try_compile "$LINENO"; then :
22598 $as_echo "#define HAVE_TCA_STATS2 1" >>confdefs.h
22600 fi
22601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22603 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22604 /* end confdefs.h. */
22606 #include <stdio.h>
22607 #include <sys/types.h>
22608 #include <asm/types.h>
22609 #include <sys/socket.h>
22610 #include <linux/netlink.h>
22611 #include <linux/rtnetlink.h>
22613 int
22614 main ()
22615 {
22617 int retval = TCA_STATS;
22618 return (retval);
22621 ;
22622 return 0;
22623 }
22624 _ACEOF
22625 if ac_fn_c_try_compile "$LINENO"; then :
22627 $as_echo "#define HAVE_TCA_STATS 1" >>confdefs.h
22629 fi
22630 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
22631 fi
22632 if test "x$with_libmnl" = "xyes"
22633 then
22634 ac_fn_c_check_member "$LINENO" "struct rtnl_link_stats64" "tx_window_errors" "ac_cv_member_struct_rtnl_link_stats64_tx_window_errors" "
22635 #include <linux/if_link.h>
22637 "
22638 if test "x$ac_cv_member_struct_rtnl_link_stats64_tx_window_errors" = xyes; then :
22640 cat >>confdefs.h <<_ACEOF
22641 #define HAVE_STRUCT_RTNL_LINK_STATS64_TX_WINDOW_ERRORS 1
22642 _ACEOF
22645 $as_echo "#define HAVE_RTNL_LINK_STATS64 1" >>confdefs.h
22647 fi
22649 fi
22650 if test "x$with_libmnl" = "xyes"
22651 then
22652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for mnl_nlmsg_get_payload in -lmnl" >&5
22653 $as_echo_n "checking for mnl_nlmsg_get_payload in -lmnl... " >&6; }
22654 if ${ac_cv_lib_mnl_mnl_nlmsg_get_payload+:} false; then :
22655 $as_echo_n "(cached) " >&6
22656 else
22657 ac_check_lib_save_LIBS=$LIBS
22658 LIBS="-lmnl $with_libmnl_libs $LIBS"
22659 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22660 /* end confdefs.h. */
22662 /* Override any GCC internal prototype to avoid an error.
22663 Use char because int might match the return type of a GCC
22664 builtin and then its argument prototype would still apply. */
22665 #ifdef __cplusplus
22666 extern "C"
22667 #endif
22668 char mnl_nlmsg_get_payload ();
22669 int
22670 main ()
22671 {
22672 return mnl_nlmsg_get_payload ();
22673 ;
22674 return 0;
22675 }
22676 _ACEOF
22677 if ac_fn_c_try_link "$LINENO"; then :
22678 ac_cv_lib_mnl_mnl_nlmsg_get_payload=yes
22679 else
22680 ac_cv_lib_mnl_mnl_nlmsg_get_payload=no
22681 fi
22682 rm -f core conftest.err conftest.$ac_objext \
22683 conftest$ac_exeext conftest.$ac_ext
22684 LIBS=$ac_check_lib_save_LIBS
22685 fi
22686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_mnl_mnl_nlmsg_get_payload" >&5
22687 $as_echo "$ac_cv_lib_mnl_mnl_nlmsg_get_payload" >&6; }
22688 if test "x$ac_cv_lib_mnl_mnl_nlmsg_get_payload" = xyes; then :
22689 with_libmnl="yes"
22690 else
22691 with_libmnl="no (symbol 'mnl_nlmsg_get_payload' not found)"
22692 fi
22694 fi
22695 if test "x$with_libmnl" = "xyes"
22696 then
22698 $as_echo "#define HAVE_LIBMNL 1" >>confdefs.h
22700 BUILD_WITH_LIBMNL_CFLAGS="$with_libmnl_cflags"
22701 BUILD_WITH_LIBMNL_LIBS="$with_libmnl_libs"
22704 fi
22705 if test "x$with_libmnl" = "xyes"; then
22706 BUILD_WITH_LIBMNL_TRUE=
22707 BUILD_WITH_LIBMNL_FALSE='#'
22708 else
22709 BUILD_WITH_LIBMNL_TRUE='#'
22710 BUILD_WITH_LIBMNL_FALSE=
22711 fi
22713 # }}}
22715 # --with-libnetapp {{{
22719 LIBNETAPP_CPPFLAGS="$LIBNETAPP_CPPFLAGS"
22720 LIBNETAPP_LDFLAGS="$LIBNETAPP_LDFLAGS"
22721 LIBNETAPP_LIBS="$LIBNETAPP_LIBS"
22723 # Check whether --with-libnetapp was given.
22724 if test "${with_libnetapp+set}" = set; then :
22725 withval=$with_libnetapp;
22726 if test -d "$withval"
22727 then
22728 LIBNETAPP_CPPFLAGS="$LIBNETAPP_CPPFLAGS -I$withval/include"
22729 LIBNETAPP_LDFLAGS="$LIBNETAPP_LDFLAGS -L$withval/lib"
22730 with_libnetapp="yes"
22731 else
22732 with_libnetapp="$withval"
22733 fi
22735 else
22737 with_libnetapp="yes"
22739 fi
22742 SAVE_CPPFLAGS="$CPPFLAGS"
22743 SAVE_LDFLAGS="$LDFLAGS"
22744 CPPFLAGS="$CPPFLAGS $LIBNETAPP_CPPFLAGS"
22745 LDFLAGS="$LDFLAGS $LIBNETAPP_LDFLAGS"
22747 if test "x$with_libnetapp" = "xyes"
22748 then
22749 if test "x$LIBNETAPP_CPPFLAGS" != "x"
22750 then
22751 { $as_echo "$as_me:${as_lineno-$LINENO}: netapp CPPFLAGS: $LIBNETAPP_CPPFLAGS" >&5
22752 $as_echo "$as_me: netapp CPPFLAGS: $LIBNETAPP_CPPFLAGS" >&6;}
22753 fi
22754 for ac_header in netapp_api.h
22755 do :
22756 ac_fn_c_check_header_mongrel "$LINENO" "netapp_api.h" "ac_cv_header_netapp_api_h" "$ac_includes_default"
22757 if test "x$ac_cv_header_netapp_api_h" = xyes; then :
22758 cat >>confdefs.h <<_ACEOF
22759 #define HAVE_NETAPP_API_H 1
22760 _ACEOF
22761 with_libnetapp="yes"
22762 else
22763 with_libnetapp="no (netapp_api.h not found)"
22764 fi
22766 done
22768 fi
22770 if test "x$with_libnetapp" = "xyes"
22771 then
22772 if test "x$LIBNETAPP_LDFLAGS" != "x"
22773 then
22774 { $as_echo "$as_me:${as_lineno-$LINENO}: netapp LDFLAGS: $LIBNETAPP_LDFLAGS" >&5
22775 $as_echo "$as_me: netapp LDFLAGS: $LIBNETAPP_LDFLAGS" >&6;}
22776 fi
22778 if test "x$LIBNETAPP_LIBS" = "x"
22779 then
22780 LIBNETAPP_LIBS="-lpthread -lxml -ladt -lssl -lm -lcrypto -lz"
22781 fi
22782 { $as_echo "$as_me:${as_lineno-$LINENO}: netapp LIBS: $LIBNETAPP_LIBS" >&5
22783 $as_echo "$as_me: netapp LIBS: $LIBNETAPP_LIBS" >&6;}
22785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for na_server_invoke_elem in -lnetapp" >&5
22786 $as_echo_n "checking for na_server_invoke_elem in -lnetapp... " >&6; }
22787 if ${ac_cv_lib_netapp_na_server_invoke_elem+:} false; then :
22788 $as_echo_n "(cached) " >&6
22789 else
22790 ac_check_lib_save_LIBS=$LIBS
22791 LIBS="-lnetapp $LIBNETAPP_LIBS $LIBS"
22792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22793 /* end confdefs.h. */
22795 /* Override any GCC internal prototype to avoid an error.
22796 Use char because int might match the return type of a GCC
22797 builtin and then its argument prototype would still apply. */
22798 #ifdef __cplusplus
22799 extern "C"
22800 #endif
22801 char na_server_invoke_elem ();
22802 int
22803 main ()
22804 {
22805 return na_server_invoke_elem ();
22806 ;
22807 return 0;
22808 }
22809 _ACEOF
22810 if ac_fn_c_try_link "$LINENO"; then :
22811 ac_cv_lib_netapp_na_server_invoke_elem=yes
22812 else
22813 ac_cv_lib_netapp_na_server_invoke_elem=no
22814 fi
22815 rm -f core conftest.err conftest.$ac_objext \
22816 conftest$ac_exeext conftest.$ac_ext
22817 LIBS=$ac_check_lib_save_LIBS
22818 fi
22819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_netapp_na_server_invoke_elem" >&5
22820 $as_echo "$ac_cv_lib_netapp_na_server_invoke_elem" >&6; }
22821 if test "x$ac_cv_lib_netapp_na_server_invoke_elem" = xyes; then :
22822 with_libnetapp="yes"
22823 else
22824 with_libnetapp="no (symbol na_server_invoke_elem not found)"
22825 fi
22827 LIBNETAPP_LIBS="-lnetapp $LIBNETAPP_LIBS"
22828 fi
22830 CPPFLAGS="$SAVE_CPPFLAGS"
22831 LDFLAGS="$SAVE_LDFLAGS"
22833 if test "x$with_libnetapp" = "xyes"
22834 then
22836 $as_echo "#define HAVE_LIBNETAPP 1" >>confdefs.h
22838 fi
22843 if test "x$with_libnetapp" = "xyes"; then
22844 BUILD_WITH_LIBNETAPP_TRUE=
22845 BUILD_WITH_LIBNETAPP_FALSE='#'
22846 else
22847 BUILD_WITH_LIBNETAPP_TRUE='#'
22848 BUILD_WITH_LIBNETAPP_FALSE=
22849 fi
22851 # }}}
22853 # --with-libnetsnmp {{{
22854 with_snmp_config="net-snmp-config"
22855 with_snmp_cflags=""
22856 with_snmp_libs=""
22858 # Check whether --with-libnetsnmp was given.
22859 if test "${with_libnetsnmp+set}" = set; then :
22860 withval=$with_libnetsnmp;
22861 if test "x$withval" = "xno"
22862 then
22863 with_libnetsnmp="no"
22864 else if test "x$withval" = "xyes"
22865 then
22866 with_libnetsnmp="yes"
22867 else
22868 if test -x "$withval"
22869 then
22870 with_snmp_config="$withval"
22871 with_libnetsnmp="yes"
22872 else
22873 with_snmp_config="$withval/bin/net-snmp-config"
22874 with_libnetsnmp="yes"
22875 fi
22876 fi; fi
22878 else
22879 with_libnetsnmp="yes"
22880 fi
22882 if test "x$with_libnetsnmp" = "xyes"
22883 then
22884 with_snmp_cflags=`$with_snmp_config --cflags 2>/dev/null`
22885 snmp_config_status=$?
22887 if test $snmp_config_status -ne 0
22888 then
22889 with_libnetsnmp="no ($with_snmp_config failed)"
22890 else
22891 SAVE_CPPFLAGS="$CPPFLAGS"
22892 CPPFLAGS="$CPPFLAGS $with_snmp_cflags"
22894 for ac_header in net-snmp/net-snmp-config.h
22895 do :
22896 ac_fn_c_check_header_mongrel "$LINENO" "net-snmp/net-snmp-config.h" "ac_cv_header_net_snmp_net_snmp_config_h" "$ac_includes_default"
22897 if test "x$ac_cv_header_net_snmp_net_snmp_config_h" = xyes; then :
22898 cat >>confdefs.h <<_ACEOF
22899 #define HAVE_NET_SNMP_NET_SNMP_CONFIG_H 1
22900 _ACEOF
22902 else
22903 with_libnetsnmp="no (net-snmp/net-snmp-config.h not found)"
22904 fi
22906 done
22909 CPPFLAGS="$SAVE_CPPFLAGS"
22910 fi
22911 fi
22912 if test "x$with_libnetsnmp" = "xyes"
22913 then
22914 with_snmp_libs=`$with_snmp_config --libs 2>/dev/null`
22915 snmp_config_status=$?
22917 if test $snmp_config_status -ne 0
22918 then
22919 with_libnetsnmp="no ($with_snmp_config failed)"
22920 else
22921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for init_snmp in -lnetsnmp" >&5
22922 $as_echo_n "checking for init_snmp in -lnetsnmp... " >&6; }
22923 if ${ac_cv_lib_netsnmp_init_snmp+:} false; then :
22924 $as_echo_n "(cached) " >&6
22925 else
22926 ac_check_lib_save_LIBS=$LIBS
22927 LIBS="-lnetsnmp $with_snmp_libs $LIBS"
22928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
22929 /* end confdefs.h. */
22931 /* Override any GCC internal prototype to avoid an error.
22932 Use char because int might match the return type of a GCC
22933 builtin and then its argument prototype would still apply. */
22934 #ifdef __cplusplus
22935 extern "C"
22936 #endif
22937 char init_snmp ();
22938 int
22939 main ()
22940 {
22941 return init_snmp ();
22942 ;
22943 return 0;
22944 }
22945 _ACEOF
22946 if ac_fn_c_try_link "$LINENO"; then :
22947 ac_cv_lib_netsnmp_init_snmp=yes
22948 else
22949 ac_cv_lib_netsnmp_init_snmp=no
22950 fi
22951 rm -f core conftest.err conftest.$ac_objext \
22952 conftest$ac_exeext conftest.$ac_ext
22953 LIBS=$ac_check_lib_save_LIBS
22954 fi
22955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_netsnmp_init_snmp" >&5
22956 $as_echo "$ac_cv_lib_netsnmp_init_snmp" >&6; }
22957 if test "x$ac_cv_lib_netsnmp_init_snmp" = xyes; then :
22958 with_libnetsnmp="yes"
22959 else
22960 with_libnetsnmp="no (libnetsnmp not found)"
22961 fi
22963 fi
22964 fi
22965 if test "x$with_libnetsnmp" = "xyes"
22966 then
22967 BUILD_WITH_LIBSNMP_CFLAGS="$with_snmp_cflags"
22968 BUILD_WITH_LIBSNMP_LIBS="$with_snmp_libs"
22971 fi
22972 if test "x$with_libnetsnmp" = "xyes"; then
22973 BUILD_WITH_LIBNETSNMP_TRUE=
22974 BUILD_WITH_LIBNETSNMP_FALSE='#'
22975 else
22976 BUILD_WITH_LIBNETSNMP_TRUE='#'
22977 BUILD_WITH_LIBNETSNMP_FALSE=
22978 fi
22980 # }}}
22982 # --with-liboconfig {{{
22983 with_own_liboconfig="no"
22984 liboconfig_LDFLAGS="$LDFLAGS"
22985 liboconfig_CPPFLAGS="$CPPFLAGS"
22987 # Check whether --with-liboconfig was given.
22988 if test "${with_liboconfig+set}" = set; then :
22989 withval=$with_liboconfig;
22990 if test "x$withval" != "xno" && test "x$withval" != "xyes"
22991 then
22992 if test -d "$withval/lib"
22993 then
22994 liboconfig_LDFLAGS="$LDFLAGS -L$withval/lib"
22995 fi
22996 if test -d "$withval/include"
22997 then
22998 liboconfig_CPPFLAGS="$CPPFLAGS -I$withval/include"
22999 fi
23000 fi
23001 if test "x$withval" = "xno"
23002 then
23003 as_fn_error $? "\"liboconfig is required\"" "$LINENO" 5
23004 fi
23006 else
23008 with_liboconfig="yes"
23010 fi
23013 save_LDFLAGS="$LDFLAGS"
23014 save_CPPFLAGS="$CPPFLAGS"
23015 LDFLAGS="$liboconfig_LDFLAGS"
23016 CPPFLAGS="$liboconfig_CPPFLAGS"
23017 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for oconfig_parse_fh in -loconfig" >&5
23018 $as_echo_n "checking for oconfig_parse_fh in -loconfig... " >&6; }
23019 if ${ac_cv_lib_oconfig_oconfig_parse_fh+:} false; then :
23020 $as_echo_n "(cached) " >&6
23021 else
23022 ac_check_lib_save_LIBS=$LIBS
23023 LIBS="-loconfig $LIBS"
23024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23025 /* end confdefs.h. */
23027 /* Override any GCC internal prototype to avoid an error.
23028 Use char because int might match the return type of a GCC
23029 builtin and then its argument prototype would still apply. */
23030 #ifdef __cplusplus
23031 extern "C"
23032 #endif
23033 char oconfig_parse_fh ();
23034 int
23035 main ()
23036 {
23037 return oconfig_parse_fh ();
23038 ;
23039 return 0;
23040 }
23041 _ACEOF
23042 if ac_fn_c_try_link "$LINENO"; then :
23043 ac_cv_lib_oconfig_oconfig_parse_fh=yes
23044 else
23045 ac_cv_lib_oconfig_oconfig_parse_fh=no
23046 fi
23047 rm -f core conftest.err conftest.$ac_objext \
23048 conftest$ac_exeext conftest.$ac_ext
23049 LIBS=$ac_check_lib_save_LIBS
23050 fi
23051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_oconfig_oconfig_parse_fh" >&5
23052 $as_echo "$ac_cv_lib_oconfig_oconfig_parse_fh" >&6; }
23053 if test "x$ac_cv_lib_oconfig_oconfig_parse_fh" = xyes; then :
23055 with_liboconfig="yes"
23056 with_own_liboconfig="no"
23058 else
23060 with_liboconfig="yes"
23061 with_own_liboconfig="yes"
23062 LDFLAGS="$save_LDFLAGS"
23063 CPPFLAGS="$save_CPPFLAGS"
23065 fi
23068 if test "x$with_own_liboconfig" = "xyes"; then
23069 BUILD_WITH_OWN_LIBOCONFIG_TRUE=
23070 BUILD_WITH_OWN_LIBOCONFIG_FALSE='#'
23071 else
23072 BUILD_WITH_OWN_LIBOCONFIG_TRUE='#'
23073 BUILD_WITH_OWN_LIBOCONFIG_FALSE=
23074 fi
23076 if test "x$with_own_liboconfig" = "xyes"
23077 then
23078 with_liboconfig="yes (shipped version)"
23079 fi
23080 # }}}
23082 # --with-liboping {{{
23084 # Check whether --with-liboping was given.
23085 if test "${with_liboping+set}" = set; then :
23086 withval=$with_liboping;
23087 if test "x$withval" = "xyes"
23088 then
23089 with_liboping="yes"
23090 else if test "x$withval" = "xno"
23091 then
23092 with_liboping="no"
23093 else
23094 with_liboping="yes"
23095 LIBOPING_CPPFLAGS="$LIBOPING_CPPFLAGS -I$withval/include"
23096 LIBOPING_LDFLAGS="$LIBOPING_LDFLAGS -L$withval/lib"
23097 fi; fi
23099 else
23100 with_liboping="yes"
23101 fi
23104 SAVE_CPPFLAGS="$CPPFLAGS"
23105 SAVE_LDFLAGS="$LDFLAGS"
23107 CPPFLAGS="$CPPFLAGS $LIBOPING_CPPFLAGS"
23108 LDFLAGS="$LDFLAGS $LIBOPING_LDFLAGS"
23110 if test "x$with_liboping" = "xyes"
23111 then
23112 if test "x$LIBOPING_CPPFLAGS" != "x"
23113 then
23114 { $as_echo "$as_me:${as_lineno-$LINENO}: liboping CPPFLAGS: $LIBOPING_CPPFLAGS" >&5
23115 $as_echo "$as_me: liboping CPPFLAGS: $LIBOPING_CPPFLAGS" >&6;}
23116 fi
23117 for ac_header in oping.h
23118 do :
23119 ac_fn_c_check_header_mongrel "$LINENO" "oping.h" "ac_cv_header_oping_h" "$ac_includes_default"
23120 if test "x$ac_cv_header_oping_h" = xyes; then :
23121 cat >>confdefs.h <<_ACEOF
23122 #define HAVE_OPING_H 1
23123 _ACEOF
23124 with_liboping="yes"
23125 else
23126 with_liboping="no (oping.h not found)"
23127 fi
23129 done
23131 fi
23132 if test "x$with_liboping" = "xyes"
23133 then
23134 if test "x$LIBOPING_LDFLAGS" != "x"
23135 then
23136 { $as_echo "$as_me:${as_lineno-$LINENO}: liboping LDFLAGS: $LIBOPING_LDFLAGS" >&5
23137 $as_echo "$as_me: liboping LDFLAGS: $LIBOPING_LDFLAGS" >&6;}
23138 fi
23139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ping_construct in -loping" >&5
23140 $as_echo_n "checking for ping_construct in -loping... " >&6; }
23141 if ${ac_cv_lib_oping_ping_construct+:} false; then :
23142 $as_echo_n "(cached) " >&6
23143 else
23144 ac_check_lib_save_LIBS=$LIBS
23145 LIBS="-loping $LIBS"
23146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23147 /* end confdefs.h. */
23149 /* Override any GCC internal prototype to avoid an error.
23150 Use char because int might match the return type of a GCC
23151 builtin and then its argument prototype would still apply. */
23152 #ifdef __cplusplus
23153 extern "C"
23154 #endif
23155 char ping_construct ();
23156 int
23157 main ()
23158 {
23159 return ping_construct ();
23160 ;
23161 return 0;
23162 }
23163 _ACEOF
23164 if ac_fn_c_try_link "$LINENO"; then :
23165 ac_cv_lib_oping_ping_construct=yes
23166 else
23167 ac_cv_lib_oping_ping_construct=no
23168 fi
23169 rm -f core conftest.err conftest.$ac_objext \
23170 conftest$ac_exeext conftest.$ac_ext
23171 LIBS=$ac_check_lib_save_LIBS
23172 fi
23173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_oping_ping_construct" >&5
23174 $as_echo "$ac_cv_lib_oping_ping_construct" >&6; }
23175 if test "x$ac_cv_lib_oping_ping_construct" = xyes; then :
23176 with_liboping="yes"
23177 else
23178 with_liboping="no (symbol 'ping_construct' not found)"
23179 fi
23181 fi
23183 CPPFLAGS="$SAVE_CPPFLAGS"
23184 LDFLAGS="$SAVE_LDFLAGS"
23186 if test "x$with_liboping" = "xyes"
23187 then
23188 BUILD_WITH_LIBOPING_CPPFLAGS="$LIBOPING_CPPFLAGS"
23189 BUILD_WITH_LIBOPING_LDFLAGS="$LIBOPING_LDFLAGS"
23192 fi
23193 if test "x$with_liboping" = "xyes"; then
23194 BUILD_WITH_LIBOPING_TRUE=
23195 BUILD_WITH_LIBOPING_FALSE='#'
23196 else
23197 BUILD_WITH_LIBOPING_TRUE='#'
23198 BUILD_WITH_LIBOPING_FALSE=
23199 fi
23201 # }}}
23203 # --with-oracle {{{
23204 with_oracle_cppflags=""
23205 with_oracle_libs=""
23207 # Check whether --with-oracle was given.
23208 if test "${with_oracle+set}" = set; then :
23209 withval=$with_oracle;
23210 if test "x$withval" = "xyes"
23211 then
23212 if test "x$ORACLE_HOME" = "x"
23213 then
23214 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Use of the Oracle library has been forced, but the environment variable ORACLE_HOME is not set." >&5
23215 $as_echo "$as_me: WARNING: Use of the Oracle library has been forced, but the environment variable ORACLE_HOME is not set." >&2;}
23216 fi
23217 with_oracle="yes"
23218 else if test "x$withval" = "xno"
23219 then
23220 with_oracle="no"
23221 else
23222 with_oracle="yes"
23223 ORACLE_HOME="$withval"
23224 fi; fi
23226 else
23228 if test "x$ORACLE_HOME" = "x"
23229 then
23230 with_oracle="no (ORACLE_HOME is not set)"
23231 else
23232 with_oracle="yes"
23233 fi
23235 fi
23237 if test "x$ORACLE_HOME" != "x"
23238 then
23239 with_oracle_cppflags="-I$ORACLE_HOME/rdbms/public"
23241 if test -e "$ORACLE_HOME/lib/ldflags"
23242 then
23243 with_oracle_libs=`cat "$ORACLE_HOME/lib/ldflags"`
23244 fi
23245 #with_oracle_libs="-L$ORACLE_HOME/lib $with_oracle_libs -lclntsh"
23246 with_oracle_libs="-L$ORACLE_HOME/lib -lclntsh"
23247 fi
23248 if test "x$with_oracle" = "xyes"
23249 then
23250 SAVE_CPPFLAGS="$CPPFLAGS"
23251 CPPFLAGS="$CPPFLAGS $with_oracle_cppflags"
23253 for ac_header in oci.h
23254 do :
23255 ac_fn_c_check_header_mongrel "$LINENO" "oci.h" "ac_cv_header_oci_h" "$ac_includes_default"
23256 if test "x$ac_cv_header_oci_h" = xyes; then :
23257 cat >>confdefs.h <<_ACEOF
23258 #define HAVE_OCI_H 1
23259 _ACEOF
23260 with_oracle="yes"
23261 else
23262 with_oracle="no (oci.h not found)"
23263 fi
23265 done
23268 CPPFLAGS="$SAVE_CPPFLAGS"
23269 fi
23270 if test "x$with_oracle" = "xyes"
23271 then
23272 SAVE_CPPFLAGS="$CPPFLAGS"
23273 SAVE_LIBS="$LIBS"
23274 CPPFLAGS="$CPPFLAGS $with_oracle_cppflags"
23275 LIBS="$LIBS $with_oracle_libs"
23277 ac_fn_c_check_func "$LINENO" "OCIEnvCreate" "ac_cv_func_OCIEnvCreate"
23278 if test "x$ac_cv_func_OCIEnvCreate" = xyes; then :
23279 with_oracle="yes"
23280 else
23281 with_oracle="no (Symbol 'OCIEnvCreate' not found)"
23282 fi
23285 CPPFLAGS="$SAVE_CPPFLAGS"
23286 LIBS="$SAVE_LIBS"
23287 fi
23288 if test "x$with_oracle" = "xyes"
23289 then
23290 BUILD_WITH_ORACLE_CFLAGS="$with_oracle_cppflags"
23291 BUILD_WITH_ORACLE_LIBS="$with_oracle_libs"
23294 fi
23295 # }}}
23297 # --with-libowcapi {{{
23298 with_libowcapi_cppflags=""
23299 with_libowcapi_libs="-lowcapi"
23301 # Check whether --with-libowcapi was given.
23302 if test "${with_libowcapi+set}" = set; then :
23303 withval=$with_libowcapi;
23304 if test "x$withval" != "xno" && test "x$withval" != "xyes"
23305 then
23306 with_libowcapi_cppflags="-I$withval/include"
23307 with_libowcapi_libs="-L$withval/lib -lowcapi"
23308 with_libowcapi="yes"
23309 else
23310 with_libowcapi="$withval"
23311 fi
23313 else
23315 with_libowcapi="yes"
23317 fi
23319 if test "x$with_libowcapi" = "xyes"
23320 then
23321 SAVE_CPPFLAGS="$CPPFLAGS"
23322 CPPFLAGS="$with_libowcapi_cppflags"
23324 for ac_header in owcapi.h
23325 do :
23326 ac_fn_c_check_header_mongrel "$LINENO" "owcapi.h" "ac_cv_header_owcapi_h" "$ac_includes_default"
23327 if test "x$ac_cv_header_owcapi_h" = xyes; then :
23328 cat >>confdefs.h <<_ACEOF
23329 #define HAVE_OWCAPI_H 1
23330 _ACEOF
23331 with_libowcapi="yes"
23332 else
23333 with_libowcapi="no (owcapi.h not found)"
23334 fi
23336 done
23339 CPPFLAGS="$SAVE_CPPFLAGS"
23340 fi
23341 if test "x$with_libowcapi" = "xyes"
23342 then
23343 SAVE_LDFLAGS="$LDFLAGS"
23344 SAVE_CPPFLAGS="$CPPFLAGS"
23345 LDFLAGS="$with_libowcapi_libs"
23346 CPPFLAGS="$with_libowcapi_cppflags"
23348 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OW_get in -lowcapi" >&5
23349 $as_echo_n "checking for OW_get in -lowcapi... " >&6; }
23350 if ${ac_cv_lib_owcapi_OW_get+:} false; then :
23351 $as_echo_n "(cached) " >&6
23352 else
23353 ac_check_lib_save_LIBS=$LIBS
23354 LIBS="-lowcapi $LIBS"
23355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23356 /* end confdefs.h. */
23358 /* Override any GCC internal prototype to avoid an error.
23359 Use char because int might match the return type of a GCC
23360 builtin and then its argument prototype would still apply. */
23361 #ifdef __cplusplus
23362 extern "C"
23363 #endif
23364 char OW_get ();
23365 int
23366 main ()
23367 {
23368 return OW_get ();
23369 ;
23370 return 0;
23371 }
23372 _ACEOF
23373 if ac_fn_c_try_link "$LINENO"; then :
23374 ac_cv_lib_owcapi_OW_get=yes
23375 else
23376 ac_cv_lib_owcapi_OW_get=no
23377 fi
23378 rm -f core conftest.err conftest.$ac_objext \
23379 conftest$ac_exeext conftest.$ac_ext
23380 LIBS=$ac_check_lib_save_LIBS
23381 fi
23382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_owcapi_OW_get" >&5
23383 $as_echo "$ac_cv_lib_owcapi_OW_get" >&6; }
23384 if test "x$ac_cv_lib_owcapi_OW_get" = xyes; then :
23385 with_libowcapi="yes"
23386 else
23387 with_libowcapi="no (libowcapi not found)"
23388 fi
23391 LDFLAGS="$SAVE_LDFLAGS"
23392 CPPFLAGS="$SAVE_CPPFLAGS"
23393 fi
23394 if test "x$with_libowcapi" = "xyes"
23395 then
23396 BUILD_WITH_LIBOWCAPI_CPPFLAGS="$with_libowcapi_cppflags"
23397 BUILD_WITH_LIBOWCAPI_LIBS="$with_libowcapi_libs"
23400 fi
23401 # }}}
23403 # --with-libpcap {{{
23405 # Check whether --with-libpcap was given.
23406 if test "${with_libpcap+set}" = set; then :
23407 withval=$with_libpcap;
23408 if test "x$withval" != "xno" && test "x$withval" != "xyes"
23409 then
23410 LDFLAGS="$LDFLAGS -L$withval/lib"
23411 CPPFLAGS="$CPPFLAGS -I$withval/include"
23412 with_libpcap="yes"
23413 else
23414 with_libpcap="$withval"
23415 fi
23417 else
23419 with_libpcap="yes"
23421 fi
23423 if test "x$with_libpcap" = "xyes"
23424 then
23425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pcap_open_live in -lpcap" >&5
23426 $as_echo_n "checking for pcap_open_live in -lpcap... " >&6; }
23427 if ${ac_cv_lib_pcap_pcap_open_live+:} false; then :
23428 $as_echo_n "(cached) " >&6
23429 else
23430 ac_check_lib_save_LIBS=$LIBS
23431 LIBS="-lpcap $LIBS"
23432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23433 /* end confdefs.h. */
23435 /* Override any GCC internal prototype to avoid an error.
23436 Use char because int might match the return type of a GCC
23437 builtin and then its argument prototype would still apply. */
23438 #ifdef __cplusplus
23439 extern "C"
23440 #endif
23441 char pcap_open_live ();
23442 int
23443 main ()
23444 {
23445 return pcap_open_live ();
23446 ;
23447 return 0;
23448 }
23449 _ACEOF
23450 if ac_fn_c_try_link "$LINENO"; then :
23451 ac_cv_lib_pcap_pcap_open_live=yes
23452 else
23453 ac_cv_lib_pcap_pcap_open_live=no
23454 fi
23455 rm -f core conftest.err conftest.$ac_objext \
23456 conftest$ac_exeext conftest.$ac_ext
23457 LIBS=$ac_check_lib_save_LIBS
23458 fi
23459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcap_pcap_open_live" >&5
23460 $as_echo "$ac_cv_lib_pcap_pcap_open_live" >&6; }
23461 if test "x$ac_cv_lib_pcap_pcap_open_live" = xyes; then :
23464 $as_echo "#define HAVE_LIBPCAP 1" >>confdefs.h
23467 else
23468 with_libpcap="no (libpcap not found)"
23469 fi
23471 fi
23472 if test "x$with_libpcap" = "xyes"
23473 then
23474 for ac_header in pcap.h
23475 do :
23476 ac_fn_c_check_header_mongrel "$LINENO" "pcap.h" "ac_cv_header_pcap_h" "$ac_includes_default"
23477 if test "x$ac_cv_header_pcap_h" = xyes; then :
23478 cat >>confdefs.h <<_ACEOF
23479 #define HAVE_PCAP_H 1
23480 _ACEOF
23482 else
23483 with_libpcap="no (pcap.h not found)"
23484 fi
23486 done
23488 fi
23489 if test "x$with_libpcap" = "xyes"
23490 then
23491 for ac_header in pcap-bpf.h
23492 do :
23493 ac_fn_c_check_header_mongrel "$LINENO" "pcap-bpf.h" "ac_cv_header_pcap_bpf_h" "$ac_includes_default"
23494 if test "x$ac_cv_header_pcap_bpf_h" = xyes; then :
23495 cat >>confdefs.h <<_ACEOF
23496 #define HAVE_PCAP_BPF_H 1
23497 _ACEOF
23499 else
23500 with_libpcap="no (pcap-bpf.h not found)"
23501 fi
23503 done
23505 fi
23506 if test "x$with_libpcap" = "xyes"
23507 then
23508 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether libpcap has PCAP_ERROR_IFACE_NOT_UP" >&5
23509 $as_echo_n "checking whether libpcap has PCAP_ERROR_IFACE_NOT_UP... " >&6; }
23510 if ${c_cv_libpcap_have_pcap_error_iface_not_up+:} false; then :
23511 $as_echo_n "(cached) " >&6
23512 else
23513 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23514 /* end confdefs.h. */
23516 #include <pcap.h>
23518 int
23519 main ()
23520 {
23522 int val = PCAP_ERROR_IFACE_NOT_UP;
23523 return(val);
23526 ;
23527 return 0;
23528 }
23529 _ACEOF
23530 if ac_fn_c_try_compile "$LINENO"; then :
23531 c_cv_libpcap_have_pcap_error_iface_not_up="yes"
23532 else
23533 c_cv_libpcap_have_pcap_error_iface_not_up="no"
23534 fi
23535 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
23536 fi
23537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $c_cv_libpcap_have_pcap_error_iface_not_up" >&5
23538 $as_echo "$c_cv_libpcap_have_pcap_error_iface_not_up" >&6; }
23539 fi
23540 if test "x$c_cv_libpcap_have_pcap_error_iface_not_up" != "xyes"
23541 then
23542 with_libpcap="no (pcap.h misses PCAP_ERROR_IFACE_NOT_UP)"
23543 fi
23544 if test "x$with_libpcap" = "xyes"; then
23545 BUILD_WITH_LIBPCAP_TRUE=
23546 BUILD_WITH_LIBPCAP_FALSE='#'
23547 else
23548 BUILD_WITH_LIBPCAP_TRUE='#'
23549 BUILD_WITH_LIBPCAP_FALSE=
23550 fi
23552 # }}}
23554 # --with-libperl {{{
23555 perl_interpreter="perl"
23557 # Check whether --with-libperl was given.
23558 if test "${with_libperl+set}" = set; then :
23559 withval=$with_libperl;
23560 if test -f "$withval" && test -x "$withval"
23561 then
23562 perl_interpreter="$withval"
23563 with_libperl="yes"
23564 else if test "x$withval" != "xno" && test "x$withval" != "xyes"
23565 then
23566 LDFLAGS="$LDFLAGS -L$withval/lib"
23567 CPPFLAGS="$CPPFLAGS -I$withval/include"
23568 perl_interpreter="$withval/bin/perl"
23569 with_libperl="yes"
23570 else
23571 with_libperl="$withval"
23572 fi; fi
23574 else
23576 with_libperl="yes"
23578 fi
23581 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for perl" >&5
23582 $as_echo_n "checking for perl... " >&6; }
23583 perl_interpreter=`which "$perl_interpreter" 2> /dev/null`
23584 if test -x "$perl_interpreter"
23585 then
23586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes ($perl_interpreter)" >&5
23587 $as_echo "yes ($perl_interpreter)" >&6; }
23588 else
23589 perl_interpreter=""
23590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
23591 $as_echo "no" >&6; }
23592 fi
23594 PERL="$perl_interpreter"
23597 if test "x$with_libperl" = "xyes" \
23598 && test -n "$perl_interpreter"
23599 then
23600 SAVE_CFLAGS="$CFLAGS"
23601 SAVE_LIBS="$LIBS"
23602 PERL_CFLAGS=`ARCHFLAGS="" $perl_interpreter -MExtUtils::Embed -e ccopts`
23603 PERL_LIBS=`ARCHFLAGS="" $perl_interpreter -MExtUtils::Embed -e ldopts`
23604 CFLAGS="$CFLAGS $PERL_CFLAGS"
23605 LIBS="$LIBS $PERL_LIBS"
23607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libperl" >&5
23608 $as_echo_n "checking for libperl... " >&6; }
23609 if ${c_cv_have_libperl+:} false; then :
23610 $as_echo_n "(cached) " >&6
23611 else
23612 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23613 /* end confdefs.h. */
23615 #define PERL_NO_GET_CONTEXT
23616 #include <EXTERN.h>
23617 #include <perl.h>
23618 #include <XSUB.h>
23620 int
23621 main ()
23622 {
23624 dTHX;
23625 load_module (PERL_LOADMOD_NOIMPORT,
23626 newSVpv ("Collectd::Plugin::FooBar", 24),
23627 Nullsv);
23630 ;
23631 return 0;
23632 }
23633 _ACEOF
23634 if ac_fn_c_try_link "$LINENO"; then :
23635 c_cv_have_libperl="yes"
23636 else
23637 c_cv_have_libperl="no"
23639 fi
23640 rm -f core conftest.err conftest.$ac_objext \
23641 conftest$ac_exeext conftest.$ac_ext
23643 fi
23644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $c_cv_have_libperl" >&5
23645 $as_echo "$c_cv_have_libperl" >&6; }
23647 if test "x$c_cv_have_libperl" = "xyes"
23648 then
23650 $as_echo "#define HAVE_LIBPERL 1" >>confdefs.h
23654 else
23655 with_libperl="no"
23656 fi
23658 CFLAGS="$SAVE_CFLAGS"
23659 LIBS="$SAVE_LIBS"
23660 else if test -z "$perl_interpreter"; then
23661 with_libperl="no (no perl interpreter found)"
23662 c_cv_have_libperl="no"
23663 fi; fi
23664 if test "x$with_libperl" = "xyes"; then
23665 BUILD_WITH_LIBPERL_TRUE=
23666 BUILD_WITH_LIBPERL_FALSE='#'
23667 else
23668 BUILD_WITH_LIBPERL_TRUE='#'
23669 BUILD_WITH_LIBPERL_FALSE=
23670 fi
23673 if test "x$with_libperl" = "xyes"
23674 then
23675 SAVE_CFLAGS="$CFLAGS"
23676 SAVE_LIBS="$LIBS"
23677 CFLAGS="$CFLAGS $PERL_CFLAGS"
23678 LIBS="$LIBS $PERL_LIBS"
23680 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if perl supports ithreads" >&5
23681 $as_echo_n "checking if perl supports ithreads... " >&6; }
23682 if ${c_cv_have_perl_ithreads+:} false; then :
23683 $as_echo_n "(cached) " >&6
23684 else
23685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23686 /* end confdefs.h. */
23688 #include <EXTERN.h>
23689 #include <perl.h>
23690 #include <XSUB.h>
23692 #if !defined(USE_ITHREADS)
23693 # error "Perl does not support ithreads!"
23694 #endif /* !defined(USE_ITHREADS) */
23696 int
23697 main ()
23698 {
23701 ;
23702 return 0;
23703 }
23704 _ACEOF
23705 if ac_fn_c_try_link "$LINENO"; then :
23706 c_cv_have_perl_ithreads="yes"
23707 else
23708 c_cv_have_perl_ithreads="no"
23710 fi
23711 rm -f core conftest.err conftest.$ac_objext \
23712 conftest$ac_exeext conftest.$ac_ext
23714 fi
23715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $c_cv_have_perl_ithreads" >&5
23716 $as_echo "$c_cv_have_perl_ithreads" >&6; }
23718 if test "x$c_cv_have_perl_ithreads" = "xyes"
23719 then
23721 $as_echo "#define HAVE_PERL_ITHREADS 1" >>confdefs.h
23723 fi
23725 CFLAGS="$SAVE_CFLAGS"
23726 LIBS="$SAVE_LIBS"
23727 fi
23729 if test "x$with_libperl" = "xyes"
23730 then
23731 SAVE_CFLAGS="$CFLAGS"
23732 SAVE_LIBS="$LIBS"
23733 # trigger an error if Perl_load_module*() uses __attribute__nonnull__(3)
23734 # (see issues #41 and #42)
23735 CFLAGS="$CFLAGS $PERL_CFLAGS -Wall -Werror"
23736 LIBS="$LIBS $PERL_LIBS"
23738 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for broken Perl_load_module()" >&5
23739 $as_echo_n "checking for broken Perl_load_module()... " >&6; }
23740 if ${c_cv_have_broken_perl_load_module+:} false; then :
23741 $as_echo_n "(cached) " >&6
23742 else
23743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23744 /* end confdefs.h. */
23746 #define PERL_NO_GET_CONTEXT
23747 #include <EXTERN.h>
23748 #include <perl.h>
23749 #include <XSUB.h>
23751 int
23752 main ()
23753 {
23755 dTHX;
23756 load_module (PERL_LOADMOD_NOIMPORT,
23757 newSVpv ("Collectd::Plugin::FooBar", 24),
23758 Nullsv);
23761 ;
23762 return 0;
23763 }
23764 _ACEOF
23765 if ac_fn_c_try_link "$LINENO"; then :
23766 c_cv_have_broken_perl_load_module="no"
23767 else
23768 c_cv_have_broken_perl_load_module="yes"
23770 fi
23771 rm -f core conftest.err conftest.$ac_objext \
23772 conftest$ac_exeext conftest.$ac_ext
23774 fi
23775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $c_cv_have_broken_perl_load_module" >&5
23776 $as_echo "$c_cv_have_broken_perl_load_module" >&6; }
23778 CFLAGS="$SAVE_CFLAGS"
23779 LIBS="$SAVE_LIBS"
23780 fi
23781 if test "x$c_cv_have_broken_perl_load_module" = "xyes"; then
23782 HAVE_BROKEN_PERL_LOAD_MODULE_TRUE=
23783 HAVE_BROKEN_PERL_LOAD_MODULE_FALSE='#'
23784 else
23785 HAVE_BROKEN_PERL_LOAD_MODULE_TRUE='#'
23786 HAVE_BROKEN_PERL_LOAD_MODULE_FALSE=
23787 fi
23790 if test "x$with_libperl" = "xyes"
23791 then
23792 SAVE_CFLAGS="$CFLAGS"
23793 SAVE_LIBS="$LIBS"
23794 CFLAGS="$CFLAGS $PERL_CFLAGS"
23795 LIBS="$LIBS $PERL_LIBS"
23797 ac_fn_c_check_member "$LINENO" "struct mgvtbl" "svt_local" "ac_cv_member_struct_mgvtbl_svt_local" "
23798 #include <EXTERN.h>
23799 #include <perl.h>
23800 #include <XSUB.h>
23802 "
23803 if test "x$ac_cv_member_struct_mgvtbl_svt_local" = xyes; then :
23804 have_struct_mgvtbl_svt_local="yes"
23805 else
23806 have_struct_mgvtbl_svt_local="no"
23807 fi
23810 if test "x$have_struct_mgvtbl_svt_local" = "xyes"
23811 then
23813 $as_echo "#define HAVE_PERL_STRUCT_MGVTBL_SVT_LOCAL 1" >>confdefs.h
23815 fi
23817 CFLAGS="$SAVE_CFLAGS"
23818 LIBS="$SAVE_LIBS"
23819 fi
23820 # }}}
23822 # --with-libpq {{{
23823 with_pg_config="pg_config"
23824 with_libpq_includedir=""
23825 with_libpq_libdir=""
23826 with_libpq_cppflags=""
23827 with_libpq_ldflags=""
23829 # Check whether --with-libpq was given.
23830 if test "${with_libpq+set}" = set; then :
23831 withval=$with_libpq;
23832 if test "x$withval" = "xno"
23833 then
23834 with_libpq="no"
23835 else if test "x$withval" = "xyes"
23836 then
23837 with_libpq="yes"
23838 else
23839 if test -f "$withval" && test -x "$withval";
23840 then
23841 with_pg_config="$withval"
23842 else if test -x "$withval/bin/pg_config"
23843 then
23844 with_pg_config="$withval/bin/pg_config"
23845 fi; fi
23846 with_libpq="yes"
23847 fi; fi
23849 else
23851 with_libpq="yes"
23853 fi
23855 if test "x$with_libpq" = "xyes"
23856 then
23857 with_libpq_includedir=`$with_pg_config --includedir 2> /dev/null`
23858 pg_config_status=$?
23860 if test $pg_config_status -eq 0
23861 then
23862 if test -n "$with_libpq_includedir"; then
23863 for dir in $with_libpq_includedir; do
23864 with_libpq_cppflags="$with_libpq_cppflags -I$dir"
23865 done
23866 fi
23867 else
23868 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $with_pg_config returned with status $pg_config_status" >&5
23869 $as_echo "$as_me: WARNING: $with_pg_config returned with status $pg_config_status" >&2;}
23870 fi
23872 SAVE_CPPFLAGS="$CPPFLAGS"
23873 CPPFLAGS="$CPPFLAGS $with_libpq_cppflags"
23875 for ac_header in libpq-fe.h
23876 do :
23877 ac_fn_c_check_header_mongrel "$LINENO" "libpq-fe.h" "ac_cv_header_libpq_fe_h" "$ac_includes_default"
23878 if test "x$ac_cv_header_libpq_fe_h" = xyes; then :
23879 cat >>confdefs.h <<_ACEOF
23880 #define HAVE_LIBPQ_FE_H 1
23881 _ACEOF
23883 else
23884 with_libpq="no (libpq-fe.h not found)"
23885 fi
23887 done
23890 CPPFLAGS="$SAVE_CPPFLAGS"
23891 fi
23892 if test "x$with_libpq" = "xyes"
23893 then
23894 with_libpq_libdir=`$with_pg_config --libdir 2> /dev/null`
23895 pg_config_status=$?
23897 if test $pg_config_status -eq 0
23898 then
23899 if test -n "$with_libpq_libdir"; then
23900 for dir in $with_libpq_libdir; do
23901 with_libpq_ldflags="$with_libpq_ldflags -L$dir"
23902 done
23903 fi
23904 else
23905 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $with_pg_config returned with status $pg_config_status" >&5
23906 $as_echo "$as_me: WARNING: $with_pg_config returned with status $pg_config_status" >&2;}
23907 fi
23909 SAVE_LDFLAGS="$LDFLAGS"
23910 LDFLAGS="$LDFLAGS $with_libpq_ldflags"
23912 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQconnectdb in -lpq" >&5
23913 $as_echo_n "checking for PQconnectdb in -lpq... " >&6; }
23914 if ${ac_cv_lib_pq_PQconnectdb+:} false; then :
23915 $as_echo_n "(cached) " >&6
23916 else
23917 ac_check_lib_save_LIBS=$LIBS
23918 LIBS="-lpq $LIBS"
23919 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23920 /* end confdefs.h. */
23922 /* Override any GCC internal prototype to avoid an error.
23923 Use char because int might match the return type of a GCC
23924 builtin and then its argument prototype would still apply. */
23925 #ifdef __cplusplus
23926 extern "C"
23927 #endif
23928 char PQconnectdb ();
23929 int
23930 main ()
23931 {
23932 return PQconnectdb ();
23933 ;
23934 return 0;
23935 }
23936 _ACEOF
23937 if ac_fn_c_try_link "$LINENO"; then :
23938 ac_cv_lib_pq_PQconnectdb=yes
23939 else
23940 ac_cv_lib_pq_PQconnectdb=no
23941 fi
23942 rm -f core conftest.err conftest.$ac_objext \
23943 conftest$ac_exeext conftest.$ac_ext
23944 LIBS=$ac_check_lib_save_LIBS
23945 fi
23946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQconnectdb" >&5
23947 $as_echo "$ac_cv_lib_pq_PQconnectdb" >&6; }
23948 if test "x$ac_cv_lib_pq_PQconnectdb" = xyes; then :
23949 with_libpq="yes"
23950 else
23951 with_libpq="no (symbol 'PQconnectdb' not found)"
23952 fi
23955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PQserverVersion in -lpq" >&5
23956 $as_echo_n "checking for PQserverVersion in -lpq... " >&6; }
23957 if ${ac_cv_lib_pq_PQserverVersion+:} false; then :
23958 $as_echo_n "(cached) " >&6
23959 else
23960 ac_check_lib_save_LIBS=$LIBS
23961 LIBS="-lpq $LIBS"
23962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
23963 /* end confdefs.h. */
23965 /* Override any GCC internal prototype to avoid an error.
23966 Use char because int might match the return type of a GCC
23967 builtin and then its argument prototype would still apply. */
23968 #ifdef __cplusplus
23969 extern "C"
23970 #endif
23971 char PQserverVersion ();
23972 int
23973 main ()
23974 {
23975 return PQserverVersion ();
23976 ;
23977 return 0;
23978 }
23979 _ACEOF
23980 if ac_fn_c_try_link "$LINENO"; then :
23981 ac_cv_lib_pq_PQserverVersion=yes
23982 else
23983 ac_cv_lib_pq_PQserverVersion=no
23984 fi
23985 rm -f core conftest.err conftest.$ac_objext \
23986 conftest$ac_exeext conftest.$ac_ext
23987 LIBS=$ac_check_lib_save_LIBS
23988 fi
23989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pq_PQserverVersion" >&5
23990 $as_echo "$ac_cv_lib_pq_PQserverVersion" >&6; }
23991 if test "x$ac_cv_lib_pq_PQserverVersion" = xyes; then :
23992 with_libpq="yes"
23993 else
23994 with_libpq="no (symbol 'PQserverVersion' not found)"
23995 fi
23998 LDFLAGS="$SAVE_LDFLAGS"
23999 fi
24000 if test "x$with_libpq" = "xyes"
24001 then
24002 BUILD_WITH_LIBPQ_CPPFLAGS="$with_libpq_cppflags"
24003 BUILD_WITH_LIBPQ_LDFLAGS="$with_libpq_ldflags"
24006 fi
24007 if test "x$with_libpq" = "xyes"; then
24008 BUILD_WITH_LIBPQ_TRUE=
24009 BUILD_WITH_LIBPQ_FALSE='#'
24010 else
24011 BUILD_WITH_LIBPQ_TRUE='#'
24012 BUILD_WITH_LIBPQ_FALSE=
24013 fi
24015 # }}}
24017 # --with-libpthread {{{
24019 # Check whether --with-libpthread was given.
24020 if test "${with_libpthread+set}" = set; then :
24021 withval=$with_libpthread; if test "x$withval" != "xno" \
24022 && test "x$withval" != "xyes"
24023 then
24024 LDFLAGS="$LDFLAGS -L$withval/lib"
24025 CPPFLAGS="$CPPFLAGS -I$withval/include"
24026 with_libpthread="yes"
24027 else
24028 if test "x$withval" = "xno"
24029 then
24030 with_libpthread="no (disabled)"
24031 fi
24032 fi
24034 else
24035 with_libpthread="yes"
24036 fi
24038 if test "x$with_libpthread" = "xyes"
24039 then
24040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_create in -lpthread" >&5
24041 $as_echo_n "checking for pthread_create in -lpthread... " >&6; }
24042 if ${ac_cv_lib_pthread_pthread_create+:} false; then :
24043 $as_echo_n "(cached) " >&6
24044 else
24045 ac_check_lib_save_LIBS=$LIBS
24046 LIBS="-lpthread $LIBS"
24047 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24048 /* end confdefs.h. */
24050 /* Override any GCC internal prototype to avoid an error.
24051 Use char because int might match the return type of a GCC
24052 builtin and then its argument prototype would still apply. */
24053 #ifdef __cplusplus
24054 extern "C"
24055 #endif
24056 char pthread_create ();
24057 int
24058 main ()
24059 {
24060 return pthread_create ();
24061 ;
24062 return 0;
24063 }
24064 _ACEOF
24065 if ac_fn_c_try_link "$LINENO"; then :
24066 ac_cv_lib_pthread_pthread_create=yes
24067 else
24068 ac_cv_lib_pthread_pthread_create=no
24069 fi
24070 rm -f core conftest.err conftest.$ac_objext \
24071 conftest$ac_exeext conftest.$ac_ext
24072 LIBS=$ac_check_lib_save_LIBS
24073 fi
24074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pthread_pthread_create" >&5
24075 $as_echo "$ac_cv_lib_pthread_pthread_create" >&6; }
24076 if test "x$ac_cv_lib_pthread_pthread_create" = xyes; then :
24077 with_libpthread="yes"
24078 else
24079 with_libpthread="no (libpthread not found)"
24080 fi
24082 fi
24084 if test "x$with_libpthread" = "xyes"
24085 then
24086 for ac_header in pthread.h
24087 do :
24088 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
24089 if test "x$ac_cv_header_pthread_h" = xyes; then :
24090 cat >>confdefs.h <<_ACEOF
24091 #define HAVE_PTHREAD_H 1
24092 _ACEOF
24094 else
24095 with_libpthread="no (pthread.h not found)"
24096 fi
24098 done
24100 fi
24101 if test "x$with_libpthread" = "xyes"
24102 then
24103 collect_pthread=1
24104 else
24105 collect_pthread=0
24106 fi
24108 cat >>confdefs.h <<_ACEOF
24109 #define HAVE_LIBPTHREAD $collect_pthread
24110 _ACEOF
24112 if test "x$with_libpthread" = "xyes"; then
24113 BUILD_WITH_LIBPTHREAD_TRUE=
24114 BUILD_WITH_LIBPTHREAD_FALSE='#'
24115 else
24116 BUILD_WITH_LIBPTHREAD_TRUE='#'
24117 BUILD_WITH_LIBPTHREAD_FALSE=
24118 fi
24120 # }}}
24122 # --with-python {{{
24123 with_python_prog=""
24124 with_python_path="$PATH"
24126 # Check whether --with-python was given.
24127 if test "${with_python+set}" = set; then :
24128 withval=$with_python;
24129 if test "x$withval" = "xyes" || test "x$withval" = "xno"
24130 then
24131 with_python="$withval"
24132 else if test -x "$withval"
24133 then
24134 with_python_prog="$withval"
24135 with_python_path="`dirname \"$withval\"`$PATH_SEPARATOR$with_python_path"
24136 with_python="yes"
24137 else if test -d "$withval"
24138 then
24139 with_python_path="$withval$PATH_SEPARATOR$with_python_path"
24140 with_python="yes"
24141 else
24142 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Argument not recognized: $withval" >&5
24143 $as_echo "$as_me: WARNING: Argument not recognized: $withval" >&2;}
24144 fi; fi; fi
24146 else
24147 with_python="yes"
24148 fi
24151 SAVE_PATH="$PATH"
24152 SAVE_CPPFLAGS="$CPPFLAGS"
24153 SAVE_LDFLAGS="$LDFLAGS"
24154 SAVE_LIBS="$LIBS"
24156 PATH="$with_python_path"
24158 if test "x$with_python" = "xyes" && test "x$with_python_prog" = "x"
24159 then
24160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for python" >&5
24161 $as_echo_n "checking for python... " >&6; }
24162 with_python_prog="`which python 2>/dev/null`"
24163 if test "x$with_python_prog" = "x"
24164 then
24165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found" >&5
24166 $as_echo "not found" >&6; }
24167 with_python="no (interpreter not found)"
24168 else
24169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_python_prog" >&5
24170 $as_echo "$with_python_prog" >&6; }
24171 fi
24172 fi
24174 if test "x$with_python" = "xyes"
24175 then
24176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python CPPFLAGS" >&5
24177 $as_echo_n "checking for Python CPPFLAGS... " >&6; }
24178 python_include_path=`echo "import distutils.sysconfig;import sys;sys.stdout.write(distutils.sysconfig.get_python_inc())" | "$with_python_prog" 2>&1`
24179 python_config_status=$?
24181 if test "$python_config_status" -ne 0 || test "x$python_include_path" = "x"
24182 then
24183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed with status $python_config_status (output: $python_include_path)" >&5
24184 $as_echo "failed with status $python_config_status (output: $python_include_path)" >&6; }
24185 with_python="no"
24186 else
24187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_include_path" >&5
24188 $as_echo "$python_include_path" >&6; }
24189 fi
24190 fi
24192 if test "x$with_python" = "xyes"
24193 then
24194 CPPFLAGS="-I$python_include_path $CPPFLAGS"
24195 for ac_header in Python.h
24196 do :
24197 ac_fn_c_check_header_mongrel "$LINENO" "Python.h" "ac_cv_header_Python_h" "$ac_includes_default"
24198 if test "x$ac_cv_header_Python_h" = xyes; then :
24199 cat >>confdefs.h <<_ACEOF
24200 #define HAVE_PYTHON_H 1
24201 _ACEOF
24202 with_python="yes"
24203 else
24204 with_python="no ('Python.h' not found)"
24205 fi
24207 done
24209 fi
24211 if test "x$with_python" = "xyes"
24212 then
24213 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python LDFLAGS" >&5
24214 $as_echo_n "checking for Python LDFLAGS... " >&6; }
24215 python_library_path=`echo "import distutils.sysconfig;import sys;sys.stdout.write(distutils.sysconfig.get_config_vars(\"LIBDIR\").__getitem__(0))" | "$with_python_prog" 2>&1`
24216 python_config_status=$?
24218 if test "$python_config_status" -ne 0 || test "x$python_library_path" = "x"
24219 then
24220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed with status $python_config_status (output: $python_library_path)" >&5
24221 $as_echo "failed with status $python_config_status (output: $python_library_path)" >&6; }
24222 with_python="no"
24223 else
24224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_library_path" >&5
24225 $as_echo "$python_library_path" >&6; }
24226 fi
24227 fi
24229 if test "x$with_python" = "xyes"
24230 then
24231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python LIBS" >&5
24232 $as_echo_n "checking for Python LIBS... " >&6; }
24233 python_library_flags=`echo "import distutils.sysconfig;import sys;sys.stdout.write(distutils.sysconfig.get_config_vars(\"BLDLIBRARY\").__getitem__(0))" | "$with_python_prog" 2>&1`
24234 python_config_status=$?
24236 if test "$python_config_status" -ne 0 || test "x$python_library_flags" = "x"
24237 then
24238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: failed with status $python_config_status (output: $python_library_flags)" >&5
24239 $as_echo "failed with status $python_config_status (output: $python_library_flags)" >&6; }
24240 with_python="no"
24241 else
24242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $python_library_flags" >&5
24243 $as_echo "$python_library_flags" >&6; }
24244 fi
24245 fi
24247 if test "x$with_python" = "xyes"
24248 then
24249 LDFLAGS="-L$python_library_path $LDFLAGS"
24250 LIBS="$python_library_flags $LIBS"
24252 ac_fn_c_check_func "$LINENO" "PyObject_CallFunction" "ac_cv_func_PyObject_CallFunction"
24253 if test "x$ac_cv_func_PyObject_CallFunction" = xyes; then :
24254 with_python="yes"
24255 else
24256 with_python="no (Symbol 'PyObject_CallFunction' not found)"
24257 fi
24259 fi
24261 PATH="$SAVE_PATH"
24262 CPPFLAGS="$SAVE_CPPFLAGS"
24263 LDFLAGS="$SAVE_LDFLAGS"
24264 LIBS="$SAVE_LIBS"
24266 if test "x$with_python" = "xyes"
24267 then
24268 BUILD_WITH_PYTHON_CPPFLAGS="-I$python_include_path"
24269 BUILD_WITH_PYTHON_LDFLAGS="-L$python_library_path"
24270 BUILD_WITH_PYTHON_LIBS="$python_library_flags"
24274 fi
24275 # }}} --with-python
24277 # --with-librabbitmq {{{
24278 with_librabbitmq_cppflags=""
24279 with_librabbitmq_ldflags=""
24281 # Check whether --with-librabbitmq was given.
24282 if test "${with_librabbitmq+set}" = set; then :
24283 withval=$with_librabbitmq;
24284 if test "x$withval" != "xno" && test "x$withval" != "xyes"
24285 then
24286 with_librabbitmq_cppflags="-I$withval/include"
24287 with_librabbitmq_ldflags="-L$withval/lib"
24288 with_librabbitmq="yes"
24289 else
24290 with_librabbitmq="$withval"
24291 fi
24293 else
24295 with_librabbitmq="yes"
24297 fi
24299 SAVE_CPPFLAGS="$CPPFLAGS"
24300 SAVE_LDFLAGS="$LDFLAGS"
24301 CPPFLAGS="$CPPFLAGS $with_librabbitmq_cppflags"
24302 LDFLAGS="$LDFLAGS $with_librabbitmq_ldflags"
24303 if test "x$with_librabbitmq" = "xyes"
24304 then
24305 for ac_header in amqp.h
24306 do :
24307 ac_fn_c_check_header_mongrel "$LINENO" "amqp.h" "ac_cv_header_amqp_h" "$ac_includes_default"
24308 if test "x$ac_cv_header_amqp_h" = xyes; then :
24309 cat >>confdefs.h <<_ACEOF
24310 #define HAVE_AMQP_H 1
24311 _ACEOF
24312 with_librabbitmq="yes"
24313 else
24314 with_librabbitmq="no (amqp.h not found)"
24315 fi
24317 done
24319 fi
24320 if test "x$with_librabbitmq" = "xyes"
24321 then
24322 # librabbitmq up to version 0.9.1 provides "library_errno", later
24323 # versions use "library_error". The library does not provide a version
24324 # macro :( Use "AC_CHECK_MEMBERS" (plural) for automatic defines.
24325 ac_fn_c_check_member "$LINENO" "amqp_rpc_reply_t" "library_errno" "ac_cv_member_amqp_rpc_reply_t_library_errno" "
24326 #if HAVE_STDLIB_H
24327 # include <stdlib.h>
24328 #endif
24329 #if HAVE_STDIO_H
24330 # include <stdio.h>
24331 #endif
24332 #if HAVE_STDINT_H
24333 # include <stdint.h>
24334 #endif
24335 #if HAVE_INTTYPES_H
24336 # include <inttypes.h>
24337 #endif
24338 #include <amqp.h>
24340 "
24341 if test "x$ac_cv_member_amqp_rpc_reply_t_library_errno" = xyes; then :
24343 cat >>confdefs.h <<_ACEOF
24344 #define HAVE_AMQP_RPC_REPLY_T_LIBRARY_ERRNO 1
24345 _ACEOF
24348 fi
24350 fi
24351 if test "x$with_librabbitmq" = "xyes"
24352 then
24353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for amqp_basic_publish in -lrabbitmq" >&5
24354 $as_echo_n "checking for amqp_basic_publish in -lrabbitmq... " >&6; }
24355 if ${ac_cv_lib_rabbitmq_amqp_basic_publish+:} false; then :
24356 $as_echo_n "(cached) " >&6
24357 else
24358 ac_check_lib_save_LIBS=$LIBS
24359 LIBS="-lrabbitmq $LIBS"
24360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24361 /* end confdefs.h. */
24363 /* Override any GCC internal prototype to avoid an error.
24364 Use char because int might match the return type of a GCC
24365 builtin and then its argument prototype would still apply. */
24366 #ifdef __cplusplus
24367 extern "C"
24368 #endif
24369 char amqp_basic_publish ();
24370 int
24371 main ()
24372 {
24373 return amqp_basic_publish ();
24374 ;
24375 return 0;
24376 }
24377 _ACEOF
24378 if ac_fn_c_try_link "$LINENO"; then :
24379 ac_cv_lib_rabbitmq_amqp_basic_publish=yes
24380 else
24381 ac_cv_lib_rabbitmq_amqp_basic_publish=no
24382 fi
24383 rm -f core conftest.err conftest.$ac_objext \
24384 conftest$ac_exeext conftest.$ac_ext
24385 LIBS=$ac_check_lib_save_LIBS
24386 fi
24387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rabbitmq_amqp_basic_publish" >&5
24388 $as_echo "$ac_cv_lib_rabbitmq_amqp_basic_publish" >&6; }
24389 if test "x$ac_cv_lib_rabbitmq_amqp_basic_publish" = xyes; then :
24390 with_librabbitmq="yes"
24391 else
24392 with_librabbitmq="no (Symbol 'amqp_basic_publish' not found)"
24393 fi
24395 fi
24396 if test "x$with_librabbitmq" = "xyes"
24397 then
24398 BUILD_WITH_LIBRABBITMQ_CPPFLAGS="$with_librabbitmq_cppflags"
24399 BUILD_WITH_LIBRABBITMQ_LDFLAGS="$with_librabbitmq_ldflags"
24400 BUILD_WITH_LIBRABBITMQ_LIBS="-lrabbitmq"
24405 $as_echo "#define HAVE_LIBRABBITMQ 1" >>confdefs.h
24407 fi
24408 CPPFLAGS="$SAVE_CPPFLAGS"
24409 LDFLAGS="$SAVE_LDFLAGS"
24410 if test "x$with_librabbitmq" = "xyes"; then
24411 BUILD_WITH_LIBRABBITMQ_TRUE=
24412 BUILD_WITH_LIBRABBITMQ_FALSE='#'
24413 else
24414 BUILD_WITH_LIBRABBITMQ_TRUE='#'
24415 BUILD_WITH_LIBRABBITMQ_FALSE=
24416 fi
24419 with_amqp_tcp_socket="no"
24420 if test "x$with_librabbitmq" = "xyes"
24421 then
24422 SAVE_CPPFLAGS="$CPPFLAGS"
24423 SAVE_LDFLAGS="$LDFLAGS"
24424 SAVE_LIBS="$LIBS"
24425 CPPFLAGS="$CPPFLAGS $with_librabbitmq_cppflags"
24426 LDFLAGS="$LDFLAGS $with_librabbitmq_ldflags"
24427 LIBS="-lrabbitmq"
24429 for ac_header in amqp_tcp_socket.h amqp_socket.h
24430 do :
24431 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
24432 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
24433 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
24434 cat >>confdefs.h <<_ACEOF
24435 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
24436 _ACEOF
24438 fi
24440 done
24442 ac_fn_c_check_func "$LINENO" "amqp_tcp_socket_new" "ac_cv_func_amqp_tcp_socket_new"
24443 if test "x$ac_cv_func_amqp_tcp_socket_new" = xyes; then :
24444 with_amqp_tcp_socket="yes"
24445 else
24446 with_amqp_tcp_socket="no"
24447 fi
24449 if test "x$with_amqp_tcp_socket" = "xyes"
24450 then
24452 $as_echo "#define HAVE_AMQP_TCP_SOCKET 1" >>confdefs.h
24454 fi
24456 ac_fn_c_check_decl "$LINENO" "amqp_socket_close" "ac_cv_have_decl_amqp_socket_close" "
24457 #include <amqp.h>
24458 #ifdef HAVE_AMQP_TCP_SOCKET_H
24459 # include <amqp_tcp_socket.h>
24460 #endif
24461 #ifdef HAVE_AMQP_SOCKET_H
24462 # include <amqp_socket.h>
24463 #endif
24465 "
24466 if test "x$ac_cv_have_decl_amqp_socket_close" = xyes; then :
24467 ac_have_decl=1
24468 else
24469 ac_have_decl=0
24470 fi
24472 cat >>confdefs.h <<_ACEOF
24473 #define HAVE_DECL_AMQP_SOCKET_CLOSE $ac_have_decl
24474 _ACEOF
24475 if test $ac_have_decl = 1; then :
24476 amqp_socket_close_decl="yes"
24477 else
24478 amqp_socket_close_decl="no"
24479 fi
24482 CPPFLAGS="$SAVE_CPPFLAGS"
24483 LDFLAGS="$SAVE_LDFLAGS"
24484 LIBS="$SAVE_LIBS"
24485 fi
24486 # }}}
24488 # --with-librdkafka {{{
24490 # Check whether --with-librdkafka was given.
24491 if test "${with_librdkafka+set}" = set; then :
24492 withval=$with_librdkafka;
24493 if test "x$withval" != "xno" && test "x$withval" != "xyes"
24494 then
24495 with_librdkafka_cppflags="-I$withval/include"
24496 with_librdkafka_ldflags="-L$withval/lib"
24497 with_librdkafka_rpath="$withval/lib"
24498 with_librdkafka="yes"
24499 else
24500 with_librdkafka="$withval"
24501 fi
24503 else
24505 with_librdkafka="yes"
24507 fi
24509 SAVE_CPPFLAGS="$CPPFLAGS"
24510 SAVE_LDFLAGS="$LDFLAGS"
24512 CPPFLAGS="$CPPFLAGS $with_librdkafka_cppflags"
24513 LDFLAGS="$LDFLAGS $with_librdkafka_ldflags"
24515 if test "x$with_librdkafka" = "xyes"
24516 then
24517 for ac_header in librdkafka/rdkafka.h
24518 do :
24519 ac_fn_c_check_header_mongrel "$LINENO" "librdkafka/rdkafka.h" "ac_cv_header_librdkafka_rdkafka_h" "$ac_includes_default"
24520 if test "x$ac_cv_header_librdkafka_rdkafka_h" = xyes; then :
24521 cat >>confdefs.h <<_ACEOF
24522 #define HAVE_LIBRDKAFKA_RDKAFKA_H 1
24523 _ACEOF
24524 with_librdkafka="yes"
24525 else
24526 with_librdkafka="no (librdkafka/rdkafka.h not found)"
24527 fi
24529 done
24531 fi
24533 if test "x$with_librdkafka" = "xyes"
24534 then
24535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rd_kafka_new in -lrdkafka" >&5
24536 $as_echo_n "checking for rd_kafka_new in -lrdkafka... " >&6; }
24537 if ${ac_cv_lib_rdkafka_rd_kafka_new+:} false; then :
24538 $as_echo_n "(cached) " >&6
24539 else
24540 ac_check_lib_save_LIBS=$LIBS
24541 LIBS="-lrdkafka $LIBS"
24542 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24543 /* end confdefs.h. */
24545 /* Override any GCC internal prototype to avoid an error.
24546 Use char because int might match the return type of a GCC
24547 builtin and then its argument prototype would still apply. */
24548 #ifdef __cplusplus
24549 extern "C"
24550 #endif
24551 char rd_kafka_new ();
24552 int
24553 main ()
24554 {
24555 return rd_kafka_new ();
24556 ;
24557 return 0;
24558 }
24559 _ACEOF
24560 if ac_fn_c_try_link "$LINENO"; then :
24561 ac_cv_lib_rdkafka_rd_kafka_new=yes
24562 else
24563 ac_cv_lib_rdkafka_rd_kafka_new=no
24564 fi
24565 rm -f core conftest.err conftest.$ac_objext \
24566 conftest$ac_exeext conftest.$ac_ext
24567 LIBS=$ac_check_lib_save_LIBS
24568 fi
24569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rdkafka_rd_kafka_new" >&5
24570 $as_echo "$ac_cv_lib_rdkafka_rd_kafka_new" >&6; }
24571 if test "x$ac_cv_lib_rdkafka_rd_kafka_new" = xyes; then :
24572 with_librdkafka="yes"
24573 else
24574 with_librdkafka="no (Symbol 'rd_kafka_new' not found)"
24575 fi
24577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rd_kafka_conf_set_log_cb in -lrdkafka" >&5
24578 $as_echo_n "checking for rd_kafka_conf_set_log_cb in -lrdkafka... " >&6; }
24579 if ${ac_cv_lib_rdkafka_rd_kafka_conf_set_log_cb+:} false; then :
24580 $as_echo_n "(cached) " >&6
24581 else
24582 ac_check_lib_save_LIBS=$LIBS
24583 LIBS="-lrdkafka $LIBS"
24584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24585 /* end confdefs.h. */
24587 /* Override any GCC internal prototype to avoid an error.
24588 Use char because int might match the return type of a GCC
24589 builtin and then its argument prototype would still apply. */
24590 #ifdef __cplusplus
24591 extern "C"
24592 #endif
24593 char rd_kafka_conf_set_log_cb ();
24594 int
24595 main ()
24596 {
24597 return rd_kafka_conf_set_log_cb ();
24598 ;
24599 return 0;
24600 }
24601 _ACEOF
24602 if ac_fn_c_try_link "$LINENO"; then :
24603 ac_cv_lib_rdkafka_rd_kafka_conf_set_log_cb=yes
24604 else
24605 ac_cv_lib_rdkafka_rd_kafka_conf_set_log_cb=no
24606 fi
24607 rm -f core conftest.err conftest.$ac_objext \
24608 conftest$ac_exeext conftest.$ac_ext
24609 LIBS=$ac_check_lib_save_LIBS
24610 fi
24611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rdkafka_rd_kafka_conf_set_log_cb" >&5
24612 $as_echo "$ac_cv_lib_rdkafka_rd_kafka_conf_set_log_cb" >&6; }
24613 if test "x$ac_cv_lib_rdkafka_rd_kafka_conf_set_log_cb" = xyes; then :
24614 with_librdkafka_log_cb="yes"
24615 else
24616 with_librdkafka_log_cb="no"
24617 fi
24619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rd_kafka_set_logger in -lrdkafka" >&5
24620 $as_echo_n "checking for rd_kafka_set_logger in -lrdkafka... " >&6; }
24621 if ${ac_cv_lib_rdkafka_rd_kafka_set_logger+:} false; then :
24622 $as_echo_n "(cached) " >&6
24623 else
24624 ac_check_lib_save_LIBS=$LIBS
24625 LIBS="-lrdkafka $LIBS"
24626 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24627 /* end confdefs.h. */
24629 /* Override any GCC internal prototype to avoid an error.
24630 Use char because int might match the return type of a GCC
24631 builtin and then its argument prototype would still apply. */
24632 #ifdef __cplusplus
24633 extern "C"
24634 #endif
24635 char rd_kafka_set_logger ();
24636 int
24637 main ()
24638 {
24639 return rd_kafka_set_logger ();
24640 ;
24641 return 0;
24642 }
24643 _ACEOF
24644 if ac_fn_c_try_link "$LINENO"; then :
24645 ac_cv_lib_rdkafka_rd_kafka_set_logger=yes
24646 else
24647 ac_cv_lib_rdkafka_rd_kafka_set_logger=no
24648 fi
24649 rm -f core conftest.err conftest.$ac_objext \
24650 conftest$ac_exeext conftest.$ac_ext
24651 LIBS=$ac_check_lib_save_LIBS
24652 fi
24653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rdkafka_rd_kafka_set_logger" >&5
24654 $as_echo "$ac_cv_lib_rdkafka_rd_kafka_set_logger" >&6; }
24655 if test "x$ac_cv_lib_rdkafka_rd_kafka_set_logger" = xyes; then :
24656 with_librdkafka_logger="yes"
24657 else
24658 with_librdkafka_logger="no"
24659 fi
24661 fi
24662 if test "x$with_librdkafka" = "xyes"
24663 then
24664 BUILD_WITH_LIBRDKAFKA_CPPFLAGS="$with_librdkafka_cppflags"
24665 BUILD_WITH_LIBRDKAFKA_LDFLAGS="$with_librdkafka_ldflags"
24666 if test "x$with_librdkafka_rpath" != "x"
24667 then
24668 BUILD_WITH_LIBRDKAFKA_LIBS="-Wl,-rpath,$with_librdkafka_rpath -lrdkafka"
24669 else
24670 BUILD_WITH_LIBRDKAFKA_LIBS="-lrdkafka"
24671 fi
24676 $as_echo "#define HAVE_LIBRDKAFKA 1" >>confdefs.h
24678 if test "x$with_librdkafka_log_cb" = "xyes"
24679 then
24681 $as_echo "#define HAVE_LIBRDKAFKA_LOG_CB 1" >>confdefs.h
24683 fi
24684 if test "x$with_librdkafka_logger" = "xyes"
24685 then
24687 $as_echo "#define HAVE_LIBRDKAFKA_LOGGER 1" >>confdefs.h
24689 fi
24690 fi
24691 CPPFLAGS="$SAVE_CPPFLAGS"
24692 LDFLAGS="$SAVE_LDFLAGS"
24693 if test "x$with_librdkafka" = "xyes"; then
24694 BUILD_WITH_LIBRDKAFKA_TRUE=
24695 BUILD_WITH_LIBRDKAFKA_FALSE='#'
24696 else
24697 BUILD_WITH_LIBRDKAFKA_TRUE='#'
24698 BUILD_WITH_LIBRDKAFKA_FALSE=
24699 fi
24702 # }}}
24704 # --with-librouteros {{{
24706 # Check whether --with-librouteros was given.
24707 if test "${with_librouteros+set}" = set; then :
24708 withval=$with_librouteros;
24709 if test "x$withval" = "xyes"
24710 then
24711 with_librouteros="yes"
24712 else if test "x$withval" = "xno"
24713 then
24714 with_librouteros="no"
24715 else
24716 with_librouteros="yes"
24717 LIBROUTEROS_CPPFLAGS="$LIBROUTEROS_CPPFLAGS -I$withval/include"
24718 LIBROUTEROS_LDFLAGS="$LIBROUTEROS_LDFLAGS -L$withval/lib"
24719 fi; fi
24721 else
24722 with_librouteros="yes"
24723 fi
24726 SAVE_CPPFLAGS="$CPPFLAGS"
24727 SAVE_LDFLAGS="$LDFLAGS"
24729 CPPFLAGS="$CPPFLAGS $LIBROUTEROS_CPPFLAGS"
24730 LDFLAGS="$LDFLAGS $LIBROUTEROS_LDFLAGS"
24732 if test "x$with_librouteros" = "xyes"
24733 then
24734 if test "x$LIBROUTEROS_CPPFLAGS" != "x"
24735 then
24736 { $as_echo "$as_me:${as_lineno-$LINENO}: librouteros CPPFLAGS: $LIBROUTEROS_CPPFLAGS" >&5
24737 $as_echo "$as_me: librouteros CPPFLAGS: $LIBROUTEROS_CPPFLAGS" >&6;}
24738 fi
24739 for ac_header in routeros_api.h
24740 do :
24741 ac_fn_c_check_header_mongrel "$LINENO" "routeros_api.h" "ac_cv_header_routeros_api_h" "$ac_includes_default"
24742 if test "x$ac_cv_header_routeros_api_h" = xyes; then :
24743 cat >>confdefs.h <<_ACEOF
24744 #define HAVE_ROUTEROS_API_H 1
24745 _ACEOF
24746 with_librouteros="yes"
24747 else
24748 with_librouteros="no (routeros_api.h not found)"
24749 fi
24751 done
24753 fi
24754 if test "x$with_librouteros" = "xyes"
24755 then
24756 if test "x$LIBROUTEROS_LDFLAGS" != "x"
24757 then
24758 { $as_echo "$as_me:${as_lineno-$LINENO}: librouteros LDFLAGS: $LIBROUTEROS_LDFLAGS" >&5
24759 $as_echo "$as_me: librouteros LDFLAGS: $LIBROUTEROS_LDFLAGS" >&6;}
24760 fi
24761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ros_interface in -lrouteros" >&5
24762 $as_echo_n "checking for ros_interface in -lrouteros... " >&6; }
24763 if ${ac_cv_lib_routeros_ros_interface+:} false; then :
24764 $as_echo_n "(cached) " >&6
24765 else
24766 ac_check_lib_save_LIBS=$LIBS
24767 LIBS="-lrouteros $LIBS"
24768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24769 /* end confdefs.h. */
24771 /* Override any GCC internal prototype to avoid an error.
24772 Use char because int might match the return type of a GCC
24773 builtin and then its argument prototype would still apply. */
24774 #ifdef __cplusplus
24775 extern "C"
24776 #endif
24777 char ros_interface ();
24778 int
24779 main ()
24780 {
24781 return ros_interface ();
24782 ;
24783 return 0;
24784 }
24785 _ACEOF
24786 if ac_fn_c_try_link "$LINENO"; then :
24787 ac_cv_lib_routeros_ros_interface=yes
24788 else
24789 ac_cv_lib_routeros_ros_interface=no
24790 fi
24791 rm -f core conftest.err conftest.$ac_objext \
24792 conftest$ac_exeext conftest.$ac_ext
24793 LIBS=$ac_check_lib_save_LIBS
24794 fi
24795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_routeros_ros_interface" >&5
24796 $as_echo "$ac_cv_lib_routeros_ros_interface" >&6; }
24797 if test "x$ac_cv_lib_routeros_ros_interface" = xyes; then :
24798 with_librouteros="yes"
24799 else
24800 with_librouteros="no (symbol 'ros_interface' not found)"
24801 fi
24803 fi
24805 CPPFLAGS="$SAVE_CPPFLAGS"
24806 LDFLAGS="$SAVE_LDFLAGS"
24808 if test "x$with_librouteros" = "xyes"
24809 then
24810 BUILD_WITH_LIBROUTEROS_CPPFLAGS="$LIBROUTEROS_CPPFLAGS"
24811 BUILD_WITH_LIBROUTEROS_LDFLAGS="$LIBROUTEROS_LDFLAGS"
24814 fi
24815 if test "x$with_librouteros" = "xyes"; then
24816 BUILD_WITH_LIBROUTEROS_TRUE=
24817 BUILD_WITH_LIBROUTEROS_FALSE='#'
24818 else
24819 BUILD_WITH_LIBROUTEROS_TRUE='#'
24820 BUILD_WITH_LIBROUTEROS_FALSE=
24821 fi
24823 # }}}
24825 # --with-librrd {{{
24826 # AC_ARG_WITH (package, help-string, [action-if-given], [action-if-not-given])
24827 librrd_cflags=""
24828 librrd_ldflags=""
24829 librrd_threadsafe="yes"
24830 librrd_rrdc_update="no"
24832 # Check whether --with-librrd was given.
24833 if test "${with_librrd+set}" = set; then :
24834 withval=$with_librrd; if test "x$withval" != "xno" && test "x$withval" != "xyes"
24835 then
24836 librrd_cflags="-I$withval/include"
24837 librrd_ldflags="-L$withval/lib"
24838 with_librrd="yes"
24839 else
24840 with_librrd="$withval"
24841 fi
24843 else
24844 with_librrd="yes"
24845 fi
24847 if test "x$with_librrd" = "xyes"
24848 then
24849 SAVE_CPPFLAGS="$CPPFLAGS"
24850 SAVE_LDFLAGS="$LDFLAGS"
24852 CPPFLAGS="$CPPFLAGS $librrd_cflags"
24853 LDFLAGS="$LDFLAGS $librrd_ldflags"
24855 for ac_header in rrd.h
24856 do :
24857 ac_fn_c_check_header_mongrel "$LINENO" "rrd.h" "ac_cv_header_rrd_h" "$ac_includes_default"
24858 if test "x$ac_cv_header_rrd_h" = xyes; then :
24859 cat >>confdefs.h <<_ACEOF
24860 #define HAVE_RRD_H 1
24861 _ACEOF
24863 else
24864 with_librrd="no (rrd.h not found)"
24865 fi
24867 done
24870 CPPFLAGS="$SAVE_CPPFLAGS"
24871 LDFLAGS="$SAVE_LDFLAGS"
24872 fi
24873 if test "x$with_librrd" = "xyes"
24874 then
24875 SAVE_CPPFLAGS="$CPPFLAGS"
24876 SAVE_LDFLAGS="$LDFLAGS"
24878 CPPFLAGS="$CPPFLAGS $librrd_cflags"
24879 LDFLAGS="$LDFLAGS $librrd_ldflags"
24881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rrd_update_r in -lrrd_th" >&5
24882 $as_echo_n "checking for rrd_update_r in -lrrd_th... " >&6; }
24883 if ${ac_cv_lib_rrd_th_rrd_update_r+:} false; then :
24884 $as_echo_n "(cached) " >&6
24885 else
24886 ac_check_lib_save_LIBS=$LIBS
24887 LIBS="-lrrd_th -lm $LIBS"
24888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24889 /* end confdefs.h. */
24891 /* Override any GCC internal prototype to avoid an error.
24892 Use char because int might match the return type of a GCC
24893 builtin and then its argument prototype would still apply. */
24894 #ifdef __cplusplus
24895 extern "C"
24896 #endif
24897 char rrd_update_r ();
24898 int
24899 main ()
24900 {
24901 return rrd_update_r ();
24902 ;
24903 return 0;
24904 }
24905 _ACEOF
24906 if ac_fn_c_try_link "$LINENO"; then :
24907 ac_cv_lib_rrd_th_rrd_update_r=yes
24908 else
24909 ac_cv_lib_rrd_th_rrd_update_r=no
24910 fi
24911 rm -f core conftest.err conftest.$ac_objext \
24912 conftest$ac_exeext conftest.$ac_ext
24913 LIBS=$ac_check_lib_save_LIBS
24914 fi
24915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rrd_th_rrd_update_r" >&5
24916 $as_echo "$ac_cv_lib_rrd_th_rrd_update_r" >&6; }
24917 if test "x$ac_cv_lib_rrd_th_rrd_update_r" = xyes; then :
24918 with_librrd="yes"
24919 librrd_ldflags="$librrd_ldflags -lrrd_th -lm"
24921 else
24922 librrd_threadsafe="no"
24923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rrd_update in -lrrd" >&5
24924 $as_echo_n "checking for rrd_update in -lrrd... " >&6; }
24925 if ${ac_cv_lib_rrd_rrd_update+:} false; then :
24926 $as_echo_n "(cached) " >&6
24927 else
24928 ac_check_lib_save_LIBS=$LIBS
24929 LIBS="-lrrd -lm $LIBS"
24930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24931 /* end confdefs.h. */
24933 /* Override any GCC internal prototype to avoid an error.
24934 Use char because int might match the return type of a GCC
24935 builtin and then its argument prototype would still apply. */
24936 #ifdef __cplusplus
24937 extern "C"
24938 #endif
24939 char rrd_update ();
24940 int
24941 main ()
24942 {
24943 return rrd_update ();
24944 ;
24945 return 0;
24946 }
24947 _ACEOF
24948 if ac_fn_c_try_link "$LINENO"; then :
24949 ac_cv_lib_rrd_rrd_update=yes
24950 else
24951 ac_cv_lib_rrd_rrd_update=no
24952 fi
24953 rm -f core conftest.err conftest.$ac_objext \
24954 conftest$ac_exeext conftest.$ac_ext
24955 LIBS=$ac_check_lib_save_LIBS
24956 fi
24957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rrd_rrd_update" >&5
24958 $as_echo "$ac_cv_lib_rrd_rrd_update" >&6; }
24959 if test "x$ac_cv_lib_rrd_rrd_update" = xyes; then :
24960 with_librrd="yes"
24961 librrd_ldflags="$librrd_ldflags -lrrd -lm"
24963 else
24964 with_librrd="no (symbol 'rrd_update' not found)"
24965 fi
24968 fi
24971 if test "x$librrd_threadsafe" = "xyes"
24972 then
24973 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rrdc_update in -lrrd_th" >&5
24974 $as_echo_n "checking for rrdc_update in -lrrd_th... " >&6; }
24975 if ${ac_cv_lib_rrd_th_rrdc_update+:} false; then :
24976 $as_echo_n "(cached) " >&6
24977 else
24978 ac_check_lib_save_LIBS=$LIBS
24979 LIBS="-lrrd_th $LIBS"
24980 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
24981 /* end confdefs.h. */
24983 /* Override any GCC internal prototype to avoid an error.
24984 Use char because int might match the return type of a GCC
24985 builtin and then its argument prototype would still apply. */
24986 #ifdef __cplusplus
24987 extern "C"
24988 #endif
24989 char rrdc_update ();
24990 int
24991 main ()
24992 {
24993 return rrdc_update ();
24994 ;
24995 return 0;
24996 }
24997 _ACEOF
24998 if ac_fn_c_try_link "$LINENO"; then :
24999 ac_cv_lib_rrd_th_rrdc_update=yes
25000 else
25001 ac_cv_lib_rrd_th_rrdc_update=no
25002 fi
25003 rm -f core conftest.err conftest.$ac_objext \
25004 conftest$ac_exeext conftest.$ac_ext
25005 LIBS=$ac_check_lib_save_LIBS
25006 fi
25007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rrd_th_rrdc_update" >&5
25008 $as_echo "$ac_cv_lib_rrd_th_rrdc_update" >&6; }
25009 if test "x$ac_cv_lib_rrd_th_rrdc_update" = xyes; then :
25010 librrd_rrdc_update="yes"
25011 else
25012 librrd_rrdc_update="no"
25013 fi
25015 else
25016 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rrdc_update in -lrrd" >&5
25017 $as_echo_n "checking for rrdc_update in -lrrd... " >&6; }
25018 if ${ac_cv_lib_rrd_rrdc_update+:} false; then :
25019 $as_echo_n "(cached) " >&6
25020 else
25021 ac_check_lib_save_LIBS=$LIBS
25022 LIBS="-lrrd $LIBS"
25023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25024 /* end confdefs.h. */
25026 /* Override any GCC internal prototype to avoid an error.
25027 Use char because int might match the return type of a GCC
25028 builtin and then its argument prototype would still apply. */
25029 #ifdef __cplusplus
25030 extern "C"
25031 #endif
25032 char rrdc_update ();
25033 int
25034 main ()
25035 {
25036 return rrdc_update ();
25037 ;
25038 return 0;
25039 }
25040 _ACEOF
25041 if ac_fn_c_try_link "$LINENO"; then :
25042 ac_cv_lib_rrd_rrdc_update=yes
25043 else
25044 ac_cv_lib_rrd_rrdc_update=no
25045 fi
25046 rm -f core conftest.err conftest.$ac_objext \
25047 conftest$ac_exeext conftest.$ac_ext
25048 LIBS=$ac_check_lib_save_LIBS
25049 fi
25050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rrd_rrdc_update" >&5
25051 $as_echo "$ac_cv_lib_rrd_rrdc_update" >&6; }
25052 if test "x$ac_cv_lib_rrd_rrdc_update" = xyes; then :
25053 librrd_rrdc_update="yes"
25054 else
25055 librrd_rrdc_update="no"
25056 fi
25058 fi
25060 CPPFLAGS="$SAVE_CPPFLAGS"
25061 LDFLAGS="$SAVE_LDFLAGS"
25062 fi
25063 if test "x$with_librrd" = "xyes"
25064 then
25065 BUILD_WITH_LIBRRD_CFLAGS="$librrd_cflags"
25066 BUILD_WITH_LIBRRD_LDFLAGS="$librrd_ldflags"
25069 fi
25070 if test "x$librrd_threadsafe" = "xyes"
25071 then
25073 $as_echo "#define HAVE_THREADSAFE_LIBRRD 1" >>confdefs.h
25075 fi
25076 # }}}
25078 # --with-libsensors {{{
25079 with_sensors_cflags=""
25080 with_sensors_ldflags=""
25082 # Check whether --with-libsensors was given.
25083 if test "${with_libsensors+set}" = set; then :
25084 withval=$with_libsensors;
25085 if test "x$withval" = "xno"
25086 then
25087 with_libsensors="no"
25088 else
25089 with_libsensors="yes"
25090 if test "x$withval" != "xyes"
25091 then
25092 with_sensors_cflags="-I$withval/include"
25093 with_sensors_ldflags="-L$withval/lib"
25094 with_libsensors="yes"
25095 fi
25096 fi
25098 else
25100 if test "x$ac_system" = "xLinux"
25101 then
25102 with_libsensors="yes"
25103 else
25104 with_libsensors="no (Linux only library)"
25105 fi
25107 fi
25109 if test "x$with_libsensors" = "xyes"
25110 then
25111 SAVE_CPPFLAGS="$CPPFLAGS"
25112 CPPFLAGS="$CPPFLAGS $with_sensors_cflags"
25114 # AC_CHECK_HEADERS(sensors/sensors.h,
25115 # [
25116 # AC_DEFINE(HAVE_SENSORS_SENSORS_H, 1, [Define to 1 if you have the <sensors/sensors.h> header file.])
25117 # ],
25118 # [with_libsensors="no (sensors/sensors.h not found)"])
25119 for ac_header in sensors/sensors.h
25120 do :
25121 ac_fn_c_check_header_mongrel "$LINENO" "sensors/sensors.h" "ac_cv_header_sensors_sensors_h" "$ac_includes_default"
25122 if test "x$ac_cv_header_sensors_sensors_h" = xyes; then :
25123 cat >>confdefs.h <<_ACEOF
25124 #define HAVE_SENSORS_SENSORS_H 1
25125 _ACEOF
25127 else
25128 with_libsensors="no (sensors/sensors.h not found)"
25129 fi
25131 done
25134 CPPFLAGS="$SAVE_CPPFLAGS"
25135 fi
25136 if test "x$with_libsensors" = "xyes"
25137 then
25138 SAVE_CPPFLAGS="$CPPFLAGS"
25139 SAVE_LDFLAGS="$LDFLAGS"
25140 CPPFLAGS="$CPPFLAGS $with_sensors_cflags"
25141 LDFLAGS="$LDFLAGS $with_sensors_ldflags"
25143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sensors_init in -lsensors" >&5
25144 $as_echo_n "checking for sensors_init in -lsensors... " >&6; }
25145 if ${ac_cv_lib_sensors_sensors_init+:} false; then :
25146 $as_echo_n "(cached) " >&6
25147 else
25148 ac_check_lib_save_LIBS=$LIBS
25149 LIBS="-lsensors $LIBS"
25150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25151 /* end confdefs.h. */
25153 /* Override any GCC internal prototype to avoid an error.
25154 Use char because int might match the return type of a GCC
25155 builtin and then its argument prototype would still apply. */
25156 #ifdef __cplusplus
25157 extern "C"
25158 #endif
25159 char sensors_init ();
25160 int
25161 main ()
25162 {
25163 return sensors_init ();
25164 ;
25165 return 0;
25166 }
25167 _ACEOF
25168 if ac_fn_c_try_link "$LINENO"; then :
25169 ac_cv_lib_sensors_sensors_init=yes
25170 else
25171 ac_cv_lib_sensors_sensors_init=no
25172 fi
25173 rm -f core conftest.err conftest.$ac_objext \
25174 conftest$ac_exeext conftest.$ac_ext
25175 LIBS=$ac_check_lib_save_LIBS
25176 fi
25177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sensors_sensors_init" >&5
25178 $as_echo "$ac_cv_lib_sensors_sensors_init" >&6; }
25179 if test "x$ac_cv_lib_sensors_sensors_init" = xyes; then :
25182 $as_echo "#define HAVE_LIBSENSORS 1" >>confdefs.h
25185 else
25186 with_libsensors="no (libsensors not found)"
25187 fi
25190 CPPFLAGS="$SAVE_CPPFLAGS"
25191 LDFLAGS="$SAVE_LDFLAGS"
25192 fi
25193 if test "x$with_libsensors" = "xyes"
25194 then
25195 BUILD_WITH_LIBSENSORS_CFLAGS="$with_sensors_cflags"
25196 BUILD_WITH_LIBSENSORS_LDFLAGS="$with_sensors_ldflags"
25199 fi
25200 if test "x$with_libsensors" = "xyes"; then
25201 BUILD_WITH_LM_SENSORS_TRUE=
25202 BUILD_WITH_LM_SENSORS_FALSE='#'
25203 else
25204 BUILD_WITH_LM_SENSORS_TRUE='#'
25205 BUILD_WITH_LM_SENSORS_FALSE=
25206 fi
25208 # }}}
25210 # --with-libsigrok {{{
25211 with_libsigrok_cflags=""
25212 with_libsigrok_ldflags=""
25214 # Check whether --with-libsigrok was given.
25215 if test "${with_libsigrok+set}" = set; then :
25216 withval=$with_libsigrok;
25217 if test "x$withval" = "xno"
25218 then
25219 with_libsigrok="no"
25220 else
25221 with_libsigrok="yes"
25222 if test "x$withval" != "xyes"
25223 then
25224 with_libsigrok_cflags="-I$withval/include"
25225 with_libsigrok_ldflags="-L$withval/lib"
25226 fi
25227 fi
25229 else
25230 with_libsigrok="yes"
25231 fi
25234 # libsigrok has a glib dependency
25235 if test "x$with_libsigrok" = "xyes"
25236 then
25238 # Check whether --enable-glibtest was given.
25239 if test "${enable_glibtest+set}" = set; then :
25240 enableval=$enable_glibtest;
25241 else
25242 enable_glibtest=yes
25243 fi
25246 pkg_config_args=glib-2.0
25247 for module in .
25248 do
25249 case "$module" in
25250 gmodule)
25251 pkg_config_args="$pkg_config_args gmodule-2.0"
25252 ;;
25253 gmodule-no-export)
25254 pkg_config_args="$pkg_config_args gmodule-no-export-2.0"
25255 ;;
25256 gobject)
25257 pkg_config_args="$pkg_config_args gobject-2.0"
25258 ;;
25259 gthread)
25260 pkg_config_args="$pkg_config_args gthread-2.0"
25261 ;;
25262 gio*)
25263 pkg_config_args="$pkg_config_args $module-2.0"
25264 ;;
25265 esac
25266 done
25275 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
25276 if test -n "$ac_tool_prefix"; then
25277 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
25278 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
25279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25280 $as_echo_n "checking for $ac_word... " >&6; }
25281 if ${ac_cv_path_PKG_CONFIG+:} false; then :
25282 $as_echo_n "(cached) " >&6
25283 else
25284 case $PKG_CONFIG in
25285 [\\/]* | ?:[\\/]*)
25286 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
25287 ;;
25288 *)
25289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25290 for as_dir in $PATH
25291 do
25292 IFS=$as_save_IFS
25293 test -z "$as_dir" && as_dir=.
25294 for ac_exec_ext in '' $ac_executable_extensions; do
25295 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25296 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25298 break 2
25299 fi
25300 done
25301 done
25302 IFS=$as_save_IFS
25304 ;;
25305 esac
25306 fi
25307 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
25308 if test -n "$PKG_CONFIG"; then
25309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
25310 $as_echo "$PKG_CONFIG" >&6; }
25311 else
25312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25313 $as_echo "no" >&6; }
25314 fi
25317 fi
25318 if test -z "$ac_cv_path_PKG_CONFIG"; then
25319 ac_pt_PKG_CONFIG=$PKG_CONFIG
25320 # Extract the first word of "pkg-config", so it can be a program name with args.
25321 set dummy pkg-config; ac_word=$2
25322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
25323 $as_echo_n "checking for $ac_word... " >&6; }
25324 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
25325 $as_echo_n "(cached) " >&6
25326 else
25327 case $ac_pt_PKG_CONFIG in
25328 [\\/]* | ?:[\\/]*)
25329 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
25330 ;;
25331 *)
25332 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
25333 for as_dir in $PATH
25334 do
25335 IFS=$as_save_IFS
25336 test -z "$as_dir" && as_dir=.
25337 for ac_exec_ext in '' $ac_executable_extensions; do
25338 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
25339 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
25340 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
25341 break 2
25342 fi
25343 done
25344 done
25345 IFS=$as_save_IFS
25347 ;;
25348 esac
25349 fi
25350 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
25351 if test -n "$ac_pt_PKG_CONFIG"; then
25352 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
25353 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
25354 else
25355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25356 $as_echo "no" >&6; }
25357 fi
25359 if test "x$ac_pt_PKG_CONFIG" = x; then
25360 PKG_CONFIG=""
25361 else
25362 case $cross_compiling:$ac_tool_warned in
25363 yes:)
25364 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
25365 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
25366 ac_tool_warned=yes ;;
25367 esac
25368 PKG_CONFIG=$ac_pt_PKG_CONFIG
25369 fi
25370 else
25371 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
25372 fi
25374 fi
25375 if test -n "$PKG_CONFIG"; then
25376 _pkg_min_version=0.16
25377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
25378 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
25379 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
25380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
25381 $as_echo "yes" >&6; }
25382 else
25383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25384 $as_echo "no" >&6; }
25385 PKG_CONFIG=""
25386 fi
25387 fi
25389 no_glib=""
25391 if test "x$PKG_CONFIG" = x ; then
25392 no_glib=yes
25393 PKG_CONFIG=no
25394 fi
25396 min_glib_version=2.28.0
25397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GLIB - version >= $min_glib_version" >&5
25398 $as_echo_n "checking for GLIB - version >= $min_glib_version... " >&6; }
25400 if test x$PKG_CONFIG != xno ; then
25401 ## don't try to run the test against uninstalled libtool libs
25402 if $PKG_CONFIG --uninstalled $pkg_config_args; then
25403 echo "Will use uninstalled version of GLib found in PKG_CONFIG_PATH"
25404 enable_glibtest=no
25405 fi
25407 if $PKG_CONFIG --atleast-version $min_glib_version $pkg_config_args; then
25408 :
25409 else
25410 no_glib=yes
25411 fi
25412 fi
25414 if test x"$no_glib" = x ; then
25415 GLIB_GENMARSHAL=`$PKG_CONFIG --variable=glib_genmarshal glib-2.0`
25416 GOBJECT_QUERY=`$PKG_CONFIG --variable=gobject_query glib-2.0`
25417 GLIB_MKENUMS=`$PKG_CONFIG --variable=glib_mkenums glib-2.0`
25418 GLIB_COMPILE_RESOURCES=`$PKG_CONFIG --variable=glib_compile_resources gio-2.0`
25420 GLIB_CFLAGS=`$PKG_CONFIG --cflags $pkg_config_args`
25421 GLIB_LIBS=`$PKG_CONFIG --libs $pkg_config_args`
25422 glib_config_major_version=`$PKG_CONFIG --modversion glib-2.0 | \
25423 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\1/'`
25424 glib_config_minor_version=`$PKG_CONFIG --modversion glib-2.0 | \
25425 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\2/'`
25426 glib_config_micro_version=`$PKG_CONFIG --modversion glib-2.0 | \
25427 sed 's/\([0-9]*\).\([0-9]*\).\([0-9]*\)/\3/'`
25428 if test "x$enable_glibtest" = "xyes" ; then
25429 ac_save_CFLAGS="$CFLAGS"
25430 ac_save_LIBS="$LIBS"
25431 CFLAGS="$CFLAGS $GLIB_CFLAGS"
25432 LIBS="$GLIB_LIBS $LIBS"
25433 rm -f conf.glibtest
25434 if test "$cross_compiling" = yes; then :
25435 echo $ac_n "cross compiling; assumed OK... $ac_c"
25436 else
25437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25438 /* end confdefs.h. */
25440 #include <glib.h>
25441 #include <stdio.h>
25442 #include <stdlib.h>
25444 int
25445 main ()
25446 {
25447 unsigned int major, minor, micro;
25449 fclose (fopen ("conf.glibtest", "w"));
25451 if (sscanf("$min_glib_version", "%u.%u.%u", &major, &minor, µ) != 3) {
25452 printf("%s, bad version string\n", "$min_glib_version");
25453 exit(1);
25454 }
25456 if ((glib_major_version != $glib_config_major_version) ||
25457 (glib_minor_version != $glib_config_minor_version) ||
25458 (glib_micro_version != $glib_config_micro_version))
25459 {
25460 printf("\n*** 'pkg-config --modversion glib-2.0' returned %d.%d.%d, but GLIB (%d.%d.%d)\n",
25461 $glib_config_major_version, $glib_config_minor_version, $glib_config_micro_version,
25462 glib_major_version, glib_minor_version, glib_micro_version);
25463 printf ("*** was found! If pkg-config was correct, then it is best\n");
25464 printf ("*** to remove the old version of GLib. You may also be able to fix the error\n");
25465 printf("*** by modifying your LD_LIBRARY_PATH enviroment variable, or by editing\n");
25466 printf("*** /etc/ld.so.conf. Make sure you have run ldconfig if that is\n");
25467 printf("*** required on your system.\n");
25468 printf("*** If pkg-config was wrong, set the environment variable PKG_CONFIG_PATH\n");
25469 printf("*** to point to the correct configuration files\n");
25470 }
25471 else if ((glib_major_version != GLIB_MAJOR_VERSION) ||
25472 (glib_minor_version != GLIB_MINOR_VERSION) ||
25473 (glib_micro_version != GLIB_MICRO_VERSION))
25474 {
25475 printf("*** GLIB header files (version %d.%d.%d) do not match\n",
25476 GLIB_MAJOR_VERSION, GLIB_MINOR_VERSION, GLIB_MICRO_VERSION);
25477 printf("*** library (version %d.%d.%d)\n",
25478 glib_major_version, glib_minor_version, glib_micro_version);
25479 }
25480 else
25481 {
25482 if ((glib_major_version > major) ||
25483 ((glib_major_version == major) && (glib_minor_version > minor)) ||
25484 ((glib_major_version == major) && (glib_minor_version == minor) && (glib_micro_version >= micro)))
25485 {
25486 return 0;
25487 }
25488 else
25489 {
25490 printf("\n*** An old version of GLIB (%u.%u.%u) was found.\n",
25491 glib_major_version, glib_minor_version, glib_micro_version);
25492 printf("*** You need a version of GLIB newer than %u.%u.%u. The latest version of\n",
25493 major, minor, micro);
25494 printf("*** GLIB is always available from ftp://ftp.gtk.org.\n");
25495 printf("***\n");
25496 printf("*** If you have already installed a sufficiently new version, this error\n");
25497 printf("*** probably means that the wrong copy of the pkg-config shell script is\n");
25498 printf("*** being found. The easiest way to fix this is to remove the old version\n");
25499 printf("*** of GLIB, but you can also set the PKG_CONFIG environment to point to the\n");
25500 printf("*** correct copy of pkg-config. (In this case, you will have to\n");
25501 printf("*** modify your LD_LIBRARY_PATH enviroment variable, or edit /etc/ld.so.conf\n");
25502 printf("*** so that the correct libraries are found at run-time))\n");
25503 }
25504 }
25505 return 1;
25506 }
25508 _ACEOF
25509 if ac_fn_c_try_run "$LINENO"; then :
25511 else
25512 no_glib=yes
25513 fi
25514 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
25515 conftest.$ac_objext conftest.beam conftest.$ac_ext
25516 fi
25518 CFLAGS="$ac_save_CFLAGS"
25519 LIBS="$ac_save_LIBS"
25520 fi
25521 fi
25522 if test "x$no_glib" = x ; then
25523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&5
25524 $as_echo "yes (version $glib_config_major_version.$glib_config_minor_version.$glib_config_micro_version)" >&6; }
25525 with_libsigrok_cflags="$with_libsigrok_cflags $GLIB_CFLAGS"; with_libsigrok_ldflags="$with_libsigrok_ldflags $GLIB_LIBS"
25526 else
25527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
25528 $as_echo "no" >&6; }
25529 if test "$PKG_CONFIG" = "no" ; then
25530 echo "*** A new enough version of pkg-config was not found."
25531 echo "*** See http://www.freedesktop.org/software/pkgconfig/"
25532 else
25533 if test -f conf.glibtest ; then
25534 :
25535 else
25536 echo "*** Could not run GLIB test program, checking why..."
25537 ac_save_CFLAGS="$CFLAGS"
25538 ac_save_LIBS="$LIBS"
25539 CFLAGS="$CFLAGS $GLIB_CFLAGS"
25540 LIBS="$LIBS $GLIB_LIBS"
25541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25542 /* end confdefs.h. */
25544 #include <glib.h>
25545 #include <stdio.h>
25547 int
25548 main ()
25549 {
25550 return ((glib_major_version) || (glib_minor_version) || (glib_micro_version));
25551 ;
25552 return 0;
25553 }
25554 _ACEOF
25555 if ac_fn_c_try_link "$LINENO"; then :
25556 echo "*** The test program compiled, but did not run. This usually means"
25557 echo "*** that the run-time linker is not finding GLIB or finding the wrong"
25558 echo "*** version of GLIB. If it is not finding GLIB, you'll need to set your"
25559 echo "*** LD_LIBRARY_PATH environment variable, or edit /etc/ld.so.conf to point"
25560 echo "*** to the installed location Also, make sure you have run ldconfig if that"
25561 echo "*** is required on your system"
25562 echo "***"
25563 echo "*** If you have an old version installed, it is best to remove it, although"
25564 echo "*** you may also be able to get things to work by modifying LD_LIBRARY_PATH"
25565 else
25566 echo "*** The test program failed to compile or link. See the file config.log for the"
25567 echo "*** exact error that occured. This usually means GLIB is incorrectly installed."
25568 fi
25569 rm -f core conftest.err conftest.$ac_objext \
25570 conftest$ac_exeext conftest.$ac_ext
25571 CFLAGS="$ac_save_CFLAGS"
25572 LIBS="$ac_save_LIBS"
25573 fi
25574 fi
25575 GLIB_CFLAGS=""
25576 GLIB_LIBS=""
25577 GLIB_GENMARSHAL=""
25578 GOBJECT_QUERY=""
25579 GLIB_MKENUMS=""
25580 GLIB_COMPILE_RESOURCES=""
25581 :
25582 fi
25589 rm -f conf.glibtest
25592 fi
25594 # libsigrok headers
25595 if test "x$with_libsigrok" = "xyes"
25596 then
25597 SAVE_CPPFLAGS="$CPPFLAGS"
25598 CPPFLAGS="$CPPFLAGS $with_libsigrok_cflags"
25600 for ac_header in libsigrok/libsigrok.h
25601 do :
25602 ac_fn_c_check_header_mongrel "$LINENO" "libsigrok/libsigrok.h" "ac_cv_header_libsigrok_libsigrok_h" "$ac_includes_default"
25603 if test "x$ac_cv_header_libsigrok_libsigrok_h" = xyes; then :
25604 cat >>confdefs.h <<_ACEOF
25605 #define HAVE_LIBSIGROK_LIBSIGROK_H 1
25606 _ACEOF
25608 else
25609 with_libsigrok="no (libsigrok/libsigrok.h not found)"
25610 fi
25612 done
25615 CPPFLAGS="$SAVE_CPPFLAGS"
25616 fi
25618 # libsigrok library
25619 if test "x$with_libsigrok" = "xyes"
25620 then
25621 SAVE_CPPFLAGS="$CPPFLAGS"
25622 SAVE_LDFLAGS="$LDFLAGS"
25623 CPPFLAGS="$CPPFLAGS $with_libsigrok_cflags"
25624 LDFLAGS="$LDFLAGS $with_libsigrok_ldflags"
25626 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sr_init in -lsigrok" >&5
25627 $as_echo_n "checking for sr_init in -lsigrok... " >&6; }
25628 if ${ac_cv_lib_sigrok_sr_init+:} false; then :
25629 $as_echo_n "(cached) " >&6
25630 else
25631 ac_check_lib_save_LIBS=$LIBS
25632 LIBS="-lsigrok $LIBS"
25633 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25634 /* end confdefs.h. */
25636 /* Override any GCC internal prototype to avoid an error.
25637 Use char because int might match the return type of a GCC
25638 builtin and then its argument prototype would still apply. */
25639 #ifdef __cplusplus
25640 extern "C"
25641 #endif
25642 char sr_init ();
25643 int
25644 main ()
25645 {
25646 return sr_init ();
25647 ;
25648 return 0;
25649 }
25650 _ACEOF
25651 if ac_fn_c_try_link "$LINENO"; then :
25652 ac_cv_lib_sigrok_sr_init=yes
25653 else
25654 ac_cv_lib_sigrok_sr_init=no
25655 fi
25656 rm -f core conftest.err conftest.$ac_objext \
25657 conftest$ac_exeext conftest.$ac_ext
25658 LIBS=$ac_check_lib_save_LIBS
25659 fi
25660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sigrok_sr_init" >&5
25661 $as_echo "$ac_cv_lib_sigrok_sr_init" >&6; }
25662 if test "x$ac_cv_lib_sigrok_sr_init" = xyes; then :
25665 $as_echo "#define HAVE_LIBSIGROK 1" >>confdefs.h
25668 else
25669 with_libsigrok="no (libsigrok not found)"
25670 fi
25673 CPPFLAGS="$SAVE_CPPFLAGS"
25674 LDFLAGS="$SAVE_LDFLAGS"
25675 fi
25676 if test "x$with_libsigrok" = "xyes"
25677 then
25678 BUILD_WITH_LIBSIGROK_CFLAGS="$with_libsigrok_cflags"
25679 BUILD_WITH_LIBSIGROK_LDFLAGS="$with_libsigrok_ldflags"
25682 fi
25683 if test "x$with_libsigrok" = "xyes"; then
25684 BUILD_WITH_LIBSIGROK_TRUE=
25685 BUILD_WITH_LIBSIGROK_FALSE='#'
25686 else
25687 BUILD_WITH_LIBSIGROK_TRUE='#'
25688 BUILD_WITH_LIBSIGROK_FALSE=
25689 fi
25691 # }}}
25693 # --with-libstatgrab {{{
25694 with_libstatgrab_cflags=""
25695 with_libstatgrab_ldflags=""
25697 # Check whether --with-libstatgrab was given.
25698 if test "${with_libstatgrab+set}" = set; then :
25699 withval=$with_libstatgrab;
25700 if test "x$withval" != "xno" \
25701 && test "x$withval" != "xyes"
25702 then
25703 with_libstatgrab_cflags="-I$withval/include"
25704 with_libstatgrab_ldflags="-L$withval/lib -lstatgrab"
25705 with_libstatgrab="yes"
25706 with_libstatgrab_pkg_config="no"
25707 else
25708 with_libstatgrab="$withval"
25709 with_libstatgrab_pkg_config="yes"
25710 fi
25712 else
25714 with_libstatgrab="yes"
25715 with_libstatgrab_pkg_config="yes"
25717 fi
25720 if test "x$with_libstatgrab" = "xyes" \
25721 && test "x$with_libstatgrab_pkg_config" = "xyes"
25722 then
25723 if test "x$PKG_CONFIG" != "x"
25724 then
25725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config for libstatgrab" >&5
25726 $as_echo_n "checking pkg-config for libstatgrab... " >&6; }
25727 temp_result="found"
25728 $PKG_CONFIG --exists libstatgrab 2>/dev/null
25729 if test "$?" != "0"
25730 then
25731 with_libstatgrab_pkg_config="no"
25732 with_libstatgrab="no (pkg-config doesn't know libstatgrab)"
25733 temp_result="not found"
25734 fi
25735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $temp_result" >&5
25736 $as_echo "$temp_result" >&6; }
25737 else
25738 { $as_echo "$as_me:${as_lineno-$LINENO}: pkg-config not available, trying to guess flags for the statgrab library." >&5
25739 $as_echo "$as_me: pkg-config not available, trying to guess flags for the statgrab library." >&6;}
25740 with_libstatgrab_pkg_config="no"
25741 with_libstatgrab_ldflags="$with_libstatgrab_ldflags -lstatgrab"
25742 fi
25743 fi
25745 if test "x$with_libstatgrab" = "xyes" \
25746 && test "x$with_libstatgrab_pkg_config" = "xyes" \
25747 && test "x$with_libstatgrab_cflags" = "x"
25748 then
25749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libstatgrab CFLAGS" >&5
25750 $as_echo_n "checking for libstatgrab CFLAGS... " >&6; }
25751 temp_result="`$PKG_CONFIG --cflags libstatgrab`"
25752 if test "$?" = "0"
25753 then
25754 with_libstatgrab_cflags="$temp_result"
25755 else
25756 with_libstatgrab="no ($PKG_CONFIG --cflags libstatgrab failed)"
25757 temp_result="$PKG_CONFIG --cflags libstatgrab failed"
25758 fi
25759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $temp_result" >&5
25760 $as_echo "$temp_result" >&6; }
25761 fi
25763 if test "x$with_libstatgrab" = "xyes" \
25764 && test "x$with_libstatgrab_pkg_config" = "xyes" \
25765 && test "x$with_libstatgrab_ldflags" = "x"
25766 then
25767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libstatgrab LDFLAGS" >&5
25768 $as_echo_n "checking for libstatgrab LDFLAGS... " >&6; }
25769 temp_result="`$PKG_CONFIG --libs libstatgrab`"
25770 if test "$?" = "0"
25771 then
25772 with_libstatgrab_ldflags="$temp_result"
25773 else
25774 with_libstatgrab="no ($PKG_CONFIG --libs libstatgrab failed)"
25775 temp_result="$PKG_CONFIG --libs libstatgrab failed"
25776 fi
25777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $temp_result" >&5
25778 $as_echo "$temp_result" >&6; }
25779 fi
25781 if test "x$with_libstatgrab" = "xyes"
25782 then
25783 SAVE_CPPFLAGS="$CPPFLAGS"
25784 CPPFLAGS="$CPPFLAGS $with_libstatgrab_cflags"
25786 for ac_header in statgrab.h
25787 do :
25788 ac_fn_c_check_header_mongrel "$LINENO" "statgrab.h" "ac_cv_header_statgrab_h" "$ac_includes_default"
25789 if test "x$ac_cv_header_statgrab_h" = xyes; then :
25790 cat >>confdefs.h <<_ACEOF
25791 #define HAVE_STATGRAB_H 1
25792 _ACEOF
25793 with_libstatgrab="yes"
25794 else
25795 with_libstatgrab="no (statgrab.h not found)"
25796 fi
25798 done
25801 CPPFLAGS="$SAVE_CPPFLAGS"
25802 fi
25804 if test "x$with_libstatgrab" = "xyes"
25805 then
25806 SAVE_CFLAGS="$CFLAGS"
25807 SAVE_LDFLAGS="$LDFLAGS"
25809 CFLAGS="$CFLAGS $with_libstatgrab_cflags"
25810 LDFLAGS="$LDFLAGS $with_libstatgrab_ldflags"
25812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sg_init in -lstatgrab" >&5
25813 $as_echo_n "checking for sg_init in -lstatgrab... " >&6; }
25814 if ${ac_cv_lib_statgrab_sg_init+:} false; then :
25815 $as_echo_n "(cached) " >&6
25816 else
25817 ac_check_lib_save_LIBS=$LIBS
25818 LIBS="-lstatgrab $LIBS"
25819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25820 /* end confdefs.h. */
25822 /* Override any GCC internal prototype to avoid an error.
25823 Use char because int might match the return type of a GCC
25824 builtin and then its argument prototype would still apply. */
25825 #ifdef __cplusplus
25826 extern "C"
25827 #endif
25828 char sg_init ();
25829 int
25830 main ()
25831 {
25832 return sg_init ();
25833 ;
25834 return 0;
25835 }
25836 _ACEOF
25837 if ac_fn_c_try_link "$LINENO"; then :
25838 ac_cv_lib_statgrab_sg_init=yes
25839 else
25840 ac_cv_lib_statgrab_sg_init=no
25841 fi
25842 rm -f core conftest.err conftest.$ac_objext \
25843 conftest$ac_exeext conftest.$ac_ext
25844 LIBS=$ac_check_lib_save_LIBS
25845 fi
25846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_statgrab_sg_init" >&5
25847 $as_echo "$ac_cv_lib_statgrab_sg_init" >&6; }
25848 if test "x$ac_cv_lib_statgrab_sg_init" = xyes; then :
25849 with_libstatgrab="yes"
25850 else
25851 with_libstatgrab="no (symbol sg_init not found)"
25852 fi
25855 CFLAGS="$SAVE_CFLAGS"
25856 LDFLAGS="$SAVE_LDFLAGS"
25857 fi
25859 if test "x$with_libstatgrab" = "xyes"
25860 then
25861 SAVE_CFLAGS="$CFLAGS"
25862 SAVE_LIBS="$LIBS"
25864 CFLAGS="$CFLAGS $with_libstatgrab_cflags"
25865 LDFLAGS="$LDFLAGS $with_libstatgrab_ldflags"
25866 LIBS="-lstatgrab $LIBS"
25868 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if libstatgrab >= 0.90" >&5
25869 $as_echo_n "checking if libstatgrab >= 0.90... " >&6; }
25870 if ${c_cv_have_libstatgrab_0_90+:} false; then :
25871 $as_echo_n "(cached) " >&6
25872 else
25873 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
25874 /* end confdefs.h. */
25876 #include <stdio.h>
25877 #include <statgrab.h>
25879 int
25880 main ()
25881 {
25883 if (sg_init()) return 0;
25886 ;
25887 return 0;
25888 }
25889 _ACEOF
25890 if ac_fn_c_try_link "$LINENO"; then :
25891 c_cv_have_libstatgrab_0_90="no"
25892 else
25893 c_cv_have_libstatgrab_0_90="yes"
25895 fi
25896 rm -f core conftest.err conftest.$ac_objext \
25897 conftest$ac_exeext conftest.$ac_ext
25899 fi
25900 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $c_cv_have_libstatgrab_0_90" >&5
25901 $as_echo "$c_cv_have_libstatgrab_0_90" >&6; }
25903 CFLAGS="$SAVE_CFLAGS"
25904 LDFLAGS="$SAVE_LDFLAGS"
25905 LIBS="$SAVE_LIBS"
25906 fi
25908 if test "x$with_libstatgrab" = "xyes"; then
25909 BUILD_WITH_LIBSTATGRAB_TRUE=
25910 BUILD_WITH_LIBSTATGRAB_FALSE='#'
25911 else
25912 BUILD_WITH_LIBSTATGRAB_TRUE='#'
25913 BUILD_WITH_LIBSTATGRAB_FALSE=
25914 fi
25916 if test "x$with_libstatgrab" = "xyes"
25917 then
25919 $as_echo "#define HAVE_LIBSTATGRAB 1" >>confdefs.h
25921 BUILD_WITH_LIBSTATGRAB_CFLAGS="$with_libstatgrab_cflags"
25922 BUILD_WITH_LIBSTATGRAB_LDFLAGS="$with_libstatgrab_ldflags"
25925 if test "x$c_cv_have_libstatgrab_0_90" = "xyes"
25926 then
25928 $as_echo "#define HAVE_LIBSTATGRAB_0_90 1" >>confdefs.h
25930 fi
25931 fi
25932 # }}}
25934 # --with-libtokyotyrant {{{
25935 with_libtokyotyrant_cppflags=""
25936 with_libtokyotyrant_ldflags=""
25937 with_libtokyotyrant_libs=""
25939 # Check whether --with-libtokyotyrant was given.
25940 if test "${with_libtokyotyrant+set}" = set; then :
25941 withval=$with_libtokyotyrant;
25942 if test "x$withval" = "xno"
25943 then
25944 with_libtokyotyrant="no"
25945 else if test "x$withval" = "xyes"
25946 then
25947 with_libtokyotyrant="yes"
25948 else
25949 with_libtokyotyrant_cppflags="-I$withval/include"
25950 with_libtokyotyrant_ldflags="-L$withval/include"
25951 with_libtokyotyrant_libs="-ltokyotyrant"
25952 with_libtokyotyrant="yes"
25953 fi; fi
25955 else
25957 with_libtokyotyrant="yes"
25959 fi
25962 if test "x$with_libtokyotyrant" = "xyes"
25963 then
25964 if $PKG_CONFIG --exists tokyotyrant
25965 then
25966 with_libtokyotyrant_cppflags="$with_libtokyotyrant_cppflags `$PKG_CONFIG --cflags tokyotyrant`"
25967 with_libtokyotyrant_ldflags="$with_libtokyotyrant_ldflags `$PKG_CONFIG --libs-only-L tokyotyrant`"
25968 with_libtokyotyrant_libs="$with_libtokyotyrant_libs `$PKG_CONFIG --libs-only-l tokyotyrant`"
25969 fi
25970 fi
25972 SAVE_CPPFLAGS="$CPPFLAGS"
25973 SAVE_LDFLAGS="$LDFLAGS"
25974 CPPFLAGS="$CPPFLAGS $with_libtokyotyrant_cppflags"
25975 LDFLAGS="$LDFLAGS $with_libtokyotyrant_ldflags"
25977 if test "x$with_libtokyotyrant" = "xyes"
25978 then
25979 for ac_header in tcrdb.h
25980 do :
25981 ac_fn_c_check_header_mongrel "$LINENO" "tcrdb.h" "ac_cv_header_tcrdb_h" "$ac_includes_default"
25982 if test "x$ac_cv_header_tcrdb_h" = xyes; then :
25983 cat >>confdefs.h <<_ACEOF
25984 #define HAVE_TCRDB_H 1
25985 _ACEOF
25988 $as_echo "#define HAVE_TCRDB_H 1" >>confdefs.h
25991 else
25992 with_libtokyotyrant="no (tcrdb.h not found)"
25993 fi
25995 done
25997 fi
25999 if test "x$with_libtokyotyrant" = "xyes"
26000 then
26001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for tcrdbrnum in -ltokyotyrant" >&5
26002 $as_echo_n "checking for tcrdbrnum in -ltokyotyrant... " >&6; }
26003 if ${ac_cv_lib_tokyotyrant_tcrdbrnum+:} false; then :
26004 $as_echo_n "(cached) " >&6
26005 else
26006 ac_check_lib_save_LIBS=$LIBS
26007 LIBS="-ltokyotyrant $with_libtokyotyrant_libs $LIBS"
26008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26009 /* end confdefs.h. */
26011 /* Override any GCC internal prototype to avoid an error.
26012 Use char because int might match the return type of a GCC
26013 builtin and then its argument prototype would still apply. */
26014 #ifdef __cplusplus
26015 extern "C"
26016 #endif
26017 char tcrdbrnum ();
26018 int
26019 main ()
26020 {
26021 return tcrdbrnum ();
26022 ;
26023 return 0;
26024 }
26025 _ACEOF
26026 if ac_fn_c_try_link "$LINENO"; then :
26027 ac_cv_lib_tokyotyrant_tcrdbrnum=yes
26028 else
26029 ac_cv_lib_tokyotyrant_tcrdbrnum=no
26030 fi
26031 rm -f core conftest.err conftest.$ac_objext \
26032 conftest$ac_exeext conftest.$ac_ext
26033 LIBS=$ac_check_lib_save_LIBS
26034 fi
26035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_tokyotyrant_tcrdbrnum" >&5
26036 $as_echo "$ac_cv_lib_tokyotyrant_tcrdbrnum" >&6; }
26037 if test "x$ac_cv_lib_tokyotyrant_tcrdbrnum" = xyes; then :
26040 $as_echo "#define HAVE_LIBTOKYOTYRANT 1" >>confdefs.h
26043 else
26044 with_libtokyotyrant="no (symbol tcrdbrnum not found)"
26045 fi
26047 fi
26049 CPPFLAGS="$SAVE_CPPFLAGS"
26050 LDFLAGS="$SAVE_LDFLAGS"
26052 if test "x$with_libtokyotyrant" = "xyes"
26053 then
26054 BUILD_WITH_LIBTOKYOTYRANT_CPPFLAGS="$with_libtokyotyrant_cppflags"
26055 BUILD_WITH_LIBTOKYOTYRANT_LDFLAGS="$with_libtokyotyrant_ldflags"
26056 BUILD_WITH_LIBTOKYOTYRANT_LIBS="$with_libtokyotyrant_libs"
26060 fi
26061 if test "x$with_libtokyotyrant" = "xyes"; then
26062 BUILD_WITH_LIBTOKYOTYRANT_TRUE=
26063 BUILD_WITH_LIBTOKYOTYRANT_FALSE='#'
26064 else
26065 BUILD_WITH_LIBTOKYOTYRANT_TRUE='#'
26066 BUILD_WITH_LIBTOKYOTYRANT_FALSE=
26067 fi
26069 # }}}
26071 # --with-libudev {{{
26072 with_libudev_cflags=""
26073 with_libudev_ldflags=""
26075 # Check whether --with-libudev was given.
26076 if test "${with_libudev+set}" = set; then :
26077 withval=$with_libudev;
26078 if test "x$withval" = "xno"
26079 then
26080 with_libudev="no"
26081 else
26082 with_libudev="yes"
26083 if test "x$withval" != "xyes"
26084 then
26085 with_libudev_cflags="-I$withval/include"
26086 with_libudev_ldflags="-L$withval/lib"
26087 with_libudev="yes"
26088 fi
26089 fi
26091 else
26093 if test "x$ac_system" = "xLinux"
26094 then
26095 with_libudev="yes"
26096 else
26097 with_libudev="no (Linux only library)"
26098 fi
26100 fi
26102 if test "x$with_libudev" = "xyes"
26103 then
26104 SAVE_CPPFLAGS="$CPPFLAGS"
26105 CPPFLAGS="$CPPFLAGS $with_libudev_cflags"
26107 for ac_header in libudev.h
26108 do :
26109 ac_fn_c_check_header_mongrel "$LINENO" "libudev.h" "ac_cv_header_libudev_h" "$ac_includes_default"
26110 if test "x$ac_cv_header_libudev_h" = xyes; then :
26111 cat >>confdefs.h <<_ACEOF
26112 #define HAVE_LIBUDEV_H 1
26113 _ACEOF
26115 else
26116 with_libudev="no (libudev.h not found)"
26117 fi
26119 done
26122 CPPFLAGS="$SAVE_CPPFLAGS"
26123 fi
26124 if test "x$with_libudev" = "xyes"
26125 then
26126 SAVE_CPPFLAGS="$CPPFLAGS"
26127 SAVE_LDFLAGS="$LDFLAGS"
26128 CPPFLAGS="$CPPFLAGS $with_libudev_cflags"
26129 LDFLAGS="$LDFLAGS $with_libudev_ldflags"
26131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for udev_new in -ludev" >&5
26132 $as_echo_n "checking for udev_new in -ludev... " >&6; }
26133 if ${ac_cv_lib_udev_udev_new+:} false; then :
26134 $as_echo_n "(cached) " >&6
26135 else
26136 ac_check_lib_save_LIBS=$LIBS
26137 LIBS="-ludev $LIBS"
26138 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26139 /* end confdefs.h. */
26141 /* Override any GCC internal prototype to avoid an error.
26142 Use char because int might match the return type of a GCC
26143 builtin and then its argument prototype would still apply. */
26144 #ifdef __cplusplus
26145 extern "C"
26146 #endif
26147 char udev_new ();
26148 int
26149 main ()
26150 {
26151 return udev_new ();
26152 ;
26153 return 0;
26154 }
26155 _ACEOF
26156 if ac_fn_c_try_link "$LINENO"; then :
26157 ac_cv_lib_udev_udev_new=yes
26158 else
26159 ac_cv_lib_udev_udev_new=no
26160 fi
26161 rm -f core conftest.err conftest.$ac_objext \
26162 conftest$ac_exeext conftest.$ac_ext
26163 LIBS=$ac_check_lib_save_LIBS
26164 fi
26165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_udev_udev_new" >&5
26166 $as_echo "$ac_cv_lib_udev_udev_new" >&6; }
26167 if test "x$ac_cv_lib_udev_udev_new" = xyes; then :
26170 $as_echo "#define HAVE_LIBUDEV 1" >>confdefs.h
26173 else
26174 with_libudev="no (libudev not found)"
26175 fi
26178 CPPFLAGS="$SAVE_CPPFLAGS"
26179 LDFLAGS="$SAVE_LDFLAGS"
26180 fi
26181 if test "x$with_libudev" = "xyes"
26182 then
26183 BUILD_WITH_LIBUDEV_CFLAGS="$with_libudev_cflags"
26184 BUILD_WITH_LIBUDEV_LDFLAGS="$with_libudev_ldflags"
26187 fi
26188 if test "x$with_libudev" = "xyes"; then
26189 BUILD_WITH_LIBUDEV_TRUE=
26190 BUILD_WITH_LIBUDEV_FALSE='#'
26191 else
26192 BUILD_WITH_LIBUDEV_TRUE='#'
26193 BUILD_WITH_LIBUDEV_FALSE=
26194 fi
26196 # }}}
26198 # --with-libupsclient {{{
26199 with_libupsclient_config=""
26200 with_libupsclient_cflags=""
26201 with_libupsclient_libs=""
26203 # Check whether --with-libupsclient was given.
26204 if test "${with_libupsclient+set}" = set; then :
26205 withval=$with_libupsclient;
26206 if test "x$withval" = "xno"
26207 then
26208 with_libupsclient="no"
26209 else if test "x$withval" = "xyes"
26210 then
26211 with_libupsclient="use_pkgconfig"
26212 else
26213 if test -x "$withval"
26214 then
26215 with_libupsclient_config="$withval"
26216 with_libupsclient="use_libupsclient_config"
26217 else if test -x "$withval/bin/libupsclient-config"
26218 then
26219 with_libupsclient_config="$withval/bin/libupsclient-config"
26220 with_libupsclient="use_libupsclient_config"
26221 else
26222 { $as_echo "$as_me:${as_lineno-$LINENO}: Not checking for libupsclient: Manually configured" >&5
26223 $as_echo "$as_me: Not checking for libupsclient: Manually configured" >&6;}
26224 with_libupsclient_cflags="-I$withval/include"
26225 with_libupsclient_libs="-L$withval/lib -lupsclient"
26226 with_libupsclient="yes"
26227 fi; fi
26228 fi; fi
26230 else
26231 with_libupsclient="use_pkgconfig"
26232 fi
26235 # configure using libupsclient-config
26236 if test "x$with_libupsclient" = "xuse_libupsclient_config"
26237 then
26238 { $as_echo "$as_me:${as_lineno-$LINENO}: Checking for libupsclient using $with_libupsclient_config" >&5
26239 $as_echo "$as_me: Checking for libupsclient using $with_libupsclient_config" >&6;}
26240 with_libupsclient_cflags="`$with_libupsclient_config --cflags`"
26241 if test $? -ne 0
26242 then
26243 with_libupsclient="no ($with_libupsclient_config failed)"
26244 fi
26245 with_libupsclient_libs="`$with_libupsclient_config --libs`"
26246 if test $? -ne 0
26247 then
26248 with_libupsclient="no ($with_libupsclient_config failed)"
26249 fi
26250 fi
26251 if test "x$with_libupsclient" = "xuse_libupsclient_config"
26252 then
26253 with_libupsclient="yes"
26254 fi
26256 # configure using pkg-config
26257 if test "x$with_libupsclient" = "xuse_pkgconfig"
26258 then
26259 if test "x$PKG_CONFIG" = "x"
26260 then
26261 with_libupsclient="no (Don't have pkg-config)"
26262 fi
26263 fi
26264 if test "x$with_libupsclient" = "xuse_pkgconfig"
26265 then
26266 { $as_echo "$as_me:${as_lineno-$LINENO}: Checking for libupsclient using $PKG_CONFIG" >&5
26267 $as_echo "$as_me: Checking for libupsclient using $PKG_CONFIG" >&6;}
26268 $PKG_CONFIG --exists 'libupsclient' 2>/dev/null
26269 if test $? -ne 0
26270 then
26271 with_libupsclient="no (pkg-config doesn't know libupsclient)"
26272 fi
26273 fi
26274 if test "x$with_libupsclient" = "xuse_pkgconfig"
26275 then
26276 with_libupsclient_cflags="`$PKG_CONFIG --cflags 'libupsclient'`"
26277 if test $? -ne 0
26278 then
26279 with_libupsclient="no ($PKG_CONFIG failed)"
26280 fi
26281 with_libupsclient_libs="`$PKG_CONFIG --libs 'libupsclient'`"
26282 if test $? -ne 0
26283 then
26284 with_libupsclient="no ($PKG_CONFIG failed)"
26285 fi
26286 fi
26287 if test "x$with_libupsclient" = "xuse_pkgconfig"
26288 then
26289 with_libupsclient="yes"
26290 fi
26292 # with_libupsclient_cflags and with_libupsclient_libs are set up now, let's do
26293 # the actual checks.
26294 if test "x$with_libupsclient" = "xyes"
26295 then
26296 SAVE_CPPFLAGS="$CPPFLAGS"
26297 CPPFLAGS="$CPPFLAGS $with_libupsclient_cflags"
26299 for ac_header in upsclient.h
26300 do :
26301 ac_fn_c_check_header_mongrel "$LINENO" "upsclient.h" "ac_cv_header_upsclient_h" "$ac_includes_default"
26302 if test "x$ac_cv_header_upsclient_h" = xyes; then :
26303 cat >>confdefs.h <<_ACEOF
26304 #define HAVE_UPSCLIENT_H 1
26305 _ACEOF
26307 else
26308 with_libupsclient="no (upsclient.h not found)"
26309 fi
26311 done
26314 CPPFLAGS="$SAVE_CPPFLAGS"
26315 fi
26316 if test "x$with_libupsclient" = "xyes"
26317 then
26318 SAVE_CPPFLAGS="$CPPFLAGS"
26319 SAVE_LDFLAGS="$LDFLAGS"
26321 CPPFLAGS="$CPPFLAGS $with_libupsclient_cflags"
26322 LDFLAGS="$LDFLAGS $with_libupsclient_libs"
26324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for upscli_connect in -lupsclient" >&5
26325 $as_echo_n "checking for upscli_connect in -lupsclient... " >&6; }
26326 if ${ac_cv_lib_upsclient_upscli_connect+:} false; then :
26327 $as_echo_n "(cached) " >&6
26328 else
26329 ac_check_lib_save_LIBS=$LIBS
26330 LIBS="-lupsclient $LIBS"
26331 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26332 /* end confdefs.h. */
26334 /* Override any GCC internal prototype to avoid an error.
26335 Use char because int might match the return type of a GCC
26336 builtin and then its argument prototype would still apply. */
26337 #ifdef __cplusplus
26338 extern "C"
26339 #endif
26340 char upscli_connect ();
26341 int
26342 main ()
26343 {
26344 return upscli_connect ();
26345 ;
26346 return 0;
26347 }
26348 _ACEOF
26349 if ac_fn_c_try_link "$LINENO"; then :
26350 ac_cv_lib_upsclient_upscli_connect=yes
26351 else
26352 ac_cv_lib_upsclient_upscli_connect=no
26353 fi
26354 rm -f core conftest.err conftest.$ac_objext \
26355 conftest$ac_exeext conftest.$ac_ext
26356 LIBS=$ac_check_lib_save_LIBS
26357 fi
26358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_upsclient_upscli_connect" >&5
26359 $as_echo "$ac_cv_lib_upsclient_upscli_connect" >&6; }
26360 if test "x$ac_cv_lib_upsclient_upscli_connect" = xyes; then :
26361 with_libupsclient="yes"
26362 else
26363 with_libupsclient="no (symbol upscli_connect not found)"
26364 fi
26367 CPPFLAGS="$SAVE_CPPFLAGS"
26368 LDFLAGS="$SAVE_LDFLAGS"
26369 fi
26370 if test "x$with_libupsclient" = "xyes"
26371 then
26372 SAVE_CPPFLAGS="$CPPFLAGS"
26373 CPPFLAGS="$CPPFLAGS $with_libupsclient_cflags"
26375 ac_fn_c_check_type "$LINENO" "UPSCONN_t" "ac_cv_type_UPSCONN_t" "#include <stdlib.h>
26376 #include <stdio.h>
26377 #include <upsclient.h>
26378 "
26379 if test "x$ac_cv_type_UPSCONN_t" = xyes; then :
26381 cat >>confdefs.h <<_ACEOF
26382 #define HAVE_UPSCONN_T 1
26383 _ACEOF
26386 fi
26387 ac_fn_c_check_type "$LINENO" "UPSCONN" "ac_cv_type_UPSCONN" "#include <stdlib.h>
26388 #include <stdio.h>
26389 #include <upsclient.h>
26390 "
26391 if test "x$ac_cv_type_UPSCONN" = xyes; then :
26393 cat >>confdefs.h <<_ACEOF
26394 #define HAVE_UPSCONN 1
26395 _ACEOF
26398 fi
26401 CPPFLAGS="$SAVE_CPPFLAGS"
26402 fi
26403 if test "x$with_libupsclient" = "xyes"
26404 then
26405 BUILD_WITH_LIBUPSCLIENT_CFLAGS="$with_libupsclient_cflags"
26406 BUILD_WITH_LIBUPSCLIENT_LIBS="$with_libupsclient_libs"
26409 fi
26410 # }}}
26412 # --with-libxmms {{{
26413 with_xmms_config="xmms-config"
26414 with_xmms_cflags=""
26415 with_xmms_libs=""
26417 # Check whether --with-libxmms was given.
26418 if test "${with_libxmms+set}" = set; then :
26419 withval=$with_libxmms;
26420 if test "x$withval" != "xno" \
26421 && test "x$withval" != "xyes"
26422 then
26423 if test -f "$withval" && test -x "$withval";
26424 then
26425 with_xmms_config="$withval"
26426 else if test -x "$withval/bin/xmms-config"
26427 then
26428 with_xmms_config="$withval/bin/xmms-config"
26429 fi; fi
26430 with_libxmms="yes"
26431 else if test "x$withval" = "xno"
26432 then
26433 with_libxmms="no"
26434 else
26435 with_libxmms="yes"
26436 fi; fi
26438 else
26440 with_libxmms="yes"
26442 fi
26444 if test "x$with_libxmms" = "xyes"
26445 then
26446 with_xmms_cflags=`$with_xmms_config --cflags 2>/dev/null`
26447 xmms_config_status=$?
26449 if test $xmms_config_status -ne 0
26450 then
26451 with_libxmms="no"
26452 fi
26453 fi
26454 if test "x$with_libxmms" = "xyes"
26455 then
26456 with_xmms_libs=`$with_xmms_config --libs 2>/dev/null`
26457 xmms_config_status=$?
26459 if test $xmms_config_status -ne 0
26460 then
26461 with_libxmms="no"
26462 fi
26463 fi
26464 if test "x$with_libxmms" = "xyes"
26465 then
26466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmms_remote_get_info in -lxmms" >&5
26467 $as_echo_n "checking for xmms_remote_get_info in -lxmms... " >&6; }
26468 if ${ac_cv_lib_xmms_xmms_remote_get_info+:} false; then :
26469 $as_echo_n "(cached) " >&6
26470 else
26471 ac_check_lib_save_LIBS=$LIBS
26472 LIBS="-lxmms $with_xmms_libs $LIBS"
26473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26474 /* end confdefs.h. */
26476 /* Override any GCC internal prototype to avoid an error.
26477 Use char because int might match the return type of a GCC
26478 builtin and then its argument prototype would still apply. */
26479 #ifdef __cplusplus
26480 extern "C"
26481 #endif
26482 char xmms_remote_get_info ();
26483 int
26484 main ()
26485 {
26486 return xmms_remote_get_info ();
26487 ;
26488 return 0;
26489 }
26490 _ACEOF
26491 if ac_fn_c_try_link "$LINENO"; then :
26492 ac_cv_lib_xmms_xmms_remote_get_info=yes
26493 else
26494 ac_cv_lib_xmms_xmms_remote_get_info=no
26495 fi
26496 rm -f core conftest.err conftest.$ac_objext \
26497 conftest$ac_exeext conftest.$ac_ext
26498 LIBS=$ac_check_lib_save_LIBS
26499 fi
26500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xmms_xmms_remote_get_info" >&5
26501 $as_echo "$ac_cv_lib_xmms_xmms_remote_get_info" >&6; }
26502 if test "x$ac_cv_lib_xmms_xmms_remote_get_info" = xyes; then :
26504 BUILD_WITH_LIBXMMS_CFLAGS="$with_xmms_cflags"
26505 BUILD_WITH_LIBXMMS_LIBS="$with_xmms_libs"
26509 else
26511 with_libxmms="no"
26513 fi
26515 fi
26516 with_libxmms_numeric=0
26517 if test "x$with_libxmms" = "xyes"
26518 then
26519 with_libxmms_numeric=1
26520 fi
26522 cat >>confdefs.h <<_ACEOF
26523 #define HAVE_LIBXMMS $with_libxmms_numeric
26524 _ACEOF
26526 if test "x$with_libxmms" = "xyes"; then
26527 BUILD_WITH_LIBXMMS_TRUE=
26528 BUILD_WITH_LIBXMMS_FALSE='#'
26529 else
26530 BUILD_WITH_LIBXMMS_TRUE='#'
26531 BUILD_WITH_LIBXMMS_FALSE=
26532 fi
26534 # }}}
26536 # --with-libyajl {{{
26537 with_libyajl_cppflags=""
26538 with_libyajl_ldflags=""
26540 # Check whether --with-libyajl was given.
26541 if test "${with_libyajl+set}" = set; then :
26542 withval=$with_libyajl;
26543 if test "x$withval" != "xno" && test "x$withval" != "xyes"
26544 then
26545 with_libyajl_cppflags="-I$withval/include"
26546 with_libyajl_ldflags="-L$withval/lib"
26547 with_libyajl="yes"
26548 else
26549 with_libyajl="$withval"
26550 fi
26552 else
26554 with_libyajl="yes"
26556 fi
26558 if test "x$with_libyajl" = "xyes"
26559 then
26560 SAVE_CPPFLAGS="$CPPFLAGS"
26561 CPPFLAGS="$CPPFLAGS $with_libyajl_cppflags"
26563 for ac_header in yajl/yajl_parse.h
26564 do :
26565 ac_fn_c_check_header_mongrel "$LINENO" "yajl/yajl_parse.h" "ac_cv_header_yajl_yajl_parse_h" "$ac_includes_default"
26566 if test "x$ac_cv_header_yajl_yajl_parse_h" = xyes; then :
26567 cat >>confdefs.h <<_ACEOF
26568 #define HAVE_YAJL_YAJL_PARSE_H 1
26569 _ACEOF
26570 with_libyajl="yes"
26571 else
26572 with_libyajl="no (yajl/yajl_parse.h not found)"
26573 fi
26575 done
26577 for ac_header in yajl/yajl_version.h
26578 do :
26579 ac_fn_c_check_header_mongrel "$LINENO" "yajl/yajl_version.h" "ac_cv_header_yajl_yajl_version_h" "$ac_includes_default"
26580 if test "x$ac_cv_header_yajl_yajl_version_h" = xyes; then :
26581 cat >>confdefs.h <<_ACEOF
26582 #define HAVE_YAJL_YAJL_VERSION_H 1
26583 _ACEOF
26585 fi
26587 done
26590 CPPFLAGS="$SAVE_CPPFLAGS"
26591 fi
26592 if test "x$with_libyajl" = "xyes"
26593 then
26594 SAVE_CPPFLAGS="$CPPFLAGS"
26595 SAVE_LDFLAGS="$LDFLAGS"
26596 CPPFLAGS="$CPPFLAGS $with_libyajl_cppflags"
26597 LDFLAGS="$LDFLAGS $with_libyajl_ldflags"
26599 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for yajl_alloc in -lyajl" >&5
26600 $as_echo_n "checking for yajl_alloc in -lyajl... " >&6; }
26601 if ${ac_cv_lib_yajl_yajl_alloc+:} false; then :
26602 $as_echo_n "(cached) " >&6
26603 else
26604 ac_check_lib_save_LIBS=$LIBS
26605 LIBS="-lyajl $LIBS"
26606 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26607 /* end confdefs.h. */
26609 /* Override any GCC internal prototype to avoid an error.
26610 Use char because int might match the return type of a GCC
26611 builtin and then its argument prototype would still apply. */
26612 #ifdef __cplusplus
26613 extern "C"
26614 #endif
26615 char yajl_alloc ();
26616 int
26617 main ()
26618 {
26619 return yajl_alloc ();
26620 ;
26621 return 0;
26622 }
26623 _ACEOF
26624 if ac_fn_c_try_link "$LINENO"; then :
26625 ac_cv_lib_yajl_yajl_alloc=yes
26626 else
26627 ac_cv_lib_yajl_yajl_alloc=no
26628 fi
26629 rm -f core conftest.err conftest.$ac_objext \
26630 conftest$ac_exeext conftest.$ac_ext
26631 LIBS=$ac_check_lib_save_LIBS
26632 fi
26633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_yajl_yajl_alloc" >&5
26634 $as_echo "$ac_cv_lib_yajl_yajl_alloc" >&6; }
26635 if test "x$ac_cv_lib_yajl_yajl_alloc" = xyes; then :
26636 with_libyajl="yes"
26637 else
26638 with_libyajl="no (Symbol 'yajl_alloc' not found)"
26639 fi
26642 CPPFLAGS="$SAVE_CPPFLAGS"
26643 LDFLAGS="$SAVE_LDFLAGS"
26644 fi
26645 if test "x$with_libyajl" = "xyes"
26646 then
26647 BUILD_WITH_LIBYAJL_CPPFLAGS="$with_libyajl_cppflags"
26648 BUILD_WITH_LIBYAJL_LDFLAGS="$with_libyajl_ldflags"
26649 BUILD_WITH_LIBYAJL_LIBS="-lyajl"
26654 $as_echo "#define HAVE_LIBYAJL 1" >>confdefs.h
26656 fi
26657 if test "x$with_libyajl" = "xyes"; then
26658 BUILD_WITH_LIBYAJL_TRUE=
26659 BUILD_WITH_LIBYAJL_FALSE='#'
26660 else
26661 BUILD_WITH_LIBYAJL_TRUE='#'
26662 BUILD_WITH_LIBYAJL_FALSE=
26663 fi
26665 # }}}
26667 # --with-mic {{{
26668 with_mic_cflags="-I/opt/intel/mic/sysmgmt/sdk/include"
26669 with_mic_ldpath="-L/opt/intel/mic/sysmgmt/sdk/lib/Linux"
26670 with_mic_libs=""
26672 # Check whether --with-mic was given.
26673 if test "${with_mic+set}" = set; then :
26674 withval=$with_mic;
26675 if test "x$withval" = "xno"
26676 then
26677 with_mic="no"
26678 else if test "x$withval" = "xyes"
26679 then
26680 with_mic="yes"
26681 else if test -d "$with_mic/lib"
26682 then
26683 { $as_echo "$as_me:${as_lineno-$LINENO}: Not checking for Intel Mic: Manually configured" >&5
26684 $as_echo "$as_me: Not checking for Intel Mic: Manually configured" >&6;}
26685 with_mic_cflags="-I$withval/include"
26686 with_mic_ldpath="-L$withval/lib/Linux"
26687 with_mic_libs="-lMicAccessSDK -lscif -lpthread"
26688 with_mic="yes"
26689 fi; fi; fi
26691 else
26692 with_mic="yes"
26693 fi
26695 if test "x$with_mic" = "xyes"
26696 then
26697 SAVE_CPPFLAGS="$CPPFLAGS"
26698 CPPFLAGS="$CPPFLAGS $with_mic_cflags"
26699 for ac_header in MicAccessApi.h
26700 do :
26701 ac_fn_c_check_header_mongrel "$LINENO" "MicAccessApi.h" "ac_cv_header_MicAccessApi_h" "$ac_includes_default"
26702 if test "x$ac_cv_header_MicAccessApi_h" = xyes; then :
26703 cat >>confdefs.h <<_ACEOF
26704 #define HAVE_MICACCESSAPI_H 1
26705 _ACEOF
26707 else
26708 with_mic="no (MicAccessApi not found)"
26709 fi
26711 done
26713 CPPFLAGS="$SAVE_CPPFLAGS"
26714 fi
26715 if test "x$with_mic" = "xyes"
26716 then
26717 SAVE_CPPFLAGS="$CPPFLAGS"
26718 SAVE_LDFLAGS="$LDFLAGS"
26720 CPPFLAGS="$CPPFLAGS $with_mic_cflags"
26721 LDFLAGS="$LDFLAGS $with_mic_ldpath"
26723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for MicInitAPI in -lMicAccessSDK" >&5
26724 $as_echo_n "checking for MicInitAPI in -lMicAccessSDK... " >&6; }
26725 if ${ac_cv_lib_MicAccessSDK_MicInitAPI+:} false; then :
26726 $as_echo_n "(cached) " >&6
26727 else
26728 ac_check_lib_save_LIBS=$LIBS
26729 LIBS="-lMicAccessSDK -lscif -lpthread $LIBS"
26730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26731 /* end confdefs.h. */
26733 /* Override any GCC internal prototype to avoid an error.
26734 Use char because int might match the return type of a GCC
26735 builtin and then its argument prototype would still apply. */
26736 #ifdef __cplusplus
26737 extern "C"
26738 #endif
26739 char MicInitAPI ();
26740 int
26741 main ()
26742 {
26743 return MicInitAPI ();
26744 ;
26745 return 0;
26746 }
26747 _ACEOF
26748 if ac_fn_c_try_link "$LINENO"; then :
26749 ac_cv_lib_MicAccessSDK_MicInitAPI=yes
26750 else
26751 ac_cv_lib_MicAccessSDK_MicInitAPI=no
26752 fi
26753 rm -f core conftest.err conftest.$ac_objext \
26754 conftest$ac_exeext conftest.$ac_ext
26755 LIBS=$ac_check_lib_save_LIBS
26756 fi
26757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_MicAccessSDK_MicInitAPI" >&5
26758 $as_echo "$ac_cv_lib_MicAccessSDK_MicInitAPI" >&6; }
26759 if test "x$ac_cv_lib_MicAccessSDK_MicInitAPI" = xyes; then :
26760 with_mic_ldpath="$with_mic_ldpath"
26761 with_mic_libs="-lMicAccessSDK -lscif -lpthread"
26762 else
26763 with_mic="no (symbol MicInitAPI not found)"
26764 fi
26767 CPPFLAGS="$SAVE_CPPFLAGS"
26768 LDFLAGS="$SAVE_LDFLAGS"
26769 fi
26771 if test "x$with_mic" = "xyes"
26772 then
26773 BUILD_WITH_MIC_CPPFLAGS="$with_mic_cflags"
26774 BUILD_WITH_MIC_LIBPATH="$with_mic_ldpath"
26775 BUILD_WITH_MIC_LDADD="$with_mic_libs"
26779 fi
26780 #}}}
26782 # --with-libvarnish {{{
26783 with_libvarnish_cppflags=""
26784 with_libvarnish_cflags=""
26785 with_libvarnish_libs=""
26787 # Check whether --with-libvarnish was given.
26788 if test "${with_libvarnish+set}" = set; then :
26789 withval=$with_libvarnish;
26790 if test "x$withval" = "xno"
26791 then
26792 with_libvarnish="no"
26793 else if test "x$withval" = "xyes"
26794 then
26795 with_libvarnish="use_pkgconfig"
26796 else if test -d "$with_libvarnish/lib"
26797 then
26798 { $as_echo "$as_me:${as_lineno-$LINENO}: Not checking for libvarnish: Manually configured" >&5
26799 $as_echo "$as_me: Not checking for libvarnish: Manually configured" >&6;}
26800 with_libvarnish_cflags="-I$withval/include"
26801 with_libvarnish_libs="-L$withval/lib -lvarnishapi"
26802 with_libvarnish="yes"
26803 fi; fi; fi
26805 else
26806 with_libvarnish="use_pkgconfig"
26807 fi
26810 # configure using pkg-config
26811 if test "x$with_libvarnish" = "xuse_pkgconfig"
26812 then
26813 if test "x$PKG_CONFIG" = "x"
26814 then
26815 with_libvarnish="no (Don't have pkg-config)"
26816 fi
26817 fi
26818 if test "x$with_libvarnish" = "xuse_pkgconfig"
26819 then
26820 { $as_echo "$as_me:${as_lineno-$LINENO}: Checking for varnishapi using $PKG_CONFIG" >&5
26821 $as_echo "$as_me: Checking for varnishapi using $PKG_CONFIG" >&6;}
26822 $PKG_CONFIG --exists 'varnishapi' 2>/dev/null
26823 if test $? -ne 0
26824 then
26825 with_libvarnish="no (pkg-config doesn't know varnishapi)"
26826 fi
26827 fi
26828 if test "x$with_libvarnish" = "xuse_pkgconfig"
26829 then
26830 with_libvarnish_cflags="`$PKG_CONFIG --cflags 'varnishapi'`"
26831 if test $? -ne 0
26832 then
26833 with_libvarnish="no ($PKG_CONFIG failed)"
26834 fi
26835 with_libvarnish_libs="`$PKG_CONFIG --libs 'varnishapi'`"
26836 if test $? -ne 0
26837 then
26838 with_libvarnish="no ($PKG_CONFIG failed)"
26839 fi
26840 fi
26841 if test "x$with_libvarnish" = "xuse_pkgconfig"
26842 then
26843 with_libvarnish="yes"
26844 fi
26846 # with_libvarnish_cflags and with_libvarnish_libs are set up now, let's do
26847 # the actual checks.
26848 if test "x$with_libvarnish" = "xyes"
26849 then
26850 SAVE_CPPFLAGS="$CPPFLAGS"
26852 CPPFLAGS="$CPPFLAGS $with_libvarnish_cflags"
26854 for ac_header in varnish/vapi/vsc.h
26855 do :
26856 ac_fn_c_check_header_mongrel "$LINENO" "varnish/vapi/vsc.h" "ac_cv_header_varnish_vapi_vsc_h" "$ac_includes_default"
26857 if test "x$ac_cv_header_varnish_vapi_vsc_h" = xyes; then :
26858 cat >>confdefs.h <<_ACEOF
26859 #define HAVE_VARNISH_VAPI_VSC_H 1
26860 _ACEOF
26862 $as_echo "#define HAVE_VARNISH_V4 1" >>confdefs.h
26864 else
26865 for ac_header in varnish/vsc.h
26866 do :
26867 ac_fn_c_check_header_mongrel "$LINENO" "varnish/vsc.h" "ac_cv_header_varnish_vsc_h" "$ac_includes_default"
26868 if test "x$ac_cv_header_varnish_vsc_h" = xyes; then :
26869 cat >>confdefs.h <<_ACEOF
26870 #define HAVE_VARNISH_VSC_H 1
26871 _ACEOF
26873 $as_echo "#define HAVE_VARNISH_V3 1" >>confdefs.h
26875 else
26876 for ac_header in varnish/varnishapi.h
26877 do :
26878 ac_fn_c_check_header_mongrel "$LINENO" "varnish/varnishapi.h" "ac_cv_header_varnish_varnishapi_h" "$ac_includes_default"
26879 if test "x$ac_cv_header_varnish_varnishapi_h" = xyes; then :
26880 cat >>confdefs.h <<_ACEOF
26881 #define HAVE_VARNISH_VARNISHAPI_H 1
26882 _ACEOF
26884 $as_echo "#define HAVE_VARNISH_V2 1" >>confdefs.h
26886 else
26887 with_libvarnish="no (found none of the varnish header files)"
26888 fi
26890 done
26892 fi
26894 done
26896 fi
26898 done
26901 CPPFLAGS="$SAVE_CPPFLAGS"
26902 fi
26903 if test "x$with_libvarnish" = "xyes"
26904 then
26905 BUILD_WITH_LIBVARNISH_CFLAGS="$with_libvarnish_cflags"
26906 BUILD_WITH_LIBVARNISH_LIBS="$with_libvarnish_libs"
26909 fi
26910 # }}}
26912 # pkg-config --exists 'libxml-2.0'; pkg-config --exists libvirt {{{
26913 with_libxml2="no (pkg-config isn't available)"
26914 with_libxml2_cflags=""
26915 with_libxml2_ldflags=""
26916 with_libvirt="no (pkg-config isn't available)"
26917 with_libvirt_cflags=""
26918 with_libvirt_ldflags=""
26919 if test "x$PKG_CONFIG" != "x"
26920 then
26921 $PKG_CONFIG --exists 'libxml-2.0' 2>/dev/null
26922 if test "$?" = "0"
26923 then
26924 with_libxml2="yes"
26925 else
26926 with_libxml2="no (pkg-config doesn't know libxml-2.0)"
26927 fi
26929 $PKG_CONFIG --exists libvirt 2>/dev/null
26930 if test "$?" = "0"
26931 then
26932 with_libvirt="yes"
26933 else
26934 with_libvirt="no (pkg-config doesn't know libvirt)"
26935 fi
26936 fi
26937 if test "x$with_libxml2" = "xyes"
26938 then
26939 with_libxml2_cflags="`$PKG_CONFIG --cflags libxml-2.0`"
26940 if test $? -ne 0
26941 then
26942 with_libxml2="no"
26943 fi
26944 with_libxml2_ldflags="`$PKG_CONFIG --libs libxml-2.0`"
26945 if test $? -ne 0
26946 then
26947 with_libxml2="no"
26948 fi
26949 fi
26950 if test "x$with_libxml2" = "xyes"
26951 then
26952 SAVE_CPPFLAGS="$CPPFLAGS"
26953 CPPFLAGS="$CPPFLAGS $with_libxml2_cflags"
26955 for ac_header in libxml/parser.h
26956 do :
26957 ac_fn_c_check_header_mongrel "$LINENO" "libxml/parser.h" "ac_cv_header_libxml_parser_h" "$ac_includes_default"
26958 if test "x$ac_cv_header_libxml_parser_h" = xyes; then :
26959 cat >>confdefs.h <<_ACEOF
26960 #define HAVE_LIBXML_PARSER_H 1
26961 _ACEOF
26963 else
26964 with_libxml2="no (libxml/parser.h not found)"
26965 fi
26967 done
26970 CPPFLAGS="$SAVE_CPPFLAGS"
26971 fi
26972 if test "x$with_libxml2" = "xyes"
26973 then
26974 SAVE_CFLAGS="$CFLAGS"
26975 SAVE_LDFLAGS="$LDFLAGS"
26977 CFLAGS="$CFLAGS $with_libxml2_cflags"
26978 LDFLAGS="$LDFLAGS $with_libxml2_ldflags"
26980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for xmlXPathEval in -lxml2" >&5
26981 $as_echo_n "checking for xmlXPathEval in -lxml2... " >&6; }
26982 if ${ac_cv_lib_xml2_xmlXPathEval+:} false; then :
26983 $as_echo_n "(cached) " >&6
26984 else
26985 ac_check_lib_save_LIBS=$LIBS
26986 LIBS="-lxml2 $LIBS"
26987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
26988 /* end confdefs.h. */
26990 /* Override any GCC internal prototype to avoid an error.
26991 Use char because int might match the return type of a GCC
26992 builtin and then its argument prototype would still apply. */
26993 #ifdef __cplusplus
26994 extern "C"
26995 #endif
26996 char xmlXPathEval ();
26997 int
26998 main ()
26999 {
27000 return xmlXPathEval ();
27001 ;
27002 return 0;
27003 }
27004 _ACEOF
27005 if ac_fn_c_try_link "$LINENO"; then :
27006 ac_cv_lib_xml2_xmlXPathEval=yes
27007 else
27008 ac_cv_lib_xml2_xmlXPathEval=no
27009 fi
27010 rm -f core conftest.err conftest.$ac_objext \
27011 conftest$ac_exeext conftest.$ac_ext
27012 LIBS=$ac_check_lib_save_LIBS
27013 fi
27014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_xml2_xmlXPathEval" >&5
27015 $as_echo "$ac_cv_lib_xml2_xmlXPathEval" >&6; }
27016 if test "x$ac_cv_lib_xml2_xmlXPathEval" = xyes; then :
27017 with_libxml2="yes"
27018 else
27019 with_libxml2="no (symbol xmlXPathEval not found)"
27020 fi
27023 CFLAGS="$SAVE_CFLAGS"
27024 LDFLAGS="$SAVE_LDFLAGS"
27025 fi
27026 if test "x$with_libxml2" = "xyes"; then
27027 BUILD_WITH_LIBXML2_CFLAGS="$with_libxml2_cflags"
27028 BUILD_WITH_LIBXML2_LIBS="$with_libxml2_ldflags"
27031 fi
27032 if test "x$with_libvirt" = "xyes"
27033 then
27034 with_libvirt_cflags="`$PKG_CONFIG --cflags libvirt`"
27035 if test $? -ne 0
27036 then
27037 with_libvirt="no"
27038 fi
27039 with_libvirt_ldflags="`$PKG_CONFIG --libs libvirt`"
27040 if test $? -ne 0
27041 then
27042 with_libvirt="no"
27043 fi
27044 fi
27045 if test "x$with_libvirt" = "xyes"
27046 then
27047 SAVE_CPPFLAGS="$CPPFLAGS"
27048 CPPFLAGS="$CPPFLAGS $with_libvirt_cflags"
27050 for ac_header in libvirt/libvirt.h
27051 do :
27052 ac_fn_c_check_header_mongrel "$LINENO" "libvirt/libvirt.h" "ac_cv_header_libvirt_libvirt_h" "$ac_includes_default"
27053 if test "x$ac_cv_header_libvirt_libvirt_h" = xyes; then :
27054 cat >>confdefs.h <<_ACEOF
27055 #define HAVE_LIBVIRT_LIBVIRT_H 1
27056 _ACEOF
27058 else
27059 with_libvirt="no (libvirt/libvirt.h not found)"
27060 fi
27062 done
27065 CPPFLAGS="$SAVE_CPPFLAGS"
27066 fi
27067 if test "x$with_libvirt" = "xyes"
27068 then
27069 SAVE_CFLAGS="$CFLAGS"
27070 SAVE_LDFLAGS="$LDFLAGS"
27072 CFLAGS="$CFLAGS $with_libvirt_cflags"
27073 LDFLAGS="$LDFLAGS $with_libvirt_ldflags"
27075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for virDomainBlockStats in -lvirt" >&5
27076 $as_echo_n "checking for virDomainBlockStats in -lvirt... " >&6; }
27077 if ${ac_cv_lib_virt_virDomainBlockStats+:} false; then :
27078 $as_echo_n "(cached) " >&6
27079 else
27080 ac_check_lib_save_LIBS=$LIBS
27081 LIBS="-lvirt $LIBS"
27082 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27083 /* end confdefs.h. */
27085 /* Override any GCC internal prototype to avoid an error.
27086 Use char because int might match the return type of a GCC
27087 builtin and then its argument prototype would still apply. */
27088 #ifdef __cplusplus
27089 extern "C"
27090 #endif
27091 char virDomainBlockStats ();
27092 int
27093 main ()
27094 {
27095 return virDomainBlockStats ();
27096 ;
27097 return 0;
27098 }
27099 _ACEOF
27100 if ac_fn_c_try_link "$LINENO"; then :
27101 ac_cv_lib_virt_virDomainBlockStats=yes
27102 else
27103 ac_cv_lib_virt_virDomainBlockStats=no
27104 fi
27105 rm -f core conftest.err conftest.$ac_objext \
27106 conftest$ac_exeext conftest.$ac_ext
27107 LIBS=$ac_check_lib_save_LIBS
27108 fi
27109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_virt_virDomainBlockStats" >&5
27110 $as_echo "$ac_cv_lib_virt_virDomainBlockStats" >&6; }
27111 if test "x$ac_cv_lib_virt_virDomainBlockStats" = xyes; then :
27112 with_libvirt="yes"
27113 else
27114 with_libvirt="no (symbol virDomainBlockStats not found)"
27115 fi
27118 CFLAGS="$SAVE_CFLAGS"
27119 LDFLAGS="$SAVE_LDFLAGS"
27120 fi
27121 if test "x$with_libvirt" = "xyes"; then
27122 BUILD_WITH_LIBVIRT_CFLAGS="$with_libvirt_cflags"
27123 BUILD_WITH_LIBVIRT_LIBS="$with_libvirt_ldflags"
27126 fi
27127 # }}}
27129 # $PKG_CONFIG --exists OpenIPMIpthread {{{
27130 with_libopenipmipthread="yes"
27131 with_libopenipmipthread_cflags=""
27132 with_libopenipmipthread_libs=""
27134 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pkg-config" >&5
27135 $as_echo_n "checking for pkg-config... " >&6; }
27136 temp_result="no"
27137 if test "x$PKG_CONFIG" = "x"
27138 then
27139 with_libopenipmipthread="no"
27140 temp_result="no"
27141 else
27142 temp_result="$PKG_CONFIG"
27143 fi
27144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $temp_result" >&5
27145 $as_echo "$temp_result" >&6; }
27147 if test "x$with_libopenipmipthread" = "xyes"
27148 then
27149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libOpenIPMIpthread" >&5
27150 $as_echo_n "checking for libOpenIPMIpthread... " >&6; }
27151 $PKG_CONFIG --exists OpenIPMIpthread 2>/dev/null
27152 if test "$?" != "0"
27153 then
27154 with_libopenipmipthread="no (pkg-config doesn't know OpenIPMIpthread)"
27155 fi
27156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_libopenipmipthread" >&5
27157 $as_echo "$with_libopenipmipthread" >&6; }
27158 fi
27160 if test "x$with_libopenipmipthread" = "xyes"
27161 then
27162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libOpenIPMIpthread CFLAGS" >&5
27163 $as_echo_n "checking for libOpenIPMIpthread CFLAGS... " >&6; }
27164 temp_result="`$PKG_CONFIG --cflags OpenIPMIpthread`"
27165 if test "$?" = "0"
27166 then
27167 with_libopenipmipthread_cflags="$temp_result"
27168 else
27169 with_libopenipmipthread="no ($PKG_CONFIG --cflags OpenIPMIpthread failed)"
27170 temp_result="$PKG_CONFIG --cflags OpenIPMIpthread failed"
27171 fi
27172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $temp_result" >&5
27173 $as_echo "$temp_result" >&6; }
27174 fi
27176 if test "x$with_libopenipmipthread" = "xyes"
27177 then
27178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libOpenIPMIpthread LDFLAGS" >&5
27179 $as_echo_n "checking for libOpenIPMIpthread LDFLAGS... " >&6; }
27180 temp_result="`$PKG_CONFIG --libs OpenIPMIpthread`"
27181 if test "$?" = "0"
27182 then
27183 with_libopenipmipthread_ldflags="$temp_result"
27184 else
27185 with_libopenipmipthread="no ($PKG_CONFIG --libs OpenIPMIpthread failed)"
27186 temp_result="$PKG_CONFIG --libs OpenIPMIpthread failed"
27187 fi
27188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $temp_result" >&5
27189 $as_echo "$temp_result" >&6; }
27190 fi
27192 if test "x$with_libopenipmipthread" = "xyes"
27193 then
27194 SAVE_CPPFLAGS="$CPPFLAGS"
27195 CPPFLAGS="$CPPFLAGS $with_libopenipmipthread_cflags"
27197 for ac_header in OpenIPMI/ipmi_smi.h
27198 do :
27199 ac_fn_c_check_header_compile "$LINENO" "OpenIPMI/ipmi_smi.h" "ac_cv_header_OpenIPMI_ipmi_smi_h" "#include <OpenIPMI/ipmiif.h>
27200 #include <OpenIPMI/ipmi_err.h>
27201 #include <OpenIPMI/ipmi_posix.h>
27202 #include <OpenIPMI/ipmi_conn.h>
27204 "
27205 if test "x$ac_cv_header_OpenIPMI_ipmi_smi_h" = xyes; then :
27206 cat >>confdefs.h <<_ACEOF
27207 #define HAVE_OPENIPMI_IPMI_SMI_H 1
27208 _ACEOF
27209 with_libopenipmipthread="yes"
27210 else
27211 with_libopenipmipthread="no (OpenIPMI/ipmi_smi.h not found)"
27212 fi
27214 done
27217 CPPFLAGS="$SAVE_CPPFLAGS"
27218 fi
27220 if test "x$with_libopenipmipthread" = "xyes"
27221 then
27222 BUILD_WITH_OPENIPMI_CFLAGS="$with_libopenipmipthread_cflags"
27223 BUILD_WITH_OPENIPMI_LIBS="$with_libopenipmipthread_ldflags"
27226 fi
27227 # }}}
27229 # --with-libatasmart {{{
27230 with_libatasmart_cppflags=""
27231 with_libatasmart_ldflags=""
27233 # Check whether --with-libatasmart was given.
27234 if test "${with_libatasmart+set}" = set; then :
27235 withval=$with_libatasmart;
27236 if test "x$withval" != "xno" && test "x$withval" != "xyes"
27237 then
27238 with_libatasmart_cppflags="-I$withval/include"
27239 with_libatasmart_ldflags="-L$withval/lib"
27240 with_libatasmart="yes"
27241 else
27242 with_libatasmart="$withval"
27243 fi
27245 else
27247 if test "x$ac_system" = "xLinux"
27248 then
27249 with_libatasmart="yes"
27250 else
27251 with_libatasmart="no (Linux only library)"
27252 fi
27254 fi
27256 if test "x$with_libatasmart" = "xyes"
27257 then
27258 SAVE_CPPFLAGS="$CPPFLAGS"
27259 CPPFLAGS="$CPPFLAGS $with_libatasmart_cppflags"
27261 for ac_header in atasmart.h
27262 do :
27263 ac_fn_c_check_header_mongrel "$LINENO" "atasmart.h" "ac_cv_header_atasmart_h" "$ac_includes_default"
27264 if test "x$ac_cv_header_atasmart_h" = xyes; then :
27265 cat >>confdefs.h <<_ACEOF
27266 #define HAVE_ATASMART_H 1
27267 _ACEOF
27268 with_libatasmart="yes"
27269 else
27270 with_libatasmart="no (atasmart.h not found)"
27271 fi
27273 done
27276 CPPFLAGS="$SAVE_CPPFLAGS"
27277 fi
27278 if test "x$with_libatasmart" = "xyes"
27279 then
27280 SAVE_CPPFLAGS="$CPPFLAGS"
27281 SAVE_LDFLAGS="$LDFLAGS"
27282 CPPFLAGS="$CPPFLAGS $with_libatasmart_cppflags"
27283 LDFLAGS="$LDFLAGS $with_libatasmart_ldflags"
27285 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sk_disk_open in -latasmart" >&5
27286 $as_echo_n "checking for sk_disk_open in -latasmart... " >&6; }
27287 if ${ac_cv_lib_atasmart_sk_disk_open+:} false; then :
27288 $as_echo_n "(cached) " >&6
27289 else
27290 ac_check_lib_save_LIBS=$LIBS
27291 LIBS="-latasmart $LIBS"
27292 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
27293 /* end confdefs.h. */
27295 /* Override any GCC internal prototype to avoid an error.
27296 Use char because int might match the return type of a GCC
27297 builtin and then its argument prototype would still apply. */
27298 #ifdef __cplusplus
27299 extern "C"
27300 #endif
27301 char sk_disk_open ();
27302 int
27303 main ()
27304 {
27305 return sk_disk_open ();
27306 ;
27307 return 0;
27308 }
27309 _ACEOF
27310 if ac_fn_c_try_link "$LINENO"; then :
27311 ac_cv_lib_atasmart_sk_disk_open=yes
27312 else
27313 ac_cv_lib_atasmart_sk_disk_open=no
27314 fi
27315 rm -f core conftest.err conftest.$ac_objext \
27316 conftest$ac_exeext conftest.$ac_ext
27317 LIBS=$ac_check_lib_save_LIBS
27318 fi
27319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_atasmart_sk_disk_open" >&5
27320 $as_echo "$ac_cv_lib_atasmart_sk_disk_open" >&6; }
27321 if test "x$ac_cv_lib_atasmart_sk_disk_open" = xyes; then :
27322 with_libatasmart="yes"
27323 else
27324 with_libatasmart="no (Symbol 'sk_disk_open' not found)"
27325 fi
27328 CPPFLAGS="$SAVE_CPPFLAGS"
27329 LDFLAGS="$SAVE_LDFLAGS"
27330 fi
27331 if test "x$with_libatasmart" = "xyes"
27332 then
27333 BUILD_WITH_LIBATASMART_CPPFLAGS="$with_libatasmart_cppflags"
27334 BUILD_WITH_LIBATASMART_LDFLAGS="$with_libatasmart_ldflags"
27335 BUILD_WITH_LIBATASMART_LIBS="-latasmart"
27340 $as_echo "#define HAVE_LIBATASMART 1" >>confdefs.h
27342 fi
27343 if test "x$with_libatasmart" = "xyes"; then
27344 BUILD_WITH_LIBATASMART_TRUE=
27345 BUILD_WITH_LIBATASMART_FALSE='#'
27346 else
27347 BUILD_WITH_LIBATASMART_TRUE='#'
27348 BUILD_WITH_LIBATASMART_FALSE=
27349 fi
27351 # }}}
27354 pkg_failed=no
27355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for LIBNOTIFY" >&5
27356 $as_echo_n "checking for LIBNOTIFY... " >&6; }
27358 if test -n "$LIBNOTIFY_CFLAGS"; then
27359 pkg_cv_LIBNOTIFY_CFLAGS="$LIBNOTIFY_CFLAGS"
27360 elif test -n "$PKG_CONFIG"; then
27361 if test -n "$PKG_CONFIG" && \
27362 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnotify\""; } >&5
27363 ($PKG_CONFIG --exists --print-errors "libnotify") 2>&5
27364 ac_status=$?
27365 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27366 test $ac_status = 0; }; then
27367 pkg_cv_LIBNOTIFY_CFLAGS=`$PKG_CONFIG --cflags "libnotify" 2>/dev/null`
27368 test "x$?" != "x0" && pkg_failed=yes
27369 else
27370 pkg_failed=yes
27371 fi
27372 else
27373 pkg_failed=untried
27374 fi
27375 if test -n "$LIBNOTIFY_LIBS"; then
27376 pkg_cv_LIBNOTIFY_LIBS="$LIBNOTIFY_LIBS"
27377 elif test -n "$PKG_CONFIG"; then
27378 if test -n "$PKG_CONFIG" && \
27379 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libnotify\""; } >&5
27380 ($PKG_CONFIG --exists --print-errors "libnotify") 2>&5
27381 ac_status=$?
27382 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
27383 test $ac_status = 0; }; then
27384 pkg_cv_LIBNOTIFY_LIBS=`$PKG_CONFIG --libs "libnotify" 2>/dev/null`
27385 test "x$?" != "x0" && pkg_failed=yes
27386 else
27387 pkg_failed=yes
27388 fi
27389 else
27390 pkg_failed=untried
27391 fi
27395 if test $pkg_failed = yes; then
27396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27397 $as_echo "no" >&6; }
27399 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
27400 _pkg_short_errors_supported=yes
27401 else
27402 _pkg_short_errors_supported=no
27403 fi
27404 if test $_pkg_short_errors_supported = yes; then
27405 LIBNOTIFY_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libnotify" 2>&1`
27406 else
27407 LIBNOTIFY_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libnotify" 2>&1`
27408 fi
27409 # Put the nasty error message in config.log where it belongs
27410 echo "$LIBNOTIFY_PKG_ERRORS" >&5
27412 if test "x$LIBNOTIFY_PKG_ERRORS" = "x"; then
27413 with_libnotify="no"
27414 else
27415 with_libnotify="no ($LIBNOTIFY_PKG_ERRORS)"
27416 fi
27417 elif test $pkg_failed = untried; then
27418 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
27419 $as_echo "no" >&6; }
27420 if test "x$LIBNOTIFY_PKG_ERRORS" = "x"; then
27421 with_libnotify="no"
27422 else
27423 with_libnotify="no ($LIBNOTIFY_PKG_ERRORS)"
27424 fi
27425 else
27426 LIBNOTIFY_CFLAGS=$pkg_cv_LIBNOTIFY_CFLAGS
27427 LIBNOTIFY_LIBS=$pkg_cv_LIBNOTIFY_LIBS
27428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
27429 $as_echo "yes" >&6; }
27430 with_libnotify="yes"
27431 fi
27433 # Check for enabled/disabled features
27434 #
27436 # AC_COLLECTD(name, enable/disable, info-text, feature/module)
27437 # ------------------------------------------------------------
27439 # AC_COLLECTD(name, enable/disable, info-text, feature/module)
27441 # AC_PLUGIN(name, default, info)
27442 # ------------------------------------------------------------
27443 # AC_PLUGIN(name, default, info)
27446 # FIXME: Remove these calls to `AC_COLLECTD' and then remove that macro.
27448 # Check whether --enable-debug was given.
27449 if test "${enable_debug+set}" = set; then :
27450 enableval=$enable_debug;
27451 else
27452 enable_debug='no'
27453 fi
27454 # AC_ARG_ENABLE
27455 if test "x$enable_debug" = "xno"
27456 then
27457 collectd_debug=0
27458 else
27459 if test "x$enable_debug" = "xyes"
27460 then
27461 collectd_debug=1
27462 else
27463 { $as_echo "$as_me:${as_lineno-$LINENO}: please specify either --enable-debug or --disable-debug; enabling debug." >&5
27464 $as_echo "$as_me: please specify either --enable-debug or --disable-debug; enabling debug." >&6;}
27465 collectd_debug=1
27466 enable_debug='yes'
27467 fi
27468 fi
27470 cat >>confdefs.h <<_ACEOF
27471 #define COLLECT_DEBUG $collectd_debug
27472 _ACEOF
27474 if test "x$enable_debug" = "xyes"; then
27475 BUILD_FEATURE_DEBUG_TRUE=
27476 BUILD_FEATURE_DEBUG_FALSE='#'
27477 else
27478 BUILD_FEATURE_DEBUG_TRUE='#'
27479 BUILD_FEATURE_DEBUG_FALSE=
27480 fi
27483 # Check whether --enable-daemon was given.
27484 if test "${enable_daemon+set}" = set; then :
27485 enableval=$enable_daemon;
27486 else
27487 enable_daemon='yes'
27488 fi
27489 # AC_ARG_ENABLE
27490 if test "x$enable_daemon" = "xno"
27491 then
27492 collectd_daemon=0
27493 else
27494 if test "x$enable_daemon" = "xyes"
27495 then
27496 collectd_daemon=1
27497 else
27498 { $as_echo "$as_me:${as_lineno-$LINENO}: please specify either --enable-daemon or --disable-daemon; enabling daemon." >&5
27499 $as_echo "$as_me: please specify either --enable-daemon or --disable-daemon; enabling daemon." >&6;}
27500 collectd_daemon=1
27501 enable_daemon='yes'
27502 fi
27503 fi
27505 cat >>confdefs.h <<_ACEOF
27506 #define COLLECT_DAEMON $collectd_daemon
27507 _ACEOF
27509 if test "x$enable_daemon" = "xyes"; then
27510 BUILD_FEATURE_DAEMON_TRUE=
27511 BUILD_FEATURE_DAEMON_FALSE='#'
27512 else
27513 BUILD_FEATURE_DAEMON_TRUE='#'
27514 BUILD_FEATURE_DAEMON_FALSE=
27515 fi
27518 # Check whether --enable-getifaddrs was given.
27519 if test "${enable_getifaddrs+set}" = set; then :
27520 enableval=$enable_getifaddrs;
27521 else
27522 enable_getifaddrs='no'
27523 fi
27524 # AC_ARG_ENABLE
27525 if test "x$enable_getifaddrs" = "xno"
27526 then
27527 collectd_getifaddrs=0
27528 else
27529 if test "x$enable_getifaddrs" = "xyes"
27530 then
27531 collectd_getifaddrs=1
27532 else
27533 { $as_echo "$as_me:${as_lineno-$LINENO}: please specify either --enable-getifaddrs or --disable-getifaddrs; enabling getifaddrs." >&5
27534 $as_echo "$as_me: please specify either --enable-getifaddrs or --disable-getifaddrs; enabling getifaddrs." >&6;}
27535 collectd_getifaddrs=1
27536 enable_getifaddrs='yes'
27537 fi
27538 fi
27540 cat >>confdefs.h <<_ACEOF
27541 #define COLLECT_GETIFADDRS $collectd_getifaddrs
27542 _ACEOF
27544 if test "x$enable_getifaddrs" = "xyes"; then
27545 BUILD_FEATURE_GETIFADDRS_TRUE=
27546 BUILD_FEATURE_GETIFADDRS_FALSE='#'
27547 else
27548 BUILD_FEATURE_GETIFADDRS_TRUE='#'
27549 BUILD_FEATURE_GETIFADDRS_FALSE=
27550 fi
27553 dependency_warning="no"
27554 dependency_error="no"
27556 plugin_ascent="no"
27557 plugin_barometer="no"
27558 plugin_battery="no"
27559 plugin_bind="no"
27560 plugin_ceph="no"
27561 plugin_cgroups="no"
27562 plugin_conntrack="no"
27563 plugin_contextswitch="no"
27564 plugin_cpu="no"
27565 plugin_cpufreq="no"
27566 plugin_curl_json="no"
27567 plugin_curl_xml="no"
27568 plugin_df="no"
27569 plugin_disk="no"
27570 plugin_drbd="no"
27571 plugin_entropy="no"
27572 plugin_ethstat="no"
27573 plugin_fscache="no"
27574 plugin_interface="no"
27575 plugin_ipmi="no"
27576 plugin_ipvs="no"
27577 plugin_irq="no"
27578 plugin_load="no"
27579 plugin_log_logstash="no"
27580 plugin_memory="no"
27581 plugin_multimeter="no"
27582 plugin_nfs="no"
27583 plugin_numa="no"
27584 plugin_perl="no"
27585 plugin_processes="no"
27586 plugin_protocols="no"
27587 plugin_serial="no"
27588 plugin_swap="no"
27589 plugin_tape="no"
27590 plugin_tcpconns="no"
27591 plugin_ted="no"
27592 plugin_thermal="no"
27593 plugin_turbostat="no"
27594 plugin_uptime="no"
27595 plugin_users="no"
27596 plugin_virt="no"
27597 plugin_vmem="no"
27598 plugin_vserver="no"
27599 plugin_wireless="no"
27600 plugin_zfs_arc="no"
27601 plugin_zookeeper="no"
27603 # Linux
27604 if test "x$ac_system" = "xLinux"
27605 then
27606 plugin_battery="yes"
27607 plugin_conntrack="yes"
27608 plugin_contextswitch="yes"
27609 plugin_cgroups="yes"
27610 plugin_cpu="yes"
27611 plugin_cpufreq="yes"
27612 plugin_disk="yes"
27613 plugin_drbd="yes"
27614 plugin_entropy="yes"
27615 plugin_fscache="yes"
27616 plugin_interface="yes"
27617 plugin_ipc="yes"
27618 plugin_irq="yes"
27619 plugin_load="yes"
27620 plugin_lvm="yes"
27621 plugin_memory="yes"
27622 plugin_nfs="yes"
27623 plugin_numa="yes"
27624 plugin_processes="yes"
27625 plugin_protocols="yes"
27626 plugin_serial="yes"
27627 plugin_swap="yes"
27628 plugin_tcpconns="yes"
27629 plugin_thermal="yes"
27630 plugin_uptime="yes"
27631 plugin_vmem="yes"
27632 plugin_vserver="yes"
27633 plugin_wireless="yes"
27634 plugin_zfs_arc="yes"
27636 if test "x$have_linux_ip_vs_h" = "xyes" || test "x$have_net_ip_vs_h" = "xyes" || test "x$have_ip_vs_h" = "xyes"
27637 then
27638 plugin_ipvs="yes"
27639 fi
27640 if test "x$c_cv_have_usable_asm_msrindex_h" = "xyes" && test "x$have_cpuid_h" = "xyes"
27641 then
27642 plugin_turbostat="yes"
27643 fi
27644 fi
27646 if test "x$ac_system" = "xOpenBSD"
27647 then
27648 plugin_tcpconns="yes"
27649 fi
27651 # Mac OS X devices
27652 if test "x$with_libiokit" = "xyes"
27653 then
27654 plugin_battery="yes"
27655 plugin_disk="yes"
27656 fi
27658 # AIX
27660 if test "x$ac_system" = "xAIX"
27661 then
27662 plugin_tcpconns="yes"
27663 plugin_ipc="yes"
27664 fi
27666 # FreeBSD
27668 if test "x$ac_system" = "xFreeBSD"
27669 then
27670 plugin_zfs_arc="yes"
27671 fi
27674 if test "x$with_perfstat" = "xyes"
27675 then
27676 plugin_cpu="yes"
27677 plugin_contextswitch="yes"
27678 plugin_disk="yes"
27679 plugin_memory="yes"
27680 plugin_swap="yes"
27681 plugin_interface="yes"
27682 plugin_load="yes"
27683 plugin_uptime="yes"
27684 fi
27686 if test "x$with_procinfo" = "xyes"
27687 then
27688 plugin_processes="yes"
27689 fi
27691 # Solaris
27692 if test "x$with_kstat" = "xyes"
27693 then
27694 plugin_nfs="yes"
27695 plugin_processes="yes"
27696 plugin_uptime="yes"
27697 plugin_zfs_arc="yes"
27698 fi
27700 if test "x$with_devinfo$with_kstat" = "xyesyes"
27701 then
27702 plugin_cpu="yes"
27703 plugin_disk="yes"
27704 plugin_interface="yes"
27705 plugin_memory="yes"
27706 plugin_tape="yes"
27707 fi
27709 # libi2c-dev
27710 with_libi2c="no"
27711 if test "x$ac_system" = "xLinux"
27712 then
27713 ac_fn_c_check_decl "$LINENO" "i2c_smbus_read_i2c_block_data" "ac_cv_have_decl_i2c_smbus_read_i2c_block_data" "#include <stdlib.h>
27714 #include <linux/i2c-dev.h>
27715 "
27716 if test "x$ac_cv_have_decl_i2c_smbus_read_i2c_block_data" = xyes; then :
27717 with_libi2c="yes"
27718 else
27719 with_libi2c="no (symbol i2c_smbus_read_i2c_block_data not found - have you installed libi2c-dev ?)"
27720 fi
27722 fi
27724 if test "x$with_libi2c" = "xyes"
27725 then
27726 plugin_barometer="yes"
27727 fi
27730 # libstatgrab
27731 if test "x$with_libstatgrab" = "xyes"
27732 then
27733 plugin_cpu="yes"
27734 plugin_disk="yes"
27735 plugin_interface="yes"
27736 plugin_load="yes"
27737 plugin_memory="yes"
27738 plugin_swap="yes"
27739 plugin_users="yes"
27740 fi
27742 if test "x$with_libcurl" = "xyes" && test "x$with_libxml2" = "xyes"
27743 then
27744 plugin_ascent="yes"
27745 if test "x$have_strptime" = "xyes"
27746 then
27747 plugin_bind="yes"
27748 fi
27749 fi
27751 if test "x$with_libopenipmipthread" = "xyes"
27752 then
27753 plugin_ipmi="yes"
27754 fi
27756 if test "x$with_libcurl" = "xyes" && test "x$with_libyajl" = "xyes"
27757 then
27758 plugin_curl_json="yes"
27759 fi
27761 if test "x$with_libcurl" = "xyes" && test "x$with_libxml2" = "xyes"
27762 then
27763 plugin_curl_xml="yes"
27764 fi
27766 if test "x$with_libyajl" = "xyes"
27767 then
27768 plugin_ceph="yes"
27769 fi
27771 if test "x$have_processor_info" = "xyes"
27772 then
27773 plugin_cpu="yes"
27774 fi
27775 if test "x$have_sysctl" = "xyes"
27776 then
27777 plugin_cpu="yes"
27778 plugin_memory="yes"
27779 plugin_uptime="yes"
27780 if test "x$ac_system" = "xDarwin"
27781 then
27782 plugin_swap="yes"
27783 fi
27784 fi
27785 if test "x$have_sysctlbyname" = "xyes"
27786 then
27787 plugin_contextswitch="yes"
27788 plugin_cpu="yes"
27789 plugin_memory="yes"
27790 plugin_tcpconns="yes"
27791 fi
27793 # Df plugin: Check if we know how to determine mount points first.
27794 #if test "x$have_listmntent" = "xyes"; then
27795 # plugin_df="yes"
27796 #fi
27797 if test "x$have_getvfsstat" = "xyes" || test "x$have_getfsstat" = "xyes"
27798 then
27799 plugin_df="yes"
27800 fi
27801 if test "x$c_cv_have_two_getmntent" = "xyes" || test "x$have_getmntent" = "xgen" || test "x$have_getmntent" = "xsun"
27802 then
27803 plugin_df="yes"
27804 fi
27805 #if test "x$have_getmntent" = "xseq"
27806 #then
27807 # plugin_df="yes"
27808 #fi
27809 if test "x$c_cv_have_one_getmntent" = "xyes"
27810 then
27811 plugin_df="yes"
27812 fi
27814 # Df plugin: Check if we have either `statfs' or `statvfs' second.
27815 if test "x$plugin_df" = "xyes"
27816 then
27817 plugin_df="no"
27818 if test "x$have_statfs" = "xyes"
27819 then
27820 plugin_df="yes"
27821 fi
27822 if test "x$have_statvfs" = "xyes"
27823 then
27824 plugin_df="yes"
27825 fi
27826 fi
27828 if test "x$have_linux_sockios_h$have_linux_ethtool_h" = "xyesyes"
27829 then
27830 plugin_ethstat="yes"
27831 fi
27833 if test "x$have_getifaddrs" = "xyes"
27834 then
27835 plugin_interface="yes"
27836 fi
27838 if test "x$have_getloadavg" = "xyes"
27839 then
27840 plugin_load="yes"
27841 fi
27843 if test "x$with_libyajl" = "xyes"
27844 then
27845 plugin_log_logstash="yes"
27846 fi
27848 if test "x$c_cv_have_libperl$c_cv_have_perl_ithreads" = "xyesyes"
27849 then
27850 plugin_perl="yes"
27851 fi
27853 # Mac OS X memory interface
27854 if test "x$have_host_statistics" = "xyes"
27855 then
27856 plugin_memory="yes"
27857 fi
27859 if test "x$have_termios_h" = "xyes"
27860 then
27861 if test "x$ac_system" != "xAIX"
27862 then
27863 plugin_multimeter="yes"
27864 fi
27865 plugin_ted="yes"
27866 fi
27868 if test "x$have_thread_info" = "xyes"
27869 then
27870 plugin_processes="yes"
27871 fi
27873 if test "x$with_kvm_getprocs" = "xyes" && test "x$have_struct_kinfo_proc_freebsd" = "xyes"
27874 then
27875 plugin_processes="yes"
27876 fi
27878 if test "x$with_kvm_getprocs" = "xyes" && test "x$have_struct_kinfo_proc_openbsd" = "xyes"
27879 then
27880 plugin_processes="yes"
27881 fi
27883 if test "x$with_kvm_getswapinfo" = "xyes"
27884 then
27885 plugin_swap="yes"
27886 fi
27888 if test "x$have_swapctl" = "xyes" && test "x$c_cv_have_swapctl_two_args" = "xyes"
27889 then
27890 plugin_swap="yes"
27891 fi
27893 if test "x$with_kvm_openfiles$with_kvm_nlist" = "xyesyes"
27894 then
27895 plugin_tcpconns="yes"
27896 fi
27898 if test "x$have_getutent" = "xyes"
27899 then
27900 plugin_users="yes"
27901 fi
27902 if test "x$have_getutxent" = "xyes"
27903 then
27904 plugin_users="yes"
27905 fi
27907 if test "x$with_libxml2" = "xyes" && test "x$with_libvirt" = "xyes"
27908 then
27909 plugin_virt="yes"
27910 fi
27915 # Check whether --enable-all-plugins was given.
27916 if test "${enable_all_plugins+set}" = set; then :
27917 enableval=$enable_all_plugins;
27918 if test "x$enableval" = "xyes"
27919 then
27920 enable_all_plugins="yes"
27921 else if test "x$enableval" = "xauto"
27922 then
27923 enable_all_plugins="auto"
27924 else
27925 enable_all_plugins="no"
27926 fi; fi
27928 else
27929 enable_all_plugins="auto"
27930 fi
27936 enable_plugin="no"
27937 force="no"
27938 # Check whether --enable-aggregation was given.
27939 if test "${enable_aggregation+set}" = set; then :
27940 enableval=$enable_aggregation;
27941 if test "x$enableval" = "xyes"
27942 then
27943 enable_plugin="yes"
27944 else if test "x$enableval" = "xforce"
27945 then
27946 enable_plugin="yes"
27947 force="yes"
27948 else
27949 enable_plugin="no (disabled on command line)"
27950 fi; fi
27952 else
27954 if test "x$enable_all_plugins" = "xauto"
27955 then
27956 if test "xyes" = "xyes"
27957 then
27958 enable_plugin="yes"
27959 else
27960 enable_plugin="no"
27961 fi
27962 else
27963 enable_plugin="$enable_all_plugins"
27964 fi
27966 fi
27968 if test "x$enable_plugin" = "xyes"
27969 then
27970 if test "xyes" = "xyes" || test "x$force" = "xyes"
27971 then
27973 $as_echo "#define HAVE_PLUGIN_AGGREGATION 1" >>confdefs.h
27975 if test "xyes" != "xyes"
27976 then
27977 dependency_warning="yes"
27978 fi
27979 else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
27980 dependency_error="yes"
27981 enable_plugin="no (dependency error)"
27982 fi
27983 fi
27984 if test "x$enable_plugin" = "xyes"; then
27985 BUILD_PLUGIN_AGGREGATION_TRUE=
27986 BUILD_PLUGIN_AGGREGATION_FALSE='#'
27987 else
27988 BUILD_PLUGIN_AGGREGATION_TRUE='#'
27989 BUILD_PLUGIN_AGGREGATION_FALSE=
27990 fi
27992 enable_aggregation="$enable_plugin"
27996 enable_plugin="no"
27997 force="no"
27998 # Check whether --enable-amqp was given.
27999 if test "${enable_amqp+set}" = set; then :
28000 enableval=$enable_amqp;
28001 if test "x$enableval" = "xyes"
28002 then
28003 enable_plugin="yes"
28004 else if test "x$enableval" = "xforce"
28005 then
28006 enable_plugin="yes"
28007 force="yes"
28008 else
28009 enable_plugin="no (disabled on command line)"
28010 fi; fi
28012 else
28014 if test "x$enable_all_plugins" = "xauto"
28015 then
28016 if test "x$with_librabbitmq" = "xyes"
28017 then
28018 enable_plugin="yes"
28019 else
28020 enable_plugin="no"
28021 fi
28022 else
28023 enable_plugin="$enable_all_plugins"
28024 fi
28026 fi
28028 if test "x$enable_plugin" = "xyes"
28029 then
28030 if test "x$with_librabbitmq" = "xyes" || test "x$force" = "xyes"
28031 then
28033 $as_echo "#define HAVE_PLUGIN_AMQP 1" >>confdefs.h
28035 if test "x$with_librabbitmq" != "xyes"
28036 then
28037 dependency_warning="yes"
28038 fi
28039 else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
28040 dependency_error="yes"
28041 enable_plugin="no (dependency error)"
28042 fi
28043 fi
28044 if test "x$enable_plugin" = "xyes"; then
28045 BUILD_PLUGIN_AMQP_TRUE=
28046 BUILD_PLUGIN_AMQP_FALSE='#'
28047 else
28048 BUILD_PLUGIN_AMQP_TRUE='#'
28049 BUILD_PLUGIN_AMQP_FALSE=
28050 fi
28052 enable_amqp="$enable_plugin"
28056 enable_plugin="no"
28057 force="no"
28058 # Check whether --enable-apache was given.
28059 if test "${enable_apache+set}" = set; then :
28060 enableval=$enable_apache;
28061 if test "x$enableval" = "xyes"
28062 then
28063 enable_plugin="yes"
28064 else if test "x$enableval" = "xforce"
28065 then
28066 enable_plugin="yes"
28067 force="yes"
28068 else
28069 enable_plugin="no (disabled on command line)"
28070 fi; fi
28072 else
28074 if test "x$enable_all_plugins" = "xauto"
28075 then
28076 if test "x$with_libcurl" = "xyes"
28077 then
28078 enable_plugin="yes"
28079 else
28080 enable_plugin="no"
28081 fi
28082 else
28083 enable_plugin="$enable_all_plugins"
28084 fi
28086 fi
28088 if test "x$enable_plugin" = "xyes"
28089 then
28090 if test "x$with_libcurl" = "xyes" || test "x$force" = "xyes"
28091 then
28093 $as_echo "#define HAVE_PLUGIN_APACHE 1" >>confdefs.h
28095 if test "x$with_libcurl" != "xyes"
28096 then
28097 dependency_warning="yes"
28098 fi
28099 else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
28100 dependency_error="yes"
28101 enable_plugin="no (dependency error)"
28102 fi
28103 fi
28104 if test "x$enable_plugin" = "xyes"; then
28105 BUILD_PLUGIN_APACHE_TRUE=
28106 BUILD_PLUGIN_APACHE_FALSE='#'
28107 else
28108 BUILD_PLUGIN_APACHE_TRUE='#'
28109 BUILD_PLUGIN_APACHE_FALSE=
28110 fi
28112 enable_apache="$enable_plugin"
28116 enable_plugin="no"
28117 force="no"
28118 # Check whether --enable-apcups was given.
28119 if test "${enable_apcups+set}" = set; then :
28120 enableval=$enable_apcups;
28121 if test "x$enableval" = "xyes"
28122 then
28123 enable_plugin="yes"
28124 else if test "x$enableval" = "xforce"
28125 then
28126 enable_plugin="yes"
28127 force="yes"
28128 else
28129 enable_plugin="no (disabled on command line)"
28130 fi; fi
28132 else
28134 if test "x$enable_all_plugins" = "xauto"
28135 then
28136 if test "xyes" = "xyes"
28137 then
28138 enable_plugin="yes"
28139 else
28140 enable_plugin="no"
28141 fi
28142 else
28143 enable_plugin="$enable_all_plugins"
28144 fi
28146 fi
28148 if test "x$enable_plugin" = "xyes"
28149 then
28150 if test "xyes" = "xyes" || test "x$force" = "xyes"
28151 then
28153 $as_echo "#define HAVE_PLUGIN_APCUPS 1" >>confdefs.h
28155 if test "xyes" != "xyes"
28156 then
28157 dependency_warning="yes"
28158 fi
28159 else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
28160 dependency_error="yes"
28161 enable_plugin="no (dependency error)"
28162 fi
28163 fi
28164 if test "x$enable_plugin" = "xyes"; then
28165 BUILD_PLUGIN_APCUPS_TRUE=
28166 BUILD_PLUGIN_APCUPS_FALSE='#'
28167 else
28168 BUILD_PLUGIN_APCUPS_TRUE='#'
28169 BUILD_PLUGIN_APCUPS_FALSE=
28170 fi
28172 enable_apcups="$enable_plugin"
28176 enable_plugin="no"
28177 force="no"
28178 # Check whether --enable-apple_sensors was given.
28179 if test "${enable_apple_sensors+set}" = set; then :
28180 enableval=$enable_apple_sensors;
28181 if test "x$enableval" = "xyes"
28182 then
28183 enable_plugin="yes"
28184 else if test "x$enableval" = "xforce"
28185 then
28186 enable_plugin="yes"
28187 force="yes"
28188 else
28189 enable_plugin="no (disabled on command line)"
28190 fi; fi
28192 else
28194 if test "x$enable_all_plugins" = "xauto"
28195 then
28196 if test "x$with_libiokit" = "xyes"
28197 then
28198 enable_plugin="yes"
28199 else
28200 enable_plugin="no"
28201 fi
28202 else
28203 enable_plugin="$enable_all_plugins"
28204 fi
28206 fi
28208 if test "x$enable_plugin" = "xyes"
28209 then
28210 if test "x$with_libiokit" = "xyes" || test "x$force" = "xyes"
28211 then
28213 $as_echo "#define HAVE_PLUGIN_APPLE_SENSORS 1" >>confdefs.h
28215 if test "x$with_libiokit" != "xyes"
28216 then
28217 dependency_warning="yes"
28218 fi
28219 else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
28220 dependency_error="yes"
28221 enable_plugin="no (dependency error)"
28222 fi
28223 fi
28224 if test "x$enable_plugin" = "xyes"; then
28225 BUILD_PLUGIN_APPLE_SENSORS_TRUE=
28226 BUILD_PLUGIN_APPLE_SENSORS_FALSE='#'
28227 else
28228 BUILD_PLUGIN_APPLE_SENSORS_TRUE='#'
28229 BUILD_PLUGIN_APPLE_SENSORS_FALSE=
28230 fi
28232 enable_apple_sensors="$enable_plugin"
28236 enable_plugin="no"
28237 force="no"
28238 # Check whether --enable-aquaero was given.
28239 if test "${enable_aquaero+set}" = set; then :
28240 enableval=$enable_aquaero;
28241 if test "x$enableval" = "xyes"
28242 then
28243 enable_plugin="yes"
28244 else if test "x$enableval" = "xforce"
28245 then
28246 enable_plugin="yes"
28247 force="yes"
28248 else
28249 enable_plugin="no (disabled on command line)"
28250 fi; fi
28252 else
28254 if test "x$enable_all_plugins" = "xauto"
28255 then
28256 if test "x$with_libaquaero5" = "xyes"
28257 then
28258 enable_plugin="yes"
28259 else
28260 enable_plugin="no"
28261 fi
28262 else
28263 enable_plugin="$enable_all_plugins"
28264 fi
28266 fi
28268 if test "x$enable_plugin" = "xyes"
28269 then
28270 if test "x$with_libaquaero5" = "xyes" || test "x$force" = "xyes"
28271 then
28273 $as_echo "#define HAVE_PLUGIN_AQUAERO 1" >>confdefs.h
28275 if test "x$with_libaquaero5" != "xyes"
28276 then
28277 dependency_warning="yes"
28278 fi
28279 else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
28280 dependency_error="yes"
28281 enable_plugin="no (dependency error)"
28282 fi
28283 fi
28284 if test "x$enable_plugin" = "xyes"; then
28285 BUILD_PLUGIN_AQUAERO_TRUE=
28286 BUILD_PLUGIN_AQUAERO_FALSE='#'
28287 else
28288 BUILD_PLUGIN_AQUAERO_TRUE='#'
28289 BUILD_PLUGIN_AQUAERO_FALSE=
28290 fi
28292 enable_aquaero="$enable_plugin"
28296 enable_plugin="no"
28297 force="no"
28298 # Check whether --enable-ascent was given.
28299 if test "${enable_ascent+set}" = set; then :
28300 enableval=$enable_ascent;
28301 if test "x$enableval" = "xyes"
28302 then
28303 enable_plugin="yes"
28304 else if test "x$enableval" = "xforce"
28305 then
28306 enable_plugin="yes"
28307 force="yes"
28308 else
28309 enable_plugin="no (disabled on command line)"
28310 fi; fi
28312 else
28314 if test "x$enable_all_plugins" = "xauto"
28315 then
28316 if test "x$plugin_ascent" = "xyes"
28317 then
28318 enable_plugin="yes"
28319 else
28320 enable_plugin="no"
28321 fi
28322 else
28323 enable_plugin="$enable_all_plugins"
28324 fi
28326 fi
28328 if test "x$enable_plugin" = "xyes"
28329 then
28330 if test "x$plugin_ascent" = "xyes" || test "x$force" = "xyes"
28331 then
28333 $as_echo "#define HAVE_PLUGIN_ASCENT 1" >>confdefs.h
28335 if test "x$plugin_ascent" != "xyes"
28336 then
28337 dependency_warning="yes"
28338 fi
28339 else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
28340 dependency_error="yes"
28341 enable_plugin="no (dependency error)"
28342 fi
28343 fi
28344 if test "x$enable_plugin" = "xyes"; then
28345 BUILD_PLUGIN_ASCENT_TRUE=
28346 BUILD_PLUGIN_ASCENT_FALSE='#'
28347 else
28348 BUILD_PLUGIN_ASCENT_TRUE='#'
28349 BUILD_PLUGIN_ASCENT_FALSE=
28350 fi
28352 enable_ascent="$enable_plugin"
28356 enable_plugin="no"
28357 force="no"
28358 # Check whether --enable-barometer was given.
28359 if test "${enable_barometer+set}" = set; then :
28360 enableval=$enable_barometer;
28361 if test "x$enableval" = "xyes"
28362 then
28363 enable_plugin="yes"
28364 else if test "x$enableval" = "xforce"
28365 then
28366 enable_plugin="yes"
28367 force="yes"
28368 else
28369 enable_plugin="no (disabled on command line)"
28370 fi; fi
28372 else
28374 if test "x$enable_all_plugins" = "xauto"
28375 then
28376 if test "x$plugin_barometer" = "xyes"
28377 then
28378 enable_plugin="yes"
28379 else
28380 enable_plugin="no"
28381 fi
28382 else
28383 enable_plugin="$enable_all_plugins"
28384 fi
28386 fi
28388 if test "x$enable_plugin" = "xyes"
28389 then
28390 if test "x$plugin_barometer" = "xyes" || test "x$force" = "xyes"
28391 then
28393 $as_echo "#define HAVE_PLUGIN_BAROMETER 1" >>confdefs.h
28395 if test "x$plugin_barometer" != "xyes"
28396 then
28397 dependency_warning="yes"
28398 fi
28399 else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
28400 dependency_error="yes"
28401 enable_plugin="no (dependency error)"
28402 fi
28403 fi
28404 if test "x$enable_plugin" = "xyes"; then
28405 BUILD_PLUGIN_BAROMETER_TRUE=
28406 BUILD_PLUGIN_BAROMETER_FALSE='#'
28407 else
28408 BUILD_PLUGIN_BAROMETER_TRUE='#'
28409 BUILD_PLUGIN_BAROMETER_FALSE=
28410 fi
28412 enable_barometer="$enable_plugin"
28416 enable_plugin="no"
28417 force="no"
28418 # Check whether --enable-battery was given.
28419 if test "${enable_battery+set}" = set; then :
28420 enableval=$enable_battery;
28421 if test "x$enableval" = "xyes"
28422 then
28423 enable_plugin="yes"
28424 else if test "x$enableval" = "xforce"
28425 then
28426 enable_plugin="yes"
28427 force="yes"
28428 else
28429 enable_plugin="no (disabled on command line)"
28430 fi; fi
28432 else
28434 if test "x$enable_all_plugins" = "xauto"
28435 then
28436 if test "x$plugin_battery" = "xyes"
28437 then
28438 enable_plugin="yes"
28439 else
28440 enable_plugin="no"
28441 fi
28442 else
28443 enable_plugin="$enable_all_plugins"
28444 fi
28446 fi
28448 if test "x$enable_plugin" = "xyes"
28449 then
28450 if test "x$plugin_battery" = "xyes" || test "x$force" = "xyes"
28451 then
28453 $as_echo "#define HAVE_PLUGIN_BATTERY 1" >>confdefs.h
28455 if test "x$plugin_battery" != "xyes"
28456 then
28457 dependency_warning="yes"
28458 fi
28459 else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
28460 dependency_error="yes"
28461 enable_plugin="no (dependency error)"
28462 fi
28463 fi
28464 if test "x$enable_plugin" = "xyes"; then
28465 BUILD_PLUGIN_BATTERY_TRUE=
28466 BUILD_PLUGIN_BATTERY_FALSE='#'
28467 else
28468 BUILD_PLUGIN_BATTERY_TRUE='#'
28469 BUILD_PLUGIN_BATTERY_FALSE=
28470 fi
28472 enable_battery="$enable_plugin"
28476 enable_plugin="no"
28477 force="no"
28478 # Check whether --enable-bind was given.
28479 if test "${enable_bind+set}" = set; then :
28480 enableval=$enable_bind;
28481 if test "x$enableval" = "xyes"
28482 then
28483 enable_plugin="yes"
28484 else if test "x$enableval" = "xforce"
28485 then
28486 enable_plugin="yes"
28487 force="yes"
28488 else
28489 enable_plugin="no (disabled on command line)"
28490 fi; fi
28492 else
28494 if test "x$enable_all_plugins" = "xauto"
28495 then
28496 if test "x$plugin_bind" = "xyes"
28497 then
28498 enable_plugin="yes"
28499 else
28500 enable_plugin="no"
28501 fi
28502 else
28503 enable_plugin="$enable_all_plugins"
28504 fi
28506 fi
28508 if test "x$enable_plugin" = "xyes"
28509 then
28510 if test "x$plugin_bind" = "xyes" || test "x$force" = "xyes"
28511 then
28513 $as_echo "#define HAVE_PLUGIN_BIND 1" >>confdefs.h
28515 if test "x$plugin_bind" != "xyes"
28516 then
28517 dependency_warning="yes"
28518 fi
28519 else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
28520 dependency_error="yes"
28521 enable_plugin="no (dependency error)"
28522 fi
28523 fi
28524 if test "x$enable_plugin" = "xyes"; then
28525 BUILD_PLUGIN_BIND_TRUE=
28526 BUILD_PLUGIN_BIND_FALSE='#'
28527 else
28528 BUILD_PLUGIN_BIND_TRUE='#'
28529 BUILD_PLUGIN_BIND_FALSE=
28530 fi
28532 enable_bind="$enable_plugin"
28536 enable_plugin="no"
28537 force="no"
28538 # Check whether --enable-ceph was given.
28539 if test "${enable_ceph+set}" = set; then :
28540 enableval=$enable_ceph;
28541 if test "x$enableval" = "xyes"
28542 then
28543 enable_plugin="yes"
28544 else if test "x$enableval" = "xforce"
28545 then
28546 enable_plugin="yes"
28547 force="yes"
28548 else
28549 enable_plugin="no (disabled on command line)"
28550 fi; fi
28552 else
28554 if test "x$enable_all_plugins" = "xauto"
28555 then
28556 if test "x$plugin_ceph" = "xyes"
28557 then
28558 enable_plugin="yes"
28559 else
28560 enable_plugin="no"
28561 fi
28562 else
28563 enable_plugin="$enable_all_plugins"
28564 fi
28566 fi
28568 if test "x$enable_plugin" = "xyes"
28569 then
28570 if test "x$plugin_ceph" = "xyes" || test "x$force" = "xyes"
28571 then
28573 $as_echo "#define HAVE_PLUGIN_CEPH 1" >>confdefs.h
28575 if test "x$plugin_ceph" != "xyes"
28576 then
28577 dependency_warning="yes"
28578 fi
28579 else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
28580 dependency_error="yes"
28581 enable_plugin="no (dependency error)"
28582 fi
28583 fi
28584 if test "x$enable_plugin" = "xyes"; then
28585 BUILD_PLUGIN_CEPH_TRUE=
28586 BUILD_PLUGIN_CEPH_FALSE='#'
28587 else
28588 BUILD_PLUGIN_CEPH_TRUE='#'
28589 BUILD_PLUGIN_CEPH_FALSE=
28590 fi
28592 enable_ceph="$enable_plugin"
28596 enable_plugin="no"
28597 force="no"
28598 # Check whether --enable-conntrack was given.
28599 if test "${enable_conntrack+set}" = set; then :
28600 enableval=$enable_conntrack;
28601 if test "x$enableval" = "xyes"
28602 then
28603 enable_plugin="yes"
28604 else if test "x$enableval" = "xforce"
28605 then
28606 enable_plugin="yes"
28607 force="yes"
28608 else
28609 enable_plugin="no (disabled on command line)"
28610 fi; fi
28612 else
28614 if test "x$enable_all_plugins" = "xauto"
28615 then
28616 if test "x$plugin_conntrack" = "xyes"
28617 then
28618 enable_plugin="yes"
28619 else
28620 enable_plugin="no"
28621 fi
28622 else
28623 enable_plugin="$enable_all_plugins"
28624 fi
28626 fi
28628 if test "x$enable_plugin" = "xyes"
28629 then
28630 if test "x$plugin_conntrack" = "xyes" || test "x$force" = "xyes"
28631 then
28633 $as_echo "#define HAVE_PLUGIN_CONNTRACK 1" >>confdefs.h
28635 if test "x$plugin_conntrack" != "xyes"
28636 then
28637 dependency_warning="yes"
28638 fi
28639 else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
28640 dependency_error="yes"
28641 enable_plugin="no (dependency error)"
28642 fi
28643 fi
28644 if test "x$enable_plugin" = "xyes"; then
28645 BUILD_PLUGIN_CONNTRACK_TRUE=
28646 BUILD_PLUGIN_CONNTRACK_FALSE='#'
28647 else
28648 BUILD_PLUGIN_CONNTRACK_TRUE='#'
28649 BUILD_PLUGIN_CONNTRACK_FALSE=
28650 fi
28652 enable_conntrack="$enable_plugin"
28656 enable_plugin="no"
28657 force="no"
28658 # Check whether --enable-contextswitch was given.
28659 if test "${enable_contextswitch+set}" = set; then :
28660 enableval=$enable_contextswitch;
28661 if test "x$enableval" = "xyes"
28662 then
28663 enable_plugin="yes"
28664 else if test "x$enableval" = "xforce"
28665 then
28666 enable_plugin="yes"
28667 force="yes"
28668 else
28669 enable_plugin="no (disabled on command line)"
28670 fi; fi
28672 else
28674 if test "x$enable_all_plugins" = "xauto"
28675 then
28676 if test "x$plugin_contextswitch" = "xyes"
28677 then
28678 enable_plugin="yes"
28679 else
28680 enable_plugin="no"
28681 fi
28682 else
28683 enable_plugin="$enable_all_plugins"
28684 fi
28686 fi
28688 if test "x$enable_plugin" = "xyes"
28689 then
28690 if test "x$plugin_contextswitch" = "xyes" || test "x$force" = "xyes"
28691 then
28693 $as_echo "#define HAVE_PLUGIN_CONTEXTSWITCH 1" >>confdefs.h
28695 if test "x$plugin_contextswitch" != "xyes"
28696 then
28697 dependency_warning="yes"
28698 fi
28699 else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
28700 dependency_error="yes"
28701 enable_plugin="no (dependency error)"
28702 fi
28703 fi
28704 if test "x$enable_plugin" = "xyes"; then
28705 BUILD_PLUGIN_CONTEXTSWITCH_TRUE=
28706 BUILD_PLUGIN_CONTEXTSWITCH_FALSE='#'
28707 else
28708 BUILD_PLUGIN_CONTEXTSWITCH_TRUE='#'
28709 BUILD_PLUGIN_CONTEXTSWITCH_FALSE=
28710 fi
28712 enable_contextswitch="$enable_plugin"
28716 enable_plugin="no"
28717 force="no"
28718 # Check whether --enable-cpufreq was given.
28719 if test "${enable_cpufreq+set}" = set; then :
28720 enableval=$enable_cpufreq;
28721 if test "x$enableval" = "xyes"
28722 then
28723 enable_plugin="yes"
28724 else if test "x$enableval" = "xforce"
28725 then
28726 enable_plugin="yes"
28727 force="yes"
28728 else
28729 enable_plugin="no (disabled on command line)"
28730 fi; fi
28732 else
28734 if test "x$enable_all_plugins" = "xauto"
28735 then
28736 if test "x$plugin_cpufreq" = "xyes"
28737 then
28738 enable_plugin="yes"
28739 else
28740 enable_plugin="no"
28741 fi
28742 else
28743 enable_plugin="$enable_all_plugins"
28744 fi
28746 fi
28748 if test "x$enable_plugin" = "xyes"
28749 then
28750 if test "x$plugin_cpufreq" = "xyes" || test "x$force" = "xyes"
28751 then
28753 $as_echo "#define HAVE_PLUGIN_CPUFREQ 1" >>confdefs.h
28755 if test "x$plugin_cpufreq" != "xyes"
28756 then
28757 dependency_warning="yes"
28758 fi
28759 else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
28760 dependency_error="yes"
28761 enable_plugin="no (dependency error)"
28762 fi
28763 fi
28764 if test "x$enable_plugin" = "xyes"; then
28765 BUILD_PLUGIN_CPUFREQ_TRUE=
28766 BUILD_PLUGIN_CPUFREQ_FALSE='#'
28767 else
28768 BUILD_PLUGIN_CPUFREQ_TRUE='#'
28769 BUILD_PLUGIN_CPUFREQ_FALSE=
28770 fi
28772 enable_cpufreq="$enable_plugin"
28776 enable_plugin="no"
28777 force="no"
28778 # Check whether --enable-cpu was given.
28779 if test "${enable_cpu+set}" = set; then :
28780 enableval=$enable_cpu;
28781 if test "x$enableval" = "xyes"
28782 then
28783 enable_plugin="yes"
28784 else if test "x$enableval" = "xforce"
28785 then
28786 enable_plugin="yes"
28787 force="yes"
28788 else
28789 enable_plugin="no (disabled on command line)"
28790 fi; fi
28792 else
28794 if test "x$enable_all_plugins" = "xauto"
28795 then
28796 if test "x$plugin_cpu" = "xyes"
28797 then
28798 enable_plugin="yes"
28799 else
28800 enable_plugin="no"
28801 fi
28802 else
28803 enable_plugin="$enable_all_plugins"
28804 fi
28806 fi
28808 if test "x$enable_plugin" = "xyes"
28809 then
28810 if test "x$plugin_cpu" = "xyes" || test "x$force" = "xyes"
28811 then
28813 $as_echo "#define HAVE_PLUGIN_CPU 1" >>confdefs.h
28815 if test "x$plugin_cpu" != "xyes"
28816 then
28817 dependency_warning="yes"
28818 fi
28819 else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
28820 dependency_error="yes"
28821 enable_plugin="no (dependency error)"
28822 fi
28823 fi
28824 if test "x$enable_plugin" = "xyes"; then
28825 BUILD_PLUGIN_CPU_TRUE=
28826 BUILD_PLUGIN_CPU_FALSE='#'
28827 else
28828 BUILD_PLUGIN_CPU_TRUE='#'
28829 BUILD_PLUGIN_CPU_FALSE=
28830 fi
28832 enable_cpu="$enable_plugin"
28836 enable_plugin="no"
28837 force="no"
28838 # Check whether --enable-csv was given.
28839 if test "${enable_csv+set}" = set; then :
28840 enableval=$enable_csv;
28841 if test "x$enableval" = "xyes"
28842 then
28843 enable_plugin="yes"
28844 else if test "x$enableval" = "xforce"
28845 then
28846 enable_plugin="yes"
28847 force="yes"
28848 else
28849 enable_plugin="no (disabled on command line)"
28850 fi; fi
28852 else
28854 if test "x$enable_all_plugins" = "xauto"
28855 then
28856 if test "xyes" = "xyes"
28857 then
28858 enable_plugin="yes"
28859 else
28860 enable_plugin="no"
28861 fi
28862 else
28863 enable_plugin="$enable_all_plugins"
28864 fi
28866 fi
28868 if test "x$enable_plugin" = "xyes"
28869 then
28870 if test "xyes" = "xyes" || test "x$force" = "xyes"
28871 then
28873 $as_echo "#define HAVE_PLUGIN_CSV 1" >>confdefs.h
28875 if test "xyes" != "xyes"
28876 then
28877 dependency_warning="yes"
28878 fi
28879 else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
28880 dependency_error="yes"
28881 enable_plugin="no (dependency error)"
28882 fi
28883 fi
28884 if test "x$enable_plugin" = "xyes"; then
28885 BUILD_PLUGIN_CSV_TRUE=
28886 BUILD_PLUGIN_CSV_FALSE='#'
28887 else
28888 BUILD_PLUGIN_CSV_TRUE='#'
28889 BUILD_PLUGIN_CSV_FALSE=
28890 fi
28892 enable_csv="$enable_plugin"
28896 enable_plugin="no"
28897 force="no"
28898 # Check whether --enable-curl was given.
28899 if test "${enable_curl+set}" = set; then :
28900 enableval=$enable_curl;
28901 if test "x$enableval" = "xyes"
28902 then
28903 enable_plugin="yes"
28904 else if test "x$enableval" = "xforce"
28905 then
28906 enable_plugin="yes"
28907 force="yes"
28908 else
28909 enable_plugin="no (disabled on command line)"
28910 fi; fi
28912 else
28914 if test "x$enable_all_plugins" = "xauto"
28915 then
28916 if test "x$with_libcurl" = "xyes"
28917 then
28918 enable_plugin="yes"
28919 else
28920 enable_plugin="no"
28921 fi
28922 else
28923 enable_plugin="$enable_all_plugins"
28924 fi
28926 fi
28928 if test "x$enable_plugin" = "xyes"
28929 then
28930 if test "x$with_libcurl" = "xyes" || test "x$force" = "xyes"
28931 then
28933 $as_echo "#define HAVE_PLUGIN_CURL 1" >>confdefs.h
28935 if test "x$with_libcurl" != "xyes"
28936 then
28937 dependency_warning="yes"
28938 fi
28939 else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
28940 dependency_error="yes"
28941 enable_plugin="no (dependency error)"
28942 fi
28943 fi
28944 if test "x$enable_plugin" = "xyes"; then
28945 BUILD_PLUGIN_CURL_TRUE=
28946 BUILD_PLUGIN_CURL_FALSE='#'
28947 else
28948 BUILD_PLUGIN_CURL_TRUE='#'
28949 BUILD_PLUGIN_CURL_FALSE=
28950 fi
28952 enable_curl="$enable_plugin"
28956 enable_plugin="no"
28957 force="no"
28958 # Check whether --enable-curl_json was given.
28959 if test "${enable_curl_json+set}" = set; then :
28960 enableval=$enable_curl_json;
28961 if test "x$enableval" = "xyes"
28962 then
28963 enable_plugin="yes"
28964 else if test "x$enableval" = "xforce"
28965 then
28966 enable_plugin="yes"
28967 force="yes"
28968 else
28969 enable_plugin="no (disabled on command line)"
28970 fi; fi
28972 else
28974 if test "x$enable_all_plugins" = "xauto"
28975 then
28976 if test "x$plugin_curl_json" = "xyes"
28977 then
28978 enable_plugin="yes"
28979 else
28980 enable_plugin="no"
28981 fi
28982 else
28983 enable_plugin="$enable_all_plugins"
28984 fi
28986 fi
28988 if test "x$enable_plugin" = "xyes"
28989 then
28990 if test "x$plugin_curl_json" = "xyes" || test "x$force" = "xyes"
28991 then
28993 $as_echo "#define HAVE_PLUGIN_CURL_JSON 1" >>confdefs.h
28995 if test "x$plugin_curl_json" != "xyes"
28996 then
28997 dependency_warning="yes"
28998 fi
28999 else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
29000 dependency_error="yes"
29001 enable_plugin="no (dependency error)"
29002 fi
29003 fi
29004 if test "x$enable_plugin" = "xyes"; then
29005 BUILD_PLUGIN_CURL_JSON_TRUE=
29006 BUILD_PLUGIN_CURL_JSON_FALSE='#'
29007 else
29008 BUILD_PLUGIN_CURL_JSON_TRUE='#'
29009 BUILD_PLUGIN_CURL_JSON_FALSE=
29010 fi
29012 enable_curl_json="$enable_plugin"
29016 enable_plugin="no"
29017 force="no"
29018 # Check whether --enable-curl_xml was given.
29019 if test "${enable_curl_xml+set}" = set; then :
29020 enableval=$enable_curl_xml;
29021 if test "x$enableval" = "xyes"
29022 then
29023 enable_plugin="yes"
29024 else if test "x$enableval" = "xforce"
29025 then
29026 enable_plugin="yes"
29027 force="yes"
29028 else
29029 enable_plugin="no (disabled on command line)"
29030 fi; fi
29032 else
29034 if test "x$enable_all_plugins" = "xauto"
29035 then
29036 if test "x$plugin_curl_xml" = "xyes"
29037 then
29038 enable_plugin="yes"
29039 else
29040 enable_plugin="no"
29041 fi
29042 else
29043 enable_plugin="$enable_all_plugins"
29044 fi
29046 fi
29048 if test "x$enable_plugin" = "xyes"
29049 then
29050 if test "x$plugin_curl_xml" = "xyes" || test "x$force" = "xyes"
29051 then
29053 $as_echo "#define HAVE_PLUGIN_CURL_XML 1" >>confdefs.h
29055 if test "x$plugin_curl_xml" != "xyes"
29056 then
29057 dependency_warning="yes"
29058 fi
29059 else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
29060 dependency_error="yes"
29061 enable_plugin="no (dependency error)"
29062 fi
29063 fi
29064 if test "x$enable_plugin" = "xyes"; then
29065 BUILD_PLUGIN_CURL_XML_TRUE=
29066 BUILD_PLUGIN_CURL_XML_FALSE='#'
29067 else
29068 BUILD_PLUGIN_CURL_XML_TRUE='#'
29069 BUILD_PLUGIN_CURL_XML_FALSE=
29070 fi
29072 enable_curl_xml="$enable_plugin"
29076 enable_plugin="no"
29077 force="no"
29078 # Check whether --enable-cgroups was given.
29079 if test "${enable_cgroups+set}" = set; then :
29080 enableval=$enable_cgroups;
29081 if test "x$enableval" = "xyes"
29082 then
29083 enable_plugin="yes"
29084 else if test "x$enableval" = "xforce"
29085 then
29086 enable_plugin="yes"
29087 force="yes"
29088 else
29089 enable_plugin="no (disabled on command line)"
29090 fi; fi
29092 else
29094 if test "x$enable_all_plugins" = "xauto"
29095 then
29096 if test "x$plugin_cgroups" = "xyes"
29097 then
29098 enable_plugin="yes"
29099 else
29100 enable_plugin="no"
29101 fi
29102 else
29103 enable_plugin="$enable_all_plugins"
29104 fi
29106 fi
29108 if test "x$enable_plugin" = "xyes"
29109 then
29110 if test "x$plugin_cgroups" = "xyes" || test "x$force" = "xyes"
29111 then
29113 $as_echo "#define HAVE_PLUGIN_CGROUPS 1" >>confdefs.h
29115 if test "x$plugin_cgroups" != "xyes"
29116 then
29117 dependency_warning="yes"
29118 fi
29119 else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
29120 dependency_error="yes"
29121 enable_plugin="no (dependency error)"
29122 fi
29123 fi
29124 if test "x$enable_plugin" = "xyes"; then
29125 BUILD_PLUGIN_CGROUPS_TRUE=
29126 BUILD_PLUGIN_CGROUPS_FALSE='#'
29127 else
29128 BUILD_PLUGIN_CGROUPS_TRUE='#'
29129 BUILD_PLUGIN_CGROUPS_FALSE=
29130 fi
29132 enable_cgroups="$enable_plugin"
29136 enable_plugin="no"
29137 force="no"
29138 # Check whether --enable-dbi was given.
29139 if test "${enable_dbi+set}" = set; then :
29140 enableval=$enable_dbi;
29141 if test "x$enableval" = "xyes"
29142 then
29143 enable_plugin="yes"
29144 else if test "x$enableval" = "xforce"
29145 then
29146 enable_plugin="yes"
29147 force="yes"
29148 else
29149 enable_plugin="no (disabled on command line)"
29150 fi; fi
29152 else
29154 if test "x$enable_all_plugins" = "xauto"
29155 then
29156 if test "x$with_libdbi" = "xyes"
29157 then
29158 enable_plugin="yes"
29159 else
29160 enable_plugin="no"
29161 fi
29162 else
29163 enable_plugin="$enable_all_plugins"
29164 fi
29166 fi
29168 if test "x$enable_plugin" = "xyes"
29169 then
29170 if test "x$with_libdbi" = "xyes" || test "x$force" = "xyes"
29171 then
29173 $as_echo "#define HAVE_PLUGIN_DBI 1" >>confdefs.h
29175 if test "x$with_libdbi" != "xyes"
29176 then
29177 dependency_warning="yes"
29178 fi
29179 else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
29180 dependency_error="yes"
29181 enable_plugin="no (dependency error)"
29182 fi
29183 fi
29184 if test "x$enable_plugin" = "xyes"; then
29185 BUILD_PLUGIN_DBI_TRUE=
29186 BUILD_PLUGIN_DBI_FALSE='#'
29187 else
29188 BUILD_PLUGIN_DBI_TRUE='#'
29189 BUILD_PLUGIN_DBI_FALSE=
29190 fi
29192 enable_dbi="$enable_plugin"
29196 enable_plugin="no"
29197 force="no"
29198 # Check whether --enable-df was given.
29199 if test "${enable_df+set}" = set; then :
29200 enableval=$enable_df;
29201 if test "x$enableval" = "xyes"
29202 then
29203 enable_plugin="yes"
29204 else if test "x$enableval" = "xforce"
29205 then
29206 enable_plugin="yes"
29207 force="yes"
29208 else
29209 enable_plugin="no (disabled on command line)"
29210 fi; fi
29212 else
29214 if test "x$enable_all_plugins" = "xauto"
29215 then
29216 if test "x$plugin_df" = "xyes"
29217 then
29218 enable_plugin="yes"
29219 else
29220 enable_plugin="no"
29221 fi
29222 else
29223 enable_plugin="$enable_all_plugins"
29224 fi
29226 fi
29228 if test "x$enable_plugin" = "xyes"
29229 then
29230 if test "x$plugin_df" = "xyes" || test "x$force" = "xyes"
29231 then
29233 $as_echo "#define HAVE_PLUGIN_DF 1" >>confdefs.h
29235 if test "x$plugin_df" != "xyes"
29236 then
29237 dependency_warning="yes"
29238 fi
29239 else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
29240 dependency_error="yes"
29241 enable_plugin="no (dependency error)"
29242 fi
29243 fi
29244 if test "x$enable_plugin" = "xyes"; then
29245 BUILD_PLUGIN_DF_TRUE=
29246 BUILD_PLUGIN_DF_FALSE='#'
29247 else
29248 BUILD_PLUGIN_DF_TRUE='#'
29249 BUILD_PLUGIN_DF_FALSE=
29250 fi
29252 enable_df="$enable_plugin"
29256 enable_plugin="no"
29257 force="no"
29258 # Check whether --enable-disk was given.
29259 if test "${enable_disk+set}" = set; then :
29260 enableval=$enable_disk;
29261 if test "x$enableval" = "xyes"
29262 then
29263 enable_plugin="yes"
29264 else if test "x$enableval" = "xforce"
29265 then
29266 enable_plugin="yes"
29267 force="yes"
29268 else
29269 enable_plugin="no (disabled on command line)"
29270 fi; fi
29272 else
29274 if test "x$enable_all_plugins" = "xauto"
29275 then
29276 if test "x$plugin_disk" = "xyes"
29277 then
29278 enable_plugin="yes"
29279 else
29280 enable_plugin="no"
29281 fi
29282 else
29283 enable_plugin="$enable_all_plugins"
29284 fi
29286 fi
29288 if test "x$enable_plugin" = "xyes"
29289 then
29290 if test "x$plugin_disk" = "xyes" || test "x$force" = "xyes"
29291 then
29293 $as_echo "#define HAVE_PLUGIN_DISK 1" >>confdefs.h
29295 if test "x$plugin_disk" != "xyes"
29296 then
29297 dependency_warning="yes"
29298 fi
29299 else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
29300 dependency_error="yes"
29301 enable_plugin="no (dependency error)"
29302 fi
29303 fi
29304 if test "x$enable_plugin" = "xyes"; then
29305 BUILD_PLUGIN_DISK_TRUE=
29306 BUILD_PLUGIN_DISK_FALSE='#'
29307 else
29308 BUILD_PLUGIN_DISK_TRUE='#'
29309 BUILD_PLUGIN_DISK_FALSE=
29310 fi
29312 enable_disk="$enable_plugin"
29316 enable_plugin="no"
29317 force="no"
29318 # Check whether --enable-drbd was given.
29319 if test "${enable_drbd+set}" = set; then :
29320 enableval=$enable_drbd;
29321 if test "x$enableval" = "xyes"
29322 then
29323 enable_plugin="yes"
29324 else if test "x$enableval" = "xforce"
29325 then
29326 enable_plugin="yes"
29327 force="yes"
29328 else
29329 enable_plugin="no (disabled on command line)"
29330 fi; fi
29332 else
29334 if test "x$enable_all_plugins" = "xauto"
29335 then
29336 if test "x$plugin_drbd" = "xyes"
29337 then
29338 enable_plugin="yes"
29339 else
29340 enable_plugin="no"
29341 fi
29342 else
29343 enable_plugin="$enable_all_plugins"
29344 fi
29346 fi
29348 if test "x$enable_plugin" = "xyes"
29349 then
29350 if test "x$plugin_drbd" = "xyes" || test "x$force" = "xyes"
29351 then
29353 $as_echo "#define HAVE_PLUGIN_DRBD 1" >>confdefs.h
29355 if test "x$plugin_drbd" != "xyes"
29356 then
29357 dependency_warning="yes"
29358 fi
29359 else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
29360 dependency_error="yes"
29361 enable_plugin="no (dependency error)"
29362 fi
29363 fi
29364 if test "x$enable_plugin" = "xyes"; then
29365 BUILD_PLUGIN_DRBD_TRUE=
29366 BUILD_PLUGIN_DRBD_FALSE='#'
29367 else
29368 BUILD_PLUGIN_DRBD_TRUE='#'
29369 BUILD_PLUGIN_DRBD_FALSE=
29370 fi
29372 enable_drbd="$enable_plugin"
29376 enable_plugin="no"
29377 force="no"
29378 # Check whether --enable-dns was given.
29379 if test "${enable_dns+set}" = set; then :
29380 enableval=$enable_dns;
29381 if test "x$enableval" = "xyes"
29382 then
29383 enable_plugin="yes"
29384 else if test "x$enableval" = "xforce"
29385 then
29386 enable_plugin="yes"
29387 force="yes"
29388 else
29389 enable_plugin="no (disabled on command line)"
29390 fi; fi
29392 else
29394 if test "x$enable_all_plugins" = "xauto"
29395 then
29396 if test "x$with_libpcap" = "xyes"
29397 then
29398 enable_plugin="yes"
29399 else
29400 enable_plugin="no"
29401 fi
29402 else
29403 enable_plugin="$enable_all_plugins"
29404 fi
29406 fi
29408 if test "x$enable_plugin" = "xyes"
29409 then
29410 if test "x$with_libpcap" = "xyes" || test "x$force" = "xyes"
29411 then
29413 $as_echo "#define HAVE_PLUGIN_DNS 1" >>confdefs.h
29415 if test "x$with_libpcap" != "xyes"
29416 then
29417 dependency_warning="yes"
29418 fi
29419 else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
29420 dependency_error="yes"
29421 enable_plugin="no (dependency error)"
29422 fi
29423 fi
29424 if test "x$enable_plugin" = "xyes"; then
29425 BUILD_PLUGIN_DNS_TRUE=
29426 BUILD_PLUGIN_DNS_FALSE='#'
29427 else
29428 BUILD_PLUGIN_DNS_TRUE='#'
29429 BUILD_PLUGIN_DNS_FALSE=
29430 fi
29432 enable_dns="$enable_plugin"
29436 enable_plugin="no"
29437 force="no"
29438 # Check whether --enable-email was given.
29439 if test "${enable_email+set}" = set; then :
29440 enableval=$enable_email;
29441 if test "x$enableval" = "xyes"
29442 then
29443 enable_plugin="yes"
29444 else if test "x$enableval" = "xforce"
29445 then
29446 enable_plugin="yes"
29447 force="yes"
29448 else
29449 enable_plugin="no (disabled on command line)"
29450 fi; fi
29452 else
29454 if test "x$enable_all_plugins" = "xauto"
29455 then
29456 if test "xyes" = "xyes"
29457 then
29458 enable_plugin="yes"
29459 else
29460 enable_plugin="no"
29461 fi
29462 else
29463 enable_plugin="$enable_all_plugins"
29464 fi
29466 fi
29468 if test "x$enable_plugin" = "xyes"
29469 then
29470 if test "xyes" = "xyes" || test "x$force" = "xyes"
29471 then
29473 $as_echo "#define HAVE_PLUGIN_EMAIL 1" >>confdefs.h
29475 if test "xyes" != "xyes"
29476 then
29477 dependency_warning="yes"
29478 fi
29479 else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
29480 dependency_error="yes"
29481 enable_plugin="no (dependency error)"
29482 fi
29483 fi
29484 if test "x$enable_plugin" = "xyes"; then
29485 BUILD_PLUGIN_EMAIL_TRUE=
29486 BUILD_PLUGIN_EMAIL_FALSE='#'
29487 else
29488 BUILD_PLUGIN_EMAIL_TRUE='#'
29489 BUILD_PLUGIN_EMAIL_FALSE=
29490 fi
29492 enable_email="$enable_plugin"
29496 enable_plugin="no"
29497 force="no"
29498 # Check whether --enable-entropy was given.
29499 if test "${enable_entropy+set}" = set; then :
29500 enableval=$enable_entropy;
29501 if test "x$enableval" = "xyes"
29502 then
29503 enable_plugin="yes"
29504 else if test "x$enableval" = "xforce"
29505 then
29506 enable_plugin="yes"
29507 force="yes"
29508 else
29509 enable_plugin="no (disabled on command line)"
29510 fi; fi
29512 else
29514 if test "x$enable_all_plugins" = "xauto"
29515 then
29516 if test "x$plugin_entropy" = "xyes"
29517 then
29518 enable_plugin="yes"
29519 else
29520 enable_plugin="no"
29521 fi
29522 else
29523 enable_plugin="$enable_all_plugins"
29524 fi
29526 fi
29528 if test "x$enable_plugin" = "xyes"
29529 then
29530 if test "x$plugin_entropy" = "xyes" || test "x$force" = "xyes"
29531 then
29533 $as_echo "#define HAVE_PLUGIN_ENTROPY 1" >>confdefs.h
29535 if test "x$plugin_entropy" != "xyes"
29536 then
29537 dependency_warning="yes"
29538 fi
29539 else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
29540 dependency_error="yes"
29541 enable_plugin="no (dependency error)"
29542 fi
29543 fi
29544 if test "x$enable_plugin" = "xyes"; then
29545 BUILD_PLUGIN_ENTROPY_TRUE=
29546 BUILD_PLUGIN_ENTROPY_FALSE='#'
29547 else
29548 BUILD_PLUGIN_ENTROPY_TRUE='#'
29549 BUILD_PLUGIN_ENTROPY_FALSE=
29550 fi
29552 enable_entropy="$enable_plugin"
29556 enable_plugin="no"
29557 force="no"
29558 # Check whether --enable-ethstat was given.
29559 if test "${enable_ethstat+set}" = set; then :
29560 enableval=$enable_ethstat;
29561 if test "x$enableval" = "xyes"
29562 then
29563 enable_plugin="yes"
29564 else if test "x$enableval" = "xforce"
29565 then
29566 enable_plugin="yes"
29567 force="yes"
29568 else
29569 enable_plugin="no (disabled on command line)"
29570 fi; fi
29572 else
29574 if test "x$enable_all_plugins" = "xauto"
29575 then
29576 if test "x$plugin_ethstat" = "xyes"
29577 then
29578 enable_plugin="yes"
29579 else
29580 enable_plugin="no"
29581 fi
29582 else
29583 enable_plugin="$enable_all_plugins"
29584 fi
29586 fi
29588 if test "x$enable_plugin" = "xyes"
29589 then
29590 if test "x$plugin_ethstat" = "xyes" || test "x$force" = "xyes"
29591 then
29593 $as_echo "#define HAVE_PLUGIN_ETHSTAT 1" >>confdefs.h
29595 if test "x$plugin_ethstat" != "xyes"
29596 then
29597 dependency_warning="yes"
29598 fi
29599 else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
29600 dependency_error="yes"
29601 enable_plugin="no (dependency error)"
29602 fi
29603 fi
29604 if test "x$enable_plugin" = "xyes"; then
29605 BUILD_PLUGIN_ETHSTAT_TRUE=
29606 BUILD_PLUGIN_ETHSTAT_FALSE='#'
29607 else
29608 BUILD_PLUGIN_ETHSTAT_TRUE='#'
29609 BUILD_PLUGIN_ETHSTAT_FALSE=
29610 fi
29612 enable_ethstat="$enable_plugin"
29616 enable_plugin="no"
29617 force="no"
29618 # Check whether --enable-exec was given.
29619 if test "${enable_exec+set}" = set; then :
29620 enableval=$enable_exec;
29621 if test "x$enableval" = "xyes"
29622 then
29623 enable_plugin="yes"
29624 else if test "x$enableval" = "xforce"
29625 then
29626 enable_plugin="yes"
29627 force="yes"
29628 else
29629 enable_plugin="no (disabled on command line)"
29630 fi; fi
29632 else
29634 if test "x$enable_all_plugins" = "xauto"
29635 then
29636 if test "xyes" = "xyes"
29637 then
29638 enable_plugin="yes"
29639 else
29640 enable_plugin="no"
29641 fi
29642 else
29643 enable_plugin="$enable_all_plugins"
29644 fi
29646 fi
29648 if test "x$enable_plugin" = "xyes"
29649 then
29650 if test "xyes" = "xyes" || test "x$force" = "xyes"
29651 then
29653 $as_echo "#define HAVE_PLUGIN_EXEC 1" >>confdefs.h
29655 if test "xyes" != "xyes"
29656 then
29657 dependency_warning="yes"
29658 fi
29659 else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
29660 dependency_error="yes"
29661 enable_plugin="no (dependency error)"
29662 fi
29663 fi
29664 if test "x$enable_plugin" = "xyes"; then
29665 BUILD_PLUGIN_EXEC_TRUE=
29666 BUILD_PLUGIN_EXEC_FALSE='#'
29667 else
29668 BUILD_PLUGIN_EXEC_TRUE='#'
29669 BUILD_PLUGIN_EXEC_FALSE=
29670 fi
29672 enable_exec="$enable_plugin"
29676 enable_plugin="no"
29677 force="no"
29678 # Check whether --enable-fhcount was given.
29679 if test "${enable_fhcount+set}" = set; then :
29680 enableval=$enable_fhcount;
29681 if test "x$enableval" = "xyes"
29682 then
29683 enable_plugin="yes"
29684 else if test "x$enableval" = "xforce"
29685 then
29686 enable_plugin="yes"
29687 force="yes"
29688 else
29689 enable_plugin="no (disabled on command line)"
29690 fi; fi
29692 else
29694 if test "x$enable_all_plugins" = "xauto"
29695 then
29696 if test "xyes" = "xyes"
29697 then
29698 enable_plugin="yes"
29699 else
29700 enable_plugin="no"
29701 fi
29702 else
29703 enable_plugin="$enable_all_plugins"
29704 fi
29706 fi
29708 if test "x$enable_plugin" = "xyes"
29709 then
29710 if test "xyes" = "xyes" || test "x$force" = "xyes"
29711 then
29713 $as_echo "#define HAVE_PLUGIN_FHCOUNT 1" >>confdefs.h
29715 if test "xyes" != "xyes"
29716 then
29717 dependency_warning="yes"
29718 fi
29719 else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
29720 dependency_error="yes"
29721 enable_plugin="no (dependency error)"
29722 fi
29723 fi
29724 if test "x$enable_plugin" = "xyes"; then
29725 BUILD_PLUGIN_FHCOUNT_TRUE=
29726 BUILD_PLUGIN_FHCOUNT_FALSE='#'
29727 else
29728 BUILD_PLUGIN_FHCOUNT_TRUE='#'
29729 BUILD_PLUGIN_FHCOUNT_FALSE=
29730 fi
29732 enable_fhcount="$enable_plugin"
29736 enable_plugin="no"
29737 force="no"
29738 # Check whether --enable-filecount was given.
29739 if test "${enable_filecount+set}" = set; then :
29740 enableval=$enable_filecount;
29741 if test "x$enableval" = "xyes"
29742 then
29743 enable_plugin="yes"
29744 else if test "x$enableval" = "xforce"
29745 then
29746 enable_plugin="yes"
29747 force="yes"
29748 else
29749 enable_plugin="no (disabled on command line)"
29750 fi; fi
29752 else
29754 if test "x$enable_all_plugins" = "xauto"
29755 then
29756 if test "xyes" = "xyes"
29757 then
29758 enable_plugin="yes"
29759 else
29760 enable_plugin="no"
29761 fi
29762 else
29763 enable_plugin="$enable_all_plugins"
29764 fi
29766 fi
29768 if test "x$enable_plugin" = "xyes"
29769 then
29770 if test "xyes" = "xyes" || test "x$force" = "xyes"
29771 then
29773 $as_echo "#define HAVE_PLUGIN_FILECOUNT 1" >>confdefs.h
29775 if test "xyes" != "xyes"
29776 then
29777 dependency_warning="yes"
29778 fi
29779 else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
29780 dependency_error="yes"
29781 enable_plugin="no (dependency error)"
29782 fi
29783 fi
29784 if test "x$enable_plugin" = "xyes"; then
29785 BUILD_PLUGIN_FILECOUNT_TRUE=
29786 BUILD_PLUGIN_FILECOUNT_FALSE='#'
29787 else
29788 BUILD_PLUGIN_FILECOUNT_TRUE='#'
29789 BUILD_PLUGIN_FILECOUNT_FALSE=
29790 fi
29792 enable_filecount="$enable_plugin"
29796 enable_plugin="no"
29797 force="no"
29798 # Check whether --enable-fscache was given.
29799 if test "${enable_fscache+set}" = set; then :
29800 enableval=$enable_fscache;
29801 if test "x$enableval" = "xyes"
29802 then
29803 enable_plugin="yes"
29804 else if test "x$enableval" = "xforce"
29805 then
29806 enable_plugin="yes"
29807 force="yes"
29808 else
29809 enable_plugin="no (disabled on command line)"
29810 fi; fi
29812 else
29814 if test "x$enable_all_plugins" = "xauto"
29815 then
29816 if test "x$plugin_fscache" = "xyes"
29817 then
29818 enable_plugin="yes"
29819 else
29820 enable_plugin="no"
29821 fi
29822 else
29823 enable_plugin="$enable_all_plugins"
29824 fi
29826 fi
29828 if test "x$enable_plugin" = "xyes"
29829 then
29830 if test "x$plugin_fscache" = "xyes" || test "x$force" = "xyes"
29831 then
29833 $as_echo "#define HAVE_PLUGIN_FSCACHE 1" >>confdefs.h
29835 if test "x$plugin_fscache" != "xyes"
29836 then
29837 dependency_warning="yes"
29838 fi
29839 else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
29840 dependency_error="yes"
29841 enable_plugin="no (dependency error)"
29842 fi
29843 fi
29844 if test "x$enable_plugin" = "xyes"; then
29845 BUILD_PLUGIN_FSCACHE_TRUE=
29846 BUILD_PLUGIN_FSCACHE_FALSE='#'
29847 else
29848 BUILD_PLUGIN_FSCACHE_TRUE='#'
29849 BUILD_PLUGIN_FSCACHE_FALSE=
29850 fi
29852 enable_fscache="$enable_plugin"
29856 enable_plugin="no"
29857 force="no"
29858 # Check whether --enable-gmond was given.
29859 if test "${enable_gmond+set}" = set; then :
29860 enableval=$enable_gmond;
29861 if test "x$enableval" = "xyes"
29862 then
29863 enable_plugin="yes"
29864 else if test "x$enableval" = "xforce"
29865 then
29866 enable_plugin="yes"
29867 force="yes"
29868 else
29869 enable_plugin="no (disabled on command line)"
29870 fi; fi
29872 else
29874 if test "x$enable_all_plugins" = "xauto"
29875 then
29876 if test "x$with_libganglia" = "xyes"
29877 then
29878 enable_plugin="yes"
29879 else
29880 enable_plugin="no"
29881 fi
29882 else
29883 enable_plugin="$enable_all_plugins"
29884 fi
29886 fi
29888 if test "x$enable_plugin" = "xyes"
29889 then
29890 if test "x$with_libganglia" = "xyes" || test "x$force" = "xyes"
29891 then
29893 $as_echo "#define HAVE_PLUGIN_GMOND 1" >>confdefs.h
29895 if test "x$with_libganglia" != "xyes"
29896 then
29897 dependency_warning="yes"
29898 fi
29899 else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
29900 dependency_error="yes"
29901 enable_plugin="no (dependency error)"
29902 fi
29903 fi
29904 if test "x$enable_plugin" = "xyes"; then
29905 BUILD_PLUGIN_GMOND_TRUE=
29906 BUILD_PLUGIN_GMOND_FALSE='#'
29907 else
29908 BUILD_PLUGIN_GMOND_TRUE='#'
29909 BUILD_PLUGIN_GMOND_FALSE=
29910 fi
29912 enable_gmond="$enable_plugin"
29916 enable_plugin="no"
29917 force="no"
29918 # Check whether --enable-hddtemp was given.
29919 if test "${enable_hddtemp+set}" = set; then :
29920 enableval=$enable_hddtemp;
29921 if test "x$enableval" = "xyes"
29922 then
29923 enable_plugin="yes"
29924 else if test "x$enableval" = "xforce"
29925 then
29926 enable_plugin="yes"
29927 force="yes"
29928 else
29929 enable_plugin="no (disabled on command line)"
29930 fi; fi
29932 else
29934 if test "x$enable_all_plugins" = "xauto"
29935 then
29936 if test "xyes" = "xyes"
29937 then
29938 enable_plugin="yes"
29939 else
29940 enable_plugin="no"
29941 fi
29942 else
29943 enable_plugin="$enable_all_plugins"
29944 fi
29946 fi
29948 if test "x$enable_plugin" = "xyes"
29949 then
29950 if test "xyes" = "xyes" || test "x$force" = "xyes"
29951 then
29953 $as_echo "#define HAVE_PLUGIN_HDDTEMP 1" >>confdefs.h
29955 if test "xyes" != "xyes"
29956 then
29957 dependency_warning="yes"
29958 fi
29959 else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
29960 dependency_error="yes"
29961 enable_plugin="no (dependency error)"
29962 fi
29963 fi
29964 if test "x$enable_plugin" = "xyes"; then
29965 BUILD_PLUGIN_HDDTEMP_TRUE=
29966 BUILD_PLUGIN_HDDTEMP_FALSE='#'
29967 else
29968 BUILD_PLUGIN_HDDTEMP_TRUE='#'
29969 BUILD_PLUGIN_HDDTEMP_FALSE=
29970 fi
29972 enable_hddtemp="$enable_plugin"
29976 enable_plugin="no"
29977 force="no"
29978 # Check whether --enable-interface was given.
29979 if test "${enable_interface+set}" = set; then :
29980 enableval=$enable_interface;
29981 if test "x$enableval" = "xyes"
29982 then
29983 enable_plugin="yes"
29984 else if test "x$enableval" = "xforce"
29985 then
29986 enable_plugin="yes"
29987 force="yes"
29988 else
29989 enable_plugin="no (disabled on command line)"
29990 fi; fi
29992 else
29994 if test "x$enable_all_plugins" = "xauto"
29995 then
29996 if test "x$plugin_interface" = "xyes"
29997 then
29998 enable_plugin="yes"
29999 else
30000 enable_plugin="no"
30001 fi
30002 else
30003 enable_plugin="$enable_all_plugins"
30004 fi
30006 fi
30008 if test "x$enable_plugin" = "xyes"
30009 then
30010 if test "x$plugin_interface" = "xyes" || test "x$force" = "xyes"
30011 then
30013 $as_echo "#define HAVE_PLUGIN_INTERFACE 1" >>confdefs.h
30015 if test "x$plugin_interface" != "xyes"
30016 then
30017 dependency_warning="yes"
30018 fi
30019 else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
30020 dependency_error="yes"
30021 enable_plugin="no (dependency error)"
30022 fi
30023 fi
30024 if test "x$enable_plugin" = "xyes"; then
30025 BUILD_PLUGIN_INTERFACE_TRUE=
30026 BUILD_PLUGIN_INTERFACE_FALSE='#'
30027 else
30028 BUILD_PLUGIN_INTERFACE_TRUE='#'
30029 BUILD_PLUGIN_INTERFACE_FALSE=
30030 fi
30032 enable_interface="$enable_plugin"
30036 enable_plugin="no"
30037 force="no"
30038 # Check whether --enable-ipc was given.
30039 if test "${enable_ipc+set}" = set; then :
30040 enableval=$enable_ipc;
30041 if test "x$enableval" = "xyes"
30042 then
30043 enable_plugin="yes"
30044 else if test "x$enableval" = "xforce"
30045 then
30046 enable_plugin="yes"
30047 force="yes"
30048 else
30049 enable_plugin="no (disabled on command line)"
30050 fi; fi
30052 else
30054 if test "x$enable_all_plugins" = "xauto"
30055 then
30056 if test "x$plugin_ipc" = "xyes"
30057 then
30058 enable_plugin="yes"
30059 else
30060 enable_plugin="no"
30061 fi
30062 else
30063 enable_plugin="$enable_all_plugins"
30064 fi
30066 fi
30068 if test "x$enable_plugin" = "xyes"
30069 then
30070 if test "x$plugin_ipc" = "xyes" || test "x$force" = "xyes"
30071 then
30073 $as_echo "#define HAVE_PLUGIN_IPC 1" >>confdefs.h
30075 if test "x$plugin_ipc" != "xyes"
30076 then
30077 dependency_warning="yes"
30078 fi
30079 else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
30080 dependency_error="yes"
30081 enable_plugin="no (dependency error)"
30082 fi
30083 fi
30084 if test "x$enable_plugin" = "xyes"; then
30085 BUILD_PLUGIN_IPC_TRUE=
30086 BUILD_PLUGIN_IPC_FALSE='#'
30087 else
30088 BUILD_PLUGIN_IPC_TRUE='#'
30089 BUILD_PLUGIN_IPC_FALSE=
30090 fi
30092 enable_ipc="$enable_plugin"
30096 enable_plugin="no"
30097 force="no"
30098 # Check whether --enable-ipmi was given.
30099 if test "${enable_ipmi+set}" = set; then :
30100 enableval=$enable_ipmi;
30101 if test "x$enableval" = "xyes"
30102 then
30103 enable_plugin="yes"
30104 else if test "x$enableval" = "xforce"
30105 then
30106 enable_plugin="yes"
30107 force="yes"
30108 else
30109 enable_plugin="no (disabled on command line)"
30110 fi; fi
30112 else
30114 if test "x$enable_all_plugins" = "xauto"
30115 then
30116 if test "x$plugin_ipmi" = "xyes"
30117 then
30118 enable_plugin="yes"
30119 else
30120 enable_plugin="no"
30121 fi
30122 else
30123 enable_plugin="$enable_all_plugins"
30124 fi
30126 fi
30128 if test "x$enable_plugin" = "xyes"
30129 then
30130 if test "x$plugin_ipmi" = "xyes" || test "x$force" = "xyes"
30131 then
30133 $as_echo "#define HAVE_PLUGIN_IPMI 1" >>confdefs.h
30135 if test "x$plugin_ipmi" != "xyes"
30136 then
30137 dependency_warning="yes"
30138 fi
30139 else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
30140 dependency_error="yes"
30141 enable_plugin="no (dependency error)"
30142 fi
30143 fi
30144 if test "x$enable_plugin" = "xyes"; then
30145 BUILD_PLUGIN_IPMI_TRUE=
30146 BUILD_PLUGIN_IPMI_FALSE='#'
30147 else
30148 BUILD_PLUGIN_IPMI_TRUE='#'
30149 BUILD_PLUGIN_IPMI_FALSE=
30150 fi
30152 enable_ipmi="$enable_plugin"
30156 enable_plugin="no"
30157 force="no"
30158 # Check whether --enable-iptables was given.
30159 if test "${enable_iptables+set}" = set; then :
30160 enableval=$enable_iptables;
30161 if test "x$enableval" = "xyes"
30162 then
30163 enable_plugin="yes"
30164 else if test "x$enableval" = "xforce"
30165 then
30166 enable_plugin="yes"
30167 force="yes"
30168 else
30169 enable_plugin="no (disabled on command line)"
30170 fi; fi
30172 else
30174 if test "x$enable_all_plugins" = "xauto"
30175 then
30176 if test "x$with_libiptc" = "xyes"
30177 then
30178 enable_plugin="yes"
30179 else
30180 enable_plugin="no"
30181 fi
30182 else
30183 enable_plugin="$enable_all_plugins"
30184 fi
30186 fi
30188 if test "x$enable_plugin" = "xyes"
30189 then
30190 if test "x$with_libiptc" = "xyes" || test "x$force" = "xyes"
30191 then
30193 $as_echo "#define HAVE_PLUGIN_IPTABLES 1" >>confdefs.h
30195 if test "x$with_libiptc" != "xyes"
30196 then
30197 dependency_warning="yes"
30198 fi
30199 else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
30200 dependency_error="yes"
30201 enable_plugin="no (dependency error)"
30202 fi
30203 fi
30204 if test "x$enable_plugin" = "xyes"; then
30205 BUILD_PLUGIN_IPTABLES_TRUE=
30206 BUILD_PLUGIN_IPTABLES_FALSE='#'
30207 else
30208 BUILD_PLUGIN_IPTABLES_TRUE='#'
30209 BUILD_PLUGIN_IPTABLES_FALSE=
30210 fi
30212 enable_iptables="$enable_plugin"
30216 enable_plugin="no"
30217 force="no"
30218 # Check whether --enable-ipvs was given.
30219 if test "${enable_ipvs+set}" = set; then :
30220 enableval=$enable_ipvs;
30221 if test "x$enableval" = "xyes"
30222 then
30223 enable_plugin="yes"
30224 else if test "x$enableval" = "xforce"
30225 then
30226 enable_plugin="yes"
30227 force="yes"
30228 else
30229 enable_plugin="no (disabled on command line)"
30230 fi; fi
30232 else
30234 if test "x$enable_all_plugins" = "xauto"
30235 then
30236 if test "x$plugin_ipvs" = "xyes"
30237 then
30238 enable_plugin="yes"
30239 else
30240 enable_plugin="no"
30241 fi
30242 else
30243 enable_plugin="$enable_all_plugins"
30244 fi
30246 fi
30248 if test "x$enable_plugin" = "xyes"
30249 then
30250 if test "x$plugin_ipvs" = "xyes" || test "x$force" = "xyes"
30251 then
30253 $as_echo "#define HAVE_PLUGIN_IPVS 1" >>confdefs.h
30255 if test "x$plugin_ipvs" != "xyes"
30256 then
30257 dependency_warning="yes"
30258 fi
30259 else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
30260 dependency_error="yes"
30261 enable_plugin="no (dependency error)"
30262 fi
30263 fi
30264 if test "x$enable_plugin" = "xyes"; then
30265 BUILD_PLUGIN_IPVS_TRUE=
30266 BUILD_PLUGIN_IPVS_FALSE='#'
30267 else
30268 BUILD_PLUGIN_IPVS_TRUE='#'
30269 BUILD_PLUGIN_IPVS_FALSE=
30270 fi
30272 enable_ipvs="$enable_plugin"
30276 enable_plugin="no"
30277 force="no"
30278 # Check whether --enable-irq was given.
30279 if test "${enable_irq+set}" = set; then :
30280 enableval=$enable_irq;
30281 if test "x$enableval" = "xyes"
30282 then
30283 enable_plugin="yes"
30284 else if test "x$enableval" = "xforce"
30285 then
30286 enable_plugin="yes"
30287 force="yes"
30288 else
30289 enable_plugin="no (disabled on command line)"
30290 fi; fi
30292 else
30294 if test "x$enable_all_plugins" = "xauto"
30295 then
30296 if test "x$plugin_irq" = "xyes"
30297 then
30298 enable_plugin="yes"
30299 else
30300 enable_plugin="no"
30301 fi
30302 else
30303 enable_plugin="$enable_all_plugins"
30304 fi
30306 fi
30308 if test "x$enable_plugin" = "xyes"
30309 then
30310 if test "x$plugin_irq" = "xyes" || test "x$force" = "xyes"
30311 then
30313 $as_echo "#define HAVE_PLUGIN_IRQ 1" >>confdefs.h
30315 if test "x$plugin_irq" != "xyes"
30316 then
30317 dependency_warning="yes"
30318 fi
30319 else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
30320 dependency_error="yes"
30321 enable_plugin="no (dependency error)"
30322 fi
30323 fi
30324 if test "x$enable_plugin" = "xyes"; then
30325 BUILD_PLUGIN_IRQ_TRUE=
30326 BUILD_PLUGIN_IRQ_FALSE='#'
30327 else
30328 BUILD_PLUGIN_IRQ_TRUE='#'
30329 BUILD_PLUGIN_IRQ_FALSE=
30330 fi
30332 enable_irq="$enable_plugin"
30336 enable_plugin="no"
30337 force="no"
30338 # Check whether --enable-java was given.
30339 if test "${enable_java+set}" = set; then :
30340 enableval=$enable_java;
30341 if test "x$enableval" = "xyes"
30342 then
30343 enable_plugin="yes"
30344 else if test "x$enableval" = "xforce"
30345 then
30346 enable_plugin="yes"
30347 force="yes"
30348 else
30349 enable_plugin="no (disabled on command line)"
30350 fi; fi
30352 else
30354 if test "x$enable_all_plugins" = "xauto"
30355 then
30356 if test "x$with_java" = "xyes"
30357 then
30358 enable_plugin="yes"
30359 else
30360 enable_plugin="no"
30361 fi
30362 else
30363 enable_plugin="$enable_all_plugins"
30364 fi
30366 fi
30368 if test "x$enable_plugin" = "xyes"
30369 then
30370 if test "x$with_java" = "xyes" || test "x$force" = "xyes"
30371 then
30373 $as_echo "#define HAVE_PLUGIN_JAVA 1" >>confdefs.h
30375 if test "x$with_java" != "xyes"
30376 then
30377 dependency_warning="yes"
30378 fi
30379 else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
30380 dependency_error="yes"
30381 enable_plugin="no (dependency error)"
30382 fi
30383 fi
30384 if test "x$enable_plugin" = "xyes"; then
30385 BUILD_PLUGIN_JAVA_TRUE=
30386 BUILD_PLUGIN_JAVA_FALSE='#'
30387 else
30388 BUILD_PLUGIN_JAVA_TRUE='#'
30389 BUILD_PLUGIN_JAVA_FALSE=
30390 fi
30392 enable_java="$enable_plugin"
30396 enable_plugin="no"
30397 force="no"
30398 # Check whether --enable-load was given.
30399 if test "${enable_load+set}" = set; then :
30400 enableval=$enable_load;
30401 if test "x$enableval" = "xyes"
30402 then
30403 enable_plugin="yes"
30404 else if test "x$enableval" = "xforce"
30405 then
30406 enable_plugin="yes"
30407 force="yes"
30408 else
30409 enable_plugin="no (disabled on command line)"
30410 fi; fi
30412 else
30414 if test "x$enable_all_plugins" = "xauto"
30415 then
30416 if test "x$plugin_load" = "xyes"
30417 then
30418 enable_plugin="yes"
30419 else
30420 enable_plugin="no"
30421 fi
30422 else
30423 enable_plugin="$enable_all_plugins"
30424 fi
30426 fi
30428 if test "x$enable_plugin" = "xyes"
30429 then
30430 if test "x$plugin_load" = "xyes" || test "x$force" = "xyes"
30431 then
30433 $as_echo "#define HAVE_PLUGIN_LOAD 1" >>confdefs.h
30435 if test "x$plugin_load" != "xyes"
30436 then
30437 dependency_warning="yes"
30438 fi
30439 else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
30440 dependency_error="yes"
30441 enable_plugin="no (dependency error)"
30442 fi
30443 fi
30444 if test "x$enable_plugin" = "xyes"; then
30445 BUILD_PLUGIN_LOAD_TRUE=
30446 BUILD_PLUGIN_LOAD_FALSE='#'
30447 else
30448 BUILD_PLUGIN_LOAD_TRUE='#'
30449 BUILD_PLUGIN_LOAD_FALSE=
30450 fi
30452 enable_load="$enable_plugin"
30456 enable_plugin="no"
30457 force="no"
30458 # Check whether --enable-logfile was given.
30459 if test "${enable_logfile+set}" = set; then :
30460 enableval=$enable_logfile;
30461 if test "x$enableval" = "xyes"
30462 then
30463 enable_plugin="yes"
30464 else if test "x$enableval" = "xforce"
30465 then
30466 enable_plugin="yes"
30467 force="yes"
30468 else
30469 enable_plugin="no (disabled on command line)"
30470 fi; fi
30472 else
30474 if test "x$enable_all_plugins" = "xauto"
30475 then
30476 if test "xyes" = "xyes"
30477 then
30478 enable_plugin="yes"
30479 else
30480 enable_plugin="no"
30481 fi
30482 else
30483 enable_plugin="$enable_all_plugins"
30484 fi
30486 fi
30488 if test "x$enable_plugin" = "xyes"
30489 then
30490 if test "xyes" = "xyes" || test "x$force" = "xyes"
30491 then
30493 $as_echo "#define HAVE_PLUGIN_LOGFILE 1" >>confdefs.h
30495 if test "xyes" != "xyes"
30496 then
30497 dependency_warning="yes"
30498 fi
30499 else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
30500 dependency_error="yes"
30501 enable_plugin="no (dependency error)"
30502 fi
30503 fi
30504 if test "x$enable_plugin" = "xyes"; then
30505 BUILD_PLUGIN_LOGFILE_TRUE=
30506 BUILD_PLUGIN_LOGFILE_FALSE='#'
30507 else
30508 BUILD_PLUGIN_LOGFILE_TRUE='#'
30509 BUILD_PLUGIN_LOGFILE_FALSE=
30510 fi
30512 enable_logfile="$enable_plugin"
30516 enable_plugin="no"
30517 force="no"
30518 # Check whether --enable-log_logstash was given.
30519 if test "${enable_log_logstash+set}" = set; then :
30520 enableval=$enable_log_logstash;
30521 if test "x$enableval" = "xyes"
30522 then
30523 enable_plugin="yes"
30524 else if test "x$enableval" = "xforce"
30525 then
30526 enable_plugin="yes"
30527 force="yes"
30528 else
30529 enable_plugin="no (disabled on command line)"
30530 fi; fi
30532 else
30534 if test "x$enable_all_plugins" = "xauto"
30535 then
30536 if test "x$plugin_log_logstash" = "xyes"
30537 then
30538 enable_plugin="yes"
30539 else
30540 enable_plugin="no"
30541 fi
30542 else
30543 enable_plugin="$enable_all_plugins"
30544 fi
30546 fi
30548 if test "x$enable_plugin" = "xyes"
30549 then
30550 if test "x$plugin_log_logstash" = "xyes" || test "x$force" = "xyes"
30551 then
30553 $as_echo "#define HAVE_PLUGIN_LOG_LOGSTASH 1" >>confdefs.h
30555 if test "x$plugin_log_logstash" != "xyes"
30556 then
30557 dependency_warning="yes"
30558 fi
30559 else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
30560 dependency_error="yes"
30561 enable_plugin="no (dependency error)"
30562 fi
30563 fi
30564 if test "x$enable_plugin" = "xyes"; then
30565 BUILD_PLUGIN_LOG_LOGSTASH_TRUE=
30566 BUILD_PLUGIN_LOG_LOGSTASH_FALSE='#'
30567 else
30568 BUILD_PLUGIN_LOG_LOGSTASH_TRUE='#'
30569 BUILD_PLUGIN_LOG_LOGSTASH_FALSE=
30570 fi
30572 enable_log_logstash="$enable_plugin"
30576 enable_plugin="no"
30577 force="no"
30578 # Check whether --enable-lpar was given.
30579 if test "${enable_lpar+set}" = set; then :
30580 enableval=$enable_lpar;
30581 if test "x$enableval" = "xyes"
30582 then
30583 enable_plugin="yes"
30584 else if test "x$enableval" = "xforce"
30585 then
30586 enable_plugin="yes"
30587 force="yes"
30588 else
30589 enable_plugin="no (disabled on command line)"
30590 fi; fi
30592 else
30594 if test "x$enable_all_plugins" = "xauto"
30595 then
30596 if test "x$with_perfstat" = "xyes"
30597 then
30598 enable_plugin="yes"
30599 else
30600 enable_plugin="no"
30601 fi
30602 else
30603 enable_plugin="$enable_all_plugins"
30604 fi
30606 fi
30608 if test "x$enable_plugin" = "xyes"
30609 then
30610 if test "x$with_perfstat" = "xyes" || test "x$force" = "xyes"
30611 then
30613 $as_echo "#define HAVE_PLUGIN_LPAR 1" >>confdefs.h
30615 if test "x$with_perfstat" != "xyes"
30616 then
30617 dependency_warning="yes"
30618 fi
30619 else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
30620 dependency_error="yes"
30621 enable_plugin="no (dependency error)"
30622 fi
30623 fi
30624 if test "x$enable_plugin" = "xyes"; then
30625 BUILD_PLUGIN_LPAR_TRUE=
30626 BUILD_PLUGIN_LPAR_FALSE='#'
30627 else
30628 BUILD_PLUGIN_LPAR_TRUE='#'
30629 BUILD_PLUGIN_LPAR_FALSE=
30630 fi
30632 enable_lpar="$enable_plugin"
30636 enable_plugin="no"
30637 force="no"
30638 # Check whether --enable-lvm was given.
30639 if test "${enable_lvm+set}" = set; then :
30640 enableval=$enable_lvm;
30641 if test "x$enableval" = "xyes"
30642 then
30643 enable_plugin="yes"
30644 else if test "x$enableval" = "xforce"
30645 then
30646 enable_plugin="yes"
30647 force="yes"
30648 else
30649 enable_plugin="no (disabled on command line)"
30650 fi; fi
30652 else
30654 if test "x$enable_all_plugins" = "xauto"
30655 then
30656 if test "x$with_liblvm2app" = "xyes"
30657 then
30658 enable_plugin="yes"
30659 else
30660 enable_plugin="no"
30661 fi
30662 else
30663 enable_plugin="$enable_all_plugins"
30664 fi
30666 fi
30668 if test "x$enable_plugin" = "xyes"
30669 then
30670 if test "x$with_liblvm2app" = "xyes" || test "x$force" = "xyes"
30671 then
30673 $as_echo "#define HAVE_PLUGIN_LVM 1" >>confdefs.h
30675 if test "x$with_liblvm2app" != "xyes"
30676 then
30677 dependency_warning="yes"
30678 fi
30679 else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
30680 dependency_error="yes"
30681 enable_plugin="no (dependency error)"
30682 fi
30683 fi
30684 if test "x$enable_plugin" = "xyes"; then
30685 BUILD_PLUGIN_LVM_TRUE=
30686 BUILD_PLUGIN_LVM_FALSE='#'
30687 else
30688 BUILD_PLUGIN_LVM_TRUE='#'
30689 BUILD_PLUGIN_LVM_FALSE=
30690 fi
30692 enable_lvm="$enable_plugin"
30696 enable_plugin="no"
30697 force="no"
30698 # Check whether --enable-madwifi was given.
30699 if test "${enable_madwifi+set}" = set; then :
30700 enableval=$enable_madwifi;
30701 if test "x$enableval" = "xyes"
30702 then
30703 enable_plugin="yes"
30704 else if test "x$enableval" = "xforce"
30705 then
30706 enable_plugin="yes"
30707 force="yes"
30708 else
30709 enable_plugin="no (disabled on command line)"
30710 fi; fi
30712 else
30714 if test "x$enable_all_plugins" = "xauto"
30715 then
30716 if test "x$have_linux_wireless_h" = "xyes"
30717 then
30718 enable_plugin="yes"
30719 else
30720 enable_plugin="no"
30721 fi
30722 else
30723 enable_plugin="$enable_all_plugins"
30724 fi
30726 fi
30728 if test "x$enable_plugin" = "xyes"
30729 then
30730 if test "x$have_linux_wireless_h" = "xyes" || test "x$force" = "xyes"
30731 then
30733 $as_echo "#define HAVE_PLUGIN_MADWIFI 1" >>confdefs.h
30735 if test "x$have_linux_wireless_h" != "xyes"
30736 then
30737 dependency_warning="yes"
30738 fi
30739 else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
30740 dependency_error="yes"
30741 enable_plugin="no (dependency error)"
30742 fi
30743 fi
30744 if test "x$enable_plugin" = "xyes"; then
30745 BUILD_PLUGIN_MADWIFI_TRUE=
30746 BUILD_PLUGIN_MADWIFI_FALSE='#'
30747 else
30748 BUILD_PLUGIN_MADWIFI_TRUE='#'
30749 BUILD_PLUGIN_MADWIFI_FALSE=
30750 fi
30752 enable_madwifi="$enable_plugin"
30756 enable_plugin="no"
30757 force="no"
30758 # Check whether --enable-match_empty_counter was given.
30759 if test "${enable_match_empty_counter+set}" = set; then :
30760 enableval=$enable_match_empty_counter;
30761 if test "x$enableval" = "xyes"
30762 then
30763 enable_plugin="yes"
30764 else if test "x$enableval" = "xforce"
30765 then
30766 enable_plugin="yes"
30767 force="yes"
30768 else
30769 enable_plugin="no (disabled on command line)"
30770 fi; fi
30772 else
30774 if test "x$enable_all_plugins" = "xauto"
30775 then
30776 if test "xyes" = "xyes"
30777 then
30778 enable_plugin="yes"
30779 else
30780 enable_plugin="no"
30781 fi
30782 else
30783 enable_plugin="$enable_all_plugins"
30784 fi
30786 fi
30788 if test "x$enable_plugin" = "xyes"
30789 then
30790 if test "xyes" = "xyes" || test "x$force" = "xyes"
30791 then
30793 $as_echo "#define HAVE_PLUGIN_MATCH_EMPTY_COUNTER 1" >>confdefs.h
30795 if test "xyes" != "xyes"
30796 then
30797 dependency_warning="yes"
30798 fi
30799 else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
30800 dependency_error="yes"
30801 enable_plugin="no (dependency error)"
30802 fi
30803 fi
30804 if test "x$enable_plugin" = "xyes"; then
30805 BUILD_PLUGIN_MATCH_EMPTY_COUNTER_TRUE=
30806 BUILD_PLUGIN_MATCH_EMPTY_COUNTER_FALSE='#'
30807 else
30808 BUILD_PLUGIN_MATCH_EMPTY_COUNTER_TRUE='#'
30809 BUILD_PLUGIN_MATCH_EMPTY_COUNTER_FALSE=
30810 fi
30812 enable_match_empty_counter="$enable_plugin"
30816 enable_plugin="no"
30817 force="no"
30818 # Check whether --enable-match_hashed was given.
30819 if test "${enable_match_hashed+set}" = set; then :
30820 enableval=$enable_match_hashed;
30821 if test "x$enableval" = "xyes"
30822 then
30823 enable_plugin="yes"
30824 else if test "x$enableval" = "xforce"
30825 then
30826 enable_plugin="yes"
30827 force="yes"
30828 else
30829 enable_plugin="no (disabled on command line)"
30830 fi; fi
30832 else
30834 if test "x$enable_all_plugins" = "xauto"
30835 then
30836 if test "xyes" = "xyes"
30837 then
30838 enable_plugin="yes"
30839 else
30840 enable_plugin="no"
30841 fi
30842 else
30843 enable_plugin="$enable_all_plugins"
30844 fi
30846 fi
30848 if test "x$enable_plugin" = "xyes"
30849 then
30850 if test "xyes" = "xyes" || test "x$force" = "xyes"
30851 then
30853 $as_echo "#define HAVE_PLUGIN_MATCH_HASHED 1" >>confdefs.h
30855 if test "xyes" != "xyes"
30856 then
30857 dependency_warning="yes"
30858 fi
30859 else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
30860 dependency_error="yes"
30861 enable_plugin="no (dependency error)"
30862 fi
30863 fi
30864 if test "x$enable_plugin" = "xyes"; then
30865 BUILD_PLUGIN_MATCH_HASHED_TRUE=
30866 BUILD_PLUGIN_MATCH_HASHED_FALSE='#'
30867 else
30868 BUILD_PLUGIN_MATCH_HASHED_TRUE='#'
30869 BUILD_PLUGIN_MATCH_HASHED_FALSE=
30870 fi
30872 enable_match_hashed="$enable_plugin"
30876 enable_plugin="no"
30877 force="no"
30878 # Check whether --enable-match_regex was given.
30879 if test "${enable_match_regex+set}" = set; then :
30880 enableval=$enable_match_regex;
30881 if test "x$enableval" = "xyes"
30882 then
30883 enable_plugin="yes"
30884 else if test "x$enableval" = "xforce"
30885 then
30886 enable_plugin="yes"
30887 force="yes"
30888 else
30889 enable_plugin="no (disabled on command line)"
30890 fi; fi
30892 else
30894 if test "x$enable_all_plugins" = "xauto"
30895 then
30896 if test "xyes" = "xyes"
30897 then
30898 enable_plugin="yes"
30899 else
30900 enable_plugin="no"
30901 fi
30902 else
30903 enable_plugin="$enable_all_plugins"
30904 fi
30906 fi
30908 if test "x$enable_plugin" = "xyes"
30909 then
30910 if test "xyes" = "xyes" || test "x$force" = "xyes"
30911 then
30913 $as_echo "#define HAVE_PLUGIN_MATCH_REGEX 1" >>confdefs.h
30915 if test "xyes" != "xyes"
30916 then
30917 dependency_warning="yes"
30918 fi
30919 else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
30920 dependency_error="yes"
30921 enable_plugin="no (dependency error)"
30922 fi
30923 fi
30924 if test "x$enable_plugin" = "xyes"; then
30925 BUILD_PLUGIN_MATCH_REGEX_TRUE=
30926 BUILD_PLUGIN_MATCH_REGEX_FALSE='#'
30927 else
30928 BUILD_PLUGIN_MATCH_REGEX_TRUE='#'
30929 BUILD_PLUGIN_MATCH_REGEX_FALSE=
30930 fi
30932 enable_match_regex="$enable_plugin"
30936 enable_plugin="no"
30937 force="no"
30938 # Check whether --enable-match_timediff was given.
30939 if test "${enable_match_timediff+set}" = set; then :
30940 enableval=$enable_match_timediff;
30941 if test "x$enableval" = "xyes"
30942 then
30943 enable_plugin="yes"
30944 else if test "x$enableval" = "xforce"
30945 then
30946 enable_plugin="yes"
30947 force="yes"
30948 else
30949 enable_plugin="no (disabled on command line)"
30950 fi; fi
30952 else
30954 if test "x$enable_all_plugins" = "xauto"
30955 then
30956 if test "xyes" = "xyes"
30957 then
30958 enable_plugin="yes"
30959 else
30960 enable_plugin="no"
30961 fi
30962 else
30963 enable_plugin="$enable_all_plugins"
30964 fi
30966 fi
30968 if test "x$enable_plugin" = "xyes"
30969 then
30970 if test "xyes" = "xyes" || test "x$force" = "xyes"
30971 then
30973 $as_echo "#define HAVE_PLUGIN_MATCH_TIMEDIFF 1" >>confdefs.h
30975 if test "xyes" != "xyes"
30976 then
30977 dependency_warning="yes"
30978 fi
30979 else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
30980 dependency_error="yes"
30981 enable_plugin="no (dependency error)"
30982 fi
30983 fi
30984 if test "x$enable_plugin" = "xyes"; then
30985 BUILD_PLUGIN_MATCH_TIMEDIFF_TRUE=
30986 BUILD_PLUGIN_MATCH_TIMEDIFF_FALSE='#'
30987 else
30988 BUILD_PLUGIN_MATCH_TIMEDIFF_TRUE='#'
30989 BUILD_PLUGIN_MATCH_TIMEDIFF_FALSE=
30990 fi
30992 enable_match_timediff="$enable_plugin"
30996 enable_plugin="no"
30997 force="no"
30998 # Check whether --enable-match_value was given.
30999 if test "${enable_match_value+set}" = set; then :
31000 enableval=$enable_match_value;
31001 if test "x$enableval" = "xyes"
31002 then
31003 enable_plugin="yes"
31004 else if test "x$enableval" = "xforce"
31005 then
31006 enable_plugin="yes"
31007 force="yes"
31008 else
31009 enable_plugin="no (disabled on command line)"
31010 fi; fi
31012 else
31014 if test "x$enable_all_plugins" = "xauto"
31015 then
31016 if test "xyes" = "xyes"
31017 then
31018 enable_plugin="yes"
31019 else
31020 enable_plugin="no"
31021 fi
31022 else
31023 enable_plugin="$enable_all_plugins"
31024 fi
31026 fi
31028 if test "x$enable_plugin" = "xyes"
31029 then
31030 if test "xyes" = "xyes" || test "x$force" = "xyes"
31031 then
31033 $as_echo "#define HAVE_PLUGIN_MATCH_VALUE 1" >>confdefs.h
31035 if test "xyes" != "xyes"
31036 then
31037 dependency_warning="yes"
31038 fi
31039 else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
31040 dependency_error="yes"
31041 enable_plugin="no (dependency error)"
31042 fi
31043 fi
31044 if test "x$enable_plugin" = "xyes"; then
31045 BUILD_PLUGIN_MATCH_VALUE_TRUE=
31046 BUILD_PLUGIN_MATCH_VALUE_FALSE='#'
31047 else
31048 BUILD_PLUGIN_MATCH_VALUE_TRUE='#'
31049 BUILD_PLUGIN_MATCH_VALUE_FALSE=
31050 fi
31052 enable_match_value="$enable_plugin"
31056 enable_plugin="no"
31057 force="no"
31058 # Check whether --enable-mbmon was given.
31059 if test "${enable_mbmon+set}" = set; then :
31060 enableval=$enable_mbmon;
31061 if test "x$enableval" = "xyes"
31062 then
31063 enable_plugin="yes"
31064 else if test "x$enableval" = "xforce"
31065 then
31066 enable_plugin="yes"
31067 force="yes"
31068 else
31069 enable_plugin="no (disabled on command line)"
31070 fi; fi
31072 else
31074 if test "x$enable_all_plugins" = "xauto"
31075 then
31076 if test "xyes" = "xyes"
31077 then
31078 enable_plugin="yes"
31079 else
31080 enable_plugin="no"
31081 fi
31082 else
31083 enable_plugin="$enable_all_plugins"
31084 fi
31086 fi
31088 if test "x$enable_plugin" = "xyes"
31089 then
31090 if test "xyes" = "xyes" || test "x$force" = "xyes"
31091 then
31093 $as_echo "#define HAVE_PLUGIN_MBMON 1" >>confdefs.h
31095 if test "xyes" != "xyes"
31096 then
31097 dependency_warning="yes"
31098 fi
31099 else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
31100 dependency_error="yes"
31101 enable_plugin="no (dependency error)"
31102 fi
31103 fi
31104 if test "x$enable_plugin" = "xyes"; then
31105 BUILD_PLUGIN_MBMON_TRUE=
31106 BUILD_PLUGIN_MBMON_FALSE='#'
31107 else
31108 BUILD_PLUGIN_MBMON_TRUE='#'
31109 BUILD_PLUGIN_MBMON_FALSE=
31110 fi
31112 enable_mbmon="$enable_plugin"
31116 enable_plugin="no"
31117 force="no"
31118 # Check whether --enable-md was given.
31119 if test "${enable_md+set}" = set; then :
31120 enableval=$enable_md;
31121 if test "x$enableval" = "xyes"
31122 then
31123 enable_plugin="yes"
31124 else if test "x$enableval" = "xforce"
31125 then
31126 enable_plugin="yes"
31127 force="yes"
31128 else
31129 enable_plugin="no (disabled on command line)"
31130 fi; fi
31132 else
31134 if test "x$enable_all_plugins" = "xauto"
31135 then
31136 if test "x$have_linux_raid_md_u_h" = "xyes"
31137 then
31138 enable_plugin="yes"
31139 else
31140 enable_plugin="no"
31141 fi
31142 else
31143 enable_plugin="$enable_all_plugins"
31144 fi
31146 fi
31148 if test "x$enable_plugin" = "xyes"
31149 then
31150 if test "x$have_linux_raid_md_u_h" = "xyes" || test "x$force" = "xyes"
31151 then
31153 $as_echo "#define HAVE_PLUGIN_MD 1" >>confdefs.h
31155 if test "x$have_linux_raid_md_u_h" != "xyes"
31156 then
31157 dependency_warning="yes"
31158 fi
31159 else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
31160 dependency_error="yes"
31161 enable_plugin="no (dependency error)"
31162 fi
31163 fi
31164 if test "x$enable_plugin" = "xyes"; then
31165 BUILD_PLUGIN_MD_TRUE=
31166 BUILD_PLUGIN_MD_FALSE='#'
31167 else
31168 BUILD_PLUGIN_MD_TRUE='#'
31169 BUILD_PLUGIN_MD_FALSE=
31170 fi
31172 enable_md="$enable_plugin"
31176 enable_plugin="no"
31177 force="no"
31178 # Check whether --enable-memcachec was given.
31179 if test "${enable_memcachec+set}" = set; then :
31180 enableval=$enable_memcachec;
31181 if test "x$enableval" = "xyes"
31182 then
31183 enable_plugin="yes"
31184 else if test "x$enableval" = "xforce"
31185 then
31186 enable_plugin="yes"
31187 force="yes"
31188 else
31189 enable_plugin="no (disabled on command line)"
31190 fi; fi
31192 else
31194 if test "x$enable_all_plugins" = "xauto"
31195 then
31196 if test "x$with_libmemcached" = "xyes"
31197 then
31198 enable_plugin="yes"
31199 else
31200 enable_plugin="no"
31201 fi
31202 else
31203 enable_plugin="$enable_all_plugins"
31204 fi
31206 fi
31208 if test "x$enable_plugin" = "xyes"
31209 then
31210 if test "x$with_libmemcached" = "xyes" || test "x$force" = "xyes"
31211 then
31213 $as_echo "#define HAVE_PLUGIN_MEMCACHEC 1" >>confdefs.h
31215 if test "x$with_libmemcached" != "xyes"
31216 then
31217 dependency_warning="yes"
31218 fi
31219 else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
31220 dependency_error="yes"
31221 enable_plugin="no (dependency error)"
31222 fi
31223 fi
31224 if test "x$enable_plugin" = "xyes"; then
31225 BUILD_PLUGIN_MEMCACHEC_TRUE=
31226 BUILD_PLUGIN_MEMCACHEC_FALSE='#'
31227 else
31228 BUILD_PLUGIN_MEMCACHEC_TRUE='#'
31229 BUILD_PLUGIN_MEMCACHEC_FALSE=
31230 fi
31232 enable_memcachec="$enable_plugin"
31236 enable_plugin="no"
31237 force="no"
31238 # Check whether --enable-memcached was given.
31239 if test "${enable_memcached+set}" = set; then :
31240 enableval=$enable_memcached;
31241 if test "x$enableval" = "xyes"
31242 then
31243 enable_plugin="yes"
31244 else if test "x$enableval" = "xforce"
31245 then
31246 enable_plugin="yes"
31247 force="yes"
31248 else
31249 enable_plugin="no (disabled on command line)"
31250 fi; fi
31252 else
31254 if test "x$enable_all_plugins" = "xauto"
31255 then
31256 if test "xyes" = "xyes"
31257 then
31258 enable_plugin="yes"
31259 else
31260 enable_plugin="no"
31261 fi
31262 else
31263 enable_plugin="$enable_all_plugins"
31264 fi
31266 fi
31268 if test "x$enable_plugin" = "xyes"
31269 then
31270 if test "xyes" = "xyes" || test "x$force" = "xyes"
31271 then
31273 $as_echo "#define HAVE_PLUGIN_MEMCACHED 1" >>confdefs.h
31275 if test "xyes" != "xyes"
31276 then
31277 dependency_warning="yes"
31278 fi
31279 else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
31280 dependency_error="yes"
31281 enable_plugin="no (dependency error)"
31282 fi
31283 fi
31284 if test "x$enable_plugin" = "xyes"; then
31285 BUILD_PLUGIN_MEMCACHED_TRUE=
31286 BUILD_PLUGIN_MEMCACHED_FALSE='#'
31287 else
31288 BUILD_PLUGIN_MEMCACHED_TRUE='#'
31289 BUILD_PLUGIN_MEMCACHED_FALSE=
31290 fi
31292 enable_memcached="$enable_plugin"
31296 enable_plugin="no"
31297 force="no"
31298 # Check whether --enable-memory was given.
31299 if test "${enable_memory+set}" = set; then :
31300 enableval=$enable_memory;
31301 if test "x$enableval" = "xyes"
31302 then
31303 enable_plugin="yes"
31304 else if test "x$enableval" = "xforce"
31305 then
31306 enable_plugin="yes"
31307 force="yes"
31308 else
31309 enable_plugin="no (disabled on command line)"
31310 fi; fi
31312 else
31314 if test "x$enable_all_plugins" = "xauto"
31315 then
31316 if test "x$plugin_memory" = "xyes"
31317 then
31318 enable_plugin="yes"
31319 else
31320 enable_plugin="no"
31321 fi
31322 else
31323 enable_plugin="$enable_all_plugins"
31324 fi
31326 fi
31328 if test "x$enable_plugin" = "xyes"
31329 then
31330 if test "x$plugin_memory" = "xyes" || test "x$force" = "xyes"
31331 then
31333 $as_echo "#define HAVE_PLUGIN_MEMORY 1" >>confdefs.h
31335 if test "x$plugin_memory" != "xyes"
31336 then
31337 dependency_warning="yes"
31338 fi
31339 else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
31340 dependency_error="yes"
31341 enable_plugin="no (dependency error)"
31342 fi
31343 fi
31344 if test "x$enable_plugin" = "xyes"; then
31345 BUILD_PLUGIN_MEMORY_TRUE=
31346 BUILD_PLUGIN_MEMORY_FALSE='#'
31347 else
31348 BUILD_PLUGIN_MEMORY_TRUE='#'
31349 BUILD_PLUGIN_MEMORY_FALSE=
31350 fi
31352 enable_memory="$enable_plugin"
31356 enable_plugin="no"
31357 force="no"
31358 # Check whether --enable-mic was given.
31359 if test "${enable_mic+set}" = set; then :
31360 enableval=$enable_mic;
31361 if test "x$enableval" = "xyes"
31362 then
31363 enable_plugin="yes"
31364 else if test "x$enableval" = "xforce"
31365 then
31366 enable_plugin="yes"
31367 force="yes"
31368 else
31369 enable_plugin="no (disabled on command line)"
31370 fi; fi
31372 else
31374 if test "x$enable_all_plugins" = "xauto"
31375 then
31376 if test "x$with_mic" = "xyes"
31377 then
31378 enable_plugin="yes"
31379 else
31380 enable_plugin="no"
31381 fi
31382 else
31383 enable_plugin="$enable_all_plugins"
31384 fi
31386 fi
31388 if test "x$enable_plugin" = "xyes"
31389 then
31390 if test "x$with_mic" = "xyes" || test "x$force" = "xyes"
31391 then
31393 $as_echo "#define HAVE_PLUGIN_MIC 1" >>confdefs.h
31395 if test "x$with_mic" != "xyes"
31396 then
31397 dependency_warning="yes"
31398 fi
31399 else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
31400 dependency_error="yes"
31401 enable_plugin="no (dependency error)"
31402 fi
31403 fi
31404 if test "x$enable_plugin" = "xyes"; then
31405 BUILD_PLUGIN_MIC_TRUE=
31406 BUILD_PLUGIN_MIC_FALSE='#'
31407 else
31408 BUILD_PLUGIN_MIC_TRUE='#'
31409 BUILD_PLUGIN_MIC_FALSE=
31410 fi
31412 enable_mic="$enable_plugin"
31416 enable_plugin="no"
31417 force="no"
31418 # Check whether --enable-modbus was given.
31419 if test "${enable_modbus+set}" = set; then :
31420 enableval=$enable_modbus;
31421 if test "x$enableval" = "xyes"
31422 then
31423 enable_plugin="yes"
31424 else if test "x$enableval" = "xforce"
31425 then
31426 enable_plugin="yes"
31427 force="yes"
31428 else
31429 enable_plugin="no (disabled on command line)"
31430 fi; fi
31432 else
31434 if test "x$enable_all_plugins" = "xauto"
31435 then
31436 if test "x$with_libmodbus" = "xyes"
31437 then
31438 enable_plugin="yes"
31439 else
31440 enable_plugin="no"
31441 fi
31442 else
31443 enable_plugin="$enable_all_plugins"
31444 fi
31446 fi
31448 if test "x$enable_plugin" = "xyes"
31449 then
31450 if test "x$with_libmodbus" = "xyes" || test "x$force" = "xyes"
31451 then
31453 $as_echo "#define HAVE_PLUGIN_MODBUS 1" >>confdefs.h
31455 if test "x$with_libmodbus" != "xyes"
31456 then
31457 dependency_warning="yes"
31458 fi
31459 else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
31460 dependency_error="yes"
31461 enable_plugin="no (dependency error)"
31462 fi
31463 fi
31464 if test "x$enable_plugin" = "xyes"; then
31465 BUILD_PLUGIN_MODBUS_TRUE=
31466 BUILD_PLUGIN_MODBUS_FALSE='#'
31467 else
31468 BUILD_PLUGIN_MODBUS_TRUE='#'
31469 BUILD_PLUGIN_MODBUS_FALSE=
31470 fi
31472 enable_modbus="$enable_plugin"
31476 enable_plugin="no"
31477 force="no"
31478 # Check whether --enable-multimeter was given.
31479 if test "${enable_multimeter+set}" = set; then :
31480 enableval=$enable_multimeter;
31481 if test "x$enableval" = "xyes"
31482 then
31483 enable_plugin="yes"
31484 else if test "x$enableval" = "xforce"
31485 then
31486 enable_plugin="yes"
31487 force="yes"
31488 else
31489 enable_plugin="no (disabled on command line)"
31490 fi; fi
31492 else
31494 if test "x$enable_all_plugins" = "xauto"
31495 then
31496 if test "x$plugin_multimeter" = "xyes"
31497 then
31498 enable_plugin="yes"
31499 else
31500 enable_plugin="no"
31501 fi
31502 else
31503 enable_plugin="$enable_all_plugins"
31504 fi
31506 fi
31508 if test "x$enable_plugin" = "xyes"
31509 then
31510 if test "x$plugin_multimeter" = "xyes" || test "x$force" = "xyes"
31511 then
31513 $as_echo "#define HAVE_PLUGIN_MULTIMETER 1" >>confdefs.h
31515 if test "x$plugin_multimeter" != "xyes"
31516 then
31517 dependency_warning="yes"
31518 fi
31519 else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
31520 dependency_error="yes"
31521 enable_plugin="no (dependency error)"
31522 fi
31523 fi
31524 if test "x$enable_plugin" = "xyes"; then
31525 BUILD_PLUGIN_MULTIMETER_TRUE=
31526 BUILD_PLUGIN_MULTIMETER_FALSE='#'
31527 else
31528 BUILD_PLUGIN_MULTIMETER_TRUE='#'
31529 BUILD_PLUGIN_MULTIMETER_FALSE=
31530 fi
31532 enable_multimeter="$enable_plugin"
31536 enable_plugin="no"
31537 force="no"
31538 # Check whether --enable-mysql was given.
31539 if test "${enable_mysql+set}" = set; then :
31540 enableval=$enable_mysql;
31541 if test "x$enableval" = "xyes"
31542 then
31543 enable_plugin="yes"
31544 else if test "x$enableval" = "xforce"
31545 then
31546 enable_plugin="yes"
31547 force="yes"
31548 else
31549 enable_plugin="no (disabled on command line)"
31550 fi; fi
31552 else
31554 if test "x$enable_all_plugins" = "xauto"
31555 then
31556 if test "x$with_libmysql" = "xyes"
31557 then
31558 enable_plugin="yes"
31559 else
31560 enable_plugin="no"
31561 fi
31562 else
31563 enable_plugin="$enable_all_plugins"
31564 fi
31566 fi
31568 if test "x$enable_plugin" = "xyes"
31569 then
31570 if test "x$with_libmysql" = "xyes" || test "x$force" = "xyes"
31571 then
31573 $as_echo "#define HAVE_PLUGIN_MYSQL 1" >>confdefs.h
31575 if test "x$with_libmysql" != "xyes"
31576 then
31577 dependency_warning="yes"
31578 fi
31579 else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
31580 dependency_error="yes"
31581 enable_plugin="no (dependency error)"
31582 fi
31583 fi
31584 if test "x$enable_plugin" = "xyes"; then
31585 BUILD_PLUGIN_MYSQL_TRUE=
31586 BUILD_PLUGIN_MYSQL_FALSE='#'
31587 else
31588 BUILD_PLUGIN_MYSQL_TRUE='#'
31589 BUILD_PLUGIN_MYSQL_FALSE=
31590 fi
31592 enable_mysql="$enable_plugin"
31596 enable_plugin="no"
31597 force="no"
31598 # Check whether --enable-netapp was given.
31599 if test "${enable_netapp+set}" = set; then :
31600 enableval=$enable_netapp;
31601 if test "x$enableval" = "xyes"
31602 then
31603 enable_plugin="yes"
31604 else if test "x$enableval" = "xforce"
31605 then
31606 enable_plugin="yes"
31607 force="yes"
31608 else
31609 enable_plugin="no (disabled on command line)"
31610 fi; fi
31612 else
31614 if test "x$enable_all_plugins" = "xauto"
31615 then
31616 if test "x$with_libnetapp" = "xyes"
31617 then
31618 enable_plugin="yes"
31619 else
31620 enable_plugin="no"
31621 fi
31622 else
31623 enable_plugin="$enable_all_plugins"
31624 fi
31626 fi
31628 if test "x$enable_plugin" = "xyes"
31629 then
31630 if test "x$with_libnetapp" = "xyes" || test "x$force" = "xyes"
31631 then
31633 $as_echo "#define HAVE_PLUGIN_NETAPP 1" >>confdefs.h
31635 if test "x$with_libnetapp" != "xyes"
31636 then
31637 dependency_warning="yes"
31638 fi
31639 else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
31640 dependency_error="yes"
31641 enable_plugin="no (dependency error)"
31642 fi
31643 fi
31644 if test "x$enable_plugin" = "xyes"; then
31645 BUILD_PLUGIN_NETAPP_TRUE=
31646 BUILD_PLUGIN_NETAPP_FALSE='#'
31647 else
31648 BUILD_PLUGIN_NETAPP_TRUE='#'
31649 BUILD_PLUGIN_NETAPP_FALSE=
31650 fi
31652 enable_netapp="$enable_plugin"
31656 enable_plugin="no"
31657 force="no"
31658 # Check whether --enable-netlink was given.
31659 if test "${enable_netlink+set}" = set; then :
31660 enableval=$enable_netlink;
31661 if test "x$enableval" = "xyes"
31662 then
31663 enable_plugin="yes"
31664 else if test "x$enableval" = "xforce"
31665 then
31666 enable_plugin="yes"
31667 force="yes"
31668 else
31669 enable_plugin="no (disabled on command line)"
31670 fi; fi
31672 else
31674 if test "x$enable_all_plugins" = "xauto"
31675 then
31676 if test "x$with_libmnl" = "xyes"
31677 then
31678 enable_plugin="yes"
31679 else
31680 enable_plugin="no"
31681 fi
31682 else
31683 enable_plugin="$enable_all_plugins"
31684 fi
31686 fi
31688 if test "x$enable_plugin" = "xyes"
31689 then
31690 if test "x$with_libmnl" = "xyes" || test "x$force" = "xyes"
31691 then
31693 $as_echo "#define HAVE_PLUGIN_NETLINK 1" >>confdefs.h
31695 if test "x$with_libmnl" != "xyes"
31696 then
31697 dependency_warning="yes"
31698 fi
31699 else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
31700 dependency_error="yes"
31701 enable_plugin="no (dependency error)"
31702 fi
31703 fi
31704 if test "x$enable_plugin" = "xyes"; then
31705 BUILD_PLUGIN_NETLINK_TRUE=
31706 BUILD_PLUGIN_NETLINK_FALSE='#'
31707 else
31708 BUILD_PLUGIN_NETLINK_TRUE='#'
31709 BUILD_PLUGIN_NETLINK_FALSE=
31710 fi
31712 enable_netlink="$enable_plugin"
31716 enable_plugin="no"
31717 force="no"
31718 # Check whether --enable-network was given.
31719 if test "${enable_network+set}" = set; then :
31720 enableval=$enable_network;
31721 if test "x$enableval" = "xyes"
31722 then
31723 enable_plugin="yes"
31724 else if test "x$enableval" = "xforce"
31725 then
31726 enable_plugin="yes"
31727 force="yes"
31728 else
31729 enable_plugin="no (disabled on command line)"
31730 fi; fi
31732 else
31734 if test "x$enable_all_plugins" = "xauto"
31735 then
31736 if test "xyes" = "xyes"
31737 then
31738 enable_plugin="yes"
31739 else
31740 enable_plugin="no"
31741 fi
31742 else
31743 enable_plugin="$enable_all_plugins"
31744 fi
31746 fi
31748 if test "x$enable_plugin" = "xyes"
31749 then
31750 if test "xyes" = "xyes" || test "x$force" = "xyes"
31751 then
31753 $as_echo "#define HAVE_PLUGIN_NETWORK 1" >>confdefs.h
31755 if test "xyes" != "xyes"
31756 then
31757 dependency_warning="yes"
31758 fi
31759 else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
31760 dependency_error="yes"
31761 enable_plugin="no (dependency error)"
31762 fi
31763 fi
31764 if test "x$enable_plugin" = "xyes"; then
31765 BUILD_PLUGIN_NETWORK_TRUE=
31766 BUILD_PLUGIN_NETWORK_FALSE='#'
31767 else
31768 BUILD_PLUGIN_NETWORK_TRUE='#'
31769 BUILD_PLUGIN_NETWORK_FALSE=
31770 fi
31772 enable_network="$enable_plugin"
31776 enable_plugin="no"
31777 force="no"
31778 # Check whether --enable-nfs was given.
31779 if test "${enable_nfs+set}" = set; then :
31780 enableval=$enable_nfs;
31781 if test "x$enableval" = "xyes"
31782 then
31783 enable_plugin="yes"
31784 else if test "x$enableval" = "xforce"
31785 then
31786 enable_plugin="yes"
31787 force="yes"
31788 else
31789 enable_plugin="no (disabled on command line)"
31790 fi; fi
31792 else
31794 if test "x$enable_all_plugins" = "xauto"
31795 then
31796 if test "x$plugin_nfs" = "xyes"
31797 then
31798 enable_plugin="yes"
31799 else
31800 enable_plugin="no"
31801 fi
31802 else
31803 enable_plugin="$enable_all_plugins"
31804 fi
31806 fi
31808 if test "x$enable_plugin" = "xyes"
31809 then
31810 if test "x$plugin_nfs" = "xyes" || test "x$force" = "xyes"
31811 then
31813 $as_echo "#define HAVE_PLUGIN_NFS 1" >>confdefs.h
31815 if test "x$plugin_nfs" != "xyes"
31816 then
31817 dependency_warning="yes"
31818 fi
31819 else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
31820 dependency_error="yes"
31821 enable_plugin="no (dependency error)"
31822 fi
31823 fi
31824 if test "x$enable_plugin" = "xyes"; then
31825 BUILD_PLUGIN_NFS_TRUE=
31826 BUILD_PLUGIN_NFS_FALSE='#'
31827 else
31828 BUILD_PLUGIN_NFS_TRUE='#'
31829 BUILD_PLUGIN_NFS_FALSE=
31830 fi
31832 enable_nfs="$enable_plugin"
31836 enable_plugin="no"
31837 force="no"
31838 # Check whether --enable-nginx was given.
31839 if test "${enable_nginx+set}" = set; then :
31840 enableval=$enable_nginx;
31841 if test "x$enableval" = "xyes"
31842 then
31843 enable_plugin="yes"
31844 else if test "x$enableval" = "xforce"
31845 then
31846 enable_plugin="yes"
31847 force="yes"
31848 else
31849 enable_plugin="no (disabled on command line)"
31850 fi; fi
31852 else
31854 if test "x$enable_all_plugins" = "xauto"
31855 then
31856 if test "x$with_libcurl" = "xyes"
31857 then
31858 enable_plugin="yes"
31859 else
31860 enable_plugin="no"
31861 fi
31862 else
31863 enable_plugin="$enable_all_plugins"
31864 fi
31866 fi
31868 if test "x$enable_plugin" = "xyes"
31869 then
31870 if test "x$with_libcurl" = "xyes" || test "x$force" = "xyes"
31871 then
31873 $as_echo "#define HAVE_PLUGIN_NGINX 1" >>confdefs.h
31875 if test "x$with_libcurl" != "xyes"
31876 then
31877 dependency_warning="yes"
31878 fi
31879 else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
31880 dependency_error="yes"
31881 enable_plugin="no (dependency error)"
31882 fi
31883 fi
31884 if test "x$enable_plugin" = "xyes"; then
31885 BUILD_PLUGIN_NGINX_TRUE=
31886 BUILD_PLUGIN_NGINX_FALSE='#'
31887 else
31888 BUILD_PLUGIN_NGINX_TRUE='#'
31889 BUILD_PLUGIN_NGINX_FALSE=
31890 fi
31892 enable_nginx="$enable_plugin"
31896 enable_plugin="no"
31897 force="no"
31898 # Check whether --enable-notify_desktop was given.
31899 if test "${enable_notify_desktop+set}" = set; then :
31900 enableval=$enable_notify_desktop;
31901 if test "x$enableval" = "xyes"
31902 then
31903 enable_plugin="yes"
31904 else if test "x$enableval" = "xforce"
31905 then
31906 enable_plugin="yes"
31907 force="yes"
31908 else
31909 enable_plugin="no (disabled on command line)"
31910 fi; fi
31912 else
31914 if test "x$enable_all_plugins" = "xauto"
31915 then
31916 if test "x$with_libnotify" = "xyes"
31917 then
31918 enable_plugin="yes"
31919 else
31920 enable_plugin="no"
31921 fi
31922 else
31923 enable_plugin="$enable_all_plugins"
31924 fi
31926 fi
31928 if test "x$enable_plugin" = "xyes"
31929 then
31930 if test "x$with_libnotify" = "xyes" || test "x$force" = "xyes"
31931 then
31933 $as_echo "#define HAVE_PLUGIN_NOTIFY_DESKTOP 1" >>confdefs.h
31935 if test "x$with_libnotify" != "xyes"
31936 then
31937 dependency_warning="yes"
31938 fi
31939 else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
31940 dependency_error="yes"
31941 enable_plugin="no (dependency error)"
31942 fi
31943 fi
31944 if test "x$enable_plugin" = "xyes"; then
31945 BUILD_PLUGIN_NOTIFY_DESKTOP_TRUE=
31946 BUILD_PLUGIN_NOTIFY_DESKTOP_FALSE='#'
31947 else
31948 BUILD_PLUGIN_NOTIFY_DESKTOP_TRUE='#'
31949 BUILD_PLUGIN_NOTIFY_DESKTOP_FALSE=
31950 fi
31952 enable_notify_desktop="$enable_plugin"
31956 enable_plugin="no"
31957 force="no"
31958 # Check whether --enable-notify_email was given.
31959 if test "${enable_notify_email+set}" = set; then :
31960 enableval=$enable_notify_email;
31961 if test "x$enableval" = "xyes"
31962 then
31963 enable_plugin="yes"
31964 else if test "x$enableval" = "xforce"
31965 then
31966 enable_plugin="yes"
31967 force="yes"
31968 else
31969 enable_plugin="no (disabled on command line)"
31970 fi; fi
31972 else
31974 if test "x$enable_all_plugins" = "xauto"
31975 then
31976 if test "x$with_libesmtp" = "xyes"
31977 then
31978 enable_plugin="yes"
31979 else
31980 enable_plugin="no"
31981 fi
31982 else
31983 enable_plugin="$enable_all_plugins"
31984 fi
31986 fi
31988 if test "x$enable_plugin" = "xyes"
31989 then
31990 if test "x$with_libesmtp" = "xyes" || test "x$force" = "xyes"
31991 then
31993 $as_echo "#define HAVE_PLUGIN_NOTIFY_EMAIL 1" >>confdefs.h
31995 if test "x$with_libesmtp" != "xyes"
31996 then
31997 dependency_warning="yes"
31998 fi
31999 else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
32000 dependency_error="yes"
32001 enable_plugin="no (dependency error)"
32002 fi
32003 fi
32004 if test "x$enable_plugin" = "xyes"; then
32005 BUILD_PLUGIN_NOTIFY_EMAIL_TRUE=
32006 BUILD_PLUGIN_NOTIFY_EMAIL_FALSE='#'
32007 else
32008 BUILD_PLUGIN_NOTIFY_EMAIL_TRUE='#'
32009 BUILD_PLUGIN_NOTIFY_EMAIL_FALSE=
32010 fi
32012 enable_notify_email="$enable_plugin"
32016 enable_plugin="no"
32017 force="no"
32018 # Check whether --enable-ntpd was given.
32019 if test "${enable_ntpd+set}" = set; then :
32020 enableval=$enable_ntpd;
32021 if test "x$enableval" = "xyes"
32022 then
32023 enable_plugin="yes"
32024 else if test "x$enableval" = "xforce"
32025 then
32026 enable_plugin="yes"
32027 force="yes"
32028 else
32029 enable_plugin="no (disabled on command line)"
32030 fi; fi
32032 else
32034 if test "x$enable_all_plugins" = "xauto"
32035 then
32036 if test "xyes" = "xyes"
32037 then
32038 enable_plugin="yes"
32039 else
32040 enable_plugin="no"
32041 fi
32042 else
32043 enable_plugin="$enable_all_plugins"
32044 fi
32046 fi
32048 if test "x$enable_plugin" = "xyes"
32049 then
32050 if test "xyes" = "xyes" || test "x$force" = "xyes"
32051 then
32053 $as_echo "#define HAVE_PLUGIN_NTPD 1" >>confdefs.h
32055 if test "xyes" != "xyes"
32056 then
32057 dependency_warning="yes"
32058 fi
32059 else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
32060 dependency_error="yes"
32061 enable_plugin="no (dependency error)"
32062 fi
32063 fi
32064 if test "x$enable_plugin" = "xyes"; then
32065 BUILD_PLUGIN_NTPD_TRUE=
32066 BUILD_PLUGIN_NTPD_FALSE='#'
32067 else
32068 BUILD_PLUGIN_NTPD_TRUE='#'
32069 BUILD_PLUGIN_NTPD_FALSE=
32070 fi
32072 enable_ntpd="$enable_plugin"
32076 enable_plugin="no"
32077 force="no"
32078 # Check whether --enable-numa was given.
32079 if test "${enable_numa+set}" = set; then :
32080 enableval=$enable_numa;
32081 if test "x$enableval" = "xyes"
32082 then
32083 enable_plugin="yes"
32084 else if test "x$enableval" = "xforce"
32085 then
32086 enable_plugin="yes"
32087 force="yes"
32088 else
32089 enable_plugin="no (disabled on command line)"
32090 fi; fi
32092 else
32094 if test "x$enable_all_plugins" = "xauto"
32095 then
32096 if test "x$plugin_numa" = "xyes"
32097 then
32098 enable_plugin="yes"
32099 else
32100 enable_plugin="no"
32101 fi
32102 else
32103 enable_plugin="$enable_all_plugins"
32104 fi
32106 fi
32108 if test "x$enable_plugin" = "xyes"
32109 then
32110 if test "x$plugin_numa" = "xyes" || test "x$force" = "xyes"
32111 then
32113 $as_echo "#define HAVE_PLUGIN_NUMA 1" >>confdefs.h
32115 if test "x$plugin_numa" != "xyes"
32116 then
32117 dependency_warning="yes"
32118 fi
32119 else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
32120 dependency_error="yes"
32121 enable_plugin="no (dependency error)"
32122 fi
32123 fi
32124 if test "x$enable_plugin" = "xyes"; then
32125 BUILD_PLUGIN_NUMA_TRUE=
32126 BUILD_PLUGIN_NUMA_FALSE='#'
32127 else
32128 BUILD_PLUGIN_NUMA_TRUE='#'
32129 BUILD_PLUGIN_NUMA_FALSE=
32130 fi
32132 enable_numa="$enable_plugin"
32136 enable_plugin="no"
32137 force="no"
32138 # Check whether --enable-nut was given.
32139 if test "${enable_nut+set}" = set; then :
32140 enableval=$enable_nut;
32141 if test "x$enableval" = "xyes"
32142 then
32143 enable_plugin="yes"
32144 else if test "x$enableval" = "xforce"
32145 then
32146 enable_plugin="yes"
32147 force="yes"
32148 else
32149 enable_plugin="no (disabled on command line)"
32150 fi; fi
32152 else
32154 if test "x$enable_all_plugins" = "xauto"
32155 then
32156 if test "x$with_libupsclient" = "xyes"
32157 then
32158 enable_plugin="yes"
32159 else
32160 enable_plugin="no"
32161 fi
32162 else
32163 enable_plugin="$enable_all_plugins"
32164 fi
32166 fi
32168 if test "x$enable_plugin" = "xyes"
32169 then
32170 if test "x$with_libupsclient" = "xyes" || test "x$force" = "xyes"
32171 then
32173 $as_echo "#define HAVE_PLUGIN_NUT 1" >>confdefs.h
32175 if test "x$with_libupsclient" != "xyes"
32176 then
32177 dependency_warning="yes"
32178 fi
32179 else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
32180 dependency_error="yes"
32181 enable_plugin="no (dependency error)"
32182 fi
32183 fi
32184 if test "x$enable_plugin" = "xyes"; then
32185 BUILD_PLUGIN_NUT_TRUE=
32186 BUILD_PLUGIN_NUT_FALSE='#'
32187 else
32188 BUILD_PLUGIN_NUT_TRUE='#'
32189 BUILD_PLUGIN_NUT_FALSE=
32190 fi
32192 enable_nut="$enable_plugin"
32196 enable_plugin="no"
32197 force="no"
32198 # Check whether --enable-olsrd was given.
32199 if test "${enable_olsrd+set}" = set; then :
32200 enableval=$enable_olsrd;
32201 if test "x$enableval" = "xyes"
32202 then
32203 enable_plugin="yes"
32204 else if test "x$enableval" = "xforce"
32205 then
32206 enable_plugin="yes"
32207 force="yes"
32208 else
32209 enable_plugin="no (disabled on command line)"
32210 fi; fi
32212 else
32214 if test "x$enable_all_plugins" = "xauto"
32215 then
32216 if test "xyes" = "xyes"
32217 then
32218 enable_plugin="yes"
32219 else
32220 enable_plugin="no"
32221 fi
32222 else
32223 enable_plugin="$enable_all_plugins"
32224 fi
32226 fi
32228 if test "x$enable_plugin" = "xyes"
32229 then
32230 if test "xyes" = "xyes" || test "x$force" = "xyes"
32231 then
32233 $as_echo "#define HAVE_PLUGIN_OLSRD 1" >>confdefs.h
32235 if test "xyes" != "xyes"
32236 then
32237 dependency_warning="yes"
32238 fi
32239 else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
32240 dependency_error="yes"
32241 enable_plugin="no (dependency error)"
32242 fi
32243 fi
32244 if test "x$enable_plugin" = "xyes"; then
32245 BUILD_PLUGIN_OLSRD_TRUE=
32246 BUILD_PLUGIN_OLSRD_FALSE='#'
32247 else
32248 BUILD_PLUGIN_OLSRD_TRUE='#'
32249 BUILD_PLUGIN_OLSRD_FALSE=
32250 fi
32252 enable_olsrd="$enable_plugin"
32256 enable_plugin="no"
32257 force="no"
32258 # Check whether --enable-onewire was given.
32259 if test "${enable_onewire+set}" = set; then :
32260 enableval=$enable_onewire;
32261 if test "x$enableval" = "xyes"
32262 then
32263 enable_plugin="yes"
32264 else if test "x$enableval" = "xforce"
32265 then
32266 enable_plugin="yes"
32267 force="yes"
32268 else
32269 enable_plugin="no (disabled on command line)"
32270 fi; fi
32272 else
32274 if test "x$enable_all_plugins" = "xauto"
32275 then
32276 if test "x$with_libowcapi" = "xyes"
32277 then
32278 enable_plugin="yes"
32279 else
32280 enable_plugin="no"
32281 fi
32282 else
32283 enable_plugin="$enable_all_plugins"
32284 fi
32286 fi
32288 if test "x$enable_plugin" = "xyes"
32289 then
32290 if test "x$with_libowcapi" = "xyes" || test "x$force" = "xyes"
32291 then
32293 $as_echo "#define HAVE_PLUGIN_ONEWIRE 1" >>confdefs.h
32295 if test "x$with_libowcapi" != "xyes"
32296 then
32297 dependency_warning="yes"
32298 fi
32299 else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
32300 dependency_error="yes"
32301 enable_plugin="no (dependency error)"
32302 fi
32303 fi
32304 if test "x$enable_plugin" = "xyes"; then
32305 BUILD_PLUGIN_ONEWIRE_TRUE=
32306 BUILD_PLUGIN_ONEWIRE_FALSE='#'
32307 else
32308 BUILD_PLUGIN_ONEWIRE_TRUE='#'
32309 BUILD_PLUGIN_ONEWIRE_FALSE=
32310 fi
32312 enable_onewire="$enable_plugin"
32316 enable_plugin="no"
32317 force="no"
32318 # Check whether --enable-openldap was given.
32319 if test "${enable_openldap+set}" = set; then :
32320 enableval=$enable_openldap;
32321 if test "x$enableval" = "xyes"
32322 then
32323 enable_plugin="yes"
32324 else if test "x$enableval" = "xforce"
32325 then
32326 enable_plugin="yes"
32327 force="yes"
32328 else
32329 enable_plugin="no (disabled on command line)"
32330 fi; fi
32332 else
32334 if test "x$enable_all_plugins" = "xauto"
32335 then
32336 if test "x$with_libldap" = "xyes"
32337 then
32338 enable_plugin="yes"
32339 else
32340 enable_plugin="no"
32341 fi
32342 else
32343 enable_plugin="$enable_all_plugins"
32344 fi
32346 fi
32348 if test "x$enable_plugin" = "xyes"
32349 then
32350 if test "x$with_libldap" = "xyes" || test "x$force" = "xyes"
32351 then
32353 $as_echo "#define HAVE_PLUGIN_OPENLDAP 1" >>confdefs.h
32355 if test "x$with_libldap" != "xyes"
32356 then
32357 dependency_warning="yes"
32358 fi
32359 else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
32360 dependency_error="yes"
32361 enable_plugin="no (dependency error)"
32362 fi
32363 fi
32364 if test "x$enable_plugin" = "xyes"; then
32365 BUILD_PLUGIN_OPENLDAP_TRUE=
32366 BUILD_PLUGIN_OPENLDAP_FALSE='#'
32367 else
32368 BUILD_PLUGIN_OPENLDAP_TRUE='#'
32369 BUILD_PLUGIN_OPENLDAP_FALSE=
32370 fi
32372 enable_openldap="$enable_plugin"
32376 enable_plugin="no"
32377 force="no"
32378 # Check whether --enable-openvpn was given.
32379 if test "${enable_openvpn+set}" = set; then :
32380 enableval=$enable_openvpn;
32381 if test "x$enableval" = "xyes"
32382 then
32383 enable_plugin="yes"
32384 else if test "x$enableval" = "xforce"
32385 then
32386 enable_plugin="yes"
32387 force="yes"
32388 else
32389 enable_plugin="no (disabled on command line)"
32390 fi; fi
32392 else
32394 if test "x$enable_all_plugins" = "xauto"
32395 then
32396 if test "xyes" = "xyes"
32397 then
32398 enable_plugin="yes"
32399 else
32400 enable_plugin="no"
32401 fi
32402 else
32403 enable_plugin="$enable_all_plugins"
32404 fi
32406 fi
32408 if test "x$enable_plugin" = "xyes"
32409 then
32410 if test "xyes" = "xyes" || test "x$force" = "xyes"
32411 then
32413 $as_echo "#define HAVE_PLUGIN_OPENVPN 1" >>confdefs.h
32415 if test "xyes" != "xyes"
32416 then
32417 dependency_warning="yes"
32418 fi
32419 else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
32420 dependency_error="yes"
32421 enable_plugin="no (dependency error)"
32422 fi
32423 fi
32424 if test "x$enable_plugin" = "xyes"; then
32425 BUILD_PLUGIN_OPENVPN_TRUE=
32426 BUILD_PLUGIN_OPENVPN_FALSE='#'
32427 else
32428 BUILD_PLUGIN_OPENVPN_TRUE='#'
32429 BUILD_PLUGIN_OPENVPN_FALSE=
32430 fi
32432 enable_openvpn="$enable_plugin"
32436 enable_plugin="no"
32437 force="no"
32438 # Check whether --enable-oracle was given.
32439 if test "${enable_oracle+set}" = set; then :
32440 enableval=$enable_oracle;
32441 if test "x$enableval" = "xyes"
32442 then
32443 enable_plugin="yes"
32444 else if test "x$enableval" = "xforce"
32445 then
32446 enable_plugin="yes"
32447 force="yes"
32448 else
32449 enable_plugin="no (disabled on command line)"
32450 fi; fi
32452 else
32454 if test "x$enable_all_plugins" = "xauto"
32455 then
32456 if test "x$with_oracle" = "xyes"
32457 then
32458 enable_plugin="yes"
32459 else
32460 enable_plugin="no"
32461 fi
32462 else
32463 enable_plugin="$enable_all_plugins"
32464 fi
32466 fi
32468 if test "x$enable_plugin" = "xyes"
32469 then
32470 if test "x$with_oracle" = "xyes" || test "x$force" = "xyes"
32471 then
32473 $as_echo "#define HAVE_PLUGIN_ORACLE 1" >>confdefs.h
32475 if test "x$with_oracle" != "xyes"
32476 then
32477 dependency_warning="yes"
32478 fi
32479 else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
32480 dependency_error="yes"
32481 enable_plugin="no (dependency error)"
32482 fi
32483 fi
32484 if test "x$enable_plugin" = "xyes"; then
32485 BUILD_PLUGIN_ORACLE_TRUE=
32486 BUILD_PLUGIN_ORACLE_FALSE='#'
32487 else
32488 BUILD_PLUGIN_ORACLE_TRUE='#'
32489 BUILD_PLUGIN_ORACLE_FALSE=
32490 fi
32492 enable_oracle="$enable_plugin"
32496 enable_plugin="no"
32497 force="no"
32498 # Check whether --enable-perl was given.
32499 if test "${enable_perl+set}" = set; then :
32500 enableval=$enable_perl;
32501 if test "x$enableval" = "xyes"
32502 then
32503 enable_plugin="yes"
32504 else if test "x$enableval" = "xforce"
32505 then
32506 enable_plugin="yes"
32507 force="yes"
32508 else
32509 enable_plugin="no (disabled on command line)"
32510 fi; fi
32512 else
32514 if test "x$enable_all_plugins" = "xauto"
32515 then
32516 if test "x$plugin_perl" = "xyes"
32517 then
32518 enable_plugin="yes"
32519 else
32520 enable_plugin="no"
32521 fi
32522 else
32523 enable_plugin="$enable_all_plugins"
32524 fi
32526 fi
32528 if test "x$enable_plugin" = "xyes"
32529 then
32530 if test "x$plugin_perl" = "xyes" || test "x$force" = "xyes"
32531 then
32533 $as_echo "#define HAVE_PLUGIN_PERL 1" >>confdefs.h
32535 if test "x$plugin_perl" != "xyes"
32536 then
32537 dependency_warning="yes"
32538 fi
32539 else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
32540 dependency_error="yes"
32541 enable_plugin="no (dependency error)"
32542 fi
32543 fi
32544 if test "x$enable_plugin" = "xyes"; then
32545 BUILD_PLUGIN_PERL_TRUE=
32546 BUILD_PLUGIN_PERL_FALSE='#'
32547 else
32548 BUILD_PLUGIN_PERL_TRUE='#'
32549 BUILD_PLUGIN_PERL_FALSE=
32550 fi
32552 enable_perl="$enable_plugin"
32556 enable_plugin="no"
32557 force="no"
32558 # Check whether --enable-pf was given.
32559 if test "${enable_pf+set}" = set; then :
32560 enableval=$enable_pf;
32561 if test "x$enableval" = "xyes"
32562 then
32563 enable_plugin="yes"
32564 else if test "x$enableval" = "xforce"
32565 then
32566 enable_plugin="yes"
32567 force="yes"
32568 else
32569 enable_plugin="no (disabled on command line)"
32570 fi; fi
32572 else
32574 if test "x$enable_all_plugins" = "xauto"
32575 then
32576 if test "x$have_net_pfvar_h" = "xyes"
32577 then
32578 enable_plugin="yes"
32579 else
32580 enable_plugin="no"
32581 fi
32582 else
32583 enable_plugin="$enable_all_plugins"
32584 fi
32586 fi
32588 if test "x$enable_plugin" = "xyes"
32589 then
32590 if test "x$have_net_pfvar_h" = "xyes" || test "x$force" = "xyes"
32591 then
32593 $as_echo "#define HAVE_PLUGIN_PF 1" >>confdefs.h
32595 if test "x$have_net_pfvar_h" != "xyes"
32596 then
32597 dependency_warning="yes"
32598 fi
32599 else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
32600 dependency_error="yes"
32601 enable_plugin="no (dependency error)"
32602 fi
32603 fi
32604 if test "x$enable_plugin" = "xyes"; then
32605 BUILD_PLUGIN_PF_TRUE=
32606 BUILD_PLUGIN_PF_FALSE='#'
32607 else
32608 BUILD_PLUGIN_PF_TRUE='#'
32609 BUILD_PLUGIN_PF_FALSE=
32610 fi
32612 enable_pf="$enable_plugin"
32615 # FIXME: Check for libevent, too.
32617 enable_plugin="no"
32618 force="no"
32619 # Check whether --enable-pinba was given.
32620 if test "${enable_pinba+set}" = set; then :
32621 enableval=$enable_pinba;
32622 if test "x$enableval" = "xyes"
32623 then
32624 enable_plugin="yes"
32625 else if test "x$enableval" = "xforce"
32626 then
32627 enable_plugin="yes"
32628 force="yes"
32629 else
32630 enable_plugin="no (disabled on command line)"
32631 fi; fi
32633 else
32635 if test "x$enable_all_plugins" = "xauto"
32636 then
32637 if test "x$have_protoc_c" = "xyes"
32638 then
32639 enable_plugin="yes"
32640 else
32641 enable_plugin="no"
32642 fi
32643 else
32644 enable_plugin="$enable_all_plugins"
32645 fi
32647 fi
32649 if test "x$enable_plugin" = "xyes"
32650 then
32651 if test "x$have_protoc_c" = "xyes" || test "x$force" = "xyes"
32652 then
32654 $as_echo "#define HAVE_PLUGIN_PINBA 1" >>confdefs.h
32656 if test "x$have_protoc_c" != "xyes"
32657 then
32658 dependency_warning="yes"
32659 fi
32660 else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
32661 dependency_error="yes"
32662 enable_plugin="no (dependency error)"
32663 fi
32664 fi
32665 if test "x$enable_plugin" = "xyes"; then
32666 BUILD_PLUGIN_PINBA_TRUE=
32667 BUILD_PLUGIN_PINBA_FALSE='#'
32668 else
32669 BUILD_PLUGIN_PINBA_TRUE='#'
32670 BUILD_PLUGIN_PINBA_FALSE=
32671 fi
32673 enable_pinba="$enable_plugin"
32677 enable_plugin="no"
32678 force="no"
32679 # Check whether --enable-ping was given.
32680 if test "${enable_ping+set}" = set; then :
32681 enableval=$enable_ping;
32682 if test "x$enableval" = "xyes"
32683 then
32684 enable_plugin="yes"
32685 else if test "x$enableval" = "xforce"
32686 then
32687 enable_plugin="yes"
32688 force="yes"
32689 else
32690 enable_plugin="no (disabled on command line)"
32691 fi; fi
32693 else
32695 if test "x$enable_all_plugins" = "xauto"
32696 then
32697 if test "x$with_liboping" = "xyes"
32698 then
32699 enable_plugin="yes"
32700 else
32701 enable_plugin="no"
32702 fi
32703 else
32704 enable_plugin="$enable_all_plugins"
32705 fi
32707 fi
32709 if test "x$enable_plugin" = "xyes"
32710 then
32711 if test "x$with_liboping" = "xyes" || test "x$force" = "xyes"
32712 then
32714 $as_echo "#define HAVE_PLUGIN_PING 1" >>confdefs.h
32716 if test "x$with_liboping" != "xyes"
32717 then
32718 dependency_warning="yes"
32719 fi
32720 else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
32721 dependency_error="yes"
32722 enable_plugin="no (dependency error)"
32723 fi
32724 fi
32725 if test "x$enable_plugin" = "xyes"; then
32726 BUILD_PLUGIN_PING_TRUE=
32727 BUILD_PLUGIN_PING_FALSE='#'
32728 else
32729 BUILD_PLUGIN_PING_TRUE='#'
32730 BUILD_PLUGIN_PING_FALSE=
32731 fi
32733 enable_ping="$enable_plugin"
32737 enable_plugin="no"
32738 force="no"
32739 # Check whether --enable-postgresql was given.
32740 if test "${enable_postgresql+set}" = set; then :
32741 enableval=$enable_postgresql;
32742 if test "x$enableval" = "xyes"
32743 then
32744 enable_plugin="yes"
32745 else if test "x$enableval" = "xforce"
32746 then
32747 enable_plugin="yes"
32748 force="yes"
32749 else
32750 enable_plugin="no (disabled on command line)"
32751 fi; fi
32753 else
32755 if test "x$enable_all_plugins" = "xauto"
32756 then
32757 if test "x$with_libpq" = "xyes"
32758 then
32759 enable_plugin="yes"
32760 else
32761 enable_plugin="no"
32762 fi
32763 else
32764 enable_plugin="$enable_all_plugins"
32765 fi
32767 fi
32769 if test "x$enable_plugin" = "xyes"
32770 then
32771 if test "x$with_libpq" = "xyes" || test "x$force" = "xyes"
32772 then
32774 $as_echo "#define HAVE_PLUGIN_POSTGRESQL 1" >>confdefs.h
32776 if test "x$with_libpq" != "xyes"
32777 then
32778 dependency_warning="yes"
32779 fi
32780 else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
32781 dependency_error="yes"
32782 enable_plugin="no (dependency error)"
32783 fi
32784 fi
32785 if test "x$enable_plugin" = "xyes"; then
32786 BUILD_PLUGIN_POSTGRESQL_TRUE=
32787 BUILD_PLUGIN_POSTGRESQL_FALSE='#'
32788 else
32789 BUILD_PLUGIN_POSTGRESQL_TRUE='#'
32790 BUILD_PLUGIN_POSTGRESQL_FALSE=
32791 fi
32793 enable_postgresql="$enable_plugin"
32797 enable_plugin="no"
32798 force="no"
32799 # Check whether --enable-powerdns was given.
32800 if test "${enable_powerdns+set}" = set; then :
32801 enableval=$enable_powerdns;
32802 if test "x$enableval" = "xyes"
32803 then
32804 enable_plugin="yes"
32805 else if test "x$enableval" = "xforce"
32806 then
32807 enable_plugin="yes"
32808 force="yes"
32809 else
32810 enable_plugin="no (disabled on command line)"
32811 fi; fi
32813 else
32815 if test "x$enable_all_plugins" = "xauto"
32816 then
32817 if test "xyes" = "xyes"
32818 then
32819 enable_plugin="yes"
32820 else
32821 enable_plugin="no"
32822 fi
32823 else
32824 enable_plugin="$enable_all_plugins"
32825 fi
32827 fi
32829 if test "x$enable_plugin" = "xyes"
32830 then
32831 if test "xyes" = "xyes" || test "x$force" = "xyes"
32832 then
32834 $as_echo "#define HAVE_PLUGIN_POWERDNS 1" >>confdefs.h
32836 if test "xyes" != "xyes"
32837 then
32838 dependency_warning="yes"
32839 fi
32840 else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
32841 dependency_error="yes"
32842 enable_plugin="no (dependency error)"
32843 fi
32844 fi
32845 if test "x$enable_plugin" = "xyes"; then
32846 BUILD_PLUGIN_POWERDNS_TRUE=
32847 BUILD_PLUGIN_POWERDNS_FALSE='#'
32848 else
32849 BUILD_PLUGIN_POWERDNS_TRUE='#'
32850 BUILD_PLUGIN_POWERDNS_FALSE=
32851 fi
32853 enable_powerdns="$enable_plugin"
32857 enable_plugin="no"
32858 force="no"
32859 # Check whether --enable-processes was given.
32860 if test "${enable_processes+set}" = set; then :
32861 enableval=$enable_processes;
32862 if test "x$enableval" = "xyes"
32863 then
32864 enable_plugin="yes"
32865 else if test "x$enableval" = "xforce"
32866 then
32867 enable_plugin="yes"
32868 force="yes"
32869 else
32870 enable_plugin="no (disabled on command line)"
32871 fi; fi
32873 else
32875 if test "x$enable_all_plugins" = "xauto"
32876 then
32877 if test "x$plugin_processes" = "xyes"
32878 then
32879 enable_plugin="yes"
32880 else
32881 enable_plugin="no"
32882 fi
32883 else
32884 enable_plugin="$enable_all_plugins"
32885 fi
32887 fi
32889 if test "x$enable_plugin" = "xyes"
32890 then
32891 if test "x$plugin_processes" = "xyes" || test "x$force" = "xyes"
32892 then
32894 $as_echo "#define HAVE_PLUGIN_PROCESSES 1" >>confdefs.h
32896 if test "x$plugin_processes" != "xyes"
32897 then
32898 dependency_warning="yes"
32899 fi
32900 else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
32901 dependency_error="yes"
32902 enable_plugin="no (dependency error)"
32903 fi
32904 fi
32905 if test "x$enable_plugin" = "xyes"; then
32906 BUILD_PLUGIN_PROCESSES_TRUE=
32907 BUILD_PLUGIN_PROCESSES_FALSE='#'
32908 else
32909 BUILD_PLUGIN_PROCESSES_TRUE='#'
32910 BUILD_PLUGIN_PROCESSES_FALSE=
32911 fi
32913 enable_processes="$enable_plugin"
32917 enable_plugin="no"
32918 force="no"
32919 # Check whether --enable-protocols was given.
32920 if test "${enable_protocols+set}" = set; then :
32921 enableval=$enable_protocols;
32922 if test "x$enableval" = "xyes"
32923 then
32924 enable_plugin="yes"
32925 else if test "x$enableval" = "xforce"
32926 then
32927 enable_plugin="yes"
32928 force="yes"
32929 else
32930 enable_plugin="no (disabled on command line)"
32931 fi; fi
32933 else
32935 if test "x$enable_all_plugins" = "xauto"
32936 then
32937 if test "x$plugin_protocols" = "xyes"
32938 then
32939 enable_plugin="yes"
32940 else
32941 enable_plugin="no"
32942 fi
32943 else
32944 enable_plugin="$enable_all_plugins"
32945 fi
32947 fi
32949 if test "x$enable_plugin" = "xyes"
32950 then
32951 if test "x$plugin_protocols" = "xyes" || test "x$force" = "xyes"
32952 then
32954 $as_echo "#define HAVE_PLUGIN_PROTOCOLS 1" >>confdefs.h
32956 if test "x$plugin_protocols" != "xyes"
32957 then
32958 dependency_warning="yes"
32959 fi
32960 else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
32961 dependency_error="yes"
32962 enable_plugin="no (dependency error)"
32963 fi
32964 fi
32965 if test "x$enable_plugin" = "xyes"; then
32966 BUILD_PLUGIN_PROTOCOLS_TRUE=
32967 BUILD_PLUGIN_PROTOCOLS_FALSE='#'
32968 else
32969 BUILD_PLUGIN_PROTOCOLS_TRUE='#'
32970 BUILD_PLUGIN_PROTOCOLS_FALSE=
32971 fi
32973 enable_protocols="$enable_plugin"
32977 enable_plugin="no"
32978 force="no"
32979 # Check whether --enable-python was given.
32980 if test "${enable_python+set}" = set; then :
32981 enableval=$enable_python;
32982 if test "x$enableval" = "xyes"
32983 then
32984 enable_plugin="yes"
32985 else if test "x$enableval" = "xforce"
32986 then
32987 enable_plugin="yes"
32988 force="yes"
32989 else
32990 enable_plugin="no (disabled on command line)"
32991 fi; fi
32993 else
32995 if test "x$enable_all_plugins" = "xauto"
32996 then
32997 if test "x$with_python" = "xyes"
32998 then
32999 enable_plugin="yes"
33000 else
33001 enable_plugin="no"
33002 fi
33003 else
33004 enable_plugin="$enable_all_plugins"
33005 fi
33007 fi
33009 if test "x$enable_plugin" = "xyes"
33010 then
33011 if test "x$with_python" = "xyes" || test "x$force" = "xyes"
33012 then
33014 $as_echo "#define HAVE_PLUGIN_PYTHON 1" >>confdefs.h
33016 if test "x$with_python" != "xyes"
33017 then
33018 dependency_warning="yes"
33019 fi
33020 else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
33021 dependency_error="yes"
33022 enable_plugin="no (dependency error)"
33023 fi
33024 fi
33025 if test "x$enable_plugin" = "xyes"; then
33026 BUILD_PLUGIN_PYTHON_TRUE=
33027 BUILD_PLUGIN_PYTHON_FALSE='#'
33028 else
33029 BUILD_PLUGIN_PYTHON_TRUE='#'
33030 BUILD_PLUGIN_PYTHON_FALSE=
33031 fi
33033 enable_python="$enable_plugin"
33037 enable_plugin="no"
33038 force="no"
33039 # Check whether --enable-redis was given.
33040 if test "${enable_redis+set}" = set; then :
33041 enableval=$enable_redis;
33042 if test "x$enableval" = "xyes"
33043 then
33044 enable_plugin="yes"
33045 else if test "x$enableval" = "xforce"
33046 then
33047 enable_plugin="yes"
33048 force="yes"
33049 else
33050 enable_plugin="no (disabled on command line)"
33051 fi; fi
33053 else
33055 if test "x$enable_all_plugins" = "xauto"
33056 then
33057 if test "x$with_libhiredis" = "xyes"
33058 then
33059 enable_plugin="yes"
33060 else
33061 enable_plugin="no"
33062 fi
33063 else
33064 enable_plugin="$enable_all_plugins"
33065 fi
33067 fi
33069 if test "x$enable_plugin" = "xyes"
33070 then
33071 if test "x$with_libhiredis" = "xyes" || test "x$force" = "xyes"
33072 then
33074 $as_echo "#define HAVE_PLUGIN_REDIS 1" >>confdefs.h
33076 if test "x$with_libhiredis" != "xyes"
33077 then
33078 dependency_warning="yes"
33079 fi
33080 else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
33081 dependency_error="yes"
33082 enable_plugin="no (dependency error)"
33083 fi
33084 fi
33085 if test "x$enable_plugin" = "xyes"; then
33086 BUILD_PLUGIN_REDIS_TRUE=
33087 BUILD_PLUGIN_REDIS_FALSE='#'
33088 else
33089 BUILD_PLUGIN_REDIS_TRUE='#'
33090 BUILD_PLUGIN_REDIS_FALSE=
33091 fi
33093 enable_redis="$enable_plugin"
33097 enable_plugin="no"
33098 force="no"
33099 # Check whether --enable-routeros was given.
33100 if test "${enable_routeros+set}" = set; then :
33101 enableval=$enable_routeros;
33102 if test "x$enableval" = "xyes"
33103 then
33104 enable_plugin="yes"
33105 else if test "x$enableval" = "xforce"
33106 then
33107 enable_plugin="yes"
33108 force="yes"
33109 else
33110 enable_plugin="no (disabled on command line)"
33111 fi; fi
33113 else
33115 if test "x$enable_all_plugins" = "xauto"
33116 then
33117 if test "x$with_librouteros" = "xyes"
33118 then
33119 enable_plugin="yes"
33120 else
33121 enable_plugin="no"
33122 fi
33123 else
33124 enable_plugin="$enable_all_plugins"
33125 fi
33127 fi
33129 if test "x$enable_plugin" = "xyes"
33130 then
33131 if test "x$with_librouteros" = "xyes" || test "x$force" = "xyes"
33132 then
33134 $as_echo "#define HAVE_PLUGIN_ROUTEROS 1" >>confdefs.h
33136 if test "x$with_librouteros" != "xyes"
33137 then
33138 dependency_warning="yes"
33139 fi
33140 else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
33141 dependency_error="yes"
33142 enable_plugin="no (dependency error)"
33143 fi
33144 fi
33145 if test "x$enable_plugin" = "xyes"; then
33146 BUILD_PLUGIN_ROUTEROS_TRUE=
33147 BUILD_PLUGIN_ROUTEROS_FALSE='#'
33148 else
33149 BUILD_PLUGIN_ROUTEROS_TRUE='#'
33150 BUILD_PLUGIN_ROUTEROS_FALSE=
33151 fi
33153 enable_routeros="$enable_plugin"
33157 enable_plugin="no"
33158 force="no"
33159 # Check whether --enable-rrdcached was given.
33160 if test "${enable_rrdcached+set}" = set; then :
33161 enableval=$enable_rrdcached;
33162 if test "x$enableval" = "xyes"
33163 then
33164 enable_plugin="yes"
33165 else if test "x$enableval" = "xforce"
33166 then
33167 enable_plugin="yes"
33168 force="yes"
33169 else
33170 enable_plugin="no (disabled on command line)"
33171 fi; fi
33173 else
33175 if test "x$enable_all_plugins" = "xauto"
33176 then
33177 if test "x$librrd_rrdc_update" = "xyes"
33178 then
33179 enable_plugin="yes"
33180 else
33181 enable_plugin="no"
33182 fi
33183 else
33184 enable_plugin="$enable_all_plugins"
33185 fi
33187 fi
33189 if test "x$enable_plugin" = "xyes"
33190 then
33191 if test "x$librrd_rrdc_update" = "xyes" || test "x$force" = "xyes"
33192 then
33194 $as_echo "#define HAVE_PLUGIN_RRDCACHED 1" >>confdefs.h
33196 if test "x$librrd_rrdc_update" != "xyes"
33197 then
33198 dependency_warning="yes"
33199 fi
33200 else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
33201 dependency_error="yes"
33202 enable_plugin="no (dependency error)"
33203 fi
33204 fi
33205 if test "x$enable_plugin" = "xyes"; then
33206 BUILD_PLUGIN_RRDCACHED_TRUE=
33207 BUILD_PLUGIN_RRDCACHED_FALSE='#'
33208 else
33209 BUILD_PLUGIN_RRDCACHED_TRUE='#'
33210 BUILD_PLUGIN_RRDCACHED_FALSE=
33211 fi
33213 enable_rrdcached="$enable_plugin"
33217 enable_plugin="no"
33218 force="no"
33219 # Check whether --enable-rrdtool was given.
33220 if test "${enable_rrdtool+set}" = set; then :
33221 enableval=$enable_rrdtool;
33222 if test "x$enableval" = "xyes"
33223 then
33224 enable_plugin="yes"
33225 else if test "x$enableval" = "xforce"
33226 then
33227 enable_plugin="yes"
33228 force="yes"
33229 else
33230 enable_plugin="no (disabled on command line)"
33231 fi; fi
33233 else
33235 if test "x$enable_all_plugins" = "xauto"
33236 then
33237 if test "x$with_librrd" = "xyes"
33238 then
33239 enable_plugin="yes"
33240 else
33241 enable_plugin="no"
33242 fi
33243 else
33244 enable_plugin="$enable_all_plugins"
33245 fi
33247 fi
33249 if test "x$enable_plugin" = "xyes"
33250 then
33251 if test "x$with_librrd" = "xyes" || test "x$force" = "xyes"
33252 then
33254 $as_echo "#define HAVE_PLUGIN_RRDTOOL 1" >>confdefs.h
33256 if test "x$with_librrd" != "xyes"
33257 then
33258 dependency_warning="yes"
33259 fi
33260 else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
33261 dependency_error="yes"
33262 enable_plugin="no (dependency error)"
33263 fi
33264 fi
33265 if test "x$enable_plugin" = "xyes"; then
33266 BUILD_PLUGIN_RRDTOOL_TRUE=
33267 BUILD_PLUGIN_RRDTOOL_FALSE='#'
33268 else
33269 BUILD_PLUGIN_RRDTOOL_TRUE='#'
33270 BUILD_PLUGIN_RRDTOOL_FALSE=
33271 fi
33273 enable_rrdtool="$enable_plugin"
33277 enable_plugin="no"
33278 force="no"
33279 # Check whether --enable-sensors was given.
33280 if test "${enable_sensors+set}" = set; then :
33281 enableval=$enable_sensors;
33282 if test "x$enableval" = "xyes"
33283 then
33284 enable_plugin="yes"
33285 else if test "x$enableval" = "xforce"
33286 then
33287 enable_plugin="yes"
33288 force="yes"
33289 else
33290 enable_plugin="no (disabled on command line)"
33291 fi; fi
33293 else
33295 if test "x$enable_all_plugins" = "xauto"
33296 then
33297 if test "x$with_libsensors" = "xyes"
33298 then
33299 enable_plugin="yes"
33300 else
33301 enable_plugin="no"
33302 fi
33303 else
33304 enable_plugin="$enable_all_plugins"
33305 fi
33307 fi
33309 if test "x$enable_plugin" = "xyes"
33310 then
33311 if test "x$with_libsensors" = "xyes" || test "x$force" = "xyes"
33312 then
33314 $as_echo "#define HAVE_PLUGIN_SENSORS 1" >>confdefs.h
33316 if test "x$with_libsensors" != "xyes"
33317 then
33318 dependency_warning="yes"
33319 fi
33320 else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
33321 dependency_error="yes"
33322 enable_plugin="no (dependency error)"
33323 fi
33324 fi
33325 if test "x$enable_plugin" = "xyes"; then
33326 BUILD_PLUGIN_SENSORS_TRUE=
33327 BUILD_PLUGIN_SENSORS_FALSE='#'
33328 else
33329 BUILD_PLUGIN_SENSORS_TRUE='#'
33330 BUILD_PLUGIN_SENSORS_FALSE=
33331 fi
33333 enable_sensors="$enable_plugin"
33337 enable_plugin="no"
33338 force="no"
33339 # Check whether --enable-serial was given.
33340 if test "${enable_serial+set}" = set; then :
33341 enableval=$enable_serial;
33342 if test "x$enableval" = "xyes"
33343 then
33344 enable_plugin="yes"
33345 else if test "x$enableval" = "xforce"
33346 then
33347 enable_plugin="yes"
33348 force="yes"
33349 else
33350 enable_plugin="no (disabled on command line)"
33351 fi; fi
33353 else
33355 if test "x$enable_all_plugins" = "xauto"
33356 then
33357 if test "x$plugin_serial" = "xyes"
33358 then
33359 enable_plugin="yes"
33360 else
33361 enable_plugin="no"
33362 fi
33363 else
33364 enable_plugin="$enable_all_plugins"
33365 fi
33367 fi
33369 if test "x$enable_plugin" = "xyes"
33370 then
33371 if test "x$plugin_serial" = "xyes" || test "x$force" = "xyes"
33372 then
33374 $as_echo "#define HAVE_PLUGIN_SERIAL 1" >>confdefs.h
33376 if test "x$plugin_serial" != "xyes"
33377 then
33378 dependency_warning="yes"
33379 fi
33380 else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
33381 dependency_error="yes"
33382 enable_plugin="no (dependency error)"
33383 fi
33384 fi
33385 if test "x$enable_plugin" = "xyes"; then
33386 BUILD_PLUGIN_SERIAL_TRUE=
33387 BUILD_PLUGIN_SERIAL_FALSE='#'
33388 else
33389 BUILD_PLUGIN_SERIAL_TRUE='#'
33390 BUILD_PLUGIN_SERIAL_FALSE=
33391 fi
33393 enable_serial="$enable_plugin"
33397 enable_plugin="no"
33398 force="no"
33399 # Check whether --enable-sigrok was given.
33400 if test "${enable_sigrok+set}" = set; then :
33401 enableval=$enable_sigrok;
33402 if test "x$enableval" = "xyes"
33403 then
33404 enable_plugin="yes"
33405 else if test "x$enableval" = "xforce"
33406 then
33407 enable_plugin="yes"
33408 force="yes"
33409 else
33410 enable_plugin="no (disabled on command line)"
33411 fi; fi
33413 else
33415 if test "x$enable_all_plugins" = "xauto"
33416 then
33417 if test "x$with_libsigrok" = "xyes"
33418 then
33419 enable_plugin="yes"
33420 else
33421 enable_plugin="no"
33422 fi
33423 else
33424 enable_plugin="$enable_all_plugins"
33425 fi
33427 fi
33429 if test "x$enable_plugin" = "xyes"
33430 then
33431 if test "x$with_libsigrok" = "xyes" || test "x$force" = "xyes"
33432 then
33434 $as_echo "#define HAVE_PLUGIN_SIGROK 1" >>confdefs.h
33436 if test "x$with_libsigrok" != "xyes"
33437 then
33438 dependency_warning="yes"
33439 fi
33440 else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
33441 dependency_error="yes"
33442 enable_plugin="no (dependency error)"
33443 fi
33444 fi
33445 if test "x$enable_plugin" = "xyes"; then
33446 BUILD_PLUGIN_SIGROK_TRUE=
33447 BUILD_PLUGIN_SIGROK_FALSE='#'
33448 else
33449 BUILD_PLUGIN_SIGROK_TRUE='#'
33450 BUILD_PLUGIN_SIGROK_FALSE=
33451 fi
33453 enable_sigrok="$enable_plugin"
33457 enable_plugin="no"
33458 force="no"
33459 # Check whether --enable-smart was given.
33460 if test "${enable_smart+set}" = set; then :
33461 enableval=$enable_smart;
33462 if test "x$enableval" = "xyes"
33463 then
33464 enable_plugin="yes"
33465 else if test "x$enableval" = "xforce"
33466 then
33467 enable_plugin="yes"
33468 force="yes"
33469 else
33470 enable_plugin="no (disabled on command line)"
33471 fi; fi
33473 else
33475 if test "x$enable_all_plugins" = "xauto"
33476 then
33477 if test "x$with_libatasmart" = "xyes"
33478 then
33479 enable_plugin="yes"
33480 else
33481 enable_plugin="no"
33482 fi
33483 else
33484 enable_plugin="$enable_all_plugins"
33485 fi
33487 fi
33489 if test "x$enable_plugin" = "xyes"
33490 then
33491 if test "x$with_libatasmart" = "xyes" || test "x$force" = "xyes"
33492 then
33494 $as_echo "#define HAVE_PLUGIN_SMART 1" >>confdefs.h
33496 if test "x$with_libatasmart" != "xyes"
33497 then
33498 dependency_warning="yes"
33499 fi
33500 else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
33501 dependency_error="yes"
33502 enable_plugin="no (dependency error)"
33503 fi
33504 fi
33505 if test "x$enable_plugin" = "xyes"; then
33506 BUILD_PLUGIN_SMART_TRUE=
33507 BUILD_PLUGIN_SMART_FALSE='#'
33508 else
33509 BUILD_PLUGIN_SMART_TRUE='#'
33510 BUILD_PLUGIN_SMART_FALSE=
33511 fi
33513 enable_smart="$enable_plugin"
33517 enable_plugin="no"
33518 force="no"
33519 # Check whether --enable-snmp was given.
33520 if test "${enable_snmp+set}" = set; then :
33521 enableval=$enable_snmp;
33522 if test "x$enableval" = "xyes"
33523 then
33524 enable_plugin="yes"
33525 else if test "x$enableval" = "xforce"
33526 then
33527 enable_plugin="yes"
33528 force="yes"
33529 else
33530 enable_plugin="no (disabled on command line)"
33531 fi; fi
33533 else
33535 if test "x$enable_all_plugins" = "xauto"
33536 then
33537 if test "x$with_libnetsnmp" = "xyes"
33538 then
33539 enable_plugin="yes"
33540 else
33541 enable_plugin="no"
33542 fi
33543 else
33544 enable_plugin="$enable_all_plugins"
33545 fi
33547 fi
33549 if test "x$enable_plugin" = "xyes"
33550 then
33551 if test "x$with_libnetsnmp" = "xyes" || test "x$force" = "xyes"
33552 then
33554 $as_echo "#define HAVE_PLUGIN_SNMP 1" >>confdefs.h
33556 if test "x$with_libnetsnmp" != "xyes"
33557 then
33558 dependency_warning="yes"
33559 fi
33560 else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
33561 dependency_error="yes"
33562 enable_plugin="no (dependency error)"
33563 fi
33564 fi
33565 if test "x$enable_plugin" = "xyes"; then
33566 BUILD_PLUGIN_SNMP_TRUE=
33567 BUILD_PLUGIN_SNMP_FALSE='#'
33568 else
33569 BUILD_PLUGIN_SNMP_TRUE='#'
33570 BUILD_PLUGIN_SNMP_FALSE=
33571 fi
33573 enable_snmp="$enable_plugin"
33577 enable_plugin="no"
33578 force="no"
33579 # Check whether --enable-statsd was given.
33580 if test "${enable_statsd+set}" = set; then :
33581 enableval=$enable_statsd;
33582 if test "x$enableval" = "xyes"
33583 then
33584 enable_plugin="yes"
33585 else if test "x$enableval" = "xforce"
33586 then
33587 enable_plugin="yes"
33588 force="yes"
33589 else
33590 enable_plugin="no (disabled on command line)"
33591 fi; fi
33593 else
33595 if test "x$enable_all_plugins" = "xauto"
33596 then
33597 if test "xyes" = "xyes"
33598 then
33599 enable_plugin="yes"
33600 else
33601 enable_plugin="no"
33602 fi
33603 else
33604 enable_plugin="$enable_all_plugins"
33605 fi
33607 fi
33609 if test "x$enable_plugin" = "xyes"
33610 then
33611 if test "xyes" = "xyes" || test "x$force" = "xyes"
33612 then
33614 $as_echo "#define HAVE_PLUGIN_STATSD 1" >>confdefs.h
33616 if test "xyes" != "xyes"
33617 then
33618 dependency_warning="yes"
33619 fi
33620 else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
33621 dependency_error="yes"
33622 enable_plugin="no (dependency error)"
33623 fi
33624 fi
33625 if test "x$enable_plugin" = "xyes"; then
33626 BUILD_PLUGIN_STATSD_TRUE=
33627 BUILD_PLUGIN_STATSD_FALSE='#'
33628 else
33629 BUILD_PLUGIN_STATSD_TRUE='#'
33630 BUILD_PLUGIN_STATSD_FALSE=
33631 fi
33633 enable_statsd="$enable_plugin"
33637 enable_plugin="no"
33638 force="no"
33639 # Check whether --enable-swap was given.
33640 if test "${enable_swap+set}" = set; then :
33641 enableval=$enable_swap;
33642 if test "x$enableval" = "xyes"
33643 then
33644 enable_plugin="yes"
33645 else if test "x$enableval" = "xforce"
33646 then
33647 enable_plugin="yes"
33648 force="yes"
33649 else
33650 enable_plugin="no (disabled on command line)"
33651 fi; fi
33653 else
33655 if test "x$enable_all_plugins" = "xauto"
33656 then
33657 if test "x$plugin_swap" = "xyes"
33658 then
33659 enable_plugin="yes"
33660 else
33661 enable_plugin="no"
33662 fi
33663 else
33664 enable_plugin="$enable_all_plugins"
33665 fi
33667 fi
33669 if test "x$enable_plugin" = "xyes"
33670 then
33671 if test "x$plugin_swap" = "xyes" || test "x$force" = "xyes"
33672 then
33674 $as_echo "#define HAVE_PLUGIN_SWAP 1" >>confdefs.h
33676 if test "x$plugin_swap" != "xyes"
33677 then
33678 dependency_warning="yes"
33679 fi
33680 else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
33681 dependency_error="yes"
33682 enable_plugin="no (dependency error)"
33683 fi
33684 fi
33685 if test "x$enable_plugin" = "xyes"; then
33686 BUILD_PLUGIN_SWAP_TRUE=
33687 BUILD_PLUGIN_SWAP_FALSE='#'
33688 else
33689 BUILD_PLUGIN_SWAP_TRUE='#'
33690 BUILD_PLUGIN_SWAP_FALSE=
33691 fi
33693 enable_swap="$enable_plugin"
33697 enable_plugin="no"
33698 force="no"
33699 # Check whether --enable-syslog was given.
33700 if test "${enable_syslog+set}" = set; then :
33701 enableval=$enable_syslog;
33702 if test "x$enableval" = "xyes"
33703 then
33704 enable_plugin="yes"
33705 else if test "x$enableval" = "xforce"
33706 then
33707 enable_plugin="yes"
33708 force="yes"
33709 else
33710 enable_plugin="no (disabled on command line)"
33711 fi; fi
33713 else
33715 if test "x$enable_all_plugins" = "xauto"
33716 then
33717 if test "x$have_syslog" = "xyes"
33718 then
33719 enable_plugin="yes"
33720 else
33721 enable_plugin="no"
33722 fi
33723 else
33724 enable_plugin="$enable_all_plugins"
33725 fi
33727 fi
33729 if test "x$enable_plugin" = "xyes"
33730 then
33731 if test "x$have_syslog" = "xyes" || test "x$force" = "xyes"
33732 then
33734 $as_echo "#define HAVE_PLUGIN_SYSLOG 1" >>confdefs.h
33736 if test "x$have_syslog" != "xyes"
33737 then
33738 dependency_warning="yes"
33739 fi
33740 else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
33741 dependency_error="yes"
33742 enable_plugin="no (dependency error)"
33743 fi
33744 fi
33745 if test "x$enable_plugin" = "xyes"; then
33746 BUILD_PLUGIN_SYSLOG_TRUE=
33747 BUILD_PLUGIN_SYSLOG_FALSE='#'
33748 else
33749 BUILD_PLUGIN_SYSLOG_TRUE='#'
33750 BUILD_PLUGIN_SYSLOG_FALSE=
33751 fi
33753 enable_syslog="$enable_plugin"
33757 enable_plugin="no"
33758 force="no"
33759 # Check whether --enable-table was given.
33760 if test "${enable_table+set}" = set; then :
33761 enableval=$enable_table;
33762 if test "x$enableval" = "xyes"
33763 then
33764 enable_plugin="yes"
33765 else if test "x$enableval" = "xforce"
33766 then
33767 enable_plugin="yes"
33768 force="yes"
33769 else
33770 enable_plugin="no (disabled on command line)"
33771 fi; fi
33773 else
33775 if test "x$enable_all_plugins" = "xauto"
33776 then
33777 if test "xyes" = "xyes"
33778 then
33779 enable_plugin="yes"
33780 else
33781 enable_plugin="no"
33782 fi
33783 else
33784 enable_plugin="$enable_all_plugins"
33785 fi
33787 fi
33789 if test "x$enable_plugin" = "xyes"
33790 then
33791 if test "xyes" = "xyes" || test "x$force" = "xyes"
33792 then
33794 $as_echo "#define HAVE_PLUGIN_TABLE 1" >>confdefs.h
33796 if test "xyes" != "xyes"
33797 then
33798 dependency_warning="yes"
33799 fi
33800 else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
33801 dependency_error="yes"
33802 enable_plugin="no (dependency error)"
33803 fi
33804 fi
33805 if test "x$enable_plugin" = "xyes"; then
33806 BUILD_PLUGIN_TABLE_TRUE=
33807 BUILD_PLUGIN_TABLE_FALSE='#'
33808 else
33809 BUILD_PLUGIN_TABLE_TRUE='#'
33810 BUILD_PLUGIN_TABLE_FALSE=
33811 fi
33813 enable_table="$enable_plugin"
33817 enable_plugin="no"
33818 force="no"
33819 # Check whether --enable-tail was given.
33820 if test "${enable_tail+set}" = set; then :
33821 enableval=$enable_tail;
33822 if test "x$enableval" = "xyes"
33823 then
33824 enable_plugin="yes"
33825 else if test "x$enableval" = "xforce"
33826 then
33827 enable_plugin="yes"
33828 force="yes"
33829 else
33830 enable_plugin="no (disabled on command line)"
33831 fi; fi
33833 else
33835 if test "x$enable_all_plugins" = "xauto"
33836 then
33837 if test "xyes" = "xyes"
33838 then
33839 enable_plugin="yes"
33840 else
33841 enable_plugin="no"
33842 fi
33843 else
33844 enable_plugin="$enable_all_plugins"
33845 fi
33847 fi
33849 if test "x$enable_plugin" = "xyes"
33850 then
33851 if test "xyes" = "xyes" || test "x$force" = "xyes"
33852 then
33854 $as_echo "#define HAVE_PLUGIN_TAIL 1" >>confdefs.h
33856 if test "xyes" != "xyes"
33857 then
33858 dependency_warning="yes"
33859 fi
33860 else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
33861 dependency_error="yes"
33862 enable_plugin="no (dependency error)"
33863 fi
33864 fi
33865 if test "x$enable_plugin" = "xyes"; then
33866 BUILD_PLUGIN_TAIL_TRUE=
33867 BUILD_PLUGIN_TAIL_FALSE='#'
33868 else
33869 BUILD_PLUGIN_TAIL_TRUE='#'
33870 BUILD_PLUGIN_TAIL_FALSE=
33871 fi
33873 enable_tail="$enable_plugin"
33877 enable_plugin="no"
33878 force="no"
33879 # Check whether --enable-tail_csv was given.
33880 if test "${enable_tail_csv+set}" = set; then :
33881 enableval=$enable_tail_csv;
33882 if test "x$enableval" = "xyes"
33883 then
33884 enable_plugin="yes"
33885 else if test "x$enableval" = "xforce"
33886 then
33887 enable_plugin="yes"
33888 force="yes"
33889 else
33890 enable_plugin="no (disabled on command line)"
33891 fi; fi
33893 else
33895 if test "x$enable_all_plugins" = "xauto"
33896 then
33897 if test "xyes" = "xyes"
33898 then
33899 enable_plugin="yes"
33900 else
33901 enable_plugin="no"
33902 fi
33903 else
33904 enable_plugin="$enable_all_plugins"
33905 fi
33907 fi
33909 if test "x$enable_plugin" = "xyes"
33910 then
33911 if test "xyes" = "xyes" || test "x$force" = "xyes"
33912 then
33914 $as_echo "#define HAVE_PLUGIN_TAIL_CSV 1" >>confdefs.h
33916 if test "xyes" != "xyes"
33917 then
33918 dependency_warning="yes"
33919 fi
33920 else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
33921 dependency_error="yes"
33922 enable_plugin="no (dependency error)"
33923 fi
33924 fi
33925 if test "x$enable_plugin" = "xyes"; then
33926 BUILD_PLUGIN_TAIL_CSV_TRUE=
33927 BUILD_PLUGIN_TAIL_CSV_FALSE='#'
33928 else
33929 BUILD_PLUGIN_TAIL_CSV_TRUE='#'
33930 BUILD_PLUGIN_TAIL_CSV_FALSE=
33931 fi
33933 enable_tail_csv="$enable_plugin"
33937 enable_plugin="no"
33938 force="no"
33939 # Check whether --enable-tape was given.
33940 if test "${enable_tape+set}" = set; then :
33941 enableval=$enable_tape;
33942 if test "x$enableval" = "xyes"
33943 then
33944 enable_plugin="yes"
33945 else if test "x$enableval" = "xforce"
33946 then
33947 enable_plugin="yes"
33948 force="yes"
33949 else
33950 enable_plugin="no (disabled on command line)"
33951 fi; fi
33953 else
33955 if test "x$enable_all_plugins" = "xauto"
33956 then
33957 if test "x$plugin_tape" = "xyes"
33958 then
33959 enable_plugin="yes"
33960 else
33961 enable_plugin="no"
33962 fi
33963 else
33964 enable_plugin="$enable_all_plugins"
33965 fi
33967 fi
33969 if test "x$enable_plugin" = "xyes"
33970 then
33971 if test "x$plugin_tape" = "xyes" || test "x$force" = "xyes"
33972 then
33974 $as_echo "#define HAVE_PLUGIN_TAPE 1" >>confdefs.h
33976 if test "x$plugin_tape" != "xyes"
33977 then
33978 dependency_warning="yes"
33979 fi
33980 else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
33981 dependency_error="yes"
33982 enable_plugin="no (dependency error)"
33983 fi
33984 fi
33985 if test "x$enable_plugin" = "xyes"; then
33986 BUILD_PLUGIN_TAPE_TRUE=
33987 BUILD_PLUGIN_TAPE_FALSE='#'
33988 else
33989 BUILD_PLUGIN_TAPE_TRUE='#'
33990 BUILD_PLUGIN_TAPE_FALSE=
33991 fi
33993 enable_tape="$enable_plugin"
33997 enable_plugin="no"
33998 force="no"
33999 # Check whether --enable-target_notification was given.
34000 if test "${enable_target_notification+set}" = set; then :
34001 enableval=$enable_target_notification;
34002 if test "x$enableval" = "xyes"
34003 then
34004 enable_plugin="yes"
34005 else if test "x$enableval" = "xforce"
34006 then
34007 enable_plugin="yes"
34008 force="yes"
34009 else
34010 enable_plugin="no (disabled on command line)"
34011 fi; fi
34013 else
34015 if test "x$enable_all_plugins" = "xauto"
34016 then
34017 if test "xyes" = "xyes"
34018 then
34019 enable_plugin="yes"
34020 else
34021 enable_plugin="no"
34022 fi
34023 else
34024 enable_plugin="$enable_all_plugins"
34025 fi
34027 fi
34029 if test "x$enable_plugin" = "xyes"
34030 then
34031 if test "xyes" = "xyes" || test "x$force" = "xyes"
34032 then
34034 $as_echo "#define HAVE_PLUGIN_TARGET_NOTIFICATION 1" >>confdefs.h
34036 if test "xyes" != "xyes"
34037 then
34038 dependency_warning="yes"
34039 fi
34040 else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
34041 dependency_error="yes"
34042 enable_plugin="no (dependency error)"
34043 fi
34044 fi
34045 if test "x$enable_plugin" = "xyes"; then
34046 BUILD_PLUGIN_TARGET_NOTIFICATION_TRUE=
34047 BUILD_PLUGIN_TARGET_NOTIFICATION_FALSE='#'
34048 else
34049 BUILD_PLUGIN_TARGET_NOTIFICATION_TRUE='#'
34050 BUILD_PLUGIN_TARGET_NOTIFICATION_FALSE=
34051 fi
34053 enable_target_notification="$enable_plugin"
34057 enable_plugin="no"
34058 force="no"
34059 # Check whether --enable-target_replace was given.
34060 if test "${enable_target_replace+set}" = set; then :
34061 enableval=$enable_target_replace;
34062 if test "x$enableval" = "xyes"
34063 then
34064 enable_plugin="yes"
34065 else if test "x$enableval" = "xforce"
34066 then
34067 enable_plugin="yes"
34068 force="yes"
34069 else
34070 enable_plugin="no (disabled on command line)"
34071 fi; fi
34073 else
34075 if test "x$enable_all_plugins" = "xauto"
34076 then
34077 if test "xyes" = "xyes"
34078 then
34079 enable_plugin="yes"
34080 else
34081 enable_plugin="no"
34082 fi
34083 else
34084 enable_plugin="$enable_all_plugins"
34085 fi
34087 fi
34089 if test "x$enable_plugin" = "xyes"
34090 then
34091 if test "xyes" = "xyes" || test "x$force" = "xyes"
34092 then
34094 $as_echo "#define HAVE_PLUGIN_TARGET_REPLACE 1" >>confdefs.h
34096 if test "xyes" != "xyes"
34097 then
34098 dependency_warning="yes"
34099 fi
34100 else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
34101 dependency_error="yes"
34102 enable_plugin="no (dependency error)"
34103 fi
34104 fi
34105 if test "x$enable_plugin" = "xyes"; then
34106 BUILD_PLUGIN_TARGET_REPLACE_TRUE=
34107 BUILD_PLUGIN_TARGET_REPLACE_FALSE='#'
34108 else
34109 BUILD_PLUGIN_TARGET_REPLACE_TRUE='#'
34110 BUILD_PLUGIN_TARGET_REPLACE_FALSE=
34111 fi
34113 enable_target_replace="$enable_plugin"
34117 enable_plugin="no"
34118 force="no"
34119 # Check whether --enable-target_scale was given.
34120 if test "${enable_target_scale+set}" = set; then :
34121 enableval=$enable_target_scale;
34122 if test "x$enableval" = "xyes"
34123 then
34124 enable_plugin="yes"
34125 else if test "x$enableval" = "xforce"
34126 then
34127 enable_plugin="yes"
34128 force="yes"
34129 else
34130 enable_plugin="no (disabled on command line)"
34131 fi; fi
34133 else
34135 if test "x$enable_all_plugins" = "xauto"
34136 then
34137 if test "xyes" = "xyes"
34138 then
34139 enable_plugin="yes"
34140 else
34141 enable_plugin="no"
34142 fi
34143 else
34144 enable_plugin="$enable_all_plugins"
34145 fi
34147 fi
34149 if test "x$enable_plugin" = "xyes"
34150 then
34151 if test "xyes" = "xyes" || test "x$force" = "xyes"
34152 then
34154 $as_echo "#define HAVE_PLUGIN_TARGET_SCALE 1" >>confdefs.h
34156 if test "xyes" != "xyes"
34157 then
34158 dependency_warning="yes"
34159 fi
34160 else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
34161 dependency_error="yes"
34162 enable_plugin="no (dependency error)"
34163 fi
34164 fi
34165 if test "x$enable_plugin" = "xyes"; then
34166 BUILD_PLUGIN_TARGET_SCALE_TRUE=
34167 BUILD_PLUGIN_TARGET_SCALE_FALSE='#'
34168 else
34169 BUILD_PLUGIN_TARGET_SCALE_TRUE='#'
34170 BUILD_PLUGIN_TARGET_SCALE_FALSE=
34171 fi
34173 enable_target_scale="$enable_plugin"
34177 enable_plugin="no"
34178 force="no"
34179 # Check whether --enable-target_set was given.
34180 if test "${enable_target_set+set}" = set; then :
34181 enableval=$enable_target_set;
34182 if test "x$enableval" = "xyes"
34183 then
34184 enable_plugin="yes"
34185 else if test "x$enableval" = "xforce"
34186 then
34187 enable_plugin="yes"
34188 force="yes"
34189 else
34190 enable_plugin="no (disabled on command line)"
34191 fi; fi
34193 else
34195 if test "x$enable_all_plugins" = "xauto"
34196 then
34197 if test "xyes" = "xyes"
34198 then
34199 enable_plugin="yes"
34200 else
34201 enable_plugin="no"
34202 fi
34203 else
34204 enable_plugin="$enable_all_plugins"
34205 fi
34207 fi
34209 if test "x$enable_plugin" = "xyes"
34210 then
34211 if test "xyes" = "xyes" || test "x$force" = "xyes"
34212 then
34214 $as_echo "#define HAVE_PLUGIN_TARGET_SET 1" >>confdefs.h
34216 if test "xyes" != "xyes"
34217 then
34218 dependency_warning="yes"
34219 fi
34220 else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
34221 dependency_error="yes"
34222 enable_plugin="no (dependency error)"
34223 fi
34224 fi
34225 if test "x$enable_plugin" = "xyes"; then
34226 BUILD_PLUGIN_TARGET_SET_TRUE=
34227 BUILD_PLUGIN_TARGET_SET_FALSE='#'
34228 else
34229 BUILD_PLUGIN_TARGET_SET_TRUE='#'
34230 BUILD_PLUGIN_TARGET_SET_FALSE=
34231 fi
34233 enable_target_set="$enable_plugin"
34237 enable_plugin="no"
34238 force="no"
34239 # Check whether --enable-target_v5upgrade was given.
34240 if test "${enable_target_v5upgrade+set}" = set; then :
34241 enableval=$enable_target_v5upgrade;
34242 if test "x$enableval" = "xyes"
34243 then
34244 enable_plugin="yes"
34245 else if test "x$enableval" = "xforce"
34246 then
34247 enable_plugin="yes"
34248 force="yes"
34249 else
34250 enable_plugin="no (disabled on command line)"
34251 fi; fi
34253 else
34255 if test "x$enable_all_plugins" = "xauto"
34256 then
34257 if test "xyes" = "xyes"
34258 then
34259 enable_plugin="yes"
34260 else
34261 enable_plugin="no"
34262 fi
34263 else
34264 enable_plugin="$enable_all_plugins"
34265 fi
34267 fi
34269 if test "x$enable_plugin" = "xyes"
34270 then
34271 if test "xyes" = "xyes" || test "x$force" = "xyes"
34272 then
34274 $as_echo "#define HAVE_PLUGIN_TARGET_V5UPGRADE 1" >>confdefs.h
34276 if test "xyes" != "xyes"
34277 then
34278 dependency_warning="yes"
34279 fi
34280 else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
34281 dependency_error="yes"
34282 enable_plugin="no (dependency error)"
34283 fi
34284 fi
34285 if test "x$enable_plugin" = "xyes"; then
34286 BUILD_PLUGIN_TARGET_V5UPGRADE_TRUE=
34287 BUILD_PLUGIN_TARGET_V5UPGRADE_FALSE='#'
34288 else
34289 BUILD_PLUGIN_TARGET_V5UPGRADE_TRUE='#'
34290 BUILD_PLUGIN_TARGET_V5UPGRADE_FALSE=
34291 fi
34293 enable_target_v5upgrade="$enable_plugin"
34297 enable_plugin="no"
34298 force="no"
34299 # Check whether --enable-tcpconns was given.
34300 if test "${enable_tcpconns+set}" = set; then :
34301 enableval=$enable_tcpconns;
34302 if test "x$enableval" = "xyes"
34303 then
34304 enable_plugin="yes"
34305 else if test "x$enableval" = "xforce"
34306 then
34307 enable_plugin="yes"
34308 force="yes"
34309 else
34310 enable_plugin="no (disabled on command line)"
34311 fi; fi
34313 else
34315 if test "x$enable_all_plugins" = "xauto"
34316 then
34317 if test "x$plugin_tcpconns" = "xyes"
34318 then
34319 enable_plugin="yes"
34320 else
34321 enable_plugin="no"
34322 fi
34323 else
34324 enable_plugin="$enable_all_plugins"
34325 fi
34327 fi
34329 if test "x$enable_plugin" = "xyes"
34330 then
34331 if test "x$plugin_tcpconns" = "xyes" || test "x$force" = "xyes"
34332 then
34334 $as_echo "#define HAVE_PLUGIN_TCPCONNS 1" >>confdefs.h
34336 if test "x$plugin_tcpconns" != "xyes"
34337 then
34338 dependency_warning="yes"
34339 fi
34340 else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
34341 dependency_error="yes"
34342 enable_plugin="no (dependency error)"
34343 fi
34344 fi
34345 if test "x$enable_plugin" = "xyes"; then
34346 BUILD_PLUGIN_TCPCONNS_TRUE=
34347 BUILD_PLUGIN_TCPCONNS_FALSE='#'
34348 else
34349 BUILD_PLUGIN_TCPCONNS_TRUE='#'
34350 BUILD_PLUGIN_TCPCONNS_FALSE=
34351 fi
34353 enable_tcpconns="$enable_plugin"
34357 enable_plugin="no"
34358 force="no"
34359 # Check whether --enable-teamspeak2 was given.
34360 if test "${enable_teamspeak2+set}" = set; then :
34361 enableval=$enable_teamspeak2;
34362 if test "x$enableval" = "xyes"
34363 then
34364 enable_plugin="yes"
34365 else if test "x$enableval" = "xforce"
34366 then
34367 enable_plugin="yes"
34368 force="yes"
34369 else
34370 enable_plugin="no (disabled on command line)"
34371 fi; fi
34373 else
34375 if test "x$enable_all_plugins" = "xauto"
34376 then
34377 if test "xyes" = "xyes"
34378 then
34379 enable_plugin="yes"
34380 else
34381 enable_plugin="no"
34382 fi
34383 else
34384 enable_plugin="$enable_all_plugins"
34385 fi
34387 fi
34389 if test "x$enable_plugin" = "xyes"
34390 then
34391 if test "xyes" = "xyes" || test "x$force" = "xyes"
34392 then
34394 $as_echo "#define HAVE_PLUGIN_TEAMSPEAK2 1" >>confdefs.h
34396 if test "xyes" != "xyes"
34397 then
34398 dependency_warning="yes"
34399 fi
34400 else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
34401 dependency_error="yes"
34402 enable_plugin="no (dependency error)"
34403 fi
34404 fi
34405 if test "x$enable_plugin" = "xyes"; then
34406 BUILD_PLUGIN_TEAMSPEAK2_TRUE=
34407 BUILD_PLUGIN_TEAMSPEAK2_FALSE='#'
34408 else
34409 BUILD_PLUGIN_TEAMSPEAK2_TRUE='#'
34410 BUILD_PLUGIN_TEAMSPEAK2_FALSE=
34411 fi
34413 enable_teamspeak2="$enable_plugin"
34417 enable_plugin="no"
34418 force="no"
34419 # Check whether --enable-ted was given.
34420 if test "${enable_ted+set}" = set; then :
34421 enableval=$enable_ted;
34422 if test "x$enableval" = "xyes"
34423 then
34424 enable_plugin="yes"
34425 else if test "x$enableval" = "xforce"
34426 then
34427 enable_plugin="yes"
34428 force="yes"
34429 else
34430 enable_plugin="no (disabled on command line)"
34431 fi; fi
34433 else
34435 if test "x$enable_all_plugins" = "xauto"
34436 then
34437 if test "x$plugin_ted" = "xyes"
34438 then
34439 enable_plugin="yes"
34440 else
34441 enable_plugin="no"
34442 fi
34443 else
34444 enable_plugin="$enable_all_plugins"
34445 fi
34447 fi
34449 if test "x$enable_plugin" = "xyes"
34450 then
34451 if test "x$plugin_ted" = "xyes" || test "x$force" = "xyes"
34452 then
34454 $as_echo "#define HAVE_PLUGIN_TED 1" >>confdefs.h
34456 if test "x$plugin_ted" != "xyes"
34457 then
34458 dependency_warning="yes"
34459 fi
34460 else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
34461 dependency_error="yes"
34462 enable_plugin="no (dependency error)"
34463 fi
34464 fi
34465 if test "x$enable_plugin" = "xyes"; then
34466 BUILD_PLUGIN_TED_TRUE=
34467 BUILD_PLUGIN_TED_FALSE='#'
34468 else
34469 BUILD_PLUGIN_TED_TRUE='#'
34470 BUILD_PLUGIN_TED_FALSE=
34471 fi
34473 enable_ted="$enable_plugin"
34477 enable_plugin="no"
34478 force="no"
34479 # Check whether --enable-thermal was given.
34480 if test "${enable_thermal+set}" = set; then :
34481 enableval=$enable_thermal;
34482 if test "x$enableval" = "xyes"
34483 then
34484 enable_plugin="yes"
34485 else if test "x$enableval" = "xforce"
34486 then
34487 enable_plugin="yes"
34488 force="yes"
34489 else
34490 enable_plugin="no (disabled on command line)"
34491 fi; fi
34493 else
34495 if test "x$enable_all_plugins" = "xauto"
34496 then
34497 if test "x$plugin_thermal" = "xyes"
34498 then
34499 enable_plugin="yes"
34500 else
34501 enable_plugin="no"
34502 fi
34503 else
34504 enable_plugin="$enable_all_plugins"
34505 fi
34507 fi
34509 if test "x$enable_plugin" = "xyes"
34510 then
34511 if test "x$plugin_thermal" = "xyes" || test "x$force" = "xyes"
34512 then
34514 $as_echo "#define HAVE_PLUGIN_THERMAL 1" >>confdefs.h
34516 if test "x$plugin_thermal" != "xyes"
34517 then
34518 dependency_warning="yes"
34519 fi
34520 else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
34521 dependency_error="yes"
34522 enable_plugin="no (dependency error)"
34523 fi
34524 fi
34525 if test "x$enable_plugin" = "xyes"; then
34526 BUILD_PLUGIN_THERMAL_TRUE=
34527 BUILD_PLUGIN_THERMAL_FALSE='#'
34528 else
34529 BUILD_PLUGIN_THERMAL_TRUE='#'
34530 BUILD_PLUGIN_THERMAL_FALSE=
34531 fi
34533 enable_thermal="$enable_plugin"
34537 enable_plugin="no"
34538 force="no"
34539 # Check whether --enable-threshold was given.
34540 if test "${enable_threshold+set}" = set; then :
34541 enableval=$enable_threshold;
34542 if test "x$enableval" = "xyes"
34543 then
34544 enable_plugin="yes"
34545 else if test "x$enableval" = "xforce"
34546 then
34547 enable_plugin="yes"
34548 force="yes"
34549 else
34550 enable_plugin="no (disabled on command line)"
34551 fi; fi
34553 else
34555 if test "x$enable_all_plugins" = "xauto"
34556 then
34557 if test "xyes" = "xyes"
34558 then
34559 enable_plugin="yes"
34560 else
34561 enable_plugin="no"
34562 fi
34563 else
34564 enable_plugin="$enable_all_plugins"
34565 fi
34567 fi
34569 if test "x$enable_plugin" = "xyes"
34570 then
34571 if test "xyes" = "xyes" || test "x$force" = "xyes"
34572 then
34574 $as_echo "#define HAVE_PLUGIN_THRESHOLD 1" >>confdefs.h
34576 if test "xyes" != "xyes"
34577 then
34578 dependency_warning="yes"
34579 fi
34580 else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
34581 dependency_error="yes"
34582 enable_plugin="no (dependency error)"
34583 fi
34584 fi
34585 if test "x$enable_plugin" = "xyes"; then
34586 BUILD_PLUGIN_THRESHOLD_TRUE=
34587 BUILD_PLUGIN_THRESHOLD_FALSE='#'
34588 else
34589 BUILD_PLUGIN_THRESHOLD_TRUE='#'
34590 BUILD_PLUGIN_THRESHOLD_FALSE=
34591 fi
34593 enable_threshold="$enable_plugin"
34597 enable_plugin="no"
34598 force="no"
34599 # Check whether --enable-tokyotyrant was given.
34600 if test "${enable_tokyotyrant+set}" = set; then :
34601 enableval=$enable_tokyotyrant;
34602 if test "x$enableval" = "xyes"
34603 then
34604 enable_plugin="yes"
34605 else if test "x$enableval" = "xforce"
34606 then
34607 enable_plugin="yes"
34608 force="yes"
34609 else
34610 enable_plugin="no (disabled on command line)"
34611 fi; fi
34613 else
34615 if test "x$enable_all_plugins" = "xauto"
34616 then
34617 if test "x$with_libtokyotyrant" = "xyes"
34618 then
34619 enable_plugin="yes"
34620 else
34621 enable_plugin="no"
34622 fi
34623 else
34624 enable_plugin="$enable_all_plugins"
34625 fi
34627 fi
34629 if test "x$enable_plugin" = "xyes"
34630 then
34631 if test "x$with_libtokyotyrant" = "xyes" || test "x$force" = "xyes"
34632 then
34634 $as_echo "#define HAVE_PLUGIN_TOKYOTYRANT 1" >>confdefs.h
34636 if test "x$with_libtokyotyrant" != "xyes"
34637 then
34638 dependency_warning="yes"
34639 fi
34640 else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
34641 dependency_error="yes"
34642 enable_plugin="no (dependency error)"
34643 fi
34644 fi
34645 if test "x$enable_plugin" = "xyes"; then
34646 BUILD_PLUGIN_TOKYOTYRANT_TRUE=
34647 BUILD_PLUGIN_TOKYOTYRANT_FALSE='#'
34648 else
34649 BUILD_PLUGIN_TOKYOTYRANT_TRUE='#'
34650 BUILD_PLUGIN_TOKYOTYRANT_FALSE=
34651 fi
34653 enable_tokyotyrant="$enable_plugin"
34657 enable_plugin="no"
34658 force="no"
34659 # Check whether --enable-turbostat was given.
34660 if test "${enable_turbostat+set}" = set; then :
34661 enableval=$enable_turbostat;
34662 if test "x$enableval" = "xyes"
34663 then
34664 enable_plugin="yes"
34665 else if test "x$enableval" = "xforce"
34666 then
34667 enable_plugin="yes"
34668 force="yes"
34669 else
34670 enable_plugin="no (disabled on command line)"
34671 fi; fi
34673 else
34675 if test "x$enable_all_plugins" = "xauto"
34676 then
34677 if test "x$plugin_turbostat" = "xyes"
34678 then
34679 enable_plugin="yes"
34680 else
34681 enable_plugin="no"
34682 fi
34683 else
34684 enable_plugin="$enable_all_plugins"
34685 fi
34687 fi
34689 if test "x$enable_plugin" = "xyes"
34690 then
34691 if test "x$plugin_turbostat" = "xyes" || test "x$force" = "xyes"
34692 then
34694 $as_echo "#define HAVE_PLUGIN_TURBOSTAT 1" >>confdefs.h
34696 if test "x$plugin_turbostat" != "xyes"
34697 then
34698 dependency_warning="yes"
34699 fi
34700 else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
34701 dependency_error="yes"
34702 enable_plugin="no (dependency error)"
34703 fi
34704 fi
34705 if test "x$enable_plugin" = "xyes"; then
34706 BUILD_PLUGIN_TURBOSTAT_TRUE=
34707 BUILD_PLUGIN_TURBOSTAT_FALSE='#'
34708 else
34709 BUILD_PLUGIN_TURBOSTAT_TRUE='#'
34710 BUILD_PLUGIN_TURBOSTAT_FALSE=
34711 fi
34713 enable_turbostat="$enable_plugin"
34717 enable_plugin="no"
34718 force="no"
34719 # Check whether --enable-unixsock was given.
34720 if test "${enable_unixsock+set}" = set; then :
34721 enableval=$enable_unixsock;
34722 if test "x$enableval" = "xyes"
34723 then
34724 enable_plugin="yes"
34725 else if test "x$enableval" = "xforce"
34726 then
34727 enable_plugin="yes"
34728 force="yes"
34729 else
34730 enable_plugin="no (disabled on command line)"
34731 fi; fi
34733 else
34735 if test "x$enable_all_plugins" = "xauto"
34736 then
34737 if test "xyes" = "xyes"
34738 then
34739 enable_plugin="yes"
34740 else
34741 enable_plugin="no"
34742 fi
34743 else
34744 enable_plugin="$enable_all_plugins"
34745 fi
34747 fi
34749 if test "x$enable_plugin" = "xyes"
34750 then
34751 if test "xyes" = "xyes" || test "x$force" = "xyes"
34752 then
34754 $as_echo "#define HAVE_PLUGIN_UNIXSOCK 1" >>confdefs.h
34756 if test "xyes" != "xyes"
34757 then
34758 dependency_warning="yes"
34759 fi
34760 else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
34761 dependency_error="yes"
34762 enable_plugin="no (dependency error)"
34763 fi
34764 fi
34765 if test "x$enable_plugin" = "xyes"; then
34766 BUILD_PLUGIN_UNIXSOCK_TRUE=
34767 BUILD_PLUGIN_UNIXSOCK_FALSE='#'
34768 else
34769 BUILD_PLUGIN_UNIXSOCK_TRUE='#'
34770 BUILD_PLUGIN_UNIXSOCK_FALSE=
34771 fi
34773 enable_unixsock="$enable_plugin"
34777 enable_plugin="no"
34778 force="no"
34779 # Check whether --enable-uptime was given.
34780 if test "${enable_uptime+set}" = set; then :
34781 enableval=$enable_uptime;
34782 if test "x$enableval" = "xyes"
34783 then
34784 enable_plugin="yes"
34785 else if test "x$enableval" = "xforce"
34786 then
34787 enable_plugin="yes"
34788 force="yes"
34789 else
34790 enable_plugin="no (disabled on command line)"
34791 fi; fi
34793 else
34795 if test "x$enable_all_plugins" = "xauto"
34796 then
34797 if test "x$plugin_uptime" = "xyes"
34798 then
34799 enable_plugin="yes"
34800 else
34801 enable_plugin="no"
34802 fi
34803 else
34804 enable_plugin="$enable_all_plugins"
34805 fi
34807 fi
34809 if test "x$enable_plugin" = "xyes"
34810 then
34811 if test "x$plugin_uptime" = "xyes" || test "x$force" = "xyes"
34812 then
34814 $as_echo "#define HAVE_PLUGIN_UPTIME 1" >>confdefs.h
34816 if test "x$plugin_uptime" != "xyes"
34817 then
34818 dependency_warning="yes"
34819 fi
34820 else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
34821 dependency_error="yes"
34822 enable_plugin="no (dependency error)"
34823 fi
34824 fi
34825 if test "x$enable_plugin" = "xyes"; then
34826 BUILD_PLUGIN_UPTIME_TRUE=
34827 BUILD_PLUGIN_UPTIME_FALSE='#'
34828 else
34829 BUILD_PLUGIN_UPTIME_TRUE='#'
34830 BUILD_PLUGIN_UPTIME_FALSE=
34831 fi
34833 enable_uptime="$enable_plugin"
34837 enable_plugin="no"
34838 force="no"
34839 # Check whether --enable-users was given.
34840 if test "${enable_users+set}" = set; then :
34841 enableval=$enable_users;
34842 if test "x$enableval" = "xyes"
34843 then
34844 enable_plugin="yes"
34845 else if test "x$enableval" = "xforce"
34846 then
34847 enable_plugin="yes"
34848 force="yes"
34849 else
34850 enable_plugin="no (disabled on command line)"
34851 fi; fi
34853 else
34855 if test "x$enable_all_plugins" = "xauto"
34856 then
34857 if test "x$plugin_users" = "xyes"
34858 then
34859 enable_plugin="yes"
34860 else
34861 enable_plugin="no"
34862 fi
34863 else
34864 enable_plugin="$enable_all_plugins"
34865 fi
34867 fi
34869 if test "x$enable_plugin" = "xyes"
34870 then
34871 if test "x$plugin_users" = "xyes" || test "x$force" = "xyes"
34872 then
34874 $as_echo "#define HAVE_PLUGIN_USERS 1" >>confdefs.h
34876 if test "x$plugin_users" != "xyes"
34877 then
34878 dependency_warning="yes"
34879 fi
34880 else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
34881 dependency_error="yes"
34882 enable_plugin="no (dependency error)"
34883 fi
34884 fi
34885 if test "x$enable_plugin" = "xyes"; then
34886 BUILD_PLUGIN_USERS_TRUE=
34887 BUILD_PLUGIN_USERS_FALSE='#'
34888 else
34889 BUILD_PLUGIN_USERS_TRUE='#'
34890 BUILD_PLUGIN_USERS_FALSE=
34891 fi
34893 enable_users="$enable_plugin"
34897 enable_plugin="no"
34898 force="no"
34899 # Check whether --enable-uuid was given.
34900 if test "${enable_uuid+set}" = set; then :
34901 enableval=$enable_uuid;
34902 if test "x$enableval" = "xyes"
34903 then
34904 enable_plugin="yes"
34905 else if test "x$enableval" = "xforce"
34906 then
34907 enable_plugin="yes"
34908 force="yes"
34909 else
34910 enable_plugin="no (disabled on command line)"
34911 fi; fi
34913 else
34915 if test "x$enable_all_plugins" = "xauto"
34916 then
34917 if test "xyes" = "xyes"
34918 then
34919 enable_plugin="yes"
34920 else
34921 enable_plugin="no"
34922 fi
34923 else
34924 enable_plugin="$enable_all_plugins"
34925 fi
34927 fi
34929 if test "x$enable_plugin" = "xyes"
34930 then
34931 if test "xyes" = "xyes" || test "x$force" = "xyes"
34932 then
34934 $as_echo "#define HAVE_PLUGIN_UUID 1" >>confdefs.h
34936 if test "xyes" != "xyes"
34937 then
34938 dependency_warning="yes"
34939 fi
34940 else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
34941 dependency_error="yes"
34942 enable_plugin="no (dependency error)"
34943 fi
34944 fi
34945 if test "x$enable_plugin" = "xyes"; then
34946 BUILD_PLUGIN_UUID_TRUE=
34947 BUILD_PLUGIN_UUID_FALSE='#'
34948 else
34949 BUILD_PLUGIN_UUID_TRUE='#'
34950 BUILD_PLUGIN_UUID_FALSE=
34951 fi
34953 enable_uuid="$enable_plugin"
34957 enable_plugin="no"
34958 force="no"
34959 # Check whether --enable-varnish was given.
34960 if test "${enable_varnish+set}" = set; then :
34961 enableval=$enable_varnish;
34962 if test "x$enableval" = "xyes"
34963 then
34964 enable_plugin="yes"
34965 else if test "x$enableval" = "xforce"
34966 then
34967 enable_plugin="yes"
34968 force="yes"
34969 else
34970 enable_plugin="no (disabled on command line)"
34971 fi; fi
34973 else
34975 if test "x$enable_all_plugins" = "xauto"
34976 then
34977 if test "x$with_libvarnish" = "xyes"
34978 then
34979 enable_plugin="yes"
34980 else
34981 enable_plugin="no"
34982 fi
34983 else
34984 enable_plugin="$enable_all_plugins"
34985 fi
34987 fi
34989 if test "x$enable_plugin" = "xyes"
34990 then
34991 if test "x$with_libvarnish" = "xyes" || test "x$force" = "xyes"
34992 then
34994 $as_echo "#define HAVE_PLUGIN_VARNISH 1" >>confdefs.h
34996 if test "x$with_libvarnish" != "xyes"
34997 then
34998 dependency_warning="yes"
34999 fi
35000 else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
35001 dependency_error="yes"
35002 enable_plugin="no (dependency error)"
35003 fi
35004 fi
35005 if test "x$enable_plugin" = "xyes"; then
35006 BUILD_PLUGIN_VARNISH_TRUE=
35007 BUILD_PLUGIN_VARNISH_FALSE='#'
35008 else
35009 BUILD_PLUGIN_VARNISH_TRUE='#'
35010 BUILD_PLUGIN_VARNISH_FALSE=
35011 fi
35013 enable_varnish="$enable_plugin"
35017 enable_plugin="no"
35018 force="no"
35019 # Check whether --enable-virt was given.
35020 if test "${enable_virt+set}" = set; then :
35021 enableval=$enable_virt;
35022 if test "x$enableval" = "xyes"
35023 then
35024 enable_plugin="yes"
35025 else if test "x$enableval" = "xforce"
35026 then
35027 enable_plugin="yes"
35028 force="yes"
35029 else
35030 enable_plugin="no (disabled on command line)"
35031 fi; fi
35033 else
35035 if test "x$enable_all_plugins" = "xauto"
35036 then
35037 if test "x$plugin_virt" = "xyes"
35038 then
35039 enable_plugin="yes"
35040 else
35041 enable_plugin="no"
35042 fi
35043 else
35044 enable_plugin="$enable_all_plugins"
35045 fi
35047 fi
35049 if test "x$enable_plugin" = "xyes"
35050 then
35051 if test "x$plugin_virt" = "xyes" || test "x$force" = "xyes"
35052 then
35054 $as_echo "#define HAVE_PLUGIN_VIRT 1" >>confdefs.h
35056 if test "x$plugin_virt" != "xyes"
35057 then
35058 dependency_warning="yes"
35059 fi
35060 else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
35061 dependency_error="yes"
35062 enable_plugin="no (dependency error)"
35063 fi
35064 fi
35065 if test "x$enable_plugin" = "xyes"; then
35066 BUILD_PLUGIN_VIRT_TRUE=
35067 BUILD_PLUGIN_VIRT_FALSE='#'
35068 else
35069 BUILD_PLUGIN_VIRT_TRUE='#'
35070 BUILD_PLUGIN_VIRT_FALSE=
35071 fi
35073 enable_virt="$enable_plugin"
35077 enable_plugin="no"
35078 force="no"
35079 # Check whether --enable-vmem was given.
35080 if test "${enable_vmem+set}" = set; then :
35081 enableval=$enable_vmem;
35082 if test "x$enableval" = "xyes"
35083 then
35084 enable_plugin="yes"
35085 else if test "x$enableval" = "xforce"
35086 then
35087 enable_plugin="yes"
35088 force="yes"
35089 else
35090 enable_plugin="no (disabled on command line)"
35091 fi; fi
35093 else
35095 if test "x$enable_all_plugins" = "xauto"
35096 then
35097 if test "x$plugin_vmem" = "xyes"
35098 then
35099 enable_plugin="yes"
35100 else
35101 enable_plugin="no"
35102 fi
35103 else
35104 enable_plugin="$enable_all_plugins"
35105 fi
35107 fi
35109 if test "x$enable_plugin" = "xyes"
35110 then
35111 if test "x$plugin_vmem" = "xyes" || test "x$force" = "xyes"
35112 then
35114 $as_echo "#define HAVE_PLUGIN_VMEM 1" >>confdefs.h
35116 if test "x$plugin_vmem" != "xyes"
35117 then
35118 dependency_warning="yes"
35119 fi
35120 else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
35121 dependency_error="yes"
35122 enable_plugin="no (dependency error)"
35123 fi
35124 fi
35125 if test "x$enable_plugin" = "xyes"; then
35126 BUILD_PLUGIN_VMEM_TRUE=
35127 BUILD_PLUGIN_VMEM_FALSE='#'
35128 else
35129 BUILD_PLUGIN_VMEM_TRUE='#'
35130 BUILD_PLUGIN_VMEM_FALSE=
35131 fi
35133 enable_vmem="$enable_plugin"
35137 enable_plugin="no"
35138 force="no"
35139 # Check whether --enable-vserver was given.
35140 if test "${enable_vserver+set}" = set; then :
35141 enableval=$enable_vserver;
35142 if test "x$enableval" = "xyes"
35143 then
35144 enable_plugin="yes"
35145 else if test "x$enableval" = "xforce"
35146 then
35147 enable_plugin="yes"
35148 force="yes"
35149 else
35150 enable_plugin="no (disabled on command line)"
35151 fi; fi
35153 else
35155 if test "x$enable_all_plugins" = "xauto"
35156 then
35157 if test "x$plugin_vserver" = "xyes"
35158 then
35159 enable_plugin="yes"
35160 else
35161 enable_plugin="no"
35162 fi
35163 else
35164 enable_plugin="$enable_all_plugins"
35165 fi
35167 fi
35169 if test "x$enable_plugin" = "xyes"
35170 then
35171 if test "x$plugin_vserver" = "xyes" || test "x$force" = "xyes"
35172 then
35174 $as_echo "#define HAVE_PLUGIN_VSERVER 1" >>confdefs.h
35176 if test "x$plugin_vserver" != "xyes"
35177 then
35178 dependency_warning="yes"
35179 fi
35180 else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
35181 dependency_error="yes"
35182 enable_plugin="no (dependency error)"
35183 fi
35184 fi
35185 if test "x$enable_plugin" = "xyes"; then
35186 BUILD_PLUGIN_VSERVER_TRUE=
35187 BUILD_PLUGIN_VSERVER_FALSE='#'
35188 else
35189 BUILD_PLUGIN_VSERVER_TRUE='#'
35190 BUILD_PLUGIN_VSERVER_FALSE=
35191 fi
35193 enable_vserver="$enable_plugin"
35197 enable_plugin="no"
35198 force="no"
35199 # Check whether --enable-wireless was given.
35200 if test "${enable_wireless+set}" = set; then :
35201 enableval=$enable_wireless;
35202 if test "x$enableval" = "xyes"
35203 then
35204 enable_plugin="yes"
35205 else if test "x$enableval" = "xforce"
35206 then
35207 enable_plugin="yes"
35208 force="yes"
35209 else
35210 enable_plugin="no (disabled on command line)"
35211 fi; fi
35213 else
35215 if test "x$enable_all_plugins" = "xauto"
35216 then
35217 if test "x$plugin_wireless" = "xyes"
35218 then
35219 enable_plugin="yes"
35220 else
35221 enable_plugin="no"
35222 fi
35223 else
35224 enable_plugin="$enable_all_plugins"
35225 fi
35227 fi
35229 if test "x$enable_plugin" = "xyes"
35230 then
35231 if test "x$plugin_wireless" = "xyes" || test "x$force" = "xyes"
35232 then
35234 $as_echo "#define HAVE_PLUGIN_WIRELESS 1" >>confdefs.h
35236 if test "x$plugin_wireless" != "xyes"
35237 then
35238 dependency_warning="yes"
35239 fi
35240 else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
35241 dependency_error="yes"
35242 enable_plugin="no (dependency error)"
35243 fi
35244 fi
35245 if test "x$enable_plugin" = "xyes"; then
35246 BUILD_PLUGIN_WIRELESS_TRUE=
35247 BUILD_PLUGIN_WIRELESS_FALSE='#'
35248 else
35249 BUILD_PLUGIN_WIRELESS_TRUE='#'
35250 BUILD_PLUGIN_WIRELESS_FALSE=
35251 fi
35253 enable_wireless="$enable_plugin"
35257 enable_plugin="no"
35258 force="no"
35259 # Check whether --enable-write_graphite was given.
35260 if test "${enable_write_graphite+set}" = set; then :
35261 enableval=$enable_write_graphite;
35262 if test "x$enableval" = "xyes"
35263 then
35264 enable_plugin="yes"
35265 else if test "x$enableval" = "xforce"
35266 then
35267 enable_plugin="yes"
35268 force="yes"
35269 else
35270 enable_plugin="no (disabled on command line)"
35271 fi; fi
35273 else
35275 if test "x$enable_all_plugins" = "xauto"
35276 then
35277 if test "xyes" = "xyes"
35278 then
35279 enable_plugin="yes"
35280 else
35281 enable_plugin="no"
35282 fi
35283 else
35284 enable_plugin="$enable_all_plugins"
35285 fi
35287 fi
35289 if test "x$enable_plugin" = "xyes"
35290 then
35291 if test "xyes" = "xyes" || test "x$force" = "xyes"
35292 then
35294 $as_echo "#define HAVE_PLUGIN_WRITE_GRAPHITE 1" >>confdefs.h
35296 if test "xyes" != "xyes"
35297 then
35298 dependency_warning="yes"
35299 fi
35300 else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
35301 dependency_error="yes"
35302 enable_plugin="no (dependency error)"
35303 fi
35304 fi
35305 if test "x$enable_plugin" = "xyes"; then
35306 BUILD_PLUGIN_WRITE_GRAPHITE_TRUE=
35307 BUILD_PLUGIN_WRITE_GRAPHITE_FALSE='#'
35308 else
35309 BUILD_PLUGIN_WRITE_GRAPHITE_TRUE='#'
35310 BUILD_PLUGIN_WRITE_GRAPHITE_FALSE=
35311 fi
35313 enable_write_graphite="$enable_plugin"
35317 enable_plugin="no"
35318 force="no"
35319 # Check whether --enable-write_http was given.
35320 if test "${enable_write_http+set}" = set; then :
35321 enableval=$enable_write_http;
35322 if test "x$enableval" = "xyes"
35323 then
35324 enable_plugin="yes"
35325 else if test "x$enableval" = "xforce"
35326 then
35327 enable_plugin="yes"
35328 force="yes"
35329 else
35330 enable_plugin="no (disabled on command line)"
35331 fi; fi
35333 else
35335 if test "x$enable_all_plugins" = "xauto"
35336 then
35337 if test "x$with_libcurl" = "xyes"
35338 then
35339 enable_plugin="yes"
35340 else
35341 enable_plugin="no"
35342 fi
35343 else
35344 enable_plugin="$enable_all_plugins"
35345 fi
35347 fi
35349 if test "x$enable_plugin" = "xyes"
35350 then
35351 if test "x$with_libcurl" = "xyes" || test "x$force" = "xyes"
35352 then
35354 $as_echo "#define HAVE_PLUGIN_WRITE_HTTP 1" >>confdefs.h
35356 if test "x$with_libcurl" != "xyes"
35357 then
35358 dependency_warning="yes"
35359 fi
35360 else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
35361 dependency_error="yes"
35362 enable_plugin="no (dependency error)"
35363 fi
35364 fi
35365 if test "x$enable_plugin" = "xyes"; then
35366 BUILD_PLUGIN_WRITE_HTTP_TRUE=
35367 BUILD_PLUGIN_WRITE_HTTP_FALSE='#'
35368 else
35369 BUILD_PLUGIN_WRITE_HTTP_TRUE='#'
35370 BUILD_PLUGIN_WRITE_HTTP_FALSE=
35371 fi
35373 enable_write_http="$enable_plugin"
35377 enable_plugin="no"
35378 force="no"
35379 # Check whether --enable-write_kafka was given.
35380 if test "${enable_write_kafka+set}" = set; then :
35381 enableval=$enable_write_kafka;
35382 if test "x$enableval" = "xyes"
35383 then
35384 enable_plugin="yes"
35385 else if test "x$enableval" = "xforce"
35386 then
35387 enable_plugin="yes"
35388 force="yes"
35389 else
35390 enable_plugin="no (disabled on command line)"
35391 fi; fi
35393 else
35395 if test "x$enable_all_plugins" = "xauto"
35396 then
35397 if test "x$with_librdkafka" = "xyes"
35398 then
35399 enable_plugin="yes"
35400 else
35401 enable_plugin="no"
35402 fi
35403 else
35404 enable_plugin="$enable_all_plugins"
35405 fi
35407 fi
35409 if test "x$enable_plugin" = "xyes"
35410 then
35411 if test "x$with_librdkafka" = "xyes" || test "x$force" = "xyes"
35412 then
35414 $as_echo "#define HAVE_PLUGIN_WRITE_KAFKA 1" >>confdefs.h
35416 if test "x$with_librdkafka" != "xyes"
35417 then
35418 dependency_warning="yes"
35419 fi
35420 else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
35421 dependency_error="yes"
35422 enable_plugin="no (dependency error)"
35423 fi
35424 fi
35425 if test "x$enable_plugin" = "xyes"; then
35426 BUILD_PLUGIN_WRITE_KAFKA_TRUE=
35427 BUILD_PLUGIN_WRITE_KAFKA_FALSE='#'
35428 else
35429 BUILD_PLUGIN_WRITE_KAFKA_TRUE='#'
35430 BUILD_PLUGIN_WRITE_KAFKA_FALSE=
35431 fi
35433 enable_write_kafka="$enable_plugin"
35437 enable_plugin="no"
35438 force="no"
35439 # Check whether --enable-write_log was given.
35440 if test "${enable_write_log+set}" = set; then :
35441 enableval=$enable_write_log;
35442 if test "x$enableval" = "xyes"
35443 then
35444 enable_plugin="yes"
35445 else if test "x$enableval" = "xforce"
35446 then
35447 enable_plugin="yes"
35448 force="yes"
35449 else
35450 enable_plugin="no (disabled on command line)"
35451 fi; fi
35453 else
35455 if test "x$enable_all_plugins" = "xauto"
35456 then
35457 if test "xyes" = "xyes"
35458 then
35459 enable_plugin="yes"
35460 else
35461 enable_plugin="no"
35462 fi
35463 else
35464 enable_plugin="$enable_all_plugins"
35465 fi
35467 fi
35469 if test "x$enable_plugin" = "xyes"
35470 then
35471 if test "xyes" = "xyes" || test "x$force" = "xyes"
35472 then
35474 $as_echo "#define HAVE_PLUGIN_WRITE_LOG 1" >>confdefs.h
35476 if test "xyes" != "xyes"
35477 then
35478 dependency_warning="yes"
35479 fi
35480 else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
35481 dependency_error="yes"
35482 enable_plugin="no (dependency error)"
35483 fi
35484 fi
35485 if test "x$enable_plugin" = "xyes"; then
35486 BUILD_PLUGIN_WRITE_LOG_TRUE=
35487 BUILD_PLUGIN_WRITE_LOG_FALSE='#'
35488 else
35489 BUILD_PLUGIN_WRITE_LOG_TRUE='#'
35490 BUILD_PLUGIN_WRITE_LOG_FALSE=
35491 fi
35493 enable_write_log="$enable_plugin"
35497 enable_plugin="no"
35498 force="no"
35499 # Check whether --enable-write_mongodb was given.
35500 if test "${enable_write_mongodb+set}" = set; then :
35501 enableval=$enable_write_mongodb;
35502 if test "x$enableval" = "xyes"
35503 then
35504 enable_plugin="yes"
35505 else if test "x$enableval" = "xforce"
35506 then
35507 enable_plugin="yes"
35508 force="yes"
35509 else
35510 enable_plugin="no (disabled on command line)"
35511 fi; fi
35513 else
35515 if test "x$enable_all_plugins" = "xauto"
35516 then
35517 if test "x$with_libmongoc" = "xyes"
35518 then
35519 enable_plugin="yes"
35520 else
35521 enable_plugin="no"
35522 fi
35523 else
35524 enable_plugin="$enable_all_plugins"
35525 fi
35527 fi
35529 if test "x$enable_plugin" = "xyes"
35530 then
35531 if test "x$with_libmongoc" = "xyes" || test "x$force" = "xyes"
35532 then
35534 $as_echo "#define HAVE_PLUGIN_WRITE_MONGODB 1" >>confdefs.h
35536 if test "x$with_libmongoc" != "xyes"
35537 then
35538 dependency_warning="yes"
35539 fi
35540 else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
35541 dependency_error="yes"
35542 enable_plugin="no (dependency error)"
35543 fi
35544 fi
35545 if test "x$enable_plugin" = "xyes"; then
35546 BUILD_PLUGIN_WRITE_MONGODB_TRUE=
35547 BUILD_PLUGIN_WRITE_MONGODB_FALSE='#'
35548 else
35549 BUILD_PLUGIN_WRITE_MONGODB_TRUE='#'
35550 BUILD_PLUGIN_WRITE_MONGODB_FALSE=
35551 fi
35553 enable_write_mongodb="$enable_plugin"
35557 enable_plugin="no"
35558 force="no"
35559 # Check whether --enable-write_redis was given.
35560 if test "${enable_write_redis+set}" = set; then :
35561 enableval=$enable_write_redis;
35562 if test "x$enableval" = "xyes"
35563 then
35564 enable_plugin="yes"
35565 else if test "x$enableval" = "xforce"
35566 then
35567 enable_plugin="yes"
35568 force="yes"
35569 else
35570 enable_plugin="no (disabled on command line)"
35571 fi; fi
35573 else
35575 if test "x$enable_all_plugins" = "xauto"
35576 then
35577 if test "x$with_libhiredis" = "xyes"
35578 then
35579 enable_plugin="yes"
35580 else
35581 enable_plugin="no"
35582 fi
35583 else
35584 enable_plugin="$enable_all_plugins"
35585 fi
35587 fi
35589 if test "x$enable_plugin" = "xyes"
35590 then
35591 if test "x$with_libhiredis" = "xyes" || test "x$force" = "xyes"
35592 then
35594 $as_echo "#define HAVE_PLUGIN_WRITE_REDIS 1" >>confdefs.h
35596 if test "x$with_libhiredis" != "xyes"
35597 then
35598 dependency_warning="yes"
35599 fi
35600 else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
35601 dependency_error="yes"
35602 enable_plugin="no (dependency error)"
35603 fi
35604 fi
35605 if test "x$enable_plugin" = "xyes"; then
35606 BUILD_PLUGIN_WRITE_REDIS_TRUE=
35607 BUILD_PLUGIN_WRITE_REDIS_FALSE='#'
35608 else
35609 BUILD_PLUGIN_WRITE_REDIS_TRUE='#'
35610 BUILD_PLUGIN_WRITE_REDIS_FALSE=
35611 fi
35613 enable_write_redis="$enable_plugin"
35617 enable_plugin="no"
35618 force="no"
35619 # Check whether --enable-write_riemann was given.
35620 if test "${enable_write_riemann+set}" = set; then :
35621 enableval=$enable_write_riemann;
35622 if test "x$enableval" = "xyes"
35623 then
35624 enable_plugin="yes"
35625 else if test "x$enableval" = "xforce"
35626 then
35627 enable_plugin="yes"
35628 force="yes"
35629 else
35630 enable_plugin="no (disabled on command line)"
35631 fi; fi
35633 else
35635 if test "x$enable_all_plugins" = "xauto"
35636 then
35637 if test "x$have_protoc_c" = "xyes"
35638 then
35639 enable_plugin="yes"
35640 else
35641 enable_plugin="no"
35642 fi
35643 else
35644 enable_plugin="$enable_all_plugins"
35645 fi
35647 fi
35649 if test "x$enable_plugin" = "xyes"
35650 then
35651 if test "x$have_protoc_c" = "xyes" || test "x$force" = "xyes"
35652 then
35654 $as_echo "#define HAVE_PLUGIN_WRITE_RIEMANN 1" >>confdefs.h
35656 if test "x$have_protoc_c" != "xyes"
35657 then
35658 dependency_warning="yes"
35659 fi
35660 else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
35661 dependency_error="yes"
35662 enable_plugin="no (dependency error)"
35663 fi
35664 fi
35665 if test "x$enable_plugin" = "xyes"; then
35666 BUILD_PLUGIN_WRITE_RIEMANN_TRUE=
35667 BUILD_PLUGIN_WRITE_RIEMANN_FALSE='#'
35668 else
35669 BUILD_PLUGIN_WRITE_RIEMANN_TRUE='#'
35670 BUILD_PLUGIN_WRITE_RIEMANN_FALSE=
35671 fi
35673 enable_write_riemann="$enable_plugin"
35677 enable_plugin="no"
35678 force="no"
35679 # Check whether --enable-write_sensu was given.
35680 if test "${enable_write_sensu+set}" = set; then :
35681 enableval=$enable_write_sensu;
35682 if test "x$enableval" = "xyes"
35683 then
35684 enable_plugin="yes"
35685 else if test "x$enableval" = "xforce"
35686 then
35687 enable_plugin="yes"
35688 force="yes"
35689 else
35690 enable_plugin="no (disabled on command line)"
35691 fi; fi
35693 else
35695 if test "x$enable_all_plugins" = "xauto"
35696 then
35697 if test "xyes" = "xyes"
35698 then
35699 enable_plugin="yes"
35700 else
35701 enable_plugin="no"
35702 fi
35703 else
35704 enable_plugin="$enable_all_plugins"
35705 fi
35707 fi
35709 if test "x$enable_plugin" = "xyes"
35710 then
35711 if test "xyes" = "xyes" || test "x$force" = "xyes"
35712 then
35714 $as_echo "#define HAVE_PLUGIN_WRITE_SENSU 1" >>confdefs.h
35716 if test "xyes" != "xyes"
35717 then
35718 dependency_warning="yes"
35719 fi
35720 else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
35721 dependency_error="yes"
35722 enable_plugin="no (dependency error)"
35723 fi
35724 fi
35725 if test "x$enable_plugin" = "xyes"; then
35726 BUILD_PLUGIN_WRITE_SENSU_TRUE=
35727 BUILD_PLUGIN_WRITE_SENSU_FALSE='#'
35728 else
35729 BUILD_PLUGIN_WRITE_SENSU_TRUE='#'
35730 BUILD_PLUGIN_WRITE_SENSU_FALSE=
35731 fi
35733 enable_write_sensu="$enable_plugin"
35737 enable_plugin="no"
35738 force="no"
35739 # Check whether --enable-write_tsdb was given.
35740 if test "${enable_write_tsdb+set}" = set; then :
35741 enableval=$enable_write_tsdb;
35742 if test "x$enableval" = "xyes"
35743 then
35744 enable_plugin="yes"
35745 else if test "x$enableval" = "xforce"
35746 then
35747 enable_plugin="yes"
35748 force="yes"
35749 else
35750 enable_plugin="no (disabled on command line)"
35751 fi; fi
35753 else
35755 if test "x$enable_all_plugins" = "xauto"
35756 then
35757 if test "xyes" = "xyes"
35758 then
35759 enable_plugin="yes"
35760 else
35761 enable_plugin="no"
35762 fi
35763 else
35764 enable_plugin="$enable_all_plugins"
35765 fi
35767 fi
35769 if test "x$enable_plugin" = "xyes"
35770 then
35771 if test "xyes" = "xyes" || test "x$force" = "xyes"
35772 then
35774 $as_echo "#define HAVE_PLUGIN_WRITE_TSDB 1" >>confdefs.h
35776 if test "xyes" != "xyes"
35777 then
35778 dependency_warning="yes"
35779 fi
35780 else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
35781 dependency_error="yes"
35782 enable_plugin="no (dependency error)"
35783 fi
35784 fi
35785 if test "x$enable_plugin" = "xyes"; then
35786 BUILD_PLUGIN_WRITE_TSDB_TRUE=
35787 BUILD_PLUGIN_WRITE_TSDB_FALSE='#'
35788 else
35789 BUILD_PLUGIN_WRITE_TSDB_TRUE='#'
35790 BUILD_PLUGIN_WRITE_TSDB_FALSE=
35791 fi
35793 enable_write_tsdb="$enable_plugin"
35797 enable_plugin="no"
35798 force="no"
35799 # Check whether --enable-xmms was given.
35800 if test "${enable_xmms+set}" = set; then :
35801 enableval=$enable_xmms;
35802 if test "x$enableval" = "xyes"
35803 then
35804 enable_plugin="yes"
35805 else if test "x$enableval" = "xforce"
35806 then
35807 enable_plugin="yes"
35808 force="yes"
35809 else
35810 enable_plugin="no (disabled on command line)"
35811 fi; fi
35813 else
35815 if test "x$enable_all_plugins" = "xauto"
35816 then
35817 if test "x$with_libxmms" = "xyes"
35818 then
35819 enable_plugin="yes"
35820 else
35821 enable_plugin="no"
35822 fi
35823 else
35824 enable_plugin="$enable_all_plugins"
35825 fi
35827 fi
35829 if test "x$enable_plugin" = "xyes"
35830 then
35831 if test "x$with_libxmms" = "xyes" || test "x$force" = "xyes"
35832 then
35834 $as_echo "#define HAVE_PLUGIN_XMMS 1" >>confdefs.h
35836 if test "x$with_libxmms" != "xyes"
35837 then
35838 dependency_warning="yes"
35839 fi
35840 else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
35841 dependency_error="yes"
35842 enable_plugin="no (dependency error)"
35843 fi
35844 fi
35845 if test "x$enable_plugin" = "xyes"; then
35846 BUILD_PLUGIN_XMMS_TRUE=
35847 BUILD_PLUGIN_XMMS_FALSE='#'
35848 else
35849 BUILD_PLUGIN_XMMS_TRUE='#'
35850 BUILD_PLUGIN_XMMS_FALSE=
35851 fi
35853 enable_xmms="$enable_plugin"
35857 enable_plugin="no"
35858 force="no"
35859 # Check whether --enable-zfs_arc was given.
35860 if test "${enable_zfs_arc+set}" = set; then :
35861 enableval=$enable_zfs_arc;
35862 if test "x$enableval" = "xyes"
35863 then
35864 enable_plugin="yes"
35865 else if test "x$enableval" = "xforce"
35866 then
35867 enable_plugin="yes"
35868 force="yes"
35869 else
35870 enable_plugin="no (disabled on command line)"
35871 fi; fi
35873 else
35875 if test "x$enable_all_plugins" = "xauto"
35876 then
35877 if test "x$plugin_zfs_arc" = "xyes"
35878 then
35879 enable_plugin="yes"
35880 else
35881 enable_plugin="no"
35882 fi
35883 else
35884 enable_plugin="$enable_all_plugins"
35885 fi
35887 fi
35889 if test "x$enable_plugin" = "xyes"
35890 then
35891 if test "x$plugin_zfs_arc" = "xyes" || test "x$force" = "xyes"
35892 then
35894 $as_echo "#define HAVE_PLUGIN_ZFS_ARC 1" >>confdefs.h
35896 if test "x$plugin_zfs_arc" != "xyes"
35897 then
35898 dependency_warning="yes"
35899 fi
35900 else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
35901 dependency_error="yes"
35902 enable_plugin="no (dependency error)"
35903 fi
35904 fi
35905 if test "x$enable_plugin" = "xyes"; then
35906 BUILD_PLUGIN_ZFS_ARC_TRUE=
35907 BUILD_PLUGIN_ZFS_ARC_FALSE='#'
35908 else
35909 BUILD_PLUGIN_ZFS_ARC_TRUE='#'
35910 BUILD_PLUGIN_ZFS_ARC_FALSE=
35911 fi
35913 enable_zfs_arc="$enable_plugin"
35917 enable_plugin="no"
35918 force="no"
35919 # Check whether --enable-zookeeper was given.
35920 if test "${enable_zookeeper+set}" = set; then :
35921 enableval=$enable_zookeeper;
35922 if test "x$enableval" = "xyes"
35923 then
35924 enable_plugin="yes"
35925 else if test "x$enableval" = "xforce"
35926 then
35927 enable_plugin="yes"
35928 force="yes"
35929 else
35930 enable_plugin="no (disabled on command line)"
35931 fi; fi
35933 else
35935 if test "x$enable_all_plugins" = "xauto"
35936 then
35937 if test "xyes" = "xyes"
35938 then
35939 enable_plugin="yes"
35940 else
35941 enable_plugin="no"
35942 fi
35943 else
35944 enable_plugin="$enable_all_plugins"
35945 fi
35947 fi
35949 if test "x$enable_plugin" = "xyes"
35950 then
35951 if test "xyes" = "xyes" || test "x$force" = "xyes"
35952 then
35954 $as_echo "#define HAVE_PLUGIN_ZOOKEEPER 1" >>confdefs.h
35956 if test "xyes" != "xyes"
35957 then
35958 dependency_warning="yes"
35959 fi
35960 else # User passed "yes" but dependency checking yielded "no" => Dependency problem.
35961 dependency_error="yes"
35962 enable_plugin="no (dependency error)"
35963 fi
35964 fi
35965 if test "x$enable_plugin" = "xyes"; then
35966 BUILD_PLUGIN_ZOOKEEPER_TRUE=
35967 BUILD_PLUGIN_ZOOKEEPER_FALSE='#'
35968 else
35969 BUILD_PLUGIN_ZOOKEEPER_TRUE='#'
35970 BUILD_PLUGIN_ZOOKEEPER_FALSE=
35971 fi
35973 enable_zookeeper="$enable_plugin"
35977 # Load either syslog or logfile
35978 LOAD_PLUGIN_SYSLOG=""
35979 LOAD_PLUGIN_LOGFILE=""
35980 LOAD_PLUGIN_LOG_LOGSTASH=""
35982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which default log plugin to load" >&5
35983 $as_echo_n "checking which default log plugin to load... " >&6; }
35984 default_log_plugin="none"
35985 if test "x$enable_syslog" = "xyes"
35986 then
35987 default_log_plugin="syslog"
35988 else
35989 LOAD_PLUGIN_SYSLOG="##"
35990 fi
35992 if test "x$enable_logfile" = "xyes"
35993 then
35994 if test "x$default_log_plugin" = "xnone"
35995 then
35996 default_log_plugin="logfile"
35997 else
35998 LOAD_PLUGIN_LOGFILE="#"
35999 fi
36000 else
36001 LOAD_PLUGIN_LOGFILE="##"
36002 fi
36004 if test "x$enable_log_logstash" = "xyes"
36005 then
36006 LOAD_PLUGIN_LOG_LOGSTASH="#"
36007 else
36008 LOAD_PLUGIN_LOG_LOGSTASH="##"
36009 fi
36012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $default_log_plugin" >&5
36013 $as_echo "$default_log_plugin" >&6; }
36019 DEFAULT_LOG_LEVEL="info"
36020 if test "x$enable_debug" = "xyes"
36021 then
36022 DEFAULT_LOG_LEVEL="debug"
36023 fi
36026 # Load only one of rrdtool, network, csv in the default config.
36027 LOAD_PLUGIN_RRDTOOL=""
36028 LOAD_PLUGIN_NETWORK=""
36029 LOAD_PLUGIN_CSV=""
36031 { $as_echo "$as_me:${as_lineno-$LINENO}: checking which default write plugin to load" >&5
36032 $as_echo_n "checking which default write plugin to load... " >&6; }
36033 default_write_plugin="none"
36034 if test "x$enable_rrdtool" = "xyes"
36035 then
36036 default_write_plugin="rrdtool"
36037 else
36038 LOAD_PLUGIN_RRDTOOL="##"
36039 fi
36041 if test "x$enable_network" = "xyes"
36042 then
36043 if test "x$default_write_plugin" = "xnone"
36044 then
36045 default_write_plugin="network"
36046 else
36047 LOAD_PLUGIN_NETWORK="#"
36048 fi
36049 else
36050 LOAD_PLUGIN_NETWORK="##"
36051 fi
36053 if test "x$enable_csv" = "xyes"
36054 then
36055 if test "x$default_write_plugin" = "xnone"
36056 then
36057 default_write_plugin="csv"
36058 else
36059 LOAD_PLUGIN_CSV="#"
36060 fi
36061 else
36062 LOAD_PLUGIN_CSV="##"
36063 fi
36064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $default_write_plugin" >&5
36065 $as_echo "$default_write_plugin" >&6; }
36071 if test "x$ac_system" = "xLinux" \
36072 && test "x$have_linux_ip_vs_h$have_net_ip_vs_h$have_ip_vs_h" = "xnonono"
36073 then
36074 enable_ipvs="$enable_ipvs (ip_vs.h not found)"
36075 fi
36077 if test "x$ip_vs_h_needs_kernel_cflags" = "xyes"
36078 then
36079 enable_ipvs="$enable_ipvs (needs $KERNEL_CFLAGS)"
36080 fi
36082 PERL_BINDINGS_OPTIONS="PREFIX=${prefix}"
36084 # Check whether --with-perl-bindings was given.
36085 if test "${with_perl_bindings+set}" = set; then :
36086 withval=$with_perl_bindings;
36087 if test "x$withval" != "xno" && test "x$withval" != "xyes"
36088 then
36089 PERL_BINDINGS_OPTIONS="$withval"
36090 with_perl_bindings="yes"
36091 else
36092 with_perl_bindings="$withval"
36093 fi
36095 else
36097 if test -n "$perl_interpreter"
36098 then
36099 with_perl_bindings="yes"
36100 else
36101 with_perl_bindings="no (no perl interpreter found)"
36102 fi
36104 fi
36106 if test "x$with_perl_bindings" = "xyes"
36107 then
36108 PERL_BINDINGS="perl"
36109 else
36110 PERL_BINDINGS=""
36111 fi
36115 LCC_VERSION_MAJOR=`echo $PACKAGE_VERSION | cut -d'.' -f1`
36116 LCC_VERSION_MINOR=`echo $PACKAGE_VERSION | cut -d'.' -f2`
36117 LCC_VERSION_PATCH=`echo $PACKAGE_VERSION | cut -d'.' -f3`
36119 LCC_VERSION_EXTRA=`echo $PACKAGE_VERSION | cut -d'.' -f4-`
36121 LCC_VERSION_STRING="$LCC_VERSION_MAJOR.$LCC_VERSION_MINOR.$LCC_VERSION_PATCH"
36129 ac_config_files="$ac_config_files src/libcollectdclient/collectd/lcc_features.h"
36132 ac_config_files="$ac_config_files Makefile src/Makefile src/daemon/Makefile src/collectd.conf src/libcollectdclient/Makefile src/libcollectdclient/libcollectdclient.pc src/liboconfig/Makefile bindings/Makefile bindings/java/Makefile"
36134 cat >confcache <<\_ACEOF
36135 # This file is a shell script that caches the results of configure
36136 # tests run on this system so they can be shared between configure
36137 # scripts and configure runs, see configure's option --config-cache.
36138 # It is not useful on other systems. If it contains results you don't
36139 # want to keep, you may remove or edit it.
36140 #
36141 # config.status only pays attention to the cache file if you give it
36142 # the --recheck option to rerun configure.
36143 #
36144 # `ac_cv_env_foo' variables (set or unset) will be overridden when
36145 # loading this file, other *unset* `ac_cv_foo' will be assigned the
36146 # following values.
36148 _ACEOF
36150 # The following way of writing the cache mishandles newlines in values,
36151 # but we know of no workaround that is simple, portable, and efficient.
36152 # So, we kill variables containing newlines.
36153 # Ultrix sh set writes to stderr and can't be redirected directly,
36154 # and sets the high bit in the cache file unless we assign to the vars.
36155 (
36156 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
36157 eval ac_val=\$$ac_var
36158 case $ac_val in #(
36159 *${as_nl}*)
36160 case $ac_var in #(
36161 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
36162 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
36163 esac
36164 case $ac_var in #(
36165 _ | IFS | as_nl) ;; #(
36166 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
36167 *) { eval $ac_var=; unset $ac_var;} ;;
36168 esac ;;
36169 esac
36170 done
36172 (set) 2>&1 |
36173 case $as_nl`(ac_space=' '; set) 2>&1` in #(
36174 *${as_nl}ac_space=\ *)
36175 # `set' does not quote correctly, so add quotes: double-quote
36176 # substitution turns \\\\ into \\, and sed turns \\ into \.
36177 sed -n \
36178 "s/'/'\\\\''/g;
36179 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
36180 ;; #(
36181 *)
36182 # `set' quotes correctly as required by POSIX, so do not add quotes.
36183 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
36184 ;;
36185 esac |
36186 sort
36187 ) |
36188 sed '
36189 /^ac_cv_env_/b end
36190 t clear
36191 :clear
36192 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
36193 t end
36194 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
36195 :end' >>confcache
36196 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
36197 if test -w "$cache_file"; then
36198 if test "x$cache_file" != "x/dev/null"; then
36199 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
36200 $as_echo "$as_me: updating cache $cache_file" >&6;}
36201 if test ! -f "$cache_file" || test -h "$cache_file"; then
36202 cat confcache >"$cache_file"
36203 else
36204 case $cache_file in #(
36205 */* | ?:*)
36206 mv -f confcache "$cache_file"$$ &&
36207 mv -f "$cache_file"$$ "$cache_file" ;; #(
36208 *)
36209 mv -f confcache "$cache_file" ;;
36210 esac
36211 fi
36212 fi
36213 else
36214 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
36215 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
36216 fi
36217 fi
36218 rm -f confcache
36220 test "x$prefix" = xNONE && prefix=$ac_default_prefix
36221 # Let make expand exec_prefix.
36222 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
36224 DEFS=-DHAVE_CONFIG_H
36226 ac_libobjs=
36227 ac_ltlibobjs=
36228 U=
36229 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
36230 # 1. Remove the extension, and $U if already installed.
36231 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
36232 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
36233 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
36234 # will be set to the directory where LIBOBJS objects are built.
36235 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
36236 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
36237 done
36238 LIBOBJS=$ac_libobjs
36240 LTLIBOBJS=$ac_ltlibobjs
36243 if test -z "${INSTALL_LTDL_TRUE}" && test -z "${INSTALL_LTDL_FALSE}"; then
36244 as_fn_error $? "conditional \"INSTALL_LTDL\" was never defined.
36245 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36246 fi
36247 if test -z "${CONVENIENCE_LTDL_TRUE}" && test -z "${CONVENIENCE_LTDL_FALSE}"; then
36248 as_fn_error $? "conditional \"CONVENIENCE_LTDL\" was never defined.
36249 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36250 fi
36251 LT_CONFIG_H=src/config.h
36253 _ltdl_libobjs=
36254 _ltdl_ltlibobjs=
36255 if test -n "$_LT_LIBOBJS"; then
36256 # Remove the extension.
36257 _lt_sed_drop_objext='s/\.o$//;s/\.obj$//'
36258 for i in `for i in $_LT_LIBOBJS; do echo "$i"; done | sed "$_lt_sed_drop_objext" | sort -u`; do
36259 _ltdl_libobjs="$_ltdl_libobjs $lt_libobj_prefix$i.$ac_objext"
36260 _ltdl_ltlibobjs="$_ltdl_ltlibobjs $lt_libobj_prefix$i.lo"
36261 done
36262 fi
36263 ltdl_LIBOBJS=$_ltdl_libobjs
36265 ltdl_LTLIBOBJS=$_ltdl_ltlibobjs
36268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
36269 $as_echo_n "checking that generated files are newer than configure... " >&6; }
36270 if test -n "$am_sleep_pid"; then
36271 # Hide warnings about reused PIDs.
36272 wait $am_sleep_pid 2>/dev/null
36273 fi
36274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
36275 $as_echo "done" >&6; }
36276 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
36277 as_fn_error $? "conditional \"AMDEP\" was never defined.
36278 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36279 fi
36280 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
36281 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
36282 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36283 fi
36284 if test -n "$EXEEXT"; then
36285 am__EXEEXT_TRUE=
36286 am__EXEEXT_FALSE='#'
36287 else
36288 am__EXEEXT_TRUE='#'
36289 am__EXEEXT_FALSE=
36290 fi
36292 if test -z "${COMPILER_IS_GCC_TRUE}" && test -z "${COMPILER_IS_GCC_FALSE}"; then
36293 as_fn_error $? "conditional \"COMPILER_IS_GCC\" was never defined.
36294 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36295 fi
36296 if test -z "${HAVE_PROTOC_C_TRUE}" && test -z "${HAVE_PROTOC_C_FALSE}"; then
36297 as_fn_error $? "conditional \"HAVE_PROTOC_C\" was never defined.
36298 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36299 fi
36300 if test -z "${BUILD_LINUX_TRUE}" && test -z "${BUILD_LINUX_FALSE}"; then
36301 as_fn_error $? "conditional \"BUILD_LINUX\" was never defined.
36302 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36303 fi
36304 if test -z "${BUILD_SOLARIS_TRUE}" && test -z "${BUILD_SOLARIS_FALSE}"; then
36305 as_fn_error $? "conditional \"BUILD_SOLARIS\" was never defined.
36306 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36307 fi
36308 if test -z "${BUILD_DARWIN_TRUE}" && test -z "${BUILD_DARWIN_FALSE}"; then
36309 as_fn_error $? "conditional \"BUILD_DARWIN\" was never defined.
36310 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36311 fi
36312 if test -z "${BUILD_OPENBSD_TRUE}" && test -z "${BUILD_OPENBSD_FALSE}"; then
36313 as_fn_error $? "conditional \"BUILD_OPENBSD\" was never defined.
36314 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36315 fi
36316 if test -z "${BUILD_AIX_TRUE}" && test -z "${BUILD_AIX_FALSE}"; then
36317 as_fn_error $? "conditional \"BUILD_AIX\" was never defined.
36318 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36319 fi
36320 if test -z "${BUILD_FREEBSD_TRUE}" && test -z "${BUILD_FREEBSD_FALSE}"; then
36321 as_fn_error $? "conditional \"BUILD_FREEBSD\" was never defined.
36322 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36323 fi
36324 if test -z "${BUILD_FEATURE_STANDARDS_TRUE}" && test -z "${BUILD_FEATURE_STANDARDS_FALSE}"; then
36325 as_fn_error $? "conditional \"BUILD_FEATURE_STANDARDS\" was never defined.
36326 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36327 fi
36328 if test -z "${IP_VS_H_NEEDS_KERNEL_CFLAGS_TRUE}" && test -z "${IP_VS_H_NEEDS_KERNEL_CFLAGS_FALSE}"; then
36329 as_fn_error $? "conditional \"IP_VS_H_NEEDS_KERNEL_CFLAGS\" was never defined.
36330 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36331 fi
36332 if test -z "${BUILD_WITH_LIBSOCKET_TRUE}" && test -z "${BUILD_WITH_LIBSOCKET_FALSE}"; then
36333 as_fn_error $? "conditional \"BUILD_WITH_LIBSOCKET\" was never defined.
36334 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36335 fi
36336 if test -z "${BUILD_WITH_LIBRT_TRUE}" && test -z "${BUILD_WITH_LIBRT_FALSE}"; then
36337 as_fn_error $? "conditional \"BUILD_WITH_LIBRT\" was never defined.
36338 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36339 fi
36340 if test -z "${BUILD_WITH_LIBPOSIX4_TRUE}" && test -z "${BUILD_WITH_LIBPOSIX4_FALSE}"; then
36341 as_fn_error $? "conditional \"BUILD_WITH_LIBPOSIX4\" was never defined.
36342 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36343 fi
36344 if test -z "${BUILD_WITH_LIBRESOLV_TRUE}" && test -z "${BUILD_WITH_LIBRESOLV_FALSE}"; then
36345 as_fn_error $? "conditional \"BUILD_WITH_LIBRESOLV\" was never defined.
36346 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36347 fi
36348 if test -z "${BUILD_WITH_PERFSTAT_TRUE}" && test -z "${BUILD_WITH_PERFSTAT_FALSE}"; then
36349 as_fn_error $? "conditional \"BUILD_WITH_PERFSTAT\" was never defined.
36350 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36351 fi
36352 if test -z "${BUILD_WITH_LIBKSTAT_TRUE}" && test -z "${BUILD_WITH_LIBKSTAT_FALSE}"; then
36353 as_fn_error $? "conditional \"BUILD_WITH_LIBKSTAT\" was never defined.
36354 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36355 fi
36356 if test -z "${BUILD_WITH_LIBDEVINFO_TRUE}" && test -z "${BUILD_WITH_LIBDEVINFO_FALSE}"; then
36357 as_fn_error $? "conditional \"BUILD_WITH_LIBDEVINFO\" was never defined.
36358 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36359 fi
36360 if test -z "${BUILD_WITH_LIBIOKIT_TRUE}" && test -z "${BUILD_WITH_LIBIOKIT_FALSE}"; then
36361 as_fn_error $? "conditional \"BUILD_WITH_LIBIOKIT\" was never defined.
36362 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36363 fi
36364 if test -z "${BUILD_WITH_LIBKVM_GETPROCS_TRUE}" && test -z "${BUILD_WITH_LIBKVM_GETPROCS_FALSE}"; then
36365 as_fn_error $? "conditional \"BUILD_WITH_LIBKVM_GETPROCS\" was never defined.
36366 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36367 fi
36368 if test -z "${BUILD_WITH_LIBKVM_GETSWAPINFO_TRUE}" && test -z "${BUILD_WITH_LIBKVM_GETSWAPINFO_FALSE}"; then
36369 as_fn_error $? "conditional \"BUILD_WITH_LIBKVM_GETSWAPINFO\" was never defined.
36370 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36371 fi
36372 if test -z "${BUILD_WITH_LIBKVM_NLIST_TRUE}" && test -z "${BUILD_WITH_LIBKVM_NLIST_FALSE}"; then
36373 as_fn_error $? "conditional \"BUILD_WITH_LIBKVM_NLIST\" was never defined.
36374 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36375 fi
36376 if test -z "${BUILD_WITH_LIBKVM_OPENFILES_TRUE}" && test -z "${BUILD_WITH_LIBKVM_OPENFILES_FALSE}"; then
36377 as_fn_error $? "conditional \"BUILD_WITH_LIBKVM_OPENFILES\" was never defined.
36378 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36379 fi
36380 if test -z "${BUILD_WITH_LIBAQUAERO5_TRUE}" && test -z "${BUILD_WITH_LIBAQUAERO5_FALSE}"; then
36381 as_fn_error $? "conditional \"BUILD_WITH_LIBAQUAERO5\" was never defined.
36382 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36383 fi
36384 if test -z "${BUILD_WITH_LIBHIREDIS_TRUE}" && test -z "${BUILD_WITH_LIBHIREDIS_FALSE}"; then
36385 as_fn_error $? "conditional \"BUILD_WITH_LIBHIREDIS\" was never defined.
36386 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36387 fi
36388 if test -z "${BUILD_WITH_LIBCURL_TRUE}" && test -z "${BUILD_WITH_LIBCURL_FALSE}"; then
36389 as_fn_error $? "conditional \"BUILD_WITH_LIBCURL\" was never defined.
36390 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36391 fi
36392 if test -z "${BUILD_WITH_LIBDBI_TRUE}" && test -z "${BUILD_WITH_LIBDBI_FALSE}"; then
36393 as_fn_error $? "conditional \"BUILD_WITH_LIBDBI\" was never defined.
36394 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36395 fi
36396 if test -z "${BUILD_WITH_LIBESMTP_TRUE}" && test -z "${BUILD_WITH_LIBESMTP_FALSE}"; then
36397 as_fn_error $? "conditional \"BUILD_WITH_LIBESMTP\" was never defined.
36398 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36399 fi
36400 if test -z "${BUILD_WITH_LIBGANGLIA_TRUE}" && test -z "${BUILD_WITH_LIBGANGLIA_FALSE}"; then
36401 as_fn_error $? "conditional \"BUILD_WITH_LIBGANGLIA\" was never defined.
36402 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36403 fi
36404 if test -z "${BUILD_WITH_LIBGCRYPT_TRUE}" && test -z "${BUILD_WITH_LIBGCRYPT_FALSE}"; then
36405 as_fn_error $? "conditional \"BUILD_WITH_LIBGCRYPT\" was never defined.
36406 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36407 fi
36408 if test -z "${BUILD_WITH_LIBIPTC_TRUE}" && test -z "${BUILD_WITH_LIBIPTC_FALSE}"; then
36409 as_fn_error $? "conditional \"BUILD_WITH_LIBIPTC\" was never defined.
36410 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36411 fi
36412 if test -z "${BUILD_WITH_JAVA_TRUE}" && test -z "${BUILD_WITH_JAVA_FALSE}"; then
36413 as_fn_error $? "conditional \"BUILD_WITH_JAVA\" was never defined.
36414 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36415 fi
36416 if test -z "${BUILD_WITH_LIBLDAP_TRUE}" && test -z "${BUILD_WITH_LIBLDAP_FALSE}"; then
36417 as_fn_error $? "conditional \"BUILD_WITH_LIBLDAP\" was never defined.
36418 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36419 fi
36420 if test -z "${BUILD_WITH_LIBLVM2APP_TRUE}" && test -z "${BUILD_WITH_LIBLVM2APP_FALSE}"; then
36421 as_fn_error $? "conditional \"BUILD_WITH_LIBLVM2APP\" was never defined.
36422 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36423 fi
36424 if test -z "${BUILD_WITH_LIBMEMCACHED_TRUE}" && test -z "${BUILD_WITH_LIBMEMCACHED_FALSE}"; then
36425 as_fn_error $? "conditional \"BUILD_WITH_LIBMEMCACHED\" was never defined.
36426 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36427 fi
36428 if test -z "${BUILD_WITH_LIBMONGOC_TRUE}" && test -z "${BUILD_WITH_LIBMONGOC_FALSE}"; then
36429 as_fn_error $? "conditional \"BUILD_WITH_LIBMONGOC\" was never defined.
36430 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36431 fi
36432 if test -z "${BUILD_WITH_LIBMYSQL_TRUE}" && test -z "${BUILD_WITH_LIBMYSQL_FALSE}"; then
36433 as_fn_error $? "conditional \"BUILD_WITH_LIBMYSQL\" was never defined.
36434 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36435 fi
36436 if test -z "${BUILD_WITH_LIBMNL_TRUE}" && test -z "${BUILD_WITH_LIBMNL_FALSE}"; then
36437 as_fn_error $? "conditional \"BUILD_WITH_LIBMNL\" was never defined.
36438 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36439 fi
36440 if test -z "${BUILD_WITH_LIBNETAPP_TRUE}" && test -z "${BUILD_WITH_LIBNETAPP_FALSE}"; then
36441 as_fn_error $? "conditional \"BUILD_WITH_LIBNETAPP\" was never defined.
36442 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36443 fi
36444 if test -z "${BUILD_WITH_LIBNETSNMP_TRUE}" && test -z "${BUILD_WITH_LIBNETSNMP_FALSE}"; then
36445 as_fn_error $? "conditional \"BUILD_WITH_LIBNETSNMP\" was never defined.
36446 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36447 fi
36448 if test -z "${BUILD_WITH_OWN_LIBOCONFIG_TRUE}" && test -z "${BUILD_WITH_OWN_LIBOCONFIG_FALSE}"; then
36449 as_fn_error $? "conditional \"BUILD_WITH_OWN_LIBOCONFIG\" was never defined.
36450 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36451 fi
36452 if test -z "${BUILD_WITH_LIBOPING_TRUE}" && test -z "${BUILD_WITH_LIBOPING_FALSE}"; then
36453 as_fn_error $? "conditional \"BUILD_WITH_LIBOPING\" was never defined.
36454 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36455 fi
36456 if test -z "${BUILD_WITH_LIBPCAP_TRUE}" && test -z "${BUILD_WITH_LIBPCAP_FALSE}"; then
36457 as_fn_error $? "conditional \"BUILD_WITH_LIBPCAP\" was never defined.
36458 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36459 fi
36460 if test -z "${BUILD_WITH_LIBPERL_TRUE}" && test -z "${BUILD_WITH_LIBPERL_FALSE}"; then
36461 as_fn_error $? "conditional \"BUILD_WITH_LIBPERL\" was never defined.
36462 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36463 fi
36464 if test -z "${HAVE_BROKEN_PERL_LOAD_MODULE_TRUE}" && test -z "${HAVE_BROKEN_PERL_LOAD_MODULE_FALSE}"; then
36465 as_fn_error $? "conditional \"HAVE_BROKEN_PERL_LOAD_MODULE\" was never defined.
36466 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36467 fi
36468 if test -z "${BUILD_WITH_LIBPQ_TRUE}" && test -z "${BUILD_WITH_LIBPQ_FALSE}"; then
36469 as_fn_error $? "conditional \"BUILD_WITH_LIBPQ\" was never defined.
36470 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36471 fi
36472 if test -z "${BUILD_WITH_LIBPTHREAD_TRUE}" && test -z "${BUILD_WITH_LIBPTHREAD_FALSE}"; then
36473 as_fn_error $? "conditional \"BUILD_WITH_LIBPTHREAD\" was never defined.
36474 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36475 fi
36476 if test -z "${BUILD_WITH_LIBRABBITMQ_TRUE}" && test -z "${BUILD_WITH_LIBRABBITMQ_FALSE}"; then
36477 as_fn_error $? "conditional \"BUILD_WITH_LIBRABBITMQ\" was never defined.
36478 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36479 fi
36480 if test -z "${BUILD_WITH_LIBRDKAFKA_TRUE}" && test -z "${BUILD_WITH_LIBRDKAFKA_FALSE}"; then
36481 as_fn_error $? "conditional \"BUILD_WITH_LIBRDKAFKA\" was never defined.
36482 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36483 fi
36484 if test -z "${BUILD_WITH_LIBROUTEROS_TRUE}" && test -z "${BUILD_WITH_LIBROUTEROS_FALSE}"; then
36485 as_fn_error $? "conditional \"BUILD_WITH_LIBROUTEROS\" was never defined.
36486 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36487 fi
36488 if test -z "${BUILD_WITH_LM_SENSORS_TRUE}" && test -z "${BUILD_WITH_LM_SENSORS_FALSE}"; then
36489 as_fn_error $? "conditional \"BUILD_WITH_LM_SENSORS\" was never defined.
36490 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36491 fi
36492 if test -z "${BUILD_WITH_LIBSIGROK_TRUE}" && test -z "${BUILD_WITH_LIBSIGROK_FALSE}"; then
36493 as_fn_error $? "conditional \"BUILD_WITH_LIBSIGROK\" was never defined.
36494 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36495 fi
36496 if test -z "${BUILD_WITH_LIBSTATGRAB_TRUE}" && test -z "${BUILD_WITH_LIBSTATGRAB_FALSE}"; then
36497 as_fn_error $? "conditional \"BUILD_WITH_LIBSTATGRAB\" was never defined.
36498 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36499 fi
36500 if test -z "${BUILD_WITH_LIBTOKYOTYRANT_TRUE}" && test -z "${BUILD_WITH_LIBTOKYOTYRANT_FALSE}"; then
36501 as_fn_error $? "conditional \"BUILD_WITH_LIBTOKYOTYRANT\" was never defined.
36502 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36503 fi
36504 if test -z "${BUILD_WITH_LIBUDEV_TRUE}" && test -z "${BUILD_WITH_LIBUDEV_FALSE}"; then
36505 as_fn_error $? "conditional \"BUILD_WITH_LIBUDEV\" was never defined.
36506 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36507 fi
36508 if test -z "${BUILD_WITH_LIBXMMS_TRUE}" && test -z "${BUILD_WITH_LIBXMMS_FALSE}"; then
36509 as_fn_error $? "conditional \"BUILD_WITH_LIBXMMS\" was never defined.
36510 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36511 fi
36512 if test -z "${BUILD_WITH_LIBYAJL_TRUE}" && test -z "${BUILD_WITH_LIBYAJL_FALSE}"; then
36513 as_fn_error $? "conditional \"BUILD_WITH_LIBYAJL\" was never defined.
36514 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36515 fi
36516 if test -z "${BUILD_WITH_LIBATASMART_TRUE}" && test -z "${BUILD_WITH_LIBATASMART_FALSE}"; then
36517 as_fn_error $? "conditional \"BUILD_WITH_LIBATASMART\" was never defined.
36518 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36519 fi
36520 if test -z "${BUILD_FEATURE_DEBUG_TRUE}" && test -z "${BUILD_FEATURE_DEBUG_FALSE}"; then
36521 as_fn_error $? "conditional \"BUILD_FEATURE_DEBUG\" was never defined.
36522 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36523 fi
36524 if test -z "${BUILD_FEATURE_DAEMON_TRUE}" && test -z "${BUILD_FEATURE_DAEMON_FALSE}"; then
36525 as_fn_error $? "conditional \"BUILD_FEATURE_DAEMON\" was never defined.
36526 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36527 fi
36528 if test -z "${BUILD_FEATURE_GETIFADDRS_TRUE}" && test -z "${BUILD_FEATURE_GETIFADDRS_FALSE}"; then
36529 as_fn_error $? "conditional \"BUILD_FEATURE_GETIFADDRS\" was never defined.
36530 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36531 fi
36532 if test -z "${BUILD_PLUGIN_AGGREGATION_TRUE}" && test -z "${BUILD_PLUGIN_AGGREGATION_FALSE}"; then
36533 as_fn_error $? "conditional \"BUILD_PLUGIN_AGGREGATION\" was never defined.
36534 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36535 fi
36536 if test -z "${BUILD_PLUGIN_AMQP_TRUE}" && test -z "${BUILD_PLUGIN_AMQP_FALSE}"; then
36537 as_fn_error $? "conditional \"BUILD_PLUGIN_AMQP\" was never defined.
36538 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36539 fi
36540 if test -z "${BUILD_PLUGIN_APACHE_TRUE}" && test -z "${BUILD_PLUGIN_APACHE_FALSE}"; then
36541 as_fn_error $? "conditional \"BUILD_PLUGIN_APACHE\" was never defined.
36542 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36543 fi
36544 if test -z "${BUILD_PLUGIN_APCUPS_TRUE}" && test -z "${BUILD_PLUGIN_APCUPS_FALSE}"; then
36545 as_fn_error $? "conditional \"BUILD_PLUGIN_APCUPS\" was never defined.
36546 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36547 fi
36548 if test -z "${BUILD_PLUGIN_APPLE_SENSORS_TRUE}" && test -z "${BUILD_PLUGIN_APPLE_SENSORS_FALSE}"; then
36549 as_fn_error $? "conditional \"BUILD_PLUGIN_APPLE_SENSORS\" was never defined.
36550 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36551 fi
36552 if test -z "${BUILD_PLUGIN_AQUAERO_TRUE}" && test -z "${BUILD_PLUGIN_AQUAERO_FALSE}"; then
36553 as_fn_error $? "conditional \"BUILD_PLUGIN_AQUAERO\" was never defined.
36554 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36555 fi
36556 if test -z "${BUILD_PLUGIN_ASCENT_TRUE}" && test -z "${BUILD_PLUGIN_ASCENT_FALSE}"; then
36557 as_fn_error $? "conditional \"BUILD_PLUGIN_ASCENT\" was never defined.
36558 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36559 fi
36560 if test -z "${BUILD_PLUGIN_BAROMETER_TRUE}" && test -z "${BUILD_PLUGIN_BAROMETER_FALSE}"; then
36561 as_fn_error $? "conditional \"BUILD_PLUGIN_BAROMETER\" was never defined.
36562 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36563 fi
36564 if test -z "${BUILD_PLUGIN_BATTERY_TRUE}" && test -z "${BUILD_PLUGIN_BATTERY_FALSE}"; then
36565 as_fn_error $? "conditional \"BUILD_PLUGIN_BATTERY\" was never defined.
36566 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36567 fi
36568 if test -z "${BUILD_PLUGIN_BIND_TRUE}" && test -z "${BUILD_PLUGIN_BIND_FALSE}"; then
36569 as_fn_error $? "conditional \"BUILD_PLUGIN_BIND\" was never defined.
36570 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36571 fi
36572 if test -z "${BUILD_PLUGIN_CEPH_TRUE}" && test -z "${BUILD_PLUGIN_CEPH_FALSE}"; then
36573 as_fn_error $? "conditional \"BUILD_PLUGIN_CEPH\" was never defined.
36574 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36575 fi
36576 if test -z "${BUILD_PLUGIN_CONNTRACK_TRUE}" && test -z "${BUILD_PLUGIN_CONNTRACK_FALSE}"; then
36577 as_fn_error $? "conditional \"BUILD_PLUGIN_CONNTRACK\" was never defined.
36578 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36579 fi
36580 if test -z "${BUILD_PLUGIN_CONTEXTSWITCH_TRUE}" && test -z "${BUILD_PLUGIN_CONTEXTSWITCH_FALSE}"; then
36581 as_fn_error $? "conditional \"BUILD_PLUGIN_CONTEXTSWITCH\" was never defined.
36582 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36583 fi
36584 if test -z "${BUILD_PLUGIN_CPUFREQ_TRUE}" && test -z "${BUILD_PLUGIN_CPUFREQ_FALSE}"; then
36585 as_fn_error $? "conditional \"BUILD_PLUGIN_CPUFREQ\" was never defined.
36586 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36587 fi
36588 if test -z "${BUILD_PLUGIN_CPU_TRUE}" && test -z "${BUILD_PLUGIN_CPU_FALSE}"; then
36589 as_fn_error $? "conditional \"BUILD_PLUGIN_CPU\" was never defined.
36590 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36591 fi
36592 if test -z "${BUILD_PLUGIN_CSV_TRUE}" && test -z "${BUILD_PLUGIN_CSV_FALSE}"; then
36593 as_fn_error $? "conditional \"BUILD_PLUGIN_CSV\" was never defined.
36594 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36595 fi
36596 if test -z "${BUILD_PLUGIN_CURL_TRUE}" && test -z "${BUILD_PLUGIN_CURL_FALSE}"; then
36597 as_fn_error $? "conditional \"BUILD_PLUGIN_CURL\" was never defined.
36598 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36599 fi
36600 if test -z "${BUILD_PLUGIN_CURL_JSON_TRUE}" && test -z "${BUILD_PLUGIN_CURL_JSON_FALSE}"; then
36601 as_fn_error $? "conditional \"BUILD_PLUGIN_CURL_JSON\" was never defined.
36602 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36603 fi
36604 if test -z "${BUILD_PLUGIN_CURL_XML_TRUE}" && test -z "${BUILD_PLUGIN_CURL_XML_FALSE}"; then
36605 as_fn_error $? "conditional \"BUILD_PLUGIN_CURL_XML\" was never defined.
36606 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36607 fi
36608 if test -z "${BUILD_PLUGIN_CGROUPS_TRUE}" && test -z "${BUILD_PLUGIN_CGROUPS_FALSE}"; then
36609 as_fn_error $? "conditional \"BUILD_PLUGIN_CGROUPS\" was never defined.
36610 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36611 fi
36612 if test -z "${BUILD_PLUGIN_DBI_TRUE}" && test -z "${BUILD_PLUGIN_DBI_FALSE}"; then
36613 as_fn_error $? "conditional \"BUILD_PLUGIN_DBI\" was never defined.
36614 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36615 fi
36616 if test -z "${BUILD_PLUGIN_DF_TRUE}" && test -z "${BUILD_PLUGIN_DF_FALSE}"; then
36617 as_fn_error $? "conditional \"BUILD_PLUGIN_DF\" was never defined.
36618 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36619 fi
36620 if test -z "${BUILD_PLUGIN_DISK_TRUE}" && test -z "${BUILD_PLUGIN_DISK_FALSE}"; then
36621 as_fn_error $? "conditional \"BUILD_PLUGIN_DISK\" was never defined.
36622 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36623 fi
36624 if test -z "${BUILD_PLUGIN_DRBD_TRUE}" && test -z "${BUILD_PLUGIN_DRBD_FALSE}"; then
36625 as_fn_error $? "conditional \"BUILD_PLUGIN_DRBD\" was never defined.
36626 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36627 fi
36628 if test -z "${BUILD_PLUGIN_DNS_TRUE}" && test -z "${BUILD_PLUGIN_DNS_FALSE}"; then
36629 as_fn_error $? "conditional \"BUILD_PLUGIN_DNS\" was never defined.
36630 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36631 fi
36632 if test -z "${BUILD_PLUGIN_EMAIL_TRUE}" && test -z "${BUILD_PLUGIN_EMAIL_FALSE}"; then
36633 as_fn_error $? "conditional \"BUILD_PLUGIN_EMAIL\" was never defined.
36634 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36635 fi
36636 if test -z "${BUILD_PLUGIN_ENTROPY_TRUE}" && test -z "${BUILD_PLUGIN_ENTROPY_FALSE}"; then
36637 as_fn_error $? "conditional \"BUILD_PLUGIN_ENTROPY\" was never defined.
36638 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36639 fi
36640 if test -z "${BUILD_PLUGIN_ETHSTAT_TRUE}" && test -z "${BUILD_PLUGIN_ETHSTAT_FALSE}"; then
36641 as_fn_error $? "conditional \"BUILD_PLUGIN_ETHSTAT\" was never defined.
36642 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36643 fi
36644 if test -z "${BUILD_PLUGIN_EXEC_TRUE}" && test -z "${BUILD_PLUGIN_EXEC_FALSE}"; then
36645 as_fn_error $? "conditional \"BUILD_PLUGIN_EXEC\" was never defined.
36646 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36647 fi
36648 if test -z "${BUILD_PLUGIN_FHCOUNT_TRUE}" && test -z "${BUILD_PLUGIN_FHCOUNT_FALSE}"; then
36649 as_fn_error $? "conditional \"BUILD_PLUGIN_FHCOUNT\" was never defined.
36650 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36651 fi
36652 if test -z "${BUILD_PLUGIN_FILECOUNT_TRUE}" && test -z "${BUILD_PLUGIN_FILECOUNT_FALSE}"; then
36653 as_fn_error $? "conditional \"BUILD_PLUGIN_FILECOUNT\" was never defined.
36654 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36655 fi
36656 if test -z "${BUILD_PLUGIN_FSCACHE_TRUE}" && test -z "${BUILD_PLUGIN_FSCACHE_FALSE}"; then
36657 as_fn_error $? "conditional \"BUILD_PLUGIN_FSCACHE\" was never defined.
36658 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36659 fi
36660 if test -z "${BUILD_PLUGIN_GMOND_TRUE}" && test -z "${BUILD_PLUGIN_GMOND_FALSE}"; then
36661 as_fn_error $? "conditional \"BUILD_PLUGIN_GMOND\" was never defined.
36662 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36663 fi
36664 if test -z "${BUILD_PLUGIN_HDDTEMP_TRUE}" && test -z "${BUILD_PLUGIN_HDDTEMP_FALSE}"; then
36665 as_fn_error $? "conditional \"BUILD_PLUGIN_HDDTEMP\" was never defined.
36666 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36667 fi
36668 if test -z "${BUILD_PLUGIN_INTERFACE_TRUE}" && test -z "${BUILD_PLUGIN_INTERFACE_FALSE}"; then
36669 as_fn_error $? "conditional \"BUILD_PLUGIN_INTERFACE\" was never defined.
36670 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36671 fi
36672 if test -z "${BUILD_PLUGIN_IPC_TRUE}" && test -z "${BUILD_PLUGIN_IPC_FALSE}"; then
36673 as_fn_error $? "conditional \"BUILD_PLUGIN_IPC\" was never defined.
36674 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36675 fi
36676 if test -z "${BUILD_PLUGIN_IPMI_TRUE}" && test -z "${BUILD_PLUGIN_IPMI_FALSE}"; then
36677 as_fn_error $? "conditional \"BUILD_PLUGIN_IPMI\" was never defined.
36678 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36679 fi
36680 if test -z "${BUILD_PLUGIN_IPTABLES_TRUE}" && test -z "${BUILD_PLUGIN_IPTABLES_FALSE}"; then
36681 as_fn_error $? "conditional \"BUILD_PLUGIN_IPTABLES\" was never defined.
36682 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36683 fi
36684 if test -z "${BUILD_PLUGIN_IPVS_TRUE}" && test -z "${BUILD_PLUGIN_IPVS_FALSE}"; then
36685 as_fn_error $? "conditional \"BUILD_PLUGIN_IPVS\" was never defined.
36686 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36687 fi
36688 if test -z "${BUILD_PLUGIN_IRQ_TRUE}" && test -z "${BUILD_PLUGIN_IRQ_FALSE}"; then
36689 as_fn_error $? "conditional \"BUILD_PLUGIN_IRQ\" was never defined.
36690 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36691 fi
36692 if test -z "${BUILD_PLUGIN_JAVA_TRUE}" && test -z "${BUILD_PLUGIN_JAVA_FALSE}"; then
36693 as_fn_error $? "conditional \"BUILD_PLUGIN_JAVA\" was never defined.
36694 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36695 fi
36696 if test -z "${BUILD_PLUGIN_LOAD_TRUE}" && test -z "${BUILD_PLUGIN_LOAD_FALSE}"; then
36697 as_fn_error $? "conditional \"BUILD_PLUGIN_LOAD\" was never defined.
36698 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36699 fi
36700 if test -z "${BUILD_PLUGIN_LOGFILE_TRUE}" && test -z "${BUILD_PLUGIN_LOGFILE_FALSE}"; then
36701 as_fn_error $? "conditional \"BUILD_PLUGIN_LOGFILE\" was never defined.
36702 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36703 fi
36704 if test -z "${BUILD_PLUGIN_LOG_LOGSTASH_TRUE}" && test -z "${BUILD_PLUGIN_LOG_LOGSTASH_FALSE}"; then
36705 as_fn_error $? "conditional \"BUILD_PLUGIN_LOG_LOGSTASH\" was never defined.
36706 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36707 fi
36708 if test -z "${BUILD_PLUGIN_LPAR_TRUE}" && test -z "${BUILD_PLUGIN_LPAR_FALSE}"; then
36709 as_fn_error $? "conditional \"BUILD_PLUGIN_LPAR\" was never defined.
36710 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36711 fi
36712 if test -z "${BUILD_PLUGIN_LVM_TRUE}" && test -z "${BUILD_PLUGIN_LVM_FALSE}"; then
36713 as_fn_error $? "conditional \"BUILD_PLUGIN_LVM\" was never defined.
36714 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36715 fi
36716 if test -z "${BUILD_PLUGIN_MADWIFI_TRUE}" && test -z "${BUILD_PLUGIN_MADWIFI_FALSE}"; then
36717 as_fn_error $? "conditional \"BUILD_PLUGIN_MADWIFI\" was never defined.
36718 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36719 fi
36720 if test -z "${BUILD_PLUGIN_MATCH_EMPTY_COUNTER_TRUE}" && test -z "${BUILD_PLUGIN_MATCH_EMPTY_COUNTER_FALSE}"; then
36721 as_fn_error $? "conditional \"BUILD_PLUGIN_MATCH_EMPTY_COUNTER\" was never defined.
36722 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36723 fi
36724 if test -z "${BUILD_PLUGIN_MATCH_HASHED_TRUE}" && test -z "${BUILD_PLUGIN_MATCH_HASHED_FALSE}"; then
36725 as_fn_error $? "conditional \"BUILD_PLUGIN_MATCH_HASHED\" was never defined.
36726 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36727 fi
36728 if test -z "${BUILD_PLUGIN_MATCH_REGEX_TRUE}" && test -z "${BUILD_PLUGIN_MATCH_REGEX_FALSE}"; then
36729 as_fn_error $? "conditional \"BUILD_PLUGIN_MATCH_REGEX\" was never defined.
36730 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36731 fi
36732 if test -z "${BUILD_PLUGIN_MATCH_TIMEDIFF_TRUE}" && test -z "${BUILD_PLUGIN_MATCH_TIMEDIFF_FALSE}"; then
36733 as_fn_error $? "conditional \"BUILD_PLUGIN_MATCH_TIMEDIFF\" was never defined.
36734 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36735 fi
36736 if test -z "${BUILD_PLUGIN_MATCH_VALUE_TRUE}" && test -z "${BUILD_PLUGIN_MATCH_VALUE_FALSE}"; then
36737 as_fn_error $? "conditional \"BUILD_PLUGIN_MATCH_VALUE\" was never defined.
36738 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36739 fi
36740 if test -z "${BUILD_PLUGIN_MBMON_TRUE}" && test -z "${BUILD_PLUGIN_MBMON_FALSE}"; then
36741 as_fn_error $? "conditional \"BUILD_PLUGIN_MBMON\" was never defined.
36742 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36743 fi
36744 if test -z "${BUILD_PLUGIN_MD_TRUE}" && test -z "${BUILD_PLUGIN_MD_FALSE}"; then
36745 as_fn_error $? "conditional \"BUILD_PLUGIN_MD\" was never defined.
36746 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36747 fi
36748 if test -z "${BUILD_PLUGIN_MEMCACHEC_TRUE}" && test -z "${BUILD_PLUGIN_MEMCACHEC_FALSE}"; then
36749 as_fn_error $? "conditional \"BUILD_PLUGIN_MEMCACHEC\" was never defined.
36750 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36751 fi
36752 if test -z "${BUILD_PLUGIN_MEMCACHED_TRUE}" && test -z "${BUILD_PLUGIN_MEMCACHED_FALSE}"; then
36753 as_fn_error $? "conditional \"BUILD_PLUGIN_MEMCACHED\" was never defined.
36754 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36755 fi
36756 if test -z "${BUILD_PLUGIN_MEMORY_TRUE}" && test -z "${BUILD_PLUGIN_MEMORY_FALSE}"; then
36757 as_fn_error $? "conditional \"BUILD_PLUGIN_MEMORY\" was never defined.
36758 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36759 fi
36760 if test -z "${BUILD_PLUGIN_MIC_TRUE}" && test -z "${BUILD_PLUGIN_MIC_FALSE}"; then
36761 as_fn_error $? "conditional \"BUILD_PLUGIN_MIC\" was never defined.
36762 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36763 fi
36764 if test -z "${BUILD_PLUGIN_MODBUS_TRUE}" && test -z "${BUILD_PLUGIN_MODBUS_FALSE}"; then
36765 as_fn_error $? "conditional \"BUILD_PLUGIN_MODBUS\" was never defined.
36766 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36767 fi
36768 if test -z "${BUILD_PLUGIN_MULTIMETER_TRUE}" && test -z "${BUILD_PLUGIN_MULTIMETER_FALSE}"; then
36769 as_fn_error $? "conditional \"BUILD_PLUGIN_MULTIMETER\" was never defined.
36770 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36771 fi
36772 if test -z "${BUILD_PLUGIN_MYSQL_TRUE}" && test -z "${BUILD_PLUGIN_MYSQL_FALSE}"; then
36773 as_fn_error $? "conditional \"BUILD_PLUGIN_MYSQL\" was never defined.
36774 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36775 fi
36776 if test -z "${BUILD_PLUGIN_NETAPP_TRUE}" && test -z "${BUILD_PLUGIN_NETAPP_FALSE}"; then
36777 as_fn_error $? "conditional \"BUILD_PLUGIN_NETAPP\" was never defined.
36778 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36779 fi
36780 if test -z "${BUILD_PLUGIN_NETLINK_TRUE}" && test -z "${BUILD_PLUGIN_NETLINK_FALSE}"; then
36781 as_fn_error $? "conditional \"BUILD_PLUGIN_NETLINK\" was never defined.
36782 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36783 fi
36784 if test -z "${BUILD_PLUGIN_NETWORK_TRUE}" && test -z "${BUILD_PLUGIN_NETWORK_FALSE}"; then
36785 as_fn_error $? "conditional \"BUILD_PLUGIN_NETWORK\" was never defined.
36786 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36787 fi
36788 if test -z "${BUILD_PLUGIN_NFS_TRUE}" && test -z "${BUILD_PLUGIN_NFS_FALSE}"; then
36789 as_fn_error $? "conditional \"BUILD_PLUGIN_NFS\" was never defined.
36790 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36791 fi
36792 if test -z "${BUILD_PLUGIN_NGINX_TRUE}" && test -z "${BUILD_PLUGIN_NGINX_FALSE}"; then
36793 as_fn_error $? "conditional \"BUILD_PLUGIN_NGINX\" was never defined.
36794 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36795 fi
36796 if test -z "${BUILD_PLUGIN_NOTIFY_DESKTOP_TRUE}" && test -z "${BUILD_PLUGIN_NOTIFY_DESKTOP_FALSE}"; then
36797 as_fn_error $? "conditional \"BUILD_PLUGIN_NOTIFY_DESKTOP\" was never defined.
36798 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36799 fi
36800 if test -z "${BUILD_PLUGIN_NOTIFY_EMAIL_TRUE}" && test -z "${BUILD_PLUGIN_NOTIFY_EMAIL_FALSE}"; then
36801 as_fn_error $? "conditional \"BUILD_PLUGIN_NOTIFY_EMAIL\" was never defined.
36802 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36803 fi
36804 if test -z "${BUILD_PLUGIN_NTPD_TRUE}" && test -z "${BUILD_PLUGIN_NTPD_FALSE}"; then
36805 as_fn_error $? "conditional \"BUILD_PLUGIN_NTPD\" was never defined.
36806 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36807 fi
36808 if test -z "${BUILD_PLUGIN_NUMA_TRUE}" && test -z "${BUILD_PLUGIN_NUMA_FALSE}"; then
36809 as_fn_error $? "conditional \"BUILD_PLUGIN_NUMA\" was never defined.
36810 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36811 fi
36812 if test -z "${BUILD_PLUGIN_NUT_TRUE}" && test -z "${BUILD_PLUGIN_NUT_FALSE}"; then
36813 as_fn_error $? "conditional \"BUILD_PLUGIN_NUT\" was never defined.
36814 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36815 fi
36816 if test -z "${BUILD_PLUGIN_OLSRD_TRUE}" && test -z "${BUILD_PLUGIN_OLSRD_FALSE}"; then
36817 as_fn_error $? "conditional \"BUILD_PLUGIN_OLSRD\" was never defined.
36818 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36819 fi
36820 if test -z "${BUILD_PLUGIN_ONEWIRE_TRUE}" && test -z "${BUILD_PLUGIN_ONEWIRE_FALSE}"; then
36821 as_fn_error $? "conditional \"BUILD_PLUGIN_ONEWIRE\" was never defined.
36822 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36823 fi
36824 if test -z "${BUILD_PLUGIN_OPENLDAP_TRUE}" && test -z "${BUILD_PLUGIN_OPENLDAP_FALSE}"; then
36825 as_fn_error $? "conditional \"BUILD_PLUGIN_OPENLDAP\" was never defined.
36826 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36827 fi
36828 if test -z "${BUILD_PLUGIN_OPENVPN_TRUE}" && test -z "${BUILD_PLUGIN_OPENVPN_FALSE}"; then
36829 as_fn_error $? "conditional \"BUILD_PLUGIN_OPENVPN\" was never defined.
36830 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36831 fi
36832 if test -z "${BUILD_PLUGIN_ORACLE_TRUE}" && test -z "${BUILD_PLUGIN_ORACLE_FALSE}"; then
36833 as_fn_error $? "conditional \"BUILD_PLUGIN_ORACLE\" was never defined.
36834 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36835 fi
36836 if test -z "${BUILD_PLUGIN_PERL_TRUE}" && test -z "${BUILD_PLUGIN_PERL_FALSE}"; then
36837 as_fn_error $? "conditional \"BUILD_PLUGIN_PERL\" was never defined.
36838 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36839 fi
36840 if test -z "${BUILD_PLUGIN_PF_TRUE}" && test -z "${BUILD_PLUGIN_PF_FALSE}"; then
36841 as_fn_error $? "conditional \"BUILD_PLUGIN_PF\" was never defined.
36842 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36843 fi
36844 if test -z "${BUILD_PLUGIN_PINBA_TRUE}" && test -z "${BUILD_PLUGIN_PINBA_FALSE}"; then
36845 as_fn_error $? "conditional \"BUILD_PLUGIN_PINBA\" was never defined.
36846 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36847 fi
36848 if test -z "${BUILD_PLUGIN_PING_TRUE}" && test -z "${BUILD_PLUGIN_PING_FALSE}"; then
36849 as_fn_error $? "conditional \"BUILD_PLUGIN_PING\" was never defined.
36850 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36851 fi
36852 if test -z "${BUILD_PLUGIN_POSTGRESQL_TRUE}" && test -z "${BUILD_PLUGIN_POSTGRESQL_FALSE}"; then
36853 as_fn_error $? "conditional \"BUILD_PLUGIN_POSTGRESQL\" was never defined.
36854 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36855 fi
36856 if test -z "${BUILD_PLUGIN_POWERDNS_TRUE}" && test -z "${BUILD_PLUGIN_POWERDNS_FALSE}"; then
36857 as_fn_error $? "conditional \"BUILD_PLUGIN_POWERDNS\" was never defined.
36858 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36859 fi
36860 if test -z "${BUILD_PLUGIN_PROCESSES_TRUE}" && test -z "${BUILD_PLUGIN_PROCESSES_FALSE}"; then
36861 as_fn_error $? "conditional \"BUILD_PLUGIN_PROCESSES\" was never defined.
36862 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36863 fi
36864 if test -z "${BUILD_PLUGIN_PROTOCOLS_TRUE}" && test -z "${BUILD_PLUGIN_PROTOCOLS_FALSE}"; then
36865 as_fn_error $? "conditional \"BUILD_PLUGIN_PROTOCOLS\" was never defined.
36866 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36867 fi
36868 if test -z "${BUILD_PLUGIN_PYTHON_TRUE}" && test -z "${BUILD_PLUGIN_PYTHON_FALSE}"; then
36869 as_fn_error $? "conditional \"BUILD_PLUGIN_PYTHON\" was never defined.
36870 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36871 fi
36872 if test -z "${BUILD_PLUGIN_REDIS_TRUE}" && test -z "${BUILD_PLUGIN_REDIS_FALSE}"; then
36873 as_fn_error $? "conditional \"BUILD_PLUGIN_REDIS\" was never defined.
36874 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36875 fi
36876 if test -z "${BUILD_PLUGIN_ROUTEROS_TRUE}" && test -z "${BUILD_PLUGIN_ROUTEROS_FALSE}"; then
36877 as_fn_error $? "conditional \"BUILD_PLUGIN_ROUTEROS\" was never defined.
36878 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36879 fi
36880 if test -z "${BUILD_PLUGIN_RRDCACHED_TRUE}" && test -z "${BUILD_PLUGIN_RRDCACHED_FALSE}"; then
36881 as_fn_error $? "conditional \"BUILD_PLUGIN_RRDCACHED\" was never defined.
36882 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36883 fi
36884 if test -z "${BUILD_PLUGIN_RRDTOOL_TRUE}" && test -z "${BUILD_PLUGIN_RRDTOOL_FALSE}"; then
36885 as_fn_error $? "conditional \"BUILD_PLUGIN_RRDTOOL\" was never defined.
36886 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36887 fi
36888 if test -z "${BUILD_PLUGIN_SENSORS_TRUE}" && test -z "${BUILD_PLUGIN_SENSORS_FALSE}"; then
36889 as_fn_error $? "conditional \"BUILD_PLUGIN_SENSORS\" was never defined.
36890 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36891 fi
36892 if test -z "${BUILD_PLUGIN_SERIAL_TRUE}" && test -z "${BUILD_PLUGIN_SERIAL_FALSE}"; then
36893 as_fn_error $? "conditional \"BUILD_PLUGIN_SERIAL\" was never defined.
36894 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36895 fi
36896 if test -z "${BUILD_PLUGIN_SIGROK_TRUE}" && test -z "${BUILD_PLUGIN_SIGROK_FALSE}"; then
36897 as_fn_error $? "conditional \"BUILD_PLUGIN_SIGROK\" was never defined.
36898 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36899 fi
36900 if test -z "${BUILD_PLUGIN_SMART_TRUE}" && test -z "${BUILD_PLUGIN_SMART_FALSE}"; then
36901 as_fn_error $? "conditional \"BUILD_PLUGIN_SMART\" was never defined.
36902 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36903 fi
36904 if test -z "${BUILD_PLUGIN_SNMP_TRUE}" && test -z "${BUILD_PLUGIN_SNMP_FALSE}"; then
36905 as_fn_error $? "conditional \"BUILD_PLUGIN_SNMP\" was never defined.
36906 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36907 fi
36908 if test -z "${BUILD_PLUGIN_STATSD_TRUE}" && test -z "${BUILD_PLUGIN_STATSD_FALSE}"; then
36909 as_fn_error $? "conditional \"BUILD_PLUGIN_STATSD\" was never defined.
36910 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36911 fi
36912 if test -z "${BUILD_PLUGIN_SWAP_TRUE}" && test -z "${BUILD_PLUGIN_SWAP_FALSE}"; then
36913 as_fn_error $? "conditional \"BUILD_PLUGIN_SWAP\" was never defined.
36914 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36915 fi
36916 if test -z "${BUILD_PLUGIN_SYSLOG_TRUE}" && test -z "${BUILD_PLUGIN_SYSLOG_FALSE}"; then
36917 as_fn_error $? "conditional \"BUILD_PLUGIN_SYSLOG\" was never defined.
36918 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36919 fi
36920 if test -z "${BUILD_PLUGIN_TABLE_TRUE}" && test -z "${BUILD_PLUGIN_TABLE_FALSE}"; then
36921 as_fn_error $? "conditional \"BUILD_PLUGIN_TABLE\" was never defined.
36922 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36923 fi
36924 if test -z "${BUILD_PLUGIN_TAIL_TRUE}" && test -z "${BUILD_PLUGIN_TAIL_FALSE}"; then
36925 as_fn_error $? "conditional \"BUILD_PLUGIN_TAIL\" was never defined.
36926 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36927 fi
36928 if test -z "${BUILD_PLUGIN_TAIL_CSV_TRUE}" && test -z "${BUILD_PLUGIN_TAIL_CSV_FALSE}"; then
36929 as_fn_error $? "conditional \"BUILD_PLUGIN_TAIL_CSV\" was never defined.
36930 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36931 fi
36932 if test -z "${BUILD_PLUGIN_TAPE_TRUE}" && test -z "${BUILD_PLUGIN_TAPE_FALSE}"; then
36933 as_fn_error $? "conditional \"BUILD_PLUGIN_TAPE\" was never defined.
36934 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36935 fi
36936 if test -z "${BUILD_PLUGIN_TARGET_NOTIFICATION_TRUE}" && test -z "${BUILD_PLUGIN_TARGET_NOTIFICATION_FALSE}"; then
36937 as_fn_error $? "conditional \"BUILD_PLUGIN_TARGET_NOTIFICATION\" was never defined.
36938 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36939 fi
36940 if test -z "${BUILD_PLUGIN_TARGET_REPLACE_TRUE}" && test -z "${BUILD_PLUGIN_TARGET_REPLACE_FALSE}"; then
36941 as_fn_error $? "conditional \"BUILD_PLUGIN_TARGET_REPLACE\" was never defined.
36942 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36943 fi
36944 if test -z "${BUILD_PLUGIN_TARGET_SCALE_TRUE}" && test -z "${BUILD_PLUGIN_TARGET_SCALE_FALSE}"; then
36945 as_fn_error $? "conditional \"BUILD_PLUGIN_TARGET_SCALE\" was never defined.
36946 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36947 fi
36948 if test -z "${BUILD_PLUGIN_TARGET_SET_TRUE}" && test -z "${BUILD_PLUGIN_TARGET_SET_FALSE}"; then
36949 as_fn_error $? "conditional \"BUILD_PLUGIN_TARGET_SET\" was never defined.
36950 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36951 fi
36952 if test -z "${BUILD_PLUGIN_TARGET_V5UPGRADE_TRUE}" && test -z "${BUILD_PLUGIN_TARGET_V5UPGRADE_FALSE}"; then
36953 as_fn_error $? "conditional \"BUILD_PLUGIN_TARGET_V5UPGRADE\" was never defined.
36954 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36955 fi
36956 if test -z "${BUILD_PLUGIN_TCPCONNS_TRUE}" && test -z "${BUILD_PLUGIN_TCPCONNS_FALSE}"; then
36957 as_fn_error $? "conditional \"BUILD_PLUGIN_TCPCONNS\" was never defined.
36958 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36959 fi
36960 if test -z "${BUILD_PLUGIN_TEAMSPEAK2_TRUE}" && test -z "${BUILD_PLUGIN_TEAMSPEAK2_FALSE}"; then
36961 as_fn_error $? "conditional \"BUILD_PLUGIN_TEAMSPEAK2\" was never defined.
36962 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36963 fi
36964 if test -z "${BUILD_PLUGIN_TED_TRUE}" && test -z "${BUILD_PLUGIN_TED_FALSE}"; then
36965 as_fn_error $? "conditional \"BUILD_PLUGIN_TED\" was never defined.
36966 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36967 fi
36968 if test -z "${BUILD_PLUGIN_THERMAL_TRUE}" && test -z "${BUILD_PLUGIN_THERMAL_FALSE}"; then
36969 as_fn_error $? "conditional \"BUILD_PLUGIN_THERMAL\" was never defined.
36970 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36971 fi
36972 if test -z "${BUILD_PLUGIN_THRESHOLD_TRUE}" && test -z "${BUILD_PLUGIN_THRESHOLD_FALSE}"; then
36973 as_fn_error $? "conditional \"BUILD_PLUGIN_THRESHOLD\" was never defined.
36974 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36975 fi
36976 if test -z "${BUILD_PLUGIN_TOKYOTYRANT_TRUE}" && test -z "${BUILD_PLUGIN_TOKYOTYRANT_FALSE}"; then
36977 as_fn_error $? "conditional \"BUILD_PLUGIN_TOKYOTYRANT\" was never defined.
36978 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36979 fi
36980 if test -z "${BUILD_PLUGIN_TURBOSTAT_TRUE}" && test -z "${BUILD_PLUGIN_TURBOSTAT_FALSE}"; then
36981 as_fn_error $? "conditional \"BUILD_PLUGIN_TURBOSTAT\" was never defined.
36982 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36983 fi
36984 if test -z "${BUILD_PLUGIN_UNIXSOCK_TRUE}" && test -z "${BUILD_PLUGIN_UNIXSOCK_FALSE}"; then
36985 as_fn_error $? "conditional \"BUILD_PLUGIN_UNIXSOCK\" was never defined.
36986 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36987 fi
36988 if test -z "${BUILD_PLUGIN_UPTIME_TRUE}" && test -z "${BUILD_PLUGIN_UPTIME_FALSE}"; then
36989 as_fn_error $? "conditional \"BUILD_PLUGIN_UPTIME\" was never defined.
36990 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36991 fi
36992 if test -z "${BUILD_PLUGIN_USERS_TRUE}" && test -z "${BUILD_PLUGIN_USERS_FALSE}"; then
36993 as_fn_error $? "conditional \"BUILD_PLUGIN_USERS\" was never defined.
36994 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36995 fi
36996 if test -z "${BUILD_PLUGIN_UUID_TRUE}" && test -z "${BUILD_PLUGIN_UUID_FALSE}"; then
36997 as_fn_error $? "conditional \"BUILD_PLUGIN_UUID\" was never defined.
36998 Usually this means the macro was only invoked conditionally." "$LINENO" 5
36999 fi
37000 if test -z "${BUILD_PLUGIN_VARNISH_TRUE}" && test -z "${BUILD_PLUGIN_VARNISH_FALSE}"; then
37001 as_fn_error $? "conditional \"BUILD_PLUGIN_VARNISH\" was never defined.
37002 Usually this means the macro was only invoked conditionally." "$LINENO" 5
37003 fi
37004 if test -z "${BUILD_PLUGIN_VIRT_TRUE}" && test -z "${BUILD_PLUGIN_VIRT_FALSE}"; then
37005 as_fn_error $? "conditional \"BUILD_PLUGIN_VIRT\" was never defined.
37006 Usually this means the macro was only invoked conditionally." "$LINENO" 5
37007 fi
37008 if test -z "${BUILD_PLUGIN_VMEM_TRUE}" && test -z "${BUILD_PLUGIN_VMEM_FALSE}"; then
37009 as_fn_error $? "conditional \"BUILD_PLUGIN_VMEM\" was never defined.
37010 Usually this means the macro was only invoked conditionally." "$LINENO" 5
37011 fi
37012 if test -z "${BUILD_PLUGIN_VSERVER_TRUE}" && test -z "${BUILD_PLUGIN_VSERVER_FALSE}"; then
37013 as_fn_error $? "conditional \"BUILD_PLUGIN_VSERVER\" was never defined.
37014 Usually this means the macro was only invoked conditionally." "$LINENO" 5
37015 fi
37016 if test -z "${BUILD_PLUGIN_WIRELESS_TRUE}" && test -z "${BUILD_PLUGIN_WIRELESS_FALSE}"; then
37017 as_fn_error $? "conditional \"BUILD_PLUGIN_WIRELESS\" was never defined.
37018 Usually this means the macro was only invoked conditionally." "$LINENO" 5
37019 fi
37020 if test -z "${BUILD_PLUGIN_WRITE_GRAPHITE_TRUE}" && test -z "${BUILD_PLUGIN_WRITE_GRAPHITE_FALSE}"; then
37021 as_fn_error $? "conditional \"BUILD_PLUGIN_WRITE_GRAPHITE\" was never defined.
37022 Usually this means the macro was only invoked conditionally." "$LINENO" 5
37023 fi
37024 if test -z "${BUILD_PLUGIN_WRITE_HTTP_TRUE}" && test -z "${BUILD_PLUGIN_WRITE_HTTP_FALSE}"; then
37025 as_fn_error $? "conditional \"BUILD_PLUGIN_WRITE_HTTP\" was never defined.
37026 Usually this means the macro was only invoked conditionally." "$LINENO" 5
37027 fi
37028 if test -z "${BUILD_PLUGIN_WRITE_KAFKA_TRUE}" && test -z "${BUILD_PLUGIN_WRITE_KAFKA_FALSE}"; then
37029 as_fn_error $? "conditional \"BUILD_PLUGIN_WRITE_KAFKA\" was never defined.
37030 Usually this means the macro was only invoked conditionally." "$LINENO" 5
37031 fi
37032 if test -z "${BUILD_PLUGIN_WRITE_LOG_TRUE}" && test -z "${BUILD_PLUGIN_WRITE_LOG_FALSE}"; then
37033 as_fn_error $? "conditional \"BUILD_PLUGIN_WRITE_LOG\" was never defined.
37034 Usually this means the macro was only invoked conditionally." "$LINENO" 5
37035 fi
37036 if test -z "${BUILD_PLUGIN_WRITE_MONGODB_TRUE}" && test -z "${BUILD_PLUGIN_WRITE_MONGODB_FALSE}"; then
37037 as_fn_error $? "conditional \"BUILD_PLUGIN_WRITE_MONGODB\" was never defined.
37038 Usually this means the macro was only invoked conditionally." "$LINENO" 5
37039 fi
37040 if test -z "${BUILD_PLUGIN_WRITE_REDIS_TRUE}" && test -z "${BUILD_PLUGIN_WRITE_REDIS_FALSE}"; then
37041 as_fn_error $? "conditional \"BUILD_PLUGIN_WRITE_REDIS\" was never defined.
37042 Usually this means the macro was only invoked conditionally." "$LINENO" 5
37043 fi
37044 if test -z "${BUILD_PLUGIN_WRITE_RIEMANN_TRUE}" && test -z "${BUILD_PLUGIN_WRITE_RIEMANN_FALSE}"; then
37045 as_fn_error $? "conditional \"BUILD_PLUGIN_WRITE_RIEMANN\" was never defined.
37046 Usually this means the macro was only invoked conditionally." "$LINENO" 5
37047 fi
37048 if test -z "${BUILD_PLUGIN_WRITE_SENSU_TRUE}" && test -z "${BUILD_PLUGIN_WRITE_SENSU_FALSE}"; then
37049 as_fn_error $? "conditional \"BUILD_PLUGIN_WRITE_SENSU\" was never defined.
37050 Usually this means the macro was only invoked conditionally." "$LINENO" 5
37051 fi
37052 if test -z "${BUILD_PLUGIN_WRITE_TSDB_TRUE}" && test -z "${BUILD_PLUGIN_WRITE_TSDB_FALSE}"; then
37053 as_fn_error $? "conditional \"BUILD_PLUGIN_WRITE_TSDB\" was never defined.
37054 Usually this means the macro was only invoked conditionally." "$LINENO" 5
37055 fi
37056 if test -z "${BUILD_PLUGIN_XMMS_TRUE}" && test -z "${BUILD_PLUGIN_XMMS_FALSE}"; then
37057 as_fn_error $? "conditional \"BUILD_PLUGIN_XMMS\" was never defined.
37058 Usually this means the macro was only invoked conditionally." "$LINENO" 5
37059 fi
37060 if test -z "${BUILD_PLUGIN_ZFS_ARC_TRUE}" && test -z "${BUILD_PLUGIN_ZFS_ARC_FALSE}"; then
37061 as_fn_error $? "conditional \"BUILD_PLUGIN_ZFS_ARC\" was never defined.
37062 Usually this means the macro was only invoked conditionally." "$LINENO" 5
37063 fi
37064 if test -z "${BUILD_PLUGIN_ZOOKEEPER_TRUE}" && test -z "${BUILD_PLUGIN_ZOOKEEPER_FALSE}"; then
37065 as_fn_error $? "conditional \"BUILD_PLUGIN_ZOOKEEPER\" was never defined.
37066 Usually this means the macro was only invoked conditionally." "$LINENO" 5
37067 fi
37069 : "${CONFIG_STATUS=./config.status}"
37070 ac_write_fail=0
37071 ac_clean_files_save=$ac_clean_files
37072 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
37073 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
37074 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
37075 as_write_fail=0
37076 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
37077 #! $SHELL
37078 # Generated by $as_me.
37079 # Run this file to recreate the current configuration.
37080 # Compiler output produced by configure, useful for debugging
37081 # configure, is in config.log if it exists.
37083 debug=false
37084 ac_cs_recheck=false
37085 ac_cs_silent=false
37087 SHELL=\${CONFIG_SHELL-$SHELL}
37088 export SHELL
37089 _ASEOF
37090 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
37091 ## -------------------- ##
37092 ## M4sh Initialization. ##
37093 ## -------------------- ##
37095 # Be more Bourne compatible
37096 DUALCASE=1; export DUALCASE # for MKS sh
37097 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
37098 emulate sh
37099 NULLCMD=:
37100 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
37101 # is contrary to our usage. Disable this feature.
37102 alias -g '${1+"$@"}'='"$@"'
37103 setopt NO_GLOB_SUBST
37104 else
37105 case `(set -o) 2>/dev/null` in #(
37106 *posix*) :
37107 set -o posix ;; #(
37108 *) :
37109 ;;
37110 esac
37111 fi
37114 as_nl='
37115 '
37116 export as_nl
37117 # Printing a long string crashes Solaris 7 /usr/bin/printf.
37118 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
37119 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
37120 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
37121 # Prefer a ksh shell builtin over an external printf program on Solaris,
37122 # but without wasting forks for bash or zsh.
37123 if test -z "$BASH_VERSION$ZSH_VERSION" \
37124 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
37125 as_echo='print -r --'
37126 as_echo_n='print -rn --'
37127 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
37128 as_echo='printf %s\n'
37129 as_echo_n='printf %s'
37130 else
37131 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
37132 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
37133 as_echo_n='/usr/ucb/echo -n'
37134 else
37135 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
37136 as_echo_n_body='eval
37137 arg=$1;
37138 case $arg in #(
37139 *"$as_nl"*)
37140 expr "X$arg" : "X\\(.*\\)$as_nl";
37141 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
37142 esac;
37143 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
37144 '
37145 export as_echo_n_body
37146 as_echo_n='sh -c $as_echo_n_body as_echo'
37147 fi
37148 export as_echo_body
37149 as_echo='sh -c $as_echo_body as_echo'
37150 fi
37152 # The user is always right.
37153 if test "${PATH_SEPARATOR+set}" != set; then
37154 PATH_SEPARATOR=:
37155 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
37156 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
37157 PATH_SEPARATOR=';'
37158 }
37159 fi
37162 # IFS
37163 # We need space, tab and new line, in precisely that order. Quoting is
37164 # there to prevent editors from complaining about space-tab.
37165 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
37166 # splitting by setting IFS to empty value.)
37167 IFS=" "" $as_nl"
37169 # Find who we are. Look in the path if we contain no directory separator.
37170 as_myself=
37171 case $0 in #((
37172 *[\\/]* ) as_myself=$0 ;;
37173 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
37174 for as_dir in $PATH
37175 do
37176 IFS=$as_save_IFS
37177 test -z "$as_dir" && as_dir=.
37178 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
37179 done
37180 IFS=$as_save_IFS
37182 ;;
37183 esac
37184 # We did not find ourselves, most probably we were run as `sh COMMAND'
37185 # in which case we are not to be found in the path.
37186 if test "x$as_myself" = x; then
37187 as_myself=$0
37188 fi
37189 if test ! -f "$as_myself"; then
37190 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
37191 exit 1
37192 fi
37194 # Unset variables that we do not need and which cause bugs (e.g. in
37195 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
37196 # suppresses any "Segmentation fault" message there. '((' could
37197 # trigger a bug in pdksh 5.2.14.
37198 for as_var in BASH_ENV ENV MAIL MAILPATH
37199 do eval test x\${$as_var+set} = xset \
37200 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
37201 done
37202 PS1='$ '
37203 PS2='> '
37204 PS4='+ '
37206 # NLS nuisances.
37207 LC_ALL=C
37208 export LC_ALL
37209 LANGUAGE=C
37210 export LANGUAGE
37212 # CDPATH.
37213 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
37216 # as_fn_error STATUS ERROR [LINENO LOG_FD]
37217 # ----------------------------------------
37218 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
37219 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
37220 # script with STATUS, using 1 if that was 0.
37221 as_fn_error ()
37222 {
37223 as_status=$1; test $as_status -eq 0 && as_status=1
37224 if test "$4"; then
37225 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
37226 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
37227 fi
37228 $as_echo "$as_me: error: $2" >&2
37229 as_fn_exit $as_status
37230 } # as_fn_error
37233 # as_fn_set_status STATUS
37234 # -----------------------
37235 # Set $? to STATUS, without forking.
37236 as_fn_set_status ()
37237 {
37238 return $1
37239 } # as_fn_set_status
37241 # as_fn_exit STATUS
37242 # -----------------
37243 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
37244 as_fn_exit ()
37245 {
37246 set +e
37247 as_fn_set_status $1
37248 exit $1
37249 } # as_fn_exit
37251 # as_fn_unset VAR
37252 # ---------------
37253 # Portably unset VAR.
37254 as_fn_unset ()
37255 {
37256 { eval $1=; unset $1;}
37257 }
37258 as_unset=as_fn_unset
37259 # as_fn_append VAR VALUE
37260 # ----------------------
37261 # Append the text in VALUE to the end of the definition contained in VAR. Take
37262 # advantage of any shell optimizations that allow amortized linear growth over
37263 # repeated appends, instead of the typical quadratic growth present in naive
37264 # implementations.
37265 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
37266 eval 'as_fn_append ()
37267 {
37268 eval $1+=\$2
37269 }'
37270 else
37271 as_fn_append ()
37272 {
37273 eval $1=\$$1\$2
37274 }
37275 fi # as_fn_append
37277 # as_fn_arith ARG...
37278 # ------------------
37279 # Perform arithmetic evaluation on the ARGs, and store the result in the
37280 # global $as_val. Take advantage of shells that can avoid forks. The arguments
37281 # must be portable across $(()) and expr.
37282 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
37283 eval 'as_fn_arith ()
37284 {
37285 as_val=$(( $* ))
37286 }'
37287 else
37288 as_fn_arith ()
37289 {
37290 as_val=`expr "$@" || test $? -eq 1`
37291 }
37292 fi # as_fn_arith
37295 if expr a : '\(a\)' >/dev/null 2>&1 &&
37296 test "X`expr 00001 : '.*\(...\)'`" = X001; then
37297 as_expr=expr
37298 else
37299 as_expr=false
37300 fi
37302 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
37303 as_basename=basename
37304 else
37305 as_basename=false
37306 fi
37308 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
37309 as_dirname=dirname
37310 else
37311 as_dirname=false
37312 fi
37314 as_me=`$as_basename -- "$0" ||
37315 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
37316 X"$0" : 'X\(//\)$' \| \
37317 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
37318 $as_echo X/"$0" |
37319 sed '/^.*\/\([^/][^/]*\)\/*$/{
37320 s//\1/
37321 q
37322 }
37323 /^X\/\(\/\/\)$/{
37324 s//\1/
37325 q
37326 }
37327 /^X\/\(\/\).*/{
37328 s//\1/
37329 q
37330 }
37331 s/.*/./; q'`
37333 # Avoid depending upon Character Ranges.
37334 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
37335 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
37336 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
37337 as_cr_digits='0123456789'
37338 as_cr_alnum=$as_cr_Letters$as_cr_digits
37340 ECHO_C= ECHO_N= ECHO_T=
37341 case `echo -n x` in #(((((
37342 -n*)
37343 case `echo 'xy\c'` in
37344 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
37345 xy) ECHO_C='\c';;
37346 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
37347 ECHO_T=' ';;
37348 esac;;
37349 *)
37350 ECHO_N='-n';;
37351 esac
37353 rm -f conf$$ conf$$.exe conf$$.file
37354 if test -d conf$$.dir; then
37355 rm -f conf$$.dir/conf$$.file
37356 else
37357 rm -f conf$$.dir
37358 mkdir conf$$.dir 2>/dev/null
37359 fi
37360 if (echo >conf$$.file) 2>/dev/null; then
37361 if ln -s conf$$.file conf$$ 2>/dev/null; then
37362 as_ln_s='ln -s'
37363 # ... but there are two gotchas:
37364 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
37365 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
37366 # In both cases, we have to default to `cp -pR'.
37367 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
37368 as_ln_s='cp -pR'
37369 elif ln conf$$.file conf$$ 2>/dev/null; then
37370 as_ln_s=ln
37371 else
37372 as_ln_s='cp -pR'
37373 fi
37374 else
37375 as_ln_s='cp -pR'
37376 fi
37377 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
37378 rmdir conf$$.dir 2>/dev/null
37381 # as_fn_mkdir_p
37382 # -------------
37383 # Create "$as_dir" as a directory, including parents if necessary.
37384 as_fn_mkdir_p ()
37385 {
37387 case $as_dir in #(
37388 -*) as_dir=./$as_dir;;
37389 esac
37390 test -d "$as_dir" || eval $as_mkdir_p || {
37391 as_dirs=
37392 while :; do
37393 case $as_dir in #(
37394 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
37395 *) as_qdir=$as_dir;;
37396 esac
37397 as_dirs="'$as_qdir' $as_dirs"
37398 as_dir=`$as_dirname -- "$as_dir" ||
37399 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
37400 X"$as_dir" : 'X\(//\)[^/]' \| \
37401 X"$as_dir" : 'X\(//\)$' \| \
37402 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
37403 $as_echo X"$as_dir" |
37404 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
37405 s//\1/
37406 q
37407 }
37408 /^X\(\/\/\)[^/].*/{
37409 s//\1/
37410 q
37411 }
37412 /^X\(\/\/\)$/{
37413 s//\1/
37414 q
37415 }
37416 /^X\(\/\).*/{
37417 s//\1/
37418 q
37419 }
37420 s/.*/./; q'`
37421 test -d "$as_dir" && break
37422 done
37423 test -z "$as_dirs" || eval "mkdir $as_dirs"
37424 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
37427 } # as_fn_mkdir_p
37428 if mkdir -p . 2>/dev/null; then
37429 as_mkdir_p='mkdir -p "$as_dir"'
37430 else
37431 test -d ./-p && rmdir ./-p
37432 as_mkdir_p=false
37433 fi
37436 # as_fn_executable_p FILE
37437 # -----------------------
37438 # Test if FILE is an executable regular file.
37439 as_fn_executable_p ()
37440 {
37441 test -f "$1" && test -x "$1"
37442 } # as_fn_executable_p
37443 as_test_x='test -x'
37444 as_executable_p=as_fn_executable_p
37446 # Sed expression to map a string onto a valid CPP name.
37447 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
37449 # Sed expression to map a string onto a valid variable name.
37450 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
37453 exec 6>&1
37454 ## ----------------------------------- ##
37455 ## Main body of $CONFIG_STATUS script. ##
37456 ## ----------------------------------- ##
37457 _ASEOF
37458 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
37460 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37461 # Save the log message, to keep $0 and so on meaningful, and to
37462 # report actual input values of CONFIG_FILES etc. instead of their
37463 # values after options handling.
37464 ac_log="
37465 This file was extended by collectd $as_me 5.5.0, which was
37466 generated by GNU Autoconf 2.69. Invocation command line was
37468 CONFIG_FILES = $CONFIG_FILES
37469 CONFIG_HEADERS = $CONFIG_HEADERS
37470 CONFIG_LINKS = $CONFIG_LINKS
37471 CONFIG_COMMANDS = $CONFIG_COMMANDS
37472 $ $0 $@
37474 on `(hostname || uname -n) 2>/dev/null | sed 1q`
37475 "
37477 _ACEOF
37479 case $ac_config_files in *"
37480 "*) set x $ac_config_files; shift; ac_config_files=$*;;
37481 esac
37483 case $ac_config_headers in *"
37484 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
37485 esac
37488 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37489 # Files that config.status was made for.
37490 config_files="$ac_config_files"
37491 config_headers="$ac_config_headers"
37492 config_commands="$ac_config_commands"
37494 _ACEOF
37496 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37497 ac_cs_usage="\
37498 \`$as_me' instantiates files and other configuration actions
37499 from templates according to the current configuration. Unless the files
37500 and actions are specified as TAGs, all are instantiated by default.
37502 Usage: $0 [OPTION]... [TAG]...
37504 -h, --help print this help, then exit
37505 -V, --version print version number and configuration settings, then exit
37506 --config print configuration, then exit
37507 -q, --quiet, --silent
37508 do not print progress messages
37509 -d, --debug don't remove temporary files
37510 --recheck update $as_me by reconfiguring in the same conditions
37511 --file=FILE[:TEMPLATE]
37512 instantiate the configuration file FILE
37513 --header=FILE[:TEMPLATE]
37514 instantiate the configuration header FILE
37516 Configuration files:
37517 $config_files
37519 Configuration headers:
37520 $config_headers
37522 Configuration commands:
37523 $config_commands
37525 Report bugs to the package provider."
37527 _ACEOF
37528 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37529 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
37530 ac_cs_version="\\
37531 collectd config.status 5.5.0
37532 configured by $0, generated by GNU Autoconf 2.69,
37533 with options \\"\$ac_cs_config\\"
37535 Copyright (C) 2012 Free Software Foundation, Inc.
37536 This config.status script is free software; the Free Software Foundation
37537 gives unlimited permission to copy, distribute and modify it."
37539 ac_pwd='$ac_pwd'
37540 srcdir='$srcdir'
37541 INSTALL='$INSTALL'
37542 MKDIR_P='$MKDIR_P'
37543 AWK='$AWK'
37544 test -n "\$AWK" || AWK=awk
37545 _ACEOF
37547 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37548 # The default lists apply if the user does not specify any file.
37549 ac_need_defaults=:
37550 while test $# != 0
37551 do
37552 case $1 in
37553 --*=?*)
37554 ac_option=`expr "X$1" : 'X\([^=]*\)='`
37555 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
37556 ac_shift=:
37557 ;;
37558 --*=)
37559 ac_option=`expr "X$1" : 'X\([^=]*\)='`
37560 ac_optarg=
37561 ac_shift=:
37562 ;;
37563 *)
37564 ac_option=$1
37565 ac_optarg=$2
37566 ac_shift=shift
37567 ;;
37568 esac
37570 case $ac_option in
37571 # Handling of the options.
37572 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
37573 ac_cs_recheck=: ;;
37574 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
37575 $as_echo "$ac_cs_version"; exit ;;
37576 --config | --confi | --conf | --con | --co | --c )
37577 $as_echo "$ac_cs_config"; exit ;;
37578 --debug | --debu | --deb | --de | --d | -d )
37579 debug=: ;;
37580 --file | --fil | --fi | --f )
37581 $ac_shift
37582 case $ac_optarg in
37583 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
37584 '') as_fn_error $? "missing file argument" ;;
37585 esac
37586 as_fn_append CONFIG_FILES " '$ac_optarg'"
37587 ac_need_defaults=false;;
37588 --header | --heade | --head | --hea )
37589 $ac_shift
37590 case $ac_optarg in
37591 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
37592 esac
37593 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
37594 ac_need_defaults=false;;
37595 --he | --h)
37596 # Conflict between --help and --header
37597 as_fn_error $? "ambiguous option: \`$1'
37598 Try \`$0 --help' for more information.";;
37599 --help | --hel | -h )
37600 $as_echo "$ac_cs_usage"; exit ;;
37601 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
37602 | -silent | --silent | --silen | --sile | --sil | --si | --s)
37603 ac_cs_silent=: ;;
37605 # This is an error.
37606 -*) as_fn_error $? "unrecognized option: \`$1'
37607 Try \`$0 --help' for more information." ;;
37609 *) as_fn_append ac_config_targets " $1"
37610 ac_need_defaults=false ;;
37612 esac
37613 shift
37614 done
37616 ac_configure_extra_args=
37618 if $ac_cs_silent; then
37619 exec 6>/dev/null
37620 ac_configure_extra_args="$ac_configure_extra_args --silent"
37621 fi
37623 _ACEOF
37624 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37625 if \$ac_cs_recheck; then
37626 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
37627 shift
37628 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
37629 CONFIG_SHELL='$SHELL'
37630 export CONFIG_SHELL
37631 exec "\$@"
37632 fi
37634 _ACEOF
37635 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37636 exec 5>>config.log
37637 {
37638 echo
37639 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
37640 ## Running $as_me. ##
37641 _ASBOX
37642 $as_echo "$ac_log"
37643 } >&5
37645 _ACEOF
37646 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
37647 #
37648 # INIT-COMMANDS
37649 #
37652 # The HP-UX ksh and POSIX shell print the target directory to stdout
37653 # if CDPATH is set.
37654 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
37656 sed_quote_subst='$sed_quote_subst'
37657 double_quote_subst='$double_quote_subst'
37658 delay_variable_subst='$delay_variable_subst'
37659 macro_version='`$ECHO "$macro_version" | $SED "$delay_single_quote_subst"`'
37660 macro_revision='`$ECHO "$macro_revision" | $SED "$delay_single_quote_subst"`'
37661 enable_shared='`$ECHO "$enable_shared" | $SED "$delay_single_quote_subst"`'
37662 enable_static='`$ECHO "$enable_static" | $SED "$delay_single_quote_subst"`'
37663 pic_mode='`$ECHO "$pic_mode" | $SED "$delay_single_quote_subst"`'
37664 enable_fast_install='`$ECHO "$enable_fast_install" | $SED "$delay_single_quote_subst"`'
37665 SHELL='`$ECHO "$SHELL" | $SED "$delay_single_quote_subst"`'
37666 ECHO='`$ECHO "$ECHO" | $SED "$delay_single_quote_subst"`'
37667 PATH_SEPARATOR='`$ECHO "$PATH_SEPARATOR" | $SED "$delay_single_quote_subst"`'
37668 host_alias='`$ECHO "$host_alias" | $SED "$delay_single_quote_subst"`'
37669 host='`$ECHO "$host" | $SED "$delay_single_quote_subst"`'
37670 host_os='`$ECHO "$host_os" | $SED "$delay_single_quote_subst"`'
37671 build_alias='`$ECHO "$build_alias" | $SED "$delay_single_quote_subst"`'
37672 build='`$ECHO "$build" | $SED "$delay_single_quote_subst"`'
37673 build_os='`$ECHO "$build_os" | $SED "$delay_single_quote_subst"`'
37674 SED='`$ECHO "$SED" | $SED "$delay_single_quote_subst"`'
37675 Xsed='`$ECHO "$Xsed" | $SED "$delay_single_quote_subst"`'
37676 GREP='`$ECHO "$GREP" | $SED "$delay_single_quote_subst"`'
37677 EGREP='`$ECHO "$EGREP" | $SED "$delay_single_quote_subst"`'
37678 FGREP='`$ECHO "$FGREP" | $SED "$delay_single_quote_subst"`'
37679 LD='`$ECHO "$LD" | $SED "$delay_single_quote_subst"`'
37680 NM='`$ECHO "$NM" | $SED "$delay_single_quote_subst"`'
37681 LN_S='`$ECHO "$LN_S" | $SED "$delay_single_quote_subst"`'
37682 max_cmd_len='`$ECHO "$max_cmd_len" | $SED "$delay_single_quote_subst"`'
37683 ac_objext='`$ECHO "$ac_objext" | $SED "$delay_single_quote_subst"`'
37684 exeext='`$ECHO "$exeext" | $SED "$delay_single_quote_subst"`'
37685 lt_unset='`$ECHO "$lt_unset" | $SED "$delay_single_quote_subst"`'
37686 lt_SP2NL='`$ECHO "$lt_SP2NL" | $SED "$delay_single_quote_subst"`'
37687 lt_NL2SP='`$ECHO "$lt_NL2SP" | $SED "$delay_single_quote_subst"`'
37688 lt_cv_to_host_file_cmd='`$ECHO "$lt_cv_to_host_file_cmd" | $SED "$delay_single_quote_subst"`'
37689 lt_cv_to_tool_file_cmd='`$ECHO "$lt_cv_to_tool_file_cmd" | $SED "$delay_single_quote_subst"`'
37690 reload_flag='`$ECHO "$reload_flag" | $SED "$delay_single_quote_subst"`'
37691 reload_cmds='`$ECHO "$reload_cmds" | $SED "$delay_single_quote_subst"`'
37692 OBJDUMP='`$ECHO "$OBJDUMP" | $SED "$delay_single_quote_subst"`'
37693 deplibs_check_method='`$ECHO "$deplibs_check_method" | $SED "$delay_single_quote_subst"`'
37694 file_magic_cmd='`$ECHO "$file_magic_cmd" | $SED "$delay_single_quote_subst"`'
37695 file_magic_glob='`$ECHO "$file_magic_glob" | $SED "$delay_single_quote_subst"`'
37696 want_nocaseglob='`$ECHO "$want_nocaseglob" | $SED "$delay_single_quote_subst"`'
37697 DLLTOOL='`$ECHO "$DLLTOOL" | $SED "$delay_single_quote_subst"`'
37698 sharedlib_from_linklib_cmd='`$ECHO "$sharedlib_from_linklib_cmd" | $SED "$delay_single_quote_subst"`'
37699 AR='`$ECHO "$AR" | $SED "$delay_single_quote_subst"`'
37700 AR_FLAGS='`$ECHO "$AR_FLAGS" | $SED "$delay_single_quote_subst"`'
37701 archiver_list_spec='`$ECHO "$archiver_list_spec" | $SED "$delay_single_quote_subst"`'
37702 STRIP='`$ECHO "$STRIP" | $SED "$delay_single_quote_subst"`'
37703 RANLIB='`$ECHO "$RANLIB" | $SED "$delay_single_quote_subst"`'
37704 old_postinstall_cmds='`$ECHO "$old_postinstall_cmds" | $SED "$delay_single_quote_subst"`'
37705 old_postuninstall_cmds='`$ECHO "$old_postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
37706 old_archive_cmds='`$ECHO "$old_archive_cmds" | $SED "$delay_single_quote_subst"`'
37707 lock_old_archive_extraction='`$ECHO "$lock_old_archive_extraction" | $SED "$delay_single_quote_subst"`'
37708 CC='`$ECHO "$CC" | $SED "$delay_single_quote_subst"`'
37709 CFLAGS='`$ECHO "$CFLAGS" | $SED "$delay_single_quote_subst"`'
37710 compiler='`$ECHO "$compiler" | $SED "$delay_single_quote_subst"`'
37711 GCC='`$ECHO "$GCC" | $SED "$delay_single_quote_subst"`'
37712 lt_cv_sys_global_symbol_pipe='`$ECHO "$lt_cv_sys_global_symbol_pipe" | $SED "$delay_single_quote_subst"`'
37713 lt_cv_sys_global_symbol_to_cdecl='`$ECHO "$lt_cv_sys_global_symbol_to_cdecl" | $SED "$delay_single_quote_subst"`'
37714 lt_cv_sys_global_symbol_to_c_name_address='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address" | $SED "$delay_single_quote_subst"`'
37715 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix='`$ECHO "$lt_cv_sys_global_symbol_to_c_name_address_lib_prefix" | $SED "$delay_single_quote_subst"`'
37716 nm_file_list_spec='`$ECHO "$nm_file_list_spec" | $SED "$delay_single_quote_subst"`'
37717 lt_sysroot='`$ECHO "$lt_sysroot" | $SED "$delay_single_quote_subst"`'
37718 objdir='`$ECHO "$objdir" | $SED "$delay_single_quote_subst"`'
37719 MAGIC_CMD='`$ECHO "$MAGIC_CMD" | $SED "$delay_single_quote_subst"`'
37720 lt_prog_compiler_no_builtin_flag='`$ECHO "$lt_prog_compiler_no_builtin_flag" | $SED "$delay_single_quote_subst"`'
37721 lt_prog_compiler_pic='`$ECHO "$lt_prog_compiler_pic" | $SED "$delay_single_quote_subst"`'
37722 lt_prog_compiler_wl='`$ECHO "$lt_prog_compiler_wl" | $SED "$delay_single_quote_subst"`'
37723 lt_prog_compiler_static='`$ECHO "$lt_prog_compiler_static" | $SED "$delay_single_quote_subst"`'
37724 lt_cv_prog_compiler_c_o='`$ECHO "$lt_cv_prog_compiler_c_o" | $SED "$delay_single_quote_subst"`'
37725 need_locks='`$ECHO "$need_locks" | $SED "$delay_single_quote_subst"`'
37726 MANIFEST_TOOL='`$ECHO "$MANIFEST_TOOL" | $SED "$delay_single_quote_subst"`'
37727 DSYMUTIL='`$ECHO "$DSYMUTIL" | $SED "$delay_single_quote_subst"`'
37728 NMEDIT='`$ECHO "$NMEDIT" | $SED "$delay_single_quote_subst"`'
37729 LIPO='`$ECHO "$LIPO" | $SED "$delay_single_quote_subst"`'
37730 OTOOL='`$ECHO "$OTOOL" | $SED "$delay_single_quote_subst"`'
37731 OTOOL64='`$ECHO "$OTOOL64" | $SED "$delay_single_quote_subst"`'
37732 libext='`$ECHO "$libext" | $SED "$delay_single_quote_subst"`'
37733 shrext_cmds='`$ECHO "$shrext_cmds" | $SED "$delay_single_quote_subst"`'
37734 extract_expsyms_cmds='`$ECHO "$extract_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
37735 archive_cmds_need_lc='`$ECHO "$archive_cmds_need_lc" | $SED "$delay_single_quote_subst"`'
37736 enable_shared_with_static_runtimes='`$ECHO "$enable_shared_with_static_runtimes" | $SED "$delay_single_quote_subst"`'
37737 export_dynamic_flag_spec='`$ECHO "$export_dynamic_flag_spec" | $SED "$delay_single_quote_subst"`'
37738 whole_archive_flag_spec='`$ECHO "$whole_archive_flag_spec" | $SED "$delay_single_quote_subst"`'
37739 compiler_needs_object='`$ECHO "$compiler_needs_object" | $SED "$delay_single_quote_subst"`'
37740 old_archive_from_new_cmds='`$ECHO "$old_archive_from_new_cmds" | $SED "$delay_single_quote_subst"`'
37741 old_archive_from_expsyms_cmds='`$ECHO "$old_archive_from_expsyms_cmds" | $SED "$delay_single_quote_subst"`'
37742 archive_cmds='`$ECHO "$archive_cmds" | $SED "$delay_single_quote_subst"`'
37743 archive_expsym_cmds='`$ECHO "$archive_expsym_cmds" | $SED "$delay_single_quote_subst"`'
37744 module_cmds='`$ECHO "$module_cmds" | $SED "$delay_single_quote_subst"`'
37745 module_expsym_cmds='`$ECHO "$module_expsym_cmds" | $SED "$delay_single_quote_subst"`'
37746 with_gnu_ld='`$ECHO "$with_gnu_ld" | $SED "$delay_single_quote_subst"`'
37747 allow_undefined_flag='`$ECHO "$allow_undefined_flag" | $SED "$delay_single_quote_subst"`'
37748 no_undefined_flag='`$ECHO "$no_undefined_flag" | $SED "$delay_single_quote_subst"`'
37749 hardcode_libdir_flag_spec='`$ECHO "$hardcode_libdir_flag_spec" | $SED "$delay_single_quote_subst"`'
37750 hardcode_libdir_separator='`$ECHO "$hardcode_libdir_separator" | $SED "$delay_single_quote_subst"`'
37751 hardcode_direct='`$ECHO "$hardcode_direct" | $SED "$delay_single_quote_subst"`'
37752 hardcode_direct_absolute='`$ECHO "$hardcode_direct_absolute" | $SED "$delay_single_quote_subst"`'
37753 hardcode_minus_L='`$ECHO "$hardcode_minus_L" | $SED "$delay_single_quote_subst"`'
37754 hardcode_shlibpath_var='`$ECHO "$hardcode_shlibpath_var" | $SED "$delay_single_quote_subst"`'
37755 hardcode_automatic='`$ECHO "$hardcode_automatic" | $SED "$delay_single_quote_subst"`'
37756 inherit_rpath='`$ECHO "$inherit_rpath" | $SED "$delay_single_quote_subst"`'
37757 link_all_deplibs='`$ECHO "$link_all_deplibs" | $SED "$delay_single_quote_subst"`'
37758 always_export_symbols='`$ECHO "$always_export_symbols" | $SED "$delay_single_quote_subst"`'
37759 export_symbols_cmds='`$ECHO "$export_symbols_cmds" | $SED "$delay_single_quote_subst"`'
37760 exclude_expsyms='`$ECHO "$exclude_expsyms" | $SED "$delay_single_quote_subst"`'
37761 include_expsyms='`$ECHO "$include_expsyms" | $SED "$delay_single_quote_subst"`'
37762 prelink_cmds='`$ECHO "$prelink_cmds" | $SED "$delay_single_quote_subst"`'
37763 postlink_cmds='`$ECHO "$postlink_cmds" | $SED "$delay_single_quote_subst"`'
37764 file_list_spec='`$ECHO "$file_list_spec" | $SED "$delay_single_quote_subst"`'
37765 variables_saved_for_relink='`$ECHO "$variables_saved_for_relink" | $SED "$delay_single_quote_subst"`'
37766 need_lib_prefix='`$ECHO "$need_lib_prefix" | $SED "$delay_single_quote_subst"`'
37767 need_version='`$ECHO "$need_version" | $SED "$delay_single_quote_subst"`'
37768 version_type='`$ECHO "$version_type" | $SED "$delay_single_quote_subst"`'
37769 runpath_var='`$ECHO "$runpath_var" | $SED "$delay_single_quote_subst"`'
37770 shlibpath_var='`$ECHO "$shlibpath_var" | $SED "$delay_single_quote_subst"`'
37771 shlibpath_overrides_runpath='`$ECHO "$shlibpath_overrides_runpath" | $SED "$delay_single_quote_subst"`'
37772 libname_spec='`$ECHO "$libname_spec" | $SED "$delay_single_quote_subst"`'
37773 library_names_spec='`$ECHO "$library_names_spec" | $SED "$delay_single_quote_subst"`'
37774 soname_spec='`$ECHO "$soname_spec" | $SED "$delay_single_quote_subst"`'
37775 install_override_mode='`$ECHO "$install_override_mode" | $SED "$delay_single_quote_subst"`'
37776 postinstall_cmds='`$ECHO "$postinstall_cmds" | $SED "$delay_single_quote_subst"`'
37777 postuninstall_cmds='`$ECHO "$postuninstall_cmds" | $SED "$delay_single_quote_subst"`'
37778 finish_cmds='`$ECHO "$finish_cmds" | $SED "$delay_single_quote_subst"`'
37779 finish_eval='`$ECHO "$finish_eval" | $SED "$delay_single_quote_subst"`'
37780 hardcode_into_libs='`$ECHO "$hardcode_into_libs" | $SED "$delay_single_quote_subst"`'
37781 sys_lib_search_path_spec='`$ECHO "$sys_lib_search_path_spec" | $SED "$delay_single_quote_subst"`'
37782 sys_lib_dlsearch_path_spec='`$ECHO "$sys_lib_dlsearch_path_spec" | $SED "$delay_single_quote_subst"`'
37783 hardcode_action='`$ECHO "$hardcode_action" | $SED "$delay_single_quote_subst"`'
37784 enable_dlopen='`$ECHO "$enable_dlopen" | $SED "$delay_single_quote_subst"`'
37785 enable_dlopen_self='`$ECHO "$enable_dlopen_self" | $SED "$delay_single_quote_subst"`'
37786 enable_dlopen_self_static='`$ECHO "$enable_dlopen_self_static" | $SED "$delay_single_quote_subst"`'
37787 old_striplib='`$ECHO "$old_striplib" | $SED "$delay_single_quote_subst"`'
37788 striplib='`$ECHO "$striplib" | $SED "$delay_single_quote_subst"`'
37790 LTCC='$LTCC'
37791 LTCFLAGS='$LTCFLAGS'
37792 compiler='$compiler_DEFAULT'
37794 # A function that is used when there is no print builtin or printf.
37795 func_fallback_echo ()
37796 {
37797 eval 'cat <<_LTECHO_EOF
37798 \$1
37799 _LTECHO_EOF'
37800 }
37802 # Quote evaled strings.
37803 for var in SHELL \
37804 ECHO \
37805 PATH_SEPARATOR \
37806 SED \
37807 GREP \
37808 EGREP \
37809 FGREP \
37810 LD \
37811 NM \
37812 LN_S \
37813 lt_SP2NL \
37814 lt_NL2SP \
37815 reload_flag \
37816 OBJDUMP \
37817 deplibs_check_method \
37818 file_magic_cmd \
37819 file_magic_glob \
37820 want_nocaseglob \
37821 DLLTOOL \
37822 sharedlib_from_linklib_cmd \
37823 AR \
37824 AR_FLAGS \
37825 archiver_list_spec \
37826 STRIP \
37827 RANLIB \
37828 CC \
37829 CFLAGS \
37830 compiler \
37831 lt_cv_sys_global_symbol_pipe \
37832 lt_cv_sys_global_symbol_to_cdecl \
37833 lt_cv_sys_global_symbol_to_c_name_address \
37834 lt_cv_sys_global_symbol_to_c_name_address_lib_prefix \
37835 nm_file_list_spec \
37836 lt_prog_compiler_no_builtin_flag \
37837 lt_prog_compiler_pic \
37838 lt_prog_compiler_wl \
37839 lt_prog_compiler_static \
37840 lt_cv_prog_compiler_c_o \
37841 need_locks \
37842 MANIFEST_TOOL \
37843 DSYMUTIL \
37844 NMEDIT \
37845 LIPO \
37846 OTOOL \
37847 OTOOL64 \
37848 shrext_cmds \
37849 export_dynamic_flag_spec \
37850 whole_archive_flag_spec \
37851 compiler_needs_object \
37852 with_gnu_ld \
37853 allow_undefined_flag \
37854 no_undefined_flag \
37855 hardcode_libdir_flag_spec \
37856 hardcode_libdir_separator \
37857 exclude_expsyms \
37858 include_expsyms \
37859 file_list_spec \
37860 variables_saved_for_relink \
37861 libname_spec \
37862 library_names_spec \
37863 soname_spec \
37864 install_override_mode \
37865 finish_eval \
37866 old_striplib \
37867 striplib; do
37868 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
37869 *[\\\\\\\`\\"\\\$]*)
37870 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED \\"\\\$sed_quote_subst\\"\\\`\\\\\\""
37871 ;;
37872 *)
37873 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
37874 ;;
37875 esac
37876 done
37878 # Double-quote double-evaled strings.
37879 for var in reload_cmds \
37880 old_postinstall_cmds \
37881 old_postuninstall_cmds \
37882 old_archive_cmds \
37883 extract_expsyms_cmds \
37884 old_archive_from_new_cmds \
37885 old_archive_from_expsyms_cmds \
37886 archive_cmds \
37887 archive_expsym_cmds \
37888 module_cmds \
37889 module_expsym_cmds \
37890 export_symbols_cmds \
37891 prelink_cmds \
37892 postlink_cmds \
37893 postinstall_cmds \
37894 postuninstall_cmds \
37895 finish_cmds \
37896 sys_lib_search_path_spec \
37897 sys_lib_dlsearch_path_spec; do
37898 case \`eval \\\\\$ECHO \\\\""\\\\\$\$var"\\\\"\` in
37899 *[\\\\\\\`\\"\\\$]*)
37900 eval "lt_\$var=\\\\\\"\\\`\\\$ECHO \\"\\\$\$var\\" | \\\$SED -e \\"\\\$double_quote_subst\\" -e \\"\\\$sed_quote_subst\\" -e \\"\\\$delay_variable_subst\\"\\\`\\\\\\""
37901 ;;
37902 *)
37903 eval "lt_\$var=\\\\\\"\\\$\$var\\\\\\""
37904 ;;
37905 esac
37906 done
37908 ac_aux_dir='$ac_aux_dir'
37909 xsi_shell='$xsi_shell'
37910 lt_shell_append='$lt_shell_append'
37912 # See if we are running on zsh, and set the options which allow our
37913 # commands through without removal of \ escapes INIT.
37914 if test -n "\${ZSH_VERSION+set}" ; then
37915 setopt NO_GLOB_SUBST
37916 fi
37919 PACKAGE='$PACKAGE'
37920 VERSION='$VERSION'
37921 TIMESTAMP='$TIMESTAMP'
37922 RM='$RM'
37923 ofile='$ofile'
37927 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
37929 _ACEOF
37931 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
37933 # Handling of arguments.
37934 for ac_config_target in $ac_config_targets
37935 do
37936 case $ac_config_target in
37937 "src/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/config.h" ;;
37938 "libtool") CONFIG_COMMANDS="$CONFIG_COMMANDS libtool" ;;
37939 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
37940 "src/libcollectdclient/collectd/lcc_features.h") CONFIG_FILES="$CONFIG_FILES src/libcollectdclient/collectd/lcc_features.h" ;;
37941 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
37942 "src/Makefile") CONFIG_FILES="$CONFIG_FILES src/Makefile" ;;
37943 "src/daemon/Makefile") CONFIG_FILES="$CONFIG_FILES src/daemon/Makefile" ;;
37944 "src/collectd.conf") CONFIG_FILES="$CONFIG_FILES src/collectd.conf" ;;
37945 "src/libcollectdclient/Makefile") CONFIG_FILES="$CONFIG_FILES src/libcollectdclient/Makefile" ;;
37946 "src/libcollectdclient/libcollectdclient.pc") CONFIG_FILES="$CONFIG_FILES src/libcollectdclient/libcollectdclient.pc" ;;
37947 "src/liboconfig/Makefile") CONFIG_FILES="$CONFIG_FILES src/liboconfig/Makefile" ;;
37948 "bindings/Makefile") CONFIG_FILES="$CONFIG_FILES bindings/Makefile" ;;
37949 "bindings/java/Makefile") CONFIG_FILES="$CONFIG_FILES bindings/java/Makefile" ;;
37951 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
37952 esac
37953 done
37956 # If the user did not use the arguments to specify the items to instantiate,
37957 # then the envvar interface is used. Set only those that are not.
37958 # We use the long form for the default assignment because of an extremely
37959 # bizarre bug on SunOS 4.1.3.
37960 if $ac_need_defaults; then
37961 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
37962 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
37963 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
37964 fi
37966 # Have a temporary directory for convenience. Make it in the build tree
37967 # simply because there is no reason against having it here, and in addition,
37968 # creating and moving files from /tmp can sometimes cause problems.
37969 # Hook for its removal unless debugging.
37970 # Note that there is a small window in which the directory will not be cleaned:
37971 # after its creation but before its name has been assigned to `$tmp'.
37972 $debug ||
37973 {
37974 tmp= ac_tmp=
37975 trap 'exit_status=$?
37976 : "${ac_tmp:=$tmp}"
37977 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
37978 ' 0
37979 trap 'as_fn_exit 1' 1 2 13 15
37980 }
37981 # Create a (secure) tmp directory for tmp files.
37983 {
37984 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
37985 test -d "$tmp"
37986 } ||
37987 {
37988 tmp=./conf$$-$RANDOM
37989 (umask 077 && mkdir "$tmp")
37990 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
37991 ac_tmp=$tmp
37993 # Set up the scripts for CONFIG_FILES section.
37994 # No need to generate them if there are no CONFIG_FILES.
37995 # This happens for instance with `./config.status config.h'.
37996 if test -n "$CONFIG_FILES"; then
37999 ac_cr=`echo X | tr X '\015'`
38000 # On cygwin, bash can eat \r inside `` if the user requested igncr.
38001 # But we know of no other shell where ac_cr would be empty at this
38002 # point, so we can use a bashism as a fallback.
38003 if test "x$ac_cr" = x; then
38004 eval ac_cr=\$\'\\r\'
38005 fi
38006 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
38007 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
38008 ac_cs_awk_cr='\\r'
38009 else
38010 ac_cs_awk_cr=$ac_cr
38011 fi
38013 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
38014 _ACEOF
38017 {
38018 echo "cat >conf$$subs.awk <<_ACEOF" &&
38019 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
38020 echo "_ACEOF"
38021 } >conf$$subs.sh ||
38022 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
38023 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
38024 ac_delim='%!_!# '
38025 for ac_last_try in false false false false false :; do
38026 . ./conf$$subs.sh ||
38027 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
38029 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
38030 if test $ac_delim_n = $ac_delim_num; then
38031 break
38032 elif $ac_last_try; then
38033 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
38034 else
38035 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
38036 fi
38037 done
38038 rm -f conf$$subs.sh
38040 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38041 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
38042 _ACEOF
38043 sed -n '
38044 h
38045 s/^/S["/; s/!.*/"]=/
38046 p
38047 g
38048 s/^[^!]*!//
38049 :repl
38050 t repl
38051 s/'"$ac_delim"'$//
38052 t delim
38053 :nl
38054 h
38055 s/\(.\{148\}\)..*/\1/
38056 t more1
38057 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
38058 p
38059 n
38060 b repl
38061 :more1
38062 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
38063 p
38064 g
38065 s/.\{148\}//
38066 t nl
38067 :delim
38068 h
38069 s/\(.\{148\}\)..*/\1/
38070 t more2
38071 s/["\\]/\\&/g; s/^/"/; s/$/"/
38072 p
38073 b
38074 :more2
38075 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
38076 p
38077 g
38078 s/.\{148\}//
38079 t delim
38080 ' <conf$$subs.awk | sed '
38081 /^[^""]/{
38082 N
38083 s/\n//
38084 }
38085 ' >>$CONFIG_STATUS || ac_write_fail=1
38086 rm -f conf$$subs.awk
38087 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38088 _ACAWK
38089 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
38090 for (key in S) S_is_set[key] = 1
38091 FS = "\a"
38093 }
38094 {
38095 line = $ 0
38096 nfields = split(line, field, "@")
38097 substed = 0
38098 len = length(field[1])
38099 for (i = 2; i < nfields; i++) {
38100 key = field[i]
38101 keylen = length(key)
38102 if (S_is_set[key]) {
38103 value = S[key]
38104 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
38105 len += length(value) + length(field[++i])
38106 substed = 1
38107 } else
38108 len += 1 + keylen
38109 }
38111 print line
38112 }
38114 _ACAWK
38115 _ACEOF
38116 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38117 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
38118 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
38119 else
38120 cat
38121 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
38122 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
38123 _ACEOF
38125 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
38126 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
38127 # trailing colons and then remove the whole line if VPATH becomes empty
38128 # (actually we leave an empty line to preserve line numbers).
38129 if test "x$srcdir" = x.; then
38130 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
38131 h
38132 s///
38133 s/^/:/
38134 s/[ ]*$/:/
38135 s/:\$(srcdir):/:/g
38136 s/:\${srcdir}:/:/g
38137 s/:@srcdir@:/:/g
38138 s/^:*//
38139 s/:*$//
38140 x
38141 s/\(=[ ]*\).*/\1/
38142 G
38143 s/\n//
38144 s/^[^=]*=[ ]*$//
38145 }'
38146 fi
38148 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38149 fi # test -n "$CONFIG_FILES"
38151 # Set up the scripts for CONFIG_HEADERS section.
38152 # No need to generate them if there are no CONFIG_HEADERS.
38153 # This happens for instance with `./config.status Makefile'.
38154 if test -n "$CONFIG_HEADERS"; then
38155 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
38156 BEGIN {
38157 _ACEOF
38159 # Transform confdefs.h into an awk script `defines.awk', embedded as
38160 # here-document in config.status, that substitutes the proper values into
38161 # config.h.in to produce config.h.
38163 # Create a delimiter string that does not exist in confdefs.h, to ease
38164 # handling of long lines.
38165 ac_delim='%!_!# '
38166 for ac_last_try in false false :; do
38167 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
38168 if test -z "$ac_tt"; then
38169 break
38170 elif $ac_last_try; then
38171 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
38172 else
38173 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
38174 fi
38175 done
38177 # For the awk script, D is an array of macro values keyed by name,
38178 # likewise P contains macro parameters if any. Preserve backslash
38179 # newline sequences.
38181 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
38182 sed -n '
38183 s/.\{148\}/&'"$ac_delim"'/g
38184 t rset
38185 :rset
38186 s/^[ ]*#[ ]*define[ ][ ]*/ /
38187 t def
38188 d
38189 :def
38190 s/\\$//
38191 t bsnl
38192 s/["\\]/\\&/g
38193 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
38194 D["\1"]=" \3"/p
38195 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
38196 d
38197 :bsnl
38198 s/["\\]/\\&/g
38199 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
38200 D["\1"]=" \3\\\\\\n"\\/p
38201 t cont
38202 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
38203 t cont
38204 d
38205 :cont
38206 n
38207 s/.\{148\}/&'"$ac_delim"'/g
38208 t clear
38209 :clear
38210 s/\\$//
38211 t bsnlc
38212 s/["\\]/\\&/g; s/^/"/; s/$/"/p
38213 d
38214 :bsnlc
38215 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
38216 b cont
38217 ' <confdefs.h | sed '
38218 s/'"$ac_delim"'/"\\\
38219 "/g' >>$CONFIG_STATUS || ac_write_fail=1
38221 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38222 for (key in D) D_is_set[key] = 1
38223 FS = "\a"
38224 }
38225 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
38226 line = \$ 0
38227 split(line, arg, " ")
38228 if (arg[1] == "#") {
38229 defundef = arg[2]
38230 mac1 = arg[3]
38231 } else {
38232 defundef = substr(arg[1], 2)
38233 mac1 = arg[2]
38234 }
38235 split(mac1, mac2, "(") #)
38236 macro = mac2[1]
38237 prefix = substr(line, 1, index(line, defundef) - 1)
38238 if (D_is_set[macro]) {
38239 # Preserve the white space surrounding the "#".
38240 print prefix "define", macro P[macro] D[macro]
38241 next
38242 } else {
38243 # Replace #undef with comments. This is necessary, for example,
38244 # in the case of _POSIX_SOURCE, which is predefined and required
38245 # on some systems where configure will not decide to define it.
38246 if (defundef == "undef") {
38247 print "/*", prefix defundef, macro, "*/"
38248 next
38249 }
38250 }
38251 }
38252 { print }
38253 _ACAWK
38254 _ACEOF
38255 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38256 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
38257 fi # test -n "$CONFIG_HEADERS"
38260 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
38261 shift
38262 for ac_tag
38263 do
38264 case $ac_tag in
38265 :[FHLC]) ac_mode=$ac_tag; continue;;
38266 esac
38267 case $ac_mode$ac_tag in
38268 :[FHL]*:*);;
38269 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
38270 :[FH]-) ac_tag=-:-;;
38271 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
38272 esac
38273 ac_save_IFS=$IFS
38274 IFS=:
38275 set x $ac_tag
38276 IFS=$ac_save_IFS
38277 shift
38278 ac_file=$1
38279 shift
38281 case $ac_mode in
38282 :L) ac_source=$1;;
38283 :[FH])
38284 ac_file_inputs=
38285 for ac_f
38286 do
38287 case $ac_f in
38288 -) ac_f="$ac_tmp/stdin";;
38289 *) # Look for the file first in the build tree, then in the source tree
38290 # (if the path is not absolute). The absolute path cannot be DOS-style,
38291 # because $ac_f cannot contain `:'.
38292 test -f "$ac_f" ||
38293 case $ac_f in
38294 [\\/$]*) false;;
38295 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
38296 esac ||
38297 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
38298 esac
38299 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
38300 as_fn_append ac_file_inputs " '$ac_f'"
38301 done
38303 # Let's still pretend it is `configure' which instantiates (i.e., don't
38304 # use $as_me), people would be surprised to read:
38305 # /* config.h. Generated by config.status. */
38306 configure_input='Generated from '`
38307 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
38308 `' by configure.'
38309 if test x"$ac_file" != x-; then
38310 configure_input="$ac_file. $configure_input"
38311 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
38312 $as_echo "$as_me: creating $ac_file" >&6;}
38313 fi
38314 # Neutralize special characters interpreted by sed in replacement strings.
38315 case $configure_input in #(
38316 *\&* | *\|* | *\\* )
38317 ac_sed_conf_input=`$as_echo "$configure_input" |
38318 sed 's/[\\\\&|]/\\\\&/g'`;; #(
38319 *) ac_sed_conf_input=$configure_input;;
38320 esac
38322 case $ac_tag in
38323 *:-:* | *:-) cat >"$ac_tmp/stdin" \
38324 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
38325 esac
38326 ;;
38327 esac
38329 ac_dir=`$as_dirname -- "$ac_file" ||
38330 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38331 X"$ac_file" : 'X\(//\)[^/]' \| \
38332 X"$ac_file" : 'X\(//\)$' \| \
38333 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
38334 $as_echo X"$ac_file" |
38335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38336 s//\1/
38337 q
38338 }
38339 /^X\(\/\/\)[^/].*/{
38340 s//\1/
38341 q
38342 }
38343 /^X\(\/\/\)$/{
38344 s//\1/
38345 q
38346 }
38347 /^X\(\/\).*/{
38348 s//\1/
38349 q
38350 }
38351 s/.*/./; q'`
38352 as_dir="$ac_dir"; as_fn_mkdir_p
38353 ac_builddir=.
38355 case "$ac_dir" in
38356 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
38357 *)
38358 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
38359 # A ".." for each directory in $ac_dir_suffix.
38360 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
38361 case $ac_top_builddir_sub in
38362 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
38363 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
38364 esac ;;
38365 esac
38366 ac_abs_top_builddir=$ac_pwd
38367 ac_abs_builddir=$ac_pwd$ac_dir_suffix
38368 # for backward compatibility:
38369 ac_top_builddir=$ac_top_build_prefix
38371 case $srcdir in
38372 .) # We are building in place.
38373 ac_srcdir=.
38374 ac_top_srcdir=$ac_top_builddir_sub
38375 ac_abs_top_srcdir=$ac_pwd ;;
38376 [\\/]* | ?:[\\/]* ) # Absolute name.
38377 ac_srcdir=$srcdir$ac_dir_suffix;
38378 ac_top_srcdir=$srcdir
38379 ac_abs_top_srcdir=$srcdir ;;
38380 *) # Relative name.
38381 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
38382 ac_top_srcdir=$ac_top_build_prefix$srcdir
38383 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
38384 esac
38385 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
38388 case $ac_mode in
38389 :F)
38390 #
38391 # CONFIG_FILE
38392 #
38394 case $INSTALL in
38395 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
38396 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
38397 esac
38398 ac_MKDIR_P=$MKDIR_P
38399 case $MKDIR_P in
38400 [\\/$]* | ?:[\\/]* ) ;;
38401 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
38402 esac
38403 _ACEOF
38405 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38406 # If the template does not know about datarootdir, expand it.
38407 # FIXME: This hack should be removed a few years after 2.60.
38408 ac_datarootdir_hack=; ac_datarootdir_seen=
38409 ac_sed_dataroot='
38410 /datarootdir/ {
38411 p
38412 q
38413 }
38414 /@datadir@/p
38415 /@docdir@/p
38416 /@infodir@/p
38417 /@localedir@/p
38418 /@mandir@/p'
38419 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
38420 *datarootdir*) ac_datarootdir_seen=yes;;
38421 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
38422 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
38423 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
38424 _ACEOF
38425 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38426 ac_datarootdir_hack='
38427 s&@datadir@&$datadir&g
38428 s&@docdir@&$docdir&g
38429 s&@infodir@&$infodir&g
38430 s&@localedir@&$localedir&g
38431 s&@mandir@&$mandir&g
38432 s&\\\${datarootdir}&$datarootdir&g' ;;
38433 esac
38434 _ACEOF
38436 # Neutralize VPATH when `$srcdir' = `.'.
38437 # Shell code in configure.ac might set extrasub.
38438 # FIXME: do we really want to maintain this feature?
38439 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
38440 ac_sed_extra="$ac_vpsub
38441 $extrasub
38442 _ACEOF
38443 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
38444 :t
38445 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
38446 s|@configure_input@|$ac_sed_conf_input|;t t
38447 s&@top_builddir@&$ac_top_builddir_sub&;t t
38448 s&@top_build_prefix@&$ac_top_build_prefix&;t t
38449 s&@srcdir@&$ac_srcdir&;t t
38450 s&@abs_srcdir@&$ac_abs_srcdir&;t t
38451 s&@top_srcdir@&$ac_top_srcdir&;t t
38452 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
38453 s&@builddir@&$ac_builddir&;t t
38454 s&@abs_builddir@&$ac_abs_builddir&;t t
38455 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
38456 s&@INSTALL@&$ac_INSTALL&;t t
38457 s&@MKDIR_P@&$ac_MKDIR_P&;t t
38458 $ac_datarootdir_hack
38459 "
38460 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
38461 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
38463 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
38464 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
38465 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
38466 "$ac_tmp/out"`; test -z "$ac_out"; } &&
38467 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
38468 which seems to be undefined. Please make sure it is defined" >&5
38469 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
38470 which seems to be undefined. Please make sure it is defined" >&2;}
38472 rm -f "$ac_tmp/stdin"
38473 case $ac_file in
38474 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
38475 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
38476 esac \
38477 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
38478 ;;
38479 :H)
38480 #
38481 # CONFIG_HEADER
38482 #
38483 if test x"$ac_file" != x-; then
38484 {
38485 $as_echo "/* $configure_input */" \
38486 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
38487 } >"$ac_tmp/config.h" \
38488 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
38489 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
38490 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
38491 $as_echo "$as_me: $ac_file is unchanged" >&6;}
38492 else
38493 rm -f "$ac_file"
38494 mv "$ac_tmp/config.h" "$ac_file" \
38495 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
38496 fi
38497 else
38498 $as_echo "/* $configure_input */" \
38499 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
38500 || as_fn_error $? "could not create -" "$LINENO" 5
38501 fi
38502 # Compute "$ac_file"'s index in $config_headers.
38503 _am_arg="$ac_file"
38504 _am_stamp_count=1
38505 for _am_header in $config_headers :; do
38506 case $_am_header in
38507 $_am_arg | $_am_arg:* )
38508 break ;;
38509 * )
38510 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
38511 esac
38512 done
38513 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
38514 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
38515 X"$_am_arg" : 'X\(//\)[^/]' \| \
38516 X"$_am_arg" : 'X\(//\)$' \| \
38517 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
38518 $as_echo X"$_am_arg" |
38519 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
38520 s//\1/
38521 q
38522 }
38523 /^X\(\/\/\)[^/].*/{
38524 s//\1/
38525 q
38526 }
38527 /^X\(\/\/\)$/{
38528 s//\1/
38529 q
38530 }
38531 /^X\(\/\).*/{
38532 s//\1/
38533 q
38534 }
38535 s/.*/./; q'`/stamp-h$_am_stamp_count
38536 ;;
38538 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
38539 $as_echo "$as_me: executing $ac_file commands" >&6;}
38540 ;;
38541 esac
38544 case $ac_file$ac_mode in
38545 "libtool":C)
38547 # See if we are running on zsh, and set the options which allow our
38548 # commands through without removal of \ escapes.
38549 if test -n "${ZSH_VERSION+set}" ; then
38550 setopt NO_GLOB_SUBST
38551 fi
38553 cfgfile="${ofile}T"
38554 trap "$RM \"$cfgfile\"; exit 1" 1 2 15
38555 $RM "$cfgfile"
38557 cat <<_LT_EOF >> "$cfgfile"
38558 #! $SHELL
38560 # `$ECHO "$ofile" | sed 's%^.*/%%'` - Provide generalized library-building support services.
38561 # Generated automatically by $as_me ($PACKAGE$TIMESTAMP) $VERSION
38562 # Libtool was configured on host `(hostname || uname -n) 2>/dev/null | sed 1q`:
38563 # NOTE: Changes made to this file will be lost: look at ltmain.sh.
38564 #
38565 # Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001, 2003, 2004, 2005,
38566 # 2006, 2007, 2008, 2009, 2010, 2011 Free Software
38567 # Foundation, Inc.
38568 # Written by Gordon Matzigkeit, 1996
38569 #
38570 # This file is part of GNU Libtool.
38571 #
38572 # GNU Libtool is free software; you can redistribute it and/or
38573 # modify it under the terms of the GNU General Public License as
38574 # published by the Free Software Foundation; either version 2 of
38575 # the License, or (at your option) any later version.
38576 #
38577 # As a special exception to the GNU General Public License,
38578 # if you distribute this file as part of a program or library that
38579 # is built using GNU Libtool, you may include this file under the
38580 # same distribution terms that you use for the rest of that program.
38581 #
38582 # GNU Libtool is distributed in the hope that it will be useful,
38583 # but WITHOUT ANY WARRANTY; without even the implied warranty of
38584 # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
38585 # GNU General Public License for more details.
38586 #
38587 # You should have received a copy of the GNU General Public License
38588 # along with GNU Libtool; see the file COPYING. If not, a copy
38589 # can be downloaded from http://www.gnu.org/licenses/gpl.html, or
38590 # obtained by writing to the Free Software Foundation, Inc.,
38591 # 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301, USA.
38594 # The names of the tagged configurations supported by this script.
38595 available_tags=""
38597 # ### BEGIN LIBTOOL CONFIG
38599 # Which release of libtool.m4 was used?
38600 macro_version=$macro_version
38601 macro_revision=$macro_revision
38603 # Whether or not to build shared libraries.
38604 build_libtool_libs=$enable_shared
38606 # Whether or not to build static libraries.
38607 build_old_libs=$enable_static
38609 # What type of objects to build.
38610 pic_mode=$pic_mode
38612 # Whether or not to optimize for fast installation.
38613 fast_install=$enable_fast_install
38615 # Shell to use when invoking shell scripts.
38616 SHELL=$lt_SHELL
38618 # An echo program that protects backslashes.
38619 ECHO=$lt_ECHO
38621 # The PATH separator for the build system.
38622 PATH_SEPARATOR=$lt_PATH_SEPARATOR
38624 # The host system.
38625 host_alias=$host_alias
38626 host=$host
38627 host_os=$host_os
38629 # The build system.
38630 build_alias=$build_alias
38631 build=$build
38632 build_os=$build_os
38634 # A sed program that does not truncate output.
38635 SED=$lt_SED
38637 # Sed that helps us avoid accidentally triggering echo(1) options like -n.
38638 Xsed="\$SED -e 1s/^X//"
38640 # A grep program that handles long lines.
38641 GREP=$lt_GREP
38643 # An ERE matcher.
38644 EGREP=$lt_EGREP
38646 # A literal string matcher.
38647 FGREP=$lt_FGREP
38649 # A BSD- or MS-compatible name lister.
38650 NM=$lt_NM
38652 # Whether we need soft or hard links.
38653 LN_S=$lt_LN_S
38655 # What is the maximum length of a command?
38656 max_cmd_len=$max_cmd_len
38658 # Object file suffix (normally "o").
38659 objext=$ac_objext
38661 # Executable file suffix (normally "").
38662 exeext=$exeext
38664 # whether the shell understands "unset".
38665 lt_unset=$lt_unset
38667 # turn spaces into newlines.
38668 SP2NL=$lt_lt_SP2NL
38670 # turn newlines into spaces.
38671 NL2SP=$lt_lt_NL2SP
38673 # convert \$build file names to \$host format.
38674 to_host_file_cmd=$lt_cv_to_host_file_cmd
38676 # convert \$build files to toolchain format.
38677 to_tool_file_cmd=$lt_cv_to_tool_file_cmd
38679 # An object symbol dumper.
38680 OBJDUMP=$lt_OBJDUMP
38682 # Method to check whether dependent libraries are shared objects.
38683 deplibs_check_method=$lt_deplibs_check_method
38685 # Command to use when deplibs_check_method = "file_magic".
38686 file_magic_cmd=$lt_file_magic_cmd
38688 # How to find potential files when deplibs_check_method = "file_magic".
38689 file_magic_glob=$lt_file_magic_glob
38691 # Find potential files using nocaseglob when deplibs_check_method = "file_magic".
38692 want_nocaseglob=$lt_want_nocaseglob
38694 # DLL creation program.
38695 DLLTOOL=$lt_DLLTOOL
38697 # Command to associate shared and link libraries.
38698 sharedlib_from_linklib_cmd=$lt_sharedlib_from_linklib_cmd
38700 # The archiver.
38701 AR=$lt_AR
38703 # Flags to create an archive.
38704 AR_FLAGS=$lt_AR_FLAGS
38706 # How to feed a file listing to the archiver.
38707 archiver_list_spec=$lt_archiver_list_spec
38709 # A symbol stripping program.
38710 STRIP=$lt_STRIP
38712 # Commands used to install an old-style archive.
38713 RANLIB=$lt_RANLIB
38714 old_postinstall_cmds=$lt_old_postinstall_cmds
38715 old_postuninstall_cmds=$lt_old_postuninstall_cmds
38717 # Whether to use a lock for old archive extraction.
38718 lock_old_archive_extraction=$lock_old_archive_extraction
38720 # A C compiler.
38721 LTCC=$lt_CC
38723 # LTCC compiler flags.
38724 LTCFLAGS=$lt_CFLAGS
38726 # Take the output of nm and produce a listing of raw symbols and C names.
38727 global_symbol_pipe=$lt_lt_cv_sys_global_symbol_pipe
38729 # Transform the output of nm in a proper C declaration.
38730 global_symbol_to_cdecl=$lt_lt_cv_sys_global_symbol_to_cdecl
38732 # Transform the output of nm in a C name address pair.
38733 global_symbol_to_c_name_address=$lt_lt_cv_sys_global_symbol_to_c_name_address
38735 # Transform the output of nm in a C name address pair when lib prefix is needed.
38736 global_symbol_to_c_name_address_lib_prefix=$lt_lt_cv_sys_global_symbol_to_c_name_address_lib_prefix
38738 # Specify filename containing input files for \$NM.
38739 nm_file_list_spec=$lt_nm_file_list_spec
38741 # The root where to search for dependent libraries,and in which our libraries should be installed.
38742 lt_sysroot=$lt_sysroot
38744 # The name of the directory that contains temporary libtool files.
38745 objdir=$objdir
38747 # Used to examine libraries when file_magic_cmd begins with "file".
38748 MAGIC_CMD=$MAGIC_CMD
38750 # Must we lock files when doing compilation?
38751 need_locks=$lt_need_locks
38753 # Manifest tool.
38754 MANIFEST_TOOL=$lt_MANIFEST_TOOL
38756 # Tool to manipulate archived DWARF debug symbol files on Mac OS X.
38757 DSYMUTIL=$lt_DSYMUTIL
38759 # Tool to change global to local symbols on Mac OS X.
38760 NMEDIT=$lt_NMEDIT
38762 # Tool to manipulate fat objects and archives on Mac OS X.
38763 LIPO=$lt_LIPO
38765 # ldd/readelf like tool for Mach-O binaries on Mac OS X.
38766 OTOOL=$lt_OTOOL
38768 # ldd/readelf like tool for 64 bit Mach-O binaries on Mac OS X 10.4.
38769 OTOOL64=$lt_OTOOL64
38771 # Old archive suffix (normally "a").
38772 libext=$libext
38774 # Shared library suffix (normally ".so").
38775 shrext_cmds=$lt_shrext_cmds
38777 # The commands to extract the exported symbol list from a shared archive.
38778 extract_expsyms_cmds=$lt_extract_expsyms_cmds
38780 # Variables whose values should be saved in libtool wrapper scripts and
38781 # restored at link time.
38782 variables_saved_for_relink=$lt_variables_saved_for_relink
38784 # Do we need the "lib" prefix for modules?
38785 need_lib_prefix=$need_lib_prefix
38787 # Do we need a version for libraries?
38788 need_version=$need_version
38790 # Library versioning type.
38791 version_type=$version_type
38793 # Shared library runtime path variable.
38794 runpath_var=$runpath_var
38796 # Shared library path variable.
38797 shlibpath_var=$shlibpath_var
38799 # Is shlibpath searched before the hard-coded library search path?
38800 shlibpath_overrides_runpath=$shlibpath_overrides_runpath
38802 # Format of library name prefix.
38803 libname_spec=$lt_libname_spec
38805 # List of archive names. First name is the real one, the rest are links.
38806 # The last name is the one that the linker finds with -lNAME
38807 library_names_spec=$lt_library_names_spec
38809 # The coded name of the library, if different from the real name.
38810 soname_spec=$lt_soname_spec
38812 # Permission mode override for installation of shared libraries.
38813 install_override_mode=$lt_install_override_mode
38815 # Command to use after installation of a shared archive.
38816 postinstall_cmds=$lt_postinstall_cmds
38818 # Command to use after uninstallation of a shared archive.
38819 postuninstall_cmds=$lt_postuninstall_cmds
38821 # Commands used to finish a libtool library installation in a directory.
38822 finish_cmds=$lt_finish_cmds
38824 # As "finish_cmds", except a single script fragment to be evaled but
38825 # not shown.
38826 finish_eval=$lt_finish_eval
38828 # Whether we should hardcode library paths into libraries.
38829 hardcode_into_libs=$hardcode_into_libs
38831 # Compile-time system search path for libraries.
38832 sys_lib_search_path_spec=$lt_sys_lib_search_path_spec
38834 # Run-time system search path for libraries.
38835 sys_lib_dlsearch_path_spec=$lt_sys_lib_dlsearch_path_spec
38837 # Whether dlopen is supported.
38838 dlopen_support=$enable_dlopen
38840 # Whether dlopen of programs is supported.
38841 dlopen_self=$enable_dlopen_self
38843 # Whether dlopen of statically linked programs is supported.
38844 dlopen_self_static=$enable_dlopen_self_static
38846 # Commands to strip libraries.
38847 old_striplib=$lt_old_striplib
38848 striplib=$lt_striplib
38851 # The linker used to build libraries.
38852 LD=$lt_LD
38854 # How to create reloadable object files.
38855 reload_flag=$lt_reload_flag
38856 reload_cmds=$lt_reload_cmds
38858 # Commands used to build an old-style archive.
38859 old_archive_cmds=$lt_old_archive_cmds
38861 # A language specific compiler.
38862 CC=$lt_compiler
38864 # Is the compiler the GNU compiler?
38865 with_gcc=$GCC
38867 # Compiler flag to turn off builtin functions.
38868 no_builtin_flag=$lt_lt_prog_compiler_no_builtin_flag
38870 # Additional compiler flags for building library objects.
38871 pic_flag=$lt_lt_prog_compiler_pic
38873 # How to pass a linker flag through the compiler.
38874 wl=$lt_lt_prog_compiler_wl
38876 # Compiler flag to prevent dynamic linking.
38877 link_static_flag=$lt_lt_prog_compiler_static
38879 # Does compiler simultaneously support -c and -o options?
38880 compiler_c_o=$lt_lt_cv_prog_compiler_c_o
38882 # Whether or not to add -lc for building shared libraries.
38883 build_libtool_need_lc=$archive_cmds_need_lc
38885 # Whether or not to disallow shared libs when runtime libs are static.
38886 allow_libtool_libs_with_static_runtimes=$enable_shared_with_static_runtimes
38888 # Compiler flag to allow reflexive dlopens.
38889 export_dynamic_flag_spec=$lt_export_dynamic_flag_spec
38891 # Compiler flag to generate shared objects directly from archives.
38892 whole_archive_flag_spec=$lt_whole_archive_flag_spec
38894 # Whether the compiler copes with passing no objects directly.
38895 compiler_needs_object=$lt_compiler_needs_object
38897 # Create an old-style archive from a shared archive.
38898 old_archive_from_new_cmds=$lt_old_archive_from_new_cmds
38900 # Create a temporary old-style archive to link instead of a shared archive.
38901 old_archive_from_expsyms_cmds=$lt_old_archive_from_expsyms_cmds
38903 # Commands used to build a shared archive.
38904 archive_cmds=$lt_archive_cmds
38905 archive_expsym_cmds=$lt_archive_expsym_cmds
38907 # Commands used to build a loadable module if different from building
38908 # a shared archive.
38909 module_cmds=$lt_module_cmds
38910 module_expsym_cmds=$lt_module_expsym_cmds
38912 # Whether we are building with GNU ld or not.
38913 with_gnu_ld=$lt_with_gnu_ld
38915 # Flag that allows shared libraries with undefined symbols to be built.
38916 allow_undefined_flag=$lt_allow_undefined_flag
38918 # Flag that enforces no undefined symbols.
38919 no_undefined_flag=$lt_no_undefined_flag
38921 # Flag to hardcode \$libdir into a binary during linking.
38922 # This must work even if \$libdir does not exist
38923 hardcode_libdir_flag_spec=$lt_hardcode_libdir_flag_spec
38925 # Whether we need a single "-rpath" flag with a separated argument.
38926 hardcode_libdir_separator=$lt_hardcode_libdir_separator
38928 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38929 # DIR into the resulting binary.
38930 hardcode_direct=$hardcode_direct
38932 # Set to "yes" if using DIR/libNAME\${shared_ext} during linking hardcodes
38933 # DIR into the resulting binary and the resulting library dependency is
38934 # "absolute",i.e impossible to change by setting \${shlibpath_var} if the
38935 # library is relocated.
38936 hardcode_direct_absolute=$hardcode_direct_absolute
38938 # Set to "yes" if using the -LDIR flag during linking hardcodes DIR
38939 # into the resulting binary.
38940 hardcode_minus_L=$hardcode_minus_L
38942 # Set to "yes" if using SHLIBPATH_VAR=DIR during linking hardcodes DIR
38943 # into the resulting binary.
38944 hardcode_shlibpath_var=$hardcode_shlibpath_var
38946 # Set to "yes" if building a shared library automatically hardcodes DIR
38947 # into the library and all subsequent libraries and executables linked
38948 # against it.
38949 hardcode_automatic=$hardcode_automatic
38951 # Set to yes if linker adds runtime paths of dependent libraries
38952 # to runtime path list.
38953 inherit_rpath=$inherit_rpath
38955 # Whether libtool must link a program against all its dependency libraries.
38956 link_all_deplibs=$link_all_deplibs
38958 # Set to "yes" if exported symbols are required.
38959 always_export_symbols=$always_export_symbols
38961 # The commands to list exported symbols.
38962 export_symbols_cmds=$lt_export_symbols_cmds
38964 # Symbols that should not be listed in the preloaded symbols.
38965 exclude_expsyms=$lt_exclude_expsyms
38967 # Symbols that must always be exported.
38968 include_expsyms=$lt_include_expsyms
38970 # Commands necessary for linking programs (against libraries) with templates.
38971 prelink_cmds=$lt_prelink_cmds
38973 # Commands necessary for finishing linking programs.
38974 postlink_cmds=$lt_postlink_cmds
38976 # Specify filename containing input files.
38977 file_list_spec=$lt_file_list_spec
38979 # How to hardcode a shared library path into an executable.
38980 hardcode_action=$hardcode_action
38982 # ### END LIBTOOL CONFIG
38984 _LT_EOF
38986 case $host_os in
38987 aix3*)
38988 cat <<\_LT_EOF >> "$cfgfile"
38989 # AIX sometimes has problems with the GCC collect2 program. For some
38990 # reason, if we set the COLLECT_NAMES environment variable, the problems
38991 # vanish in a puff of smoke.
38992 if test "X${COLLECT_NAMES+set}" != Xset; then
38993 COLLECT_NAMES=
38994 export COLLECT_NAMES
38995 fi
38996 _LT_EOF
38997 ;;
38998 esac
39001 ltmain="$ac_aux_dir/ltmain.sh"
39004 # We use sed instead of cat because bash on DJGPP gets confused if
39005 # if finds mixed CR/LF and LF-only lines. Since sed operates in
39006 # text mode, it properly converts lines to CR/LF. This bash problem
39007 # is reportedly fixed, but why not run on old versions too?
39008 sed '$q' "$ltmain" >> "$cfgfile" \
39009 || (rm -f "$cfgfile"; exit 1)
39011 if test x"$xsi_shell" = xyes; then
39012 sed -e '/^func_dirname ()$/,/^} # func_dirname /c\
39013 func_dirname ()\
39014 {\
39015 \ case ${1} in\
39016 \ */*) func_dirname_result="${1%/*}${2}" ;;\
39017 \ * ) func_dirname_result="${3}" ;;\
39018 \ esac\
39019 } # Extended-shell func_dirname implementation' "$cfgfile" > $cfgfile.tmp \
39020 && mv -f "$cfgfile.tmp" "$cfgfile" \
39021 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39022 test 0 -eq $? || _lt_function_replace_fail=:
39025 sed -e '/^func_basename ()$/,/^} # func_basename /c\
39026 func_basename ()\
39027 {\
39028 \ func_basename_result="${1##*/}"\
39029 } # Extended-shell func_basename implementation' "$cfgfile" > $cfgfile.tmp \
39030 && mv -f "$cfgfile.tmp" "$cfgfile" \
39031 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39032 test 0 -eq $? || _lt_function_replace_fail=:
39035 sed -e '/^func_dirname_and_basename ()$/,/^} # func_dirname_and_basename /c\
39036 func_dirname_and_basename ()\
39037 {\
39038 \ case ${1} in\
39039 \ */*) func_dirname_result="${1%/*}${2}" ;;\
39040 \ * ) func_dirname_result="${3}" ;;\
39041 \ esac\
39042 \ func_basename_result="${1##*/}"\
39043 } # Extended-shell func_dirname_and_basename implementation' "$cfgfile" > $cfgfile.tmp \
39044 && mv -f "$cfgfile.tmp" "$cfgfile" \
39045 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39046 test 0 -eq $? || _lt_function_replace_fail=:
39049 sed -e '/^func_stripname ()$/,/^} # func_stripname /c\
39050 func_stripname ()\
39051 {\
39052 \ # pdksh 5.2.14 does not do ${X%$Y} correctly if both X and Y are\
39053 \ # positional parameters, so assign one to ordinary parameter first.\
39054 \ func_stripname_result=${3}\
39055 \ func_stripname_result=${func_stripname_result#"${1}"}\
39056 \ func_stripname_result=${func_stripname_result%"${2}"}\
39057 } # Extended-shell func_stripname implementation' "$cfgfile" > $cfgfile.tmp \
39058 && mv -f "$cfgfile.tmp" "$cfgfile" \
39059 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39060 test 0 -eq $? || _lt_function_replace_fail=:
39063 sed -e '/^func_split_long_opt ()$/,/^} # func_split_long_opt /c\
39064 func_split_long_opt ()\
39065 {\
39066 \ func_split_long_opt_name=${1%%=*}\
39067 \ func_split_long_opt_arg=${1#*=}\
39068 } # Extended-shell func_split_long_opt implementation' "$cfgfile" > $cfgfile.tmp \
39069 && mv -f "$cfgfile.tmp" "$cfgfile" \
39070 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39071 test 0 -eq $? || _lt_function_replace_fail=:
39074 sed -e '/^func_split_short_opt ()$/,/^} # func_split_short_opt /c\
39075 func_split_short_opt ()\
39076 {\
39077 \ func_split_short_opt_arg=${1#??}\
39078 \ func_split_short_opt_name=${1%"$func_split_short_opt_arg"}\
39079 } # Extended-shell func_split_short_opt implementation' "$cfgfile" > $cfgfile.tmp \
39080 && mv -f "$cfgfile.tmp" "$cfgfile" \
39081 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39082 test 0 -eq $? || _lt_function_replace_fail=:
39085 sed -e '/^func_lo2o ()$/,/^} # func_lo2o /c\
39086 func_lo2o ()\
39087 {\
39088 \ case ${1} in\
39089 \ *.lo) func_lo2o_result=${1%.lo}.${objext} ;;\
39090 \ *) func_lo2o_result=${1} ;;\
39091 \ esac\
39092 } # Extended-shell func_lo2o implementation' "$cfgfile" > $cfgfile.tmp \
39093 && mv -f "$cfgfile.tmp" "$cfgfile" \
39094 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39095 test 0 -eq $? || _lt_function_replace_fail=:
39098 sed -e '/^func_xform ()$/,/^} # func_xform /c\
39099 func_xform ()\
39100 {\
39101 func_xform_result=${1%.*}.lo\
39102 } # Extended-shell func_xform implementation' "$cfgfile" > $cfgfile.tmp \
39103 && mv -f "$cfgfile.tmp" "$cfgfile" \
39104 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39105 test 0 -eq $? || _lt_function_replace_fail=:
39108 sed -e '/^func_arith ()$/,/^} # func_arith /c\
39109 func_arith ()\
39110 {\
39111 func_arith_result=$(( $* ))\
39112 } # Extended-shell func_arith implementation' "$cfgfile" > $cfgfile.tmp \
39113 && mv -f "$cfgfile.tmp" "$cfgfile" \
39114 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39115 test 0 -eq $? || _lt_function_replace_fail=:
39118 sed -e '/^func_len ()$/,/^} # func_len /c\
39119 func_len ()\
39120 {\
39121 func_len_result=${#1}\
39122 } # Extended-shell func_len implementation' "$cfgfile" > $cfgfile.tmp \
39123 && mv -f "$cfgfile.tmp" "$cfgfile" \
39124 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39125 test 0 -eq $? || _lt_function_replace_fail=:
39127 fi
39129 if test x"$lt_shell_append" = xyes; then
39130 sed -e '/^func_append ()$/,/^} # func_append /c\
39131 func_append ()\
39132 {\
39133 eval "${1}+=\\${2}"\
39134 } # Extended-shell func_append implementation' "$cfgfile" > $cfgfile.tmp \
39135 && mv -f "$cfgfile.tmp" "$cfgfile" \
39136 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39137 test 0 -eq $? || _lt_function_replace_fail=:
39140 sed -e '/^func_append_quoted ()$/,/^} # func_append_quoted /c\
39141 func_append_quoted ()\
39142 {\
39143 \ func_quote_for_eval "${2}"\
39144 \ eval "${1}+=\\\\ \\$func_quote_for_eval_result"\
39145 } # Extended-shell func_append_quoted implementation' "$cfgfile" > $cfgfile.tmp \
39146 && mv -f "$cfgfile.tmp" "$cfgfile" \
39147 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39148 test 0 -eq $? || _lt_function_replace_fail=:
39151 # Save a `func_append' function call where possible by direct use of '+='
39152 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1+="%g' $cfgfile > $cfgfile.tmp \
39153 && mv -f "$cfgfile.tmp" "$cfgfile" \
39154 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39155 test 0 -eq $? || _lt_function_replace_fail=:
39156 else
39157 # Save a `func_append' function call even when '+=' is not available
39158 sed -e 's%func_append \([a-zA-Z_]\{1,\}\) "%\1="$\1%g' $cfgfile > $cfgfile.tmp \
39159 && mv -f "$cfgfile.tmp" "$cfgfile" \
39160 || (rm -f "$cfgfile" && cp "$cfgfile.tmp" "$cfgfile" && rm -f "$cfgfile.tmp")
39161 test 0 -eq $? || _lt_function_replace_fail=:
39162 fi
39164 if test x"$_lt_function_replace_fail" = x":"; then
39165 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: Unable to substitute extended shell functions in $ofile" >&5
39166 $as_echo "$as_me: WARNING: Unable to substitute extended shell functions in $ofile" >&2;}
39167 fi
39170 mv -f "$cfgfile" "$ofile" ||
39171 (rm -f "$ofile" && cp "$cfgfile" "$ofile" && rm -f "$cfgfile")
39172 chmod +x "$ofile"
39174 ;;
39175 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
39176 # Older Autoconf quotes --file arguments for eval, but not when files
39177 # are listed without --file. Let's play safe and only enable the eval
39178 # if we detect the quoting.
39179 case $CONFIG_FILES in
39180 *\'*) eval set x "$CONFIG_FILES" ;;
39181 *) set x $CONFIG_FILES ;;
39182 esac
39183 shift
39184 for mf
39185 do
39186 # Strip MF so we end up with the name of the file.
39187 mf=`echo "$mf" | sed -e 's/:.*$//'`
39188 # Check whether this is an Automake generated Makefile or not.
39189 # We used to match only the files named 'Makefile.in', but
39190 # some people rename them; so instead we look at the file content.
39191 # Grep'ing the first line is not enough: some people post-process
39192 # each Makefile.in and add a new line on top of each file to say so.
39193 # Grep'ing the whole file is not good either: AIX grep has a line
39194 # limit of 2048, but all sed's we know have understand at least 4000.
39195 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
39196 dirpart=`$as_dirname -- "$mf" ||
39197 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39198 X"$mf" : 'X\(//\)[^/]' \| \
39199 X"$mf" : 'X\(//\)$' \| \
39200 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
39201 $as_echo X"$mf" |
39202 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39203 s//\1/
39204 q
39205 }
39206 /^X\(\/\/\)[^/].*/{
39207 s//\1/
39208 q
39209 }
39210 /^X\(\/\/\)$/{
39211 s//\1/
39212 q
39213 }
39214 /^X\(\/\).*/{
39215 s//\1/
39216 q
39217 }
39218 s/.*/./; q'`
39219 else
39220 continue
39221 fi
39222 # Extract the definition of DEPDIR, am__include, and am__quote
39223 # from the Makefile without running 'make'.
39224 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
39225 test -z "$DEPDIR" && continue
39226 am__include=`sed -n 's/^am__include = //p' < "$mf"`
39227 test -z "$am__include" && continue
39228 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
39229 # Find all dependency output files, they are included files with
39230 # $(DEPDIR) in their names. We invoke sed twice because it is the
39231 # simplest approach to changing $(DEPDIR) to its actual value in the
39232 # expansion.
39233 for file in `sed -n "
39234 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
39235 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
39236 # Make sure the directory exists.
39237 test -f "$dirpart/$file" && continue
39238 fdir=`$as_dirname -- "$file" ||
39239 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
39240 X"$file" : 'X\(//\)[^/]' \| \
39241 X"$file" : 'X\(//\)$' \| \
39242 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
39243 $as_echo X"$file" |
39244 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
39245 s//\1/
39246 q
39247 }
39248 /^X\(\/\/\)[^/].*/{
39249 s//\1/
39250 q
39251 }
39252 /^X\(\/\/\)$/{
39253 s//\1/
39254 q
39255 }
39256 /^X\(\/\).*/{
39257 s//\1/
39258 q
39259 }
39260 s/.*/./; q'`
39261 as_dir=$dirpart/$fdir; as_fn_mkdir_p
39262 # echo "creating $dirpart/$file"
39263 echo '# dummy' > "$dirpart/$file"
39264 done
39265 done
39266 }
39267 ;;
39269 esac
39270 done # for ac_tag
39273 as_fn_exit 0
39274 _ACEOF
39275 ac_clean_files=$ac_clean_files_save
39277 test $ac_write_fail = 0 ||
39278 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
39281 # configure is writing to config.log, and then calls config.status.
39282 # config.status does its own redirection, appending to config.log.
39283 # Unfortunately, on DOS this fails, as config.log is still kept open
39284 # by configure, so config.status won't be able to write to it; its
39285 # output is simply discarded. So we exec the FD to /dev/null,
39286 # effectively closing config.log, so it can be properly (re)opened and
39287 # appended to by config.status. When coming back to configure, we
39288 # need to make the FD available again.
39289 if test "$no_create" != yes; then
39290 ac_cs_success=:
39291 ac_config_status_args=
39292 test "$silent" = yes &&
39293 ac_config_status_args="$ac_config_status_args --quiet"
39294 exec 5>/dev/null
39295 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
39296 exec 5>>config.log
39297 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
39298 # would make configure fail if this is the last instruction.
39299 $ac_cs_success || as_fn_exit 1
39300 fi
39302 #
39303 # CONFIG_SUBDIRS section.
39304 #
39305 if test "$no_recursion" != yes; then
39307 # Remove --cache-file, --srcdir, and --disable-option-checking arguments
39308 # so they do not pile up.
39309 ac_sub_configure_args=
39310 ac_prev=
39311 eval "set x $ac_configure_args"
39312 shift
39313 for ac_arg
39314 do
39315 if test -n "$ac_prev"; then
39316 ac_prev=
39317 continue
39318 fi
39319 case $ac_arg in
39320 -cache-file | --cache-file | --cache-fil | --cache-fi \
39321 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
39322 ac_prev=cache_file ;;
39323 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
39324 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* \
39325 | --c=*)
39326 ;;
39327 --config-cache | -C)
39328 ;;
39329 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
39330 ac_prev=srcdir ;;
39331 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
39332 ;;
39333 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
39334 ac_prev=prefix ;;
39335 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
39336 ;;
39337 --disable-option-checking)
39338 ;;
39339 *)
39340 case $ac_arg in
39341 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
39342 esac
39343 as_fn_append ac_sub_configure_args " '$ac_arg'" ;;
39344 esac
39345 done
39347 # Always prepend --prefix to ensure using the same prefix
39348 # in subdir configurations.
39349 ac_arg="--prefix=$prefix"
39350 case $ac_arg in
39351 *\'*) ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
39352 esac
39353 ac_sub_configure_args="'$ac_arg' $ac_sub_configure_args"
39355 # Pass --silent
39356 if test "$silent" = yes; then
39357 ac_sub_configure_args="--silent $ac_sub_configure_args"
39358 fi
39360 # Always prepend --disable-option-checking to silence warnings, since
39361 # different subdirs can have different --enable and --with options.
39362 ac_sub_configure_args="--disable-option-checking $ac_sub_configure_args"
39364 ac_popdir=`pwd`
39365 for ac_dir in : $subdirs; do test "x$ac_dir" = x: && continue
39367 # Do not complain, so a configure script can configure whichever
39368 # parts of a large source tree are present.
39369 test -d "$srcdir/$ac_dir" || continue
39371 ac_msg="=== configuring in $ac_dir (`pwd`/$ac_dir)"
39372 $as_echo "$as_me:${as_lineno-$LINENO}: $ac_msg" >&5
39373 $as_echo "$ac_msg" >&6
39374 as_dir="$ac_dir"; as_fn_mkdir_p
39375 ac_builddir=.
39377 case "$ac_dir" in
39378 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
39379 *)
39380 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
39381 # A ".." for each directory in $ac_dir_suffix.
39382 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
39383 case $ac_top_builddir_sub in
39384 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
39385 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
39386 esac ;;
39387 esac
39388 ac_abs_top_builddir=$ac_pwd
39389 ac_abs_builddir=$ac_pwd$ac_dir_suffix
39390 # for backward compatibility:
39391 ac_top_builddir=$ac_top_build_prefix
39393 case $srcdir in
39394 .) # We are building in place.
39395 ac_srcdir=.
39396 ac_top_srcdir=$ac_top_builddir_sub
39397 ac_abs_top_srcdir=$ac_pwd ;;
39398 [\\/]* | ?:[\\/]* ) # Absolute name.
39399 ac_srcdir=$srcdir$ac_dir_suffix;
39400 ac_top_srcdir=$srcdir
39401 ac_abs_top_srcdir=$srcdir ;;
39402 *) # Relative name.
39403 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
39404 ac_top_srcdir=$ac_top_build_prefix$srcdir
39405 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
39406 esac
39407 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
39410 cd "$ac_dir"
39412 # Check for guested configure; otherwise get Cygnus style configure.
39413 if test -f "$ac_srcdir/configure.gnu"; then
39414 ac_sub_configure=$ac_srcdir/configure.gnu
39415 elif test -f "$ac_srcdir/configure"; then
39416 ac_sub_configure=$ac_srcdir/configure
39417 elif test -f "$ac_srcdir/configure.in"; then
39418 # This should be Cygnus configure.
39419 ac_sub_configure=$ac_aux_dir/configure
39420 else
39421 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: no configuration information is in $ac_dir" >&5
39422 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2;}
39423 ac_sub_configure=
39424 fi
39426 # The recursion is here.
39427 if test -n "$ac_sub_configure"; then
39428 # Make the cache file name correct relative to the subdirectory.
39429 case $cache_file in
39430 [\\/]* | ?:[\\/]* ) ac_sub_cache_file=$cache_file ;;
39431 *) # Relative name.
39432 ac_sub_cache_file=$ac_top_build_prefix$cache_file ;;
39433 esac
39435 { $as_echo "$as_me:${as_lineno-$LINENO}: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&5
39436 $as_echo "$as_me: running $SHELL $ac_sub_configure $ac_sub_configure_args --cache-file=$ac_sub_cache_file --srcdir=$ac_srcdir" >&6;}
39437 # The eval makes quoting arguments work.
39438 eval "\$SHELL \"\$ac_sub_configure\" $ac_sub_configure_args \
39439 --cache-file=\"\$ac_sub_cache_file\" --srcdir=\"\$ac_srcdir\"" ||
39440 as_fn_error $? "$ac_sub_configure failed for $ac_dir" "$LINENO" 5
39441 fi
39443 cd "$ac_popdir"
39444 done
39445 fi
39446 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
39447 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
39448 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
39449 fi
39452 if test "x$with_librrd" = "xyes" \
39453 && test "x$librrd_threadsafe" != "xyes"
39454 then
39455 with_librrd="yes (warning: librrd is not thread-safe)"
39456 fi
39458 if test "x$with_libperl" = "xyes"
39459 then
39460 with_libperl="yes (version `$perl_interpreter -MConfig -e 'print $Config{version};'`)"
39461 else
39462 enable_perl="no (needs libperl)"
39463 fi
39465 if test "x$enable_perl" = "xno" && test "x$c_cv_have_perl_ithreads" = "xno"
39466 then
39467 enable_perl="no (libperl doesn't support ithreads)"
39468 fi
39470 if test "x$with_perl_bindings" = "xyes" \
39471 && test "x$PERL_BINDINGS_OPTIONS" != "x"
39472 then
39473 with_perl_bindings="yes ($PERL_BINDINGS_OPTIONS)"
39474 fi
39476 cat <<EOF;
39478 Configuration:
39479 Libraries:
39480 intel mic . . . . . . $with_mic
39481 libaquaero5 . . . . . $with_libaquaero5
39482 libatasmart . . . . . $with_libatasmart
39483 libcurl . . . . . . . $with_libcurl
39484 libdbi . . . . . . . $with_libdbi
39485 libesmtp . . . . . . $with_libesmtp
39486 libganglia . . . . . $with_libganglia
39487 libgcrypt . . . . . . $with_libgcrypt
39488 libhal . . . . . . . $with_libhal
39489 libhiredis . . . . . $with_libhiredis
39490 libi2c-dev . . . . . $with_libi2c
39491 libiokit . . . . . . $with_libiokit
39492 libiptc . . . . . . . $with_libiptc
39493 libjvm . . . . . . . $with_java
39494 libkstat . . . . . . $with_kstat
39495 libkvm . . . . . . . $with_libkvm
39496 libldap . . . . . . . $with_libldap
39497 liblvm2app . . . . . $with_liblvm2app
39498 libmemcached . . . . $with_libmemcached
39499 libmnl . . . . . . . $with_libmnl
39500 libmodbus . . . . . . $with_libmodbus
39501 libmongoc . . . . . . $with_libmongoc
39502 libmysql . . . . . . $with_libmysql
39503 libnetapp . . . . . . $with_libnetapp
39504 libnetsnmp . . . . . $with_libnetsnmp
39505 libnotify . . . . . . $with_libnotify
39506 liboconfig . . . . . $with_liboconfig
39507 libopenipmi . . . . . $with_libopenipmipthread
39508 liboping . . . . . . $with_liboping
39509 libowcapi . . . . . . $with_libowcapi
39510 libpcap . . . . . . . $with_libpcap
39511 libperfstat . . . . . $with_perfstat
39512 libperl . . . . . . . $with_libperl
39513 libpq . . . . . . . . $with_libpq
39514 libpthread . . . . . $with_libpthread
39515 librabbitmq . . . . . $with_librabbitmq
39516 librdkafka . . . . . $with_librdkafka
39517 librouteros . . . . . $with_librouteros
39518 librrd . . . . . . . $with_librrd
39519 libsensors . . . . . $with_libsensors
39520 libsigrok . . . . . $with_libsigrok
39521 libstatgrab . . . . . $with_libstatgrab
39522 libtokyotyrant . . . $with_libtokyotyrant
39523 libudev . . . . . . . $with_libudev
39524 libupsclient . . . . $with_libupsclient
39525 libvarnish . . . . . $with_libvarnish
39526 libvirt . . . . . . . $with_libvirt
39527 libxml2 . . . . . . . $with_libxml2
39528 libxmms . . . . . . . $with_libxmms
39529 libyajl . . . . . . . $with_libyajl
39530 oracle . . . . . . . $with_oracle
39531 protobuf-c . . . . . $have_protoc_c
39532 python . . . . . . . $with_python
39534 Features:
39535 daemon mode . . . . . $enable_daemon
39536 debug . . . . . . . . $enable_debug
39538 Bindings:
39539 perl . . . . . . . . $with_perl_bindings
39541 Modules:
39542 aggregation . . . . . $enable_aggregation
39543 amqp . . . . . . . $enable_amqp
39544 apache . . . . . . . $enable_apache
39545 apcups . . . . . . . $enable_apcups
39546 apple_sensors . . . . $enable_apple_sensors
39547 aquaero . . . . . . . $enable_aquaero
39548 ascent . . . . . . . $enable_ascent
39549 barometer . . . . . . $enable_barometer
39550 battery . . . . . . . $enable_battery
39551 bind . . . . . . . . $enable_bind
39552 ceph . . . . . . . . $enable_ceph
39553 cgroups . . . . . . . $enable_cgroups
39554 conntrack . . . . . . $enable_conntrack
39555 contextswitch . . . . $enable_contextswitch
39556 cpu . . . . . . . . . $enable_cpu
39557 cpufreq . . . . . . . $enable_cpufreq
39558 csv . . . . . . . . . $enable_csv
39559 curl . . . . . . . . $enable_curl
39560 curl_json . . . . . . $enable_curl_json
39561 curl_xml . . . . . . $enable_curl_xml
39562 dbi . . . . . . . . . $enable_dbi
39563 df . . . . . . . . . $enable_df
39564 disk . . . . . . . . $enable_disk
39565 dns . . . . . . . . . $enable_dns
39566 drbd . . . . . . . . $enable_drbd
39567 email . . . . . . . . $enable_email
39568 entropy . . . . . . . $enable_entropy
39569 ethstat . . . . . . . $enable_ethstat
39570 exec . . . . . . . . $enable_exec
39571 fhcount . . . . . . . $enable_fhcount
39572 filecount . . . . . . $enable_filecount
39573 fscache . . . . . . . $enable_fscache
39574 gmond . . . . . . . . $enable_gmond
39575 hddtemp . . . . . . . $enable_hddtemp
39576 interface . . . . . . $enable_interface
39577 ipc . . . . . . . . . $enable_ipc
39578 ipmi . . . . . . . . $enable_ipmi
39579 iptables . . . . . . $enable_iptables
39580 ipvs . . . . . . . . $enable_ipvs
39581 irq . . . . . . . . . $enable_irq
39582 java . . . . . . . . $enable_java
39583 load . . . . . . . . $enable_load
39584 logfile . . . . . . . $enable_logfile
39585 log_logstash . . . . $enable_log_logstash
39586 lpar . . . . . . . . $enable_lpar
39587 lvm . . . . . . . . . $enable_lvm
39588 madwifi . . . . . . . $enable_madwifi
39589 match_empty_counter . $enable_match_empty_counter
39590 match_hashed . . . . $enable_match_hashed
39591 match_regex . . . . . $enable_match_regex
39592 match_timediff . . . $enable_match_timediff
39593 match_value . . . . . $enable_match_value
39594 mbmon . . . . . . . . $enable_mbmon
39595 md . . . . . . . . . $enable_md
39596 memcachec . . . . . . $enable_memcachec
39597 memcached . . . . . . $enable_memcached
39598 memory . . . . . . . $enable_memory
39599 mic . . . . . . . . . $enable_mic
39600 modbus . . . . . . . $enable_modbus
39601 multimeter . . . . . $enable_multimeter
39602 mysql . . . . . . . . $enable_mysql
39603 netapp . . . . . . . $enable_netapp
39604 netlink . . . . . . . $enable_netlink
39605 network . . . . . . . $enable_network
39606 nfs . . . . . . . . . $enable_nfs
39607 nginx . . . . . . . . $enable_nginx
39608 notify_desktop . . . $enable_notify_desktop
39609 notify_email . . . . $enable_notify_email
39610 ntpd . . . . . . . . $enable_ntpd
39611 numa . . . . . . . . $enable_numa
39612 nut . . . . . . . . . $enable_nut
39613 olsrd . . . . . . . . $enable_olsrd
39614 onewire . . . . . . . $enable_onewire
39615 openldap . . . . . . $enable_openldap
39616 openvpn . . . . . . . $enable_openvpn
39617 oracle . . . . . . . $enable_oracle
39618 perl . . . . . . . . $enable_perl
39619 pf . . . . . . . . . $enable_pf
39620 pinba . . . . . . . . $enable_pinba
39621 ping . . . . . . . . $enable_ping
39622 postgresql . . . . . $enable_postgresql
39623 powerdns . . . . . . $enable_powerdns
39624 processes . . . . . . $enable_processes
39625 protocols . . . . . . $enable_protocols
39626 python . . . . . . . $enable_python
39627 redis . . . . . . . . $enable_redis
39628 routeros . . . . . . $enable_routeros
39629 rrdcached . . . . . . $enable_rrdcached
39630 rrdtool . . . . . . . $enable_rrdtool
39631 sensors . . . . . . . $enable_sensors
39632 serial . . . . . . . $enable_serial
39633 sigrok . . . . . . . $enable_sigrok
39634 smart . . . . . . . . $enable_smart
39635 snmp . . . . . . . . $enable_snmp
39636 statsd . . . . . . . $enable_statsd
39637 swap . . . . . . . . $enable_swap
39638 syslog . . . . . . . $enable_syslog
39639 table . . . . . . . . $enable_table
39640 tail_csv . . . . . . $enable_tail_csv
39641 tail . . . . . . . . $enable_tail
39642 tape . . . . . . . . $enable_tape
39643 target_notification . $enable_target_notification
39644 target_replace . . . $enable_target_replace
39645 target_scale . . . . $enable_target_scale
39646 target_set . . . . . $enable_target_set
39647 target_v5upgrade . . $enable_target_v5upgrade
39648 tcpconns . . . . . . $enable_tcpconns
39649 teamspeak2 . . . . . $enable_teamspeak2
39650 ted . . . . . . . . . $enable_ted
39651 thermal . . . . . . . $enable_thermal
39652 threshold . . . . . . $enable_threshold
39653 tokyotyrant . . . . . $enable_tokyotyrant
39654 turbostat . . . . . . $enable_turbostat
39655 unixsock . . . . . . $enable_unixsock
39656 uptime . . . . . . . $enable_uptime
39657 users . . . . . . . . $enable_users
39658 uuid . . . . . . . . $enable_uuid
39659 varnish . . . . . . . $enable_varnish
39660 virt . . . . . . . . $enable_virt
39661 vmem . . . . . . . . $enable_vmem
39662 vserver . . . . . . . $enable_vserver
39663 wireless . . . . . . $enable_wireless
39664 write_graphite . . . $enable_write_graphite
39665 write_http . . . . . $enable_write_http
39666 write_kafka . . . . . $enable_write_kafka
39667 write_log . . . . . . $enable_write_log
39668 write_mongodb . . . . $enable_write_mongodb
39669 write_redis . . . . . $enable_write_redis
39670 write_riemann . . . . $enable_write_riemann
39671 write_sensu . . . . . $enable_write_sensu
39672 write_tsdb . . . . . $enable_write_tsdb
39673 xmms . . . . . . . . $enable_xmms
39674 zfs_arc . . . . . . . $enable_zfs_arc
39675 zookeeper . . . . . . $enable_zookeeper
39677 EOF
39679 if test "x$dependency_error" = "xyes"; then
39680 as_fn_error $? "\"Some plugins are missing dependencies - see the summary above for details\"" "$LINENO" 5
39681 fi
39683 if test "x$dependency_warning" = "xyes"; then
39684 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \"Some plugins seem to have missing dependencies but have been enabled forcibly - see the summary above for details\"" >&5
39685 $as_echo "$as_me: WARNING: \"Some plugins seem to have missing dependencies but have been enabled forcibly - see the summary above for details\"" >&2;}
39686 fi
39688 # vim: set fdm=marker :