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 :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print
-rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
53 as_echo_n='/usr
/ucb
/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
66 as_echo_n='sh
-c $as_echo_n_body as_echo
'
69 as_echo='sh
-c $as_echo_body as_echo
'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x
; then
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var
in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\
${$as_var+set} = xset \
120 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
133 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x
"${_as_can_reexec}" != xno
&& test "x$CONFIG_SHELL" != x
; then
138 _as_can_reexec
=no
; export _as_can_reexec
;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
145 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
147 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec
=; unset _as_can_reexec
;}
160 if test "x$CONFIG_SHELL" = x
; then
161 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 case \`(set -o) 2>/dev/null\` in #(
177 as_required
="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
195 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev
/null
; then :
205 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
208 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
210 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
213 test -z "$as_dir" && as_dir
=.
217 for as_base
in sh bash ksh sh5
; do
218 # Try only shells that exist, to save several forks.
219 as_shell
=$as_dir/$as_base
220 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
222 CONFIG_SHELL
=$as_shell as_have_required
=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
231 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
233 CONFIG_SHELL
=$SHELL as_have_required
=yes
238 if test "x$CONFIG_SHELL" != x
; then :
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
246 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
248 *v
*x
* |
*x
*v
* ) as_opts
=-vx ;;
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
260 if test x
$as_have_required = xno
; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x
${ZSH_VERSION+set} = xset
; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
276 SHELL
=${CONFIG_SHELL-/bin/sh}
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE
= GREP_OPTIONS
=
280 unset CLICOLOR_FORCE GREP_OPTIONS
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
287 # Portably unset VAR.
290 { eval $1=; unset $1;}
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
314 # Create "$as_dir" as a directory, including parents if necessary.
319 -*) as_dir
=.
/$as_dir;;
321 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
325 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
328 as_dirs
="'$as_qdir' $as_dirs"
329 as_dir
=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
352 test -d "$as_dir" && break
354 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
355 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p
()
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
374 eval 'as_fn_append ()
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
398 as_val
=`expr "$@" || test $? -eq 1`
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
410 as_status
=$1; test $as_status -eq 0 && as_status
=1
412 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit
$as_status
419 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
426 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
432 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
438 as_me
=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
457 # Avoid depending upon Character Ranges.
458 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits
='0123456789'
462 as_cr_alnum
=$as_cr_Letters$as_cr_digits
465 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
466 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485 chmod +x
"$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec
=no
; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
496 # Exit status is that of the last command.
500 ECHO_C
= ECHO_N
= ECHO_T
=
501 case `echo -n x` in #(((((
503 case `echo 'xy\c'` in
504 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
513 rm -f conf$$ conf$$.exe conf$$.
file
514 if test -d conf$$.dir
; then
515 rm -f conf$$.dir
/conf$$.
file
518 mkdir conf$$.dir
2>/dev
/null
520 if (echo >conf$$.
file) 2>/dev
/null
; then
521 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
529 elif ln conf$$.
file conf$$
2>/dev
/null
; then
537 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
538 rmdir conf$$.dir
2>/dev
/null
540 if mkdir
-p .
2>/dev
/null
; then
541 as_mkdir_p
='mkdir -p "$as_dir"'
543 test -d .
/-p && rmdir .
/-p
548 as_executable_p
=as_fn_executable_p
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
568 ac_default_prefix
=/usr
/local
570 ac_config_libobj_dir
=.
577 # Identity of this package.
585 ac_unique_file
="src/include/pcp/pmapi.h"
586 # Factoring default headers for most tests.
587 ac_includes_default
="\
589 #ifdef HAVE_SYS_TYPES_H
590 # include <sys/types.h>
592 #ifdef HAVE_SYS_STAT_H
593 # include <sys/stat.h>
599 # ifdef HAVE_STDLIB_H
604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
609 #ifdef HAVE_STRINGS_H
610 # include <strings.h>
612 #ifdef HAVE_INTTYPES_H
613 # include <inttypes.h>
622 ac_subst_vars
='PACKAGE_CONFIGURE
660 have_bzip2ed_manpages
661 have_gzipped_manpages
681 pcp_pmloggercontrol_path
682 pcp_pmsnapcontrol_path
684 pcp_pmproxyoptions_path
685 pcp_pmmgroptions_path
686 pcp_pmwebdoptions_path
799 have_python_jsonpointer
818 SYSTEMD_SYSTEMUNITDIR
918 program_transform_name
931 enable_option_checking
964 with_perl_installdirs
965 with_perl_install_base
976 ac_precious_vars
='build_alias
995 SYSTEMD_SYSTEMUNITDIR
1002 libmicrohttpd_CFLAGS
1011 # Initialize some variables set by options.
1013 ac_init_version
=false
1014 ac_unrecognized_opts
=
1015 ac_unrecognized_sep
=
1016 # The variables have the same names as the options, with
1017 # dashes changed to underlines.
1018 cache_file
=/dev
/null
1025 program_transform_name
=s
,x
,x
,
1033 # Installation directory options.
1034 # These are left unexpanded so users can "make install exec_prefix=/foo"
1035 # and all the variables that are supposed to be based on exec_prefix
1036 # by default will actually change.
1037 # Use braces instead of parens because sh, perl, etc. also accept them.
1038 # (The list follows the same order as the GNU Coding Standards.)
1039 bindir
='${exec_prefix}/bin'
1040 sbindir
='${exec_prefix}/sbin'
1041 libexecdir
='${exec_prefix}/libexec'
1042 datarootdir
='${prefix}/share'
1043 datadir
='${datarootdir}'
1044 sysconfdir
='${prefix}/etc'
1045 sharedstatedir
='${prefix}/com'
1046 localstatedir
='${prefix}/var'
1047 includedir
='${prefix}/include'
1048 oldincludedir
='/usr/include'
1049 docdir
='${datarootdir}/doc/${PACKAGE}'
1050 infodir
='${datarootdir}/info'
1055 libdir
='${exec_prefix}/lib'
1056 localedir
='${datarootdir}/locale'
1057 mandir
='${datarootdir}/man'
1063 # If the previous option needs an argument, assign it.
1064 if test -n "$ac_prev"; then
1065 eval $ac_prev=\
$ac_option
1071 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1076 # Accept the important Cygnus configure options, so we can diagnose typos.
1078 case $ac_dashdash$ac_option in
1082 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1084 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1085 bindir
=$ac_optarg ;;
1087 -build |
--build |
--buil |
--bui |
--bu)
1088 ac_prev
=build_alias
;;
1089 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1090 build_alias
=$ac_optarg ;;
1092 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1093 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1094 ac_prev
=cache_file
;;
1095 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1096 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1097 cache_file
=$ac_optarg ;;
1099 --config-cache |
-C)
1100 cache_file
=config.cache
;;
1102 -datadir |
--datadir |
--datadi |
--datad)
1104 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1105 datadir
=$ac_optarg ;;
1107 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1108 |
--dataroo |
--dataro |
--datar)
1109 ac_prev
=datarootdir
;;
1110 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1111 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1112 datarootdir
=$ac_optarg ;;
1114 -disable-* |
--disable-*)
1115 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1116 # Reject names that are not valid shell variable names.
1117 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1118 as_fn_error $?
"invalid feature name: $ac_useropt"
1119 ac_useropt_orig
=$ac_useropt
1120 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1121 case $ac_user_opts in
1123 "enable_
$ac_useropt"
1125 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1126 ac_unrecognized_sep
=', ';;
1128 eval enable_
$ac_useropt=no
;;
1130 -docdir |
--docdir |
--docdi |
--doc |
--do)
1132 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1133 docdir
=$ac_optarg ;;
1135 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1137 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1138 dvidir
=$ac_optarg ;;
1140 -enable-* |
--enable-*)
1141 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1142 # Reject names that are not valid shell variable names.
1143 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1144 as_fn_error $?
"invalid feature name: $ac_useropt"
1145 ac_useropt_orig
=$ac_useropt
1146 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1147 case $ac_user_opts in
1149 "enable_
$ac_useropt"
1151 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1152 ac_unrecognized_sep
=', ';;
1154 eval enable_
$ac_useropt=\
$ac_optarg ;;
1156 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1157 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1158 |
--exec |
--exe |
--ex)
1159 ac_prev
=exec_prefix
;;
1160 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1161 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1162 |
--exec=* |
--exe=* |
--ex=*)
1163 exec_prefix
=$ac_optarg ;;
1165 -gas |
--gas |
--ga |
--g)
1166 # Obsolete; use --with-gas.
1169 -help |
--help |
--hel |
--he |
-h)
1170 ac_init_help
=long
;;
1171 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1172 ac_init_help
=recursive
;;
1173 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1174 ac_init_help
=short
;;
1176 -host |
--host |
--hos |
--ho)
1177 ac_prev
=host_alias
;;
1178 -host=* |
--host=* |
--hos=* |
--ho=*)
1179 host_alias
=$ac_optarg ;;
1181 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1183 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1185 htmldir
=$ac_optarg ;;
1187 -includedir |
--includedir |
--includedi |
--included |
--include \
1188 |
--includ |
--inclu |
--incl |
--inc)
1189 ac_prev
=includedir
;;
1190 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1191 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1192 includedir
=$ac_optarg ;;
1194 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1196 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1197 infodir
=$ac_optarg ;;
1199 -libdir |
--libdir |
--libdi |
--libd)
1201 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1202 libdir
=$ac_optarg ;;
1204 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1205 |
--libexe |
--libex |
--libe)
1206 ac_prev
=libexecdir
;;
1207 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1208 |
--libexe=* |
--libex=* |
--libe=*)
1209 libexecdir
=$ac_optarg ;;
1211 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1212 ac_prev
=localedir
;;
1213 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1214 localedir
=$ac_optarg ;;
1216 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1217 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1218 ac_prev
=localstatedir
;;
1219 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1220 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1221 localstatedir
=$ac_optarg ;;
1223 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1225 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1226 mandir
=$ac_optarg ;;
1228 -nfp |
--nfp |
--nf)
1229 # Obsolete; use --without-fp.
1232 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1233 |
--no-cr |
--no-c |
-n)
1236 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1237 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1240 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1241 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1242 |
--oldin |
--oldi |
--old |
--ol |
--o)
1243 ac_prev
=oldincludedir
;;
1244 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1245 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1246 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1247 oldincludedir
=$ac_optarg ;;
1249 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1251 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1252 prefix
=$ac_optarg ;;
1254 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1255 |
--program-pre |
--program-pr |
--program-p)
1256 ac_prev
=program_prefix
;;
1257 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1258 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1259 program_prefix
=$ac_optarg ;;
1261 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1262 |
--program-suf |
--program-su |
--program-s)
1263 ac_prev
=program_suffix
;;
1264 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1265 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1266 program_suffix
=$ac_optarg ;;
1268 -program-transform-name |
--program-transform-name \
1269 |
--program-transform-nam |
--program-transform-na \
1270 |
--program-transform-n |
--program-transform- \
1271 |
--program-transform |
--program-transfor \
1272 |
--program-transfo |
--program-transf \
1273 |
--program-trans |
--program-tran \
1274 |
--progr-tra |
--program-tr |
--program-t)
1275 ac_prev
=program_transform_name
;;
1276 -program-transform-name=* |
--program-transform-name=* \
1277 |
--program-transform-nam=* |
--program-transform-na=* \
1278 |
--program-transform-n=* |
--program-transform-=* \
1279 |
--program-transform=* |
--program-transfor=* \
1280 |
--program-transfo=* |
--program-transf=* \
1281 |
--program-trans=* |
--program-tran=* \
1282 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1283 program_transform_name
=$ac_optarg ;;
1285 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1287 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1288 pdfdir
=$ac_optarg ;;
1290 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1292 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1295 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1296 |
-silent |
--silent |
--silen |
--sile |
--sil)
1299 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1301 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1303 sbindir
=$ac_optarg ;;
1305 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1306 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1307 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1309 ac_prev
=sharedstatedir
;;
1310 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1311 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1312 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1314 sharedstatedir
=$ac_optarg ;;
1316 -site |
--site |
--sit)
1318 -site=* |
--site=* |
--sit=*)
1321 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1323 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1324 srcdir
=$ac_optarg ;;
1326 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1327 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1328 ac_prev
=sysconfdir
;;
1329 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1330 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1331 sysconfdir
=$ac_optarg ;;
1333 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1334 ac_prev
=target_alias
;;
1335 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1336 target_alias
=$ac_optarg ;;
1338 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1341 -version |
--version |
--versio |
--versi |
--vers |
-V)
1342 ac_init_version
=: ;;
1345 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1346 # Reject names that are not valid shell variable names.
1347 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1348 as_fn_error $?
"invalid package name: $ac_useropt"
1349 ac_useropt_orig
=$ac_useropt
1350 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1351 case $ac_user_opts in
1355 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1356 ac_unrecognized_sep
=', ';;
1358 eval with_
$ac_useropt=\
$ac_optarg ;;
1360 -without-* |
--without-*)
1361 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1362 # Reject names that are not valid shell variable names.
1363 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1364 as_fn_error $?
"invalid package name: $ac_useropt"
1365 ac_useropt_orig
=$ac_useropt
1366 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1367 case $ac_user_opts in
1371 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1372 ac_unrecognized_sep
=', ';;
1374 eval with_
$ac_useropt=no
;;
1377 # Obsolete; use --with-x.
1380 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1381 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1382 ac_prev
=x_includes
;;
1383 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1384 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1385 x_includes
=$ac_optarg ;;
1387 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1388 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1389 ac_prev
=x_libraries
;;
1390 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1391 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1392 x_libraries
=$ac_optarg ;;
1394 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1395 Try \`$0 --help' for more information"
1399 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1400 # Reject names that are not valid shell variable names.
1401 case $ac_envvar in #(
1402 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1403 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1405 eval $ac_envvar=\
$ac_optarg
1406 export $ac_envvar ;;
1409 # FIXME: should be removed in autoconf 3.0.
1410 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1411 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1412 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1413 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1419 if test -n "$ac_prev"; then
1420 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1421 as_fn_error $?
"missing argument to $ac_option"
1424 if test -n "$ac_unrecognized_opts"; then
1425 case $enable_option_checking in
1427 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1428 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1432 # Check all directory arguments for consistency.
1433 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1434 datadir sysconfdir sharedstatedir localstatedir includedir \
1435 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1436 libdir localedir mandir
1438 eval ac_val
=\$
$ac_var
1439 # Remove trailing slashes.
1442 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1443 eval $ac_var=\
$ac_val;;
1445 # Be sure to have absolute directory names.
1447 [\\/$
]* | ?
:[\\/]* ) continue;;
1448 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1450 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1453 # There might be people who depend on the old broken behavior: `$host'
1454 # used to hold the argument of --host etc.
1455 # FIXME: To remove some day.
1458 target
=$target_alias
1460 # FIXME: To remove some day.
1461 if test "x$host_alias" != x
; then
1462 if test "x$build_alias" = x
; then
1463 cross_compiling
=maybe
1464 elif test "x$build_alias" != "x$host_alias"; then
1470 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1472 test "$silent" = yes && exec 6>/dev
/null
1475 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1476 ac_ls_di
=`ls -di .` &&
1477 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1478 as_fn_error $?
"working directory cannot be determined"
1479 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1480 as_fn_error $?
"pwd does not report name of working directory"
1483 # Find the source files, if location was not specified.
1484 if test -z "$srcdir"; then
1485 ac_srcdir_defaulted
=yes
1486 # Try the directory containing this script, then the parent directory.
1487 ac_confdir
=`$as_dirname -- "$as_myself" ||
1488 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1489 X"$as_myself" : 'X\(//\)[^/]' \| \
1490 X"$as_myself" : 'X\(//\)$' \| \
1491 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1492 $as_echo X"$as_myself" |
1493 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1511 if test ! -r "$srcdir/$ac_unique_file"; then
1515 ac_srcdir_defaulted
=no
1517 if test ! -r "$srcdir/$ac_unique_file"; then
1518 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1519 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1521 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1523 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1525 # When building in place, set srcdir=.
1526 if test "$ac_abs_confdir" = "$ac_pwd"; then
1529 # Remove unnecessary trailing slashes from srcdir.
1530 # Double slashes in file names in object file debugging info
1531 # mess up M-x gdb in Emacs.
1533 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1535 for ac_var
in $ac_precious_vars; do
1536 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1537 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1538 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1539 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1543 # Report the --help message.
1545 if test "$ac_init_help" = "long"; then
1546 # Omit some internal or obsolete options to make the list less imposing.
1547 # This message is too long to be a string in the A/UX 3.1 sh.
1549 \`configure' configures this package to adapt to many kinds of systems.
1551 Usage: $0 [OPTION]... [VAR=VALUE]...
1553 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1554 VAR=VALUE. See below for descriptions of some of the useful variables.
1556 Defaults for the options are specified in brackets.
1559 -h, --help display this help and exit
1560 --help=short display options specific to this package
1561 --help=recursive display the short help of all the included packages
1562 -V, --version display version information and exit
1563 -q, --quiet, --silent do not print \`checking ...' messages
1564 --cache-file=FILE cache test results in FILE [disabled]
1565 -C, --config-cache alias for \`--cache-file=config.cache'
1566 -n, --no-create do not create output files
1567 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1569 Installation directories:
1570 --prefix=PREFIX install architecture-independent files in PREFIX
1571 [$ac_default_prefix]
1572 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1575 By default, \`make install' will install all the files in
1576 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1577 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1578 for instance \`--prefix=\$HOME'.
1580 For better control, use the options below.
1582 Fine tuning of the installation directories:
1583 --bindir=DIR user executables [EPREFIX/bin]
1584 --sbindir=DIR system admin executables [EPREFIX/sbin]
1585 --libexecdir=DIR program executables [EPREFIX/libexec]
1586 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1587 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1588 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1589 --libdir=DIR object code libraries [EPREFIX/lib]
1590 --includedir=DIR C header files [PREFIX/include]
1591 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1592 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1593 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1594 --infodir=DIR info documentation [DATAROOTDIR/info]
1595 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1596 --mandir=DIR man documentation [DATAROOTDIR/man]
1597 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1598 --htmldir=DIR html documentation [DOCDIR]
1599 --dvidir=DIR dvi documentation [DOCDIR]
1600 --pdfdir=DIR pdf documentation [DOCDIR]
1601 --psdir=DIR ps documentation [DOCDIR]
1607 --x-includes=DIR X include files are
in DIR
1608 --x-libraries=DIR X library files are
in DIR
1611 --build=BUILD configure
for building on BUILD
[guessed
]
1612 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1613 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1617 if test -n "$ac_init_help"; then
1622 --disable-option-checking ignore unrecognized
--enable/--with options
1623 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1624 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1625 --disable-ssp disable gcc stack-protector
1626 --disable-pie disable position-independent-executable
1627 --disable-visibility disable gcc symbol visibility
1628 --disable-shared disable core shared libary generation
1631 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1632 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1633 --with-64bit turn on
64 bit compilation mode
(default is platform
1635 --with-optimization enable optimization
for C
/C
++ code
(default is
yes)
1636 --with-threads enable support
for multiple threads
(default is on
)
1637 --with-secure-sockets enable support
for secure sockets
(default is on
)
1638 --with-static-probes enable support
for static probes
(default is on
)
1639 --with-infiniband enable support
for Infiniband metrics
(default is
1641 --with-user user account under
which daemons run
(default is
1643 --with-group user group under
which daemons run
(default is pcp
)
1644 --with-discovery enable support
for service discovery
(default is on
)
1645 --with-systemd enable support
for systemd services
(default is on
)
1646 --with-qt enable support
for tools requiring Qt
(default is
1648 --with-python enable support
for tools requiring Python
(default
1650 --with-python3 enable support
for tools requiring Python3
(default
1652 --with-books enable building of the PCP books
(default is off
)
1653 --with-books-brand=BRAND
1654 choose the docbook brand when building the PCP books
1656 --with-papi[=DIR|
=MODULE
]
1657 enable performance api counter pmda
(default is on
)
1658 The optional argument may be a full path of a PAPI
1659 installation prefix
, or a pkgconfig module name.
1660 --with-perfevent enable perfevent pmda
(default is on
)
1661 --with-pmdajson enable JSON pmda
(default is on
)
1662 --with-pmdasnmp enable SNMP pmda
(default is on
)
1663 --with-manager enable daemon manager
(default is on
)
1664 --with-webapi enable REST API daemon
(default is on
)
1665 --with-webjs enable building of webjs packages
(default is off
)
1666 --with-vector enable building of vector package
(default is off
)
1667 --with-parfait enable building of parfait package
(default is off
)
1668 --with-make path to GNU compatible
make(1) (default is empty
for
1670 --with-tar path to GNU compatible
tar(1) (default is empty
for
1672 --with-zip path to GNU compatible
zip(1) (default is empty
for
1674 --with-configdir configuration directory
[LOCALSTATEDIR
/pcp
/config
]
1675 --with-perl_installdirs perl installdirs
[vendor
]
1676 --with-perl_install_base
1677 perl install_base
[PREFIX
]
1678 --with-python_prefix python setup.py prefix
[PREFIX
]
1679 --with-x use the X Window System
1680 --with-rcdir rc directory
[SYSCONFDIR
/rc.d
]
1681 --with-sysconfigdir sysconfig directory
[SYSCONFDIR
/sysconfig
]
1682 --with-logdir log directory
[LOCALSTATEDIR
/log
/pcp
]
1683 --with-rundir run directory
[LOCALSTATEDIR
/run
/pcp
]
1684 --with-tmpdir tmp directory
[LOCALSTATEDIR
/tmp
]
1685 --with-docdir docs directory
[DOCDIR
/pcp-VERSION
]
1686 --with-demosdir run directory
[DATADIR
/pcp
/demos
]
1688 Some influential environment variables
:
1689 PKG_CONFIG path to pkg-config utility
1691 directories to add to pkg-config
's search path
1693 path overriding pkg-config's built-in search path
1694 CC C compiler
command
1695 CFLAGS C compiler flags
1696 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1697 nonstandard directory
<lib dir
>
1698 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1699 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1700 you have headers
in a nonstandard directory
<include dir
>
1701 CXX C
++ compiler
command
1702 CXXFLAGS C
++ compiler flags
1703 YACC The
`Yet Another Compiler Compiler' implementation to use.
1704 Defaults to the first program found out of: `bison
-y', `byacc',
1706 YFLAGS The list of arguments that will be passed by default to $YACC.
1707 This script will default YFLAGS to the empty string to avoid a
1708 default value of `-d' given by some make applications.
1711 C compiler flags for avahi, overriding pkg-config
1712 avahi_LIBS linker flags for avahi, overriding pkg-config
1713 SYSTEMD_SYSTEMUNITDIR
1714 value of systemdsystemunitdir for systemd, overriding pkg-config
1716 C compiler flags for ncurses, overriding pkg-config
1718 linker flags for ncurses, overriding pkg-config
1720 C compiler flags for SYSTEMD, overriding pkg-config
1722 linker flags for SYSTEMD, overriding pkg-config
1723 papi_CFLAGS C compiler flags for papi, overriding pkg-config
1724 papi_LIBS linker flags for papi, overriding pkg-config
1725 libmicrohttpd_CFLAGS
1726 C compiler flags for libmicrohttpd, overriding pkg-config
1728 linker flags for libmicrohttpd, overriding pkg-config
1730 C compiler flags for cairo, overriding pkg-config
1731 cairo_LIBS linker flags for cairo, overriding pkg-config
1732 XMKMF Path to xmkmf, Makefile generator for X Window System
1733 zlib_CFLAGS C compiler flags for zlib, overriding pkg-config
1734 zlib_LIBS linker flags for zlib, overriding pkg-config
1736 Use these variables to override the choices made by `configure' or to
help
1737 it to
find libraries and programs with nonstandard names
/locations.
1739 Report bugs to the package provider.
1744 if test "$ac_init_help" = "recursive"; then
1745 # If there are subdirs, report their specific --help.
1746 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1747 test -d "$ac_dir" ||
1748 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1753 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1755 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1756 # A ".." for each directory in $ac_dir_suffix.
1757 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1758 case $ac_top_builddir_sub in
1759 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1760 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1763 ac_abs_top_builddir
=$ac_pwd
1764 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1765 # for backward compatibility:
1766 ac_top_builddir
=$ac_top_build_prefix
1769 .
) # We are building in place.
1771 ac_top_srcdir
=$ac_top_builddir_sub
1772 ac_abs_top_srcdir
=$ac_pwd ;;
1773 [\\/]* | ?
:[\\/]* ) # Absolute name.
1774 ac_srcdir
=$srcdir$ac_dir_suffix;
1775 ac_top_srcdir
=$srcdir
1776 ac_abs_top_srcdir
=$srcdir ;;
1778 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1779 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1780 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1782 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1784 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1785 # Check for guested configure.
1786 if test -f "$ac_srcdir/configure.gnu"; then
1788 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1789 elif test -f "$ac_srcdir/configure"; then
1791 $SHELL "$ac_srcdir/configure" --help=recursive
1793 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1795 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1799 test -n "$ac_init_help" && exit $ac_status
1800 if $ac_init_version; then
1803 generated by GNU Autoconf
2.69
1805 Copyright
(C
) 2012 Free Software Foundation
, Inc.
1806 This configure
script is free software
; the Free Software Foundation
1807 gives unlimited permission to copy
, distribute and modify it.
1812 ## ------------------------ ##
1813 ## Autoconf initialization. ##
1814 ## ------------------------ ##
1816 # ac_fn_c_try_compile LINENO
1817 # --------------------------
1818 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1819 ac_fn_c_try_compile
()
1821 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1822 rm -f conftest.
$ac_objext
1823 if { { ac_try
="$ac_compile"
1825 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1826 *) ac_try_echo=$ac_try;;
1828 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1829 $as_echo "$ac_try_echo"; } >&5
1830 (eval "$ac_compile") 2>conftest.err
1832 if test -s conftest.err; then
1833 grep -v '^ *+' conftest.err >conftest.er1
1834 cat conftest.er1 >&5
1835 mv -f conftest.er1 conftest.err
1837 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1838 test $ac_status = 0; } && {
1839 test -z "$ac_c_werror_flag" ||
1840 test ! -s conftest.err
1841 } && test -s conftest.$ac_objext; then :
1844 $as_echo "$as_me: failed program was:" >&5
1845 sed 's/^/| /' conftest.$ac_ext >&5
1849 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1850 as_fn_set_status $ac_retval
1852 } # ac_fn_c_try_compile
1854 # ac_fn_c_try_link LINENO
1855 # -----------------------
1856 # Try to link conftest.$ac_ext, and return whether this succeeded.
1859 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1860 rm -f conftest.$ac_objext conftest$ac_exeext
1861 if { { ac_try="$ac_link"
1863 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1864 *) ac_try_echo
=$ac_try;;
1866 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1867 $as_echo "$ac_try_echo"; } >&5
1868 (eval "$ac_link") 2>conftest.err
1870 if test -s conftest.err
; then
1871 grep -v '^ *+' conftest.err
>conftest.er1
1872 cat conftest.er1
>&5
1873 mv -f conftest.er1 conftest.err
1875 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1876 test $ac_status = 0; } && {
1877 test -z "$ac_c_werror_flag" ||
1878 test ! -s conftest.err
1879 } && test -s conftest
$ac_exeext && {
1880 test "$cross_compiling" = yes ||
1881 test -x conftest
$ac_exeext
1885 $as_echo "$as_me: failed program was:" >&5
1886 sed 's/^/| /' conftest.
$ac_ext >&5
1890 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1891 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1892 # interfere with the next link command; also delete a directory that is
1893 # left behind by Apple's compiler. We do this before executing the actions.
1894 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1895 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1896 as_fn_set_status
$ac_retval
1898 } # ac_fn_c_try_link
1900 # ac_fn_cxx_try_compile LINENO
1901 # ----------------------------
1902 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1903 ac_fn_cxx_try_compile
()
1905 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1906 rm -f conftest.
$ac_objext
1907 if { { ac_try
="$ac_compile"
1909 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1910 *) ac_try_echo=$ac_try;;
1912 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1913 $as_echo "$ac_try_echo"; } >&5
1914 (eval "$ac_compile") 2>conftest.err
1916 if test -s conftest.err; then
1917 grep -v '^ *+' conftest.err >conftest.er1
1918 cat conftest.er1 >&5
1919 mv -f conftest.er1 conftest.err
1921 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1922 test $ac_status = 0; } && {
1923 test -z "$ac_cxx_werror_flag" ||
1924 test ! -s conftest.err
1925 } && test -s conftest.$ac_objext; then :
1928 $as_echo "$as_me: failed program was:" >&5
1929 sed 's/^/| /' conftest.$ac_ext >&5
1933 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1934 as_fn_set_status $ac_retval
1936 } # ac_fn_cxx_try_compile
1938 # ac_fn_c_try_cpp LINENO
1939 # ----------------------
1940 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1943 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1944 if { { ac_try="$ac_cpp conftest.$ac_ext"
1946 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1947 *) ac_try_echo
=$ac_try;;
1949 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1950 $as_echo "$ac_try_echo"; } >&5
1951 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1953 if test -s conftest.err
; then
1954 grep -v '^ *+' conftest.err
>conftest.er1
1955 cat conftest.er1
>&5
1956 mv -f conftest.er1 conftest.err
1958 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1959 test $ac_status = 0; } > conftest.i
&& {
1960 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1961 test ! -s conftest.err
1965 $as_echo "$as_me: failed program was:" >&5
1966 sed 's/^/| /' conftest.
$ac_ext >&5
1970 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1971 as_fn_set_status
$ac_retval
1975 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1976 # -------------------------------------------------------
1977 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1978 # the include files in INCLUDES and setting the cache variable VAR
1980 ac_fn_c_check_header_mongrel
()
1982 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1983 if eval \
${$3+:} false
; then :
1984 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1985 $as_echo_n "checking for $2... " >&6; }
1986 if eval \
${$3+:} false
; then :
1987 $as_echo_n "(cached) " >&6
1990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1991 $as_echo "$ac_res" >&6; }
1993 # Is the header compilable?
1994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1995 $as_echo_n "checking $2 usability... " >&6; }
1996 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1997 /* end confdefs.h. */
2001 if ac_fn_c_try_compile
"$LINENO"; then :
2002 ac_header_compiler
=yes
2004 ac_header_compiler
=no
2006 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2008 $as_echo "$ac_header_compiler" >&6; }
2010 # Is the header present?
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2012 $as_echo_n "checking $2 presence... " >&6; }
2013 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2014 /* end confdefs.h. */
2017 if ac_fn_c_try_cpp
"$LINENO"; then :
2018 ac_header_preproc
=yes
2020 ac_header_preproc
=no
2022 rm -f conftest.err conftest.i conftest.
$ac_ext
2023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2024 $as_echo "$ac_header_preproc" >&6; }
2026 # So? What about this header?
2027 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2029 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2030 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2032 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2036 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2038 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2040 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2042 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2044 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2048 $as_echo_n "checking for $2... " >&6; }
2049 if eval \
${$3+:} false
; then :
2050 $as_echo_n "(cached) " >&6
2052 eval "$3=\$ac_header_compiler"
2055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2056 $as_echo "$ac_res" >&6; }
2058 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2060 } # ac_fn_c_check_header_mongrel
2062 # ac_fn_c_try_run LINENO
2063 # ----------------------
2064 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2065 # that executables *can* be run.
2068 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2069 if { { ac_try
="$ac_link"
2071 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2072 *) ac_try_echo=$ac_try;;
2074 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2075 $as_echo "$ac_try_echo"; } >&5
2076 (eval "$ac_link") 2>&5
2078 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2079 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2080 { { case "(($ac_try" in
2081 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2082 *) ac_try_echo
=$ac_try;;
2084 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2085 $as_echo "$ac_try_echo"; } >&5
2086 (eval "$ac_try") 2>&5
2088 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2089 test $ac_status = 0; }; }; then :
2092 $as_echo "$as_me: program exited with status $ac_status" >&5
2093 $as_echo "$as_me: failed program was:" >&5
2094 sed 's/^/| /' conftest.
$ac_ext >&5
2096 ac_retval
=$ac_status
2098 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2099 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2100 as_fn_set_status
$ac_retval
2104 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2105 # -------------------------------------------------------
2106 # Tests whether HEADER exists and can be compiled using the include files in
2107 # INCLUDES, setting the cache variable VAR accordingly.
2108 ac_fn_c_check_header_compile
()
2110 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2112 $as_echo_n "checking for $2... " >&6; }
2113 if eval \
${$3+:} false
; then :
2114 $as_echo_n "(cached) " >&6
2116 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2117 /* end confdefs.h. */
2121 if ac_fn_c_try_compile
"$LINENO"; then :
2126 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2130 $as_echo "$ac_res" >&6; }
2131 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2133 } # ac_fn_c_check_header_compile
2135 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2136 # -------------------------------------------
2137 # Tests whether TYPE exists after having included INCLUDES, setting cache
2138 # variable VAR accordingly.
2139 ac_fn_c_check_type
()
2141 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2143 $as_echo_n "checking for $2... " >&6; }
2144 if eval \
${$3+:} false
; then :
2145 $as_echo_n "(cached) " >&6
2148 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2149 /* end confdefs.h. */
2160 if ac_fn_c_try_compile
"$LINENO"; then :
2161 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2162 /* end confdefs.h. */
2173 if ac_fn_c_try_compile
"$LINENO"; then :
2178 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2180 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2184 $as_echo "$ac_res" >&6; }
2185 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2187 } # ac_fn_c_check_type
2189 # ac_fn_c_check_func LINENO FUNC VAR
2190 # ----------------------------------
2191 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2192 ac_fn_c_check_func
()
2194 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2196 $as_echo_n "checking for $2... " >&6; }
2197 if eval \
${$3+:} false
; then :
2198 $as_echo_n "(cached) " >&6
2200 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2201 /* end confdefs.h. */
2202 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2203 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2204 #define $2 innocuous_$2
2206 /* System header to define __stub macros and hopefully few prototypes,
2207 which can conflict with char $2 (); below.
2208 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2209 <limits.h> exists even on freestanding compilers. */
2212 # include <limits.h>
2214 # include <assert.h>
2219 /* Override any GCC internal prototype to avoid an error.
2220 Use char because int might match the return type of a GCC
2221 builtin and then its argument prototype would still apply. */
2226 /* The GNU C library defines this for functions which it implements
2227 to always fail with ENOSYS. Some functions are actually named
2228 something starting with __ and the normal name is an alias. */
2229 #if defined __stub_$2 || defined __stub___$2
2241 if ac_fn_c_try_link
"$LINENO"; then :
2246 rm -f core conftest.err conftest.
$ac_objext \
2247 conftest
$ac_exeext conftest.
$ac_ext
2250 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2251 $as_echo "$ac_res" >&6; }
2252 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2254 } # ac_fn_c_check_func
2255 cat >config.log
<<_ACEOF
2256 This file contains any messages produced by compilers while
2257 running configure, to aid debugging if configure makes a mistake.
2259 It was created by $as_me, which was
2260 generated by GNU Autoconf 2.69. Invocation command line was
2272 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2273 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2274 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2275 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2276 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2278 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2279 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2281 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2282 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2283 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2284 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2285 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2286 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2287 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2291 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2295 test -z "$as_dir" && as_dir
=.
2296 $as_echo "PATH: $as_dir"
2312 # Keep a trace of the command line.
2313 # Strip out --no-create and --no-recursion so they do not pile up.
2314 # Strip out --silent because we don't want to record it for future runs.
2315 # Also quote any args containing shell meta-characters.
2316 # Make two passes to allow for proper duplicate-argument suppression.
2320 ac_must_keep_next
=false
2326 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2327 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2328 |
-silent |
--silent |
--silen |
--sile |
--sil)
2331 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2334 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2336 as_fn_append ac_configure_args1
" '$ac_arg'"
2337 if test $ac_must_keep_next = true
; then
2338 ac_must_keep_next
=false
# Got value, back to normal.
2341 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2342 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2343 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2344 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2345 case "$ac_configure_args0 " in
2346 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2349 -* ) ac_must_keep_next
=true
;;
2352 as_fn_append ac_configure_args
" '$ac_arg'"
2357 { ac_configure_args0
=; unset ac_configure_args0
;}
2358 { ac_configure_args1
=; unset ac_configure_args1
;}
2360 # When interrupted or exit'd, cleanup temporary files, and complete
2361 # config.log. We remove comments because anyway the quotes in there
2362 # would cause problems or look ugly.
2363 # WARNING: Use '\'' to represent an apostrophe within the trap.
2364 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2365 trap 'exit_status=$?
2366 # Save into config.log some information that might help in debugging.
2370 $as_echo "## ---------------- ##
2371 ## Cache variables. ##
2372 ## ---------------- ##"
2374 # The following way of writing the cache mishandles newlines in values,
2376 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2377 eval ac_val=\$$ac_var
2381 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2382 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2385 _ | IFS | as_nl) ;; #(
2386 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2387 *) { eval $ac_var=; unset $ac_var;} ;;
2392 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2393 *${as_nl}ac_space=\ *)
2395 "s/'\''/'\''\\\\'\'''\''/g;
2396 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2399 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2406 $as_echo "## ----------------- ##
2407 ## Output variables. ##
2408 ## ----------------- ##"
2410 for ac_var in $ac_subst_vars
2412 eval ac_val=\$$ac_var
2414 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2416 $as_echo "$ac_var='\''$ac_val'\''"
2420 if test -n "$ac_subst_files"; then
2421 $as_echo "## ------------------- ##
2422 ## File substitutions. ##
2423 ## ------------------- ##"
2425 for ac_var
in $ac_subst_files
2427 eval ac_val
=\$
$ac_var
2429 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2431 $as_echo "$ac_var='\''$ac_val'\''"
2436 if test -s confdefs.h; then
2437 $as_echo "## ----------- ##
2444 test "$ac_signal" != 0 &&
2445 $as_echo "$as_me: caught signal $ac_signal"
2446 $as_echo "$as_me: exit $exit_status"
2448 rm -f core *.core core.conftest.* &&
2449 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2452 for ac_signal
in 1 2 13 15; do
2453 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2457 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2458 rm -f -r conftest
* confdefs.h
2460 $as_echo "/* confdefs.h */" > confdefs.h
2462 # Predefined preprocessor variables.
2464 cat >>confdefs.h
<<_ACEOF
2465 #define PACKAGE_NAME "$PACKAGE_NAME"
2468 cat >>confdefs.h
<<_ACEOF
2469 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2472 cat >>confdefs.h
<<_ACEOF
2473 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2476 cat >>confdefs.h
<<_ACEOF
2477 #define PACKAGE_STRING "$PACKAGE_STRING"
2480 cat >>confdefs.h
<<_ACEOF
2481 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2484 cat >>confdefs.h
<<_ACEOF
2485 #define PACKAGE_URL "$PACKAGE_URL"
2489 # Let the site file select an alternate cache file if it wants to.
2490 # Prefer an explicitly selected file to automatically selected ones.
2493 if test -n "$CONFIG_SITE"; then
2494 # We do not want a PATH search for config.site.
2495 case $CONFIG_SITE in #((
2496 -*) ac_site_file1
=.
/$CONFIG_SITE;;
2497 */*) ac_site_file1
=$CONFIG_SITE;;
2498 *) ac_site_file1
=.
/$CONFIG_SITE;;
2500 elif test "x$prefix" != xNONE
; then
2501 ac_site_file1
=$prefix/share
/config.site
2502 ac_site_file2
=$prefix/etc
/config.site
2504 ac_site_file1
=$ac_default_prefix/share
/config.site
2505 ac_site_file2
=$ac_default_prefix/etc
/config.site
2507 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2509 test "x$ac_site_file" = xNONE
&& continue
2510 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2511 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2512 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2513 sed 's/^/| /' "$ac_site_file" >&5
2515 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2516 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2517 as_fn_error $?
"failed to load site script $ac_site_file
2518 See \`config.log' for more details" "$LINENO" 5; }
2522 if test -r "$cache_file"; then
2523 # Some versions of bash will fail to source /dev/null (special files
2524 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2525 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2526 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2527 $as_echo "$as_me: loading cache $cache_file" >&6;}
2529 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2530 *) .
"./$cache_file";;
2534 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2535 $as_echo "$as_me: creating cache $cache_file" >&6;}
2539 # Check that the precious variables saved in the cache have kept the same
2541 ac_cache_corrupted
=false
2542 for ac_var
in $ac_precious_vars; do
2543 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2544 eval ac_new_set
=\
$ac_env_${ac_var}_set
2545 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2546 eval ac_new_val
=\
$ac_env_${ac_var}_value
2547 case $ac_old_set,$ac_new_set in
2549 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2550 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2551 ac_cache_corrupted
=: ;;
2553 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2554 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2555 ac_cache_corrupted
=: ;;
2558 if test "x$ac_old_val" != "x$ac_new_val"; then
2559 # differences in whitespace do not lead to failure.
2560 ac_old_val_w
=`echo x $ac_old_val`
2561 ac_new_val_w
=`echo x $ac_new_val`
2562 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2564 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2565 ac_cache_corrupted
=:
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2568 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2569 eval $ac_var=\
$ac_old_val
2571 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2572 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2573 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2574 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2577 # Pass precious variables to config.status.
2578 if test "$ac_new_set" = set; then
2580 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2581 *) ac_arg
=$ac_var=$ac_new_val ;;
2583 case " $ac_configure_args " in
2584 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2585 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2589 if $ac_cache_corrupted; then
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2591 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2592 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2593 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2594 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2596 ## -------------------- ##
2597 ## Main body of script. ##
2598 ## -------------------- ##
2601 ac_cpp
='$CPP $CPPFLAGS'
2602 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2603 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2604 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2612 # Check whether --with-64bit was given.
2613 if test "${with_64bit+set}" = set; then :
2614 withval
=$with_64bit; use_64bit
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-64bit=$withval"
2619 # Check whether --with-optimization was given.
2620 if test "${with_optimization+set}" = set; then :
2621 withval
=$with_optimization; use_optimization
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-optimization=$withval"
2628 # Check whether --with-threads was given.
2629 if test "${with_threads+set}" = set; then :
2630 withval
=$with_threads; do_threads
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-threads=$withval"
2637 # Check whether --with-secure-sockets was given.
2638 if test "${with_secure_sockets+set}" = set; then :
2639 withval
=$with_secure_sockets; do_secure
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-secure-sockets=$withval"
2646 # Check whether --with-static-probes was given.
2647 if test "${with_static_probes+set}" = set; then :
2648 withval
=$with_static_probes; do_probes
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-static-probes=$withval"
2655 # Check whether --with-infiniband was given.
2656 if test "${with_infiniband+set}" = set; then :
2657 withval
=$with_infiniband; do_infiniband
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-infiniband=$withval"
2664 # Check whether --with-user was given.
2665 if test "${with_user+set}" = set; then :
2666 withval
=$with_user; pcp_user
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-user-account=$withval"
2674 # Check whether --with-group was given.
2675 if test "${with_group+set}" = set; then :
2676 withval
=$with_group; pcp_group
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-group-account=$withval"
2684 # Check whether --with-discovery was given.
2685 if test "${with_discovery+set}" = set; then :
2686 withval
=$with_discovery; do_discovery
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-discovery=$withval"
2693 # Check whether --with-systemd was given.
2694 if test "${with_systemd+set}" = set; then :
2695 withval
=$with_systemd; do_systemd
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-systemd=$withval"
2702 # Check whether --with-qt was given.
2703 if test "${with_qt+set}" = set; then :
2704 withval
=$with_qt; do_qt
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-qt=$withval"
2711 # Check whether --with-python was given.
2712 if test "${with_python+set}" = set; then :
2713 withval
=$with_python; do_python
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-python=$withval"
2720 # Check whether --with-python3 was given.
2721 if test "${with_python3+set}" = set; then :
2722 withval
=$with_python3; do_python3
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-python3=$withval"
2729 # Check whether --with-books was given.
2730 if test "${with_books+set}" = set; then :
2731 withval
=$with_books; do_books
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-books=$withval"
2738 # Check whether --with-books-brand was given.
2739 if test "${with_books_brand+set}" = set; then :
2740 withval
=$with_books_brand; do_books_brand
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-books-brand=$withval"
2742 do_books_brand
=common
2747 # Check whether --with-papi was given.
2748 if test "${with_papi+set}" = set; then :
2749 withval
=$with_papi; do_papi
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-papi=$withval"
2756 # Check whether --with-perfevent was given.
2757 if test "${with_perfevent+set}" = set; then :
2758 withval
=$with_perfevent; do_perfevent
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-perfevent=$withval"
2765 # Check whether --with-pmdajson was given.
2766 if test "${with_pmdajson+set}" = set; then :
2767 withval
=$with_pmdajson; do_pmdajson
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-pmdajson=$withval"
2774 # Check whether --with-pmdasnmp was given.
2775 if test "${with_pmdasnmp+set}" = set; then :
2776 withval
=$with_pmdasnmp; do_pmdasnmp
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-pmdasnmp=$withval"
2783 # Check whether --with-manager was given.
2784 if test "${with_manager+set}" = set; then :
2785 withval
=$with_manager; do_manager
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-manager=$withval"
2792 # Check whether --with-webapi was given.
2793 if test "${with_webapi+set}" = set; then :
2794 withval
=$with_webapi; do_webapi
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-webapi=$withval"
2801 # Check whether --with-webjs was given.
2802 if test "${with_webjs+set}" = set; then :
2803 withval
=$with_webjs; do_webjs
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-webjs=$withval"
2810 # Check whether --with-vector was given.
2811 if test "${with_vector+set}" = set; then :
2812 withval
=$with_vector; do_vector
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-vector=$withval"
2819 # Check whether --with-parfait was given.
2820 if test "${with_parfait+set}" = set; then :
2821 withval
=$with_parfait; do_parfait
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-parfait=$withval"
2829 # Check whether --with-make was given.
2830 if test "${with_make+set}" = set; then :
2831 withval
=$with_make; MAKE
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-make=$withval"
2838 # Check whether --with-tar was given.
2839 if test "${with_tar+set}" = set; then :
2840 withval
=$with_tar; TAR
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-tar=$withval"
2847 # Check whether --with-zip was given.
2848 if test "${with_zip+set}" = set; then :
2849 withval
=$with_zip; ZIP
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-zip=$withval"
2856 # Note: the following environment variables may be
2857 # set to override the defaults.
2859 # MAKE CC CPP LD LEX YACC INSTALL AWK SED ECHO
2863 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2864 if test -f "$ac_dir/install-sh"; then
2866 ac_install_sh
="$ac_aux_dir/install-sh -c"
2868 elif test -f "$ac_dir/install.sh"; then
2870 ac_install_sh
="$ac_aux_dir/install.sh -c"
2872 elif test -f "$ac_dir/shtool"; then
2874 ac_install_sh
="$ac_aux_dir/shtool install -c"
2878 if test -z "$ac_aux_dir"; then
2879 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2882 # These three variables are undocumented and unsupported,
2883 # and are intended to be withdrawn in a future Autoconf release.
2884 # They can cause serious problems if a builder's source tree is in a directory
2885 # whose full name contains unusual characters.
2886 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2887 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2888 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2891 # Make sure we can run config.sub.
2892 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2893 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2896 $as_echo_n "checking build system type... " >&6; }
2897 if ${ac_cv_build+:} false
; then :
2898 $as_echo_n "(cached) " >&6
2900 ac_build_alias
=$build_alias
2901 test "x$ac_build_alias" = x
&&
2902 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2903 test "x$ac_build_alias" = x
&&
2904 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
2905 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2906 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2910 $as_echo "$ac_cv_build" >&6; }
2911 case $ac_cv_build in
2913 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
2916 ac_save_IFS
=$IFS; IFS
='-'
2922 # Remember, the first character of IFS is used to create $*,
2923 # except with old shells:
2926 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2930 $as_echo_n "checking host system type... " >&6; }
2931 if ${ac_cv_host+:} false
; then :
2932 $as_echo_n "(cached) " >&6
2934 if test "x$host_alias" = x
; then
2935 ac_cv_host
=$ac_cv_build
2937 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2938 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2943 $as_echo "$ac_cv_host" >&6; }
2946 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
2949 ac_save_IFS
=$IFS; IFS
='-'
2955 # Remember, the first character of IFS is used to create $*,
2956 # except with old shells:
2959 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2963 $as_echo_n "checking target system type... " >&6; }
2964 if ${ac_cv_target+:} false
; then :
2965 $as_echo_n "(cached) " >&6
2967 if test "x$target_alias" = x
; then
2968 ac_cv_target
=$ac_cv_host
2970 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2971 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2976 $as_echo "$ac_cv_target" >&6; }
2977 case $ac_cv_target in
2979 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
2981 target
=$ac_cv_target
2982 ac_save_IFS
=$IFS; IFS
='-'
2988 # Remember, the first character of IFS is used to create $*,
2989 # except with old shells:
2992 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
2995 # The aliases save the names the user supplied, while $host etc.
2996 # will get canonicalized.
2997 test -n "$target_alias" &&
2998 test "$program_prefix$program_suffix$program_transform_name" = \
3000 program_prefix
=${target_alias}-
3002 if test -z "$target"
3005 FATAL ERROR: Cannot guess your target, try explicit specification
3006 using --target or mailto: pcp@oss.sgi.com to ask.'
3007 rm -rf conftest conftest.
*
3010 target
=`echo $target | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
3011 target_os
=`echo $target_os | sed 's/solaris2\..*/solaris/'`
3012 target_os
=`echo $target_os | sed 's/^\([^-][^-]*\)-.*$/\1/' | sed 's/[\.0-9]*//g'`
3014 build
=`echo $build | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
3015 build_os
=`echo $build_os | sed 's/solaris2\..*/solaris/'`
3016 build_os
=`echo $build_os | sed 's/^\([^-][^-]*\)-.*$/\1/'`
3019 echo Building on
$build for $target
3020 echo "Build: os=$build_os cpu=$build_cpu"
3021 echo "Target: os=$target_os cpu=$target_cpu"
3023 if test "$cross_compiling" = "yes"; then
3024 if test -f .
/config.
$target_os; then
3025 . .
/config.
$target_os
3029 FATAL ERROR: Cannot perform cross-compilation without a file to source
3030 configuration information from (config.$target_os is missing)"
3031 rm -rf conftest conftest.
*
3038 target_distro
=$target_os
3039 if test $target_os = linux
3042 $as_echo "#define IS_LINUX 1" >>confdefs.h
3044 test -f /etc
/SuSE-release
&& target_distro
=suse
3045 test -f /etc
/fedora-release
&& target_distro
=fedora
3046 test -f /etc
/redhat-release
&& target_distro
=redhat
3047 test -f /etc
/debian_version
&& target_distro
=debian
3048 test -f /etc
/slackware-version
&& target_distro
=slackware
3049 test -f /etc
/gentoo-release
&& target_distro
=gentoo
3050 test -f /etc
/mandriva-release
&& target_distro
=mandriva
3051 export CFLAGS
="-fPIC -fno-strict-aliasing -D_GNU_SOURCE"
3052 pcp_platform_paths
='/usr/bin/X11:/usr/local/bin'
3053 pcp_ps_all_flags
=-efw
3054 elif test $target_os = darwin
3057 $as_echo "#define IS_DARWIN 1" >>confdefs.h
3059 target_distro
=macosx
3060 version
=`sw_vers -productVersion | sed -e 's/\.//' -e 's/\..*//g'`
3061 CFLAGS
="-fPIC -no-cpp-precomp -fno-strict-aliasing -arch i386"
3062 if test $version -ge 106
3065 CFLAGS
="$CFLAGS -arch x86_64"
3068 pcp_platform_paths
='/usr/local/bin'
3069 pcp_ps_all_flags
="-axw -o user,pid,ppid,cpu,stime,tty,time,command"
3070 elif test $target_os = mingw
3073 $as_echo "#define IS_MINGW 1" >>confdefs.h
3075 CFLAGS
="-fno-strict-aliasing"
3076 pcp_platform_paths
=''
3077 pcp_ps_all_flags
=-efW
3078 elif test $target_os = solaris
3081 $as_echo "#define IS_SOLARIS 1" >>confdefs.h
3083 export CFLAGS_IF_GCC
="-fPIC -fno-strict-aliasing"
3084 export CFLAGS_IF_SUNCC
="-fPIC -xalias_level=any -D_XPG4_2 -D__EXTENSIONS__"
3085 pcp_platform_paths
='/usr/bin/X11:/usr/local/bin:/opt/sfw/bin:/opt/csw/bin'
3086 pcp_ps_all_flags
=-ef
3087 elif test $target_os = aix
3090 $as_echo "#define IS_AIX 1" >>confdefs.h
3092 export CFLAGS
="-qcpluscmt"
3093 pcp_platform_paths
='/usr/bin/X11:/usr/local/bin'
3094 pcp_ps_all_flags
=-ef
3095 elif test $target_os = freebsd ||
test $target_os = kfreebsd
3098 $as_echo "#define IS_FREEBSD 1" >>confdefs.h
3100 test -f /etc
/debian_version
&& target_distro
=debian
3101 export CFLAGS
="-fPIC -fno-strict-aliasing -D_GNU_SOURCE"
3102 if test $target_os = kfreebsd
3104 pcp_ps_all_flags
=-efw
3106 pcp_ps_all_flags
=auxww
3108 pcp_platform_paths
='/usr/bin/X11'
3109 test -d /usr
/local
/bin
&& pcp_platform_paths
="$pcp_platform_paths:/usr/local/bin"
3110 test -d /usr
/bsd
&& pcp_platform_paths
="$pcp_platform_paths:/usr/bsd"
3111 elif test $target_os = gnu
3114 $as_echo "#define IS_GNU 1" >>confdefs.h
3116 test -f /etc
/debian_version
&& target_distro
=debian
3117 export CFLAGS
="-fPIC -fno-strict-aliasing -D_GNU_SOURCE"
3118 pcp_platform_paths
='/usr/bin/X11:/usr/local/bin'
3119 pcp_ps_all_flags
=-efw
3120 elif test $target_os = netbsdelf
3124 $as_echo "#define IS_NETBSD 1" >>confdefs.h
3126 export CFLAGS
="-fPIC -fno-strict-aliasing -D_GNU_SOURCE -D_NETBSD_SOURCE"
3127 pcp_platform_paths
='/usr/pkg/bin'
3128 pcp_ps_all_flags
=auxww
3129 elif test $target_os = openbsd
3133 $as_echo "#define IS_OPENBSD 1" >>confdefs.h
3135 export CFLAGS
="-fPIC -fno-strict-aliasing -D_GNU_SOURCE"
3136 pcp_platform_paths
='/usr/local/bin'
3137 pcp_ps_all_flags
=auxww
3140 echo "FATAL ERROR: need platform-specific customization for \"$target_os\""
3141 rm -rf conftest conftest.
*
3147 if test "$use_optimization" = no
3149 optimization
="-O0 -g"
3151 optimization
="-O2 -g"
3162 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
3163 if test -n "$ac_tool_prefix"; then
3164 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3165 set dummy
${ac_tool_prefix}pkg-config
; ac_word
=$2
3166 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3167 $as_echo_n "checking for $ac_word... " >&6; }
3168 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
3169 $as_echo_n "(cached) " >&6
3173 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
3176 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3180 test -z "$as_dir" && as_dir
=.
3181 for ac_exec_ext
in '' $ac_executable_extensions; do
3182 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3183 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
3184 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3194 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
3195 if test -n "$PKG_CONFIG"; then
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
3197 $as_echo "$PKG_CONFIG" >&6; }
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3200 $as_echo "no" >&6; }
3205 if test -z "$ac_cv_path_PKG_CONFIG"; then
3206 ac_pt_PKG_CONFIG
=$PKG_CONFIG
3207 # Extract the first word of "pkg-config", so it can be a program name with args.
3208 set dummy pkg-config
; ac_word
=$2
3209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3210 $as_echo_n "checking for $ac_word... " >&6; }
3211 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false
; then :
3212 $as_echo_n "(cached) " >&6
3214 case $ac_pt_PKG_CONFIG in
3216 ac_cv_path_ac_pt_PKG_CONFIG
="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
3219 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3223 test -z "$as_dir" && as_dir
=.
3224 for ac_exec_ext
in '' $ac_executable_extensions; do
3225 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3226 ac_cv_path_ac_pt_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
3227 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3237 ac_pt_PKG_CONFIG
=$ac_cv_path_ac_pt_PKG_CONFIG
3238 if test -n "$ac_pt_PKG_CONFIG"; then
3239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
3240 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
3242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3243 $as_echo "no" >&6; }
3246 if test "x$ac_pt_PKG_CONFIG" = x
; then
3249 case $cross_compiling:$ac_tool_warned in
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3252 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3253 ac_tool_warned
=yes ;;
3255 PKG_CONFIG
=$ac_pt_PKG_CONFIG
3258 PKG_CONFIG
="$ac_cv_path_PKG_CONFIG"
3262 if test -n "$PKG_CONFIG"; then
3263 _pkg_min_version
=0.9.0
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
3265 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
3266 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
3267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3268 $as_echo "yes" >&6; }
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3271 $as_echo "no" >&6; }
3275 if test -z "$PKG_CONFIG"; then
3276 as_fn_error $?
"cannot find a 'pkg-config' command" "$LINENO" 5
3281 ac_cpp
='$CPP $CPPFLAGS'
3282 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3283 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3284 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3285 if test -n "$ac_tool_prefix"; then
3286 for ac_prog
in suncc egcc gcc cc
3288 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3289 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3291 $as_echo_n "checking for $ac_word... " >&6; }
3292 if ${ac_cv_prog_CC+:} false
; then :
3293 $as_echo_n "(cached) " >&6
3295 if test -n "$CC"; then
3296 ac_cv_prog_CC
="$CC" # Let the user override the test.
3298 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3302 test -z "$as_dir" && as_dir
=.
3303 for ac_exec_ext
in '' $ac_executable_extensions; do
3304 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3305 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3316 if test -n "$CC"; then
3317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3318 $as_echo "$CC" >&6; }
3320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3321 $as_echo "no" >&6; }
3325 test -n "$CC" && break
3328 if test -z "$CC"; then
3330 for ac_prog
in suncc egcc gcc cc
3332 # Extract the first word of "$ac_prog", so it can be a program name with args.
3333 set dummy
$ac_prog; ac_word
=$2
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3335 $as_echo_n "checking for $ac_word... " >&6; }
3336 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3337 $as_echo_n "(cached) " >&6
3339 if test -n "$ac_ct_CC"; then
3340 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3342 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3346 test -z "$as_dir" && as_dir
=.
3347 for ac_exec_ext
in '' $ac_executable_extensions; do
3348 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3349 ac_cv_prog_ac_ct_CC
="$ac_prog"
3350 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3359 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3360 if test -n "$ac_ct_CC"; then
3361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3362 $as_echo "$ac_ct_CC" >&6; }
3364 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3365 $as_echo "no" >&6; }
3369 test -n "$ac_ct_CC" && break
3372 if test "x$ac_ct_CC" = x
; then
3375 case $cross_compiling:$ac_tool_warned in
3377 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3378 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3379 ac_tool_warned
=yes ;;
3386 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3387 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3388 as_fn_error $?
"no acceptable C compiler found in \$PATH
3389 See \`config.log' for more details" "$LINENO" 5; }
3391 # Provide some information about the compiler.
3392 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3395 for ac_option
in --version -v -V -qversion; do
3396 { { ac_try
="$ac_compiler $ac_option >&5"
3398 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3399 *) ac_try_echo=$ac_try;;
3401 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3402 $as_echo "$ac_try_echo"; } >&5
3403 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3405 if test -s conftest.err; then
3407 ... rest of stderr output deleted ...
3408 10q' conftest.err >conftest.er1
3409 cat conftest.er1 >&5
3411 rm -f conftest.er1 conftest.err
3412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3413 test $ac_status = 0; }
3416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3417 /* end confdefs.h. */
3427 ac_clean_files_save=$ac_clean_files
3428 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3429 # Try to create an executable without -o first, disregard a.out.
3430 # It will help us diagnose broken compilers, and finding out an intuition
3432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3433 $as_echo_n "checking whether the C compiler works... " >&6; }
3434 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3436 # The possible output files:
3437 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3440 for ac_file in $ac_files
3443 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3444 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3449 if { { ac_try="$ac_link_default"
3451 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3452 *) ac_try_echo
=$ac_try;;
3454 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3455 $as_echo "$ac_try_echo"; } >&5
3456 (eval "$ac_link_default") 2>&5
3458 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3459 test $ac_status = 0; }; then :
3460 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3461 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3462 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3463 # so that the user can short-circuit this test for compilers unknown to
3465 for ac_file
in $ac_files ''
3467 test -f "$ac_file" ||
continue
3469 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3472 # We found the default executable, but exeext='' is most
3476 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3478 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3480 # We set ac_cv_exeext here because the later test for it is not
3481 # safe: cross compilers may not add the suffix if given an `-o'
3482 # argument, so we may need to know it at that point already.
3483 # Even if this section looks crufty: it has the advantage of
3490 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3495 if test -z "$ac_file"; then :
3496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3497 $as_echo "no" >&6; }
3498 $as_echo "$as_me: failed program was:" >&5
3499 sed 's/^/| /' conftest.
$ac_ext >&5
3501 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3502 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3503 as_fn_error
77 "C compiler cannot create executables
3504 See \`config.log' for more details" "$LINENO" 5; }
3506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3507 $as_echo "yes" >&6; }
3509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3510 $as_echo_n "checking for C compiler default output file name... " >&6; }
3511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3512 $as_echo "$ac_file" >&6; }
3513 ac_exeext
=$ac_cv_exeext
3515 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3516 ac_clean_files
=$ac_clean_files_save
3517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3518 $as_echo_n "checking for suffix of executables... " >&6; }
3519 if { { ac_try
="$ac_link"
3521 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3522 *) ac_try_echo=$ac_try;;
3524 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3525 $as_echo "$ac_try_echo"; } >&5
3526 (eval "$ac_link") 2>&5
3528 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3529 test $ac_status = 0; }; then :
3530 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3531 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3532 # work properly (i.e., refer to `conftest.exe'), while it won't with
3534 for ac_file
in conftest.exe conftest conftest.
*; do
3535 test -f "$ac_file" ||
continue
3537 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3538 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3544 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3545 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3546 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3547 See \`config.log' for more details" "$LINENO" 5; }
3549 rm -f conftest conftest
$ac_cv_exeext
3550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3551 $as_echo "$ac_cv_exeext" >&6; }
3553 rm -f conftest.
$ac_ext
3554 EXEEXT
=$ac_cv_exeext
3556 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3557 /* end confdefs.h. */
3562 FILE *f = fopen ("conftest.out", "w");
3563 return ferror (f) || fclose (f) != 0;
3569 ac_clean_files
="$ac_clean_files conftest.out"
3570 # Check that the compiler produces executables we can run. If not, either
3571 # the compiler is broken, or we cross compile.
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3573 $as_echo_n "checking whether we are cross compiling... " >&6; }
3574 if test "$cross_compiling" != yes; then
3575 { { ac_try
="$ac_link"
3577 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3578 *) ac_try_echo=$ac_try;;
3580 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3581 $as_echo "$ac_try_echo"; } >&5
3582 (eval "$ac_link") 2>&5
3584 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3585 test $ac_status = 0; }
3586 if { ac_try='./conftest$ac_cv_exeext'
3587 { { case "(($ac_try" in
3588 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3589 *) ac_try_echo
=$ac_try;;
3591 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3592 $as_echo "$ac_try_echo"; } >&5
3593 (eval "$ac_try") 2>&5
3595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3596 test $ac_status = 0; }; }; then
3599 if test "$cross_compiling" = maybe
; then
3602 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3603 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3604 as_fn_error $?
"cannot run C compiled programs.
3605 If you meant to cross compile, use \`--host'.
3606 See \`config.log' for more details" "$LINENO" 5; }
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3611 $as_echo "$cross_compiling" >&6; }
3613 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3614 ac_clean_files
=$ac_clean_files_save
3615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3616 $as_echo_n "checking for suffix of object files... " >&6; }
3617 if ${ac_cv_objext+:} false
; then :
3618 $as_echo_n "(cached) " >&6
3620 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3621 /* end confdefs.h. */
3631 rm -f conftest.o conftest.obj
3632 if { { ac_try
="$ac_compile"
3634 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3635 *) ac_try_echo=$ac_try;;
3637 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3638 $as_echo "$ac_try_echo"; } >&5
3639 (eval "$ac_compile") 2>&5
3641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3642 test $ac_status = 0; }; then :
3643 for ac_file in conftest.o conftest.obj conftest.*; do
3644 test -f "$ac_file" || continue;
3646 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3647 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3652 $as_echo "$as_me: failed program was:" >&5
3653 sed 's/^/| /' conftest.$ac_ext >&5
3655 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3656 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3657 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3658 See \
`config.log' for more details" "$LINENO" 5; }
3660 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3663 $as_echo "$ac_cv_objext" >&6; }
3664 OBJEXT=$ac_cv_objext
3666 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3667 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3668 if ${ac_cv_c_compiler_gnu+:} false; then :
3669 $as_echo_n "(cached) " >&6
3671 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3672 /* end confdefs.h. */
3685 if ac_fn_c_try_compile "$LINENO"; then :
3690 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3691 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3695 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3696 if test $ac_compiler_gnu = yes; then
3701 ac_test_CFLAGS=${CFLAGS+set}
3702 ac_save_CFLAGS=$CFLAGS
3703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3704 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3705 if ${ac_cv_prog_cc_g+:} false; then :
3706 $as_echo_n "(cached) " >&6
3708 ac_save_c_werror_flag=$ac_c_werror_flag
3709 ac_c_werror_flag=yes
3712 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3713 /* end confdefs.h. */
3723 if ac_fn_c_try_compile "$LINENO"; then :
3727 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3728 /* end confdefs.h. */
3738 if ac_fn_c_try_compile "$LINENO"; then :
3741 ac_c_werror_flag=$ac_save_c_werror_flag
3743 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3744 /* end confdefs.h. */
3754 if ac_fn_c_try_compile "$LINENO"; then :
3757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3759 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3761 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3762 ac_c_werror_flag=$ac_save_c_werror_flag
3764 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3765 $as_echo "$ac_cv_prog_cc_g" >&6; }
3766 if test "$ac_test_CFLAGS" = set; then
3767 CFLAGS=$ac_save_CFLAGS
3768 elif test $ac_cv_prog_cc_g = yes; then
3769 if test "$GCC" = yes; then
3775 if test "$GCC" = yes; then
3781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3782 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3783 if ${ac_cv_prog_cc_c89+:} false; then :
3784 $as_echo_n "(cached) " >&6
3786 ac_cv_prog_cc_c89=no
3788 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3789 /* end confdefs.h. */
3793 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3794 struct buf { int x; };
3795 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3796 static char *e (p, i)
3802 static char *f (char * (*g) (char **, int), char **p, ...)
3807 s = g (p, va_arg (v,int));
3812 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3813 function prototypes and stuff, but not '\xHH' hex character constants.
3814 These don't provoke an error unfortunately, instead are silently treated
3815 as 'x'. The following induces an error, until -std is added to get
3816 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3817 array size at least. It's necessary to write '\x00'==0 to get something
3818 that's true only with -std. */
3819 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3821 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3822 inside strings and character constants. */
3824 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3826 int test (int i, double x);
3827 struct s1 {int (*f) (int a);};
3828 struct s2 {int (*f) (double a);};
3829 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3835 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3840 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3841 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3843 CC="$ac_save_CC $ac_arg"
3844 if ac_fn_c_try_compile "$LINENO"; then :
3845 ac_cv_prog_cc_c89=$ac_arg
3847 rm -f core conftest.err conftest.$ac_objext
3848 test "x$ac_cv_prog_cc_c89" != "xno" && break
3850 rm -f conftest.$ac_ext
3855 case "x$ac_cv_prog_cc_c89" in
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3858 $as_echo "none needed" >&6; } ;;
3860 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3861 $as_echo "unsupported" >&6; } ;;
3863 CC="$CC $ac_cv_prog_cc_c89"
3864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3865 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3867 if test "x$ac_cv_prog_cc_c89" != xno; then :
3872 ac_cpp='$CPP $CPPFLAGS'
3873 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3874 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3875 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3877 if test $target_os = solaris
3879 # Extract the first word of "$CC", so it can be a program name with args.
3880 set dummy $CC; ac_word=$2
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3882 $as_echo_n "checking for $ac_word... " >&6; }
3883 if ${ac_cv_path_CCPATH+:} false; then :
3884 $as_echo_n "(cached) " >&6
3888 ac_cv_path_CCPATH="$CCPATH" # Let the user override the test with a path.
3891 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3895 test -z "$as_dir" && as_dir=.
3896 for ac_exec_ext in '' $ac_executable_extensions; do
3897 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3898 ac_cv_path_CCPATH="$as_dir/$ac_word$ac_exec_ext"
3899 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3906 test -z "$ac_cv_path_CCPATH" && ac_cv_path_CCPATH="$CC"
3910 CCPATH=$ac_cv_path_CCPATH
3911 if test -n "$CCPATH"; then
3912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCPATH" >&5
3913 $as_echo "$CCPATH" >&6; }
3915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3916 $as_echo "no" >&6; }
3921 if test "$GCC" = "yes"
3923 CFLAGS="$CFLAGS $CFLAGS_IF_GCC"
3925 CFLAGS="$CFLAGS $CFLAGS_IF_SUNCC"
3927 if test "$use_64bit" = "no"
3931 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64 bit Solaris host" >&5
3932 $as_echo_n "checking for 64 bit Solaris host... " >&6; }
3937 CFLAGS="$CFLAGS -m64"
3938 LDFLAGS="$LDFLAGS -m64"
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3940 $as_echo "yes" >&6; }
3943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3944 $as_echo "no" >&6; }
3958 if echo "$CFLAGS" | grep 'D_FORTIFY_SOURCE' >/dev/null
3960 CFLAGS="-O $PCFLAGS"
3964 # Add some security-related gcc flags
3965 if echo "$CFLAGS" | grep stack-protector >/dev/null
3969 # Check whether --enable-ssp was given.
3970 if test "${enable_ssp+set}" = set; then :
3971 enableval=$enable_ssp;
3975 if test "x$cc_is_gcc" = xyes -a "x$enable_ssp" != xno ; then :
3977 save_CFLAGS="$CFLAGS"
3978 CFLAGS="$CFLAGS -O -fstack-protector-all -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2"
3979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3980 /* end confdefs.h. */
3983 if ac_fn_c_try_compile "$LINENO"; then :
3985 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling with gcc -fstack-protector-all et al." >&5
3986 $as_echo "$as_me: Compiling with gcc -fstack-protector-all et al." >&6;}
3987 PCFLAGS="$PCFLAGS -fstack-protector-all -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2"
3990 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiler does not support -fstack-protector-all et al." >&5
3991 $as_echo "$as_me: Compiler does not support -fstack-protector-all et al." >&6;}
3992 CFLAGS="$save_CFLAGS"
3995 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4002 # Check for even more security-related gcc/linker flags, useful for daemons
4003 # Check whether --enable-pie was given.
4004 if test "${enable_pie+set}" = set; then :
4005 enableval=$enable_pie;
4008 if test "x$cc_is_gcc" = xyes -a "x$enable_pie" != xno; then :
4011 PIELDFLAGS='-pie -Wl,-z,relro -Wl,-z,now'
4012 save_CFLAGS="$CFLAGS"
4013 save_LDFLAGS="$LDFLAGS"
4014 CFLAGS="$CFLAGS $PIECFLAGS"
4015 LDFLAGS="$LDFLAGS $PIELDFLAGS"
4016 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4017 /* end confdefs.h. */
4020 if ac_fn_c_try_link "$LINENO"; then :
4022 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling with gcc pie et al." >&5
4023 $as_echo "$as_me: Compiling with gcc pie et al." >&6;}
4027 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiler does not support -pie et al." >&5
4028 $as_echo "$as_me: Compiler does not support -pie et al." >&6;}
4033 rm -f core conftest.err conftest.$ac_objext \
4034 conftest$ac_exeext conftest.$ac_ext
4035 CFLAGS="$save_CFLAGS"
4036 LDFLAGS="$save_LDFLAGS"
4042 # Check for support for symbol hiding via gcc flags
4043 # Check whether --enable-visibility was given.
4044 if test "${enable_visibility+set}" = set; then :
4045 enableval=$enable_visibility;
4048 if test "x$cc_is_gcc" = xyes -a "$enable_visibility" != no; then :
4050 INVISIBILITY="-fvisibility=hidden"
4051 save_CFLAGS="$CFLAGS"
4052 CFLAGS="$CFLAGS -c $INVISIBILITY"
4053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4054 /* end confdefs.h. */
4055 int visible () { return 0; }
4057 if ac_fn_c_try_compile "$LINENO"; then :
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling DSO PMDAs with gcc -fvisibility=hidden" >&5
4060 $as_echo "$as_me: Compiling DSO PMDAs with gcc -fvisibility=hidden" >&6;}
4064 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiler does not support -fvisibility." >&5
4065 $as_echo "$as_me: Compiler does not support -fvisibility." >&6;}
4069 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4070 CFLAGS="$save_CFLAGS"
4076 ac_cpp='$CXXCPP $CPPFLAGS'
4077 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4078 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4079 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4080 if test -z "$CXX"; then
4081 if test -n "$CCC"; then
4084 if test -n "$ac_tool_prefix"; then
4085 for ac_prog in eg++ g++ c++
4087 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4088 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4090 $as_echo_n "checking for $ac_word... " >&6; }
4091 if ${ac_cv_prog_CXX+:} false; then :
4092 $as_echo_n "(cached) " >&6
4094 if test -n "$CXX"; then
4095 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4097 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4101 test -z "$as_dir" && as_dir=.
4102 for ac_exec_ext in '' $ac_executable_extensions; do
4103 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4104 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4105 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4115 if test -n "$CXX"; then
4116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4117 $as_echo "$CXX" >&6; }
4119 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4120 $as_echo "no" >&6; }
4124 test -n "$CXX" && break
4127 if test -z "$CXX"; then
4129 for ac_prog in eg++ g++ c++
4131 # Extract the first word of "$ac_prog", so it can be a program name with args.
4132 set dummy $ac_prog; ac_word=$2
4133 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4134 $as_echo_n "checking for $ac_word... " >&6; }
4135 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4136 $as_echo_n "(cached) " >&6
4138 if test -n "$ac_ct_CXX"; then
4139 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4141 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4145 test -z "$as_dir" && as_dir=.
4146 for ac_exec_ext in '' $ac_executable_extensions; do
4147 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4148 ac_cv_prog_ac_ct_CXX="$ac_prog"
4149 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4158 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4159 if test -n "$ac_ct_CXX"; then
4160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4161 $as_echo "$ac_ct_CXX" >&6; }
4163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4164 $as_echo "no" >&6; }
4168 test -n "$ac_ct_CXX" && break
4171 if test "x$ac_ct_CXX" = x; then
4174 case $cross_compiling:$ac_tool_warned in
4176 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4177 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4178 ac_tool_warned=yes ;;
4186 # Provide some information about the compiler.
4187 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4190 for ac_option in --version -v -V -qversion; do
4191 { { ac_try="$ac_compiler $ac_option >&5"
4193 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4194 *) ac_try_echo
=$ac_try;;
4196 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4197 $as_echo "$ac_try_echo"; } >&5
4198 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4200 if test -s conftest.err
; then
4202 ... rest of stderr output deleted ...
4203 10q' conftest.err
>conftest.er1
4204 cat conftest.er1
>&5
4206 rm -f conftest.er1 conftest.err
4207 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4208 test $ac_status = 0; }
4211 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4212 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4213 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
4214 $as_echo_n "(cached) " >&6
4216 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4217 /* end confdefs.h. */
4230 if ac_fn_cxx_try_compile
"$LINENO"; then :
4235 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4236 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
4239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4240 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4241 if test $ac_compiler_gnu = yes; then
4246 ac_test_CXXFLAGS
=${CXXFLAGS+set}
4247 ac_save_CXXFLAGS
=$CXXFLAGS
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4249 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4250 if ${ac_cv_prog_cxx_g+:} false
; then :
4251 $as_echo_n "(cached) " >&6
4253 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
4254 ac_cxx_werror_flag
=yes
4257 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4258 /* end confdefs.h. */
4268 if ac_fn_cxx_try_compile
"$LINENO"; then :
4269 ac_cv_prog_cxx_g
=yes
4272 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4273 /* end confdefs.h. */
4283 if ac_fn_cxx_try_compile
"$LINENO"; then :
4286 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4288 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4289 /* end confdefs.h. */
4299 if ac_fn_cxx_try_compile
"$LINENO"; then :
4300 ac_cv_prog_cxx_g
=yes
4302 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4304 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4306 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4307 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4310 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4311 if test "$ac_test_CXXFLAGS" = set; then
4312 CXXFLAGS
=$ac_save_CXXFLAGS
4313 elif test $ac_cv_prog_cxx_g = yes; then
4314 if test "$GXX" = yes; then
4320 if test "$GXX" = yes; then
4327 ac_cpp
='$CPP $CPPFLAGS'
4328 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4329 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4330 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working C++ compiler" >&5
4335 $as_echo_n "checking for working C++ compiler... " >&6; }
4337 ac_cpp
='$CXXCPP $CPPFLAGS'
4338 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4339 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4340 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4343 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4344 /* end confdefs.h. */
4349 const char gday[] = "G'day, world\n";
4354 if ac_fn_cxx_try_compile
"$LINENO"; then :
4355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4356 $as_echo "yes" >&6; }
4358 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4359 $as_echo "no" >&6; }
4362 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4364 ac_cpp
='$CPP $CPPFLAGS'
4365 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4366 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4367 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4370 # Prevent shared libraries from being built for libpcp and other core libraries
4371 # Check whether --enable-shared was given.
4372 if test "${enable_shared+set}" = set; then :
4373 enableval
=$enable_shared; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --disable-shared=$withval"
4379 test -z "$AWK" && for ac_prog
in gawk
awk
4381 # Extract the first word of "$ac_prog", so it can be a program name with args.
4382 set dummy
$ac_prog; ac_word
=$2
4383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4384 $as_echo_n "checking for $ac_word... " >&6; }
4385 if ${ac_cv_path_AWK+:} false
; then :
4386 $as_echo_n "(cached) " >&6
4390 ac_cv_path_AWK
="$AWK" # Let the user override the test with a path.
4393 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4397 test -z "$as_dir" && as_dir
=.
4398 for ac_exec_ext
in '' $ac_executable_extensions; do
4399 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4400 ac_cv_path_AWK
="$as_dir/$ac_word$ac_exec_ext"
4401 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4412 if test -n "$AWK"; then
4413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4414 $as_echo "$AWK" >&6; }
4416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4417 $as_echo "no" >&6; }
4421 test -n "$AWK" && break
4423 test -n "$AWK" || AWK
="/usr/bin/awk"
4436 if test -z "$SED"; then
4437 # Extract the first word of "sed", so it can be a program name with args.
4438 set dummy
sed; ac_word
=$2
4439 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4440 $as_echo_n "checking for $ac_word... " >&6; }
4441 if ${ac_cv_path_SED+:} false
; then :
4442 $as_echo_n "(cached) " >&6
4446 ac_cv_path_SED
="$SED" # Let the user override the test with a path.
4449 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4453 test -z "$as_dir" && as_dir
=.
4454 for ac_exec_ext
in '' $ac_executable_extensions; do
4455 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4456 ac_cv_path_SED
="$as_dir/$ac_word$ac_exec_ext"
4457 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4464 test -z "$ac_cv_path_SED" && ac_cv_path_SED
="/bin/sed"
4469 if test -n "$SED"; then
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
4471 $as_echo "$SED" >&6; }
4473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4474 $as_echo "no" >&6; }
4479 if test ! -x "$SED"; then
4480 as_fn_error $?
"cannot find a valid 'sed' command." "$LINENO" 5
4485 if test -z "$ECHO"; then
4486 # Extract the first word of "echo", so it can be a program name with args.
4487 set dummy
echo; ac_word
=$2
4488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4489 $as_echo_n "checking for $ac_word... " >&6; }
4490 if ${ac_cv_path_ECHO+:} false
; then :
4491 $as_echo_n "(cached) " >&6
4495 ac_cv_path_ECHO
="$ECHO" # Let the user override the test with a path.
4498 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4502 test -z "$as_dir" && as_dir
=.
4503 for ac_exec_ext
in '' $ac_executable_extensions; do
4504 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4505 ac_cv_path_ECHO
="$as_dir/$ac_word$ac_exec_ext"
4506 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4513 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO
="/bin/echo"
4517 ECHO
=$ac_cv_path_ECHO
4518 if test -n "$ECHO"; then
4519 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
4520 $as_echo "$ECHO" >&6; }
4522 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4523 $as_echo "no" >&6; }
4528 if test ! -x "$ECHO"; then
4529 as_fn_error $?
"cannot find a valid 'echo' command." "$LINENO" 5
4534 if test -z "$FIND"; then
4535 # Extract the first word of "find", so it can be a program name with args.
4536 set dummy
find; ac_word
=$2
4537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4538 $as_echo_n "checking for $ac_word... " >&6; }
4539 if ${ac_cv_path_FIND+:} false
; then :
4540 $as_echo_n "(cached) " >&6
4544 ac_cv_path_FIND
="$FIND" # Let the user override the test with a path.
4547 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4551 test -z "$as_dir" && as_dir
=.
4552 for ac_exec_ext
in '' $ac_executable_extensions; do
4553 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4554 ac_cv_path_FIND
="$as_dir/$ac_word$ac_exec_ext"
4555 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4562 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND
="/usr/bin/find"
4566 FIND
=$ac_cv_path_FIND
4567 if test -n "$FIND"; then
4568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
4569 $as_echo "$FIND" >&6; }
4571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4572 $as_echo "no" >&6; }
4577 if test ! -x "$FIND"; then
4578 as_fn_error $?
"cannot find a valid 'find' command." "$LINENO" 5
4583 if test -z "$WHICH"; then
4584 # Extract the first word of "which", so it can be a program name with args.
4585 set dummy
which; ac_word
=$2
4586 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4587 $as_echo_n "checking for $ac_word... " >&6; }
4588 if ${ac_cv_path_WHICH+:} false
; then :
4589 $as_echo_n "(cached) " >&6
4593 ac_cv_path_WHICH
="$WHICH" # Let the user override the test with a path.
4596 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4600 test -z "$as_dir" && as_dir
=.
4601 for ac_exec_ext
in '' $ac_executable_extensions; do
4602 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4603 ac_cv_path_WHICH
="$as_dir/$ac_word$ac_exec_ext"
4604 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4611 test -z "$ac_cv_path_WHICH" && ac_cv_path_WHICH
="/usr/bin/which"
4615 WHICH
=$ac_cv_path_WHICH
4616 if test -n "$WHICH"; then
4617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
4618 $as_echo "$WHICH" >&6; }
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4621 $as_echo "no" >&6; }
4626 if test ! -x "$WHICH"; then
4627 as_fn_error $?
"cannot find a valid 'which' command." "$LINENO" 5
4632 for ac_prog
in flex
lex
4634 # Extract the first word of "$ac_prog", so it can be a program name with args.
4635 set dummy
$ac_prog; ac_word
=$2
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4637 $as_echo_n "checking for $ac_word... " >&6; }
4638 if ${ac_cv_prog_LEX+:} false
; then :
4639 $as_echo_n "(cached) " >&6
4641 if test -n "$LEX"; then
4642 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
4644 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4648 test -z "$as_dir" && as_dir
=.
4649 for ac_exec_ext
in '' $ac_executable_extensions; do
4650 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4651 ac_cv_prog_LEX
="$ac_prog"
4652 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4662 if test -n "$LEX"; then
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
4664 $as_echo "$LEX" >&6; }
4666 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4667 $as_echo "no" >&6; }
4671 test -n "$LEX" && break
4673 test -n "$LEX" || LEX
=":"
4675 if test "x$LEX" != "x:"; then
4676 cat >conftest.l
<<_ACEOF
4682 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
4683 yyless ((input () != 0)); }
4684 f { unput (yytext[0]); }
4685 . { BEGIN INITIAL; }
4687 #ifdef YYTEXT_POINTER
4688 extern char *yytext;
4693 return ! yylex () + ! yywrap ();
4696 { { ac_try
="$LEX conftest.l"
4698 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4699 *) ac_try_echo=$ac_try;;
4701 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4702 $as_echo "$ac_try_echo"; } >&5
4703 (eval "$LEX conftest.l") 2>&5
4705 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4706 test $ac_status = 0; }
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
4708 $as_echo_n "checking lex output file root... " >&6; }
4709 if ${ac_cv_prog_lex_root+:} false; then :
4710 $as_echo_n "(cached) " >&6
4713 if test -f lex.yy.c; then
4714 ac_cv_prog_lex_root=lex.yy
4715 elif test -f lexyy.c; then
4716 ac_cv_prog_lex_root=lexyy
4718 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
4722 $as_echo "$ac_cv_prog_lex_root" >&6; }
4723 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4725 if test -z "${LEXLIB+set}"; then
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
4727 $as_echo_n "checking lex library... " >&6; }
4728 if ${ac_cv_lib_lex+:} false; then :
4729 $as_echo_n "(cached) " >&6
4733 ac_cv_lib_lex='none needed'
4734 for ac_lib in '' -lfl -ll; do
4735 LIBS="$ac_lib $ac_save_LIBS"
4736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4737 /* end confdefs.h. */
4738 `cat $LEX_OUTPUT_ROOT.c
`
4740 if ac_fn_c_try_link "$LINENO"; then :
4741 ac_cv_lib_lex=$ac_lib
4743 rm -f core conftest.err conftest.$ac_objext \
4744 conftest$ac_exeext conftest.$ac_ext
4745 test "$ac_cv_lib_lex" != 'none needed' && break
4750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
4751 $as_echo "$ac_cv_lib_lex" >&6; }
4752 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
4756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
4757 $as_echo_n "checking whether yytext is a pointer... " >&6; }
4758 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
4759 $as_echo_n "(cached) " >&6
4761 # POSIX says lex can declare yytext either as a pointer or an array; the
4762 # default is implementation-dependent. Figure out which it is, since
4763 # not all implementations provide the %pointer and %array declarations.
4764 ac_cv_prog_lex_yytext_pointer=no
4766 LIBS="$LEXLIB $ac_save_LIBS"
4767 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4768 /* end confdefs.h. */
4770 #define YYTEXT_POINTER 1
4771 `cat $LEX_OUTPUT_ROOT.c
`
4773 if ac_fn_c_try_link "$LINENO"; then :
4774 ac_cv_prog_lex_yytext_pointer=yes
4776 rm -f core conftest.err conftest.$ac_objext \
4777 conftest$ac_exeext conftest.$ac_ext
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
4782 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
4783 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4785 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
4788 rm -f conftest.l $LEX_OUTPUT_ROOT.c
4791 lex=`$echo $LEX |
awk '{print $1}'`
4793 if test ! -x "$lex"; then
4794 as_fn_error $? "cannot find a valid 'lex'/'flex' command." "$LINENO" 5
4799 for ac_prog in 'bison -y' byacc
4801 # Extract the first word of "$ac_prog", so it can be a program name with args.
4802 set dummy $ac_prog; ac_word=$2
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4804 $as_echo_n "checking for $ac_word... " >&6; }
4805 if ${ac_cv_prog_YACC+:} false; then :
4806 $as_echo_n "(cached) " >&6
4808 if test -n "$YACC"; then
4809 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4811 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4815 test -z "$as_dir" && as_dir=.
4816 for ac_exec_ext in '' $ac_executable_extensions; do
4817 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4818 ac_cv_prog_YACC="$ac_prog"
4819 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4828 YACC=$ac_cv_prog_YACC
4829 if test -n "$YACC"; then
4830 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
4831 $as_echo "$YACC" >&6; }
4833 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4834 $as_echo "no" >&6; }
4838 test -n "$YACC" && break
4840 test -n "$YACC" || YACC="yacc"
4842 yacc=`$echo $YACC |
awk '{print $1}'`
4843 yacc=`$which "$yacc"`
4844 if test ! -x "$yacc"; then
4845 as_fn_error $? "cannot find a valid 'yacc'/'bison' command." "$LINENO" 5
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where unix-like sort(1) lives" >&5
4851 $as_echo_n "checking where unix-like sort(1) lives... " >&6; }
4852 if test $target_os = mingw; then
4853 for d in /bin /usr/bin /mingw/bin /mingw/usr/bin
4855 if test -x $d/sort; then
4863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sort" >&5
4864 $as_echo "$sort" >&6; }
4869 echo "FATAL ERROR: $sort -n failed!"
4870 rm -rf conftest conftest.*
4875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if echo uses -n or backslash-c to suppress newlines" >&5
4876 $as_echo_n "checking if echo uses -n or backslash-c to suppress newlines... " >&6; }
4877 if ( $echo "testing\c"; $echo 1,2,3 ) | grep c >/dev/null
4879 if ( $echo -n testing; $echo 1,2,3 ) | sed s/-n/xn/ | grep xn >/dev/null
4882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither?" >&5
4883 $as_echo "neither?" >&6; }
4886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -n" >&5
4887 $as_echo " -n" >&6; }
4891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: backslash-c" >&5
4892 $as_echo "backslash-c" >&6; }
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4898 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4899 if ${ac_cv_path_GREP+:} false; then :
4900 $as_echo_n "(cached) " >&6
4902 if test -z "$GREP"; then
4903 ac_path_GREP_found=false
4904 # Loop through the user's path and test for each of PROGNAME-LIST
4905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4906 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4909 test -z "$as_dir" && as_dir=.
4910 for ac_prog in grep ggrep; do
4911 for ac_exec_ext in '' $ac_executable_extensions; do
4912 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4913 as_fn_executable_p "$ac_path_GREP" || continue
4914 # Check for GNU ac_path_GREP and select it if it is found.
4915 # Check for GNU $ac_path_GREP
4916 case `"$ac_path_GREP" --version 2>&1` in
4918 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4921 $as_echo_n 0123456789 >"conftest.in"
4924 cat "conftest.in" "conftest.in" >"conftest.tmp"
4925 mv "conftest.tmp" "conftest.in"
4926 cp "conftest.in" "conftest.nl"
4927 $as_echo 'GREP' >> "conftest.nl"
4928 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4929 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4930 as_fn_arith $ac_count + 1 && ac_count=$as_val
4931 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4932 # Best one so far, save it but keep looking for a better one
4933 ac_cv_path_GREP="$ac_path_GREP"
4934 ac_path_GREP_max=$ac_count
4936 # 10*(2^10) chars as input seems more than enough
4937 test $ac_count -gt 10 && break
4939 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4942 $ac_path_GREP_found && break 3
4947 if test -z "$ac_cv_path_GREP"; then
4948 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4951 ac_cv_path_GREP=$GREP
4955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4956 $as_echo "$ac_cv_path_GREP" >&6; }
4957 GREP="$ac_cv_path_GREP"
4960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4961 $as_echo_n "checking for egrep... " >&6; }
4962 if ${ac_cv_path_EGREP+:} false; then :
4963 $as_echo_n "(cached) " >&6
4965 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4966 then ac_cv_path_EGREP="$GREP -E"
4968 if test -z "$EGREP"; then
4969 ac_path_EGREP_found=false
4970 # Loop through the user's path and test for each of PROGNAME-LIST
4971 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4972 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4975 test -z "$as_dir" && as_dir=.
4976 for ac_prog in egrep; do
4977 for ac_exec_ext in '' $ac_executable_extensions; do
4978 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4979 as_fn_executable_p "$ac_path_EGREP" || continue
4980 # Check for GNU ac_path_EGREP and select it if it is found.
4981 # Check for GNU $ac_path_EGREP
4982 case `"$ac_path_EGREP" --version 2>&1` in
4984 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4987 $as_echo_n 0123456789 >"conftest.in"
4990 cat "conftest.in" "conftest.in" >"conftest.tmp"
4991 mv "conftest.tmp" "conftest.in"
4992 cp "conftest.in" "conftest.nl"
4993 $as_echo 'EGREP' >> "conftest.nl"
4994 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4995 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4996 as_fn_arith $ac_count + 1 && ac_count=$as_val
4997 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4998 # Best one so far, save it but keep looking for a better one
4999 ac_cv_path_EGREP="$ac_path_EGREP"
5000 ac_path_EGREP_max=$ac_count
5002 # 10*(2^10) chars as input seems more than enough
5003 test $ac_count -gt 10 && break
5005 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5008 $ac_path_EGREP_found && break 3
5013 if test -z "$ac_cv_path_EGREP"; then
5014 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5017 ac_cv_path_EGREP=$EGREP
5022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5023 $as_echo "$ac_cv_path_EGREP" >&6; }
5024 EGREP="$ac_cv_path_EGREP"
5028 if test "$do_probes" = "check" -o "$do_probes" = "yes"
5031 for ac_prog in dtrace
5033 # Extract the first word of "$ac_prog", so it can be a program name with args.
5034 set dummy $ac_prog; ac_word=$2
5035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5036 $as_echo_n "checking for $ac_word... " >&6; }
5037 if ${ac_cv_prog_DTRACE+:} false; then :
5038 $as_echo_n "(cached) " >&6
5040 if test -n "$DTRACE"; then
5041 ac_cv_prog_DTRACE="$DTRACE" # Let the user override the test.
5043 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5047 test -z "$as_dir" && as_dir=.
5048 for ac_exec_ext in '' $ac_executable_extensions; do
5049 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5050 ac_cv_prog_DTRACE="$ac_prog"
5051 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5060 DTRACE=$ac_cv_prog_DTRACE
5061 if test -n "$DTRACE"; then
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5
5063 $as_echo "$DTRACE" >&6; }
5065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5066 $as_echo "no" >&6; }
5070 test -n "$DTRACE" && break
5073 if test -z "$DTRACE"
5075 if test "$do_probes" = "yes"
5077 as_fn_error $? "cannot enable static probes - no dtrace executable" "$LINENO" 5
5082 ac_cpp='$CPP $CPPFLAGS'
5083 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5084 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5085 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5086 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5087 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5088 # On Suns, sometimes $CPP names a directory.
5089 if test -n "$CPP" && test -d "$CPP"; then
5092 if test -z "$CPP"; then
5093 if ${ac_cv_prog_CPP+:} false; then :
5094 $as_echo_n "(cached) " >&6
5096 # Double quotes because CPP needs to be expanded
5097 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5100 for ac_c_preproc_warn_flag in '' yes
5102 # Use a header file that comes with gcc, so configuring glibc
5103 # with a fresh cross-compiler works.
5104 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5105 # <limits.h> exists even on freestanding compilers.
5106 # On the NeXT, cc -E runs the code through the compiler's parser,
5107 # not just through cpp. "Syntax error" is here to catch this case.
5108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5109 /* end confdefs.h. */
5111 # include <limits.h>
5113 # include <assert.h>
5117 if ac_fn_c_try_cpp "$LINENO"; then :
5120 # Broken: fails on valid input.
5123 rm -f conftest.err conftest.i conftest.$ac_ext
5125 # OK, works on sane cases. Now check whether nonexistent headers
5126 # can be detected and how.
5127 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5128 /* end confdefs.h. */
5129 #include <ac_nonexistent.h>
5131 if ac_fn_c_try_cpp "$LINENO"; then :
5132 # Broken: success on invalid input.
5135 # Passes both tests.
5139 rm -f conftest.err conftest.i conftest.$ac_ext
5142 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5143 rm -f conftest.i conftest.err conftest.
$ac_ext
5144 if $ac_preproc_ok; then :
5156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5157 $as_echo "$CPP" >&6; }
5159 for ac_c_preproc_warn_flag
in '' yes
5161 # Use a header file that comes with gcc, so configuring glibc
5162 # with a fresh cross-compiler works.
5163 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5164 # <limits.h> exists even on freestanding compilers.
5165 # On the NeXT, cc -E runs the code through the compiler's parser,
5166 # not just through cpp. "Syntax error" is here to catch this case.
5167 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5168 /* end confdefs.h. */
5170 # include <limits.h>
5172 # include <assert.h>
5176 if ac_fn_c_try_cpp
"$LINENO"; then :
5179 # Broken: fails on valid input.
5182 rm -f conftest.err conftest.i conftest.
$ac_ext
5184 # OK, works on sane cases. Now check whether nonexistent headers
5185 # can be detected and how.
5186 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5187 /* end confdefs.h. */
5188 #include <ac_nonexistent.h>
5190 if ac_fn_c_try_cpp
"$LINENO"; then :
5191 # Broken: success on invalid input.
5194 # Passes both tests.
5198 rm -f conftest.err conftest.i conftest.
$ac_ext
5201 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5202 rm -f conftest.i conftest.err conftest.
$ac_ext
5203 if $ac_preproc_ok; then :
5206 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5207 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5208 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
5209 See \`config.log' for more details" "$LINENO" 5; }
5213 ac_cpp
='$CPP $CPPFLAGS'
5214 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5215 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5216 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5219 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5220 $as_echo_n "checking for ANSI C header files... " >&6; }
5221 if ${ac_cv_header_stdc+:} false
; then :
5222 $as_echo_n "(cached) " >&6
5224 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5225 /* end confdefs.h. */
5239 if ac_fn_c_try_compile
"$LINENO"; then :
5240 ac_cv_header_stdc
=yes
5242 ac_cv_header_stdc
=no
5244 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5246 if test $ac_cv_header_stdc = yes; then
5247 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5248 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5249 /* end confdefs.h. */
5253 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5254 $EGREP "memchr" >/dev
/null
2>&1; then :
5257 ac_cv_header_stdc
=no
5263 if test $ac_cv_header_stdc = yes; then
5264 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5265 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5266 /* end confdefs.h. */
5270 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5271 $EGREP "free" >/dev
/null
2>&1; then :
5274 ac_cv_header_stdc
=no
5280 if test $ac_cv_header_stdc = yes; then
5281 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5282 if test "$cross_compiling" = yes; then :
5285 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5286 /* end confdefs.h. */
5289 #if ((' ' & 0x0FF) == 0x020)
5290 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5291 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5293 # define ISLOWER(c) \
5294 (('a' <= (c) && (c) <= 'i') \
5295 || ('j' <= (c) && (c) <= 'r') \
5296 || ('s' <= (c) && (c) <= 'z'))
5297 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5300 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5305 for (i = 0; i < 256; i++)
5306 if (XOR (islower (i), ISLOWER (i))
5307 || toupper (i) != TOUPPER (i))
5312 if ac_fn_c_try_run
"$LINENO"; then :
5315 ac_cv_header_stdc
=no
5317 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5318 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5324 $as_echo "$ac_cv_header_stdc" >&6; }
5325 if test $ac_cv_header_stdc = yes; then
5327 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5331 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5332 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5333 inttypes.h stdint.h unistd.h
5335 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5336 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5338 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
5339 cat >>confdefs.h
<<_ACEOF
5340 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5348 for ac_header
in sys
/sdt.h
5350 ac_fn_c_check_header_mongrel
"$LINENO" "sys/sdt.h" "ac_cv_header_sys_sdt_h" "$ac_includes_default"
5351 if test "x$ac_cv_header_sys_sdt_h" = xyes
; then :
5352 cat >>confdefs.h
<<_ACEOF
5353 #define HAVE_SYS_SDT_H 1
5356 if $enable_probes = true
5358 if test $target_os = kfreebsd
5361 elif test $target_os = freebsd
5363 rm -f conftest.d conftest.h
5364 cat <<End-of-File >conftest.d
5369 if dtrace
-s conftest.d
-h >/dev
/null
2>&1
5371 if test ! -f conftest.h
5374 if test "$do_probes" = "yes"
5376 as_fn_error $?
"cannot enable static probes - no .h from dtrace -h" "$LINENO" 5
5381 if test "$do_probes" = "yes"
5383 as_fn_error $?
"cannot enable static probes - dtrace failed" "$LINENO" 5
5392 if test "$do_probes" = "yes"
5394 as_fn_error $?
"cannot enable static probes - no SDT header" "$LINENO" 5
5402 if test "$enable_probes" = "true"
5405 $as_echo "#define HAVE_STATIC_PROBES 1" >>confdefs.h
5412 if test "x$do_discovery" != "xno"; then :
5414 # on Mac OS X, dns_sd.h
5416 # on Linux, aloha Avahi
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for avahi" >&5
5421 $as_echo_n "checking for avahi... " >&6; }
5423 if test -n "$avahi_CFLAGS"; then
5424 pkg_cv_avahi_CFLAGS
="$avahi_CFLAGS"
5425 elif test -n "$PKG_CONFIG"; then
5426 if test -n "$PKG_CONFIG" && \
5427 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"avahi-client\""; } >&5
5428 ($PKG_CONFIG --exists --print-errors "avahi-client") 2>&5
5430 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5431 test $ac_status = 0; }; then
5432 pkg_cv_avahi_CFLAGS
=`$PKG_CONFIG --cflags "avahi-client" 2>/dev/null`
5433 test "x$?" != "x0" && pkg_failed
=yes
5440 if test -n "$avahi_LIBS"; then
5441 pkg_cv_avahi_LIBS
="$avahi_LIBS"
5442 elif test -n "$PKG_CONFIG"; then
5443 if test -n "$PKG_CONFIG" && \
5444 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"avahi-client\""; } >&5
5445 ($PKG_CONFIG --exists --print-errors "avahi-client") 2>&5
5447 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5448 test $ac_status = 0; }; then
5449 pkg_cv_avahi_LIBS
=`$PKG_CONFIG --libs "avahi-client" 2>/dev/null`
5450 test "x$?" != "x0" && pkg_failed
=yes
5460 if test $pkg_failed = yes; then
5461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5462 $as_echo "no" >&6; }
5464 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5465 _pkg_short_errors_supported
=yes
5467 _pkg_short_errors_supported
=no
5469 if test $_pkg_short_errors_supported = yes; then
5470 avahi_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "avahi-client" 2>&1`
5472 avahi_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "avahi-client" 2>&1`
5474 # Put the nasty error message in config.log where it belongs
5475 echo "$avahi_PKG_ERRORS" >&5
5478 elif test $pkg_failed = untried
; then
5479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5480 $as_echo "no" >&6; }
5483 avahi_CFLAGS
=$pkg_cv_avahi_CFLAGS
5484 avahi_LIBS
=$pkg_cv_avahi_LIBS
5485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5486 $as_echo "yes" >&6; }
5487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for avahi_client_new in -lavahi-client" >&5
5488 $as_echo_n "checking for avahi_client_new in -lavahi-client... " >&6; }
5489 if ${ac_cv_lib_avahi_client_avahi_client_new+:} false
; then :
5490 $as_echo_n "(cached) " >&6
5492 ac_check_lib_save_LIBS
=$LIBS
5493 LIBS
="-lavahi-client $LIBS"
5494 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5495 /* end confdefs.h. */
5497 /* Override any GCC internal prototype to avoid an error.
5498 Use char because int might match the return type of a GCC
5499 builtin and then its argument prototype would still apply. */
5503 char avahi_client_new ();
5507 return avahi_client_new ();
5512 if ac_fn_c_try_link
"$LINENO"; then :
5513 ac_cv_lib_avahi_client_avahi_client_new
=yes
5515 ac_cv_lib_avahi_client_avahi_client_new
=no
5517 rm -f core conftest.err conftest.
$ac_objext \
5518 conftest
$ac_exeext conftest.
$ac_ext
5519 LIBS
=$ac_check_lib_save_LIBS
5521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avahi_client_avahi_client_new" >&5
5522 $as_echo "$ac_cv_lib_avahi_client_avahi_client_new" >&6; }
5523 if test "x$ac_cv_lib_avahi_client_avahi_client_new" = xyes
; then :
5524 lib_for_avahi
="-lavahi-common -lavahi-client"
5531 for ac_header
in avahi-client
/publish.h
5533 ac_fn_c_check_header_mongrel
"$LINENO" "avahi-client/publish.h" "ac_cv_header_avahi_client_publish_h" "$ac_includes_default"
5534 if test "x$ac_cv_header_avahi_client_publish_h" = xyes
; then :
5535 cat >>confdefs.h
<<_ACEOF
5536 #define HAVE_AVAHI_CLIENT_PUBLISH_H 1
5545 for ac_header
in avahi-common
/alternative.h
5547 ac_fn_c_check_header_mongrel
"$LINENO" "avahi-common/alternative.h" "ac_cv_header_avahi_common_alternative_h" "$ac_includes_default"
5548 if test "x$ac_cv_header_avahi_common_alternative_h" = xyes
; then :
5549 cat >>confdefs.h
<<_ACEOF
5550 #define HAVE_AVAHI_COMMON_ALTERNATIVE_H 1
5560 if test "$enable_avahi" = "true"
5565 $as_echo "#define HAVE_AVAHI 1" >>confdefs.h
5567 enable_discovery
=true
5570 if test "$do_discovery" != "check" -a "$enable_discovery" != "true"
5572 as_fn_error $?
"cannot enable service discovery - no supported mechanisms" "$LINENO" 5
5574 if test "$enable_discovery" = "true"
5577 $as_echo "#define HAVE_SERVICE_DISCOVERY 1" >>confdefs.h
5585 enable_systemd
=false
5586 if test "x$do_systemd" != "xno"; then :
5591 if test -n "$SYSTEMD_SYSTEMUNITDIR"; then
5592 pkg_cv_SYSTEMD_SYSTEMUNITDIR
="$SYSTEMD_SYSTEMUNITDIR"
5593 elif test -n "$PKG_CONFIG"; then
5594 if test -n "$PKG_CONFIG" && \
5595 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd\""; } >&5
5596 ($PKG_CONFIG --exists --print-errors "systemd") 2>&5
5598 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5599 test $ac_status = 0; }; then
5600 pkg_cv_SYSTEMD_SYSTEMUNITDIR
=`$PKG_CONFIG --variable="systemdsystemunitdir" "systemd" 2>/dev/null`
5601 test "x$?" != "x0" && pkg_failed
=yes
5608 SYSTEMD_SYSTEMUNITDIR
=$pkg_cv_SYSTEMD_SYSTEMUNITDIR
5610 if test "x$SYSTEMD_SYSTEMUNITDIR" = x
""; then :
5611 enable_systemd
=false
5613 pcp_systemdunit_dir
=$SYSTEMD_SYSTEMUNITDIR
5616 if test -z "$pcp_systemdunit_dir"
5618 if test "$do_systemd" = "yes"
5620 as_fn_error $?
"cannot enable systemd support - no systemunitdir path" "$LINENO" 5
5622 enable_systemd
=false
5628 # NB: No AC_PREFIX_DEFAULT is needed, as the default configure invocation
5629 # targets a build for non-system directories such as /usr/local.
5630 # AC_PREFIX_DEFAULT([])
5633 PACKAGE_VERSION
=${PACKAGE_MAJOR}.${PACKAGE_MINOR}.${PACKAGE_REVISION}
5640 if test -z "$PACKAGE_BUILD_DATE" ; then
5641 PACKAGE_BUILD_DATE
=`date +%Y-%m-%d`
5645 if test -z "$PACKAGE_DISTRIBUTION" ; then
5646 PACKAGE_DISTRIBUTION
=$target_distro
5650 pm_version_current
=`awk </dev/null "BEGIN { print (${PACKAGE_MAJOR}*256+${PACKAGE_MINOR})*256+${PACKAGE_REVISION} }"`
5653 ac_config_headers
="$ac_config_headers src/include/pcp/config.h src/include/pcp/configsz.h"
5655 ac_config_files
="$ac_config_files src/include/pcp/platform_defs.h src/include/pcp/platformsz.h"
5657 cat >confcache
<<\_ACEOF
5658 # This file is a shell script that caches the results of configure
5659 # tests run on this system so they can be shared between configure
5660 # scripts and configure runs, see configure's option --config-cache.
5661 # It is not useful on other systems. If it contains results you don't
5662 # want to keep, you may remove or edit it.
5664 # config.status only pays attention to the cache file if you give it
5665 # the --recheck option to rerun configure.
5667 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5668 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5673 # The following way of writing the cache mishandles newlines in values,
5674 # but we know of no workaround that is simple, portable, and efficient.
5675 # So, we kill variables containing newlines.
5676 # Ultrix sh set writes to stderr and can't be redirected directly,
5677 # and sets the high bit in the cache file unless we assign to the vars.
5679 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5680 eval ac_val
=\$
$ac_var
5684 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5685 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5688 _ | IFS | as_nl
) ;; #(
5689 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
5690 *) { eval $ac_var=; unset $ac_var;} ;;
5696 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5697 *${as_nl}ac_space
=\
*)
5698 # `set' does not quote correctly, so add quotes: double-quote
5699 # substitution turns \\\\ into \\, and sed turns \\ into \.
5702 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5705 # `set' quotes correctly as required by POSIX, so do not add quotes.
5706 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5715 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5717 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5719 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
5720 if test -w "$cache_file"; then
5721 if test "x$cache_file" != "x/dev/null"; then
5722 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5723 $as_echo "$as_me: updating cache $cache_file" >&6;}
5724 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
5725 cat confcache
>"$cache_file"
5727 case $cache_file in #(
5729 mv -f confcache
"$cache_file"$$
&&
5730 mv -f "$cache_file"$$
"$cache_file" ;; #(
5732 mv -f confcache
"$cache_file" ;;
5737 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5738 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5743 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
5744 # Let make expand exec_prefix.
5745 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5747 DEFS
=-DHAVE_CONFIG_H
5752 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
5753 # 1. Remove the extension, and $U if already installed.
5754 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
5755 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
5756 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5757 # will be set to the directory where LIBOBJS objects are built.
5758 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5759 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
5763 LTLIBOBJS
=$ac_ltlibobjs
5767 : "${CONFIG_STATUS=./config.status}"
5769 ac_clean_files_save
=$ac_clean_files
5770 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
5771 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5772 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5774 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5776 # Generated by $as_me.
5777 # Run this file to recreate the current configuration.
5778 # Compiler output produced by configure, useful for debugging
5779 # configure, is in config.log if it exists.
5785 SHELL=\${CONFIG_SHELL-$SHELL}
5788 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
5789 ## -------------------- ##
5790 ## M4sh Initialization. ##
5791 ## -------------------- ##
5793 # Be more Bourne compatible
5794 DUALCASE
=1; export DUALCASE
# for MKS sh
5795 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
5798 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5799 # is contrary to our usage. Disable this feature.
5800 alias -g '${1+"$@"}'='"$@"'
5801 setopt NO_GLOB_SUBST
5803 case `(set -o) 2>/dev/null` in #(
5815 # Printing a long string crashes Solaris 7 /usr/bin/printf.
5816 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5817 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5818 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5819 # Prefer a ksh shell builtin over an external printf program on Solaris,
5820 # but without wasting forks for bash or zsh.
5821 if test -z "$BASH_VERSION$ZSH_VERSION" \
5822 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5823 as_echo='print
-r --'
5824 as_echo_n='print
-rn --'
5825 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5826 as_echo='printf %s
\n'
5827 as_echo_n='printf %s
'
5829 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5830 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
5831 as_echo_n='/usr
/ucb
/echo -n'
5833 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5834 as_echo_n_body='eval
5838 expr "X$arg" : "X\\(.*\\)$as_nl";
5839 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5841 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
5843 export as_echo_n_body
5844 as_echo_n='sh
-c $as_echo_n_body as_echo
'
5847 as_echo='sh
-c $as_echo_body as_echo
'
5850 # The user is always right.
5851 if test "${PATH_SEPARATOR+set}" != set; then
5853 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5854 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5861 # We need space, tab and new line, in precisely that order. Quoting is
5862 # there to prevent editors from complaining about space-tab.
5863 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
5864 # splitting by setting IFS to empty value.)
5867 # Find who we are. Look in the path if we contain no directory separator.
5870 *[\\/]* ) as_myself=$0 ;;
5871 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5875 test -z "$as_dir" && as_dir=.
5876 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5882 # We did not find ourselves, most probably we were run as `sh COMMAND'
5883 # in which case we are not to be found in the path.
5884 if test "x$as_myself" = x
; then
5887 if test ! -f "$as_myself"; then
5888 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5892 # Unset variables that we do not need and which cause bugs (e.g. in
5893 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
5894 # suppresses any "Segmentation fault" message there. '((' could
5895 # trigger a bug in pdksh 5.2.14.
5896 for as_var
in BASH_ENV ENV MAIL MAILPATH
5897 do eval test x\
${$as_var+set} = xset \
5898 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
5911 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
5914 # as_fn_error STATUS ERROR [LINENO LOG_FD]
5915 # ----------------------------------------
5916 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5917 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5918 # script with STATUS, using 1 if that was 0.
5921 as_status
=$1; test $as_status -eq 0 && as_status
=1
5923 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
5924 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
5926 $as_echo "$as_me: error: $2" >&2
5927 as_fn_exit
$as_status
5931 # as_fn_set_status STATUS
5932 # -----------------------
5933 # Set $? to STATUS, without forking.
5937 } # as_fn_set_status
5941 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5951 # Portably unset VAR.
5954 { eval $1=; unset $1;}
5956 as_unset
=as_fn_unset
5957 # as_fn_append VAR VALUE
5958 # ----------------------
5959 # Append the text in VALUE to the end of the definition contained in VAR. Take
5960 # advantage of any shell optimizations that allow amortized linear growth over
5961 # repeated appends, instead of the typical quadratic growth present in naive
5963 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
5964 eval 'as_fn_append ()
5975 # as_fn_arith ARG...
5976 # ------------------
5977 # Perform arithmetic evaluation on the ARGs, and store the result in the
5978 # global $as_val. Take advantage of shells that can avoid forks. The arguments
5979 # must be portable across $(()) and expr.
5980 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
5981 eval 'as_fn_arith ()
5988 as_val
=`expr "$@" || test $? -eq 1`
5993 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
5994 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
6000 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6001 as_basename
=basename
6006 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
6012 as_me
=`$as_basename -- "$0" ||
6013 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6014 X"$0" : 'X\(//\)$' \| \
6015 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6017 sed '/^.*\/\([^/][^/]*\)\/*$/{
6031 # Avoid depending upon Character Ranges.
6032 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
6033 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6034 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
6035 as_cr_digits
='0123456789'
6036 as_cr_alnum
=$as_cr_Letters$as_cr_digits
6038 ECHO_C
= ECHO_N
= ECHO_T
=
6039 case `echo -n x` in #(((((
6041 case `echo 'xy\c'` in
6042 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
6044 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
6051 rm -f conf$$ conf$$.exe conf$$.
file
6052 if test -d conf$$.dir
; then
6053 rm -f conf$$.dir
/conf$$.
file
6056 mkdir conf$$.dir
2>/dev
/null
6058 if (echo >conf$$.
file) 2>/dev
/null
; then
6059 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
6061 # ... but there are two gotchas:
6062 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6063 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6064 # In both cases, we have to default to `cp -pR'.
6065 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
6067 elif ln conf$$.
file conf$$
2>/dev
/null
; then
6075 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
6076 rmdir conf$$.dir
2>/dev
/null
6081 # Create "$as_dir" as a directory, including parents if necessary.
6086 -*) as_dir
=.
/$as_dir;;
6088 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
6092 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6093 *) as_qdir
=$as_dir;;
6095 as_dirs
="'$as_qdir' $as_dirs"
6096 as_dir
=`$as_dirname -- "$as_dir" ||
6097 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6098 X"$as_dir" : 'X\(//\)[^/]' \| \
6099 X"$as_dir" : 'X\(//\)$' \| \
6100 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6101 $as_echo X"$as_dir" |
6102 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6119 test -d "$as_dir" && break
6121 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
6122 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
6126 if mkdir
-p .
2>/dev
/null
; then
6127 as_mkdir_p
='mkdir -p "$as_dir"'
6129 test -d .
/-p && rmdir .
/-p
6134 # as_fn_executable_p FILE
6135 # -----------------------
6136 # Test if FILE is an executable regular file.
6137 as_fn_executable_p
()
6139 test -f "$1" && test -x "$1"
6140 } # as_fn_executable_p
6142 as_executable_p
=as_fn_executable_p
6144 # Sed expression to map a string onto a valid CPP name.
6145 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6147 # Sed expression to map a string onto a valid variable name.
6148 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6152 ## ----------------------------------- ##
6153 ## Main body of $CONFIG_STATUS script. ##
6154 ## ----------------------------------- ##
6156 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
6158 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6159 # Save the log message, to keep $0 and so on meaningful, and to
6160 # report actual input values of CONFIG_FILES etc. instead of their
6161 # values after options handling.
6163 This file was extended by $as_me, which was
6164 generated by GNU Autoconf 2.69. Invocation command line was
6166 CONFIG_FILES = $CONFIG_FILES
6167 CONFIG_HEADERS = $CONFIG_HEADERS
6168 CONFIG_LINKS = $CONFIG_LINKS
6169 CONFIG_COMMANDS = $CONFIG_COMMANDS
6172 on `(hostname || uname -n) 2>/dev/null | sed 1q`
6177 case $ac_config_files in *"
6178 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
6181 case $ac_config_headers in *"
6182 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
6186 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6187 # Files that config.status was made for.
6188 config_files="$ac_config_files"
6189 config_headers="$ac_config_headers"
6193 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6195 \`$as_me' instantiates files and other configuration actions
6196 from templates according to the current configuration. Unless the files
6197 and actions are specified as TAGs, all are instantiated by default.
6199 Usage: $0 [OPTION]... [TAG]...
6201 -h, --help print this help, then exit
6202 -V, --version print version number and configuration settings, then exit
6203 --config print configuration, then exit
6204 -q, --quiet, --silent
6205 do not print progress messages
6206 -d, --debug don't remove temporary files
6207 --recheck update $as_me by reconfiguring in the same conditions
6208 --file=FILE[:TEMPLATE]
6209 instantiate the configuration file FILE
6210 --header=FILE[:TEMPLATE]
6211 instantiate the configuration header FILE
6213 Configuration files:
6216 Configuration headers:
6219 Report bugs to the package provider."
6222 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6223 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
6226 configured by $0, generated by GNU Autoconf 2.69,
6227 with options \\"\$ac_cs_config\\"
6229 Copyright (C) 2012 Free Software Foundation, Inc.
6230 This config.status script is free software; the Free Software Foundation
6231 gives unlimited permission to copy, distribute and modify it."
6235 test -n "\$AWK" || AWK=awk
6238 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6239 # The default lists apply if the user does not specify any file.
6245 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
6246 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
6250 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
6262 # Handling of the options.
6263 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
6265 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
6266 $as_echo "$ac_cs_version"; exit ;;
6267 --config |
--confi |
--conf |
--con |
--co |
--c )
6268 $as_echo "$ac_cs_config"; exit ;;
6269 --debug |
--debu |
--deb |
--de |
--d |
-d )
6271 --file |
--fil |
--fi |
--f )
6274 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6275 '') as_fn_error $?
"missing file argument" ;;
6277 as_fn_append CONFIG_FILES
" '$ac_optarg'"
6278 ac_need_defaults
=false
;;
6279 --header |
--heade |
--head |
--hea )
6282 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6284 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
6285 ac_need_defaults
=false
;;
6287 # Conflict between --help and --header
6288 as_fn_error $?
"ambiguous option: \`$1'
6289 Try \`$0 --help' for more information.";;
6290 --help |
--hel |
-h )
6291 $as_echo "$ac_cs_usage"; exit ;;
6292 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
6293 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
6297 -*) as_fn_error $?
"unrecognized option: \`$1'
6298 Try \`$0 --help' for more information." ;;
6300 *) as_fn_append ac_config_targets
" $1"
6301 ac_need_defaults
=false
;;
6307 ac_configure_extra_args
=
6309 if $ac_cs_silent; then
6311 ac_configure_extra_args
="$ac_configure_extra_args --silent"
6315 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6316 if \$ac_cs_recheck; then
6317 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6319 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6320 CONFIG_SHELL='$SHELL'
6326 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6330 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6331 ## Running $as_me. ##
6337 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6340 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6342 # Handling of arguments.
6343 for ac_config_target
in $ac_config_targets
6345 case $ac_config_target in
6346 "src/include/pcp/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/include/pcp/config.h" ;;
6347 "src/include/pcp/configsz.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/include/pcp/configsz.h" ;;
6348 "src/include/pcp/platform_defs.h") CONFIG_FILES
="$CONFIG_FILES src/include/pcp/platform_defs.h" ;;
6349 "src/include/pcp/platformsz.h") CONFIG_FILES
="$CONFIG_FILES src/include/pcp/platformsz.h" ;;
6351 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
6356 # If the user did not use the arguments to specify the items to instantiate,
6357 # then the envvar interface is used. Set only those that are not.
6358 # We use the long form for the default assignment because of an extremely
6359 # bizarre bug on SunOS 4.1.3.
6360 if $ac_need_defaults; then
6361 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
6362 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
6365 # Have a temporary directory for convenience. Make it in the build tree
6366 # simply because there is no reason against having it here, and in addition,
6367 # creating and moving files from /tmp can sometimes cause problems.
6368 # Hook for its removal unless debugging.
6369 # Note that there is a small window in which the directory will not be cleaned:
6370 # after its creation but before its name has been assigned to `$tmp'.
6374 trap 'exit_status=$?
6376 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
6378 trap 'as_fn_exit 1' 1 2 13 15
6380 # Create a (secure) tmp directory for tmp files.
6383 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6387 tmp
=.
/conf$$
-$RANDOM
6388 (umask 077 && mkdir
"$tmp")
6389 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
6392 # Set up the scripts for CONFIG_FILES section.
6393 # No need to generate them if there are no CONFIG_FILES.
6394 # This happens for instance with `./config.status config.h'.
6395 if test -n "$CONFIG_FILES"; then
6398 ac_cr
=`echo X | tr X '\015'`
6399 # On cygwin, bash can eat \r inside `` if the user requested igncr.
6400 # But we know of no other shell where ac_cr would be empty at this
6401 # point, so we can use a bashism as a fallback.
6402 if test "x$ac_cr" = x
; then
6403 eval ac_cr
=\$
\'\\r
\'
6405 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6406 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6412 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
6417 echo "cat >conf$$subs.awk <<_ACEOF" &&
6418 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6421 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
6422 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
6424 for ac_last_try in false false false false false :; do
6425 . ./conf$$subs.sh ||
6426 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
6428 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
6429 if test $ac_delim_n = $ac_delim_num; then
6431 elif $ac_last_try; then
6432 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
6434 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
6439 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6440 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
6444 s/^/S["/; s
/!.
*/"]=/
6454 s/\(.\{148\}\)..*/\1/
6456 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
6461 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
6468 s/\(.\{148\}\)..*/\1/
6470 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
6474 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
6479 ' <conf$$subs.awk | sed '
6484 ' >>$CONFIG_STATUS || ac_write_fail=1
6485 rm -f conf$$subs.awk
6486 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6488 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
6489 for (key in S) S_is_set[key] = 1
6495 nfields = split(line, field, "@
")
6497 len = length(field[1])
6498 for (i = 2; i < nfields; i++) {
6500 keylen = length(key)
6501 if (S_is_set[key]) {
6503 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6504 len += length(value) + length(field[++i])
6515 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6516 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6517 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
6520 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
6521 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
6524 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
6525 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
6526 # trailing colons and then remove the whole line if VPATH becomes empty
6527 # (actually we leave an empty line to preserve line numbers).
6528 if test "x
$srcdir" = x.; then
6529 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
6547 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6548 fi # test -n "$CONFIG_FILES"
6550 # Set up the scripts for CONFIG_HEADERS section.
6551 # No need to generate them if there are no CONFIG_HEADERS.
6552 # This happens for instance with `./config.status Makefile'.
6553 if test -n "$CONFIG_HEADERS"; then
6554 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
6558 # Transform confdefs.h into an awk script `defines.awk', embedded as
6559 # here-document in config.status, that substitutes the proper values into
6560 # config.h.in to produce config.h.
6562 # Create a delimiter string that does not exist in confdefs.h, to ease
6563 # handling of long lines.
6565 for ac_last_try in false false :; do
6566 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
6567 if test -z "$ac_tt"; then
6569 elif $ac_last_try; then
6570 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
6572 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
6576 # For the awk script, D is an array of macro values keyed by name,
6577 # likewise P contains macro parameters if any. Preserve backslash
6578 # newline sequences.
6580 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6582 s/.\{148\}/&'"$ac_delim"'/g
6585 s/^[ ]*#[ ]*define[ ][ ]*/ /
6592 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
6594 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
6598 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
6599 D["\
1"]=" \
3\\\\\\n
"\\/p
6601 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
6606 s/.\{148\}/&'"$ac_delim"'/g
6611 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
6614 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
6616 ' <confdefs.h | sed '
6617 s/'"$ac_delim"'/"\\\
6618 "/g' >>$CONFIG_STATUS || ac_write_fail=1
6620 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6621 for (key in D) D_is_set[key] = 1
6624 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6626 split(line, arg, " ")
6627 if (arg[1] == "#") {
6631 defundef
= substr
(arg
[1], 2)
6634 split(mac1
, mac2
, "(") #)
6636 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
6637 if (D_is_set
[macro
]) {
6638 # Preserve the white space surrounding the "#".
6639 print prefix
"define", macro P
[macro
] D
[macro
]
6642 # Replace #undef with comments. This is necessary, for example,
6643 # in the case of _POSIX_SOURCE, which is predefined and required
6644 # on some systems where configure will not decide to define it.
6645 if (defundef
== "undef") {
6646 print
"/*", prefix defundef
, macro
, "*/"
6654 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6655 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
6656 fi # test -n "$CONFIG_HEADERS"
6659 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS "
6664 :[FHLC
]) ac_mode
=$ac_tag; continue;;
6666 case $ac_mode$ac_tag in
6668 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
6669 :[FH
]-) ac_tag
=-:-;;
6670 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
6687 -) ac_f
="$ac_tmp/stdin";;
6688 *) # Look for the file first in the build tree, then in the source tree
6689 # (if the path is not absolute). The absolute path cannot be DOS-style,
6690 # because $ac_f cannot contain `:'.
6694 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
6696 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6698 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6699 as_fn_append ac_file_inputs
" '$ac_f'"
6702 # Let's still pretend it is `configure' which instantiates (i.e., don't
6703 # use $as_me), people would be surprised to read:
6704 # /* config.h. Generated by config.status. */
6705 configure_input
='Generated from '`
6706 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6708 if test x
"$ac_file" != x-
; then
6709 configure_input
="$ac_file. $configure_input"
6710 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6711 $as_echo "$as_me: creating $ac_file" >&6;}
6713 # Neutralize special characters interpreted by sed in replacement strings.
6714 case $configure_input in #(
6715 *\
&* |
*\|
* |
*\\* )
6716 ac_sed_conf_input
=`$as_echo "$configure_input" |
6717 sed 's/[\\\\&|]/\\\\&/g'`;; #(
6718 *) ac_sed_conf_input
=$configure_input;;
6722 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
6723 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
6728 ac_dir
=`$as_dirname -- "$ac_file" ||
6729 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6730 X"$ac_file" : 'X\(//\)[^/]' \| \
6731 X"$ac_file" : 'X\(//\)$' \| \
6732 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6733 $as_echo X"$ac_file" |
6734 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6751 as_dir
="$ac_dir"; as_fn_mkdir_p
6755 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
6757 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6758 # A ".." for each directory in $ac_dir_suffix.
6759 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6760 case $ac_top_builddir_sub in
6761 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
6762 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
6765 ac_abs_top_builddir
=$ac_pwd
6766 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
6767 # for backward compatibility:
6768 ac_top_builddir
=$ac_top_build_prefix
6771 .
) # We are building in place.
6773 ac_top_srcdir
=$ac_top_builddir_sub
6774 ac_abs_top_srcdir
=$ac_pwd ;;
6775 [\\/]* | ?
:[\\/]* ) # Absolute name.
6776 ac_srcdir
=$srcdir$ac_dir_suffix;
6777 ac_top_srcdir
=$srcdir
6778 ac_abs_top_srcdir
=$srcdir ;;
6780 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
6781 ac_top_srcdir
=$ac_top_build_prefix$srcdir
6782 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
6784 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
6795 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6796 # If the template does not know about datarootdir, expand it.
6797 # FIXME: This hack should be removed a few years after 2.60.
6798 ac_datarootdir_hack
=; ac_datarootdir_seen
=
6809 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6810 *datarootdir
*) ac_datarootdir_seen
=yes;;
6811 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
6812 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6813 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6815 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6816 ac_datarootdir_hack='
6817 s&@datadir@&$datadir&g
6818 s&@docdir@&$docdir&g
6819 s&@infodir@&$infodir&g
6820 s&@localedir@&$localedir&g
6821 s&@mandir@&$mandir&g
6822 s&\\\${datarootdir}&$datarootdir&g' ;;
6826 # Neutralize VPATH when `$srcdir' = `.'.
6827 # Shell code in configure.ac might set extrasub.
6828 # FIXME: do we really want to maintain this feature?
6829 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6830 ac_sed_extra="$ac_vpsub
6833 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6835 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
6836 s|@configure_input@|
$ac_sed_conf_input|
;t t
6837 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
6838 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
6839 s
&@srcdir@
&$ac_srcdir&;t t
6840 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
6841 s
&@top_srcdir@
&$ac_top_srcdir&;t t
6842 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
6843 s
&@builddir@
&$ac_builddir&;t t
6844 s
&@abs_builddir@
&$ac_abs_builddir&;t t
6845 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
6846 $ac_datarootdir_hack
6848 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
6849 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
6851 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6852 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
6853 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
6854 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
6855 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
6856 which seems to be undefined. Please make sure it is defined" >&5
6857 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
6858 which seems to be undefined. Please make sure it is defined" >&2;}
6860 rm -f "$ac_tmp/stdin"
6862 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
6863 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
6865 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6871 if test x"$ac_file" != x-; then
6873 $as_echo "/* $configure_input */" \
6874 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
6875 } >"$ac_tmp/config.h" \
6876 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6877 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
6878 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
6879 $as_echo "$as_me: $ac_file is unchanged" >&6;}
6882 mv "$ac_tmp/config.h" "$ac_file" \
6883 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6886 $as_echo "/* $configure_input */" \
6887 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
6888 || as_fn_error $? "could not create -" "$LINENO" 5
6900 ac_clean_files=$ac_clean_files_save
6902 test $ac_write_fail = 0 ||
6903 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
6906 # configure is writing to config.log, and then calls config.status.
6907 # config.status does its own redirection, appending to config.log.
6908 # Unfortunately, on DOS this fails, as config.log is still kept open
6909 # by configure, so config.status won't be able to
write to it
; its
6910 # output is simply discarded. So we exec the FD to /dev/null,
6911 # effectively closing config.log, so it can be properly (re)opened and
6912 # appended to by config.status. When coming back to configure, we
6913 # need to make the FD available again.
6914 if test "$no_create" != yes; then
6916 ac_config_status_args
=
6917 test "$silent" = yes &&
6918 ac_config_status_args
="$ac_config_status_args --quiet"
6920 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
6922 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6923 # would make configure fail if this is the last instruction.
6924 $ac_cs_success || as_fn_exit
1
6926 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
6927 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6928 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
6934 # Extract the first word of "$ac_prog", so it can be a program name with args.
6935 set dummy
$ac_prog; ac_word
=$2
6936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6937 $as_echo_n "checking for $ac_word... " >&6; }
6938 if ${ac_cv_prog_GIT+:} false
; then :
6939 $as_echo_n "(cached) " >&6
6941 if test -n "$GIT"; then
6942 ac_cv_prog_GIT
="$GIT" # Let the user override the test.
6944 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6948 test -z "$as_dir" && as_dir
=.
6949 for ac_exec_ext
in '' $ac_executable_extensions; do
6950 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6951 ac_cv_prog_GIT
="$ac_prog"
6952 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6962 if test -n "$GIT"; then
6963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5
6964 $as_echo "$GIT" >&6; }
6966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6967 $as_echo "no" >&6; }
6971 test -n "$GIT" && break
6976 for ac_prog
in python
6978 # Extract the first word of "$ac_prog", so it can be a program name with args.
6979 set dummy
$ac_prog; ac_word
=$2
6980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6981 $as_echo_n "checking for $ac_word... " >&6; }
6982 if ${ac_cv_prog_PYTHON+:} false
; then :
6983 $as_echo_n "(cached) " >&6
6985 if test -n "$PYTHON"; then
6986 ac_cv_prog_PYTHON
="$PYTHON" # Let the user override the test.
6988 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6992 test -z "$as_dir" && as_dir
=.
6993 for ac_exec_ext
in '' $ac_executable_extensions; do
6994 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6995 ac_cv_prog_PYTHON
="$ac_prog"
6996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7005 PYTHON
=$ac_cv_prog_PYTHON
7006 if test -n "$PYTHON"; then
7007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
7008 $as_echo "$PYTHON" >&6; }
7010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7011 $as_echo "no" >&6; }
7015 test -n "$PYTHON" && break
7017 test -n "$PYTHON" || PYTHON
="python2.7"
7021 for ac_prog
in python3
7023 # Extract the first word of "$ac_prog", so it can be a program name with args.
7024 set dummy
$ac_prog; ac_word
=$2
7025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7026 $as_echo_n "checking for $ac_word... " >&6; }
7027 if ${ac_cv_prog_PYTHON3+:} false
; then :
7028 $as_echo_n "(cached) " >&6
7030 if test -n "$PYTHON3"; then
7031 ac_cv_prog_PYTHON3
="$PYTHON3" # Let the user override the test.
7033 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7037 test -z "$as_dir" && as_dir
=.
7038 for ac_exec_ext
in '' $ac_executable_extensions; do
7039 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7040 ac_cv_prog_PYTHON3
="$ac_prog"
7041 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7050 PYTHON3
=$ac_cv_prog_PYTHON3
7051 if test -n "$PYTHON3"; then
7052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON3" >&5
7053 $as_echo "$PYTHON3" >&6; }
7055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7056 $as_echo "no" >&6; }
7060 test -n "$PYTHON3" && break
7062 test -n "$PYTHON3" || PYTHON3
="python3.4"
7066 enable_python2
=false
7067 if test "x$do_python" != "xno"; then :
7070 if test -z "$PYTHON"
7072 enable_python2
=false
7074 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python version" >&5
7075 $as_echo_n "checking Python version... " >&6; }
7076 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 }'`
7077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PY_MAJOR.$PY_MINOR.$PY_POINT" >&5
7078 $as_echo "$PY_MAJOR.$PY_MINOR.$PY_POINT" >&6; }
7079 if test "$PY_MAJOR" -lt 2; then
7080 echo WARNING
: Python version
2.6 or later does not seem to be installed.
7081 echo Cannot proceed with the Python
$PY_MAJOR installation found.
7082 enable_python2
=false
7084 if test "$PY_MAJOR" -eq 2 -a "$PY_MINOR" -lt 6 ; then
7085 echo WARNING
: Python version
2.
$PY_MINOR is too old.
7086 echo Python version
2.6 or later is required
for Python builds.
7087 enable_python2
=false
7089 for ac_header
in python
${PY_MAJOR}.
${PY_MINOR}/Python.h
7091 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7092 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7093 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
7094 cat >>confdefs.h
<<_ACEOF
7095 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7100 echo WARNING
: Python version
$PY_MAJOR.
$PY_MINOR header
file missing.
7101 echo Cannot proceed with the Python
$PY_MAJOR installation found.
7102 enable_python2
=false
7110 if test "$do_python" != "check" -a "$enable_python2" != "true"
7112 as_fn_error $?
"cannot enable Python - no supported version found" "$LINENO" 5
7118 enable_python3
=false
7119 if test "x$do_python3" != "xno"; then :
7122 if test -z "$PYTHON3"
7124 enable_python3
=false
7126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python3 version" >&5
7127 $as_echo_n "checking Python3 version... " >&6; }
7128 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 }'`
7129 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PY_MAJOR.$PY_MINOR.$PY_POINT" >&5
7130 $as_echo "$PY_MAJOR.$PY_MINOR.$PY_POINT" >&6; }
7131 if test "$PY_MAJOR" -lt 3; then
7132 echo WARNING
: Python version
3.3 or later does not seem to be installed.
7133 echo Cannot proceed with the Python
$PY_MAJOR installation found.
7134 enable_python3
=false
7136 if test "$PY_MAJOR" -eq 3 -a "$PY_MINOR" -lt 3 ; then
7137 echo WARNING
: Python version
3.
$PY_MINOR is too old.
7138 echo Python version
3.3 or later is required
for Python builds.
7139 enable_python3
=false
7141 for ac_header
in python
${PY_MAJOR}.
${PY_MINOR}m
/Python.h
7143 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7144 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7145 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
7146 cat >>confdefs.h
<<_ACEOF
7147 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7152 echo WARNING
: Python version
$PY_MAJOR.
$PY_MINOR header
file missing.
7153 echo Cannot proceed with the Python
$PY_MAJOR installation found.
7154 enable_python3
=false
7162 if test "$do_python3" != "check" -a "$enable_python3" != "true"
7164 as_fn_error $?
"cannot enable Python3 - no supported version found" "$LINENO" 5
7170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for any python version" >&5
7171 $as_echo_n "checking for any python version... " >&6; }
7172 if test "$cross_compiling" = "yes"; then
7174 echo "cross-compile -> \"$ans\"" >&5
7175 elif test "$enable_python2" = "true" -o "$enable_python3" = "true"
7182 if $have_python; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7183 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7184 $as_echo "no" >&6; }; fi
7186 if test "$enable_python3" = "true"
7188 pcp_python_prog
=$PYTHON3
7189 elif test "$enable_python2" = "true"
7191 pcp_python_prog
=$PYTHON
7198 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python module jsonpointer" >&5
7199 $as_echo_n "checking for Python module jsonpointer... " >&6; }
7204 txt
="import jsonpointer"
7206 $pcp_python_prog -c 'import sys;
7207 '"$txt" >>config.log
2>&1
7210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7211 $as_echo "yes" >&6; }
7212 eval have_python_jsonpointer
=true
7214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7215 $as_echo "no" >&6; }
7216 eval have_python_jsonpointer
=false
7220 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python module six" >&5
7221 $as_echo_n "checking for Python module six... " >&6; }
7228 $pcp_python_prog -c 'import sys;
7229 '"$txt" >>config.log
2>&1
7232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7233 $as_echo "yes" >&6; }
7234 eval have_python_six
=true
7236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7237 $as_echo "no" >&6; }
7238 eval have_python_six
=false
7243 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the json PMDA should be included" >&5
7244 $as_echo_n "checking if the json PMDA should be included... " >&6; }
7246 if test "x$do_pmdajson" = "xyes"; then :
7249 if test "x$do_pmdajson" = "xcheck"; then :
7251 $have_python_jsonpointer && $have_python_six && pmda_json
=true
7254 PMDA_JSON
=$pmda_json
7256 if $pmda_json; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7257 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7258 $as_echo "no" >&6; }; fi
7262 # Extract the first word of "$ac_prog", so it can be a program name with args.
7263 set dummy
$ac_prog; ac_word
=$2
7264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7265 $as_echo_n "checking for $ac_word... " >&6; }
7266 if ${ac_cv_prog_PERL+:} false
; then :
7267 $as_echo_n "(cached) " >&6
7269 if test -n "$PERL"; then
7270 ac_cv_prog_PERL
="$PERL" # Let the user override the test.
7272 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7276 test -z "$as_dir" && as_dir
=.
7277 for ac_exec_ext
in '' $ac_executable_extensions; do
7278 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7279 ac_cv_prog_PERL
="$ac_prog"
7280 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7289 PERL
=$ac_cv_prog_PERL
7290 if test -n "$PERL"; then
7291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
7292 $as_echo "$PERL" >&6; }
7294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7295 $as_echo "no" >&6; }
7299 test -n "$PERL" && break
7304 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for any perl version" >&5
7305 $as_echo_n "checking for any perl version... " >&6; }
7306 if test "$cross_compiling" = "yes"; then
7308 echo "cross-compile -> \"$ans\"" >&5
7309 elif test -n "$PERL"
7319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pcp_perl_prog" >&5
7320 $as_echo "$pcp_perl_prog" >&6; }
7322 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the SNMP PMDA should be included" >&5
7323 $as_echo_n "checking if the SNMP PMDA should be included... " >&6; }
7325 if test "x$do_pmdasnmp" = "xyes"; then :
7328 if test "x$do_pmdasnmp" = "xcheck"; then :
7330 if test "$have_perl" = true
7332 if $pcp_perl_prog -e "use Net::SNMP" >/dev
/null
2>&1
7339 PMDA_SNMP
=$pmda_snmp
7341 if $pmda_snmp; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7342 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7343 $as_echo "no" >&6; }; fi
7345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the mysql PMDA should be included" >&5
7346 $as_echo_n "checking if the mysql PMDA should be included... " >&6; }
7348 if test "$have_perl" = true
7350 if $pcp_perl_prog -e "use DBI" >/dev
/null
2>&1
7352 if $pcp_perl_prog -e "use DBD::mysql" >/dev
/null
2>&1
7358 PMDA_MYSQL
=$pmda_mysql
7360 if $pmda_mysql; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7361 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7362 $as_echo "no" >&6; }; fi
7364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the postgresql PMDA should be included" >&5
7365 $as_echo_n "checking if the postgresql PMDA should be included... " >&6; }
7366 pmda_postgresql
=false
7367 if test "$have_perl" = true
7369 if $pcp_perl_prog -e "use DBI" >/dev
/null
2>&1
7371 if $pcp_perl_prog -e "use DBD::Pg" >/dev
/null
2>&1
7373 pmda_postgresql
=true
7377 PMDA_POSTGRESQL
=$pmda_postgresql
7379 if $pmda_postgresql; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7380 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7381 $as_echo "no" >&6; }; fi
7383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the oracle PMDA should be included" >&5
7384 $as_echo_n "checking if the oracle PMDA should be included... " >&6; }
7386 if test "$have_perl" = true
7388 if $pcp_perl_prog -e "use DBI" >/dev
/null
2>&1
7393 PMDA_ORACLE
=$pmda_oracle
7395 if $pmda_oracle; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7396 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7397 $as_echo "no" >&6; }; fi
7399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the elasticsearch PMDA should be included" >&5
7400 $as_echo_n "checking if the elasticsearch PMDA should be included... " >&6; }
7401 pmda_elasticsearch
=false
7402 if test "$have_perl" = true
7404 if $pcp_perl_prog -e "use LWP::UserAgent" >/dev
/null
2>&1
7406 pmda_elasticsearch
=true
7409 PMDA_ELASTICSEARCH
=$pmda_elasticsearch
7411 if $pmda_elasticsearch; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7412 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7413 $as_echo "no" >&6; }; fi
7415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the nginx PMDA should be included" >&5
7416 $as_echo_n "checking if the nginx PMDA should be included... " >&6; }
7418 if test "$have_perl" = true
7420 if $pcp_perl_prog -e "use LWP::UserAgent" >/dev
/null
2>&1
7425 PMDA_NGINX
=$pmda_nginx
7427 if $pmda_nginx; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7428 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7429 $as_echo "no" >&6; }; fi
7431 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the activemq PMDA should be included" >&5
7432 $as_echo_n "checking if the activemq PMDA should be included... " >&6; }
7434 if test "$have_perl" = true
7436 if $pcp_perl_prog -e "use LWP::UserAgent" >/dev
/null
2>&1
7441 PMDA_ACTIVEMQ
=$pmda_activemq
7443 if $pmda_activemq; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7444 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7445 $as_echo "no" >&6; }; fi
7450 if test "x$do_qt" != "xno"; then :
7456 for ac_prog
in qmake-qt4 qmake
7458 # Extract the first word of "$ac_prog", so it can be a program name with args.
7459 set dummy
$ac_prog; ac_word
=$2
7460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7461 $as_echo_n "checking for $ac_word... " >&6; }
7462 if ${ac_cv_path_QMAKE+:} false
; then :
7463 $as_echo_n "(cached) " >&6
7467 ac_cv_path_QMAKE
="$QMAKE" # Let the user override the test with a path.
7470 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7471 as_dummy
="$QTDIR/bin:/usr/bin:/usr/lib64/qt4/bin:/usr/lib/qt4/bin:/usr/local/bin"
7472 for as_dir
in $as_dummy
7475 test -z "$as_dir" && as_dir
=.
7476 for ac_exec_ext
in '' $ac_executable_extensions; do
7477 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7478 ac_cv_path_QMAKE
="$as_dir/$ac_word$ac_exec_ext"
7479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7489 QMAKE
=$ac_cv_path_QMAKE
7490 if test -n "$QMAKE"; then
7491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
7492 $as_echo "$QMAKE" >&6; }
7494 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7495 $as_echo "no" >&6; }
7499 test -n "$QMAKE" && break
7502 test "x$cc_is_gcc" = xyes
-a $target_os = solaris
&& QMAKE
="$QMAKE -spec solaris-g++"
7509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Qt version" >&5
7510 $as_echo_n "checking Qt version... " >&6; }
7511 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 }'`
7512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_MAJOR.$QT_MINOR.$QT_POINT" >&5
7513 $as_echo "$QT_MAJOR.$QT_MINOR.$QT_POINT" >&6; }
7514 if test "$QT_MAJOR" -lt 4; then
7515 echo WARNING
: Qt version
4.4 or later does not seem to be installed.
7516 echo Cannot proceed with the Qt
$QT_MAJOR installation found.
7519 if test "$QT_MAJOR" -eq 4 -a "$QT_MINOR" -lt 4 ; then
7520 echo WARNING
: Qt version
4.
$QT_MINOR is too old.
7521 echo Qt version
4.4 or later is required
for Qt builds.
7526 if test "$do_qt" != "check" -a "$enable_qt" != "true"
7528 as_fn_error $?
"cannot enable Qt - no supported Qt installation found" "$LINENO" 5
7529 elif test "$enable_qt" = "true" -a "x$cxx" = "x"
7532 test "$do_qt" != "check" && \
7533 as_fn_error $?
"C++ compiler unavailable, cannot build Qt components" "$LINENO" 5
7534 elif test "$do_qt" = "debug"
7547 # Extract the first word of "gmake", so it can be a program name with args.
7548 set dummy gmake
; ac_word
=$2
7549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7550 $as_echo_n "checking for $ac_word... " >&6; }
7551 if ${ac_cv_path_MAKE+:} false
; then :
7552 $as_echo_n "(cached) " >&6
7556 ac_cv_path_MAKE
="$MAKE" # Let the user override the test with a path.
7559 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7563 test -z "$as_dir" && as_dir
=.
7564 for ac_exec_ext
in '' $ac_executable_extensions; do
7565 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7566 ac_cv_path_MAKE
="$as_dir/$ac_word$ac_exec_ext"
7567 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7577 MAKE
=$ac_cv_path_MAKE
7578 if test -n "$MAKE"; then
7579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
7580 $as_echo "$MAKE" >&6; }
7582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7583 $as_echo "no" >&6; }
7589 # look elsewhere ...
7590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make elsewhere" >&5
7591 $as_echo_n "checking for GNU make elsewhere... " >&6; }
7592 for f
in /usr
/local
/bin
/gmake
/usr
/freeware
/bin
/gmake
/usr
/local
/bin
/make /opt
/sfw
/bin
/gmake nowhere
7600 if test $f = nowhere
7602 # Check if /usr/bin/make is any good
7603 mver
=`/usr/bin/make --version 2>/dev/null | sed -n -e1p | cut -c1-8`
7604 if test "$mver" != "GNU Make"
7607 echo "FATAL ERROR: could not find GNU make anywhere"
7608 echo "You need to set \$MAKE as the full path to GNU make "
7609 echo "in the environment."
7610 rm -rf conftest conftest.
*
7616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
7617 $as_echo "$MAKE" >&6; }
7623 if test -z "$CPP"; then
7625 ac_cpp
='$CPP $CPPFLAGS'
7626 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7627 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7628 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7630 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7631 # On Suns, sometimes $CPP names a directory.
7632 if test -n "$CPP" && test -d "$CPP"; then
7635 if test -z "$CPP"; then
7636 if ${ac_cv_prog_CPP+:} false
; then :
7637 $as_echo_n "(cached) " >&6
7639 # Double quotes because CPP needs to be expanded
7640 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7643 for ac_c_preproc_warn_flag
in '' yes
7645 # Use a header file that comes with gcc, so configuring glibc
7646 # with a fresh cross-compiler works.
7647 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7648 # <limits.h> exists even on freestanding compilers.
7649 # On the NeXT, cc -E runs the code through the compiler's parser,
7650 # not just through cpp. "Syntax error" is here to catch this case.
7651 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7652 /* end confdefs.h. */
7654 # include <limits.h>
7656 # include <assert.h>
7660 if ac_fn_c_try_cpp
"$LINENO"; then :
7663 # Broken: fails on valid input.
7666 rm -f conftest.err conftest.i conftest.
$ac_ext
7668 # OK, works on sane cases. Now check whether nonexistent headers
7669 # can be detected and how.
7670 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7671 /* end confdefs.h. */
7672 #include <ac_nonexistent.h>
7674 if ac_fn_c_try_cpp
"$LINENO"; then :
7675 # Broken: success on invalid input.
7678 # Passes both tests.
7682 rm -f conftest.err conftest.i conftest.
$ac_ext
7685 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7686 rm -f conftest.i conftest.err conftest.
$ac_ext
7687 if $ac_preproc_ok; then :
7699 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7700 $as_echo "$CPP" >&6; }
7702 for ac_c_preproc_warn_flag
in '' yes
7704 # Use a header file that comes with gcc, so configuring glibc
7705 # with a fresh cross-compiler works.
7706 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7707 # <limits.h> exists even on freestanding compilers.
7708 # On the NeXT, cc -E runs the code through the compiler's parser,
7709 # not just through cpp. "Syntax error" is here to catch this case.
7710 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7711 /* end confdefs.h. */
7713 # include <limits.h>
7715 # include <assert.h>
7719 if ac_fn_c_try_cpp
"$LINENO"; then :
7722 # Broken: fails on valid input.
7725 rm -f conftest.err conftest.i conftest.
$ac_ext
7727 # OK, works on sane cases. Now check whether nonexistent headers
7728 # can be detected and how.
7729 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7730 /* end confdefs.h. */
7731 #include <ac_nonexistent.h>
7733 if ac_fn_c_try_cpp
"$LINENO"; then :
7734 # Broken: success on invalid input.
7737 # Passes both tests.
7741 rm -f conftest.err conftest.i conftest.
$ac_ext
7744 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7745 rm -f conftest.i conftest.err conftest.
$ac_ext
7746 if $ac_preproc_ok; then :
7749 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7750 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7751 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
7752 See \`config.log' for more details" "$LINENO" 5; }
7756 ac_cpp
='$CPP $CPPFLAGS'
7757 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7758 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7759 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7765 if test -z "$LD"; then
7766 # Extract the first word of "ld", so it can be a program name with args.
7767 set dummy ld
; ac_word
=$2
7768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7769 $as_echo_n "checking for $ac_word... " >&6; }
7770 if ${ac_cv_path_LD+:} false
; then :
7771 $as_echo_n "(cached) " >&6
7775 ac_cv_path_LD
="$LD" # Let the user override the test with a path.
7778 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7782 test -z "$as_dir" && as_dir
=.
7783 for ac_exec_ext
in '' $ac_executable_extensions; do
7784 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7785 ac_cv_path_LD
="$as_dir/$ac_word$ac_exec_ext"
7786 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7793 test -z "$ac_cv_path_LD" && ac_cv_path_LD
="/usr/bin/ld"
7798 if test -n "$LD"; then
7799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7800 $as_echo "$LD" >&6; }
7802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7803 $as_echo "no" >&6; }
7811 if test -z "$PCP_USER_INSTALL" ; then
7812 pcp_user_install
=root
7814 pcp_user_install
="$PCP_USER_INSTALL"
7817 if test -z "$PCP_GROUP_INSTALL" ; then
7820 darwin|freebsd|netbsd|openbsd
)
7821 pcp_group_install
=wheel
7824 pcp_group_install
=root
7828 pcp_group_install
="$PCP_GROUP_INSTALL"
7832 if test -z "$TAR"; then
7833 for ac_prog
in gtar
tar
7835 # Extract the first word of "$ac_prog", so it can be a program name with args.
7836 set dummy
$ac_prog; ac_word
=$2
7837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7838 $as_echo_n "checking for $ac_word... " >&6; }
7839 if ${ac_cv_path_TAR+:} false
; then :
7840 $as_echo_n "(cached) " >&6
7844 ac_cv_path_TAR
="$TAR" # Let the user override the test with a path.
7847 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7851 test -z "$as_dir" && as_dir
=.
7852 for ac_exec_ext
in '' $ac_executable_extensions; do
7853 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7854 ac_cv_path_TAR
="$as_dir/$ac_word$ac_exec_ext"
7855 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7866 if test -n "$TAR"; then
7867 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
7868 $as_echo "$TAR" >&6; }
7870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7871 $as_echo "no" >&6; }
7875 test -n "$TAR" && break
7877 test -n "$TAR" || TAR
="tar"
7880 if test $target_os = darwin
-a -x /usr
/bin
/gnutar
7887 if test -z "$ZIP"; then
7888 # Extract the first word of "gzip", so it can be a program name with args.
7889 set dummy
gzip; ac_word
=$2
7890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7891 $as_echo_n "checking for $ac_word... " >&6; }
7892 if ${ac_cv_path_ZIP+:} false
; then :
7893 $as_echo_n "(cached) " >&6
7897 ac_cv_path_ZIP
="$ZIP" # Let the user override the test with a path.
7900 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7904 test -z "$as_dir" && as_dir
=.
7905 for ac_exec_ext
in '' $ac_executable_extensions; do
7906 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7907 ac_cv_path_ZIP
="$as_dir/$ac_word$ac_exec_ext"
7908 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7915 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP
="/bin/gzip"
7920 if test -n "$ZIP"; then
7921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
7922 $as_echo "$ZIP" >&6; }
7924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7925 $as_echo "no" >&6; }
7930 test ! -x "$ZIP" && ZIP
=/usr
/local
/bin
/gzip
7931 test ! -x "$ZIP" && ZIP
=/usr
/freeware
/bin
/gzip
7932 test ! -x "$ZIP" && ZIP
=/usr
/bin
/gzip
7934 test -z "$gzip" && gzip=no-gzip
7937 if test -z "$BZIP2"; then
7938 # Extract the first word of "bzip2", so it can be a program name with args.
7939 set dummy
bzip2; ac_word
=$2
7940 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7941 $as_echo_n "checking for $ac_word... " >&6; }
7942 if ${ac_cv_path_BZIP2+:} false
; then :
7943 $as_echo_n "(cached) " >&6
7947 ac_cv_path_BZIP2
="$BZIP2" # Let the user override the test with a path.
7950 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7954 test -z "$as_dir" && as_dir
=.
7955 for ac_exec_ext
in '' $ac_executable_extensions; do
7956 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7957 ac_cv_path_BZIP2
="$as_dir/$ac_word$ac_exec_ext"
7958 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7965 test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2
="/bin/bzip2"
7969 BZIP2
=$ac_cv_path_BZIP2
7970 if test -n "$BZIP2"; then
7971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIP2" >&5
7972 $as_echo "$BZIP2" >&6; }
7974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7975 $as_echo "no" >&6; }
7980 test ! -x "$BZIP2" && BZIP2
=/usr
/bin
/bzip2
7981 test ! -x "$BZIP2" && BZIP2
=/usr
/local
/bin
/bzip2
7982 test ! -x "$BZIP2" && BZIP2
=/usr
/freeware
/bin
/bzip2
7984 test -z "$bzip2" && bzip2=no-bzip2
7987 if test -z "$LZMA"; then
7988 # Extract the first word of "lzma", so it can be a program name with args.
7989 set dummy lzma
; ac_word
=$2
7990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7991 $as_echo_n "checking for $ac_word... " >&6; }
7992 if ${ac_cv_path_LZMA+:} false
; then :
7993 $as_echo_n "(cached) " >&6
7997 ac_cv_path_LZMA
="$LZMA" # Let the user override the test with a path.
8000 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8004 test -z "$as_dir" && as_dir
=.
8005 for ac_exec_ext
in '' $ac_executable_extensions; do
8006 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8007 ac_cv_path_LZMA
="$as_dir/$ac_word$ac_exec_ext"
8008 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8015 test -z "$ac_cv_path_LZMA" && ac_cv_path_LZMA
="/bin/lzma"
8019 LZMA
=$ac_cv_path_LZMA
8020 if test -n "$LZMA"; then
8021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZMA" >&5
8022 $as_echo "$LZMA" >&6; }
8024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8025 $as_echo "no" >&6; }
8030 test ! -x "$LZMA" && LZMA
=/usr
/bin
/lzma
8031 test ! -x "$LZMA" && LZMA
=/usr
/local
/bin
/lzma
8032 test ! -x "$LZMA" && LZMA
=/usr
/freeware
/bin
/lzma
8034 test -z "$lzma" && lzma
=no-lzma
8037 if test -z "$XZ"; then
8038 # Extract the first word of "xz", so it can be a program name with args.
8039 set dummy xz
; ac_word
=$2
8040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8041 $as_echo_n "checking for $ac_word... " >&6; }
8042 if ${ac_cv_path_XZ+:} false
; then :
8043 $as_echo_n "(cached) " >&6
8047 ac_cv_path_XZ
="$XZ" # Let the user override the test with a path.
8050 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8054 test -z "$as_dir" && as_dir
=.
8055 for ac_exec_ext
in '' $ac_executable_extensions; do
8056 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8057 ac_cv_path_XZ
="$as_dir/$ac_word$ac_exec_ext"
8058 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8065 test -z "$ac_cv_path_XZ" && ac_cv_path_XZ
="/bin/xz"
8070 if test -n "$XZ"; then
8071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XZ" >&5
8072 $as_echo "$XZ" >&6; }
8074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8075 $as_echo "no" >&6; }
8080 test ! -x "$XZ" && XZ
=/usr
/bin
/xz
8081 test ! -x "$XZ" && XZ
=/usr
/local
/bin
/xz
8082 test ! -x "$XZ" && XZ
=/usr
/freeware
/bin
/xz
8084 test -z "$xz" && xz
=no-xz
8087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PackageMaker" >&5
8088 $as_echo_n "checking for PackageMaker... " >&6; }
8089 if test -z "$PACKAGE_MAKER"
8091 if test $target_os = darwin
8093 if test -x /Applications
/PackageMaker.app
/Contents
/MacOS
/PackageMaker
8094 then # local XCode extras install
8095 package_maker
=/Applications
/PackageMaker.app
/Contents
/MacOS
/PackageMaker
8096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (local install)" >&5
8097 $as_echo " yes (local install)" >&6; }
8098 elif test -x /Developer
/Applications
/PackageMaker.app
/Contents
/MacOS
/PackageMaker
8100 package_maker
=/Developer
/Applications
/PackageMaker.app
/Contents
/MacOS
/PackageMaker
8101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (darwin 6.x)" >&5
8102 $as_echo " yes (darwin 6.x)" >&6; }
8103 elif test -x /Developer
/Applications
/Utilities
/PackageMaker.app
/Contents
/MacOS
/PackageMaker
8105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (darwin 7.x)" >&5
8106 $as_echo " yes (darwin 7.x)" >&6; }
8107 package_maker
=/Developer
/Applications
/Utilities
/PackageMaker.app
/Contents
/MacOS
/PackageMaker
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
8110 $as_echo " not found!" >&6; }
8111 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PackageMaker not found, mac packages will not be made" >&5
8112 $as_echo "$as_me: WARNING: PackageMaker not found, mac packages will not be made" >&2;}
8115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8116 $as_echo " no" >&6; }
8119 package_maker
="$PACKAGE_MAKER"
8123 if test -z "$HDIUTIL"; then
8124 # Extract the first word of "hdiutil", so it can be a program name with args.
8125 set dummy hdiutil
; ac_word
=$2
8126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8127 $as_echo_n "checking for $ac_word... " >&6; }
8128 if ${ac_cv_path_HDIUTIL+:} false
; then :
8129 $as_echo_n "(cached) " >&6
8133 ac_cv_path_HDIUTIL
="$HDIUTIL" # Let the user override the test with a path.
8136 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8140 test -z "$as_dir" && as_dir
=.
8141 for ac_exec_ext
in '' $ac_executable_extensions; do
8142 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8143 ac_cv_path_HDIUTIL
="$as_dir/$ac_word$ac_exec_ext"
8144 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8154 HDIUTIL
=$ac_cv_path_HDIUTIL
8155 if test -n "$HDIUTIL"; then
8156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HDIUTIL" >&5
8157 $as_echo "$HDIUTIL" >&6; }
8159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8160 $as_echo "no" >&6; }
8168 if test -z "$MKINSTALLP"; then
8169 # Extract the first word of "mkinstallp", so it can be a program name with args.
8170 set dummy mkinstallp
; ac_word
=$2
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8172 $as_echo_n "checking for $ac_word... " >&6; }
8173 if ${ac_cv_path_MKINSTALLP+:} false
; then :
8174 $as_echo_n "(cached) " >&6
8178 ac_cv_path_MKINSTALLP
="$MKINSTALLP" # Let the user override the test with a path.
8181 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8185 test -z "$as_dir" && as_dir
=.
8186 for ac_exec_ext
in '' $ac_executable_extensions; do
8187 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8188 ac_cv_path_MKINSTALLP
="$as_dir/$ac_word$ac_exec_ext"
8189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8199 MKINSTALLP
=$ac_cv_path_MKINSTALLP
8200 if test -n "$MKINSTALLP"; then
8201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKINSTALLP" >&5
8202 $as_echo "$MKINSTALLP" >&6; }
8204 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8205 $as_echo "no" >&6; }
8210 mkinstallp
=$MKINSTALLP
8213 if test -z "$PKGMK"; then
8214 # Extract the first word of "pkgmk", so it can be a program name with args.
8215 set dummy pkgmk
; ac_word
=$2
8216 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8217 $as_echo_n "checking for $ac_word... " >&6; }
8218 if ${ac_cv_path_PKGMK+:} false
; then :
8219 $as_echo_n "(cached) " >&6
8223 ac_cv_path_PKGMK
="$PKGMK" # Let the user override the test with a path.
8226 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8230 test -z "$as_dir" && as_dir
=.
8231 for ac_exec_ext
in '' $ac_executable_extensions; do
8232 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8233 ac_cv_path_PKGMK
="$as_dir/$ac_word$ac_exec_ext"
8234 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8244 PKGMK
=$ac_cv_path_PKGMK
8245 if test -n "$PKGMK"; then
8246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGMK" >&5
8247 $as_echo "$PKGMK" >&6; }
8249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8250 $as_echo "no" >&6; }
8258 if test -z "$DLLTOOL"; then
8259 # Extract the first word of "dlltool", so it can be a program name with args.
8260 set dummy dlltool
; ac_word
=$2
8261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8262 $as_echo_n "checking for $ac_word... " >&6; }
8263 if ${ac_cv_path_DLLTOOL+:} false
; then :
8264 $as_echo_n "(cached) " >&6
8268 ac_cv_path_DLLTOOL
="$DLLTOOL" # Let the user override the test with a path.
8271 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8275 test -z "$as_dir" && as_dir
=.
8276 for ac_exec_ext
in '' $ac_executable_extensions; do
8277 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8278 ac_cv_path_DLLTOOL
="$as_dir/$ac_word$ac_exec_ext"
8279 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8289 DLLTOOL
=$ac_cv_path_DLLTOOL
8290 if test -n "$DLLTOOL"; then
8291 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8292 $as_echo "$DLLTOOL" >&6; }
8294 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8295 $as_echo "no" >&6; }
8303 if test -z "$RPMBUILD"; then
8304 # Extract the first word of "rpmbuild", so it can be a program name with args.
8305 set dummy rpmbuild
; ac_word
=$2
8306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8307 $as_echo_n "checking for $ac_word... " >&6; }
8308 if ${ac_cv_path_RPMBUILD+:} false
; then :
8309 $as_echo_n "(cached) " >&6
8313 ac_cv_path_RPMBUILD
="$RPMBUILD" # Let the user override the test with a path.
8316 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8320 test -z "$as_dir" && as_dir
=.
8321 for ac_exec_ext
in '' $ac_executable_extensions; do
8322 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8323 ac_cv_path_RPMBUILD
="$as_dir/$ac_word$ac_exec_ext"
8324 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8334 RPMBUILD
=$ac_cv_path_RPMBUILD
8335 if test -n "$RPMBUILD"; then
8336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPMBUILD" >&5
8337 $as_echo "$RPMBUILD" >&6; }
8339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8340 $as_echo "no" >&6; }
8345 test $target_distro = slackware
&& RPMBUILD
=''
8349 if test -z "$RPM"; then
8350 # Extract the first word of "rpm", so it can be a program name with args.
8351 set dummy rpm
; ac_word
=$2
8352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8353 $as_echo_n "checking for $ac_word... " >&6; }
8354 if ${ac_cv_path_RPM+:} false
; then :
8355 $as_echo_n "(cached) " >&6
8359 ac_cv_path_RPM
="$RPM" # Let the user override the test with a path.
8362 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8366 test -z "$as_dir" && as_dir
=.
8367 for ac_exec_ext
in '' $ac_executable_extensions; do
8368 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8369 ac_cv_path_RPM
="$as_dir/$ac_word$ac_exec_ext"
8370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8381 if test -n "$RPM"; then
8382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
8383 $as_echo "$RPM" >&6; }
8385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8386 $as_echo "no" >&6; }
8391 test $target_distro = slackware
&& RPM
=''
8395 if test -n "$RPMBUILD" -a -x "$RPMBUILD"
8403 if test -z "$POD2MAN"; then
8404 # Extract the first word of "pod2man", so it can be a program name with args.
8405 set dummy pod2man
; ac_word
=$2
8406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8407 $as_echo_n "checking for $ac_word... " >&6; }
8408 if ${ac_cv_path_POD2MAN+:} false
; then :
8409 $as_echo_n "(cached) " >&6
8413 ac_cv_path_POD2MAN
="$POD2MAN" # Let the user override the test with a path.
8416 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8420 test -z "$as_dir" && as_dir
=.
8421 for ac_exec_ext
in '' $ac_executable_extensions; do
8422 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8423 ac_cv_path_POD2MAN
="$as_dir/$ac_word$ac_exec_ext"
8424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8434 POD2MAN
=$ac_cv_path_POD2MAN
8435 if test -n "$POD2MAN"; then
8436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POD2MAN" >&5
8437 $as_echo "$POD2MAN" >&6; }
8439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8440 $as_echo "no" >&6; }
8448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ExtUtils::MakeMaker is installed" >&5
8449 $as_echo_n "checking if ExtUtils::MakeMaker is installed... " >&6; }
8450 perl
-e "use ExtUtils::MakeMaker" 2>/dev
/null
8453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8454 $as_echo " yes" >&6; }
8456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8457 $as_echo " no" >&6; }
8459 echo "FATAL ERROR: Perl ExtUtils::MakeMaker module missing."
8460 echo "You can either install this from your distribution, or"
8461 echo "download from CPAN (Comprehensive Perl Archive Network)."
8462 rm -rf conftest conftest.
*
8466 # Extract the first word of "true", so it can be a program name with args.
8467 set dummy true
; ac_word
=$2
8468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8469 $as_echo_n "checking for $ac_word... " >&6; }
8470 if ${ac_cv_path_TRUEPROG+:} false
; then :
8471 $as_echo_n "(cached) " >&6
8475 ac_cv_path_TRUEPROG
="$TRUEPROG" # Let the user override the test with a path.
8478 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8482 test -z "$as_dir" && as_dir
=.
8483 for ac_exec_ext
in '' $ac_executable_extensions; do
8484 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8485 ac_cv_path_TRUEPROG
="$as_dir/$ac_word$ac_exec_ext"
8486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8496 TRUEPROG
=$ac_cv_path_TRUEPROG
8497 if test -n "$TRUEPROG"; then
8498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUEPROG" >&5
8499 $as_echo "$TRUEPROG" >&6; }
8501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8502 $as_echo "no" >&6; }
8507 if test -z "$MAKEDEPEND"; then
8508 # Extract the first word of "makedepend", so it can be a program name with args.
8509 set dummy makedepend
; ac_word
=$2
8510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8511 $as_echo_n "checking for $ac_word... " >&6; }
8512 if ${ac_cv_path_MAKEDEPEND+:} false
; then :
8513 $as_echo_n "(cached) " >&6
8517 ac_cv_path_MAKEDEPEND
="$MAKEDEPEND" # Let the user override the test with a path.
8520 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8524 test -z "$as_dir" && as_dir
=.
8525 for ac_exec_ext
in '' $ac_executable_extensions; do
8526 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8527 ac_cv_path_MAKEDEPEND
="$as_dir/$ac_word$ac_exec_ext"
8528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8535 test -z "$ac_cv_path_MAKEDEPEND" && ac_cv_path_MAKEDEPEND
="$TRUEPROG"
8539 MAKEDEPEND
=$ac_cv_path_MAKEDEPEND
8540 if test -n "$MAKEDEPEND"; then
8541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEDEPEND" >&5
8542 $as_echo "$MAKEDEPEND" >&6; }
8544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8545 $as_echo "no" >&6; }
8550 makedepend
=$MAKEDEPEND
8553 if test -z "$MD5SUM"; then
8554 # Extract the first word of "md5sum", so it can be a program name with args.
8555 set dummy
md5sum; ac_word
=$2
8556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8557 $as_echo_n "checking for $ac_word... " >&6; }
8558 if ${ac_cv_path_MD5SUM+:} false
; then :
8559 $as_echo_n "(cached) " >&6
8563 ac_cv_path_MD5SUM
="$MD5SUM" # Let the user override the test with a path.
8566 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8570 test -z "$as_dir" && as_dir
=.
8571 for ac_exec_ext
in '' $ac_executable_extensions; do
8572 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8573 ac_cv_path_MD5SUM
="$as_dir/$ac_word$ac_exec_ext"
8574 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8581 test -z "$ac_cv_path_MD5SUM" && ac_cv_path_MD5SUM
="$TRUEPROG"
8585 MD5SUM
=$ac_cv_path_MD5SUM
8586 if test -n "$MD5SUM"; then
8587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MD5SUM" >&5
8588 $as_echo "$MD5SUM" >&6; }
8590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8591 $as_echo "no" >&6; }
8599 if test -z "$DPKG"; then
8600 # Extract the first word of "dpkg", so it can be a program name with args.
8601 set dummy dpkg
; ac_word
=$2
8602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8603 $as_echo_n "checking for $ac_word... " >&6; }
8604 if ${ac_cv_path_DPKG+:} false
; then :
8605 $as_echo_n "(cached) " >&6
8609 ac_cv_path_DPKG
="$DPKG" # Let the user override the test with a path.
8612 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8616 test -z "$as_dir" && as_dir
=.
8617 for ac_exec_ext
in '' $ac_executable_extensions; do
8618 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8619 ac_cv_path_DPKG
="$as_dir/$ac_word$ac_exec_ext"
8620 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8630 DPKG
=$ac_cv_path_DPKG
8631 if test -n "$DPKG"; then
8632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DPKG" >&5
8633 $as_echo "$DPKG" >&6; }
8635 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8636 $as_echo "no" >&6; }
8644 if test -z "$MAKEPKG"; then
8645 # Extract the first word of "makepkg", so it can be a program name with args.
8646 set dummy makepkg
; ac_word
=$2
8647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8648 $as_echo_n "checking for $ac_word... " >&6; }
8649 if ${ac_cv_path_MAKEPKG+:} false
; then :
8650 $as_echo_n "(cached) " >&6
8654 ac_cv_path_MAKEPKG
="$MAKEPKG" # Let the user override the test with a path.
8657 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8661 test -z "$as_dir" && as_dir
=.
8662 for ac_exec_ext
in '' $ac_executable_extensions; do
8663 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8664 ac_cv_path_MAKEPKG
="$as_dir/$ac_word$ac_exec_ext"
8665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8675 MAKEPKG
=$ac_cv_path_MAKEPKG
8676 if test -n "$MAKEPKG"; then
8677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEPKG" >&5
8678 $as_echo "$MAKEPKG" >&6; }
8680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8681 $as_echo "no" >&6; }
8689 test -z "$PUBLICAN" && # Extract the first word of "publican", so it can be a program name with args.
8690 set dummy publican
; ac_word
=$2
8691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8692 $as_echo_n "checking for $ac_word... " >&6; }
8693 if ${ac_cv_path_PUBLICAN+:} false
; then :
8694 $as_echo_n "(cached) " >&6
8698 ac_cv_path_PUBLICAN
="$PUBLICAN" # Let the user override the test with a path.
8701 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8705 test -z "$as_dir" && as_dir
=.
8706 for ac_exec_ext
in '' $ac_executable_extensions; do
8707 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8708 ac_cv_path_PUBLICAN
="$as_dir/$ac_word$ac_exec_ext"
8709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8719 PUBLICAN
=$ac_cv_path_PUBLICAN
8720 if test -n "$PUBLICAN"; then
8721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PUBLICAN" >&5
8722 $as_echo "$PUBLICAN" >&6; }
8724 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8725 $as_echo "no" >&6; }
8731 test -z "$DBLATEX" && # Extract the first word of "dblatex", so it can be a program name with args.
8732 set dummy dblatex
; ac_word
=$2
8733 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8734 $as_echo_n "checking for $ac_word... " >&6; }
8735 if ${ac_cv_path_DBLATEX+:} false
; then :
8736 $as_echo_n "(cached) " >&6
8740 ac_cv_path_DBLATEX
="$DBLATEX" # Let the user override the test with a path.
8743 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8747 test -z "$as_dir" && as_dir
=.
8748 for ac_exec_ext
in '' $ac_executable_extensions; do
8749 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8750 ac_cv_path_DBLATEX
="$as_dir/$ac_word$ac_exec_ext"
8751 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8761 DBLATEX
=$ac_cv_path_DBLATEX
8762 if test -n "$DBLATEX"; then
8763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBLATEX" >&5
8764 $as_echo "$DBLATEX" >&6; }
8766 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8767 $as_echo "no" >&6; }
8773 test -z "$XMLTO" && # Extract the first word of "xmlto", so it can be a program name with args.
8774 set dummy xmlto
; ac_word
=$2
8775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8776 $as_echo_n "checking for $ac_word... " >&6; }
8777 if ${ac_cv_path_XMLTO+:} false
; then :
8778 $as_echo_n "(cached) " >&6
8782 ac_cv_path_XMLTO
="$XMLTO" # Let the user override the test with a path.
8785 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8789 test -z "$as_dir" && as_dir
=.
8790 for ac_exec_ext
in '' $ac_executable_extensions; do
8791 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8792 ac_cv_path_XMLTO
="$as_dir/$ac_word$ac_exec_ext"
8793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8803 XMLTO
=$ac_cv_path_XMLTO
8804 if test -n "$XMLTO"; then
8805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
8806 $as_echo "$XMLTO" >&6; }
8808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8809 $as_echo "no" >&6; }
8817 if test "$do_books" = "check" -o "$do_books" = "yes"
8819 if test "$BOOK_TOOLCHAIN" != ""
8821 book_toolchain
=$BOOK_TOOLCHAIN
8822 elif test "$DBLATEX" != ""
8824 book_toolchain
=dblatex
8825 elif test "$PUBLICAN" != ""
8827 book_toolchain
=publican
8828 elif test "$XMLTO" != ""
8830 book_toolchain
=xmlto
8831 elif test "$do_books" = "yes"
8833 as_fn_error $?
"cannot enable books build - no toolchain found" "$LINENO" 5
8839 if test "$do_books_brand" != ""
8841 book_brand
=$do_books_brand
8845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8846 $as_echo_n "checking whether ln -s works... " >&6; }
8848 if test "$LN_S" = "ln -s"; then
8849 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8850 $as_echo "yes" >&6; }
8852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8853 $as_echo "no, using $LN_S" >&6; }
8856 if test $target_os = mingw
; then
8862 test -f /proc
/stat || mount
/proc
>/dev
/null
2>&1
8865 if test -n "$PROCPS"
8867 pcp_ps_prog
="$PROCPS"
8873 if test $target_os = mingw
8875 pcp_syslog_prog
=pcp-eventlog
8877 pcp_syslog_prog
=logger
8882 if test $target_os = solaris
8884 test -f /usr
/xpg
4/bin
/grep && grep=/usr
/xpg
4/bin
/grep
8888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc " >&5
8889 $as_echo_n "checking for /proc ... " >&6; }
8890 if test "$cross_compiling" = "yes"; then
8892 echo "cross-compile -> \"$ans\"" >&5
8901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8902 $as_echo "yes" >&6; }
8904 $as_echo "#define HAVE_PROCFS 1" >>confdefs.h
8907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8908 $as_echo "no" >&6; }
8912 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
8913 as_ac_Header
=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
8915 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
8916 if eval \
${$as_ac_Header+:} false
; then :
8917 $as_echo_n "(cached) " >&6
8919 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8920 /* end confdefs.h. */
8921 #include <sys/types.h>
8933 if ac_fn_c_try_compile
"$LINENO"; then :
8934 eval "$as_ac_Header=yes"
8936 eval "$as_ac_Header=no"
8938 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8940 eval ac_res
=\$
$as_ac_Header
8941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8942 $as_echo "$ac_res" >&6; }
8943 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
8944 cat >>confdefs.h
<<_ACEOF
8945 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8948 ac_header_dirent
=$ac_hdr; break
8952 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8953 if test $ac_header_dirent = dirent.h
; then
8954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
8955 $as_echo_n "checking for library containing opendir... " >&6; }
8956 if ${ac_cv_search_opendir+:} false
; then :
8957 $as_echo_n "(cached) " >&6
8959 ac_func_search_save_LIBS
=$LIBS
8960 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8961 /* end confdefs.h. */
8963 /* Override any GCC internal prototype to avoid an error.
8964 Use char because int might match the return type of a GCC
8965 builtin and then its argument prototype would still apply. */
8978 for ac_lib
in '' dir
; do
8979 if test -z "$ac_lib"; then
8980 ac_res
="none required"
8983 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8985 if ac_fn_c_try_link
"$LINENO"; then :
8986 ac_cv_search_opendir
=$ac_res
8988 rm -f core conftest.err conftest.
$ac_objext \
8990 if ${ac_cv_search_opendir+:} false
; then :
8994 if ${ac_cv_search_opendir+:} false
; then :
8997 ac_cv_search_opendir
=no
9000 LIBS
=$ac_func_search_save_LIBS
9002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
9003 $as_echo "$ac_cv_search_opendir" >&6; }
9004 ac_res
=$ac_cv_search_opendir
9005 if test "$ac_res" != no
; then :
9006 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
9012 $as_echo_n "checking for library containing opendir... " >&6; }
9013 if ${ac_cv_search_opendir+:} false
; then :
9014 $as_echo_n "(cached) " >&6
9016 ac_func_search_save_LIBS
=$LIBS
9017 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9018 /* end confdefs.h. */
9020 /* Override any GCC internal prototype to avoid an error.
9021 Use char because int might match the return type of a GCC
9022 builtin and then its argument prototype would still apply. */
9035 for ac_lib
in '' x
; do
9036 if test -z "$ac_lib"; then
9037 ac_res
="none required"
9040 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
9042 if ac_fn_c_try_link
"$LINENO"; then :
9043 ac_cv_search_opendir
=$ac_res
9045 rm -f core conftest.err conftest.
$ac_objext \
9047 if ${ac_cv_search_opendir+:} false
; then :
9051 if ${ac_cv_search_opendir+:} false
; then :
9054 ac_cv_search_opendir
=no
9057 LIBS
=$ac_func_search_save_LIBS
9059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
9060 $as_echo "$ac_cv_search_opendir" >&6; }
9061 ac_res
=$ac_cv_search_opendir
9062 if test "$ac_res" != no
; then :
9063 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9070 $as_echo_n "checking for ANSI C header files... " >&6; }
9071 if ${ac_cv_header_stdc+:} false
; then :
9072 $as_echo_n "(cached) " >&6
9074 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9075 /* end confdefs.h. */
9089 if ac_fn_c_try_compile
"$LINENO"; then :
9090 ac_cv_header_stdc
=yes
9092 ac_cv_header_stdc
=no
9094 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9096 if test $ac_cv_header_stdc = yes; then
9097 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9098 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9099 /* end confdefs.h. */
9103 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9104 $EGREP "memchr" >/dev
/null
2>&1; then :
9107 ac_cv_header_stdc
=no
9113 if test $ac_cv_header_stdc = yes; then
9114 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9115 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9116 /* end confdefs.h. */
9120 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9121 $EGREP "free" >/dev
/null
2>&1; then :
9124 ac_cv_header_stdc
=no
9130 if test $ac_cv_header_stdc = yes; then
9131 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9132 if test "$cross_compiling" = yes; then :
9135 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9136 /* end confdefs.h. */
9139 #if ((' ' & 0x0FF) == 0x020)
9140 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9141 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9143 # define ISLOWER(c) \
9144 (('a' <= (c) && (c) <= 'i') \
9145 || ('j' <= (c) && (c) <= 'r') \
9146 || ('s' <= (c) && (c) <= 'z'))
9147 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9150 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9155 for (i = 0; i < 256; i++)
9156 if (XOR (islower (i), ISLOWER (i))
9157 || toupper (i) != TOUPPER (i))
9162 if ac_fn_c_try_run
"$LINENO"; then :
9165 ac_cv_header_stdc
=no
9167 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9168 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9174 $as_echo "$ac_cv_header_stdc" >&6; }
9175 if test $ac_cv_header_stdc = yes; then
9177 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9181 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
9182 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
9183 if ${ac_cv_header_sys_wait_h+:} false
; then :
9184 $as_echo_n "(cached) " >&6
9186 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9187 /* end confdefs.h. */
9188 #include <sys/types.h>
9189 #include <sys/wait.h>
9191 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
9194 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9202 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9207 if ac_fn_c_try_compile
"$LINENO"; then :
9208 ac_cv_header_sys_wait_h
=yes
9210 ac_cv_header_sys_wait_h
=no
9212 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9214 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
9215 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
9216 if test $ac_cv_header_sys_wait_h = yes; then
9218 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
9222 for ac_header
in fcntl.h limits.h malloc.h
strings.h syslog.h
9224 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9225 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9226 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9227 cat >>confdefs.h
<<_ACEOF
9228 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9235 for ac_header
in stddef.h sched.h dlfcn.h dl.h
9237 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9238 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9239 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9240 cat >>confdefs.h
<<_ACEOF
9241 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9248 for ac_header
in sys
/times.h sys
/resource.h sys
/prctl.h
9250 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9251 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9252 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9253 cat >>confdefs.h
<<_ACEOF
9254 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9261 for ac_header
in sys
/sysinfo.h sys
/systeminfo.h
9263 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9264 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9265 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9266 cat >>confdefs.h
<<_ACEOF
9267 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9274 for ac_header
in endian.h standards.h sys
/byteorder.h
9276 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9277 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9278 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9279 cat >>confdefs.h
<<_ACEOF
9280 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9287 for ac_header
in libgen.h sys
/mman.h sys
/un.h
9289 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9290 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9291 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9292 cat >>confdefs.h
<<_ACEOF
9293 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9300 for ac_header
in values.h stdint.h ieeefp.h math.h
9302 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9303 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9304 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9305 cat >>confdefs.h
<<_ACEOF
9306 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9313 for ac_header
in pwd.h grp.h regex.h sys
/wait.h
9315 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9316 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9317 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9318 cat >>confdefs.h
<<_ACEOF
9319 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9326 for ac_header
in termio.h termios.h sys
/termios.h
9328 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9329 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9330 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9331 cat >>confdefs.h
<<_ACEOF
9332 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9339 for ac_header
in sys
/ioctl.h sys
/select.h sys
/socket.h
9341 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9342 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9343 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9344 cat >>confdefs.h
<<_ACEOF
9345 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9352 for ac_header
in netdb.h
9354 ac_fn_c_check_header_mongrel
"$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default"
9355 if test "x$ac_cv_header_netdb_h" = xyes
; then :
9356 cat >>confdefs.h
<<_ACEOF
9357 #define HAVE_NETDB_H 1
9364 if test $target_os = darwin
-o $target_os = openbsd
9366 for ac_header
in net
/if.h
9368 ac_fn_c_check_header_compile
"$LINENO" "net/if.h" "ac_cv_header_net_if_h" "#include <sys/types.h>
9369 #include <sys/socket.h>
9371 if test "x$ac_cv_header_net_if_h" = xyes
; then :
9372 cat >>confdefs.h
<<_ACEOF
9373 #define HAVE_NET_IF_H 1
9381 for ac_header
in net
/if.h
9383 ac_fn_c_check_header_mongrel
"$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default"
9384 if test "x$ac_cv_header_net_if_h" = xyes
; then :
9385 cat >>confdefs.h
<<_ACEOF
9386 #define HAVE_NET_IF_H 1
9394 for ac_header
in netinet
/in.h netinet
/tcp.h arpa
/inet.h
9396 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9397 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9398 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9399 cat >>confdefs.h
<<_ACEOF
9400 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9407 for ac_header
in windows.h winsock2.h ws2tcpip.h
9409 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9410 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9411 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9412 cat >>confdefs.h
<<_ACEOF
9413 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9420 for ac_header
in execinfo.h bits
/wordsize.h
9422 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9423 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9424 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9425 cat >>confdefs.h
<<_ACEOF
9426 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9433 for ac_header
in iptypes.h
9435 ac_fn_c_check_header_compile
"$LINENO" "iptypes.h" "ac_cv_header_iptypes_h" "#include <windows.h>
9437 if test "x$ac_cv_header_iptypes_h" = xyes
; then :
9438 cat >>confdefs.h
<<_ACEOF
9439 #define HAVE_IPTYPES_H 1
9446 for ac_header
in iphlpapi.h
9448 ac_fn_c_check_header_compile
"$LINENO" "iphlpapi.h" "ac_cv_header_iphlpapi_h" "#include <winsock2.h>
9450 if test "x$ac_cv_header_iphlpapi_h" = xyes
; then :
9451 cat >>confdefs.h
<<_ACEOF
9452 #define HAVE_IPHLPAPI_H 1
9459 for ac_header
in fts.h libzfs.h
9461 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9462 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9463 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9464 cat >>confdefs.h
<<_ACEOF
9465 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9472 for ac_header
in sys
/statvfs.h sys
/statfs.h sys
/mount.h
9474 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9475 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9476 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9477 cat >>confdefs.h
<<_ACEOF
9478 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9486 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/endian.h " >&5
9487 $as_echo_n "checking for sys/endian.h ... " >&6; }
9488 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9489 /* end confdefs.h. */
9491 #include <sys/endian.h>
9502 if ac_fn_c_try_compile
"$LINENO"; then :
9504 $as_echo "#define HAVE_SYS_ENDIAN_H 1" >>confdefs.h
9505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9506 $as_echo "yes" >&6; }
9508 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9509 $as_echo "no" >&6; }
9511 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for machine/endian.h " >&5
9514 $as_echo_n "checking for machine/endian.h ... " >&6; }
9515 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9516 /* end confdefs.h. */
9518 #include <machine/endian.h>
9529 if ac_fn_c_try_compile
"$LINENO"; then :
9531 $as_echo "#define HAVE_MACHINE_ENDIAN_H 1" >>confdefs.h
9532 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9533 $as_echo "yes" >&6; }
9535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9536 $as_echo "no" >&6; }
9538 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/endian.h (IRIX variant) " >&5
9541 $as_echo_n "checking for sys/endian.h (IRIX variant) ... " >&6; }
9542 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9543 /* end confdefs.h. */
9545 #include <standards.h>
9546 #include <sys/endian.h>
9557 if ac_fn_c_try_compile
"$LINENO"; then :
9559 $as_echo "#define HAVE_SYS_ENDIAN_H 1" >>confdefs.h
9560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9561 $as_echo "yes" >&6; }
9563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9564 $as_echo "no" >&6; }
9566 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
9569 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
9570 if ${ac_cv_c_const+:} false
; then :
9571 $as_echo_n "(cached) " >&6
9573 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9574 /* end confdefs.h. */
9581 /* Ultrix mips cc rejects this sort of thing. */
9582 typedef int charset[2];
9583 const charset cs = { 0, 0 };
9584 /* SunOS 4.1.1 cc rejects this. */
9585 char const *const *pcpcc;
9587 /* NEC SVR4.0.2 mips cc rejects this. */
9588 struct point {int x, y;};
9589 static struct point const zero = {0,0};
9590 /* AIX XL C 1.02.0.0 rejects this.
9591 It does not let you subtract one const X* pointer from another in
9592 an arm of an if-expression whose if-part is not a constant
9594 const char *g = "string";
9595 pcpcc = &g + (g ? g-g : 0);
9596 /* HPUX 7.0 cc rejects these. */
9598 ppc = (char**) pcpcc;
9599 pcpcc = (char const *const *) ppc;
9600 { /* SCO 3.2v4 cc rejects this sort of thing. */
9603 char const *s = 0 ? (char *) 0 : (char const *) 0;
9608 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9610 const int *foo = &x[0];
9613 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9614 typedef const int *iptr;
9618 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
9619 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9620 struct s { int j; const int *ap[3]; } bx;
9621 struct s *b = &bx; b->j = 5;
9623 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9627 return !cs[0] && !zero.x;
9634 if ac_fn_c_try_compile
"$LINENO"; then :
9639 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
9642 $as_echo "$ac_cv_c_const" >&6; }
9643 if test $ac_cv_c_const = no
; then
9645 $as_echo "#define const /**/" >>confdefs.h
9649 ac_fn_c_check_type
"$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
9650 if test "x$ac_cv_type_off_t" = xyes
; then :
9654 cat >>confdefs.h
<<_ACEOF
9655 #define off_t long int
9660 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9661 if test "x$ac_cv_type_pid_t" = xyes
; then :
9665 cat >>confdefs.h
<<_ACEOF
9671 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
9672 if test "x$ac_cv_type_size_t" = xyes
; then :
9676 cat >>confdefs.h
<<_ACEOF
9677 #define size_t unsigned int
9682 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
9683 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
9684 if ${ac_cv_header_time+:} false
; then :
9685 $as_echo_n "(cached) " >&6
9687 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9688 /* end confdefs.h. */
9689 #include <sys/types.h>
9690 #include <sys/time.h>
9696 if ((struct tm *) 0)
9702 if ac_fn_c_try_compile
"$LINENO"; then :
9703 ac_cv_header_time
=yes
9705 ac_cv_header_time
=no
9707 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
9710 $as_echo "$ac_cv_header_time" >&6; }
9711 if test $ac_cv_header_time = yes; then
9713 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
9717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
9718 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
9719 if ${ac_cv_struct_tm+:} false
; then :
9720 $as_echo_n "(cached) " >&6
9722 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9723 /* end confdefs.h. */
9724 #include <sys/types.h>
9731 int *p = &tm.tm_sec;
9737 if ac_fn_c_try_compile
"$LINENO"; then :
9738 ac_cv_struct_tm
=time.h
9740 ac_cv_struct_tm
=sys
/time.h
9742 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
9745 $as_echo "$ac_cv_struct_tm" >&6; }
9746 if test $ac_cv_struct_tm = sys
/time.h
; then
9748 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
9752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
9753 $as_echo_n "checking for inline... " >&6; }
9754 if ${ac_cv_c_inline+:} false
; then :
9755 $as_echo_n "(cached) " >&6
9758 for ac_kw
in inline __inline__ __inline
; do
9759 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9760 /* end confdefs.h. */
9763 static $ac_kw foo_t static_foo () {return 0; }
9764 $ac_kw foo_t foo () {return 0; }
9768 if ac_fn_c_try_compile
"$LINENO"; then :
9769 ac_cv_c_inline
=$ac_kw
9771 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9772 test "$ac_cv_c_inline" != no
&& break
9776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
9777 $as_echo "$ac_cv_c_inline" >&6; }
9779 case $ac_cv_c_inline in
9782 case $ac_cv_c_inline in
9784 *) ac_val
=$ac_cv_c_inline;;
9786 cat >>confdefs.h
<<_ACEOF
9788 #define inline $ac_val
9795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regcomp in -lregex" >&5
9796 $as_echo_n "checking for regcomp in -lregex... " >&6; }
9797 if ${ac_cv_lib_regex_regcomp+:} false
; then :
9798 $as_echo_n "(cached) " >&6
9800 ac_check_lib_save_LIBS
=$LIBS
9801 LIBS
="-lregex $LIBS"
9802 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9803 /* end confdefs.h. */
9805 /* Override any GCC internal prototype to avoid an error.
9806 Use char because int might match the return type of a GCC
9807 builtin and then its argument prototype would still apply. */
9820 if ac_fn_c_try_link
"$LINENO"; then :
9821 ac_cv_lib_regex_regcomp
=yes
9823 ac_cv_lib_regex_regcomp
=no
9825 rm -f core conftest.err conftest.
$ac_objext \
9826 conftest
$ac_exeext conftest.
$ac_ext
9827 LIBS
=$ac_check_lib_save_LIBS
9829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_regex_regcomp" >&5
9830 $as_echo "$ac_cv_lib_regex_regcomp" >&6; }
9831 if test "x$ac_cv_lib_regex_regcomp" = xyes
; then :
9832 cat >>confdefs.h
<<_ACEOF
9833 #define HAVE_LIBREGEX 1
9836 LIBS
="-lregex $LIBS"
9841 if test $ac_cv_lib_regex_regcomp = yes
9843 lib_for_regex
="-lregex"
9849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ncurses" >&5
9850 $as_echo_n "checking for ncurses... " >&6; }
9852 if test -n "$ncurses_CFLAGS"; then
9853 pkg_cv_ncurses_CFLAGS
="$ncurses_CFLAGS"
9854 elif test -n "$PKG_CONFIG"; then
9855 if test -n "$PKG_CONFIG" && \
9856 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncurses\""; } >&5
9857 ($PKG_CONFIG --exists --print-errors "ncurses") 2>&5
9859 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9860 test $ac_status = 0; }; then
9861 pkg_cv_ncurses_CFLAGS
=`$PKG_CONFIG --cflags "ncurses" 2>/dev/null`
9862 test "x$?" != "x0" && pkg_failed
=yes
9869 if test -n "$ncurses_LIBS"; then
9870 pkg_cv_ncurses_LIBS
="$ncurses_LIBS"
9871 elif test -n "$PKG_CONFIG"; then
9872 if test -n "$PKG_CONFIG" && \
9873 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncurses\""; } >&5
9874 ($PKG_CONFIG --exists --print-errors "ncurses") 2>&5
9876 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9877 test $ac_status = 0; }; then
9878 pkg_cv_ncurses_LIBS
=`$PKG_CONFIG --libs "ncurses" 2>/dev/null`
9879 test "x$?" != "x0" && pkg_failed
=yes
9889 if test $pkg_failed = yes; then
9890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9891 $as_echo "no" >&6; }
9893 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9894 _pkg_short_errors_supported
=yes
9896 _pkg_short_errors_supported
=no
9898 if test $_pkg_short_errors_supported = yes; then
9899 ncurses_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ncurses" 2>&1`
9901 ncurses_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "ncurses" 2>&1`
9903 # Put the nasty error message in config.log where it belongs
9904 echo "$ncurses_PKG_ERRORS" >&5
9907 elif test $pkg_failed = untried
; then
9908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9909 $as_echo "no" >&6; }
9912 ncurses_CFLAGS
=$pkg_cv_ncurses_CFLAGS
9913 ncurses_LIBS
=$pkg_cv_ncurses_LIBS
9914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9915 $as_echo "yes" >&6; }
9918 HAVE_NCURSES
=$have_ncurses
9923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD" >&5
9924 $as_echo_n "checking for SYSTEMD... " >&6; }
9926 if test -n "$SYSTEMD_CFLAGS"; then
9927 pkg_cv_SYSTEMD_CFLAGS
="$SYSTEMD_CFLAGS"
9928 elif test -n "$PKG_CONFIG"; then
9929 if test -n "$PKG_CONFIG" && \
9930 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-journal\""; } >&5
9931 ($PKG_CONFIG --exists --print-errors "libsystemd-journal") 2>&5
9933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9934 test $ac_status = 0; }; then
9935 pkg_cv_SYSTEMD_CFLAGS
=`$PKG_CONFIG --cflags "libsystemd-journal" 2>/dev/null`
9936 test "x$?" != "x0" && pkg_failed
=yes
9943 if test -n "$SYSTEMD_LIBS"; then
9944 pkg_cv_SYSTEMD_LIBS
="$SYSTEMD_LIBS"
9945 elif test -n "$PKG_CONFIG"; then
9946 if test -n "$PKG_CONFIG" && \
9947 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-journal\""; } >&5
9948 ($PKG_CONFIG --exists --print-errors "libsystemd-journal") 2>&5
9950 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9951 test $ac_status = 0; }; then
9952 pkg_cv_SYSTEMD_LIBS
=`$PKG_CONFIG --libs "libsystemd-journal" 2>/dev/null`
9953 test "x$?" != "x0" && pkg_failed
=yes
9963 if test $pkg_failed = yes; then
9964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9965 $as_echo "no" >&6; }
9967 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9968 _pkg_short_errors_supported
=yes
9970 _pkg_short_errors_supported
=no
9972 if test $_pkg_short_errors_supported = yes; then
9973 SYSTEMD_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd-journal" 2>&1`
9975 SYSTEMD_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd-journal" 2>&1`
9977 # Put the nasty error message in config.log where it belongs
9978 echo "$SYSTEMD_PKG_ERRORS" >&5
9981 elif test $pkg_failed = untried
; then
9982 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9983 $as_echo "no" >&6; }
9986 SYSTEMD_CFLAGS
=$pkg_cv_SYSTEMD_CFLAGS
9987 SYSTEMD_LIBS
=$pkg_cv_SYSTEMD_LIBS
9988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9989 $as_echo "yes" >&6; }
9992 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the systemd PMDA should be included" >&5
9993 $as_echo_n "checking if the systemd PMDA should be included... " >&6; }
9994 PMDA_SYSTEMD
=$pmda_systemd
9996 if $pmda_systemd; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9997 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9998 $as_echo "no" >&6; }; fi
10000 pmda_infiniband
=false
10001 if test "x$do_infiniband" != "xno"; then :
10003 for ac_header
in infiniband
/umad.h
10005 ac_fn_c_check_header_mongrel
"$LINENO" "infiniband/umad.h" "ac_cv_header_infiniband_umad_h" "$ac_includes_default"
10006 if test "x$ac_cv_header_infiniband_umad_h" = xyes
; then :
10007 cat >>confdefs.h
<<_ACEOF
10008 #define HAVE_INFINIBAND_UMAD_H 1
10011 for ac_header
in infiniband
/mad.h
10013 ac_fn_c_check_header_mongrel
"$LINENO" "infiniband/mad.h" "ac_cv_header_infiniband_mad_h" "$ac_includes_default"
10014 if test "x$ac_cv_header_infiniband_mad_h" = xyes
; then :
10015 cat >>confdefs.h
<<_ACEOF
10016 #define HAVE_INFINIBAND_MAD_H 1
10018 pmda_infiniband
=true
10030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for madrpc_init in -libmad" >&5
10031 $as_echo_n "checking for madrpc_init in -libmad... " >&6; }
10032 if ${ac_cv_lib_ibmad_madrpc_init+:} false
; then :
10033 $as_echo_n "(cached) " >&6
10035 ac_check_lib_save_LIBS
=$LIBS
10036 LIBS
="-libmad $LIBS"
10037 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10038 /* end confdefs.h. */
10040 /* Override any GCC internal prototype to avoid an error.
10041 Use char because int might match the return type of a GCC
10042 builtin and then its argument prototype would still apply. */
10046 char madrpc_init ();
10050 return madrpc_init ();
10055 if ac_fn_c_try_link
"$LINENO"; then :
10056 ac_cv_lib_ibmad_madrpc_init
=yes
10058 ac_cv_lib_ibmad_madrpc_init
=no
10060 rm -f core conftest.err conftest.
$ac_objext \
10061 conftest
$ac_exeext conftest.
$ac_ext
10062 LIBS
=$ac_check_lib_save_LIBS
10064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ibmad_madrpc_init" >&5
10065 $as_echo "$ac_cv_lib_ibmad_madrpc_init" >&6; }
10066 if test "x$ac_cv_lib_ibmad_madrpc_init" = xyes
; then :
10067 cat >>confdefs.h
<<_ACEOF
10068 #define HAVE_LIBIBMAD 1
10071 LIBS
="-libmad $LIBS"
10075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umad_init in -libumad" >&5
10076 $as_echo_n "checking for umad_init in -libumad... " >&6; }
10077 if ${ac_cv_lib_ibumad_umad_init+:} false
; then :
10078 $as_echo_n "(cached) " >&6
10080 ac_check_lib_save_LIBS
=$LIBS
10081 LIBS
="-libumad $LIBS"
10082 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10083 /* end confdefs.h. */
10085 /* Override any GCC internal prototype to avoid an error.
10086 Use char because int might match the return type of a GCC
10087 builtin and then its argument prototype would still apply. */
10095 return umad_init ();
10100 if ac_fn_c_try_link
"$LINENO"; then :
10101 ac_cv_lib_ibumad_umad_init
=yes
10103 ac_cv_lib_ibumad_umad_init
=no
10105 rm -f core conftest.err conftest.
$ac_objext \
10106 conftest
$ac_exeext conftest.
$ac_ext
10107 LIBS
=$ac_check_lib_save_LIBS
10109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ibumad_umad_init" >&5
10110 $as_echo "$ac_cv_lib_ibumad_umad_init" >&6; }
10111 if test "x$ac_cv_lib_ibumad_umad_init" = xyes
; then :
10112 cat >>confdefs.h
<<_ACEOF
10113 #define HAVE_LIBIBUMAD 1
10116 LIBS
="-libumad $LIBS"
10120 if test $ac_cv_lib_ibmad_madrpc_init = yes -a $ac_cv_lib_ibumad_umad_init = yes
10122 IB_LIBS
="-libmad -libumad"
10124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for port_performance_query_via" >&5
10125 $as_echo_n "checking for port_performance_query_via... " >&6; }
10126 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10127 /* end confdefs.h. */
10129 /* Override any GCC internal prototype to avoid an error.
10130 Use char because int might match the return type of a GCC
10131 builtin and then its argument prototype would still apply. */
10135 char port_performance_query_via ();
10139 return port_performance_query_via ();
10144 if ac_fn_c_try_link
"$LINENO"; then :
10146 $as_echo "#define HAVE_PORT_PERFORMANCE_QUERY_VIA 1" >>confdefs.h
10148 have_port_performance_query_via
=true
10149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10150 $as_echo "yes" >&6; }
10152 have_port_performance_query_via
=false
10153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10154 $as_echo "no" >&6; }
10156 rm -f core conftest.err conftest.
$ac_objext \
10157 conftest
$ac_exeext conftest.
$ac_ext
10158 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pma_query_via" >&5
10159 $as_echo_n "checking for pma_query_via... " >&6; }
10160 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10161 /* end confdefs.h. */
10163 /* Override any GCC internal prototype to avoid an error.
10164 Use char because int might match the return type of a GCC
10165 builtin and then its argument prototype would still apply. */
10169 char pma_query_via ();
10173 return pma_query_via ();
10178 if ac_fn_c_try_link
"$LINENO"; then :
10180 $as_echo "#define HAVE_PMA_QUERY_VIA 1" >>confdefs.h
10182 have_pma_query_via
=true
10183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10184 $as_echo "yes" >&6; }
10186 have_pma_query_via
=false
10187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10188 $as_echo "no" >&6; }
10190 rm -f core conftest.err conftest.
$ac_objext \
10191 conftest
$ac_exeext conftest.
$ac_ext
10193 if test $have_pma_query_via -o $have_port_performance_query_via
10197 pmda_infiniband
=false
10200 pmda_infiniband
=false
10206 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the infiniband PMDA should be included" >&5
10207 $as_echo_n "checking if the infiniband PMDA should be included... " >&6; }
10208 PMDA_INFINIBAND
=$pmda_infiniband
10210 if $pmda_infiniband; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10211 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10212 $as_echo "no" >&6; }; fi
10215 if test "x$do_papi" != "xno"; then :
10219 saved_LDFLAGS
="$LDFLAGS"
10220 saved_CFLAGS
="$CFLAGS"
10223 CFLAGS
="$papi_CFLAGS"
10224 LDFLAGS
="$papi_LIBS"
10230 PAPI_ROOTDIR
=$do_papi;
10231 CFLAGS
="-I$PAPI_ROOTDIR/include"
10232 LDFLAGS
="-L$PAPI_ROOTDIR/lib"
10237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for papi" >&5
10238 $as_echo_n "checking for papi... " >&6; }
10240 if test -n "$papi_CFLAGS"; then
10241 pkg_cv_papi_CFLAGS
="$papi_CFLAGS"
10242 elif test -n "$PKG_CONFIG"; then
10243 if test -n "$PKG_CONFIG" && \
10244 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$do_papi\""; } >&5
10245 ($PKG_CONFIG --exists --print-errors "$do_papi") 2>&5
10247 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10248 test $ac_status = 0; }; then
10249 pkg_cv_papi_CFLAGS
=`$PKG_CONFIG --cflags "$do_papi" 2>/dev/null`
10250 test "x$?" != "x0" && pkg_failed
=yes
10257 if test -n "$papi_LIBS"; then
10258 pkg_cv_papi_LIBS
="$papi_LIBS"
10259 elif test -n "$PKG_CONFIG"; then
10260 if test -n "$PKG_CONFIG" && \
10261 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$do_papi\""; } >&5
10262 ($PKG_CONFIG --exists --print-errors "$do_papi") 2>&5
10264 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10265 test $ac_status = 0; }; then
10266 pkg_cv_papi_LIBS
=`$PKG_CONFIG --libs "$do_papi" 2>/dev/null`
10267 test "x$?" != "x0" && pkg_failed
=yes
10277 if test $pkg_failed = yes; then
10278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10279 $as_echo "no" >&6; }
10281 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10282 _pkg_short_errors_supported
=yes
10284 _pkg_short_errors_supported
=no
10286 if test $_pkg_short_errors_supported = yes; then
10287 papi_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$do_papi" 2>&1`
10289 papi_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "$do_papi" 2>&1`
10291 # Put the nasty error message in config.log where it belongs
10292 echo "$papi_PKG_ERRORS" >&5
10294 as_fn_error $?
"Package requirements ($do_papi) were not met:
10298 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10299 installed software in a non-standard prefix.
10301 Alternatively, you may set the environment variables papi_CFLAGS
10302 and papi_LIBS to avoid the need to call pkg-config.
10303 See the pkg-config man page for more details." "$LINENO" 5
10304 elif test $pkg_failed = untried
; then
10305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10306 $as_echo "no" >&6; }
10307 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10308 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10309 as_fn_error $?
"The pkg-config script could not be found or is too old. Make sure it
10310 is in your PATH or set the PKG_CONFIG environment variable to the full
10311 path to pkg-config.
10313 Alternatively, you may set the environment variables papi_CFLAGS
10314 and papi_LIBS to avoid the need to call pkg-config.
10315 See the pkg-config man page for more details.
10317 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10318 See \`config.log' for more details" "$LINENO" 5; }
10320 papi_CFLAGS
=$pkg_cv_papi_CFLAGS
10321 papi_LIBS
=$pkg_cv_papi_LIBS
10322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10323 $as_echo "yes" >&6; }
10325 CFLAGS
="$papi_CFLAGS"
10326 LDFLAGS
="$papi_LIBS"
10331 # $papi_LIBS may include -lpapi harmlessly redudantly with AC_CHECK_LIB
10332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PAPI_library_init in -lpapi" >&5
10333 $as_echo_n "checking for PAPI_library_init in -lpapi... " >&6; }
10334 if ${ac_cv_lib_papi_PAPI_library_init+:} false
; then :
10335 $as_echo_n "(cached) " >&6
10337 ac_check_lib_save_LIBS
=$LIBS
10338 LIBS
="-lpapi $LIBS"
10339 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10340 /* end confdefs.h. */
10342 /* Override any GCC internal prototype to avoid an error.
10343 Use char because int might match the return type of a GCC
10344 builtin and then its argument prototype would still apply. */
10348 char PAPI_library_init ();
10352 return PAPI_library_init ();
10357 if ac_fn_c_try_link
"$LINENO"; then :
10358 ac_cv_lib_papi_PAPI_library_init
=yes
10360 ac_cv_lib_papi_PAPI_library_init
=no
10362 rm -f core conftest.err conftest.
$ac_objext \
10363 conftest
$ac_exeext conftest.
$ac_ext
10364 LIBS
=$ac_check_lib_save_LIBS
10366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_papi_PAPI_library_init" >&5
10367 $as_echo "$ac_cv_lib_papi_PAPI_library_init" >&6; }
10368 if test "x$ac_cv_lib_papi_PAPI_library_init" = xyes
; then :
10369 papi_libs
="$LDFLAGS -lpapi"
10374 for ac_header
in papi.h
10376 ac_fn_c_check_header_mongrel
"$LINENO" "papi.h" "ac_cv_header_papi_h" "$ac_includes_default"
10377 if test "x$ac_cv_header_papi_h" = xyes
; then :
10378 cat >>confdefs.h
<<_ACEOF
10379 #define HAVE_PAPI_H 1
10381 papi_cflags
="$CFLAGS"
10388 if test "$do_papi" != "check" -a "$enable_papi" != "true"
10390 as_fn_error $?
"PAPI is not installed, cannot enable the PAPI PMDA" "$LINENO" 5
10392 pmda_papi
=$enable_papi
10395 CFLAGS
="$saved_CFLAGS"
10396 LDFLAGS
="$saved_LDFLAGS"
10397 PAPI_CFLAGS
=$papi_cflags
10399 PAPI_LIBS
=$papi_libs
10403 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the papi PMDA should be included" >&5
10404 $as_echo_n "checking if the papi PMDA should be included... " >&6; }
10405 PMDA_PAPI
=$pmda_papi
10407 if $pmda_papi; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10408 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10409 $as_echo "no" >&6; }; fi
10411 if test "x$pmda_papi" = "xtrue"; then :
10413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct PAPI_component_info_t has a disabled field" >&5
10414 $as_echo_n "checking whether struct PAPI_component_info_t has a disabled field... " >&6; }
10415 cat <<End-of-File >conftest.c
10417 int main() { PAPI_component_info_t *c; c->disabled = 0; }
10419 (eval $ac_compile) 2>conftest.out
10420 cat conftest.out
>&5
10421 if test -s conftest.out
10423 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10424 $as_echo "no" >&6; }
10427 $as_echo "#define HAVE_PAPI_DISABLED_COMP 1" >>confdefs.h
10429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10430 $as_echo "yes" >&6; }
10437 pmda_perfevent
=false
10438 if test "x$do_perfevent" != "xno" ; then :
10440 enable_perfevent
=true
10443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pfm_get_os_event_encoding in -lpfm" >&5
10444 $as_echo_n "checking for pfm_get_os_event_encoding in -lpfm... " >&6; }
10445 if ${ac_cv_lib_pfm_pfm_get_os_event_encoding+:} false
; then :
10446 $as_echo_n "(cached) " >&6
10448 ac_check_lib_save_LIBS
=$LIBS
10450 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10451 /* end confdefs.h. */
10453 /* Override any GCC internal prototype to avoid an error.
10454 Use char because int might match the return type of a GCC
10455 builtin and then its argument prototype would still apply. */
10459 char pfm_get_os_event_encoding ();
10463 return pfm_get_os_event_encoding ();
10468 if ac_fn_c_try_link
"$LINENO"; then :
10469 ac_cv_lib_pfm_pfm_get_os_event_encoding
=yes
10471 ac_cv_lib_pfm_pfm_get_os_event_encoding
=no
10473 rm -f core conftest.err conftest.
$ac_objext \
10474 conftest
$ac_exeext conftest.
$ac_ext
10475 LIBS
=$ac_check_lib_save_LIBS
10477 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pfm_pfm_get_os_event_encoding" >&5
10478 $as_echo "$ac_cv_lib_pfm_pfm_get_os_event_encoding" >&6; }
10479 if test "x$ac_cv_lib_pfm_pfm_get_os_event_encoding" = xyes
; then :
10482 enable_perfevent
=false
10485 for ac_header
in perfmon
/pfmlib_perf_event.h
10487 ac_fn_c_check_header_mongrel
"$LINENO" "perfmon/pfmlib_perf_event.h" "ac_cv_header_perfmon_pfmlib_perf_event_h" "$ac_includes_default"
10488 if test "x$ac_cv_header_perfmon_pfmlib_perf_event_h" = xyes
; then :
10489 cat >>confdefs.h
<<_ACEOF
10490 #define HAVE_PERFMON_PFMLIB_PERF_EVENT_H 1
10494 enable_perfevent
=false
10499 if test "$do_perfevent" != "check" -a "$enable_papi" != "true"
10501 as_fn_error $?
"libpfm is not installed, cannot enable the perfevent PMDA" "$LINENO" 5
10503 pmda_perfevent
=$enable_perfevent
10510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the perfevent PMDA should be included" >&5
10511 $as_echo_n "checking if the perfevent PMDA should be included... " >&6; }
10512 PMDA_PERFEVENT
=$pmda_perfevent
10514 if $pmda_perfevent; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10515 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10516 $as_echo "no" >&6; }; fi
10520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rpmlib > 4.4.2" >&5
10521 $as_echo_n "checking for rpmlib > 4.4.2... " >&6; }
10522 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10523 /* end confdefs.h. */
10524 #include <rpm/header.h>
10528 (void)HEADERGET_EXT;
10533 if ac_fn_c_try_compile
"$LINENO"; then :
10534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10535 $as_echo "yes" >&6; }
10538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10539 $as_echo "no" >&6; }
10541 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10542 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the rpm PMDA should be included" >&5
10543 $as_echo_n "checking if the rpm PMDA should be included... " >&6; }
10546 if $pmda_rpm; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10547 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10548 $as_echo "no" >&6; }; fi
10552 for ac_prog
in qshape
10554 # Extract the first word of "$ac_prog", so it can be a program name with args.
10555 set dummy
$ac_prog; ac_word
=$2
10556 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10557 $as_echo_n "checking for $ac_word... " >&6; }
10558 if ${ac_cv_prog_QSHAPE+:} false
; then :
10559 $as_echo_n "(cached) " >&6
10561 if test -n "$QSHAPE"; then
10562 ac_cv_prog_QSHAPE
="$QSHAPE" # Let the user override the test.
10564 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10565 as_dummy
="path=$PATH:/usr/sbin"
10566 for as_dir
in $as_dummy
10569 test -z "$as_dir" && as_dir
=.
10570 for ac_exec_ext
in '' $ac_executable_extensions; do
10571 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10572 ac_cv_prog_QSHAPE
="$ac_prog"
10573 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10582 QSHAPE
=$ac_cv_prog_QSHAPE
10583 if test -n "$QSHAPE"; then
10584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QSHAPE" >&5
10585 $as_echo "$QSHAPE" >&6; }
10587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10588 $as_echo "no" >&6; }
10592 test -n "$QSHAPE" && break
10595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the postfix PMDA should be included" >&5
10596 $as_echo_n "checking if the postfix PMDA should be included... " >&6; }
10597 if test -n "$QSHAPE"
10601 for script in /usr
/share
/doc
/packages
/postfix-doc
/auxiliary
/qshape
/qshape.pl
10603 if test -f "$script"
10610 PMDA_POSTFIX
=$pmda_postfix
10612 if $pmda_postfix; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10613 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10614 $as_echo "no" >&6; }; fi
10618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmicrohttpd" >&5
10619 $as_echo_n "checking for libmicrohttpd... " >&6; }
10621 if test -n "$libmicrohttpd_CFLAGS"; then
10622 pkg_cv_libmicrohttpd_CFLAGS
="$libmicrohttpd_CFLAGS"
10623 elif test -n "$PKG_CONFIG"; then
10624 if test -n "$PKG_CONFIG" && \
10625 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmicrohttpd > 0.9.9\""; } >&5
10626 ($PKG_CONFIG --exists --print-errors "libmicrohttpd > 0.9.9") 2>&5
10628 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10629 test $ac_status = 0; }; then
10630 pkg_cv_libmicrohttpd_CFLAGS
=`$PKG_CONFIG --cflags "libmicrohttpd > 0.9.9" 2>/dev/null`
10631 test "x$?" != "x0" && pkg_failed
=yes
10638 if test -n "$libmicrohttpd_LIBS"; then
10639 pkg_cv_libmicrohttpd_LIBS
="$libmicrohttpd_LIBS"
10640 elif test -n "$PKG_CONFIG"; then
10641 if test -n "$PKG_CONFIG" && \
10642 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmicrohttpd > 0.9.9\""; } >&5
10643 ($PKG_CONFIG --exists --print-errors "libmicrohttpd > 0.9.9") 2>&5
10645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10646 test $ac_status = 0; }; then
10647 pkg_cv_libmicrohttpd_LIBS
=`$PKG_CONFIG --libs "libmicrohttpd > 0.9.9" 2>/dev/null`
10648 test "x$?" != "x0" && pkg_failed
=yes
10658 if test $pkg_failed = yes; then
10659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10660 $as_echo "no" >&6; }
10662 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10663 _pkg_short_errors_supported
=yes
10665 _pkg_short_errors_supported
=no
10667 if test $_pkg_short_errors_supported = yes; then
10668 libmicrohttpd_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libmicrohttpd > 0.9.9" 2>&1`
10670 libmicrohttpd_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "libmicrohttpd > 0.9.9" 2>&1`
10672 # Put the nasty error message in config.log where it belongs
10673 echo "$libmicrohttpd_PKG_ERRORS" >&5
10675 have_libmicrohttpd
=false
10676 elif test $pkg_failed = untried
; then
10677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10678 $as_echo "no" >&6; }
10679 have_libmicrohttpd
=false
10681 libmicrohttpd_CFLAGS
=$pkg_cv_libmicrohttpd_CFLAGS
10682 libmicrohttpd_LIBS
=$pkg_cv_libmicrohttpd_LIBS
10683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10684 $as_echo "yes" >&6; }
10685 have_libmicrohttpd
=true
10687 HAVE_LIBMICROHTTPD
=$have_libmicrohttpd
10692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo" >&5
10693 $as_echo_n "checking for cairo... " >&6; }
10695 if test -n "$cairo_CFLAGS"; then
10696 pkg_cv_cairo_CFLAGS
="$cairo_CFLAGS"
10697 elif test -n "$PKG_CONFIG"; then
10698 if test -n "$PKG_CONFIG" && \
10699 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo >= 1.2, cairo-ft >= 1.2, cairo-png >= 1.2\""; } >&5
10700 ($PKG_CONFIG --exists --print-errors "cairo >= 1.2, cairo-ft >= 1.2, cairo-png >= 1.2") 2>&5
10702 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10703 test $ac_status = 0; }; then
10704 pkg_cv_cairo_CFLAGS
=`$PKG_CONFIG --cflags "cairo >= 1.2, cairo-ft >= 1.2, cairo-png >= 1.2" 2>/dev/null`
10705 test "x$?" != "x0" && pkg_failed
=yes
10712 if test -n "$cairo_LIBS"; then
10713 pkg_cv_cairo_LIBS
="$cairo_LIBS"
10714 elif test -n "$PKG_CONFIG"; then
10715 if test -n "$PKG_CONFIG" && \
10716 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo >= 1.2, cairo-ft >= 1.2, cairo-png >= 1.2\""; } >&5
10717 ($PKG_CONFIG --exists --print-errors "cairo >= 1.2, cairo-ft >= 1.2, cairo-png >= 1.2") 2>&5
10719 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10720 test $ac_status = 0; }; then
10721 pkg_cv_cairo_LIBS
=`$PKG_CONFIG --libs "cairo >= 1.2, cairo-ft >= 1.2, cairo-png >= 1.2" 2>/dev/null`
10722 test "x$?" != "x0" && pkg_failed
=yes
10732 if test $pkg_failed = yes; then
10733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10734 $as_echo "no" >&6; }
10736 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10737 _pkg_short_errors_supported
=yes
10739 _pkg_short_errors_supported
=no
10741 if test $_pkg_short_errors_supported = yes; then
10742 cairo_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cairo >= 1.2, cairo-ft >= 1.2, cairo-png >= 1.2" 2>&1`
10744 cairo_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "cairo >= 1.2, cairo-ft >= 1.2, cairo-png >= 1.2" 2>&1`
10746 # Put the nasty error message in config.log where it belongs
10747 echo "$cairo_PKG_ERRORS" >&5
10750 elif test $pkg_failed = untried
; then
10751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10752 $as_echo "no" >&6; }
10755 cairo_CFLAGS
=$pkg_cv_cairo_CFLAGS
10756 cairo_LIBS
=$pkg_cv_cairo_LIBS
10757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10758 $as_echo "yes" >&6; }
10761 HAVE_CAIRO
=$have_cairo
10764 enable_webapi
=false
10765 if test "x$do_webapi" != "xno"; then :
10769 if test "$have_libmicrohttpd" != "true"
10771 enable_webapi
=false
10772 test "$do_webapi" != "check" && \
10773 as_fn_error $?
"libmicrohttpd is not installed, cannot enable the web API" "$LINENO" 5
10774 elif test "$do_webapi" != "check" -a "x$cxx" = "x"
10776 enable_webapi
=false
10777 test "$do_webapi" != "check" && \
10778 as_fn_error $?
"C++ compiler unavailable, cannot enable the web API" "$LINENO" 5
10784 enable_manager
=false
10785 if test "x$do_manager" != "xno"; then :
10787 enable_manager
=true
10789 if test "$target_os" = "mingw"
10791 enable_manager
=false
10792 test "$do_manager" != "check" && \
10793 as_fn_error $?
"MinGW build, cannot enable daemon manager" "$LINENO" 5
10794 elif test "x$cxx" = "x"
10796 enable_manager
=false
10797 test "$do_manager" != "check" && \
10798 as_fn_error $?
"C++ compiler unavailable, cannot enable daemon manager" "$LINENO" 5
10800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compilation features for daemon manager" >&5
10801 $as_echo_n "checking compilation features for daemon manager... " >&6; }
10802 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10803 /* end confdefs.h. */
10804 #ifndef _XOPEN_SOURCE
10805 #define _XOPEN_SOURCE 600
10817 if ac_fn_c_try_compile
"$LINENO"; then :
10818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10819 $as_echo "yes" >&6; }
10821 enable_manager
=false
10822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10823 $as_echo "no" >&6; }
10825 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10830 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
10831 $as_echo_n "checking return type of signal handlers... " >&6; }
10832 if ${ac_cv_type_signal+:} false
; then :
10833 $as_echo_n "(cached) " >&6
10835 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10836 /* end confdefs.h. */
10837 #include <sys/types.h>
10838 #include <signal.h>
10843 return *(signal (0, 0)) (0) == 1;
10848 if ac_fn_c_try_compile
"$LINENO"; then :
10849 ac_cv_type_signal
=int
10851 ac_cv_type_signal
=void
10853 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
10856 $as_echo "$ac_cv_type_signal" >&6; }
10858 cat >>confdefs.h
<<_ACEOF
10859 #define RETSIGTYPE $ac_cv_type_signal
10863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wait3 that fills in rusage" >&5
10864 $as_echo_n "checking for wait3 that fills in rusage... " >&6; }
10865 if ${ac_cv_func_wait3_rusage+:} false
; then :
10866 $as_echo_n "(cached) " >&6
10868 if test "$cross_compiling" = yes; then :
10869 ac_cv_func_wait3_rusage
=no
10871 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10872 /* end confdefs.h. */
10873 $ac_includes_default
10874 #include <sys/time.h>
10875 #include <sys/resource.h>
10876 #include <sys/wait.h>
10877 /* HP-UX has wait3 but does not fill in rusage at all. */
10883 /* Use a field that we can force nonzero --
10884 voluntary context switches.
10885 For systems like NeXT and OSF/1 that don't set it,
10886 also use the system CPU time. And page faults (I/O) for Linux. */
10888 r.ru_stime.tv_sec = 0;
10889 r.ru_stime.tv_usec = 0;
10890 r.ru_majflt = r.ru_minflt = 0;
10893 case 0: /* Child. */
10894 sleep(1); /* Give up the CPU. */
10897 case -1: /* What can we do? */
10900 default: /* Parent. */
10902 /* Avoid "text file busy" from rm on fast HP-UX machines. */
10904 return (r.ru_nvcsw == 0 && r.ru_majflt == 0 && r.ru_minflt == 0
10905 && r.ru_stime.tv_sec == 0 && r.ru_stime.tv_usec == 0);
10909 if ac_fn_c_try_run
"$LINENO"; then :
10910 ac_cv_func_wait3_rusage
=yes
10912 ac_cv_func_wait3_rusage
=no
10914 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10915 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_wait3_rusage" >&5
10920 $as_echo "$ac_cv_func_wait3_rusage" >&6; }
10921 if test $ac_cv_func_wait3_rusage = yes; then
10923 $as_echo "#define HAVE_WAIT3 1" >>confdefs.h
10927 for ac_func
in vprintf
10929 ac_fn_c_check_func
"$LINENO" "vprintf" "ac_cv_func_vprintf"
10930 if test "x$ac_cv_func_vprintf" = xyes
; then :
10931 cat >>confdefs.h
<<_ACEOF
10932 #define HAVE_VPRINTF 1
10935 ac_fn_c_check_func
"$LINENO" "_doprnt" "ac_cv_func__doprnt"
10936 if test "x$ac_cv_func__doprnt" = xyes
; then :
10938 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
10946 for ac_func
in mktime nanosleep
usleep unsetenv
10948 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10949 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10950 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
10951 cat >>confdefs.h
<<_ACEOF
10952 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10958 for ac_func
in select socket gethostname getpeerucred getpeereid
10960 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10961 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10962 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
10963 cat >>confdefs.h
<<_ACEOF
10964 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10970 for ac_func
in uname syslog __clone pipe2 fcntl ioctl
10972 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10973 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10974 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
10975 cat >>confdefs.h
<<_ACEOF
10976 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10982 for ac_func
in prctl setlinebuf waitpid atexit
kill
10984 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10985 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10986 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
10987 cat >>confdefs.h
<<_ACEOF
10988 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10994 for ac_func
in chown fchmod getcwd scandir mkstemp
10996 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10997 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10998 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
10999 cat >>confdefs.h
<<_ACEOF
11000 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11006 for ac_func
in brk sbrk posix_memalign memalign valloc
11008 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11009 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11010 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
11011 cat >>confdefs.h
<<_ACEOF
11012 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11018 for ac_func
in signal sighold sigrelse tcgetattr
11020 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11021 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11022 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
11023 cat >>confdefs.h
<<_ACEOF
11024 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11030 for ac_func
in regex regcmp regexec regcomp
11032 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11033 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11034 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
11035 cat >>confdefs.h
<<_ACEOF
11036 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11042 for ac_func
in strtod strtol strtoll strtoull strndup strchrnul
11044 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11045 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11046 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
11047 cat >>confdefs.h
<<_ACEOF
11048 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11054 for ac_func
in getuid getgid
11056 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11057 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11058 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
11059 cat >>confdefs.h
<<_ACEOF
11060 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11066 for ac_func
in getgrent getgrent_r getgrnam getgrnam_r getgrgid getgrgid_r
11068 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11069 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11070 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
11071 cat >>confdefs.h
<<_ACEOF
11072 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11078 for ac_func
in getpwent getpwent_r getpwnam getpwnam_r getpwuid getpwuid_r
11080 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11081 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11082 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
11083 cat >>confdefs.h
<<_ACEOF
11084 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11090 for ac_func
in sysinfo trace_back_stack backtrace
11092 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11093 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11094 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
11095 cat >>confdefs.h
<<_ACEOF
11096 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11102 for ac_func
in sendmsg recvmsg setns
11104 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11105 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
11106 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
11107 cat >>confdefs.h
<<_ACEOF
11108 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11115 if test $target_os != linux
-a $target_os != freebsd
-a $target_os != kfreebsd
-a $target_os != netbsd
; then
11116 for ac_func
in readdir64
11118 ac_fn_c_check_func
"$LINENO" "readdir64" "ac_cv_func_readdir64"
11119 if test "x$ac_cv_func_readdir64" = xyes
; then :
11120 cat >>confdefs.h
<<_ACEOF
11121 #define HAVE_READDIR64 1
11129 if test $target_os = solaris
11131 ac_fn_c_check_type
"$LINENO" "__int32_t" "ac_cv_type___int32_t" "$ac_includes_default"
11132 if test "x$ac_cv_type___int32_t" = xyes
; then :
11136 cat >>confdefs.h
<<_ACEOF
11137 #define __int32_t int32_t
11142 ac_fn_c_check_type
"$LINENO" "__uint32_t" "ac_cv_type___uint32_t" "$ac_includes_default"
11143 if test "x$ac_cv_type___uint32_t" = xyes
; then :
11147 cat >>confdefs.h
<<_ACEOF
11148 #define __uint32_t uint32_t
11153 ac_fn_c_check_type
"$LINENO" "__int64_t" "ac_cv_type___int64_t" "$ac_includes_default"
11154 if test "x$ac_cv_type___int64_t" = xyes
; then :
11158 cat >>confdefs.h
<<_ACEOF
11159 #define __int64_t int64_t
11164 ac_fn_c_check_type
"$LINENO" "__uint64_t" "ac_cv_type___uint64_t" "$ac_includes_default"
11165 if test "x$ac_cv_type___uint64_t" = xyes
; then :
11169 cat >>confdefs.h
<<_ACEOF
11170 #define __uint64_t uint64_t
11175 ac_fn_c_check_type
"$LINENO" "uint_t" "ac_cv_type_uint_t" "$ac_includes_default"
11176 if test "x$ac_cv_type_uint_t" = xyes
; then :
11180 cat >>confdefs.h
<<_ACEOF
11181 #define uint_t u_int32_t
11187 ac_fn_c_check_type
"$LINENO" "__int32_t" "ac_cv_type___int32_t" "$ac_includes_default"
11188 if test "x$ac_cv_type___int32_t" = xyes
; then :
11192 cat >>confdefs.h
<<_ACEOF
11193 #define __int32_t int
11198 ac_fn_c_check_type
"$LINENO" "__uint32_t" "ac_cv_type___uint32_t" "$ac_includes_default"
11199 if test "x$ac_cv_type___uint32_t" = xyes
; then :
11203 cat >>confdefs.h
<<_ACEOF
11204 #define __uint32_t unsigned int
11209 ac_fn_c_check_type
"$LINENO" "__int64_t" "ac_cv_type___int64_t" "$ac_includes_default"
11210 if test "x$ac_cv_type___int64_t" = xyes
; then :
11214 cat >>confdefs.h
<<_ACEOF
11215 #define __int64_t long long
11220 ac_fn_c_check_type
"$LINENO" "__uint64_t" "ac_cv_type___uint64_t" "$ac_includes_default"
11221 if test "x$ac_cv_type___uint64_t" = xyes
; then :
11225 cat >>confdefs.h
<<_ACEOF
11226 #define __uint64_t unsigned long long
11231 ac_fn_c_check_type
"$LINENO" "uint_t" "ac_cv_type_uint_t" "$ac_includes_default"
11232 if test "x$ac_cv_type_uint_t" = xyes
; then :
11236 cat >>confdefs.h
<<_ACEOF
11237 #define uint_t unsigned int
11244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __psint_t " >&5
11245 $as_echo_n "checking for __psint_t ... " >&6; }
11246 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11247 /* end confdefs.h. */
11249 #include <sys/types.h>
11250 #include <stdlib.h>
11251 #include <stddef.h>
11261 if ac_fn_c_try_compile
"$LINENO"; then :
11263 $as_echo "#define HAVE___PSINT_T 1" >>confdefs.h
11264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11265 $as_echo "yes" >&6; }
11267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11268 $as_echo "no" >&6; }
11270 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ptrdiff_t " >&5
11273 $as_echo_n "checking for ptrdiff_t ... " >&6; }
11274 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11275 /* end confdefs.h. */
11277 #include <stddef.h>
11278 #ifdef HAVE_MALLOC_H
11279 #include <malloc.h>
11290 if ac_fn_c_try_compile
"$LINENO"; then :
11292 $as_echo "#define HAVE_PTRDIFF_T 1" >>confdefs.h
11293 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11294 $as_echo "yes" >&6; }
11296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11297 $as_echo "no" >&6; }
11299 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11301 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t " >&5
11302 $as_echo_n "checking for uid_t ... " >&6; }
11303 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11304 /* end confdefs.h. */
11306 #include <sys/types.h>
11319 if ac_fn_c_try_compile
"$LINENO"; then :
11321 $as_echo "#define HAVE_UID_T 1" >>confdefs.h
11322 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11323 $as_echo "yes" >&6; }
11325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11326 $as_echo "no" >&6; }
11328 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gid_t " >&5
11330 $as_echo_n "checking for gid_t ... " >&6; }
11331 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11332 /* end confdefs.h. */
11334 #include <sys/types.h>
11347 if ac_fn_c_try_compile
"$LINENO"; then :
11349 $as_echo "#define HAVE_GID_T 1" >>confdefs.h
11350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11351 $as_echo "yes" >&6; }
11353 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11354 $as_echo "no" >&6; }
11356 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SID " >&5
11358 $as_echo_n "checking for SID ... " >&6; }
11359 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11360 /* end confdefs.h. */
11362 #ifdef HAVE_WINDOWS_H
11363 #include <windows.h>
11374 if ac_fn_c_try_compile
"$LINENO"; then :
11376 $as_echo "#define HAVE_SID 1" >>confdefs.h
11377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11378 $as_echo "yes" >&6; }
11380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11381 $as_echo "no" >&6; }
11383 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11385 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t " >&5
11386 $as_echo_n "checking for socklen_t ... " >&6; }
11387 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11388 /* end confdefs.h. */
11390 #include <sys/types.h>
11391 #ifdef HAVE_SYS_SOCKET_H
11392 #include <sys/socket.h>
11403 if ac_fn_c_try_compile
"$LINENO"; then :
11405 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
11406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11407 $as_echo "yes" >&6; }
11409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11410 $as_echo "no" >&6; }
11412 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11414 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11415 /* end confdefs.h. */
11427 if ac_fn_c_try_compile
"$LINENO"; then :
11429 $as_echo "#define HAVE_CONST_LONGLONG 1" >>confdefs.h
11432 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11434 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11435 /* end confdefs.h. */
11437 #include <stdlib.h>
11438 #include <unistd.h>
11443 char **x = _environ;
11448 if ac_fn_c_try_link
"$LINENO"; then :
11450 $as_echo "#define HAVE_UNDERBAR_ENVIRON 1" >>confdefs.h
11453 rm -f core conftest.err conftest.
$ac_objext \
11454 conftest
$ac_exeext conftest.
$ac_ext
11456 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PR_TERMCHILD constant in sys/prctl.h" >&5
11457 $as_echo_n "checking for PR_TERMCHILD constant in sys/prctl.h... " >&6; }
11458 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11459 /* end confdefs.h. */
11461 #ifdef HAVE_SYS_PRCTL_H
11462 #include <sys/prctl.h>
11468 int i = PR_TERMCHILD;
11473 if ac_fn_c_try_compile
"$LINENO"; then :
11475 $as_echo "#define HAVE_PR_TERMCHILD 1" >>confdefs.h
11476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11477 $as_echo "yes" >&6; }
11479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11480 $as_echo "no" >&6; }
11482 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PR_SET_PDEATHSIG constant in sys/prctl.h" >&5
11485 $as_echo_n "checking for PR_SET_PDEATHSIG constant in sys/prctl.h... " >&6; }
11486 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11487 /* end confdefs.h. */
11489 #ifdef HAVE_SYS_PRCTL_H
11490 #include <sys/prctl.h>
11496 int i = PR_SET_PDEATHSIG;
11501 if ac_fn_c_try_compile
"$LINENO"; then :
11503 $as_echo "#define HAVE_PR_SET_PDEATHSIG 1" >>confdefs.h
11504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11505 $as_echo "yes" >&6; }
11507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11508 $as_echo "no" >&6; }
11510 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
11513 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
11514 if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false
; then :
11515 $as_echo_n "(cached) " >&6
11517 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11518 /* end confdefs.h. */
11519 #include <sys/types.h>
11520 #include <termios.h>
11526 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11527 $EGREP "yes" >/dev
/null
2>&1; then :
11528 ac_cv_sys_tiocgwinsz_in_termios_h
=yes
11530 ac_cv_sys_tiocgwinsz_in_termios_h
=no
11535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
11536 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
11538 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
11539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
11540 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
11541 if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false
; then :
11542 $as_echo_n "(cached) " >&6
11544 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11545 /* end confdefs.h. */
11546 #include <sys/types.h>
11547 #include <sys/ioctl.h>
11553 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11554 $EGREP "yes" >/dev
/null
2>&1; then :
11555 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=yes
11557 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=no
11562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
11563 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
11565 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
11567 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
11573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports -rdynamic" >&5
11574 $as_echo_n "checking if linker supports -rdynamic... " >&6; }
11575 save_CFLAGS
="$CFLAGS"
11577 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11578 /* end confdefs.h. */
11588 if ac_fn_c_try_link
"$LINENO"; then :
11589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11590 $as_echo "yes" >&6; }
11591 rdynamic_flag
=-rdynamic
11593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11594 $as_echo "no" >&6; }
11598 rm -f core conftest.err conftest.
$ac_objext \
11599 conftest
$ac_exeext conftest.
$ac_ext
11600 CFLAGS
="$save_CFLAGS"
11604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether const arg for scandir() select method" >&5
11605 $as_echo_n "checking whether const arg for scandir() select method... " >&6; }
11606 cat <<End-of-File >conftest.c
11607 #include <stdlib.h>
11608 #include <unistd.h>
11609 #include <dirent.h>
11611 my_select(const struct dirent *foo) { return 0; }
11612 int main() { struct dirent **list; return scandir(".", &list, my_select, NULL); }
11614 (eval $ac_compile) 2>conftest.out
11615 cat conftest.out
>&5
11616 if test -s conftest.out
11618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11619 $as_echo "no" >&6; }
11622 $as_echo "#define HAVE_CONST_DIRENT 1" >>confdefs.h
11624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11625 $as_echo "yes" >&6; }
11629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct dirent has a d_off field" >&5
11630 $as_echo_n "checking whether struct dirent has a d_off field... " >&6; }
11631 cat <<End-of-File >conftest.c
11632 #include <stdlib.h>
11633 #include <unistd.h>
11634 #include <dirent.h>
11635 int main() { struct dirent d; d.d_off = 0; }
11637 (eval $ac_compile) 2>conftest.out
11638 cat conftest.out
>&5
11639 if test -s conftest.out
11641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11642 $as_echo "no" >&6; }
11645 $as_echo "#define HAVE_DIRENT_D_OFF 1" >>confdefs.h
11647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11648 $as_echo "yes" >&6; }
11652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if printf %p produces 0x prefix" >&5
11653 $as_echo_n "checking if printf %p produces 0x prefix... " >&6; }
11654 if test "$cross_compiling" = "yes"; then
11655 ans
=$printf_p_prefix
11656 echo "cross-compile -> \"$ans\"" >&5
11658 cat <<End-of-File >conftest.c
11660 int main(int argc, char **argv) { printf("%p", argv); return(0); }
11662 (eval $ac_compile) 2>&5
11663 (eval $ac_link) 2>&5
11665 echo "./conftest -> \"$ans\"" >&5
11671 $as_echo "#define HAVE_PRINTF_P_PFX 1" >>confdefs.h
11673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11674 $as_echo "yes" >&6; }
11677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11678 $as_echo "no" >&6; }
11681 rm -rf conftest conftest.
*
11685 # need to deal with this sort of cpp output ...
11686 # typedef long pid_t;
11687 # typedef unsigned int pid_t;
11688 # typedef unsigned int pid_t __attribute__ ((__mode__ (__SI__)));
11689 # __extension__ typedef int pid_t;
11695 # typedef ... *pid;
11696 # and chaining of the form
11697 # typedef long __pid_t;
11698 # typedef __pid_t pid_t;
11700 _raw
=`$CPP conftest.c \
11702 -e 's/[ ]__attribute__ ((.*));/;/' \
11703 -e 's/__extension__[ ][ ]*//' \
11705 /bozo/ { print; next }
11706 $1 == "typedef" { printf "%s",$0
11712 if ($0 ~ /{/) depth = 1
11715 wantsemi == 1 { printf " %s",$0
11716 if ($0 ~ /{/) depth++
11718 if ($0 ~ /}/) depth--
11719 if (depth > 0) next
11732 $1 == "typedef" { map[$NF] = ""
11733 for (i = 2; i < NF; i++) {
11737 map[$NF] = map[$NF] " " $i
11739 print $NF " -> " map[$NF] >"conftest.debug"
11742 $2 == "bozo" { t = $1
11743 printf "best guess: %s",t >"conftest.debug"
11744 while (map[t] != "") {
11746 printf " -> %s",t >"conftest.debug"
11748 print "" >"conftest.debug"
11757 unsigned|
'unsigned int')
11763 'long long'|
'long long int')
11764 if test $target_os = mingw
; then
11770 'unsigned long'|
'unsigned long int'|
'long unsigned int')
11773 'unsigned long long'|
'unsigned long long int')
11774 if test $target_os = mingw
; then
11780 *\
*) # pointer to a something
11783 struct\
*) # not much can be done here ...
11788 echo "FATAL ERROR: don't know what to do with type \"$_raw\""
11789 echo "... typedef mapping ..."
11791 rm -rf conftest conftest.
*
11797 { $as_echo "$as_me:${as_lineno-$LINENO}: checking printf type for pid_t" >&5
11798 $as_echo_n "checking printf type for pid_t... " >&6; }
11799 if test "$cross_compiling" = "yes"; then
11800 ans
=$printf_fmt_pid
11801 echo "cross-compile -> \"$ans\"" >&5
11804 cat <<End-of-File >conftest.c
11805 #include <sys/types.h>
11806 #include <unistd.h>
11812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fmt_pid" >&5
11813 $as_echo "$fmt_pid" >&6; }
11815 rm -rf conftest.c conftest.debug
11817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking printf type for int64_t " >&5
11818 $as_echo_n "checking printf type for int64_t ... " >&6; }
11819 if test "$cross_compiling" = "yes"; then
11820 ans
=$printf_fmt_int64
11821 echo "cross-compile -> \"$ans\"" >&5
11823 cat <<End-of-File >conftest.c
11825 #include <stdint.h>
11826 #include <inttypes.h>
11829 printf("\"%s\"\n", __PRI64_PREFIX "d");
11834 (eval $ac_link) 2>&5
11835 if test -x .
/conftest
11838 echo "./conftest -> \"$ans\"" >&5
11842 cat <<End-of-File >conftest.c
11844 #include <stdint.h>
11845 #include <string.h>
11849 int64_t bozo = 0x12345678abcdLL;
11850 sprintf(buf, "%lx", bozo);
11851 if (strcmp(buf, "12345678abcd") == 0)
11852 printf("\"ld\"\n");
11854 sprintf(buf, "%llx", bozo);
11855 if (strcmp(buf, "12345678abcd") == 0)
11856 printf("\"lld\"\n");
11861 (eval $ac_link) 2>&5
11862 if test -x .
/conftest
11865 echo "./conftest -> \"$ans\"" >&5
11871 echo 'FATAL ERROR: Cannot determine printf format for int64_t type'
11872 rm -rf conftest conftest.
*
11876 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$fmt_int64\"" >&5
11877 $as_echo "\"$fmt_int64\"" >&6; }
11879 rm -rf conftest.
* conftest
11881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking strtol or strtoll for int64_t" >&5
11882 $as_echo_n "checking strtol or strtoll for int64_t... " >&6; }
11883 if test "$cross_compiling" = "yes"; then
11885 echo "cross-compile -> \"$ans\"" >&5
11887 cat <<End-of-File >conftest.c
11889 #include <stdlib.h>
11892 long long int value = -1;
11893 value = strtol("1234567812345678", NULL, 16);
11894 if (value == 0x1234567812345678LL) {
11895 printf("strotol\n");
11898 value = strtoll("1234567812345678", NULL, 16);
11899 if (value == 0x1234567812345678LL) {
11900 printf("strtoll\n");
11906 (eval $ac_compile) 2>&5
11907 (eval $ac_link) 2>&5
11909 echo "./conftest -> \"$ans\"" >&5
11914 $as_echo "#define strtoint64 strtol" >>confdefs.h
11916 $as_echo "#define strtouint64 strtoul" >>confdefs.h
11918 { $as_echo "$as_me:${as_lineno-$LINENO}: result: strtol" >&5
11919 $as_echo "strtol" >&6; }
11922 $as_echo "#define strtoint64 strtoll" >>confdefs.h
11924 $as_echo "#define strtouint64 strtoull" >>confdefs.h
11926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: strtoll" >&5
11927 $as_echo "strtoll" >&6; }
11930 $as_echo "#define strtoint64 strtoll" >>confdefs.h
11932 $as_echo "#define strtouint64 strtoull" >>confdefs.h
11934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: assuming strtoll" >&5
11935 $as_echo "assuming strtoll" >&6; }
11938 rm -rf conftest conftest.
*
11940 if test "$do_threads" = "check" -o "$do_threads" = "yes"
11942 for ac_header
in pthread.h
11944 ac_fn_c_check_header_mongrel
"$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
11945 if test "x$ac_cv_header_pthread_h" = xyes
; then :
11946 cat >>confdefs.h
<<_ACEOF
11947 #define HAVE_PTHREAD_H 1
11952 if test "$do_threads" = "yes"
11954 as_fn_error $?
"cannot enable multi-threaded mode - no pthread.h" "$LINENO" 5
11962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_t in pthread.h" >&5
11963 $as_echo_n "checking for pthread_mutex_t in pthread.h... " >&6; }
11964 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11965 /* end confdefs.h. */
11966 #include <pthread.h>
11970 pthread_mutex_t mymutex;
11975 if ac_fn_c_try_compile
"$LINENO"; then :
11977 $as_echo "#define HAVE_PTHREAD_MUTEX_T 1" >>confdefs.h
11978 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11979 $as_echo "yes" >&6; }
11982 if test "$do_threads" = "yes"
11984 as_fn_error $?
"cannot enable multi-threaded mode - no mutexes" "$LINENO" 5
11986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11987 $as_echo "no" >&6; }
11991 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where pthread_create() is defined" >&5
11994 $as_echo_n "checking where pthread_create() is defined... " >&6; }
11995 for cand
in "" pthreads pthread
; do
11999 LIBS
=`echo $LIBS -l$cand`
12001 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12002 /* end confdefs.h. */
12004 #include <pthread.h>
12010 pthread_create(NULL, NULL, NULL, NULL);
12016 if ac_fn_c_try_link
"$LINENO"; then :
12017 { $as_echo "$as_me:${as_lineno-$LINENO}: result: lib${cand:-c}" >&5
12018 $as_echo "lib${cand:-c}" >&6; }
12021 lib_for_pthreads
="$cand"
12023 lib_for_pthreads
="-l$cand"
12028 rm -f core conftest.err conftest.
$ac_objext \
12029 conftest
$ac_exeext conftest.
$ac_ext
12034 if test "$ac_cv_header_pthread_h" = "yes"
12036 { $as_echo "$as_me:${as_lineno-$LINENO}: checking printf type for pthread_t" >&5
12037 $as_echo_n "checking printf type for pthread_t... " >&6; }
12038 cat <<End-of-File >conftest.c
12039 #include <pthread.h>
12043 fmt_pthread
="$_fmt"
12044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fmt_pthread" >&5
12045 $as_echo "$fmt_pthread" >&6; }
12047 rm -rf conftest.c conftest.debug
12049 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports __thread" >&5
12050 $as_echo_n "checking if compiler supports __thread... " >&6; }
12051 if test $target_os = netbsd
12053 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12054 /* end confdefs.h. */
12055 #include <pthread.h>
12056 #if __GNUC__ < 4 || ( __GNUC__ == 4 && __GNUC_MINOR__ < 5 )
12069 if ac_fn_c_try_compile
"$LINENO"; then :
12071 $as_echo "#define HAVE___THREAD 1" >>confdefs.h
12072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12073 $as_echo "yes" >&6; }
12075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12076 $as_echo "no" >&6; }
12078 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12080 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12081 /* end confdefs.h. */
12082 #include <pthread.h>
12092 if ac_fn_c_try_compile
"$LINENO"; then :
12094 $as_echo "#define HAVE___THREAD 1" >>confdefs.h
12095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12096 $as_echo "yes" >&6; }
12098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12099 $as_echo "no" >&6; }
12101 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_barrier_t in pthread.h" >&5
12105 $as_echo_n "checking for pthread_barrier_t in pthread.h... " >&6; }
12106 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12107 /* end confdefs.h. */
12108 #include <pthread.h>
12112 pthread_barrier_t mybarrier;
12117 if ac_fn_c_try_compile
"$LINENO"; then :
12119 $as_echo "#define HAVE_PTHREAD_BARRIER_T 1" >>confdefs.h
12120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12121 $as_echo "yes" >&6; }
12123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12124 $as_echo "no" >&6; }
12126 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12130 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sizeof suseconds_t" >&5
12131 $as_echo_n "checking sizeof suseconds_t... " >&6; }
12132 if test "$cross_compiling" = "yes"; then
12133 ans
=$sizeof_suseconds_t
12134 echo "cross-compile -> \"$ans\"" >&5
12136 cat <<End-of-File >conftest.c
12137 #include <sys/time.h>
12138 main() { printf("%d", (int)sizeof(suseconds_t)); }
12140 (eval $ac_compile) 2>&5
12141 (eval $ac_link) 2>&5
12143 echo "./conftest -> \"$ans\"" >&5
12144 rm -rf conftest conftest.
*
12146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
12147 $as_echo "$ans" >&6; }
12149 cat >>confdefs.h
<<_ACEOF
12150 #define SIZEOF_SUSECONDS_T $ans
12154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sizeof time_t" >&5
12155 $as_echo_n "checking sizeof time_t... " >&6; }
12156 if test "$cross_compiling" = "yes"; then
12158 echo "cross-compile -> \"$ans\"" >&5
12160 cat <<End-of-File >conftest.c
12161 #include <sys/time.h>
12162 main() { printf("%d", (int)sizeof(time_t)); }
12164 (eval $ac_compile) 2>&5
12165 (eval $ac_link) 2>&5
12167 echo "./conftest -> \"$ans\"" >&5
12168 rm -rf conftest conftest.
*
12170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
12171 $as_echo "$ans" >&6; }
12173 cat >>confdefs.h
<<_ACEOF
12174 #define SIZEOF_TIME_T $ans
12178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sizeof long" >&5
12179 $as_echo_n "checking sizeof long... " >&6; }
12180 if test "$cross_compiling" = "yes"; then
12182 echo "cross-compile -> \"$ans\"" >&5
12184 cat <<End-of-File >conftest.c
12186 main() { printf("%d", (int)sizeof(long)); }
12188 (eval $ac_compile) 2>&5
12189 (eval $ac_link) 2>&5
12191 echo "./conftest -> \"$ans\"" >&5
12193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
12194 $as_echo "$ans" >&6; }
12195 if test "$ans" = 4; then
12197 $as_echo "#define HAVE_32BIT_LONG 1" >>confdefs.h
12199 elif test "$ans" = 8; then
12201 $as_echo "#define HAVE_64BIT_LONG 1" >>confdefs.h
12205 echo "FATAL ERROR: size of long is not 32 or 64 bits, cannot proceed."
12206 echo "sizeof(char *) -> $ans"
12207 rm -rf conftest conftest.
*
12210 rm -rf conftest conftest.
*
12212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sizeof pointer" >&5
12213 $as_echo_n "checking sizeof pointer... " >&6; }
12214 if test "$cross_compiling" = "yes"; then
12215 ans
=$sizeof_pointer
12216 echo "cross-compile -> \"$ans\"" >&5
12218 cat <<End-of-File >conftest.c
12220 main() { printf("%d", (int)sizeof(char *)); }
12222 (eval $ac_compile) 2>&5
12223 (eval $ac_link) 2>&5
12225 echo "./conftest -> \"$ans\"" >&5
12227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
12228 $as_echo "$ans" >&6; }
12229 if test "$ans" = 4; then
12231 $as_echo "#define HAVE_32BIT_PTR 1" >>confdefs.h
12234 elif test "$ans" = 8; then
12236 $as_echo "#define HAVE_64BIT_PTR 1" >>confdefs.h
12241 echo "FATAL ERROR: size of pointer is not 32 or 64 bits, cannot proceed."
12242 echo "sizeof(char *) -> $ans"
12243 rm -rf conftest conftest.
*
12246 rm -rf conftest conftest.
*
12248 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sizeof int" >&5
12249 $as_echo_n "checking sizeof int... " >&6; }
12250 if test "$cross_compiling" = "yes"; then
12252 echo "cross-compile -> \"$ans\"" >&5
12254 cat <<End-of-File >conftest.c
12256 main() { printf("%d", (int)sizeof(int)); }
12258 (eval $ac_compile) 2>&5
12259 (eval $ac_link) 2>&5
12261 echo "./conftest -> \"$ans\"" >&5
12263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
12264 $as_echo "$ans" >&6; }
12265 if test "$ans" != 4
12268 echo "FATAL ERROR: sizeof(int) is not 32 bits, cannot proceed."
12269 echo "Note: 32-bit ints are assumed in the PCP external file formats and"
12270 echo " the over-the-wire PDU formats"
12271 rm -rf conftest conftest.
*
12274 rm -rf conftest conftest.
*
12276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bit fields allocated left-to-right" >&5
12277 $as_echo_n "checking if bit fields allocated left-to-right... " >&6; }
12278 if test "$cross_compiling" = "yes"; then
12279 ans
=$bit_field_scheme
12280 echo "cross-compile -> \"$ans\"" >&5
12282 cat <<End-of-File >conftest.c
12283 union { struct { unsigned int b:4; unsigned int c:4; } a; int p; } u;
12284 main() { u.a.b = 1; u.a.c = 2; printf("%0*x", 2*sizeof(int), u.p); }
12286 (eval $ac_compile) 2>&5
12287 (eval $ac_link) 2>&5
12289 echo "./conftest -> \"$ans\"" >&5
12294 # left-to-right starting from MSB (SGI cc on MIPS), or
12295 # left-to-right ending at LSB
12297 $as_echo "#define HAVE_BITFIELDS_LTOR 1" >>confdefs.h
12299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12300 $as_echo "yes" >&6; }
12303 # right-to-left ending at MSB, or
12304 # right-to-left starting from LSB (gcc in Intel)
12305 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12306 $as_echo "no" >&6; }
12309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
12310 $as_echo "unknown" >&6; }
12311 echo "FATAL ERROR: could not fathom your compiler's bit field allocation scheme"
12312 rm -f conftest conftest.
*
12316 rm -rf conftest conftest.
*
12318 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12319 /* end confdefs.h. */
12321 #include <stdlib.h>
12322 #include <unistd.h>
12329 double y = (double)x;
12335 if ac_fn_c_try_link
"$LINENO"; then :
12337 $as_echo "#define HAVE_CAST_U64_DOUBLE 1" >>confdefs.h
12340 rm -f core conftest.err conftest.
$ac_objext \
12341 conftest
$ac_exeext conftest.
$ac_ext
12343 for ac_func
in basename
12345 ac_fn_c_check_func
"$LINENO" "basename" "ac_cv_func_basename"
12346 if test "x$ac_cv_func_basename" = xyes
; then :
12347 cat >>confdefs.h
<<_ACEOF
12348 #define HAVE_BASENAME 1
12354 if test $ac_cv_func_basename = yes
12357 $as_echo "#define HAVE_BASENAME 1" >>confdefs.h
12360 $as_echo "#define HAVE_DIRNAME 1" >>confdefs.h
12362 lib_for_basename
=""
12364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for basename in -lgen" >&5
12365 $as_echo_n "checking for basename in -lgen... " >&6; }
12366 if ${ac_cv_lib_gen_basename+:} false
; then :
12367 $as_echo_n "(cached) " >&6
12369 ac_check_lib_save_LIBS
=$LIBS
12371 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12372 /* end confdefs.h. */
12374 /* Override any GCC internal prototype to avoid an error.
12375 Use char because int might match the return type of a GCC
12376 builtin and then its argument prototype would still apply. */
12384 return basename ();
12389 if ac_fn_c_try_link
"$LINENO"; then :
12390 ac_cv_lib_gen_basename
=yes
12392 ac_cv_lib_gen_basename
=no
12394 rm -f core conftest.err conftest.
$ac_objext \
12395 conftest
$ac_exeext conftest.
$ac_ext
12396 LIBS
=$ac_check_lib_save_LIBS
12398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_basename" >&5
12399 $as_echo "$ac_cv_lib_gen_basename" >&6; }
12400 if test "x$ac_cv_lib_gen_basename" = xyes
; then :
12401 cat >>confdefs.h
<<_ACEOF
12402 #define HAVE_LIBGEN 1
12409 if test $ac_cv_lib_gen_basename = yes
12412 $as_echo "#define HAVE_BASENAME 1" >>confdefs.h
12415 $as_echo "#define HAVE_DIRNAME 1" >>confdefs.h
12417 lib_for_basename
="-lgen"
12419 lib_for_basename
="-lpcp"
12424 lib_for_clock_gettime
=
12425 for ac_func
in clock_gettime
12427 ac_fn_c_check_func
"$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
12428 if test "x$ac_cv_func_clock_gettime" = xyes
; then :
12429 cat >>confdefs.h
<<_ACEOF
12430 #define HAVE_CLOCK_GETTIME 1
12436 if test $ac_cv_func_clock_gettime = no
12438 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
12439 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
12440 if ${ac_cv_lib_rt_clock_gettime+:} false
; then :
12441 $as_echo_n "(cached) " >&6
12443 ac_check_lib_save_LIBS
=$LIBS
12445 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12446 /* end confdefs.h. */
12448 /* Override any GCC internal prototype to avoid an error.
12449 Use char because int might match the return type of a GCC
12450 builtin and then its argument prototype would still apply. */
12454 char clock_gettime ();
12458 return clock_gettime ();
12463 if ac_fn_c_try_link
"$LINENO"; then :
12464 ac_cv_lib_rt_clock_gettime
=yes
12466 ac_cv_lib_rt_clock_gettime
=no
12468 rm -f core conftest.err conftest.
$ac_objext \
12469 conftest
$ac_exeext conftest.
$ac_ext
12470 LIBS
=$ac_check_lib_save_LIBS
12472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
12473 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
12474 if test "x$ac_cv_lib_rt_clock_gettime" = xyes
; then :
12475 cat >>confdefs.h
<<_ACEOF
12476 #define HAVE_LIBRT 1
12483 if test $ac_cv_lib_rt_clock_gettime = yes
12486 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
12494 for ac_func
in dlopen
12496 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
12497 if test "x$ac_cv_func_dlopen" = xyes
; then :
12498 cat >>confdefs.h
<<_ACEOF
12499 #define HAVE_DLOPEN 1
12505 if test $ac_cv_func_dlopen = no
12507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12508 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12509 if ${ac_cv_lib_dl_dlopen+:} false
; then :
12510 $as_echo_n "(cached) " >&6
12512 ac_check_lib_save_LIBS
=$LIBS
12514 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12515 /* end confdefs.h. */
12517 /* Override any GCC internal prototype to avoid an error.
12518 Use char because int might match the return type of a GCC
12519 builtin and then its argument prototype would still apply. */
12532 if ac_fn_c_try_link
"$LINENO"; then :
12533 ac_cv_lib_dl_dlopen
=yes
12535 ac_cv_lib_dl_dlopen
=no
12537 rm -f core conftest.err conftest.
$ac_objext \
12538 conftest
$ac_exeext conftest.
$ac_ext
12539 LIBS
=$ac_check_lib_save_LIBS
12541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12542 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12543 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
12544 cat >>confdefs.h
<<_ACEOF
12545 #define HAVE_LIBDL 1
12552 if test $ac_cv_lib_dl_dlopen = yes
12555 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
12557 lib_for_dlopen
=-ldl
12563 for ac_func
in flog10
12565 ac_fn_c_check_func
"$LINENO" "flog10" "ac_cv_func_flog10"
12566 if test "x$ac_cv_func_flog10" = xyes
; then :
12567 cat >>confdefs.h
<<_ACEOF
12568 #define HAVE_FLOG10 1
12574 if test $ac_cv_func_flog10 = no
12576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flog10 in -lm" >&5
12577 $as_echo_n "checking for flog10 in -lm... " >&6; }
12578 if ${ac_cv_lib_m_flog10+:} false
; then :
12579 $as_echo_n "(cached) " >&6
12581 ac_check_lib_save_LIBS
=$LIBS
12583 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12584 /* end confdefs.h. */
12586 /* Override any GCC internal prototype to avoid an error.
12587 Use char because int might match the return type of a GCC
12588 builtin and then its argument prototype would still apply. */
12601 if ac_fn_c_try_link
"$LINENO"; then :
12602 ac_cv_lib_m_flog10
=yes
12604 ac_cv_lib_m_flog10
=no
12606 rm -f core conftest.err conftest.
$ac_objext \
12607 conftest
$ac_exeext conftest.
$ac_ext
12608 LIBS
=$ac_check_lib_save_LIBS
12610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_flog10" >&5
12611 $as_echo "$ac_cv_lib_m_flog10" >&6; }
12612 if test "x$ac_cv_lib_m_flog10" = xyes
; then :
12613 cat >>confdefs.h
<<_ACEOF
12614 #define HAVE_LIBM 1
12621 if test $ac_cv_lib_m_flog10 = yes
12624 $as_echo "#define HAVE_FLOG10 1" >>confdefs.h
12630 $as_echo "#define HAVE_FLOG10 1" >>confdefs.h
12635 ac_fn_c_check_func
"$LINENO" "pow" "ac_cv_func_pow"
12636 if test "x$ac_cv_func_pow" = xyes
; then :
12637 cat >>confdefs.h
<<_ACEOF
12644 if test $ac_cv_func_pow = no
12646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
12647 $as_echo_n "checking for pow in -lm... " >&6; }
12648 if ${ac_cv_lib_m_pow+:} false
; then :
12649 $as_echo_n "(cached) " >&6
12651 ac_check_lib_save_LIBS
=$LIBS
12653 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12654 /* end confdefs.h. */
12656 /* Override any GCC internal prototype to avoid an error.
12657 Use char because int might match the return type of a GCC
12658 builtin and then its argument prototype would still apply. */
12671 if ac_fn_c_try_link
"$LINENO"; then :
12672 ac_cv_lib_m_pow
=yes
12676 rm -f core conftest.err conftest.
$ac_objext \
12677 conftest
$ac_exeext conftest.
$ac_ext
12678 LIBS
=$ac_check_lib_save_LIBS
12680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
12681 $as_echo "$ac_cv_lib_m_pow" >&6; }
12682 if test "x$ac_cv_lib_m_pow" = xyes
; then :
12683 cat >>confdefs.h
<<_ACEOF
12684 #define HAVE_LIBM 1
12691 if test $ac_cv_lib_m_pow = yes
12694 $as_echo "#define HAVE_POW 1" >>confdefs.h
12700 $as_echo "#define HAVE_POW 1" >>confdefs.h
12703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpclassify()" >&5
12704 $as_echo_n "checking for fpclassify()... " >&6; }
12705 ac_cv_func_fpclassify
=no
12706 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12707 /* end confdefs.h. */
12715 double x = 123.456;
12716 if (fpclassify(x) == FP_NAN) exit(1);
12722 if ac_fn_c_try_link
"$LINENO"; then :
12723 ac_cv_func_fpclassify
=yes
12725 rm -f core conftest.err conftest.
$ac_objext \
12726 conftest
$ac_exeext conftest.
$ac_ext
12727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fpclassify" >&5
12728 $as_echo "$ac_cv_func_fpclassify" >&6; }
12729 if test $ac_cv_func_fpclassify = no
12731 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpclassify() with -lm" >&5
12732 $as_echo_n "checking for fpclassify() with -lm... " >&6; }
12735 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12736 /* end confdefs.h. */
12744 double x = 123.456;
12745 if (fpclassify(x) == FP_NAN) exit(1);
12751 if ac_fn_c_try_link
"$LINENO"; then :
12752 ac_cv_func_fpclassify
=yes
12754 rm -f core conftest.err conftest.
$ac_objext \
12755 conftest
$ac_exeext conftest.
$ac_ext
12756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fpclassify" >&5
12757 $as_echo "$ac_cv_func_fpclassify" >&6; }
12758 if test $ac_cv_func_fpclassify = yes
12764 if test $ac_cv_func_fpclassify = yes
12767 $as_echo "#define HAVE_FPCLASSIFY 1" >>confdefs.h
12770 for ac_func
in isnan
12772 ac_fn_c_check_func
"$LINENO" "isnan" "ac_cv_func_isnan"
12773 if test "x$ac_cv_func_isnan" = xyes
; then :
12774 cat >>confdefs.h
<<_ACEOF
12775 #define HAVE_ISNAN 1
12781 if test $ac_cv_func_isnan = no
12783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan in -lm" >&5
12784 $as_echo_n "checking for isnan in -lm... " >&6; }
12785 if ${ac_cv_lib_m_isnan+:} false
; then :
12786 $as_echo_n "(cached) " >&6
12788 ac_check_lib_save_LIBS
=$LIBS
12790 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12791 /* end confdefs.h. */
12793 /* Override any GCC internal prototype to avoid an error.
12794 Use char because int might match the return type of a GCC
12795 builtin and then its argument prototype would still apply. */
12808 if ac_fn_c_try_link
"$LINENO"; then :
12809 ac_cv_lib_m_isnan
=yes
12811 ac_cv_lib_m_isnan
=no
12813 rm -f core conftest.err conftest.
$ac_objext \
12814 conftest
$ac_exeext conftest.
$ac_ext
12815 LIBS
=$ac_check_lib_save_LIBS
12817 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_isnan" >&5
12818 $as_echo "$ac_cv_lib_m_isnan" >&6; }
12819 if test "x$ac_cv_lib_m_isnan" = xyes
; then :
12820 cat >>confdefs.h
<<_ACEOF
12821 #define HAVE_LIBM 1
12828 if test $ac_cv_lib_m_isnan = yes
12831 $as_echo "#define HAVE_ISNAN 1" >>confdefs.h
12836 for ac_func
in isnanf
12838 ac_fn_c_check_func
"$LINENO" "isnanf" "ac_cv_func_isnanf"
12839 if test "x$ac_cv_func_isnanf" = xyes
; then :
12840 cat >>confdefs.h
<<_ACEOF
12841 #define HAVE_ISNANF 1
12847 if test $ac_cv_func_isnanf = no
12849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnanf in -lm" >&5
12850 $as_echo_n "checking for isnanf in -lm... " >&6; }
12851 if ${ac_cv_lib_m_isnanf+:} false
; then :
12852 $as_echo_n "(cached) " >&6
12854 ac_check_lib_save_LIBS
=$LIBS
12856 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12857 /* end confdefs.h. */
12859 /* Override any GCC internal prototype to avoid an error.
12860 Use char because int might match the return type of a GCC
12861 builtin and then its argument prototype would still apply. */
12874 if ac_fn_c_try_link
"$LINENO"; then :
12875 ac_cv_lib_m_isnanf
=yes
12877 ac_cv_lib_m_isnanf
=no
12879 rm -f core conftest.err conftest.
$ac_objext \
12880 conftest
$ac_exeext conftest.
$ac_ext
12881 LIBS
=$ac_check_lib_save_LIBS
12883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_isnanf" >&5
12884 $as_echo "$ac_cv_lib_m_isnanf" >&6; }
12885 if test "x$ac_cv_lib_m_isnanf" = xyes
; then :
12886 cat >>confdefs.h
<<_ACEOF
12887 #define HAVE_LIBM 1
12894 if test $ac_cv_lib_m_isnanf = yes
12897 $as_echo "#define HAVE_ISNANF 1" >>confdefs.h
12905 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12906 /* end confdefs.h. */
12907 #include <signal.h>
12916 if ac_fn_c_try_link
"$LINENO"; then :
12918 $as_echo "#define HAVE_SIGPF 1" >>confdefs.h
12921 rm -f core conftest.err conftest.
$ac_objext \
12922 conftest
$ac_exeext conftest.
$ac_ext
12924 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12925 /* end confdefs.h. */
12926 #include <signal.h>
12930 int x = SA_SIGINFO;
12935 if ac_fn_c_try_link
"$LINENO"; then :
12937 $as_echo "#define HAVE_SA_SIGINFO 1" >>confdefs.h
12940 rm -f core conftest.err conftest.
$ac_objext \
12941 conftest
$ac_exeext conftest.
$ac_ext
12943 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12944 /* end confdefs.h. */
12945 #include <signal.h>
12954 if ac_fn_c_try_link
"$LINENO"; then :
12956 $as_echo "#define HAVE_SIGPIPE 1" >>confdefs.h
12959 rm -f core conftest.err conftest.
$ac_objext \
12960 conftest
$ac_exeext conftest.
$ac_ext
12962 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12963 /* end confdefs.h. */
12964 #include <signal.h>
12973 if ac_fn_c_try_link
"$LINENO"; then :
12975 $as_echo "#define HAVE_SIGHUP 1" >>confdefs.h
12978 rm -f core conftest.err conftest.
$ac_objext \
12979 conftest
$ac_exeext conftest.
$ac_ext
12981 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12982 /* end confdefs.h. */
12983 #include <signal.h>
12992 if ac_fn_c_try_link
"$LINENO"; then :
12994 $as_echo "#define HAVE_SIGBUS 1" >>confdefs.h
12997 rm -f core conftest.err conftest.
$ac_objext \
12998 conftest
$ac_exeext conftest.
$ac_ext
13000 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13001 /* end confdefs.h. */
13002 #include <sys/wait.h>
13006 typedef void (*SIGRET)(int);
13007 SIGRET x = SIG_IGN;
13013 if ac_fn_c_try_link
"$LINENO"; then :
13015 $as_echo "#define HAVE_WAIT_INCLUDES_SIGNAL 1" >>confdefs.h
13018 rm -f core conftest.err conftest.
$ac_objext \
13019 conftest
$ac_exeext conftest.
$ac_ext
13021 have_stat_type
=false
13022 have_stat_name
=false
13023 if test $have_stat_name = false
13025 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13026 /* end confdefs.h. */
13027 #include <sys/stat.h>
13030 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13031 $EGREP "[ ]st_mtimespec" >/dev
/null
2>&1; then :
13032 have_stat_name
=true
;
13034 $as_echo "#define HAVE_ST_MTIME_WITH_SPEC 1" >>confdefs.h
13040 if test $have_stat_name = false
-a $target_os != darwin
-a $target_os != linux
-a $target_os != kfreebsd
-a $target_os != netbsd
13042 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13043 /* end confdefs.h. */
13044 #include <sys/stat.h>
13047 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13048 $EGREP "[ ]st_mtime" >/dev
/null
2>&1; then :
13049 have_stat_name
=true
;
13051 $as_echo "#define HAVE_ST_MTIME_WITH_E 1" >>confdefs.h
13057 if test $have_stat_type = false
13059 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13060 /* end confdefs.h. */
13061 #include <sys/stat.h>
13064 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13065 $EGREP "timestruc_t[ ][ ]*st_mtim" >/dev
/null
2>&1; then :
13066 have_stat_type
=true
;
13068 $as_echo "#define HAVE_STAT_TIMESTRUC 1" >>confdefs.h
13074 if test $have_stat_type = false
13076 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13077 /* end confdefs.h. */
13078 #include <sys/stat.h>
13081 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13082 $EGREP "timespec_t[ ][ ]*st_mtim" >/dev
/null
2>&1; then :
13083 have_stat_type
=true
;
13085 $as_echo "#define HAVE_STAT_TIMESPEC_T 1" >>confdefs.h
13091 if test $have_stat_type = false
13093 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13094 /* end confdefs.h. */
13095 #include <sys/stat.h>
13098 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13099 $EGREP "timespec[ ][ ]*st_mtim" >/dev
/null
2>&1; then :
13100 have_stat_type
=true
;
13102 $as_echo "#define HAVE_STAT_TIMESPEC 1" >>confdefs.h
13108 if test $have_stat_type = false
13110 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13111 /* end confdefs.h. */
13112 #include <sys/stat.h>
13115 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13116 $EGREP "time_t[ ][ ]*st_mtim" >/dev
/null
2>&1; then :
13117 have_stat_type
=true
;
13119 $as_echo "#define HAVE_STAT_TIME_T 1" >>confdefs.h
13125 if test $have_stat_type = false
13127 echo 'FATAL ERROR: Cannot determine struct stat time types.'
13128 rm -rf conftest conftest.
*
13133 pcp_etc_dir
=`eval echo $sysconfdir`
13134 pcp_etc_dir
=`eval echo $pcp_etc_dir`
13136 pcp_saslconf_dir
=`eval echo $sysconfdir/sasl2`
13137 pcp_saslconf_dir
=`eval echo $pcp_saslconf_dir`
13139 pcp_sysconf_dir
=`eval echo $sysconfdir/pcp`
13140 pcp_sysconf_dir
=`eval echo $pcp_sysconf_dir`
13142 pcp_pmcdconf_path
=$pcp_sysconf_dir/pmcd
/pmcd.conf
13143 pcp_pmcdrclocal_path
=$pcp_sysconf_dir/pmcd
/rc.
local
13144 pcp_pmcdoptions_path
=$pcp_sysconf_dir/pmcd
/pmcd.options
13145 pcp_pmwebdoptions_path
=$pcp_sysconf_dir/pmwebd
/pmwebd.options
13146 pcp_pmmgroptions_path
=$pcp_sysconf_dir/pmmgr
/pmmgr.options
13147 pcp_pmproxyoptions_path
=$pcp_sysconf_dir/pmproxy
/pmproxy.options
13148 pcp_pmiecontrol_path
=$pcp_sysconf_dir/pmie
/control
13149 pcp_pmsnapcontrol_path
=$pcp_sysconf_dir/pmsnap
/control
13150 pcp_pmloggercontrol_path
=$pcp_sysconf_dir/pmlogger
/control
13161 pcp_share_dir
=`eval echo $datarootdir/pcp`
13162 pcp_share_dir
=`eval echo $pcp_share_dir`
13165 pcp_binadm_dir
=`eval echo $libexecdir/pcp/bin`
13166 pcp_binadm_dir
=`eval echo $pcp_binadm_dir`
13169 pcp_var_dir
=`eval echo $localstatedir/lib/pcp`
13170 pcp_var_dir
=`eval echo $pcp_var_dir`
13174 # Check whether --with-configdir was given.
13175 if test "${with_configdir+set}" = set; then :
13176 withval
=$with_configdir; pcp_config_dir
=$withval
13178 pcp_config_dir
=$pcp_var_dir/config
13182 pcp_pmdas_dir
=$pcp_var_dir/pmdas
13185 pcp_lib_dir
=`eval echo $libdir`
13186 pcp_lib_dir
=`eval echo $pcp_lib_dir`
13187 pcp_lib32_dir
=`echo $pcp_lib_dir | sed -e s,64,, -e s,//,/,`
13192 # Check whether --with-perl_installdirs was given.
13193 if test "${with_perl_installdirs+set}" = set; then :
13194 withval
=$with_perl_installdirs; perl_installdirs
=$withval
13196 perl_installdirs
=vendor
13199 perl_installdirs
=`eval echo $perl_installdirs`
13200 perl_installdirs
=`eval echo $perl_installdirs`
13203 # Check whether --with-perl_install_base was given.
13204 if test "${with_perl_install_base+set}" = set; then :
13205 withval
=$with_perl_install_base; perl_install_base
=$withval
13207 perl_install_base
=$prefix
13210 perl_install_base
=`eval echo $perl_install_base`
13211 perl_install_base
=`eval echo $perl_install_base`
13215 # Check whether --with-python_prefix was given.
13216 if test "${with_python_prefix+set}" = set; then :
13217 withval
=$with_python_prefix; python_prefix
=$withval
13219 python_prefix
=$prefix
13222 python_prefix
=`eval echo $python_prefix`
13223 python_prefix
=`eval echo $python_prefix`
13226 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
13227 $as_echo_n "checking for X... " >&6; }
13230 # Check whether --with-x was given.
13231 if test "${with_x+set}" = set; then :
13235 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
13236 if test "x$with_x" = xno
; then
13237 # The user explicitly disabled X.
13240 case $x_includes,$x_libraries in #(
13241 *\'*) as_fn_error $?
"cannot use X directory names containing '" "$LINENO" 5;; #(
13242 *,NONE | NONE
,*) if ${ac_cv_have_x+:} false
; then :
13243 $as_echo_n "(cached) " >&6
13245 # One or both of the vars are not set, and there is no cached value.
13246 ac_x_includes
=no ac_x_libraries
=no
13247 rm -f -r conftest.dir
13248 if mkdir conftest.dir
; then
13250 cat >Imakefile
<<'_ACEOF'
13252 @echo incroot='${INCROOT}'
13254 @echo usrlibdir='${USRLIBDIR}'
13256 @echo libdir='${LIBDIR}'
13258 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
13259 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
13260 for ac_var
in incroot usrlibdir libdir
; do
13261 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
13263 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
13264 for ac_extension
in a so sl dylib la dll
; do
13265 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
13266 test -f "$ac_im_libdir/libX11.$ac_extension"; then
13267 ac_im_usrlibdir
=$ac_im_libdir; break
13270 # Screen out bogus values from the imake configuration. They are
13271 # bogus both because they are the default anyway, and because
13272 # using them would break gcc on systems where it needs fixed includes.
13273 case $ac_im_incroot in
13274 /usr
/include
) ac_x_includes
= ;;
13275 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
13277 case $ac_im_usrlibdir in
13278 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
13279 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
13283 rm -f -r conftest.dir
13286 # Standard set of common directories for X headers.
13287 # Check X11 before X11Rn because it is often a symlink to the current release.
13301 /usr/local/X11/include
13302 /usr/local/X11R7/include
13303 /usr/local/X11R6/include
13304 /usr/local/X11R5/include
13305 /usr/local/X11R4/include
13307 /usr/local/include/X11
13308 /usr/local/include/X11R7
13309 /usr/local/include/X11R6
13310 /usr/local/include/X11R5
13311 /usr/local/include/X11R4
13315 /usr/XFree86/include/X11
13319 /usr/unsupported/include
13320 /usr/athena/include
13321 /usr/local/x11r5/include
13322 /usr/lpp/Xamples/include
13324 /usr/openwin/include
13325 /usr/openwin/share/include'
13327 if test "$ac_x_includes" = no
; then
13328 # Guess where to find include files, by looking for Xlib.h.
13329 # First, try using that file with no special directory specified.
13330 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13331 /* end confdefs.h. */
13332 #include <X11/Xlib.h>
13334 if ac_fn_c_try_cpp
"$LINENO"; then :
13335 # We can compile using X headers with no special include directory.
13338 for ac_dir
in $ac_x_header_dirs; do
13339 if test -r "$ac_dir/X11/Xlib.h"; then
13340 ac_x_includes
=$ac_dir
13345 rm -f conftest.err conftest.i conftest.
$ac_ext
13346 fi # $ac_x_includes = no
13348 if test "$ac_x_libraries" = no
; then
13349 # Check for the libraries.
13350 # See if we find them without any special options.
13351 # Don't add to $LIBS permanently.
13354 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13355 /* end confdefs.h. */
13356 #include <X11/Xlib.h>
13365 if ac_fn_c_try_link
"$LINENO"; then :
13367 # We can link X programs with no special library path.
13371 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
13373 # Don't even attempt the hair of trying to link an X program!
13374 for ac_extension
in a so sl dylib la dll
; do
13375 if test -r "$ac_dir/libX11.$ac_extension"; then
13376 ac_x_libraries
=$ac_dir
13382 rm -f core conftest.err conftest.
$ac_objext \
13383 conftest
$ac_exeext conftest.
$ac_ext
13384 fi # $ac_x_libraries = no
13386 case $ac_x_includes,$ac_x_libraries in #(
13387 no
,* |
*,no |
*\'*)
13388 # Didn't find X, or a directory has "'" in its name.
13389 ac_cv_have_x
="have_x=no";; #(
13391 # Record where we found X for the cache.
13392 ac_cv_have_x
="have_x=yes\
13393 ac_x_includes='$ac_x_includes'\
13394 ac_x_libraries='$ac_x_libraries'"
13400 eval "$ac_cv_have_x"
13403 if test "$have_x" != yes; then
13404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
13405 $as_echo "$have_x" >&6; }
13408 # If each of the values was on the command line, it overrides each guess.
13409 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
13410 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
13411 # Update the cache value to reflect the command line values.
13412 ac_cv_have_x
="have_x=yes\
13413 ac_x_includes='$x_includes'\
13414 ac_x_libraries='$x_libraries'"
13415 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
13416 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
13419 if test "$no_x" = yes; then
13420 # Not all programs may use this symbol, but it does not hurt to define it.
13422 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
13424 X_CFLAGS
= X_PRE_LIBS
= X_LIBS
= X_EXTRA_LIBS
=
13426 if test -n "$x_includes"; then
13427 X_CFLAGS
="$X_CFLAGS -I$x_includes"
13430 # It would also be nice to do this for all -L options, not just this one.
13431 if test -n "$x_libraries"; then
13432 X_LIBS
="$X_LIBS -L$x_libraries"
13433 # For Solaris; some versions of Sun CC require a space after -R and
13434 # others require no space. Words are not sufficient . . . .
13435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
13436 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
13437 ac_xsave_LIBS
=$LIBS; LIBS
="$LIBS -R$x_libraries"
13438 ac_xsave_c_werror_flag
=$ac_c_werror_flag
13439 ac_c_werror_flag
=yes
13440 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13441 /* end confdefs.h. */
13451 if ac_fn_c_try_link
"$LINENO"; then :
13452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13453 $as_echo "no" >&6; }
13454 X_LIBS
="$X_LIBS -R$x_libraries"
13456 LIBS
="$ac_xsave_LIBS -R $x_libraries"
13457 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13458 /* end confdefs.h. */
13468 if ac_fn_c_try_link
"$LINENO"; then :
13469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13470 $as_echo "yes" >&6; }
13471 X_LIBS
="$X_LIBS -R $x_libraries"
13473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
13474 $as_echo "neither works" >&6; }
13476 rm -f core conftest.err conftest.
$ac_objext \
13477 conftest
$ac_exeext conftest.
$ac_ext
13479 rm -f core conftest.err conftest.
$ac_objext \
13480 conftest
$ac_exeext conftest.
$ac_ext
13481 ac_c_werror_flag
=$ac_xsave_c_werror_flag
13482 LIBS
=$ac_xsave_LIBS
13485 # Check for system-dependent libraries X programs must link with.
13486 # Do this before checking for the system-independent R6 libraries
13487 # (-lICE), since we may need -lsocket or whatever for X linking.
13489 if test "$ISC" = yes; then
13490 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl_s -linet"
13492 # Martyn Johnson says this is needed for Ultrix, if the X
13493 # libraries were built with DECnet support. And Karl Berry says
13494 # the Alpha needs dnet_stub (dnet does not exist).
13495 ac_xsave_LIBS
="$LIBS"; LIBS
="$LIBS $X_LIBS -lX11"
13496 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13497 /* end confdefs.h. */
13499 /* Override any GCC internal prototype to avoid an error.
13500 Use char because int might match the return type of a GCC
13501 builtin and then its argument prototype would still apply. */
13505 char XOpenDisplay ();
13509 return XOpenDisplay ();
13514 if ac_fn_c_try_link
"$LINENO"; then :
13517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
13518 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
13519 if ${ac_cv_lib_dnet_dnet_ntoa+:} false
; then :
13520 $as_echo_n "(cached) " >&6
13522 ac_check_lib_save_LIBS
=$LIBS
13523 LIBS
="-ldnet $LIBS"
13524 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13525 /* end confdefs.h. */
13527 /* Override any GCC internal prototype to avoid an error.
13528 Use char because int might match the return type of a GCC
13529 builtin and then its argument prototype would still apply. */
13537 return dnet_ntoa ();
13542 if ac_fn_c_try_link
"$LINENO"; then :
13543 ac_cv_lib_dnet_dnet_ntoa
=yes
13545 ac_cv_lib_dnet_dnet_ntoa
=no
13547 rm -f core conftest.err conftest.
$ac_objext \
13548 conftest
$ac_exeext conftest.
$ac_ext
13549 LIBS
=$ac_check_lib_save_LIBS
13551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
13552 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
13553 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes
; then :
13554 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet"
13557 if test $ac_cv_lib_dnet_dnet_ntoa = no
; then
13558 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
13559 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
13560 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false
; then :
13561 $as_echo_n "(cached) " >&6
13563 ac_check_lib_save_LIBS
=$LIBS
13564 LIBS
="-ldnet_stub $LIBS"
13565 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13566 /* end confdefs.h. */
13568 /* Override any GCC internal prototype to avoid an error.
13569 Use char because int might match the return type of a GCC
13570 builtin and then its argument prototype would still apply. */
13578 return dnet_ntoa ();
13583 if ac_fn_c_try_link
"$LINENO"; then :
13584 ac_cv_lib_dnet_stub_dnet_ntoa
=yes
13586 ac_cv_lib_dnet_stub_dnet_ntoa
=no
13588 rm -f core conftest.err conftest.
$ac_objext \
13589 conftest
$ac_exeext conftest.
$ac_ext
13590 LIBS
=$ac_check_lib_save_LIBS
13592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
13593 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
13594 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes
; then :
13595 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet_stub"
13600 rm -f core conftest.err conftest.
$ac_objext \
13601 conftest
$ac_exeext conftest.
$ac_ext
13602 LIBS
="$ac_xsave_LIBS"
13604 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
13605 # to get the SysV transport functions.
13606 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
13608 # The nsl library prevents programs from opening the X display
13609 # on Irix 5.2, according to T.E. Dickey.
13610 # The functions gethostbyname, getservbyname, and inet_addr are
13611 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
13612 ac_fn_c_check_func
"$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
13613 if test "x$ac_cv_func_gethostbyname" = xyes
; then :
13617 if test $ac_cv_func_gethostbyname = no
; then
13618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
13619 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
13620 if ${ac_cv_lib_nsl_gethostbyname+:} false
; then :
13621 $as_echo_n "(cached) " >&6
13623 ac_check_lib_save_LIBS
=$LIBS
13625 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13626 /* end confdefs.h. */
13628 /* Override any GCC internal prototype to avoid an error.
13629 Use char because int might match the return type of a GCC
13630 builtin and then its argument prototype would still apply. */
13634 char gethostbyname ();
13638 return gethostbyname ();
13643 if ac_fn_c_try_link
"$LINENO"; then :
13644 ac_cv_lib_nsl_gethostbyname
=yes
13646 ac_cv_lib_nsl_gethostbyname
=no
13648 rm -f core conftest.err conftest.
$ac_objext \
13649 conftest
$ac_exeext conftest.
$ac_ext
13650 LIBS
=$ac_check_lib_save_LIBS
13652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
13653 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
13654 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes
; then :
13655 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl"
13658 if test $ac_cv_lib_nsl_gethostbyname = no
; then
13659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
13660 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
13661 if ${ac_cv_lib_bsd_gethostbyname+:} false
; then :
13662 $as_echo_n "(cached) " >&6
13664 ac_check_lib_save_LIBS
=$LIBS
13666 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13667 /* end confdefs.h. */
13669 /* Override any GCC internal prototype to avoid an error.
13670 Use char because int might match the return type of a GCC
13671 builtin and then its argument prototype would still apply. */
13675 char gethostbyname ();
13679 return gethostbyname ();
13684 if ac_fn_c_try_link
"$LINENO"; then :
13685 ac_cv_lib_bsd_gethostbyname
=yes
13687 ac_cv_lib_bsd_gethostbyname
=no
13689 rm -f core conftest.err conftest.
$ac_objext \
13690 conftest
$ac_exeext conftest.
$ac_ext
13691 LIBS
=$ac_check_lib_save_LIBS
13693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
13694 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
13695 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes
; then :
13696 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lbsd"
13702 # lieder@skyler.mavd.honeywell.com says without -lsocket,
13703 # socket/setsockopt and other routines are undefined under SCO ODT
13704 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
13705 # on later versions), says Simon Leinen: it contains gethostby*
13706 # variants that don't use the name server (or something). -lsocket
13707 # must be given before -lnsl if both are needed. We assume that
13708 # if connect needs -lnsl, so does gethostbyname.
13709 ac_fn_c_check_func
"$LINENO" "connect" "ac_cv_func_connect"
13710 if test "x$ac_cv_func_connect" = xyes
; then :
13714 if test $ac_cv_func_connect = no
; then
13715 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
13716 $as_echo_n "checking for connect in -lsocket... " >&6; }
13717 if ${ac_cv_lib_socket_connect+:} false
; then :
13718 $as_echo_n "(cached) " >&6
13720 ac_check_lib_save_LIBS
=$LIBS
13721 LIBS
="-lsocket $X_EXTRA_LIBS $LIBS"
13722 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13723 /* end confdefs.h. */
13725 /* Override any GCC internal prototype to avoid an error.
13726 Use char because int might match the return type of a GCC
13727 builtin and then its argument prototype would still apply. */
13740 if ac_fn_c_try_link
"$LINENO"; then :
13741 ac_cv_lib_socket_connect
=yes
13743 ac_cv_lib_socket_connect
=no
13745 rm -f core conftest.err conftest.
$ac_objext \
13746 conftest
$ac_exeext conftest.
$ac_ext
13747 LIBS
=$ac_check_lib_save_LIBS
13749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
13750 $as_echo "$ac_cv_lib_socket_connect" >&6; }
13751 if test "x$ac_cv_lib_socket_connect" = xyes
; then :
13752 X_EXTRA_LIBS
="-lsocket $X_EXTRA_LIBS"
13757 # Guillermo Gomez says -lposix is necessary on A/UX.
13758 ac_fn_c_check_func
"$LINENO" "remove" "ac_cv_func_remove"
13759 if test "x$ac_cv_func_remove" = xyes
; then :
13763 if test $ac_cv_func_remove = no
; then
13764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
13765 $as_echo_n "checking for remove in -lposix... " >&6; }
13766 if ${ac_cv_lib_posix_remove+:} false
; then :
13767 $as_echo_n "(cached) " >&6
13769 ac_check_lib_save_LIBS
=$LIBS
13770 LIBS
="-lposix $LIBS"
13771 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13772 /* end confdefs.h. */
13774 /* Override any GCC internal prototype to avoid an error.
13775 Use char because int might match the return type of a GCC
13776 builtin and then its argument prototype would still apply. */
13789 if ac_fn_c_try_link
"$LINENO"; then :
13790 ac_cv_lib_posix_remove
=yes
13792 ac_cv_lib_posix_remove
=no
13794 rm -f core conftest.err conftest.
$ac_objext \
13795 conftest
$ac_exeext conftest.
$ac_ext
13796 LIBS
=$ac_check_lib_save_LIBS
13798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
13799 $as_echo "$ac_cv_lib_posix_remove" >&6; }
13800 if test "x$ac_cv_lib_posix_remove" = xyes
; then :
13801 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lposix"
13806 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
13807 ac_fn_c_check_func
"$LINENO" "shmat" "ac_cv_func_shmat"
13808 if test "x$ac_cv_func_shmat" = xyes
; then :
13812 if test $ac_cv_func_shmat = no
; then
13813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
13814 $as_echo_n "checking for shmat in -lipc... " >&6; }
13815 if ${ac_cv_lib_ipc_shmat+:} false
; then :
13816 $as_echo_n "(cached) " >&6
13818 ac_check_lib_save_LIBS
=$LIBS
13820 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13821 /* end confdefs.h. */
13823 /* Override any GCC internal prototype to avoid an error.
13824 Use char because int might match the return type of a GCC
13825 builtin and then its argument prototype would still apply. */
13838 if ac_fn_c_try_link
"$LINENO"; then :
13839 ac_cv_lib_ipc_shmat
=yes
13841 ac_cv_lib_ipc_shmat
=no
13843 rm -f core conftest.err conftest.
$ac_objext \
13844 conftest
$ac_exeext conftest.
$ac_ext
13845 LIBS
=$ac_check_lib_save_LIBS
13847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
13848 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
13849 if test "x$ac_cv_lib_ipc_shmat" = xyes
; then :
13850 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lipc"
13856 # Check for libraries that X11R6 Xt/Xaw programs need.
13857 ac_save_LDFLAGS
=$LDFLAGS
13858 test -n "$x_libraries" && LDFLAGS
="$LDFLAGS -L$x_libraries"
13859 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
13860 # check for ICE first), but we must link in the order -lSM -lICE or
13861 # we get undefined symbols. So assume we have SM if we have ICE.
13862 # These have to be linked with before -lX11, unlike the other
13863 # libraries we check for below, so use a different variable.
13864 # John Interrante, Karl Berry
13865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
13866 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
13867 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false
; then :
13868 $as_echo_n "(cached) " >&6
13870 ac_check_lib_save_LIBS
=$LIBS
13871 LIBS
="-lICE $X_EXTRA_LIBS $LIBS"
13872 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13873 /* end confdefs.h. */
13875 /* Override any GCC internal prototype to avoid an error.
13876 Use char because int might match the return type of a GCC
13877 builtin and then its argument prototype would still apply. */
13881 char IceConnectionNumber ();
13885 return IceConnectionNumber ();
13890 if ac_fn_c_try_link
"$LINENO"; then :
13891 ac_cv_lib_ICE_IceConnectionNumber
=yes
13893 ac_cv_lib_ICE_IceConnectionNumber
=no
13895 rm -f core conftest.err conftest.
$ac_objext \
13896 conftest
$ac_exeext conftest.
$ac_ext
13897 LIBS
=$ac_check_lib_save_LIBS
13899 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
13900 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
13901 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes
; then :
13902 X_PRE_LIBS
="$X_PRE_LIBS -lSM -lICE"
13905 LDFLAGS
=$ac_save_LDFLAGS
13909 pcp_x11_incflags
=$X_CFLAGS
13911 pcp_x11_libflags
=$X_LIBS
13913 pcp_x11_extra
=$X_EXTRA_LIBS
13915 pcp_x11_pre
=$X_PRE_LIBS
13918 have_gzipped_manpages
=false
13919 have_bzip2ed_manpages
=false
13920 have_lzmaed_manpages
=false
13921 have_xzed_manpages
=false
13922 need_old_tbl_header
=false
13924 pcp_man_dir
=`eval echo $mandir`
13925 pcp_man_dir
=`eval echo $pcp_man_dir`
13927 for d
in /usr
/man
/usr
/share
/man
$pcp_man_dir
13929 for sd
in man1 sman1
13931 if test -f $d/$sd/man
.1.gz
13933 have_gzipped_manpages
=true
13934 man_header
=`$ZIP -d < $d/$sd/man.1.gz | head -1`
13936 elif test -f $d/$sd/man
.1.bz2
13938 have_bzip2ed_manpages
=true
13939 man_header
=`$BZIP2 -d < $d/$sd/man.1.bz2 | head -1`
13941 elif test -f $d/$sd/man
.1.lzma
13943 have_lzmaed_manpages
=true
13944 man_header
=`$LZMA -d < $d/$sd/man.1.lzma | head -1`
13946 elif test -f $d/$sd/man
.1.xz
13948 have_xzed_manpages
=true
13949 man_header
=`$XZ -d < $d/$sd/man.1.xz | head -1`
13951 elif test -f $d/$sd/man
.1
13953 man_header
=`head -1 $d/$sd/man.1`
13958 if test x
"$man_header" = "x'\\\" t" -o x
"$man_header" = "x'\\\" te" ; then
13959 need_old_tbl_header
=true
13968 pcp_bin_dir
=`eval echo $bindir`
13969 pcp_bin_dir
=`eval echo $pcp_bin_dir`
13972 pcp_sbin_dir
=`eval echo $sbindir`
13973 pcp_sbin_dir
=`eval echo $pcp_sbin_dir`
13976 pcp_inc_dir
=`eval echo $includedir/pcp`
13977 pcp_inc_dir
=`eval echo $pcp_inc_dir`
13980 if test $target_os = linux
; then
13981 pcp_books_dir
=`eval echo $datarootdir/doc/pcp-doc`
13983 pcp_books_dir
=`eval echo $datarootdir/doc/pcp`
13985 pcp_books_dir
=`eval echo $pcp_books_dir`
13986 pcp_html_dir
=`eval echo $pcp_books_dir/html`
13990 if test $target_os = linux
; then
13991 pcp_icons_dir
=`eval echo $datarootdir/pcp-gui/pixmaps`
13993 pcp_icons_dir
=`eval echo $datarootdir/pcp/pixmaps`
13995 pcp_icons_dir
=`eval echo $pcp_icons_dir`
13998 pcp_desktop_dir
=`eval echo $datarootdir/applications`
13999 pcp_desktop_dir
=`eval echo $pcp_desktop_dir`
14003 # Check whether --with-rcdir was given.
14004 if test "${with_rcdir+set}" = set; then :
14005 withval
=$with_rcdir; pcp_rc_dir
=$withval
14010 pcp_rc_dir
="$pcp_share_dir/lib"
14012 pcp_rc_dir
="$pcp_etc_dir/init.d"
14019 # Check whether --with-sysconfigdir was given.
14020 if test "${with_sysconfigdir+set}" = set; then :
14021 withval
=$with_sysconfigdir; pcp_sysconfig_dir
=$withval
14023 pcp_sysconfig_dir
=$pcp_etc_dir/sysconfig
14029 # Check whether --with-logdir was given.
14030 if test "${with_logdir+set}" = set; then :
14031 withval
=$with_logdir; pcp_log_dir
=$withval
14033 pcp_log_dir
=$localstatedir/log
/pcp
14036 pcp_log_dir
=`eval echo $pcp_log_dir`
14037 pcp_log_dir
=`eval echo $pcp_log_dir`
14041 # Check whether --with-rundir was given.
14042 if test "${with_rundir+set}" = set; then :
14043 withval
=$with_rundir; pcp_run_dir
=$withval
14045 pcp_run_dir
=$localstatedir/run
/pcp
14048 pcp_run_dir
=`eval echo $pcp_run_dir`
14049 pcp_run_dir
=`eval echo $pcp_run_dir`
14053 # Check whether --with-tmpdir was given.
14054 if test "${with_tmpdir+set}" = set; then :
14055 withval
=$with_tmpdir; pcp_tmpfile_dir
=$withval
14057 pcp_tmpfile_dir
=$localstatedir/tmp
14060 pcp_tmpfile_dir
=`eval echo $pcp_tmpfile_dir`
14061 pcp_tmpfile_dir
=`eval echo $pcp_tmpfile_dir`
14064 pcp_tmp_dir
=`eval echo $pcp_var_dir/tmp`
14068 # Check whether --with-docdir was given.
14069 if test "${with_docdir+set}" = set; then :
14070 withval
=$with_docdir; pcp_doc_dir
=$withval
14072 PACKAGE
=pcp-
${PACKAGE_VERSION}; pcp_doc_dir
=$docdir
14075 pcp_doc_dir
=`eval echo $pcp_doc_dir`
14076 pcp_doc_dir
=`eval echo $pcp_doc_dir`
14080 # Check whether --with-demosdir was given.
14081 if test "${with_demosdir+set}" = set; then :
14082 withval
=$with_demosdir; pcp_demos_dir
=$withval
14084 pcp_demos_dir
=$pcp_share_dir/demos
14089 if test -z "$XCONFIRM"
14091 # Extract the first word of "xconfirm", so it can be a program name with args.
14092 set dummy xconfirm
; ac_word
=$2
14093 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14094 $as_echo_n "checking for $ac_word... " >&6; }
14095 if ${ac_cv_path_ac_xconfirm_prog+:} false
; then :
14096 $as_echo_n "(cached) " >&6
14098 case $ac_xconfirm_prog in
14100 ac_cv_path_ac_xconfirm_prog
="$ac_xconfirm_prog" # Let the user override the test with a path.
14103 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14104 for as_dir
in $PATH
14107 test -z "$as_dir" && as_dir
=.
14108 for ac_exec_ext
in '' $ac_executable_extensions; do
14109 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14110 ac_cv_path_ac_xconfirm_prog
="$as_dir/$ac_word$ac_exec_ext"
14111 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14118 test -z "$ac_cv_path_ac_xconfirm_prog" && ac_cv_path_ac_xconfirm_prog
="$pcp_bin_dir/pmconfirm"
14122 ac_xconfirm_prog
=$ac_cv_path_ac_xconfirm_prog
14123 if test -n "$ac_xconfirm_prog"; then
14124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_xconfirm_prog" >&5
14125 $as_echo "$ac_xconfirm_prog" >&6; }
14127 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14128 $as_echo "no" >&6; }
14133 ac_xconfirm_prog
=$XCONFIRM
14137 if test "$ac_cv_header_fcntl_h" = "yes"
14139 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FNDELAY in fcntl.h" >&5
14140 $as_echo_n "checking for FNDELAY in fcntl.h... " >&6; }
14141 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14142 /* end confdefs.h. */
14152 if ac_fn_c_try_compile
"$LINENO"; then :
14154 $as_echo "#define HAVE_FNDELAY 1" >>confdefs.h
14156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14157 $as_echo "yes" >&6; }
14159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14160 $as_echo "no" >&6; }
14162 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14165 if test "$ac_cv_header_libzfs_h" = "yes"
14167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 5-argument style zpool_vdev_name" >&5
14168 $as_echo_n "checking for 5-argument style zpool_vdev_name... " >&6; }
14169 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14170 /* end confdefs.h. */
14171 #include <libzfs.h>
14175 libzfs_handle_t *zh;
14176 zpool_handle_t *zp;
14178 (void) zpool_vdev_name(zh, zp, np, B_FALSE, B_FALSE);
14184 if ac_fn_c_try_compile
"$LINENO"; then :
14186 $as_echo "#define HAVE_ZPOOL_VDEV_NAME_5ARG 1" >>confdefs.h
14188 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14189 $as_echo "yes" >&6; }
14191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14192 $as_echo "no" >&6; }
14194 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 4-argument style zpool_vdev_name" >&5
14197 $as_echo_n "checking for 4-argument style zpool_vdev_name... " >&6; }
14198 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14199 /* end confdefs.h. */
14200 #include <libzfs.h>
14204 libzfs_handle_t *zh;
14205 zpool_handle_t *zp;
14207 (void) zpool_vdev_name(zh, zp, np, B_FALSE);
14213 if ac_fn_c_try_compile
"$LINENO"; then :
14215 $as_echo "#define HAVE_ZPOOL_VDEV_NAME_4ARG 1" >>confdefs.h
14217 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14218 $as_echo "yes" >&6; }
14220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14221 $as_echo "no" >&6; }
14223 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14226 if test "$do_secure" = "check" -o "$do_secure" = "yes"
14230 saved_CFLAGS
="$CFLAGS"
14231 saved_CPPFLAGS
="$CPPFLAGS"
14232 NSS_INC_DIRS
="-I/usr/include/nss -I/usr/include/nss3"
14233 NSPR_INC_DIRS
="-I/usr/include/nspr -I/usr/include/nspr4"
14234 CFLAGS
="$CFLAGS $NSS_INC_DIRS $NSPR_INC_DIRS"
14235 CPPFLAGS
="$CPPFLAGS $NSS_INC_DIRS $NSPR_INC_DIRS"
14237 for ac_header
in nss
/nss.h
14239 ac_fn_c_check_header_mongrel
"$LINENO" "nss/nss.h" "ac_cv_header_nss_nss_h" "$ac_includes_default"
14240 if test "x$ac_cv_header_nss_nss_h" = xyes
; then :
14241 cat >>confdefs.h
<<_ACEOF
14242 #define HAVE_NSS_NSS_H 1
14244 NSSCFLAGS
=-I/usr
/include
/nss
14247 for ac_header
in nss
3/nss.h
14249 ac_fn_c_check_header_mongrel
"$LINENO" "nss3/nss.h" "ac_cv_header_nss3_nss_h" "$ac_includes_default"
14250 if test "x$ac_cv_header_nss3_nss_h" = xyes
; then :
14251 cat >>confdefs.h
<<_ACEOF
14252 #define HAVE_NSS3_NSS_H 1
14254 NSSCFLAGS
=-I/usr
/include
/nss3
14257 enable_secure
=false
14258 if test "$do_secure" = "yes"
14260 as_fn_error $?
"cannot enable secure sockets mode - no NSS header" "$LINENO" 5
14274 for ac_header
in nspr
/nspr.h
14276 ac_fn_c_check_header_mongrel
"$LINENO" "nspr/nspr.h" "ac_cv_header_nspr_nspr_h" "$ac_includes_default"
14277 if test "x$ac_cv_header_nspr_nspr_h" = xyes
; then :
14278 cat >>confdefs.h
<<_ACEOF
14279 #define HAVE_NSPR_NSPR_H 1
14281 NSPRCFLAGS
=-I/usr
/include
/nspr
14284 for ac_header
in nspr
4/nspr.h
14286 ac_fn_c_check_header_mongrel
"$LINENO" "nspr4/nspr.h" "ac_cv_header_nspr4_nspr_h" "$ac_includes_default"
14287 if test "x$ac_cv_header_nspr4_nspr_h" = xyes
; then :
14288 cat >>confdefs.h
<<_ACEOF
14289 #define HAVE_NSPR4_NSPR_H 1
14291 NSPRCFLAGS
=-I/usr
/include
/nspr4
14294 enable_secure
=false
14295 if test "$do_secure" = "yes"
14297 as_fn_error $?
"cannot enable secure sockets mode - no NSPR header" "$LINENO" 5
14311 for ac_header
in sasl
/sasl.h
14313 ac_fn_c_check_header_mongrel
"$LINENO" "sasl/sasl.h" "ac_cv_header_sasl_sasl_h" "$ac_includes_default"
14314 if test "x$ac_cv_header_sasl_sasl_h" = xyes
; then :
14315 cat >>confdefs.h
<<_ACEOF
14316 #define HAVE_SASL_SASL_H 1
14318 SASLCFLAGS
=-I/usr
/include
/sasl
14321 enable_secure
=false
14322 if test "$do_secure" = "yes"
14324 as_fn_error $?
"cannot enable secure sockets mode - no SASL header" "$LINENO" 5
14333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sasl_server_init in -lsasl2" >&5
14334 $as_echo_n "checking for sasl_server_init in -lsasl2... " >&6; }
14335 if ${ac_cv_lib_sasl2_sasl_server_init+:} false
; then :
14336 $as_echo_n "(cached) " >&6
14338 ac_check_lib_save_LIBS
=$LIBS
14339 LIBS
="-lsasl2 $LIBS"
14340 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14341 /* end confdefs.h. */
14343 /* Override any GCC internal prototype to avoid an error.
14344 Use char because int might match the return type of a GCC
14345 builtin and then its argument prototype would still apply. */
14349 char sasl_server_init ();
14353 return sasl_server_init ();
14358 if ac_fn_c_try_link
"$LINENO"; then :
14359 ac_cv_lib_sasl2_sasl_server_init
=yes
14361 ac_cv_lib_sasl2_sasl_server_init
=no
14363 rm -f core conftest.err conftest.
$ac_objext \
14364 conftest
$ac_exeext conftest.
$ac_ext
14365 LIBS
=$ac_check_lib_save_LIBS
14367 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sasl2_sasl_server_init" >&5
14368 $as_echo "$ac_cv_lib_sasl2_sasl_server_init" >&6; }
14369 if test "x$ac_cv_lib_sasl2_sasl_server_init" = xyes
; then :
14370 lib_for_sasl
="-lsasl2"
14373 enable_secure
=false
14374 if test "$do_secure" = "yes"
14376 as_fn_error $?
"cannot enable secure sockets mode - no SASL library" "$LINENO" 5
14383 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_ImportFD in -lssl" >&5
14384 $as_echo_n "checking for SSL_ImportFD in -lssl... " >&6; }
14385 if ${ac_cv_lib_ssl_SSL_ImportFD+:} false
; then :
14386 $as_echo_n "(cached) " >&6
14388 ac_check_lib_save_LIBS
=$LIBS
14390 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14391 /* end confdefs.h. */
14393 /* Override any GCC internal prototype to avoid an error.
14394 Use char because int might match the return type of a GCC
14395 builtin and then its argument prototype would still apply. */
14399 char SSL_ImportFD ();
14403 return SSL_ImportFD ();
14408 if ac_fn_c_try_link
"$LINENO"; then :
14409 ac_cv_lib_ssl_SSL_ImportFD
=yes
14411 ac_cv_lib_ssl_SSL_ImportFD
=no
14413 rm -f core conftest.err conftest.
$ac_objext \
14414 conftest
$ac_exeext conftest.
$ac_ext
14415 LIBS
=$ac_check_lib_save_LIBS
14417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_ImportFD" >&5
14418 $as_echo "$ac_cv_lib_ssl_SSL_ImportFD" >&6; }
14419 if test "x$ac_cv_lib_ssl_SSL_ImportFD" = xyes
; then :
14420 lib_for_ssl
="-lssl"
14423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_ImportFD in -lssl3" >&5
14424 $as_echo_n "checking for SSL_ImportFD in -lssl3... " >&6; }
14425 if ${ac_cv_lib_ssl3_SSL_ImportFD+:} false
; then :
14426 $as_echo_n "(cached) " >&6
14428 ac_check_lib_save_LIBS
=$LIBS
14429 LIBS
="-lssl3 $LIBS"
14430 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14431 /* end confdefs.h. */
14433 /* Override any GCC internal prototype to avoid an error.
14434 Use char because int might match the return type of a GCC
14435 builtin and then its argument prototype would still apply. */
14439 char SSL_ImportFD ();
14443 return SSL_ImportFD ();
14448 if ac_fn_c_try_link
"$LINENO"; then :
14449 ac_cv_lib_ssl3_SSL_ImportFD
=yes
14451 ac_cv_lib_ssl3_SSL_ImportFD
=no
14453 rm -f core conftest.err conftest.
$ac_objext \
14454 conftest
$ac_exeext conftest.
$ac_ext
14455 LIBS
=$ac_check_lib_save_LIBS
14457 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl3_SSL_ImportFD" >&5
14458 $as_echo "$ac_cv_lib_ssl3_SSL_ImportFD" >&6; }
14459 if test "x$ac_cv_lib_ssl3_SSL_ImportFD" = xyes
; then :
14460 lib_for_ssl
="-lssl3"
14463 enable_secure
=false
14464 if test "$do_secure" = "yes"
14466 as_fn_error $?
"cannot enable secure sockets mode - no SSL library" "$LINENO" 5
14476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSS_Init in -lnss" >&5
14477 $as_echo_n "checking for NSS_Init in -lnss... " >&6; }
14478 if ${ac_cv_lib_nss_NSS_Init+:} false
; then :
14479 $as_echo_n "(cached) " >&6
14481 ac_check_lib_save_LIBS
=$LIBS
14483 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14484 /* end confdefs.h. */
14486 /* Override any GCC internal prototype to avoid an error.
14487 Use char because int might match the return type of a GCC
14488 builtin and then its argument prototype would still apply. */
14496 return NSS_Init ();
14501 if ac_fn_c_try_link
"$LINENO"; then :
14502 ac_cv_lib_nss_NSS_Init
=yes
14504 ac_cv_lib_nss_NSS_Init
=no
14506 rm -f core conftest.err conftest.
$ac_objext \
14507 conftest
$ac_exeext conftest.
$ac_ext
14508 LIBS
=$ac_check_lib_save_LIBS
14510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nss_NSS_Init" >&5
14511 $as_echo "$ac_cv_lib_nss_NSS_Init" >&6; }
14512 if test "x$ac_cv_lib_nss_NSS_Init" = xyes
; then :
14513 lib_for_nss
="-lnss"
14516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSS_Init in -lnss3" >&5
14517 $as_echo_n "checking for NSS_Init in -lnss3... " >&6; }
14518 if ${ac_cv_lib_nss3_NSS_Init+:} false
; then :
14519 $as_echo_n "(cached) " >&6
14521 ac_check_lib_save_LIBS
=$LIBS
14522 LIBS
="-lnss3 $LIBS"
14523 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14524 /* end confdefs.h. */
14526 /* Override any GCC internal prototype to avoid an error.
14527 Use char because int might match the return type of a GCC
14528 builtin and then its argument prototype would still apply. */
14536 return NSS_Init ();
14541 if ac_fn_c_try_link
"$LINENO"; then :
14542 ac_cv_lib_nss3_NSS_Init
=yes
14544 ac_cv_lib_nss3_NSS_Init
=no
14546 rm -f core conftest.err conftest.
$ac_objext \
14547 conftest
$ac_exeext conftest.
$ac_ext
14548 LIBS
=$ac_check_lib_save_LIBS
14550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nss3_NSS_Init" >&5
14551 $as_echo "$ac_cv_lib_nss3_NSS_Init" >&6; }
14552 if test "x$ac_cv_lib_nss3_NSS_Init" = xyes
; then :
14553 lib_for_nss
="-lnss3"
14556 enable_secure
=false
14557 if test "$do_secure" = "yes"
14559 as_fn_error $?
"cannot enable secure sockets mode - no NSS library" "$LINENO" 5
14569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PR_Init in -lnspr" >&5
14570 $as_echo_n "checking for PR_Init in -lnspr... " >&6; }
14571 if ${ac_cv_lib_nspr_PR_Init+:} false
; then :
14572 $as_echo_n "(cached) " >&6
14574 ac_check_lib_save_LIBS
=$LIBS
14575 LIBS
="-lnspr $LIBS"
14576 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14577 /* end confdefs.h. */
14579 /* Override any GCC internal prototype to avoid an error.
14580 Use char because int might match the return type of a GCC
14581 builtin and then its argument prototype would still apply. */
14594 if ac_fn_c_try_link
"$LINENO"; then :
14595 ac_cv_lib_nspr_PR_Init
=yes
14597 ac_cv_lib_nspr_PR_Init
=no
14599 rm -f core conftest.err conftest.
$ac_objext \
14600 conftest
$ac_exeext conftest.
$ac_ext
14601 LIBS
=$ac_check_lib_save_LIBS
14603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nspr_PR_Init" >&5
14604 $as_echo "$ac_cv_lib_nspr_PR_Init" >&6; }
14605 if test "x$ac_cv_lib_nspr_PR_Init" = xyes
; then :
14606 lib_for_nspr
="-lnspr"
14609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PR_Init in -lnspr4" >&5
14610 $as_echo_n "checking for PR_Init in -lnspr4... " >&6; }
14611 if ${ac_cv_lib_nspr4_PR_Init+:} false
; then :
14612 $as_echo_n "(cached) " >&6
14614 ac_check_lib_save_LIBS
=$LIBS
14615 LIBS
="-lnspr4 $LIBS"
14616 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14617 /* end confdefs.h. */
14619 /* Override any GCC internal prototype to avoid an error.
14620 Use char because int might match the return type of a GCC
14621 builtin and then its argument prototype would still apply. */
14634 if ac_fn_c_try_link
"$LINENO"; then :
14635 ac_cv_lib_nspr4_PR_Init
=yes
14637 ac_cv_lib_nspr4_PR_Init
=no
14639 rm -f core conftest.err conftest.
$ac_objext \
14640 conftest
$ac_exeext conftest.
$ac_ext
14641 LIBS
=$ac_check_lib_save_LIBS
14643 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nspr4_PR_Init" >&5
14644 $as_echo "$ac_cv_lib_nspr4_PR_Init" >&6; }
14645 if test "x$ac_cv_lib_nspr4_PR_Init" = xyes
; then :
14646 lib_for_nspr
="-lnspr4"
14649 enable_secure
=false
14650 if test "$do_secure" = "yes"
14652 as_fn_error $?
"cannot enable secure sockets mode - no NSPR library" "$LINENO" 5
14662 if test "$enable_secure" = "true"
14665 $as_echo "#define HAVE_SECURE_SOCKETS 1" >>confdefs.h
14670 CPPFLAGS
="$saved_CPPFLAGS"
14671 CFLAGS
="$saved_CFLAGS"
14674 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_add_4 in -latomic" >&5
14675 $as_echo_n "checking for __atomic_fetch_add_4 in -latomic... " >&6; }
14676 if ${ac_cv_lib_atomic___atomic_fetch_add_4+:} false
; then :
14677 $as_echo_n "(cached) " >&6
14679 ac_check_lib_save_LIBS
=$LIBS
14680 LIBS
="-latomic $LIBS"
14681 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14682 /* end confdefs.h. */
14684 /* Override any GCC internal prototype to avoid an error.
14685 Use char because int might match the return type of a GCC
14686 builtin and then its argument prototype would still apply. */
14690 char __atomic_fetch_add_4 ();
14694 return __atomic_fetch_add_4 ();
14699 if ac_fn_c_try_link
"$LINENO"; then :
14700 ac_cv_lib_atomic___atomic_fetch_add_4
=yes
14702 ac_cv_lib_atomic___atomic_fetch_add_4
=no
14704 rm -f core conftest.err conftest.
$ac_objext \
14705 conftest
$ac_exeext conftest.
$ac_ext
14706 LIBS
=$ac_check_lib_save_LIBS
14708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_atomic___atomic_fetch_add_4" >&5
14709 $as_echo "$ac_cv_lib_atomic___atomic_fetch_add_4" >&6; }
14710 if test "x$ac_cv_lib_atomic___atomic_fetch_add_4" = xyes
; then :
14711 lib_for_atomic
="-latomic"
14716 if test -f /usr
/include
/sn
/arsess.h
14718 pcp_mpi_dirs
=libpcp_mpi\ libpcp_mpiread
14724 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_un in sys/un.h" >&5
14725 $as_echo_n "checking for struct sockaddr_un in sys/un.h... " >&6; }
14726 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14727 /* end confdefs.h. */
14729 #include <sys/types.h>
14730 #ifdef HAVE_SYS_SOCKET_H
14731 #include <sys/socket.h>
14733 #ifdef HAVE_SYS_UN_H
14734 #include <sys/un.h>
14740 struct sockaddr_un sa; sa.sun_family = AF_UNIX;
14745 if ac_fn_c_try_compile
"$LINENO"; then :
14747 $as_echo "#define HAVE_STRUCT_SOCKADDR_UN 1" >>confdefs.h
14748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14749 $as_echo "yes" >&6; }
14751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14752 $as_echo "no" >&6; }
14754 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct ucred in sys/socket.h" >&5
14757 $as_echo_n "checking for struct ucred in sys/socket.h... " >&6; }
14758 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14759 /* end confdefs.h. */
14761 #include <sys/types.h>
14762 #ifdef HAVE_SYS_SOCKET_H
14763 #include <sys/socket.h>
14765 #ifdef HAVE_SYS_UN_H
14766 #include <sys/un.h>
14772 struct ucred ucred; ucred.uid = 0;
14777 if ac_fn_c_try_compile
"$LINENO"; then :
14779 $as_echo "#define HAVE_STRUCT_UCRED 1" >>confdefs.h
14780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14781 $as_echo "yes" >&6; }
14783 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14784 $as_echo "no" >&6; }
14786 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in time.h" >&5
14789 $as_echo_n "checking for struct timespec in time.h... " >&6; }
14790 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14791 /* end confdefs.h. */
14798 struct timespec foo;
14803 if ac_fn_c_try_compile
"$LINENO"; then :
14805 $as_echo "#define HAVE_STRUCT_TIMESPEC 1" >>confdefs.h
14806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14807 $as_echo "yes" >&6; }
14809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14810 $as_echo "no" >&6; }
14812 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for altzone in time.h" >&5
14815 $as_echo_n "checking for altzone in time.h... " >&6; }
14816 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14817 /* end confdefs.h. */
14824 time_t az = altzone;
14829 if ac_fn_c_try_compile
"$LINENO"; then :
14831 $as_echo "#define HAVE_ALTZONE 1" >>confdefs.h
14832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14833 $as_echo "yes" >&6; }
14835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14836 $as_echo "no" >&6; }
14838 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strftime knows about %z" >&5
14841 $as_echo_n "checking if strftime knows about %z... " >&6; }
14842 if test "$cross_compiling" = yes; then :
14843 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14844 $as_echo "no" >&6; }
14846 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14847 /* end confdefs.h. */
14852 time_t t = time(NULL);
14853 struct tm * t1 = localtime (&t);
14854 if (strftime (b, 32, "%z", t1) < 3)
14856 if (strcmp(b, "%z") == 0)
14862 if ac_fn_c_try_run
"$LINENO"; then :
14864 $as_echo "#define HAVE_STRFTIME_z 1" >>confdefs.h
14865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14866 $as_echo "yes" >&6; }
14868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14869 $as_echo "no" >&6; }
14871 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14872 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14876 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r returns char *" >&5
14877 $as_echo_n "checking if strerror_r returns char *... " >&6; }
14878 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14879 /* end confdefs.h. */
14880 #include <string.h>
14884 strerror_r(0, NULL, 0)[0];
14889 if ac_fn_c_try_compile
"$LINENO"; then :
14891 $as_echo "#define HAVE_STRERROR_R_PTR 1" >>confdefs.h
14892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14893 $as_echo "yes" >&6; }
14895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14896 $as_echo "no" >&6; }
14898 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14904 ac_fn_c_check_func
"$LINENO" "readline" "ac_cv_func_readline"
14905 if test "x$ac_cv_func_readline" = xyes
; then :
14909 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
14910 $as_echo_n "checking for readline in -lreadline... " >&6; }
14911 if ${ac_cv_lib_readline_readline+:} false
; then :
14912 $as_echo_n "(cached) " >&6
14914 ac_check_lib_save_LIBS
=$LIBS
14915 LIBS
="-lreadline $LIBS"
14916 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14917 /* end confdefs.h. */
14919 /* Override any GCC internal prototype to avoid an error.
14920 Use char because int might match the return type of a GCC
14921 builtin and then its argument prototype would still apply. */
14929 return readline ();
14934 if ac_fn_c_try_link
"$LINENO"; then :
14935 ac_cv_lib_readline_readline
=yes
14937 ac_cv_lib_readline_readline
=no
14939 rm -f core conftest.err conftest.
$ac_objext \
14940 conftest
$ac_exeext conftest.
$ac_ext
14941 LIBS
=$ac_check_lib_save_LIBS
14943 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
14944 $as_echo "$ac_cv_lib_readline_readline" >&6; }
14945 if test "x$ac_cv_lib_readline_readline" = xyes
; then :
14946 cat >>confdefs.h
<<_ACEOF
14947 #define HAVE_LIBREADLINE 1
14950 LIBS
="-lreadline $LIBS"
14954 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for add_history in -lreadline" >&5
14955 $as_echo_n "checking for add_history in -lreadline... " >&6; }
14956 if ${ac_cv_lib_readline_add_history+:} false
; then :
14957 $as_echo_n "(cached) " >&6
14959 ac_check_lib_save_LIBS
=$LIBS
14960 LIBS
="-lreadline -lcurses $LIBS"
14961 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14962 /* end confdefs.h. */
14964 /* Override any GCC internal prototype to avoid an error.
14965 Use char because int might match the return type of a GCC
14966 builtin and then its argument prototype would still apply. */
14970 char add_history ();
14974 return add_history ();
14979 if ac_fn_c_try_link
"$LINENO"; then :
14980 ac_cv_lib_readline_add_history
=yes
14982 ac_cv_lib_readline_add_history
=no
14984 rm -f core conftest.err conftest.
$ac_objext \
14985 conftest
$ac_exeext conftest.
$ac_ext
14986 LIBS
=$ac_check_lib_save_LIBS
14988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_add_history" >&5
14989 $as_echo "$ac_cv_lib_readline_add_history" >&6; }
14990 if test "x$ac_cv_lib_readline_add_history" = xyes
; then :
14991 cat >>confdefs.h
<<_ACEOF
14992 #define HAVE_LIBREADLINE 1
14995 LIBS
="-lreadline $LIBS"
15005 if test $ac_cv_func_readline = yes
15008 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
15010 elif test $ac_cv_lib_readline_readline = yes
15013 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
15015 lib_for_readline
=-lreadline
15016 elif test $ac_cv_lib_readline_add_history = yes
15019 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
15021 lib_for_curses
=-lcurses
15022 lib_for_readline
=-lreadline
15030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib" >&5
15031 $as_echo_n "checking for zlib... " >&6; }
15033 if test -n "$zlib_CFLAGS"; then
15034 pkg_cv_zlib_CFLAGS
="$zlib_CFLAGS"
15035 elif test -n "$PKG_CONFIG"; then
15036 if test -n "$PKG_CONFIG" && \
15037 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib >= 1.0.0\""; } >&5
15038 ($PKG_CONFIG --exists --print-errors "zlib >= 1.0.0") 2>&5
15040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15041 test $ac_status = 0; }; then
15042 pkg_cv_zlib_CFLAGS
=`$PKG_CONFIG --cflags "zlib >= 1.0.0" 2>/dev/null`
15043 test "x$?" != "x0" && pkg_failed
=yes
15050 if test -n "$zlib_LIBS"; then
15051 pkg_cv_zlib_LIBS
="$zlib_LIBS"
15052 elif test -n "$PKG_CONFIG"; then
15053 if test -n "$PKG_CONFIG" && \
15054 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib >= 1.0.0\""; } >&5
15055 ($PKG_CONFIG --exists --print-errors "zlib >= 1.0.0") 2>&5
15057 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15058 test $ac_status = 0; }; then
15059 pkg_cv_zlib_LIBS
=`$PKG_CONFIG --libs "zlib >= 1.0.0" 2>/dev/null`
15060 test "x$?" != "x0" && pkg_failed
=yes
15070 if test $pkg_failed = yes; then
15071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15072 $as_echo "no" >&6; }
15074 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15075 _pkg_short_errors_supported
=yes
15077 _pkg_short_errors_supported
=no
15079 if test $_pkg_short_errors_supported = yes; then
15080 zlib_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "zlib >= 1.0.0" 2>&1`
15082 zlib_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "zlib >= 1.0.0" 2>&1`
15084 # Put the nasty error message in config.log where it belongs
15085 echo "$zlib_PKG_ERRORS" >&5
15088 elif test $pkg_failed = untried
; then
15089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15090 $as_echo "no" >&6; }
15093 zlib_CFLAGS
=$pkg_cv_zlib_CFLAGS
15094 zlib_LIBS
=$pkg_cv_zlib_LIBS
15095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15096 $as_echo "yes" >&6; }
15099 HAVE_ZLIB
=$have_zlib
15102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AI_ADDRCONFIG" >&5
15103 $as_echo_n "checking for AI_ADDRCONFIG... " >&6; }
15104 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15105 /* end confdefs.h. */
15108 int test = AI_ADDRCONFIG;
15119 if ac_fn_c_try_compile
"$LINENO"; then :
15121 $as_echo "#define HAVE_AI_ADDRCONFIG 1" >>confdefs.h
15122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15123 $as_echo "yes" >&6; }
15125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15126 $as_echo "no" >&6; }
15128 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15132 if test -f .
/build
/tar
/parfait.
tar.gz
15134 { $as_echo "$as_me:${as_lineno-$LINENO}: adding Parfait package to the build" >&5
15135 $as_echo "$as_me: adding Parfait package to the build" >&6;}
15141 if test -f .
/build
/tar
/vector.
tar.gz
15143 { $as_echo "$as_me:${as_lineno-$LINENO}: adding Vector webapp to the build" >&5
15144 $as_echo "$as_me: adding Vector webapp to the build" >&6;}
15150 if test -f .
/build
/tar
/webjs.
tar.gz
15152 { $as_echo "$as_me:${as_lineno-$LINENO}: adding webjs webapps to the build" >&5
15153 $as_echo "$as_me: adding webjs webapps to the build" >&6;}
15161 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"
15163 cat >confcache
<<\_ACEOF
15164 # This file is a shell script that caches the results of configure
15165 # tests run on this system so they can be shared between configure
15166 # scripts and configure runs, see configure's option --config-cache.
15167 # It is not useful on other systems. If it contains results you don't
15168 # want to keep, you may remove or edit it.
15170 # config.status only pays attention to the cache file if you give it
15171 # the --recheck option to rerun configure.
15173 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15174 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15175 # following values.
15179 # The following way of writing the cache mishandles newlines in values,
15180 # but we know of no workaround that is simple, portable, and efficient.
15181 # So, we kill variables containing newlines.
15182 # Ultrix sh set writes to stderr and can't be redirected directly,
15183 # and sets the high bit in the cache file unless we assign to the vars.
15185 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15186 eval ac_val
=\$
$ac_var
15190 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15191 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15194 _ | IFS | as_nl
) ;; #(
15195 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
15196 *) { eval $ac_var=; unset $ac_var;} ;;
15202 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15203 *${as_nl}ac_space
=\
*)
15204 # `set' does not quote correctly, so add quotes: double-quote
15205 # substitution turns \\\\ into \\, and sed turns \\ into \.
15208 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15211 # `set' quotes correctly as required by POSIX, so do not add quotes.
15212 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15221 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15223 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15225 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
15226 if test -w "$cache_file"; then
15227 if test "x$cache_file" != "x/dev/null"; then
15228 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15229 $as_echo "$as_me: updating cache $cache_file" >&6;}
15230 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
15231 cat confcache
>"$cache_file"
15233 case $cache_file in #(
15235 mv -f confcache
"$cache_file"$$
&&
15236 mv -f "$cache_file"$$
"$cache_file" ;; #(
15238 mv -f confcache
"$cache_file" ;;
15243 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15244 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15249 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
15250 # Let make expand exec_prefix.
15251 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
15253 DEFS
=-DHAVE_CONFIG_H
15258 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
15259 # 1. Remove the extension, and $U if already installed.
15260 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
15261 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
15262 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15263 # will be set to the directory where LIBOBJS objects are built.
15264 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15265 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
15267 LIBOBJS
=$ac_libobjs
15269 LTLIBOBJS
=$ac_ltlibobjs
15273 : "${CONFIG_STATUS=./config.status}"
15275 ac_clean_files_save
=$ac_clean_files
15276 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
15277 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15278 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15280 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15282 # Generated by $as_me.
15283 # Run this file to recreate the current configuration.
15284 # Compiler output produced by configure, useful for debugging
15285 # configure, is in config.log if it exists.
15288 ac_cs_recheck=false
15291 SHELL=\${CONFIG_SHELL-$SHELL}
15294 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
15295 ## -------------------- ##
15296 ## M4sh Initialization. ##
15297 ## -------------------- ##
15299 # Be more Bourne compatible
15300 DUALCASE
=1; export DUALCASE
# for MKS sh
15301 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
15304 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15305 # is contrary to our usage. Disable this feature.
15306 alias -g '${1+"$@"}'='"$@"'
15307 setopt NO_GLOB_SUBST
15309 case `(set -o) 2>/dev/null` in #(
15321 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15322 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15323 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15324 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15325 # Prefer a ksh shell builtin over an external printf program on Solaris,
15326 # but without wasting forks for bash or zsh.
15327 if test -z "$BASH_VERSION$ZSH_VERSION" \
15328 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15329 as_echo='print
-r --'
15330 as_echo_n='print
-rn --'
15331 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15332 as_echo='printf %s
\n'
15333 as_echo_n='printf %s
'
15335 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15336 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
15337 as_echo_n='/usr
/ucb
/echo -n'
15339 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15340 as_echo_n_body='eval
15344 expr "X$arg" : "X\\(.*\\)$as_nl";
15345 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15347 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
15349 export as_echo_n_body
15350 as_echo_n='sh
-c $as_echo_n_body as_echo
'
15352 export as_echo_body
15353 as_echo='sh
-c $as_echo_body as_echo
'
15356 # The user is always right.
15357 if test "${PATH_SEPARATOR+set}" != set; then
15359 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15360 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15367 # We need space, tab and new line, in precisely that order. Quoting is
15368 # there to prevent editors from complaining about space-tab.
15369 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15370 # splitting by setting IFS to empty value.)
15373 # Find who we are. Look in the path if we contain no directory separator.
15376 *[\\/]* ) as_myself=$0 ;;
15377 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15378 for as_dir in $PATH
15381 test -z "$as_dir" && as_dir=.
15382 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15388 # We did not find ourselves, most probably we were run as `sh COMMAND'
15389 # in which case we are not to be found in the path.
15390 if test "x$as_myself" = x
; then
15393 if test ! -f "$as_myself"; then
15394 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15398 # Unset variables that we do not need and which cause bugs (e.g. in
15399 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15400 # suppresses any "Segmentation fault" message there. '((' could
15401 # trigger a bug in pdksh 5.2.14.
15402 for as_var
in BASH_ENV ENV MAIL MAILPATH
15403 do eval test x\
${$as_var+set} = xset \
15404 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
15417 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
15420 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15421 # ----------------------------------------
15422 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15423 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15424 # script with STATUS, using 1 if that was 0.
15427 as_status
=$1; test $as_status -eq 0 && as_status
=1
15429 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
15430 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15432 $as_echo "$as_me: error: $2" >&2
15433 as_fn_exit
$as_status
15437 # as_fn_set_status STATUS
15438 # -----------------------
15439 # Set $? to STATUS, without forking.
15440 as_fn_set_status
()
15443 } # as_fn_set_status
15445 # as_fn_exit STATUS
15446 # -----------------
15447 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15451 as_fn_set_status
$1
15457 # Portably unset VAR.
15460 { eval $1=; unset $1;}
15462 as_unset
=as_fn_unset
15463 # as_fn_append VAR VALUE
15464 # ----------------------
15465 # Append the text in VALUE to the end of the definition contained in VAR. Take
15466 # advantage of any shell optimizations that allow amortized linear growth over
15467 # repeated appends, instead of the typical quadratic growth present in naive
15469 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
15470 eval 'as_fn_append ()
15481 # as_fn_arith ARG...
15482 # ------------------
15483 # Perform arithmetic evaluation on the ARGs, and store the result in the
15484 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15485 # must be portable across $(()) and expr.
15486 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
15487 eval 'as_fn_arith ()
15494 as_val
=`expr "$@" || test $? -eq 1`
15499 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
15500 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
15506 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15507 as_basename
=basename
15512 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
15518 as_me
=`$as_basename -- "$0" ||
15519 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15520 X"$0" : 'X\(//\)$' \| \
15521 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15523 sed '/^.*\/\([^/][^/]*\)\/*$/{
15537 # Avoid depending upon Character Ranges.
15538 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
15539 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15540 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
15541 as_cr_digits
='0123456789'
15542 as_cr_alnum
=$as_cr_Letters$as_cr_digits
15544 ECHO_C
= ECHO_N
= ECHO_T
=
15545 case `echo -n x` in #(((((
15547 case `echo 'xy\c'` in
15548 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
15550 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
15557 rm -f conf$$ conf$$.exe conf$$.
file
15558 if test -d conf$$.dir
; then
15559 rm -f conf$$.dir
/conf$$.
file
15562 mkdir conf$$.dir
2>/dev
/null
15564 if (echo >conf$$.
file) 2>/dev
/null
; then
15565 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
15567 # ... but there are two gotchas:
15568 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15569 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15570 # In both cases, we have to default to `cp -pR'.
15571 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
15573 elif ln conf$$.
file conf$$
2>/dev
/null
; then
15581 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
15582 rmdir conf$$.dir
2>/dev
/null
15587 # Create "$as_dir" as a directory, including parents if necessary.
15592 -*) as_dir
=.
/$as_dir;;
15594 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
15598 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15599 *) as_qdir
=$as_dir;;
15601 as_dirs
="'$as_qdir' $as_dirs"
15602 as_dir
=`$as_dirname -- "$as_dir" ||
15603 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15604 X"$as_dir" : 'X\(//\)[^/]' \| \
15605 X"$as_dir" : 'X\(//\)$' \| \
15606 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15607 $as_echo X"$as_dir" |
15608 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15612 /^X\(\/\/\)[^/].*/{
15625 test -d "$as_dir" && break
15627 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
15628 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
15632 if mkdir
-p .
2>/dev
/null
; then
15633 as_mkdir_p
='mkdir -p "$as_dir"'
15635 test -d .
/-p && rmdir .
/-p
15640 # as_fn_executable_p FILE
15641 # -----------------------
15642 # Test if FILE is an executable regular file.
15643 as_fn_executable_p
()
15645 test -f "$1" && test -x "$1"
15646 } # as_fn_executable_p
15647 as_test_x
='test -x'
15648 as_executable_p
=as_fn_executable_p
15650 # Sed expression to map a string onto a valid CPP name.
15651 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15653 # Sed expression to map a string onto a valid variable name.
15654 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15658 ## ----------------------------------- ##
15659 ## Main body of $CONFIG_STATUS script. ##
15660 ## ----------------------------------- ##
15662 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
15664 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15665 # Save the log message, to keep $0 and so on meaningful, and to
15666 # report actual input values of CONFIG_FILES etc. instead of their
15667 # values after options handling.
15669 This file was extended by $as_me, which was
15670 generated by GNU Autoconf 2.69. Invocation command line was
15672 CONFIG_FILES = $CONFIG_FILES
15673 CONFIG_HEADERS = $CONFIG_HEADERS
15674 CONFIG_LINKS = $CONFIG_LINKS
15675 CONFIG_COMMANDS = $CONFIG_COMMANDS
15678 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15683 case $ac_config_files in *"
15684 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
15687 case $ac_config_headers in *"
15688 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
15692 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15693 # Files that config.status was made for.
15694 config_files="$ac_config_files"
15695 config_headers="$ac_config_headers"
15699 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15701 \`$as_me' instantiates files and other configuration actions
15702 from templates according to the current configuration. Unless the files
15703 and actions are specified as TAGs, all are instantiated by default.
15705 Usage: $0 [OPTION]... [TAG]...
15707 -h, --help print this help, then exit
15708 -V, --version print version number and configuration settings, then exit
15709 --config print configuration, then exit
15710 -q, --quiet, --silent
15711 do not print progress messages
15712 -d, --debug don't remove temporary files
15713 --recheck update $as_me by reconfiguring in the same conditions
15714 --file=FILE[:TEMPLATE]
15715 instantiate the configuration file FILE
15716 --header=FILE[:TEMPLATE]
15717 instantiate the configuration header FILE
15719 Configuration files:
15722 Configuration headers:
15725 Report bugs to the package provider."
15728 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15729 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15732 configured by $0, generated by GNU Autoconf 2.69,
15733 with options \\"\$ac_cs_config\\"
15735 Copyright (C) 2012 Free Software Foundation, Inc.
15736 This config.status script is free software; the Free Software Foundation
15737 gives unlimited permission to copy, distribute and modify it."
15741 test -n "\$AWK" || AWK=awk
15744 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15745 # The default lists apply if the user does not specify any file.
15751 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
15752 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
15756 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
15768 # Handling of the options.
15769 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
15771 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
15772 $as_echo "$ac_cs_version"; exit ;;
15773 --config |
--confi |
--conf |
--con |
--co |
--c )
15774 $as_echo "$ac_cs_config"; exit ;;
15775 --debug |
--debu |
--deb |
--de |
--d |
-d )
15777 --file |
--fil |
--fi |
--f )
15780 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15781 '') as_fn_error $?
"missing file argument" ;;
15783 as_fn_append CONFIG_FILES
" '$ac_optarg'"
15784 ac_need_defaults
=false
;;
15785 --header |
--heade |
--head |
--hea )
15788 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15790 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
15791 ac_need_defaults
=false
;;
15793 # Conflict between --help and --header
15794 as_fn_error $?
"ambiguous option: \`$1'
15795 Try \`$0 --help' for more information.";;
15796 --help |
--hel |
-h )
15797 $as_echo "$ac_cs_usage"; exit ;;
15798 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
15799 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
15802 # This is an error.
15803 -*) as_fn_error $?
"unrecognized option: \`$1'
15804 Try \`$0 --help' for more information." ;;
15806 *) as_fn_append ac_config_targets
" $1"
15807 ac_need_defaults
=false
;;
15813 ac_configure_extra_args
=
15815 if $ac_cs_silent; then
15817 ac_configure_extra_args
="$ac_configure_extra_args --silent"
15821 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15822 if \$ac_cs_recheck; then
15823 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15825 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15826 CONFIG_SHELL='$SHELL'
15827 export CONFIG_SHELL
15832 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15836 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15837 ## Running $as_me. ##
15843 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15846 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15848 # Handling of arguments.
15849 for ac_config_target
in $ac_config_targets
15851 case $ac_config_target in
15852 "src/include/pcp/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/include/pcp/config.h" ;;
15853 "src/include/pcp/configsz.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/include/pcp/configsz.h" ;;
15854 "src/include/pcp/platform_defs.h") CONFIG_FILES
="$CONFIG_FILES src/include/pcp/platform_defs.h" ;;
15855 "src/include/pcp/platformsz.h") CONFIG_FILES
="$CONFIG_FILES src/include/pcp/platformsz.h" ;;
15856 "src/include/builddefs") CONFIG_FILES
="$CONFIG_FILES src/include/builddefs" ;;
15857 "src/include/pcp.conf") CONFIG_FILES
="$CONFIG_FILES src/include/pcp.conf" ;;
15858 "pcp.lsm") CONFIG_FILES
="$CONFIG_FILES pcp.lsm" ;;
15859 "debian/pcp.preinst.head") CONFIG_FILES
="$CONFIG_FILES debian/pcp.preinst.head" ;;
15860 "debian/pcp.postinst.head") CONFIG_FILES
="$CONFIG_FILES debian/pcp.postinst.head" ;;
15861 "build/tar/preinstall.head") CONFIG_FILES
="$CONFIG_FILES build/tar/preinstall.head" ;;
15862 "build/tar/postinstall.head") CONFIG_FILES
="$CONFIG_FILES build/tar/postinstall.head" ;;
15863 "build/GNUlocaldefs") CONFIG_FILES
="$CONFIG_FILES build/GNUlocaldefs" ;;
15864 "build/mac/uninstall-pcp") CONFIG_FILES
="$CONFIG_FILES build/mac/uninstall-pcp" ;;
15866 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15871 # If the user did not use the arguments to specify the items to instantiate,
15872 # then the envvar interface is used. Set only those that are not.
15873 # We use the long form for the default assignment because of an extremely
15874 # bizarre bug on SunOS 4.1.3.
15875 if $ac_need_defaults; then
15876 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
15877 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
15880 # Have a temporary directory for convenience. Make it in the build tree
15881 # simply because there is no reason against having it here, and in addition,
15882 # creating and moving files from /tmp can sometimes cause problems.
15883 # Hook for its removal unless debugging.
15884 # Note that there is a small window in which the directory will not be cleaned:
15885 # after its creation but before its name has been assigned to `$tmp'.
15889 trap 'exit_status=$?
15890 : "${ac_tmp:=$tmp}"
15891 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15893 trap 'as_fn_exit 1' 1 2 13 15
15895 # Create a (secure) tmp directory for tmp files.
15898 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15902 tmp
=.
/conf$$
-$RANDOM
15903 (umask 077 && mkdir
"$tmp")
15904 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
15907 # Set up the scripts for CONFIG_FILES section.
15908 # No need to generate them if there are no CONFIG_FILES.
15909 # This happens for instance with `./config.status config.h'.
15910 if test -n "$CONFIG_FILES"; then
15913 ac_cr
=`echo X | tr X '\015'`
15914 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15915 # But we know of no other shell where ac_cr would be empty at this
15916 # point, so we can use a bashism as a fallback.
15917 if test "x$ac_cr" = x
; then
15918 eval ac_cr
=\$
\'\\r
\'
15920 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15921 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15924 ac_cs_awk_cr
=$ac_cr
15927 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15932 echo "cat >conf$$subs.awk <<_ACEOF" &&
15933 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15935 } >conf$$subs.sh ||
15936 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
15937 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15939 for ac_last_try in false false false false false :; do
15940 . ./conf$$subs.sh ||
15941 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
15943 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
15944 if test $ac_delim_n = $ac_delim_num; then
15946 elif $ac_last_try; then
15947 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
15949 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
15952 rm -f conf$$subs.sh
15954 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15955 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
15959 s/^/S["/; s
/!.
*/"]=/
15969 s/\(.\{148\}\)..*/\1/
15971 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
15976 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
15983 s/\(.\{148\}\)..*/\1/
15985 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
15989 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
15994 ' <conf$$subs.awk | sed '
15999 ' >>$CONFIG_STATUS || ac_write_fail=1
16000 rm -f conf$$subs.awk
16001 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16003 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
16004 for (key in S) S_is_set[key] = 1
16010 nfields = split(line, field, "@
")
16012 len = length(field[1])
16013 for (i = 2; i < nfields; i++) {
16015 keylen = length(key)
16016 if (S_is_set[key]) {
16018 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16019 len += length(value) + length(field[++i])
16030 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16031 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16032 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
16035 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
16036 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
16039 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16040 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
16041 # trailing colons and then remove the whole line if VPATH becomes empty
16042 # (actually we leave an empty line to preserve line numbers).
16043 if test "x
$srcdir" = x.; then
16044 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16062 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16063 fi # test -n "$CONFIG_FILES"
16065 # Set up the scripts for CONFIG_HEADERS section.
16066 # No need to generate them if there are no CONFIG_HEADERS.
16067 # This happens for instance with `./config.status Makefile'.
16068 if test -n "$CONFIG_HEADERS"; then
16069 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
16073 # Transform confdefs.h into an awk script `defines.awk', embedded as
16074 # here-document in config.status, that substitutes the proper values into
16075 # config.h.in to produce config.h.
16077 # Create a delimiter string that does not exist in confdefs.h, to ease
16078 # handling of long lines.
16080 for ac_last_try in false false :; do
16081 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
16082 if test -z "$ac_tt"; then
16084 elif $ac_last_try; then
16085 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
16087 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
16091 # For the awk script, D is an array of macro values keyed by name,
16092 # likewise P contains macro parameters if any. Preserve backslash
16093 # newline sequences.
16095 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16097 s/.\{148\}/&'"$ac_delim"'/g
16100 s/^[ ]*#[ ]*define[ ][ ]*/ /
16107 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
16109 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
16113 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
16114 D["\
1"]=" \
3\\\\\\n
"\\/p
16116 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
16121 s/.\{148\}/&'"$ac_delim"'/g
16126 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
16129 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
16131 ' <confdefs.h | sed '
16132 s/'"$ac_delim"'/"\\\
16133 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16135 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16136 for (key in D) D_is_set[key] = 1
16139 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16141 split(line, arg, " ")
16142 if (arg[1] == "#") {
16146 defundef
= substr
(arg
[1], 2)
16149 split(mac1
, mac2
, "(") #)
16151 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
16152 if (D_is_set
[macro
]) {
16153 # Preserve the white space surrounding the "#".
16154 print prefix
"define", macro P
[macro
] D
[macro
]
16157 # Replace #undef with comments. This is necessary, for example,
16158 # in the case of _POSIX_SOURCE, which is predefined and required
16159 # on some systems where configure will not decide to define it.
16160 if (defundef
== "undef") {
16161 print
"/*", prefix defundef
, macro
, "*/"
16169 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16170 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
16171 fi # test -n "$CONFIG_HEADERS"
16174 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS "
16179 :[FHLC
]) ac_mode
=$ac_tag; continue;;
16181 case $ac_mode$ac_tag in
16183 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
16184 :[FH
]-) ac_tag
=-:-;;
16185 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
16202 -) ac_f
="$ac_tmp/stdin";;
16203 *) # Look for the file first in the build tree, then in the source tree
16204 # (if the path is not absolute). The absolute path cannot be DOS-style,
16205 # because $ac_f cannot contain `:'.
16209 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
16211 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16213 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16214 as_fn_append ac_file_inputs
" '$ac_f'"
16217 # Let's still pretend it is `configure' which instantiates (i.e., don't
16218 # use $as_me), people would be surprised to read:
16219 # /* config.h. Generated by config.status. */
16220 configure_input
='Generated from '`
16221 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16223 if test x
"$ac_file" != x-
; then
16224 configure_input
="$ac_file. $configure_input"
16225 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16226 $as_echo "$as_me: creating $ac_file" >&6;}
16228 # Neutralize special characters interpreted by sed in replacement strings.
16229 case $configure_input in #(
16230 *\
&* |
*\|
* |
*\\* )
16231 ac_sed_conf_input
=`$as_echo "$configure_input" |
16232 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16233 *) ac_sed_conf_input
=$configure_input;;
16237 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
16238 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
16243 ac_dir
=`$as_dirname -- "$ac_file" ||
16244 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16245 X"$ac_file" : 'X\(//\)[^/]' \| \
16246 X"$ac_file" : 'X\(//\)$' \| \
16247 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16248 $as_echo X"$ac_file" |
16249 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16253 /^X\(\/\/\)[^/].*/{
16266 as_dir
="$ac_dir"; as_fn_mkdir_p
16270 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
16272 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16273 # A ".." for each directory in $ac_dir_suffix.
16274 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16275 case $ac_top_builddir_sub in
16276 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
16277 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
16280 ac_abs_top_builddir
=$ac_pwd
16281 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
16282 # for backward compatibility:
16283 ac_top_builddir
=$ac_top_build_prefix
16286 .
) # We are building in place.
16288 ac_top_srcdir
=$ac_top_builddir_sub
16289 ac_abs_top_srcdir
=$ac_pwd ;;
16290 [\\/]* | ?
:[\\/]* ) # Absolute name.
16291 ac_srcdir
=$srcdir$ac_dir_suffix;
16292 ac_top_srcdir
=$srcdir
16293 ac_abs_top_srcdir
=$srcdir ;;
16294 *) # Relative name.
16295 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
16296 ac_top_srcdir
=$ac_top_build_prefix$srcdir
16297 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
16299 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
16310 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16311 # If the template does not know about datarootdir, expand it.
16312 # FIXME: This hack should be removed a few years after 2.60.
16313 ac_datarootdir_hack
=; ac_datarootdir_seen
=
16324 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16325 *datarootdir
*) ac_datarootdir_seen
=yes;;
16326 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
16327 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16328 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16330 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16331 ac_datarootdir_hack='
16332 s&@datadir@&$datadir&g
16333 s&@docdir@&$docdir&g
16334 s&@infodir@&$infodir&g
16335 s&@localedir@&$localedir&g
16336 s&@mandir@&$mandir&g
16337 s&\\\${datarootdir}&$datarootdir&g' ;;
16341 # Neutralize VPATH when `$srcdir' = `.'.
16342 # Shell code in configure.ac might set extrasub.
16343 # FIXME: do we really want to maintain this feature?
16344 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16345 ac_sed_extra="$ac_vpsub
16348 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16350 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
16351 s|@configure_input@|
$ac_sed_conf_input|
;t t
16352 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
16353 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
16354 s
&@srcdir@
&$ac_srcdir&;t t
16355 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
16356 s
&@top_srcdir@
&$ac_top_srcdir&;t t
16357 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
16358 s
&@builddir@
&$ac_builddir&;t t
16359 s
&@abs_builddir@
&$ac_abs_builddir&;t t
16360 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
16361 $ac_datarootdir_hack
16363 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
16364 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
16366 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16367 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
16368 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16369 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
16370 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
16371 which seems to be undefined. Please make sure it is defined" >&5
16372 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
16373 which seems to be undefined. Please make sure it is defined" >&2;}
16375 rm -f "$ac_tmp/stdin"
16377 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16378 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16380 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16386 if test x"$ac_file" != x-; then
16388 $as_echo "/* $configure_input */" \
16389 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16390 } >"$ac_tmp/config.h" \
16391 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16392 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16393 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16394 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16397 mv "$ac_tmp/config.h" "$ac_file" \
16398 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16401 $as_echo "/* $configure_input */" \
16402 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16403 || as_fn_error $? "could not create -" "$LINENO" 5
16415 ac_clean_files=$ac_clean_files_save
16417 test $ac_write_fail = 0 ||
16418 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16421 # configure is writing to config.log, and then calls config.status.
16422 # config.status does its own redirection, appending to config.log.
16423 # Unfortunately, on DOS this fails, as config.log is still kept open
16424 # by configure, so config.status won't be able to
write to it
; its
16425 # output is simply discarded. So we exec the FD to /dev/null,
16426 # effectively closing config.log, so it can be properly (re)opened and
16427 # appended to by config.status. When coming back to configure, we
16428 # need to make the FD available again.
16429 if test "$no_create" != yes; then
16431 ac_config_status_args
=
16432 test "$silent" = yes &&
16433 ac_config_status_args
="$ac_config_status_args --quiet"
16435 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
16437 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16438 # would make configure fail if this is the last instruction.
16439 $ac_cs_success || as_fn_exit
1
16441 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
16442 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16443 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}