qa: verify additional Linux memory metrics from current kernels
[pcp.git] / configure
blob81a8058c5da4a92d1b2223e31e7272b93e0cc0a3
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
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 *) :
30 esac
34 as_nl='
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"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
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=';'
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
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
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
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
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
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 *) :
174 esac
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.
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202 else
203 as_have_required=no
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
207 else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209 as_found=false
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 break 2
227 done;;
228 esac
229 as_found=false
230 done
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234 fi; }
235 IFS=$as_save_IFS
238 if test "x$CONFIG_SHELL" != x; then :
239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
244 BASH_ENV=/dev/null
245 ENV=/dev/null
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247 case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252 esac
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257 exit 255
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266 else
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
272 exit 1
276 SHELL=${CONFIG_SHELL-/bin/sh}
277 export SHELL
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
285 # as_fn_unset VAR
286 # ---------------
287 # Portably unset VAR.
288 as_fn_unset ()
290 { eval $1=; unset $1;}
292 as_unset=as_fn_unset
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
297 as_fn_set_status ()
299 return $1
300 } # as_fn_set_status
302 # as_fn_exit STATUS
303 # -----------------
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305 as_fn_exit ()
307 set +e
308 as_fn_set_status $1
309 exit $1
310 } # as_fn_exit
312 # as_fn_mkdir_p
313 # -------------
314 # Create "$as_dir" as a directory, including parents if necessary.
315 as_fn_mkdir_p ()
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
343 /^X\(\/\/\)$/{
344 s//\1/
347 /^X\(\/\).*/{
348 s//\1/
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
358 } # as_fn_mkdir_p
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
372 # implementations.
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
376 eval $1+=\$2
378 else
379 as_fn_append ()
381 eval $1=\$$1\$2
383 fi # as_fn_append
385 # as_fn_arith ARG...
386 # ------------------
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
393 as_val=$(( $* ))
395 else
396 as_fn_arith ()
398 as_val=`expr "$@" || test $? -eq 1`
400 fi # as_fn_arith
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
408 as_fn_error ()
410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
417 } # as_fn_error
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
421 as_expr=expr
422 else
423 as_expr=false
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427 as_basename=basename
428 else
429 as_basename=false
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434 else
435 as_dirname=false
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442 $as_echo X/"$0" |
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/
447 /^X\/\(\/\/\)$/{
448 s//\1/
451 /^X\/\(\/\).*/{
452 s//\1/
455 s/.*/./; q'`
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
470 sed -n '
472 /[$]LINENO/=
473 ' <$as_myself |
474 sed '
475 s/[$]LINENO.*/&-/
476 t lineno
478 :lineno
480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482 t loop
483 s/-\n.*//
484 ' >$as_me.lineno &&
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
496 # Exit status is that of the last command.
497 exit
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
502 -n*)
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
508 esac;;
510 ECHO_N='-n';;
511 esac
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
516 else
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
520 if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
522 as_ln_s='ln -s'
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528 as_ln_s='cp -pR'
529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
532 as_ln_s='cp -pR'
534 else
535 as_ln_s='cp -pR'
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
540 if mkdir -p . 2>/dev/null; then
541 as_mkdir_p='mkdir -p "$as_dir"'
542 else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
547 as_test_x='test -x'
548 as_executable_p=as_fn_executable_p
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 test -n "$DJDIR" || exec 7<&0 </dev/null
558 exec 6>&1
560 # Name of the host.
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
566 # Initializations.
568 ac_default_prefix=/usr/local
569 ac_clean_files=
570 ac_config_libobj_dir=.
571 LIBOBJS=
572 cross_compiling=no
573 subdirs=
574 MFLAGS=
575 MAKEFLAGS=
577 # Identity of this package.
578 PACKAGE_NAME=
579 PACKAGE_TARNAME=
580 PACKAGE_VERSION=
581 PACKAGE_STRING=
582 PACKAGE_BUGREPORT=
583 PACKAGE_URL=
585 ac_unique_file="src/include/pcp/pmapi.h"
586 # Factoring default headers for most tests.
587 ac_includes_default="\
588 #include <stdio.h>
589 #ifdef HAVE_SYS_TYPES_H
590 # include <sys/types.h>
591 #endif
592 #ifdef HAVE_SYS_STAT_H
593 # include <sys/stat.h>
594 #endif
595 #ifdef STDC_HEADERS
596 # include <stdlib.h>
597 # include <stddef.h>
598 #else
599 # ifdef HAVE_STDLIB_H
600 # include <stdlib.h>
601 # endif
602 #endif
603 #ifdef HAVE_STRING_H
604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
605 # include <memory.h>
606 # endif
607 # include <string.h>
608 #endif
609 #ifdef HAVE_STRINGS_H
610 # include <strings.h>
611 #endif
612 #ifdef HAVE_INTTYPES_H
613 # include <inttypes.h>
614 #endif
615 #ifdef HAVE_STDINT_H
616 # include <stdint.h>
617 #endif
618 #ifdef HAVE_UNISTD_H
619 # include <unistd.h>
620 #endif"
622 ac_subst_vars='PACKAGE_CONFIGURE
623 have_webjs
624 have_vector
625 have_parfait
626 HAVE_ZLIB
627 zlib_LIBS
628 zlib_CFLAGS
629 lib_for_curses
630 lib_for_readline
631 pcp_mpi_dirs
632 lib_for_atomic
633 enable_secure
634 lib_for_nspr
635 lib_for_nss
636 lib_for_ssl
637 lib_for_sasl
638 SASLCFLAGS
639 NSPRCFLAGS
640 NSSCFLAGS
641 ac_xconfirm_prog
642 pcp_demos_dir
643 pcp_doc_dir
644 pcp_tmp_dir
645 pcp_tmpfile_dir
646 pcp_run_dir
647 pcp_log_dir
648 pcp_sysconfig_dir
649 pcp_rc_dir
650 pcp_desktop_dir
651 pcp_icons_dir
652 pcp_html_dir
653 pcp_books_dir
654 pcp_inc_dir
655 pcp_sbin_dir
656 pcp_bin_dir
657 need_old_tbl_header
658 have_xzed_manpages
659 have_lzmaed_manpages
660 have_bzip2ed_manpages
661 have_gzipped_manpages
662 have_manpages
663 pcp_man_dir
664 pcp_x11_pre
665 pcp_x11_extra
666 pcp_x11_libflags
667 pcp_x11_incflags
668 X_EXTRA_LIBS
669 X_LIBS
670 X_PRE_LIBS
671 X_CFLAGS
672 XMKMF
673 python_prefix
674 perl_install_base
675 perl_installdirs
676 pcp_lib32_dir
677 pcp_lib_dir
678 pcp_pmdas_dir
679 pcp_var_dir
680 pcp_binadm_dir
681 pcp_share_dir
682 pcp_pmloggercontrol_path
683 pcp_pmsnapcontrol_path
684 pcp_pmiecontrol_path
685 pcp_pmproxyoptions_path
686 pcp_pmmgroptions_path
687 pcp_pmwebdoptions_path
688 pcp_pmcdrclocal_path
689 pcp_pmcdoptions_path
690 pcp_pmcdconf_path
691 pcp_sysconf_dir
692 pcp_saslconf_dir
693 pcp_etc_dir
694 lib_for_math
695 lib_for_dlopen
696 lib_for_rt
697 lib_for_basename
698 fmt_pthread
699 lib_for_pthreads
700 fmt_uint64
701 fmt_int64
702 fmt_pid
703 rdynamic_flag
704 pcp_selinux_dir
705 enable_selinux
706 enable_manager
707 enable_webapi
708 HAVE_CAIRO
709 cairo_LIBS
710 cairo_CFLAGS
711 HAVE_LIBMICROHTTPD
712 libmicrohttpd_LIBS
713 libmicrohttpd_CFLAGS
714 PMDA_POSTFIX
715 QSHAPE
716 PMDA_RPM
717 PMDA_PERFEVENT
718 PFM_LIBS
719 PMDA_PAPI
720 PAPI_LIBS
721 PAPI_CFLAGS
722 papi_LIBS
723 papi_CFLAGS
724 PMDA_INFINIBAND
725 IB_LIBS
726 PMDA_SYSTEMD
727 SYSTEMD_LIBS
728 SYSTEMD_CFLAGS
729 HAVE_NCURSES
730 ncurses_LIBS
731 ncurses_CFLAGS
732 lib_for_regex
733 grep
734 pcp_syslog_prog
735 pcp_ps_prog
736 LN_S
737 book_brand
738 book_toolchain
739 xmlto
740 XMLTO
741 dblatex
742 DBLATEX
743 publican
744 PUBLICAN
745 makepkg
746 MAKEPKG
747 dpkg
748 DPKG
749 md5sum
750 MD5SUM
751 makedepend
752 MAKEDEPEND
753 TRUEPROG
754 pod2man
755 POD2MAN
756 rpmprog
759 rpmbuild
760 RPMBUILD
761 dlltool
762 DLLTOOL
763 pkgmk
764 PKGMK
765 mkinstallp
766 MKINSTALLP
767 hdiutil
768 HDIUTIL
769 package_maker
772 lzma
773 LZMA
774 bzip2
775 BZIP2
776 gzip
780 pcp_group_install
781 pcp_user_install
785 make
786 MAKE
787 enable_qt3d
788 qmake
789 enable_qt
790 qt_release
791 QMAKE
792 PMDA_LIBVIRT
793 PMDA_NUTCRACKER
794 PMDA_BIND2
795 PMDA_ACTIVEMQ
796 PMDA_NGINX
797 PMDA_ELASTICSEARCH
798 PMDA_ORACLE
799 PMDA_POSTGRESQL
800 PMDA_MYSQL
801 PMDA_SNMP
802 have_perl
803 pcp_perl_prog
804 PERL
805 have_python_libvirt
806 PMDA_JSON
807 have_python_six
808 have_python_requests
809 have_python_setuptools
810 have_python_jsonpointer
811 pcp_python_prog
812 have_python
813 enable_python3
814 enable_python2
815 PYTHON3
816 PYTHON
818 LTLIBOBJS
819 LIBOBJS
820 pm_version_current
821 PACKAGE_DISTRIBUTION
822 PACKAGE_BUILD_DATE
823 PACKAGE_BUILD
824 PACKAGE_REVISION
825 PACKAGE_MINOR
826 PACKAGE_MAJOR
827 enable_systemd
828 pcp_systemdunit_dir
829 SYSTEMD_SYSTEMUNITDIR
830 enable_avahi
831 enable_discovery
832 lib_for_avahi
833 avahi_LIBS
834 avahi_CFLAGS
835 enable_probes
837 DTRACE
838 EGREP
839 GREP
840 echo_c
841 echo_n
842 sort
843 yacc
844 YFLAGS
845 YACC
847 LEXLIB
848 LEX_OUTPUT_ROOT
850 which
851 WHICH
852 find
853 FIND
854 echo
855 ECHO
860 enable_shared
862 ac_ct_CXX
863 CXXFLAGS
865 INVISIBILITY
866 PIECFLAGS
867 PIELDFLAGS
868 PLDFLAGS
869 PCFLAGS
870 cflags_abi
871 cc_is_gcc
873 CCPATH
874 OBJEXT
875 EXEEXT
876 ac_ct_CC
877 CPPFLAGS
878 LDFLAGS
879 CFLAGS
881 PKG_CONFIG_LIBDIR
882 PKG_CONFIG_PATH
883 PKG_CONFIG
884 optimization
885 pcp_ps_all_flags
886 pcp_platform_paths
887 cross_compiling
888 target_os
889 target_vendor
890 target_cpu
891 target
892 host_os
893 host_vendor
894 host_cpu
895 host
896 build_os
897 build_vendor
898 build_cpu
899 build
900 pcp_group
901 pcp_user
902 target_alias
903 host_alias
904 build_alias
905 LIBS
906 ECHO_T
907 ECHO_N
908 ECHO_C
909 DEFS
910 mandir
911 localedir
912 libdir
913 psdir
914 pdfdir
915 dvidir
916 htmldir
917 infodir
918 docdir
919 oldincludedir
920 includedir
921 localstatedir
922 sharedstatedir
923 sysconfdir
924 datadir
925 datarootdir
926 libexecdir
927 sbindir
928 bindir
929 program_transform_name
930 prefix
931 exec_prefix
932 PACKAGE_URL
933 PACKAGE_BUGREPORT
934 PACKAGE_STRING
935 PACKAGE_VERSION
936 PACKAGE_TARNAME
937 PACKAGE_NAME
938 PATH_SEPARATOR
939 SHELL'
940 ac_subst_files=''
941 ac_user_opts='
942 enable_option_checking
943 with_64bit
944 with_optimization
945 with_threads
946 with_secure_sockets
947 with_static_probes
948 with_infiniband
949 with_user
950 with_group
951 with_discovery
952 with_systemd
953 with_qt
954 with_qt3d
955 with_python
956 with_python3
957 with_books
958 with_books_brand
959 with_papi
960 with_perfevent
961 with_pmdajson
962 with_pmdasnmp
963 with_manager
964 with_webapi
965 with_webjs
966 with_vector
967 with_parfait
968 with_selinux
969 with_make
970 with_tar
971 with_zip
972 enable_ssp
973 enable_pie
974 enable_visibility
975 enable_shared
976 with_configdir
977 with_perl_installdirs
978 with_perl_install_base
979 with_python_prefix
980 with_x
981 with_rcdir
982 with_sysconfigdir
983 with_logdir
984 with_rundir
985 with_tmpdir
986 with_docdir
987 with_demosdir
989 ac_precious_vars='build_alias
990 host_alias
991 target_alias
992 PKG_CONFIG
993 PKG_CONFIG_PATH
994 PKG_CONFIG_LIBDIR
996 CFLAGS
997 LDFLAGS
998 LIBS
999 CPPFLAGS
1001 CXXFLAGS
1003 YACC
1004 YFLAGS
1006 avahi_CFLAGS
1007 avahi_LIBS
1008 SYSTEMD_SYSTEMUNITDIR
1009 ncurses_CFLAGS
1010 ncurses_LIBS
1011 SYSTEMD_CFLAGS
1012 SYSTEMD_LIBS
1013 papi_CFLAGS
1014 papi_LIBS
1015 libmicrohttpd_CFLAGS
1016 libmicrohttpd_LIBS
1017 cairo_CFLAGS
1018 cairo_LIBS
1019 XMKMF
1020 zlib_CFLAGS
1021 zlib_LIBS'
1024 # Initialize some variables set by options.
1025 ac_init_help=
1026 ac_init_version=false
1027 ac_unrecognized_opts=
1028 ac_unrecognized_sep=
1029 # The variables have the same names as the options, with
1030 # dashes changed to underlines.
1031 cache_file=/dev/null
1032 exec_prefix=NONE
1033 no_create=
1034 no_recursion=
1035 prefix=NONE
1036 program_prefix=NONE
1037 program_suffix=NONE
1038 program_transform_name=s,x,x,
1039 silent=
1040 site=
1041 srcdir=
1042 verbose=
1043 x_includes=NONE
1044 x_libraries=NONE
1046 # Installation directory options.
1047 # These are left unexpanded so users can "make install exec_prefix=/foo"
1048 # and all the variables that are supposed to be based on exec_prefix
1049 # by default will actually change.
1050 # Use braces instead of parens because sh, perl, etc. also accept them.
1051 # (The list follows the same order as the GNU Coding Standards.)
1052 bindir='${exec_prefix}/bin'
1053 sbindir='${exec_prefix}/sbin'
1054 libexecdir='${exec_prefix}/libexec'
1055 datarootdir='${prefix}/share'
1056 datadir='${datarootdir}'
1057 sysconfdir='${prefix}/etc'
1058 sharedstatedir='${prefix}/com'
1059 localstatedir='${prefix}/var'
1060 includedir='${prefix}/include'
1061 oldincludedir='/usr/include'
1062 docdir='${datarootdir}/doc/${PACKAGE}'
1063 infodir='${datarootdir}/info'
1064 htmldir='${docdir}'
1065 dvidir='${docdir}'
1066 pdfdir='${docdir}'
1067 psdir='${docdir}'
1068 libdir='${exec_prefix}/lib'
1069 localedir='${datarootdir}/locale'
1070 mandir='${datarootdir}/man'
1072 ac_prev=
1073 ac_dashdash=
1074 for ac_option
1076 # If the previous option needs an argument, assign it.
1077 if test -n "$ac_prev"; then
1078 eval $ac_prev=\$ac_option
1079 ac_prev=
1080 continue
1083 case $ac_option in
1084 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1085 *=) ac_optarg= ;;
1086 *) ac_optarg=yes ;;
1087 esac
1089 # Accept the important Cygnus configure options, so we can diagnose typos.
1091 case $ac_dashdash$ac_option in
1093 ac_dashdash=yes ;;
1095 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1096 ac_prev=bindir ;;
1097 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1098 bindir=$ac_optarg ;;
1100 -build | --build | --buil | --bui | --bu)
1101 ac_prev=build_alias ;;
1102 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1103 build_alias=$ac_optarg ;;
1105 -cache-file | --cache-file | --cache-fil | --cache-fi \
1106 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1107 ac_prev=cache_file ;;
1108 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1109 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1110 cache_file=$ac_optarg ;;
1112 --config-cache | -C)
1113 cache_file=config.cache ;;
1115 -datadir | --datadir | --datadi | --datad)
1116 ac_prev=datadir ;;
1117 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1118 datadir=$ac_optarg ;;
1120 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1121 | --dataroo | --dataro | --datar)
1122 ac_prev=datarootdir ;;
1123 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1124 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1125 datarootdir=$ac_optarg ;;
1127 -disable-* | --disable-*)
1128 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1129 # Reject names that are not valid shell variable names.
1130 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1131 as_fn_error $? "invalid feature name: $ac_useropt"
1132 ac_useropt_orig=$ac_useropt
1133 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1134 case $ac_user_opts in
1136 "enable_$ac_useropt"
1137 "*) ;;
1138 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1139 ac_unrecognized_sep=', ';;
1140 esac
1141 eval enable_$ac_useropt=no ;;
1143 -docdir | --docdir | --docdi | --doc | --do)
1144 ac_prev=docdir ;;
1145 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1146 docdir=$ac_optarg ;;
1148 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1149 ac_prev=dvidir ;;
1150 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1151 dvidir=$ac_optarg ;;
1153 -enable-* | --enable-*)
1154 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1155 # Reject names that are not valid shell variable names.
1156 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1157 as_fn_error $? "invalid feature name: $ac_useropt"
1158 ac_useropt_orig=$ac_useropt
1159 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1160 case $ac_user_opts in
1162 "enable_$ac_useropt"
1163 "*) ;;
1164 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1165 ac_unrecognized_sep=', ';;
1166 esac
1167 eval enable_$ac_useropt=\$ac_optarg ;;
1169 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1170 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1171 | --exec | --exe | --ex)
1172 ac_prev=exec_prefix ;;
1173 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1174 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1175 | --exec=* | --exe=* | --ex=*)
1176 exec_prefix=$ac_optarg ;;
1178 -gas | --gas | --ga | --g)
1179 # Obsolete; use --with-gas.
1180 with_gas=yes ;;
1182 -help | --help | --hel | --he | -h)
1183 ac_init_help=long ;;
1184 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1185 ac_init_help=recursive ;;
1186 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1187 ac_init_help=short ;;
1189 -host | --host | --hos | --ho)
1190 ac_prev=host_alias ;;
1191 -host=* | --host=* | --hos=* | --ho=*)
1192 host_alias=$ac_optarg ;;
1194 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1195 ac_prev=htmldir ;;
1196 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1197 | --ht=*)
1198 htmldir=$ac_optarg ;;
1200 -includedir | --includedir | --includedi | --included | --include \
1201 | --includ | --inclu | --incl | --inc)
1202 ac_prev=includedir ;;
1203 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1204 | --includ=* | --inclu=* | --incl=* | --inc=*)
1205 includedir=$ac_optarg ;;
1207 -infodir | --infodir | --infodi | --infod | --info | --inf)
1208 ac_prev=infodir ;;
1209 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1210 infodir=$ac_optarg ;;
1212 -libdir | --libdir | --libdi | --libd)
1213 ac_prev=libdir ;;
1214 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1215 libdir=$ac_optarg ;;
1217 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1218 | --libexe | --libex | --libe)
1219 ac_prev=libexecdir ;;
1220 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1221 | --libexe=* | --libex=* | --libe=*)
1222 libexecdir=$ac_optarg ;;
1224 -localedir | --localedir | --localedi | --localed | --locale)
1225 ac_prev=localedir ;;
1226 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1227 localedir=$ac_optarg ;;
1229 -localstatedir | --localstatedir | --localstatedi | --localstated \
1230 | --localstate | --localstat | --localsta | --localst | --locals)
1231 ac_prev=localstatedir ;;
1232 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1233 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1234 localstatedir=$ac_optarg ;;
1236 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1237 ac_prev=mandir ;;
1238 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1239 mandir=$ac_optarg ;;
1241 -nfp | --nfp | --nf)
1242 # Obsolete; use --without-fp.
1243 with_fp=no ;;
1245 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1246 | --no-cr | --no-c | -n)
1247 no_create=yes ;;
1249 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1250 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1251 no_recursion=yes ;;
1253 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1254 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1255 | --oldin | --oldi | --old | --ol | --o)
1256 ac_prev=oldincludedir ;;
1257 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1258 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1259 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1260 oldincludedir=$ac_optarg ;;
1262 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1263 ac_prev=prefix ;;
1264 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1265 prefix=$ac_optarg ;;
1267 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1268 | --program-pre | --program-pr | --program-p)
1269 ac_prev=program_prefix ;;
1270 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1271 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1272 program_prefix=$ac_optarg ;;
1274 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1275 | --program-suf | --program-su | --program-s)
1276 ac_prev=program_suffix ;;
1277 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1278 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1279 program_suffix=$ac_optarg ;;
1281 -program-transform-name | --program-transform-name \
1282 | --program-transform-nam | --program-transform-na \
1283 | --program-transform-n | --program-transform- \
1284 | --program-transform | --program-transfor \
1285 | --program-transfo | --program-transf \
1286 | --program-trans | --program-tran \
1287 | --progr-tra | --program-tr | --program-t)
1288 ac_prev=program_transform_name ;;
1289 -program-transform-name=* | --program-transform-name=* \
1290 | --program-transform-nam=* | --program-transform-na=* \
1291 | --program-transform-n=* | --program-transform-=* \
1292 | --program-transform=* | --program-transfor=* \
1293 | --program-transfo=* | --program-transf=* \
1294 | --program-trans=* | --program-tran=* \
1295 | --progr-tra=* | --program-tr=* | --program-t=*)
1296 program_transform_name=$ac_optarg ;;
1298 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1299 ac_prev=pdfdir ;;
1300 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1301 pdfdir=$ac_optarg ;;
1303 -psdir | --psdir | --psdi | --psd | --ps)
1304 ac_prev=psdir ;;
1305 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1306 psdir=$ac_optarg ;;
1308 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1309 | -silent | --silent | --silen | --sile | --sil)
1310 silent=yes ;;
1312 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1313 ac_prev=sbindir ;;
1314 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1315 | --sbi=* | --sb=*)
1316 sbindir=$ac_optarg ;;
1318 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1319 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1320 | --sharedst | --shareds | --shared | --share | --shar \
1321 | --sha | --sh)
1322 ac_prev=sharedstatedir ;;
1323 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1324 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1325 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1326 | --sha=* | --sh=*)
1327 sharedstatedir=$ac_optarg ;;
1329 -site | --site | --sit)
1330 ac_prev=site ;;
1331 -site=* | --site=* | --sit=*)
1332 site=$ac_optarg ;;
1334 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1335 ac_prev=srcdir ;;
1336 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1337 srcdir=$ac_optarg ;;
1339 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1340 | --syscon | --sysco | --sysc | --sys | --sy)
1341 ac_prev=sysconfdir ;;
1342 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1343 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1344 sysconfdir=$ac_optarg ;;
1346 -target | --target | --targe | --targ | --tar | --ta | --t)
1347 ac_prev=target_alias ;;
1348 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1349 target_alias=$ac_optarg ;;
1351 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1352 verbose=yes ;;
1354 -version | --version | --versio | --versi | --vers | -V)
1355 ac_init_version=: ;;
1357 -with-* | --with-*)
1358 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1359 # Reject names that are not valid shell variable names.
1360 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1361 as_fn_error $? "invalid package name: $ac_useropt"
1362 ac_useropt_orig=$ac_useropt
1363 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1364 case $ac_user_opts in
1366 "with_$ac_useropt"
1367 "*) ;;
1368 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1369 ac_unrecognized_sep=', ';;
1370 esac
1371 eval with_$ac_useropt=\$ac_optarg ;;
1373 -without-* | --without-*)
1374 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1375 # Reject names that are not valid shell variable names.
1376 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1377 as_fn_error $? "invalid package name: $ac_useropt"
1378 ac_useropt_orig=$ac_useropt
1379 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1380 case $ac_user_opts in
1382 "with_$ac_useropt"
1383 "*) ;;
1384 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1385 ac_unrecognized_sep=', ';;
1386 esac
1387 eval with_$ac_useropt=no ;;
1389 --x)
1390 # Obsolete; use --with-x.
1391 with_x=yes ;;
1393 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1394 | --x-incl | --x-inc | --x-in | --x-i)
1395 ac_prev=x_includes ;;
1396 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1397 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1398 x_includes=$ac_optarg ;;
1400 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1401 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1402 ac_prev=x_libraries ;;
1403 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1404 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1405 x_libraries=$ac_optarg ;;
1407 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1408 Try \`$0 --help' for more information"
1411 *=*)
1412 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1413 # Reject names that are not valid shell variable names.
1414 case $ac_envvar in #(
1415 '' | [0-9]* | *[!_$as_cr_alnum]* )
1416 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1417 esac
1418 eval $ac_envvar=\$ac_optarg
1419 export $ac_envvar ;;
1422 # FIXME: should be removed in autoconf 3.0.
1423 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1424 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1425 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1426 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1429 esac
1430 done
1432 if test -n "$ac_prev"; then
1433 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1434 as_fn_error $? "missing argument to $ac_option"
1437 if test -n "$ac_unrecognized_opts"; then
1438 case $enable_option_checking in
1439 no) ;;
1440 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1441 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1442 esac
1445 # Check all directory arguments for consistency.
1446 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1447 datadir sysconfdir sharedstatedir localstatedir includedir \
1448 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1449 libdir localedir mandir
1451 eval ac_val=\$$ac_var
1452 # Remove trailing slashes.
1453 case $ac_val in
1454 */ )
1455 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1456 eval $ac_var=\$ac_val;;
1457 esac
1458 # Be sure to have absolute directory names.
1459 case $ac_val in
1460 [\\/$]* | ?:[\\/]* ) continue;;
1461 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1462 esac
1463 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1464 done
1466 # There might be people who depend on the old broken behavior: `$host'
1467 # used to hold the argument of --host etc.
1468 # FIXME: To remove some day.
1469 build=$build_alias
1470 host=$host_alias
1471 target=$target_alias
1473 # FIXME: To remove some day.
1474 if test "x$host_alias" != x; then
1475 if test "x$build_alias" = x; then
1476 cross_compiling=maybe
1477 elif test "x$build_alias" != "x$host_alias"; then
1478 cross_compiling=yes
1482 ac_tool_prefix=
1483 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1485 test "$silent" = yes && exec 6>/dev/null
1488 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1489 ac_ls_di=`ls -di .` &&
1490 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1491 as_fn_error $? "working directory cannot be determined"
1492 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1493 as_fn_error $? "pwd does not report name of working directory"
1496 # Find the source files, if location was not specified.
1497 if test -z "$srcdir"; then
1498 ac_srcdir_defaulted=yes
1499 # Try the directory containing this script, then the parent directory.
1500 ac_confdir=`$as_dirname -- "$as_myself" ||
1501 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1502 X"$as_myself" : 'X\(//\)[^/]' \| \
1503 X"$as_myself" : 'X\(//\)$' \| \
1504 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1505 $as_echo X"$as_myself" |
1506 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1507 s//\1/
1510 /^X\(\/\/\)[^/].*/{
1511 s//\1/
1514 /^X\(\/\/\)$/{
1515 s//\1/
1518 /^X\(\/\).*/{
1519 s//\1/
1522 s/.*/./; q'`
1523 srcdir=$ac_confdir
1524 if test ! -r "$srcdir/$ac_unique_file"; then
1525 srcdir=..
1527 else
1528 ac_srcdir_defaulted=no
1530 if test ! -r "$srcdir/$ac_unique_file"; then
1531 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1532 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1534 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1535 ac_abs_confdir=`(
1536 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1537 pwd)`
1538 # When building in place, set srcdir=.
1539 if test "$ac_abs_confdir" = "$ac_pwd"; then
1540 srcdir=.
1542 # Remove unnecessary trailing slashes from srcdir.
1543 # Double slashes in file names in object file debugging info
1544 # mess up M-x gdb in Emacs.
1545 case $srcdir in
1546 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1547 esac
1548 for ac_var in $ac_precious_vars; do
1549 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1550 eval ac_env_${ac_var}_value=\$${ac_var}
1551 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1552 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1553 done
1556 # Report the --help message.
1558 if test "$ac_init_help" = "long"; then
1559 # Omit some internal or obsolete options to make the list less imposing.
1560 # This message is too long to be a string in the A/UX 3.1 sh.
1561 cat <<_ACEOF
1562 \`configure' configures this package to adapt to many kinds of systems.
1564 Usage: $0 [OPTION]... [VAR=VALUE]...
1566 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1567 VAR=VALUE. See below for descriptions of some of the useful variables.
1569 Defaults for the options are specified in brackets.
1571 Configuration:
1572 -h, --help display this help and exit
1573 --help=short display options specific to this package
1574 --help=recursive display the short help of all the included packages
1575 -V, --version display version information and exit
1576 -q, --quiet, --silent do not print \`checking ...' messages
1577 --cache-file=FILE cache test results in FILE [disabled]
1578 -C, --config-cache alias for \`--cache-file=config.cache'
1579 -n, --no-create do not create output files
1580 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1582 Installation directories:
1583 --prefix=PREFIX install architecture-independent files in PREFIX
1584 [$ac_default_prefix]
1585 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1586 [PREFIX]
1588 By default, \`make install' will install all the files in
1589 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1590 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1591 for instance \`--prefix=\$HOME'.
1593 For better control, use the options below.
1595 Fine tuning of the installation directories:
1596 --bindir=DIR user executables [EPREFIX/bin]
1597 --sbindir=DIR system admin executables [EPREFIX/sbin]
1598 --libexecdir=DIR program executables [EPREFIX/libexec]
1599 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1600 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1601 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1602 --libdir=DIR object code libraries [EPREFIX/lib]
1603 --includedir=DIR C header files [PREFIX/include]
1604 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1605 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1606 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1607 --infodir=DIR info documentation [DATAROOTDIR/info]
1608 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1609 --mandir=DIR man documentation [DATAROOTDIR/man]
1610 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1611 --htmldir=DIR html documentation [DOCDIR]
1612 --dvidir=DIR dvi documentation [DOCDIR]
1613 --pdfdir=DIR pdf documentation [DOCDIR]
1614 --psdir=DIR ps documentation [DOCDIR]
1615 _ACEOF
1617 cat <<\_ACEOF
1619 X features:
1620 --x-includes=DIR X include files are in DIR
1621 --x-libraries=DIR X library files are in DIR
1623 System types:
1624 --build=BUILD configure for building on BUILD [guessed]
1625 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1626 --target=TARGET configure for building compilers for TARGET [HOST]
1627 _ACEOF
1630 if test -n "$ac_init_help"; then
1632 cat <<\_ACEOF
1634 Optional Features:
1635 --disable-option-checking ignore unrecognized --enable/--with options
1636 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1637 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1638 --disable-ssp disable gcc stack-protector
1639 --disable-pie disable position-independent-executable
1640 --disable-visibility disable gcc symbol visibility
1641 --disable-shared disable core shared libary generation
1643 Optional Packages:
1644 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1645 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1646 --with-64bit turn on 64 bit compilation mode (default is platform
1647 dependent)
1648 --with-optimization enable optimization for C/C++ code (default is yes)
1649 --with-threads enable support for multiple threads (default is on)
1650 --with-secure-sockets enable support for secure sockets (default is on)
1651 --with-static-probes enable support for static probes (default is on)
1652 --with-infiniband enable support for Infiniband metrics (default is
1654 --with-user user account under which daemons run (default is
1655 pcp)
1656 --with-group user group under which daemons run (default is pcp)
1657 --with-discovery enable support for service discovery (default is on)
1658 --with-systemd enable support for systemd services (default is on)
1659 --with-qt enable support for tools requiring Qt (default is
1661 --with-qt3d enable support for 3D scene graph API (default is
1663 --with-python enable support for tools requiring Python (default
1664 is on)
1665 --with-python3 enable support for tools requiring Python3 (default
1666 is on)
1667 --with-books enable building of the PCP books (default is off)
1668 --with-books-brand=BRAND
1669 choose the docbook brand when building the PCP books
1670 (default is common)
1671 --with-papi[=DIR|=MODULE]
1672 enable performance api counter pmda (default is on)
1673 The optional argument may be a full path of a PAPI
1674 installation prefix, or a pkgconfig module name.
1675 --with-perfevent enable perfevent pmda (default is on)
1676 --with-pmdajson enable JSON pmda (default is on)
1677 --with-pmdasnmp enable SNMP pmda (default is on)
1678 --with-manager enable daemon manager (default is on)
1679 --with-webapi enable REST API daemon (default is on)
1680 --with-webjs enable building of webjs packages (default is off)
1681 --with-vector enable building of vector package (default is off)
1682 --with-parfait enable building of parfait package (default is off)
1683 --with-selinux enable building of selinux package (default is on)
1684 --with-make path to GNU compatible make(1) (default is empty for
1685 auto discovery)
1686 --with-tar path to GNU compatible tar(1) (default is empty for
1687 auto discovery)
1688 --with-zip path to GNU compatible zip(1) (default is empty for
1689 auto discovery)
1690 --with-configdir configuration directory [LOCALSTATEDIR/pcp/config]
1691 --with-perl_installdirs perl installdirs [vendor]
1692 --with-perl_install_base
1693 perl install_base [PREFIX]
1694 --with-python_prefix python setup.py prefix [PREFIX]
1695 --with-x use the X Window System
1696 --with-rcdir rc directory [SYSCONFDIR/rc.d]
1697 --with-sysconfigdir sysconfig directory [SYSCONFDIR/sysconfig]
1698 --with-logdir log directory [LOCALSTATEDIR/log/pcp]
1699 --with-rundir run directory [LOCALSTATEDIR/run/pcp]
1700 --with-tmpdir tmp directory [LOCALSTATEDIR/tmp]
1701 --with-docdir docs directory [DOCDIR/pcp-VERSION]
1702 --with-demosdir run directory [DATADIR/pcp/demos]
1704 Some influential environment variables:
1705 PKG_CONFIG path to pkg-config utility
1706 PKG_CONFIG_PATH
1707 directories to add to pkg-config's search path
1708 PKG_CONFIG_LIBDIR
1709 path overriding pkg-config's built-in search path
1710 CC C compiler command
1711 CFLAGS C compiler flags
1712 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1713 nonstandard directory <lib dir>
1714 LIBS libraries to pass to the linker, e.g. -l<library>
1715 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1716 you have headers in a nonstandard directory <include dir>
1717 CXX C++ compiler command
1718 CXXFLAGS C++ compiler flags
1719 YACC The `Yet Another Compiler Compiler' implementation to use.
1720 Defaults to the first program found out of: `bison -y', `byacc',
1721 `yacc'.
1722 YFLAGS The list of arguments that will be passed by default to $YACC.
1723 This script will default YFLAGS to the empty string to avoid a
1724 default value of `-d' given by some make applications.
1725 CPP C preprocessor
1726 avahi_CFLAGS
1727 C compiler flags for avahi, overriding pkg-config
1728 avahi_LIBS linker flags for avahi, overriding pkg-config
1729 SYSTEMD_SYSTEMUNITDIR
1730 value of systemdsystemunitdir for systemd, overriding pkg-config
1731 ncurses_CFLAGS
1732 C compiler flags for ncurses, overriding pkg-config
1733 ncurses_LIBS
1734 linker flags for ncurses, overriding pkg-config
1735 SYSTEMD_CFLAGS
1736 C compiler flags for SYSTEMD, overriding pkg-config
1737 SYSTEMD_LIBS
1738 linker flags for SYSTEMD, overriding pkg-config
1739 papi_CFLAGS C compiler flags for papi, overriding pkg-config
1740 papi_LIBS linker flags for papi, overriding pkg-config
1741 libmicrohttpd_CFLAGS
1742 C compiler flags for libmicrohttpd, overriding pkg-config
1743 libmicrohttpd_LIBS
1744 linker flags for libmicrohttpd, overriding pkg-config
1745 cairo_CFLAGS
1746 C compiler flags for cairo, overriding pkg-config
1747 cairo_LIBS linker flags for cairo, overriding pkg-config
1748 XMKMF Path to xmkmf, Makefile generator for X Window System
1749 zlib_CFLAGS C compiler flags for zlib, overriding pkg-config
1750 zlib_LIBS linker flags for zlib, overriding pkg-config
1752 Use these variables to override the choices made by `configure' or to help
1753 it to find libraries and programs with nonstandard names/locations.
1755 Report bugs to the package provider.
1756 _ACEOF
1757 ac_status=$?
1760 if test "$ac_init_help" = "recursive"; then
1761 # If there are subdirs, report their specific --help.
1762 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1763 test -d "$ac_dir" ||
1764 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1765 continue
1766 ac_builddir=.
1768 case "$ac_dir" in
1769 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1771 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1772 # A ".." for each directory in $ac_dir_suffix.
1773 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1774 case $ac_top_builddir_sub in
1775 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1776 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1777 esac ;;
1778 esac
1779 ac_abs_top_builddir=$ac_pwd
1780 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1781 # for backward compatibility:
1782 ac_top_builddir=$ac_top_build_prefix
1784 case $srcdir in
1785 .) # We are building in place.
1786 ac_srcdir=.
1787 ac_top_srcdir=$ac_top_builddir_sub
1788 ac_abs_top_srcdir=$ac_pwd ;;
1789 [\\/]* | ?:[\\/]* ) # Absolute name.
1790 ac_srcdir=$srcdir$ac_dir_suffix;
1791 ac_top_srcdir=$srcdir
1792 ac_abs_top_srcdir=$srcdir ;;
1793 *) # Relative name.
1794 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1795 ac_top_srcdir=$ac_top_build_prefix$srcdir
1796 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1797 esac
1798 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1800 cd "$ac_dir" || { ac_status=$?; continue; }
1801 # Check for guested configure.
1802 if test -f "$ac_srcdir/configure.gnu"; then
1803 echo &&
1804 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1805 elif test -f "$ac_srcdir/configure"; then
1806 echo &&
1807 $SHELL "$ac_srcdir/configure" --help=recursive
1808 else
1809 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1810 fi || ac_status=$?
1811 cd "$ac_pwd" || { ac_status=$?; break; }
1812 done
1815 test -n "$ac_init_help" && exit $ac_status
1816 if $ac_init_version; then
1817 cat <<\_ACEOF
1818 configure
1819 generated by GNU Autoconf 2.69
1821 Copyright (C) 2012 Free Software Foundation, Inc.
1822 This configure script is free software; the Free Software Foundation
1823 gives unlimited permission to copy, distribute and modify it.
1824 _ACEOF
1825 exit
1828 ## ------------------------ ##
1829 ## Autoconf initialization. ##
1830 ## ------------------------ ##
1832 # ac_fn_c_try_compile LINENO
1833 # --------------------------
1834 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1835 ac_fn_c_try_compile ()
1837 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1838 rm -f conftest.$ac_objext
1839 if { { ac_try="$ac_compile"
1840 case "(($ac_try" in
1841 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1842 *) ac_try_echo=$ac_try;;
1843 esac
1844 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1845 $as_echo "$ac_try_echo"; } >&5
1846 (eval "$ac_compile") 2>conftest.err
1847 ac_status=$?
1848 if test -s conftest.err; then
1849 grep -v '^ *+' conftest.err >conftest.er1
1850 cat conftest.er1 >&5
1851 mv -f conftest.er1 conftest.err
1853 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1854 test $ac_status = 0; } && {
1855 test -z "$ac_c_werror_flag" ||
1856 test ! -s conftest.err
1857 } && test -s conftest.$ac_objext; then :
1858 ac_retval=0
1859 else
1860 $as_echo "$as_me: failed program was:" >&5
1861 sed 's/^/| /' conftest.$ac_ext >&5
1863 ac_retval=1
1865 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1866 as_fn_set_status $ac_retval
1868 } # ac_fn_c_try_compile
1870 # ac_fn_c_try_link LINENO
1871 # -----------------------
1872 # Try to link conftest.$ac_ext, and return whether this succeeded.
1873 ac_fn_c_try_link ()
1875 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1876 rm -f conftest.$ac_objext conftest$ac_exeext
1877 if { { ac_try="$ac_link"
1878 case "(($ac_try" in
1879 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1880 *) ac_try_echo=$ac_try;;
1881 esac
1882 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1883 $as_echo "$ac_try_echo"; } >&5
1884 (eval "$ac_link") 2>conftest.err
1885 ac_status=$?
1886 if test -s conftest.err; then
1887 grep -v '^ *+' conftest.err >conftest.er1
1888 cat conftest.er1 >&5
1889 mv -f conftest.er1 conftest.err
1891 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1892 test $ac_status = 0; } && {
1893 test -z "$ac_c_werror_flag" ||
1894 test ! -s conftest.err
1895 } && test -s conftest$ac_exeext && {
1896 test "$cross_compiling" = yes ||
1897 test -x conftest$ac_exeext
1898 }; then :
1899 ac_retval=0
1900 else
1901 $as_echo "$as_me: failed program was:" >&5
1902 sed 's/^/| /' conftest.$ac_ext >&5
1904 ac_retval=1
1906 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1907 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1908 # interfere with the next link command; also delete a directory that is
1909 # left behind by Apple's compiler. We do this before executing the actions.
1910 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1911 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1912 as_fn_set_status $ac_retval
1914 } # ac_fn_c_try_link
1916 # ac_fn_cxx_try_compile LINENO
1917 # ----------------------------
1918 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1919 ac_fn_cxx_try_compile ()
1921 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1922 rm -f conftest.$ac_objext
1923 if { { ac_try="$ac_compile"
1924 case "(($ac_try" in
1925 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1926 *) ac_try_echo=$ac_try;;
1927 esac
1928 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1929 $as_echo "$ac_try_echo"; } >&5
1930 (eval "$ac_compile") 2>conftest.err
1931 ac_status=$?
1932 if test -s conftest.err; then
1933 grep -v '^ *+' conftest.err >conftest.er1
1934 cat conftest.er1 >&5
1935 mv -f conftest.er1 conftest.err
1937 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1938 test $ac_status = 0; } && {
1939 test -z "$ac_cxx_werror_flag" ||
1940 test ! -s conftest.err
1941 } && test -s conftest.$ac_objext; then :
1942 ac_retval=0
1943 else
1944 $as_echo "$as_me: failed program was:" >&5
1945 sed 's/^/| /' conftest.$ac_ext >&5
1947 ac_retval=1
1949 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1950 as_fn_set_status $ac_retval
1952 } # ac_fn_cxx_try_compile
1954 # ac_fn_c_try_cpp LINENO
1955 # ----------------------
1956 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1957 ac_fn_c_try_cpp ()
1959 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1960 if { { ac_try="$ac_cpp conftest.$ac_ext"
1961 case "(($ac_try" in
1962 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1963 *) ac_try_echo=$ac_try;;
1964 esac
1965 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1966 $as_echo "$ac_try_echo"; } >&5
1967 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1968 ac_status=$?
1969 if test -s conftest.err; then
1970 grep -v '^ *+' conftest.err >conftest.er1
1971 cat conftest.er1 >&5
1972 mv -f conftest.er1 conftest.err
1974 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1975 test $ac_status = 0; } > conftest.i && {
1976 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1977 test ! -s conftest.err
1978 }; then :
1979 ac_retval=0
1980 else
1981 $as_echo "$as_me: failed program was:" >&5
1982 sed 's/^/| /' conftest.$ac_ext >&5
1984 ac_retval=1
1986 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1987 as_fn_set_status $ac_retval
1989 } # ac_fn_c_try_cpp
1991 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1992 # -------------------------------------------------------
1993 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1994 # the include files in INCLUDES and setting the cache variable VAR
1995 # accordingly.
1996 ac_fn_c_check_header_mongrel ()
1998 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1999 if eval \${$3+:} false; then :
2000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2001 $as_echo_n "checking for $2... " >&6; }
2002 if eval \${$3+:} false; then :
2003 $as_echo_n "(cached) " >&6
2005 eval ac_res=\$$3
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2007 $as_echo "$ac_res" >&6; }
2008 else
2009 # Is the header compilable?
2010 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2011 $as_echo_n "checking $2 usability... " >&6; }
2012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2013 /* end confdefs.h. */
2015 #include <$2>
2016 _ACEOF
2017 if ac_fn_c_try_compile "$LINENO"; then :
2018 ac_header_compiler=yes
2019 else
2020 ac_header_compiler=no
2022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2024 $as_echo "$ac_header_compiler" >&6; }
2026 # Is the header present?
2027 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2028 $as_echo_n "checking $2 presence... " >&6; }
2029 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2030 /* end confdefs.h. */
2031 #include <$2>
2032 _ACEOF
2033 if ac_fn_c_try_cpp "$LINENO"; then :
2034 ac_header_preproc=yes
2035 else
2036 ac_header_preproc=no
2038 rm -f conftest.err conftest.i conftest.$ac_ext
2039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2040 $as_echo "$ac_header_preproc" >&6; }
2042 # So? What about this header?
2043 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2044 yes:no: )
2045 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2046 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2048 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2050 no:yes:* )
2051 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2052 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2053 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2054 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2055 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2056 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2057 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2058 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2059 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2060 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2062 esac
2063 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2064 $as_echo_n "checking for $2... " >&6; }
2065 if eval \${$3+:} false; then :
2066 $as_echo_n "(cached) " >&6
2067 else
2068 eval "$3=\$ac_header_compiler"
2070 eval ac_res=\$$3
2071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2072 $as_echo "$ac_res" >&6; }
2074 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2076 } # ac_fn_c_check_header_mongrel
2078 # ac_fn_c_try_run LINENO
2079 # ----------------------
2080 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2081 # that executables *can* be run.
2082 ac_fn_c_try_run ()
2084 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2085 if { { ac_try="$ac_link"
2086 case "(($ac_try" in
2087 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2088 *) ac_try_echo=$ac_try;;
2089 esac
2090 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2091 $as_echo "$ac_try_echo"; } >&5
2092 (eval "$ac_link") 2>&5
2093 ac_status=$?
2094 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2095 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2096 { { case "(($ac_try" in
2097 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2098 *) ac_try_echo=$ac_try;;
2099 esac
2100 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2101 $as_echo "$ac_try_echo"; } >&5
2102 (eval "$ac_try") 2>&5
2103 ac_status=$?
2104 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2105 test $ac_status = 0; }; }; then :
2106 ac_retval=0
2107 else
2108 $as_echo "$as_me: program exited with status $ac_status" >&5
2109 $as_echo "$as_me: failed program was:" >&5
2110 sed 's/^/| /' conftest.$ac_ext >&5
2112 ac_retval=$ac_status
2114 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2115 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2116 as_fn_set_status $ac_retval
2118 } # ac_fn_c_try_run
2120 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2121 # -------------------------------------------------------
2122 # Tests whether HEADER exists and can be compiled using the include files in
2123 # INCLUDES, setting the cache variable VAR accordingly.
2124 ac_fn_c_check_header_compile ()
2126 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2127 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2128 $as_echo_n "checking for $2... " >&6; }
2129 if eval \${$3+:} false; then :
2130 $as_echo_n "(cached) " >&6
2131 else
2132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2133 /* end confdefs.h. */
2135 #include <$2>
2136 _ACEOF
2137 if ac_fn_c_try_compile "$LINENO"; then :
2138 eval "$3=yes"
2139 else
2140 eval "$3=no"
2142 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2144 eval ac_res=\$$3
2145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2146 $as_echo "$ac_res" >&6; }
2147 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2149 } # ac_fn_c_check_header_compile
2151 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2152 # -------------------------------------------
2153 # Tests whether TYPE exists after having included INCLUDES, setting cache
2154 # variable VAR accordingly.
2155 ac_fn_c_check_type ()
2157 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2159 $as_echo_n "checking for $2... " >&6; }
2160 if eval \${$3+:} false; then :
2161 $as_echo_n "(cached) " >&6
2162 else
2163 eval "$3=no"
2164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2165 /* end confdefs.h. */
2168 main ()
2170 if (sizeof ($2))
2171 return 0;
2173 return 0;
2175 _ACEOF
2176 if ac_fn_c_try_compile "$LINENO"; then :
2177 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2178 /* end confdefs.h. */
2181 main ()
2183 if (sizeof (($2)))
2184 return 0;
2186 return 0;
2188 _ACEOF
2189 if ac_fn_c_try_compile "$LINENO"; then :
2191 else
2192 eval "$3=yes"
2194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2196 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2198 eval ac_res=\$$3
2199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2200 $as_echo "$ac_res" >&6; }
2201 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2203 } # ac_fn_c_check_type
2205 # ac_fn_c_check_func LINENO FUNC VAR
2206 # ----------------------------------
2207 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2208 ac_fn_c_check_func ()
2210 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2212 $as_echo_n "checking for $2... " >&6; }
2213 if eval \${$3+:} false; then :
2214 $as_echo_n "(cached) " >&6
2215 else
2216 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2217 /* end confdefs.h. */
2218 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2219 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2220 #define $2 innocuous_$2
2222 /* System header to define __stub macros and hopefully few prototypes,
2223 which can conflict with char $2 (); below.
2224 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2225 <limits.h> exists even on freestanding compilers. */
2227 #ifdef __STDC__
2228 # include <limits.h>
2229 #else
2230 # include <assert.h>
2231 #endif
2233 #undef $2
2235 /* Override any GCC internal prototype to avoid an error.
2236 Use char because int might match the return type of a GCC
2237 builtin and then its argument prototype would still apply. */
2238 #ifdef __cplusplus
2239 extern "C"
2240 #endif
2241 char $2 ();
2242 /* The GNU C library defines this for functions which it implements
2243 to always fail with ENOSYS. Some functions are actually named
2244 something starting with __ and the normal name is an alias. */
2245 #if defined __stub_$2 || defined __stub___$2
2246 choke me
2247 #endif
2250 main ()
2252 return $2 ();
2254 return 0;
2256 _ACEOF
2257 if ac_fn_c_try_link "$LINENO"; then :
2258 eval "$3=yes"
2259 else
2260 eval "$3=no"
2262 rm -f core conftest.err conftest.$ac_objext \
2263 conftest$ac_exeext conftest.$ac_ext
2265 eval ac_res=\$$3
2266 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2267 $as_echo "$ac_res" >&6; }
2268 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2270 } # ac_fn_c_check_func
2271 cat >config.log <<_ACEOF
2272 This file contains any messages produced by compilers while
2273 running configure, to aid debugging if configure makes a mistake.
2275 It was created by $as_me, which was
2276 generated by GNU Autoconf 2.69. Invocation command line was
2278 $ $0 $@
2280 _ACEOF
2281 exec 5>>config.log
2283 cat <<_ASUNAME
2284 ## --------- ##
2285 ## Platform. ##
2286 ## --------- ##
2288 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2289 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2290 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2291 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2292 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2294 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2295 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2297 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2298 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2299 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2300 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2301 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2302 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2303 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2305 _ASUNAME
2307 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2308 for as_dir in $PATH
2310 IFS=$as_save_IFS
2311 test -z "$as_dir" && as_dir=.
2312 $as_echo "PATH: $as_dir"
2313 done
2314 IFS=$as_save_IFS
2316 } >&5
2318 cat >&5 <<_ACEOF
2321 ## ----------- ##
2322 ## Core tests. ##
2323 ## ----------- ##
2325 _ACEOF
2328 # Keep a trace of the command line.
2329 # Strip out --no-create and --no-recursion so they do not pile up.
2330 # Strip out --silent because we don't want to record it for future runs.
2331 # Also quote any args containing shell meta-characters.
2332 # Make two passes to allow for proper duplicate-argument suppression.
2333 ac_configure_args=
2334 ac_configure_args0=
2335 ac_configure_args1=
2336 ac_must_keep_next=false
2337 for ac_pass in 1 2
2339 for ac_arg
2341 case $ac_arg in
2342 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2343 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2344 | -silent | --silent | --silen | --sile | --sil)
2345 continue ;;
2346 *\'*)
2347 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2348 esac
2349 case $ac_pass in
2350 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2352 as_fn_append ac_configure_args1 " '$ac_arg'"
2353 if test $ac_must_keep_next = true; then
2354 ac_must_keep_next=false # Got value, back to normal.
2355 else
2356 case $ac_arg in
2357 *=* | --config-cache | -C | -disable-* | --disable-* \
2358 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2359 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2360 | -with-* | --with-* | -without-* | --without-* | --x)
2361 case "$ac_configure_args0 " in
2362 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2363 esac
2365 -* ) ac_must_keep_next=true ;;
2366 esac
2368 as_fn_append ac_configure_args " '$ac_arg'"
2370 esac
2371 done
2372 done
2373 { ac_configure_args0=; unset ac_configure_args0;}
2374 { ac_configure_args1=; unset ac_configure_args1;}
2376 # When interrupted or exit'd, cleanup temporary files, and complete
2377 # config.log. We remove comments because anyway the quotes in there
2378 # would cause problems or look ugly.
2379 # WARNING: Use '\'' to represent an apostrophe within the trap.
2380 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2381 trap 'exit_status=$?
2382 # Save into config.log some information that might help in debugging.
2384 echo
2386 $as_echo "## ---------------- ##
2387 ## Cache variables. ##
2388 ## ---------------- ##"
2389 echo
2390 # The following way of writing the cache mishandles newlines in values,
2392 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2393 eval ac_val=\$$ac_var
2394 case $ac_val in #(
2395 *${as_nl}*)
2396 case $ac_var in #(
2397 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2398 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2399 esac
2400 case $ac_var in #(
2401 _ | IFS | as_nl) ;; #(
2402 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2403 *) { eval $ac_var=; unset $ac_var;} ;;
2404 esac ;;
2405 esac
2406 done
2407 (set) 2>&1 |
2408 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2409 *${as_nl}ac_space=\ *)
2410 sed -n \
2411 "s/'\''/'\''\\\\'\'''\''/g;
2412 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2413 ;; #(
2415 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2417 esac |
2418 sort
2420 echo
2422 $as_echo "## ----------------- ##
2423 ## Output variables. ##
2424 ## ----------------- ##"
2425 echo
2426 for ac_var in $ac_subst_vars
2428 eval ac_val=\$$ac_var
2429 case $ac_val in
2430 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2431 esac
2432 $as_echo "$ac_var='\''$ac_val'\''"
2433 done | sort
2434 echo
2436 if test -n "$ac_subst_files"; then
2437 $as_echo "## ------------------- ##
2438 ## File substitutions. ##
2439 ## ------------------- ##"
2440 echo
2441 for ac_var in $ac_subst_files
2443 eval ac_val=\$$ac_var
2444 case $ac_val in
2445 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2446 esac
2447 $as_echo "$ac_var='\''$ac_val'\''"
2448 done | sort
2449 echo
2452 if test -s confdefs.h; then
2453 $as_echo "## ----------- ##
2454 ## confdefs.h. ##
2455 ## ----------- ##"
2456 echo
2457 cat confdefs.h
2458 echo
2460 test "$ac_signal" != 0 &&
2461 $as_echo "$as_me: caught signal $ac_signal"
2462 $as_echo "$as_me: exit $exit_status"
2463 } >&5
2464 rm -f core *.core core.conftest.* &&
2465 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2466 exit $exit_status
2468 for ac_signal in 1 2 13 15; do
2469 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2470 done
2471 ac_signal=0
2473 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2474 rm -f -r conftest* confdefs.h
2476 $as_echo "/* confdefs.h */" > confdefs.h
2478 # Predefined preprocessor variables.
2480 cat >>confdefs.h <<_ACEOF
2481 #define PACKAGE_NAME "$PACKAGE_NAME"
2482 _ACEOF
2484 cat >>confdefs.h <<_ACEOF
2485 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2486 _ACEOF
2488 cat >>confdefs.h <<_ACEOF
2489 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2490 _ACEOF
2492 cat >>confdefs.h <<_ACEOF
2493 #define PACKAGE_STRING "$PACKAGE_STRING"
2494 _ACEOF
2496 cat >>confdefs.h <<_ACEOF
2497 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2498 _ACEOF
2500 cat >>confdefs.h <<_ACEOF
2501 #define PACKAGE_URL "$PACKAGE_URL"
2502 _ACEOF
2505 # Let the site file select an alternate cache file if it wants to.
2506 # Prefer an explicitly selected file to automatically selected ones.
2507 ac_site_file1=NONE
2508 ac_site_file2=NONE
2509 if test -n "$CONFIG_SITE"; then
2510 # We do not want a PATH search for config.site.
2511 case $CONFIG_SITE in #((
2512 -*) ac_site_file1=./$CONFIG_SITE;;
2513 */*) ac_site_file1=$CONFIG_SITE;;
2514 *) ac_site_file1=./$CONFIG_SITE;;
2515 esac
2516 elif test "x$prefix" != xNONE; then
2517 ac_site_file1=$prefix/share/config.site
2518 ac_site_file2=$prefix/etc/config.site
2519 else
2520 ac_site_file1=$ac_default_prefix/share/config.site
2521 ac_site_file2=$ac_default_prefix/etc/config.site
2523 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2525 test "x$ac_site_file" = xNONE && continue
2526 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2527 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2528 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2529 sed 's/^/| /' "$ac_site_file" >&5
2530 . "$ac_site_file" \
2531 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2532 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2533 as_fn_error $? "failed to load site script $ac_site_file
2534 See \`config.log' for more details" "$LINENO" 5; }
2536 done
2538 if test -r "$cache_file"; then
2539 # Some versions of bash will fail to source /dev/null (special files
2540 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2541 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2543 $as_echo "$as_me: loading cache $cache_file" >&6;}
2544 case $cache_file in
2545 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2546 *) . "./$cache_file";;
2547 esac
2549 else
2550 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2551 $as_echo "$as_me: creating cache $cache_file" >&6;}
2552 >$cache_file
2555 # Check that the precious variables saved in the cache have kept the same
2556 # value.
2557 ac_cache_corrupted=false
2558 for ac_var in $ac_precious_vars; do
2559 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2560 eval ac_new_set=\$ac_env_${ac_var}_set
2561 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2562 eval ac_new_val=\$ac_env_${ac_var}_value
2563 case $ac_old_set,$ac_new_set in
2564 set,)
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2566 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2567 ac_cache_corrupted=: ;;
2568 ,set)
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2570 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2571 ac_cache_corrupted=: ;;
2572 ,);;
2574 if test "x$ac_old_val" != "x$ac_new_val"; then
2575 # differences in whitespace do not lead to failure.
2576 ac_old_val_w=`echo x $ac_old_val`
2577 ac_new_val_w=`echo x $ac_new_val`
2578 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2580 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2581 ac_cache_corrupted=:
2582 else
2583 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2584 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2585 eval $ac_var=\$ac_old_val
2587 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2588 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2589 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2590 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2591 fi;;
2592 esac
2593 # Pass precious variables to config.status.
2594 if test "$ac_new_set" = set; then
2595 case $ac_new_val in
2596 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2597 *) ac_arg=$ac_var=$ac_new_val ;;
2598 esac
2599 case " $ac_configure_args " in
2600 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2601 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2602 esac
2604 done
2605 if $ac_cache_corrupted; then
2606 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2607 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2608 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2609 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2610 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2612 ## -------------------- ##
2613 ## Main body of script. ##
2614 ## -------------------- ##
2616 ac_ext=c
2617 ac_cpp='$CPP $CPPFLAGS'
2618 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2619 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2620 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2625 unset ROOT TOOLROOT
2628 # Check whether --with-64bit was given.
2629 if test "${with_64bit+set}" = set; then :
2630 withval=$with_64bit; use_64bit=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-64bit=$withval"
2635 # Check whether --with-optimization was given.
2636 if test "${with_optimization+set}" = set; then :
2637 withval=$with_optimization; use_optimization=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-optimization=$withval"
2638 else
2639 use_optimizaton=yes
2644 # Check whether --with-threads was given.
2645 if test "${with_threads+set}" = set; then :
2646 withval=$with_threads; do_threads=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-threads=$withval"
2647 else
2648 do_threads=check
2653 # Check whether --with-secure-sockets was given.
2654 if test "${with_secure_sockets+set}" = set; then :
2655 withval=$with_secure_sockets; do_secure=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-secure-sockets=$withval"
2656 else
2657 do_secure=check
2662 # Check whether --with-static-probes was given.
2663 if test "${with_static_probes+set}" = set; then :
2664 withval=$with_static_probes; do_probes=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-static-probes=$withval"
2665 else
2666 do_probes=check
2671 # Check whether --with-infiniband was given.
2672 if test "${with_infiniband+set}" = set; then :
2673 withval=$with_infiniband; do_infiniband=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-infiniband=$withval"
2674 else
2675 do_infiniband=check
2680 # Check whether --with-user was given.
2681 if test "${with_user+set}" = set; then :
2682 withval=$with_user; pcp_user=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-user-account=$withval"
2683 else
2684 pcp_user=pcp
2690 # Check whether --with-group was given.
2691 if test "${with_group+set}" = set; then :
2692 withval=$with_group; pcp_group=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-group-account=$withval"
2693 else
2694 pcp_group=pcp
2700 # Check whether --with-discovery was given.
2701 if test "${with_discovery+set}" = set; then :
2702 withval=$with_discovery; do_discovery=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-discovery=$withval"
2703 else
2704 do_discovery=check
2709 # Check whether --with-systemd was given.
2710 if test "${with_systemd+set}" = set; then :
2711 withval=$with_systemd; do_systemd=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-systemd=$withval"
2712 else
2713 do_systemd=check
2718 # Check whether --with-qt was given.
2719 if test "${with_qt+set}" = set; then :
2720 withval=$with_qt; do_qt=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-qt=$withval"
2721 else
2722 do_qt=check
2727 # Check whether --with-qt3d was given.
2728 if test "${with_qt3d+set}" = set; then :
2729 withval=$with_qt3d; do_qt3d=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-qt3d=$withval"
2730 else
2731 do_qt3d=check
2736 # Check whether --with-python was given.
2737 if test "${with_python+set}" = set; then :
2738 withval=$with_python; do_python=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-python=$withval"
2739 else
2740 do_python=check
2745 # Check whether --with-python3 was given.
2746 if test "${with_python3+set}" = set; then :
2747 withval=$with_python3; do_python3=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-python3=$withval"
2748 else
2749 do_python3=check
2754 # Check whether --with-books was given.
2755 if test "${with_books+set}" = set; then :
2756 withval=$with_books; do_books=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-books=$withval"
2757 else
2758 do_books=no
2763 # Check whether --with-books-brand was given.
2764 if test "${with_books_brand+set}" = set; then :
2765 withval=$with_books_brand; do_books_brand=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-books-brand=$withval"
2766 else
2767 do_books_brand=common
2772 # Check whether --with-papi was given.
2773 if test "${with_papi+set}" = set; then :
2774 withval=$with_papi; do_papi=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-papi=$withval"
2775 else
2776 do_papi=check
2781 # Check whether --with-perfevent was given.
2782 if test "${with_perfevent+set}" = set; then :
2783 withval=$with_perfevent; do_perfevent=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-perfevent=$withval"
2784 else
2785 do_perfevent=check
2790 # Check whether --with-pmdajson was given.
2791 if test "${with_pmdajson+set}" = set; then :
2792 withval=$with_pmdajson; do_pmdajson=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-pmdajson=$withval"
2793 else
2794 do_pmdajson=check
2799 # Check whether --with-pmdasnmp was given.
2800 if test "${with_pmdasnmp+set}" = set; then :
2801 withval=$with_pmdasnmp; do_pmdasnmp=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-pmdasnmp=$withval"
2802 else
2803 do_pmdasnmp=check
2808 # Check whether --with-manager was given.
2809 if test "${with_manager+set}" = set; then :
2810 withval=$with_manager; do_manager=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-manager=$withval"
2811 else
2812 do_manager=check
2817 # Check whether --with-webapi was given.
2818 if test "${with_webapi+set}" = set; then :
2819 withval=$with_webapi; do_webapi=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-webapi=$withval"
2820 else
2821 do_webapi=check
2826 # Check whether --with-webjs was given.
2827 if test "${with_webjs+set}" = set; then :
2828 withval=$with_webjs; do_webjs=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-webjs=$withval"
2829 else
2830 do_webjs=no
2835 # Check whether --with-vector was given.
2836 if test "${with_vector+set}" = set; then :
2837 withval=$with_vector; do_vector=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-vector=$withval"
2838 else
2839 do_vector=no
2844 # Check whether --with-parfait was given.
2845 if test "${with_parfait+set}" = set; then :
2846 withval=$with_parfait; do_parfait=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-parfait=$withval"
2847 else
2848 do_parfait=no
2853 # Check whether --with-selinux was given.
2854 if test "${with_selinux+set}" = set; then :
2855 withval=$with_selinux; do_selinux=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-selinux=$withval"
2856 else
2857 do_selinux=check
2862 # Check whether --with-make was given.
2863 if test "${with_make+set}" = set; then :
2864 withval=$with_make; MAKE=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-make=$withval"
2865 else
2866 MAKE=''
2871 # Check whether --with-tar was given.
2872 if test "${with_tar+set}" = set; then :
2873 withval=$with_tar; TAR=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-tar=$withval"
2874 else
2875 TAR=''
2880 # Check whether --with-zip was given.
2881 if test "${with_zip+set}" = set; then :
2882 withval=$with_zip; ZIP=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-zip=$withval"
2883 else
2884 ZIP=''
2889 ac_aux_dir=
2890 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2891 if test -f "$ac_dir/install-sh"; then
2892 ac_aux_dir=$ac_dir
2893 ac_install_sh="$ac_aux_dir/install-sh -c"
2894 break
2895 elif test -f "$ac_dir/install.sh"; then
2896 ac_aux_dir=$ac_dir
2897 ac_install_sh="$ac_aux_dir/install.sh -c"
2898 break
2899 elif test -f "$ac_dir/shtool"; then
2900 ac_aux_dir=$ac_dir
2901 ac_install_sh="$ac_aux_dir/shtool install -c"
2902 break
2904 done
2905 if test -z "$ac_aux_dir"; then
2906 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2909 # These three variables are undocumented and unsupported,
2910 # and are intended to be withdrawn in a future Autoconf release.
2911 # They can cause serious problems if a builder's source tree is in a directory
2912 # whose full name contains unusual characters.
2913 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2914 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2915 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2918 # Make sure we can run config.sub.
2919 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2920 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2923 $as_echo_n "checking build system type... " >&6; }
2924 if ${ac_cv_build+:} false; then :
2925 $as_echo_n "(cached) " >&6
2926 else
2927 ac_build_alias=$build_alias
2928 test "x$ac_build_alias" = x &&
2929 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2930 test "x$ac_build_alias" = x &&
2931 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2932 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2933 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2937 $as_echo "$ac_cv_build" >&6; }
2938 case $ac_cv_build in
2939 *-*-*) ;;
2940 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2941 esac
2942 build=$ac_cv_build
2943 ac_save_IFS=$IFS; IFS='-'
2944 set x $ac_cv_build
2945 shift
2946 build_cpu=$1
2947 build_vendor=$2
2948 shift; shift
2949 # Remember, the first character of IFS is used to create $*,
2950 # except with old shells:
2951 build_os=$*
2952 IFS=$ac_save_IFS
2953 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2957 $as_echo_n "checking host system type... " >&6; }
2958 if ${ac_cv_host+:} false; then :
2959 $as_echo_n "(cached) " >&6
2960 else
2961 if test "x$host_alias" = x; then
2962 ac_cv_host=$ac_cv_build
2963 else
2964 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2965 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2970 $as_echo "$ac_cv_host" >&6; }
2971 case $ac_cv_host in
2972 *-*-*) ;;
2973 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2974 esac
2975 host=$ac_cv_host
2976 ac_save_IFS=$IFS; IFS='-'
2977 set x $ac_cv_host
2978 shift
2979 host_cpu=$1
2980 host_vendor=$2
2981 shift; shift
2982 # Remember, the first character of IFS is used to create $*,
2983 # except with old shells:
2984 host_os=$*
2985 IFS=$ac_save_IFS
2986 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2990 $as_echo_n "checking target system type... " >&6; }
2991 if ${ac_cv_target+:} false; then :
2992 $as_echo_n "(cached) " >&6
2993 else
2994 if test "x$target_alias" = x; then
2995 ac_cv_target=$ac_cv_host
2996 else
2997 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2998 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3003 $as_echo "$ac_cv_target" >&6; }
3004 case $ac_cv_target in
3005 *-*-*) ;;
3006 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3007 esac
3008 target=$ac_cv_target
3009 ac_save_IFS=$IFS; IFS='-'
3010 set x $ac_cv_target
3011 shift
3012 target_cpu=$1
3013 target_vendor=$2
3014 shift; shift
3015 # Remember, the first character of IFS is used to create $*,
3016 # except with old shells:
3017 target_os=$*
3018 IFS=$ac_save_IFS
3019 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3022 # The aliases save the names the user supplied, while $host etc.
3023 # will get canonicalized.
3024 test -n "$target_alias" &&
3025 test "$program_prefix$program_suffix$program_transform_name" = \
3026 NONENONEs,x,x, &&
3027 program_prefix=${target_alias}-
3029 if test -z "$target"
3030 then
3031 echo '
3032 FATAL ERROR: Cannot guess your target, try explicit specification
3033 using --target or mailto: pcp@groups.io to ask.'
3034 rm -rf conftest conftest.*
3035 exit 1
3036 else
3037 target=`echo $target | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
3038 target_os=`echo $target_os | sed 's/solaris2\..*/solaris/'`
3039 target_os=`echo $target_os | sed 's/^\([^-][^-]*\)-.*$/\1/' | sed 's/[\.0-9]*//g'`
3041 build=`echo $build | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
3042 build_os=`echo $build_os | sed 's/solaris2\..*/solaris/'`
3043 build_os=`echo $build_os | sed 's/^\([^-][^-]*\)-.*$/\1/'`
3046 echo Building on $build for $target
3047 echo "Build: os=$build_os cpu=$build_cpu"
3048 echo "Target: os=$target_os cpu=$target_cpu"
3050 if test "$cross_compiling" = "yes"; then
3051 if test -f ./config.$target_os; then
3052 . ./config.$target_os
3053 else
3054 echo
3055 echo "
3056 FATAL ERROR: Cannot perform cross-compilation without a file to source
3057 configuration information from (config.$target_os is missing)"
3058 rm -rf conftest conftest.*
3059 exit 1
3065 target_distro=$target_os
3066 if test $target_os = linux
3067 then
3069 $as_echo "#define IS_LINUX 1" >>confdefs.h
3071 test -f /etc/SuSE-release && target_distro=suse
3072 test -f /etc/fedora-release && target_distro=fedora
3073 test -f /etc/redhat-release && target_distro=redhat
3074 test -f /etc/debian_version && target_distro=debian
3075 test -f /etc/slackware-version && target_distro=slackware
3076 test -f /etc/gentoo-release && target_distro=gentoo
3077 test -f /etc/mandriva-release && target_distro=mandriva
3078 test -f /etc/arch-release && target_distro=arch
3079 export CFLAGS="-fPIC -fno-strict-aliasing -D_GNU_SOURCE"
3080 pcp_platform_paths='/usr/bin/X11:/usr/local/bin'
3081 pcp_ps_all_flags=-efw
3082 elif test $target_os = darwin
3083 then
3085 $as_echo "#define IS_DARWIN 1" >>confdefs.h
3087 target_distro=macosx
3088 version=`sw_vers -productVersion | sed -e 's/\.//' -e 's/\..*//g'`
3089 CFLAGS="-fPIC -no-cpp-precomp -fno-strict-aliasing -arch i386"
3090 if test $version -ge 106
3091 then
3092 target_distro=cocoa
3093 CFLAGS="$CFLAGS -arch x86_64"
3095 export CFLAGS
3096 pcp_platform_paths='/usr/local/bin'
3097 pcp_ps_all_flags="-axw -o user,pid,ppid,cpu,stime,tty,time,command"
3098 elif test $target_os = mingw
3099 then
3101 $as_echo "#define IS_MINGW 1" >>confdefs.h
3103 CFLAGS="-fno-strict-aliasing"
3104 pcp_platform_paths=''
3105 pcp_ps_all_flags=-efW
3106 elif test $target_os = solaris
3107 then
3109 $as_echo "#define IS_SOLARIS 1" >>confdefs.h
3111 export CFLAGS_IF_GCC="-fPIC -fno-strict-aliasing"
3112 export CFLAGS_IF_SUNCC="-fPIC -xalias_level=any -D_XPG4_2 -D__EXTENSIONS__"
3113 pcp_platform_paths='/usr/bin/X11:/usr/local/bin:/opt/sfw/bin:/opt/csw/bin'
3114 pcp_ps_all_flags=-ef
3115 elif test $target_os = aix
3116 then
3118 $as_echo "#define IS_AIX 1" >>confdefs.h
3120 export CFLAGS="-qcpluscmt"
3121 pcp_platform_paths='/usr/bin/X11:/usr/local/bin'
3122 pcp_ps_all_flags=-ef
3123 elif test $target_os = freebsd || test $target_os = kfreebsd
3124 then
3126 $as_echo "#define IS_FREEBSD 1" >>confdefs.h
3128 test -f /etc/debian_version && target_distro=debian
3129 export CFLAGS="-fPIC -fno-strict-aliasing -D_GNU_SOURCE"
3130 if test $target_os = kfreebsd
3131 then
3132 pcp_ps_all_flags=-efw
3133 else
3134 pcp_ps_all_flags=auxww
3136 pcp_platform_paths='/usr/bin/X11'
3137 test -d /usr/local/bin && pcp_platform_paths="$pcp_platform_paths:/usr/local/bin"
3138 test -d /usr/bsd && pcp_platform_paths="$pcp_platform_paths:/usr/bsd"
3139 elif test $target_os = gnu
3140 then
3142 $as_echo "#define IS_GNU 1" >>confdefs.h
3144 test -f /etc/debian_version && target_distro=debian
3145 export CFLAGS="-fPIC -fno-strict-aliasing -D_GNU_SOURCE"
3146 pcp_platform_paths='/usr/bin/X11:/usr/local/bin'
3147 pcp_ps_all_flags=-efw
3148 elif test $target_os = netbsdelf
3149 then
3150 target_os=netbsd
3152 $as_echo "#define IS_NETBSD 1" >>confdefs.h
3154 export CFLAGS="-fPIC -fno-strict-aliasing -D_GNU_SOURCE -D_NETBSD_SOURCE"
3155 pcp_platform_paths='/usr/pkg/bin'
3156 pcp_ps_all_flags=auxww
3157 elif test $target_os = openbsd
3158 then
3159 target_os=openbsd
3161 $as_echo "#define IS_OPENBSD 1" >>confdefs.h
3163 export CFLAGS="-fPIC -fno-strict-aliasing -D_GNU_SOURCE"
3164 pcp_platform_paths='/usr/local/bin'
3165 pcp_ps_all_flags=auxww
3166 else
3167 echo
3168 echo "FATAL ERROR: need platform-specific customization for \"$target_os\""
3169 rm -rf conftest conftest.*
3170 exit 1
3175 if test "$use_optimization" = no
3176 then
3177 optimization="-O0 -g"
3178 else
3179 optimization="-O2 -g"
3190 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
3191 if test -n "$ac_tool_prefix"; then
3192 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3193 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3195 $as_echo_n "checking for $ac_word... " >&6; }
3196 if ${ac_cv_path_PKG_CONFIG+:} false; then :
3197 $as_echo_n "(cached) " >&6
3198 else
3199 case $PKG_CONFIG in
3200 [\\/]* | ?:[\\/]*)
3201 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3204 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3205 for as_dir in $PATH
3207 IFS=$as_save_IFS
3208 test -z "$as_dir" && as_dir=.
3209 for ac_exec_ext in '' $ac_executable_extensions; do
3210 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3211 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3212 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3213 break 2
3215 done
3216 done
3217 IFS=$as_save_IFS
3220 esac
3222 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3223 if test -n "$PKG_CONFIG"; then
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
3225 $as_echo "$PKG_CONFIG" >&6; }
3226 else
3227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3228 $as_echo "no" >&6; }
3233 if test -z "$ac_cv_path_PKG_CONFIG"; then
3234 ac_pt_PKG_CONFIG=$PKG_CONFIG
3235 # Extract the first word of "pkg-config", so it can be a program name with args.
3236 set dummy pkg-config; ac_word=$2
3237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3238 $as_echo_n "checking for $ac_word... " >&6; }
3239 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
3240 $as_echo_n "(cached) " >&6
3241 else
3242 case $ac_pt_PKG_CONFIG in
3243 [\\/]* | ?:[\\/]*)
3244 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
3247 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3248 for as_dir in $PATH
3250 IFS=$as_save_IFS
3251 test -z "$as_dir" && as_dir=.
3252 for ac_exec_ext in '' $ac_executable_extensions; do
3253 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3254 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3255 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3256 break 2
3258 done
3259 done
3260 IFS=$as_save_IFS
3263 esac
3265 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
3266 if test -n "$ac_pt_PKG_CONFIG"; then
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
3268 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
3269 else
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3271 $as_echo "no" >&6; }
3274 if test "x$ac_pt_PKG_CONFIG" = x; then
3275 PKG_CONFIG=""
3276 else
3277 case $cross_compiling:$ac_tool_warned in
3278 yes:)
3279 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3280 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3281 ac_tool_warned=yes ;;
3282 esac
3283 PKG_CONFIG=$ac_pt_PKG_CONFIG
3285 else
3286 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
3290 if test -n "$PKG_CONFIG"; then
3291 _pkg_min_version=0.9.0
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
3293 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
3294 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
3295 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3296 $as_echo "yes" >&6; }
3297 else
3298 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3299 $as_echo "no" >&6; }
3300 PKG_CONFIG=""
3303 if test -z "$PKG_CONFIG"; then
3304 as_fn_error $? "cannot find a 'pkg-config' command" "$LINENO" 5
3307 cflags_abi=
3308 ac_ext=c
3309 ac_cpp='$CPP $CPPFLAGS'
3310 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3311 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3312 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3313 if test -n "$ac_tool_prefix"; then
3314 for ac_prog in suncc egcc gcc cc
3316 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3317 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3319 $as_echo_n "checking for $ac_word... " >&6; }
3320 if ${ac_cv_prog_CC+:} false; then :
3321 $as_echo_n "(cached) " >&6
3322 else
3323 if test -n "$CC"; then
3324 ac_cv_prog_CC="$CC" # Let the user override the test.
3325 else
3326 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3327 for as_dir in $PATH
3329 IFS=$as_save_IFS
3330 test -z "$as_dir" && as_dir=.
3331 for ac_exec_ext in '' $ac_executable_extensions; do
3332 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3333 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3334 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3335 break 2
3337 done
3338 done
3339 IFS=$as_save_IFS
3343 CC=$ac_cv_prog_CC
3344 if test -n "$CC"; then
3345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3346 $as_echo "$CC" >&6; }
3347 else
3348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3349 $as_echo "no" >&6; }
3353 test -n "$CC" && break
3354 done
3356 if test -z "$CC"; then
3357 ac_ct_CC=$CC
3358 for ac_prog in suncc egcc gcc cc
3360 # Extract the first word of "$ac_prog", so it can be a program name with args.
3361 set dummy $ac_prog; ac_word=$2
3362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3363 $as_echo_n "checking for $ac_word... " >&6; }
3364 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3365 $as_echo_n "(cached) " >&6
3366 else
3367 if test -n "$ac_ct_CC"; then
3368 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3369 else
3370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3371 for as_dir in $PATH
3373 IFS=$as_save_IFS
3374 test -z "$as_dir" && as_dir=.
3375 for ac_exec_ext in '' $ac_executable_extensions; do
3376 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3377 ac_cv_prog_ac_ct_CC="$ac_prog"
3378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3379 break 2
3381 done
3382 done
3383 IFS=$as_save_IFS
3387 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3388 if test -n "$ac_ct_CC"; then
3389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3390 $as_echo "$ac_ct_CC" >&6; }
3391 else
3392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3393 $as_echo "no" >&6; }
3397 test -n "$ac_ct_CC" && break
3398 done
3400 if test "x$ac_ct_CC" = x; then
3401 CC=""
3402 else
3403 case $cross_compiling:$ac_tool_warned in
3404 yes:)
3405 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3406 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3407 ac_tool_warned=yes ;;
3408 esac
3409 CC=$ac_ct_CC
3414 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3415 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3416 as_fn_error $? "no acceptable C compiler found in \$PATH
3417 See \`config.log' for more details" "$LINENO" 5; }
3419 # Provide some information about the compiler.
3420 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3421 set X $ac_compile
3422 ac_compiler=$2
3423 for ac_option in --version -v -V -qversion; do
3424 { { ac_try="$ac_compiler $ac_option >&5"
3425 case "(($ac_try" in
3426 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3427 *) ac_try_echo=$ac_try;;
3428 esac
3429 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3430 $as_echo "$ac_try_echo"; } >&5
3431 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3432 ac_status=$?
3433 if test -s conftest.err; then
3434 sed '10a\
3435 ... rest of stderr output deleted ...
3436 10q' conftest.err >conftest.er1
3437 cat conftest.er1 >&5
3439 rm -f conftest.er1 conftest.err
3440 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3441 test $ac_status = 0; }
3442 done
3444 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3445 /* end confdefs.h. */
3448 main ()
3452 return 0;
3454 _ACEOF
3455 ac_clean_files_save=$ac_clean_files
3456 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3457 # Try to create an executable without -o first, disregard a.out.
3458 # It will help us diagnose broken compilers, and finding out an intuition
3459 # of exeext.
3460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3461 $as_echo_n "checking whether the C compiler works... " >&6; }
3462 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3464 # The possible output files:
3465 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3467 ac_rmfiles=
3468 for ac_file in $ac_files
3470 case $ac_file in
3471 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3472 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3473 esac
3474 done
3475 rm -f $ac_rmfiles
3477 if { { ac_try="$ac_link_default"
3478 case "(($ac_try" in
3479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3480 *) ac_try_echo=$ac_try;;
3481 esac
3482 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3483 $as_echo "$ac_try_echo"; } >&5
3484 (eval "$ac_link_default") 2>&5
3485 ac_status=$?
3486 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3487 test $ac_status = 0; }; then :
3488 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3489 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3490 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3491 # so that the user can short-circuit this test for compilers unknown to
3492 # Autoconf.
3493 for ac_file in $ac_files ''
3495 test -f "$ac_file" || continue
3496 case $ac_file in
3497 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3499 [ab].out )
3500 # We found the default executable, but exeext='' is most
3501 # certainly right.
3502 break;;
3503 *.* )
3504 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3505 then :; else
3506 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3508 # We set ac_cv_exeext here because the later test for it is not
3509 # safe: cross compilers may not add the suffix if given an `-o'
3510 # argument, so we may need to know it at that point already.
3511 # Even if this section looks crufty: it has the advantage of
3512 # actually working.
3513 break;;
3515 break;;
3516 esac
3517 done
3518 test "$ac_cv_exeext" = no && ac_cv_exeext=
3520 else
3521 ac_file=''
3523 if test -z "$ac_file"; then :
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3525 $as_echo "no" >&6; }
3526 $as_echo "$as_me: failed program was:" >&5
3527 sed 's/^/| /' conftest.$ac_ext >&5
3529 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3530 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3531 as_fn_error 77 "C compiler cannot create executables
3532 See \`config.log' for more details" "$LINENO" 5; }
3533 else
3534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3535 $as_echo "yes" >&6; }
3537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3538 $as_echo_n "checking for C compiler default output file name... " >&6; }
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3540 $as_echo "$ac_file" >&6; }
3541 ac_exeext=$ac_cv_exeext
3543 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3544 ac_clean_files=$ac_clean_files_save
3545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3546 $as_echo_n "checking for suffix of executables... " >&6; }
3547 if { { ac_try="$ac_link"
3548 case "(($ac_try" in
3549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3550 *) ac_try_echo=$ac_try;;
3551 esac
3552 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3553 $as_echo "$ac_try_echo"; } >&5
3554 (eval "$ac_link") 2>&5
3555 ac_status=$?
3556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3557 test $ac_status = 0; }; then :
3558 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3559 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3560 # work properly (i.e., refer to `conftest.exe'), while it won't with
3561 # `rm'.
3562 for ac_file in conftest.exe conftest conftest.*; do
3563 test -f "$ac_file" || continue
3564 case $ac_file in
3565 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3566 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3567 break;;
3568 * ) break;;
3569 esac
3570 done
3571 else
3572 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3573 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3574 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3575 See \`config.log' for more details" "$LINENO" 5; }
3577 rm -f conftest conftest$ac_cv_exeext
3578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3579 $as_echo "$ac_cv_exeext" >&6; }
3581 rm -f conftest.$ac_ext
3582 EXEEXT=$ac_cv_exeext
3583 ac_exeext=$EXEEXT
3584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3585 /* end confdefs.h. */
3586 #include <stdio.h>
3588 main ()
3590 FILE *f = fopen ("conftest.out", "w");
3591 return ferror (f) || fclose (f) != 0;
3594 return 0;
3596 _ACEOF
3597 ac_clean_files="$ac_clean_files conftest.out"
3598 # Check that the compiler produces executables we can run. If not, either
3599 # the compiler is broken, or we cross compile.
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3601 $as_echo_n "checking whether we are cross compiling... " >&6; }
3602 if test "$cross_compiling" != yes; then
3603 { { ac_try="$ac_link"
3604 case "(($ac_try" in
3605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3606 *) ac_try_echo=$ac_try;;
3607 esac
3608 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3609 $as_echo "$ac_try_echo"; } >&5
3610 (eval "$ac_link") 2>&5
3611 ac_status=$?
3612 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3613 test $ac_status = 0; }
3614 if { ac_try='./conftest$ac_cv_exeext'
3615 { { case "(($ac_try" in
3616 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3617 *) ac_try_echo=$ac_try;;
3618 esac
3619 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3620 $as_echo "$ac_try_echo"; } >&5
3621 (eval "$ac_try") 2>&5
3622 ac_status=$?
3623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3624 test $ac_status = 0; }; }; then
3625 cross_compiling=no
3626 else
3627 if test "$cross_compiling" = maybe; then
3628 cross_compiling=yes
3629 else
3630 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3631 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3632 as_fn_error $? "cannot run C compiled programs.
3633 If you meant to cross compile, use \`--host'.
3634 See \`config.log' for more details" "$LINENO" 5; }
3638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3639 $as_echo "$cross_compiling" >&6; }
3641 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3642 ac_clean_files=$ac_clean_files_save
3643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3644 $as_echo_n "checking for suffix of object files... " >&6; }
3645 if ${ac_cv_objext+:} false; then :
3646 $as_echo_n "(cached) " >&6
3647 else
3648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3649 /* end confdefs.h. */
3652 main ()
3656 return 0;
3658 _ACEOF
3659 rm -f conftest.o conftest.obj
3660 if { { ac_try="$ac_compile"
3661 case "(($ac_try" in
3662 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3663 *) ac_try_echo=$ac_try;;
3664 esac
3665 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3666 $as_echo "$ac_try_echo"; } >&5
3667 (eval "$ac_compile") 2>&5
3668 ac_status=$?
3669 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3670 test $ac_status = 0; }; then :
3671 for ac_file in conftest.o conftest.obj conftest.*; do
3672 test -f "$ac_file" || continue;
3673 case $ac_file in
3674 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3675 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3676 break;;
3677 esac
3678 done
3679 else
3680 $as_echo "$as_me: failed program was:" >&5
3681 sed 's/^/| /' conftest.$ac_ext >&5
3683 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3684 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3685 as_fn_error $? "cannot compute suffix of object files: cannot compile
3686 See \`config.log' for more details" "$LINENO" 5; }
3688 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3691 $as_echo "$ac_cv_objext" >&6; }
3692 OBJEXT=$ac_cv_objext
3693 ac_objext=$OBJEXT
3694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3695 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3696 if ${ac_cv_c_compiler_gnu+:} false; then :
3697 $as_echo_n "(cached) " >&6
3698 else
3699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3700 /* end confdefs.h. */
3703 main ()
3705 #ifndef __GNUC__
3706 choke me
3707 #endif
3710 return 0;
3712 _ACEOF
3713 if ac_fn_c_try_compile "$LINENO"; then :
3714 ac_compiler_gnu=yes
3715 else
3716 ac_compiler_gnu=no
3718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3719 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3723 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3724 if test $ac_compiler_gnu = yes; then
3725 GCC=yes
3726 else
3727 GCC=
3729 ac_test_CFLAGS=${CFLAGS+set}
3730 ac_save_CFLAGS=$CFLAGS
3731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3732 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3733 if ${ac_cv_prog_cc_g+:} false; then :
3734 $as_echo_n "(cached) " >&6
3735 else
3736 ac_save_c_werror_flag=$ac_c_werror_flag
3737 ac_c_werror_flag=yes
3738 ac_cv_prog_cc_g=no
3739 CFLAGS="-g"
3740 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3741 /* end confdefs.h. */
3744 main ()
3748 return 0;
3750 _ACEOF
3751 if ac_fn_c_try_compile "$LINENO"; then :
3752 ac_cv_prog_cc_g=yes
3753 else
3754 CFLAGS=""
3755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3756 /* end confdefs.h. */
3759 main ()
3763 return 0;
3765 _ACEOF
3766 if ac_fn_c_try_compile "$LINENO"; then :
3768 else
3769 ac_c_werror_flag=$ac_save_c_werror_flag
3770 CFLAGS="-g"
3771 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3772 /* end confdefs.h. */
3775 main ()
3779 return 0;
3781 _ACEOF
3782 if ac_fn_c_try_compile "$LINENO"; then :
3783 ac_cv_prog_cc_g=yes
3785 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3787 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3790 ac_c_werror_flag=$ac_save_c_werror_flag
3792 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3793 $as_echo "$ac_cv_prog_cc_g" >&6; }
3794 if test "$ac_test_CFLAGS" = set; then
3795 CFLAGS=$ac_save_CFLAGS
3796 elif test $ac_cv_prog_cc_g = yes; then
3797 if test "$GCC" = yes; then
3798 CFLAGS="-g -O2"
3799 else
3800 CFLAGS="-g"
3802 else
3803 if test "$GCC" = yes; then
3804 CFLAGS="-O2"
3805 else
3806 CFLAGS=
3809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3810 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3811 if ${ac_cv_prog_cc_c89+:} false; then :
3812 $as_echo_n "(cached) " >&6
3813 else
3814 ac_cv_prog_cc_c89=no
3815 ac_save_CC=$CC
3816 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3817 /* end confdefs.h. */
3818 #include <stdarg.h>
3819 #include <stdio.h>
3820 struct stat;
3821 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3822 struct buf { int x; };
3823 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3824 static char *e (p, i)
3825 char **p;
3826 int i;
3828 return p[i];
3830 static char *f (char * (*g) (char **, int), char **p, ...)
3832 char *s;
3833 va_list v;
3834 va_start (v,p);
3835 s = g (p, va_arg (v,int));
3836 va_end (v);
3837 return s;
3840 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3841 function prototypes and stuff, but not '\xHH' hex character constants.
3842 These don't provoke an error unfortunately, instead are silently treated
3843 as 'x'. The following induces an error, until -std is added to get
3844 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3845 array size at least. It's necessary to write '\x00'==0 to get something
3846 that's true only with -std. */
3847 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3849 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3850 inside strings and character constants. */
3851 #define FOO(x) 'x'
3852 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3854 int test (int i, double x);
3855 struct s1 {int (*f) (int a);};
3856 struct s2 {int (*f) (double a);};
3857 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3858 int argc;
3859 char **argv;
3861 main ()
3863 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3865 return 0;
3867 _ACEOF
3868 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3869 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3871 CC="$ac_save_CC $ac_arg"
3872 if ac_fn_c_try_compile "$LINENO"; then :
3873 ac_cv_prog_cc_c89=$ac_arg
3875 rm -f core conftest.err conftest.$ac_objext
3876 test "x$ac_cv_prog_cc_c89" != "xno" && break
3877 done
3878 rm -f conftest.$ac_ext
3879 CC=$ac_save_CC
3882 # AC_CACHE_VAL
3883 case "x$ac_cv_prog_cc_c89" in
3885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3886 $as_echo "none needed" >&6; } ;;
3887 xno)
3888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3889 $as_echo "unsupported" >&6; } ;;
3891 CC="$CC $ac_cv_prog_cc_c89"
3892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3893 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3894 esac
3895 if test "x$ac_cv_prog_cc_c89" != xno; then :
3899 ac_ext=c
3900 ac_cpp='$CPP $CPPFLAGS'
3901 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3902 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3903 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3905 if test $target_os = solaris
3906 then
3907 # Extract the first word of "$CC", so it can be a program name with args.
3908 set dummy $CC; ac_word=$2
3909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3910 $as_echo_n "checking for $ac_word... " >&6; }
3911 if ${ac_cv_path_CCPATH+:} false; then :
3912 $as_echo_n "(cached) " >&6
3913 else
3914 case $CCPATH in
3915 [\\/]* | ?:[\\/]*)
3916 ac_cv_path_CCPATH="$CCPATH" # Let the user override the test with a path.
3919 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3920 for as_dir in $PATH
3922 IFS=$as_save_IFS
3923 test -z "$as_dir" && as_dir=.
3924 for ac_exec_ext in '' $ac_executable_extensions; do
3925 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3926 ac_cv_path_CCPATH="$as_dir/$ac_word$ac_exec_ext"
3927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3928 break 2
3930 done
3931 done
3932 IFS=$as_save_IFS
3934 test -z "$ac_cv_path_CCPATH" && ac_cv_path_CCPATH="$CC"
3936 esac
3938 CCPATH=$ac_cv_path_CCPATH
3939 if test -n "$CCPATH"; then
3940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCPATH" >&5
3941 $as_echo "$CCPATH" >&6; }
3942 else
3943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3944 $as_echo "no" >&6; }
3948 cc=$CCPATH
3949 if test "$GCC" = "yes"
3950 then
3951 CFLAGS="$CFLAGS $CFLAGS_IF_GCC"
3952 else
3953 CFLAGS="$CFLAGS $CFLAGS_IF_SUNCC"
3955 if test "$use_64bit" = "no"
3956 then
3958 else
3959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64 bit Solaris host" >&5
3960 $as_echo_n "checking for 64 bit Solaris host... " >&6; }
3961 case `isainfo -k`
3963 amd64|sparcv9)
3964 cflags_abi=-m64
3965 CFLAGS="$CFLAGS -m64"
3966 LDFLAGS="$LDFLAGS -m64"
3967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3968 $as_echo "yes" >&6; }
3971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3972 $as_echo "no" >&6; }
3974 esac
3976 else
3977 cc=$CC
3980 cc_is_gcc=$GCC
3983 PCFLAGS="$CFLAGS"
3984 PLDFLAGS=$LDFLAGS
3986 if echo "$CFLAGS" | grep 'D_FORTIFY_SOURCE' >/dev/null
3987 then
3988 CFLAGS="-O $PCFLAGS"
3992 if echo "$CFLAGS" | grep stack-protector >/dev/null
3993 then
3995 else
3996 # Check whether --enable-ssp was given.
3997 if test "${enable_ssp+set}" = set; then :
3998 enableval=$enable_ssp;
4002 if test "x$cc_is_gcc" = xyes -a "x$enable_ssp" != xno ; then :
4004 save_CFLAGS="$CFLAGS"
4005 CFLAGS="$CFLAGS -O -fstack-protector-all -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2"
4006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4007 /* end confdefs.h. */
4008 int something ();
4009 _ACEOF
4010 if ac_fn_c_try_compile "$LINENO"; then :
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling with gcc -fstack-protector-all et al." >&5
4013 $as_echo "$as_me: Compiling with gcc -fstack-protector-all et al." >&6;}
4014 PCFLAGS="$PCFLAGS -fstack-protector-all -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2"
4015 else
4017 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiler does not support -fstack-protector-all et al." >&5
4018 $as_echo "$as_me: Compiler does not support -fstack-protector-all et al." >&6;}
4019 CFLAGS="$save_CFLAGS"
4022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4029 # Check whether --enable-pie was given.
4030 if test "${enable_pie+set}" = set; then :
4031 enableval=$enable_pie;
4034 if test "x$cc_is_gcc" = xyes -a "x$enable_pie" != xno; then :
4036 PIECFLAGS='-fPIE'
4037 PIELDFLAGS='-pie -Wl,-z,relro -Wl,-z,now'
4038 save_CFLAGS="$CFLAGS"
4039 save_LDFLAGS="$LDFLAGS"
4040 CFLAGS="$CFLAGS $PIECFLAGS"
4041 LDFLAGS="$LDFLAGS $PIELDFLAGS"
4042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4043 /* end confdefs.h. */
4044 void main () {}
4045 _ACEOF
4046 if ac_fn_c_try_link "$LINENO"; then :
4048 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling with gcc pie et al." >&5
4049 $as_echo "$as_me: Compiling with gcc pie et al." >&6;}
4051 else
4053 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiler does not support -pie et al." >&5
4054 $as_echo "$as_me: Compiler does not support -pie et al." >&6;}
4055 PIECFLAGS=""
4056 PIELDFLAGS=""
4059 rm -f core conftest.err conftest.$ac_objext \
4060 conftest$ac_exeext conftest.$ac_ext
4061 CFLAGS="$save_CFLAGS"
4062 LDFLAGS="$save_LDFLAGS"
4068 # Check whether --enable-visibility was given.
4069 if test "${enable_visibility+set}" = set; then :
4070 enableval=$enable_visibility;
4073 if test "x$cc_is_gcc" = xyes -a "$enable_visibility" != no; then :
4075 INVISIBILITY="-fvisibility=hidden"
4076 save_CFLAGS="$CFLAGS"
4077 CFLAGS="$CFLAGS -c $INVISIBILITY"
4078 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4079 /* end confdefs.h. */
4080 int visible () { return 0; }
4081 _ACEOF
4082 if ac_fn_c_try_compile "$LINENO"; then :
4084 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling DSO PMDAs with gcc -fvisibility=hidden" >&5
4085 $as_echo "$as_me: Compiling DSO PMDAs with gcc -fvisibility=hidden" >&6;}
4087 else
4089 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiler does not support -fvisibility." >&5
4090 $as_echo "$as_me: Compiler does not support -fvisibility." >&6;}
4091 INVISIBILITY=""
4094 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4095 CFLAGS="$save_CFLAGS"
4100 ac_ext=cpp
4101 ac_cpp='$CXXCPP $CPPFLAGS'
4102 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4103 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4104 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4105 if test -z "$CXX"; then
4106 if test -n "$CCC"; then
4107 CXX=$CCC
4108 else
4109 if test -n "$ac_tool_prefix"; then
4110 for ac_prog in eg++ g++ c++
4112 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4113 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4114 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4115 $as_echo_n "checking for $ac_word... " >&6; }
4116 if ${ac_cv_prog_CXX+:} false; then :
4117 $as_echo_n "(cached) " >&6
4118 else
4119 if test -n "$CXX"; then
4120 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4121 else
4122 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4123 for as_dir in $PATH
4125 IFS=$as_save_IFS
4126 test -z "$as_dir" && as_dir=.
4127 for ac_exec_ext in '' $ac_executable_extensions; do
4128 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4129 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4130 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4131 break 2
4133 done
4134 done
4135 IFS=$as_save_IFS
4139 CXX=$ac_cv_prog_CXX
4140 if test -n "$CXX"; then
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4142 $as_echo "$CXX" >&6; }
4143 else
4144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4145 $as_echo "no" >&6; }
4149 test -n "$CXX" && break
4150 done
4152 if test -z "$CXX"; then
4153 ac_ct_CXX=$CXX
4154 for ac_prog in eg++ g++ c++
4156 # Extract the first word of "$ac_prog", so it can be a program name with args.
4157 set dummy $ac_prog; ac_word=$2
4158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4159 $as_echo_n "checking for $ac_word... " >&6; }
4160 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4161 $as_echo_n "(cached) " >&6
4162 else
4163 if test -n "$ac_ct_CXX"; then
4164 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4165 else
4166 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4167 for as_dir in $PATH
4169 IFS=$as_save_IFS
4170 test -z "$as_dir" && as_dir=.
4171 for ac_exec_ext in '' $ac_executable_extensions; do
4172 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4173 ac_cv_prog_ac_ct_CXX="$ac_prog"
4174 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4175 break 2
4177 done
4178 done
4179 IFS=$as_save_IFS
4183 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4184 if test -n "$ac_ct_CXX"; then
4185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4186 $as_echo "$ac_ct_CXX" >&6; }
4187 else
4188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4189 $as_echo "no" >&6; }
4193 test -n "$ac_ct_CXX" && break
4194 done
4196 if test "x$ac_ct_CXX" = x; then
4197 CXX="g++"
4198 else
4199 case $cross_compiling:$ac_tool_warned in
4200 yes:)
4201 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4202 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4203 ac_tool_warned=yes ;;
4204 esac
4205 CXX=$ac_ct_CXX
4211 # Provide some information about the compiler.
4212 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4213 set X $ac_compile
4214 ac_compiler=$2
4215 for ac_option in --version -v -V -qversion; do
4216 { { ac_try="$ac_compiler $ac_option >&5"
4217 case "(($ac_try" in
4218 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4219 *) ac_try_echo=$ac_try;;
4220 esac
4221 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4222 $as_echo "$ac_try_echo"; } >&5
4223 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4224 ac_status=$?
4225 if test -s conftest.err; then
4226 sed '10a\
4227 ... rest of stderr output deleted ...
4228 10q' conftest.err >conftest.er1
4229 cat conftest.er1 >&5
4231 rm -f conftest.er1 conftest.err
4232 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4233 test $ac_status = 0; }
4234 done
4236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4237 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4238 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4239 $as_echo_n "(cached) " >&6
4240 else
4241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4242 /* end confdefs.h. */
4245 main ()
4247 #ifndef __GNUC__
4248 choke me
4249 #endif
4252 return 0;
4254 _ACEOF
4255 if ac_fn_cxx_try_compile "$LINENO"; then :
4256 ac_compiler_gnu=yes
4257 else
4258 ac_compiler_gnu=no
4260 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4261 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4265 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4266 if test $ac_compiler_gnu = yes; then
4267 GXX=yes
4268 else
4269 GXX=
4271 ac_test_CXXFLAGS=${CXXFLAGS+set}
4272 ac_save_CXXFLAGS=$CXXFLAGS
4273 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4274 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4275 if ${ac_cv_prog_cxx_g+:} false; then :
4276 $as_echo_n "(cached) " >&6
4277 else
4278 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4279 ac_cxx_werror_flag=yes
4280 ac_cv_prog_cxx_g=no
4281 CXXFLAGS="-g"
4282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4283 /* end confdefs.h. */
4286 main ()
4290 return 0;
4292 _ACEOF
4293 if ac_fn_cxx_try_compile "$LINENO"; then :
4294 ac_cv_prog_cxx_g=yes
4295 else
4296 CXXFLAGS=""
4297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4298 /* end confdefs.h. */
4301 main ()
4305 return 0;
4307 _ACEOF
4308 if ac_fn_cxx_try_compile "$LINENO"; then :
4310 else
4311 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4312 CXXFLAGS="-g"
4313 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4314 /* end confdefs.h. */
4317 main ()
4321 return 0;
4323 _ACEOF
4324 if ac_fn_cxx_try_compile "$LINENO"; then :
4325 ac_cv_prog_cxx_g=yes
4327 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4329 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4331 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4332 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4335 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4336 if test "$ac_test_CXXFLAGS" = set; then
4337 CXXFLAGS=$ac_save_CXXFLAGS
4338 elif test $ac_cv_prog_cxx_g = yes; then
4339 if test "$GXX" = yes; then
4340 CXXFLAGS="-g -O2"
4341 else
4342 CXXFLAGS="-g"
4344 else
4345 if test "$GXX" = yes; then
4346 CXXFLAGS="-O2"
4347 else
4348 CXXFLAGS=
4351 ac_ext=c
4352 ac_cpp='$CPP $CPPFLAGS'
4353 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4354 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4355 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4357 cxx=$CXX
4359 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working C++ compiler" >&5
4360 $as_echo_n "checking for working C++ compiler... " >&6; }
4361 ac_ext=cpp
4362 ac_cpp='$CXXCPP $CPPFLAGS'
4363 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4364 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4365 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4369 /* end confdefs.h. */
4370 #include <cstdio>
4372 main ()
4374 const char gday[] = "G'day, world\n";
4376 return 0;
4378 _ACEOF
4379 if ac_fn_cxx_try_compile "$LINENO"; then :
4380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4381 $as_echo "yes" >&6; }
4382 else
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4384 $as_echo "no" >&6; }
4385 cxx=""
4387 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4388 ac_ext=c
4389 ac_cpp='$CPP $CPPFLAGS'
4390 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4391 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4392 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4395 # Check whether --enable-shared was given.
4396 if test "${enable_shared+set}" = set; then :
4397 enableval=$enable_shared; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --disable-shared=$withval"
4403 test -z "$AWK" && for ac_prog in gawk awk
4405 # Extract the first word of "$ac_prog", so it can be a program name with args.
4406 set dummy $ac_prog; ac_word=$2
4407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4408 $as_echo_n "checking for $ac_word... " >&6; }
4409 if ${ac_cv_path_AWK+:} false; then :
4410 $as_echo_n "(cached) " >&6
4411 else
4412 case $AWK in
4413 [\\/]* | ?:[\\/]*)
4414 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
4417 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4418 for as_dir in $PATH
4420 IFS=$as_save_IFS
4421 test -z "$as_dir" && as_dir=.
4422 for ac_exec_ext in '' $ac_executable_extensions; do
4423 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4424 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
4425 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4426 break 2
4428 done
4429 done
4430 IFS=$as_save_IFS
4433 esac
4435 AWK=$ac_cv_path_AWK
4436 if test -n "$AWK"; then
4437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4438 $as_echo "$AWK" >&6; }
4439 else
4440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4441 $as_echo "no" >&6; }
4445 test -n "$AWK" && break
4446 done
4447 test -n "$AWK" || AWK="/usr/bin/awk"
4449 case "$AWK"
4451 gawk|*/gawk)
4452 awk="$AWK --posix"
4455 awk=$AWK
4457 esac
4460 if test -z "$SED"; then
4461 # Extract the first word of "sed", so it can be a program name with args.
4462 set dummy sed; ac_word=$2
4463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4464 $as_echo_n "checking for $ac_word... " >&6; }
4465 if ${ac_cv_path_SED+:} false; then :
4466 $as_echo_n "(cached) " >&6
4467 else
4468 case $SED in
4469 [\\/]* | ?:[\\/]*)
4470 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4473 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4474 for as_dir in $PATH
4476 IFS=$as_save_IFS
4477 test -z "$as_dir" && as_dir=.
4478 for ac_exec_ext in '' $ac_executable_extensions; do
4479 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4480 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4481 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4482 break 2
4484 done
4485 done
4486 IFS=$as_save_IFS
4488 test -z "$ac_cv_path_SED" && ac_cv_path_SED="/bin/sed"
4490 esac
4492 SED=$ac_cv_path_SED
4493 if test -n "$SED"; then
4494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
4495 $as_echo "$SED" >&6; }
4496 else
4497 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4498 $as_echo "no" >&6; }
4503 if test ! -x "$SED"; then
4504 as_fn_error $? "cannot find a valid 'sed' command." "$LINENO" 5
4506 sed=$SED
4509 if test -z "$ECHO"; then
4510 # Extract the first word of "echo", so it can be a program name with args.
4511 set dummy echo; ac_word=$2
4512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4513 $as_echo_n "checking for $ac_word... " >&6; }
4514 if ${ac_cv_path_ECHO+:} false; then :
4515 $as_echo_n "(cached) " >&6
4516 else
4517 case $ECHO in
4518 [\\/]* | ?:[\\/]*)
4519 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
4522 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4523 for as_dir in $PATH
4525 IFS=$as_save_IFS
4526 test -z "$as_dir" && as_dir=.
4527 for ac_exec_ext in '' $ac_executable_extensions; do
4528 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4529 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
4530 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4531 break 2
4533 done
4534 done
4535 IFS=$as_save_IFS
4537 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="/bin/echo"
4539 esac
4541 ECHO=$ac_cv_path_ECHO
4542 if test -n "$ECHO"; then
4543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
4544 $as_echo "$ECHO" >&6; }
4545 else
4546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4547 $as_echo "no" >&6; }
4552 if test ! -x "$ECHO"; then
4553 as_fn_error $? "cannot find a valid 'echo' command." "$LINENO" 5
4555 echo=$ECHO
4558 if test -z "$FIND"; then
4559 # Extract the first word of "find", so it can be a program name with args.
4560 set dummy find; ac_word=$2
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4562 $as_echo_n "checking for $ac_word... " >&6; }
4563 if ${ac_cv_path_FIND+:} false; then :
4564 $as_echo_n "(cached) " >&6
4565 else
4566 case $FIND in
4567 [\\/]* | ?:[\\/]*)
4568 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
4571 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4572 for as_dir in $PATH
4574 IFS=$as_save_IFS
4575 test -z "$as_dir" && as_dir=.
4576 for ac_exec_ext in '' $ac_executable_extensions; do
4577 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4578 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
4579 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4580 break 2
4582 done
4583 done
4584 IFS=$as_save_IFS
4586 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="/usr/bin/find"
4588 esac
4590 FIND=$ac_cv_path_FIND
4591 if test -n "$FIND"; then
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
4593 $as_echo "$FIND" >&6; }
4594 else
4595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4596 $as_echo "no" >&6; }
4601 if test ! -x "$FIND"; then
4602 as_fn_error $? "cannot find a valid 'find' command." "$LINENO" 5
4604 find=$FIND
4607 if test -z "$WHICH"; then
4608 # Extract the first word of "which", so it can be a program name with args.
4609 set dummy which; ac_word=$2
4610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4611 $as_echo_n "checking for $ac_word... " >&6; }
4612 if ${ac_cv_path_WHICH+:} false; then :
4613 $as_echo_n "(cached) " >&6
4614 else
4615 case $WHICH in
4616 [\\/]* | ?:[\\/]*)
4617 ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
4620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4621 for as_dir in $PATH
4623 IFS=$as_save_IFS
4624 test -z "$as_dir" && as_dir=.
4625 for ac_exec_ext in '' $ac_executable_extensions; do
4626 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4627 ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
4628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4629 break 2
4631 done
4632 done
4633 IFS=$as_save_IFS
4635 test -z "$ac_cv_path_WHICH" && ac_cv_path_WHICH="/usr/bin/which"
4637 esac
4639 WHICH=$ac_cv_path_WHICH
4640 if test -n "$WHICH"; then
4641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
4642 $as_echo "$WHICH" >&6; }
4643 else
4644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4645 $as_echo "no" >&6; }
4650 if test ! -x "$WHICH"; then
4651 as_fn_error $? "cannot find a valid 'which' command." "$LINENO" 5
4653 which=$WHICH
4656 for ac_prog in flex lex
4658 # Extract the first word of "$ac_prog", so it can be a program name with args.
4659 set dummy $ac_prog; ac_word=$2
4660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4661 $as_echo_n "checking for $ac_word... " >&6; }
4662 if ${ac_cv_prog_LEX+:} false; then :
4663 $as_echo_n "(cached) " >&6
4664 else
4665 if test -n "$LEX"; then
4666 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4667 else
4668 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4669 for as_dir in $PATH
4671 IFS=$as_save_IFS
4672 test -z "$as_dir" && as_dir=.
4673 for ac_exec_ext in '' $ac_executable_extensions; do
4674 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4675 ac_cv_prog_LEX="$ac_prog"
4676 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4677 break 2
4679 done
4680 done
4681 IFS=$as_save_IFS
4685 LEX=$ac_cv_prog_LEX
4686 if test -n "$LEX"; then
4687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
4688 $as_echo "$LEX" >&6; }
4689 else
4690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4691 $as_echo "no" >&6; }
4695 test -n "$LEX" && break
4696 done
4697 test -n "$LEX" || LEX=":"
4699 if test "x$LEX" != "x:"; then
4700 cat >conftest.l <<_ACEOF
4702 a { ECHO; }
4703 b { REJECT; }
4704 c { yymore (); }
4705 d { yyless (1); }
4706 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
4707 yyless ((input () != 0)); }
4708 f { unput (yytext[0]); }
4709 . { BEGIN INITIAL; }
4711 #ifdef YYTEXT_POINTER
4712 extern char *yytext;
4713 #endif
4715 main (void)
4717 return ! yylex () + ! yywrap ();
4719 _ACEOF
4720 { { ac_try="$LEX conftest.l"
4721 case "(($ac_try" in
4722 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4723 *) ac_try_echo=$ac_try;;
4724 esac
4725 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4726 $as_echo "$ac_try_echo"; } >&5
4727 (eval "$LEX conftest.l") 2>&5
4728 ac_status=$?
4729 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4730 test $ac_status = 0; }
4731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
4732 $as_echo_n "checking lex output file root... " >&6; }
4733 if ${ac_cv_prog_lex_root+:} false; then :
4734 $as_echo_n "(cached) " >&6
4735 else
4737 if test -f lex.yy.c; then
4738 ac_cv_prog_lex_root=lex.yy
4739 elif test -f lexyy.c; then
4740 ac_cv_prog_lex_root=lexyy
4741 else
4742 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
4745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
4746 $as_echo "$ac_cv_prog_lex_root" >&6; }
4747 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4749 if test -z "${LEXLIB+set}"; then
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
4751 $as_echo_n "checking lex library... " >&6; }
4752 if ${ac_cv_lib_lex+:} false; then :
4753 $as_echo_n "(cached) " >&6
4754 else
4756 ac_save_LIBS=$LIBS
4757 ac_cv_lib_lex='none needed'
4758 for ac_lib in '' -lfl -ll; do
4759 LIBS="$ac_lib $ac_save_LIBS"
4760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4761 /* end confdefs.h. */
4762 `cat $LEX_OUTPUT_ROOT.c`
4763 _ACEOF
4764 if ac_fn_c_try_link "$LINENO"; then :
4765 ac_cv_lib_lex=$ac_lib
4767 rm -f core conftest.err conftest.$ac_objext \
4768 conftest$ac_exeext conftest.$ac_ext
4769 test "$ac_cv_lib_lex" != 'none needed' && break
4770 done
4771 LIBS=$ac_save_LIBS
4774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
4775 $as_echo "$ac_cv_lib_lex" >&6; }
4776 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
4780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
4781 $as_echo_n "checking whether yytext is a pointer... " >&6; }
4782 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
4783 $as_echo_n "(cached) " >&6
4784 else
4785 # POSIX says lex can declare yytext either as a pointer or an array; the
4786 # default is implementation-dependent. Figure out which it is, since
4787 # not all implementations provide the %pointer and %array declarations.
4788 ac_cv_prog_lex_yytext_pointer=no
4789 ac_save_LIBS=$LIBS
4790 LIBS="$LEXLIB $ac_save_LIBS"
4791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4792 /* end confdefs.h. */
4794 #define YYTEXT_POINTER 1
4795 `cat $LEX_OUTPUT_ROOT.c`
4796 _ACEOF
4797 if ac_fn_c_try_link "$LINENO"; then :
4798 ac_cv_prog_lex_yytext_pointer=yes
4800 rm -f core conftest.err conftest.$ac_objext \
4801 conftest$ac_exeext conftest.$ac_ext
4802 LIBS=$ac_save_LIBS
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
4806 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
4807 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4809 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
4812 rm -f conftest.l $LEX_OUTPUT_ROOT.c
4815 lex=`$echo $LEX | awk '{print $1}'`
4816 lex=`$which "$lex"`
4817 if test ! -x "$lex"; then
4818 as_fn_error $? "cannot find a valid 'lex'/'flex' command." "$LINENO" 5
4820 lex=$LEX
4823 for ac_prog in 'bison -y' byacc
4825 # Extract the first word of "$ac_prog", so it can be a program name with args.
4826 set dummy $ac_prog; ac_word=$2
4827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4828 $as_echo_n "checking for $ac_word... " >&6; }
4829 if ${ac_cv_prog_YACC+:} false; then :
4830 $as_echo_n "(cached) " >&6
4831 else
4832 if test -n "$YACC"; then
4833 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4834 else
4835 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4836 for as_dir in $PATH
4838 IFS=$as_save_IFS
4839 test -z "$as_dir" && as_dir=.
4840 for ac_exec_ext in '' $ac_executable_extensions; do
4841 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4842 ac_cv_prog_YACC="$ac_prog"
4843 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4844 break 2
4846 done
4847 done
4848 IFS=$as_save_IFS
4852 YACC=$ac_cv_prog_YACC
4853 if test -n "$YACC"; then
4854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
4855 $as_echo "$YACC" >&6; }
4856 else
4857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4858 $as_echo "no" >&6; }
4862 test -n "$YACC" && break
4863 done
4864 test -n "$YACC" || YACC="yacc"
4866 yacc=`$echo $YACC | awk '{print $1}'`
4867 yacc=`$which "$yacc"`
4868 if test ! -x "$yacc"; then
4869 as_fn_error $? "cannot find a valid 'yacc'/'bison' command." "$LINENO" 5
4871 yacc=$YACC
4874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where unix-like sort(1) lives" >&5
4875 $as_echo_n "checking where unix-like sort(1) lives... " >&6; }
4876 if test $target_os = mingw; then
4877 for d in /bin /usr/bin /mingw/bin /mingw/usr/bin
4879 if test -x $d/sort; then
4880 sort=$d/sort
4881 break
4883 done
4884 else
4885 sort=`$which sort`
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sort" >&5
4888 $as_echo "$sort" >&6; }
4889 $sort -n </dev/null
4890 if test $? != 0
4891 then
4892 echo
4893 echo "FATAL ERROR: $sort -n failed!"
4894 rm -rf conftest conftest.*
4895 exit 1
4899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if echo uses -n or backslash-c to suppress newlines" >&5
4900 $as_echo_n "checking if echo uses -n or backslash-c to suppress newlines... " >&6; }
4901 if ( $echo "testing\c"; $echo 1,2,3 ) | grep c >/dev/null
4902 then
4903 if ( $echo -n testing; $echo 1,2,3 ) | sed s/-n/xn/ | grep xn >/dev/null
4904 then
4905 echo_n= echo_c=
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither?" >&5
4907 $as_echo "neither?" >&6; }
4908 else
4909 echo_n=-n echo_c=
4910 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -n" >&5
4911 $as_echo " -n" >&6; }
4913 else
4914 echo_n= echo_c='\c'
4915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: backslash-c" >&5
4916 $as_echo "backslash-c" >&6; }
4921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4922 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4923 if ${ac_cv_path_GREP+:} false; then :
4924 $as_echo_n "(cached) " >&6
4925 else
4926 if test -z "$GREP"; then
4927 ac_path_GREP_found=false
4928 # Loop through the user's path and test for each of PROGNAME-LIST
4929 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4930 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4932 IFS=$as_save_IFS
4933 test -z "$as_dir" && as_dir=.
4934 for ac_prog in grep ggrep; do
4935 for ac_exec_ext in '' $ac_executable_extensions; do
4936 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4937 as_fn_executable_p "$ac_path_GREP" || continue
4938 # Check for GNU ac_path_GREP and select it if it is found.
4939 # Check for GNU $ac_path_GREP
4940 case `"$ac_path_GREP" --version 2>&1` in
4941 *GNU*)
4942 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4944 ac_count=0
4945 $as_echo_n 0123456789 >"conftest.in"
4946 while :
4948 cat "conftest.in" "conftest.in" >"conftest.tmp"
4949 mv "conftest.tmp" "conftest.in"
4950 cp "conftest.in" "conftest.nl"
4951 $as_echo 'GREP' >> "conftest.nl"
4952 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4953 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4954 as_fn_arith $ac_count + 1 && ac_count=$as_val
4955 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4956 # Best one so far, save it but keep looking for a better one
4957 ac_cv_path_GREP="$ac_path_GREP"
4958 ac_path_GREP_max=$ac_count
4960 # 10*(2^10) chars as input seems more than enough
4961 test $ac_count -gt 10 && break
4962 done
4963 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4964 esac
4966 $ac_path_GREP_found && break 3
4967 done
4968 done
4969 done
4970 IFS=$as_save_IFS
4971 if test -z "$ac_cv_path_GREP"; then
4972 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4974 else
4975 ac_cv_path_GREP=$GREP
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4980 $as_echo "$ac_cv_path_GREP" >&6; }
4981 GREP="$ac_cv_path_GREP"
4984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4985 $as_echo_n "checking for egrep... " >&6; }
4986 if ${ac_cv_path_EGREP+:} false; then :
4987 $as_echo_n "(cached) " >&6
4988 else
4989 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4990 then ac_cv_path_EGREP="$GREP -E"
4991 else
4992 if test -z "$EGREP"; then
4993 ac_path_EGREP_found=false
4994 # Loop through the user's path and test for each of PROGNAME-LIST
4995 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4996 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4998 IFS=$as_save_IFS
4999 test -z "$as_dir" && as_dir=.
5000 for ac_prog in egrep; do
5001 for ac_exec_ext in '' $ac_executable_extensions; do
5002 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5003 as_fn_executable_p "$ac_path_EGREP" || continue
5004 # Check for GNU ac_path_EGREP and select it if it is found.
5005 # Check for GNU $ac_path_EGREP
5006 case `"$ac_path_EGREP" --version 2>&1` in
5007 *GNU*)
5008 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5010 ac_count=0
5011 $as_echo_n 0123456789 >"conftest.in"
5012 while :
5014 cat "conftest.in" "conftest.in" >"conftest.tmp"
5015 mv "conftest.tmp" "conftest.in"
5016 cp "conftest.in" "conftest.nl"
5017 $as_echo 'EGREP' >> "conftest.nl"
5018 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5019 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5020 as_fn_arith $ac_count + 1 && ac_count=$as_val
5021 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5022 # Best one so far, save it but keep looking for a better one
5023 ac_cv_path_EGREP="$ac_path_EGREP"
5024 ac_path_EGREP_max=$ac_count
5026 # 10*(2^10) chars as input seems more than enough
5027 test $ac_count -gt 10 && break
5028 done
5029 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5030 esac
5032 $ac_path_EGREP_found && break 3
5033 done
5034 done
5035 done
5036 IFS=$as_save_IFS
5037 if test -z "$ac_cv_path_EGREP"; then
5038 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5040 else
5041 ac_cv_path_EGREP=$EGREP
5046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5047 $as_echo "$ac_cv_path_EGREP" >&6; }
5048 EGREP="$ac_cv_path_EGREP"
5052 if test "$do_probes" = "check" -o "$do_probes" = "yes"
5053 then
5054 enable_probes=true
5055 for ac_prog in dtrace
5057 # Extract the first word of "$ac_prog", so it can be a program name with args.
5058 set dummy $ac_prog; ac_word=$2
5059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5060 $as_echo_n "checking for $ac_word... " >&6; }
5061 if ${ac_cv_prog_DTRACE+:} false; then :
5062 $as_echo_n "(cached) " >&6
5063 else
5064 if test -n "$DTRACE"; then
5065 ac_cv_prog_DTRACE="$DTRACE" # Let the user override the test.
5066 else
5067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5068 for as_dir in $PATH
5070 IFS=$as_save_IFS
5071 test -z "$as_dir" && as_dir=.
5072 for ac_exec_ext in '' $ac_executable_extensions; do
5073 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5074 ac_cv_prog_DTRACE="$ac_prog"
5075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5076 break 2
5078 done
5079 done
5080 IFS=$as_save_IFS
5084 DTRACE=$ac_cv_prog_DTRACE
5085 if test -n "$DTRACE"; then
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5
5087 $as_echo "$DTRACE" >&6; }
5088 else
5089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5090 $as_echo "no" >&6; }
5094 test -n "$DTRACE" && break
5095 done
5097 if test -z "$DTRACE"
5098 then
5099 if test "$do_probes" = "yes"
5100 then
5101 as_fn_error $? "cannot enable static probes - no dtrace executable" "$LINENO" 5
5103 enable_probes=false
5105 ac_ext=c
5106 ac_cpp='$CPP $CPPFLAGS'
5107 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5108 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5109 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5110 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5111 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5112 # On Suns, sometimes $CPP names a directory.
5113 if test -n "$CPP" && test -d "$CPP"; then
5114 CPP=
5116 if test -z "$CPP"; then
5117 if ${ac_cv_prog_CPP+:} false; then :
5118 $as_echo_n "(cached) " >&6
5119 else
5120 # Double quotes because CPP needs to be expanded
5121 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5123 ac_preproc_ok=false
5124 for ac_c_preproc_warn_flag in '' yes
5126 # Use a header file that comes with gcc, so configuring glibc
5127 # with a fresh cross-compiler works.
5128 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5129 # <limits.h> exists even on freestanding compilers.
5130 # On the NeXT, cc -E runs the code through the compiler's parser,
5131 # not just through cpp. "Syntax error" is here to catch this case.
5132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5133 /* end confdefs.h. */
5134 #ifdef __STDC__
5135 # include <limits.h>
5136 #else
5137 # include <assert.h>
5138 #endif
5139 Syntax error
5140 _ACEOF
5141 if ac_fn_c_try_cpp "$LINENO"; then :
5143 else
5144 # Broken: fails on valid input.
5145 continue
5147 rm -f conftest.err conftest.i conftest.$ac_ext
5149 # OK, works on sane cases. Now check whether nonexistent headers
5150 # can be detected and how.
5151 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5152 /* end confdefs.h. */
5153 #include <ac_nonexistent.h>
5154 _ACEOF
5155 if ac_fn_c_try_cpp "$LINENO"; then :
5156 # Broken: success on invalid input.
5157 continue
5158 else
5159 # Passes both tests.
5160 ac_preproc_ok=:
5161 break
5163 rm -f conftest.err conftest.i conftest.$ac_ext
5165 done
5166 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5167 rm -f conftest.i conftest.err conftest.$ac_ext
5168 if $ac_preproc_ok; then :
5169 break
5172 done
5173 ac_cv_prog_CPP=$CPP
5176 CPP=$ac_cv_prog_CPP
5177 else
5178 ac_cv_prog_CPP=$CPP
5180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5181 $as_echo "$CPP" >&6; }
5182 ac_preproc_ok=false
5183 for ac_c_preproc_warn_flag in '' yes
5185 # Use a header file that comes with gcc, so configuring glibc
5186 # with a fresh cross-compiler works.
5187 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5188 # <limits.h> exists even on freestanding compilers.
5189 # On the NeXT, cc -E runs the code through the compiler's parser,
5190 # not just through cpp. "Syntax error" is here to catch this case.
5191 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5192 /* end confdefs.h. */
5193 #ifdef __STDC__
5194 # include <limits.h>
5195 #else
5196 # include <assert.h>
5197 #endif
5198 Syntax error
5199 _ACEOF
5200 if ac_fn_c_try_cpp "$LINENO"; then :
5202 else
5203 # Broken: fails on valid input.
5204 continue
5206 rm -f conftest.err conftest.i conftest.$ac_ext
5208 # OK, works on sane cases. Now check whether nonexistent headers
5209 # can be detected and how.
5210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5211 /* end confdefs.h. */
5212 #include <ac_nonexistent.h>
5213 _ACEOF
5214 if ac_fn_c_try_cpp "$LINENO"; then :
5215 # Broken: success on invalid input.
5216 continue
5217 else
5218 # Passes both tests.
5219 ac_preproc_ok=:
5220 break
5222 rm -f conftest.err conftest.i conftest.$ac_ext
5224 done
5225 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5226 rm -f conftest.i conftest.err conftest.$ac_ext
5227 if $ac_preproc_ok; then :
5229 else
5230 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5231 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5232 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5233 See \`config.log' for more details" "$LINENO" 5; }
5236 ac_ext=c
5237 ac_cpp='$CPP $CPPFLAGS'
5238 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5239 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5240 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5244 $as_echo_n "checking for ANSI C header files... " >&6; }
5245 if ${ac_cv_header_stdc+:} false; then :
5246 $as_echo_n "(cached) " >&6
5247 else
5248 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5249 /* end confdefs.h. */
5250 #include <stdlib.h>
5251 #include <stdarg.h>
5252 #include <string.h>
5253 #include <float.h>
5256 main ()
5260 return 0;
5262 _ACEOF
5263 if ac_fn_c_try_compile "$LINENO"; then :
5264 ac_cv_header_stdc=yes
5265 else
5266 ac_cv_header_stdc=no
5268 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5270 if test $ac_cv_header_stdc = yes; then
5271 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5272 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5273 /* end confdefs.h. */
5274 #include <string.h>
5276 _ACEOF
5277 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5278 $EGREP "memchr" >/dev/null 2>&1; then :
5280 else
5281 ac_cv_header_stdc=no
5283 rm -f conftest*
5287 if test $ac_cv_header_stdc = yes; then
5288 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5289 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5290 /* end confdefs.h. */
5291 #include <stdlib.h>
5293 _ACEOF
5294 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5295 $EGREP "free" >/dev/null 2>&1; then :
5297 else
5298 ac_cv_header_stdc=no
5300 rm -f conftest*
5304 if test $ac_cv_header_stdc = yes; then
5305 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5306 if test "$cross_compiling" = yes; then :
5308 else
5309 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5310 /* end confdefs.h. */
5311 #include <ctype.h>
5312 #include <stdlib.h>
5313 #if ((' ' & 0x0FF) == 0x020)
5314 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5315 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5316 #else
5317 # define ISLOWER(c) \
5318 (('a' <= (c) && (c) <= 'i') \
5319 || ('j' <= (c) && (c) <= 'r') \
5320 || ('s' <= (c) && (c) <= 'z'))
5321 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5322 #endif
5324 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5326 main ()
5328 int i;
5329 for (i = 0; i < 256; i++)
5330 if (XOR (islower (i), ISLOWER (i))
5331 || toupper (i) != TOUPPER (i))
5332 return 2;
5333 return 0;
5335 _ACEOF
5336 if ac_fn_c_try_run "$LINENO"; then :
5338 else
5339 ac_cv_header_stdc=no
5341 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5342 conftest.$ac_objext conftest.beam conftest.$ac_ext
5347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5348 $as_echo "$ac_cv_header_stdc" >&6; }
5349 if test $ac_cv_header_stdc = yes; then
5351 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5355 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5356 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5357 inttypes.h stdint.h unistd.h
5358 do :
5359 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5360 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5362 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5363 cat >>confdefs.h <<_ACEOF
5364 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5365 _ACEOF
5369 done
5372 for ac_header in sys/sdt.h
5373 do :
5374 ac_fn_c_check_header_mongrel "$LINENO" "sys/sdt.h" "ac_cv_header_sys_sdt_h" "$ac_includes_default"
5375 if test "x$ac_cv_header_sys_sdt_h" = xyes; then :
5376 cat >>confdefs.h <<_ACEOF
5377 #define HAVE_SYS_SDT_H 1
5378 _ACEOF
5380 if $enable_probes = true
5381 then
5382 if test $target_os = kfreebsd
5383 then
5384 enable_probes=false
5385 elif test $target_os = freebsd
5386 then
5387 rm -f conftest.d conftest.h
5388 cat <<End-of-File >conftest.d
5389 provider eek {
5390 probe urk(int);
5392 End-of-File
5393 if dtrace -s conftest.d -h >/dev/null 2>&1
5394 then
5395 if test ! -f conftest.h
5396 then
5397 enable_probes=false
5398 if test "$do_probes" = "yes"
5399 then
5400 as_fn_error $? "cannot enable static probes - no .h from dtrace -h" "$LINENO" 5
5403 else
5404 enable_probes=false
5405 if test "$do_probes" = "yes"
5406 then
5407 as_fn_error $? "cannot enable static probes - dtrace failed" "$LINENO" 5
5413 else
5415 enable_probes=false
5416 if test "$do_probes" = "yes"
5417 then
5418 as_fn_error $? "cannot enable static probes - no SDT header" "$LINENO" 5
5423 done
5426 if test "$enable_probes" = "true"
5427 then
5429 $as_echo "#define HAVE_STATIC_PROBES 1" >>confdefs.h
5436 if test "x$do_discovery" != "xno"; then :
5438 # on Mac OS X, dns_sd.h
5440 # on Linux, aloha Avahi
5441 enable_avahi=true
5443 pkg_failed=no
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for avahi" >&5
5445 $as_echo_n "checking for avahi... " >&6; }
5447 if test -n "$avahi_CFLAGS"; then
5448 pkg_cv_avahi_CFLAGS="$avahi_CFLAGS"
5449 elif test -n "$PKG_CONFIG"; then
5450 if test -n "$PKG_CONFIG" && \
5451 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"avahi-client\""; } >&5
5452 ($PKG_CONFIG --exists --print-errors "avahi-client") 2>&5
5453 ac_status=$?
5454 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5455 test $ac_status = 0; }; then
5456 pkg_cv_avahi_CFLAGS=`$PKG_CONFIG --cflags "avahi-client" 2>/dev/null`
5457 test "x$?" != "x0" && pkg_failed=yes
5458 else
5459 pkg_failed=yes
5461 else
5462 pkg_failed=untried
5464 if test -n "$avahi_LIBS"; then
5465 pkg_cv_avahi_LIBS="$avahi_LIBS"
5466 elif test -n "$PKG_CONFIG"; then
5467 if test -n "$PKG_CONFIG" && \
5468 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"avahi-client\""; } >&5
5469 ($PKG_CONFIG --exists --print-errors "avahi-client") 2>&5
5470 ac_status=$?
5471 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5472 test $ac_status = 0; }; then
5473 pkg_cv_avahi_LIBS=`$PKG_CONFIG --libs "avahi-client" 2>/dev/null`
5474 test "x$?" != "x0" && pkg_failed=yes
5475 else
5476 pkg_failed=yes
5478 else
5479 pkg_failed=untried
5484 if test $pkg_failed = yes; then
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5486 $as_echo "no" >&6; }
5488 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5489 _pkg_short_errors_supported=yes
5490 else
5491 _pkg_short_errors_supported=no
5493 if test $_pkg_short_errors_supported = yes; then
5494 avahi_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "avahi-client" 2>&1`
5495 else
5496 avahi_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "avahi-client" 2>&1`
5498 # Put the nasty error message in config.log where it belongs
5499 echo "$avahi_PKG_ERRORS" >&5
5501 enable_avahi=false
5502 elif test $pkg_failed = untried; then
5503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5504 $as_echo "no" >&6; }
5505 enable_avahi=false
5506 else
5507 avahi_CFLAGS=$pkg_cv_avahi_CFLAGS
5508 avahi_LIBS=$pkg_cv_avahi_LIBS
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5510 $as_echo "yes" >&6; }
5511 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for avahi_client_new in -lavahi-client" >&5
5512 $as_echo_n "checking for avahi_client_new in -lavahi-client... " >&6; }
5513 if ${ac_cv_lib_avahi_client_avahi_client_new+:} false; then :
5514 $as_echo_n "(cached) " >&6
5515 else
5516 ac_check_lib_save_LIBS=$LIBS
5517 LIBS="-lavahi-client $LIBS"
5518 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5519 /* end confdefs.h. */
5521 /* Override any GCC internal prototype to avoid an error.
5522 Use char because int might match the return type of a GCC
5523 builtin and then its argument prototype would still apply. */
5524 #ifdef __cplusplus
5525 extern "C"
5526 #endif
5527 char avahi_client_new ();
5529 main ()
5531 return avahi_client_new ();
5533 return 0;
5535 _ACEOF
5536 if ac_fn_c_try_link "$LINENO"; then :
5537 ac_cv_lib_avahi_client_avahi_client_new=yes
5538 else
5539 ac_cv_lib_avahi_client_avahi_client_new=no
5541 rm -f core conftest.err conftest.$ac_objext \
5542 conftest$ac_exeext conftest.$ac_ext
5543 LIBS=$ac_check_lib_save_LIBS
5545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avahi_client_avahi_client_new" >&5
5546 $as_echo "$ac_cv_lib_avahi_client_avahi_client_new" >&6; }
5547 if test "x$ac_cv_lib_avahi_client_avahi_client_new" = xyes; then :
5548 lib_for_avahi="-lavahi-common -lavahi-client"
5549 else
5550 enable_avahi=false
5555 for ac_header in avahi-client/publish.h
5556 do :
5557 ac_fn_c_check_header_mongrel "$LINENO" "avahi-client/publish.h" "ac_cv_header_avahi_client_publish_h" "$ac_includes_default"
5558 if test "x$ac_cv_header_avahi_client_publish_h" = xyes; then :
5559 cat >>confdefs.h <<_ACEOF
5560 #define HAVE_AVAHI_CLIENT_PUBLISH_H 1
5561 _ACEOF
5563 else
5564 enable_avahi=false
5567 done
5569 for ac_header in avahi-common/alternative.h
5570 do :
5571 ac_fn_c_check_header_mongrel "$LINENO" "avahi-common/alternative.h" "ac_cv_header_avahi_common_alternative_h" "$ac_includes_default"
5572 if test "x$ac_cv_header_avahi_common_alternative_h" = xyes; then :
5573 cat >>confdefs.h <<_ACEOF
5574 #define HAVE_AVAHI_COMMON_ALTERNATIVE_H 1
5575 _ACEOF
5577 else
5578 enable_avahi=false
5581 done
5584 if test "$enable_avahi" = "true"
5585 then
5589 $as_echo "#define HAVE_AVAHI 1" >>confdefs.h
5591 enable_discovery=true
5594 if test "$do_discovery" != "check" -a "$enable_discovery" != "true"
5595 then
5596 as_fn_error $? "cannot enable service discovery - no supported mechanisms" "$LINENO" 5
5598 if test "$enable_discovery" = "true"
5599 then
5601 $as_echo "#define HAVE_SERVICE_DISCOVERY 1" >>confdefs.h
5609 enable_systemd=false
5610 if test "x$do_systemd" != "xno"; then :
5612 enable_systemd=true
5615 if test -n "$SYSTEMD_SYSTEMUNITDIR"; then
5616 pkg_cv_SYSTEMD_SYSTEMUNITDIR="$SYSTEMD_SYSTEMUNITDIR"
5617 elif test -n "$PKG_CONFIG"; then
5618 if test -n "$PKG_CONFIG" && \
5619 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd\""; } >&5
5620 ($PKG_CONFIG --exists --print-errors "systemd") 2>&5
5621 ac_status=$?
5622 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5623 test $ac_status = 0; }; then
5624 pkg_cv_SYSTEMD_SYSTEMUNITDIR=`$PKG_CONFIG --variable="systemdsystemunitdir" "systemd" 2>/dev/null`
5625 test "x$?" != "x0" && pkg_failed=yes
5626 else
5627 pkg_failed=yes
5629 else
5630 pkg_failed=untried
5632 SYSTEMD_SYSTEMUNITDIR=$pkg_cv_SYSTEMD_SYSTEMUNITDIR
5634 if test "x$SYSTEMD_SYSTEMUNITDIR" = x""; then :
5635 enable_systemd=false
5636 else
5637 pcp_systemdunit_dir=$SYSTEMD_SYSTEMUNITDIR
5640 if test -z "$pcp_systemdunit_dir"
5641 then
5642 if test "$do_systemd" = "yes"
5643 then
5644 as_fn_error $? "cannot enable systemd support - no systemunitdir path" "$LINENO" 5
5646 enable_systemd=false
5653 . ./VERSION.pcp
5654 PACKAGE_VERSION=${PACKAGE_MAJOR}.${PACKAGE_MINOR}.${PACKAGE_REVISION}
5661 if test -z "$PACKAGE_BUILD_DATE" ; then
5662 PACKAGE_BUILD_DATE=`date +%Y-%m-%d`
5666 if test -z "$PACKAGE_DISTRIBUTION" ; then
5667 PACKAGE_DISTRIBUTION=$target_distro
5671 pm_version_current=`awk </dev/null "BEGIN { print (${PACKAGE_MAJOR}*256+${PACKAGE_MINOR})*256+${PACKAGE_REVISION} }"`
5674 ac_config_headers="$ac_config_headers src/include/pcp/config.h src/include/pcp/configsz.h"
5676 ac_config_files="$ac_config_files src/include/pcp/platform_defs.h src/include/pcp/platformsz.h"
5678 cat >confcache <<\_ACEOF
5679 # This file is a shell script that caches the results of configure
5680 # tests run on this system so they can be shared between configure
5681 # scripts and configure runs, see configure's option --config-cache.
5682 # It is not useful on other systems. If it contains results you don't
5683 # want to keep, you may remove or edit it.
5685 # config.status only pays attention to the cache file if you give it
5686 # the --recheck option to rerun configure.
5688 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5689 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5690 # following values.
5692 _ACEOF
5694 # The following way of writing the cache mishandles newlines in values,
5695 # but we know of no workaround that is simple, portable, and efficient.
5696 # So, we kill variables containing newlines.
5697 # Ultrix sh set writes to stderr and can't be redirected directly,
5698 # and sets the high bit in the cache file unless we assign to the vars.
5700 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5701 eval ac_val=\$$ac_var
5702 case $ac_val in #(
5703 *${as_nl}*)
5704 case $ac_var in #(
5705 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5706 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5707 esac
5708 case $ac_var in #(
5709 _ | IFS | as_nl) ;; #(
5710 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5711 *) { eval $ac_var=; unset $ac_var;} ;;
5712 esac ;;
5713 esac
5714 done
5716 (set) 2>&1 |
5717 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5718 *${as_nl}ac_space=\ *)
5719 # `set' does not quote correctly, so add quotes: double-quote
5720 # substitution turns \\\\ into \\, and sed turns \\ into \.
5721 sed -n \
5722 "s/'/'\\\\''/g;
5723 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5724 ;; #(
5726 # `set' quotes correctly as required by POSIX, so do not add quotes.
5727 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5729 esac |
5730 sort
5732 sed '
5733 /^ac_cv_env_/b end
5734 t clear
5735 :clear
5736 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5737 t end
5738 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5739 :end' >>confcache
5740 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5741 if test -w "$cache_file"; then
5742 if test "x$cache_file" != "x/dev/null"; then
5743 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5744 $as_echo "$as_me: updating cache $cache_file" >&6;}
5745 if test ! -f "$cache_file" || test -h "$cache_file"; then
5746 cat confcache >"$cache_file"
5747 else
5748 case $cache_file in #(
5749 */* | ?:*)
5750 mv -f confcache "$cache_file"$$ &&
5751 mv -f "$cache_file"$$ "$cache_file" ;; #(
5753 mv -f confcache "$cache_file" ;;
5754 esac
5757 else
5758 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5759 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5762 rm -f confcache
5764 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5765 # Let make expand exec_prefix.
5766 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5768 DEFS=-DHAVE_CONFIG_H
5770 ac_libobjs=
5771 ac_ltlibobjs=
5773 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5774 # 1. Remove the extension, and $U if already installed.
5775 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5776 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5777 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5778 # will be set to the directory where LIBOBJS objects are built.
5779 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5780 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
5781 done
5782 LIBOBJS=$ac_libobjs
5784 LTLIBOBJS=$ac_ltlibobjs
5788 : "${CONFIG_STATUS=./config.status}"
5789 ac_write_fail=0
5790 ac_clean_files_save=$ac_clean_files
5791 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5792 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5793 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5794 as_write_fail=0
5795 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5796 #! $SHELL
5797 # Generated by $as_me.
5798 # Run this file to recreate the current configuration.
5799 # Compiler output produced by configure, useful for debugging
5800 # configure, is in config.log if it exists.
5802 debug=false
5803 ac_cs_recheck=false
5804 ac_cs_silent=false
5806 SHELL=\${CONFIG_SHELL-$SHELL}
5807 export SHELL
5808 _ASEOF
5809 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5810 ## -------------------- ##
5811 ## M4sh Initialization. ##
5812 ## -------------------- ##
5814 # Be more Bourne compatible
5815 DUALCASE=1; export DUALCASE # for MKS sh
5816 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
5817 emulate sh
5818 NULLCMD=:
5819 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5820 # is contrary to our usage. Disable this feature.
5821 alias -g '${1+"$@"}'='"$@"'
5822 setopt NO_GLOB_SUBST
5823 else
5824 case `(set -o) 2>/dev/null` in #(
5825 *posix*) :
5826 set -o posix ;; #(
5827 *) :
5829 esac
5833 as_nl='
5835 export as_nl
5836 # Printing a long string crashes Solaris 7 /usr/bin/printf.
5837 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5838 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5839 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5840 # Prefer a ksh shell builtin over an external printf program on Solaris,
5841 # but without wasting forks for bash or zsh.
5842 if test -z "$BASH_VERSION$ZSH_VERSION" \
5843 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5844 as_echo='print -r --'
5845 as_echo_n='print -rn --'
5846 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5847 as_echo='printf %s\n'
5848 as_echo_n='printf %s'
5849 else
5850 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5851 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5852 as_echo_n='/usr/ucb/echo -n'
5853 else
5854 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5855 as_echo_n_body='eval
5856 arg=$1;
5857 case $arg in #(
5858 *"$as_nl"*)
5859 expr "X$arg" : "X\\(.*\\)$as_nl";
5860 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5861 esac;
5862 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5864 export as_echo_n_body
5865 as_echo_n='sh -c $as_echo_n_body as_echo'
5867 export as_echo_body
5868 as_echo='sh -c $as_echo_body as_echo'
5871 # The user is always right.
5872 if test "${PATH_SEPARATOR+set}" != set; then
5873 PATH_SEPARATOR=:
5874 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5875 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5876 PATH_SEPARATOR=';'
5881 # IFS
5882 # We need space, tab and new line, in precisely that order. Quoting is
5883 # there to prevent editors from complaining about space-tab.
5884 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
5885 # splitting by setting IFS to empty value.)
5886 IFS=" "" $as_nl"
5888 # Find who we are. Look in the path if we contain no directory separator.
5889 as_myself=
5890 case $0 in #((
5891 *[\\/]* ) as_myself=$0 ;;
5892 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5893 for as_dir in $PATH
5895 IFS=$as_save_IFS
5896 test -z "$as_dir" && as_dir=.
5897 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5898 done
5899 IFS=$as_save_IFS
5902 esac
5903 # We did not find ourselves, most probably we were run as `sh COMMAND'
5904 # in which case we are not to be found in the path.
5905 if test "x$as_myself" = x; then
5906 as_myself=$0
5908 if test ! -f "$as_myself"; then
5909 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5910 exit 1
5913 # Unset variables that we do not need and which cause bugs (e.g. in
5914 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
5915 # suppresses any "Segmentation fault" message there. '((' could
5916 # trigger a bug in pdksh 5.2.14.
5917 for as_var in BASH_ENV ENV MAIL MAILPATH
5918 do eval test x\${$as_var+set} = xset \
5919 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5920 done
5921 PS1='$ '
5922 PS2='> '
5923 PS4='+ '
5925 # NLS nuisances.
5926 LC_ALL=C
5927 export LC_ALL
5928 LANGUAGE=C
5929 export LANGUAGE
5931 # CDPATH.
5932 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5935 # as_fn_error STATUS ERROR [LINENO LOG_FD]
5936 # ----------------------------------------
5937 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5938 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5939 # script with STATUS, using 1 if that was 0.
5940 as_fn_error ()
5942 as_status=$1; test $as_status -eq 0 && as_status=1
5943 if test "$4"; then
5944 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5945 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
5947 $as_echo "$as_me: error: $2" >&2
5948 as_fn_exit $as_status
5949 } # as_fn_error
5952 # as_fn_set_status STATUS
5953 # -----------------------
5954 # Set $? to STATUS, without forking.
5955 as_fn_set_status ()
5957 return $1
5958 } # as_fn_set_status
5960 # as_fn_exit STATUS
5961 # -----------------
5962 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5963 as_fn_exit ()
5965 set +e
5966 as_fn_set_status $1
5967 exit $1
5968 } # as_fn_exit
5970 # as_fn_unset VAR
5971 # ---------------
5972 # Portably unset VAR.
5973 as_fn_unset ()
5975 { eval $1=; unset $1;}
5977 as_unset=as_fn_unset
5978 # as_fn_append VAR VALUE
5979 # ----------------------
5980 # Append the text in VALUE to the end of the definition contained in VAR. Take
5981 # advantage of any shell optimizations that allow amortized linear growth over
5982 # repeated appends, instead of the typical quadratic growth present in naive
5983 # implementations.
5984 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
5985 eval 'as_fn_append ()
5987 eval $1+=\$2
5989 else
5990 as_fn_append ()
5992 eval $1=\$$1\$2
5994 fi # as_fn_append
5996 # as_fn_arith ARG...
5997 # ------------------
5998 # Perform arithmetic evaluation on the ARGs, and store the result in the
5999 # global $as_val. Take advantage of shells that can avoid forks. The arguments
6000 # must be portable across $(()) and expr.
6001 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
6002 eval 'as_fn_arith ()
6004 as_val=$(( $* ))
6006 else
6007 as_fn_arith ()
6009 as_val=`expr "$@" || test $? -eq 1`
6011 fi # as_fn_arith
6014 if expr a : '\(a\)' >/dev/null 2>&1 &&
6015 test "X`expr 00001 : '.*\(...\)'`" = X001; then
6016 as_expr=expr
6017 else
6018 as_expr=false
6021 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6022 as_basename=basename
6023 else
6024 as_basename=false
6027 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6028 as_dirname=dirname
6029 else
6030 as_dirname=false
6033 as_me=`$as_basename -- "$0" ||
6034 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6035 X"$0" : 'X\(//\)$' \| \
6036 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6037 $as_echo X/"$0" |
6038 sed '/^.*\/\([^/][^/]*\)\/*$/{
6039 s//\1/
6042 /^X\/\(\/\/\)$/{
6043 s//\1/
6046 /^X\/\(\/\).*/{
6047 s//\1/
6050 s/.*/./; q'`
6052 # Avoid depending upon Character Ranges.
6053 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6054 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6055 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6056 as_cr_digits='0123456789'
6057 as_cr_alnum=$as_cr_Letters$as_cr_digits
6059 ECHO_C= ECHO_N= ECHO_T=
6060 case `echo -n x` in #(((((
6061 -n*)
6062 case `echo 'xy\c'` in
6063 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
6064 xy) ECHO_C='\c';;
6065 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
6066 ECHO_T=' ';;
6067 esac;;
6069 ECHO_N='-n';;
6070 esac
6072 rm -f conf$$ conf$$.exe conf$$.file
6073 if test -d conf$$.dir; then
6074 rm -f conf$$.dir/conf$$.file
6075 else
6076 rm -f conf$$.dir
6077 mkdir conf$$.dir 2>/dev/null
6079 if (echo >conf$$.file) 2>/dev/null; then
6080 if ln -s conf$$.file conf$$ 2>/dev/null; then
6081 as_ln_s='ln -s'
6082 # ... but there are two gotchas:
6083 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6084 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6085 # In both cases, we have to default to `cp -pR'.
6086 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6087 as_ln_s='cp -pR'
6088 elif ln conf$$.file conf$$ 2>/dev/null; then
6089 as_ln_s=ln
6090 else
6091 as_ln_s='cp -pR'
6093 else
6094 as_ln_s='cp -pR'
6096 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6097 rmdir conf$$.dir 2>/dev/null
6100 # as_fn_mkdir_p
6101 # -------------
6102 # Create "$as_dir" as a directory, including parents if necessary.
6103 as_fn_mkdir_p ()
6106 case $as_dir in #(
6107 -*) as_dir=./$as_dir;;
6108 esac
6109 test -d "$as_dir" || eval $as_mkdir_p || {
6110 as_dirs=
6111 while :; do
6112 case $as_dir in #(
6113 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6114 *) as_qdir=$as_dir;;
6115 esac
6116 as_dirs="'$as_qdir' $as_dirs"
6117 as_dir=`$as_dirname -- "$as_dir" ||
6118 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6119 X"$as_dir" : 'X\(//\)[^/]' \| \
6120 X"$as_dir" : 'X\(//\)$' \| \
6121 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6122 $as_echo X"$as_dir" |
6123 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6124 s//\1/
6127 /^X\(\/\/\)[^/].*/{
6128 s//\1/
6131 /^X\(\/\/\)$/{
6132 s//\1/
6135 /^X\(\/\).*/{
6136 s//\1/
6139 s/.*/./; q'`
6140 test -d "$as_dir" && break
6141 done
6142 test -z "$as_dirs" || eval "mkdir $as_dirs"
6143 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
6146 } # as_fn_mkdir_p
6147 if mkdir -p . 2>/dev/null; then
6148 as_mkdir_p='mkdir -p "$as_dir"'
6149 else
6150 test -d ./-p && rmdir ./-p
6151 as_mkdir_p=false
6155 # as_fn_executable_p FILE
6156 # -----------------------
6157 # Test if FILE is an executable regular file.
6158 as_fn_executable_p ()
6160 test -f "$1" && test -x "$1"
6161 } # as_fn_executable_p
6162 as_test_x='test -x'
6163 as_executable_p=as_fn_executable_p
6165 # Sed expression to map a string onto a valid CPP name.
6166 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6168 # Sed expression to map a string onto a valid variable name.
6169 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6172 exec 6>&1
6173 ## ----------------------------------- ##
6174 ## Main body of $CONFIG_STATUS script. ##
6175 ## ----------------------------------- ##
6176 _ASEOF
6177 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
6179 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6180 # Save the log message, to keep $0 and so on meaningful, and to
6181 # report actual input values of CONFIG_FILES etc. instead of their
6182 # values after options handling.
6183 ac_log="
6184 This file was extended by $as_me, which was
6185 generated by GNU Autoconf 2.69. Invocation command line was
6187 CONFIG_FILES = $CONFIG_FILES
6188 CONFIG_HEADERS = $CONFIG_HEADERS
6189 CONFIG_LINKS = $CONFIG_LINKS
6190 CONFIG_COMMANDS = $CONFIG_COMMANDS
6191 $ $0 $@
6193 on `(hostname || uname -n) 2>/dev/null | sed 1q`
6196 _ACEOF
6198 case $ac_config_files in *"
6199 "*) set x $ac_config_files; shift; ac_config_files=$*;;
6200 esac
6202 case $ac_config_headers in *"
6203 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
6204 esac
6207 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6208 # Files that config.status was made for.
6209 config_files="$ac_config_files"
6210 config_headers="$ac_config_headers"
6212 _ACEOF
6214 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6215 ac_cs_usage="\
6216 \`$as_me' instantiates files and other configuration actions
6217 from templates according to the current configuration. Unless the files
6218 and actions are specified as TAGs, all are instantiated by default.
6220 Usage: $0 [OPTION]... [TAG]...
6222 -h, --help print this help, then exit
6223 -V, --version print version number and configuration settings, then exit
6224 --config print configuration, then exit
6225 -q, --quiet, --silent
6226 do not print progress messages
6227 -d, --debug don't remove temporary files
6228 --recheck update $as_me by reconfiguring in the same conditions
6229 --file=FILE[:TEMPLATE]
6230 instantiate the configuration file FILE
6231 --header=FILE[:TEMPLATE]
6232 instantiate the configuration header FILE
6234 Configuration files:
6235 $config_files
6237 Configuration headers:
6238 $config_headers
6240 Report bugs to the package provider."
6242 _ACEOF
6243 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6244 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
6245 ac_cs_version="\\
6246 config.status
6247 configured by $0, generated by GNU Autoconf 2.69,
6248 with options \\"\$ac_cs_config\\"
6250 Copyright (C) 2012 Free Software Foundation, Inc.
6251 This config.status script is free software; the Free Software Foundation
6252 gives unlimited permission to copy, distribute and modify it."
6254 ac_pwd='$ac_pwd'
6255 srcdir='$srcdir'
6256 test -n "\$AWK" || AWK=awk
6257 _ACEOF
6259 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6260 # The default lists apply if the user does not specify any file.
6261 ac_need_defaults=:
6262 while test $# != 0
6264 case $1 in
6265 --*=?*)
6266 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6267 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6268 ac_shift=:
6270 --*=)
6271 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6272 ac_optarg=
6273 ac_shift=:
6276 ac_option=$1
6277 ac_optarg=$2
6278 ac_shift=shift
6280 esac
6282 case $ac_option in
6283 # Handling of the options.
6284 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6285 ac_cs_recheck=: ;;
6286 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6287 $as_echo "$ac_cs_version"; exit ;;
6288 --config | --confi | --conf | --con | --co | --c )
6289 $as_echo "$ac_cs_config"; exit ;;
6290 --debug | --debu | --deb | --de | --d | -d )
6291 debug=: ;;
6292 --file | --fil | --fi | --f )
6293 $ac_shift
6294 case $ac_optarg in
6295 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6296 '') as_fn_error $? "missing file argument" ;;
6297 esac
6298 as_fn_append CONFIG_FILES " '$ac_optarg'"
6299 ac_need_defaults=false;;
6300 --header | --heade | --head | --hea )
6301 $ac_shift
6302 case $ac_optarg in
6303 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6304 esac
6305 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
6306 ac_need_defaults=false;;
6307 --he | --h)
6308 # Conflict between --help and --header
6309 as_fn_error $? "ambiguous option: \`$1'
6310 Try \`$0 --help' for more information.";;
6311 --help | --hel | -h )
6312 $as_echo "$ac_cs_usage"; exit ;;
6313 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6314 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6315 ac_cs_silent=: ;;
6317 # This is an error.
6318 -*) as_fn_error $? "unrecognized option: \`$1'
6319 Try \`$0 --help' for more information." ;;
6321 *) as_fn_append ac_config_targets " $1"
6322 ac_need_defaults=false ;;
6324 esac
6325 shift
6326 done
6328 ac_configure_extra_args=
6330 if $ac_cs_silent; then
6331 exec 6>/dev/null
6332 ac_configure_extra_args="$ac_configure_extra_args --silent"
6335 _ACEOF
6336 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6337 if \$ac_cs_recheck; then
6338 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6339 shift
6340 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6341 CONFIG_SHELL='$SHELL'
6342 export CONFIG_SHELL
6343 exec "\$@"
6346 _ACEOF
6347 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6348 exec 5>>config.log
6350 echo
6351 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6352 ## Running $as_me. ##
6353 _ASBOX
6354 $as_echo "$ac_log"
6355 } >&5
6357 _ACEOF
6358 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6359 _ACEOF
6361 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6363 # Handling of arguments.
6364 for ac_config_target in $ac_config_targets
6366 case $ac_config_target in
6367 "src/include/pcp/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pcp/config.h" ;;
6368 "src/include/pcp/configsz.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pcp/configsz.h" ;;
6369 "src/include/pcp/platform_defs.h") CONFIG_FILES="$CONFIG_FILES src/include/pcp/platform_defs.h" ;;
6370 "src/include/pcp/platformsz.h") CONFIG_FILES="$CONFIG_FILES src/include/pcp/platformsz.h" ;;
6372 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
6373 esac
6374 done
6377 # If the user did not use the arguments to specify the items to instantiate,
6378 # then the envvar interface is used. Set only those that are not.
6379 # We use the long form for the default assignment because of an extremely
6380 # bizarre bug on SunOS 4.1.3.
6381 if $ac_need_defaults; then
6382 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6383 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6386 # Have a temporary directory for convenience. Make it in the build tree
6387 # simply because there is no reason against having it here, and in addition,
6388 # creating and moving files from /tmp can sometimes cause problems.
6389 # Hook for its removal unless debugging.
6390 # Note that there is a small window in which the directory will not be cleaned:
6391 # after its creation but before its name has been assigned to `$tmp'.
6392 $debug ||
6394 tmp= ac_tmp=
6395 trap 'exit_status=$?
6396 : "${ac_tmp:=$tmp}"
6397 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
6399 trap 'as_fn_exit 1' 1 2 13 15
6401 # Create a (secure) tmp directory for tmp files.
6404 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6405 test -d "$tmp"
6406 } ||
6408 tmp=./conf$$-$RANDOM
6409 (umask 077 && mkdir "$tmp")
6410 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
6411 ac_tmp=$tmp
6413 # Set up the scripts for CONFIG_FILES section.
6414 # No need to generate them if there are no CONFIG_FILES.
6415 # This happens for instance with `./config.status config.h'.
6416 if test -n "$CONFIG_FILES"; then
6419 ac_cr=`echo X | tr X '\015'`
6420 # On cygwin, bash can eat \r inside `` if the user requested igncr.
6421 # But we know of no other shell where ac_cr would be empty at this
6422 # point, so we can use a bashism as a fallback.
6423 if test "x$ac_cr" = x; then
6424 eval ac_cr=\$\'\\r\'
6426 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6427 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6428 ac_cs_awk_cr='\\r'
6429 else
6430 ac_cs_awk_cr=$ac_cr
6433 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
6434 _ACEOF
6438 echo "cat >conf$$subs.awk <<_ACEOF" &&
6439 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6440 echo "_ACEOF"
6441 } >conf$$subs.sh ||
6442 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6443 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
6444 ac_delim='%!_!# '
6445 for ac_last_try in false false false false false :; do
6446 . ./conf$$subs.sh ||
6447 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6449 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6450 if test $ac_delim_n = $ac_delim_num; then
6451 break
6452 elif $ac_last_try; then
6453 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6454 else
6455 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6457 done
6458 rm -f conf$$subs.sh
6460 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6461 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
6462 _ACEOF
6463 sed -n '
6465 s/^/S["/; s/!.*/"]=/
6468 s/^[^!]*!//
6469 :repl
6470 t repl
6471 s/'"$ac_delim"'$//
6472 t delim
6475 s/\(.\{148\}\)..*/\1/
6476 t more1
6477 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6480 b repl
6481 :more1
6482 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6485 s/.\{148\}//
6486 t nl
6487 :delim
6489 s/\(.\{148\}\)..*/\1/
6490 t more2
6491 s/["\\]/\\&/g; s/^/"/; s/$/"/
6494 :more2
6495 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6498 s/.\{148\}//
6499 t delim
6500 ' <conf$$subs.awk | sed '
6501 /^[^""]/{
6503 s/\n//
6505 ' >>$CONFIG_STATUS || ac_write_fail=1
6506 rm -f conf$$subs.awk
6507 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6508 _ACAWK
6509 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
6510 for (key in S) S_is_set[key] = 1
6511 FS = "\a"
6515 line = $ 0
6516 nfields = split(line, field, "@")
6517 substed = 0
6518 len = length(field[1])
6519 for (i = 2; i < nfields; i++) {
6520 key = field[i]
6521 keylen = length(key)
6522 if (S_is_set[key]) {
6523 value = S[key]
6524 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6525 len += length(value) + length(field[++i])
6526 substed = 1
6527 } else
6528 len += 1 + keylen
6531 print line
6534 _ACAWK
6535 _ACEOF
6536 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6537 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6538 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6539 else
6541 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
6542 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
6543 _ACEOF
6545 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
6546 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
6547 # trailing colons and then remove the whole line if VPATH becomes empty
6548 # (actually we leave an empty line to preserve line numbers).
6549 if test "x$srcdir" = x.; then
6550 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
6552 s///
6553 s/^/:/
6554 s/[ ]*$/:/
6555 s/:\$(srcdir):/:/g
6556 s/:\${srcdir}:/:/g
6557 s/:@srcdir@:/:/g
6558 s/^:*//
6559 s/:*$//
6561 s/\(=[ ]*\).*/\1/
6563 s/\n//
6564 s/^[^=]*=[ ]*$//
6568 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6569 fi # test -n "$CONFIG_FILES"
6571 # Set up the scripts for CONFIG_HEADERS section.
6572 # No need to generate them if there are no CONFIG_HEADERS.
6573 # This happens for instance with `./config.status Makefile'.
6574 if test -n "$CONFIG_HEADERS"; then
6575 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
6576 BEGIN {
6577 _ACEOF
6579 # Transform confdefs.h into an awk script `defines.awk', embedded as
6580 # here-document in config.status, that substitutes the proper values into
6581 # config.h.in to produce config.h.
6583 # Create a delimiter string that does not exist in confdefs.h, to ease
6584 # handling of long lines.
6585 ac_delim='%!_!# '
6586 for ac_last_try in false false :; do
6587 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
6588 if test -z "$ac_tt"; then
6589 break
6590 elif $ac_last_try; then
6591 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
6592 else
6593 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6595 done
6597 # For the awk script, D is an array of macro values keyed by name,
6598 # likewise P contains macro parameters if any. Preserve backslash
6599 # newline sequences.
6601 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6602 sed -n '
6603 s/.\{148\}/&'"$ac_delim"'/g
6604 t rset
6605 :rset
6606 s/^[ ]*#[ ]*define[ ][ ]*/ /
6607 t def
6609 :def
6610 s/\\$//
6611 t bsnl
6612 s/["\\]/\\&/g
6613 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6614 D["\1"]=" \3"/p
6615 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
6617 :bsnl
6618 s/["\\]/\\&/g
6619 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6620 D["\1"]=" \3\\\\\\n"\\/p
6621 t cont
6622 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6623 t cont
6625 :cont
6627 s/.\{148\}/&'"$ac_delim"'/g
6628 t clear
6629 :clear
6630 s/\\$//
6631 t bsnlc
6632 s/["\\]/\\&/g; s/^/"/; s/$/"/p
6634 :bsnlc
6635 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6636 b cont
6637 ' <confdefs.h | sed '
6638 s/'"$ac_delim"'/"\\\
6639 "/g' >>$CONFIG_STATUS || ac_write_fail=1
6641 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6642 for (key in D) D_is_set[key] = 1
6643 FS = "\a"
6645 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6646 line = \$ 0
6647 split(line, arg, " ")
6648 if (arg[1] == "#") {
6649 defundef = arg[2]
6650 mac1 = arg[3]
6651 } else {
6652 defundef = substr(arg[1], 2)
6653 mac1 = arg[2]
6655 split(mac1, mac2, "(") #)
6656 macro = mac2[1]
6657 prefix = substr(line, 1, index(line, defundef) - 1)
6658 if (D_is_set[macro]) {
6659 # Preserve the white space surrounding the "#".
6660 print prefix "define", macro P[macro] D[macro]
6661 next
6662 } else {
6663 # Replace #undef with comments. This is necessary, for example,
6664 # in the case of _POSIX_SOURCE, which is predefined and required
6665 # on some systems where configure will not decide to define it.
6666 if (defundef == "undef") {
6667 print "/*", prefix defundef, macro, "*/"
6668 next
6672 { print }
6673 _ACAWK
6674 _ACEOF
6675 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6676 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
6677 fi # test -n "$CONFIG_HEADERS"
6680 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
6681 shift
6682 for ac_tag
6684 case $ac_tag in
6685 :[FHLC]) ac_mode=$ac_tag; continue;;
6686 esac
6687 case $ac_mode$ac_tag in
6688 :[FHL]*:*);;
6689 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
6690 :[FH]-) ac_tag=-:-;;
6691 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6692 esac
6693 ac_save_IFS=$IFS
6694 IFS=:
6695 set x $ac_tag
6696 IFS=$ac_save_IFS
6697 shift
6698 ac_file=$1
6699 shift
6701 case $ac_mode in
6702 :L) ac_source=$1;;
6703 :[FH])
6704 ac_file_inputs=
6705 for ac_f
6707 case $ac_f in
6708 -) ac_f="$ac_tmp/stdin";;
6709 *) # Look for the file first in the build tree, then in the source tree
6710 # (if the path is not absolute). The absolute path cannot be DOS-style,
6711 # because $ac_f cannot contain `:'.
6712 test -f "$ac_f" ||
6713 case $ac_f in
6714 [\\/$]*) false;;
6715 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6716 esac ||
6717 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6718 esac
6719 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6720 as_fn_append ac_file_inputs " '$ac_f'"
6721 done
6723 # Let's still pretend it is `configure' which instantiates (i.e., don't
6724 # use $as_me), people would be surprised to read:
6725 # /* config.h. Generated by config.status. */
6726 configure_input='Generated from '`
6727 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6728 `' by configure.'
6729 if test x"$ac_file" != x-; then
6730 configure_input="$ac_file. $configure_input"
6731 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6732 $as_echo "$as_me: creating $ac_file" >&6;}
6734 # Neutralize special characters interpreted by sed in replacement strings.
6735 case $configure_input in #(
6736 *\&* | *\|* | *\\* )
6737 ac_sed_conf_input=`$as_echo "$configure_input" |
6738 sed 's/[\\\\&|]/\\\\&/g'`;; #(
6739 *) ac_sed_conf_input=$configure_input;;
6740 esac
6742 case $ac_tag in
6743 *:-:* | *:-) cat >"$ac_tmp/stdin" \
6744 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
6745 esac
6747 esac
6749 ac_dir=`$as_dirname -- "$ac_file" ||
6750 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6751 X"$ac_file" : 'X\(//\)[^/]' \| \
6752 X"$ac_file" : 'X\(//\)$' \| \
6753 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6754 $as_echo X"$ac_file" |
6755 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6756 s//\1/
6759 /^X\(\/\/\)[^/].*/{
6760 s//\1/
6763 /^X\(\/\/\)$/{
6764 s//\1/
6767 /^X\(\/\).*/{
6768 s//\1/
6771 s/.*/./; q'`
6772 as_dir="$ac_dir"; as_fn_mkdir_p
6773 ac_builddir=.
6775 case "$ac_dir" in
6776 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6778 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6779 # A ".." for each directory in $ac_dir_suffix.
6780 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6781 case $ac_top_builddir_sub in
6782 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6783 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6784 esac ;;
6785 esac
6786 ac_abs_top_builddir=$ac_pwd
6787 ac_abs_builddir=$ac_pwd$ac_dir_suffix
6788 # for backward compatibility:
6789 ac_top_builddir=$ac_top_build_prefix
6791 case $srcdir in
6792 .) # We are building in place.
6793 ac_srcdir=.
6794 ac_top_srcdir=$ac_top_builddir_sub
6795 ac_abs_top_srcdir=$ac_pwd ;;
6796 [\\/]* | ?:[\\/]* ) # Absolute name.
6797 ac_srcdir=$srcdir$ac_dir_suffix;
6798 ac_top_srcdir=$srcdir
6799 ac_abs_top_srcdir=$srcdir ;;
6800 *) # Relative name.
6801 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6802 ac_top_srcdir=$ac_top_build_prefix$srcdir
6803 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6804 esac
6805 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6808 case $ac_mode in
6811 # CONFIG_FILE
6814 _ACEOF
6816 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6817 # If the template does not know about datarootdir, expand it.
6818 # FIXME: This hack should be removed a few years after 2.60.
6819 ac_datarootdir_hack=; ac_datarootdir_seen=
6820 ac_sed_dataroot='
6821 /datarootdir/ {
6825 /@datadir@/p
6826 /@docdir@/p
6827 /@infodir@/p
6828 /@localedir@/p
6829 /@mandir@/p'
6830 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6831 *datarootdir*) ac_datarootdir_seen=yes;;
6832 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6833 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6834 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6835 _ACEOF
6836 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6837 ac_datarootdir_hack='
6838 s&@datadir@&$datadir&g
6839 s&@docdir@&$docdir&g
6840 s&@infodir@&$infodir&g
6841 s&@localedir@&$localedir&g
6842 s&@mandir@&$mandir&g
6843 s&\\\${datarootdir}&$datarootdir&g' ;;
6844 esac
6845 _ACEOF
6847 # Neutralize VPATH when `$srcdir' = `.'.
6848 # Shell code in configure.ac might set extrasub.
6849 # FIXME: do we really want to maintain this feature?
6850 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6851 ac_sed_extra="$ac_vpsub
6852 $extrasub
6853 _ACEOF
6854 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6856 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6857 s|@configure_input@|$ac_sed_conf_input|;t t
6858 s&@top_builddir@&$ac_top_builddir_sub&;t t
6859 s&@top_build_prefix@&$ac_top_build_prefix&;t t
6860 s&@srcdir@&$ac_srcdir&;t t
6861 s&@abs_srcdir@&$ac_abs_srcdir&;t t
6862 s&@top_srcdir@&$ac_top_srcdir&;t t
6863 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6864 s&@builddir@&$ac_builddir&;t t
6865 s&@abs_builddir@&$ac_abs_builddir&;t t
6866 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6867 $ac_datarootdir_hack
6869 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
6870 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6872 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6873 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
6874 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
6875 "$ac_tmp/out"`; test -z "$ac_out"; } &&
6876 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6877 which seems to be undefined. Please make sure it is defined" >&5
6878 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6879 which seems to be undefined. Please make sure it is defined" >&2;}
6881 rm -f "$ac_tmp/stdin"
6882 case $ac_file in
6883 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
6884 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
6885 esac \
6886 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6890 # CONFIG_HEADER
6892 if test x"$ac_file" != x-; then
6894 $as_echo "/* $configure_input */" \
6895 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
6896 } >"$ac_tmp/config.h" \
6897 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6898 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
6899 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
6900 $as_echo "$as_me: $ac_file is unchanged" >&6;}
6901 else
6902 rm -f "$ac_file"
6903 mv "$ac_tmp/config.h" "$ac_file" \
6904 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6906 else
6907 $as_echo "/* $configure_input */" \
6908 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
6909 || as_fn_error $? "could not create -" "$LINENO" 5
6914 esac
6916 done # for ac_tag
6919 as_fn_exit 0
6920 _ACEOF
6921 ac_clean_files=$ac_clean_files_save
6923 test $ac_write_fail = 0 ||
6924 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
6927 # configure is writing to config.log, and then calls config.status.
6928 # config.status does its own redirection, appending to config.log.
6929 # Unfortunately, on DOS this fails, as config.log is still kept open
6930 # by configure, so config.status won't be able to write to it; its
6931 # output is simply discarded. So we exec the FD to /dev/null,
6932 # effectively closing config.log, so it can be properly (re)opened and
6933 # appended to by config.status. When coming back to configure, we
6934 # need to make the FD available again.
6935 if test "$no_create" != yes; then
6936 ac_cs_success=:
6937 ac_config_status_args=
6938 test "$silent" = yes &&
6939 ac_config_status_args="$ac_config_status_args --quiet"
6940 exec 5>/dev/null
6941 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6942 exec 5>>config.log
6943 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6944 # would make configure fail if this is the last instruction.
6945 $ac_cs_success || as_fn_exit 1
6947 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6948 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6949 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
6953 for ac_prog in git
6955 # Extract the first word of "$ac_prog", so it can be a program name with args.
6956 set dummy $ac_prog; ac_word=$2
6957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6958 $as_echo_n "checking for $ac_word... " >&6; }
6959 if ${ac_cv_prog_GIT+:} false; then :
6960 $as_echo_n "(cached) " >&6
6961 else
6962 if test -n "$GIT"; then
6963 ac_cv_prog_GIT="$GIT" # Let the user override the test.
6964 else
6965 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6966 for as_dir in $PATH
6968 IFS=$as_save_IFS
6969 test -z "$as_dir" && as_dir=.
6970 for ac_exec_ext in '' $ac_executable_extensions; do
6971 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6972 ac_cv_prog_GIT="$ac_prog"
6973 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6974 break 2
6976 done
6977 done
6978 IFS=$as_save_IFS
6982 GIT=$ac_cv_prog_GIT
6983 if test -n "$GIT"; then
6984 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5
6985 $as_echo "$GIT" >&6; }
6986 else
6987 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6988 $as_echo "no" >&6; }
6992 test -n "$GIT" && break
6993 done
6997 for ac_prog in python
6999 # Extract the first word of "$ac_prog", so it can be a program name with args.
7000 set dummy $ac_prog; ac_word=$2
7001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7002 $as_echo_n "checking for $ac_word... " >&6; }
7003 if ${ac_cv_prog_PYTHON+:} false; then :
7004 $as_echo_n "(cached) " >&6
7005 else
7006 if test -n "$PYTHON"; then
7007 ac_cv_prog_PYTHON="$PYTHON" # Let the user override the test.
7008 else
7009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7010 for as_dir in $PATH
7012 IFS=$as_save_IFS
7013 test -z "$as_dir" && as_dir=.
7014 for ac_exec_ext in '' $ac_executable_extensions; do
7015 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7016 ac_cv_prog_PYTHON="$ac_prog"
7017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7018 break 2
7020 done
7021 done
7022 IFS=$as_save_IFS
7026 PYTHON=$ac_cv_prog_PYTHON
7027 if test -n "$PYTHON"; then
7028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
7029 $as_echo "$PYTHON" >&6; }
7030 else
7031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7032 $as_echo "no" >&6; }
7036 test -n "$PYTHON" && break
7037 done
7038 test -n "$PYTHON" || PYTHON="python2.7"
7042 for ac_prog in python3
7044 # Extract the first word of "$ac_prog", so it can be a program name with args.
7045 set dummy $ac_prog; ac_word=$2
7046 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7047 $as_echo_n "checking for $ac_word... " >&6; }
7048 if ${ac_cv_prog_PYTHON3+:} false; then :
7049 $as_echo_n "(cached) " >&6
7050 else
7051 if test -n "$PYTHON3"; then
7052 ac_cv_prog_PYTHON3="$PYTHON3" # Let the user override the test.
7053 else
7054 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7055 for as_dir in $PATH
7057 IFS=$as_save_IFS
7058 test -z "$as_dir" && as_dir=.
7059 for ac_exec_ext in '' $ac_executable_extensions; do
7060 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7061 ac_cv_prog_PYTHON3="$ac_prog"
7062 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7063 break 2
7065 done
7066 done
7067 IFS=$as_save_IFS
7071 PYTHON3=$ac_cv_prog_PYTHON3
7072 if test -n "$PYTHON3"; then
7073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON3" >&5
7074 $as_echo "$PYTHON3" >&6; }
7075 else
7076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7077 $as_echo "no" >&6; }
7081 test -n "$PYTHON3" && break
7082 done
7083 test -n "$PYTHON3" || PYTHON3="python3.4"
7087 enable_python2=false
7088 if test "x$do_python" != "xno"; then :
7090 enable_python2=true
7091 if test -z "$PYTHON"
7092 then
7093 enable_python2=false
7094 else
7095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python version" >&5
7096 $as_echo_n "checking Python version... " >&6; }
7097 eval `$PYTHON -V 2>&1 | awk '/^Python/ { ver=2; print $ver }' | awk -F. '{ major=1; minor=2; point=3; printf "export PY_MAJOR=%d PY_MINOR=%d PY_POINT=%d\n",$major,$minor,$point }'`
7098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PY_MAJOR.$PY_MINOR.$PY_POINT" >&5
7099 $as_echo "$PY_MAJOR.$PY_MINOR.$PY_POINT" >&6; }
7100 if test "$PY_MAJOR" -lt 2; then
7101 echo WARNING: Python version 2.6 or later does not seem to be installed.
7102 enable_python2=false
7103 else
7104 if test "$PY_MAJOR" -eq 2 -a "$PY_MINOR" -lt 6 ; then
7105 echo WARNING: Python version 2.$PY_MINOR is too old.
7106 echo Python version 2.6 or later is required for Python builds.
7107 enable_python2=false
7108 else
7109 for ac_header in python${PY_MAJOR}.${PY_MINOR}/Python.h
7110 do :
7111 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7112 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7113 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7114 cat >>confdefs.h <<_ACEOF
7115 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7116 _ACEOF
7118 else
7120 echo WARNING: Python version $PY_MAJOR.$PY_MINOR header file missing.
7121 echo Cannot proceed with the Python $PY_MAJOR installation found.
7122 enable_python2=false
7126 done
7132 if test "$do_python" != "check" -a "$enable_python2" != "true"
7133 then
7134 as_fn_error $? "cannot enable Python - no supported version found" "$LINENO" 5
7140 enable_python3=false
7141 if test "x$do_python3" != "xno"; then :
7143 enable_python3=true
7144 if test -z "$PYTHON3"
7145 then
7146 enable_python3=false
7147 else
7148 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python3 version" >&5
7149 $as_echo_n "checking Python3 version... " >&6; }
7150 eval `$PYTHON3 -V 2>&1 | awk '/^Python/ { ver=2; print $ver }' | awk -F. '{ major=1; minor=2; point=3; printf "export PY_MAJOR=%d PY_MINOR=%d PY_POINT=%d\n",$major,$minor,$point }'`
7151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PY_MAJOR.$PY_MINOR.$PY_POINT" >&5
7152 $as_echo "$PY_MAJOR.$PY_MINOR.$PY_POINT" >&6; }
7153 if test "$PY_MAJOR" -lt 3; then
7154 echo WARNING: Python version 3.3 or later does not seem to be installed.
7155 enable_python3=false
7156 else
7157 if test "$PY_MAJOR" -eq 3 -a "$PY_MINOR" -lt 3 ; then
7158 echo WARNING: Python version 3.$PY_MINOR is too old.
7159 echo Python version 3.3 or later is required for Python builds.
7160 enable_python3=false
7161 else
7162 for ac_header in python${PY_MAJOR}.${PY_MINOR}m/Python.h
7163 do :
7164 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7165 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7166 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7167 cat >>confdefs.h <<_ACEOF
7168 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7169 _ACEOF
7171 else
7173 echo WARNING: Python version $PY_MAJOR.$PY_MINOR header file missing.
7174 echo Cannot proceed with the Python $PY_MAJOR installation found.
7175 enable_python3=false
7179 done
7185 if test "$do_python3" != "check" -a "$enable_python3" != "true"
7186 then
7187 as_fn_error $? "cannot enable Python3 - no supported version found" "$LINENO" 5
7193 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for any python version" >&5
7194 $as_echo_n "checking for any python version... " >&6; }
7195 if test "$cross_compiling" = "yes"; then
7196 ans=$have_python
7197 echo "cross-compile -> \"$ans\"" >&5
7198 elif test "$enable_python2" = "true" -o "$enable_python3" = "true"
7199 then
7200 have_python=true
7201 else
7202 have_python=false
7205 if $have_python; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7206 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7207 $as_echo "no" >&6; }; fi
7209 if test "$enable_python3" = "true"
7210 then
7211 pcp_python_prog=$PYTHON3
7212 elif test "$enable_python2" = "true"
7213 then
7214 pcp_python_prog=$PYTHON
7215 else
7216 pcp_python_prog=""
7221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python module jsonpointer" >&5
7222 $as_echo_n "checking for Python module jsonpointer... " >&6; }
7223 if test -n ""
7224 then
7225 txt=""
7226 else
7227 txt="import jsonpointer"
7229 $pcp_python_prog -c 'import sys;
7230 '"$txt" >>config.log 2>&1
7231 if test "$?" = 0
7232 then
7233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7234 $as_echo "yes" >&6; }
7235 eval have_python_jsonpointer=true
7236 else
7237 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7238 $as_echo "no" >&6; }
7239 eval have_python_jsonpointer=false
7243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python module setuptools" >&5
7244 $as_echo_n "checking for Python module setuptools... " >&6; }
7245 if test -n ""
7246 then
7247 txt=""
7248 else
7249 txt="import setuptools"
7251 $pcp_python_prog -c 'import sys;
7252 '"$txt" >>config.log 2>&1
7253 if test "$?" = 0
7254 then
7255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7256 $as_echo "yes" >&6; }
7257 eval have_python_setuptools=true
7258 else
7259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7260 $as_echo "no" >&6; }
7261 eval have_python_setuptools=false
7265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python module requests" >&5
7266 $as_echo_n "checking for Python module requests... " >&6; }
7267 if test -n ""
7268 then
7269 txt=""
7270 else
7271 txt="import requests"
7273 $pcp_python_prog -c 'import sys;
7274 '"$txt" >>config.log 2>&1
7275 if test "$?" = 0
7276 then
7277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7278 $as_echo "yes" >&6; }
7279 eval have_python_requests=true
7280 else
7281 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7282 $as_echo "no" >&6; }
7283 eval have_python_requests=false
7287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python module six" >&5
7288 $as_echo_n "checking for Python module six... " >&6; }
7289 if test -n ""
7290 then
7291 txt=""
7292 else
7293 txt="import six"
7295 $pcp_python_prog -c 'import sys;
7296 '"$txt" >>config.log 2>&1
7297 if test "$?" = 0
7298 then
7299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7300 $as_echo "yes" >&6; }
7301 eval have_python_six=true
7302 else
7303 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7304 $as_echo "no" >&6; }
7305 eval have_python_six=false
7310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the json PMDA should be included" >&5
7311 $as_echo_n "checking if the json PMDA should be included... " >&6; }
7312 pmda_json=false
7313 if test "x$do_pmdajson" = "xyes"; then :
7314 pmda_json=true
7316 if test "x$do_pmdajson" = "xcheck"; then :
7318 $have_python_jsonpointer && $have_python_six && pmda_json=true
7321 PMDA_JSON=$pmda_json
7323 if $pmda_json; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7324 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7325 $as_echo "no" >&6; }; fi
7327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python module libvirt" >&5
7328 $as_echo_n "checking for Python module libvirt... " >&6; }
7329 if test -n ""
7330 then
7331 txt=""
7332 else
7333 txt="import libvirt"
7335 $pcp_python_prog -c 'import sys;
7336 '"$txt" >>config.log 2>&1
7337 if test "$?" = 0
7338 then
7339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7340 $as_echo "yes" >&6; }
7341 eval have_python_libvirt=true
7342 else
7343 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7344 $as_echo "no" >&6; }
7345 eval have_python_libvirt=false
7350 for ac_prog in perl
7352 # Extract the first word of "$ac_prog", so it can be a program name with args.
7353 set dummy $ac_prog; ac_word=$2
7354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7355 $as_echo_n "checking for $ac_word... " >&6; }
7356 if ${ac_cv_prog_PERL+:} false; then :
7357 $as_echo_n "(cached) " >&6
7358 else
7359 if test -n "$PERL"; then
7360 ac_cv_prog_PERL="$PERL" # Let the user override the test.
7361 else
7362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7363 for as_dir in $PATH
7365 IFS=$as_save_IFS
7366 test -z "$as_dir" && as_dir=.
7367 for ac_exec_ext in '' $ac_executable_extensions; do
7368 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7369 ac_cv_prog_PERL="$ac_prog"
7370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7371 break 2
7373 done
7374 done
7375 IFS=$as_save_IFS
7379 PERL=$ac_cv_prog_PERL
7380 if test -n "$PERL"; then
7381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
7382 $as_echo "$PERL" >&6; }
7383 else
7384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7385 $as_echo "no" >&6; }
7389 test -n "$PERL" && break
7390 done
7394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for any perl version" >&5
7395 $as_echo_n "checking for any perl version... " >&6; }
7396 if test "$cross_compiling" = "yes"; then
7397 ans=$have_perl
7398 echo "cross-compile -> \"$ans\"" >&5
7399 elif test -n "$PERL"
7400 then
7401 pcp_perl_prog=$PERL
7402 have_perl=true
7403 else
7404 pcp_perl_prog=""
7405 have_perl=false
7409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pcp_perl_prog" >&5
7410 $as_echo "$pcp_perl_prog" >&6; }
7412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the SNMP PMDA should be included" >&5
7413 $as_echo_n "checking if the SNMP PMDA should be included... " >&6; }
7414 pmda_snmp=false
7415 if test "x$do_pmdasnmp" = "xyes"; then :
7416 pmda_snmp=true
7418 if test "x$do_pmdasnmp" = "xcheck"; then :
7420 if test "$have_perl" = true
7421 then
7422 if $pcp_perl_prog -e "use Net::SNMP" >/dev/null 2>&1
7423 then
7424 pmda_snmp=true
7429 PMDA_SNMP=$pmda_snmp
7431 if $pmda_snmp; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7432 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7433 $as_echo "no" >&6; }; fi
7435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the mysql PMDA should be included" >&5
7436 $as_echo_n "checking if the mysql PMDA should be included... " >&6; }
7437 pmda_mysql=false
7438 if test "$have_perl" = true
7439 then
7440 if $pcp_perl_prog -e "use DBI" >/dev/null 2>&1
7441 then
7442 if $pcp_perl_prog -e "use DBD::mysql" >/dev/null 2>&1
7443 then
7444 pmda_mysql=true
7448 PMDA_MYSQL=$pmda_mysql
7450 if $pmda_mysql; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7451 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7452 $as_echo "no" >&6; }; fi
7454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the postgresql PMDA should be included" >&5
7455 $as_echo_n "checking if the postgresql PMDA should be included... " >&6; }
7456 pmda_postgresql=false
7457 if test "$have_perl" = true
7458 then
7459 if $pcp_perl_prog -e "use DBI" >/dev/null 2>&1
7460 then
7461 if $pcp_perl_prog -e "use DBD::Pg" >/dev/null 2>&1
7462 then
7463 pmda_postgresql=true
7467 PMDA_POSTGRESQL=$pmda_postgresql
7469 if $pmda_postgresql; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7470 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7471 $as_echo "no" >&6; }; fi
7473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the oracle PMDA should be included" >&5
7474 $as_echo_n "checking if the oracle PMDA should be included... " >&6; }
7475 pmda_oracle=false
7476 if test "$have_perl" = true
7477 then
7478 if $pcp_perl_prog -e "use DBI" >/dev/null 2>&1
7479 then
7480 pmda_oracle=true
7483 PMDA_ORACLE=$pmda_oracle
7485 if $pmda_oracle; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7486 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7487 $as_echo "no" >&6; }; fi
7489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the elasticsearch PMDA should be included" >&5
7490 $as_echo_n "checking if the elasticsearch PMDA should be included... " >&6; }
7491 pmda_elasticsearch=false
7492 if test "$have_perl" = true
7493 then
7494 if $pcp_perl_prog -e "use LWP::UserAgent" >/dev/null 2>&1
7495 then
7496 pmda_elasticsearch=true
7499 PMDA_ELASTICSEARCH=$pmda_elasticsearch
7501 if $pmda_elasticsearch; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7502 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7503 $as_echo "no" >&6; }; fi
7505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the nginx PMDA should be included" >&5
7506 $as_echo_n "checking if the nginx PMDA should be included... " >&6; }
7507 pmda_nginx=false
7508 if test "$have_perl" = true
7509 then
7510 if $pcp_perl_prog -e "use LWP::UserAgent" >/dev/null 2>&1
7511 then
7512 pmda_nginx=true
7515 PMDA_NGINX=$pmda_nginx
7517 if $pmda_nginx; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7518 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7519 $as_echo "no" >&6; }; fi
7521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the activemq PMDA should be included" >&5
7522 $as_echo_n "checking if the activemq PMDA should be included... " >&6; }
7523 pmda_activemq=false
7524 if test "$have_perl" = true
7525 then
7526 if $pcp_perl_prog -e "use LWP::UserAgent" >/dev/null 2>&1
7527 then
7528 pmda_activemq=true
7531 PMDA_ACTIVEMQ=$pmda_activemq
7533 if $pmda_activemq; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7534 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7535 $as_echo "no" >&6; }; fi
7537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the bind2 PMDA should be included" >&5
7538 $as_echo_n "checking if the bind2 PMDA should be included... " >&6; }
7539 pmda_bind2=false
7540 if test "$have_perl" = true
7541 then
7542 if $pcp_perl_prog -e "use LWP::UserAgent" >/dev/null 2>&1
7543 then
7544 if $pcp_perl_prog -e "use XML::LibXML" >/dev/null 2>&1
7545 then
7546 if $pcp_perl_prog -e "use File::Slurp" >/dev/null 2>&1
7547 then
7548 pmda_bind2=true
7553 PMDA_BIND2=$pmda_bind2
7555 if $pmda_bind2; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7556 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7557 $as_echo "no" >&6; }; fi
7559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the nutcracker PMDA should be included" >&5
7560 $as_echo_n "checking if the nutcracker PMDA should be included... " >&6; }
7561 pmda_nutcracker=false
7562 if test "$have_perl" = true
7563 then
7564 if $pcp_perl_prog -e "use YAML::XS" >/dev/null 2>&1
7565 then
7566 if $pcp_perl_prog -e "use JSON" >/dev/null 2>&1
7567 then
7568 pmda_nutcracker=true
7572 PMDA_NUTCRACKER=$pmda_nutcracker
7574 if $pmda_nutcracker; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7575 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7576 $as_echo "no" >&6; }; fi
7578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the libvirt PMDA should be included" >&5
7579 $as_echo_n "checking if the libvirt PMDA should be included... " >&6; }
7580 pmda_libvirt=false
7581 if test "$have_python" = true
7582 then
7583 if $pcp_python_prog -c "import libvirt" >/dev/null 2>&1
7584 then
7585 if $pcp_python_prog -c "import lxml" >/dev/null 2>&1
7586 then
7587 pmda_libvirt=true
7591 PMDA_LIBVIRT=$pmda_libvirt
7593 if $pmda_libvirt; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7594 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7595 $as_echo "no" >&6; }; fi
7597 qmake=$QMAKE
7598 enable_qt=false
7599 qt_release=release
7600 if test "x$do_qt" != "xno"; then :
7602 enable_qt=true
7604 if test -z "$QMAKE"
7605 then
7606 for ac_prog in qmake-qt5 qmake-qt4 qmake
7608 # Extract the first word of "$ac_prog", so it can be a program name with args.
7609 set dummy $ac_prog; ac_word=$2
7610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7611 $as_echo_n "checking for $ac_word... " >&6; }
7612 if ${ac_cv_path_QMAKE+:} false; then :
7613 $as_echo_n "(cached) " >&6
7614 else
7615 case $QMAKE in
7616 [\\/]* | ?:[\\/]*)
7617 ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
7620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7621 as_dummy="$QTDIR/bin:/usr/bin:/usr/lib64/qt5/bin:/usr/lib/qt5/bin:/usr/lib64/qt4/bin:/usr/lib/qt4/bin:/usr/local/bin"
7622 for as_dir in $as_dummy
7624 IFS=$as_save_IFS
7625 test -z "$as_dir" && as_dir=.
7626 for ac_exec_ext in '' $ac_executable_extensions; do
7627 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7628 ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
7629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7630 break 2
7632 done
7633 done
7634 IFS=$as_save_IFS
7637 esac
7639 QMAKE=$ac_cv_path_QMAKE
7640 if test -n "$QMAKE"; then
7641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
7642 $as_echo "$QMAKE" >&6; }
7643 else
7644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7645 $as_echo "no" >&6; }
7649 test -n "$QMAKE" && break
7650 done
7652 test "x$cc_is_gcc" = xyes -a $target_os = solaris && QMAKE="$QMAKE -spec solaris-g++"
7654 qmake=$QMAKE
7655 if test -z "$QMAKE"
7656 then
7657 enable_qt=false
7658 else
7659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Qt version" >&5
7660 $as_echo_n "checking Qt version... " >&6; }
7661 eval `$qmake --version | awk '/Using Qt version/ { ver=4; print $ver }' | awk -F. '{ major=1; minor=2; point=3; printf "export QT_MAJOR=%d QT_MINOR=%d QT_POINT=%d\n",$major,$minor,$point }'`
7662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_MAJOR.$QT_MINOR.$QT_POINT" >&5
7663 $as_echo "$QT_MAJOR.$QT_MINOR.$QT_POINT" >&6; }
7664 if test "$QT_MAJOR" -lt 4; then
7665 echo WARNING: Qt version 4.4 or later does not seem to be installed.
7666 echo Cannot proceed with the Qt $QT_MAJOR installation found.
7667 enable_qt=false
7669 if test "$QT_MAJOR" -eq 4 -a "$QT_MINOR" -lt 4 ; then
7670 echo WARNING: Qt version 4.$QT_MINOR is too old.
7671 echo Qt version 4.4 or later is required for Qt builds.
7672 enable_qt=false
7676 if test "$do_qt" != "check" -a "$enable_qt" != "true"
7677 then
7678 as_fn_error $? "cannot enable Qt - no supported Qt installation found" "$LINENO" 5
7679 elif test "$enable_qt" = "true" -a "x$cxx" = "x"
7680 then
7681 enable_qt=false
7682 test "$do_qt" != "check" && \
7683 as_fn_error $? "C++ compiler unavailable, cannot build Qt components" "$LINENO" 5
7684 elif test "$do_qt" = "debug"
7685 then
7686 qt_release=debug
7687 enable_qt=true
7695 enable_qt3d=false
7696 if test "x$do_qt3d" != "xno"; then :
7698 if test -f /usr/include/Coin3/Inventor/Qt/SoQt.h
7699 then
7700 enable_qt3d=$enable_qt
7701 elif test -a "$do_qt3d" = "yes"
7702 then
7703 as_fn_error $? "cannot enable support for 3D scene graph API" "$LINENO" 5
7709 if test -z "$MAKE"
7710 then
7711 # Extract the first word of "gmake", so it can be a program name with args.
7712 set dummy gmake; ac_word=$2
7713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7714 $as_echo_n "checking for $ac_word... " >&6; }
7715 if ${ac_cv_path_MAKE+:} false; then :
7716 $as_echo_n "(cached) " >&6
7717 else
7718 case $MAKE in
7719 [\\/]* | ?:[\\/]*)
7720 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
7723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7724 for as_dir in $PATH
7726 IFS=$as_save_IFS
7727 test -z "$as_dir" && as_dir=.
7728 for ac_exec_ext in '' $ac_executable_extensions; do
7729 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7730 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
7731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7732 break 2
7734 done
7735 done
7736 IFS=$as_save_IFS
7739 esac
7741 MAKE=$ac_cv_path_MAKE
7742 if test -n "$MAKE"; then
7743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
7744 $as_echo "$MAKE" >&6; }
7745 else
7746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7747 $as_echo "no" >&6; }
7751 if test -z "$MAKE"
7752 then
7753 # look elsewhere ...
7754 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make elsewhere" >&5
7755 $as_echo_n "checking for GNU make elsewhere... " >&6; }
7756 for f in /usr/local/bin/gmake /usr/freeware/bin/gmake /usr/local/bin/make /opt/sfw/bin/gmake nowhere
7758 if test -x $f
7759 then
7760 MAKE=$f
7761 break
7763 done
7764 if test $f = nowhere
7765 then
7766 # Check if /usr/bin/make is any good
7767 mver=`/usr/bin/make --version 2>/dev/null | sed -n -e1p | cut -c1-8`
7768 if test "$mver" != "GNU Make"
7769 then
7770 echo
7771 echo "FATAL ERROR: could not find GNU make anywhere"
7772 echo "You need to set \$MAKE as the full path to GNU make "
7773 echo "in the environment."
7774 rm -rf conftest conftest.*
7775 exit 1
7776 else
7777 MAKE=/usr/bin/make
7780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
7781 $as_echo "$MAKE" >&6; }
7784 make=$MAKE
7787 if test -z "$CPP"; then
7788 ac_ext=c
7789 ac_cpp='$CPP $CPPFLAGS'
7790 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7791 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7792 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7793 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7794 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7795 # On Suns, sometimes $CPP names a directory.
7796 if test -n "$CPP" && test -d "$CPP"; then
7797 CPP=
7799 if test -z "$CPP"; then
7800 if ${ac_cv_prog_CPP+:} false; then :
7801 $as_echo_n "(cached) " >&6
7802 else
7803 # Double quotes because CPP needs to be expanded
7804 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7806 ac_preproc_ok=false
7807 for ac_c_preproc_warn_flag in '' yes
7809 # Use a header file that comes with gcc, so configuring glibc
7810 # with a fresh cross-compiler works.
7811 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7812 # <limits.h> exists even on freestanding compilers.
7813 # On the NeXT, cc -E runs the code through the compiler's parser,
7814 # not just through cpp. "Syntax error" is here to catch this case.
7815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7816 /* end confdefs.h. */
7817 #ifdef __STDC__
7818 # include <limits.h>
7819 #else
7820 # include <assert.h>
7821 #endif
7822 Syntax error
7823 _ACEOF
7824 if ac_fn_c_try_cpp "$LINENO"; then :
7826 else
7827 # Broken: fails on valid input.
7828 continue
7830 rm -f conftest.err conftest.i conftest.$ac_ext
7832 # OK, works on sane cases. Now check whether nonexistent headers
7833 # can be detected and how.
7834 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7835 /* end confdefs.h. */
7836 #include <ac_nonexistent.h>
7837 _ACEOF
7838 if ac_fn_c_try_cpp "$LINENO"; then :
7839 # Broken: success on invalid input.
7840 continue
7841 else
7842 # Passes both tests.
7843 ac_preproc_ok=:
7844 break
7846 rm -f conftest.err conftest.i conftest.$ac_ext
7848 done
7849 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7850 rm -f conftest.i conftest.err conftest.$ac_ext
7851 if $ac_preproc_ok; then :
7852 break
7855 done
7856 ac_cv_prog_CPP=$CPP
7859 CPP=$ac_cv_prog_CPP
7860 else
7861 ac_cv_prog_CPP=$CPP
7863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7864 $as_echo "$CPP" >&6; }
7865 ac_preproc_ok=false
7866 for ac_c_preproc_warn_flag in '' yes
7868 # Use a header file that comes with gcc, so configuring glibc
7869 # with a fresh cross-compiler works.
7870 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7871 # <limits.h> exists even on freestanding compilers.
7872 # On the NeXT, cc -E runs the code through the compiler's parser,
7873 # not just through cpp. "Syntax error" is here to catch this case.
7874 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7875 /* end confdefs.h. */
7876 #ifdef __STDC__
7877 # include <limits.h>
7878 #else
7879 # include <assert.h>
7880 #endif
7881 Syntax error
7882 _ACEOF
7883 if ac_fn_c_try_cpp "$LINENO"; then :
7885 else
7886 # Broken: fails on valid input.
7887 continue
7889 rm -f conftest.err conftest.i conftest.$ac_ext
7891 # OK, works on sane cases. Now check whether nonexistent headers
7892 # can be detected and how.
7893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7894 /* end confdefs.h. */
7895 #include <ac_nonexistent.h>
7896 _ACEOF
7897 if ac_fn_c_try_cpp "$LINENO"; then :
7898 # Broken: success on invalid input.
7899 continue
7900 else
7901 # Passes both tests.
7902 ac_preproc_ok=:
7903 break
7905 rm -f conftest.err conftest.i conftest.$ac_ext
7907 done
7908 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7909 rm -f conftest.i conftest.err conftest.$ac_ext
7910 if $ac_preproc_ok; then :
7912 else
7913 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7914 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7915 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7916 See \`config.log' for more details" "$LINENO" 5; }
7919 ac_ext=c
7920 ac_cpp='$CPP $CPPFLAGS'
7921 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7922 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7923 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7926 cpp=$CPP
7929 if test -z "$LD"; then
7930 # Extract the first word of "ld", so it can be a program name with args.
7931 set dummy ld; ac_word=$2
7932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7933 $as_echo_n "checking for $ac_word... " >&6; }
7934 if ${ac_cv_path_LD+:} false; then :
7935 $as_echo_n "(cached) " >&6
7936 else
7937 case $LD in
7938 [\\/]* | ?:[\\/]*)
7939 ac_cv_path_LD="$LD" # Let the user override the test with a path.
7942 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7943 for as_dir in $PATH
7945 IFS=$as_save_IFS
7946 test -z "$as_dir" && as_dir=.
7947 for ac_exec_ext in '' $ac_executable_extensions; do
7948 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7949 ac_cv_path_LD="$as_dir/$ac_word$ac_exec_ext"
7950 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7951 break 2
7953 done
7954 done
7955 IFS=$as_save_IFS
7957 test -z "$ac_cv_path_LD" && ac_cv_path_LD="/usr/bin/ld"
7959 esac
7961 LD=$ac_cv_path_LD
7962 if test -n "$LD"; then
7963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7964 $as_echo "$LD" >&6; }
7965 else
7966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7967 $as_echo "no" >&6; }
7972 ld=$LD
7975 if test -z "$PCP_USER_INSTALL" ; then
7976 pcp_user_install=root
7977 else
7978 pcp_user_install="$PCP_USER_INSTALL"
7981 if test -z "$PCP_GROUP_INSTALL" ; then
7982 case "$target_os"
7984 darwin|freebsd|netbsd|openbsd)
7985 pcp_group_install=wheel
7988 pcp_group_install=root
7990 esac
7991 else
7992 pcp_group_install="$PCP_GROUP_INSTALL"
7996 if test -z "$TAR"; then
7997 for ac_prog in gtar tar
7999 # Extract the first word of "$ac_prog", so it can be a program name with args.
8000 set dummy $ac_prog; ac_word=$2
8001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8002 $as_echo_n "checking for $ac_word... " >&6; }
8003 if ${ac_cv_path_TAR+:} false; then :
8004 $as_echo_n "(cached) " >&6
8005 else
8006 case $TAR in
8007 [\\/]* | ?:[\\/]*)
8008 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
8011 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8012 for as_dir in $PATH
8014 IFS=$as_save_IFS
8015 test -z "$as_dir" && as_dir=.
8016 for ac_exec_ext in '' $ac_executable_extensions; do
8017 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8018 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
8019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8020 break 2
8022 done
8023 done
8024 IFS=$as_save_IFS
8027 esac
8029 TAR=$ac_cv_path_TAR
8030 if test -n "$TAR"; then
8031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
8032 $as_echo "$TAR" >&6; }
8033 else
8034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8035 $as_echo "no" >&6; }
8039 test -n "$TAR" && break
8040 done
8041 test -n "$TAR" || TAR="tar"
8044 if test $target_os = darwin -a -x /usr/bin/gnutar
8045 then
8046 TAR=/usr/bin/gnutar
8048 tar=$TAR
8051 if test -z "$ZIP"; then
8052 # Extract the first word of "gzip", so it can be a program name with args.
8053 set dummy gzip; ac_word=$2
8054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8055 $as_echo_n "checking for $ac_word... " >&6; }
8056 if ${ac_cv_path_ZIP+:} false; then :
8057 $as_echo_n "(cached) " >&6
8058 else
8059 case $ZIP in
8060 [\\/]* | ?:[\\/]*)
8061 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8064 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8065 for as_dir in $PATH
8067 IFS=$as_save_IFS
8068 test -z "$as_dir" && as_dir=.
8069 for ac_exec_ext in '' $ac_executable_extensions; do
8070 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8071 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8072 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8073 break 2
8075 done
8076 done
8077 IFS=$as_save_IFS
8079 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="/bin/gzip"
8081 esac
8083 ZIP=$ac_cv_path_ZIP
8084 if test -n "$ZIP"; then
8085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
8086 $as_echo "$ZIP" >&6; }
8087 else
8088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8089 $as_echo "no" >&6; }
8094 test ! -x "$ZIP" && ZIP=/usr/local/bin/gzip
8095 test ! -x "$ZIP" && ZIP=/usr/freeware/bin/gzip
8096 test ! -x "$ZIP" && ZIP=/usr/bin/gzip
8097 gzip=$ZIP
8098 test -z "$gzip" && gzip=no-gzip
8101 if test -z "$BZIP2"; then
8102 # Extract the first word of "bzip2", so it can be a program name with args.
8103 set dummy bzip2; ac_word=$2
8104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8105 $as_echo_n "checking for $ac_word... " >&6; }
8106 if ${ac_cv_path_BZIP2+:} false; then :
8107 $as_echo_n "(cached) " >&6
8108 else
8109 case $BZIP2 in
8110 [\\/]* | ?:[\\/]*)
8111 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
8114 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8115 for as_dir in $PATH
8117 IFS=$as_save_IFS
8118 test -z "$as_dir" && as_dir=.
8119 for ac_exec_ext in '' $ac_executable_extensions; do
8120 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8121 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
8122 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8123 break 2
8125 done
8126 done
8127 IFS=$as_save_IFS
8129 test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="/bin/bzip2"
8131 esac
8133 BZIP2=$ac_cv_path_BZIP2
8134 if test -n "$BZIP2"; then
8135 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIP2" >&5
8136 $as_echo "$BZIP2" >&6; }
8137 else
8138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8139 $as_echo "no" >&6; }
8144 test ! -x "$BZIP2" && BZIP2=/usr/bin/bzip2
8145 test ! -x "$BZIP2" && BZIP2=/usr/local/bin/bzip2
8146 test ! -x "$BZIP2" && BZIP2=/usr/freeware/bin/bzip2
8147 bzip2=$BZIP2
8148 test -z "$bzip2" && bzip2=no-bzip2
8151 if test -z "$LZMA"; then
8152 # Extract the first word of "lzma", so it can be a program name with args.
8153 set dummy lzma; ac_word=$2
8154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8155 $as_echo_n "checking for $ac_word... " >&6; }
8156 if ${ac_cv_path_LZMA+:} false; then :
8157 $as_echo_n "(cached) " >&6
8158 else
8159 case $LZMA in
8160 [\\/]* | ?:[\\/]*)
8161 ac_cv_path_LZMA="$LZMA" # Let the user override the test with a path.
8164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8165 for as_dir in $PATH
8167 IFS=$as_save_IFS
8168 test -z "$as_dir" && as_dir=.
8169 for ac_exec_ext in '' $ac_executable_extensions; do
8170 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8171 ac_cv_path_LZMA="$as_dir/$ac_word$ac_exec_ext"
8172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8173 break 2
8175 done
8176 done
8177 IFS=$as_save_IFS
8179 test -z "$ac_cv_path_LZMA" && ac_cv_path_LZMA="/bin/lzma"
8181 esac
8183 LZMA=$ac_cv_path_LZMA
8184 if test -n "$LZMA"; then
8185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZMA" >&5
8186 $as_echo "$LZMA" >&6; }
8187 else
8188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8189 $as_echo "no" >&6; }
8194 test ! -x "$LZMA" && LZMA=/usr/bin/lzma
8195 test ! -x "$LZMA" && LZMA=/usr/local/bin/lzma
8196 test ! -x "$LZMA" && LZMA=/usr/freeware/bin/lzma
8197 lzma=$LZMA
8198 test -z "$lzma" && lzma=no-lzma
8201 if test -z "$XZ"; then
8202 # Extract the first word of "xz", so it can be a program name with args.
8203 set dummy xz; ac_word=$2
8204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8205 $as_echo_n "checking for $ac_word... " >&6; }
8206 if ${ac_cv_path_XZ+:} false; then :
8207 $as_echo_n "(cached) " >&6
8208 else
8209 case $XZ in
8210 [\\/]* | ?:[\\/]*)
8211 ac_cv_path_XZ="$XZ" # Let the user override the test with a path.
8214 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8215 for as_dir in $PATH
8217 IFS=$as_save_IFS
8218 test -z "$as_dir" && as_dir=.
8219 for ac_exec_ext in '' $ac_executable_extensions; do
8220 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8221 ac_cv_path_XZ="$as_dir/$ac_word$ac_exec_ext"
8222 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8223 break 2
8225 done
8226 done
8227 IFS=$as_save_IFS
8229 test -z "$ac_cv_path_XZ" && ac_cv_path_XZ="/bin/xz"
8231 esac
8233 XZ=$ac_cv_path_XZ
8234 if test -n "$XZ"; then
8235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XZ" >&5
8236 $as_echo "$XZ" >&6; }
8237 else
8238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8239 $as_echo "no" >&6; }
8244 test ! -x "$XZ" && XZ=/usr/bin/xz
8245 test ! -x "$XZ" && XZ=/usr/local/bin/xz
8246 test ! -x "$XZ" && XZ=/usr/freeware/bin/xz
8247 xz=$XZ
8248 test -z "$xz" && xz=no-xz
8251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PackageMaker" >&5
8252 $as_echo_n "checking for PackageMaker... " >&6; }
8253 if test -z "$PACKAGE_MAKER"
8254 then
8255 if test $target_os = darwin
8256 then
8257 if test -x /Applications/PackageMaker.app/Contents/MacOS/PackageMaker
8258 then # local XCode extras install
8259 package_maker=/Applications/PackageMaker.app/Contents/MacOS/PackageMaker
8260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (local install)" >&5
8261 $as_echo " yes (local install)" >&6; }
8262 elif test -x /Developer/Applications/PackageMaker.app/Contents/MacOS/PackageMaker
8263 then # Darwin 6.x
8264 package_maker=/Developer/Applications/PackageMaker.app/Contents/MacOS/PackageMaker
8265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (darwin 6.x)" >&5
8266 $as_echo " yes (darwin 6.x)" >&6; }
8267 elif test -x /Developer/Applications/Utilities/PackageMaker.app/Contents/MacOS/PackageMaker
8268 then # Darwin 7.x
8269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (darwin 7.x)" >&5
8270 $as_echo " yes (darwin 7.x)" >&6; }
8271 package_maker=/Developer/Applications/Utilities/PackageMaker.app/Contents/MacOS/PackageMaker
8272 else
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
8274 $as_echo " not found!" >&6; }
8275 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PackageMaker not found, mac packages will not be made" >&5
8276 $as_echo "$as_me: WARNING: PackageMaker not found, mac packages will not be made" >&2;}
8278 else
8279 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8280 $as_echo " no" >&6; }
8282 else
8283 package_maker="$PACKAGE_MAKER"
8287 if test -z "$HDIUTIL"; then
8288 # Extract the first word of "hdiutil", so it can be a program name with args.
8289 set dummy hdiutil; ac_word=$2
8290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8291 $as_echo_n "checking for $ac_word... " >&6; }
8292 if ${ac_cv_path_HDIUTIL+:} false; then :
8293 $as_echo_n "(cached) " >&6
8294 else
8295 case $HDIUTIL in
8296 [\\/]* | ?:[\\/]*)
8297 ac_cv_path_HDIUTIL="$HDIUTIL" # Let the user override the test with a path.
8300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8301 for as_dir in $PATH
8303 IFS=$as_save_IFS
8304 test -z "$as_dir" && as_dir=.
8305 for ac_exec_ext in '' $ac_executable_extensions; do
8306 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8307 ac_cv_path_HDIUTIL="$as_dir/$ac_word$ac_exec_ext"
8308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8309 break 2
8311 done
8312 done
8313 IFS=$as_save_IFS
8316 esac
8318 HDIUTIL=$ac_cv_path_HDIUTIL
8319 if test -n "$HDIUTIL"; then
8320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HDIUTIL" >&5
8321 $as_echo "$HDIUTIL" >&6; }
8322 else
8323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8324 $as_echo "no" >&6; }
8329 hdiutil=$HDIUTIL
8332 if test -z "$MKINSTALLP"; then
8333 # Extract the first word of "mkinstallp", so it can be a program name with args.
8334 set dummy mkinstallp; ac_word=$2
8335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8336 $as_echo_n "checking for $ac_word... " >&6; }
8337 if ${ac_cv_path_MKINSTALLP+:} false; then :
8338 $as_echo_n "(cached) " >&6
8339 else
8340 case $MKINSTALLP in
8341 [\\/]* | ?:[\\/]*)
8342 ac_cv_path_MKINSTALLP="$MKINSTALLP" # Let the user override the test with a path.
8345 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8346 for as_dir in $PATH
8348 IFS=$as_save_IFS
8349 test -z "$as_dir" && as_dir=.
8350 for ac_exec_ext in '' $ac_executable_extensions; do
8351 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8352 ac_cv_path_MKINSTALLP="$as_dir/$ac_word$ac_exec_ext"
8353 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8354 break 2
8356 done
8357 done
8358 IFS=$as_save_IFS
8361 esac
8363 MKINSTALLP=$ac_cv_path_MKINSTALLP
8364 if test -n "$MKINSTALLP"; then
8365 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKINSTALLP" >&5
8366 $as_echo "$MKINSTALLP" >&6; }
8367 else
8368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8369 $as_echo "no" >&6; }
8374 mkinstallp=$MKINSTALLP
8377 if test -z "$PKGMK"; then
8378 # Extract the first word of "pkgmk", so it can be a program name with args.
8379 set dummy pkgmk; ac_word=$2
8380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8381 $as_echo_n "checking for $ac_word... " >&6; }
8382 if ${ac_cv_path_PKGMK+:} false; then :
8383 $as_echo_n "(cached) " >&6
8384 else
8385 case $PKGMK in
8386 [\\/]* | ?:[\\/]*)
8387 ac_cv_path_PKGMK="$PKGMK" # Let the user override the test with a path.
8390 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8391 for as_dir in $PATH
8393 IFS=$as_save_IFS
8394 test -z "$as_dir" && as_dir=.
8395 for ac_exec_ext in '' $ac_executable_extensions; do
8396 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8397 ac_cv_path_PKGMK="$as_dir/$ac_word$ac_exec_ext"
8398 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8399 break 2
8401 done
8402 done
8403 IFS=$as_save_IFS
8406 esac
8408 PKGMK=$ac_cv_path_PKGMK
8409 if test -n "$PKGMK"; then
8410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGMK" >&5
8411 $as_echo "$PKGMK" >&6; }
8412 else
8413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8414 $as_echo "no" >&6; }
8419 pkgmk=$PKGMK
8422 if test -z "$DLLTOOL"; then
8423 # Extract the first word of "dlltool", so it can be a program name with args.
8424 set dummy dlltool; ac_word=$2
8425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8426 $as_echo_n "checking for $ac_word... " >&6; }
8427 if ${ac_cv_path_DLLTOOL+:} false; then :
8428 $as_echo_n "(cached) " >&6
8429 else
8430 case $DLLTOOL in
8431 [\\/]* | ?:[\\/]*)
8432 ac_cv_path_DLLTOOL="$DLLTOOL" # Let the user override the test with a path.
8435 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8436 for as_dir in $PATH
8438 IFS=$as_save_IFS
8439 test -z "$as_dir" && as_dir=.
8440 for ac_exec_ext in '' $ac_executable_extensions; do
8441 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8442 ac_cv_path_DLLTOOL="$as_dir/$ac_word$ac_exec_ext"
8443 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8444 break 2
8446 done
8447 done
8448 IFS=$as_save_IFS
8451 esac
8453 DLLTOOL=$ac_cv_path_DLLTOOL
8454 if test -n "$DLLTOOL"; then
8455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8456 $as_echo "$DLLTOOL" >&6; }
8457 else
8458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8459 $as_echo "no" >&6; }
8464 dlltool=$DLLTOOL
8467 if test -z "$RPMBUILD"; then
8468 # Extract the first word of "rpmbuild", so it can be a program name with args.
8469 set dummy rpmbuild; ac_word=$2
8470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8471 $as_echo_n "checking for $ac_word... " >&6; }
8472 if ${ac_cv_path_RPMBUILD+:} false; then :
8473 $as_echo_n "(cached) " >&6
8474 else
8475 case $RPMBUILD in
8476 [\\/]* | ?:[\\/]*)
8477 ac_cv_path_RPMBUILD="$RPMBUILD" # Let the user override the test with a path.
8480 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8481 for as_dir in $PATH
8483 IFS=$as_save_IFS
8484 test -z "$as_dir" && as_dir=.
8485 for ac_exec_ext in '' $ac_executable_extensions; do
8486 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8487 ac_cv_path_RPMBUILD="$as_dir/$ac_word$ac_exec_ext"
8488 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8489 break 2
8491 done
8492 done
8493 IFS=$as_save_IFS
8496 esac
8498 RPMBUILD=$ac_cv_path_RPMBUILD
8499 if test -n "$RPMBUILD"; then
8500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPMBUILD" >&5
8501 $as_echo "$RPMBUILD" >&6; }
8502 else
8503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8504 $as_echo "no" >&6; }
8509 test $target_distro = slackware && RPMBUILD=''
8510 rpmbuild=$RPMBUILD
8513 if test -z "$RPM"; then
8514 # Extract the first word of "rpm", so it can be a program name with args.
8515 set dummy rpm; ac_word=$2
8516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8517 $as_echo_n "checking for $ac_word... " >&6; }
8518 if ${ac_cv_path_RPM+:} false; then :
8519 $as_echo_n "(cached) " >&6
8520 else
8521 case $RPM in
8522 [\\/]* | ?:[\\/]*)
8523 ac_cv_path_RPM="$RPM" # Let the user override the test with a path.
8526 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8527 for as_dir in $PATH
8529 IFS=$as_save_IFS
8530 test -z "$as_dir" && as_dir=.
8531 for ac_exec_ext in '' $ac_executable_extensions; do
8532 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8533 ac_cv_path_RPM="$as_dir/$ac_word$ac_exec_ext"
8534 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8535 break 2
8537 done
8538 done
8539 IFS=$as_save_IFS
8542 esac
8544 RPM=$ac_cv_path_RPM
8545 if test -n "$RPM"; then
8546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
8547 $as_echo "$RPM" >&6; }
8548 else
8549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8550 $as_echo "no" >&6; }
8555 test $target_distro = slackware && RPM=''
8556 rpm=$RPM
8559 if test -n "$RPMBUILD" -a -x "$RPMBUILD"
8560 then
8561 rpmprog=$RPMBUILD
8562 else
8563 rpmprog=$RPM
8567 if test -z "$POD2MAN"; then
8568 # Extract the first word of "pod2man", so it can be a program name with args.
8569 set dummy pod2man; ac_word=$2
8570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8571 $as_echo_n "checking for $ac_word... " >&6; }
8572 if ${ac_cv_path_POD2MAN+:} false; then :
8573 $as_echo_n "(cached) " >&6
8574 else
8575 case $POD2MAN in
8576 [\\/]* | ?:[\\/]*)
8577 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8581 for as_dir in $PATH
8583 IFS=$as_save_IFS
8584 test -z "$as_dir" && as_dir=.
8585 for ac_exec_ext in '' $ac_executable_extensions; do
8586 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8587 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
8588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8589 break 2
8591 done
8592 done
8593 IFS=$as_save_IFS
8596 esac
8598 POD2MAN=$ac_cv_path_POD2MAN
8599 if test -n "$POD2MAN"; then
8600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POD2MAN" >&5
8601 $as_echo "$POD2MAN" >&6; }
8602 else
8603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8604 $as_echo "no" >&6; }
8609 pod2man=$POD2MAN
8612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ExtUtils::MakeMaker is installed" >&5
8613 $as_echo_n "checking if ExtUtils::MakeMaker is installed... " >&6; }
8614 perl -e "use ExtUtils::MakeMaker" 2>/dev/null
8615 if test $? -eq 0
8616 then
8617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8618 $as_echo " yes" >&6; }
8619 else
8620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8621 $as_echo " no" >&6; }
8622 echo
8623 echo "FATAL ERROR: Perl ExtUtils::MakeMaker module missing."
8624 echo "You can either install this from your distribution, or"
8625 echo "download from CPAN (Comprehensive Perl Archive Network)."
8626 rm -rf conftest conftest.*
8627 exit 1
8630 # Extract the first word of "true", so it can be a program name with args.
8631 set dummy true; ac_word=$2
8632 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8633 $as_echo_n "checking for $ac_word... " >&6; }
8634 if ${ac_cv_path_TRUEPROG+:} false; then :
8635 $as_echo_n "(cached) " >&6
8636 else
8637 case $TRUEPROG in
8638 [\\/]* | ?:[\\/]*)
8639 ac_cv_path_TRUEPROG="$TRUEPROG" # Let the user override the test with a path.
8642 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8643 for as_dir in $PATH
8645 IFS=$as_save_IFS
8646 test -z "$as_dir" && as_dir=.
8647 for ac_exec_ext in '' $ac_executable_extensions; do
8648 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8649 ac_cv_path_TRUEPROG="$as_dir/$ac_word$ac_exec_ext"
8650 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8651 break 2
8653 done
8654 done
8655 IFS=$as_save_IFS
8658 esac
8660 TRUEPROG=$ac_cv_path_TRUEPROG
8661 if test -n "$TRUEPROG"; then
8662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUEPROG" >&5
8663 $as_echo "$TRUEPROG" >&6; }
8664 else
8665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8666 $as_echo "no" >&6; }
8671 if test -z "$MAKEDEPEND"; then
8672 # Extract the first word of "makedepend", so it can be a program name with args.
8673 set dummy makedepend; ac_word=$2
8674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8675 $as_echo_n "checking for $ac_word... " >&6; }
8676 if ${ac_cv_path_MAKEDEPEND+:} false; then :
8677 $as_echo_n "(cached) " >&6
8678 else
8679 case $MAKEDEPEND in
8680 [\\/]* | ?:[\\/]*)
8681 ac_cv_path_MAKEDEPEND="$MAKEDEPEND" # Let the user override the test with a path.
8684 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8685 for as_dir in $PATH
8687 IFS=$as_save_IFS
8688 test -z "$as_dir" && as_dir=.
8689 for ac_exec_ext in '' $ac_executable_extensions; do
8690 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8691 ac_cv_path_MAKEDEPEND="$as_dir/$ac_word$ac_exec_ext"
8692 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8693 break 2
8695 done
8696 done
8697 IFS=$as_save_IFS
8699 test -z "$ac_cv_path_MAKEDEPEND" && ac_cv_path_MAKEDEPEND="$TRUEPROG"
8701 esac
8703 MAKEDEPEND=$ac_cv_path_MAKEDEPEND
8704 if test -n "$MAKEDEPEND"; then
8705 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEDEPEND" >&5
8706 $as_echo "$MAKEDEPEND" >&6; }
8707 else
8708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8709 $as_echo "no" >&6; }
8714 makedepend=$MAKEDEPEND
8717 if test -z "$MD5SUM"; then
8718 # Extract the first word of "md5sum", so it can be a program name with args.
8719 set dummy md5sum; ac_word=$2
8720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8721 $as_echo_n "checking for $ac_word... " >&6; }
8722 if ${ac_cv_path_MD5SUM+:} false; then :
8723 $as_echo_n "(cached) " >&6
8724 else
8725 case $MD5SUM in
8726 [\\/]* | ?:[\\/]*)
8727 ac_cv_path_MD5SUM="$MD5SUM" # Let the user override the test with a path.
8730 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8731 for as_dir in $PATH
8733 IFS=$as_save_IFS
8734 test -z "$as_dir" && as_dir=.
8735 for ac_exec_ext in '' $ac_executable_extensions; do
8736 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8737 ac_cv_path_MD5SUM="$as_dir/$ac_word$ac_exec_ext"
8738 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8739 break 2
8741 done
8742 done
8743 IFS=$as_save_IFS
8745 test -z "$ac_cv_path_MD5SUM" && ac_cv_path_MD5SUM="$TRUEPROG"
8747 esac
8749 MD5SUM=$ac_cv_path_MD5SUM
8750 if test -n "$MD5SUM"; then
8751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MD5SUM" >&5
8752 $as_echo "$MD5SUM" >&6; }
8753 else
8754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8755 $as_echo "no" >&6; }
8760 md5sum=$MD5SUM
8763 if test -z "$DPKG"; then
8764 # Extract the first word of "dpkg", so it can be a program name with args.
8765 set dummy dpkg; ac_word=$2
8766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8767 $as_echo_n "checking for $ac_word... " >&6; }
8768 if ${ac_cv_path_DPKG+:} false; then :
8769 $as_echo_n "(cached) " >&6
8770 else
8771 case $DPKG in
8772 [\\/]* | ?:[\\/]*)
8773 ac_cv_path_DPKG="$DPKG" # Let the user override the test with a path.
8776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8777 for as_dir in $PATH
8779 IFS=$as_save_IFS
8780 test -z "$as_dir" && as_dir=.
8781 for ac_exec_ext in '' $ac_executable_extensions; do
8782 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8783 ac_cv_path_DPKG="$as_dir/$ac_word$ac_exec_ext"
8784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8785 break 2
8787 done
8788 done
8789 IFS=$as_save_IFS
8792 esac
8794 DPKG=$ac_cv_path_DPKG
8795 if test -n "$DPKG"; then
8796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DPKG" >&5
8797 $as_echo "$DPKG" >&6; }
8798 else
8799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8800 $as_echo "no" >&6; }
8805 dpkg=$DKPG
8808 if test -z "$MAKEPKG"; then
8809 # Extract the first word of "makepkg", so it can be a program name with args.
8810 set dummy makepkg; ac_word=$2
8811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8812 $as_echo_n "checking for $ac_word... " >&6; }
8813 if ${ac_cv_path_MAKEPKG+:} false; then :
8814 $as_echo_n "(cached) " >&6
8815 else
8816 case $MAKEPKG in
8817 [\\/]* | ?:[\\/]*)
8818 ac_cv_path_MAKEPKG="$MAKEPKG" # Let the user override the test with a path.
8821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8822 for as_dir in $PATH
8824 IFS=$as_save_IFS
8825 test -z "$as_dir" && as_dir=.
8826 for ac_exec_ext in '' $ac_executable_extensions; do
8827 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8828 ac_cv_path_MAKEPKG="$as_dir/$ac_word$ac_exec_ext"
8829 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8830 break 2
8832 done
8833 done
8834 IFS=$as_save_IFS
8837 esac
8839 MAKEPKG=$ac_cv_path_MAKEPKG
8840 if test -n "$MAKEPKG"; then
8841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEPKG" >&5
8842 $as_echo "$MAKEPKG" >&6; }
8843 else
8844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8845 $as_echo "no" >&6; }
8850 makepkg=$MAKEPKG
8853 test -z "$PUBLICAN" && # Extract the first word of "publican", so it can be a program name with args.
8854 set dummy publican; ac_word=$2
8855 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8856 $as_echo_n "checking for $ac_word... " >&6; }
8857 if ${ac_cv_path_PUBLICAN+:} false; then :
8858 $as_echo_n "(cached) " >&6
8859 else
8860 case $PUBLICAN in
8861 [\\/]* | ?:[\\/]*)
8862 ac_cv_path_PUBLICAN="$PUBLICAN" # Let the user override the test with a path.
8865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8866 for as_dir in $PATH
8868 IFS=$as_save_IFS
8869 test -z "$as_dir" && as_dir=.
8870 for ac_exec_ext in '' $ac_executable_extensions; do
8871 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8872 ac_cv_path_PUBLICAN="$as_dir/$ac_word$ac_exec_ext"
8873 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8874 break 2
8876 done
8877 done
8878 IFS=$as_save_IFS
8881 esac
8883 PUBLICAN=$ac_cv_path_PUBLICAN
8884 if test -n "$PUBLICAN"; then
8885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PUBLICAN" >&5
8886 $as_echo "$PUBLICAN" >&6; }
8887 else
8888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8889 $as_echo "no" >&6; }
8893 publican=$PUBLICAN
8895 test -z "$DBLATEX" && # Extract the first word of "dblatex", so it can be a program name with args.
8896 set dummy dblatex; ac_word=$2
8897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8898 $as_echo_n "checking for $ac_word... " >&6; }
8899 if ${ac_cv_path_DBLATEX+:} false; then :
8900 $as_echo_n "(cached) " >&6
8901 else
8902 case $DBLATEX in
8903 [\\/]* | ?:[\\/]*)
8904 ac_cv_path_DBLATEX="$DBLATEX" # Let the user override the test with a path.
8907 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8908 for as_dir in $PATH
8910 IFS=$as_save_IFS
8911 test -z "$as_dir" && as_dir=.
8912 for ac_exec_ext in '' $ac_executable_extensions; do
8913 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8914 ac_cv_path_DBLATEX="$as_dir/$ac_word$ac_exec_ext"
8915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8916 break 2
8918 done
8919 done
8920 IFS=$as_save_IFS
8923 esac
8925 DBLATEX=$ac_cv_path_DBLATEX
8926 if test -n "$DBLATEX"; then
8927 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBLATEX" >&5
8928 $as_echo "$DBLATEX" >&6; }
8929 else
8930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8931 $as_echo "no" >&6; }
8935 dblatex=$DBLATEX
8937 test -z "$XMLTO" && # Extract the first word of "xmlto", so it can be a program name with args.
8938 set dummy xmlto; ac_word=$2
8939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8940 $as_echo_n "checking for $ac_word... " >&6; }
8941 if ${ac_cv_path_XMLTO+:} false; then :
8942 $as_echo_n "(cached) " >&6
8943 else
8944 case $XMLTO in
8945 [\\/]* | ?:[\\/]*)
8946 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
8949 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8950 for as_dir in $PATH
8952 IFS=$as_save_IFS
8953 test -z "$as_dir" && as_dir=.
8954 for ac_exec_ext in '' $ac_executable_extensions; do
8955 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8956 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
8957 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8958 break 2
8960 done
8961 done
8962 IFS=$as_save_IFS
8965 esac
8967 XMLTO=$ac_cv_path_XMLTO
8968 if test -n "$XMLTO"; then
8969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
8970 $as_echo "$XMLTO" >&6; }
8971 else
8972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8973 $as_echo "no" >&6; }
8977 xmlto=$XMLTO
8980 book_toolchain=""
8981 if test "$do_books" = "check" -o "$do_books" = "yes"
8982 then
8983 if test "$BOOK_TOOLCHAIN" != ""
8984 then
8985 book_toolchain=$BOOK_TOOLCHAIN
8986 elif test "$DBLATEX" != ""
8987 then
8988 book_toolchain=dblatex
8989 elif test "$PUBLICAN" != ""
8990 then
8991 book_toolchain=publican
8992 elif test "$XMLTO" != ""
8993 then
8994 book_toolchain=xmlto
8995 elif test "$do_books" = "yes"
8996 then
8997 as_fn_error $? "cannot enable books build - no toolchain found" "$LINENO" 5
9002 book_brand="common"
9003 if test "$do_books_brand" != ""
9004 then
9005 book_brand=$do_books_brand
9009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
9010 $as_echo_n "checking whether ln -s works... " >&6; }
9011 LN_S=$as_ln_s
9012 if test "$LN_S" = "ln -s"; then
9013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9014 $as_echo "yes" >&6; }
9015 else
9016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
9017 $as_echo "no, using $LN_S" >&6; }
9020 if test $target_os = mingw; then
9021 as_ln_s=/bin/true
9024 if test -d /proc
9025 then
9026 test -f /proc/stat || mount /proc >/dev/null 2>&1
9029 if test -n "$PROCPS"
9030 then
9031 pcp_ps_prog="$PROCPS"
9032 else
9033 pcp_ps_prog=ps
9037 if test $target_os = mingw
9038 then
9039 pcp_syslog_prog=pcp-eventlog
9040 else
9041 pcp_syslog_prog=logger
9045 grep=grep
9046 if test $target_os = solaris
9047 then
9048 test -f /usr/xpg4/bin/grep && grep=/usr/xpg4/bin/grep
9052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc " >&5
9053 $as_echo_n "checking for /proc ... " >&6; }
9054 if test "$cross_compiling" = "yes"; then
9055 ans=$have_procfs
9056 echo "cross-compile -> \"$ans\"" >&5
9057 elif test -d /proc
9058 then
9059 have_procfs=true
9060 else
9061 have_procfs=false
9063 if $have_procfs
9064 then
9065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9066 $as_echo "yes" >&6; }
9068 $as_echo "#define HAVE_PROCFS 1" >>confdefs.h
9070 else
9071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9072 $as_echo "no" >&6; }
9075 ac_header_dirent=no
9076 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9077 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9078 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
9079 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
9080 if eval \${$as_ac_Header+:} false; then :
9081 $as_echo_n "(cached) " >&6
9082 else
9083 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9084 /* end confdefs.h. */
9085 #include <sys/types.h>
9086 #include <$ac_hdr>
9089 main ()
9091 if ((DIR *) 0)
9092 return 0;
9094 return 0;
9096 _ACEOF
9097 if ac_fn_c_try_compile "$LINENO"; then :
9098 eval "$as_ac_Header=yes"
9099 else
9100 eval "$as_ac_Header=no"
9102 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9104 eval ac_res=\$$as_ac_Header
9105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9106 $as_echo "$ac_res" >&6; }
9107 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9108 cat >>confdefs.h <<_ACEOF
9109 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9110 _ACEOF
9112 ac_header_dirent=$ac_hdr; break
9115 done
9116 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9117 if test $ac_header_dirent = dirent.h; then
9118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
9119 $as_echo_n "checking for library containing opendir... " >&6; }
9120 if ${ac_cv_search_opendir+:} false; then :
9121 $as_echo_n "(cached) " >&6
9122 else
9123 ac_func_search_save_LIBS=$LIBS
9124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9125 /* end confdefs.h. */
9127 /* Override any GCC internal prototype to avoid an error.
9128 Use char because int might match the return type of a GCC
9129 builtin and then its argument prototype would still apply. */
9130 #ifdef __cplusplus
9131 extern "C"
9132 #endif
9133 char opendir ();
9135 main ()
9137 return opendir ();
9139 return 0;
9141 _ACEOF
9142 for ac_lib in '' dir; do
9143 if test -z "$ac_lib"; then
9144 ac_res="none required"
9145 else
9146 ac_res=-l$ac_lib
9147 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9149 if ac_fn_c_try_link "$LINENO"; then :
9150 ac_cv_search_opendir=$ac_res
9152 rm -f core conftest.err conftest.$ac_objext \
9153 conftest$ac_exeext
9154 if ${ac_cv_search_opendir+:} false; then :
9155 break
9157 done
9158 if ${ac_cv_search_opendir+:} false; then :
9160 else
9161 ac_cv_search_opendir=no
9163 rm conftest.$ac_ext
9164 LIBS=$ac_func_search_save_LIBS
9166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
9167 $as_echo "$ac_cv_search_opendir" >&6; }
9168 ac_res=$ac_cv_search_opendir
9169 if test "$ac_res" != no; then :
9170 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9174 else
9175 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
9176 $as_echo_n "checking for library containing opendir... " >&6; }
9177 if ${ac_cv_search_opendir+:} false; then :
9178 $as_echo_n "(cached) " >&6
9179 else
9180 ac_func_search_save_LIBS=$LIBS
9181 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9182 /* end confdefs.h. */
9184 /* Override any GCC internal prototype to avoid an error.
9185 Use char because int might match the return type of a GCC
9186 builtin and then its argument prototype would still apply. */
9187 #ifdef __cplusplus
9188 extern "C"
9189 #endif
9190 char opendir ();
9192 main ()
9194 return opendir ();
9196 return 0;
9198 _ACEOF
9199 for ac_lib in '' x; do
9200 if test -z "$ac_lib"; then
9201 ac_res="none required"
9202 else
9203 ac_res=-l$ac_lib
9204 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9206 if ac_fn_c_try_link "$LINENO"; then :
9207 ac_cv_search_opendir=$ac_res
9209 rm -f core conftest.err conftest.$ac_objext \
9210 conftest$ac_exeext
9211 if ${ac_cv_search_opendir+:} false; then :
9212 break
9214 done
9215 if ${ac_cv_search_opendir+:} false; then :
9217 else
9218 ac_cv_search_opendir=no
9220 rm conftest.$ac_ext
9221 LIBS=$ac_func_search_save_LIBS
9223 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
9224 $as_echo "$ac_cv_search_opendir" >&6; }
9225 ac_res=$ac_cv_search_opendir
9226 if test "$ac_res" != no; then :
9227 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9234 $as_echo_n "checking for ANSI C header files... " >&6; }
9235 if ${ac_cv_header_stdc+:} false; then :
9236 $as_echo_n "(cached) " >&6
9237 else
9238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9239 /* end confdefs.h. */
9240 #include <stdlib.h>
9241 #include <stdarg.h>
9242 #include <string.h>
9243 #include <float.h>
9246 main ()
9250 return 0;
9252 _ACEOF
9253 if ac_fn_c_try_compile "$LINENO"; then :
9254 ac_cv_header_stdc=yes
9255 else
9256 ac_cv_header_stdc=no
9258 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9260 if test $ac_cv_header_stdc = yes; then
9261 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9262 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9263 /* end confdefs.h. */
9264 #include <string.h>
9266 _ACEOF
9267 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9268 $EGREP "memchr" >/dev/null 2>&1; then :
9270 else
9271 ac_cv_header_stdc=no
9273 rm -f conftest*
9277 if test $ac_cv_header_stdc = yes; then
9278 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9280 /* end confdefs.h. */
9281 #include <stdlib.h>
9283 _ACEOF
9284 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9285 $EGREP "free" >/dev/null 2>&1; then :
9287 else
9288 ac_cv_header_stdc=no
9290 rm -f conftest*
9294 if test $ac_cv_header_stdc = yes; then
9295 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9296 if test "$cross_compiling" = yes; then :
9298 else
9299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9300 /* end confdefs.h. */
9301 #include <ctype.h>
9302 #include <stdlib.h>
9303 #if ((' ' & 0x0FF) == 0x020)
9304 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9305 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9306 #else
9307 # define ISLOWER(c) \
9308 (('a' <= (c) && (c) <= 'i') \
9309 || ('j' <= (c) && (c) <= 'r') \
9310 || ('s' <= (c) && (c) <= 'z'))
9311 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9312 #endif
9314 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9316 main ()
9318 int i;
9319 for (i = 0; i < 256; i++)
9320 if (XOR (islower (i), ISLOWER (i))
9321 || toupper (i) != TOUPPER (i))
9322 return 2;
9323 return 0;
9325 _ACEOF
9326 if ac_fn_c_try_run "$LINENO"; then :
9328 else
9329 ac_cv_header_stdc=no
9331 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9332 conftest.$ac_objext conftest.beam conftest.$ac_ext
9337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9338 $as_echo "$ac_cv_header_stdc" >&6; }
9339 if test $ac_cv_header_stdc = yes; then
9341 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
9346 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
9347 if ${ac_cv_header_sys_wait_h+:} false; then :
9348 $as_echo_n "(cached) " >&6
9349 else
9350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9351 /* end confdefs.h. */
9352 #include <sys/types.h>
9353 #include <sys/wait.h>
9354 #ifndef WEXITSTATUS
9355 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
9356 #endif
9357 #ifndef WIFEXITED
9358 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9359 #endif
9362 main ()
9364 int s;
9365 wait (&s);
9366 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9368 return 0;
9370 _ACEOF
9371 if ac_fn_c_try_compile "$LINENO"; then :
9372 ac_cv_header_sys_wait_h=yes
9373 else
9374 ac_cv_header_sys_wait_h=no
9376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
9379 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
9380 if test $ac_cv_header_sys_wait_h = yes; then
9382 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
9386 for ac_header in fcntl.h limits.h malloc.h strings.h syslog.h
9387 do :
9388 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9389 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9390 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9391 cat >>confdefs.h <<_ACEOF
9392 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9393 _ACEOF
9397 done
9399 for ac_header in stddef.h sched.h dlfcn.h dl.h
9400 do :
9401 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9402 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9403 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9404 cat >>confdefs.h <<_ACEOF
9405 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9406 _ACEOF
9410 done
9412 for ac_header in sys/times.h sys/resource.h sys/prctl.h
9413 do :
9414 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9415 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9416 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9417 cat >>confdefs.h <<_ACEOF
9418 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9419 _ACEOF
9423 done
9425 for ac_header in sys/sysinfo.h sys/systeminfo.h
9426 do :
9427 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9428 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9429 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9430 cat >>confdefs.h <<_ACEOF
9431 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9432 _ACEOF
9436 done
9438 for ac_header in endian.h standards.h sys/byteorder.h
9439 do :
9440 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9441 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9442 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9443 cat >>confdefs.h <<_ACEOF
9444 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9445 _ACEOF
9449 done
9451 for ac_header in libgen.h sys/mman.h sys/un.h
9452 do :
9453 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9454 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9455 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9456 cat >>confdefs.h <<_ACEOF
9457 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9458 _ACEOF
9462 done
9464 for ac_header in values.h stdint.h ieeefp.h math.h
9465 do :
9466 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9467 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9468 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9469 cat >>confdefs.h <<_ACEOF
9470 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9471 _ACEOF
9475 done
9477 for ac_header in pwd.h grp.h regex.h sys/wait.h
9478 do :
9479 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9480 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9481 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9482 cat >>confdefs.h <<_ACEOF
9483 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9484 _ACEOF
9488 done
9490 for ac_header in termio.h termios.h sys/termios.h
9491 do :
9492 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9493 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9494 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9495 cat >>confdefs.h <<_ACEOF
9496 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9497 _ACEOF
9501 done
9503 for ac_header in sys/ioctl.h sys/select.h sys/socket.h
9504 do :
9505 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9506 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9507 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9508 cat >>confdefs.h <<_ACEOF
9509 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9510 _ACEOF
9514 done
9516 for ac_header in netdb.h
9517 do :
9518 ac_fn_c_check_header_mongrel "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default"
9519 if test "x$ac_cv_header_netdb_h" = xyes; then :
9520 cat >>confdefs.h <<_ACEOF
9521 #define HAVE_NETDB_H 1
9522 _ACEOF
9526 done
9528 if test $target_os = darwin -o $target_os = openbsd
9529 then
9530 for ac_header in net/if.h
9531 do :
9532 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "#include <sys/types.h>
9533 #include <sys/socket.h>
9535 if test "x$ac_cv_header_net_if_h" = xyes; then :
9536 cat >>confdefs.h <<_ACEOF
9537 #define HAVE_NET_IF_H 1
9538 _ACEOF
9542 done
9544 else
9545 for ac_header in net/if.h
9546 do :
9547 ac_fn_c_check_header_mongrel "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default"
9548 if test "x$ac_cv_header_net_if_h" = xyes; then :
9549 cat >>confdefs.h <<_ACEOF
9550 #define HAVE_NET_IF_H 1
9551 _ACEOF
9555 done
9558 for ac_header in netinet/in.h netinet/tcp.h arpa/inet.h
9559 do :
9560 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9561 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9562 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9563 cat >>confdefs.h <<_ACEOF
9564 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9565 _ACEOF
9569 done
9571 for ac_header in windows.h winsock2.h ws2tcpip.h
9572 do :
9573 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9574 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9575 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9576 cat >>confdefs.h <<_ACEOF
9577 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9578 _ACEOF
9582 done
9584 for ac_header in execinfo.h bits/wordsize.h
9585 do :
9586 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9587 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9588 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9589 cat >>confdefs.h <<_ACEOF
9590 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9591 _ACEOF
9595 done
9597 for ac_header in iptypes.h
9598 do :
9599 ac_fn_c_check_header_compile "$LINENO" "iptypes.h" "ac_cv_header_iptypes_h" "#include <windows.h>
9601 if test "x$ac_cv_header_iptypes_h" = xyes; then :
9602 cat >>confdefs.h <<_ACEOF
9603 #define HAVE_IPTYPES_H 1
9604 _ACEOF
9608 done
9610 for ac_header in iphlpapi.h
9611 do :
9612 ac_fn_c_check_header_compile "$LINENO" "iphlpapi.h" "ac_cv_header_iphlpapi_h" "#include <winsock2.h>
9614 if test "x$ac_cv_header_iphlpapi_h" = xyes; then :
9615 cat >>confdefs.h <<_ACEOF
9616 #define HAVE_IPHLPAPI_H 1
9617 _ACEOF
9621 done
9623 for ac_header in fts.h libzfs.h
9624 do :
9625 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9626 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9627 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9628 cat >>confdefs.h <<_ACEOF
9629 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9630 _ACEOF
9634 done
9636 for ac_header in sys/statvfs.h sys/statfs.h sys/mount.h
9637 do :
9638 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9639 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9640 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9641 cat >>confdefs.h <<_ACEOF
9642 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9643 _ACEOF
9647 done
9650 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/endian.h " >&5
9651 $as_echo_n "checking for sys/endian.h ... " >&6; }
9652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9653 /* end confdefs.h. */
9655 #include <sys/endian.h>
9658 main ()
9663 return 0;
9665 _ACEOF
9666 if ac_fn_c_try_compile "$LINENO"; then :
9668 $as_echo "#define HAVE_SYS_ENDIAN_H 1" >>confdefs.h
9669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9670 $as_echo "yes" >&6; }
9671 else
9672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9673 $as_echo "no" >&6; }
9675 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9677 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for machine/endian.h " >&5
9678 $as_echo_n "checking for machine/endian.h ... " >&6; }
9679 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9680 /* end confdefs.h. */
9682 #include <machine/endian.h>
9685 main ()
9690 return 0;
9692 _ACEOF
9693 if ac_fn_c_try_compile "$LINENO"; then :
9695 $as_echo "#define HAVE_MACHINE_ENDIAN_H 1" >>confdefs.h
9696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9697 $as_echo "yes" >&6; }
9698 else
9699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9700 $as_echo "no" >&6; }
9702 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9704 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/endian.h (IRIX variant) " >&5
9705 $as_echo_n "checking for sys/endian.h (IRIX variant) ... " >&6; }
9706 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9707 /* end confdefs.h. */
9709 #include <standards.h>
9710 #include <sys/endian.h>
9713 main ()
9718 return 0;
9720 _ACEOF
9721 if ac_fn_c_try_compile "$LINENO"; then :
9723 $as_echo "#define HAVE_SYS_ENDIAN_H 1" >>confdefs.h
9724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9725 $as_echo "yes" >&6; }
9726 else
9727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9728 $as_echo "no" >&6; }
9730 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
9733 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
9734 if ${ac_cv_c_const+:} false; then :
9735 $as_echo_n "(cached) " >&6
9736 else
9737 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9738 /* end confdefs.h. */
9741 main ()
9744 #ifndef __cplusplus
9745 /* Ultrix mips cc rejects this sort of thing. */
9746 typedef int charset[2];
9747 const charset cs = { 0, 0 };
9748 /* SunOS 4.1.1 cc rejects this. */
9749 char const *const *pcpcc;
9750 char **ppc;
9751 /* NEC SVR4.0.2 mips cc rejects this. */
9752 struct point {int x, y;};
9753 static struct point const zero = {0,0};
9754 /* AIX XL C 1.02.0.0 rejects this.
9755 It does not let you subtract one const X* pointer from another in
9756 an arm of an if-expression whose if-part is not a constant
9757 expression */
9758 const char *g = "string";
9759 pcpcc = &g + (g ? g-g : 0);
9760 /* HPUX 7.0 cc rejects these. */
9761 ++pcpcc;
9762 ppc = (char**) pcpcc;
9763 pcpcc = (char const *const *) ppc;
9764 { /* SCO 3.2v4 cc rejects this sort of thing. */
9765 char tx;
9766 char *t = &tx;
9767 char const *s = 0 ? (char *) 0 : (char const *) 0;
9769 *t++ = 0;
9770 if (s) return 0;
9772 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9773 int x[] = {25, 17};
9774 const int *foo = &x[0];
9775 ++foo;
9777 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9778 typedef const int *iptr;
9779 iptr p = 0;
9780 ++p;
9782 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
9783 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9784 struct s { int j; const int *ap[3]; } bx;
9785 struct s *b = &bx; b->j = 5;
9787 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9788 const int foo = 10;
9789 if (!foo) return 0;
9791 return !cs[0] && !zero.x;
9792 #endif
9795 return 0;
9797 _ACEOF
9798 if ac_fn_c_try_compile "$LINENO"; then :
9799 ac_cv_c_const=yes
9800 else
9801 ac_cv_c_const=no
9803 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
9806 $as_echo "$ac_cv_c_const" >&6; }
9807 if test $ac_cv_c_const = no; then
9809 $as_echo "#define const /**/" >>confdefs.h
9813 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
9814 if test "x$ac_cv_type_off_t" = xyes; then :
9816 else
9818 cat >>confdefs.h <<_ACEOF
9819 #define off_t long int
9820 _ACEOF
9824 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9825 if test "x$ac_cv_type_pid_t" = xyes; then :
9827 else
9829 cat >>confdefs.h <<_ACEOF
9830 #define pid_t int
9831 _ACEOF
9835 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
9836 if test "x$ac_cv_type_size_t" = xyes; then :
9838 else
9840 cat >>confdefs.h <<_ACEOF
9841 #define size_t unsigned int
9842 _ACEOF
9846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
9847 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
9848 if ${ac_cv_header_time+:} false; then :
9849 $as_echo_n "(cached) " >&6
9850 else
9851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9852 /* end confdefs.h. */
9853 #include <sys/types.h>
9854 #include <sys/time.h>
9855 #include <time.h>
9858 main ()
9860 if ((struct tm *) 0)
9861 return 0;
9863 return 0;
9865 _ACEOF
9866 if ac_fn_c_try_compile "$LINENO"; then :
9867 ac_cv_header_time=yes
9868 else
9869 ac_cv_header_time=no
9871 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9873 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
9874 $as_echo "$ac_cv_header_time" >&6; }
9875 if test $ac_cv_header_time = yes; then
9877 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
9881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
9882 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
9883 if ${ac_cv_struct_tm+:} false; then :
9884 $as_echo_n "(cached) " >&6
9885 else
9886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9887 /* end confdefs.h. */
9888 #include <sys/types.h>
9889 #include <time.h>
9892 main ()
9894 struct tm tm;
9895 int *p = &tm.tm_sec;
9896 return !p;
9898 return 0;
9900 _ACEOF
9901 if ac_fn_c_try_compile "$LINENO"; then :
9902 ac_cv_struct_tm=time.h
9903 else
9904 ac_cv_struct_tm=sys/time.h
9906 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
9909 $as_echo "$ac_cv_struct_tm" >&6; }
9910 if test $ac_cv_struct_tm = sys/time.h; then
9912 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
9916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
9917 $as_echo_n "checking for inline... " >&6; }
9918 if ${ac_cv_c_inline+:} false; then :
9919 $as_echo_n "(cached) " >&6
9920 else
9921 ac_cv_c_inline=no
9922 for ac_kw in inline __inline__ __inline; do
9923 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9924 /* end confdefs.h. */
9925 #ifndef __cplusplus
9926 typedef int foo_t;
9927 static $ac_kw foo_t static_foo () {return 0; }
9928 $ac_kw foo_t foo () {return 0; }
9929 #endif
9931 _ACEOF
9932 if ac_fn_c_try_compile "$LINENO"; then :
9933 ac_cv_c_inline=$ac_kw
9935 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9936 test "$ac_cv_c_inline" != no && break
9937 done
9940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
9941 $as_echo "$ac_cv_c_inline" >&6; }
9943 case $ac_cv_c_inline in
9944 inline | yes) ;;
9946 case $ac_cv_c_inline in
9947 no) ac_val=;;
9948 *) ac_val=$ac_cv_c_inline;;
9949 esac
9950 cat >>confdefs.h <<_ACEOF
9951 #ifndef __cplusplus
9952 #define inline $ac_val
9953 #endif
9954 _ACEOF
9956 esac
9959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regcomp in -lregex" >&5
9960 $as_echo_n "checking for regcomp in -lregex... " >&6; }
9961 if ${ac_cv_lib_regex_regcomp+:} false; then :
9962 $as_echo_n "(cached) " >&6
9963 else
9964 ac_check_lib_save_LIBS=$LIBS
9965 LIBS="-lregex $LIBS"
9966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9967 /* end confdefs.h. */
9969 /* Override any GCC internal prototype to avoid an error.
9970 Use char because int might match the return type of a GCC
9971 builtin and then its argument prototype would still apply. */
9972 #ifdef __cplusplus
9973 extern "C"
9974 #endif
9975 char regcomp ();
9977 main ()
9979 return regcomp ();
9981 return 0;
9983 _ACEOF
9984 if ac_fn_c_try_link "$LINENO"; then :
9985 ac_cv_lib_regex_regcomp=yes
9986 else
9987 ac_cv_lib_regex_regcomp=no
9989 rm -f core conftest.err conftest.$ac_objext \
9990 conftest$ac_exeext conftest.$ac_ext
9991 LIBS=$ac_check_lib_save_LIBS
9993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_regex_regcomp" >&5
9994 $as_echo "$ac_cv_lib_regex_regcomp" >&6; }
9995 if test "x$ac_cv_lib_regex_regcomp" = xyes; then :
9996 cat >>confdefs.h <<_ACEOF
9997 #define HAVE_LIBREGEX 1
9998 _ACEOF
10000 LIBS="-lregex $LIBS"
10004 lib_for_regex=""
10005 if test $ac_cv_lib_regex_regcomp = yes
10006 then
10007 lib_for_regex="-lregex"
10012 pkg_failed=no
10013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ncurses" >&5
10014 $as_echo_n "checking for ncurses... " >&6; }
10016 if test -n "$ncurses_CFLAGS"; then
10017 pkg_cv_ncurses_CFLAGS="$ncurses_CFLAGS"
10018 elif test -n "$PKG_CONFIG"; then
10019 if test -n "$PKG_CONFIG" && \
10020 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncurses\""; } >&5
10021 ($PKG_CONFIG --exists --print-errors "ncurses") 2>&5
10022 ac_status=$?
10023 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10024 test $ac_status = 0; }; then
10025 pkg_cv_ncurses_CFLAGS=`$PKG_CONFIG --cflags "ncurses" 2>/dev/null`
10026 test "x$?" != "x0" && pkg_failed=yes
10027 else
10028 pkg_failed=yes
10030 else
10031 pkg_failed=untried
10033 if test -n "$ncurses_LIBS"; then
10034 pkg_cv_ncurses_LIBS="$ncurses_LIBS"
10035 elif test -n "$PKG_CONFIG"; then
10036 if test -n "$PKG_CONFIG" && \
10037 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncurses\""; } >&5
10038 ($PKG_CONFIG --exists --print-errors "ncurses") 2>&5
10039 ac_status=$?
10040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10041 test $ac_status = 0; }; then
10042 pkg_cv_ncurses_LIBS=`$PKG_CONFIG --libs "ncurses" 2>/dev/null`
10043 test "x$?" != "x0" && pkg_failed=yes
10044 else
10045 pkg_failed=yes
10047 else
10048 pkg_failed=untried
10053 if test $pkg_failed = yes; then
10054 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10055 $as_echo "no" >&6; }
10057 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10058 _pkg_short_errors_supported=yes
10059 else
10060 _pkg_short_errors_supported=no
10062 if test $_pkg_short_errors_supported = yes; then
10063 ncurses_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ncurses" 2>&1`
10064 else
10065 ncurses_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ncurses" 2>&1`
10067 # Put the nasty error message in config.log where it belongs
10068 echo "$ncurses_PKG_ERRORS" >&5
10070 have_ncurses=false
10071 elif test $pkg_failed = untried; then
10072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10073 $as_echo "no" >&6; }
10074 have_ncurses=false
10075 else
10076 ncurses_CFLAGS=$pkg_cv_ncurses_CFLAGS
10077 ncurses_LIBS=$pkg_cv_ncurses_LIBS
10078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10079 $as_echo "yes" >&6; }
10080 have_ncurses=true
10082 HAVE_NCURSES=$have_ncurses
10086 pkg_failed=no
10087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD" >&5
10088 $as_echo_n "checking for SYSTEMD... " >&6; }
10090 if test -n "$SYSTEMD_CFLAGS"; then
10091 pkg_cv_SYSTEMD_CFLAGS="$SYSTEMD_CFLAGS"
10092 elif test -n "$PKG_CONFIG"; then
10093 if test -n "$PKG_CONFIG" && \
10094 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5
10095 ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5
10096 ac_status=$?
10097 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10098 test $ac_status = 0; }; then
10099 pkg_cv_SYSTEMD_CFLAGS=`$PKG_CONFIG --cflags "libsystemd" 2>/dev/null`
10100 test "x$?" != "x0" && pkg_failed=yes
10101 else
10102 pkg_failed=yes
10104 else
10105 pkg_failed=untried
10107 if test -n "$SYSTEMD_LIBS"; then
10108 pkg_cv_SYSTEMD_LIBS="$SYSTEMD_LIBS"
10109 elif test -n "$PKG_CONFIG"; then
10110 if test -n "$PKG_CONFIG" && \
10111 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5
10112 ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5
10113 ac_status=$?
10114 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10115 test $ac_status = 0; }; then
10116 pkg_cv_SYSTEMD_LIBS=`$PKG_CONFIG --libs "libsystemd" 2>/dev/null`
10117 test "x$?" != "x0" && pkg_failed=yes
10118 else
10119 pkg_failed=yes
10121 else
10122 pkg_failed=untried
10127 if test $pkg_failed = yes; then
10128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10129 $as_echo "no" >&6; }
10131 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10132 _pkg_short_errors_supported=yes
10133 else
10134 _pkg_short_errors_supported=no
10136 if test $_pkg_short_errors_supported = yes; then
10137 SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd" 2>&1`
10138 else
10139 SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd" 2>&1`
10141 # Put the nasty error message in config.log where it belongs
10142 echo "$SYSTEMD_PKG_ERRORS" >&5
10144 pmda_systemd=false
10145 elif test $pkg_failed = untried; then
10146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10147 $as_echo "no" >&6; }
10148 pmda_systemd=false
10149 else
10150 SYSTEMD_CFLAGS=$pkg_cv_SYSTEMD_CFLAGS
10151 SYSTEMD_LIBS=$pkg_cv_SYSTEMD_LIBS
10152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10153 $as_echo "yes" >&6; }
10154 pmda_systemd=true
10156 if $pmda_systemd
10157 then
10159 else
10161 pkg_failed=no
10162 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD" >&5
10163 $as_echo_n "checking for SYSTEMD... " >&6; }
10165 if test -n "$SYSTEMD_CFLAGS"; then
10166 pkg_cv_SYSTEMD_CFLAGS="$SYSTEMD_CFLAGS"
10167 elif test -n "$PKG_CONFIG"; then
10168 if test -n "$PKG_CONFIG" && \
10169 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-journal\""; } >&5
10170 ($PKG_CONFIG --exists --print-errors "libsystemd-journal") 2>&5
10171 ac_status=$?
10172 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10173 test $ac_status = 0; }; then
10174 pkg_cv_SYSTEMD_CFLAGS=`$PKG_CONFIG --cflags "libsystemd-journal" 2>/dev/null`
10175 test "x$?" != "x0" && pkg_failed=yes
10176 else
10177 pkg_failed=yes
10179 else
10180 pkg_failed=untried
10182 if test -n "$SYSTEMD_LIBS"; then
10183 pkg_cv_SYSTEMD_LIBS="$SYSTEMD_LIBS"
10184 elif test -n "$PKG_CONFIG"; then
10185 if test -n "$PKG_CONFIG" && \
10186 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-journal\""; } >&5
10187 ($PKG_CONFIG --exists --print-errors "libsystemd-journal") 2>&5
10188 ac_status=$?
10189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10190 test $ac_status = 0; }; then
10191 pkg_cv_SYSTEMD_LIBS=`$PKG_CONFIG --libs "libsystemd-journal" 2>/dev/null`
10192 test "x$?" != "x0" && pkg_failed=yes
10193 else
10194 pkg_failed=yes
10196 else
10197 pkg_failed=untried
10202 if test $pkg_failed = yes; then
10203 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10204 $as_echo "no" >&6; }
10206 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10207 _pkg_short_errors_supported=yes
10208 else
10209 _pkg_short_errors_supported=no
10211 if test $_pkg_short_errors_supported = yes; then
10212 SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd-journal" 2>&1`
10213 else
10214 SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd-journal" 2>&1`
10216 # Put the nasty error message in config.log where it belongs
10217 echo "$SYSTEMD_PKG_ERRORS" >&5
10219 pmda_systemd=false
10220 elif test $pkg_failed = untried; then
10221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10222 $as_echo "no" >&6; }
10223 pmda_systemd=false
10224 else
10225 SYSTEMD_CFLAGS=$pkg_cv_SYSTEMD_CFLAGS
10226 SYSTEMD_LIBS=$pkg_cv_SYSTEMD_LIBS
10227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10228 $as_echo "yes" >&6; }
10229 pmda_systemd=true
10232 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the systemd PMDA should be included" >&5
10233 $as_echo_n "checking if the systemd PMDA should be included... " >&6; }
10234 PMDA_SYSTEMD=$pmda_systemd
10236 if $pmda_systemd; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10237 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10238 $as_echo "no" >&6; }; fi
10240 pmda_infiniband=false
10241 if test "x$do_infiniband" != "xno"; then :
10243 for ac_header in infiniband/umad.h
10244 do :
10245 ac_fn_c_check_header_mongrel "$LINENO" "infiniband/umad.h" "ac_cv_header_infiniband_umad_h" "$ac_includes_default"
10246 if test "x$ac_cv_header_infiniband_umad_h" = xyes; then :
10247 cat >>confdefs.h <<_ACEOF
10248 #define HAVE_INFINIBAND_UMAD_H 1
10249 _ACEOF
10251 for ac_header in infiniband/mad.h
10252 do :
10253 ac_fn_c_check_header_mongrel "$LINENO" "infiniband/mad.h" "ac_cv_header_infiniband_mad_h" "$ac_includes_default"
10254 if test "x$ac_cv_header_infiniband_mad_h" = xyes; then :
10255 cat >>confdefs.h <<_ACEOF
10256 #define HAVE_INFINIBAND_MAD_H 1
10257 _ACEOF
10258 pmda_infiniband=true
10261 done
10266 done
10268 savedLIBS=$LIBS
10269 IB_LIBS=""
10270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for madrpc_init in -libmad" >&5
10271 $as_echo_n "checking for madrpc_init in -libmad... " >&6; }
10272 if ${ac_cv_lib_ibmad_madrpc_init+:} false; then :
10273 $as_echo_n "(cached) " >&6
10274 else
10275 ac_check_lib_save_LIBS=$LIBS
10276 LIBS="-libmad $LIBS"
10277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10278 /* end confdefs.h. */
10280 /* Override any GCC internal prototype to avoid an error.
10281 Use char because int might match the return type of a GCC
10282 builtin and then its argument prototype would still apply. */
10283 #ifdef __cplusplus
10284 extern "C"
10285 #endif
10286 char madrpc_init ();
10288 main ()
10290 return madrpc_init ();
10292 return 0;
10294 _ACEOF
10295 if ac_fn_c_try_link "$LINENO"; then :
10296 ac_cv_lib_ibmad_madrpc_init=yes
10297 else
10298 ac_cv_lib_ibmad_madrpc_init=no
10300 rm -f core conftest.err conftest.$ac_objext \
10301 conftest$ac_exeext conftest.$ac_ext
10302 LIBS=$ac_check_lib_save_LIBS
10304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ibmad_madrpc_init" >&5
10305 $as_echo "$ac_cv_lib_ibmad_madrpc_init" >&6; }
10306 if test "x$ac_cv_lib_ibmad_madrpc_init" = xyes; then :
10307 cat >>confdefs.h <<_ACEOF
10308 #define HAVE_LIBIBMAD 1
10309 _ACEOF
10311 LIBS="-libmad $LIBS"
10315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umad_init in -libumad" >&5
10316 $as_echo_n "checking for umad_init in -libumad... " >&6; }
10317 if ${ac_cv_lib_ibumad_umad_init+:} false; then :
10318 $as_echo_n "(cached) " >&6
10319 else
10320 ac_check_lib_save_LIBS=$LIBS
10321 LIBS="-libumad $LIBS"
10322 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10323 /* end confdefs.h. */
10325 /* Override any GCC internal prototype to avoid an error.
10326 Use char because int might match the return type of a GCC
10327 builtin and then its argument prototype would still apply. */
10328 #ifdef __cplusplus
10329 extern "C"
10330 #endif
10331 char umad_init ();
10333 main ()
10335 return umad_init ();
10337 return 0;
10339 _ACEOF
10340 if ac_fn_c_try_link "$LINENO"; then :
10341 ac_cv_lib_ibumad_umad_init=yes
10342 else
10343 ac_cv_lib_ibumad_umad_init=no
10345 rm -f core conftest.err conftest.$ac_objext \
10346 conftest$ac_exeext conftest.$ac_ext
10347 LIBS=$ac_check_lib_save_LIBS
10349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ibumad_umad_init" >&5
10350 $as_echo "$ac_cv_lib_ibumad_umad_init" >&6; }
10351 if test "x$ac_cv_lib_ibumad_umad_init" = xyes; then :
10352 cat >>confdefs.h <<_ACEOF
10353 #define HAVE_LIBIBUMAD 1
10354 _ACEOF
10356 LIBS="-libumad $LIBS"
10360 if test $ac_cv_lib_ibmad_madrpc_init = yes -a $ac_cv_lib_ibumad_umad_init = yes
10361 then
10362 IB_LIBS="-libmad -libumad"
10363 LIBS="$IB_LIBS"
10364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for port_performance_query_via" >&5
10365 $as_echo_n "checking for port_performance_query_via... " >&6; }
10366 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10367 /* end confdefs.h. */
10369 /* Override any GCC internal prototype to avoid an error.
10370 Use char because int might match the return type of a GCC
10371 builtin and then its argument prototype would still apply. */
10372 #ifdef __cplusplus
10373 extern "C"
10374 #endif
10375 char port_performance_query_via ();
10377 main ()
10379 return port_performance_query_via ();
10381 return 0;
10383 _ACEOF
10384 if ac_fn_c_try_link "$LINENO"; then :
10386 $as_echo "#define HAVE_PORT_PERFORMANCE_QUERY_VIA 1" >>confdefs.h
10388 have_port_performance_query_via=true
10389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10390 $as_echo "yes" >&6; }
10391 else
10392 have_port_performance_query_via=false
10393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10394 $as_echo "no" >&6; }
10396 rm -f core conftest.err conftest.$ac_objext \
10397 conftest$ac_exeext conftest.$ac_ext
10398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pma_query_via" >&5
10399 $as_echo_n "checking for pma_query_via... " >&6; }
10400 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10401 /* end confdefs.h. */
10403 /* Override any GCC internal prototype to avoid an error.
10404 Use char because int might match the return type of a GCC
10405 builtin and then its argument prototype would still apply. */
10406 #ifdef __cplusplus
10407 extern "C"
10408 #endif
10409 char pma_query_via ();
10411 main ()
10413 return pma_query_via ();
10415 return 0;
10417 _ACEOF
10418 if ac_fn_c_try_link "$LINENO"; then :
10420 $as_echo "#define HAVE_PMA_QUERY_VIA 1" >>confdefs.h
10422 have_pma_query_via=true
10423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10424 $as_echo "yes" >&6; }
10425 else
10426 have_pma_query_via=false
10427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10428 $as_echo "no" >&6; }
10430 rm -f core conftest.err conftest.$ac_objext \
10431 conftest$ac_exeext conftest.$ac_ext
10432 LIBS=$savedLIBS
10433 if test $have_pma_query_via -o $have_port_performance_query_via
10434 then
10436 else
10437 pmda_infiniband=false
10439 else
10440 pmda_infiniband=false
10442 LIBS=$savedLIBS
10446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the infiniband PMDA should be included" >&5
10447 $as_echo_n "checking if the infiniband PMDA should be included... " >&6; }
10448 PMDA_INFINIBAND=$pmda_infiniband
10450 if $pmda_infiniband; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10451 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10452 $as_echo "no" >&6; }; fi
10454 pmda_papi=false
10455 if test "x$do_papi" != "xno"; then :
10457 enable_papi=true
10459 saved_LDFLAGS="$LDFLAGS"
10460 saved_CFLAGS="$CFLAGS"
10461 savedLIBS=$LIBS
10463 CFLAGS="$papi_CFLAGS"
10464 LDFLAGS="$papi_LIBS"
10466 case "$do_papi" in
10467 yes|no|check)
10469 */*)
10470 PAPI_ROOTDIR=$do_papi;
10471 CFLAGS="-I$PAPI_ROOTDIR/include"
10472 LDFLAGS="-L$PAPI_ROOTDIR/lib"
10476 pkg_failed=no
10477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for papi" >&5
10478 $as_echo_n "checking for papi... " >&6; }
10480 if test -n "$papi_CFLAGS"; then
10481 pkg_cv_papi_CFLAGS="$papi_CFLAGS"
10482 elif test -n "$PKG_CONFIG"; then
10483 if test -n "$PKG_CONFIG" && \
10484 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$do_papi\""; } >&5
10485 ($PKG_CONFIG --exists --print-errors "$do_papi") 2>&5
10486 ac_status=$?
10487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10488 test $ac_status = 0; }; then
10489 pkg_cv_papi_CFLAGS=`$PKG_CONFIG --cflags "$do_papi" 2>/dev/null`
10490 test "x$?" != "x0" && pkg_failed=yes
10491 else
10492 pkg_failed=yes
10494 else
10495 pkg_failed=untried
10497 if test -n "$papi_LIBS"; then
10498 pkg_cv_papi_LIBS="$papi_LIBS"
10499 elif test -n "$PKG_CONFIG"; then
10500 if test -n "$PKG_CONFIG" && \
10501 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$do_papi\""; } >&5
10502 ($PKG_CONFIG --exists --print-errors "$do_papi") 2>&5
10503 ac_status=$?
10504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10505 test $ac_status = 0; }; then
10506 pkg_cv_papi_LIBS=`$PKG_CONFIG --libs "$do_papi" 2>/dev/null`
10507 test "x$?" != "x0" && pkg_failed=yes
10508 else
10509 pkg_failed=yes
10511 else
10512 pkg_failed=untried
10517 if test $pkg_failed = yes; then
10518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10519 $as_echo "no" >&6; }
10521 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10522 _pkg_short_errors_supported=yes
10523 else
10524 _pkg_short_errors_supported=no
10526 if test $_pkg_short_errors_supported = yes; then
10527 papi_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$do_papi" 2>&1`
10528 else
10529 papi_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$do_papi" 2>&1`
10531 # Put the nasty error message in config.log where it belongs
10532 echo "$papi_PKG_ERRORS" >&5
10534 as_fn_error $? "Package requirements ($do_papi) were not met:
10536 $papi_PKG_ERRORS
10538 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10539 installed software in a non-standard prefix.
10541 Alternatively, you may set the environment variables papi_CFLAGS
10542 and papi_LIBS to avoid the need to call pkg-config.
10543 See the pkg-config man page for more details." "$LINENO" 5
10544 elif test $pkg_failed = untried; then
10545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10546 $as_echo "no" >&6; }
10547 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10548 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10549 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
10550 is in your PATH or set the PKG_CONFIG environment variable to the full
10551 path to pkg-config.
10553 Alternatively, you may set the environment variables papi_CFLAGS
10554 and papi_LIBS to avoid the need to call pkg-config.
10555 See the pkg-config man page for more details.
10557 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10558 See \`config.log' for more details" "$LINENO" 5; }
10559 else
10560 papi_CFLAGS=$pkg_cv_papi_CFLAGS
10561 papi_LIBS=$pkg_cv_papi_LIBS
10562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10563 $as_echo "yes" >&6; }
10565 CFLAGS="$papi_CFLAGS"
10566 LDFLAGS="$papi_LIBS"
10569 esac
10571 # $papi_LIBS may include -lpapi harmlessly redudantly with AC_CHECK_LIB
10572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PAPI_library_init in -lpapi" >&5
10573 $as_echo_n "checking for PAPI_library_init in -lpapi... " >&6; }
10574 if ${ac_cv_lib_papi_PAPI_library_init+:} false; then :
10575 $as_echo_n "(cached) " >&6
10576 else
10577 ac_check_lib_save_LIBS=$LIBS
10578 LIBS="-lpapi $LIBS"
10579 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10580 /* end confdefs.h. */
10582 /* Override any GCC internal prototype to avoid an error.
10583 Use char because int might match the return type of a GCC
10584 builtin and then its argument prototype would still apply. */
10585 #ifdef __cplusplus
10586 extern "C"
10587 #endif
10588 char PAPI_library_init ();
10590 main ()
10592 return PAPI_library_init ();
10594 return 0;
10596 _ACEOF
10597 if ac_fn_c_try_link "$LINENO"; then :
10598 ac_cv_lib_papi_PAPI_library_init=yes
10599 else
10600 ac_cv_lib_papi_PAPI_library_init=no
10602 rm -f core conftest.err conftest.$ac_objext \
10603 conftest$ac_exeext conftest.$ac_ext
10604 LIBS=$ac_check_lib_save_LIBS
10606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_papi_PAPI_library_init" >&5
10607 $as_echo "$ac_cv_lib_papi_PAPI_library_init" >&6; }
10608 if test "x$ac_cv_lib_papi_PAPI_library_init" = xyes; then :
10609 papi_libs="$LDFLAGS -lpapi"
10610 else
10611 enable_papi=false
10614 for ac_header in papi.h
10615 do :
10616 ac_fn_c_check_header_mongrel "$LINENO" "papi.h" "ac_cv_header_papi_h" "$ac_includes_default"
10617 if test "x$ac_cv_header_papi_h" = xyes; then :
10618 cat >>confdefs.h <<_ACEOF
10619 #define HAVE_PAPI_H 1
10620 _ACEOF
10621 papi_cflags="$CFLAGS"
10622 else
10623 enable_papi=false
10626 done
10628 if test "$do_papi" != "check" -a "$enable_papi" != "true"
10629 then
10630 as_fn_error $? "PAPI is not installed, cannot enable the PAPI PMDA" "$LINENO" 5
10631 else
10632 pmda_papi=$enable_papi
10634 LIBS=$savedLIBS
10635 CFLAGS="$saved_CFLAGS"
10636 LDFLAGS="$saved_LDFLAGS"
10637 PAPI_CFLAGS=$papi_cflags
10639 PAPI_LIBS=$papi_libs
10643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the papi PMDA should be included" >&5
10644 $as_echo_n "checking if the papi PMDA should be included... " >&6; }
10645 PMDA_PAPI=$pmda_papi
10647 if $pmda_papi; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10648 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10649 $as_echo "no" >&6; }; fi
10651 if test "x$pmda_papi" = "xtrue"; then :
10653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct PAPI_component_info_t has a disabled field" >&5
10654 $as_echo_n "checking whether struct PAPI_component_info_t has a disabled field... " >&6; }
10655 cat <<End-of-File >conftest.c
10656 #include <papi.h>
10657 int main() { PAPI_component_info_t *c; c->disabled = 0; }
10658 End-of-File
10659 (eval $ac_compile) 2>conftest.out
10660 cat conftest.out >&5
10661 if test -s conftest.out
10662 then
10663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10664 $as_echo "no" >&6; }
10665 else
10667 $as_echo "#define HAVE_PAPI_DISABLED_COMP 1" >>confdefs.h
10669 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10670 $as_echo "yes" >&6; }
10673 rm -f conftest.*
10677 pmda_perfevent=false
10678 if test "x$do_perfevent" != "xno" ; then :
10680 enable_perfevent=true
10682 savedLIBS=$LIBS
10683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pfm_get_os_event_encoding in -lpfm" >&5
10684 $as_echo_n "checking for pfm_get_os_event_encoding in -lpfm... " >&6; }
10685 if ${ac_cv_lib_pfm_pfm_get_os_event_encoding+:} false; then :
10686 $as_echo_n "(cached) " >&6
10687 else
10688 ac_check_lib_save_LIBS=$LIBS
10689 LIBS="-lpfm $LIBS"
10690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10691 /* end confdefs.h. */
10693 /* Override any GCC internal prototype to avoid an error.
10694 Use char because int might match the return type of a GCC
10695 builtin and then its argument prototype would still apply. */
10696 #ifdef __cplusplus
10697 extern "C"
10698 #endif
10699 char pfm_get_os_event_encoding ();
10701 main ()
10703 return pfm_get_os_event_encoding ();
10705 return 0;
10707 _ACEOF
10708 if ac_fn_c_try_link "$LINENO"; then :
10709 ac_cv_lib_pfm_pfm_get_os_event_encoding=yes
10710 else
10711 ac_cv_lib_pfm_pfm_get_os_event_encoding=no
10713 rm -f core conftest.err conftest.$ac_objext \
10714 conftest$ac_exeext conftest.$ac_ext
10715 LIBS=$ac_check_lib_save_LIBS
10717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pfm_pfm_get_os_event_encoding" >&5
10718 $as_echo "$ac_cv_lib_pfm_pfm_get_os_event_encoding" >&6; }
10719 if test "x$ac_cv_lib_pfm_pfm_get_os_event_encoding" = xyes; then :
10720 pfm_libs="-lpfm"
10721 else
10722 enable_perfevent=false
10725 for ac_header in perfmon/pfmlib_perf_event.h
10726 do :
10727 ac_fn_c_check_header_mongrel "$LINENO" "perfmon/pfmlib_perf_event.h" "ac_cv_header_perfmon_pfmlib_perf_event_h" "$ac_includes_default"
10728 if test "x$ac_cv_header_perfmon_pfmlib_perf_event_h" = xyes; then :
10729 cat >>confdefs.h <<_ACEOF
10730 #define HAVE_PERFMON_PFMLIB_PERF_EVENT_H 1
10731 _ACEOF
10733 else
10734 enable_perfevent=false
10737 done
10739 if test "$do_perfevent" != "check" -a "$enable_perfevent" != "true"
10740 then
10741 as_fn_error $? "libpfm is not installed, cannot enable the perfevent PMDA" "$LINENO" 5
10742 else
10743 pmda_perfevent=$enable_perfevent
10745 LIBS=$savedLIBS
10746 PFM_LIBS=$pfm_libs
10750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the perfevent PMDA should be included" >&5
10751 $as_echo_n "checking if the perfevent PMDA should be included... " >&6; }
10752 PMDA_PERFEVENT=$pmda_perfevent
10754 if $pmda_perfevent; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10755 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10756 $as_echo "no" >&6; }; fi
10758 pmda_rpm=false
10759 savedLIBS=$LIBS
10760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rpmlib > 4.4.2" >&5
10761 $as_echo_n "checking for rpmlib > 4.4.2... " >&6; }
10762 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10763 /* end confdefs.h. */
10764 #include <rpm/header.h>
10766 main ()
10768 (void)HEADERGET_EXT;
10770 return 0;
10772 _ACEOF
10773 if ac_fn_c_try_compile "$LINENO"; then :
10774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10775 $as_echo "yes" >&6; }
10776 pmda_rpm=true
10777 else
10778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10779 $as_echo "no" >&6; }
10781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the rpm PMDA should be included" >&5
10783 $as_echo_n "checking if the rpm PMDA should be included... " >&6; }
10784 PMDA_RPM=$pmda_rpm
10786 if $pmda_rpm; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10787 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10788 $as_echo "no" >&6; }; fi
10789 LIBS=$savedLIBS
10791 pmda_postfix=false
10792 for ac_prog in qshape
10794 # Extract the first word of "$ac_prog", so it can be a program name with args.
10795 set dummy $ac_prog; ac_word=$2
10796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10797 $as_echo_n "checking for $ac_word... " >&6; }
10798 if ${ac_cv_prog_QSHAPE+:} false; then :
10799 $as_echo_n "(cached) " >&6
10800 else
10801 if test -n "$QSHAPE"; then
10802 ac_cv_prog_QSHAPE="$QSHAPE" # Let the user override the test.
10803 else
10804 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10805 as_dummy="path=$PATH:/usr/sbin"
10806 for as_dir in $as_dummy
10808 IFS=$as_save_IFS
10809 test -z "$as_dir" && as_dir=.
10810 for ac_exec_ext in '' $ac_executable_extensions; do
10811 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10812 ac_cv_prog_QSHAPE="$ac_prog"
10813 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10814 break 2
10816 done
10817 done
10818 IFS=$as_save_IFS
10822 QSHAPE=$ac_cv_prog_QSHAPE
10823 if test -n "$QSHAPE"; then
10824 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QSHAPE" >&5
10825 $as_echo "$QSHAPE" >&6; }
10826 else
10827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10828 $as_echo "no" >&6; }
10832 test -n "$QSHAPE" && break
10833 done
10835 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the postfix PMDA should be included" >&5
10836 $as_echo_n "checking if the postfix PMDA should be included... " >&6; }
10837 if test -n "$QSHAPE"
10838 then
10839 pmda_postfix=true
10840 else
10841 for script in /usr/share/doc/packages/postfix-doc/auxiliary/qshape/qshape.pl
10843 if test -f "$script"
10844 then
10845 pmda_postfix=true
10846 break
10848 done
10850 PMDA_POSTFIX=$pmda_postfix
10852 if $pmda_postfix; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10853 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10854 $as_echo "no" >&6; }; fi
10857 pkg_failed=no
10858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmicrohttpd" >&5
10859 $as_echo_n "checking for libmicrohttpd... " >&6; }
10861 if test -n "$libmicrohttpd_CFLAGS"; then
10862 pkg_cv_libmicrohttpd_CFLAGS="$libmicrohttpd_CFLAGS"
10863 elif test -n "$PKG_CONFIG"; then
10864 if test -n "$PKG_CONFIG" && \
10865 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmicrohttpd > 0.9.9\""; } >&5
10866 ($PKG_CONFIG --exists --print-errors "libmicrohttpd > 0.9.9") 2>&5
10867 ac_status=$?
10868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10869 test $ac_status = 0; }; then
10870 pkg_cv_libmicrohttpd_CFLAGS=`$PKG_CONFIG --cflags "libmicrohttpd > 0.9.9" 2>/dev/null`
10871 test "x$?" != "x0" && pkg_failed=yes
10872 else
10873 pkg_failed=yes
10875 else
10876 pkg_failed=untried
10878 if test -n "$libmicrohttpd_LIBS"; then
10879 pkg_cv_libmicrohttpd_LIBS="$libmicrohttpd_LIBS"
10880 elif test -n "$PKG_CONFIG"; then
10881 if test -n "$PKG_CONFIG" && \
10882 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmicrohttpd > 0.9.9\""; } >&5
10883 ($PKG_CONFIG --exists --print-errors "libmicrohttpd > 0.9.9") 2>&5
10884 ac_status=$?
10885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10886 test $ac_status = 0; }; then
10887 pkg_cv_libmicrohttpd_LIBS=`$PKG_CONFIG --libs "libmicrohttpd > 0.9.9" 2>/dev/null`
10888 test "x$?" != "x0" && pkg_failed=yes
10889 else
10890 pkg_failed=yes
10892 else
10893 pkg_failed=untried
10898 if test $pkg_failed = yes; then
10899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10900 $as_echo "no" >&6; }
10902 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10903 _pkg_short_errors_supported=yes
10904 else
10905 _pkg_short_errors_supported=no
10907 if test $_pkg_short_errors_supported = yes; then
10908 libmicrohttpd_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libmicrohttpd > 0.9.9" 2>&1`
10909 else
10910 libmicrohttpd_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libmicrohttpd > 0.9.9" 2>&1`
10912 # Put the nasty error message in config.log where it belongs
10913 echo "$libmicrohttpd_PKG_ERRORS" >&5
10915 have_libmicrohttpd=false
10916 elif test $pkg_failed = untried; then
10917 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10918 $as_echo "no" >&6; }
10919 have_libmicrohttpd=false
10920 else
10921 libmicrohttpd_CFLAGS=$pkg_cv_libmicrohttpd_CFLAGS
10922 libmicrohttpd_LIBS=$pkg_cv_libmicrohttpd_LIBS
10923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10924 $as_echo "yes" >&6; }
10925 have_libmicrohttpd=true
10927 HAVE_LIBMICROHTTPD=$have_libmicrohttpd
10931 pkg_failed=no
10932 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo" >&5
10933 $as_echo_n "checking for cairo... " >&6; }
10935 if test -n "$cairo_CFLAGS"; then
10936 pkg_cv_cairo_CFLAGS="$cairo_CFLAGS"
10937 elif test -n "$PKG_CONFIG"; then
10938 if test -n "$PKG_CONFIG" && \
10939 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo >= 1.2, cairo-ft >= 1.2, cairo-png >= 1.2\""; } >&5
10940 ($PKG_CONFIG --exists --print-errors "cairo >= 1.2, cairo-ft >= 1.2, cairo-png >= 1.2") 2>&5
10941 ac_status=$?
10942 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10943 test $ac_status = 0; }; then
10944 pkg_cv_cairo_CFLAGS=`$PKG_CONFIG --cflags "cairo >= 1.2, cairo-ft >= 1.2, cairo-png >= 1.2" 2>/dev/null`
10945 test "x$?" != "x0" && pkg_failed=yes
10946 else
10947 pkg_failed=yes
10949 else
10950 pkg_failed=untried
10952 if test -n "$cairo_LIBS"; then
10953 pkg_cv_cairo_LIBS="$cairo_LIBS"
10954 elif test -n "$PKG_CONFIG"; then
10955 if test -n "$PKG_CONFIG" && \
10956 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo >= 1.2, cairo-ft >= 1.2, cairo-png >= 1.2\""; } >&5
10957 ($PKG_CONFIG --exists --print-errors "cairo >= 1.2, cairo-ft >= 1.2, cairo-png >= 1.2") 2>&5
10958 ac_status=$?
10959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10960 test $ac_status = 0; }; then
10961 pkg_cv_cairo_LIBS=`$PKG_CONFIG --libs "cairo >= 1.2, cairo-ft >= 1.2, cairo-png >= 1.2" 2>/dev/null`
10962 test "x$?" != "x0" && pkg_failed=yes
10963 else
10964 pkg_failed=yes
10966 else
10967 pkg_failed=untried
10972 if test $pkg_failed = yes; then
10973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10974 $as_echo "no" >&6; }
10976 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10977 _pkg_short_errors_supported=yes
10978 else
10979 _pkg_short_errors_supported=no
10981 if test $_pkg_short_errors_supported = yes; then
10982 cairo_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cairo >= 1.2, cairo-ft >= 1.2, cairo-png >= 1.2" 2>&1`
10983 else
10984 cairo_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cairo >= 1.2, cairo-ft >= 1.2, cairo-png >= 1.2" 2>&1`
10986 # Put the nasty error message in config.log where it belongs
10987 echo "$cairo_PKG_ERRORS" >&5
10989 have_cairo=false
10990 elif test $pkg_failed = untried; then
10991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10992 $as_echo "no" >&6; }
10993 have_cairo=false
10994 else
10995 cairo_CFLAGS=$pkg_cv_cairo_CFLAGS
10996 cairo_LIBS=$pkg_cv_cairo_LIBS
10997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10998 $as_echo "yes" >&6; }
10999 have_cairo=true
11001 HAVE_CAIRO=$have_cairo
11004 enable_webapi=false
11005 if test "x$do_webapi" != "xno"; then :
11007 enable_webapi=true
11009 if test "$have_libmicrohttpd" != "true"
11010 then
11011 enable_webapi=false
11012 test "$do_webapi" != "check" && \
11013 as_fn_error $? "libmicrohttpd is not installed, cannot enable the web API" "$LINENO" 5
11014 elif test "$do_webapi" != "check" -a "x$cxx" = "x"
11015 then
11016 enable_webapi=false
11017 test "$do_webapi" != "check" && \
11018 as_fn_error $? "C++ compiler unavailable, cannot enable the web API" "$LINENO" 5
11024 enable_manager=false
11025 if test "x$do_manager" != "xno"; then :
11027 enable_manager=true
11029 if test "$target_os" = "mingw"
11030 then
11031 enable_manager=false
11032 test "$do_manager" != "check" && \
11033 as_fn_error $? "MinGW build, cannot enable daemon manager" "$LINENO" 5
11034 elif test "x$cxx" = "x"
11035 then
11036 enable_manager=false
11037 test "$do_manager" != "check" && \
11038 as_fn_error $? "C++ compiler unavailable, cannot enable daemon manager" "$LINENO" 5
11040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compilation features for daemon manager" >&5
11041 $as_echo_n "checking compilation features for daemon manager... " >&6; }
11042 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11043 /* end confdefs.h. */
11044 #ifndef _XOPEN_SOURCE
11045 #define _XOPEN_SOURCE 600
11046 #endif
11047 #include <stdio.h>
11050 main ()
11054 return 0;
11056 _ACEOF
11057 if ac_fn_c_try_compile "$LINENO"; then :
11058 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11059 $as_echo "yes" >&6; }
11060 else
11061 enable_manager=false
11062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11063 $as_echo "no" >&6; }
11065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11070 enable_selinux=false
11071 if test "x$do_selinux" != "xno"; then :
11073 if test -f /usr/share/selinux/devel/Makefile
11074 then
11075 enable_selinux=true
11076 else
11077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11078 $as_echo "no" >&6; }
11086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
11087 $as_echo_n "checking return type of signal handlers... " >&6; }
11088 if ${ac_cv_type_signal+:} false; then :
11089 $as_echo_n "(cached) " >&6
11090 else
11091 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11092 /* end confdefs.h. */
11093 #include <sys/types.h>
11094 #include <signal.h>
11097 main ()
11099 return *(signal (0, 0)) (0) == 1;
11101 return 0;
11103 _ACEOF
11104 if ac_fn_c_try_compile "$LINENO"; then :
11105 ac_cv_type_signal=int
11106 else
11107 ac_cv_type_signal=void
11109 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
11112 $as_echo "$ac_cv_type_signal" >&6; }
11114 cat >>confdefs.h <<_ACEOF
11115 #define RETSIGTYPE $ac_cv_type_signal
11116 _ACEOF
11119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wait3 that fills in rusage" >&5
11120 $as_echo_n "checking for wait3 that fills in rusage... " >&6; }
11121 if ${ac_cv_func_wait3_rusage+:} false; then :
11122 $as_echo_n "(cached) " >&6
11123 else
11124 if test "$cross_compiling" = yes; then :
11125 ac_cv_func_wait3_rusage=no
11126 else
11127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11128 /* end confdefs.h. */
11129 $ac_includes_default
11130 #include <sys/time.h>
11131 #include <sys/resource.h>
11132 #include <sys/wait.h>
11133 /* HP-UX has wait3 but does not fill in rusage at all. */
11135 main ()
11137 struct rusage r;
11138 int i;
11139 /* Use a field that we can force nonzero --
11140 voluntary context switches.
11141 For systems like NeXT and OSF/1 that don't set it,
11142 also use the system CPU time. And page faults (I/O) for Linux. */
11143 r.ru_nvcsw = 0;
11144 r.ru_stime.tv_sec = 0;
11145 r.ru_stime.tv_usec = 0;
11146 r.ru_majflt = r.ru_minflt = 0;
11147 switch (fork ())
11149 case 0: /* Child. */
11150 sleep(1); /* Give up the CPU. */
11151 _exit(0);
11152 break;
11153 case -1: /* What can we do? */
11154 _exit(0);
11155 break;
11156 default: /* Parent. */
11157 wait3(&i, 0, &r);
11158 /* Avoid "text file busy" from rm on fast HP-UX machines. */
11159 sleep(2);
11160 return (r.ru_nvcsw == 0 && r.ru_majflt == 0 && r.ru_minflt == 0
11161 && r.ru_stime.tv_sec == 0 && r.ru_stime.tv_usec == 0);
11164 _ACEOF
11165 if ac_fn_c_try_run "$LINENO"; then :
11166 ac_cv_func_wait3_rusage=yes
11167 else
11168 ac_cv_func_wait3_rusage=no
11170 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11171 conftest.$ac_objext conftest.beam conftest.$ac_ext
11175 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_wait3_rusage" >&5
11176 $as_echo "$ac_cv_func_wait3_rusage" >&6; }
11177 if test $ac_cv_func_wait3_rusage = yes; then
11179 $as_echo "#define HAVE_WAIT3 1" >>confdefs.h
11183 for ac_func in vprintf
11184 do :
11185 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
11186 if test "x$ac_cv_func_vprintf" = xyes; then :
11187 cat >>confdefs.h <<_ACEOF
11188 #define HAVE_VPRINTF 1
11189 _ACEOF
11191 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
11192 if test "x$ac_cv_func__doprnt" = xyes; then :
11194 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
11199 done
11202 for ac_func in mktime nanosleep usleep unsetenv
11203 do :
11204 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11205 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11206 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11207 cat >>confdefs.h <<_ACEOF
11208 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11209 _ACEOF
11212 done
11214 for ac_func in select socket gethostname getpeerucred getpeereid
11215 do :
11216 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11217 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11218 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11219 cat >>confdefs.h <<_ACEOF
11220 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11221 _ACEOF
11224 done
11226 for ac_func in uname syslog __clone pipe2 fcntl ioctl
11227 do :
11228 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11229 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11230 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11231 cat >>confdefs.h <<_ACEOF
11232 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11233 _ACEOF
11236 done
11238 for ac_func in prctl setlinebuf waitpid atexit kill
11239 do :
11240 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11241 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11242 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11243 cat >>confdefs.h <<_ACEOF
11244 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11245 _ACEOF
11248 done
11250 for ac_func in chown fchmod getcwd scandir mkstemp
11251 do :
11252 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11253 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11254 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11255 cat >>confdefs.h <<_ACEOF
11256 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11257 _ACEOF
11260 done
11262 for ac_func in brk sbrk posix_memalign memalign valloc
11263 do :
11264 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11265 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11266 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11267 cat >>confdefs.h <<_ACEOF
11268 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11269 _ACEOF
11272 done
11274 for ac_func in signal sighold sigrelse tcgetattr
11275 do :
11276 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11277 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11278 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11279 cat >>confdefs.h <<_ACEOF
11280 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11281 _ACEOF
11284 done
11286 for ac_func in regex regcmp regexec regcomp
11287 do :
11288 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11289 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11290 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11291 cat >>confdefs.h <<_ACEOF
11292 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11293 _ACEOF
11296 done
11298 for ac_func in strtod strtol strtoll strtoull strndup strchrnul
11299 do :
11300 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11301 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11302 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11303 cat >>confdefs.h <<_ACEOF
11304 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11305 _ACEOF
11308 done
11310 for ac_func in getuid getgid
11311 do :
11312 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11313 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11314 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11315 cat >>confdefs.h <<_ACEOF
11316 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11317 _ACEOF
11320 done
11322 for ac_func in getgrent getgrent_r getgrnam getgrnam_r getgrgid getgrgid_r
11323 do :
11324 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11325 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11326 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11327 cat >>confdefs.h <<_ACEOF
11328 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11329 _ACEOF
11332 done
11334 for ac_func in getpwent getpwent_r getpwnam getpwnam_r getpwuid getpwuid_r
11335 do :
11336 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11337 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11338 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11339 cat >>confdefs.h <<_ACEOF
11340 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11341 _ACEOF
11344 done
11346 for ac_func in sysinfo trace_back_stack backtrace
11347 do :
11348 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11349 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11350 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11351 cat >>confdefs.h <<_ACEOF
11352 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11353 _ACEOF
11356 done
11358 for ac_func in sendmsg recvmsg setns
11359 do :
11360 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11361 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11362 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11363 cat >>confdefs.h <<_ACEOF
11364 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11365 _ACEOF
11368 done
11371 if test $target_os != linux -a $target_os != freebsd -a $target_os != kfreebsd -a $target_os != netbsd; then
11372 for ac_func in readdir64
11373 do :
11374 ac_fn_c_check_func "$LINENO" "readdir64" "ac_cv_func_readdir64"
11375 if test "x$ac_cv_func_readdir64" = xyes; then :
11376 cat >>confdefs.h <<_ACEOF
11377 #define HAVE_READDIR64 1
11378 _ACEOF
11381 done
11385 if test $target_os = solaris
11386 then
11387 ac_fn_c_check_type "$LINENO" "__int32_t" "ac_cv_type___int32_t" "$ac_includes_default"
11388 if test "x$ac_cv_type___int32_t" = xyes; then :
11390 else
11392 cat >>confdefs.h <<_ACEOF
11393 #define __int32_t int32_t
11394 _ACEOF
11398 ac_fn_c_check_type "$LINENO" "__uint32_t" "ac_cv_type___uint32_t" "$ac_includes_default"
11399 if test "x$ac_cv_type___uint32_t" = xyes; then :
11401 else
11403 cat >>confdefs.h <<_ACEOF
11404 #define __uint32_t uint32_t
11405 _ACEOF
11409 ac_fn_c_check_type "$LINENO" "__int64_t" "ac_cv_type___int64_t" "$ac_includes_default"
11410 if test "x$ac_cv_type___int64_t" = xyes; then :
11412 else
11414 cat >>confdefs.h <<_ACEOF
11415 #define __int64_t int64_t
11416 _ACEOF
11420 ac_fn_c_check_type "$LINENO" "__uint64_t" "ac_cv_type___uint64_t" "$ac_includes_default"
11421 if test "x$ac_cv_type___uint64_t" = xyes; then :
11423 else
11425 cat >>confdefs.h <<_ACEOF
11426 #define __uint64_t uint64_t
11427 _ACEOF
11431 ac_fn_c_check_type "$LINENO" "uint_t" "ac_cv_type_uint_t" "$ac_includes_default"
11432 if test "x$ac_cv_type_uint_t" = xyes; then :
11434 else
11436 cat >>confdefs.h <<_ACEOF
11437 #define uint_t u_int32_t
11438 _ACEOF
11442 else
11443 ac_fn_c_check_type "$LINENO" "__int32_t" "ac_cv_type___int32_t" "$ac_includes_default"
11444 if test "x$ac_cv_type___int32_t" = xyes; then :
11446 else
11448 cat >>confdefs.h <<_ACEOF
11449 #define __int32_t int
11450 _ACEOF
11454 ac_fn_c_check_type "$LINENO" "__uint32_t" "ac_cv_type___uint32_t" "$ac_includes_default"
11455 if test "x$ac_cv_type___uint32_t" = xyes; then :
11457 else
11459 cat >>confdefs.h <<_ACEOF
11460 #define __uint32_t unsigned int
11461 _ACEOF
11465 ac_fn_c_check_type "$LINENO" "__int64_t" "ac_cv_type___int64_t" "$ac_includes_default"
11466 if test "x$ac_cv_type___int64_t" = xyes; then :
11468 else
11470 cat >>confdefs.h <<_ACEOF
11471 #define __int64_t long long
11472 _ACEOF
11476 ac_fn_c_check_type "$LINENO" "__uint64_t" "ac_cv_type___uint64_t" "$ac_includes_default"
11477 if test "x$ac_cv_type___uint64_t" = xyes; then :
11479 else
11481 cat >>confdefs.h <<_ACEOF
11482 #define __uint64_t unsigned long long
11483 _ACEOF
11487 ac_fn_c_check_type "$LINENO" "uint_t" "ac_cv_type_uint_t" "$ac_includes_default"
11488 if test "x$ac_cv_type_uint_t" = xyes; then :
11490 else
11492 cat >>confdefs.h <<_ACEOF
11493 #define uint_t unsigned int
11494 _ACEOF
11500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __psint_t " >&5
11501 $as_echo_n "checking for __psint_t ... " >&6; }
11502 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11503 /* end confdefs.h. */
11505 #include <sys/types.h>
11506 #include <stdlib.h>
11507 #include <stddef.h>
11510 main ()
11512 __psint_t psint;
11514 return 0;
11516 _ACEOF
11517 if ac_fn_c_try_compile "$LINENO"; then :
11519 $as_echo "#define HAVE___PSINT_T 1" >>confdefs.h
11520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11521 $as_echo "yes" >&6; }
11522 else
11523 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11524 $as_echo "no" >&6; }
11526 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ptrdiff_t " >&5
11529 $as_echo_n "checking for ptrdiff_t ... " >&6; }
11530 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11531 /* end confdefs.h. */
11533 #include <stddef.h>
11534 #ifdef HAVE_MALLOC_H
11535 #include <malloc.h>
11536 #endif
11539 main ()
11541 ptrdiff_t ptrdiff;
11543 return 0;
11545 _ACEOF
11546 if ac_fn_c_try_compile "$LINENO"; then :
11548 $as_echo "#define HAVE_PTRDIFF_T 1" >>confdefs.h
11549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11550 $as_echo "yes" >&6; }
11551 else
11552 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11553 $as_echo "no" >&6; }
11555 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t " >&5
11558 $as_echo_n "checking for uid_t ... " >&6; }
11559 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11560 /* end confdefs.h. */
11562 #include <sys/types.h>
11563 #ifdef HAVE_PWD_H
11564 #include <pwd.h>
11565 #endif
11568 main ()
11570 uid_t uid;
11572 return 0;
11574 _ACEOF
11575 if ac_fn_c_try_compile "$LINENO"; then :
11577 $as_echo "#define HAVE_UID_T 1" >>confdefs.h
11578 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11579 $as_echo "yes" >&6; }
11580 else
11581 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11582 $as_echo "no" >&6; }
11584 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gid_t " >&5
11586 $as_echo_n "checking for gid_t ... " >&6; }
11587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11588 /* end confdefs.h. */
11590 #include <sys/types.h>
11591 #ifdef HAVE_GRP_H
11592 #include <grp.h>
11593 #endif
11596 main ()
11598 gid_t gid;
11600 return 0;
11602 _ACEOF
11603 if ac_fn_c_try_compile "$LINENO"; then :
11605 $as_echo "#define HAVE_GID_T 1" >>confdefs.h
11606 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11607 $as_echo "yes" >&6; }
11608 else
11609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11610 $as_echo "no" >&6; }
11612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11613 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SID " >&5
11614 $as_echo_n "checking for SID ... " >&6; }
11615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11616 /* end confdefs.h. */
11618 #ifdef HAVE_WINDOWS_H
11619 #include <windows.h>
11620 #endif
11623 main ()
11625 SID sid;
11627 return 0;
11629 _ACEOF
11630 if ac_fn_c_try_compile "$LINENO"; then :
11632 $as_echo "#define HAVE_SID 1" >>confdefs.h
11633 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11634 $as_echo "yes" >&6; }
11635 else
11636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11637 $as_echo "no" >&6; }
11639 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t " >&5
11642 $as_echo_n "checking for socklen_t ... " >&6; }
11643 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11644 /* end confdefs.h. */
11646 #include <sys/types.h>
11647 #ifdef HAVE_SYS_SOCKET_H
11648 #include <sys/socket.h>
11649 #endif
11652 main ()
11654 socklen_t len;
11656 return 0;
11658 _ACEOF
11659 if ac_fn_c_try_compile "$LINENO"; then :
11661 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
11662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11663 $as_echo "yes" >&6; }
11664 else
11665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11666 $as_echo "no" >&6; }
11668 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11671 /* end confdefs.h. */
11673 #include <stdio.h>
11676 main ()
11678 long long x = 0LL;
11680 return 0;
11682 _ACEOF
11683 if ac_fn_c_try_compile "$LINENO"; then :
11685 $as_echo "#define HAVE_CONST_LONGLONG 1" >>confdefs.h
11688 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11691 /* end confdefs.h. */
11693 #include <stdlib.h>
11694 #include <unistd.h>
11697 main ()
11699 char **x = _environ;
11701 return 0;
11703 _ACEOF
11704 if ac_fn_c_try_link "$LINENO"; then :
11706 $as_echo "#define HAVE_UNDERBAR_ENVIRON 1" >>confdefs.h
11709 rm -f core conftest.err conftest.$ac_objext \
11710 conftest$ac_exeext conftest.$ac_ext
11712 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PR_TERMCHILD constant in sys/prctl.h" >&5
11713 $as_echo_n "checking for PR_TERMCHILD constant in sys/prctl.h... " >&6; }
11714 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11715 /* end confdefs.h. */
11717 #ifdef HAVE_SYS_PRCTL_H
11718 #include <sys/prctl.h>
11719 #endif
11722 main ()
11724 int i = PR_TERMCHILD;
11726 return 0;
11728 _ACEOF
11729 if ac_fn_c_try_compile "$LINENO"; then :
11731 $as_echo "#define HAVE_PR_TERMCHILD 1" >>confdefs.h
11732 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11733 $as_echo "yes" >&6; }
11734 else
11735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11736 $as_echo "no" >&6; }
11738 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11740 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PR_SET_PDEATHSIG constant in sys/prctl.h" >&5
11741 $as_echo_n "checking for PR_SET_PDEATHSIG constant in sys/prctl.h... " >&6; }
11742 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11743 /* end confdefs.h. */
11745 #ifdef HAVE_SYS_PRCTL_H
11746 #include <sys/prctl.h>
11747 #endif
11750 main ()
11752 int i = PR_SET_PDEATHSIG;
11754 return 0;
11756 _ACEOF
11757 if ac_fn_c_try_compile "$LINENO"; then :
11759 $as_echo "#define HAVE_PR_SET_PDEATHSIG 1" >>confdefs.h
11760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11761 $as_echo "yes" >&6; }
11762 else
11763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11764 $as_echo "no" >&6; }
11766 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
11769 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
11770 if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false; then :
11771 $as_echo_n "(cached) " >&6
11772 else
11773 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11774 /* end confdefs.h. */
11775 #include <sys/types.h>
11776 #include <termios.h>
11777 #ifdef TIOCGWINSZ
11779 #endif
11781 _ACEOF
11782 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11783 $EGREP "yes" >/dev/null 2>&1; then :
11784 ac_cv_sys_tiocgwinsz_in_termios_h=yes
11785 else
11786 ac_cv_sys_tiocgwinsz_in_termios_h=no
11788 rm -f conftest*
11791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
11792 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
11794 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
11795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
11796 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
11797 if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false; then :
11798 $as_echo_n "(cached) " >&6
11799 else
11800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11801 /* end confdefs.h. */
11802 #include <sys/types.h>
11803 #include <sys/ioctl.h>
11804 #ifdef TIOCGWINSZ
11806 #endif
11808 _ACEOF
11809 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11810 $EGREP "yes" >/dev/null 2>&1; then :
11811 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
11812 else
11813 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
11815 rm -f conftest*
11818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
11819 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
11821 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
11823 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
11829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports -rdynamic" >&5
11830 $as_echo_n "checking if linker supports -rdynamic... " >&6; }
11831 save_CFLAGS="$CFLAGS"
11832 CFLAGS="-rdynamic"
11833 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11834 /* end confdefs.h. */
11837 main ()
11841 return 0;
11843 _ACEOF
11844 if ac_fn_c_try_link "$LINENO"; then :
11845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11846 $as_echo "yes" >&6; }
11847 rdynamic_flag=-rdynamic
11848 else
11849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11850 $as_echo "no" >&6; }
11851 rdynamic_flag=
11854 rm -f core conftest.err conftest.$ac_objext \
11855 conftest$ac_exeext conftest.$ac_ext
11856 CFLAGS="$save_CFLAGS"
11860 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether const arg for scandir() select method" >&5
11861 $as_echo_n "checking whether const arg for scandir() select method... " >&6; }
11862 cat <<End-of-File >conftest.c
11863 #include <stdlib.h>
11864 #include <unistd.h>
11865 #include <dirent.h>
11866 static int
11867 my_select(const struct dirent *foo) { return 0; }
11868 int main() { struct dirent **list; return scandir(".", &list, my_select, NULL); }
11869 End-of-File
11870 (eval $ac_compile) 2>conftest.out
11871 cat conftest.out >&5
11872 if test -s conftest.out
11873 then
11874 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11875 $as_echo "no" >&6; }
11876 else
11878 $as_echo "#define HAVE_CONST_DIRENT 1" >>confdefs.h
11880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11881 $as_echo "yes" >&6; }
11883 rm -f conftest.*
11885 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct dirent has a d_off field" >&5
11886 $as_echo_n "checking whether struct dirent has a d_off field... " >&6; }
11887 cat <<End-of-File >conftest.c
11888 #include <stdlib.h>
11889 #include <unistd.h>
11890 #include <dirent.h>
11891 int main() { struct dirent d; d.d_off = 0; }
11892 End-of-File
11893 (eval $ac_compile) 2>conftest.out
11894 cat conftest.out >&5
11895 if test -s conftest.out
11896 then
11897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11898 $as_echo "no" >&6; }
11899 else
11901 $as_echo "#define HAVE_DIRENT_D_OFF 1" >>confdefs.h
11903 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11904 $as_echo "yes" >&6; }
11906 rm -f conftest.*
11908 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if printf %p produces 0x prefix" >&5
11909 $as_echo_n "checking if printf %p produces 0x prefix... " >&6; }
11910 if test "$cross_compiling" = "yes"; then
11911 ans=$printf_p_prefix
11912 echo "cross-compile -> \"$ans\"" >&5
11913 else
11914 cat <<End-of-File >conftest.c
11915 #include <stdio.h>
11916 int main(int argc, char **argv) { printf("%p", argv); return(0); }
11917 End-of-File
11918 (eval $ac_compile) 2>&5
11919 (eval $ac_link) 2>&5
11920 ans=`./conftest`
11921 echo "./conftest -> \"$ans\"" >&5
11923 case "$ans"
11925 0x*)
11927 $as_echo "#define HAVE_PRINTF_P_PFX 1" >>confdefs.h
11929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11930 $as_echo "yes" >&6; }
11933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11934 $as_echo "no" >&6; }
11936 esac
11937 rm -rf conftest conftest.*
11939 _do_type()
11941 # need to deal with this sort of cpp output ...
11942 # typedef long pid_t;
11943 # typedef unsigned int pid_t;
11944 # typedef unsigned int pid_t __attribute__ ((__mode__ (__SI__)));
11945 # __extension__ typedef int pid_t;
11946 # typedef foo_t
11947 # pid_t;
11948 # typedef struct {
11949 # ....
11950 # } pid_t;
11951 # typedef ... *pid;
11952 # and chaining of the form
11953 # typedef long __pid_t;
11954 # typedef __pid_t pid_t;
11956 _raw=`$CPP conftest.c \
11957 | $SED \
11958 -e 's/[ ]__attribute__ ((.*));/;/' \
11959 -e 's/__extension__[ ][ ]*//' \
11960 | $AWK '
11961 /bozo/ { print; next }
11962 $1 == "typedef" { printf "%s",$0
11963 if ($NF ~ /;$/) {
11964 print ""
11965 next
11967 wantsemi = 1
11968 if ($0 ~ /{/) depth = 1
11969 next
11971 wantsemi == 1 { printf " %s",$0
11972 if ($0 ~ /{/) depth++
11973 if (depth) {
11974 if ($0 ~ /}/) depth--
11975 if (depth > 0) next
11977 if ($NF ~ /;$/) {
11978 print ""
11979 wantsemi = 0
11980 next
11982 }' \
11983 | $SED \
11984 -e 's/\*/* /g' \
11985 -e 's/^[ ]*//' \
11986 -e 's/;[ ]*$//' \
11987 | $AWK '
11988 $1 == "typedef" { map[$NF] = ""
11989 for (i = 2; i < NF; i++) {
11990 if (i == 2)
11991 map[$NF] = $i
11992 else
11993 map[$NF] = map[$NF] " " $i
11995 print $NF " -> " map[$NF] >"conftest.debug"
11996 next
11998 $2 == "bozo" { t = $1
11999 printf "best guess: %s",t >"conftest.debug"
12000 while (map[t] != "") {
12001 t = map[t]
12002 printf " -> %s",t >"conftest.debug"
12004 print "" >"conftest.debug"
12005 print t
12006 exit
12008 case "$_raw"
12010 int)
12011 _fmt='"d"'
12013 unsigned|'unsigned int')
12014 _fmt='"u"'
12016 long|'long int')
12017 _fmt='"ld"'
12019 'long long'|'long long int')
12020 if test $target_os = mingw; then
12021 _fmt='"I64d"'
12022 else
12023 _fmt='"lld"'
12026 'unsigned long'|'unsigned long int'|'long unsigned int')
12027 _fmt='"lu"'
12029 'unsigned long long'|'unsigned long long int')
12030 if test $target_os = mingw; then
12031 _fmt='"I64u"'
12032 else
12033 _fmt='"llu"'
12036 *\*) # pointer to a something
12037 _fmt='"p"'
12039 struct\ *) # not much can be done here ...
12040 _fmt='"p"'
12043 echo
12044 echo "FATAL ERROR: don't know what to do with type \"$_raw\""
12045 echo "... typedef mapping ..."
12046 cat conftest.debug
12047 rm -rf conftest conftest.*
12048 exit 1
12050 esac
12053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking printf type for pid_t" >&5
12054 $as_echo_n "checking printf type for pid_t... " >&6; }
12055 if test "$cross_compiling" = "yes"; then
12056 ans=$printf_fmt_pid
12057 echo "cross-compile -> \"$ans\"" >&5
12058 fmt_pid="$ans"
12059 else
12060 cat <<End-of-File >conftest.c
12061 #include <sys/types.h>
12062 #include <unistd.h>
12063 pid_t bozo;
12064 End-of-File
12065 _do_type
12066 fmt_pid="$_fmt"
12068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fmt_pid" >&5
12069 $as_echo "$fmt_pid" >&6; }
12071 rm -rf conftest.c conftest.debug
12073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking printf type for int64_t " >&5
12074 $as_echo_n "checking printf type for int64_t ... " >&6; }
12075 if test "$cross_compiling" = "yes"; then
12076 ans=$printf_fmt_int64
12077 echo "cross-compile -> \"$ans\"" >&5
12078 else
12079 cat <<End-of-File >conftest.c
12080 #include <stdio.h>
12081 #include <stdint.h>
12082 #include <inttypes.h>
12083 int main()
12085 printf("\"%s\"\n", __PRI64_PREFIX "d");
12086 return(0);
12088 End-of-File
12089 ans=''
12090 (eval $ac_link) 2>&5
12091 if test -x ./conftest
12092 then
12093 ans=`./conftest`
12094 echo "./conftest -> \"$ans\"" >&5
12096 if test -z "$ans"
12097 then
12098 cat <<End-of-File >conftest.c
12099 #include <stdio.h>
12100 #include <stdint.h>
12101 #include <string.h>
12102 int main()
12104 char buf[17];
12105 int64_t bozo = 0x12345678abcdLL;
12106 sprintf(buf, "%lx", bozo);
12107 if (strcmp(buf, "12345678abcd") == 0)
12108 printf("\"ld\"\n");
12109 else {
12110 sprintf(buf, "%llx", bozo);
12111 if (strcmp(buf, "12345678abcd") == 0)
12112 printf("\"lld\"\n");
12114 return(0);
12116 End-of-File
12117 (eval $ac_link) 2>&5
12118 if test -x ./conftest
12119 then
12120 ans=`./conftest`
12121 echo "./conftest -> \"$ans\"" >&5
12125 if test -z "$ans"
12126 then
12127 echo 'FATAL ERROR: Cannot determine printf format for int64_t type'
12128 rm -rf conftest conftest.*
12129 exit 1
12131 fmt_int64="$ans"
12132 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$fmt_int64\"" >&5
12133 $as_echo "\"$fmt_int64\"" >&6; }
12135 fmt_uint64=`echo $fmt_int64 | sed -e 's/d"/u"/'`
12137 rm -rf conftest.* conftest
12139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking strtol or strtoll for int64_t" >&5
12140 $as_echo_n "checking strtol or strtoll for int64_t... " >&6; }
12141 if test "$cross_compiling" = "yes"; then
12142 ans=$strtoint64
12143 echo "cross-compile -> \"$ans\"" >&5
12144 else
12145 cat <<End-of-File >conftest.c
12146 #include <stdio.h>
12147 #include <stdlib.h>
12148 main()
12150 long long int value = -1;
12151 value = strtol("1234567812345678", NULL, 16);
12152 if (value == 0x1234567812345678LL) {
12153 printf("strotol\n");
12154 exit(0);
12156 value = strtoll("1234567812345678", NULL, 16);
12157 if (value == 0x1234567812345678LL) {
12158 printf("strtoll\n");
12159 exit(0);
12161 exit(1);
12163 End-of-File
12164 (eval $ac_compile) 2>&5
12165 (eval $ac_link) 2>&5
12166 ans=`./conftest`
12167 echo "./conftest -> \"$ans\"" >&5
12169 case "$ans"
12171 strtol)
12172 $as_echo "#define strtoint64 strtol" >>confdefs.h
12174 $as_echo "#define strtouint64 strtoul" >>confdefs.h
12176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: strtol" >&5
12177 $as_echo "strtol" >&6; }
12179 strtoll)
12180 $as_echo "#define strtoint64 strtoll" >>confdefs.h
12182 $as_echo "#define strtouint64 strtoull" >>confdefs.h
12184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: strtoll" >&5
12185 $as_echo "strtoll" >&6; }
12188 $as_echo "#define strtoint64 strtoll" >>confdefs.h
12190 $as_echo "#define strtouint64 strtoull" >>confdefs.h
12192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: assuming strtoll" >&5
12193 $as_echo "assuming strtoll" >&6; }
12195 esac
12196 rm -rf conftest conftest.*
12198 if test "$do_threads" = "check" -o "$do_threads" = "yes"
12199 then
12200 for ac_header in pthread.h
12201 do :
12202 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
12203 if test "x$ac_cv_header_pthread_h" = xyes; then :
12204 cat >>confdefs.h <<_ACEOF
12205 #define HAVE_PTHREAD_H 1
12206 _ACEOF
12208 else
12210 if test "$do_threads" = "yes"
12211 then
12212 as_fn_error $? "cannot enable multi-threaded mode - no pthread.h" "$LINENO" 5
12217 done
12220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_t in pthread.h" >&5
12221 $as_echo_n "checking for pthread_mutex_t in pthread.h... " >&6; }
12222 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12223 /* end confdefs.h. */
12224 #include <pthread.h>
12226 main ()
12228 pthread_mutex_t mymutex;
12230 return 0;
12232 _ACEOF
12233 if ac_fn_c_try_compile "$LINENO"; then :
12235 $as_echo "#define HAVE_PTHREAD_MUTEX_T 1" >>confdefs.h
12236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12237 $as_echo "yes" >&6; }
12238 else
12240 if test "$do_threads" = "yes"
12241 then
12242 as_fn_error $? "cannot enable multi-threaded mode - no mutexes" "$LINENO" 5
12243 else
12244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12245 $as_echo "no" >&6; }
12249 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where pthread_create() is defined" >&5
12252 $as_echo_n "checking where pthread_create() is defined... " >&6; }
12253 for cand in "" pthreads pthread ; do
12254 savedLIBS=$LIBS
12255 if test -n "$cand"
12256 then
12257 LIBS=`echo $LIBS -l$cand`
12259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12260 /* end confdefs.h. */
12262 #include <pthread.h>
12265 main ()
12268 pthread_create(NULL, NULL, NULL, NULL);
12271 return 0;
12273 _ACEOF
12274 if ac_fn_c_try_link "$LINENO"; then :
12275 { $as_echo "$as_me:${as_lineno-$LINENO}: result: lib${cand:-c}" >&5
12276 $as_echo "lib${cand:-c}" >&6; }
12277 if test -z "$cand"
12278 then
12279 lib_for_pthreads="$cand"
12280 else
12281 lib_for_pthreads="-l$cand"
12283 LIBS=$savedLIBS
12284 break
12286 rm -f core conftest.err conftest.$ac_objext \
12287 conftest$ac_exeext conftest.$ac_ext
12288 LIBS=$savedLIBS
12289 done
12292 if test "$ac_cv_header_pthread_h" = "yes"
12293 then
12294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking printf type for pthread_t" >&5
12295 $as_echo_n "checking printf type for pthread_t... " >&6; }
12296 cat <<End-of-File >conftest.c
12297 #include <pthread.h>
12298 pthread_t bozo;
12299 End-of-File
12300 _do_type
12301 fmt_pthread="$_fmt"
12302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fmt_pthread" >&5
12303 $as_echo "$fmt_pthread" >&6; }
12305 rm -rf conftest.c conftest.debug
12307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports __thread" >&5
12308 $as_echo_n "checking if compiler supports __thread... " >&6; }
12309 if test $target_os = netbsd
12310 then
12311 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12312 /* end confdefs.h. */
12313 #include <pthread.h>
12314 #if __GNUC__ < 4 || ( __GNUC__ == 4 && __GNUC_MINOR__ < 5 )
12315 broken!
12316 #else
12317 __thread int x;
12318 #endif
12320 main ()
12324 return 0;
12326 _ACEOF
12327 if ac_fn_c_try_compile "$LINENO"; then :
12329 $as_echo "#define HAVE___THREAD 1" >>confdefs.h
12330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12331 $as_echo "yes" >&6; }
12332 else
12333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12334 $as_echo "no" >&6; }
12336 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12337 else
12338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12339 /* end confdefs.h. */
12340 #include <pthread.h>
12341 __thread int x;
12343 main ()
12347 return 0;
12349 _ACEOF
12350 if ac_fn_c_try_compile "$LINENO"; then :
12352 $as_echo "#define HAVE___THREAD 1" >>confdefs.h
12353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12354 $as_echo "yes" >&6; }
12355 else
12356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12357 $as_echo "no" >&6; }
12359 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_barrier_t in pthread.h" >&5
12363 $as_echo_n "checking for pthread_barrier_t in pthread.h... " >&6; }
12364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12365 /* end confdefs.h. */
12366 #include <pthread.h>
12368 main ()
12370 pthread_barrier_t mybarrier;
12372 return 0;
12374 _ACEOF
12375 if ac_fn_c_try_compile "$LINENO"; then :
12377 $as_echo "#define HAVE_PTHREAD_BARRIER_T 1" >>confdefs.h
12378 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12379 $as_echo "yes" >&6; }
12380 else
12381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12382 $as_echo "no" >&6; }
12384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12388 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sizeof suseconds_t" >&5
12389 $as_echo_n "checking sizeof suseconds_t... " >&6; }
12390 if test "$cross_compiling" = "yes"; then
12391 ans=$sizeof_suseconds_t
12392 echo "cross-compile -> \"$ans\"" >&5
12393 else
12394 cat <<End-of-File >conftest.c
12395 #include <sys/time.h>
12396 main() { printf("%d", (int)sizeof(suseconds_t)); }
12397 End-of-File
12398 (eval $ac_compile) 2>&5
12399 (eval $ac_link) 2>&5
12400 ans=`./conftest`
12401 echo "./conftest -> \"$ans\"" >&5
12402 rm -rf conftest conftest.*
12404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
12405 $as_echo "$ans" >&6; }
12407 cat >>confdefs.h <<_ACEOF
12408 #define SIZEOF_SUSECONDS_T $ans
12409 _ACEOF
12412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sizeof time_t" >&5
12413 $as_echo_n "checking sizeof time_t... " >&6; }
12414 if test "$cross_compiling" = "yes"; then
12415 ans=$sizeof_time_t
12416 echo "cross-compile -> \"$ans\"" >&5
12417 else
12418 cat <<End-of-File >conftest.c
12419 #include <sys/time.h>
12420 main() { printf("%d", (int)sizeof(time_t)); }
12421 End-of-File
12422 (eval $ac_compile) 2>&5
12423 (eval $ac_link) 2>&5
12424 ans=`./conftest`
12425 echo "./conftest -> \"$ans\"" >&5
12426 rm -rf conftest conftest.*
12428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
12429 $as_echo "$ans" >&6; }
12431 cat >>confdefs.h <<_ACEOF
12432 #define SIZEOF_TIME_T $ans
12433 _ACEOF
12436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sizeof long" >&5
12437 $as_echo_n "checking sizeof long... " >&6; }
12438 if test "$cross_compiling" = "yes"; then
12439 ans=$sizeof_long
12440 echo "cross-compile -> \"$ans\"" >&5
12441 else
12442 cat <<End-of-File >conftest.c
12443 #include <stdio.h>
12444 main() { printf("%d", (int)sizeof(long)); }
12445 End-of-File
12446 (eval $ac_compile) 2>&5
12447 (eval $ac_link) 2>&5
12448 ans=`./conftest`
12449 echo "./conftest -> \"$ans\"" >&5
12451 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
12452 $as_echo "$ans" >&6; }
12453 if test "$ans" = 4; then
12455 $as_echo "#define HAVE_32BIT_LONG 1" >>confdefs.h
12457 elif test "$ans" = 8; then
12459 $as_echo "#define HAVE_64BIT_LONG 1" >>confdefs.h
12461 else
12462 echo
12463 echo "FATAL ERROR: size of long is not 32 or 64 bits, cannot proceed."
12464 echo "sizeof(char *) -> $ans"
12465 rm -rf conftest conftest.*
12466 exit 1
12468 rm -rf conftest conftest.*
12470 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sizeof pointer" >&5
12471 $as_echo_n "checking sizeof pointer... " >&6; }
12472 if test "$cross_compiling" = "yes"; then
12473 ans=$sizeof_pointer
12474 echo "cross-compile -> \"$ans\"" >&5
12475 else
12476 cat <<End-of-File >conftest.c
12477 #include <stdio.h>
12478 main() { printf("%d", (int)sizeof(char *)); }
12479 End-of-File
12480 (eval $ac_compile) 2>&5
12481 (eval $ac_link) 2>&5
12482 ans=`./conftest`
12483 echo "./conftest -> \"$ans\"" >&5
12485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
12486 $as_echo "$ans" >&6; }
12487 if test "$ans" = 4; then
12489 $as_echo "#define HAVE_32BIT_PTR 1" >>confdefs.h
12491 PCP_PTR_SIZE=32
12492 elif test "$ans" = 8; then
12494 $as_echo "#define HAVE_64BIT_PTR 1" >>confdefs.h
12496 PCP_PTR_SIZE=64
12497 else
12498 echo
12499 echo "FATAL ERROR: size of pointer is not 32 or 64 bits, cannot proceed."
12500 echo "sizeof(char *) -> $ans"
12501 rm -rf conftest conftest.*
12502 exit 1
12504 rm -rf conftest conftest.*
12506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sizeof int" >&5
12507 $as_echo_n "checking sizeof int... " >&6; }
12508 if test "$cross_compiling" = "yes"; then
12509 ans=$sizeof_int
12510 echo "cross-compile -> \"$ans\"" >&5
12511 else
12512 cat <<End-of-File >conftest.c
12513 #include <stdio.h>
12514 main() { printf("%d", (int)sizeof(int)); }
12515 End-of-File
12516 (eval $ac_compile) 2>&5
12517 (eval $ac_link) 2>&5
12518 ans=`./conftest`
12519 echo "./conftest -> \"$ans\"" >&5
12521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
12522 $as_echo "$ans" >&6; }
12523 if test "$ans" != 4
12524 then
12525 echo
12526 echo "FATAL ERROR: sizeof(int) is not 32 bits, cannot proceed."
12527 echo "Note: 32-bit ints are assumed in the PCP external file formats and"
12528 echo " the over-the-wire PDU formats"
12529 rm -rf conftest conftest.*
12530 exit 1
12532 rm -rf conftest conftest.*
12534 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bit fields allocated left-to-right" >&5
12535 $as_echo_n "checking if bit fields allocated left-to-right... " >&6; }
12536 if test "$cross_compiling" = "yes"; then
12537 ans=$bit_field_scheme
12538 echo "cross-compile -> \"$ans\"" >&5
12539 else
12540 cat <<End-of-File >conftest.c
12541 union { struct { unsigned int b:4; unsigned int c:4; } a; int p; } u;
12542 main() { u.a.b = 1; u.a.c = 2; printf("%0*x", 2*sizeof(int), u.p); }
12543 End-of-File
12544 (eval $ac_compile) 2>&5
12545 (eval $ac_link) 2>&5
12546 ans=`./conftest`
12547 echo "./conftest -> \"$ans\"" >&5
12549 case "$ans"
12551 1200*|*0012)
12552 # left-to-right starting from MSB (SGI cc on MIPS), or
12553 # left-to-right ending at LSB
12555 $as_echo "#define HAVE_BITFIELDS_LTOR 1" >>confdefs.h
12557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12558 $as_echo "yes" >&6; }
12560 2100*|*0021)
12561 # right-to-left ending at MSB, or
12562 # right-to-left starting from LSB (gcc in Intel)
12563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12564 $as_echo "no" >&6; }
12567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
12568 $as_echo "unknown" >&6; }
12569 echo "FATAL ERROR: could not fathom your compiler's bit field allocation scheme"
12570 rm -f conftest conftest.*
12571 exit 1
12573 esac
12574 rm -rf conftest conftest.*
12576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12577 /* end confdefs.h. */
12579 #include <stdlib.h>
12580 #include <unistd.h>
12583 main ()
12586 __uint64_t x = 0;
12587 double y = (double)x;
12590 return 0;
12592 _ACEOF
12593 if ac_fn_c_try_link "$LINENO"; then :
12595 $as_echo "#define HAVE_CAST_U64_DOUBLE 1" >>confdefs.h
12598 rm -f core conftest.err conftest.$ac_objext \
12599 conftest$ac_exeext conftest.$ac_ext
12601 for ac_func in basename
12602 do :
12603 ac_fn_c_check_func "$LINENO" "basename" "ac_cv_func_basename"
12604 if test "x$ac_cv_func_basename" = xyes; then :
12605 cat >>confdefs.h <<_ACEOF
12606 #define HAVE_BASENAME 1
12607 _ACEOF
12610 done
12612 if test $ac_cv_func_basename = yes
12613 then
12615 $as_echo "#define HAVE_BASENAME 1" >>confdefs.h
12618 $as_echo "#define HAVE_DIRNAME 1" >>confdefs.h
12620 lib_for_basename=""
12621 else
12622 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for basename in -lgen" >&5
12623 $as_echo_n "checking for basename in -lgen... " >&6; }
12624 if ${ac_cv_lib_gen_basename+:} false; then :
12625 $as_echo_n "(cached) " >&6
12626 else
12627 ac_check_lib_save_LIBS=$LIBS
12628 LIBS="-lgen $LIBS"
12629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12630 /* end confdefs.h. */
12632 /* Override any GCC internal prototype to avoid an error.
12633 Use char because int might match the return type of a GCC
12634 builtin and then its argument prototype would still apply. */
12635 #ifdef __cplusplus
12636 extern "C"
12637 #endif
12638 char basename ();
12640 main ()
12642 return basename ();
12644 return 0;
12646 _ACEOF
12647 if ac_fn_c_try_link "$LINENO"; then :
12648 ac_cv_lib_gen_basename=yes
12649 else
12650 ac_cv_lib_gen_basename=no
12652 rm -f core conftest.err conftest.$ac_objext \
12653 conftest$ac_exeext conftest.$ac_ext
12654 LIBS=$ac_check_lib_save_LIBS
12656 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_basename" >&5
12657 $as_echo "$ac_cv_lib_gen_basename" >&6; }
12658 if test "x$ac_cv_lib_gen_basename" = xyes; then :
12659 cat >>confdefs.h <<_ACEOF
12660 #define HAVE_LIBGEN 1
12661 _ACEOF
12663 LIBS="-lgen $LIBS"
12667 if test $ac_cv_lib_gen_basename = yes
12668 then
12670 $as_echo "#define HAVE_BASENAME 1" >>confdefs.h
12673 $as_echo "#define HAVE_DIRNAME 1" >>confdefs.h
12675 lib_for_basename="-lgen"
12676 else
12677 lib_for_basename="-lpcp"
12682 lib_for_clock_gettime=
12683 for ac_func in clock_gettime
12684 do :
12685 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
12686 if test "x$ac_cv_func_clock_gettime" = xyes; then :
12687 cat >>confdefs.h <<_ACEOF
12688 #define HAVE_CLOCK_GETTIME 1
12689 _ACEOF
12692 done
12694 if test $ac_cv_func_clock_gettime = no
12695 then
12696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
12697 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
12698 if ${ac_cv_lib_rt_clock_gettime+:} false; then :
12699 $as_echo_n "(cached) " >&6
12700 else
12701 ac_check_lib_save_LIBS=$LIBS
12702 LIBS="-lrt $LIBS"
12703 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12704 /* end confdefs.h. */
12706 /* Override any GCC internal prototype to avoid an error.
12707 Use char because int might match the return type of a GCC
12708 builtin and then its argument prototype would still apply. */
12709 #ifdef __cplusplus
12710 extern "C"
12711 #endif
12712 char clock_gettime ();
12714 main ()
12716 return clock_gettime ();
12718 return 0;
12720 _ACEOF
12721 if ac_fn_c_try_link "$LINENO"; then :
12722 ac_cv_lib_rt_clock_gettime=yes
12723 else
12724 ac_cv_lib_rt_clock_gettime=no
12726 rm -f core conftest.err conftest.$ac_objext \
12727 conftest$ac_exeext conftest.$ac_ext
12728 LIBS=$ac_check_lib_save_LIBS
12730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
12731 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
12732 if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
12733 cat >>confdefs.h <<_ACEOF
12734 #define HAVE_LIBRT 1
12735 _ACEOF
12737 LIBS="-lrt $LIBS"
12741 if test $ac_cv_lib_rt_clock_gettime = yes
12742 then
12744 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
12746 lib_for_rt=-lrt
12751 lib_for_dlopen=
12752 for ac_func in dlopen
12753 do :
12754 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12755 if test "x$ac_cv_func_dlopen" = xyes; then :
12756 cat >>confdefs.h <<_ACEOF
12757 #define HAVE_DLOPEN 1
12758 _ACEOF
12761 done
12763 if test $ac_cv_func_dlopen = no
12764 then
12765 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12766 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12767 if ${ac_cv_lib_dl_dlopen+:} false; then :
12768 $as_echo_n "(cached) " >&6
12769 else
12770 ac_check_lib_save_LIBS=$LIBS
12771 LIBS="-ldl $LIBS"
12772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12773 /* end confdefs.h. */
12775 /* Override any GCC internal prototype to avoid an error.
12776 Use char because int might match the return type of a GCC
12777 builtin and then its argument prototype would still apply. */
12778 #ifdef __cplusplus
12779 extern "C"
12780 #endif
12781 char dlopen ();
12783 main ()
12785 return dlopen ();
12787 return 0;
12789 _ACEOF
12790 if ac_fn_c_try_link "$LINENO"; then :
12791 ac_cv_lib_dl_dlopen=yes
12792 else
12793 ac_cv_lib_dl_dlopen=no
12795 rm -f core conftest.err conftest.$ac_objext \
12796 conftest$ac_exeext conftest.$ac_ext
12797 LIBS=$ac_check_lib_save_LIBS
12799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12800 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12801 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12802 cat >>confdefs.h <<_ACEOF
12803 #define HAVE_LIBDL 1
12804 _ACEOF
12806 LIBS="-ldl $LIBS"
12810 if test $ac_cv_lib_dl_dlopen = yes
12811 then
12813 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
12815 lib_for_dlopen=-ldl
12820 lib_for_math=
12821 for ac_func in flog10
12822 do :
12823 ac_fn_c_check_func "$LINENO" "flog10" "ac_cv_func_flog10"
12824 if test "x$ac_cv_func_flog10" = xyes; then :
12825 cat >>confdefs.h <<_ACEOF
12826 #define HAVE_FLOG10 1
12827 _ACEOF
12830 done
12832 if test $ac_cv_func_flog10 = no
12833 then
12834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flog10 in -lm" >&5
12835 $as_echo_n "checking for flog10 in -lm... " >&6; }
12836 if ${ac_cv_lib_m_flog10+:} false; then :
12837 $as_echo_n "(cached) " >&6
12838 else
12839 ac_check_lib_save_LIBS=$LIBS
12840 LIBS="-lm $LIBS"
12841 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12842 /* end confdefs.h. */
12844 /* Override any GCC internal prototype to avoid an error.
12845 Use char because int might match the return type of a GCC
12846 builtin and then its argument prototype would still apply. */
12847 #ifdef __cplusplus
12848 extern "C"
12849 #endif
12850 char flog10 ();
12852 main ()
12854 return flog10 ();
12856 return 0;
12858 _ACEOF
12859 if ac_fn_c_try_link "$LINENO"; then :
12860 ac_cv_lib_m_flog10=yes
12861 else
12862 ac_cv_lib_m_flog10=no
12864 rm -f core conftest.err conftest.$ac_objext \
12865 conftest$ac_exeext conftest.$ac_ext
12866 LIBS=$ac_check_lib_save_LIBS
12868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_flog10" >&5
12869 $as_echo "$ac_cv_lib_m_flog10" >&6; }
12870 if test "x$ac_cv_lib_m_flog10" = xyes; then :
12871 cat >>confdefs.h <<_ACEOF
12872 #define HAVE_LIBM 1
12873 _ACEOF
12875 LIBS="-lm $LIBS"
12879 if test $ac_cv_lib_m_flog10 = yes
12880 then
12882 $as_echo "#define HAVE_FLOG10 1" >>confdefs.h
12884 lib_for_math=-lm
12886 else
12888 $as_echo "#define HAVE_FLOG10 1" >>confdefs.h
12891 for ac_func in pow
12892 do :
12893 ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
12894 if test "x$ac_cv_func_pow" = xyes; then :
12895 cat >>confdefs.h <<_ACEOF
12896 #define HAVE_POW 1
12897 _ACEOF
12900 done
12902 if test $ac_cv_func_pow = no
12903 then
12904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
12905 $as_echo_n "checking for pow in -lm... " >&6; }
12906 if ${ac_cv_lib_m_pow+:} false; then :
12907 $as_echo_n "(cached) " >&6
12908 else
12909 ac_check_lib_save_LIBS=$LIBS
12910 LIBS="-lm $LIBS"
12911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12912 /* end confdefs.h. */
12914 /* Override any GCC internal prototype to avoid an error.
12915 Use char because int might match the return type of a GCC
12916 builtin and then its argument prototype would still apply. */
12917 #ifdef __cplusplus
12918 extern "C"
12919 #endif
12920 char pow ();
12922 main ()
12924 return pow ();
12926 return 0;
12928 _ACEOF
12929 if ac_fn_c_try_link "$LINENO"; then :
12930 ac_cv_lib_m_pow=yes
12931 else
12932 ac_cv_lib_m_pow=no
12934 rm -f core conftest.err conftest.$ac_objext \
12935 conftest$ac_exeext conftest.$ac_ext
12936 LIBS=$ac_check_lib_save_LIBS
12938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
12939 $as_echo "$ac_cv_lib_m_pow" >&6; }
12940 if test "x$ac_cv_lib_m_pow" = xyes; then :
12941 cat >>confdefs.h <<_ACEOF
12942 #define HAVE_LIBM 1
12943 _ACEOF
12945 LIBS="-lm $LIBS"
12949 if test $ac_cv_lib_m_pow = yes
12950 then
12952 $as_echo "#define HAVE_POW 1" >>confdefs.h
12954 lib_for_math=-lm
12956 else
12958 $as_echo "#define HAVE_POW 1" >>confdefs.h
12961 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpclassify()" >&5
12962 $as_echo_n "checking for fpclassify()... " >&6; }
12963 ac_cv_func_fpclassify=no
12964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12965 /* end confdefs.h. */
12967 #include <math.h>
12970 main ()
12973 double x = 123.456;
12974 if (fpclassify(x) == FP_NAN) exit(1);
12977 return 0;
12979 _ACEOF
12980 if ac_fn_c_try_link "$LINENO"; then :
12981 ac_cv_func_fpclassify=yes
12983 rm -f core conftest.err conftest.$ac_objext \
12984 conftest$ac_exeext conftest.$ac_ext
12985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fpclassify" >&5
12986 $as_echo "$ac_cv_func_fpclassify" >&6; }
12987 if test $ac_cv_func_fpclassify = no
12988 then
12989 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpclassify() with -lm" >&5
12990 $as_echo_n "checking for fpclassify() with -lm... " >&6; }
12991 savedLIBS=$LIBS
12992 LIBS=-lm
12993 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12994 /* end confdefs.h. */
12996 #include <math.h>
12999 main ()
13002 double x = 123.456;
13003 if (fpclassify(x) == FP_NAN) exit(1);
13006 return 0;
13008 _ACEOF
13009 if ac_fn_c_try_link "$LINENO"; then :
13010 ac_cv_func_fpclassify=yes
13012 rm -f core conftest.err conftest.$ac_objext \
13013 conftest$ac_exeext conftest.$ac_ext
13014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fpclassify" >&5
13015 $as_echo "$ac_cv_func_fpclassify" >&6; }
13016 if test $ac_cv_func_fpclassify = yes
13017 then
13018 lib_for_math=-lm
13020 LIBS=$savedLIBS
13022 if test $ac_cv_func_fpclassify = yes
13023 then
13025 $as_echo "#define HAVE_FPCLASSIFY 1" >>confdefs.h
13027 else
13028 for ac_func in isnan
13029 do :
13030 ac_fn_c_check_func "$LINENO" "isnan" "ac_cv_func_isnan"
13031 if test "x$ac_cv_func_isnan" = xyes; then :
13032 cat >>confdefs.h <<_ACEOF
13033 #define HAVE_ISNAN 1
13034 _ACEOF
13037 done
13039 if test $ac_cv_func_isnan = no
13040 then
13041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan in -lm" >&5
13042 $as_echo_n "checking for isnan in -lm... " >&6; }
13043 if ${ac_cv_lib_m_isnan+:} false; then :
13044 $as_echo_n "(cached) " >&6
13045 else
13046 ac_check_lib_save_LIBS=$LIBS
13047 LIBS="-lm $LIBS"
13048 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13049 /* end confdefs.h. */
13051 /* Override any GCC internal prototype to avoid an error.
13052 Use char because int might match the return type of a GCC
13053 builtin and then its argument prototype would still apply. */
13054 #ifdef __cplusplus
13055 extern "C"
13056 #endif
13057 char isnan ();
13059 main ()
13061 return isnan ();
13063 return 0;
13065 _ACEOF
13066 if ac_fn_c_try_link "$LINENO"; then :
13067 ac_cv_lib_m_isnan=yes
13068 else
13069 ac_cv_lib_m_isnan=no
13071 rm -f core conftest.err conftest.$ac_objext \
13072 conftest$ac_exeext conftest.$ac_ext
13073 LIBS=$ac_check_lib_save_LIBS
13075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_isnan" >&5
13076 $as_echo "$ac_cv_lib_m_isnan" >&6; }
13077 if test "x$ac_cv_lib_m_isnan" = xyes; then :
13078 cat >>confdefs.h <<_ACEOF
13079 #define HAVE_LIBM 1
13080 _ACEOF
13082 LIBS="-lm $LIBS"
13086 if test $ac_cv_lib_m_isnan = yes
13087 then
13089 $as_echo "#define HAVE_ISNAN 1" >>confdefs.h
13091 lib_for_math=-lm
13094 for ac_func in isnanf
13095 do :
13096 ac_fn_c_check_func "$LINENO" "isnanf" "ac_cv_func_isnanf"
13097 if test "x$ac_cv_func_isnanf" = xyes; then :
13098 cat >>confdefs.h <<_ACEOF
13099 #define HAVE_ISNANF 1
13100 _ACEOF
13103 done
13105 if test $ac_cv_func_isnanf = no
13106 then
13107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnanf in -lm" >&5
13108 $as_echo_n "checking for isnanf in -lm... " >&6; }
13109 if ${ac_cv_lib_m_isnanf+:} false; then :
13110 $as_echo_n "(cached) " >&6
13111 else
13112 ac_check_lib_save_LIBS=$LIBS
13113 LIBS="-lm $LIBS"
13114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13115 /* end confdefs.h. */
13117 /* Override any GCC internal prototype to avoid an error.
13118 Use char because int might match the return type of a GCC
13119 builtin and then its argument prototype would still apply. */
13120 #ifdef __cplusplus
13121 extern "C"
13122 #endif
13123 char isnanf ();
13125 main ()
13127 return isnanf ();
13129 return 0;
13131 _ACEOF
13132 if ac_fn_c_try_link "$LINENO"; then :
13133 ac_cv_lib_m_isnanf=yes
13134 else
13135 ac_cv_lib_m_isnanf=no
13137 rm -f core conftest.err conftest.$ac_objext \
13138 conftest$ac_exeext conftest.$ac_ext
13139 LIBS=$ac_check_lib_save_LIBS
13141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_isnanf" >&5
13142 $as_echo "$ac_cv_lib_m_isnanf" >&6; }
13143 if test "x$ac_cv_lib_m_isnanf" = xyes; then :
13144 cat >>confdefs.h <<_ACEOF
13145 #define HAVE_LIBM 1
13146 _ACEOF
13148 LIBS="-lm $LIBS"
13152 if test $ac_cv_lib_m_isnanf = yes
13153 then
13155 $as_echo "#define HAVE_ISNANF 1" >>confdefs.h
13157 lib_for_math=-lm
13163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13164 /* end confdefs.h. */
13165 #include <signal.h>
13167 main ()
13169 SIG_PF x;
13171 return 0;
13173 _ACEOF
13174 if ac_fn_c_try_link "$LINENO"; then :
13176 $as_echo "#define HAVE_SIGPF 1" >>confdefs.h
13179 rm -f core conftest.err conftest.$ac_objext \
13180 conftest$ac_exeext conftest.$ac_ext
13182 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13183 /* end confdefs.h. */
13184 #include <signal.h>
13186 main ()
13188 int x = SA_SIGINFO;
13190 return 0;
13192 _ACEOF
13193 if ac_fn_c_try_link "$LINENO"; then :
13195 $as_echo "#define HAVE_SA_SIGINFO 1" >>confdefs.h
13198 rm -f core conftest.err conftest.$ac_objext \
13199 conftest$ac_exeext conftest.$ac_ext
13201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13202 /* end confdefs.h. */
13203 #include <signal.h>
13205 main ()
13207 int x = SIGPIPE;
13209 return 0;
13211 _ACEOF
13212 if ac_fn_c_try_link "$LINENO"; then :
13214 $as_echo "#define HAVE_SIGPIPE 1" >>confdefs.h
13217 rm -f core conftest.err conftest.$ac_objext \
13218 conftest$ac_exeext conftest.$ac_ext
13220 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13221 /* end confdefs.h. */
13222 #include <signal.h>
13224 main ()
13226 int x = SIGHUP;
13228 return 0;
13230 _ACEOF
13231 if ac_fn_c_try_link "$LINENO"; then :
13233 $as_echo "#define HAVE_SIGHUP 1" >>confdefs.h
13236 rm -f core conftest.err conftest.$ac_objext \
13237 conftest$ac_exeext conftest.$ac_ext
13239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13240 /* end confdefs.h. */
13241 #include <signal.h>
13243 main ()
13245 int x = SIGBUS;
13247 return 0;
13249 _ACEOF
13250 if ac_fn_c_try_link "$LINENO"; then :
13252 $as_echo "#define HAVE_SIGBUS 1" >>confdefs.h
13255 rm -f core conftest.err conftest.$ac_objext \
13256 conftest$ac_exeext conftest.$ac_ext
13258 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13259 /* end confdefs.h. */
13260 #include <sys/wait.h>
13262 main ()
13264 typedef void (*SIGRET)(int);
13265 SIGRET x = SIG_IGN;
13268 return 0;
13270 _ACEOF
13271 if ac_fn_c_try_link "$LINENO"; then :
13273 $as_echo "#define HAVE_WAIT_INCLUDES_SIGNAL 1" >>confdefs.h
13276 rm -f core conftest.err conftest.$ac_objext \
13277 conftest$ac_exeext conftest.$ac_ext
13279 have_stat_type=false
13280 have_stat_name=false
13281 if test $have_stat_name = false
13282 then
13283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13284 /* end confdefs.h. */
13285 #include <sys/stat.h>
13287 _ACEOF
13288 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13289 $EGREP "[ ]st_mtimespec" >/dev/null 2>&1; then :
13290 have_stat_name=true;
13292 $as_echo "#define HAVE_ST_MTIME_WITH_SPEC 1" >>confdefs.h
13295 rm -f conftest*
13298 if test $have_stat_name = false -a $target_os != darwin -a $target_os != linux -a $target_os != kfreebsd -a $target_os != netbsd
13299 then
13300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13301 /* end confdefs.h. */
13302 #include <sys/stat.h>
13304 _ACEOF
13305 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13306 $EGREP "[ ]st_mtime" >/dev/null 2>&1; then :
13307 have_stat_name=true;
13309 $as_echo "#define HAVE_ST_MTIME_WITH_E 1" >>confdefs.h
13312 rm -f conftest*
13315 if test $have_stat_type = false
13316 then
13317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13318 /* end confdefs.h. */
13319 #include <sys/stat.h>
13321 _ACEOF
13322 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13323 $EGREP "timestruc_t[ ][ ]*st_mtim" >/dev/null 2>&1; then :
13324 have_stat_type=true;
13326 $as_echo "#define HAVE_STAT_TIMESTRUC 1" >>confdefs.h
13329 rm -f conftest*
13332 if test $have_stat_type = false
13333 then
13334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13335 /* end confdefs.h. */
13336 #include <sys/stat.h>
13338 _ACEOF
13339 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13340 $EGREP "timespec_t[ ][ ]*st_mtim" >/dev/null 2>&1; then :
13341 have_stat_type=true;
13343 $as_echo "#define HAVE_STAT_TIMESPEC_T 1" >>confdefs.h
13346 rm -f conftest*
13349 if test $have_stat_type = false
13350 then
13351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13352 /* end confdefs.h. */
13353 #include <sys/stat.h>
13355 _ACEOF
13356 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13357 $EGREP "timespec[ ][ ]*st_mtim" >/dev/null 2>&1; then :
13358 have_stat_type=true;
13360 $as_echo "#define HAVE_STAT_TIMESPEC 1" >>confdefs.h
13363 rm -f conftest*
13366 if test $have_stat_type = false
13367 then
13368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13369 /* end confdefs.h. */
13370 #include <sys/stat.h>
13372 _ACEOF
13373 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13374 $EGREP "time_t[ ][ ]*st_mtim" >/dev/null 2>&1; then :
13375 have_stat_type=true;
13377 $as_echo "#define HAVE_STAT_TIME_T 1" >>confdefs.h
13380 rm -f conftest*
13383 if test $have_stat_type = false
13384 then
13385 echo 'FATAL ERROR: Cannot determine struct stat time types.'
13386 rm -rf conftest conftest.*
13387 exit 1
13391 pcp_etc_dir=`eval echo $sysconfdir`
13392 pcp_etc_dir=`eval echo $pcp_etc_dir`
13394 pcp_saslconf_dir=`eval echo $sysconfdir/sasl2`
13395 pcp_saslconf_dir=`eval echo $pcp_saslconf_dir`
13397 pcp_sysconf_dir=`eval echo $sysconfdir/pcp`
13398 pcp_sysconf_dir=`eval echo $pcp_sysconf_dir`
13400 pcp_pmcdconf_path=$pcp_sysconf_dir/pmcd/pmcd.conf
13401 pcp_pmcdrclocal_path=$pcp_sysconf_dir/pmcd/rc.local
13402 pcp_pmcdoptions_path=$pcp_sysconf_dir/pmcd/pmcd.options
13403 pcp_pmwebdoptions_path=$pcp_sysconf_dir/pmwebd/pmwebd.options
13404 pcp_pmmgroptions_path=$pcp_sysconf_dir/pmmgr/pmmgr.options
13405 pcp_pmproxyoptions_path=$pcp_sysconf_dir/pmproxy/pmproxy.options
13406 pcp_pmiecontrol_path=$pcp_sysconf_dir/pmie/control
13407 pcp_pmsnapcontrol_path=$pcp_sysconf_dir/pmsnap/control
13408 pcp_pmloggercontrol_path=$pcp_sysconf_dir/pmlogger/control
13419 pcp_share_dir=`eval echo $datarootdir/pcp`
13420 pcp_share_dir=`eval echo $pcp_share_dir`
13423 pcp_binadm_dir=`eval echo $libexecdir/pcp/bin`
13424 pcp_binadm_dir=`eval echo $pcp_binadm_dir`
13427 pcp_var_dir=`eval echo $localstatedir/lib/pcp`
13428 pcp_var_dir=`eval echo $pcp_var_dir`
13432 # Check whether --with-configdir was given.
13433 if test "${with_configdir+set}" = set; then :
13434 withval=$with_configdir; pcp_config_dir=$withval
13435 else
13436 pcp_config_dir=$pcp_var_dir/config
13440 pcp_pmdas_dir=$pcp_var_dir/pmdas
13443 pcp_selinux_dir=$pcp_var_dir/selinux
13446 pcp_lib_dir=`eval echo $libdir`
13447 pcp_lib_dir=`eval echo $pcp_lib_dir`
13448 pcp_lib32_dir=`echo $pcp_lib_dir | sed -e s,64,, -e s,//,/,`
13453 # Check whether --with-perl_installdirs was given.
13454 if test "${with_perl_installdirs+set}" = set; then :
13455 withval=$with_perl_installdirs; perl_installdirs=$withval
13456 else
13457 perl_installdirs=vendor
13460 perl_installdirs=`eval echo $perl_installdirs`
13461 perl_installdirs=`eval echo $perl_installdirs`
13464 # Check whether --with-perl_install_base was given.
13465 if test "${with_perl_install_base+set}" = set; then :
13466 withval=$with_perl_install_base; perl_install_base=$withval
13467 else
13468 perl_install_base=$prefix
13471 perl_install_base=`eval echo $perl_install_base`
13472 perl_install_base=`eval echo $perl_install_base`
13476 # Check whether --with-python_prefix was given.
13477 if test "${with_python_prefix+set}" = set; then :
13478 withval=$with_python_prefix; python_prefix=$withval
13479 else
13480 python_prefix=$prefix
13483 python_prefix=`eval echo $python_prefix`
13484 python_prefix=`eval echo $python_prefix`
13487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
13488 $as_echo_n "checking for X... " >&6; }
13491 # Check whether --with-x was given.
13492 if test "${with_x+set}" = set; then :
13493 withval=$with_x;
13496 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
13497 if test "x$with_x" = xno; then
13498 # The user explicitly disabled X.
13499 have_x=disabled
13500 else
13501 case $x_includes,$x_libraries in #(
13502 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
13503 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
13504 $as_echo_n "(cached) " >&6
13505 else
13506 # One or both of the vars are not set, and there is no cached value.
13507 ac_x_includes=no ac_x_libraries=no
13508 rm -f -r conftest.dir
13509 if mkdir conftest.dir; then
13510 cd conftest.dir
13511 cat >Imakefile <<'_ACEOF'
13512 incroot:
13513 @echo incroot='${INCROOT}'
13514 usrlibdir:
13515 @echo usrlibdir='${USRLIBDIR}'
13516 libdir:
13517 @echo libdir='${LIBDIR}'
13518 _ACEOF
13519 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
13520 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
13521 for ac_var in incroot usrlibdir libdir; do
13522 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
13523 done
13524 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
13525 for ac_extension in a so sl dylib la dll; do
13526 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
13527 test -f "$ac_im_libdir/libX11.$ac_extension"; then
13528 ac_im_usrlibdir=$ac_im_libdir; break
13530 done
13531 # Screen out bogus values from the imake configuration. They are
13532 # bogus both because they are the default anyway, and because
13533 # using them would break gcc on systems where it needs fixed includes.
13534 case $ac_im_incroot in
13535 /usr/include) ac_x_includes= ;;
13536 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
13537 esac
13538 case $ac_im_usrlibdir in
13539 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
13540 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
13541 esac
13543 cd ..
13544 rm -f -r conftest.dir
13547 # Standard set of common directories for X headers.
13548 # Check X11 before X11Rn because it is often a symlink to the current release.
13549 ac_x_header_dirs='
13550 /usr/X11/include
13551 /usr/X11R7/include
13552 /usr/X11R6/include
13553 /usr/X11R5/include
13554 /usr/X11R4/include
13556 /usr/include/X11
13557 /usr/include/X11R7
13558 /usr/include/X11R6
13559 /usr/include/X11R5
13560 /usr/include/X11R4
13562 /usr/local/X11/include
13563 /usr/local/X11R7/include
13564 /usr/local/X11R6/include
13565 /usr/local/X11R5/include
13566 /usr/local/X11R4/include
13568 /usr/local/include/X11
13569 /usr/local/include/X11R7
13570 /usr/local/include/X11R6
13571 /usr/local/include/X11R5
13572 /usr/local/include/X11R4
13574 /usr/X386/include
13575 /usr/x386/include
13576 /usr/XFree86/include/X11
13578 /usr/include
13579 /usr/local/include
13580 /usr/unsupported/include
13581 /usr/athena/include
13582 /usr/local/x11r5/include
13583 /usr/lpp/Xamples/include
13585 /usr/openwin/include
13586 /usr/openwin/share/include'
13588 if test "$ac_x_includes" = no; then
13589 # Guess where to find include files, by looking for Xlib.h.
13590 # First, try using that file with no special directory specified.
13591 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13592 /* end confdefs.h. */
13593 #include <X11/Xlib.h>
13594 _ACEOF
13595 if ac_fn_c_try_cpp "$LINENO"; then :
13596 # We can compile using X headers with no special include directory.
13597 ac_x_includes=
13598 else
13599 for ac_dir in $ac_x_header_dirs; do
13600 if test -r "$ac_dir/X11/Xlib.h"; then
13601 ac_x_includes=$ac_dir
13602 break
13604 done
13606 rm -f conftest.err conftest.i conftest.$ac_ext
13607 fi # $ac_x_includes = no
13609 if test "$ac_x_libraries" = no; then
13610 # Check for the libraries.
13611 # See if we find them without any special options.
13612 # Don't add to $LIBS permanently.
13613 ac_save_LIBS=$LIBS
13614 LIBS="-lX11 $LIBS"
13615 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13616 /* end confdefs.h. */
13617 #include <X11/Xlib.h>
13619 main ()
13621 XrmInitialize ()
13623 return 0;
13625 _ACEOF
13626 if ac_fn_c_try_link "$LINENO"; then :
13627 LIBS=$ac_save_LIBS
13628 # We can link X programs with no special library path.
13629 ac_x_libraries=
13630 else
13631 LIBS=$ac_save_LIBS
13632 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
13634 # Don't even attempt the hair of trying to link an X program!
13635 for ac_extension in a so sl dylib la dll; do
13636 if test -r "$ac_dir/libX11.$ac_extension"; then
13637 ac_x_libraries=$ac_dir
13638 break 2
13640 done
13641 done
13643 rm -f core conftest.err conftest.$ac_objext \
13644 conftest$ac_exeext conftest.$ac_ext
13645 fi # $ac_x_libraries = no
13647 case $ac_x_includes,$ac_x_libraries in #(
13648 no,* | *,no | *\'*)
13649 # Didn't find X, or a directory has "'" in its name.
13650 ac_cv_have_x="have_x=no";; #(
13652 # Record where we found X for the cache.
13653 ac_cv_have_x="have_x=yes\
13654 ac_x_includes='$ac_x_includes'\
13655 ac_x_libraries='$ac_x_libraries'"
13656 esac
13658 ;; #(
13659 *) have_x=yes;;
13660 esac
13661 eval "$ac_cv_have_x"
13662 fi # $with_x != no
13664 if test "$have_x" != yes; then
13665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
13666 $as_echo "$have_x" >&6; }
13667 no_x=yes
13668 else
13669 # If each of the values was on the command line, it overrides each guess.
13670 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
13671 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
13672 # Update the cache value to reflect the command line values.
13673 ac_cv_have_x="have_x=yes\
13674 ac_x_includes='$x_includes'\
13675 ac_x_libraries='$x_libraries'"
13676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
13677 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
13680 if test "$no_x" = yes; then
13681 # Not all programs may use this symbol, but it does not hurt to define it.
13683 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
13685 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
13686 else
13687 if test -n "$x_includes"; then
13688 X_CFLAGS="$X_CFLAGS -I$x_includes"
13691 # It would also be nice to do this for all -L options, not just this one.
13692 if test -n "$x_libraries"; then
13693 X_LIBS="$X_LIBS -L$x_libraries"
13694 # For Solaris; some versions of Sun CC require a space after -R and
13695 # others require no space. Words are not sufficient . . . .
13696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
13697 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
13698 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
13699 ac_xsave_c_werror_flag=$ac_c_werror_flag
13700 ac_c_werror_flag=yes
13701 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13702 /* end confdefs.h. */
13705 main ()
13709 return 0;
13711 _ACEOF
13712 if ac_fn_c_try_link "$LINENO"; then :
13713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13714 $as_echo "no" >&6; }
13715 X_LIBS="$X_LIBS -R$x_libraries"
13716 else
13717 LIBS="$ac_xsave_LIBS -R $x_libraries"
13718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13719 /* end confdefs.h. */
13722 main ()
13726 return 0;
13728 _ACEOF
13729 if ac_fn_c_try_link "$LINENO"; then :
13730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13731 $as_echo "yes" >&6; }
13732 X_LIBS="$X_LIBS -R $x_libraries"
13733 else
13734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
13735 $as_echo "neither works" >&6; }
13737 rm -f core conftest.err conftest.$ac_objext \
13738 conftest$ac_exeext conftest.$ac_ext
13740 rm -f core conftest.err conftest.$ac_objext \
13741 conftest$ac_exeext conftest.$ac_ext
13742 ac_c_werror_flag=$ac_xsave_c_werror_flag
13743 LIBS=$ac_xsave_LIBS
13746 # Check for system-dependent libraries X programs must link with.
13747 # Do this before checking for the system-independent R6 libraries
13748 # (-lICE), since we may need -lsocket or whatever for X linking.
13750 if test "$ISC" = yes; then
13751 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
13752 else
13753 # Martyn Johnson says this is needed for Ultrix, if the X
13754 # libraries were built with DECnet support. And Karl Berry says
13755 # the Alpha needs dnet_stub (dnet does not exist).
13756 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
13757 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13758 /* end confdefs.h. */
13760 /* Override any GCC internal prototype to avoid an error.
13761 Use char because int might match the return type of a GCC
13762 builtin and then its argument prototype would still apply. */
13763 #ifdef __cplusplus
13764 extern "C"
13765 #endif
13766 char XOpenDisplay ();
13768 main ()
13770 return XOpenDisplay ();
13772 return 0;
13774 _ACEOF
13775 if ac_fn_c_try_link "$LINENO"; then :
13777 else
13778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
13779 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
13780 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
13781 $as_echo_n "(cached) " >&6
13782 else
13783 ac_check_lib_save_LIBS=$LIBS
13784 LIBS="-ldnet $LIBS"
13785 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13786 /* end confdefs.h. */
13788 /* Override any GCC internal prototype to avoid an error.
13789 Use char because int might match the return type of a GCC
13790 builtin and then its argument prototype would still apply. */
13791 #ifdef __cplusplus
13792 extern "C"
13793 #endif
13794 char dnet_ntoa ();
13796 main ()
13798 return dnet_ntoa ();
13800 return 0;
13802 _ACEOF
13803 if ac_fn_c_try_link "$LINENO"; then :
13804 ac_cv_lib_dnet_dnet_ntoa=yes
13805 else
13806 ac_cv_lib_dnet_dnet_ntoa=no
13808 rm -f core conftest.err conftest.$ac_objext \
13809 conftest$ac_exeext conftest.$ac_ext
13810 LIBS=$ac_check_lib_save_LIBS
13812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
13813 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
13814 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
13815 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
13818 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
13819 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
13820 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
13821 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
13822 $as_echo_n "(cached) " >&6
13823 else
13824 ac_check_lib_save_LIBS=$LIBS
13825 LIBS="-ldnet_stub $LIBS"
13826 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13827 /* end confdefs.h. */
13829 /* Override any GCC internal prototype to avoid an error.
13830 Use char because int might match the return type of a GCC
13831 builtin and then its argument prototype would still apply. */
13832 #ifdef __cplusplus
13833 extern "C"
13834 #endif
13835 char dnet_ntoa ();
13837 main ()
13839 return dnet_ntoa ();
13841 return 0;
13843 _ACEOF
13844 if ac_fn_c_try_link "$LINENO"; then :
13845 ac_cv_lib_dnet_stub_dnet_ntoa=yes
13846 else
13847 ac_cv_lib_dnet_stub_dnet_ntoa=no
13849 rm -f core conftest.err conftest.$ac_objext \
13850 conftest$ac_exeext conftest.$ac_ext
13851 LIBS=$ac_check_lib_save_LIBS
13853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
13854 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
13855 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
13856 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
13861 rm -f core conftest.err conftest.$ac_objext \
13862 conftest$ac_exeext conftest.$ac_ext
13863 LIBS="$ac_xsave_LIBS"
13865 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
13866 # to get the SysV transport functions.
13867 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
13868 # needs -lnsl.
13869 # The nsl library prevents programs from opening the X display
13870 # on Irix 5.2, according to T.E. Dickey.
13871 # The functions gethostbyname, getservbyname, and inet_addr are
13872 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
13873 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
13874 if test "x$ac_cv_func_gethostbyname" = xyes; then :
13878 if test $ac_cv_func_gethostbyname = no; then
13879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
13880 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
13881 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
13882 $as_echo_n "(cached) " >&6
13883 else
13884 ac_check_lib_save_LIBS=$LIBS
13885 LIBS="-lnsl $LIBS"
13886 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13887 /* end confdefs.h. */
13889 /* Override any GCC internal prototype to avoid an error.
13890 Use char because int might match the return type of a GCC
13891 builtin and then its argument prototype would still apply. */
13892 #ifdef __cplusplus
13893 extern "C"
13894 #endif
13895 char gethostbyname ();
13897 main ()
13899 return gethostbyname ();
13901 return 0;
13903 _ACEOF
13904 if ac_fn_c_try_link "$LINENO"; then :
13905 ac_cv_lib_nsl_gethostbyname=yes
13906 else
13907 ac_cv_lib_nsl_gethostbyname=no
13909 rm -f core conftest.err conftest.$ac_objext \
13910 conftest$ac_exeext conftest.$ac_ext
13911 LIBS=$ac_check_lib_save_LIBS
13913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
13914 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
13915 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
13916 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
13919 if test $ac_cv_lib_nsl_gethostbyname = no; then
13920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
13921 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
13922 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
13923 $as_echo_n "(cached) " >&6
13924 else
13925 ac_check_lib_save_LIBS=$LIBS
13926 LIBS="-lbsd $LIBS"
13927 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13928 /* end confdefs.h. */
13930 /* Override any GCC internal prototype to avoid an error.
13931 Use char because int might match the return type of a GCC
13932 builtin and then its argument prototype would still apply. */
13933 #ifdef __cplusplus
13934 extern "C"
13935 #endif
13936 char gethostbyname ();
13938 main ()
13940 return gethostbyname ();
13942 return 0;
13944 _ACEOF
13945 if ac_fn_c_try_link "$LINENO"; then :
13946 ac_cv_lib_bsd_gethostbyname=yes
13947 else
13948 ac_cv_lib_bsd_gethostbyname=no
13950 rm -f core conftest.err conftest.$ac_objext \
13951 conftest$ac_exeext conftest.$ac_ext
13952 LIBS=$ac_check_lib_save_LIBS
13954 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
13955 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
13956 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
13957 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
13963 # lieder@skyler.mavd.honeywell.com says without -lsocket,
13964 # socket/setsockopt and other routines are undefined under SCO ODT
13965 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
13966 # on later versions), says Simon Leinen: it contains gethostby*
13967 # variants that don't use the name server (or something). -lsocket
13968 # must be given before -lnsl if both are needed. We assume that
13969 # if connect needs -lnsl, so does gethostbyname.
13970 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
13971 if test "x$ac_cv_func_connect" = xyes; then :
13975 if test $ac_cv_func_connect = no; then
13976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
13977 $as_echo_n "checking for connect in -lsocket... " >&6; }
13978 if ${ac_cv_lib_socket_connect+:} false; then :
13979 $as_echo_n "(cached) " >&6
13980 else
13981 ac_check_lib_save_LIBS=$LIBS
13982 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
13983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13984 /* end confdefs.h. */
13986 /* Override any GCC internal prototype to avoid an error.
13987 Use char because int might match the return type of a GCC
13988 builtin and then its argument prototype would still apply. */
13989 #ifdef __cplusplus
13990 extern "C"
13991 #endif
13992 char connect ();
13994 main ()
13996 return connect ();
13998 return 0;
14000 _ACEOF
14001 if ac_fn_c_try_link "$LINENO"; then :
14002 ac_cv_lib_socket_connect=yes
14003 else
14004 ac_cv_lib_socket_connect=no
14006 rm -f core conftest.err conftest.$ac_objext \
14007 conftest$ac_exeext conftest.$ac_ext
14008 LIBS=$ac_check_lib_save_LIBS
14010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
14011 $as_echo "$ac_cv_lib_socket_connect" >&6; }
14012 if test "x$ac_cv_lib_socket_connect" = xyes; then :
14013 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
14018 # Guillermo Gomez says -lposix is necessary on A/UX.
14019 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
14020 if test "x$ac_cv_func_remove" = xyes; then :
14024 if test $ac_cv_func_remove = no; then
14025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
14026 $as_echo_n "checking for remove in -lposix... " >&6; }
14027 if ${ac_cv_lib_posix_remove+:} false; then :
14028 $as_echo_n "(cached) " >&6
14029 else
14030 ac_check_lib_save_LIBS=$LIBS
14031 LIBS="-lposix $LIBS"
14032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14033 /* end confdefs.h. */
14035 /* Override any GCC internal prototype to avoid an error.
14036 Use char because int might match the return type of a GCC
14037 builtin and then its argument prototype would still apply. */
14038 #ifdef __cplusplus
14039 extern "C"
14040 #endif
14041 char remove ();
14043 main ()
14045 return remove ();
14047 return 0;
14049 _ACEOF
14050 if ac_fn_c_try_link "$LINENO"; then :
14051 ac_cv_lib_posix_remove=yes
14052 else
14053 ac_cv_lib_posix_remove=no
14055 rm -f core conftest.err conftest.$ac_objext \
14056 conftest$ac_exeext conftest.$ac_ext
14057 LIBS=$ac_check_lib_save_LIBS
14059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
14060 $as_echo "$ac_cv_lib_posix_remove" >&6; }
14061 if test "x$ac_cv_lib_posix_remove" = xyes; then :
14062 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
14067 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
14068 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
14069 if test "x$ac_cv_func_shmat" = xyes; then :
14073 if test $ac_cv_func_shmat = no; then
14074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
14075 $as_echo_n "checking for shmat in -lipc... " >&6; }
14076 if ${ac_cv_lib_ipc_shmat+:} false; then :
14077 $as_echo_n "(cached) " >&6
14078 else
14079 ac_check_lib_save_LIBS=$LIBS
14080 LIBS="-lipc $LIBS"
14081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14082 /* end confdefs.h. */
14084 /* Override any GCC internal prototype to avoid an error.
14085 Use char because int might match the return type of a GCC
14086 builtin and then its argument prototype would still apply. */
14087 #ifdef __cplusplus
14088 extern "C"
14089 #endif
14090 char shmat ();
14092 main ()
14094 return shmat ();
14096 return 0;
14098 _ACEOF
14099 if ac_fn_c_try_link "$LINENO"; then :
14100 ac_cv_lib_ipc_shmat=yes
14101 else
14102 ac_cv_lib_ipc_shmat=no
14104 rm -f core conftest.err conftest.$ac_objext \
14105 conftest$ac_exeext conftest.$ac_ext
14106 LIBS=$ac_check_lib_save_LIBS
14108 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
14109 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
14110 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
14111 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
14117 # Check for libraries that X11R6 Xt/Xaw programs need.
14118 ac_save_LDFLAGS=$LDFLAGS
14119 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
14120 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
14121 # check for ICE first), but we must link in the order -lSM -lICE or
14122 # we get undefined symbols. So assume we have SM if we have ICE.
14123 # These have to be linked with before -lX11, unlike the other
14124 # libraries we check for below, so use a different variable.
14125 # John Interrante, Karl Berry
14126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
14127 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
14128 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
14129 $as_echo_n "(cached) " >&6
14130 else
14131 ac_check_lib_save_LIBS=$LIBS
14132 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
14133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14134 /* end confdefs.h. */
14136 /* Override any GCC internal prototype to avoid an error.
14137 Use char because int might match the return type of a GCC
14138 builtin and then its argument prototype would still apply. */
14139 #ifdef __cplusplus
14140 extern "C"
14141 #endif
14142 char IceConnectionNumber ();
14144 main ()
14146 return IceConnectionNumber ();
14148 return 0;
14150 _ACEOF
14151 if ac_fn_c_try_link "$LINENO"; then :
14152 ac_cv_lib_ICE_IceConnectionNumber=yes
14153 else
14154 ac_cv_lib_ICE_IceConnectionNumber=no
14156 rm -f core conftest.err conftest.$ac_objext \
14157 conftest$ac_exeext conftest.$ac_ext
14158 LIBS=$ac_check_lib_save_LIBS
14160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
14161 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
14162 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
14163 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
14166 LDFLAGS=$ac_save_LDFLAGS
14170 pcp_x11_incflags=$X_CFLAGS
14172 pcp_x11_libflags=$X_LIBS
14174 pcp_x11_extra=$X_EXTRA_LIBS
14176 pcp_x11_pre=$X_PRE_LIBS
14179 have_manpages=false
14180 have_gzipped_manpages=false
14181 have_bzip2ed_manpages=false
14182 have_lzmaed_manpages=false
14183 have_xzed_manpages=false
14184 need_old_tbl_header=false
14185 man_header=
14186 pcp_man_dir=`eval echo $mandir`
14187 pcp_man_dir=`eval echo $pcp_man_dir`
14189 for d in /usr/man /usr/share/man $pcp_man_dir
14191 for sd in man1 sman1
14193 if test -f $d/$sd/man.1.gz
14194 then
14195 have_gzipped_manpages=true
14196 have_manpages=true
14197 man_header=`$ZIP -d < $d/$sd/man.1.gz | head -1`
14198 break
14199 elif test -f $d/$sd/man.1.bz2
14200 then
14201 have_bzip2ed_manpages=true
14202 have_manpages=true
14203 man_header=`$BZIP2 -d < $d/$sd/man.1.bz2 | head -1`
14204 break
14205 elif test -f $d/$sd/man.1.lzma
14206 then
14207 have_lzmaed_manpages=true
14208 have_manpages=true
14209 man_header=`$LZMA -d < $d/$sd/man.1.lzma | head -1`
14210 break
14211 elif test -f $d/$sd/man.1.xz
14212 then
14213 have_xzed_manpages=true
14214 have_manpages=true
14215 man_header=`$XZ -d < $d/$sd/man.1.xz | head -1`
14216 break
14217 elif test -f $d/$sd/man.1
14218 then
14219 man_header=`head -1 $d/$sd/man.1`
14220 have_manpages=true
14221 break
14223 done
14224 done
14225 if test x"$man_header" = "x'\\\" t" -o x"$man_header" = "x'\\\" te" ; then
14226 need_old_tbl_header=true
14236 pcp_bin_dir=`eval echo $bindir`
14237 pcp_bin_dir=`eval echo $pcp_bin_dir`
14240 pcp_sbin_dir=`eval echo $sbindir`
14241 pcp_sbin_dir=`eval echo $pcp_sbin_dir`
14244 pcp_inc_dir=`eval echo $includedir/pcp`
14245 pcp_inc_dir=`eval echo $pcp_inc_dir`
14248 if test $target_os = linux; then
14249 pcp_books_dir=`eval echo $datarootdir/doc/pcp-doc`
14250 else
14251 pcp_books_dir=`eval echo $datarootdir/doc/pcp`
14253 pcp_books_dir=`eval echo $pcp_books_dir`
14254 pcp_html_dir=`eval echo $pcp_books_dir/html`
14258 if test $target_os = linux; then
14259 pcp_icons_dir=`eval echo $datarootdir/pcp-gui/pixmaps`
14260 else
14261 pcp_icons_dir=`eval echo $datarootdir/pcp/pixmaps`
14263 pcp_icons_dir=`eval echo $pcp_icons_dir`
14266 pcp_desktop_dir=`eval echo $datarootdir/applications`
14267 pcp_desktop_dir=`eval echo $pcp_desktop_dir`
14271 # Check whether --with-rcdir was given.
14272 if test "${with_rcdir+set}" = set; then :
14273 withval=$with_rcdir; pcp_rc_dir=$withval
14274 else
14276 if $enable_systemd
14277 then
14278 pcp_rc_dir="$pcp_share_dir/lib"
14279 else
14280 pcp_rc_dir="$pcp_etc_dir/init.d"
14287 # Check whether --with-sysconfigdir was given.
14288 if test "${with_sysconfigdir+set}" = set; then :
14289 withval=$with_sysconfigdir; pcp_sysconfig_dir=$withval
14290 else
14291 pcp_sysconfig_dir=$pcp_etc_dir/sysconfig
14297 # Check whether --with-logdir was given.
14298 if test "${with_logdir+set}" = set; then :
14299 withval=$with_logdir; pcp_log_dir=$withval
14300 else
14301 pcp_log_dir=$localstatedir/log/pcp
14304 pcp_log_dir=`eval echo $pcp_log_dir`
14305 pcp_log_dir=`eval echo $pcp_log_dir`
14309 # Check whether --with-rundir was given.
14310 if test "${with_rundir+set}" = set; then :
14311 withval=$with_rundir; pcp_run_dir=$withval
14312 else
14313 pcp_run_dir=$localstatedir/run/pcp
14316 pcp_run_dir=`eval echo $pcp_run_dir`
14317 pcp_run_dir=`eval echo $pcp_run_dir`
14321 # Check whether --with-tmpdir was given.
14322 if test "${with_tmpdir+set}" = set; then :
14323 withval=$with_tmpdir; pcp_tmpfile_dir=$withval
14324 else
14325 pcp_tmpfile_dir=$localstatedir/tmp
14328 pcp_tmpfile_dir=`eval echo $pcp_tmpfile_dir`
14329 pcp_tmpfile_dir=`eval echo $pcp_tmpfile_dir`
14332 pcp_tmp_dir=`eval echo $pcp_var_dir/tmp`
14336 # Check whether --with-docdir was given.
14337 if test "${with_docdir+set}" = set; then :
14338 withval=$with_docdir; pcp_doc_dir=$withval
14339 else
14340 PACKAGE=pcp-${PACKAGE_VERSION}; pcp_doc_dir=$docdir
14343 pcp_doc_dir=`eval echo $pcp_doc_dir`
14344 pcp_doc_dir=`eval echo $pcp_doc_dir`
14348 # Check whether --with-demosdir was given.
14349 if test "${with_demosdir+set}" = set; then :
14350 withval=$with_demosdir; pcp_demos_dir=$withval
14351 else
14352 pcp_demos_dir=$pcp_share_dir/demos
14357 if test -z "$XCONFIRM"
14358 then
14359 # Extract the first word of "xconfirm", so it can be a program name with args.
14360 set dummy xconfirm; ac_word=$2
14361 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14362 $as_echo_n "checking for $ac_word... " >&6; }
14363 if ${ac_cv_path_ac_xconfirm_prog+:} false; then :
14364 $as_echo_n "(cached) " >&6
14365 else
14366 case $ac_xconfirm_prog in
14367 [\\/]* | ?:[\\/]*)
14368 ac_cv_path_ac_xconfirm_prog="$ac_xconfirm_prog" # Let the user override the test with a path.
14371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14372 for as_dir in $PATH
14374 IFS=$as_save_IFS
14375 test -z "$as_dir" && as_dir=.
14376 for ac_exec_ext in '' $ac_executable_extensions; do
14377 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14378 ac_cv_path_ac_xconfirm_prog="$as_dir/$ac_word$ac_exec_ext"
14379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14380 break 2
14382 done
14383 done
14384 IFS=$as_save_IFS
14386 test -z "$ac_cv_path_ac_xconfirm_prog" && ac_cv_path_ac_xconfirm_prog="$pcp_bin_dir/pmconfirm"
14388 esac
14390 ac_xconfirm_prog=$ac_cv_path_ac_xconfirm_prog
14391 if test -n "$ac_xconfirm_prog"; then
14392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_xconfirm_prog" >&5
14393 $as_echo "$ac_xconfirm_prog" >&6; }
14394 else
14395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14396 $as_echo "no" >&6; }
14400 else
14401 ac_xconfirm_prog=$XCONFIRM
14405 if test "$ac_cv_header_fcntl_h" = "yes"
14406 then
14407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FNDELAY in fcntl.h" >&5
14408 $as_echo_n "checking for FNDELAY in fcntl.h... " >&6; }
14409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14410 /* end confdefs.h. */
14411 #include <fcntl.h>
14413 main ()
14415 int i = FNDELAY;
14417 return 0;
14419 _ACEOF
14420 if ac_fn_c_try_compile "$LINENO"; then :
14422 $as_echo "#define HAVE_FNDELAY 1" >>confdefs.h
14424 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14425 $as_echo "yes" >&6; }
14426 else
14427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14428 $as_echo "no" >&6; }
14430 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14433 if test "$ac_cv_header_libzfs_h" = "yes"
14434 then
14435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 5-argument style zpool_vdev_name" >&5
14436 $as_echo_n "checking for 5-argument style zpool_vdev_name... " >&6; }
14437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14438 /* end confdefs.h. */
14439 #include <libzfs.h>
14441 main ()
14443 libzfs_handle_t *zh;
14444 zpool_handle_t *zp;
14445 nvlist_t *np;
14446 (void) zpool_vdev_name(zh, zp, np, B_FALSE, B_FALSE);
14449 return 0;
14451 _ACEOF
14452 if ac_fn_c_try_compile "$LINENO"; then :
14454 $as_echo "#define HAVE_ZPOOL_VDEV_NAME_5ARG 1" >>confdefs.h
14456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14457 $as_echo "yes" >&6; }
14458 else
14459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14460 $as_echo "no" >&6; }
14462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 4-argument style zpool_vdev_name" >&5
14465 $as_echo_n "checking for 4-argument style zpool_vdev_name... " >&6; }
14466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14467 /* end confdefs.h. */
14468 #include <libzfs.h>
14470 main ()
14472 libzfs_handle_t *zh;
14473 zpool_handle_t *zp;
14474 nvlist_t *np;
14475 (void) zpool_vdev_name(zh, zp, np, B_FALSE);
14478 return 0;
14480 _ACEOF
14481 if ac_fn_c_try_compile "$LINENO"; then :
14483 $as_echo "#define HAVE_ZPOOL_VDEV_NAME_4ARG 1" >>confdefs.h
14485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14486 $as_echo "yes" >&6; }
14487 else
14488 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14489 $as_echo "no" >&6; }
14491 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14494 if test "$do_secure" = "check" -o "$do_secure" = "yes"
14495 then
14496 enable_secure=true
14498 saved_CFLAGS="$CFLAGS"
14499 saved_CPPFLAGS="$CPPFLAGS"
14500 NSS_INC_DIRS="-I/usr/include/nss -I/usr/include/nss3"
14501 NSPR_INC_DIRS="-I/usr/include/nspr -I/usr/include/nspr4"
14502 CFLAGS="$CFLAGS $NSS_INC_DIRS $NSPR_INC_DIRS"
14503 CPPFLAGS="$CPPFLAGS $NSS_INC_DIRS $NSPR_INC_DIRS"
14505 for ac_header in nss/nss.h
14506 do :
14507 ac_fn_c_check_header_mongrel "$LINENO" "nss/nss.h" "ac_cv_header_nss_nss_h" "$ac_includes_default"
14508 if test "x$ac_cv_header_nss_nss_h" = xyes; then :
14509 cat >>confdefs.h <<_ACEOF
14510 #define HAVE_NSS_NSS_H 1
14511 _ACEOF
14512 NSSCFLAGS=-I/usr/include/nss
14513 else
14515 for ac_header in nss3/nss.h
14516 do :
14517 ac_fn_c_check_header_mongrel "$LINENO" "nss3/nss.h" "ac_cv_header_nss3_nss_h" "$ac_includes_default"
14518 if test "x$ac_cv_header_nss3_nss_h" = xyes; then :
14519 cat >>confdefs.h <<_ACEOF
14520 #define HAVE_NSS3_NSS_H 1
14521 _ACEOF
14522 NSSCFLAGS=-I/usr/include/nss3
14523 else
14525 enable_secure=false
14526 if test "$do_secure" = "yes"
14527 then
14528 as_fn_error $? "cannot enable secure sockets mode - no NSS header" "$LINENO" 5
14533 done
14538 done
14542 for ac_header in nspr/nspr.h
14543 do :
14544 ac_fn_c_check_header_mongrel "$LINENO" "nspr/nspr.h" "ac_cv_header_nspr_nspr_h" "$ac_includes_default"
14545 if test "x$ac_cv_header_nspr_nspr_h" = xyes; then :
14546 cat >>confdefs.h <<_ACEOF
14547 #define HAVE_NSPR_NSPR_H 1
14548 _ACEOF
14549 NSPRCFLAGS=-I/usr/include/nspr
14550 else
14552 for ac_header in nspr4/nspr.h
14553 do :
14554 ac_fn_c_check_header_mongrel "$LINENO" "nspr4/nspr.h" "ac_cv_header_nspr4_nspr_h" "$ac_includes_default"
14555 if test "x$ac_cv_header_nspr4_nspr_h" = xyes; then :
14556 cat >>confdefs.h <<_ACEOF
14557 #define HAVE_NSPR4_NSPR_H 1
14558 _ACEOF
14559 NSPRCFLAGS=-I/usr/include/nspr4
14560 else
14562 enable_secure=false
14563 if test "$do_secure" = "yes"
14564 then
14565 as_fn_error $? "cannot enable secure sockets mode - no NSPR header" "$LINENO" 5
14570 done
14575 done
14579 for ac_header in sasl/sasl.h
14580 do :
14581 ac_fn_c_check_header_mongrel "$LINENO" "sasl/sasl.h" "ac_cv_header_sasl_sasl_h" "$ac_includes_default"
14582 if test "x$ac_cv_header_sasl_sasl_h" = xyes; then :
14583 cat >>confdefs.h <<_ACEOF
14584 #define HAVE_SASL_SASL_H 1
14585 _ACEOF
14586 SASLCFLAGS=-I/usr/include/sasl
14587 else
14589 enable_secure=false
14590 if test "$do_secure" = "yes"
14591 then
14592 as_fn_error $? "cannot enable secure sockets mode - no SASL header" "$LINENO" 5
14597 done
14601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sasl_server_init in -lsasl2" >&5
14602 $as_echo_n "checking for sasl_server_init in -lsasl2... " >&6; }
14603 if ${ac_cv_lib_sasl2_sasl_server_init+:} false; then :
14604 $as_echo_n "(cached) " >&6
14605 else
14606 ac_check_lib_save_LIBS=$LIBS
14607 LIBS="-lsasl2 $LIBS"
14608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14609 /* end confdefs.h. */
14611 /* Override any GCC internal prototype to avoid an error.
14612 Use char because int might match the return type of a GCC
14613 builtin and then its argument prototype would still apply. */
14614 #ifdef __cplusplus
14615 extern "C"
14616 #endif
14617 char sasl_server_init ();
14619 main ()
14621 return sasl_server_init ();
14623 return 0;
14625 _ACEOF
14626 if ac_fn_c_try_link "$LINENO"; then :
14627 ac_cv_lib_sasl2_sasl_server_init=yes
14628 else
14629 ac_cv_lib_sasl2_sasl_server_init=no
14631 rm -f core conftest.err conftest.$ac_objext \
14632 conftest$ac_exeext conftest.$ac_ext
14633 LIBS=$ac_check_lib_save_LIBS
14635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sasl2_sasl_server_init" >&5
14636 $as_echo "$ac_cv_lib_sasl2_sasl_server_init" >&6; }
14637 if test "x$ac_cv_lib_sasl2_sasl_server_init" = xyes; then :
14638 lib_for_sasl="-lsasl2"
14639 else
14641 enable_secure=false
14642 if test "$do_secure" = "yes"
14643 then
14644 as_fn_error $? "cannot enable secure sockets mode - no SASL library" "$LINENO" 5
14651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_ImportFD in -lssl" >&5
14652 $as_echo_n "checking for SSL_ImportFD in -lssl... " >&6; }
14653 if ${ac_cv_lib_ssl_SSL_ImportFD+:} false; then :
14654 $as_echo_n "(cached) " >&6
14655 else
14656 ac_check_lib_save_LIBS=$LIBS
14657 LIBS="-lssl $LIBS"
14658 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14659 /* end confdefs.h. */
14661 /* Override any GCC internal prototype to avoid an error.
14662 Use char because int might match the return type of a GCC
14663 builtin and then its argument prototype would still apply. */
14664 #ifdef __cplusplus
14665 extern "C"
14666 #endif
14667 char SSL_ImportFD ();
14669 main ()
14671 return SSL_ImportFD ();
14673 return 0;
14675 _ACEOF
14676 if ac_fn_c_try_link "$LINENO"; then :
14677 ac_cv_lib_ssl_SSL_ImportFD=yes
14678 else
14679 ac_cv_lib_ssl_SSL_ImportFD=no
14681 rm -f core conftest.err conftest.$ac_objext \
14682 conftest$ac_exeext conftest.$ac_ext
14683 LIBS=$ac_check_lib_save_LIBS
14685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_ImportFD" >&5
14686 $as_echo "$ac_cv_lib_ssl_SSL_ImportFD" >&6; }
14687 if test "x$ac_cv_lib_ssl_SSL_ImportFD" = xyes; then :
14688 lib_for_ssl="-lssl"
14689 else
14691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_ImportFD in -lssl3" >&5
14692 $as_echo_n "checking for SSL_ImportFD in -lssl3... " >&6; }
14693 if ${ac_cv_lib_ssl3_SSL_ImportFD+:} false; then :
14694 $as_echo_n "(cached) " >&6
14695 else
14696 ac_check_lib_save_LIBS=$LIBS
14697 LIBS="-lssl3 $LIBS"
14698 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14699 /* end confdefs.h. */
14701 /* Override any GCC internal prototype to avoid an error.
14702 Use char because int might match the return type of a GCC
14703 builtin and then its argument prototype would still apply. */
14704 #ifdef __cplusplus
14705 extern "C"
14706 #endif
14707 char SSL_ImportFD ();
14709 main ()
14711 return SSL_ImportFD ();
14713 return 0;
14715 _ACEOF
14716 if ac_fn_c_try_link "$LINENO"; then :
14717 ac_cv_lib_ssl3_SSL_ImportFD=yes
14718 else
14719 ac_cv_lib_ssl3_SSL_ImportFD=no
14721 rm -f core conftest.err conftest.$ac_objext \
14722 conftest$ac_exeext conftest.$ac_ext
14723 LIBS=$ac_check_lib_save_LIBS
14725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl3_SSL_ImportFD" >&5
14726 $as_echo "$ac_cv_lib_ssl3_SSL_ImportFD" >&6; }
14727 if test "x$ac_cv_lib_ssl3_SSL_ImportFD" = xyes; then :
14728 lib_for_ssl="-lssl3"
14729 else
14731 enable_secure=false
14732 if test "$do_secure" = "yes"
14733 then
14734 as_fn_error $? "cannot enable secure sockets mode - no SSL library" "$LINENO" 5
14744 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSS_Init in -lnss" >&5
14745 $as_echo_n "checking for NSS_Init in -lnss... " >&6; }
14746 if ${ac_cv_lib_nss_NSS_Init+:} false; then :
14747 $as_echo_n "(cached) " >&6
14748 else
14749 ac_check_lib_save_LIBS=$LIBS
14750 LIBS="-lnss $LIBS"
14751 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14752 /* end confdefs.h. */
14754 /* Override any GCC internal prototype to avoid an error.
14755 Use char because int might match the return type of a GCC
14756 builtin and then its argument prototype would still apply. */
14757 #ifdef __cplusplus
14758 extern "C"
14759 #endif
14760 char NSS_Init ();
14762 main ()
14764 return NSS_Init ();
14766 return 0;
14768 _ACEOF
14769 if ac_fn_c_try_link "$LINENO"; then :
14770 ac_cv_lib_nss_NSS_Init=yes
14771 else
14772 ac_cv_lib_nss_NSS_Init=no
14774 rm -f core conftest.err conftest.$ac_objext \
14775 conftest$ac_exeext conftest.$ac_ext
14776 LIBS=$ac_check_lib_save_LIBS
14778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nss_NSS_Init" >&5
14779 $as_echo "$ac_cv_lib_nss_NSS_Init" >&6; }
14780 if test "x$ac_cv_lib_nss_NSS_Init" = xyes; then :
14781 lib_for_nss="-lnss"
14782 else
14784 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSS_Init in -lnss3" >&5
14785 $as_echo_n "checking for NSS_Init in -lnss3... " >&6; }
14786 if ${ac_cv_lib_nss3_NSS_Init+:} false; then :
14787 $as_echo_n "(cached) " >&6
14788 else
14789 ac_check_lib_save_LIBS=$LIBS
14790 LIBS="-lnss3 $LIBS"
14791 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14792 /* end confdefs.h. */
14794 /* Override any GCC internal prototype to avoid an error.
14795 Use char because int might match the return type of a GCC
14796 builtin and then its argument prototype would still apply. */
14797 #ifdef __cplusplus
14798 extern "C"
14799 #endif
14800 char NSS_Init ();
14802 main ()
14804 return NSS_Init ();
14806 return 0;
14808 _ACEOF
14809 if ac_fn_c_try_link "$LINENO"; then :
14810 ac_cv_lib_nss3_NSS_Init=yes
14811 else
14812 ac_cv_lib_nss3_NSS_Init=no
14814 rm -f core conftest.err conftest.$ac_objext \
14815 conftest$ac_exeext conftest.$ac_ext
14816 LIBS=$ac_check_lib_save_LIBS
14818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nss3_NSS_Init" >&5
14819 $as_echo "$ac_cv_lib_nss3_NSS_Init" >&6; }
14820 if test "x$ac_cv_lib_nss3_NSS_Init" = xyes; then :
14821 lib_for_nss="-lnss3"
14822 else
14824 enable_secure=false
14825 if test "$do_secure" = "yes"
14826 then
14827 as_fn_error $? "cannot enable secure sockets mode - no NSS library" "$LINENO" 5
14837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PR_Init in -lnspr" >&5
14838 $as_echo_n "checking for PR_Init in -lnspr... " >&6; }
14839 if ${ac_cv_lib_nspr_PR_Init+:} false; then :
14840 $as_echo_n "(cached) " >&6
14841 else
14842 ac_check_lib_save_LIBS=$LIBS
14843 LIBS="-lnspr $LIBS"
14844 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14845 /* end confdefs.h. */
14847 /* Override any GCC internal prototype to avoid an error.
14848 Use char because int might match the return type of a GCC
14849 builtin and then its argument prototype would still apply. */
14850 #ifdef __cplusplus
14851 extern "C"
14852 #endif
14853 char PR_Init ();
14855 main ()
14857 return PR_Init ();
14859 return 0;
14861 _ACEOF
14862 if ac_fn_c_try_link "$LINENO"; then :
14863 ac_cv_lib_nspr_PR_Init=yes
14864 else
14865 ac_cv_lib_nspr_PR_Init=no
14867 rm -f core conftest.err conftest.$ac_objext \
14868 conftest$ac_exeext conftest.$ac_ext
14869 LIBS=$ac_check_lib_save_LIBS
14871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nspr_PR_Init" >&5
14872 $as_echo "$ac_cv_lib_nspr_PR_Init" >&6; }
14873 if test "x$ac_cv_lib_nspr_PR_Init" = xyes; then :
14874 lib_for_nspr="-lnspr"
14875 else
14877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PR_Init in -lnspr4" >&5
14878 $as_echo_n "checking for PR_Init in -lnspr4... " >&6; }
14879 if ${ac_cv_lib_nspr4_PR_Init+:} false; then :
14880 $as_echo_n "(cached) " >&6
14881 else
14882 ac_check_lib_save_LIBS=$LIBS
14883 LIBS="-lnspr4 $LIBS"
14884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14885 /* end confdefs.h. */
14887 /* Override any GCC internal prototype to avoid an error.
14888 Use char because int might match the return type of a GCC
14889 builtin and then its argument prototype would still apply. */
14890 #ifdef __cplusplus
14891 extern "C"
14892 #endif
14893 char PR_Init ();
14895 main ()
14897 return PR_Init ();
14899 return 0;
14901 _ACEOF
14902 if ac_fn_c_try_link "$LINENO"; then :
14903 ac_cv_lib_nspr4_PR_Init=yes
14904 else
14905 ac_cv_lib_nspr4_PR_Init=no
14907 rm -f core conftest.err conftest.$ac_objext \
14908 conftest$ac_exeext conftest.$ac_ext
14909 LIBS=$ac_check_lib_save_LIBS
14911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nspr4_PR_Init" >&5
14912 $as_echo "$ac_cv_lib_nspr4_PR_Init" >&6; }
14913 if test "x$ac_cv_lib_nspr4_PR_Init" = xyes; then :
14914 lib_for_nspr="-lnspr4"
14915 else
14917 enable_secure=false
14918 if test "$do_secure" = "yes"
14919 then
14920 as_fn_error $? "cannot enable secure sockets mode - no NSPR library" "$LINENO" 5
14930 if test "$enable_secure" = "true"
14931 then
14933 $as_echo "#define HAVE_SECURE_SOCKETS 1" >>confdefs.h
14938 CPPFLAGS="$saved_CPPFLAGS"
14939 CFLAGS="$saved_CFLAGS"
14942 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_add_4 in -latomic" >&5
14943 $as_echo_n "checking for __atomic_fetch_add_4 in -latomic... " >&6; }
14944 if ${ac_cv_lib_atomic___atomic_fetch_add_4+:} false; then :
14945 $as_echo_n "(cached) " >&6
14946 else
14947 ac_check_lib_save_LIBS=$LIBS
14948 LIBS="-latomic $LIBS"
14949 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14950 /* end confdefs.h. */
14952 /* Override any GCC internal prototype to avoid an error.
14953 Use char because int might match the return type of a GCC
14954 builtin and then its argument prototype would still apply. */
14955 #ifdef __cplusplus
14956 extern "C"
14957 #endif
14958 char __atomic_fetch_add_4 ();
14960 main ()
14962 return __atomic_fetch_add_4 ();
14964 return 0;
14966 _ACEOF
14967 if ac_fn_c_try_link "$LINENO"; then :
14968 ac_cv_lib_atomic___atomic_fetch_add_4=yes
14969 else
14970 ac_cv_lib_atomic___atomic_fetch_add_4=no
14972 rm -f core conftest.err conftest.$ac_objext \
14973 conftest$ac_exeext conftest.$ac_ext
14974 LIBS=$ac_check_lib_save_LIBS
14976 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_atomic___atomic_fetch_add_4" >&5
14977 $as_echo "$ac_cv_lib_atomic___atomic_fetch_add_4" >&6; }
14978 if test "x$ac_cv_lib_atomic___atomic_fetch_add_4" = xyes; then :
14979 lib_for_atomic="-latomic"
14984 if test -f /usr/include/sn/arsess.h
14985 then
14986 pcp_mpi_dirs=libpcp_mpi\ libpcp_mpiread
14987 else
14988 pcp_mpi_dirs=
14992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_un in sys/un.h" >&5
14993 $as_echo_n "checking for struct sockaddr_un in sys/un.h... " >&6; }
14994 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14995 /* end confdefs.h. */
14997 #include <sys/types.h>
14998 #ifdef HAVE_SYS_SOCKET_H
14999 #include <sys/socket.h>
15000 #endif
15001 #ifdef HAVE_SYS_UN_H
15002 #include <sys/un.h>
15003 #endif
15006 main ()
15008 struct sockaddr_un sa; sa.sun_family = AF_UNIX;
15010 return 0;
15012 _ACEOF
15013 if ac_fn_c_try_compile "$LINENO"; then :
15015 $as_echo "#define HAVE_STRUCT_SOCKADDR_UN 1" >>confdefs.h
15016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15017 $as_echo "yes" >&6; }
15018 else
15019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15020 $as_echo "no" >&6; }
15022 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15024 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct ucred in sys/socket.h" >&5
15025 $as_echo_n "checking for struct ucred in sys/socket.h... " >&6; }
15026 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15027 /* end confdefs.h. */
15029 #include <sys/types.h>
15030 #ifdef HAVE_SYS_SOCKET_H
15031 #include <sys/socket.h>
15032 #endif
15033 #ifdef HAVE_SYS_UN_H
15034 #include <sys/un.h>
15035 #endif
15038 main ()
15040 struct ucred ucred; ucred.uid = 0;
15042 return 0;
15044 _ACEOF
15045 if ac_fn_c_try_compile "$LINENO"; then :
15047 $as_echo "#define HAVE_STRUCT_UCRED 1" >>confdefs.h
15048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15049 $as_echo "yes" >&6; }
15050 else
15051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15052 $as_echo "no" >&6; }
15054 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15056 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in time.h" >&5
15057 $as_echo_n "checking for struct timespec in time.h... " >&6; }
15058 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15059 /* end confdefs.h. */
15061 #include <time.h>
15064 main ()
15066 struct timespec foo;
15068 return 0;
15070 _ACEOF
15071 if ac_fn_c_try_compile "$LINENO"; then :
15073 $as_echo "#define HAVE_STRUCT_TIMESPEC 1" >>confdefs.h
15074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15075 $as_echo "yes" >&6; }
15076 else
15077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15078 $as_echo "no" >&6; }
15080 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for altzone in time.h" >&5
15083 $as_echo_n "checking for altzone in time.h... " >&6; }
15084 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15085 /* end confdefs.h. */
15087 #include <time.h>
15090 main ()
15092 time_t az = altzone;
15094 return 0;
15096 _ACEOF
15097 if ac_fn_c_try_compile "$LINENO"; then :
15099 $as_echo "#define HAVE_ALTZONE 1" >>confdefs.h
15100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15101 $as_echo "yes" >&6; }
15102 else
15103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15104 $as_echo "no" >&6; }
15106 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strftime knows about %z" >&5
15109 $as_echo_n "checking if strftime knows about %z... " >&6; }
15110 if test "$cross_compiling" = yes; then :
15111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15112 $as_echo "no" >&6; }
15113 else
15114 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15115 /* end confdefs.h. */
15117 #include <time.h>
15118 int main () {
15119 char b[32]="";
15120 time_t t = time(NULL);
15121 struct tm * t1 = localtime (&t);
15122 if (strftime (b, 32, "%z", t1) < 3)
15123 return (1);
15124 if (strcmp(b, "%z") == 0)
15125 return(1);
15126 return (0);
15129 _ACEOF
15130 if ac_fn_c_try_run "$LINENO"; then :
15132 $as_echo "#define HAVE_STRFTIME_z 1" >>confdefs.h
15133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15134 $as_echo "yes" >&6; }
15135 else
15136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15137 $as_echo "no" >&6; }
15139 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15140 conftest.$ac_objext conftest.beam conftest.$ac_ext
15144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r returns char *" >&5
15145 $as_echo_n "checking if strerror_r returns char *... " >&6; }
15146 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15147 /* end confdefs.h. */
15148 #include <string.h>
15150 main ()
15152 strerror_r(0, NULL, 0)[0];
15154 return 0;
15156 _ACEOF
15157 if ac_fn_c_try_compile "$LINENO"; then :
15159 $as_echo "#define HAVE_STRERROR_R_PTR 1" >>confdefs.h
15160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15161 $as_echo "yes" >&6; }
15162 else
15163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15164 $as_echo "no" >&6; }
15166 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15168 savedLIBS=$LIBS
15169 LIBS=
15170 lib_for_curses=
15171 lib_for_readline=
15172 ac_fn_c_check_func "$LINENO" "readline" "ac_cv_func_readline"
15173 if test "x$ac_cv_func_readline" = xyes; then :
15175 else
15177 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
15178 $as_echo_n "checking for readline in -lreadline... " >&6; }
15179 if ${ac_cv_lib_readline_readline+:} false; then :
15180 $as_echo_n "(cached) " >&6
15181 else
15182 ac_check_lib_save_LIBS=$LIBS
15183 LIBS="-lreadline $LIBS"
15184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15185 /* end confdefs.h. */
15187 /* Override any GCC internal prototype to avoid an error.
15188 Use char because int might match the return type of a GCC
15189 builtin and then its argument prototype would still apply. */
15190 #ifdef __cplusplus
15191 extern "C"
15192 #endif
15193 char readline ();
15195 main ()
15197 return readline ();
15199 return 0;
15201 _ACEOF
15202 if ac_fn_c_try_link "$LINENO"; then :
15203 ac_cv_lib_readline_readline=yes
15204 else
15205 ac_cv_lib_readline_readline=no
15207 rm -f core conftest.err conftest.$ac_objext \
15208 conftest$ac_exeext conftest.$ac_ext
15209 LIBS=$ac_check_lib_save_LIBS
15211 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
15212 $as_echo "$ac_cv_lib_readline_readline" >&6; }
15213 if test "x$ac_cv_lib_readline_readline" = xyes; then :
15214 cat >>confdefs.h <<_ACEOF
15215 #define HAVE_LIBREADLINE 1
15216 _ACEOF
15218 LIBS="-lreadline $LIBS"
15220 else
15222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for add_history in -lreadline" >&5
15223 $as_echo_n "checking for add_history in -lreadline... " >&6; }
15224 if ${ac_cv_lib_readline_add_history+:} false; then :
15225 $as_echo_n "(cached) " >&6
15226 else
15227 ac_check_lib_save_LIBS=$LIBS
15228 LIBS="-lreadline -lcurses $LIBS"
15229 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15230 /* end confdefs.h. */
15232 /* Override any GCC internal prototype to avoid an error.
15233 Use char because int might match the return type of a GCC
15234 builtin and then its argument prototype would still apply. */
15235 #ifdef __cplusplus
15236 extern "C"
15237 #endif
15238 char add_history ();
15240 main ()
15242 return add_history ();
15244 return 0;
15246 _ACEOF
15247 if ac_fn_c_try_link "$LINENO"; then :
15248 ac_cv_lib_readline_add_history=yes
15249 else
15250 ac_cv_lib_readline_add_history=no
15252 rm -f core conftest.err conftest.$ac_objext \
15253 conftest$ac_exeext conftest.$ac_ext
15254 LIBS=$ac_check_lib_save_LIBS
15256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_add_history" >&5
15257 $as_echo "$ac_cv_lib_readline_add_history" >&6; }
15258 if test "x$ac_cv_lib_readline_add_history" = xyes; then :
15259 cat >>confdefs.h <<_ACEOF
15260 #define HAVE_LIBREADLINE 1
15261 _ACEOF
15263 LIBS="-lreadline $LIBS"
15273 if test $ac_cv_func_readline = yes
15274 then
15276 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
15278 elif test $ac_cv_lib_readline_readline = yes
15279 then
15281 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
15283 lib_for_readline=-lreadline
15284 elif test $ac_cv_lib_readline_add_history = yes
15285 then
15287 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
15289 lib_for_curses=-lcurses
15290 lib_for_readline=-lreadline
15294 LIBS=$savedLIBS
15297 pkg_failed=no
15298 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib" >&5
15299 $as_echo_n "checking for zlib... " >&6; }
15301 if test -n "$zlib_CFLAGS"; then
15302 pkg_cv_zlib_CFLAGS="$zlib_CFLAGS"
15303 elif test -n "$PKG_CONFIG"; then
15304 if test -n "$PKG_CONFIG" && \
15305 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib >= 1.0.0\""; } >&5
15306 ($PKG_CONFIG --exists --print-errors "zlib >= 1.0.0") 2>&5
15307 ac_status=$?
15308 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15309 test $ac_status = 0; }; then
15310 pkg_cv_zlib_CFLAGS=`$PKG_CONFIG --cflags "zlib >= 1.0.0" 2>/dev/null`
15311 test "x$?" != "x0" && pkg_failed=yes
15312 else
15313 pkg_failed=yes
15315 else
15316 pkg_failed=untried
15318 if test -n "$zlib_LIBS"; then
15319 pkg_cv_zlib_LIBS="$zlib_LIBS"
15320 elif test -n "$PKG_CONFIG"; then
15321 if test -n "$PKG_CONFIG" && \
15322 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib >= 1.0.0\""; } >&5
15323 ($PKG_CONFIG --exists --print-errors "zlib >= 1.0.0") 2>&5
15324 ac_status=$?
15325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15326 test $ac_status = 0; }; then
15327 pkg_cv_zlib_LIBS=`$PKG_CONFIG --libs "zlib >= 1.0.0" 2>/dev/null`
15328 test "x$?" != "x0" && pkg_failed=yes
15329 else
15330 pkg_failed=yes
15332 else
15333 pkg_failed=untried
15338 if test $pkg_failed = yes; then
15339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15340 $as_echo "no" >&6; }
15342 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15343 _pkg_short_errors_supported=yes
15344 else
15345 _pkg_short_errors_supported=no
15347 if test $_pkg_short_errors_supported = yes; then
15348 zlib_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "zlib >= 1.0.0" 2>&1`
15349 else
15350 zlib_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "zlib >= 1.0.0" 2>&1`
15352 # Put the nasty error message in config.log where it belongs
15353 echo "$zlib_PKG_ERRORS" >&5
15355 have_zlib=false
15356 elif test $pkg_failed = untried; then
15357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15358 $as_echo "no" >&6; }
15359 have_zlib=false
15360 else
15361 zlib_CFLAGS=$pkg_cv_zlib_CFLAGS
15362 zlib_LIBS=$pkg_cv_zlib_LIBS
15363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15364 $as_echo "yes" >&6; }
15365 have_zlib=true
15367 HAVE_ZLIB=$have_zlib
15370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AI_ADDRCONFIG" >&5
15371 $as_echo_n "checking for AI_ADDRCONFIG... " >&6; }
15372 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15373 /* end confdefs.h. */
15375 #include <netdb.h>
15376 int test = AI_ADDRCONFIG;
15379 main ()
15384 return 0;
15386 _ACEOF
15387 if ac_fn_c_try_compile "$LINENO"; then :
15389 $as_echo "#define HAVE_AI_ADDRCONFIG 1" >>confdefs.h
15390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15391 $as_echo "yes" >&6; }
15392 else
15393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15394 $as_echo "no" >&6; }
15396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15399 have_parfait=false
15400 if test -f ./build/tar/parfait.tar.gz
15401 then
15402 { $as_echo "$as_me:${as_lineno-$LINENO}: adding Parfait package to the build" >&5
15403 $as_echo "$as_me: adding Parfait package to the build" >&6;}
15404 have_parfait=true
15408 have_vector=false
15409 if test -f ./build/tar/vector.tar.gz
15410 then
15411 { $as_echo "$as_me:${as_lineno-$LINENO}: adding Vector webapp to the build" >&5
15412 $as_echo "$as_me: adding Vector webapp to the build" >&6;}
15413 have_vector=true
15417 have_webjs=false
15418 if test -f ./build/tar/webjs.tar.gz
15419 then
15420 { $as_echo "$as_me:${as_lineno-$LINENO}: adding webjs webapps to the build" >&5
15421 $as_echo "$as_me: adding webjs webapps to the build" >&6;}
15422 have_webjs=true
15429 ac_config_files="$ac_config_files src/include/builddefs src/include/pcp.conf pcp.lsm debian/pcp.preinst.head debian/pcp.postinst.head build/tar/preinstall.head build/tar/postinstall.head build/GNUlocaldefs build/mac/uninstall-pcp"
15431 cat >confcache <<\_ACEOF
15432 # This file is a shell script that caches the results of configure
15433 # tests run on this system so they can be shared between configure
15434 # scripts and configure runs, see configure's option --config-cache.
15435 # It is not useful on other systems. If it contains results you don't
15436 # want to keep, you may remove or edit it.
15438 # config.status only pays attention to the cache file if you give it
15439 # the --recheck option to rerun configure.
15441 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15442 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15443 # following values.
15445 _ACEOF
15447 # The following way of writing the cache mishandles newlines in values,
15448 # but we know of no workaround that is simple, portable, and efficient.
15449 # So, we kill variables containing newlines.
15450 # Ultrix sh set writes to stderr and can't be redirected directly,
15451 # and sets the high bit in the cache file unless we assign to the vars.
15453 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15454 eval ac_val=\$$ac_var
15455 case $ac_val in #(
15456 *${as_nl}*)
15457 case $ac_var in #(
15458 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15459 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15460 esac
15461 case $ac_var in #(
15462 _ | IFS | as_nl) ;; #(
15463 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15464 *) { eval $ac_var=; unset $ac_var;} ;;
15465 esac ;;
15466 esac
15467 done
15469 (set) 2>&1 |
15470 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15471 *${as_nl}ac_space=\ *)
15472 # `set' does not quote correctly, so add quotes: double-quote
15473 # substitution turns \\\\ into \\, and sed turns \\ into \.
15474 sed -n \
15475 "s/'/'\\\\''/g;
15476 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15477 ;; #(
15479 # `set' quotes correctly as required by POSIX, so do not add quotes.
15480 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15482 esac |
15483 sort
15485 sed '
15486 /^ac_cv_env_/b end
15487 t clear
15488 :clear
15489 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15490 t end
15491 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15492 :end' >>confcache
15493 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15494 if test -w "$cache_file"; then
15495 if test "x$cache_file" != "x/dev/null"; then
15496 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15497 $as_echo "$as_me: updating cache $cache_file" >&6;}
15498 if test ! -f "$cache_file" || test -h "$cache_file"; then
15499 cat confcache >"$cache_file"
15500 else
15501 case $cache_file in #(
15502 */* | ?:*)
15503 mv -f confcache "$cache_file"$$ &&
15504 mv -f "$cache_file"$$ "$cache_file" ;; #(
15506 mv -f confcache "$cache_file" ;;
15507 esac
15510 else
15511 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15512 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15515 rm -f confcache
15517 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15518 # Let make expand exec_prefix.
15519 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15521 DEFS=-DHAVE_CONFIG_H
15523 ac_libobjs=
15524 ac_ltlibobjs=
15526 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15527 # 1. Remove the extension, and $U if already installed.
15528 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15529 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15530 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15531 # will be set to the directory where LIBOBJS objects are built.
15532 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15533 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15534 done
15535 LIBOBJS=$ac_libobjs
15537 LTLIBOBJS=$ac_ltlibobjs
15541 : "${CONFIG_STATUS=./config.status}"
15542 ac_write_fail=0
15543 ac_clean_files_save=$ac_clean_files
15544 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15545 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15546 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15547 as_write_fail=0
15548 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15549 #! $SHELL
15550 # Generated by $as_me.
15551 # Run this file to recreate the current configuration.
15552 # Compiler output produced by configure, useful for debugging
15553 # configure, is in config.log if it exists.
15555 debug=false
15556 ac_cs_recheck=false
15557 ac_cs_silent=false
15559 SHELL=\${CONFIG_SHELL-$SHELL}
15560 export SHELL
15561 _ASEOF
15562 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15563 ## -------------------- ##
15564 ## M4sh Initialization. ##
15565 ## -------------------- ##
15567 # Be more Bourne compatible
15568 DUALCASE=1; export DUALCASE # for MKS sh
15569 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15570 emulate sh
15571 NULLCMD=:
15572 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15573 # is contrary to our usage. Disable this feature.
15574 alias -g '${1+"$@"}'='"$@"'
15575 setopt NO_GLOB_SUBST
15576 else
15577 case `(set -o) 2>/dev/null` in #(
15578 *posix*) :
15579 set -o posix ;; #(
15580 *) :
15582 esac
15586 as_nl='
15588 export as_nl
15589 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15590 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15591 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15592 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15593 # Prefer a ksh shell builtin over an external printf program on Solaris,
15594 # but without wasting forks for bash or zsh.
15595 if test -z "$BASH_VERSION$ZSH_VERSION" \
15596 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15597 as_echo='print -r --'
15598 as_echo_n='print -rn --'
15599 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15600 as_echo='printf %s\n'
15601 as_echo_n='printf %s'
15602 else
15603 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15604 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15605 as_echo_n='/usr/ucb/echo -n'
15606 else
15607 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15608 as_echo_n_body='eval
15609 arg=$1;
15610 case $arg in #(
15611 *"$as_nl"*)
15612 expr "X$arg" : "X\\(.*\\)$as_nl";
15613 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15614 esac;
15615 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15617 export as_echo_n_body
15618 as_echo_n='sh -c $as_echo_n_body as_echo'
15620 export as_echo_body
15621 as_echo='sh -c $as_echo_body as_echo'
15624 # The user is always right.
15625 if test "${PATH_SEPARATOR+set}" != set; then
15626 PATH_SEPARATOR=:
15627 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15628 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15629 PATH_SEPARATOR=';'
15634 # IFS
15635 # We need space, tab and new line, in precisely that order. Quoting is
15636 # there to prevent editors from complaining about space-tab.
15637 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15638 # splitting by setting IFS to empty value.)
15639 IFS=" "" $as_nl"
15641 # Find who we are. Look in the path if we contain no directory separator.
15642 as_myself=
15643 case $0 in #((
15644 *[\\/]* ) as_myself=$0 ;;
15645 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15646 for as_dir in $PATH
15648 IFS=$as_save_IFS
15649 test -z "$as_dir" && as_dir=.
15650 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15651 done
15652 IFS=$as_save_IFS
15655 esac
15656 # We did not find ourselves, most probably we were run as `sh COMMAND'
15657 # in which case we are not to be found in the path.
15658 if test "x$as_myself" = x; then
15659 as_myself=$0
15661 if test ! -f "$as_myself"; then
15662 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15663 exit 1
15666 # Unset variables that we do not need and which cause bugs (e.g. in
15667 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15668 # suppresses any "Segmentation fault" message there. '((' could
15669 # trigger a bug in pdksh 5.2.14.
15670 for as_var in BASH_ENV ENV MAIL MAILPATH
15671 do eval test x\${$as_var+set} = xset \
15672 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15673 done
15674 PS1='$ '
15675 PS2='> '
15676 PS4='+ '
15678 # NLS nuisances.
15679 LC_ALL=C
15680 export LC_ALL
15681 LANGUAGE=C
15682 export LANGUAGE
15684 # CDPATH.
15685 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15688 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15689 # ----------------------------------------
15690 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15691 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15692 # script with STATUS, using 1 if that was 0.
15693 as_fn_error ()
15695 as_status=$1; test $as_status -eq 0 && as_status=1
15696 if test "$4"; then
15697 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15698 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15700 $as_echo "$as_me: error: $2" >&2
15701 as_fn_exit $as_status
15702 } # as_fn_error
15705 # as_fn_set_status STATUS
15706 # -----------------------
15707 # Set $? to STATUS, without forking.
15708 as_fn_set_status ()
15710 return $1
15711 } # as_fn_set_status
15713 # as_fn_exit STATUS
15714 # -----------------
15715 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15716 as_fn_exit ()
15718 set +e
15719 as_fn_set_status $1
15720 exit $1
15721 } # as_fn_exit
15723 # as_fn_unset VAR
15724 # ---------------
15725 # Portably unset VAR.
15726 as_fn_unset ()
15728 { eval $1=; unset $1;}
15730 as_unset=as_fn_unset
15731 # as_fn_append VAR VALUE
15732 # ----------------------
15733 # Append the text in VALUE to the end of the definition contained in VAR. Take
15734 # advantage of any shell optimizations that allow amortized linear growth over
15735 # repeated appends, instead of the typical quadratic growth present in naive
15736 # implementations.
15737 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15738 eval 'as_fn_append ()
15740 eval $1+=\$2
15742 else
15743 as_fn_append ()
15745 eval $1=\$$1\$2
15747 fi # as_fn_append
15749 # as_fn_arith ARG...
15750 # ------------------
15751 # Perform arithmetic evaluation on the ARGs, and store the result in the
15752 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15753 # must be portable across $(()) and expr.
15754 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15755 eval 'as_fn_arith ()
15757 as_val=$(( $* ))
15759 else
15760 as_fn_arith ()
15762 as_val=`expr "$@" || test $? -eq 1`
15764 fi # as_fn_arith
15767 if expr a : '\(a\)' >/dev/null 2>&1 &&
15768 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15769 as_expr=expr
15770 else
15771 as_expr=false
15774 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15775 as_basename=basename
15776 else
15777 as_basename=false
15780 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15781 as_dirname=dirname
15782 else
15783 as_dirname=false
15786 as_me=`$as_basename -- "$0" ||
15787 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15788 X"$0" : 'X\(//\)$' \| \
15789 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15790 $as_echo X/"$0" |
15791 sed '/^.*\/\([^/][^/]*\)\/*$/{
15792 s//\1/
15795 /^X\/\(\/\/\)$/{
15796 s//\1/
15799 /^X\/\(\/\).*/{
15800 s//\1/
15803 s/.*/./; q'`
15805 # Avoid depending upon Character Ranges.
15806 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15807 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15808 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15809 as_cr_digits='0123456789'
15810 as_cr_alnum=$as_cr_Letters$as_cr_digits
15812 ECHO_C= ECHO_N= ECHO_T=
15813 case `echo -n x` in #(((((
15814 -n*)
15815 case `echo 'xy\c'` in
15816 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15817 xy) ECHO_C='\c';;
15818 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15819 ECHO_T=' ';;
15820 esac;;
15822 ECHO_N='-n';;
15823 esac
15825 rm -f conf$$ conf$$.exe conf$$.file
15826 if test -d conf$$.dir; then
15827 rm -f conf$$.dir/conf$$.file
15828 else
15829 rm -f conf$$.dir
15830 mkdir conf$$.dir 2>/dev/null
15832 if (echo >conf$$.file) 2>/dev/null; then
15833 if ln -s conf$$.file conf$$ 2>/dev/null; then
15834 as_ln_s='ln -s'
15835 # ... but there are two gotchas:
15836 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15837 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15838 # In both cases, we have to default to `cp -pR'.
15839 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15840 as_ln_s='cp -pR'
15841 elif ln conf$$.file conf$$ 2>/dev/null; then
15842 as_ln_s=ln
15843 else
15844 as_ln_s='cp -pR'
15846 else
15847 as_ln_s='cp -pR'
15849 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15850 rmdir conf$$.dir 2>/dev/null
15853 # as_fn_mkdir_p
15854 # -------------
15855 # Create "$as_dir" as a directory, including parents if necessary.
15856 as_fn_mkdir_p ()
15859 case $as_dir in #(
15860 -*) as_dir=./$as_dir;;
15861 esac
15862 test -d "$as_dir" || eval $as_mkdir_p || {
15863 as_dirs=
15864 while :; do
15865 case $as_dir in #(
15866 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15867 *) as_qdir=$as_dir;;
15868 esac
15869 as_dirs="'$as_qdir' $as_dirs"
15870 as_dir=`$as_dirname -- "$as_dir" ||
15871 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15872 X"$as_dir" : 'X\(//\)[^/]' \| \
15873 X"$as_dir" : 'X\(//\)$' \| \
15874 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15875 $as_echo X"$as_dir" |
15876 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15877 s//\1/
15880 /^X\(\/\/\)[^/].*/{
15881 s//\1/
15884 /^X\(\/\/\)$/{
15885 s//\1/
15888 /^X\(\/\).*/{
15889 s//\1/
15892 s/.*/./; q'`
15893 test -d "$as_dir" && break
15894 done
15895 test -z "$as_dirs" || eval "mkdir $as_dirs"
15896 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15899 } # as_fn_mkdir_p
15900 if mkdir -p . 2>/dev/null; then
15901 as_mkdir_p='mkdir -p "$as_dir"'
15902 else
15903 test -d ./-p && rmdir ./-p
15904 as_mkdir_p=false
15908 # as_fn_executable_p FILE
15909 # -----------------------
15910 # Test if FILE is an executable regular file.
15911 as_fn_executable_p ()
15913 test -f "$1" && test -x "$1"
15914 } # as_fn_executable_p
15915 as_test_x='test -x'
15916 as_executable_p=as_fn_executable_p
15918 # Sed expression to map a string onto a valid CPP name.
15919 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15921 # Sed expression to map a string onto a valid variable name.
15922 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15925 exec 6>&1
15926 ## ----------------------------------- ##
15927 ## Main body of $CONFIG_STATUS script. ##
15928 ## ----------------------------------- ##
15929 _ASEOF
15930 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15932 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15933 # Save the log message, to keep $0 and so on meaningful, and to
15934 # report actual input values of CONFIG_FILES etc. instead of their
15935 # values after options handling.
15936 ac_log="
15937 This file was extended by $as_me, which was
15938 generated by GNU Autoconf 2.69. Invocation command line was
15940 CONFIG_FILES = $CONFIG_FILES
15941 CONFIG_HEADERS = $CONFIG_HEADERS
15942 CONFIG_LINKS = $CONFIG_LINKS
15943 CONFIG_COMMANDS = $CONFIG_COMMANDS
15944 $ $0 $@
15946 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15949 _ACEOF
15951 case $ac_config_files in *"
15952 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15953 esac
15955 case $ac_config_headers in *"
15956 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15957 esac
15960 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15961 # Files that config.status was made for.
15962 config_files="$ac_config_files"
15963 config_headers="$ac_config_headers"
15965 _ACEOF
15967 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15968 ac_cs_usage="\
15969 \`$as_me' instantiates files and other configuration actions
15970 from templates according to the current configuration. Unless the files
15971 and actions are specified as TAGs, all are instantiated by default.
15973 Usage: $0 [OPTION]... [TAG]...
15975 -h, --help print this help, then exit
15976 -V, --version print version number and configuration settings, then exit
15977 --config print configuration, then exit
15978 -q, --quiet, --silent
15979 do not print progress messages
15980 -d, --debug don't remove temporary files
15981 --recheck update $as_me by reconfiguring in the same conditions
15982 --file=FILE[:TEMPLATE]
15983 instantiate the configuration file FILE
15984 --header=FILE[:TEMPLATE]
15985 instantiate the configuration header FILE
15987 Configuration files:
15988 $config_files
15990 Configuration headers:
15991 $config_headers
15993 Report bugs to the package provider."
15995 _ACEOF
15996 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15997 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15998 ac_cs_version="\\
15999 config.status
16000 configured by $0, generated by GNU Autoconf 2.69,
16001 with options \\"\$ac_cs_config\\"
16003 Copyright (C) 2012 Free Software Foundation, Inc.
16004 This config.status script is free software; the Free Software Foundation
16005 gives unlimited permission to copy, distribute and modify it."
16007 ac_pwd='$ac_pwd'
16008 srcdir='$srcdir'
16009 test -n "\$AWK" || AWK=awk
16010 _ACEOF
16012 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16013 # The default lists apply if the user does not specify any file.
16014 ac_need_defaults=:
16015 while test $# != 0
16017 case $1 in
16018 --*=?*)
16019 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16020 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16021 ac_shift=:
16023 --*=)
16024 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16025 ac_optarg=
16026 ac_shift=:
16029 ac_option=$1
16030 ac_optarg=$2
16031 ac_shift=shift
16033 esac
16035 case $ac_option in
16036 # Handling of the options.
16037 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16038 ac_cs_recheck=: ;;
16039 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16040 $as_echo "$ac_cs_version"; exit ;;
16041 --config | --confi | --conf | --con | --co | --c )
16042 $as_echo "$ac_cs_config"; exit ;;
16043 --debug | --debu | --deb | --de | --d | -d )
16044 debug=: ;;
16045 --file | --fil | --fi | --f )
16046 $ac_shift
16047 case $ac_optarg in
16048 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16049 '') as_fn_error $? "missing file argument" ;;
16050 esac
16051 as_fn_append CONFIG_FILES " '$ac_optarg'"
16052 ac_need_defaults=false;;
16053 --header | --heade | --head | --hea )
16054 $ac_shift
16055 case $ac_optarg in
16056 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16057 esac
16058 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16059 ac_need_defaults=false;;
16060 --he | --h)
16061 # Conflict between --help and --header
16062 as_fn_error $? "ambiguous option: \`$1'
16063 Try \`$0 --help' for more information.";;
16064 --help | --hel | -h )
16065 $as_echo "$ac_cs_usage"; exit ;;
16066 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16067 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16068 ac_cs_silent=: ;;
16070 # This is an error.
16071 -*) as_fn_error $? "unrecognized option: \`$1'
16072 Try \`$0 --help' for more information." ;;
16074 *) as_fn_append ac_config_targets " $1"
16075 ac_need_defaults=false ;;
16077 esac
16078 shift
16079 done
16081 ac_configure_extra_args=
16083 if $ac_cs_silent; then
16084 exec 6>/dev/null
16085 ac_configure_extra_args="$ac_configure_extra_args --silent"
16088 _ACEOF
16089 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16090 if \$ac_cs_recheck; then
16091 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16092 shift
16093 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16094 CONFIG_SHELL='$SHELL'
16095 export CONFIG_SHELL
16096 exec "\$@"
16099 _ACEOF
16100 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16101 exec 5>>config.log
16103 echo
16104 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16105 ## Running $as_me. ##
16106 _ASBOX
16107 $as_echo "$ac_log"
16108 } >&5
16110 _ACEOF
16111 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16112 _ACEOF
16114 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16116 # Handling of arguments.
16117 for ac_config_target in $ac_config_targets
16119 case $ac_config_target in
16120 "src/include/pcp/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pcp/config.h" ;;
16121 "src/include/pcp/configsz.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pcp/configsz.h" ;;
16122 "src/include/pcp/platform_defs.h") CONFIG_FILES="$CONFIG_FILES src/include/pcp/platform_defs.h" ;;
16123 "src/include/pcp/platformsz.h") CONFIG_FILES="$CONFIG_FILES src/include/pcp/platformsz.h" ;;
16124 "src/include/builddefs") CONFIG_FILES="$CONFIG_FILES src/include/builddefs" ;;
16125 "src/include/pcp.conf") CONFIG_FILES="$CONFIG_FILES src/include/pcp.conf" ;;
16126 "pcp.lsm") CONFIG_FILES="$CONFIG_FILES pcp.lsm" ;;
16127 "debian/pcp.preinst.head") CONFIG_FILES="$CONFIG_FILES debian/pcp.preinst.head" ;;
16128 "debian/pcp.postinst.head") CONFIG_FILES="$CONFIG_FILES debian/pcp.postinst.head" ;;
16129 "build/tar/preinstall.head") CONFIG_FILES="$CONFIG_FILES build/tar/preinstall.head" ;;
16130 "build/tar/postinstall.head") CONFIG_FILES="$CONFIG_FILES build/tar/postinstall.head" ;;
16131 "build/GNUlocaldefs") CONFIG_FILES="$CONFIG_FILES build/GNUlocaldefs" ;;
16132 "build/mac/uninstall-pcp") CONFIG_FILES="$CONFIG_FILES build/mac/uninstall-pcp" ;;
16134 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16135 esac
16136 done
16139 # If the user did not use the arguments to specify the items to instantiate,
16140 # then the envvar interface is used. Set only those that are not.
16141 # We use the long form for the default assignment because of an extremely
16142 # bizarre bug on SunOS 4.1.3.
16143 if $ac_need_defaults; then
16144 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16145 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16148 # Have a temporary directory for convenience. Make it in the build tree
16149 # simply because there is no reason against having it here, and in addition,
16150 # creating and moving files from /tmp can sometimes cause problems.
16151 # Hook for its removal unless debugging.
16152 # Note that there is a small window in which the directory will not be cleaned:
16153 # after its creation but before its name has been assigned to `$tmp'.
16154 $debug ||
16156 tmp= ac_tmp=
16157 trap 'exit_status=$?
16158 : "${ac_tmp:=$tmp}"
16159 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16161 trap 'as_fn_exit 1' 1 2 13 15
16163 # Create a (secure) tmp directory for tmp files.
16166 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16167 test -d "$tmp"
16168 } ||
16170 tmp=./conf$$-$RANDOM
16171 (umask 077 && mkdir "$tmp")
16172 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16173 ac_tmp=$tmp
16175 # Set up the scripts for CONFIG_FILES section.
16176 # No need to generate them if there are no CONFIG_FILES.
16177 # This happens for instance with `./config.status config.h'.
16178 if test -n "$CONFIG_FILES"; then
16181 ac_cr=`echo X | tr X '\015'`
16182 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16183 # But we know of no other shell where ac_cr would be empty at this
16184 # point, so we can use a bashism as a fallback.
16185 if test "x$ac_cr" = x; then
16186 eval ac_cr=\$\'\\r\'
16188 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16189 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16190 ac_cs_awk_cr='\\r'
16191 else
16192 ac_cs_awk_cr=$ac_cr
16195 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16196 _ACEOF
16200 echo "cat >conf$$subs.awk <<_ACEOF" &&
16201 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16202 echo "_ACEOF"
16203 } >conf$$subs.sh ||
16204 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16205 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16206 ac_delim='%!_!# '
16207 for ac_last_try in false false false false false :; do
16208 . ./conf$$subs.sh ||
16209 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16211 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16212 if test $ac_delim_n = $ac_delim_num; then
16213 break
16214 elif $ac_last_try; then
16215 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16216 else
16217 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16219 done
16220 rm -f conf$$subs.sh
16222 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16223 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16224 _ACEOF
16225 sed -n '
16227 s/^/S["/; s/!.*/"]=/
16230 s/^[^!]*!//
16231 :repl
16232 t repl
16233 s/'"$ac_delim"'$//
16234 t delim
16237 s/\(.\{148\}\)..*/\1/
16238 t more1
16239 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16242 b repl
16243 :more1
16244 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16247 s/.\{148\}//
16248 t nl
16249 :delim
16251 s/\(.\{148\}\)..*/\1/
16252 t more2
16253 s/["\\]/\\&/g; s/^/"/; s/$/"/
16256 :more2
16257 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16260 s/.\{148\}//
16261 t delim
16262 ' <conf$$subs.awk | sed '
16263 /^[^""]/{
16265 s/\n//
16267 ' >>$CONFIG_STATUS || ac_write_fail=1
16268 rm -f conf$$subs.awk
16269 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16270 _ACAWK
16271 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16272 for (key in S) S_is_set[key] = 1
16273 FS = "\a"
16277 line = $ 0
16278 nfields = split(line, field, "@")
16279 substed = 0
16280 len = length(field[1])
16281 for (i = 2; i < nfields; i++) {
16282 key = field[i]
16283 keylen = length(key)
16284 if (S_is_set[key]) {
16285 value = S[key]
16286 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16287 len += length(value) + length(field[++i])
16288 substed = 1
16289 } else
16290 len += 1 + keylen
16293 print line
16296 _ACAWK
16297 _ACEOF
16298 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16299 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16300 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16301 else
16303 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16304 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16305 _ACEOF
16307 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16308 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16309 # trailing colons and then remove the whole line if VPATH becomes empty
16310 # (actually we leave an empty line to preserve line numbers).
16311 if test "x$srcdir" = x.; then
16312 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16314 s///
16315 s/^/:/
16316 s/[ ]*$/:/
16317 s/:\$(srcdir):/:/g
16318 s/:\${srcdir}:/:/g
16319 s/:@srcdir@:/:/g
16320 s/^:*//
16321 s/:*$//
16323 s/\(=[ ]*\).*/\1/
16325 s/\n//
16326 s/^[^=]*=[ ]*$//
16330 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16331 fi # test -n "$CONFIG_FILES"
16333 # Set up the scripts for CONFIG_HEADERS section.
16334 # No need to generate them if there are no CONFIG_HEADERS.
16335 # This happens for instance with `./config.status Makefile'.
16336 if test -n "$CONFIG_HEADERS"; then
16337 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16338 BEGIN {
16339 _ACEOF
16341 # Transform confdefs.h into an awk script `defines.awk', embedded as
16342 # here-document in config.status, that substitutes the proper values into
16343 # config.h.in to produce config.h.
16345 # Create a delimiter string that does not exist in confdefs.h, to ease
16346 # handling of long lines.
16347 ac_delim='%!_!# '
16348 for ac_last_try in false false :; do
16349 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16350 if test -z "$ac_tt"; then
16351 break
16352 elif $ac_last_try; then
16353 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16354 else
16355 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16357 done
16359 # For the awk script, D is an array of macro values keyed by name,
16360 # likewise P contains macro parameters if any. Preserve backslash
16361 # newline sequences.
16363 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16364 sed -n '
16365 s/.\{148\}/&'"$ac_delim"'/g
16366 t rset
16367 :rset
16368 s/^[ ]*#[ ]*define[ ][ ]*/ /
16369 t def
16371 :def
16372 s/\\$//
16373 t bsnl
16374 s/["\\]/\\&/g
16375 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16376 D["\1"]=" \3"/p
16377 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16379 :bsnl
16380 s/["\\]/\\&/g
16381 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16382 D["\1"]=" \3\\\\\\n"\\/p
16383 t cont
16384 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16385 t cont
16387 :cont
16389 s/.\{148\}/&'"$ac_delim"'/g
16390 t clear
16391 :clear
16392 s/\\$//
16393 t bsnlc
16394 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16396 :bsnlc
16397 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16398 b cont
16399 ' <confdefs.h | sed '
16400 s/'"$ac_delim"'/"\\\
16401 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16403 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16404 for (key in D) D_is_set[key] = 1
16405 FS = "\a"
16407 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16408 line = \$ 0
16409 split(line, arg, " ")
16410 if (arg[1] == "#") {
16411 defundef = arg[2]
16412 mac1 = arg[3]
16413 } else {
16414 defundef = substr(arg[1], 2)
16415 mac1 = arg[2]
16417 split(mac1, mac2, "(") #)
16418 macro = mac2[1]
16419 prefix = substr(line, 1, index(line, defundef) - 1)
16420 if (D_is_set[macro]) {
16421 # Preserve the white space surrounding the "#".
16422 print prefix "define", macro P[macro] D[macro]
16423 next
16424 } else {
16425 # Replace #undef with comments. This is necessary, for example,
16426 # in the case of _POSIX_SOURCE, which is predefined and required
16427 # on some systems where configure will not decide to define it.
16428 if (defundef == "undef") {
16429 print "/*", prefix defundef, macro, "*/"
16430 next
16434 { print }
16435 _ACAWK
16436 _ACEOF
16437 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16438 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16439 fi # test -n "$CONFIG_HEADERS"
16442 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
16443 shift
16444 for ac_tag
16446 case $ac_tag in
16447 :[FHLC]) ac_mode=$ac_tag; continue;;
16448 esac
16449 case $ac_mode$ac_tag in
16450 :[FHL]*:*);;
16451 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16452 :[FH]-) ac_tag=-:-;;
16453 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16454 esac
16455 ac_save_IFS=$IFS
16456 IFS=:
16457 set x $ac_tag
16458 IFS=$ac_save_IFS
16459 shift
16460 ac_file=$1
16461 shift
16463 case $ac_mode in
16464 :L) ac_source=$1;;
16465 :[FH])
16466 ac_file_inputs=
16467 for ac_f
16469 case $ac_f in
16470 -) ac_f="$ac_tmp/stdin";;
16471 *) # Look for the file first in the build tree, then in the source tree
16472 # (if the path is not absolute). The absolute path cannot be DOS-style,
16473 # because $ac_f cannot contain `:'.
16474 test -f "$ac_f" ||
16475 case $ac_f in
16476 [\\/$]*) false;;
16477 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16478 esac ||
16479 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16480 esac
16481 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16482 as_fn_append ac_file_inputs " '$ac_f'"
16483 done
16485 # Let's still pretend it is `configure' which instantiates (i.e., don't
16486 # use $as_me), people would be surprised to read:
16487 # /* config.h. Generated by config.status. */
16488 configure_input='Generated from '`
16489 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16490 `' by configure.'
16491 if test x"$ac_file" != x-; then
16492 configure_input="$ac_file. $configure_input"
16493 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16494 $as_echo "$as_me: creating $ac_file" >&6;}
16496 # Neutralize special characters interpreted by sed in replacement strings.
16497 case $configure_input in #(
16498 *\&* | *\|* | *\\* )
16499 ac_sed_conf_input=`$as_echo "$configure_input" |
16500 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16501 *) ac_sed_conf_input=$configure_input;;
16502 esac
16504 case $ac_tag in
16505 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16506 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16507 esac
16509 esac
16511 ac_dir=`$as_dirname -- "$ac_file" ||
16512 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16513 X"$ac_file" : 'X\(//\)[^/]' \| \
16514 X"$ac_file" : 'X\(//\)$' \| \
16515 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16516 $as_echo X"$ac_file" |
16517 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16518 s//\1/
16521 /^X\(\/\/\)[^/].*/{
16522 s//\1/
16525 /^X\(\/\/\)$/{
16526 s//\1/
16529 /^X\(\/\).*/{
16530 s//\1/
16533 s/.*/./; q'`
16534 as_dir="$ac_dir"; as_fn_mkdir_p
16535 ac_builddir=.
16537 case "$ac_dir" in
16538 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16540 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16541 # A ".." for each directory in $ac_dir_suffix.
16542 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16543 case $ac_top_builddir_sub in
16544 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16545 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16546 esac ;;
16547 esac
16548 ac_abs_top_builddir=$ac_pwd
16549 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16550 # for backward compatibility:
16551 ac_top_builddir=$ac_top_build_prefix
16553 case $srcdir in
16554 .) # We are building in place.
16555 ac_srcdir=.
16556 ac_top_srcdir=$ac_top_builddir_sub
16557 ac_abs_top_srcdir=$ac_pwd ;;
16558 [\\/]* | ?:[\\/]* ) # Absolute name.
16559 ac_srcdir=$srcdir$ac_dir_suffix;
16560 ac_top_srcdir=$srcdir
16561 ac_abs_top_srcdir=$srcdir ;;
16562 *) # Relative name.
16563 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16564 ac_top_srcdir=$ac_top_build_prefix$srcdir
16565 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16566 esac
16567 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16570 case $ac_mode in
16573 # CONFIG_FILE
16576 _ACEOF
16578 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16579 # If the template does not know about datarootdir, expand it.
16580 # FIXME: This hack should be removed a few years after 2.60.
16581 ac_datarootdir_hack=; ac_datarootdir_seen=
16582 ac_sed_dataroot='
16583 /datarootdir/ {
16587 /@datadir@/p
16588 /@docdir@/p
16589 /@infodir@/p
16590 /@localedir@/p
16591 /@mandir@/p'
16592 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16593 *datarootdir*) ac_datarootdir_seen=yes;;
16594 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16595 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16596 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16597 _ACEOF
16598 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16599 ac_datarootdir_hack='
16600 s&@datadir@&$datadir&g
16601 s&@docdir@&$docdir&g
16602 s&@infodir@&$infodir&g
16603 s&@localedir@&$localedir&g
16604 s&@mandir@&$mandir&g
16605 s&\\\${datarootdir}&$datarootdir&g' ;;
16606 esac
16607 _ACEOF
16609 # Neutralize VPATH when `$srcdir' = `.'.
16610 # Shell code in configure.ac might set extrasub.
16611 # FIXME: do we really want to maintain this feature?
16612 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16613 ac_sed_extra="$ac_vpsub
16614 $extrasub
16615 _ACEOF
16616 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16618 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16619 s|@configure_input@|$ac_sed_conf_input|;t t
16620 s&@top_builddir@&$ac_top_builddir_sub&;t t
16621 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16622 s&@srcdir@&$ac_srcdir&;t t
16623 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16624 s&@top_srcdir@&$ac_top_srcdir&;t t
16625 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16626 s&@builddir@&$ac_builddir&;t t
16627 s&@abs_builddir@&$ac_abs_builddir&;t t
16628 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16629 $ac_datarootdir_hack
16631 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16632 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16634 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16635 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16636 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16637 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16638 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16639 which seems to be undefined. Please make sure it is defined" >&5
16640 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16641 which seems to be undefined. Please make sure it is defined" >&2;}
16643 rm -f "$ac_tmp/stdin"
16644 case $ac_file in
16645 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16646 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16647 esac \
16648 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16652 # CONFIG_HEADER
16654 if test x"$ac_file" != x-; then
16656 $as_echo "/* $configure_input */" \
16657 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16658 } >"$ac_tmp/config.h" \
16659 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16660 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16661 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16662 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16663 else
16664 rm -f "$ac_file"
16665 mv "$ac_tmp/config.h" "$ac_file" \
16666 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16668 else
16669 $as_echo "/* $configure_input */" \
16670 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16671 || as_fn_error $? "could not create -" "$LINENO" 5
16676 esac
16678 done # for ac_tag
16681 as_fn_exit 0
16682 _ACEOF
16683 ac_clean_files=$ac_clean_files_save
16685 test $ac_write_fail = 0 ||
16686 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16689 # configure is writing to config.log, and then calls config.status.
16690 # config.status does its own redirection, appending to config.log.
16691 # Unfortunately, on DOS this fails, as config.log is still kept open
16692 # by configure, so config.status won't be able to write to it; its
16693 # output is simply discarded. So we exec the FD to /dev/null,
16694 # effectively closing config.log, so it can be properly (re)opened and
16695 # appended to by config.status. When coming back to configure, we
16696 # need to make the FD available again.
16697 if test "$no_create" != yes; then
16698 ac_cs_success=:
16699 ac_config_status_args=
16700 test "$silent" = yes &&
16701 ac_config_status_args="$ac_config_status_args --quiet"
16702 exec 5>/dev/null
16703 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16704 exec 5>>config.log
16705 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16706 # would make configure fail if this is the last instruction.
16707 $ac_cs_success || as_fn_exit 1
16709 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16710 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16711 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}