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
916 program_transform_name
929 enable_option_checking
961 with_perl_installdirs
962 with_perl_install_base
973 ac_precious_vars
='build_alias
992 SYSTEMD_SYSTEMUNITDIR
1008 # Initialize some variables set by options.
1010 ac_init_version
=false
1011 ac_unrecognized_opts
=
1012 ac_unrecognized_sep
=
1013 # The variables have the same names as the options, with
1014 # dashes changed to underlines.
1015 cache_file
=/dev
/null
1022 program_transform_name
=s
,x
,x
,
1030 # Installation directory options.
1031 # These are left unexpanded so users can "make install exec_prefix=/foo"
1032 # and all the variables that are supposed to be based on exec_prefix
1033 # by default will actually change.
1034 # Use braces instead of parens because sh, perl, etc. also accept them.
1035 # (The list follows the same order as the GNU Coding Standards.)
1036 bindir
='${exec_prefix}/bin'
1037 sbindir
='${exec_prefix}/sbin'
1038 libexecdir
='${exec_prefix}/libexec'
1039 datarootdir
='${prefix}/share'
1040 datadir
='${datarootdir}'
1041 sysconfdir
='${prefix}/etc'
1042 sharedstatedir
='${prefix}/com'
1043 localstatedir
='${prefix}/var'
1044 includedir
='${prefix}/include'
1045 oldincludedir
='/usr/include'
1046 docdir
='${datarootdir}/doc/${PACKAGE}'
1047 infodir
='${datarootdir}/info'
1052 libdir
='${exec_prefix}/lib'
1053 localedir
='${datarootdir}/locale'
1054 mandir
='${datarootdir}/man'
1060 # If the previous option needs an argument, assign it.
1061 if test -n "$ac_prev"; then
1062 eval $ac_prev=\
$ac_option
1068 *=?
*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1073 # Accept the important Cygnus configure options, so we can diagnose typos.
1075 case $ac_dashdash$ac_option in
1079 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
1081 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
1082 bindir
=$ac_optarg ;;
1084 -build |
--build |
--buil |
--bui |
--bu)
1085 ac_prev
=build_alias
;;
1086 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
1087 build_alias
=$ac_optarg ;;
1089 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
1090 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
1091 ac_prev
=cache_file
;;
1092 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
1093 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
1094 cache_file
=$ac_optarg ;;
1096 --config-cache |
-C)
1097 cache_file
=config.cache
;;
1099 -datadir |
--datadir |
--datadi |
--datad)
1101 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
1102 datadir
=$ac_optarg ;;
1104 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
1105 |
--dataroo |
--dataro |
--datar)
1106 ac_prev
=datarootdir
;;
1107 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
1108 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
1109 datarootdir
=$ac_optarg ;;
1111 -disable-* |
--disable-*)
1112 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1113 # Reject names that are not valid shell variable names.
1114 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1115 as_fn_error $?
"invalid feature name: $ac_useropt"
1116 ac_useropt_orig
=$ac_useropt
1117 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1118 case $ac_user_opts in
1120 "enable_
$ac_useropt"
1122 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1123 ac_unrecognized_sep
=', ';;
1125 eval enable_
$ac_useropt=no
;;
1127 -docdir |
--docdir |
--docdi |
--doc |
--do)
1129 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
1130 docdir
=$ac_optarg ;;
1132 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
1134 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
1135 dvidir
=$ac_optarg ;;
1137 -enable-* |
--enable-*)
1138 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1139 # Reject names that are not valid shell variable names.
1140 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1141 as_fn_error $?
"invalid feature name: $ac_useropt"
1142 ac_useropt_orig
=$ac_useropt
1143 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1144 case $ac_user_opts in
1146 "enable_
$ac_useropt"
1148 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1149 ac_unrecognized_sep
=', ';;
1151 eval enable_
$ac_useropt=\
$ac_optarg ;;
1153 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
1154 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
1155 |
--exec |
--exe |
--ex)
1156 ac_prev
=exec_prefix
;;
1157 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
1158 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
1159 |
--exec=* |
--exe=* |
--ex=*)
1160 exec_prefix
=$ac_optarg ;;
1162 -gas |
--gas |
--ga |
--g)
1163 # Obsolete; use --with-gas.
1166 -help |
--help |
--hel |
--he |
-h)
1167 ac_init_help
=long
;;
1168 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
1169 ac_init_help
=recursive
;;
1170 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
1171 ac_init_help
=short
;;
1173 -host |
--host |
--hos |
--ho)
1174 ac_prev
=host_alias
;;
1175 -host=* |
--host=* |
--hos=* |
--ho=*)
1176 host_alias
=$ac_optarg ;;
1178 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
1180 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
1182 htmldir
=$ac_optarg ;;
1184 -includedir |
--includedir |
--includedi |
--included |
--include \
1185 |
--includ |
--inclu |
--incl |
--inc)
1186 ac_prev
=includedir
;;
1187 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
1188 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
1189 includedir
=$ac_optarg ;;
1191 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
1193 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
1194 infodir
=$ac_optarg ;;
1196 -libdir |
--libdir |
--libdi |
--libd)
1198 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
1199 libdir
=$ac_optarg ;;
1201 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
1202 |
--libexe |
--libex |
--libe)
1203 ac_prev
=libexecdir
;;
1204 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
1205 |
--libexe=* |
--libex=* |
--libe=*)
1206 libexecdir
=$ac_optarg ;;
1208 -localedir |
--localedir |
--localedi |
--localed |
--locale)
1209 ac_prev
=localedir
;;
1210 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
1211 localedir
=$ac_optarg ;;
1213 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
1214 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
1215 ac_prev
=localstatedir
;;
1216 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
1217 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
1218 localstatedir
=$ac_optarg ;;
1220 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
1222 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
1223 mandir
=$ac_optarg ;;
1225 -nfp |
--nfp |
--nf)
1226 # Obsolete; use --without-fp.
1229 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
1230 |
--no-cr |
--no-c |
-n)
1233 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
1234 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1237 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1238 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1239 |
--oldin |
--oldi |
--old |
--ol |
--o)
1240 ac_prev
=oldincludedir
;;
1241 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1242 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1243 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1244 oldincludedir
=$ac_optarg ;;
1246 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1248 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1249 prefix
=$ac_optarg ;;
1251 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1252 |
--program-pre |
--program-pr |
--program-p)
1253 ac_prev
=program_prefix
;;
1254 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1255 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1256 program_prefix
=$ac_optarg ;;
1258 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1259 |
--program-suf |
--program-su |
--program-s)
1260 ac_prev
=program_suffix
;;
1261 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1262 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1263 program_suffix
=$ac_optarg ;;
1265 -program-transform-name |
--program-transform-name \
1266 |
--program-transform-nam |
--program-transform-na \
1267 |
--program-transform-n |
--program-transform- \
1268 |
--program-transform |
--program-transfor \
1269 |
--program-transfo |
--program-transf \
1270 |
--program-trans |
--program-tran \
1271 |
--progr-tra |
--program-tr |
--program-t)
1272 ac_prev
=program_transform_name
;;
1273 -program-transform-name=* |
--program-transform-name=* \
1274 |
--program-transform-nam=* |
--program-transform-na=* \
1275 |
--program-transform-n=* |
--program-transform-=* \
1276 |
--program-transform=* |
--program-transfor=* \
1277 |
--program-transfo=* |
--program-transf=* \
1278 |
--program-trans=* |
--program-tran=* \
1279 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1280 program_transform_name
=$ac_optarg ;;
1282 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1284 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1285 pdfdir
=$ac_optarg ;;
1287 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1289 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1292 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1293 |
-silent |
--silent |
--silen |
--sile |
--sil)
1296 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1298 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1300 sbindir
=$ac_optarg ;;
1302 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1303 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1304 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1306 ac_prev
=sharedstatedir
;;
1307 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1308 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1309 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1311 sharedstatedir
=$ac_optarg ;;
1313 -site |
--site |
--sit)
1315 -site=* |
--site=* |
--sit=*)
1318 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1320 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1321 srcdir
=$ac_optarg ;;
1323 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1324 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1325 ac_prev
=sysconfdir
;;
1326 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1327 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1328 sysconfdir
=$ac_optarg ;;
1330 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1331 ac_prev
=target_alias
;;
1332 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1333 target_alias
=$ac_optarg ;;
1335 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1338 -version |
--version |
--versio |
--versi |
--vers |
-V)
1339 ac_init_version
=: ;;
1342 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1343 # Reject names that are not valid shell variable names.
1344 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1345 as_fn_error $?
"invalid package name: $ac_useropt"
1346 ac_useropt_orig
=$ac_useropt
1347 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1348 case $ac_user_opts in
1352 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1353 ac_unrecognized_sep
=', ';;
1355 eval with_
$ac_useropt=\
$ac_optarg ;;
1357 -without-* |
--without-*)
1358 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1359 # Reject names that are not valid shell variable names.
1360 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1361 as_fn_error $?
"invalid package name: $ac_useropt"
1362 ac_useropt_orig
=$ac_useropt
1363 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1364 case $ac_user_opts in
1368 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1369 ac_unrecognized_sep
=', ';;
1371 eval with_
$ac_useropt=no
;;
1374 # Obsolete; use --with-x.
1377 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1378 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1379 ac_prev
=x_includes
;;
1380 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1381 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1382 x_includes
=$ac_optarg ;;
1384 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1385 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1386 ac_prev
=x_libraries
;;
1387 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1388 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1389 x_libraries
=$ac_optarg ;;
1391 -*) as_fn_error $?
"unrecognized option: \`$ac_option'
1392 Try \`$0 --help' for more information"
1396 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1397 # Reject names that are not valid shell variable names.
1398 case $ac_envvar in #(
1399 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1400 as_fn_error $?
"invalid variable name: \`$ac_envvar'" ;;
1402 eval $ac_envvar=\
$ac_optarg
1403 export $ac_envvar ;;
1406 # FIXME: should be removed in autoconf 3.0.
1407 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1408 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1409 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1410 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1416 if test -n "$ac_prev"; then
1417 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1418 as_fn_error $?
"missing argument to $ac_option"
1421 if test -n "$ac_unrecognized_opts"; then
1422 case $enable_option_checking in
1424 fatal
) as_fn_error $?
"unrecognized options: $ac_unrecognized_opts" ;;
1425 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1429 # Check all directory arguments for consistency.
1430 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1431 datadir sysconfdir sharedstatedir localstatedir includedir \
1432 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1433 libdir localedir mandir
1435 eval ac_val
=\$
$ac_var
1436 # Remove trailing slashes.
1439 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1440 eval $ac_var=\
$ac_val;;
1442 # Be sure to have absolute directory names.
1444 [\\/$
]* | ?
:[\\/]* ) continue;;
1445 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1447 as_fn_error $?
"expected an absolute directory name for --$ac_var: $ac_val"
1450 # There might be people who depend on the old broken behavior: `$host'
1451 # used to hold the argument of --host etc.
1452 # FIXME: To remove some day.
1455 target
=$target_alias
1457 # FIXME: To remove some day.
1458 if test "x$host_alias" != x
; then
1459 if test "x$build_alias" = x
; then
1460 cross_compiling
=maybe
1461 elif test "x$build_alias" != "x$host_alias"; then
1467 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1469 test "$silent" = yes && exec 6>/dev
/null
1472 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1473 ac_ls_di
=`ls -di .` &&
1474 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1475 as_fn_error $?
"working directory cannot be determined"
1476 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1477 as_fn_error $?
"pwd does not report name of working directory"
1480 # Find the source files, if location was not specified.
1481 if test -z "$srcdir"; then
1482 ac_srcdir_defaulted
=yes
1483 # Try the directory containing this script, then the parent directory.
1484 ac_confdir
=`$as_dirname -- "$as_myself" ||
1485 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1486 X"$as_myself" : 'X\(//\)[^/]' \| \
1487 X"$as_myself" : 'X\(//\)$' \| \
1488 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1489 $as_echo X"$as_myself" |
1490 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1508 if test ! -r "$srcdir/$ac_unique_file"; then
1512 ac_srcdir_defaulted
=no
1514 if test ! -r "$srcdir/$ac_unique_file"; then
1515 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1516 as_fn_error $?
"cannot find sources ($ac_unique_file) in $srcdir"
1518 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1520 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1522 # When building in place, set srcdir=.
1523 if test "$ac_abs_confdir" = "$ac_pwd"; then
1526 # Remove unnecessary trailing slashes from srcdir.
1527 # Double slashes in file names in object file debugging info
1528 # mess up M-x gdb in Emacs.
1530 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1532 for ac_var
in $ac_precious_vars; do
1533 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1534 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1535 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1536 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1540 # Report the --help message.
1542 if test "$ac_init_help" = "long"; then
1543 # Omit some internal or obsolete options to make the list less imposing.
1544 # This message is too long to be a string in the A/UX 3.1 sh.
1546 \`configure' configures this package to adapt to many kinds of systems.
1548 Usage: $0 [OPTION]... [VAR=VALUE]...
1550 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1551 VAR=VALUE. See below for descriptions of some of the useful variables.
1553 Defaults for the options are specified in brackets.
1556 -h, --help display this help and exit
1557 --help=short display options specific to this package
1558 --help=recursive display the short help of all the included packages
1559 -V, --version display version information and exit
1560 -q, --quiet, --silent do not print \`checking ...' messages
1561 --cache-file=FILE cache test results in FILE [disabled]
1562 -C, --config-cache alias for \`--cache-file=config.cache'
1563 -n, --no-create do not create output files
1564 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1566 Installation directories:
1567 --prefix=PREFIX install architecture-independent files in PREFIX
1568 [$ac_default_prefix]
1569 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1572 By default, \`make install' will install all the files in
1573 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1574 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1575 for instance \`--prefix=\$HOME'.
1577 For better control, use the options below.
1579 Fine tuning of the installation directories:
1580 --bindir=DIR user executables [EPREFIX/bin]
1581 --sbindir=DIR system admin executables [EPREFIX/sbin]
1582 --libexecdir=DIR program executables [EPREFIX/libexec]
1583 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1584 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1585 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1586 --libdir=DIR object code libraries [EPREFIX/lib]
1587 --includedir=DIR C header files [PREFIX/include]
1588 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1589 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1590 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1591 --infodir=DIR info documentation [DATAROOTDIR/info]
1592 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1593 --mandir=DIR man documentation [DATAROOTDIR/man]
1594 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1595 --htmldir=DIR html documentation [DOCDIR]
1596 --dvidir=DIR dvi documentation [DOCDIR]
1597 --pdfdir=DIR pdf documentation [DOCDIR]
1598 --psdir=DIR ps documentation [DOCDIR]
1604 --x-includes=DIR X include files are
in DIR
1605 --x-libraries=DIR X library files are
in DIR
1608 --build=BUILD configure
for building on BUILD
[guessed
]
1609 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1610 --target=TARGET configure
for building compilers
for TARGET
[HOST
]
1614 if test -n "$ac_init_help"; then
1619 --disable-option-checking ignore unrecognized
--enable/--with options
1620 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1621 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1622 --disable-ssp disable gcc stack-protector
1623 --disable-pie disable position-independent-executable
1624 --disable-visibility disable gcc symbol visibility
1625 --disable-shared disable core shared libary generation
1628 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1629 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1630 --with-64bit turn on
64 bit compilation mode
(default is platform
1632 --with-optimization enable optimization
for C
/C
++ code
(default is
yes)
1633 --with-threads enable support
for multiple threads
(default is on
)
1634 --with-secure-sockets enable support
for secure sockets
(default is on
)
1635 --with-static-probes enable support
for static probes
(default is on
)
1636 --with-infiniband enable support
for Infiniband metrics
(default is
1638 --with-user user account under
which daemons run
(default is
1640 --with-group user group under
which daemons run
(default is pcp
)
1641 --with-discovery enable support
for service discovery
(default is on
)
1642 --with-systemd enable support
for systemd services
(default is on
)
1643 --with-qt enable support
for tools requiring Qt
(default is
1645 --with-python enable support
for tools requiring Python
(default
1647 --with-python3 enable support
for tools requiring Python3
(default
1649 --with-books enable building of the PCP books
(default is off
)
1650 --with-books-brand=BRAND
1651 choose the docbook brand when building the PCP books
1653 --with-papi[=DIR|
=MODULE
]
1654 enable performance api counter pmda
(default is on
)
1655 The optional argument may be a full path of a PAPI
1656 installation prefix
, or a pkgconfig module name.
1657 --with-perfevent enable perfevent pmda
(default is on
)
1658 --with-pmdajson enable JSON pmda
(default is on
)
1659 --with-manager enable daemon manager
(default is on
)
1660 --with-webapi enable REST API daemon
(default is on
)
1661 --with-webjs enable building of webjs packages
(default is off
)
1662 --with-vector enable building of vector package
(default is off
)
1663 --with-parfait enable building of parfait package
(default is off
)
1664 --with-make path to GNU compatible
make(1) (default is empty
for
1666 --with-tar path to GNU compatible
tar(1) (default is empty
for
1668 --with-zip path to GNU compatible
zip(1) (default is empty
for
1670 --with-configdir configuration directory
[LOCALSTATEDIR
/pcp
/config
]
1671 --with-perl_installdirs perl installdirs
[vendor
]
1672 --with-perl_install_base
1673 perl install_base
[PREFIX
]
1674 --with-python_prefix python setup.py prefix
[PREFIX
]
1675 --with-x use the X Window System
1676 --with-rcdir rc directory
[SYSCONFDIR
/rc.d
]
1677 --with-sysconfigdir sysconfig directory
[SYSCONFDIR
/sysconfig
]
1678 --with-logdir log directory
[LOCALSTATEDIR
/log
/pcp
]
1679 --with-rundir run directory
[LOCALSTATEDIR
/run
/pcp
]
1680 --with-tmpdir tmp directory
[LOCALSTATEDIR
/tmp
]
1681 --with-docdir docs directory
[DOCDIR
/pcp-VERSION
]
1682 --with-demosdir run directory
[DATADIR
/pcp
/demos
]
1684 Some influential environment variables
:
1685 PKG_CONFIG path to pkg-config utility
1687 directories to add to pkg-config
's search path
1689 path overriding pkg-config's built-in search path
1690 CC C compiler
command
1691 CFLAGS C compiler flags
1692 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1693 nonstandard directory
<lib dir
>
1694 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1695 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1696 you have headers
in a nonstandard directory
<include dir
>
1697 CXX C
++ compiler
command
1698 CXXFLAGS C
++ compiler flags
1699 YACC The
`Yet Another Compiler Compiler' implementation to use.
1700 Defaults to the first program found out of: `bison
-y', `byacc',
1702 YFLAGS The list of arguments that will be passed by default to $YACC.
1703 This script will default YFLAGS to the empty string to avoid a
1704 default value of `-d' given by some make applications.
1707 C compiler flags for avahi, overriding pkg-config
1708 avahi_LIBS linker flags for avahi, overriding pkg-config
1709 SYSTEMD_SYSTEMUNITDIR
1710 value of systemdsystemunitdir for systemd, overriding pkg-config
1712 C compiler flags for ncurses, overriding pkg-config
1714 linker flags for ncurses, overriding pkg-config
1716 C compiler flags for SYSTEMD, overriding pkg-config
1718 linker flags for SYSTEMD, overriding pkg-config
1719 papi_CFLAGS C compiler flags for papi, overriding pkg-config
1720 papi_LIBS linker flags for papi, overriding pkg-config
1721 libmicrohttpd_CFLAGS
1722 C compiler flags for libmicrohttpd, overriding pkg-config
1724 linker flags for libmicrohttpd, overriding pkg-config
1726 C compiler flags for cairo, overriding pkg-config
1727 cairo_LIBS linker flags for cairo, overriding pkg-config
1728 XMKMF Path to xmkmf, Makefile generator for X Window System
1729 zlib_CFLAGS C compiler flags for zlib, overriding pkg-config
1730 zlib_LIBS linker flags for zlib, overriding pkg-config
1732 Use these variables to override the choices made by `configure' or to
help
1733 it to
find libraries and programs with nonstandard names
/locations.
1735 Report bugs to the package provider.
1740 if test "$ac_init_help" = "recursive"; then
1741 # If there are subdirs, report their specific --help.
1742 for ac_dir
in : $ac_subdirs_all; do test "x$ac_dir" = x
: && continue
1743 test -d "$ac_dir" ||
1744 { cd "$srcdir" && ac_pwd
=`pwd` && srcdir
=.
&& test -d "$ac_dir"; } ||
1749 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1751 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1752 # A ".." for each directory in $ac_dir_suffix.
1753 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1754 case $ac_top_builddir_sub in
1755 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
1756 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
1759 ac_abs_top_builddir
=$ac_pwd
1760 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
1761 # for backward compatibility:
1762 ac_top_builddir
=$ac_top_build_prefix
1765 .
) # We are building in place.
1767 ac_top_srcdir
=$ac_top_builddir_sub
1768 ac_abs_top_srcdir
=$ac_pwd ;;
1769 [\\/]* | ?
:[\\/]* ) # Absolute name.
1770 ac_srcdir
=$srcdir$ac_dir_suffix;
1771 ac_top_srcdir
=$srcdir
1772 ac_abs_top_srcdir
=$srcdir ;;
1774 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
1775 ac_top_srcdir
=$ac_top_build_prefix$srcdir
1776 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
1778 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
1780 cd "$ac_dir" ||
{ ac_status
=$?
; continue; }
1781 # Check for guested configure.
1782 if test -f "$ac_srcdir/configure.gnu"; then
1784 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1785 elif test -f "$ac_srcdir/configure"; then
1787 $SHELL "$ac_srcdir/configure" --help=recursive
1789 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1791 cd "$ac_pwd" ||
{ ac_status
=$?
; break; }
1795 test -n "$ac_init_help" && exit $ac_status
1796 if $ac_init_version; then
1799 generated by GNU Autoconf
2.69
1801 Copyright
(C
) 2012 Free Software Foundation
, Inc.
1802 This configure
script is free software
; the Free Software Foundation
1803 gives unlimited permission to copy
, distribute and modify it.
1808 ## ------------------------ ##
1809 ## Autoconf initialization. ##
1810 ## ------------------------ ##
1812 # ac_fn_c_try_compile LINENO
1813 # --------------------------
1814 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1815 ac_fn_c_try_compile
()
1817 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1818 rm -f conftest.
$ac_objext
1819 if { { ac_try
="$ac_compile"
1821 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1822 *) ac_try_echo=$ac_try;;
1824 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1825 $as_echo "$ac_try_echo"; } >&5
1826 (eval "$ac_compile") 2>conftest.err
1828 if test -s conftest.err; then
1829 grep -v '^ *+' conftest.err >conftest.er1
1830 cat conftest.er1 >&5
1831 mv -f conftest.er1 conftest.err
1833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1834 test $ac_status = 0; } && {
1835 test -z "$ac_c_werror_flag" ||
1836 test ! -s conftest.err
1837 } && test -s conftest.$ac_objext; then :
1840 $as_echo "$as_me: failed program was:" >&5
1841 sed 's/^/| /' conftest.$ac_ext >&5
1845 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1846 as_fn_set_status $ac_retval
1848 } # ac_fn_c_try_compile
1850 # ac_fn_c_try_link LINENO
1851 # -----------------------
1852 # Try to link conftest.$ac_ext, and return whether this succeeded.
1855 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1856 rm -f conftest.$ac_objext conftest$ac_exeext
1857 if { { ac_try="$ac_link"
1859 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1860 *) ac_try_echo
=$ac_try;;
1862 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1863 $as_echo "$ac_try_echo"; } >&5
1864 (eval "$ac_link") 2>conftest.err
1866 if test -s conftest.err
; then
1867 grep -v '^ *+' conftest.err
>conftest.er1
1868 cat conftest.er1
>&5
1869 mv -f conftest.er1 conftest.err
1871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1872 test $ac_status = 0; } && {
1873 test -z "$ac_c_werror_flag" ||
1874 test ! -s conftest.err
1875 } && test -s conftest
$ac_exeext && {
1876 test "$cross_compiling" = yes ||
1877 test -x conftest
$ac_exeext
1881 $as_echo "$as_me: failed program was:" >&5
1882 sed 's/^/| /' conftest.
$ac_ext >&5
1886 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1887 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1888 # interfere with the next link command; also delete a directory that is
1889 # left behind by Apple's compiler. We do this before executing the actions.
1890 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1891 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1892 as_fn_set_status
$ac_retval
1894 } # ac_fn_c_try_link
1896 # ac_fn_cxx_try_compile LINENO
1897 # ----------------------------
1898 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1899 ac_fn_cxx_try_compile
()
1901 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1902 rm -f conftest.
$ac_objext
1903 if { { ac_try
="$ac_compile"
1905 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1906 *) ac_try_echo=$ac_try;;
1908 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1909 $as_echo "$ac_try_echo"; } >&5
1910 (eval "$ac_compile") 2>conftest.err
1912 if test -s conftest.err; then
1913 grep -v '^ *+' conftest.err >conftest.er1
1914 cat conftest.er1 >&5
1915 mv -f conftest.er1 conftest.err
1917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1918 test $ac_status = 0; } && {
1919 test -z "$ac_cxx_werror_flag" ||
1920 test ! -s conftest.err
1921 } && test -s conftest.$ac_objext; then :
1924 $as_echo "$as_me: failed program was:" >&5
1925 sed 's/^/| /' conftest.$ac_ext >&5
1929 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1930 as_fn_set_status $ac_retval
1932 } # ac_fn_cxx_try_compile
1934 # ac_fn_c_try_cpp LINENO
1935 # ----------------------
1936 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1939 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1940 if { { ac_try="$ac_cpp conftest.$ac_ext"
1942 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1943 *) ac_try_echo
=$ac_try;;
1945 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1946 $as_echo "$ac_try_echo"; } >&5
1947 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1949 if test -s conftest.err
; then
1950 grep -v '^ *+' conftest.err
>conftest.er1
1951 cat conftest.er1
>&5
1952 mv -f conftest.er1 conftest.err
1954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1955 test $ac_status = 0; } > conftest.i
&& {
1956 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1957 test ! -s conftest.err
1961 $as_echo "$as_me: failed program was:" >&5
1962 sed 's/^/| /' conftest.
$ac_ext >&5
1966 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1967 as_fn_set_status
$ac_retval
1971 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1972 # -------------------------------------------------------
1973 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1974 # the include files in INCLUDES and setting the cache variable VAR
1976 ac_fn_c_check_header_mongrel
()
1978 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1979 if eval \
${$3+:} false
; then :
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1981 $as_echo_n "checking for $2... " >&6; }
1982 if eval \
${$3+:} false
; then :
1983 $as_echo_n "(cached) " >&6
1986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1987 $as_echo "$ac_res" >&6; }
1989 # Is the header compilable?
1990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1991 $as_echo_n "checking $2 usability... " >&6; }
1992 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
1993 /* end confdefs.h. */
1997 if ac_fn_c_try_compile
"$LINENO"; then :
1998 ac_header_compiler
=yes
2000 ac_header_compiler
=no
2002 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2004 $as_echo "$ac_header_compiler" >&6; }
2006 # Is the header present?
2007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2008 $as_echo_n "checking $2 presence... " >&6; }
2009 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2010 /* end confdefs.h. */
2013 if ac_fn_c_try_cpp
"$LINENO"; then :
2014 ac_header_preproc
=yes
2016 ac_header_preproc
=no
2018 rm -f conftest.err conftest.i conftest.
$ac_ext
2019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2020 $as_echo "$ac_header_preproc" >&6; }
2022 # So? What about this header?
2023 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2025 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2026 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2028 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2032 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2034 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2036 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2038 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2040 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2044 $as_echo_n "checking for $2... " >&6; }
2045 if eval \
${$3+:} false
; then :
2046 $as_echo_n "(cached) " >&6
2048 eval "$3=\$ac_header_compiler"
2051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2052 $as_echo "$ac_res" >&6; }
2054 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2056 } # ac_fn_c_check_header_mongrel
2058 # ac_fn_c_try_run LINENO
2059 # ----------------------
2060 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2061 # that executables *can* be run.
2064 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2065 if { { ac_try
="$ac_link"
2067 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
2068 *) ac_try_echo=$ac_try;;
2070 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2071 $as_echo "$ac_try_echo"; } >&5
2072 (eval "$ac_link") 2>&5
2074 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2075 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2076 { { case "(($ac_try" in
2077 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
2078 *) ac_try_echo
=$ac_try;;
2080 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2081 $as_echo "$ac_try_echo"; } >&5
2082 (eval "$ac_try") 2>&5
2084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2085 test $ac_status = 0; }; }; then :
2088 $as_echo "$as_me: program exited with status $ac_status" >&5
2089 $as_echo "$as_me: failed program was:" >&5
2090 sed 's/^/| /' conftest.
$ac_ext >&5
2092 ac_retval
=$ac_status
2094 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2095 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2096 as_fn_set_status
$ac_retval
2100 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2101 # -------------------------------------------------------
2102 # Tests whether HEADER exists and can be compiled using the include files in
2103 # INCLUDES, setting the cache variable VAR accordingly.
2104 ac_fn_c_check_header_compile
()
2106 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2108 $as_echo_n "checking for $2... " >&6; }
2109 if eval \
${$3+:} false
; then :
2110 $as_echo_n "(cached) " >&6
2112 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2113 /* end confdefs.h. */
2117 if ac_fn_c_try_compile
"$LINENO"; then :
2122 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2126 $as_echo "$ac_res" >&6; }
2127 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2129 } # ac_fn_c_check_header_compile
2131 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2132 # -------------------------------------------
2133 # Tests whether TYPE exists after having included INCLUDES, setting cache
2134 # variable VAR accordingly.
2135 ac_fn_c_check_type
()
2137 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2139 $as_echo_n "checking for $2... " >&6; }
2140 if eval \
${$3+:} false
; then :
2141 $as_echo_n "(cached) " >&6
2144 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2145 /* end confdefs.h. */
2156 if ac_fn_c_try_compile
"$LINENO"; then :
2157 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2158 /* end confdefs.h. */
2169 if ac_fn_c_try_compile
"$LINENO"; then :
2174 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2176 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
2179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2180 $as_echo "$ac_res" >&6; }
2181 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2183 } # ac_fn_c_check_type
2185 # ac_fn_c_check_func LINENO FUNC VAR
2186 # ----------------------------------
2187 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2188 ac_fn_c_check_func
()
2190 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
2191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2192 $as_echo_n "checking for $2... " >&6; }
2193 if eval \
${$3+:} false
; then :
2194 $as_echo_n "(cached) " >&6
2196 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
2197 /* end confdefs.h. */
2198 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2199 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2200 #define $2 innocuous_$2
2202 /* System header to define __stub macros and hopefully few prototypes,
2203 which can conflict with char $2 (); below.
2204 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2205 <limits.h> exists even on freestanding compilers. */
2208 # include <limits.h>
2210 # include <assert.h>
2215 /* Override any GCC internal prototype to avoid an error.
2216 Use char because int might match the return type of a GCC
2217 builtin and then its argument prototype would still apply. */
2222 /* The GNU C library defines this for functions which it implements
2223 to always fail with ENOSYS. Some functions are actually named
2224 something starting with __ and the normal name is an alias. */
2225 #if defined __stub_$2 || defined __stub___$2
2237 if ac_fn_c_try_link
"$LINENO"; then :
2242 rm -f core conftest.err conftest.
$ac_objext \
2243 conftest
$ac_exeext conftest.
$ac_ext
2246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2247 $as_echo "$ac_res" >&6; }
2248 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2250 } # ac_fn_c_check_func
2251 cat >config.log
<<_ACEOF
2252 This file contains any messages produced by compilers while
2253 running configure, to aid debugging if configure makes a mistake.
2255 It was created by $as_me, which was
2256 generated by GNU Autoconf 2.69. Invocation command line was
2268 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2269 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2270 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2271 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2272 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2274 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2275 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2277 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2278 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2279 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2280 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2281 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2282 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2283 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2287 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2291 test -z "$as_dir" && as_dir
=.
2292 $as_echo "PATH: $as_dir"
2308 # Keep a trace of the command line.
2309 # Strip out --no-create and --no-recursion so they do not pile up.
2310 # Strip out --silent because we don't want to record it for future runs.
2311 # Also quote any args containing shell meta-characters.
2312 # Make two passes to allow for proper duplicate-argument suppression.
2316 ac_must_keep_next
=false
2322 -no-create |
--no-c* |
-n |
-no-recursion |
--no-r*) continue ;;
2323 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
2324 |
-silent |
--silent |
--silen |
--sile |
--sil)
2327 ac_arg
=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2330 1) as_fn_append ac_configure_args0
" '$ac_arg'" ;;
2332 as_fn_append ac_configure_args1
" '$ac_arg'"
2333 if test $ac_must_keep_next = true
; then
2334 ac_must_keep_next
=false
# Got value, back to normal.
2337 *=* |
--config-cache |
-C |
-disable-* |
--disable-* \
2338 |
-enable-* |
--enable-* |
-gas |
--g* |
-nfp |
--nf* \
2339 |
-q |
-quiet |
--q* |
-silent |
--sil* |
-v |
-verb* \
2340 |
-with-* |
--with-* |
-without-* |
--without-* |
--x)
2341 case "$ac_configure_args0 " in
2342 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2345 -* ) ac_must_keep_next
=true
;;
2348 as_fn_append ac_configure_args
" '$ac_arg'"
2353 { ac_configure_args0
=; unset ac_configure_args0
;}
2354 { ac_configure_args1
=; unset ac_configure_args1
;}
2356 # When interrupted or exit'd, cleanup temporary files, and complete
2357 # config.log. We remove comments because anyway the quotes in there
2358 # would cause problems or look ugly.
2359 # WARNING: Use '\'' to represent an apostrophe within the trap.
2360 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2361 trap 'exit_status=$?
2362 # Save into config.log some information that might help in debugging.
2366 $as_echo "## ---------------- ##
2367 ## Cache variables. ##
2368 ## ---------------- ##"
2370 # The following way of writing the cache mishandles newlines in values,
2372 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2373 eval ac_val=\$$ac_var
2377 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2378 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2381 _ | IFS | as_nl) ;; #(
2382 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2383 *) { eval $ac_var=; unset $ac_var;} ;;
2388 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2389 *${as_nl}ac_space=\ *)
2391 "s/'\''/'\''\\\\'\'''\''/g;
2392 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2395 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2402 $as_echo "## ----------------- ##
2403 ## Output variables. ##
2404 ## ----------------- ##"
2406 for ac_var in $ac_subst_vars
2408 eval ac_val=\$$ac_var
2410 *\'\''*) ac_val
=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2412 $as_echo "$ac_var='\''$ac_val'\''"
2416 if test -n "$ac_subst_files"; then
2417 $as_echo "## ------------------- ##
2418 ## File substitutions. ##
2419 ## ------------------- ##"
2421 for ac_var
in $ac_subst_files
2423 eval ac_val
=\$
$ac_var
2425 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2427 $as_echo "$ac_var='\''$ac_val'\''"
2432 if test -s confdefs.h; then
2433 $as_echo "## ----------- ##
2440 test "$ac_signal" != 0 &&
2441 $as_echo "$as_me: caught signal $ac_signal"
2442 $as_echo "$as_me: exit $exit_status"
2444 rm -f core *.core core.conftest.* &&
2445 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2448 for ac_signal
in 1 2 13 15; do
2449 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2453 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2454 rm -f -r conftest
* confdefs.h
2456 $as_echo "/* confdefs.h */" > confdefs.h
2458 # Predefined preprocessor variables.
2460 cat >>confdefs.h
<<_ACEOF
2461 #define PACKAGE_NAME "$PACKAGE_NAME"
2464 cat >>confdefs.h
<<_ACEOF
2465 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2468 cat >>confdefs.h
<<_ACEOF
2469 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2472 cat >>confdefs.h
<<_ACEOF
2473 #define PACKAGE_STRING "$PACKAGE_STRING"
2476 cat >>confdefs.h
<<_ACEOF
2477 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2480 cat >>confdefs.h
<<_ACEOF
2481 #define PACKAGE_URL "$PACKAGE_URL"
2485 # Let the site file select an alternate cache file if it wants to.
2486 # Prefer an explicitly selected file to automatically selected ones.
2489 if test -n "$CONFIG_SITE"; then
2490 # We do not want a PATH search for config.site.
2491 case $CONFIG_SITE in #((
2492 -*) ac_site_file1
=.
/$CONFIG_SITE;;
2493 */*) ac_site_file1
=$CONFIG_SITE;;
2494 *) ac_site_file1
=.
/$CONFIG_SITE;;
2496 elif test "x$prefix" != xNONE
; then
2497 ac_site_file1
=$prefix/share
/config.site
2498 ac_site_file2
=$prefix/etc
/config.site
2500 ac_site_file1
=$ac_default_prefix/share
/config.site
2501 ac_site_file2
=$ac_default_prefix/etc
/config.site
2503 for ac_site_file
in "$ac_site_file1" "$ac_site_file2"
2505 test "x$ac_site_file" = xNONE
&& continue
2506 if test /dev
/null
!= "$ac_site_file" && test -r "$ac_site_file"; then
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2508 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2509 sed 's/^/| /' "$ac_site_file" >&5
2511 ||
{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2512 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2513 as_fn_error $?
"failed to load site script $ac_site_file
2514 See \`config.log' for more details" "$LINENO" 5; }
2518 if test -r "$cache_file"; then
2519 # Some versions of bash will fail to source /dev/null (special files
2520 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2521 if test /dev
/null
!= "$cache_file" && test -f "$cache_file"; then
2522 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2523 $as_echo "$as_me: loading cache $cache_file" >&6;}
2525 [\\/]* | ?
:[\\/]* ) .
"$cache_file";;
2526 *) .
"./$cache_file";;
2530 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2531 $as_echo "$as_me: creating cache $cache_file" >&6;}
2535 # Check that the precious variables saved in the cache have kept the same
2537 ac_cache_corrupted
=false
2538 for ac_var
in $ac_precious_vars; do
2539 eval ac_old_set
=\
$ac_cv_env_${ac_var}_set
2540 eval ac_new_set
=\
$ac_env_${ac_var}_set
2541 eval ac_old_val
=\
$ac_cv_env_${ac_var}_value
2542 eval ac_new_val
=\
$ac_env_${ac_var}_value
2543 case $ac_old_set,$ac_new_set in
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2546 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2547 ac_cache_corrupted
=: ;;
2549 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2550 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2551 ac_cache_corrupted
=: ;;
2554 if test "x$ac_old_val" != "x$ac_new_val"; then
2555 # differences in whitespace do not lead to failure.
2556 ac_old_val_w
=`echo x $ac_old_val`
2557 ac_new_val_w
=`echo x $ac_new_val`
2558 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2560 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2561 ac_cache_corrupted
=:
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2564 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2565 eval $ac_var=\
$ac_old_val
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2568 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2570 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2573 # Pass precious variables to config.status.
2574 if test "$ac_new_set" = set; then
2576 *\'*) ac_arg
=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2577 *) ac_arg
=$ac_var=$ac_new_val ;;
2579 case " $ac_configure_args " in
2580 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2581 *) as_fn_append ac_configure_args
" '$ac_arg'" ;;
2585 if $ac_cache_corrupted; then
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2587 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2588 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2589 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2590 as_fn_error $?
"run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2592 ## -------------------- ##
2593 ## Main body of script. ##
2594 ## -------------------- ##
2597 ac_cpp
='$CPP $CPPFLAGS'
2598 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2599 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2600 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
2608 # Check whether --with-64bit was given.
2609 if test "${with_64bit+set}" = set; then :
2610 withval
=$with_64bit; use_64bit
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-64bit=$withval"
2615 # Check whether --with-optimization was given.
2616 if test "${with_optimization+set}" = set; then :
2617 withval
=$with_optimization; use_optimization
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-optimization=$withval"
2624 # Check whether --with-threads was given.
2625 if test "${with_threads+set}" = set; then :
2626 withval
=$with_threads; do_threads
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-threads=$withval"
2633 # Check whether --with-secure-sockets was given.
2634 if test "${with_secure_sockets+set}" = set; then :
2635 withval
=$with_secure_sockets; do_secure
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-secure-sockets=$withval"
2642 # Check whether --with-static-probes was given.
2643 if test "${with_static_probes+set}" = set; then :
2644 withval
=$with_static_probes; do_probes
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-static-probes=$withval"
2651 # Check whether --with-infiniband was given.
2652 if test "${with_infiniband+set}" = set; then :
2653 withval
=$with_infiniband; do_infiniband
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-infiniband=$withval"
2660 # Check whether --with-user was given.
2661 if test "${with_user+set}" = set; then :
2662 withval
=$with_user; pcp_user
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-user-account=$withval"
2670 # Check whether --with-group was given.
2671 if test "${with_group+set}" = set; then :
2672 withval
=$with_group; pcp_group
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-group-account=$withval"
2680 # Check whether --with-discovery was given.
2681 if test "${with_discovery+set}" = set; then :
2682 withval
=$with_discovery; do_discovery
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-discovery=$withval"
2689 # Check whether --with-systemd was given.
2690 if test "${with_systemd+set}" = set; then :
2691 withval
=$with_systemd; do_systemd
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-systemd=$withval"
2698 # Check whether --with-qt was given.
2699 if test "${with_qt+set}" = set; then :
2700 withval
=$with_qt; do_qt
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-qt=$withval"
2707 # Check whether --with-python was given.
2708 if test "${with_python+set}" = set; then :
2709 withval
=$with_python; do_python
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-python=$withval"
2716 # Check whether --with-python3 was given.
2717 if test "${with_python3+set}" = set; then :
2718 withval
=$with_python3; do_python3
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-python3=$withval"
2725 # Check whether --with-books was given.
2726 if test "${with_books+set}" = set; then :
2727 withval
=$with_books; do_books
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-books=$withval"
2734 # Check whether --with-books-brand was given.
2735 if test "${with_books_brand+set}" = set; then :
2736 withval
=$with_books_brand; do_books_brand
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-books-brand=$withval"
2738 do_books_brand
=common
2743 # Check whether --with-papi was given.
2744 if test "${with_papi+set}" = set; then :
2745 withval
=$with_papi; do_papi
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-papi=$withval"
2752 # Check whether --with-perfevent was given.
2753 if test "${with_perfevent+set}" = set; then :
2754 withval
=$with_perfevent; do_perfevent
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-perfevent=$withval"
2761 # Check whether --with-pmdajson was given.
2762 if test "${with_pmdajson+set}" = set; then :
2763 withval
=$with_pmdajson; do_pmdajson
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-pmdajson=$withval"
2770 # Check whether --with-manager was given.
2771 if test "${with_manager+set}" = set; then :
2772 withval
=$with_manager; do_manager
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-manager=$withval"
2779 # Check whether --with-webapi was given.
2780 if test "${with_webapi+set}" = set; then :
2781 withval
=$with_webapi; do_webapi
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-webapi=$withval"
2788 # Check whether --with-webjs was given.
2789 if test "${with_webjs+set}" = set; then :
2790 withval
=$with_webjs; do_webjs
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-webjs=$withval"
2797 # Check whether --with-vector was given.
2798 if test "${with_vector+set}" = set; then :
2799 withval
=$with_vector; do_vector
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-vector=$withval"
2806 # Check whether --with-parfait was given.
2807 if test "${with_parfait+set}" = set; then :
2808 withval
=$with_parfait; do_parfait
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-parfait=$withval"
2816 # Check whether --with-make was given.
2817 if test "${with_make+set}" = set; then :
2818 withval
=$with_make; MAKE
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-make=$withval"
2825 # Check whether --with-tar was given.
2826 if test "${with_tar+set}" = set; then :
2827 withval
=$with_tar; TAR
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-tar=$withval"
2834 # Check whether --with-zip was given.
2835 if test "${with_zip+set}" = set; then :
2836 withval
=$with_zip; ZIP
=$withval; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --with-zip=$withval"
2843 # Note: the following environment variables may be
2844 # set to override the defaults.
2846 # MAKE CC CPP LD LEX YACC INSTALL AWK SED ECHO
2850 for ac_dir
in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2851 if test -f "$ac_dir/install-sh"; then
2853 ac_install_sh
="$ac_aux_dir/install-sh -c"
2855 elif test -f "$ac_dir/install.sh"; then
2857 ac_install_sh
="$ac_aux_dir/install.sh -c"
2859 elif test -f "$ac_dir/shtool"; then
2861 ac_install_sh
="$ac_aux_dir/shtool install -c"
2865 if test -z "$ac_aux_dir"; then
2866 as_fn_error $?
"cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2869 # These three variables are undocumented and unsupported,
2870 # and are intended to be withdrawn in a future Autoconf release.
2871 # They can cause serious problems if a builder's source tree is in a directory
2872 # whose full name contains unusual characters.
2873 ac_config_guess
="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2874 ac_config_sub
="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2875 ac_configure
="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2878 # Make sure we can run config.sub.
2879 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
2880 as_fn_error $?
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2883 $as_echo_n "checking build system type... " >&6; }
2884 if ${ac_cv_build+:} false
; then :
2885 $as_echo_n "(cached) " >&6
2887 ac_build_alias
=$build_alias
2888 test "x$ac_build_alias" = x
&&
2889 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
2890 test "x$ac_build_alias" = x
&&
2891 as_fn_error $?
"cannot guess build type; you must specify one" "$LINENO" 5
2892 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2893 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2897 $as_echo "$ac_cv_build" >&6; }
2898 case $ac_cv_build in
2900 *) as_fn_error $?
"invalid value of canonical build" "$LINENO" 5;;
2903 ac_save_IFS
=$IFS; IFS
='-'
2909 # Remember, the first character of IFS is used to create $*,
2910 # except with old shells:
2913 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2917 $as_echo_n "checking host system type... " >&6; }
2918 if ${ac_cv_host+:} false
; then :
2919 $as_echo_n "(cached) " >&6
2921 if test "x$host_alias" = x
; then
2922 ac_cv_host
=$ac_cv_build
2924 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2925 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2930 $as_echo "$ac_cv_host" >&6; }
2933 *) as_fn_error $?
"invalid value of canonical host" "$LINENO" 5;;
2936 ac_save_IFS
=$IFS; IFS
='-'
2942 # Remember, the first character of IFS is used to create $*,
2943 # except with old shells:
2946 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2950 $as_echo_n "checking target system type... " >&6; }
2951 if ${ac_cv_target+:} false
; then :
2952 $as_echo_n "(cached) " >&6
2954 if test "x$target_alias" = x
; then
2955 ac_cv_target
=$ac_cv_host
2957 ac_cv_target
=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2958 as_fn_error $?
"$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2963 $as_echo "$ac_cv_target" >&6; }
2964 case $ac_cv_target in
2966 *) as_fn_error $?
"invalid value of canonical target" "$LINENO" 5;;
2968 target
=$ac_cv_target
2969 ac_save_IFS
=$IFS; IFS
='-'
2975 # Remember, the first character of IFS is used to create $*,
2976 # except with old shells:
2979 case $target_os in *\
*) target_os
=`echo "$target_os" | sed 's/ /-/g'`;; esac
2982 # The aliases save the names the user supplied, while $host etc.
2983 # will get canonicalized.
2984 test -n "$target_alias" &&
2985 test "$program_prefix$program_suffix$program_transform_name" = \
2987 program_prefix
=${target_alias}-
2989 if test -z "$target"
2992 FATAL ERROR: Cannot guess your target, try explicit specification
2993 using --target or mailto: pcp@oss.sgi.com to ask.'
2994 rm -rf conftest conftest.
*
2997 target
=`echo $target | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
2998 target_os
=`echo $target_os | sed 's/solaris2\..*/solaris/'`
2999 target_os
=`echo $target_os | sed 's/^\([^-][^-]*\)-.*$/\1/' | sed 's/[\.0-9]*//g'`
3001 build
=`echo $build | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
3002 build_os
=`echo $build_os | sed 's/solaris2\..*/solaris/'`
3003 build_os
=`echo $build_os | sed 's/^\([^-][^-]*\)-.*$/\1/'`
3006 echo Building on
$build for $target
3007 echo "Build: os=$build_os cpu=$build_cpu"
3008 echo "Target: os=$target_os cpu=$target_cpu"
3010 if test "$cross_compiling" = "yes"; then
3011 if test -f .
/config.
$target_os; then
3012 . .
/config.
$target_os
3016 FATAL ERROR: Cannot perform cross-compilation without a file to source
3017 configuration information from (config.$target_os is missing)"
3018 rm -rf conftest conftest.
*
3025 target_distro
=$target_os
3026 if test $target_os = linux
3029 $as_echo "#define IS_LINUX 1" >>confdefs.h
3031 test -f /etc
/SuSE-release
&& target_distro
=suse
3032 test -f /etc
/fedora-release
&& target_distro
=fedora
3033 test -f /etc
/redhat-release
&& target_distro
=redhat
3034 test -f /etc
/debian_version
&& target_distro
=debian
3035 test -f /etc
/slackware-version
&& target_distro
=slackware
3036 test -f /etc
/gentoo-release
&& target_distro
=gentoo
3037 test -f /etc
/mandriva-release
&& target_distro
=mandriva
3038 export CFLAGS
="-fPIC -fno-strict-aliasing -D_GNU_SOURCE"
3039 pcp_platform_paths
='/usr/bin/X11:/usr/local/bin'
3040 pcp_ps_all_flags
=-efw
3041 elif test $target_os = darwin
3044 $as_echo "#define IS_DARWIN 1" >>confdefs.h
3046 target_distro
=macosx
3047 version
=`sw_vers -productVersion | sed -e 's/\.//' -e 's/\..*//g'`
3048 CFLAGS
="-fPIC -no-cpp-precomp -fno-strict-aliasing -arch i386"
3049 if test $version -ge 106
3052 CFLAGS
="$CFLAGS -arch x86_64"
3055 pcp_platform_paths
='/usr/local/bin'
3056 pcp_ps_all_flags
="-axw -o user,pid,ppid,cpu,stime,tty,time,command"
3057 elif test $target_os = mingw
3060 $as_echo "#define IS_MINGW 1" >>confdefs.h
3062 CFLAGS
="-fno-strict-aliasing"
3063 pcp_platform_paths
=''
3064 pcp_ps_all_flags
=-efW
3065 elif test $target_os = solaris
3068 $as_echo "#define IS_SOLARIS 1" >>confdefs.h
3070 export CFLAGS_IF_GCC
="-fPIC -fno-strict-aliasing"
3071 export CFLAGS_IF_SUNCC
="-fPIC -xalias_level=any -D_XPG4_2 -D__EXTENSIONS__"
3072 pcp_platform_paths
='/usr/bin/X11:/usr/local/bin:/opt/sfw/bin:/opt/csw/bin'
3073 pcp_ps_all_flags
=-ef
3074 elif test $target_os = aix
3077 $as_echo "#define IS_AIX 1" >>confdefs.h
3079 export CFLAGS
="-qcpluscmt"
3080 pcp_platform_paths
='/usr/bin/X11:/usr/local/bin'
3081 pcp_ps_all_flags
=-ef
3082 elif test $target_os = freebsd ||
test $target_os = kfreebsd
3085 $as_echo "#define IS_FREEBSD 1" >>confdefs.h
3087 test -f /etc
/debian_version
&& target_distro
=debian
3088 export CFLAGS
="-fPIC -fno-strict-aliasing -D_GNU_SOURCE"
3089 if test $target_os = kfreebsd
3091 pcp_ps_all_flags
=-efw
3093 pcp_ps_all_flags
=auxww
3095 pcp_platform_paths
='/usr/bin/X11'
3096 test -d /usr
/local
/bin
&& pcp_platform_paths
="$pcp_platform_paths:/usr/local/bin"
3097 test -d /usr
/bsd
&& pcp_platform_paths
="$pcp_platform_paths:/usr/bsd"
3098 elif test $target_os = gnu
3101 $as_echo "#define IS_GNU 1" >>confdefs.h
3103 test -f /etc
/debian_version
&& target_distro
=debian
3104 export CFLAGS
="-fPIC -fno-strict-aliasing -D_GNU_SOURCE"
3105 pcp_platform_paths
='/usr/bin/X11:/usr/local/bin'
3106 pcp_ps_all_flags
=-efw
3107 elif test $target_os = netbsdelf
3111 $as_echo "#define IS_NETBSD 1" >>confdefs.h
3113 export CFLAGS
="-fPIC -fno-strict-aliasing -D_GNU_SOURCE -D_NETBSD_SOURCE"
3114 pcp_platform_paths
='/usr/pkg/bin'
3115 pcp_ps_all_flags
=auxww
3116 elif test $target_os = openbsd
3120 $as_echo "#define IS_OPENBSD 1" >>confdefs.h
3122 export CFLAGS
="-fPIC -fno-strict-aliasing -D_GNU_SOURCE"
3123 pcp_platform_paths
='/usr/local/bin'
3124 pcp_ps_all_flags
=auxww
3127 echo "FATAL ERROR: need platform-specific customization for \"$target_os\""
3128 rm -rf conftest conftest.
*
3134 if test "$use_optimization" = no
3136 optimization
="-O0 -g"
3138 optimization
="-O2 -g"
3149 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
3150 if test -n "$ac_tool_prefix"; then
3151 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3152 set dummy
${ac_tool_prefix}pkg-config
; ac_word
=$2
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3154 $as_echo_n "checking for $ac_word... " >&6; }
3155 if ${ac_cv_path_PKG_CONFIG+:} false
; then :
3156 $as_echo_n "(cached) " >&6
3160 ac_cv_path_PKG_CONFIG
="$PKG_CONFIG" # Let the user override the test with a path.
3163 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3167 test -z "$as_dir" && as_dir
=.
3168 for ac_exec_ext
in '' $ac_executable_extensions; do
3169 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3170 ac_cv_path_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
3171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3181 PKG_CONFIG
=$ac_cv_path_PKG_CONFIG
3182 if test -n "$PKG_CONFIG"; then
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
3184 $as_echo "$PKG_CONFIG" >&6; }
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3187 $as_echo "no" >&6; }
3192 if test -z "$ac_cv_path_PKG_CONFIG"; then
3193 ac_pt_PKG_CONFIG
=$PKG_CONFIG
3194 # Extract the first word of "pkg-config", so it can be a program name with args.
3195 set dummy pkg-config
; ac_word
=$2
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3197 $as_echo_n "checking for $ac_word... " >&6; }
3198 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false
; then :
3199 $as_echo_n "(cached) " >&6
3201 case $ac_pt_PKG_CONFIG in
3203 ac_cv_path_ac_pt_PKG_CONFIG
="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
3206 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3210 test -z "$as_dir" && as_dir
=.
3211 for ac_exec_ext
in '' $ac_executable_extensions; do
3212 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3213 ac_cv_path_ac_pt_PKG_CONFIG
="$as_dir/$ac_word$ac_exec_ext"
3214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3224 ac_pt_PKG_CONFIG
=$ac_cv_path_ac_pt_PKG_CONFIG
3225 if test -n "$ac_pt_PKG_CONFIG"; then
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
3227 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3230 $as_echo "no" >&6; }
3233 if test "x$ac_pt_PKG_CONFIG" = x
; then
3236 case $cross_compiling:$ac_tool_warned in
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3239 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3240 ac_tool_warned
=yes ;;
3242 PKG_CONFIG
=$ac_pt_PKG_CONFIG
3245 PKG_CONFIG
="$ac_cv_path_PKG_CONFIG"
3249 if test -n "$PKG_CONFIG"; then
3250 _pkg_min_version
=0.9.0
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
3252 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
3253 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3255 $as_echo "yes" >&6; }
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3258 $as_echo "no" >&6; }
3262 if test -z "$PKG_CONFIG"
3265 echo "FATAL ERROR: did not find a pkg-config executable."
3266 echo "You can either set \$PKG_CONFIG as the full path to pkg-config"
3267 echo "in the environment, or install the pkgconfig package."
3268 rm -rf conftest conftest.
*
3274 ac_cpp
='$CPP $CPPFLAGS'
3275 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3276 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3277 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3278 if test -n "$ac_tool_prefix"; then
3279 for ac_prog
in suncc egcc gcc cc
3281 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3282 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3284 $as_echo_n "checking for $ac_word... " >&6; }
3285 if ${ac_cv_prog_CC+:} false
; then :
3286 $as_echo_n "(cached) " >&6
3288 if test -n "$CC"; then
3289 ac_cv_prog_CC
="$CC" # Let the user override the test.
3291 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3295 test -z "$as_dir" && as_dir
=.
3296 for ac_exec_ext
in '' $ac_executable_extensions; do
3297 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3298 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3309 if test -n "$CC"; then
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3311 $as_echo "$CC" >&6; }
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3314 $as_echo "no" >&6; }
3318 test -n "$CC" && break
3321 if test -z "$CC"; then
3323 for ac_prog
in suncc egcc gcc cc
3325 # Extract the first word of "$ac_prog", so it can be a program name with args.
3326 set dummy
$ac_prog; ac_word
=$2
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3328 $as_echo_n "checking for $ac_word... " >&6; }
3329 if ${ac_cv_prog_ac_ct_CC+:} false
; then :
3330 $as_echo_n "(cached) " >&6
3332 if test -n "$ac_ct_CC"; then
3333 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3335 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3339 test -z "$as_dir" && as_dir
=.
3340 for ac_exec_ext
in '' $ac_executable_extensions; do
3341 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
3342 ac_cv_prog_ac_ct_CC
="$ac_prog"
3343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3352 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3353 if test -n "$ac_ct_CC"; then
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3355 $as_echo "$ac_ct_CC" >&6; }
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3358 $as_echo "no" >&6; }
3362 test -n "$ac_ct_CC" && break
3365 if test "x$ac_ct_CC" = x
; then
3368 case $cross_compiling:$ac_tool_warned in
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3371 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3372 ac_tool_warned
=yes ;;
3379 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3380 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3381 as_fn_error $?
"no acceptable C compiler found in \$PATH
3382 See \`config.log' for more details" "$LINENO" 5; }
3384 # Provide some information about the compiler.
3385 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3388 for ac_option
in --version -v -V -qversion; do
3389 { { ac_try
="$ac_compiler $ac_option >&5"
3391 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3392 *) ac_try_echo=$ac_try;;
3394 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3395 $as_echo "$ac_try_echo"; } >&5
3396 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3398 if test -s conftest.err; then
3400 ... rest of stderr output deleted ...
3401 10q' conftest.err >conftest.er1
3402 cat conftest.er1 >&5
3404 rm -f conftest.er1 conftest.err
3405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3406 test $ac_status = 0; }
3409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3410 /* end confdefs.h. */
3420 ac_clean_files_save=$ac_clean_files
3421 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3422 # Try to create an executable without -o first, disregard a.out.
3423 # It will help us diagnose broken compilers, and finding out an intuition
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3426 $as_echo_n "checking whether the C compiler works... " >&6; }
3427 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3429 # The possible output files:
3430 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3433 for ac_file in $ac_files
3436 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3437 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3442 if { { ac_try="$ac_link_default"
3444 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3445 *) ac_try_echo
=$ac_try;;
3447 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3448 $as_echo "$ac_try_echo"; } >&5
3449 (eval "$ac_link_default") 2>&5
3451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3452 test $ac_status = 0; }; then :
3453 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3454 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3455 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3456 # so that the user can short-circuit this test for compilers unknown to
3458 for ac_file
in $ac_files ''
3460 test -f "$ac_file" ||
continue
3462 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3465 # We found the default executable, but exeext='' is most
3469 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3471 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3473 # We set ac_cv_exeext here because the later test for it is not
3474 # safe: cross compilers may not add the suffix if given an `-o'
3475 # argument, so we may need to know it at that point already.
3476 # Even if this section looks crufty: it has the advantage of
3483 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3488 if test -z "$ac_file"; then :
3489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3490 $as_echo "no" >&6; }
3491 $as_echo "$as_me: failed program was:" >&5
3492 sed 's/^/| /' conftest.
$ac_ext >&5
3494 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3495 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3496 as_fn_error
77 "C compiler cannot create executables
3497 See \`config.log' for more details" "$LINENO" 5; }
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3500 $as_echo "yes" >&6; }
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3503 $as_echo_n "checking for C compiler default output file name... " >&6; }
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3505 $as_echo "$ac_file" >&6; }
3506 ac_exeext
=$ac_cv_exeext
3508 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3509 ac_clean_files
=$ac_clean_files_save
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3511 $as_echo_n "checking for suffix of executables... " >&6; }
3512 if { { ac_try
="$ac_link"
3514 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3515 *) ac_try_echo=$ac_try;;
3517 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3518 $as_echo "$ac_try_echo"; } >&5
3519 (eval "$ac_link") 2>&5
3521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3522 test $ac_status = 0; }; then :
3523 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3524 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3525 # work properly (i.e., refer to `conftest.exe'), while it won't with
3527 for ac_file
in conftest.exe conftest conftest.
*; do
3528 test -f "$ac_file" ||
continue
3530 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3531 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3537 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3538 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3539 as_fn_error $?
"cannot compute suffix of executables: cannot compile and link
3540 See \`config.log' for more details" "$LINENO" 5; }
3542 rm -f conftest conftest
$ac_cv_exeext
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3544 $as_echo "$ac_cv_exeext" >&6; }
3546 rm -f conftest.
$ac_ext
3547 EXEEXT
=$ac_cv_exeext
3549 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3550 /* end confdefs.h. */
3555 FILE *f = fopen ("conftest.out", "w");
3556 return ferror (f) || fclose (f) != 0;
3562 ac_clean_files
="$ac_clean_files conftest.out"
3563 # Check that the compiler produces executables we can run. If not, either
3564 # the compiler is broken, or we cross compile.
3565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3566 $as_echo_n "checking whether we are cross compiling... " >&6; }
3567 if test "$cross_compiling" != yes; then
3568 { { ac_try
="$ac_link"
3570 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3571 *) ac_try_echo=$ac_try;;
3573 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3574 $as_echo "$ac_try_echo"; } >&5
3575 (eval "$ac_link") 2>&5
3577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3578 test $ac_status = 0; }
3579 if { ac_try='./conftest$ac_cv_exeext'
3580 { { case "(($ac_try" in
3581 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3582 *) ac_try_echo
=$ac_try;;
3584 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3585 $as_echo "$ac_try_echo"; } >&5
3586 (eval "$ac_try") 2>&5
3588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3589 test $ac_status = 0; }; }; then
3592 if test "$cross_compiling" = maybe
; then
3595 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3596 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3597 as_fn_error $?
"cannot run C compiled programs.
3598 If you meant to cross compile, use \`--host'.
3599 See \`config.log' for more details" "$LINENO" 5; }
3603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3604 $as_echo "$cross_compiling" >&6; }
3606 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3607 ac_clean_files
=$ac_clean_files_save
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3609 $as_echo_n "checking for suffix of object files... " >&6; }
3610 if ${ac_cv_objext+:} false
; then :
3611 $as_echo_n "(cached) " >&6
3613 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3614 /* end confdefs.h. */
3624 rm -f conftest.o conftest.obj
3625 if { { ac_try
="$ac_compile"
3627 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3628 *) ac_try_echo=$ac_try;;
3630 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3631 $as_echo "$ac_try_echo"; } >&5
3632 (eval "$ac_compile") 2>&5
3634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3635 test $ac_status = 0; }; then :
3636 for ac_file in conftest.o conftest.obj conftest.*; do
3637 test -f "$ac_file" || continue;
3639 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3640 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3645 $as_echo "$as_me: failed program was:" >&5
3646 sed 's/^/| /' conftest.$ac_ext >&5
3648 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3649 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3650 as_fn_error $? "cannot compute suffix of object files
: cannot compile
3651 See \
`config.log' for more details" "$LINENO" 5; }
3653 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3656 $as_echo "$ac_cv_objext" >&6; }
3657 OBJEXT=$ac_cv_objext
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3660 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3661 if ${ac_cv_c_compiler_gnu+:} false; then :
3662 $as_echo_n "(cached) " >&6
3664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3665 /* end confdefs.h. */
3678 if ac_fn_c_try_compile "$LINENO"; then :
3683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3684 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3688 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3689 if test $ac_compiler_gnu = yes; then
3694 ac_test_CFLAGS=${CFLAGS+set}
3695 ac_save_CFLAGS=$CFLAGS
3696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3697 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3698 if ${ac_cv_prog_cc_g+:} false; then :
3699 $as_echo_n "(cached) " >&6
3701 ac_save_c_werror_flag=$ac_c_werror_flag
3702 ac_c_werror_flag=yes
3705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3706 /* end confdefs.h. */
3716 if ac_fn_c_try_compile "$LINENO"; then :
3720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3721 /* end confdefs.h. */
3731 if ac_fn_c_try_compile "$LINENO"; then :
3734 ac_c_werror_flag=$ac_save_c_werror_flag
3736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3737 /* end confdefs.h. */
3747 if ac_fn_c_try_compile "$LINENO"; then :
3750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3755 ac_c_werror_flag=$ac_save_c_werror_flag
3757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3758 $as_echo "$ac_cv_prog_cc_g" >&6; }
3759 if test "$ac_test_CFLAGS" = set; then
3760 CFLAGS=$ac_save_CFLAGS
3761 elif test $ac_cv_prog_cc_g = yes; then
3762 if test "$GCC" = yes; then
3768 if test "$GCC" = yes; then
3774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3775 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3776 if ${ac_cv_prog_cc_c89+:} false; then :
3777 $as_echo_n "(cached) " >&6
3779 ac_cv_prog_cc_c89=no
3781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3782 /* end confdefs.h. */
3786 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3787 struct buf { int x; };
3788 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3789 static char *e (p, i)
3795 static char *f (char * (*g) (char **, int), char **p, ...)
3800 s = g (p, va_arg (v,int));
3805 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3806 function prototypes and stuff, but not '\xHH' hex character constants.
3807 These don't provoke an error unfortunately, instead are silently treated
3808 as 'x'. The following induces an error, until -std is added to get
3809 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3810 array size at least. It's necessary to write '\x00'==0 to get something
3811 that's true only with -std. */
3812 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3814 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3815 inside strings and character constants. */
3817 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3819 int test (int i, double x);
3820 struct s1 {int (*f) (int a);};
3821 struct s2 {int (*f) (double a);};
3822 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3828 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3833 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3834 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3836 CC="$ac_save_CC $ac_arg"
3837 if ac_fn_c_try_compile "$LINENO"; then :
3838 ac_cv_prog_cc_c89=$ac_arg
3840 rm -f core conftest.err conftest.$ac_objext
3841 test "x$ac_cv_prog_cc_c89" != "xno" && break
3843 rm -f conftest.$ac_ext
3848 case "x$ac_cv_prog_cc_c89" in
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3851 $as_echo "none needed" >&6; } ;;
3853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3854 $as_echo "unsupported" >&6; } ;;
3856 CC="$CC $ac_cv_prog_cc_c89"
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3858 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3860 if test "x$ac_cv_prog_cc_c89" != xno; then :
3865 ac_cpp='$CPP $CPPFLAGS'
3866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3868 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3870 if test $target_os = solaris
3872 # Extract the first word of "$CC", so it can be a program name with args.
3873 set dummy $CC; ac_word=$2
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3875 $as_echo_n "checking for $ac_word... " >&6; }
3876 if ${ac_cv_path_CCPATH+:} false; then :
3877 $as_echo_n "(cached) " >&6
3881 ac_cv_path_CCPATH="$CCPATH" # Let the user override the test with a path.
3884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3888 test -z "$as_dir" && as_dir=.
3889 for ac_exec_ext in '' $ac_executable_extensions; do
3890 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3891 ac_cv_path_CCPATH="$as_dir/$ac_word$ac_exec_ext"
3892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3899 test -z "$ac_cv_path_CCPATH" && ac_cv_path_CCPATH="$CC"
3903 CCPATH=$ac_cv_path_CCPATH
3904 if test -n "$CCPATH"; then
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCPATH" >&5
3906 $as_echo "$CCPATH" >&6; }
3908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3909 $as_echo "no" >&6; }
3914 if test "$GCC" = "yes"
3916 CFLAGS="$CFLAGS $CFLAGS_IF_GCC"
3918 CFLAGS="$CFLAGS $CFLAGS_IF_SUNCC"
3920 if test "$use_64bit" = "no"
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64 bit Solaris host" >&5
3925 $as_echo_n "checking for 64 bit Solaris host... " >&6; }
3930 CFLAGS="$CFLAGS -m64"
3931 LDFLAGS="$LDFLAGS -m64"
3932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3933 $as_echo "yes" >&6; }
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3937 $as_echo "no" >&6; }
3951 if echo "$CFLAGS" | grep 'D_FORTIFY_SOURCE' >/dev/null
3953 CFLAGS="-O $PCFLAGS"
3957 # Add some security-related gcc flags
3958 if echo "$CFLAGS" | grep stack-protector >/dev/null
3962 # Check whether --enable-ssp was given.
3963 if test "${enable_ssp+set}" = set; then :
3964 enableval=$enable_ssp;
3968 if test "x$cc_is_gcc" = xyes -a "x$enable_ssp" != xno ; then :
3970 save_CFLAGS="$CFLAGS"
3971 CFLAGS="$CFLAGS -O -fstack-protector-all -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2"
3972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3973 /* end confdefs.h. */
3976 if ac_fn_c_try_compile "$LINENO"; then :
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling with gcc -fstack-protector-all et al." >&5
3979 $as_echo "$as_me: Compiling with gcc -fstack-protector-all et al." >&6;}
3980 PCFLAGS="$PCFLAGS -fstack-protector-all -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2"
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiler does not support -fstack-protector-all et al." >&5
3984 $as_echo "$as_me: Compiler does not support -fstack-protector-all et al." >&6;}
3985 CFLAGS="$save_CFLAGS"
3988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3995 # Check for even more security-related gcc/linker flags, useful for daemons
3996 # Check whether --enable-pie was given.
3997 if test "${enable_pie+set}" = set; then :
3998 enableval=$enable_pie;
4001 if test "x$cc_is_gcc" = xyes -a "x$enable_pie" != xno; then :
4004 PIELDFLAGS='-pie -Wl,-z,relro -Wl,-z,now'
4005 save_CFLAGS="$CFLAGS"
4006 save_LDFLAGS="$LDFLAGS"
4007 CFLAGS="$CFLAGS $PIECFLAGS"
4008 LDFLAGS="$LDFLAGS $PIELDFLAGS"
4009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4010 /* end confdefs.h. */
4013 if ac_fn_c_try_link "$LINENO"; then :
4015 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling with gcc pie et al." >&5
4016 $as_echo "$as_me: Compiling with gcc pie et al." >&6;}
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiler does not support -pie et al." >&5
4021 $as_echo "$as_me: Compiler does not support -pie et al." >&6;}
4026 rm -f core conftest.err conftest.$ac_objext \
4027 conftest$ac_exeext conftest.$ac_ext
4028 CFLAGS="$save_CFLAGS"
4029 LDFLAGS="$save_LDFLAGS"
4035 # Check for support for symbol hiding via gcc flags
4036 # Check whether --enable-visibility was given.
4037 if test "${enable_visibility+set}" = set; then :
4038 enableval=$enable_visibility;
4041 if test "x$cc_is_gcc" = xyes -a "$enable_visibility" != no; then :
4043 INVISIBILITY="-fvisibility=hidden"
4044 save_CFLAGS="$CFLAGS"
4045 CFLAGS="$CFLAGS -c $INVISIBILITY"
4046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4047 /* end confdefs.h. */
4048 int visible () { return 0; }
4050 if ac_fn_c_try_compile "$LINENO"; then :
4052 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling DSO PMDAs with gcc -fvisibility=hidden" >&5
4053 $as_echo "$as_me: Compiling DSO PMDAs with gcc -fvisibility=hidden" >&6;}
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiler does not support -fvisibility." >&5
4058 $as_echo "$as_me: Compiler does not support -fvisibility." >&6;}
4062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4063 CFLAGS="$save_CFLAGS"
4069 ac_cpp='$CXXCPP $CPPFLAGS'
4070 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4071 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4072 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4073 if test -z "$CXX"; then
4074 if test -n "$CCC"; then
4077 if test -n "$ac_tool_prefix"; then
4078 for ac_prog in eg++ g++ c++
4080 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4081 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4083 $as_echo_n "checking for $ac_word... " >&6; }
4084 if ${ac_cv_prog_CXX+:} false; then :
4085 $as_echo_n "(cached) " >&6
4087 if test -n "$CXX"; then
4088 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4094 test -z "$as_dir" && as_dir=.
4095 for ac_exec_ext in '' $ac_executable_extensions; do
4096 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4097 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4108 if test -n "$CXX"; then
4109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4110 $as_echo "$CXX" >&6; }
4112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4113 $as_echo "no" >&6; }
4117 test -n "$CXX" && break
4120 if test -z "$CXX"; then
4122 for ac_prog in eg++ g++ c++
4124 # Extract the first word of "$ac_prog", so it can be a program name with args.
4125 set dummy $ac_prog; ac_word=$2
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4127 $as_echo_n "checking for $ac_word... " >&6; }
4128 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4129 $as_echo_n "(cached) " >&6
4131 if test -n "$ac_ct_CXX"; then
4132 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4138 test -z "$as_dir" && as_dir=.
4139 for ac_exec_ext in '' $ac_executable_extensions; do
4140 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4141 ac_cv_prog_ac_ct_CXX="$ac_prog"
4142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4151 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4152 if test -n "$ac_ct_CXX"; then
4153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4154 $as_echo "$ac_ct_CXX" >&6; }
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4157 $as_echo "no" >&6; }
4161 test -n "$ac_ct_CXX" && break
4164 if test "x$ac_ct_CXX" = x; then
4167 case $cross_compiling:$ac_tool_warned in
4169 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4170 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4171 ac_tool_warned=yes ;;
4179 # Provide some information about the compiler.
4180 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4183 for ac_option in --version -v -V -qversion; do
4184 { { ac_try="$ac_compiler $ac_option >&5"
4186 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
4187 *) ac_try_echo
=$ac_try;;
4189 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4190 $as_echo "$ac_try_echo"; } >&5
4191 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4193 if test -s conftest.err
; then
4195 ... rest of stderr output deleted ...
4196 10q' conftest.err
>conftest.er1
4197 cat conftest.er1
>&5
4199 rm -f conftest.er1 conftest.err
4200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4201 test $ac_status = 0; }
4204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4205 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4206 if ${ac_cv_cxx_compiler_gnu+:} false
; then :
4207 $as_echo_n "(cached) " >&6
4209 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4210 /* end confdefs.h. */
4223 if ac_fn_cxx_try_compile
"$LINENO"; then :
4228 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4229 ac_cv_cxx_compiler_gnu
=$ac_compiler_gnu
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4233 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4234 if test $ac_compiler_gnu = yes; then
4239 ac_test_CXXFLAGS
=${CXXFLAGS+set}
4240 ac_save_CXXFLAGS
=$CXXFLAGS
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4242 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4243 if ${ac_cv_prog_cxx_g+:} false
; then :
4244 $as_echo_n "(cached) " >&6
4246 ac_save_cxx_werror_flag
=$ac_cxx_werror_flag
4247 ac_cxx_werror_flag
=yes
4250 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4251 /* end confdefs.h. */
4261 if ac_fn_cxx_try_compile
"$LINENO"; then :
4262 ac_cv_prog_cxx_g
=yes
4265 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4266 /* end confdefs.h. */
4276 if ac_fn_cxx_try_compile
"$LINENO"; then :
4279 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4281 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4282 /* end confdefs.h. */
4292 if ac_fn_cxx_try_compile
"$LINENO"; then :
4293 ac_cv_prog_cxx_g
=yes
4295 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4297 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4299 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4300 ac_cxx_werror_flag
=$ac_save_cxx_werror_flag
4302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4303 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4304 if test "$ac_test_CXXFLAGS" = set; then
4305 CXXFLAGS
=$ac_save_CXXFLAGS
4306 elif test $ac_cv_prog_cxx_g = yes; then
4307 if test "$GXX" = yes; then
4313 if test "$GXX" = yes; then
4320 ac_cpp
='$CPP $CPPFLAGS'
4321 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4322 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4323 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working C++ compiler" >&5
4328 $as_echo_n "checking for working C++ compiler... " >&6; }
4330 ac_cpp
='$CXXCPP $CPPFLAGS'
4331 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4332 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4333 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4336 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4337 /* end confdefs.h. */
4342 const char gday[] = "G'day, world\n";
4347 if ac_fn_cxx_try_compile
"$LINENO"; then :
4348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4349 $as_echo "yes" >&6; }
4351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4352 $as_echo "no" >&6; }
4355 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
4357 ac_cpp
='$CPP $CPPFLAGS'
4358 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4359 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4360 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
4363 # Prevent shared libraries from being built for libpcp and other core libraries
4364 # Check whether --enable-shared was given.
4365 if test "${enable_shared+set}" = set; then :
4366 enableval
=$enable_shared; PACKAGE_CONFIGURE
="$PACKAGE_CONFIGURE --disable-shared=$withval"
4371 for ac_prog
in flex
lex
4373 # Extract the first word of "$ac_prog", so it can be a program name with args.
4374 set dummy
$ac_prog; ac_word
=$2
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4376 $as_echo_n "checking for $ac_word... " >&6; }
4377 if ${ac_cv_prog_LEX+:} false
; then :
4378 $as_echo_n "(cached) " >&6
4380 if test -n "$LEX"; then
4381 ac_cv_prog_LEX
="$LEX" # Let the user override the test.
4383 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4387 test -z "$as_dir" && as_dir
=.
4388 for ac_exec_ext
in '' $ac_executable_extensions; do
4389 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
4390 ac_cv_prog_LEX
="$ac_prog"
4391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4401 if test -n "$LEX"; then
4402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
4403 $as_echo "$LEX" >&6; }
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4406 $as_echo "no" >&6; }
4410 test -n "$LEX" && break
4412 test -n "$LEX" || LEX
=":"
4414 if test "x$LEX" != "x:"; then
4415 cat >conftest.l
<<_ACEOF
4421 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
4422 yyless ((input () != 0)); }
4423 f { unput (yytext[0]); }
4424 . { BEGIN INITIAL; }
4426 #ifdef YYTEXT_POINTER
4427 extern char *yytext;
4432 return ! yylex () + ! yywrap ();
4435 { { ac_try
="$LEX conftest.l"
4437 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
4438 *) ac_try_echo=$ac_try;;
4440 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4441 $as_echo "$ac_try_echo"; } >&5
4442 (eval "$LEX conftest.l") 2>&5
4444 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4445 test $ac_status = 0; }
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
4447 $as_echo_n "checking lex output file root... " >&6; }
4448 if ${ac_cv_prog_lex_root+:} false; then :
4449 $as_echo_n "(cached) " >&6
4452 if test -f lex.yy.c; then
4453 ac_cv_prog_lex_root=lex.yy
4454 elif test -f lexyy.c; then
4455 ac_cv_prog_lex_root=lexyy
4457 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
4460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
4461 $as_echo "$ac_cv_prog_lex_root" >&6; }
4462 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4464 if test -z "${LEXLIB+set}"; then
4465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
4466 $as_echo_n "checking lex library... " >&6; }
4467 if ${ac_cv_lib_lex+:} false; then :
4468 $as_echo_n "(cached) " >&6
4472 ac_cv_lib_lex='none needed'
4473 for ac_lib in '' -lfl -ll; do
4474 LIBS="$ac_lib $ac_save_LIBS"
4475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4476 /* end confdefs.h. */
4477 `cat $LEX_OUTPUT_ROOT.c
`
4479 if ac_fn_c_try_link "$LINENO"; then :
4480 ac_cv_lib_lex=$ac_lib
4482 rm -f core conftest.err conftest.$ac_objext \
4483 conftest$ac_exeext conftest.$ac_ext
4484 test "$ac_cv_lib_lex" != 'none needed' && break
4489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
4490 $as_echo "$ac_cv_lib_lex" >&6; }
4491 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
4496 $as_echo_n "checking whether yytext is a pointer... " >&6; }
4497 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
4498 $as_echo_n "(cached) " >&6
4500 # POSIX says lex can declare yytext either as a pointer or an array; the
4501 # default is implementation-dependent. Figure out which it is, since
4502 # not all implementations provide the %pointer and %array declarations.
4503 ac_cv_prog_lex_yytext_pointer=no
4505 LIBS="$LEXLIB $ac_save_LIBS"
4506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4507 /* end confdefs.h. */
4509 #define YYTEXT_POINTER 1
4510 `cat $LEX_OUTPUT_ROOT.c
`
4512 if ac_fn_c_try_link "$LINENO"; then :
4513 ac_cv_prog_lex_yytext_pointer=yes
4515 rm -f core conftest.err conftest.$ac_objext \
4516 conftest$ac_exeext conftest.$ac_ext
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
4521 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
4522 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4524 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
4527 rm -f conftest.l $LEX_OUTPUT_ROOT.c
4532 for ac_prog in 'bison -y' byacc
4534 # Extract the first word of "$ac_prog", so it can be a program name with args.
4535 set dummy $ac_prog; ac_word=$2
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4537 $as_echo_n "checking for $ac_word... " >&6; }
4538 if ${ac_cv_prog_YACC+:} false; then :
4539 $as_echo_n "(cached) " >&6
4541 if test -n "$YACC"; then
4542 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4548 test -z "$as_dir" && as_dir=.
4549 for ac_exec_ext in '' $ac_executable_extensions; do
4550 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4551 ac_cv_prog_YACC="$ac_prog"
4552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4561 YACC=$ac_cv_prog_YACC
4562 if test -n "$YACC"; then
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
4564 $as_echo "$YACC" >&6; }
4566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4567 $as_echo "no" >&6; }
4571 test -n "$YACC" && break
4573 test -n "$YACC" || YACC="yacc"
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if yacc is executable" >&5
4579 $as_echo_n "checking if yacc is executable... " >&6; }
4580 binary=`echo $yacc |
awk '{print $1}'`
4581 binary=`which "$binary"`
4582 if test -x "$binary"
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4585 $as_echo " yes" >&6; }
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4588 $as_echo " no" >&6; }
4590 echo "FATAL ERROR: did not find a valid yacc executable."
4591 echo "You can either set \$YACC as the full path to yacc"
4592 echo "in the environment, or install a yacc/bison package."
4593 rm -rf conftest conftest.*
4596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if lex is executable" >&5
4597 $as_echo_n "checking if lex is executable... " >&6; }
4598 binary=`echo $lex |
awk '{print $1}'`
4599 binary=`which "$binary"`
4600 if test -x "$binary"
4602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4603 $as_echo " yes" >&6; }
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4606 $as_echo " no" >&6; }
4608 echo "FATAL ERROR: did not find a valid lex executable."
4609 echo "You can either set \$LEX as the full path to lex"
4610 echo "in the environment, or install a lex/flex package."
4611 rm -rf conftest conftest.*
4615 if test -z "$AWK"; then
4616 for ac_prog in gawk awk
4618 # Extract the first word of "$ac_prog", so it can be a program name with args.
4619 set dummy $ac_prog; ac_word=$2
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4621 $as_echo_n "checking for $ac_word... " >&6; }
4622 if ${ac_cv_path_AWK+:} false; then :
4623 $as_echo_n "(cached) " >&6
4627 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
4630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4634 test -z "$as_dir" && as_dir=.
4635 for ac_exec_ext in '' $ac_executable_extensions; do
4636 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4637 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
4638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4649 if test -n "$AWK"; then
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4651 $as_echo "$AWK" >&6; }
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4654 $as_echo "no" >&6; }
4658 test -n "$AWK" && break
4660 test -n "$AWK" || AWK="/usr/bin/awk"
4673 if test -z "$SED"; then
4674 # Extract the first word of "sed", so it can be a program name with args.
4675 set dummy sed; ac_word=$2
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4677 $as_echo_n "checking for $ac_word... " >&6; }
4678 if ${ac_cv_path_SED+:} false; then :
4679 $as_echo_n "(cached) " >&6
4683 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4690 test -z "$as_dir" && as_dir=.
4691 for ac_exec_ext in '' $ac_executable_extensions; do
4692 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4693 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4701 test -z "$ac_cv_path_SED" && ac_cv_path_SED="/bin/sed"
4706 if test -n "$SED"; then
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
4708 $as_echo "$SED" >&6; }
4710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4711 $as_echo "no" >&6; }
4718 if test -z "$ECHO"; then
4719 # Extract the first word of "echo", so it can be a program name with args.
4720 set dummy echo; ac_word=$2
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4722 $as_echo_n "checking for $ac_word... " >&6; }
4723 if ${ac_cv_path_ECHO+:} false; then :
4724 $as_echo_n "(cached) " >&6
4728 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
4731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4735 test -z "$as_dir" && as_dir=.
4736 for ac_exec_ext in '' $ac_executable_extensions; do
4737 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4738 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
4739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4746 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="/bin/echo"
4750 ECHO=$ac_cv_path_ECHO
4751 if test -n "$ECHO"; then
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
4753 $as_echo "$ECHO" >&6; }
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4756 $as_echo "no" >&6; }
4763 if test -z "$WHICH"; then
4764 # Extract the first word of "which", so it can be a program name with args.
4765 set dummy which; ac_word=$2
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4767 $as_echo_n "checking for $ac_word... " >&6; }
4768 if ${ac_cv_path_WHICH+:} false; then :
4769 $as_echo_n "(cached) " >&6
4773 ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
4776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4780 test -z "$as_dir" && as_dir=.
4781 for ac_exec_ext in '' $ac_executable_extensions; do
4782 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4783 ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
4784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4791 test -z "$ac_cv_path_WHICH" && ac_cv_path_WHICH="/usr/bin/which"
4795 WHICH=$ac_cv_path_WHICH
4796 if test -n "$WHICH"; then
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
4798 $as_echo "$WHICH" >&6; }
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4801 $as_echo "no" >&6; }
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where unix-like sort(1) lives" >&5
4810 $as_echo_n "checking where unix-like sort(1) lives... " >&6; }
4811 if test $target_os = mingw; then
4812 for d in /bin /usr/bin /mingw/bin /mingw/usr/bin
4814 if test -x $d/sort; then
4822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sort" >&5
4823 $as_echo "$sort" >&6; }
4828 echo "FATAL ERROR: $sort -n failed!"
4829 rm -rf conftest conftest.*
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if echo uses -n or backslash-c to suppress newlines" >&5
4835 $as_echo_n "checking if echo uses -n or backslash-c to suppress newlines... " >&6; }
4836 if ( $echo "testing\c"; $echo 1,2,3 ) | grep c >/dev/null
4838 if ( $echo -n testing; $echo 1,2,3 ) | sed s/-n/xn/ | grep xn >/dev/null
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither?" >&5
4842 $as_echo "neither?" >&6; }
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -n" >&5
4846 $as_echo " -n" >&6; }
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: backslash-c" >&5
4851 $as_echo "backslash-c" >&6; }
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4857 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4858 if ${ac_cv_path_GREP+:} false; then :
4859 $as_echo_n "(cached) " >&6
4861 if test -z "$GREP"; then
4862 ac_path_GREP_found=false
4863 # Loop through the user's path and test for each of PROGNAME-LIST
4864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4865 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4868 test -z "$as_dir" && as_dir=.
4869 for ac_prog in grep ggrep; do
4870 for ac_exec_ext in '' $ac_executable_extensions; do
4871 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4872 as_fn_executable_p "$ac_path_GREP" || continue
4873 # Check for GNU ac_path_GREP and select it if it is found.
4874 # Check for GNU $ac_path_GREP
4875 case `"$ac_path_GREP" --version 2>&1` in
4877 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4880 $as_echo_n 0123456789 >"conftest.in"
4883 cat "conftest.in" "conftest.in" >"conftest.tmp"
4884 mv "conftest.tmp" "conftest.in"
4885 cp "conftest.in" "conftest.nl"
4886 $as_echo 'GREP' >> "conftest.nl"
4887 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4888 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4889 as_fn_arith $ac_count + 1 && ac_count=$as_val
4890 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4891 # Best one so far, save it but keep looking for a better one
4892 ac_cv_path_GREP="$ac_path_GREP"
4893 ac_path_GREP_max=$ac_count
4895 # 10*(2^10) chars as input seems more than enough
4896 test $ac_count -gt 10 && break
4898 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4901 $ac_path_GREP_found && break 3
4906 if test -z "$ac_cv_path_GREP"; then
4907 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4910 ac_cv_path_GREP=$GREP
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4915 $as_echo "$ac_cv_path_GREP" >&6; }
4916 GREP="$ac_cv_path_GREP"
4919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4920 $as_echo_n "checking for egrep... " >&6; }
4921 if ${ac_cv_path_EGREP+:} false; then :
4922 $as_echo_n "(cached) " >&6
4924 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4925 then ac_cv_path_EGREP="$GREP -E"
4927 if test -z "$EGREP"; then
4928 ac_path_EGREP_found=false
4929 # Loop through the user's path and test for each of PROGNAME-LIST
4930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4931 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4934 test -z "$as_dir" && as_dir=.
4935 for ac_prog in egrep; do
4936 for ac_exec_ext in '' $ac_executable_extensions; do
4937 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4938 as_fn_executable_p "$ac_path_EGREP" || continue
4939 # Check for GNU ac_path_EGREP and select it if it is found.
4940 # Check for GNU $ac_path_EGREP
4941 case `"$ac_path_EGREP" --version 2>&1` in
4943 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4946 $as_echo_n 0123456789 >"conftest.in"
4949 cat "conftest.in" "conftest.in" >"conftest.tmp"
4950 mv "conftest.tmp" "conftest.in"
4951 cp "conftest.in" "conftest.nl"
4952 $as_echo 'EGREP' >> "conftest.nl"
4953 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4954 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4955 as_fn_arith $ac_count + 1 && ac_count=$as_val
4956 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4957 # Best one so far, save it but keep looking for a better one
4958 ac_cv_path_EGREP="$ac_path_EGREP"
4959 ac_path_EGREP_max=$ac_count
4961 # 10*(2^10) chars as input seems more than enough
4962 test $ac_count -gt 10 && break
4964 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4967 $ac_path_EGREP_found && break 3
4972 if test -z "$ac_cv_path_EGREP"; then
4973 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4976 ac_cv_path_EGREP=$EGREP
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4982 $as_echo "$ac_cv_path_EGREP" >&6; }
4983 EGREP="$ac_cv_path_EGREP"
4987 if test "$do_probes" = "check" -o "$do_probes" = "yes"
4990 for ac_prog in dtrace
4992 # Extract the first word of "$ac_prog", so it can be a program name with args.
4993 set dummy $ac_prog; ac_word=$2
4994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4995 $as_echo_n "checking for $ac_word... " >&6; }
4996 if ${ac_cv_prog_DTRACE+:} false; then :
4997 $as_echo_n "(cached) " >&6
4999 if test -n "$DTRACE"; then
5000 ac_cv_prog_DTRACE="$DTRACE" # Let the user override the test.
5002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5006 test -z "$as_dir" && as_dir=.
5007 for ac_exec_ext in '' $ac_executable_extensions; do
5008 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5009 ac_cv_prog_DTRACE="$ac_prog"
5010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5019 DTRACE=$ac_cv_prog_DTRACE
5020 if test -n "$DTRACE"; then
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5
5022 $as_echo "$DTRACE" >&6; }
5024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5025 $as_echo "no" >&6; }
5029 test -n "$DTRACE" && break
5032 if test -z "$DTRACE"
5034 if test "$do_probes" = "yes"
5036 as_fn_error $? "cannot enable static probes - no dtrace executable" "$LINENO" 5
5041 ac_cpp='$CPP $CPPFLAGS'
5042 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5043 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5044 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5046 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5047 # On Suns, sometimes $CPP names a directory.
5048 if test -n "$CPP" && test -d "$CPP"; then
5051 if test -z "$CPP"; then
5052 if ${ac_cv_prog_CPP+:} false; then :
5053 $as_echo_n "(cached) " >&6
5055 # Double quotes because CPP needs to be expanded
5056 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5059 for ac_c_preproc_warn_flag in '' yes
5061 # Use a header file that comes with gcc, so configuring glibc
5062 # with a fresh cross-compiler works.
5063 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5064 # <limits.h> exists even on freestanding compilers.
5065 # On the NeXT, cc -E runs the code through the compiler's parser,
5066 # not just through cpp. "Syntax error" is here to catch this case.
5067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5068 /* end confdefs.h. */
5070 # include <limits.h>
5072 # include <assert.h>
5076 if ac_fn_c_try_cpp "$LINENO"; then :
5079 # Broken: fails on valid input.
5082 rm -f conftest.err conftest.i conftest.$ac_ext
5084 # OK, works on sane cases. Now check whether nonexistent headers
5085 # can be detected and how.
5086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5087 /* end confdefs.h. */
5088 #include <ac_nonexistent.h>
5090 if ac_fn_c_try_cpp "$LINENO"; then :
5091 # Broken: success on invalid input.
5094 # Passes both tests.
5098 rm -f conftest.err conftest.i conftest.$ac_ext
5101 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5102 rm -f conftest.i conftest.err conftest.
$ac_ext
5103 if $ac_preproc_ok; then :
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5116 $as_echo "$CPP" >&6; }
5118 for ac_c_preproc_warn_flag
in '' yes
5120 # Use a header file that comes with gcc, so configuring glibc
5121 # with a fresh cross-compiler works.
5122 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5123 # <limits.h> exists even on freestanding compilers.
5124 # On the NeXT, cc -E runs the code through the compiler's parser,
5125 # not just through cpp. "Syntax error" is here to catch this case.
5126 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5127 /* end confdefs.h. */
5129 # include <limits.h>
5131 # include <assert.h>
5135 if ac_fn_c_try_cpp
"$LINENO"; then :
5138 # Broken: fails on valid input.
5141 rm -f conftest.err conftest.i conftest.
$ac_ext
5143 # OK, works on sane cases. Now check whether nonexistent headers
5144 # can be detected and how.
5145 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5146 /* end confdefs.h. */
5147 #include <ac_nonexistent.h>
5149 if ac_fn_c_try_cpp
"$LINENO"; then :
5150 # Broken: success on invalid input.
5153 # Passes both tests.
5157 rm -f conftest.err conftest.i conftest.
$ac_ext
5160 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5161 rm -f conftest.i conftest.err conftest.
$ac_ext
5162 if $ac_preproc_ok; then :
5165 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5166 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5167 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
5168 See \`config.log' for more details" "$LINENO" 5; }
5172 ac_cpp
='$CPP $CPPFLAGS'
5173 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5174 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5175 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5179 $as_echo_n "checking for ANSI C header files... " >&6; }
5180 if ${ac_cv_header_stdc+:} false
; then :
5181 $as_echo_n "(cached) " >&6
5183 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5184 /* end confdefs.h. */
5198 if ac_fn_c_try_compile
"$LINENO"; then :
5199 ac_cv_header_stdc
=yes
5201 ac_cv_header_stdc
=no
5203 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5205 if test $ac_cv_header_stdc = yes; then
5206 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5207 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5208 /* end confdefs.h. */
5212 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5213 $EGREP "memchr" >/dev
/null
2>&1; then :
5216 ac_cv_header_stdc
=no
5222 if test $ac_cv_header_stdc = yes; then
5223 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5224 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5225 /* end confdefs.h. */
5229 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5230 $EGREP "free" >/dev
/null
2>&1; then :
5233 ac_cv_header_stdc
=no
5239 if test $ac_cv_header_stdc = yes; then
5240 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5241 if test "$cross_compiling" = yes; then :
5244 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5245 /* end confdefs.h. */
5248 #if ((' ' & 0x0FF) == 0x020)
5249 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5250 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5252 # define ISLOWER(c) \
5253 (('a' <= (c) && (c) <= 'i') \
5254 || ('j' <= (c) && (c) <= 'r') \
5255 || ('s' <= (c) && (c) <= 'z'))
5256 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5259 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5264 for (i = 0; i < 256; i++)
5265 if (XOR (islower (i), ISLOWER (i))
5266 || toupper (i) != TOUPPER (i))
5271 if ac_fn_c_try_run
"$LINENO"; then :
5274 ac_cv_header_stdc
=no
5276 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5277 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5283 $as_echo "$ac_cv_header_stdc" >&6; }
5284 if test $ac_cv_header_stdc = yes; then
5286 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5290 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5291 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5292 inttypes.h stdint.h unistd.h
5294 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5295 ac_fn_c_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5297 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
5298 cat >>confdefs.h
<<_ACEOF
5299 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5307 for ac_header
in sys
/sdt.h
5309 ac_fn_c_check_header_mongrel
"$LINENO" "sys/sdt.h" "ac_cv_header_sys_sdt_h" "$ac_includes_default"
5310 if test "x$ac_cv_header_sys_sdt_h" = xyes
; then :
5311 cat >>confdefs.h
<<_ACEOF
5312 #define HAVE_SYS_SDT_H 1
5315 if $enable_probes = true
5317 if test $target_os = kfreebsd
5320 elif test $target_os = freebsd
5322 rm -f conftest.d conftest.h
5323 cat <<End-of-File >conftest.d
5328 if dtrace
-s conftest.d
-h >/dev
/null
2>&1
5330 if test ! -f conftest.h
5333 if test "$do_probes" = "yes"
5335 as_fn_error $?
"cannot enable static probes - no .h from dtrace -h" "$LINENO" 5
5340 if test "$do_probes" = "yes"
5342 as_fn_error $?
"cannot enable static probes - dtrace failed" "$LINENO" 5
5351 if test "$do_probes" = "yes"
5353 as_fn_error $?
"cannot enable static probes - no SDT header" "$LINENO" 5
5361 if test "$enable_probes" = "true"
5364 $as_echo "#define HAVE_STATIC_PROBES 1" >>confdefs.h
5371 if test "x$do_discovery" != "xno"; then :
5373 # on Mac OS X, dns_sd.h
5375 # on Linux, aloha Avahi
5379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for avahi" >&5
5380 $as_echo_n "checking for avahi... " >&6; }
5382 if test -n "$avahi_CFLAGS"; then
5383 pkg_cv_avahi_CFLAGS
="$avahi_CFLAGS"
5384 elif test -n "$PKG_CONFIG"; then
5385 if test -n "$PKG_CONFIG" && \
5386 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"avahi-client\""; } >&5
5387 ($PKG_CONFIG --exists --print-errors "avahi-client") 2>&5
5389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5390 test $ac_status = 0; }; then
5391 pkg_cv_avahi_CFLAGS
=`$PKG_CONFIG --cflags "avahi-client" 2>/dev/null`
5392 test "x$?" != "x0" && pkg_failed
=yes
5399 if test -n "$avahi_LIBS"; then
5400 pkg_cv_avahi_LIBS
="$avahi_LIBS"
5401 elif test -n "$PKG_CONFIG"; then
5402 if test -n "$PKG_CONFIG" && \
5403 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"avahi-client\""; } >&5
5404 ($PKG_CONFIG --exists --print-errors "avahi-client") 2>&5
5406 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5407 test $ac_status = 0; }; then
5408 pkg_cv_avahi_LIBS
=`$PKG_CONFIG --libs "avahi-client" 2>/dev/null`
5409 test "x$?" != "x0" && pkg_failed
=yes
5419 if test $pkg_failed = yes; then
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5421 $as_echo "no" >&6; }
5423 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5424 _pkg_short_errors_supported
=yes
5426 _pkg_short_errors_supported
=no
5428 if test $_pkg_short_errors_supported = yes; then
5429 avahi_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "avahi-client" 2>&1`
5431 avahi_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "avahi-client" 2>&1`
5433 # Put the nasty error message in config.log where it belongs
5434 echo "$avahi_PKG_ERRORS" >&5
5437 elif test $pkg_failed = untried
; then
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5439 $as_echo "no" >&6; }
5442 avahi_CFLAGS
=$pkg_cv_avahi_CFLAGS
5443 avahi_LIBS
=$pkg_cv_avahi_LIBS
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5445 $as_echo "yes" >&6; }
5446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for avahi_client_new in -lavahi-client" >&5
5447 $as_echo_n "checking for avahi_client_new in -lavahi-client... " >&6; }
5448 if ${ac_cv_lib_avahi_client_avahi_client_new+:} false
; then :
5449 $as_echo_n "(cached) " >&6
5451 ac_check_lib_save_LIBS
=$LIBS
5452 LIBS
="-lavahi-client $LIBS"
5453 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5454 /* end confdefs.h. */
5456 /* Override any GCC internal prototype to avoid an error.
5457 Use char because int might match the return type of a GCC
5458 builtin and then its argument prototype would still apply. */
5462 char avahi_client_new ();
5466 return avahi_client_new ();
5471 if ac_fn_c_try_link
"$LINENO"; then :
5472 ac_cv_lib_avahi_client_avahi_client_new
=yes
5474 ac_cv_lib_avahi_client_avahi_client_new
=no
5476 rm -f core conftest.err conftest.
$ac_objext \
5477 conftest
$ac_exeext conftest.
$ac_ext
5478 LIBS
=$ac_check_lib_save_LIBS
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avahi_client_avahi_client_new" >&5
5481 $as_echo "$ac_cv_lib_avahi_client_avahi_client_new" >&6; }
5482 if test "x$ac_cv_lib_avahi_client_avahi_client_new" = xyes
; then :
5483 lib_for_avahi
="-lavahi-common -lavahi-client"
5490 for ac_header
in avahi-client
/publish.h
5492 ac_fn_c_check_header_mongrel
"$LINENO" "avahi-client/publish.h" "ac_cv_header_avahi_client_publish_h" "$ac_includes_default"
5493 if test "x$ac_cv_header_avahi_client_publish_h" = xyes
; then :
5494 cat >>confdefs.h
<<_ACEOF
5495 #define HAVE_AVAHI_CLIENT_PUBLISH_H 1
5504 for ac_header
in avahi-common
/alternative.h
5506 ac_fn_c_check_header_mongrel
"$LINENO" "avahi-common/alternative.h" "ac_cv_header_avahi_common_alternative_h" "$ac_includes_default"
5507 if test "x$ac_cv_header_avahi_common_alternative_h" = xyes
; then :
5508 cat >>confdefs.h
<<_ACEOF
5509 #define HAVE_AVAHI_COMMON_ALTERNATIVE_H 1
5519 if test "$enable_avahi" = "true"
5524 $as_echo "#define HAVE_AVAHI 1" >>confdefs.h
5526 enable_discovery
=true
5529 if test "$do_discovery" != "check" -a "$enable_discovery" != "true"
5531 as_fn_error $?
"cannot enable service discovery - no supported mechanisms" "$LINENO" 5
5533 if test "$enable_discovery" = "true"
5536 $as_echo "#define HAVE_SERVICE_DISCOVERY 1" >>confdefs.h
5544 enable_systemd
=false
5545 if test "x$do_systemd" != "xno"; then :
5550 if test -n "$SYSTEMD_SYSTEMUNITDIR"; then
5551 pkg_cv_SYSTEMD_SYSTEMUNITDIR
="$SYSTEMD_SYSTEMUNITDIR"
5552 elif test -n "$PKG_CONFIG"; then
5553 if test -n "$PKG_CONFIG" && \
5554 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd\""; } >&5
5555 ($PKG_CONFIG --exists --print-errors "systemd") 2>&5
5557 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5558 test $ac_status = 0; }; then
5559 pkg_cv_SYSTEMD_SYSTEMUNITDIR
=`$PKG_CONFIG --variable="systemdsystemunitdir" "systemd" 2>/dev/null`
5560 test "x$?" != "x0" && pkg_failed
=yes
5567 SYSTEMD_SYSTEMUNITDIR
=$pkg_cv_SYSTEMD_SYSTEMUNITDIR
5569 if test "x$SYSTEMD_SYSTEMUNITDIR" = x
""; then :
5570 enable_systemd
=false
5572 pcp_systemdunit_dir
=$SYSTEMD_SYSTEMUNITDIR
5575 if test -z "$pcp_systemdunit_dir"
5577 if test "$do_systemd" = "yes"
5579 as_fn_error $?
"cannot enable systemd support - no systemunitdir path" "$LINENO" 5
5581 enable_systemd
=false
5587 # NB: No AC_PREFIX_DEFAULT is needed, as the default configure invocation
5588 # targets a build for non-system directories such as /usr/local.
5589 # AC_PREFIX_DEFAULT([])
5592 PACKAGE_VERSION
=${PACKAGE_MAJOR}.${PACKAGE_MINOR}.${PACKAGE_REVISION}
5599 if test -z "$PACKAGE_BUILD_DATE" ; then
5600 PACKAGE_BUILD_DATE
=`date +%Y-%m-%d`
5604 if test -z "$PACKAGE_DISTRIBUTION" ; then
5605 PACKAGE_DISTRIBUTION
=$target_distro
5609 pm_version_current
=`awk </dev/null "BEGIN { print (${PACKAGE_MAJOR}*256+${PACKAGE_MINOR})*256+${PACKAGE_REVISION} }"`
5612 ac_config_headers
="$ac_config_headers src/include/pcp/config.h src/include/pcp/configsz.h"
5614 ac_config_files
="$ac_config_files src/include/pcp/platform_defs.h"
5616 cat >confcache
<<\_ACEOF
5617 # This file is a shell script that caches the results of configure
5618 # tests run on this system so they can be shared between configure
5619 # scripts and configure runs, see configure's option --config-cache.
5620 # It is not useful on other systems. If it contains results you don't
5621 # want to keep, you may remove or edit it.
5623 # config.status only pays attention to the cache file if you give it
5624 # the --recheck option to rerun configure.
5626 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5627 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5632 # The following way of writing the cache mishandles newlines in values,
5633 # but we know of no workaround that is simple, portable, and efficient.
5634 # So, we kill variables containing newlines.
5635 # Ultrix sh set writes to stderr and can't be redirected directly,
5636 # and sets the high bit in the cache file unless we assign to the vars.
5638 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5639 eval ac_val
=\$
$ac_var
5643 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5644 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5647 _ | IFS | as_nl
) ;; #(
5648 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
5649 *) { eval $ac_var=; unset $ac_var;} ;;
5655 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5656 *${as_nl}ac_space
=\
*)
5657 # `set' does not quote correctly, so add quotes: double-quote
5658 # substitution turns \\\\ into \\, and sed turns \\ into \.
5661 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5664 # `set' quotes correctly as required by POSIX, so do not add quotes.
5665 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5674 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5676 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5678 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
5679 if test -w "$cache_file"; then
5680 if test "x$cache_file" != "x/dev/null"; then
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5682 $as_echo "$as_me: updating cache $cache_file" >&6;}
5683 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
5684 cat confcache
>"$cache_file"
5686 case $cache_file in #(
5688 mv -f confcache
"$cache_file"$$
&&
5689 mv -f "$cache_file"$$
"$cache_file" ;; #(
5691 mv -f confcache
"$cache_file" ;;
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5697 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5702 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
5703 # Let make expand exec_prefix.
5704 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
5706 DEFS
=-DHAVE_CONFIG_H
5711 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
5712 # 1. Remove the extension, and $U if already installed.
5713 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
5714 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
5715 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5716 # will be set to the directory where LIBOBJS objects are built.
5717 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5718 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
5722 LTLIBOBJS
=$ac_ltlibobjs
5726 : "${CONFIG_STATUS=./config.status}"
5728 ac_clean_files_save
=$ac_clean_files
5729 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5731 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5733 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5735 # Generated by $as_me.
5736 # Run this file to recreate the current configuration.
5737 # Compiler output produced by configure, useful for debugging
5738 # configure, is in config.log if it exists.
5744 SHELL=\${CONFIG_SHELL-$SHELL}
5747 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
5748 ## -------------------- ##
5749 ## M4sh Initialization. ##
5750 ## -------------------- ##
5752 # Be more Bourne compatible
5753 DUALCASE
=1; export DUALCASE
# for MKS sh
5754 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
5757 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5758 # is contrary to our usage. Disable this feature.
5759 alias -g '${1+"$@"}'='"$@"'
5760 setopt NO_GLOB_SUBST
5762 case `(set -o) 2>/dev/null` in #(
5774 # Printing a long string crashes Solaris 7 /usr/bin/printf.
5775 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5776 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5777 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5778 # Prefer a ksh shell builtin over an external printf program on Solaris,
5779 # but without wasting forks for bash or zsh.
5780 if test -z "$BASH_VERSION$ZSH_VERSION" \
5781 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5782 as_echo='print
-r --'
5783 as_echo_n='print
-rn --'
5784 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5785 as_echo='printf %s
\n'
5786 as_echo_n='printf %s
'
5788 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5789 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
5790 as_echo_n='/usr
/ucb
/echo -n'
5792 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5793 as_echo_n_body='eval
5797 expr "X$arg" : "X\\(.*\\)$as_nl";
5798 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5800 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
5802 export as_echo_n_body
5803 as_echo_n='sh
-c $as_echo_n_body as_echo
'
5806 as_echo='sh
-c $as_echo_body as_echo
'
5809 # The user is always right.
5810 if test "${PATH_SEPARATOR+set}" != set; then
5812 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5813 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5820 # We need space, tab and new line, in precisely that order. Quoting is
5821 # there to prevent editors from complaining about space-tab.
5822 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
5823 # splitting by setting IFS to empty value.)
5826 # Find who we are. Look in the path if we contain no directory separator.
5829 *[\\/]* ) as_myself=$0 ;;
5830 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5834 test -z "$as_dir" && as_dir=.
5835 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5841 # We did not find ourselves, most probably we were run as `sh COMMAND'
5842 # in which case we are not to be found in the path.
5843 if test "x$as_myself" = x
; then
5846 if test ! -f "$as_myself"; then
5847 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5851 # Unset variables that we do not need and which cause bugs (e.g. in
5852 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
5853 # suppresses any "Segmentation fault" message there. '((' could
5854 # trigger a bug in pdksh 5.2.14.
5855 for as_var
in BASH_ENV ENV MAIL MAILPATH
5856 do eval test x\
${$as_var+set} = xset \
5857 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
5870 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
5873 # as_fn_error STATUS ERROR [LINENO LOG_FD]
5874 # ----------------------------------------
5875 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5876 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5877 # script with STATUS, using 1 if that was 0.
5880 as_status
=$1; test $as_status -eq 0 && as_status
=1
5882 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
5883 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
5885 $as_echo "$as_me: error: $2" >&2
5886 as_fn_exit
$as_status
5890 # as_fn_set_status STATUS
5891 # -----------------------
5892 # Set $? to STATUS, without forking.
5896 } # as_fn_set_status
5900 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5910 # Portably unset VAR.
5913 { eval $1=; unset $1;}
5915 as_unset
=as_fn_unset
5916 # as_fn_append VAR VALUE
5917 # ----------------------
5918 # Append the text in VALUE to the end of the definition contained in VAR. Take
5919 # advantage of any shell optimizations that allow amortized linear growth over
5920 # repeated appends, instead of the typical quadratic growth present in naive
5922 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
5923 eval 'as_fn_append ()
5934 # as_fn_arith ARG...
5935 # ------------------
5936 # Perform arithmetic evaluation on the ARGs, and store the result in the
5937 # global $as_val. Take advantage of shells that can avoid forks. The arguments
5938 # must be portable across $(()) and expr.
5939 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
5940 eval 'as_fn_arith ()
5947 as_val
=`expr "$@" || test $? -eq 1`
5952 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
5953 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
5959 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5960 as_basename
=basename
5965 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
5971 as_me
=`$as_basename -- "$0" ||
5972 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5973 X"$0" : 'X\(//\)$' \| \
5974 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5976 sed '/^.*\/\([^/][^/]*\)\/*$/{
5990 # Avoid depending upon Character Ranges.
5991 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
5992 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5993 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
5994 as_cr_digits
='0123456789'
5995 as_cr_alnum
=$as_cr_Letters$as_cr_digits
5997 ECHO_C
= ECHO_N
= ECHO_T
=
5998 case `echo -n x` in #(((((
6000 case `echo 'xy\c'` in
6001 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
6003 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
6010 rm -f conf$$ conf$$.exe conf$$.
file
6011 if test -d conf$$.dir
; then
6012 rm -f conf$$.dir
/conf$$.
file
6015 mkdir conf$$.dir
2>/dev
/null
6017 if (echo >conf$$.
file) 2>/dev
/null
; then
6018 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
6020 # ... but there are two gotchas:
6021 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6022 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6023 # In both cases, we have to default to `cp -pR'.
6024 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
6026 elif ln conf$$.
file conf$$
2>/dev
/null
; then
6034 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
6035 rmdir conf$$.dir
2>/dev
/null
6040 # Create "$as_dir" as a directory, including parents if necessary.
6045 -*) as_dir
=.
/$as_dir;;
6047 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
6051 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6052 *) as_qdir
=$as_dir;;
6054 as_dirs
="'$as_qdir' $as_dirs"
6055 as_dir
=`$as_dirname -- "$as_dir" ||
6056 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6057 X"$as_dir" : 'X\(//\)[^/]' \| \
6058 X"$as_dir" : 'X\(//\)$' \| \
6059 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6060 $as_echo X"$as_dir" |
6061 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6078 test -d "$as_dir" && break
6080 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
6081 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
6085 if mkdir
-p .
2>/dev
/null
; then
6086 as_mkdir_p
='mkdir -p "$as_dir"'
6088 test -d .
/-p && rmdir .
/-p
6093 # as_fn_executable_p FILE
6094 # -----------------------
6095 # Test if FILE is an executable regular file.
6096 as_fn_executable_p
()
6098 test -f "$1" && test -x "$1"
6099 } # as_fn_executable_p
6101 as_executable_p
=as_fn_executable_p
6103 # Sed expression to map a string onto a valid CPP name.
6104 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6106 # Sed expression to map a string onto a valid variable name.
6107 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6111 ## ----------------------------------- ##
6112 ## Main body of $CONFIG_STATUS script. ##
6113 ## ----------------------------------- ##
6115 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
6117 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6118 # Save the log message, to keep $0 and so on meaningful, and to
6119 # report actual input values of CONFIG_FILES etc. instead of their
6120 # values after options handling.
6122 This file was extended by $as_me, which was
6123 generated by GNU Autoconf 2.69. Invocation command line was
6125 CONFIG_FILES = $CONFIG_FILES
6126 CONFIG_HEADERS = $CONFIG_HEADERS
6127 CONFIG_LINKS = $CONFIG_LINKS
6128 CONFIG_COMMANDS = $CONFIG_COMMANDS
6131 on `(hostname || uname -n) 2>/dev/null | sed 1q`
6136 case $ac_config_files in *"
6137 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
6140 case $ac_config_headers in *"
6141 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
6145 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6146 # Files that config.status was made for.
6147 config_files="$ac_config_files"
6148 config_headers="$ac_config_headers"
6152 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6154 \`$as_me' instantiates files and other configuration actions
6155 from templates according to the current configuration. Unless the files
6156 and actions are specified as TAGs, all are instantiated by default.
6158 Usage: $0 [OPTION]... [TAG]...
6160 -h, --help print this help, then exit
6161 -V, --version print version number and configuration settings, then exit
6162 --config print configuration, then exit
6163 -q, --quiet, --silent
6164 do not print progress messages
6165 -d, --debug don't remove temporary files
6166 --recheck update $as_me by reconfiguring in the same conditions
6167 --file=FILE[:TEMPLATE]
6168 instantiate the configuration file FILE
6169 --header=FILE[:TEMPLATE]
6170 instantiate the configuration header FILE
6172 Configuration files:
6175 Configuration headers:
6178 Report bugs to the package provider."
6181 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6182 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
6185 configured by $0, generated by GNU Autoconf 2.69,
6186 with options \\"\$ac_cs_config\\"
6188 Copyright (C) 2012 Free Software Foundation, Inc.
6189 This config.status script is free software; the Free Software Foundation
6190 gives unlimited permission to copy, distribute and modify it."
6194 test -n "\$AWK" || AWK=awk
6197 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6198 # The default lists apply if the user does not specify any file.
6204 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
6205 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
6209 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
6221 # Handling of the options.
6222 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
6224 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
6225 $as_echo "$ac_cs_version"; exit ;;
6226 --config |
--confi |
--conf |
--con |
--co |
--c )
6227 $as_echo "$ac_cs_config"; exit ;;
6228 --debug |
--debu |
--deb |
--de |
--d |
-d )
6230 --file |
--fil |
--fi |
--f )
6233 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6234 '') as_fn_error $?
"missing file argument" ;;
6236 as_fn_append CONFIG_FILES
" '$ac_optarg'"
6237 ac_need_defaults
=false
;;
6238 --header |
--heade |
--head |
--hea )
6241 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6243 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
6244 ac_need_defaults
=false
;;
6246 # Conflict between --help and --header
6247 as_fn_error $?
"ambiguous option: \`$1'
6248 Try \`$0 --help' for more information.";;
6249 --help |
--hel |
-h )
6250 $as_echo "$ac_cs_usage"; exit ;;
6251 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
6252 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
6256 -*) as_fn_error $?
"unrecognized option: \`$1'
6257 Try \`$0 --help' for more information." ;;
6259 *) as_fn_append ac_config_targets
" $1"
6260 ac_need_defaults
=false
;;
6266 ac_configure_extra_args
=
6268 if $ac_cs_silent; then
6270 ac_configure_extra_args
="$ac_configure_extra_args --silent"
6274 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6275 if \$ac_cs_recheck; then
6276 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6278 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6279 CONFIG_SHELL='$SHELL'
6285 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6289 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6290 ## Running $as_me. ##
6296 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6299 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6301 # Handling of arguments.
6302 for ac_config_target
in $ac_config_targets
6304 case $ac_config_target in
6305 "src/include/pcp/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/include/pcp/config.h" ;;
6306 "src/include/pcp/configsz.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/include/pcp/configsz.h" ;;
6307 "src/include/pcp/platform_defs.h") CONFIG_FILES
="$CONFIG_FILES src/include/pcp/platform_defs.h" ;;
6309 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
6314 # If the user did not use the arguments to specify the items to instantiate,
6315 # then the envvar interface is used. Set only those that are not.
6316 # We use the long form for the default assignment because of an extremely
6317 # bizarre bug on SunOS 4.1.3.
6318 if $ac_need_defaults; then
6319 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
6320 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
6323 # Have a temporary directory for convenience. Make it in the build tree
6324 # simply because there is no reason against having it here, and in addition,
6325 # creating and moving files from /tmp can sometimes cause problems.
6326 # Hook for its removal unless debugging.
6327 # Note that there is a small window in which the directory will not be cleaned:
6328 # after its creation but before its name has been assigned to `$tmp'.
6332 trap 'exit_status=$?
6334 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
6336 trap 'as_fn_exit 1' 1 2 13 15
6338 # Create a (secure) tmp directory for tmp files.
6341 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6345 tmp
=.
/conf$$
-$RANDOM
6346 (umask 077 && mkdir
"$tmp")
6347 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
6350 # Set up the scripts for CONFIG_FILES section.
6351 # No need to generate them if there are no CONFIG_FILES.
6352 # This happens for instance with `./config.status config.h'.
6353 if test -n "$CONFIG_FILES"; then
6356 ac_cr
=`echo X | tr X '\015'`
6357 # On cygwin, bash can eat \r inside `` if the user requested igncr.
6358 # But we know of no other shell where ac_cr would be empty at this
6359 # point, so we can use a bashism as a fallback.
6360 if test "x$ac_cr" = x
; then
6361 eval ac_cr
=\$
\'\\r
\'
6363 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6364 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6370 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
6375 echo "cat >conf$$subs.awk <<_ACEOF" &&
6376 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6379 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
6380 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
6382 for ac_last_try in false false false false false :; do
6383 . ./conf$$subs.sh ||
6384 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
6386 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
6387 if test $ac_delim_n = $ac_delim_num; then
6389 elif $ac_last_try; then
6390 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
6392 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
6397 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6398 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
6402 s/^/S["/; s
/!.
*/"]=/
6412 s/\(.\{148\}\)..*/\1/
6414 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
6419 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
6426 s/\(.\{148\}\)..*/\1/
6428 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
6432 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
6437 ' <conf$$subs.awk | sed '
6442 ' >>$CONFIG_STATUS || ac_write_fail=1
6443 rm -f conf$$subs.awk
6444 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6446 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
6447 for (key in S) S_is_set[key] = 1
6453 nfields = split(line, field, "@
")
6455 len = length(field[1])
6456 for (i = 2; i < nfields; i++) {
6458 keylen = length(key)
6459 if (S_is_set[key]) {
6461 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6462 len += length(value) + length(field[++i])
6473 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6474 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6475 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
6478 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
6479 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
6482 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
6483 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
6484 # trailing colons and then remove the whole line if VPATH becomes empty
6485 # (actually we leave an empty line to preserve line numbers).
6486 if test "x
$srcdir" = x.; then
6487 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
6505 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6506 fi # test -n "$CONFIG_FILES"
6508 # Set up the scripts for CONFIG_HEADERS section.
6509 # No need to generate them if there are no CONFIG_HEADERS.
6510 # This happens for instance with `./config.status Makefile'.
6511 if test -n "$CONFIG_HEADERS"; then
6512 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
6516 # Transform confdefs.h into an awk script `defines.awk', embedded as
6517 # here-document in config.status, that substitutes the proper values into
6518 # config.h.in to produce config.h.
6520 # Create a delimiter string that does not exist in confdefs.h, to ease
6521 # handling of long lines.
6523 for ac_last_try in false false :; do
6524 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
6525 if test -z "$ac_tt"; then
6527 elif $ac_last_try; then
6528 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
6530 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
6534 # For the awk script, D is an array of macro values keyed by name,
6535 # likewise P contains macro parameters if any. Preserve backslash
6536 # newline sequences.
6538 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6540 s/.\{148\}/&'"$ac_delim"'/g
6543 s/^[ ]*#[ ]*define[ ][ ]*/ /
6550 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
6552 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
6556 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
6557 D["\
1"]=" \
3\\\\\\n
"\\/p
6559 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
6564 s/.\{148\}/&'"$ac_delim"'/g
6569 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
6572 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
6574 ' <confdefs.h | sed '
6575 s/'"$ac_delim"'/"\\\
6576 "/g' >>$CONFIG_STATUS || ac_write_fail=1
6578 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6579 for (key in D) D_is_set[key] = 1
6582 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6584 split(line, arg, " ")
6585 if (arg[1] == "#") {
6589 defundef
= substr
(arg
[1], 2)
6592 split(mac1
, mac2
, "(") #)
6594 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
6595 if (D_is_set
[macro
]) {
6596 # Preserve the white space surrounding the "#".
6597 print prefix
"define", macro P
[macro
] D
[macro
]
6600 # Replace #undef with comments. This is necessary, for example,
6601 # in the case of _POSIX_SOURCE, which is predefined and required
6602 # on some systems where configure will not decide to define it.
6603 if (defundef
== "undef") {
6604 print
"/*", prefix defundef
, macro
, "*/"
6612 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6613 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
6614 fi # test -n "$CONFIG_HEADERS"
6617 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS "
6622 :[FHLC
]) ac_mode
=$ac_tag; continue;;
6624 case $ac_mode$ac_tag in
6626 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
6627 :[FH
]-) ac_tag
=-:-;;
6628 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
6645 -) ac_f
="$ac_tmp/stdin";;
6646 *) # Look for the file first in the build tree, then in the source tree
6647 # (if the path is not absolute). The absolute path cannot be DOS-style,
6648 # because $ac_f cannot contain `:'.
6652 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
6654 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6656 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6657 as_fn_append ac_file_inputs
" '$ac_f'"
6660 # Let's still pretend it is `configure' which instantiates (i.e., don't
6661 # use $as_me), people would be surprised to read:
6662 # /* config.h. Generated by config.status. */
6663 configure_input
='Generated from '`
6664 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6666 if test x
"$ac_file" != x-
; then
6667 configure_input
="$ac_file. $configure_input"
6668 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6669 $as_echo "$as_me: creating $ac_file" >&6;}
6671 # Neutralize special characters interpreted by sed in replacement strings.
6672 case $configure_input in #(
6673 *\
&* |
*\|
* |
*\\* )
6674 ac_sed_conf_input
=`$as_echo "$configure_input" |
6675 sed 's/[\\\\&|]/\\\\&/g'`;; #(
6676 *) ac_sed_conf_input
=$configure_input;;
6680 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
6681 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
6686 ac_dir
=`$as_dirname -- "$ac_file" ||
6687 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6688 X"$ac_file" : 'X\(//\)[^/]' \| \
6689 X"$ac_file" : 'X\(//\)$' \| \
6690 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6691 $as_echo X"$ac_file" |
6692 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6709 as_dir
="$ac_dir"; as_fn_mkdir_p
6713 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
6715 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6716 # A ".." for each directory in $ac_dir_suffix.
6717 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6718 case $ac_top_builddir_sub in
6719 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
6720 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
6723 ac_abs_top_builddir
=$ac_pwd
6724 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
6725 # for backward compatibility:
6726 ac_top_builddir
=$ac_top_build_prefix
6729 .
) # We are building in place.
6731 ac_top_srcdir
=$ac_top_builddir_sub
6732 ac_abs_top_srcdir
=$ac_pwd ;;
6733 [\\/]* | ?
:[\\/]* ) # Absolute name.
6734 ac_srcdir
=$srcdir$ac_dir_suffix;
6735 ac_top_srcdir
=$srcdir
6736 ac_abs_top_srcdir
=$srcdir ;;
6738 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
6739 ac_top_srcdir
=$ac_top_build_prefix$srcdir
6740 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
6742 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
6753 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6754 # If the template does not know about datarootdir, expand it.
6755 # FIXME: This hack should be removed a few years after 2.60.
6756 ac_datarootdir_hack
=; ac_datarootdir_seen
=
6767 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6768 *datarootdir
*) ac_datarootdir_seen
=yes;;
6769 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6771 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6773 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6774 ac_datarootdir_hack='
6775 s&@datadir@&$datadir&g
6776 s&@docdir@&$docdir&g
6777 s&@infodir@&$infodir&g
6778 s&@localedir@&$localedir&g
6779 s&@mandir@&$mandir&g
6780 s&\\\${datarootdir}&$datarootdir&g' ;;
6784 # Neutralize VPATH when `$srcdir' = `.'.
6785 # Shell code in configure.ac might set extrasub.
6786 # FIXME: do we really want to maintain this feature?
6787 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6788 ac_sed_extra="$ac_vpsub
6791 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6793 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
6794 s|@configure_input@|
$ac_sed_conf_input|
;t t
6795 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
6796 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
6797 s
&@srcdir@
&$ac_srcdir&;t t
6798 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
6799 s
&@top_srcdir@
&$ac_top_srcdir&;t t
6800 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
6801 s
&@builddir@
&$ac_builddir&;t t
6802 s
&@abs_builddir@
&$ac_abs_builddir&;t t
6803 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
6804 $ac_datarootdir_hack
6806 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
6807 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
6809 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6810 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
6811 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
6812 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
6814 which seems to be undefined. Please make sure it is defined" >&5
6815 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
6816 which seems to be undefined. Please make sure it is defined" >&2;}
6818 rm -f "$ac_tmp/stdin"
6820 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
6821 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
6823 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6829 if test x"$ac_file" != x-; then
6831 $as_echo "/* $configure_input */" \
6832 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
6833 } >"$ac_tmp/config.h" \
6834 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6835 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
6837 $as_echo "$as_me: $ac_file is unchanged" >&6;}
6840 mv "$ac_tmp/config.h" "$ac_file" \
6841 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6844 $as_echo "/* $configure_input */" \
6845 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
6846 || as_fn_error $? "could not create -" "$LINENO" 5
6858 ac_clean_files=$ac_clean_files_save
6860 test $ac_write_fail = 0 ||
6861 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
6864 # configure is writing to config.log, and then calls config.status.
6865 # config.status does its own redirection, appending to config.log.
6866 # Unfortunately, on DOS this fails, as config.log is still kept open
6867 # by configure, so config.status won't be able to
write to it
; its
6868 # output is simply discarded. So we exec the FD to /dev/null,
6869 # effectively closing config.log, so it can be properly (re)opened and
6870 # appended to by config.status. When coming back to configure, we
6871 # need to make the FD available again.
6872 if test "$no_create" != yes; then
6874 ac_config_status_args
=
6875 test "$silent" = yes &&
6876 ac_config_status_args
="$ac_config_status_args --quiet"
6878 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
6880 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6881 # would make configure fail if this is the last instruction.
6882 $ac_cs_success || as_fn_exit
1
6884 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
6885 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6886 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
6892 # Extract the first word of "$ac_prog", so it can be a program name with args.
6893 set dummy
$ac_prog; ac_word
=$2
6894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6895 $as_echo_n "checking for $ac_word... " >&6; }
6896 if ${ac_cv_prog_GIT+:} false
; then :
6897 $as_echo_n "(cached) " >&6
6899 if test -n "$GIT"; then
6900 ac_cv_prog_GIT
="$GIT" # Let the user override the test.
6902 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6906 test -z "$as_dir" && as_dir
=.
6907 for ac_exec_ext
in '' $ac_executable_extensions; do
6908 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6909 ac_cv_prog_GIT
="$ac_prog"
6910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6920 if test -n "$GIT"; then
6921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5
6922 $as_echo "$GIT" >&6; }
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6925 $as_echo "no" >&6; }
6929 test -n "$GIT" && break
6934 for ac_prog
in python
6936 # Extract the first word of "$ac_prog", so it can be a program name with args.
6937 set dummy
$ac_prog; ac_word
=$2
6938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6939 $as_echo_n "checking for $ac_word... " >&6; }
6940 if ${ac_cv_prog_PYTHON+:} false
; then :
6941 $as_echo_n "(cached) " >&6
6943 if test -n "$PYTHON"; then
6944 ac_cv_prog_PYTHON
="$PYTHON" # Let the user override the test.
6946 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6950 test -z "$as_dir" && as_dir
=.
6951 for ac_exec_ext
in '' $ac_executable_extensions; do
6952 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6953 ac_cv_prog_PYTHON
="$ac_prog"
6954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6963 PYTHON
=$ac_cv_prog_PYTHON
6964 if test -n "$PYTHON"; then
6965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
6966 $as_echo "$PYTHON" >&6; }
6968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6969 $as_echo "no" >&6; }
6973 test -n "$PYTHON" && break
6975 test -n "$PYTHON" || PYTHON
="python2.7"
6979 for ac_prog
in python3
6981 # Extract the first word of "$ac_prog", so it can be a program name with args.
6982 set dummy
$ac_prog; ac_word
=$2
6983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6984 $as_echo_n "checking for $ac_word... " >&6; }
6985 if ${ac_cv_prog_PYTHON3+:} false
; then :
6986 $as_echo_n "(cached) " >&6
6988 if test -n "$PYTHON3"; then
6989 ac_cv_prog_PYTHON3
="$PYTHON3" # Let the user override the test.
6991 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
6995 test -z "$as_dir" && as_dir
=.
6996 for ac_exec_ext
in '' $ac_executable_extensions; do
6997 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
6998 ac_cv_prog_PYTHON3
="$ac_prog"
6999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7008 PYTHON3
=$ac_cv_prog_PYTHON3
7009 if test -n "$PYTHON3"; then
7010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON3" >&5
7011 $as_echo "$PYTHON3" >&6; }
7013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7014 $as_echo "no" >&6; }
7018 test -n "$PYTHON3" && break
7020 test -n "$PYTHON3" || PYTHON3
="python3.4"
7024 enable_python2
=false
7025 if test "x$do_python" != "xno"; then :
7028 if test -z "$PYTHON"
7030 enable_python2
=false
7032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python version" >&5
7033 $as_echo_n "checking Python version... " >&6; }
7034 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 }'`
7035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PY_MAJOR.$PY_MINOR.$PY_POINT" >&5
7036 $as_echo "$PY_MAJOR.$PY_MINOR.$PY_POINT" >&6; }
7037 if test "$PY_MAJOR" -lt 2; then
7038 echo WARNING
: Python version
2.6 or later does not seem to be installed.
7039 echo Cannot proceed with the Python
$PY_MAJOR installation found.
7040 enable_python2
=false
7042 if test "$PY_MAJOR" -eq 2 -a "$PY_MINOR" -lt 6 ; then
7043 echo WARNING
: Python version
2.
$PY_MINOR is too old.
7044 echo Python version
2.6 or later is required
for Python builds.
7045 enable_python2
=false
7047 for ac_header
in python
${PY_MAJOR}.
${PY_MINOR}/Python.h
7049 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7050 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7051 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
7052 cat >>confdefs.h
<<_ACEOF
7053 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7058 echo WARNING
: Python version
$PY_MAJOR.
$PY_MINOR header
file missing.
7059 echo Cannot proceed with the Python
$PY_MAJOR installation found.
7060 enable_python2
=false
7068 if test "$do_python" != "check" -a "$enable_python2" != "true"
7070 as_fn_error $?
"cannot enable Python - no supported version found" "$LINENO" 5
7076 enable_python3
=false
7077 if test "x$do_python3" != "xno"; then :
7080 if test -z "$PYTHON3"
7082 enable_python3
=false
7084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python3 version" >&5
7085 $as_echo_n "checking Python3 version... " >&6; }
7086 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 }'`
7087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PY_MAJOR.$PY_MINOR.$PY_POINT" >&5
7088 $as_echo "$PY_MAJOR.$PY_MINOR.$PY_POINT" >&6; }
7089 if test "$PY_MAJOR" -lt 3; then
7090 echo WARNING
: Python version
3.3 or later does not seem to be installed.
7091 echo Cannot proceed with the Python
$PY_MAJOR installation found.
7092 enable_python3
=false
7094 if test "$PY_MAJOR" -eq 3 -a "$PY_MINOR" -lt 3 ; then
7095 echo WARNING
: Python version
3.
$PY_MINOR is too old.
7096 echo Python version
3.3 or later is required
for Python builds.
7097 enable_python3
=false
7099 for ac_header
in python
${PY_MAJOR}.
${PY_MINOR}m
/Python.h
7101 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7102 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7103 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
7104 cat >>confdefs.h
<<_ACEOF
7105 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7110 echo WARNING
: Python version
$PY_MAJOR.
$PY_MINOR header
file missing.
7111 echo Cannot proceed with the Python
$PY_MAJOR installation found.
7112 enable_python3
=false
7120 if test "$do_python3" != "check" -a "$enable_python3" != "true"
7122 as_fn_error $?
"cannot enable Python3 - no supported version found" "$LINENO" 5
7128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for any python version" >&5
7129 $as_echo_n "checking for any python version... " >&6; }
7130 if test "$cross_compiling" = "yes"; then
7132 echo "cross-compile -> \"$ans\"" >&5
7133 elif test "$enable_python2" = "true" -o "$enable_python3" = "true"
7140 if $have_python; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7141 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7142 $as_echo "no" >&6; }; fi
7144 if test "$enable_python3" = "true"
7146 pcp_python_prog
=$PYTHON3
7147 elif test "$enable_python2" = "true"
7149 pcp_python_prog
=$PYTHON
7156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python module jsonpointer" >&5
7157 $as_echo_n "checking for Python module jsonpointer... " >&6; }
7162 txt
="import jsonpointer"
7164 $pcp_python_prog -c 'import sys;
7165 '"$txt" >>config.log
2>&1
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7169 $as_echo "yes" >&6; }
7170 eval have_python_jsonpointer
=true
7172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7173 $as_echo "no" >&6; }
7174 eval have_python_jsonpointer
=false
7178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python module six" >&5
7179 $as_echo_n "checking for Python module six... " >&6; }
7186 $pcp_python_prog -c 'import sys;
7187 '"$txt" >>config.log
2>&1
7190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7191 $as_echo "yes" >&6; }
7192 eval have_python_six
=true
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7195 $as_echo "no" >&6; }
7196 eval have_python_six
=false
7201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the json PMDA should be included" >&5
7202 $as_echo_n "checking if the json PMDA should be included... " >&6; }
7204 if test "x$do_pmdajson" = "xyes"; then :
7207 if test "x$do_pmdajson" = "xcheck"; then :
7209 $have_python_jsonpointer && $have_python_six && pmda_json
=true
7212 PMDA_JSON
=$pmda_json
7214 if $pmda_json; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7215 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7216 $as_echo "no" >&6; }; fi
7220 # Extract the first word of "$ac_prog", so it can be a program name with args.
7221 set dummy
$ac_prog; ac_word
=$2
7222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7223 $as_echo_n "checking for $ac_word... " >&6; }
7224 if ${ac_cv_prog_PERL+:} false
; then :
7225 $as_echo_n "(cached) " >&6
7227 if test -n "$PERL"; then
7228 ac_cv_prog_PERL
="$PERL" # Let the user override the test.
7230 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7234 test -z "$as_dir" && as_dir
=.
7235 for ac_exec_ext
in '' $ac_executable_extensions; do
7236 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7237 ac_cv_prog_PERL
="$ac_prog"
7238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7247 PERL
=$ac_cv_prog_PERL
7248 if test -n "$PERL"; then
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
7250 $as_echo "$PERL" >&6; }
7252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7253 $as_echo "no" >&6; }
7257 test -n "$PERL" && break
7262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for any perl version" >&5
7263 $as_echo_n "checking for any perl version... " >&6; }
7264 if test "$cross_compiling" = "yes"; then
7266 echo "cross-compile -> \"$ans\"" >&5
7267 elif test -n "$PERL"
7277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pcp_perl_prog" >&5
7278 $as_echo "$pcp_perl_prog" >&6; }
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the SNMP PMDA should be included" >&5
7281 $as_echo_n "checking if the SNMP PMDA should be included... " >&6; }
7283 if test "$have_perl" = true
7285 if $pcp_perl_prog -e "use Net::SNMP" >/dev
/null
2>&1
7290 PMDA_SNMP
=$pmda_snmp
7292 if $pmda_snmp; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7293 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7294 $as_echo "no" >&6; }; fi
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the mysql PMDA should be included" >&5
7297 $as_echo_n "checking if the mysql PMDA should be included... " >&6; }
7299 if test "$have_perl" = true
7301 if $pcp_perl_prog -e "use DBI" >/dev
/null
2>&1
7303 if $pcp_perl_prog -e "use DBD::mysql" >/dev
/null
2>&1
7309 PMDA_MYSQL
=$pmda_mysql
7311 if $pmda_mysql; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7312 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7313 $as_echo "no" >&6; }; fi
7315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the postgresql PMDA should be included" >&5
7316 $as_echo_n "checking if the postgresql PMDA should be included... " >&6; }
7317 pmda_postgresql
=false
7318 if test "$have_perl" = true
7320 if $pcp_perl_prog -e "use DBI" >/dev
/null
2>&1
7322 if $pcp_perl_prog -e "use DBD::Pg" >/dev
/null
2>&1
7324 pmda_postgresql
=true
7328 PMDA_POSTGRESQL
=$pmda_postgresql
7330 if $pmda_postgresql; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7331 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7332 $as_echo "no" >&6; }; fi
7334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the oracle PMDA should be included" >&5
7335 $as_echo_n "checking if the oracle PMDA should be included... " >&6; }
7337 if test "$have_perl" = true
7339 if $pcp_perl_prog -e "use DBI" >/dev
/null
2>&1
7344 PMDA_ORACLE
=$pmda_oracle
7346 if $pmda_oracle; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7347 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7348 $as_echo "no" >&6; }; fi
7350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the elasticsearch PMDA should be included" >&5
7351 $as_echo_n "checking if the elasticsearch PMDA should be included... " >&6; }
7352 pmda_elasticsearch
=false
7353 if test "$have_perl" = true
7355 if $pcp_perl_prog -e "use LWP::UserAgent" >/dev
/null
2>&1
7357 pmda_elasticsearch
=true
7360 PMDA_ELASTICSEARCH
=$pmda_elasticsearch
7362 if $pmda_elasticsearch; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7363 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7364 $as_echo "no" >&6; }; fi
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the nginx PMDA should be included" >&5
7367 $as_echo_n "checking if the nginx PMDA should be included... " >&6; }
7369 if test "$have_perl" = true
7371 if $pcp_perl_prog -e "use LWP::UserAgent" >/dev
/null
2>&1
7376 PMDA_NGINX
=$pmda_nginx
7378 if $pmda_nginx; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7379 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7380 $as_echo "no" >&6; }; fi
7382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the activemq PMDA should be included" >&5
7383 $as_echo_n "checking if the activemq PMDA should be included... " >&6; }
7385 if test "$have_perl" = true
7387 if $pcp_perl_prog -e "use LWP::UserAgent" >/dev
/null
2>&1
7392 PMDA_ACTIVEMQ
=$pmda_activemq
7394 if $pmda_activemq; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7395 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7396 $as_echo "no" >&6; }; fi
7401 if test "x$do_qt" != "xno"; then :
7407 for ac_prog
in qmake-qt4 qmake
7409 # Extract the first word of "$ac_prog", so it can be a program name with args.
7410 set dummy
$ac_prog; ac_word
=$2
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7412 $as_echo_n "checking for $ac_word... " >&6; }
7413 if ${ac_cv_path_QMAKE+:} false
; then :
7414 $as_echo_n "(cached) " >&6
7418 ac_cv_path_QMAKE
="$QMAKE" # Let the user override the test with a path.
7421 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7422 as_dummy
="$QTDIR/bin:/usr/bin:/usr/lib64/qt4/bin:/usr/lib/qt4/bin:/usr/local/bin"
7423 for as_dir
in $as_dummy
7426 test -z "$as_dir" && as_dir
=.
7427 for ac_exec_ext
in '' $ac_executable_extensions; do
7428 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7429 ac_cv_path_QMAKE
="$as_dir/$ac_word$ac_exec_ext"
7430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7440 QMAKE
=$ac_cv_path_QMAKE
7441 if test -n "$QMAKE"; then
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
7443 $as_echo "$QMAKE" >&6; }
7445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7446 $as_echo "no" >&6; }
7450 test -n "$QMAKE" && break
7453 test "x$cc_is_gcc" = xyes
-a $target_os = solaris
&& QMAKE
="$QMAKE -spec solaris-g++"
7460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Qt version" >&5
7461 $as_echo_n "checking Qt version... " >&6; }
7462 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 }'`
7463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_MAJOR.$QT_MINOR.$QT_POINT" >&5
7464 $as_echo "$QT_MAJOR.$QT_MINOR.$QT_POINT" >&6; }
7465 if test "$QT_MAJOR" -lt 4; then
7466 echo WARNING
: Qt version
4.4 or later does not seem to be installed.
7467 echo Cannot proceed with the Qt
$QT_MAJOR installation found.
7470 if test "$QT_MAJOR" -eq 4 -a "$QT_MINOR" -lt 4 ; then
7471 echo WARNING
: Qt version
4.
$QT_MINOR is too old.
7472 echo Qt version
4.4 or later is required
for Qt builds.
7477 if test "$do_qt" != "check" -a "$enable_qt" != "true"
7479 as_fn_error $?
"cannot enable Qt - no supported Qt installation found" "$LINENO" 5
7480 elif test "$enable_qt" = "true" -a "x$cxx" = "x"
7483 test "$do_qt" != "check" && \
7484 as_fn_error $?
"C++ compiler unavailable, cannot build Qt components" "$LINENO" 5
7485 elif test "$do_qt" = "debug"
7498 # Extract the first word of "gmake", so it can be a program name with args.
7499 set dummy gmake
; ac_word
=$2
7500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7501 $as_echo_n "checking for $ac_word... " >&6; }
7502 if ${ac_cv_path_MAKE+:} false
; then :
7503 $as_echo_n "(cached) " >&6
7507 ac_cv_path_MAKE
="$MAKE" # Let the user override the test with a path.
7510 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7514 test -z "$as_dir" && as_dir
=.
7515 for ac_exec_ext
in '' $ac_executable_extensions; do
7516 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7517 ac_cv_path_MAKE
="$as_dir/$ac_word$ac_exec_ext"
7518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7528 MAKE
=$ac_cv_path_MAKE
7529 if test -n "$MAKE"; then
7530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
7531 $as_echo "$MAKE" >&6; }
7533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7534 $as_echo "no" >&6; }
7540 # look elsewhere ...
7541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make elsewhere" >&5
7542 $as_echo_n "checking for GNU make elsewhere... " >&6; }
7543 for f
in /usr
/local
/bin
/gmake
/usr
/freeware
/bin
/gmake
/usr
/local
/bin
/make /opt
/sfw
/bin
/gmake nowhere
7551 if test $f = nowhere
7553 # Check if /usr/bin/make is any good
7554 mver
=`/usr/bin/make --version 2>/dev/null | sed -n -e1p | cut -c1-8`
7555 if test "$mver" != "GNU Make"
7558 echo "FATAL ERROR: could not find GNU make anywhere"
7559 echo "You need to set \$MAKE as the full path to GNU make "
7560 echo "in the environment."
7561 rm -rf conftest conftest.
*
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
7568 $as_echo "$MAKE" >&6; }
7574 if test -z "$CPP"; then
7576 ac_cpp
='$CPP $CPPFLAGS'
7577 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7578 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7579 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7581 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7582 # On Suns, sometimes $CPP names a directory.
7583 if test -n "$CPP" && test -d "$CPP"; then
7586 if test -z "$CPP"; then
7587 if ${ac_cv_prog_CPP+:} false
; then :
7588 $as_echo_n "(cached) " >&6
7590 # Double quotes because CPP needs to be expanded
7591 for CPP
in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7594 for ac_c_preproc_warn_flag
in '' yes
7596 # Use a header file that comes with gcc, so configuring glibc
7597 # with a fresh cross-compiler works.
7598 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7599 # <limits.h> exists even on freestanding compilers.
7600 # On the NeXT, cc -E runs the code through the compiler's parser,
7601 # not just through cpp. "Syntax error" is here to catch this case.
7602 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7603 /* end confdefs.h. */
7605 # include <limits.h>
7607 # include <assert.h>
7611 if ac_fn_c_try_cpp
"$LINENO"; then :
7614 # Broken: fails on valid input.
7617 rm -f conftest.err conftest.i conftest.
$ac_ext
7619 # OK, works on sane cases. Now check whether nonexistent headers
7620 # can be detected and how.
7621 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7622 /* end confdefs.h. */
7623 #include <ac_nonexistent.h>
7625 if ac_fn_c_try_cpp
"$LINENO"; then :
7626 # Broken: success on invalid input.
7629 # Passes both tests.
7633 rm -f conftest.err conftest.i conftest.
$ac_ext
7636 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7637 rm -f conftest.i conftest.err conftest.
$ac_ext
7638 if $ac_preproc_ok; then :
7650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7651 $as_echo "$CPP" >&6; }
7653 for ac_c_preproc_warn_flag
in '' yes
7655 # Use a header file that comes with gcc, so configuring glibc
7656 # with a fresh cross-compiler works.
7657 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7658 # <limits.h> exists even on freestanding compilers.
7659 # On the NeXT, cc -E runs the code through the compiler's parser,
7660 # not just through cpp. "Syntax error" is here to catch this case.
7661 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7662 /* end confdefs.h. */
7664 # include <limits.h>
7666 # include <assert.h>
7670 if ac_fn_c_try_cpp
"$LINENO"; then :
7673 # Broken: fails on valid input.
7676 rm -f conftest.err conftest.i conftest.
$ac_ext
7678 # OK, works on sane cases. Now check whether nonexistent headers
7679 # can be detected and how.
7680 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
7681 /* end confdefs.h. */
7682 #include <ac_nonexistent.h>
7684 if ac_fn_c_try_cpp
"$LINENO"; then :
7685 # Broken: success on invalid input.
7688 # Passes both tests.
7692 rm -f conftest.err conftest.i conftest.
$ac_ext
7695 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7696 rm -f conftest.i conftest.err conftest.
$ac_ext
7697 if $ac_preproc_ok; then :
7700 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7701 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7702 as_fn_error $?
"C preprocessor \"$CPP\" fails sanity check
7703 See \`config.log' for more details" "$LINENO" 5; }
7707 ac_cpp
='$CPP $CPPFLAGS'
7708 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7709 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7710 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
7716 if test -z "$LD"; then
7717 # Extract the first word of "ld", so it can be a program name with args.
7718 set dummy ld
; ac_word
=$2
7719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7720 $as_echo_n "checking for $ac_word... " >&6; }
7721 if ${ac_cv_path_LD+:} false
; then :
7722 $as_echo_n "(cached) " >&6
7726 ac_cv_path_LD
="$LD" # Let the user override the test with a path.
7729 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7733 test -z "$as_dir" && as_dir
=.
7734 for ac_exec_ext
in '' $ac_executable_extensions; do
7735 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7736 ac_cv_path_LD
="$as_dir/$ac_word$ac_exec_ext"
7737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7744 test -z "$ac_cv_path_LD" && ac_cv_path_LD
="/usr/bin/ld"
7749 if test -n "$LD"; then
7750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7751 $as_echo "$LD" >&6; }
7753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7754 $as_echo "no" >&6; }
7762 if test -z "$PCP_USER_INSTALL" ; then
7763 pcp_user_install
=root
7765 pcp_user_install
="$PCP_USER_INSTALL"
7768 if test -z "$PCP_GROUP_INSTALL" ; then
7771 darwin|freebsd|netbsd|openbsd
)
7772 pcp_group_install
=wheel
7775 pcp_group_install
=root
7779 pcp_group_install
="$PCP_GROUP_INSTALL"
7783 if test -z "$TAR"; then
7784 for ac_prog
in gtar
tar
7786 # Extract the first word of "$ac_prog", so it can be a program name with args.
7787 set dummy
$ac_prog; ac_word
=$2
7788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7789 $as_echo_n "checking for $ac_word... " >&6; }
7790 if ${ac_cv_path_TAR+:} false
; then :
7791 $as_echo_n "(cached) " >&6
7795 ac_cv_path_TAR
="$TAR" # Let the user override the test with a path.
7798 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7802 test -z "$as_dir" && as_dir
=.
7803 for ac_exec_ext
in '' $ac_executable_extensions; do
7804 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7805 ac_cv_path_TAR
="$as_dir/$ac_word$ac_exec_ext"
7806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7817 if test -n "$TAR"; then
7818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
7819 $as_echo "$TAR" >&6; }
7821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7822 $as_echo "no" >&6; }
7826 test -n "$TAR" && break
7828 test -n "$TAR" || TAR
="tar"
7831 if test $target_os = darwin
-a -x /usr
/bin
/gnutar
7838 if test -z "$ZIP"; then
7839 # Extract the first word of "gzip", so it can be a program name with args.
7840 set dummy
gzip; ac_word
=$2
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7842 $as_echo_n "checking for $ac_word... " >&6; }
7843 if ${ac_cv_path_ZIP+:} false
; then :
7844 $as_echo_n "(cached) " >&6
7848 ac_cv_path_ZIP
="$ZIP" # Let the user override the test with a path.
7851 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7855 test -z "$as_dir" && as_dir
=.
7856 for ac_exec_ext
in '' $ac_executable_extensions; do
7857 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7858 ac_cv_path_ZIP
="$as_dir/$ac_word$ac_exec_ext"
7859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7866 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP
="/bin/gzip"
7871 if test -n "$ZIP"; then
7872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
7873 $as_echo "$ZIP" >&6; }
7875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7876 $as_echo "no" >&6; }
7881 test ! -x "$ZIP" && ZIP
=/usr
/local
/bin
/gzip
7882 test ! -x "$ZIP" && ZIP
=/usr
/freeware
/bin
/gzip
7883 test ! -x "$ZIP" && ZIP
=/usr
/bin
/gzip
7885 test -z "$gzip" && gzip=no-gzip
7888 if test -z "$BZIP2"; then
7889 # Extract the first word of "bzip2", so it can be a program name with args.
7890 set dummy
bzip2; ac_word
=$2
7891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7892 $as_echo_n "checking for $ac_word... " >&6; }
7893 if ${ac_cv_path_BZIP2+:} false
; then :
7894 $as_echo_n "(cached) " >&6
7898 ac_cv_path_BZIP2
="$BZIP2" # Let the user override the test with a path.
7901 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7905 test -z "$as_dir" && as_dir
=.
7906 for ac_exec_ext
in '' $ac_executable_extensions; do
7907 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7908 ac_cv_path_BZIP2
="$as_dir/$ac_word$ac_exec_ext"
7909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7916 test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2
="/bin/bzip2"
7920 BZIP2
=$ac_cv_path_BZIP2
7921 if test -n "$BZIP2"; then
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIP2" >&5
7923 $as_echo "$BZIP2" >&6; }
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7926 $as_echo "no" >&6; }
7931 test ! -x "$BZIP2" && BZIP2
=/usr
/bin
/bzip2
7932 test ! -x "$BZIP2" && BZIP2
=/usr
/local
/bin
/bzip2
7933 test ! -x "$BZIP2" && BZIP2
=/usr
/freeware
/bin
/bzip2
7935 test -z "$bzip2" && bzip2=no-bzip2
7938 if test -z "$LZMA"; then
7939 # Extract the first word of "lzma", so it can be a program name with args.
7940 set dummy lzma
; ac_word
=$2
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7942 $as_echo_n "checking for $ac_word... " >&6; }
7943 if ${ac_cv_path_LZMA+:} false
; then :
7944 $as_echo_n "(cached) " >&6
7948 ac_cv_path_LZMA
="$LZMA" # Let the user override the test with a path.
7951 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
7955 test -z "$as_dir" && as_dir
=.
7956 for ac_exec_ext
in '' $ac_executable_extensions; do
7957 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
7958 ac_cv_path_LZMA
="$as_dir/$ac_word$ac_exec_ext"
7959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7966 test -z "$ac_cv_path_LZMA" && ac_cv_path_LZMA
="/bin/lzma"
7970 LZMA
=$ac_cv_path_LZMA
7971 if test -n "$LZMA"; then
7972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZMA" >&5
7973 $as_echo "$LZMA" >&6; }
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7976 $as_echo "no" >&6; }
7981 test ! -x "$LZMA" && LZMA
=/usr
/bin
/lzma
7982 test ! -x "$LZMA" && LZMA
=/usr
/local
/bin
/lzma
7983 test ! -x "$LZMA" && LZMA
=/usr
/freeware
/bin
/lzma
7985 test -z "$lzma" && lzma
=no-lzma
7988 if test -z "$XZ"; then
7989 # Extract the first word of "xz", so it can be a program name with args.
7990 set dummy xz
; ac_word
=$2
7991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7992 $as_echo_n "checking for $ac_word... " >&6; }
7993 if ${ac_cv_path_XZ+:} false
; then :
7994 $as_echo_n "(cached) " >&6
7998 ac_cv_path_XZ
="$XZ" # Let the user override the test with a path.
8001 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8005 test -z "$as_dir" && as_dir
=.
8006 for ac_exec_ext
in '' $ac_executable_extensions; do
8007 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8008 ac_cv_path_XZ
="$as_dir/$ac_word$ac_exec_ext"
8009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8016 test -z "$ac_cv_path_XZ" && ac_cv_path_XZ
="/bin/xz"
8021 if test -n "$XZ"; then
8022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XZ" >&5
8023 $as_echo "$XZ" >&6; }
8025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8026 $as_echo "no" >&6; }
8031 test ! -x "$XZ" && XZ
=/usr
/bin
/xz
8032 test ! -x "$XZ" && XZ
=/usr
/local
/bin
/xz
8033 test ! -x "$XZ" && XZ
=/usr
/freeware
/bin
/xz
8035 test -z "$xz" && xz
=no-xz
8038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PackageMaker" >&5
8039 $as_echo_n "checking for PackageMaker... " >&6; }
8040 if test -z "$PACKAGE_MAKER"
8042 if test $target_os = darwin
8044 if test -x /Applications
/PackageMaker.app
/Contents
/MacOS
/PackageMaker
8045 then # local XCode extras install
8046 package_maker
=/Applications
/PackageMaker.app
/Contents
/MacOS
/PackageMaker
8047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (local install)" >&5
8048 $as_echo " yes (local install)" >&6; }
8049 elif test -x /Developer
/Applications
/PackageMaker.app
/Contents
/MacOS
/PackageMaker
8051 package_maker
=/Developer
/Applications
/PackageMaker.app
/Contents
/MacOS
/PackageMaker
8052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (darwin 6.x)" >&5
8053 $as_echo " yes (darwin 6.x)" >&6; }
8054 elif test -x /Developer
/Applications
/Utilities
/PackageMaker.app
/Contents
/MacOS
/PackageMaker
8056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (darwin 7.x)" >&5
8057 $as_echo " yes (darwin 7.x)" >&6; }
8058 package_maker
=/Developer
/Applications
/Utilities
/PackageMaker.app
/Contents
/MacOS
/PackageMaker
8060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
8061 $as_echo " not found!" >&6; }
8062 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PackageMaker not found, mac packages will not be made" >&5
8063 $as_echo "$as_me: WARNING: PackageMaker not found, mac packages will not be made" >&2;}
8066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8067 $as_echo " no" >&6; }
8070 package_maker
="$PACKAGE_MAKER"
8074 if test -z "$HDIUTIL"; then
8075 # Extract the first word of "hdiutil", so it can be a program name with args.
8076 set dummy hdiutil
; ac_word
=$2
8077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8078 $as_echo_n "checking for $ac_word... " >&6; }
8079 if ${ac_cv_path_HDIUTIL+:} false
; then :
8080 $as_echo_n "(cached) " >&6
8084 ac_cv_path_HDIUTIL
="$HDIUTIL" # Let the user override the test with a path.
8087 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8091 test -z "$as_dir" && as_dir
=.
8092 for ac_exec_ext
in '' $ac_executable_extensions; do
8093 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8094 ac_cv_path_HDIUTIL
="$as_dir/$ac_word$ac_exec_ext"
8095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8105 HDIUTIL
=$ac_cv_path_HDIUTIL
8106 if test -n "$HDIUTIL"; then
8107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HDIUTIL" >&5
8108 $as_echo "$HDIUTIL" >&6; }
8110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8111 $as_echo "no" >&6; }
8119 if test -z "$MKINSTALLP"; then
8120 # Extract the first word of "mkinstallp", so it can be a program name with args.
8121 set dummy mkinstallp
; ac_word
=$2
8122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8123 $as_echo_n "checking for $ac_word... " >&6; }
8124 if ${ac_cv_path_MKINSTALLP+:} false
; then :
8125 $as_echo_n "(cached) " >&6
8129 ac_cv_path_MKINSTALLP
="$MKINSTALLP" # Let the user override the test with a path.
8132 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8136 test -z "$as_dir" && as_dir
=.
8137 for ac_exec_ext
in '' $ac_executable_extensions; do
8138 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8139 ac_cv_path_MKINSTALLP
="$as_dir/$ac_word$ac_exec_ext"
8140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8150 MKINSTALLP
=$ac_cv_path_MKINSTALLP
8151 if test -n "$MKINSTALLP"; then
8152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKINSTALLP" >&5
8153 $as_echo "$MKINSTALLP" >&6; }
8155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8156 $as_echo "no" >&6; }
8161 mkinstallp
=$MKINSTALLP
8164 if test -z "$PKGMK"; then
8165 # Extract the first word of "pkgmk", so it can be a program name with args.
8166 set dummy pkgmk
; ac_word
=$2
8167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8168 $as_echo_n "checking for $ac_word... " >&6; }
8169 if ${ac_cv_path_PKGMK+:} false
; then :
8170 $as_echo_n "(cached) " >&6
8174 ac_cv_path_PKGMK
="$PKGMK" # Let the user override the test with a path.
8177 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8181 test -z "$as_dir" && as_dir
=.
8182 for ac_exec_ext
in '' $ac_executable_extensions; do
8183 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8184 ac_cv_path_PKGMK
="$as_dir/$ac_word$ac_exec_ext"
8185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8195 PKGMK
=$ac_cv_path_PKGMK
8196 if test -n "$PKGMK"; then
8197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGMK" >&5
8198 $as_echo "$PKGMK" >&6; }
8200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8201 $as_echo "no" >&6; }
8209 if test -z "$DLLTOOL"; then
8210 # Extract the first word of "dlltool", so it can be a program name with args.
8211 set dummy dlltool
; ac_word
=$2
8212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8213 $as_echo_n "checking for $ac_word... " >&6; }
8214 if ${ac_cv_path_DLLTOOL+:} false
; then :
8215 $as_echo_n "(cached) " >&6
8219 ac_cv_path_DLLTOOL
="$DLLTOOL" # Let the user override the test with a path.
8222 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8226 test -z "$as_dir" && as_dir
=.
8227 for ac_exec_ext
in '' $ac_executable_extensions; do
8228 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8229 ac_cv_path_DLLTOOL
="$as_dir/$ac_word$ac_exec_ext"
8230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8240 DLLTOOL
=$ac_cv_path_DLLTOOL
8241 if test -n "$DLLTOOL"; then
8242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8243 $as_echo "$DLLTOOL" >&6; }
8245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8246 $as_echo "no" >&6; }
8254 if test -z "$RPMBUILD"; then
8255 # Extract the first word of "rpmbuild", so it can be a program name with args.
8256 set dummy rpmbuild
; ac_word
=$2
8257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8258 $as_echo_n "checking for $ac_word... " >&6; }
8259 if ${ac_cv_path_RPMBUILD+:} false
; then :
8260 $as_echo_n "(cached) " >&6
8264 ac_cv_path_RPMBUILD
="$RPMBUILD" # Let the user override the test with a path.
8267 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8271 test -z "$as_dir" && as_dir
=.
8272 for ac_exec_ext
in '' $ac_executable_extensions; do
8273 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8274 ac_cv_path_RPMBUILD
="$as_dir/$ac_word$ac_exec_ext"
8275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8285 RPMBUILD
=$ac_cv_path_RPMBUILD
8286 if test -n "$RPMBUILD"; then
8287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPMBUILD" >&5
8288 $as_echo "$RPMBUILD" >&6; }
8290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8291 $as_echo "no" >&6; }
8296 test $target_distro = slackware
&& RPMBUILD
=''
8300 if test -z "$RPM"; then
8301 # Extract the first word of "rpm", so it can be a program name with args.
8302 set dummy rpm
; ac_word
=$2
8303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8304 $as_echo_n "checking for $ac_word... " >&6; }
8305 if ${ac_cv_path_RPM+:} false
; then :
8306 $as_echo_n "(cached) " >&6
8310 ac_cv_path_RPM
="$RPM" # Let the user override the test with a path.
8313 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8317 test -z "$as_dir" && as_dir
=.
8318 for ac_exec_ext
in '' $ac_executable_extensions; do
8319 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8320 ac_cv_path_RPM
="$as_dir/$ac_word$ac_exec_ext"
8321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8332 if test -n "$RPM"; then
8333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
8334 $as_echo "$RPM" >&6; }
8336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8337 $as_echo "no" >&6; }
8342 test $target_distro = slackware
&& RPM
=''
8346 if test -n "$RPMBUILD" -a -x "$RPMBUILD"
8354 if test -z "$POD2MAN"; then
8355 # Extract the first word of "pod2man", so it can be a program name with args.
8356 set dummy pod2man
; ac_word
=$2
8357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8358 $as_echo_n "checking for $ac_word... " >&6; }
8359 if ${ac_cv_path_POD2MAN+:} false
; then :
8360 $as_echo_n "(cached) " >&6
8364 ac_cv_path_POD2MAN
="$POD2MAN" # Let the user override the test with a path.
8367 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8371 test -z "$as_dir" && as_dir
=.
8372 for ac_exec_ext
in '' $ac_executable_extensions; do
8373 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8374 ac_cv_path_POD2MAN
="$as_dir/$ac_word$ac_exec_ext"
8375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8385 POD2MAN
=$ac_cv_path_POD2MAN
8386 if test -n "$POD2MAN"; then
8387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POD2MAN" >&5
8388 $as_echo "$POD2MAN" >&6; }
8390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8391 $as_echo "no" >&6; }
8399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ExtUtils::MakeMaker is installed" >&5
8400 $as_echo_n "checking if ExtUtils::MakeMaker is installed... " >&6; }
8401 perl
-e "use ExtUtils::MakeMaker" 2>/dev
/null
8404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8405 $as_echo " yes" >&6; }
8407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8408 $as_echo " no" >&6; }
8410 echo "FATAL ERROR: Perl ExtUtils::MakeMaker module missing."
8411 echo "You can either install this from your distribution, or"
8412 echo "download from CPAN (Comprehensive Perl Archive Network)."
8413 rm -rf conftest conftest.
*
8417 # Extract the first word of "true", so it can be a program name with args.
8418 set dummy true
; ac_word
=$2
8419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8420 $as_echo_n "checking for $ac_word... " >&6; }
8421 if ${ac_cv_path_TRUEPROG+:} false
; then :
8422 $as_echo_n "(cached) " >&6
8426 ac_cv_path_TRUEPROG
="$TRUEPROG" # Let the user override the test with a path.
8429 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8433 test -z "$as_dir" && as_dir
=.
8434 for ac_exec_ext
in '' $ac_executable_extensions; do
8435 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8436 ac_cv_path_TRUEPROG
="$as_dir/$ac_word$ac_exec_ext"
8437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8447 TRUEPROG
=$ac_cv_path_TRUEPROG
8448 if test -n "$TRUEPROG"; then
8449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUEPROG" >&5
8450 $as_echo "$TRUEPROG" >&6; }
8452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8453 $as_echo "no" >&6; }
8458 if test -z "$MAKEDEPEND"; then
8459 # Extract the first word of "makedepend", so it can be a program name with args.
8460 set dummy makedepend
; ac_word
=$2
8461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8462 $as_echo_n "checking for $ac_word... " >&6; }
8463 if ${ac_cv_path_MAKEDEPEND+:} false
; then :
8464 $as_echo_n "(cached) " >&6
8468 ac_cv_path_MAKEDEPEND
="$MAKEDEPEND" # Let the user override the test with a path.
8471 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8475 test -z "$as_dir" && as_dir
=.
8476 for ac_exec_ext
in '' $ac_executable_extensions; do
8477 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8478 ac_cv_path_MAKEDEPEND
="$as_dir/$ac_word$ac_exec_ext"
8479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8486 test -z "$ac_cv_path_MAKEDEPEND" && ac_cv_path_MAKEDEPEND
="$TRUEPROG"
8490 MAKEDEPEND
=$ac_cv_path_MAKEDEPEND
8491 if test -n "$MAKEDEPEND"; then
8492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEDEPEND" >&5
8493 $as_echo "$MAKEDEPEND" >&6; }
8495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8496 $as_echo "no" >&6; }
8501 makedepend
=$MAKEDEPEND
8504 if test -z "$MD5SUM"; then
8505 # Extract the first word of "md5sum", so it can be a program name with args.
8506 set dummy
md5sum; ac_word
=$2
8507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8508 $as_echo_n "checking for $ac_word... " >&6; }
8509 if ${ac_cv_path_MD5SUM+:} false
; then :
8510 $as_echo_n "(cached) " >&6
8514 ac_cv_path_MD5SUM
="$MD5SUM" # Let the user override the test with a path.
8517 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8521 test -z "$as_dir" && as_dir
=.
8522 for ac_exec_ext
in '' $ac_executable_extensions; do
8523 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8524 ac_cv_path_MD5SUM
="$as_dir/$ac_word$ac_exec_ext"
8525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8532 test -z "$ac_cv_path_MD5SUM" && ac_cv_path_MD5SUM
="$TRUEPROG"
8536 MD5SUM
=$ac_cv_path_MD5SUM
8537 if test -n "$MD5SUM"; then
8538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MD5SUM" >&5
8539 $as_echo "$MD5SUM" >&6; }
8541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8542 $as_echo "no" >&6; }
8550 if test -z "$DPKG"; then
8551 # Extract the first word of "dpkg", so it can be a program name with args.
8552 set dummy dpkg
; ac_word
=$2
8553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8554 $as_echo_n "checking for $ac_word... " >&6; }
8555 if ${ac_cv_path_DPKG+:} false
; then :
8556 $as_echo_n "(cached) " >&6
8560 ac_cv_path_DPKG
="$DPKG" # Let the user override the test with a path.
8563 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8567 test -z "$as_dir" && as_dir
=.
8568 for ac_exec_ext
in '' $ac_executable_extensions; do
8569 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8570 ac_cv_path_DPKG
="$as_dir/$ac_word$ac_exec_ext"
8571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8581 DPKG
=$ac_cv_path_DPKG
8582 if test -n "$DPKG"; then
8583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DPKG" >&5
8584 $as_echo "$DPKG" >&6; }
8586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8587 $as_echo "no" >&6; }
8595 if test -z "$MAKEPKG"; then
8596 # Extract the first word of "makepkg", so it can be a program name with args.
8597 set dummy makepkg
; ac_word
=$2
8598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8599 $as_echo_n "checking for $ac_word... " >&6; }
8600 if ${ac_cv_path_MAKEPKG+:} false
; then :
8601 $as_echo_n "(cached) " >&6
8605 ac_cv_path_MAKEPKG
="$MAKEPKG" # Let the user override the test with a path.
8608 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8612 test -z "$as_dir" && as_dir
=.
8613 for ac_exec_ext
in '' $ac_executable_extensions; do
8614 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8615 ac_cv_path_MAKEPKG
="$as_dir/$ac_word$ac_exec_ext"
8616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8626 MAKEPKG
=$ac_cv_path_MAKEPKG
8627 if test -n "$MAKEPKG"; then
8628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEPKG" >&5
8629 $as_echo "$MAKEPKG" >&6; }
8631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8632 $as_echo "no" >&6; }
8640 test -z "$PUBLICAN" && # Extract the first word of "publican", so it can be a program name with args.
8641 set dummy publican
; ac_word
=$2
8642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8643 $as_echo_n "checking for $ac_word... " >&6; }
8644 if ${ac_cv_path_PUBLICAN+:} false
; then :
8645 $as_echo_n "(cached) " >&6
8649 ac_cv_path_PUBLICAN
="$PUBLICAN" # Let the user override the test with a path.
8652 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8656 test -z "$as_dir" && as_dir
=.
8657 for ac_exec_ext
in '' $ac_executable_extensions; do
8658 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8659 ac_cv_path_PUBLICAN
="$as_dir/$ac_word$ac_exec_ext"
8660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8670 PUBLICAN
=$ac_cv_path_PUBLICAN
8671 if test -n "$PUBLICAN"; then
8672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PUBLICAN" >&5
8673 $as_echo "$PUBLICAN" >&6; }
8675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8676 $as_echo "no" >&6; }
8682 test -z "$DBLATEX" && # Extract the first word of "dblatex", so it can be a program name with args.
8683 set dummy dblatex
; ac_word
=$2
8684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8685 $as_echo_n "checking for $ac_word... " >&6; }
8686 if ${ac_cv_path_DBLATEX+:} false
; then :
8687 $as_echo_n "(cached) " >&6
8691 ac_cv_path_DBLATEX
="$DBLATEX" # Let the user override the test with a path.
8694 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8698 test -z "$as_dir" && as_dir
=.
8699 for ac_exec_ext
in '' $ac_executable_extensions; do
8700 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8701 ac_cv_path_DBLATEX
="$as_dir/$ac_word$ac_exec_ext"
8702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8712 DBLATEX
=$ac_cv_path_DBLATEX
8713 if test -n "$DBLATEX"; then
8714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBLATEX" >&5
8715 $as_echo "$DBLATEX" >&6; }
8717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8718 $as_echo "no" >&6; }
8724 test -z "$XMLTO" && # Extract the first word of "xmlto", so it can be a program name with args.
8725 set dummy xmlto
; ac_word
=$2
8726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8727 $as_echo_n "checking for $ac_word... " >&6; }
8728 if ${ac_cv_path_XMLTO+:} false
; then :
8729 $as_echo_n "(cached) " >&6
8733 ac_cv_path_XMLTO
="$XMLTO" # Let the user override the test with a path.
8736 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
8740 test -z "$as_dir" && as_dir
=.
8741 for ac_exec_ext
in '' $ac_executable_extensions; do
8742 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
8743 ac_cv_path_XMLTO
="$as_dir/$ac_word$ac_exec_ext"
8744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8754 XMLTO
=$ac_cv_path_XMLTO
8755 if test -n "$XMLTO"; then
8756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
8757 $as_echo "$XMLTO" >&6; }
8759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8760 $as_echo "no" >&6; }
8768 if test "$do_books" = "check" -o "$do_books" = "yes"
8770 if test "$BOOK_TOOLCHAIN" != ""
8772 book_toolchain
=$BOOK_TOOLCHAIN
8773 elif test "$DBLATEX" != ""
8775 book_toolchain
=dblatex
8776 elif test "$PUBLICAN" != ""
8778 book_toolchain
=publican
8779 elif test "$XMLTO" != ""
8781 book_toolchain
=xmlto
8782 elif test "$do_books" = "yes"
8784 as_fn_error $?
"cannot enable books build - no toolchain found" "$LINENO" 5
8790 if test "$do_books_brand" != ""
8792 book_brand
=$do_books_brand
8796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8797 $as_echo_n "checking whether ln -s works... " >&6; }
8799 if test "$LN_S" = "ln -s"; then
8800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8801 $as_echo "yes" >&6; }
8803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8804 $as_echo "no, using $LN_S" >&6; }
8807 if test $target_os = mingw
; then
8813 test -f /proc
/stat || mount
/proc
>/dev
/null
2>&1
8816 if test -n "$PROCPS"
8818 pcp_ps_prog
="$PROCPS"
8824 if test $target_os = mingw
8826 pcp_syslog_prog
=pcp-eventlog
8828 pcp_syslog_prog
=logger
8833 if test $target_os = solaris
8835 test -f /usr
/xpg
4/bin
/grep && grep=/usr
/xpg
4/bin
/grep
8839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc " >&5
8840 $as_echo_n "checking for /proc ... " >&6; }
8841 if test "$cross_compiling" = "yes"; then
8843 echo "cross-compile -> \"$ans\"" >&5
8852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8853 $as_echo "yes" >&6; }
8855 $as_echo "#define HAVE_PROCFS 1" >>confdefs.h
8858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8859 $as_echo "no" >&6; }
8863 for ac_hdr
in dirent.h sys
/ndir.h sys
/dir.h ndir.h
; do
8864 as_ac_Header
=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
8866 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
8867 if eval \
${$as_ac_Header+:} false
; then :
8868 $as_echo_n "(cached) " >&6
8870 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8871 /* end confdefs.h. */
8872 #include <sys/types.h>
8884 if ac_fn_c_try_compile
"$LINENO"; then :
8885 eval "$as_ac_Header=yes"
8887 eval "$as_ac_Header=no"
8889 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
8891 eval ac_res
=\$
$as_ac_Header
8892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8893 $as_echo "$ac_res" >&6; }
8894 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
8895 cat >>confdefs.h
<<_ACEOF
8896 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8899 ac_header_dirent
=$ac_hdr; break
8903 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8904 if test $ac_header_dirent = dirent.h
; then
8905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
8906 $as_echo_n "checking for library containing opendir... " >&6; }
8907 if ${ac_cv_search_opendir+:} false
; then :
8908 $as_echo_n "(cached) " >&6
8910 ac_func_search_save_LIBS
=$LIBS
8911 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8912 /* end confdefs.h. */
8914 /* Override any GCC internal prototype to avoid an error.
8915 Use char because int might match the return type of a GCC
8916 builtin and then its argument prototype would still apply. */
8929 for ac_lib
in '' dir
; do
8930 if test -z "$ac_lib"; then
8931 ac_res
="none required"
8934 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8936 if ac_fn_c_try_link
"$LINENO"; then :
8937 ac_cv_search_opendir
=$ac_res
8939 rm -f core conftest.err conftest.
$ac_objext \
8941 if ${ac_cv_search_opendir+:} false
; then :
8945 if ${ac_cv_search_opendir+:} false
; then :
8948 ac_cv_search_opendir
=no
8951 LIBS
=$ac_func_search_save_LIBS
8953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8954 $as_echo "$ac_cv_search_opendir" >&6; }
8955 ac_res
=$ac_cv_search_opendir
8956 if test "$ac_res" != no
; then :
8957 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
8962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
8963 $as_echo_n "checking for library containing opendir... " >&6; }
8964 if ${ac_cv_search_opendir+:} false
; then :
8965 $as_echo_n "(cached) " >&6
8967 ac_func_search_save_LIBS
=$LIBS
8968 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
8969 /* end confdefs.h. */
8971 /* Override any GCC internal prototype to avoid an error.
8972 Use char because int might match the return type of a GCC
8973 builtin and then its argument prototype would still apply. */
8986 for ac_lib
in '' x
; do
8987 if test -z "$ac_lib"; then
8988 ac_res
="none required"
8991 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
8993 if ac_fn_c_try_link
"$LINENO"; then :
8994 ac_cv_search_opendir
=$ac_res
8996 rm -f core conftest.err conftest.
$ac_objext \
8998 if ${ac_cv_search_opendir+:} false
; then :
9002 if ${ac_cv_search_opendir+:} false
; then :
9005 ac_cv_search_opendir
=no
9008 LIBS
=$ac_func_search_save_LIBS
9010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
9011 $as_echo "$ac_cv_search_opendir" >&6; }
9012 ac_res
=$ac_cv_search_opendir
9013 if test "$ac_res" != no
; then :
9014 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
9020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9021 $as_echo_n "checking for ANSI C header files... " >&6; }
9022 if ${ac_cv_header_stdc+:} false
; then :
9023 $as_echo_n "(cached) " >&6
9025 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9026 /* end confdefs.h. */
9040 if ac_fn_c_try_compile
"$LINENO"; then :
9041 ac_cv_header_stdc
=yes
9043 ac_cv_header_stdc
=no
9045 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9047 if test $ac_cv_header_stdc = yes; then
9048 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9049 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9050 /* end confdefs.h. */
9054 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9055 $EGREP "memchr" >/dev
/null
2>&1; then :
9058 ac_cv_header_stdc
=no
9064 if test $ac_cv_header_stdc = yes; then
9065 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9066 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9067 /* end confdefs.h. */
9071 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9072 $EGREP "free" >/dev
/null
2>&1; then :
9075 ac_cv_header_stdc
=no
9081 if test $ac_cv_header_stdc = yes; then
9082 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9083 if test "$cross_compiling" = yes; then :
9086 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9087 /* end confdefs.h. */
9090 #if ((' ' & 0x0FF) == 0x020)
9091 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9092 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9094 # define ISLOWER(c) \
9095 (('a' <= (c) && (c) <= 'i') \
9096 || ('j' <= (c) && (c) <= 'r') \
9097 || ('s' <= (c) && (c) <= 'z'))
9098 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9101 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9106 for (i = 0; i < 256; i++)
9107 if (XOR (islower (i), ISLOWER (i))
9108 || toupper (i) != TOUPPER (i))
9113 if ac_fn_c_try_run
"$LINENO"; then :
9116 ac_cv_header_stdc
=no
9118 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
9119 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
9124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9125 $as_echo "$ac_cv_header_stdc" >&6; }
9126 if test $ac_cv_header_stdc = yes; then
9128 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
9133 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
9134 if ${ac_cv_header_sys_wait_h+:} false
; then :
9135 $as_echo_n "(cached) " >&6
9137 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9138 /* end confdefs.h. */
9139 #include <sys/types.h>
9140 #include <sys/wait.h>
9142 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
9145 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9153 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9158 if ac_fn_c_try_compile
"$LINENO"; then :
9159 ac_cv_header_sys_wait_h
=yes
9161 ac_cv_header_sys_wait_h
=no
9163 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
9166 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
9167 if test $ac_cv_header_sys_wait_h = yes; then
9169 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
9173 for ac_header
in fcntl.h limits.h malloc.h
strings.h syslog.h
9175 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9176 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9177 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9178 cat >>confdefs.h
<<_ACEOF
9179 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9186 for ac_header
in unistd.h stddef.h stdlib.h sched.h dlfcn.h dl.h
9188 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9189 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9190 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9191 cat >>confdefs.h
<<_ACEOF
9192 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9199 for ac_header
in sys
/time.h sys
/times.h
9201 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9202 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9203 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9204 cat >>confdefs.h
<<_ACEOF
9205 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9212 for ac_header
in sys
/resource.h sys
/prctl.h
9214 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9215 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9216 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9217 cat >>confdefs.h
<<_ACEOF
9218 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9225 for ac_header
in sys
/sysinfo.h sys
/systeminfo.h
9227 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9228 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9229 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9230 cat >>confdefs.h
<<_ACEOF
9231 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9238 for ac_header
in endian.h standards.h sys
/byteorder.h
9240 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9241 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9242 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9243 cat >>confdefs.h
<<_ACEOF
9244 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9251 for ac_header
in libgen.h sys
/param.h sys
/mman.h sys
/un.h
9253 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9254 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9255 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9256 cat >>confdefs.h
<<_ACEOF
9257 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9264 for ac_header
in values.h stdint.h ieeefp.h math.h
9266 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9267 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9268 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9269 cat >>confdefs.h
<<_ACEOF
9270 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9277 for ac_header
in pwd.h grp.h regex.h sys
/wait.h
9279 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9280 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9281 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9282 cat >>confdefs.h
<<_ACEOF
9283 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9290 for ac_header
in termio.h termios.h sys
/termios.h
9292 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9293 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9294 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9295 cat >>confdefs.h
<<_ACEOF
9296 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9303 for ac_header
in sys
/ioctl.h sys
/select.h sys
/socket.h
9305 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9306 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9307 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9308 cat >>confdefs.h
<<_ACEOF
9309 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9316 for ac_header
in netdb.h
9318 ac_fn_c_check_header_mongrel
"$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default"
9319 if test "x$ac_cv_header_netdb_h" = xyes
; then :
9320 cat >>confdefs.h
<<_ACEOF
9321 #define HAVE_NETDB_H 1
9328 if test $target_os = darwin
-o $target_os = openbsd
9330 for ac_header
in net
/if.h
9332 ac_fn_c_check_header_compile
"$LINENO" "net/if.h" "ac_cv_header_net_if_h" "#include <sys/types.h>
9333 #include <sys/socket.h>
9335 if test "x$ac_cv_header_net_if_h" = xyes
; then :
9336 cat >>confdefs.h
<<_ACEOF
9337 #define HAVE_NET_IF_H 1
9345 for ac_header
in net
/if.h
9347 ac_fn_c_check_header_mongrel
"$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default"
9348 if test "x$ac_cv_header_net_if_h" = xyes
; then :
9349 cat >>confdefs.h
<<_ACEOF
9350 #define HAVE_NET_IF_H 1
9358 for ac_header
in netinet
/in.h netinet
/tcp.h arpa
/inet.h
9360 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9361 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9362 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9363 cat >>confdefs.h
<<_ACEOF
9364 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9371 for ac_header
in windows.h winsock2.h ws2tcpip.h
9373 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9374 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9375 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9376 cat >>confdefs.h
<<_ACEOF
9377 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9384 for ac_header
in execinfo.h bits
/wordsize.h
9386 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9387 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9388 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9389 cat >>confdefs.h
<<_ACEOF
9390 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9397 for ac_header
in iptypes.h
9399 ac_fn_c_check_header_compile
"$LINENO" "iptypes.h" "ac_cv_header_iptypes_h" "#include <windows.h>
9401 if test "x$ac_cv_header_iptypes_h" = xyes
; then :
9402 cat >>confdefs.h
<<_ACEOF
9403 #define HAVE_IPTYPES_H 1
9410 for ac_header
in iphlpapi.h
9412 ac_fn_c_check_header_compile
"$LINENO" "iphlpapi.h" "ac_cv_header_iphlpapi_h" "#include <winsock2.h>
9414 if test "x$ac_cv_header_iphlpapi_h" = xyes
; then :
9415 cat >>confdefs.h
<<_ACEOF
9416 #define HAVE_IPHLPAPI_H 1
9423 for ac_header
in fts.h libzfs.h
9425 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9426 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9427 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9428 cat >>confdefs.h
<<_ACEOF
9429 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9436 for ac_header
in sys
/statvfs.h sys
/statfs.h sys
/mount.h
9438 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9439 ac_fn_c_check_header_mongrel
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9440 if eval test \"x\$
"$as_ac_Header"\" = x
"yes"; then :
9441 cat >>confdefs.h
<<_ACEOF
9442 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/endian.h " >&5
9451 $as_echo_n "checking for sys/endian.h ... " >&6; }
9452 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9453 /* end confdefs.h. */
9455 #include <sys/endian.h>
9466 if ac_fn_c_try_compile
"$LINENO"; then :
9468 $as_echo "#define HAVE_SYS_ENDIAN_H 1" >>confdefs.h
9469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9470 $as_echo "yes" >&6; }
9472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9473 $as_echo "no" >&6; }
9475 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for machine/endian.h " >&5
9478 $as_echo_n "checking for machine/endian.h ... " >&6; }
9479 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9480 /* end confdefs.h. */
9482 #include <machine/endian.h>
9493 if ac_fn_c_try_compile
"$LINENO"; then :
9495 $as_echo "#define HAVE_MACHINE_ENDIAN_H 1" >>confdefs.h
9496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9497 $as_echo "yes" >&6; }
9499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9500 $as_echo "no" >&6; }
9502 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/endian.h (IRIX variant) " >&5
9505 $as_echo_n "checking for sys/endian.h (IRIX variant) ... " >&6; }
9506 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9507 /* end confdefs.h. */
9509 #include <standards.h>
9510 #include <sys/endian.h>
9521 if ac_fn_c_try_compile
"$LINENO"; then :
9523 $as_echo "#define HAVE_SYS_ENDIAN_H 1" >>confdefs.h
9524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9525 $as_echo "yes" >&6; }
9527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9528 $as_echo "no" >&6; }
9530 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
9533 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
9534 if ${ac_cv_c_const+:} false
; then :
9535 $as_echo_n "(cached) " >&6
9537 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9538 /* end confdefs.h. */
9545 /* Ultrix mips cc rejects this sort of thing. */
9546 typedef int charset[2];
9547 const charset cs = { 0, 0 };
9548 /* SunOS 4.1.1 cc rejects this. */
9549 char const *const *pcpcc;
9551 /* NEC SVR4.0.2 mips cc rejects this. */
9552 struct point {int x, y;};
9553 static struct point const zero = {0,0};
9554 /* AIX XL C 1.02.0.0 rejects this.
9555 It does not let you subtract one const X* pointer from another in
9556 an arm of an if-expression whose if-part is not a constant
9558 const char *g = "string";
9559 pcpcc = &g + (g ? g-g : 0);
9560 /* HPUX 7.0 cc rejects these. */
9562 ppc = (char**) pcpcc;
9563 pcpcc = (char const *const *) ppc;
9564 { /* SCO 3.2v4 cc rejects this sort of thing. */
9567 char const *s = 0 ? (char *) 0 : (char const *) 0;
9572 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9574 const int *foo = &x[0];
9577 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9578 typedef const int *iptr;
9582 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
9583 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9584 struct s { int j; const int *ap[3]; } bx;
9585 struct s *b = &bx; b->j = 5;
9587 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9591 return !cs[0] && !zero.x;
9598 if ac_fn_c_try_compile
"$LINENO"; then :
9603 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
9606 $as_echo "$ac_cv_c_const" >&6; }
9607 if test $ac_cv_c_const = no
; then
9609 $as_echo "#define const /**/" >>confdefs.h
9613 ac_fn_c_check_type
"$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
9614 if test "x$ac_cv_type_off_t" = xyes
; then :
9618 cat >>confdefs.h
<<_ACEOF
9619 #define off_t long int
9624 ac_fn_c_check_type
"$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9625 if test "x$ac_cv_type_pid_t" = xyes
; then :
9629 cat >>confdefs.h
<<_ACEOF
9635 ac_fn_c_check_type
"$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
9636 if test "x$ac_cv_type_size_t" = xyes
; then :
9640 cat >>confdefs.h
<<_ACEOF
9641 #define size_t unsigned int
9646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
9647 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
9648 if ${ac_cv_header_time+:} false
; then :
9649 $as_echo_n "(cached) " >&6
9651 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9652 /* end confdefs.h. */
9653 #include <sys/types.h>
9654 #include <sys/time.h>
9660 if ((struct tm *) 0)
9666 if ac_fn_c_try_compile
"$LINENO"; then :
9667 ac_cv_header_time
=yes
9669 ac_cv_header_time
=no
9671 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
9674 $as_echo "$ac_cv_header_time" >&6; }
9675 if test $ac_cv_header_time = yes; then
9677 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
9681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
9682 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
9683 if ${ac_cv_struct_tm+:} false
; then :
9684 $as_echo_n "(cached) " >&6
9686 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9687 /* end confdefs.h. */
9688 #include <sys/types.h>
9695 int *p = &tm.tm_sec;
9701 if ac_fn_c_try_compile
"$LINENO"; then :
9702 ac_cv_struct_tm
=time.h
9704 ac_cv_struct_tm
=sys
/time.h
9706 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
9709 $as_echo "$ac_cv_struct_tm" >&6; }
9710 if test $ac_cv_struct_tm = sys
/time.h
; then
9712 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
9716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
9717 $as_echo_n "checking for inline... " >&6; }
9718 if ${ac_cv_c_inline+:} false
; then :
9719 $as_echo_n "(cached) " >&6
9722 for ac_kw
in inline __inline__ __inline
; do
9723 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9724 /* end confdefs.h. */
9727 static $ac_kw foo_t static_foo () {return 0; }
9728 $ac_kw foo_t foo () {return 0; }
9732 if ac_fn_c_try_compile
"$LINENO"; then :
9733 ac_cv_c_inline
=$ac_kw
9735 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
9736 test "$ac_cv_c_inline" != no
&& break
9740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
9741 $as_echo "$ac_cv_c_inline" >&6; }
9743 case $ac_cv_c_inline in
9746 case $ac_cv_c_inline in
9748 *) ac_val
=$ac_cv_c_inline;;
9750 cat >>confdefs.h
<<_ACEOF
9752 #define inline $ac_val
9759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regcomp in -lregex" >&5
9760 $as_echo_n "checking for regcomp in -lregex... " >&6; }
9761 if ${ac_cv_lib_regex_regcomp+:} false
; then :
9762 $as_echo_n "(cached) " >&6
9764 ac_check_lib_save_LIBS
=$LIBS
9765 LIBS
="-lregex $LIBS"
9766 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
9767 /* end confdefs.h. */
9769 /* Override any GCC internal prototype to avoid an error.
9770 Use char because int might match the return type of a GCC
9771 builtin and then its argument prototype would still apply. */
9784 if ac_fn_c_try_link
"$LINENO"; then :
9785 ac_cv_lib_regex_regcomp
=yes
9787 ac_cv_lib_regex_regcomp
=no
9789 rm -f core conftest.err conftest.
$ac_objext \
9790 conftest
$ac_exeext conftest.
$ac_ext
9791 LIBS
=$ac_check_lib_save_LIBS
9793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_regex_regcomp" >&5
9794 $as_echo "$ac_cv_lib_regex_regcomp" >&6; }
9795 if test "x$ac_cv_lib_regex_regcomp" = xyes
; then :
9796 cat >>confdefs.h
<<_ACEOF
9797 #define HAVE_LIBREGEX 1
9800 LIBS
="-lregex $LIBS"
9805 if test $ac_cv_lib_regex_regcomp = yes
9807 lib_for_regex
="-lregex"
9813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ncurses" >&5
9814 $as_echo_n "checking for ncurses... " >&6; }
9816 if test -n "$ncurses_CFLAGS"; then
9817 pkg_cv_ncurses_CFLAGS
="$ncurses_CFLAGS"
9818 elif test -n "$PKG_CONFIG"; then
9819 if test -n "$PKG_CONFIG" && \
9820 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncurses\""; } >&5
9821 ($PKG_CONFIG --exists --print-errors "ncurses") 2>&5
9823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9824 test $ac_status = 0; }; then
9825 pkg_cv_ncurses_CFLAGS
=`$PKG_CONFIG --cflags "ncurses" 2>/dev/null`
9826 test "x$?" != "x0" && pkg_failed
=yes
9833 if test -n "$ncurses_LIBS"; then
9834 pkg_cv_ncurses_LIBS
="$ncurses_LIBS"
9835 elif test -n "$PKG_CONFIG"; then
9836 if test -n "$PKG_CONFIG" && \
9837 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncurses\""; } >&5
9838 ($PKG_CONFIG --exists --print-errors "ncurses") 2>&5
9840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9841 test $ac_status = 0; }; then
9842 pkg_cv_ncurses_LIBS
=`$PKG_CONFIG --libs "ncurses" 2>/dev/null`
9843 test "x$?" != "x0" && pkg_failed
=yes
9853 if test $pkg_failed = yes; then
9854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9855 $as_echo "no" >&6; }
9857 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9858 _pkg_short_errors_supported
=yes
9860 _pkg_short_errors_supported
=no
9862 if test $_pkg_short_errors_supported = yes; then
9863 ncurses_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ncurses" 2>&1`
9865 ncurses_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "ncurses" 2>&1`
9867 # Put the nasty error message in config.log where it belongs
9868 echo "$ncurses_PKG_ERRORS" >&5
9871 elif test $pkg_failed = untried
; then
9872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9873 $as_echo "no" >&6; }
9876 ncurses_CFLAGS
=$pkg_cv_ncurses_CFLAGS
9877 ncurses_LIBS
=$pkg_cv_ncurses_LIBS
9878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9879 $as_echo "yes" >&6; }
9882 HAVE_NCURSES
=$have_ncurses
9887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD" >&5
9888 $as_echo_n "checking for SYSTEMD... " >&6; }
9890 if test -n "$SYSTEMD_CFLAGS"; then
9891 pkg_cv_SYSTEMD_CFLAGS
="$SYSTEMD_CFLAGS"
9892 elif test -n "$PKG_CONFIG"; then
9893 if test -n "$PKG_CONFIG" && \
9894 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-journal\""; } >&5
9895 ($PKG_CONFIG --exists --print-errors "libsystemd-journal") 2>&5
9897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9898 test $ac_status = 0; }; then
9899 pkg_cv_SYSTEMD_CFLAGS
=`$PKG_CONFIG --cflags "libsystemd-journal" 2>/dev/null`
9900 test "x$?" != "x0" && pkg_failed
=yes
9907 if test -n "$SYSTEMD_LIBS"; then
9908 pkg_cv_SYSTEMD_LIBS
="$SYSTEMD_LIBS"
9909 elif test -n "$PKG_CONFIG"; then
9910 if test -n "$PKG_CONFIG" && \
9911 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-journal\""; } >&5
9912 ($PKG_CONFIG --exists --print-errors "libsystemd-journal") 2>&5
9914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9915 test $ac_status = 0; }; then
9916 pkg_cv_SYSTEMD_LIBS
=`$PKG_CONFIG --libs "libsystemd-journal" 2>/dev/null`
9917 test "x$?" != "x0" && pkg_failed
=yes
9927 if test $pkg_failed = yes; then
9928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9929 $as_echo "no" >&6; }
9931 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9932 _pkg_short_errors_supported
=yes
9934 _pkg_short_errors_supported
=no
9936 if test $_pkg_short_errors_supported = yes; then
9937 SYSTEMD_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd-journal" 2>&1`
9939 SYSTEMD_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd-journal" 2>&1`
9941 # Put the nasty error message in config.log where it belongs
9942 echo "$SYSTEMD_PKG_ERRORS" >&5
9945 elif test $pkg_failed = untried
; then
9946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9947 $as_echo "no" >&6; }
9950 SYSTEMD_CFLAGS
=$pkg_cv_SYSTEMD_CFLAGS
9951 SYSTEMD_LIBS
=$pkg_cv_SYSTEMD_LIBS
9952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9953 $as_echo "yes" >&6; }
9956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the systemd PMDA should be included" >&5
9957 $as_echo_n "checking if the systemd PMDA should be included... " >&6; }
9958 PMDA_SYSTEMD
=$pmda_systemd
9960 if $pmda_systemd; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9961 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9962 $as_echo "no" >&6; }; fi
9964 pmda_infiniband
=false
9965 if test "x$do_infiniband" != "xno"; then :
9967 for ac_header
in infiniband
/umad.h
9969 ac_fn_c_check_header_mongrel
"$LINENO" "infiniband/umad.h" "ac_cv_header_infiniband_umad_h" "$ac_includes_default"
9970 if test "x$ac_cv_header_infiniband_umad_h" = xyes
; then :
9971 cat >>confdefs.h
<<_ACEOF
9972 #define HAVE_INFINIBAND_UMAD_H 1
9975 for ac_header
in infiniband
/mad.h
9977 ac_fn_c_check_header_mongrel
"$LINENO" "infiniband/mad.h" "ac_cv_header_infiniband_mad_h" "$ac_includes_default"
9978 if test "x$ac_cv_header_infiniband_mad_h" = xyes
; then :
9979 cat >>confdefs.h
<<_ACEOF
9980 #define HAVE_INFINIBAND_MAD_H 1
9982 pmda_infiniband
=true
9994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for madrpc_init in -libmad" >&5
9995 $as_echo_n "checking for madrpc_init in -libmad... " >&6; }
9996 if ${ac_cv_lib_ibmad_madrpc_init+:} false
; then :
9997 $as_echo_n "(cached) " >&6
9999 ac_check_lib_save_LIBS
=$LIBS
10000 LIBS
="-libmad $LIBS"
10001 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10002 /* end confdefs.h. */
10004 /* Override any GCC internal prototype to avoid an error.
10005 Use char because int might match the return type of a GCC
10006 builtin and then its argument prototype would still apply. */
10010 char madrpc_init ();
10014 return madrpc_init ();
10019 if ac_fn_c_try_link
"$LINENO"; then :
10020 ac_cv_lib_ibmad_madrpc_init
=yes
10022 ac_cv_lib_ibmad_madrpc_init
=no
10024 rm -f core conftest.err conftest.
$ac_objext \
10025 conftest
$ac_exeext conftest.
$ac_ext
10026 LIBS
=$ac_check_lib_save_LIBS
10028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ibmad_madrpc_init" >&5
10029 $as_echo "$ac_cv_lib_ibmad_madrpc_init" >&6; }
10030 if test "x$ac_cv_lib_ibmad_madrpc_init" = xyes
; then :
10031 cat >>confdefs.h
<<_ACEOF
10032 #define HAVE_LIBIBMAD 1
10035 LIBS
="-libmad $LIBS"
10039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umad_init in -libumad" >&5
10040 $as_echo_n "checking for umad_init in -libumad... " >&6; }
10041 if ${ac_cv_lib_ibumad_umad_init+:} false
; then :
10042 $as_echo_n "(cached) " >&6
10044 ac_check_lib_save_LIBS
=$LIBS
10045 LIBS
="-libumad $LIBS"
10046 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10047 /* end confdefs.h. */
10049 /* Override any GCC internal prototype to avoid an error.
10050 Use char because int might match the return type of a GCC
10051 builtin and then its argument prototype would still apply. */
10059 return umad_init ();
10064 if ac_fn_c_try_link
"$LINENO"; then :
10065 ac_cv_lib_ibumad_umad_init
=yes
10067 ac_cv_lib_ibumad_umad_init
=no
10069 rm -f core conftest.err conftest.
$ac_objext \
10070 conftest
$ac_exeext conftest.
$ac_ext
10071 LIBS
=$ac_check_lib_save_LIBS
10073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ibumad_umad_init" >&5
10074 $as_echo "$ac_cv_lib_ibumad_umad_init" >&6; }
10075 if test "x$ac_cv_lib_ibumad_umad_init" = xyes
; then :
10076 cat >>confdefs.h
<<_ACEOF
10077 #define HAVE_LIBIBUMAD 1
10080 LIBS
="-libumad $LIBS"
10084 if test $ac_cv_lib_ibmad_madrpc_init = yes -a $ac_cv_lib_ibumad_umad_init = yes
10086 IB_LIBS
="-libmad -libumad"
10088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for port_performance_query_via" >&5
10089 $as_echo_n "checking for port_performance_query_via... " >&6; }
10090 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10091 /* end confdefs.h. */
10093 /* Override any GCC internal prototype to avoid an error.
10094 Use char because int might match the return type of a GCC
10095 builtin and then its argument prototype would still apply. */
10099 char port_performance_query_via ();
10103 return port_performance_query_via ();
10108 if ac_fn_c_try_link
"$LINENO"; then :
10110 $as_echo "#define HAVE_PORT_PERFORMANCE_QUERY_VIA 1" >>confdefs.h
10112 have_port_performance_query_via
=true
10113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10114 $as_echo "yes" >&6; }
10116 have_port_performance_query_via
=false
10117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10118 $as_echo "no" >&6; }
10120 rm -f core conftest.err conftest.
$ac_objext \
10121 conftest
$ac_exeext conftest.
$ac_ext
10122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pma_query_via" >&5
10123 $as_echo_n "checking for pma_query_via... " >&6; }
10124 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10125 /* end confdefs.h. */
10127 /* Override any GCC internal prototype to avoid an error.
10128 Use char because int might match the return type of a GCC
10129 builtin and then its argument prototype would still apply. */
10133 char pma_query_via ();
10137 return pma_query_via ();
10142 if ac_fn_c_try_link
"$LINENO"; then :
10144 $as_echo "#define HAVE_PMA_QUERY_VIA 1" >>confdefs.h
10146 have_pma_query_via
=true
10147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10148 $as_echo "yes" >&6; }
10150 have_pma_query_via
=false
10151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10152 $as_echo "no" >&6; }
10154 rm -f core conftest.err conftest.
$ac_objext \
10155 conftest
$ac_exeext conftest.
$ac_ext
10157 if test $have_pma_query_via -o $have_port_performance_query_via
10161 pmda_infiniband
=false
10164 pmda_infiniband
=false
10170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the infiniband PMDA should be included" >&5
10171 $as_echo_n "checking if the infiniband PMDA should be included... " >&6; }
10172 PMDA_INFINIBAND
=$pmda_infiniband
10174 if $pmda_infiniband; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10175 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10176 $as_echo "no" >&6; }; fi
10179 if test "x$do_papi" != "xno"; then :
10183 saved_LDFLAGS
="$LDFLAGS"
10184 saved_CFLAGS
="$CFLAGS"
10187 CFLAGS
="$papi_CFLAGS"
10188 LDFLAGS
="$papi_LIBS"
10194 PAPI_ROOTDIR
=$do_papi;
10195 CFLAGS
="-I$PAPI_ROOTDIR/include"
10196 LDFLAGS
="-L$PAPI_ROOTDIR/lib"
10201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for papi" >&5
10202 $as_echo_n "checking for papi... " >&6; }
10204 if test -n "$papi_CFLAGS"; then
10205 pkg_cv_papi_CFLAGS
="$papi_CFLAGS"
10206 elif test -n "$PKG_CONFIG"; then
10207 if test -n "$PKG_CONFIG" && \
10208 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$do_papi\""; } >&5
10209 ($PKG_CONFIG --exists --print-errors "$do_papi") 2>&5
10211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10212 test $ac_status = 0; }; then
10213 pkg_cv_papi_CFLAGS
=`$PKG_CONFIG --cflags "$do_papi" 2>/dev/null`
10214 test "x$?" != "x0" && pkg_failed
=yes
10221 if test -n "$papi_LIBS"; then
10222 pkg_cv_papi_LIBS
="$papi_LIBS"
10223 elif test -n "$PKG_CONFIG"; then
10224 if test -n "$PKG_CONFIG" && \
10225 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$do_papi\""; } >&5
10226 ($PKG_CONFIG --exists --print-errors "$do_papi") 2>&5
10228 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10229 test $ac_status = 0; }; then
10230 pkg_cv_papi_LIBS
=`$PKG_CONFIG --libs "$do_papi" 2>/dev/null`
10231 test "x$?" != "x0" && pkg_failed
=yes
10241 if test $pkg_failed = yes; then
10242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10243 $as_echo "no" >&6; }
10245 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10246 _pkg_short_errors_supported
=yes
10248 _pkg_short_errors_supported
=no
10250 if test $_pkg_short_errors_supported = yes; then
10251 papi_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$do_papi" 2>&1`
10253 papi_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "$do_papi" 2>&1`
10255 # Put the nasty error message in config.log where it belongs
10256 echo "$papi_PKG_ERRORS" >&5
10258 as_fn_error $?
"Package requirements ($do_papi) were not met:
10262 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10263 installed software in a non-standard prefix.
10265 Alternatively, you may set the environment variables papi_CFLAGS
10266 and papi_LIBS to avoid the need to call pkg-config.
10267 See the pkg-config man page for more details." "$LINENO" 5
10268 elif test $pkg_failed = untried
; then
10269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10270 $as_echo "no" >&6; }
10271 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10272 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10273 as_fn_error $?
"The pkg-config script could not be found or is too old. Make sure it
10274 is in your PATH or set the PKG_CONFIG environment variable to the full
10275 path to pkg-config.
10277 Alternatively, you may set the environment variables papi_CFLAGS
10278 and papi_LIBS to avoid the need to call pkg-config.
10279 See the pkg-config man page for more details.
10281 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10282 See \`config.log' for more details" "$LINENO" 5; }
10284 papi_CFLAGS
=$pkg_cv_papi_CFLAGS
10285 papi_LIBS
=$pkg_cv_papi_LIBS
10286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10287 $as_echo "yes" >&6; }
10289 CFLAGS
="$papi_CFLAGS"
10290 LDFLAGS
="$papi_LIBS"
10295 # $papi_LIBS may include -lpapi harmlessly redudantly with AC_CHECK_LIB
10296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PAPI_library_init in -lpapi" >&5
10297 $as_echo_n "checking for PAPI_library_init in -lpapi... " >&6; }
10298 if ${ac_cv_lib_papi_PAPI_library_init+:} false
; then :
10299 $as_echo_n "(cached) " >&6
10301 ac_check_lib_save_LIBS
=$LIBS
10302 LIBS
="-lpapi $LIBS"
10303 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10304 /* end confdefs.h. */
10306 /* Override any GCC internal prototype to avoid an error.
10307 Use char because int might match the return type of a GCC
10308 builtin and then its argument prototype would still apply. */
10312 char PAPI_library_init ();
10316 return PAPI_library_init ();
10321 if ac_fn_c_try_link
"$LINENO"; then :
10322 ac_cv_lib_papi_PAPI_library_init
=yes
10324 ac_cv_lib_papi_PAPI_library_init
=no
10326 rm -f core conftest.err conftest.
$ac_objext \
10327 conftest
$ac_exeext conftest.
$ac_ext
10328 LIBS
=$ac_check_lib_save_LIBS
10330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_papi_PAPI_library_init" >&5
10331 $as_echo "$ac_cv_lib_papi_PAPI_library_init" >&6; }
10332 if test "x$ac_cv_lib_papi_PAPI_library_init" = xyes
; then :
10333 papi_libs
="$LDFLAGS -lpapi"
10338 for ac_header
in papi.h
10340 ac_fn_c_check_header_mongrel
"$LINENO" "papi.h" "ac_cv_header_papi_h" "$ac_includes_default"
10341 if test "x$ac_cv_header_papi_h" = xyes
; then :
10342 cat >>confdefs.h
<<_ACEOF
10343 #define HAVE_PAPI_H 1
10345 papi_cflags
="$CFLAGS"
10352 if test "$do_papi" != "check" -a "$enable_papi" != "true"
10354 as_fn_error $?
"PAPI is not installed, cannot enable the PAPI PMDA" "$LINENO" 5
10356 pmda_papi
=$enable_papi
10359 CFLAGS
="$saved_CFLAGS"
10360 LDFLAGS
="$saved_LDFLAGS"
10361 PAPI_CFLAGS
=$papi_cflags
10363 PAPI_LIBS
=$papi_libs
10367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the papi PMDA should be included" >&5
10368 $as_echo_n "checking if the papi PMDA should be included... " >&6; }
10369 PMDA_PAPI
=$pmda_papi
10371 if $pmda_papi; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10372 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10373 $as_echo "no" >&6; }; fi
10375 if test "x$pmda_papi" = "xtrue"; then :
10377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct PAPI_component_info_t has a disabled field" >&5
10378 $as_echo_n "checking whether struct PAPI_component_info_t has a disabled field... " >&6; }
10379 cat <<End-of-File >conftest.c
10381 int main() { PAPI_component_info_t *c; c->disabled = 0; }
10383 (eval $ac_compile) 2>conftest.out
10384 cat conftest.out
>&5
10385 if test -s conftest.out
10387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10388 $as_echo "no" >&6; }
10391 $as_echo "#define HAVE_PAPI_DISABLED_COMP 1" >>confdefs.h
10393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10394 $as_echo "yes" >&6; }
10401 pmda_perfevent
=false
10402 if test "x$do_perfevent" != "xno" ; then :
10404 enable_perfevent
=true
10407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pfm_get_os_event_encoding in -lpfm" >&5
10408 $as_echo_n "checking for pfm_get_os_event_encoding in -lpfm... " >&6; }
10409 if ${ac_cv_lib_pfm_pfm_get_os_event_encoding+:} false
; then :
10410 $as_echo_n "(cached) " >&6
10412 ac_check_lib_save_LIBS
=$LIBS
10414 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10415 /* end confdefs.h. */
10417 /* Override any GCC internal prototype to avoid an error.
10418 Use char because int might match the return type of a GCC
10419 builtin and then its argument prototype would still apply. */
10423 char pfm_get_os_event_encoding ();
10427 return pfm_get_os_event_encoding ();
10432 if ac_fn_c_try_link
"$LINENO"; then :
10433 ac_cv_lib_pfm_pfm_get_os_event_encoding
=yes
10435 ac_cv_lib_pfm_pfm_get_os_event_encoding
=no
10437 rm -f core conftest.err conftest.
$ac_objext \
10438 conftest
$ac_exeext conftest.
$ac_ext
10439 LIBS
=$ac_check_lib_save_LIBS
10441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pfm_pfm_get_os_event_encoding" >&5
10442 $as_echo "$ac_cv_lib_pfm_pfm_get_os_event_encoding" >&6; }
10443 if test "x$ac_cv_lib_pfm_pfm_get_os_event_encoding" = xyes
; then :
10446 enable_perfevent
=false
10449 for ac_header
in perfmon
/pfmlib_perf_event.h
10451 ac_fn_c_check_header_mongrel
"$LINENO" "perfmon/pfmlib_perf_event.h" "ac_cv_header_perfmon_pfmlib_perf_event_h" "$ac_includes_default"
10452 if test "x$ac_cv_header_perfmon_pfmlib_perf_event_h" = xyes
; then :
10453 cat >>confdefs.h
<<_ACEOF
10454 #define HAVE_PERFMON_PFMLIB_PERF_EVENT_H 1
10458 enable_perfevent
=false
10463 if test "$do_perfevent" != "check" -a "$enable_papi" != "true"
10465 as_fn_error $?
"libpfm is not installed, cannot enable the perfevent PMDA" "$LINENO" 5
10467 pmda_perfevent
=$enable_perfevent
10474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the perfevent PMDA should be included" >&5
10475 $as_echo_n "checking if the perfevent PMDA should be included... " >&6; }
10476 PMDA_PERFEVENT
=$pmda_perfevent
10478 if $pmda_perfevent; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10479 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10480 $as_echo "no" >&6; }; fi
10484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rpmlib > 4.4.2" >&5
10485 $as_echo_n "checking for rpmlib > 4.4.2... " >&6; }
10486 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10487 /* end confdefs.h. */
10488 #include <rpm/header.h>
10492 (void)HEADERGET_EXT;
10497 if ac_fn_c_try_compile
"$LINENO"; then :
10498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10499 $as_echo "yes" >&6; }
10502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10503 $as_echo "no" >&6; }
10505 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the rpm PMDA should be included" >&5
10507 $as_echo_n "checking if the rpm PMDA should be included... " >&6; }
10510 if $pmda_rpm; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10511 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10512 $as_echo "no" >&6; }; fi
10516 for ac_prog
in qshape
10518 # Extract the first word of "$ac_prog", so it can be a program name with args.
10519 set dummy
$ac_prog; ac_word
=$2
10520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10521 $as_echo_n "checking for $ac_word... " >&6; }
10522 if ${ac_cv_prog_QSHAPE+:} false
; then :
10523 $as_echo_n "(cached) " >&6
10525 if test -n "$QSHAPE"; then
10526 ac_cv_prog_QSHAPE
="$QSHAPE" # Let the user override the test.
10528 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
10529 as_dummy
="path=$PATH:/usr/sbin"
10530 for as_dir
in $as_dummy
10533 test -z "$as_dir" && as_dir
=.
10534 for ac_exec_ext
in '' $ac_executable_extensions; do
10535 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
10536 ac_cv_prog_QSHAPE
="$ac_prog"
10537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10546 QSHAPE
=$ac_cv_prog_QSHAPE
10547 if test -n "$QSHAPE"; then
10548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QSHAPE" >&5
10549 $as_echo "$QSHAPE" >&6; }
10551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10552 $as_echo "no" >&6; }
10556 test -n "$QSHAPE" && break
10559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the postfix PMDA should be included" >&5
10560 $as_echo_n "checking if the postfix PMDA should be included... " >&6; }
10561 if test -n "$QSHAPE"
10565 for script in /usr
/share
/doc
/packages
/postfix-doc
/auxiliary
/qshape
/qshape.pl
10567 if test -f "$script"
10574 PMDA_POSTFIX
=$pmda_postfix
10576 if $pmda_postfix; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10577 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10578 $as_echo "no" >&6; }; fi
10582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmicrohttpd" >&5
10583 $as_echo_n "checking for libmicrohttpd... " >&6; }
10585 if test -n "$libmicrohttpd_CFLAGS"; then
10586 pkg_cv_libmicrohttpd_CFLAGS
="$libmicrohttpd_CFLAGS"
10587 elif test -n "$PKG_CONFIG"; then
10588 if test -n "$PKG_CONFIG" && \
10589 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmicrohttpd > 0.9.9\""; } >&5
10590 ($PKG_CONFIG --exists --print-errors "libmicrohttpd > 0.9.9") 2>&5
10592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10593 test $ac_status = 0; }; then
10594 pkg_cv_libmicrohttpd_CFLAGS
=`$PKG_CONFIG --cflags "libmicrohttpd > 0.9.9" 2>/dev/null`
10595 test "x$?" != "x0" && pkg_failed
=yes
10602 if test -n "$libmicrohttpd_LIBS"; then
10603 pkg_cv_libmicrohttpd_LIBS
="$libmicrohttpd_LIBS"
10604 elif test -n "$PKG_CONFIG"; then
10605 if test -n "$PKG_CONFIG" && \
10606 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmicrohttpd > 0.9.9\""; } >&5
10607 ($PKG_CONFIG --exists --print-errors "libmicrohttpd > 0.9.9") 2>&5
10609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10610 test $ac_status = 0; }; then
10611 pkg_cv_libmicrohttpd_LIBS
=`$PKG_CONFIG --libs "libmicrohttpd > 0.9.9" 2>/dev/null`
10612 test "x$?" != "x0" && pkg_failed
=yes
10622 if test $pkg_failed = yes; then
10623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10624 $as_echo "no" >&6; }
10626 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10627 _pkg_short_errors_supported
=yes
10629 _pkg_short_errors_supported
=no
10631 if test $_pkg_short_errors_supported = yes; then
10632 libmicrohttpd_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libmicrohttpd > 0.9.9" 2>&1`
10634 libmicrohttpd_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "libmicrohttpd > 0.9.9" 2>&1`
10636 # Put the nasty error message in config.log where it belongs
10637 echo "$libmicrohttpd_PKG_ERRORS" >&5
10639 have_libmicrohttpd
=false
10640 elif test $pkg_failed = untried
; then
10641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10642 $as_echo "no" >&6; }
10643 have_libmicrohttpd
=false
10645 libmicrohttpd_CFLAGS
=$pkg_cv_libmicrohttpd_CFLAGS
10646 libmicrohttpd_LIBS
=$pkg_cv_libmicrohttpd_LIBS
10647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10648 $as_echo "yes" >&6; }
10649 have_libmicrohttpd
=true
10651 HAVE_LIBMICROHTTPD
=$have_libmicrohttpd
10656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo" >&5
10657 $as_echo_n "checking for cairo... " >&6; }
10659 if test -n "$cairo_CFLAGS"; then
10660 pkg_cv_cairo_CFLAGS
="$cairo_CFLAGS"
10661 elif test -n "$PKG_CONFIG"; then
10662 if test -n "$PKG_CONFIG" && \
10663 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo >= 1.2, cairo-ft >= 1.2, cairo-png >= 1.2\""; } >&5
10664 ($PKG_CONFIG --exists --print-errors "cairo >= 1.2, cairo-ft >= 1.2, cairo-png >= 1.2") 2>&5
10666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10667 test $ac_status = 0; }; then
10668 pkg_cv_cairo_CFLAGS
=`$PKG_CONFIG --cflags "cairo >= 1.2, cairo-ft >= 1.2, cairo-png >= 1.2" 2>/dev/null`
10669 test "x$?" != "x0" && pkg_failed
=yes
10676 if test -n "$cairo_LIBS"; then
10677 pkg_cv_cairo_LIBS
="$cairo_LIBS"
10678 elif test -n "$PKG_CONFIG"; then
10679 if test -n "$PKG_CONFIG" && \
10680 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo >= 1.2, cairo-ft >= 1.2, cairo-png >= 1.2\""; } >&5
10681 ($PKG_CONFIG --exists --print-errors "cairo >= 1.2, cairo-ft >= 1.2, cairo-png >= 1.2") 2>&5
10683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10684 test $ac_status = 0; }; then
10685 pkg_cv_cairo_LIBS
=`$PKG_CONFIG --libs "cairo >= 1.2, cairo-ft >= 1.2, cairo-png >= 1.2" 2>/dev/null`
10686 test "x$?" != "x0" && pkg_failed
=yes
10696 if test $pkg_failed = yes; then
10697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10698 $as_echo "no" >&6; }
10700 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10701 _pkg_short_errors_supported
=yes
10703 _pkg_short_errors_supported
=no
10705 if test $_pkg_short_errors_supported = yes; then
10706 cairo_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cairo >= 1.2, cairo-ft >= 1.2, cairo-png >= 1.2" 2>&1`
10708 cairo_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "cairo >= 1.2, cairo-ft >= 1.2, cairo-png >= 1.2" 2>&1`
10710 # Put the nasty error message in config.log where it belongs
10711 echo "$cairo_PKG_ERRORS" >&5
10714 elif test $pkg_failed = untried
; then
10715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10716 $as_echo "no" >&6; }
10719 cairo_CFLAGS
=$pkg_cv_cairo_CFLAGS
10720 cairo_LIBS
=$pkg_cv_cairo_LIBS
10721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10722 $as_echo "yes" >&6; }
10725 HAVE_CAIRO
=$have_cairo
10728 enable_webapi
=false
10729 if test "x$do_webapi" != "xno"; then :
10733 if test "$have_libmicrohttpd" != "true"
10735 enable_webapi
=false
10736 test "$do_webapi" != "check" && \
10737 as_fn_error $?
"libmicrohttpd is not installed, cannot enable the web API" "$LINENO" 5
10738 elif test "$do_webapi" != "check" -a "x$cxx" = "x"
10740 enable_webapi
=false
10741 test "$do_webapi" != "check" && \
10742 as_fn_error $?
"C++ compiler unavailable, cannot enable the web API" "$LINENO" 5
10748 enable_manager
=false
10749 if test "x$do_manager" != "xno"; then :
10751 enable_manager
=true
10753 if test "$target_os" = "mingw"
10755 enable_manager
=false
10756 test "$do_manager" != "check" && \
10757 as_fn_error $?
"MinGW build, cannot enable daemon manager" "$LINENO" 5
10758 elif test "x$cxx" = "x"
10760 enable_manager
=false
10761 test "$do_manager" != "check" && \
10762 as_fn_error $?
"C++ compiler unavailable, cannot enable daemon manager" "$LINENO" 5
10764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compilation features for daemon manager" >&5
10765 $as_echo_n "checking compilation features for daemon manager... " >&6; }
10766 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10767 /* end confdefs.h. */
10768 #ifndef _XOPEN_SOURCE
10769 #define _XOPEN_SOURCE 600
10781 if ac_fn_c_try_compile
"$LINENO"; then :
10782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10783 $as_echo "yes" >&6; }
10785 enable_manager
=false
10786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10787 $as_echo "no" >&6; }
10789 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
10795 $as_echo_n "checking return type of signal handlers... " >&6; }
10796 if ${ac_cv_type_signal+:} false
; then :
10797 $as_echo_n "(cached) " >&6
10799 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10800 /* end confdefs.h. */
10801 #include <sys/types.h>
10802 #include <signal.h>
10807 return *(signal (0, 0)) (0) == 1;
10812 if ac_fn_c_try_compile
"$LINENO"; then :
10813 ac_cv_type_signal
=int
10815 ac_cv_type_signal
=void
10817 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
10819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
10820 $as_echo "$ac_cv_type_signal" >&6; }
10822 cat >>confdefs.h
<<_ACEOF
10823 #define RETSIGTYPE $ac_cv_type_signal
10827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wait3 that fills in rusage" >&5
10828 $as_echo_n "checking for wait3 that fills in rusage... " >&6; }
10829 if ${ac_cv_func_wait3_rusage+:} false
; then :
10830 $as_echo_n "(cached) " >&6
10832 if test "$cross_compiling" = yes; then :
10833 ac_cv_func_wait3_rusage
=no
10835 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
10836 /* end confdefs.h. */
10837 $ac_includes_default
10838 #include <sys/time.h>
10839 #include <sys/resource.h>
10840 #include <sys/wait.h>
10841 /* HP-UX has wait3 but does not fill in rusage at all. */
10847 /* Use a field that we can force nonzero --
10848 voluntary context switches.
10849 For systems like NeXT and OSF/1 that don't set it,
10850 also use the system CPU time. And page faults (I/O) for Linux. */
10852 r.ru_stime.tv_sec = 0;
10853 r.ru_stime.tv_usec = 0;
10854 r.ru_majflt = r.ru_minflt = 0;
10857 case 0: /* Child. */
10858 sleep(1); /* Give up the CPU. */
10861 case -1: /* What can we do? */
10864 default: /* Parent. */
10866 /* Avoid "text file busy" from rm on fast HP-UX machines. */
10868 return (r.ru_nvcsw == 0 && r.ru_majflt == 0 && r.ru_minflt == 0
10869 && r.ru_stime.tv_sec == 0 && r.ru_stime.tv_usec == 0);
10873 if ac_fn_c_try_run
"$LINENO"; then :
10874 ac_cv_func_wait3_rusage
=yes
10876 ac_cv_func_wait3_rusage
=no
10878 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
10879 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
10883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_wait3_rusage" >&5
10884 $as_echo "$ac_cv_func_wait3_rusage" >&6; }
10885 if test $ac_cv_func_wait3_rusage = yes; then
10887 $as_echo "#define HAVE_WAIT3 1" >>confdefs.h
10891 for ac_func
in vprintf
10893 ac_fn_c_check_func
"$LINENO" "vprintf" "ac_cv_func_vprintf"
10894 if test "x$ac_cv_func_vprintf" = xyes
; then :
10895 cat >>confdefs.h
<<_ACEOF
10896 #define HAVE_VPRINTF 1
10899 ac_fn_c_check_func
"$LINENO" "_doprnt" "ac_cv_func__doprnt"
10900 if test "x$ac_cv_func__doprnt" = xyes
; then :
10902 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
10910 for ac_func
in mktime nanosleep
usleep unsetenv
10912 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10913 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10914 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
10915 cat >>confdefs.h
<<_ACEOF
10916 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10922 for ac_func
in select socket gethostname getpeerucred getpeereid
10924 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10925 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10926 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
10927 cat >>confdefs.h
<<_ACEOF
10928 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10934 for ac_func
in uname syslog __clone pipe2 fcntl ioctl
10936 as_ac_var
=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10937 ac_fn_c_check_func
"$LINENO" "$ac_func" "$as_ac_var"
10938 if eval test \"x\$
"$as_ac_var"\" = x
"yes"; then :
10939 cat >>confdefs.h
<<_ACEOF
10940 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10946 for ac_func
in prctl setlinebuf waitpid atexit
kill
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 chown fchmod getcwd scandir mkstemp
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 brk sbrk posix_memalign memalign valloc
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 signal sighold sigrelse tcgetattr
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 regex regcmp regexec regcomp
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 strtod strtol strtoll strtoull strndup strchrnul
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 getuid getgid
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 getgrent getgrent_r getgrnam getgrnam_r getgrgid getgrgid_r
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 getpwent getpwent_r getpwnam getpwnam_r getpwuid getpwuid_r
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 sysinfo trace_back_stack backtrace
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 sendmsg recvmsg setns
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
11079 if test $target_os != linux
-a $target_os != freebsd
-a $target_os != kfreebsd
-a $target_os != netbsd
; then
11080 for ac_func
in readdir64
11082 ac_fn_c_check_func
"$LINENO" "readdir64" "ac_cv_func_readdir64"
11083 if test "x$ac_cv_func_readdir64" = xyes
; then :
11084 cat >>confdefs.h
<<_ACEOF
11085 #define HAVE_READDIR64 1
11093 if test $target_os = solaris
11095 ac_fn_c_check_type
"$LINENO" "__int32_t" "ac_cv_type___int32_t" "$ac_includes_default"
11096 if test "x$ac_cv_type___int32_t" = xyes
; then :
11100 cat >>confdefs.h
<<_ACEOF
11101 #define __int32_t int32_t
11106 ac_fn_c_check_type
"$LINENO" "__uint32_t" "ac_cv_type___uint32_t" "$ac_includes_default"
11107 if test "x$ac_cv_type___uint32_t" = xyes
; then :
11111 cat >>confdefs.h
<<_ACEOF
11112 #define __uint32_t uint32_t
11117 ac_fn_c_check_type
"$LINENO" "__int64_t" "ac_cv_type___int64_t" "$ac_includes_default"
11118 if test "x$ac_cv_type___int64_t" = xyes
; then :
11122 cat >>confdefs.h
<<_ACEOF
11123 #define __int64_t int64_t
11128 ac_fn_c_check_type
"$LINENO" "__uint64_t" "ac_cv_type___uint64_t" "$ac_includes_default"
11129 if test "x$ac_cv_type___uint64_t" = xyes
; then :
11133 cat >>confdefs.h
<<_ACEOF
11134 #define __uint64_t uint64_t
11139 ac_fn_c_check_type
"$LINENO" "uint_t" "ac_cv_type_uint_t" "$ac_includes_default"
11140 if test "x$ac_cv_type_uint_t" = xyes
; then :
11144 cat >>confdefs.h
<<_ACEOF
11145 #define uint_t u_int32_t
11151 ac_fn_c_check_type
"$LINENO" "__int32_t" "ac_cv_type___int32_t" "$ac_includes_default"
11152 if test "x$ac_cv_type___int32_t" = xyes
; then :
11156 cat >>confdefs.h
<<_ACEOF
11157 #define __int32_t int
11162 ac_fn_c_check_type
"$LINENO" "__uint32_t" "ac_cv_type___uint32_t" "$ac_includes_default"
11163 if test "x$ac_cv_type___uint32_t" = xyes
; then :
11167 cat >>confdefs.h
<<_ACEOF
11168 #define __uint32_t unsigned int
11173 ac_fn_c_check_type
"$LINENO" "__int64_t" "ac_cv_type___int64_t" "$ac_includes_default"
11174 if test "x$ac_cv_type___int64_t" = xyes
; then :
11178 cat >>confdefs.h
<<_ACEOF
11179 #define __int64_t long long
11184 ac_fn_c_check_type
"$LINENO" "__uint64_t" "ac_cv_type___uint64_t" "$ac_includes_default"
11185 if test "x$ac_cv_type___uint64_t" = xyes
; then :
11189 cat >>confdefs.h
<<_ACEOF
11190 #define __uint64_t unsigned long long
11195 ac_fn_c_check_type
"$LINENO" "uint_t" "ac_cv_type_uint_t" "$ac_includes_default"
11196 if test "x$ac_cv_type_uint_t" = xyes
; then :
11200 cat >>confdefs.h
<<_ACEOF
11201 #define uint_t unsigned int
11208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __psint_t " >&5
11209 $as_echo_n "checking for __psint_t ... " >&6; }
11210 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11211 /* end confdefs.h. */
11213 #include <sys/types.h>
11214 #include <stdlib.h>
11215 #include <stddef.h>
11225 if ac_fn_c_try_compile
"$LINENO"; then :
11227 $as_echo "#define HAVE___PSINT_T 1" >>confdefs.h
11228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11229 $as_echo "yes" >&6; }
11231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11232 $as_echo "no" >&6; }
11234 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ptrdiff_t " >&5
11237 $as_echo_n "checking for ptrdiff_t ... " >&6; }
11238 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11239 /* end confdefs.h. */
11241 #include <stddef.h>
11242 #ifdef HAVE_MALLOC_H
11243 #include <malloc.h>
11254 if ac_fn_c_try_compile
"$LINENO"; then :
11256 $as_echo "#define HAVE_PTRDIFF_T 1" >>confdefs.h
11257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11258 $as_echo "yes" >&6; }
11260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11261 $as_echo "no" >&6; }
11263 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t " >&5
11266 $as_echo_n "checking for uid_t ... " >&6; }
11267 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11268 /* end confdefs.h. */
11270 #include <sys/types.h>
11283 if ac_fn_c_try_compile
"$LINENO"; then :
11285 $as_echo "#define HAVE_UID_T 1" >>confdefs.h
11286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11287 $as_echo "yes" >&6; }
11289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11290 $as_echo "no" >&6; }
11292 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gid_t " >&5
11294 $as_echo_n "checking for gid_t ... " >&6; }
11295 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11296 /* end confdefs.h. */
11298 #include <sys/types.h>
11311 if ac_fn_c_try_compile
"$LINENO"; then :
11313 $as_echo "#define HAVE_GID_T 1" >>confdefs.h
11314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11315 $as_echo "yes" >&6; }
11317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11318 $as_echo "no" >&6; }
11320 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SID " >&5
11322 $as_echo_n "checking for SID ... " >&6; }
11323 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11324 /* end confdefs.h. */
11326 #ifdef HAVE_WINDOWS_H
11327 #include <windows.h>
11338 if ac_fn_c_try_compile
"$LINENO"; then :
11340 $as_echo "#define HAVE_SID 1" >>confdefs.h
11341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11342 $as_echo "yes" >&6; }
11344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11345 $as_echo "no" >&6; }
11347 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t " >&5
11350 $as_echo_n "checking for socklen_t ... " >&6; }
11351 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11352 /* end confdefs.h. */
11354 #include <sys/types.h>
11355 #ifdef HAVE_SYS_SOCKET_H
11356 #include <sys/socket.h>
11367 if ac_fn_c_try_compile
"$LINENO"; then :
11369 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
11370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11371 $as_echo "yes" >&6; }
11373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11374 $as_echo "no" >&6; }
11376 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11378 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11379 /* end confdefs.h. */
11391 if ac_fn_c_try_compile
"$LINENO"; then :
11393 $as_echo "#define HAVE_CONST_LONGLONG 1" >>confdefs.h
11396 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11398 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11399 /* end confdefs.h. */
11401 #include <stdlib.h>
11402 #include <unistd.h>
11407 char **x = _environ;
11412 if ac_fn_c_try_link
"$LINENO"; then :
11414 $as_echo "#define HAVE_UNDERBAR_ENVIRON 1" >>confdefs.h
11417 rm -f core conftest.err conftest.
$ac_objext \
11418 conftest
$ac_exeext conftest.
$ac_ext
11420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PR_TERMCHILD constant in sys/prctl.h" >&5
11421 $as_echo_n "checking for PR_TERMCHILD constant in sys/prctl.h... " >&6; }
11422 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11423 /* end confdefs.h. */
11425 #ifdef HAVE_SYS_PRCTL_H
11426 #include <sys/prctl.h>
11432 int i = PR_TERMCHILD;
11437 if ac_fn_c_try_compile
"$LINENO"; then :
11439 $as_echo "#define HAVE_PR_TERMCHILD 1" >>confdefs.h
11440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11441 $as_echo "yes" >&6; }
11443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11444 $as_echo "no" >&6; }
11446 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PR_SET_PDEATHSIG constant in sys/prctl.h" >&5
11449 $as_echo_n "checking for PR_SET_PDEATHSIG constant in sys/prctl.h... " >&6; }
11450 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11451 /* end confdefs.h. */
11453 #ifdef HAVE_SYS_PRCTL_H
11454 #include <sys/prctl.h>
11460 int i = PR_SET_PDEATHSIG;
11465 if ac_fn_c_try_compile
"$LINENO"; then :
11467 $as_echo "#define HAVE_PR_SET_PDEATHSIG 1" >>confdefs.h
11468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11469 $as_echo "yes" >&6; }
11471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11472 $as_echo "no" >&6; }
11474 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
11477 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
11478 if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false
; then :
11479 $as_echo_n "(cached) " >&6
11481 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11482 /* end confdefs.h. */
11483 #include <sys/types.h>
11484 #include <termios.h>
11490 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11491 $EGREP "yes" >/dev
/null
2>&1; then :
11492 ac_cv_sys_tiocgwinsz_in_termios_h
=yes
11494 ac_cv_sys_tiocgwinsz_in_termios_h
=no
11499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
11500 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
11502 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
11503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
11504 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
11505 if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false
; then :
11506 $as_echo_n "(cached) " >&6
11508 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11509 /* end confdefs.h. */
11510 #include <sys/types.h>
11511 #include <sys/ioctl.h>
11517 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11518 $EGREP "yes" >/dev
/null
2>&1; then :
11519 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=yes
11521 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h
=no
11526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
11527 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
11529 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
11531 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
11537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports -rdynamic" >&5
11538 $as_echo_n "checking if linker supports -rdynamic... " >&6; }
11539 save_CFLAGS
="$CFLAGS"
11541 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11542 /* end confdefs.h. */
11552 if ac_fn_c_try_link
"$LINENO"; then :
11553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11554 $as_echo "yes" >&6; }
11555 rdynamic_flag
=-rdynamic
11557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11558 $as_echo "no" >&6; }
11562 rm -f core conftest.err conftest.
$ac_objext \
11563 conftest
$ac_exeext conftest.
$ac_ext
11564 CFLAGS
="$save_CFLAGS"
11568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether const arg for scandir() select method" >&5
11569 $as_echo_n "checking whether const arg for scandir() select method... " >&6; }
11570 cat <<End-of-File >conftest.c
11571 #include <stdlib.h>
11572 #include <unistd.h>
11573 #include <dirent.h>
11575 my_select(const struct dirent *foo) { return 0; }
11576 int main() { struct dirent **list; return scandir(".", &list, my_select, NULL); }
11578 (eval $ac_compile) 2>conftest.out
11579 cat conftest.out
>&5
11580 if test -s conftest.out
11582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11583 $as_echo "no" >&6; }
11586 $as_echo "#define HAVE_CONST_DIRENT 1" >>confdefs.h
11588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11589 $as_echo "yes" >&6; }
11593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct dirent has a d_off field" >&5
11594 $as_echo_n "checking whether struct dirent has a d_off field... " >&6; }
11595 cat <<End-of-File >conftest.c
11596 #include <stdlib.h>
11597 #include <unistd.h>
11598 #include <dirent.h>
11599 int main() { struct dirent d; d.d_off = 0; }
11601 (eval $ac_compile) 2>conftest.out
11602 cat conftest.out
>&5
11603 if test -s conftest.out
11605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11606 $as_echo "no" >&6; }
11609 $as_echo "#define HAVE_DIRENT_D_OFF 1" >>confdefs.h
11611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11612 $as_echo "yes" >&6; }
11616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if printf %p produces 0x prefix" >&5
11617 $as_echo_n "checking if printf %p produces 0x prefix... " >&6; }
11618 if test "$cross_compiling" = "yes"; then
11619 ans
=$printf_p_prefix
11620 echo "cross-compile -> \"$ans\"" >&5
11622 cat <<End-of-File >conftest.c
11624 int main(int argc, char **argv) { printf("%p", argv); return(0); }
11626 (eval $ac_compile) 2>&5
11627 (eval $ac_link) 2>&5
11629 echo "./conftest -> \"$ans\"" >&5
11635 $as_echo "#define HAVE_PRINTF_P_PFX 1" >>confdefs.h
11637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11638 $as_echo "yes" >&6; }
11641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11642 $as_echo "no" >&6; }
11645 rm -rf conftest conftest.
*
11649 # need to deal with this sort of cpp output ...
11650 # typedef long pid_t;
11651 # typedef unsigned int pid_t;
11652 # typedef unsigned int pid_t __attribute__ ((__mode__ (__SI__)));
11653 # __extension__ typedef int pid_t;
11659 # typedef ... *pid;
11660 # and chaining of the form
11661 # typedef long __pid_t;
11662 # typedef __pid_t pid_t;
11664 _raw
=`$CPP conftest.c \
11666 -e 's/[ ]__attribute__ ((.*));/;/' \
11667 -e 's/__extension__[ ][ ]*//' \
11669 /bozo/ { print; next }
11670 $1 == "typedef" { printf "%s",$0
11676 if ($0 ~ /{/) depth = 1
11679 wantsemi == 1 { printf " %s",$0
11680 if ($0 ~ /{/) depth++
11682 if ($0 ~ /}/) depth--
11683 if (depth > 0) next
11696 $1 == "typedef" { map[$NF] = ""
11697 for (i = 2; i < NF; i++) {
11701 map[$NF] = map[$NF] " " $i
11703 print $NF " -> " map[$NF] >"conftest.debug"
11706 $2 == "bozo" { t = $1
11707 printf "best guess: %s",t >"conftest.debug"
11708 while (map[t] != "") {
11710 printf " -> %s",t >"conftest.debug"
11712 print "" >"conftest.debug"
11721 unsigned|
'unsigned int')
11727 'long long'|
'long long int')
11728 if test $target_os = mingw
; then
11734 'unsigned long'|
'unsigned long int'|
'long unsigned int')
11737 'unsigned long long'|
'unsigned long long int')
11738 if test $target_os = mingw
; then
11744 *\
*) # pointer to a something
11747 struct\
*) # not much can be done here ...
11752 echo "FATAL ERROR: don't know what to do with type \"$_raw\""
11753 echo "... typedef mapping ..."
11755 rm -rf conftest conftest.
*
11761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking printf type for pid_t" >&5
11762 $as_echo_n "checking printf type for pid_t... " >&6; }
11763 if test "$cross_compiling" = "yes"; then
11764 ans
=$printf_fmt_pid
11765 echo "cross-compile -> \"$ans\"" >&5
11768 cat <<End-of-File >conftest.c
11769 #include <sys/types.h>
11770 #include <unistd.h>
11776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fmt_pid" >&5
11777 $as_echo "$fmt_pid" >&6; }
11779 rm -rf conftest.c conftest.debug
11781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking printf type for int64_t " >&5
11782 $as_echo_n "checking printf type for int64_t ... " >&6; }
11783 if test "$cross_compiling" = "yes"; then
11784 ans
=$printf_fmt_int64
11785 echo "cross-compile -> \"$ans\"" >&5
11787 cat <<End-of-File >conftest.c
11789 #include <stdint.h>
11790 #include <inttypes.h>
11793 printf("\"%s\"\n", __PRI64_PREFIX "d");
11798 (eval $ac_link) 2>&5
11799 if test -x .
/conftest
11802 echo "./conftest -> \"$ans\"" >&5
11806 cat <<End-of-File >conftest.c
11808 #include <stdint.h>
11809 #include <string.h>
11813 int64_t bozo = 0x12345678abcdLL;
11814 sprintf(buf, "%lx", bozo);
11815 if (strcmp(buf, "12345678abcd") == 0)
11816 printf("\"ld\"\n");
11818 sprintf(buf, "%llx", bozo);
11819 if (strcmp(buf, "12345678abcd") == 0)
11820 printf("\"lld\"\n");
11825 (eval $ac_link) 2>&5
11826 if test -x .
/conftest
11829 echo "./conftest -> \"$ans\"" >&5
11835 echo 'FATAL ERROR: Cannot determine printf format for int64_t type'
11836 rm -rf conftest conftest.
*
11840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$fmt_int64\"" >&5
11841 $as_echo "\"$fmt_int64\"" >&6; }
11843 rm -rf conftest.
* conftest
11845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking strtol or strtoll for int64_t" >&5
11846 $as_echo_n "checking strtol or strtoll for int64_t... " >&6; }
11847 if test "$cross_compiling" = "yes"; then
11849 echo "cross-compile -> \"$ans\"" >&5
11851 cat <<End-of-File >conftest.c
11853 #include <stdlib.h>
11856 long long int value = -1;
11857 value = strtol("1234567812345678", NULL, 16);
11858 if (value == 0x1234567812345678LL) {
11859 printf("strotol\n");
11862 value = strtoll("1234567812345678", NULL, 16);
11863 if (value == 0x1234567812345678LL) {
11864 printf("strtoll\n");
11870 (eval $ac_compile) 2>&5
11871 (eval $ac_link) 2>&5
11873 echo "./conftest -> \"$ans\"" >&5
11878 $as_echo "#define strtoint64 strtol" >>confdefs.h
11880 $as_echo "#define strtouint64 strtoul" >>confdefs.h
11882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: strtol" >&5
11883 $as_echo "strtol" >&6; }
11886 $as_echo "#define strtoint64 strtoll" >>confdefs.h
11888 $as_echo "#define strtouint64 strtoull" >>confdefs.h
11890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: strtoll" >&5
11891 $as_echo "strtoll" >&6; }
11894 $as_echo "#define strtoint64 strtoll" >>confdefs.h
11896 $as_echo "#define strtouint64 strtoull" >>confdefs.h
11898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: assuming strtoll" >&5
11899 $as_echo "assuming strtoll" >&6; }
11902 rm -rf conftest conftest.
*
11904 if test "$do_threads" = "check" -o "$do_threads" = "yes"
11906 for ac_header
in pthread.h
11908 ac_fn_c_check_header_mongrel
"$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
11909 if test "x$ac_cv_header_pthread_h" = xyes
; then :
11910 cat >>confdefs.h
<<_ACEOF
11911 #define HAVE_PTHREAD_H 1
11916 if test "$do_threads" = "yes"
11918 as_fn_error $?
"cannot enable multi-threaded mode - no pthread.h" "$LINENO" 5
11926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_t in pthread.h" >&5
11927 $as_echo_n "checking for pthread_mutex_t in pthread.h... " >&6; }
11928 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11929 /* end confdefs.h. */
11930 #include <pthread.h>
11934 pthread_mutex_t mymutex;
11939 if ac_fn_c_try_compile
"$LINENO"; then :
11941 $as_echo "#define HAVE_PTHREAD_MUTEX_T 1" >>confdefs.h
11942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11943 $as_echo "yes" >&6; }
11946 if test "$do_threads" = "yes"
11948 as_fn_error $?
"cannot enable multi-threaded mode - no mutexes" "$LINENO" 5
11950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11951 $as_echo "no" >&6; }
11955 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
11957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where pthread_create() is defined" >&5
11958 $as_echo_n "checking where pthread_create() is defined... " >&6; }
11959 for cand
in "" pthreads pthread
; do
11963 LIBS
=`echo $LIBS -l$cand`
11965 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
11966 /* end confdefs.h. */
11968 #include <pthread.h>
11974 pthread_create(NULL, NULL, NULL, NULL);
11980 if ac_fn_c_try_link
"$LINENO"; then :
11981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: lib${cand:-c}" >&5
11982 $as_echo "lib${cand:-c}" >&6; }
11985 lib_for_pthreads
="$cand"
11987 lib_for_pthreads
="-l$cand"
11992 rm -f core conftest.err conftest.
$ac_objext \
11993 conftest
$ac_exeext conftest.
$ac_ext
11998 if test "$ac_cv_header_pthread_h" = "yes"
12000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking printf type for pthread_t" >&5
12001 $as_echo_n "checking printf type for pthread_t... " >&6; }
12002 cat <<End-of-File >conftest.c
12003 #include <pthread.h>
12007 fmt_pthread
="$_fmt"
12008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fmt_pthread" >&5
12009 $as_echo "$fmt_pthread" >&6; }
12011 rm -rf conftest.c conftest.debug
12013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports __thread" >&5
12014 $as_echo_n "checking if compiler supports __thread... " >&6; }
12015 if test $target_os = netbsd
12017 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12018 /* end confdefs.h. */
12019 #include <pthread.h>
12020 #if __GNUC__ < 4 || ( __GNUC__ == 4 && __GNUC_MINOR__ < 5 )
12033 if ac_fn_c_try_compile
"$LINENO"; then :
12035 $as_echo "#define HAVE___THREAD 1" >>confdefs.h
12036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12037 $as_echo "yes" >&6; }
12039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12040 $as_echo "no" >&6; }
12042 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12044 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12045 /* end confdefs.h. */
12046 #include <pthread.h>
12056 if ac_fn_c_try_compile
"$LINENO"; then :
12058 $as_echo "#define HAVE___THREAD 1" >>confdefs.h
12059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12060 $as_echo "yes" >&6; }
12062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12063 $as_echo "no" >&6; }
12065 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_barrier_t in pthread.h" >&5
12069 $as_echo_n "checking for pthread_barrier_t in pthread.h... " >&6; }
12070 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12071 /* end confdefs.h. */
12072 #include <pthread.h>
12076 pthread_barrier_t mybarrier;
12081 if ac_fn_c_try_compile
"$LINENO"; then :
12083 $as_echo "#define HAVE_PTHREAD_BARRIER_T 1" >>confdefs.h
12084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12085 $as_echo "yes" >&6; }
12087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12088 $as_echo "no" >&6; }
12090 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
12094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sizeof suseconds_t" >&5
12095 $as_echo_n "checking sizeof suseconds_t... " >&6; }
12096 if test "$cross_compiling" = "yes"; then
12097 ans
=$sizeof_suseconds_t
12098 echo "cross-compile -> \"$ans\"" >&5
12100 cat <<End-of-File >conftest.c
12101 #include <sys/time.h>
12102 main() { printf("%d", (int)sizeof(suseconds_t)); }
12104 (eval $ac_compile) 2>&5
12105 (eval $ac_link) 2>&5
12107 echo "./conftest -> \"$ans\"" >&5
12108 rm -rf conftest conftest.
*
12110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
12111 $as_echo "$ans" >&6; }
12113 cat >>confdefs.h
<<_ACEOF
12114 #define SIZEOF_SUSECONDS_T $ans
12118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sizeof time_t" >&5
12119 $as_echo_n "checking sizeof time_t... " >&6; }
12120 if test "$cross_compiling" = "yes"; then
12122 echo "cross-compile -> \"$ans\"" >&5
12124 cat <<End-of-File >conftest.c
12125 #include <sys/time.h>
12126 main() { printf("%d", (int)sizeof(time_t)); }
12128 (eval $ac_compile) 2>&5
12129 (eval $ac_link) 2>&5
12131 echo "./conftest -> \"$ans\"" >&5
12132 rm -rf conftest conftest.
*
12134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
12135 $as_echo "$ans" >&6; }
12137 cat >>confdefs.h
<<_ACEOF
12138 #define SIZEOF_TIME_T $ans
12142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sizeof long" >&5
12143 $as_echo_n "checking sizeof long... " >&6; }
12144 if test "$cross_compiling" = "yes"; then
12146 echo "cross-compile -> \"$ans\"" >&5
12148 cat <<End-of-File >conftest.c
12150 main() { printf("%d", (int)sizeof(long)); }
12152 (eval $ac_compile) 2>&5
12153 (eval $ac_link) 2>&5
12155 echo "./conftest -> \"$ans\"" >&5
12157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
12158 $as_echo "$ans" >&6; }
12159 if test "$ans" = 4; then
12161 $as_echo "#define HAVE_32BIT_LONG 1" >>confdefs.h
12163 elif test "$ans" = 8; then
12165 $as_echo "#define HAVE_64BIT_LONG 1" >>confdefs.h
12169 echo "FATAL ERROR: size of long is not 32 or 64 bits, cannot proceed."
12170 echo "sizeof(char *) -> $ans"
12171 rm -rf conftest conftest.
*
12174 rm -rf conftest conftest.
*
12176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sizeof pointer" >&5
12177 $as_echo_n "checking sizeof pointer... " >&6; }
12178 if test "$cross_compiling" = "yes"; then
12179 ans
=$sizeof_pointer
12180 echo "cross-compile -> \"$ans\"" >&5
12182 cat <<End-of-File >conftest.c
12184 main() { printf("%d", (int)sizeof(char *)); }
12186 (eval $ac_compile) 2>&5
12187 (eval $ac_link) 2>&5
12189 echo "./conftest -> \"$ans\"" >&5
12191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
12192 $as_echo "$ans" >&6; }
12193 if test "$ans" = 4; then
12195 $as_echo "#define HAVE_32BIT_PTR 1" >>confdefs.h
12198 elif test "$ans" = 8; then
12200 $as_echo "#define HAVE_64BIT_PTR 1" >>confdefs.h
12205 echo "FATAL ERROR: size of pointer 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 int" >&5
12213 $as_echo_n "checking sizeof int... " >&6; }
12214 if test "$cross_compiling" = "yes"; then
12216 echo "cross-compile -> \"$ans\"" >&5
12218 cat <<End-of-File >conftest.c
12220 main() { printf("%d", (int)sizeof(int)); }
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
12232 echo "FATAL ERROR: sizeof(int) is not 32 bits, cannot proceed."
12233 echo "Note: 32-bit ints are assumed in the PCP external file formats and"
12234 echo " the over-the-wire PDU formats"
12235 rm -rf conftest conftest.
*
12238 rm -rf conftest conftest.
*
12240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bit fields allocated left-to-right" >&5
12241 $as_echo_n "checking if bit fields allocated left-to-right... " >&6; }
12242 if test "$cross_compiling" = "yes"; then
12243 ans
=$bit_field_scheme
12244 echo "cross-compile -> \"$ans\"" >&5
12246 cat <<End-of-File >conftest.c
12247 union { struct { unsigned int b:4; unsigned int c:4; } a; int p; } u;
12248 main() { u.a.b = 1; u.a.c = 2; printf("%0*x", 2*sizeof(int), u.p); }
12250 (eval $ac_compile) 2>&5
12251 (eval $ac_link) 2>&5
12253 echo "./conftest -> \"$ans\"" >&5
12258 # left-to-right starting from MSB (SGI cc on MIPS), or
12259 # left-to-right ending at LSB
12261 $as_echo "#define HAVE_BITFIELDS_LTOR 1" >>confdefs.h
12263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12264 $as_echo "yes" >&6; }
12267 # right-to-left ending at MSB, or
12268 # right-to-left starting from LSB (gcc in Intel)
12269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12270 $as_echo "no" >&6; }
12273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
12274 $as_echo "unknown" >&6; }
12275 echo "FATAL ERROR: could not fathom your compiler's bit field allocation scheme"
12276 rm -f conftest conftest.
*
12280 rm -rf conftest conftest.
*
12282 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12283 /* end confdefs.h. */
12285 #include <stdlib.h>
12286 #include <unistd.h>
12293 double y = (double)x;
12299 if ac_fn_c_try_link
"$LINENO"; then :
12301 $as_echo "#define HAVE_CAST_U64_DOUBLE 1" >>confdefs.h
12304 rm -f core conftest.err conftest.
$ac_objext \
12305 conftest
$ac_exeext conftest.
$ac_ext
12307 for ac_func
in basename
12309 ac_fn_c_check_func
"$LINENO" "basename" "ac_cv_func_basename"
12310 if test "x$ac_cv_func_basename" = xyes
; then :
12311 cat >>confdefs.h
<<_ACEOF
12312 #define HAVE_BASENAME 1
12318 if test $ac_cv_func_basename = yes
12321 $as_echo "#define HAVE_BASENAME 1" >>confdefs.h
12324 $as_echo "#define HAVE_DIRNAME 1" >>confdefs.h
12326 lib_for_basename
=""
12328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for basename in -lgen" >&5
12329 $as_echo_n "checking for basename in -lgen... " >&6; }
12330 if ${ac_cv_lib_gen_basename+:} false
; then :
12331 $as_echo_n "(cached) " >&6
12333 ac_check_lib_save_LIBS
=$LIBS
12335 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12336 /* end confdefs.h. */
12338 /* Override any GCC internal prototype to avoid an error.
12339 Use char because int might match the return type of a GCC
12340 builtin and then its argument prototype would still apply. */
12348 return basename ();
12353 if ac_fn_c_try_link
"$LINENO"; then :
12354 ac_cv_lib_gen_basename
=yes
12356 ac_cv_lib_gen_basename
=no
12358 rm -f core conftest.err conftest.
$ac_objext \
12359 conftest
$ac_exeext conftest.
$ac_ext
12360 LIBS
=$ac_check_lib_save_LIBS
12362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_basename" >&5
12363 $as_echo "$ac_cv_lib_gen_basename" >&6; }
12364 if test "x$ac_cv_lib_gen_basename" = xyes
; then :
12365 cat >>confdefs.h
<<_ACEOF
12366 #define HAVE_LIBGEN 1
12373 if test $ac_cv_lib_gen_basename = yes
12376 $as_echo "#define HAVE_BASENAME 1" >>confdefs.h
12379 $as_echo "#define HAVE_DIRNAME 1" >>confdefs.h
12381 lib_for_basename
="-lgen"
12383 lib_for_basename
="-lpcp"
12388 lib_for_clock_gettime
=
12389 for ac_func
in clock_gettime
12391 ac_fn_c_check_func
"$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
12392 if test "x$ac_cv_func_clock_gettime" = xyes
; then :
12393 cat >>confdefs.h
<<_ACEOF
12394 #define HAVE_CLOCK_GETTIME 1
12400 if test $ac_cv_func_clock_gettime = no
12402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
12403 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
12404 if ${ac_cv_lib_rt_clock_gettime+:} false
; then :
12405 $as_echo_n "(cached) " >&6
12407 ac_check_lib_save_LIBS
=$LIBS
12409 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12410 /* end confdefs.h. */
12412 /* Override any GCC internal prototype to avoid an error.
12413 Use char because int might match the return type of a GCC
12414 builtin and then its argument prototype would still apply. */
12418 char clock_gettime ();
12422 return clock_gettime ();
12427 if ac_fn_c_try_link
"$LINENO"; then :
12428 ac_cv_lib_rt_clock_gettime
=yes
12430 ac_cv_lib_rt_clock_gettime
=no
12432 rm -f core conftest.err conftest.
$ac_objext \
12433 conftest
$ac_exeext conftest.
$ac_ext
12434 LIBS
=$ac_check_lib_save_LIBS
12436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
12437 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
12438 if test "x$ac_cv_lib_rt_clock_gettime" = xyes
; then :
12439 cat >>confdefs.h
<<_ACEOF
12440 #define HAVE_LIBRT 1
12447 if test $ac_cv_lib_rt_clock_gettime = yes
12450 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
12458 for ac_func
in dlopen
12460 ac_fn_c_check_func
"$LINENO" "dlopen" "ac_cv_func_dlopen"
12461 if test "x$ac_cv_func_dlopen" = xyes
; then :
12462 cat >>confdefs.h
<<_ACEOF
12463 #define HAVE_DLOPEN 1
12469 if test $ac_cv_func_dlopen = no
12471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12472 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12473 if ${ac_cv_lib_dl_dlopen+:} false
; then :
12474 $as_echo_n "(cached) " >&6
12476 ac_check_lib_save_LIBS
=$LIBS
12478 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12479 /* end confdefs.h. */
12481 /* Override any GCC internal prototype to avoid an error.
12482 Use char because int might match the return type of a GCC
12483 builtin and then its argument prototype would still apply. */
12496 if ac_fn_c_try_link
"$LINENO"; then :
12497 ac_cv_lib_dl_dlopen
=yes
12499 ac_cv_lib_dl_dlopen
=no
12501 rm -f core conftest.err conftest.
$ac_objext \
12502 conftest
$ac_exeext conftest.
$ac_ext
12503 LIBS
=$ac_check_lib_save_LIBS
12505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12506 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12507 if test "x$ac_cv_lib_dl_dlopen" = xyes
; then :
12508 cat >>confdefs.h
<<_ACEOF
12509 #define HAVE_LIBDL 1
12516 if test $ac_cv_lib_dl_dlopen = yes
12519 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
12521 lib_for_dlopen
=-ldl
12527 for ac_func
in flog10
12529 ac_fn_c_check_func
"$LINENO" "flog10" "ac_cv_func_flog10"
12530 if test "x$ac_cv_func_flog10" = xyes
; then :
12531 cat >>confdefs.h
<<_ACEOF
12532 #define HAVE_FLOG10 1
12538 if test $ac_cv_func_flog10 = no
12540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flog10 in -lm" >&5
12541 $as_echo_n "checking for flog10 in -lm... " >&6; }
12542 if ${ac_cv_lib_m_flog10+:} false
; then :
12543 $as_echo_n "(cached) " >&6
12545 ac_check_lib_save_LIBS
=$LIBS
12547 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12548 /* end confdefs.h. */
12550 /* Override any GCC internal prototype to avoid an error.
12551 Use char because int might match the return type of a GCC
12552 builtin and then its argument prototype would still apply. */
12565 if ac_fn_c_try_link
"$LINENO"; then :
12566 ac_cv_lib_m_flog10
=yes
12568 ac_cv_lib_m_flog10
=no
12570 rm -f core conftest.err conftest.
$ac_objext \
12571 conftest
$ac_exeext conftest.
$ac_ext
12572 LIBS
=$ac_check_lib_save_LIBS
12574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_flog10" >&5
12575 $as_echo "$ac_cv_lib_m_flog10" >&6; }
12576 if test "x$ac_cv_lib_m_flog10" = xyes
; then :
12577 cat >>confdefs.h
<<_ACEOF
12578 #define HAVE_LIBM 1
12585 if test $ac_cv_lib_m_flog10 = yes
12588 $as_echo "#define HAVE_FLOG10 1" >>confdefs.h
12594 $as_echo "#define HAVE_FLOG10 1" >>confdefs.h
12599 ac_fn_c_check_func
"$LINENO" "pow" "ac_cv_func_pow"
12600 if test "x$ac_cv_func_pow" = xyes
; then :
12601 cat >>confdefs.h
<<_ACEOF
12608 if test $ac_cv_func_pow = no
12610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
12611 $as_echo_n "checking for pow in -lm... " >&6; }
12612 if ${ac_cv_lib_m_pow+:} false
; then :
12613 $as_echo_n "(cached) " >&6
12615 ac_check_lib_save_LIBS
=$LIBS
12617 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12618 /* end confdefs.h. */
12620 /* Override any GCC internal prototype to avoid an error.
12621 Use char because int might match the return type of a GCC
12622 builtin and then its argument prototype would still apply. */
12635 if ac_fn_c_try_link
"$LINENO"; then :
12636 ac_cv_lib_m_pow
=yes
12640 rm -f core conftest.err conftest.
$ac_objext \
12641 conftest
$ac_exeext conftest.
$ac_ext
12642 LIBS
=$ac_check_lib_save_LIBS
12644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
12645 $as_echo "$ac_cv_lib_m_pow" >&6; }
12646 if test "x$ac_cv_lib_m_pow" = xyes
; then :
12647 cat >>confdefs.h
<<_ACEOF
12648 #define HAVE_LIBM 1
12655 if test $ac_cv_lib_m_pow = yes
12658 $as_echo "#define HAVE_POW 1" >>confdefs.h
12664 $as_echo "#define HAVE_POW 1" >>confdefs.h
12667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpclassify()" >&5
12668 $as_echo_n "checking for fpclassify()... " >&6; }
12669 ac_cv_func_fpclassify
=no
12670 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12671 /* end confdefs.h. */
12679 double x = 123.456;
12680 if (fpclassify(x) == FP_NAN) exit(1);
12686 if ac_fn_c_try_link
"$LINENO"; then :
12687 ac_cv_func_fpclassify
=yes
12689 rm -f core conftest.err conftest.
$ac_objext \
12690 conftest
$ac_exeext conftest.
$ac_ext
12691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fpclassify" >&5
12692 $as_echo "$ac_cv_func_fpclassify" >&6; }
12693 if test $ac_cv_func_fpclassify = no
12695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpclassify() with -lm" >&5
12696 $as_echo_n "checking for fpclassify() with -lm... " >&6; }
12699 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12700 /* end confdefs.h. */
12708 double x = 123.456;
12709 if (fpclassify(x) == FP_NAN) exit(1);
12715 if ac_fn_c_try_link
"$LINENO"; then :
12716 ac_cv_func_fpclassify
=yes
12718 rm -f core conftest.err conftest.
$ac_objext \
12719 conftest
$ac_exeext conftest.
$ac_ext
12720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fpclassify" >&5
12721 $as_echo "$ac_cv_func_fpclassify" >&6; }
12722 if test $ac_cv_func_fpclassify = yes
12728 if test $ac_cv_func_fpclassify = yes
12731 $as_echo "#define HAVE_FPCLASSIFY 1" >>confdefs.h
12734 for ac_func
in isnan
12736 ac_fn_c_check_func
"$LINENO" "isnan" "ac_cv_func_isnan"
12737 if test "x$ac_cv_func_isnan" = xyes
; then :
12738 cat >>confdefs.h
<<_ACEOF
12739 #define HAVE_ISNAN 1
12745 if test $ac_cv_func_isnan = no
12747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan in -lm" >&5
12748 $as_echo_n "checking for isnan in -lm... " >&6; }
12749 if ${ac_cv_lib_m_isnan+:} false
; then :
12750 $as_echo_n "(cached) " >&6
12752 ac_check_lib_save_LIBS
=$LIBS
12754 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12755 /* end confdefs.h. */
12757 /* Override any GCC internal prototype to avoid an error.
12758 Use char because int might match the return type of a GCC
12759 builtin and then its argument prototype would still apply. */
12772 if ac_fn_c_try_link
"$LINENO"; then :
12773 ac_cv_lib_m_isnan
=yes
12775 ac_cv_lib_m_isnan
=no
12777 rm -f core conftest.err conftest.
$ac_objext \
12778 conftest
$ac_exeext conftest.
$ac_ext
12779 LIBS
=$ac_check_lib_save_LIBS
12781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_isnan" >&5
12782 $as_echo "$ac_cv_lib_m_isnan" >&6; }
12783 if test "x$ac_cv_lib_m_isnan" = xyes
; then :
12784 cat >>confdefs.h
<<_ACEOF
12785 #define HAVE_LIBM 1
12792 if test $ac_cv_lib_m_isnan = yes
12795 $as_echo "#define HAVE_ISNAN 1" >>confdefs.h
12800 for ac_func
in isnanf
12802 ac_fn_c_check_func
"$LINENO" "isnanf" "ac_cv_func_isnanf"
12803 if test "x$ac_cv_func_isnanf" = xyes
; then :
12804 cat >>confdefs.h
<<_ACEOF
12805 #define HAVE_ISNANF 1
12811 if test $ac_cv_func_isnanf = no
12813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnanf in -lm" >&5
12814 $as_echo_n "checking for isnanf in -lm... " >&6; }
12815 if ${ac_cv_lib_m_isnanf+:} false
; then :
12816 $as_echo_n "(cached) " >&6
12818 ac_check_lib_save_LIBS
=$LIBS
12820 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12821 /* end confdefs.h. */
12823 /* Override any GCC internal prototype to avoid an error.
12824 Use char because int might match the return type of a GCC
12825 builtin and then its argument prototype would still apply. */
12838 if ac_fn_c_try_link
"$LINENO"; then :
12839 ac_cv_lib_m_isnanf
=yes
12841 ac_cv_lib_m_isnanf
=no
12843 rm -f core conftest.err conftest.
$ac_objext \
12844 conftest
$ac_exeext conftest.
$ac_ext
12845 LIBS
=$ac_check_lib_save_LIBS
12847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_isnanf" >&5
12848 $as_echo "$ac_cv_lib_m_isnanf" >&6; }
12849 if test "x$ac_cv_lib_m_isnanf" = xyes
; then :
12850 cat >>confdefs.h
<<_ACEOF
12851 #define HAVE_LIBM 1
12858 if test $ac_cv_lib_m_isnanf = yes
12861 $as_echo "#define HAVE_ISNANF 1" >>confdefs.h
12869 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12870 /* end confdefs.h. */
12871 #include <signal.h>
12880 if ac_fn_c_try_link
"$LINENO"; then :
12882 $as_echo "#define HAVE_SIGPF 1" >>confdefs.h
12885 rm -f core conftest.err conftest.
$ac_objext \
12886 conftest
$ac_exeext conftest.
$ac_ext
12888 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12889 /* end confdefs.h. */
12890 #include <signal.h>
12894 int x = SA_SIGINFO;
12899 if ac_fn_c_try_link
"$LINENO"; then :
12901 $as_echo "#define HAVE_SA_SIGINFO 1" >>confdefs.h
12904 rm -f core conftest.err conftest.
$ac_objext \
12905 conftest
$ac_exeext conftest.
$ac_ext
12907 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12908 /* end confdefs.h. */
12909 #include <signal.h>
12918 if ac_fn_c_try_link
"$LINENO"; then :
12920 $as_echo "#define HAVE_SIGPIPE 1" >>confdefs.h
12923 rm -f core conftest.err conftest.
$ac_objext \
12924 conftest
$ac_exeext conftest.
$ac_ext
12926 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12927 /* end confdefs.h. */
12928 #include <signal.h>
12937 if ac_fn_c_try_link
"$LINENO"; then :
12939 $as_echo "#define HAVE_SIGHUP 1" >>confdefs.h
12942 rm -f core conftest.err conftest.
$ac_objext \
12943 conftest
$ac_exeext conftest.
$ac_ext
12945 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12946 /* end confdefs.h. */
12947 #include <signal.h>
12956 if ac_fn_c_try_link
"$LINENO"; then :
12958 $as_echo "#define HAVE_SIGBUS 1" >>confdefs.h
12961 rm -f core conftest.err conftest.
$ac_objext \
12962 conftest
$ac_exeext conftest.
$ac_ext
12964 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12965 /* end confdefs.h. */
12966 #include <sys/wait.h>
12970 typedef void (*SIGRET)(int);
12971 SIGRET x = SIG_IGN;
12977 if ac_fn_c_try_link
"$LINENO"; then :
12979 $as_echo "#define HAVE_WAIT_INCLUDES_SIGNAL 1" >>confdefs.h
12982 rm -f core conftest.err conftest.
$ac_objext \
12983 conftest
$ac_exeext conftest.
$ac_ext
12985 have_stat_type
=false
12986 have_stat_name
=false
12987 if test $have_stat_name = false
12989 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
12990 /* end confdefs.h. */
12991 #include <sys/stat.h>
12994 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12995 $EGREP "[ ]st_mtimespec" >/dev
/null
2>&1; then :
12996 have_stat_name
=true
;
12998 $as_echo "#define HAVE_ST_MTIME_WITH_SPEC 1" >>confdefs.h
13004 if test $have_stat_name = false
-a $target_os != darwin
-a $target_os != linux
-a $target_os != kfreebsd
-a $target_os != netbsd
13006 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13007 /* end confdefs.h. */
13008 #include <sys/stat.h>
13011 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13012 $EGREP "[ ]st_mtime" >/dev
/null
2>&1; then :
13013 have_stat_name
=true
;
13015 $as_echo "#define HAVE_ST_MTIME_WITH_E 1" >>confdefs.h
13021 if test $have_stat_type = false
13023 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13024 /* end confdefs.h. */
13025 #include <sys/stat.h>
13028 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13029 $EGREP "timestruc_t[ ][ ]*st_mtim" >/dev
/null
2>&1; then :
13030 have_stat_type
=true
;
13032 $as_echo "#define HAVE_STAT_TIMESTRUC 1" >>confdefs.h
13038 if test $have_stat_type = false
13040 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13041 /* end confdefs.h. */
13042 #include <sys/stat.h>
13045 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13046 $EGREP "timespec_t[ ][ ]*st_mtim" >/dev
/null
2>&1; then :
13047 have_stat_type
=true
;
13049 $as_echo "#define HAVE_STAT_TIMESPEC_T 1" >>confdefs.h
13055 if test $have_stat_type = false
13057 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13058 /* end confdefs.h. */
13059 #include <sys/stat.h>
13062 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13063 $EGREP "timespec[ ][ ]*st_mtim" >/dev
/null
2>&1; then :
13064 have_stat_type
=true
;
13066 $as_echo "#define HAVE_STAT_TIMESPEC 1" >>confdefs.h
13072 if test $have_stat_type = false
13074 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13075 /* end confdefs.h. */
13076 #include <sys/stat.h>
13079 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13080 $EGREP "time_t[ ][ ]*st_mtim" >/dev
/null
2>&1; then :
13081 have_stat_type
=true
;
13083 $as_echo "#define HAVE_STAT_TIME_T 1" >>confdefs.h
13089 if test $have_stat_type = false
13091 echo 'FATAL ERROR: Cannot determine struct stat time types.'
13092 rm -rf conftest conftest.
*
13097 pcp_etc_dir
=`eval echo $sysconfdir`
13098 pcp_etc_dir
=`eval echo $pcp_etc_dir`
13100 pcp_saslconf_dir
=`eval echo $sysconfdir/sasl2`
13101 pcp_saslconf_dir
=`eval echo $pcp_saslconf_dir`
13103 pcp_sysconf_dir
=`eval echo $sysconfdir/pcp`
13104 pcp_sysconf_dir
=`eval echo $pcp_sysconf_dir`
13106 pcp_pmcdconf_path
=$pcp_sysconf_dir/pmcd
/pmcd.conf
13107 pcp_pmcdrclocal_path
=$pcp_sysconf_dir/pmcd
/rc.
local
13108 pcp_pmcdoptions_path
=$pcp_sysconf_dir/pmcd
/pmcd.options
13109 pcp_pmwebdoptions_path
=$pcp_sysconf_dir/pmwebd
/pmwebd.options
13110 pcp_pmmgroptions_path
=$pcp_sysconf_dir/pmmgr
/pmmgr.options
13111 pcp_pmproxyoptions_path
=$pcp_sysconf_dir/pmproxy
/pmproxy.options
13112 pcp_pmiecontrol_path
=$pcp_sysconf_dir/pmie
/control
13113 pcp_pmsnapcontrol_path
=$pcp_sysconf_dir/pmsnap
/control
13114 pcp_pmloggercontrol_path
=$pcp_sysconf_dir/pmlogger
/control
13125 pcp_share_dir
=`eval echo $datarootdir/pcp`
13126 pcp_share_dir
=`eval echo $pcp_share_dir`
13129 pcp_binadm_dir
=`eval echo $libexecdir/pcp/bin`
13130 pcp_binadm_dir
=`eval echo $pcp_binadm_dir`
13133 pcp_var_dir
=`eval echo $localstatedir/lib/pcp`
13134 pcp_var_dir
=`eval echo $pcp_var_dir`
13138 # Check whether --with-configdir was given.
13139 if test "${with_configdir+set}" = set; then :
13140 withval
=$with_configdir; pcp_config_dir
=$withval
13142 pcp_config_dir
=$pcp_var_dir/config
13146 pcp_pmdas_dir
=$pcp_var_dir/pmdas
13149 pcp_lib_dir
=`eval echo $libdir`
13150 pcp_lib_dir
=`eval echo $pcp_lib_dir`
13151 pcp_lib32_dir
=`echo $pcp_lib_dir | sed -e s,64,, -e s,//,/,`
13156 # Check whether --with-perl_installdirs was given.
13157 if test "${with_perl_installdirs+set}" = set; then :
13158 withval
=$with_perl_installdirs; perl_installdirs
=$withval
13160 perl_installdirs
=vendor
13163 perl_installdirs
=`eval echo $perl_installdirs`
13164 perl_installdirs
=`eval echo $perl_installdirs`
13167 # Check whether --with-perl_install_base was given.
13168 if test "${with_perl_install_base+set}" = set; then :
13169 withval
=$with_perl_install_base; perl_install_base
=$withval
13171 perl_install_base
=$prefix
13174 perl_install_base
=`eval echo $perl_install_base`
13175 perl_install_base
=`eval echo $perl_install_base`
13179 # Check whether --with-python_prefix was given.
13180 if test "${with_python_prefix+set}" = set; then :
13181 withval
=$with_python_prefix; python_prefix
=$withval
13183 python_prefix
=$prefix
13186 python_prefix
=`eval echo $python_prefix`
13187 python_prefix
=`eval echo $python_prefix`
13190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
13191 $as_echo_n "checking for X... " >&6; }
13194 # Check whether --with-x was given.
13195 if test "${with_x+set}" = set; then :
13199 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
13200 if test "x$with_x" = xno
; then
13201 # The user explicitly disabled X.
13204 case $x_includes,$x_libraries in #(
13205 *\'*) as_fn_error $?
"cannot use X directory names containing '" "$LINENO" 5;; #(
13206 *,NONE | NONE
,*) if ${ac_cv_have_x+:} false
; then :
13207 $as_echo_n "(cached) " >&6
13209 # One or both of the vars are not set, and there is no cached value.
13210 ac_x_includes
=no ac_x_libraries
=no
13211 rm -f -r conftest.dir
13212 if mkdir conftest.dir
; then
13214 cat >Imakefile
<<'_ACEOF'
13216 @echo incroot='${INCROOT}'
13218 @echo usrlibdir='${USRLIBDIR}'
13220 @echo libdir='${LIBDIR}'
13222 if (export CC
; ${XMKMF-xmkmf}) >/dev
/null
2>/dev
/null
&& test -f Makefile
; then
13223 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
13224 for ac_var
in incroot usrlibdir libdir
; do
13225 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
13227 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
13228 for ac_extension
in a so sl dylib la dll
; do
13229 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
13230 test -f "$ac_im_libdir/libX11.$ac_extension"; then
13231 ac_im_usrlibdir
=$ac_im_libdir; break
13234 # Screen out bogus values from the imake configuration. They are
13235 # bogus both because they are the default anyway, and because
13236 # using them would break gcc on systems where it needs fixed includes.
13237 case $ac_im_incroot in
13238 /usr
/include
) ac_x_includes
= ;;
13239 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes
=$ac_im_incroot;;
13241 case $ac_im_usrlibdir in
13242 /usr
/lib |
/usr
/lib64 |
/lib |
/lib64
) ;;
13243 *) test -d "$ac_im_usrlibdir" && ac_x_libraries
=$ac_im_usrlibdir ;;
13247 rm -f -r conftest.dir
13250 # Standard set of common directories for X headers.
13251 # Check X11 before X11Rn because it is often a symlink to the current release.
13265 /usr/local/X11/include
13266 /usr/local/X11R7/include
13267 /usr/local/X11R6/include
13268 /usr/local/X11R5/include
13269 /usr/local/X11R4/include
13271 /usr/local/include/X11
13272 /usr/local/include/X11R7
13273 /usr/local/include/X11R6
13274 /usr/local/include/X11R5
13275 /usr/local/include/X11R4
13279 /usr/XFree86/include/X11
13283 /usr/unsupported/include
13284 /usr/athena/include
13285 /usr/local/x11r5/include
13286 /usr/lpp/Xamples/include
13288 /usr/openwin/include
13289 /usr/openwin/share/include'
13291 if test "$ac_x_includes" = no
; then
13292 # Guess where to find include files, by looking for Xlib.h.
13293 # First, try using that file with no special directory specified.
13294 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13295 /* end confdefs.h. */
13296 #include <X11/Xlib.h>
13298 if ac_fn_c_try_cpp
"$LINENO"; then :
13299 # We can compile using X headers with no special include directory.
13302 for ac_dir
in $ac_x_header_dirs; do
13303 if test -r "$ac_dir/X11/Xlib.h"; then
13304 ac_x_includes
=$ac_dir
13309 rm -f conftest.err conftest.i conftest.
$ac_ext
13310 fi # $ac_x_includes = no
13312 if test "$ac_x_libraries" = no
; then
13313 # Check for the libraries.
13314 # See if we find them without any special options.
13315 # Don't add to $LIBS permanently.
13318 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13319 /* end confdefs.h. */
13320 #include <X11/Xlib.h>
13329 if ac_fn_c_try_link
"$LINENO"; then :
13331 # We can link X programs with no special library path.
13335 for ac_dir
in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
13337 # Don't even attempt the hair of trying to link an X program!
13338 for ac_extension
in a so sl dylib la dll
; do
13339 if test -r "$ac_dir/libX11.$ac_extension"; then
13340 ac_x_libraries
=$ac_dir
13346 rm -f core conftest.err conftest.
$ac_objext \
13347 conftest
$ac_exeext conftest.
$ac_ext
13348 fi # $ac_x_libraries = no
13350 case $ac_x_includes,$ac_x_libraries in #(
13351 no
,* |
*,no |
*\'*)
13352 # Didn't find X, or a directory has "'" in its name.
13353 ac_cv_have_x
="have_x=no";; #(
13355 # Record where we found X for the cache.
13356 ac_cv_have_x
="have_x=yes\
13357 ac_x_includes='$ac_x_includes'\
13358 ac_x_libraries='$ac_x_libraries'"
13364 eval "$ac_cv_have_x"
13367 if test "$have_x" != yes; then
13368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
13369 $as_echo "$have_x" >&6; }
13372 # If each of the values was on the command line, it overrides each guess.
13373 test "x$x_includes" = xNONE
&& x_includes
=$ac_x_includes
13374 test "x$x_libraries" = xNONE
&& x_libraries
=$ac_x_libraries
13375 # Update the cache value to reflect the command line values.
13376 ac_cv_have_x
="have_x=yes\
13377 ac_x_includes='$x_includes'\
13378 ac_x_libraries='$x_libraries'"
13379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
13380 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
13383 if test "$no_x" = yes; then
13384 # Not all programs may use this symbol, but it does not hurt to define it.
13386 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
13388 X_CFLAGS
= X_PRE_LIBS
= X_LIBS
= X_EXTRA_LIBS
=
13390 if test -n "$x_includes"; then
13391 X_CFLAGS
="$X_CFLAGS -I$x_includes"
13394 # It would also be nice to do this for all -L options, not just this one.
13395 if test -n "$x_libraries"; then
13396 X_LIBS
="$X_LIBS -L$x_libraries"
13397 # For Solaris; some versions of Sun CC require a space after -R and
13398 # others require no space. Words are not sufficient . . . .
13399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
13400 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
13401 ac_xsave_LIBS
=$LIBS; LIBS
="$LIBS -R$x_libraries"
13402 ac_xsave_c_werror_flag
=$ac_c_werror_flag
13403 ac_c_werror_flag
=yes
13404 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13405 /* end confdefs.h. */
13415 if ac_fn_c_try_link
"$LINENO"; then :
13416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13417 $as_echo "no" >&6; }
13418 X_LIBS
="$X_LIBS -R$x_libraries"
13420 LIBS
="$ac_xsave_LIBS -R $x_libraries"
13421 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13422 /* end confdefs.h. */
13432 if ac_fn_c_try_link
"$LINENO"; then :
13433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13434 $as_echo "yes" >&6; }
13435 X_LIBS
="$X_LIBS -R $x_libraries"
13437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
13438 $as_echo "neither works" >&6; }
13440 rm -f core conftest.err conftest.
$ac_objext \
13441 conftest
$ac_exeext conftest.
$ac_ext
13443 rm -f core conftest.err conftest.
$ac_objext \
13444 conftest
$ac_exeext conftest.
$ac_ext
13445 ac_c_werror_flag
=$ac_xsave_c_werror_flag
13446 LIBS
=$ac_xsave_LIBS
13449 # Check for system-dependent libraries X programs must link with.
13450 # Do this before checking for the system-independent R6 libraries
13451 # (-lICE), since we may need -lsocket or whatever for X linking.
13453 if test "$ISC" = yes; then
13454 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl_s -linet"
13456 # Martyn Johnson says this is needed for Ultrix, if the X
13457 # libraries were built with DECnet support. And Karl Berry says
13458 # the Alpha needs dnet_stub (dnet does not exist).
13459 ac_xsave_LIBS
="$LIBS"; LIBS
="$LIBS $X_LIBS -lX11"
13460 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13461 /* end confdefs.h. */
13463 /* Override any GCC internal prototype to avoid an error.
13464 Use char because int might match the return type of a GCC
13465 builtin and then its argument prototype would still apply. */
13469 char XOpenDisplay ();
13473 return XOpenDisplay ();
13478 if ac_fn_c_try_link
"$LINENO"; then :
13481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
13482 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
13483 if ${ac_cv_lib_dnet_dnet_ntoa+:} false
; then :
13484 $as_echo_n "(cached) " >&6
13486 ac_check_lib_save_LIBS
=$LIBS
13487 LIBS
="-ldnet $LIBS"
13488 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13489 /* end confdefs.h. */
13491 /* Override any GCC internal prototype to avoid an error.
13492 Use char because int might match the return type of a GCC
13493 builtin and then its argument prototype would still apply. */
13501 return dnet_ntoa ();
13506 if ac_fn_c_try_link
"$LINENO"; then :
13507 ac_cv_lib_dnet_dnet_ntoa
=yes
13509 ac_cv_lib_dnet_dnet_ntoa
=no
13511 rm -f core conftest.err conftest.
$ac_objext \
13512 conftest
$ac_exeext conftest.
$ac_ext
13513 LIBS
=$ac_check_lib_save_LIBS
13515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
13516 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
13517 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes
; then :
13518 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet"
13521 if test $ac_cv_lib_dnet_dnet_ntoa = no
; then
13522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
13523 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
13524 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false
; then :
13525 $as_echo_n "(cached) " >&6
13527 ac_check_lib_save_LIBS
=$LIBS
13528 LIBS
="-ldnet_stub $LIBS"
13529 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13530 /* end confdefs.h. */
13532 /* Override any GCC internal prototype to avoid an error.
13533 Use char because int might match the return type of a GCC
13534 builtin and then its argument prototype would still apply. */
13542 return dnet_ntoa ();
13547 if ac_fn_c_try_link
"$LINENO"; then :
13548 ac_cv_lib_dnet_stub_dnet_ntoa
=yes
13550 ac_cv_lib_dnet_stub_dnet_ntoa
=no
13552 rm -f core conftest.err conftest.
$ac_objext \
13553 conftest
$ac_exeext conftest.
$ac_ext
13554 LIBS
=$ac_check_lib_save_LIBS
13556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
13557 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
13558 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes
; then :
13559 X_EXTRA_LIBS
="$X_EXTRA_LIBS -ldnet_stub"
13564 rm -f core conftest.err conftest.
$ac_objext \
13565 conftest
$ac_exeext conftest.
$ac_ext
13566 LIBS
="$ac_xsave_LIBS"
13568 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
13569 # to get the SysV transport functions.
13570 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
13572 # The nsl library prevents programs from opening the X display
13573 # on Irix 5.2, according to T.E. Dickey.
13574 # The functions gethostbyname, getservbyname, and inet_addr are
13575 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
13576 ac_fn_c_check_func
"$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
13577 if test "x$ac_cv_func_gethostbyname" = xyes
; then :
13581 if test $ac_cv_func_gethostbyname = no
; then
13582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
13583 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
13584 if ${ac_cv_lib_nsl_gethostbyname+:} false
; then :
13585 $as_echo_n "(cached) " >&6
13587 ac_check_lib_save_LIBS
=$LIBS
13589 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13590 /* end confdefs.h. */
13592 /* Override any GCC internal prototype to avoid an error.
13593 Use char because int might match the return type of a GCC
13594 builtin and then its argument prototype would still apply. */
13598 char gethostbyname ();
13602 return gethostbyname ();
13607 if ac_fn_c_try_link
"$LINENO"; then :
13608 ac_cv_lib_nsl_gethostbyname
=yes
13610 ac_cv_lib_nsl_gethostbyname
=no
13612 rm -f core conftest.err conftest.
$ac_objext \
13613 conftest
$ac_exeext conftest.
$ac_ext
13614 LIBS
=$ac_check_lib_save_LIBS
13616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
13617 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
13618 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes
; then :
13619 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lnsl"
13622 if test $ac_cv_lib_nsl_gethostbyname = no
; then
13623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
13624 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
13625 if ${ac_cv_lib_bsd_gethostbyname+:} false
; then :
13626 $as_echo_n "(cached) " >&6
13628 ac_check_lib_save_LIBS
=$LIBS
13630 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13631 /* end confdefs.h. */
13633 /* Override any GCC internal prototype to avoid an error.
13634 Use char because int might match the return type of a GCC
13635 builtin and then its argument prototype would still apply. */
13639 char gethostbyname ();
13643 return gethostbyname ();
13648 if ac_fn_c_try_link
"$LINENO"; then :
13649 ac_cv_lib_bsd_gethostbyname
=yes
13651 ac_cv_lib_bsd_gethostbyname
=no
13653 rm -f core conftest.err conftest.
$ac_objext \
13654 conftest
$ac_exeext conftest.
$ac_ext
13655 LIBS
=$ac_check_lib_save_LIBS
13657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
13658 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
13659 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes
; then :
13660 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lbsd"
13666 # lieder@skyler.mavd.honeywell.com says without -lsocket,
13667 # socket/setsockopt and other routines are undefined under SCO ODT
13668 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
13669 # on later versions), says Simon Leinen: it contains gethostby*
13670 # variants that don't use the name server (or something). -lsocket
13671 # must be given before -lnsl if both are needed. We assume that
13672 # if connect needs -lnsl, so does gethostbyname.
13673 ac_fn_c_check_func
"$LINENO" "connect" "ac_cv_func_connect"
13674 if test "x$ac_cv_func_connect" = xyes
; then :
13678 if test $ac_cv_func_connect = no
; then
13679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
13680 $as_echo_n "checking for connect in -lsocket... " >&6; }
13681 if ${ac_cv_lib_socket_connect+:} false
; then :
13682 $as_echo_n "(cached) " >&6
13684 ac_check_lib_save_LIBS
=$LIBS
13685 LIBS
="-lsocket $X_EXTRA_LIBS $LIBS"
13686 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13687 /* end confdefs.h. */
13689 /* Override any GCC internal prototype to avoid an error.
13690 Use char because int might match the return type of a GCC
13691 builtin and then its argument prototype would still apply. */
13704 if ac_fn_c_try_link
"$LINENO"; then :
13705 ac_cv_lib_socket_connect
=yes
13707 ac_cv_lib_socket_connect
=no
13709 rm -f core conftest.err conftest.
$ac_objext \
13710 conftest
$ac_exeext conftest.
$ac_ext
13711 LIBS
=$ac_check_lib_save_LIBS
13713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
13714 $as_echo "$ac_cv_lib_socket_connect" >&6; }
13715 if test "x$ac_cv_lib_socket_connect" = xyes
; then :
13716 X_EXTRA_LIBS
="-lsocket $X_EXTRA_LIBS"
13721 # Guillermo Gomez says -lposix is necessary on A/UX.
13722 ac_fn_c_check_func
"$LINENO" "remove" "ac_cv_func_remove"
13723 if test "x$ac_cv_func_remove" = xyes
; then :
13727 if test $ac_cv_func_remove = no
; then
13728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
13729 $as_echo_n "checking for remove in -lposix... " >&6; }
13730 if ${ac_cv_lib_posix_remove+:} false
; then :
13731 $as_echo_n "(cached) " >&6
13733 ac_check_lib_save_LIBS
=$LIBS
13734 LIBS
="-lposix $LIBS"
13735 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13736 /* end confdefs.h. */
13738 /* Override any GCC internal prototype to avoid an error.
13739 Use char because int might match the return type of a GCC
13740 builtin and then its argument prototype would still apply. */
13753 if ac_fn_c_try_link
"$LINENO"; then :
13754 ac_cv_lib_posix_remove
=yes
13756 ac_cv_lib_posix_remove
=no
13758 rm -f core conftest.err conftest.
$ac_objext \
13759 conftest
$ac_exeext conftest.
$ac_ext
13760 LIBS
=$ac_check_lib_save_LIBS
13762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
13763 $as_echo "$ac_cv_lib_posix_remove" >&6; }
13764 if test "x$ac_cv_lib_posix_remove" = xyes
; then :
13765 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lposix"
13770 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
13771 ac_fn_c_check_func
"$LINENO" "shmat" "ac_cv_func_shmat"
13772 if test "x$ac_cv_func_shmat" = xyes
; then :
13776 if test $ac_cv_func_shmat = no
; then
13777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
13778 $as_echo_n "checking for shmat in -lipc... " >&6; }
13779 if ${ac_cv_lib_ipc_shmat+:} false
; then :
13780 $as_echo_n "(cached) " >&6
13782 ac_check_lib_save_LIBS
=$LIBS
13784 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13785 /* end confdefs.h. */
13787 /* Override any GCC internal prototype to avoid an error.
13788 Use char because int might match the return type of a GCC
13789 builtin and then its argument prototype would still apply. */
13802 if ac_fn_c_try_link
"$LINENO"; then :
13803 ac_cv_lib_ipc_shmat
=yes
13805 ac_cv_lib_ipc_shmat
=no
13807 rm -f core conftest.err conftest.
$ac_objext \
13808 conftest
$ac_exeext conftest.
$ac_ext
13809 LIBS
=$ac_check_lib_save_LIBS
13811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
13812 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
13813 if test "x$ac_cv_lib_ipc_shmat" = xyes
; then :
13814 X_EXTRA_LIBS
="$X_EXTRA_LIBS -lipc"
13820 # Check for libraries that X11R6 Xt/Xaw programs need.
13821 ac_save_LDFLAGS
=$LDFLAGS
13822 test -n "$x_libraries" && LDFLAGS
="$LDFLAGS -L$x_libraries"
13823 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
13824 # check for ICE first), but we must link in the order -lSM -lICE or
13825 # we get undefined symbols. So assume we have SM if we have ICE.
13826 # These have to be linked with before -lX11, unlike the other
13827 # libraries we check for below, so use a different variable.
13828 # John Interrante, Karl Berry
13829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
13830 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
13831 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false
; then :
13832 $as_echo_n "(cached) " >&6
13834 ac_check_lib_save_LIBS
=$LIBS
13835 LIBS
="-lICE $X_EXTRA_LIBS $LIBS"
13836 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
13837 /* end confdefs.h. */
13839 /* Override any GCC internal prototype to avoid an error.
13840 Use char because int might match the return type of a GCC
13841 builtin and then its argument prototype would still apply. */
13845 char IceConnectionNumber ();
13849 return IceConnectionNumber ();
13854 if ac_fn_c_try_link
"$LINENO"; then :
13855 ac_cv_lib_ICE_IceConnectionNumber
=yes
13857 ac_cv_lib_ICE_IceConnectionNumber
=no
13859 rm -f core conftest.err conftest.
$ac_objext \
13860 conftest
$ac_exeext conftest.
$ac_ext
13861 LIBS
=$ac_check_lib_save_LIBS
13863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
13864 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
13865 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes
; then :
13866 X_PRE_LIBS
="$X_PRE_LIBS -lSM -lICE"
13869 LDFLAGS
=$ac_save_LDFLAGS
13873 pcp_x11_incflags
=$X_CFLAGS
13875 pcp_x11_libflags
=$X_LIBS
13877 pcp_x11_extra
=$X_EXTRA_LIBS
13879 pcp_x11_pre
=$X_PRE_LIBS
13882 have_gzipped_manpages
=false
13883 have_bzip2ed_manpages
=false
13884 have_lzmaed_manpages
=false
13885 have_xzed_manpages
=false
13886 need_old_tbl_header
=false
13888 pcp_man_dir
=`eval echo $mandir`
13889 pcp_man_dir
=`eval echo $pcp_man_dir`
13891 for d
in /usr
/man
/usr
/share
/man
$pcp_man_dir
13893 for sd
in man1 sman1
13895 if test -f $d/$sd/man
.1.gz
13897 have_gzipped_manpages
=true
13898 man_header
=`$ZIP -d < $d/$sd/man.1.gz | head -1`
13900 elif test -f $d/$sd/man
.1.bz2
13902 have_bzip2ed_manpages
=true
13903 man_header
=`$BZIP2 -d < $d/$sd/man.1.bz2 | head -1`
13905 elif test -f $d/$sd/man
.1.lzma
13907 have_lzmaed_manpages
=true
13908 man_header
=`$LZMA -d < $d/$sd/man.1.lzma | head -1`
13910 elif test -f $d/$sd/man
.1.xz
13912 have_xzed_manpages
=true
13913 man_header
=`$XZ -d < $d/$sd/man.1.xz | head -1`
13915 elif test -f $d/$sd/man
.1
13917 man_header
=`head -1 $d/$sd/man.1`
13922 if test x
"$man_header" = "x'\\\" t" -o x
"$man_header" = "x'\\\" te" ; then
13923 need_old_tbl_header
=true
13932 pcp_bin_dir
=`eval echo $bindir`
13933 pcp_bin_dir
=`eval echo $pcp_bin_dir`
13936 pcp_sbin_dir
=`eval echo $sbindir`
13937 pcp_sbin_dir
=`eval echo $pcp_sbin_dir`
13940 pcp_inc_dir
=`eval echo $includedir/pcp`
13941 pcp_inc_dir
=`eval echo $pcp_inc_dir`
13944 if test $target_os = linux
; then
13945 pcp_books_dir
=`eval echo $datarootdir/doc/pcp-doc`
13947 pcp_books_dir
=`eval echo $datarootdir/doc/pcp`
13949 pcp_books_dir
=`eval echo $pcp_books_dir`
13950 pcp_html_dir
=`eval echo $pcp_books_dir/html`
13954 if test $target_os = linux
; then
13955 pcp_icons_dir
=`eval echo $datarootdir/pcp-gui/pixmaps`
13957 pcp_icons_dir
=`eval echo $datarootdir/pcp/pixmaps`
13959 pcp_icons_dir
=`eval echo $pcp_icons_dir`
13962 pcp_desktop_dir
=`eval echo $datarootdir/applications`
13963 pcp_desktop_dir
=`eval echo $pcp_desktop_dir`
13967 # Check whether --with-rcdir was given.
13968 if test "${with_rcdir+set}" = set; then :
13969 withval
=$with_rcdir; pcp_rc_dir
=$withval
13974 pcp_rc_dir
="$pcp_share_dir/lib"
13976 pcp_rc_dir
="$pcp_etc_dir/init.d"
13983 # Check whether --with-sysconfigdir was given.
13984 if test "${with_sysconfigdir+set}" = set; then :
13985 withval
=$with_sysconfigdir; pcp_sysconfig_dir
=$withval
13987 pcp_sysconfig_dir
=$pcp_etc_dir/sysconfig
13993 # Check whether --with-logdir was given.
13994 if test "${with_logdir+set}" = set; then :
13995 withval
=$with_logdir; pcp_log_dir
=$withval
13997 pcp_log_dir
=$localstatedir/log
/pcp
14000 pcp_log_dir
=`eval echo $pcp_log_dir`
14001 pcp_log_dir
=`eval echo $pcp_log_dir`
14005 # Check whether --with-rundir was given.
14006 if test "${with_rundir+set}" = set; then :
14007 withval
=$with_rundir; pcp_run_dir
=$withval
14009 pcp_run_dir
=$localstatedir/run
/pcp
14012 pcp_run_dir
=`eval echo $pcp_run_dir`
14013 pcp_run_dir
=`eval echo $pcp_run_dir`
14017 # Check whether --with-tmpdir was given.
14018 if test "${with_tmpdir+set}" = set; then :
14019 withval
=$with_tmpdir; pcp_tmpfile_dir
=$withval
14021 pcp_tmpfile_dir
=$localstatedir/tmp
14024 pcp_tmpfile_dir
=`eval echo $pcp_tmpfile_dir`
14025 pcp_tmpfile_dir
=`eval echo $pcp_tmpfile_dir`
14028 pcp_tmp_dir
=`eval echo $pcp_var_dir/tmp`
14032 # Check whether --with-docdir was given.
14033 if test "${with_docdir+set}" = set; then :
14034 withval
=$with_docdir; pcp_doc_dir
=$withval
14036 PACKAGE
=pcp-
${PACKAGE_VERSION}; pcp_doc_dir
=$docdir
14039 pcp_doc_dir
=`eval echo $pcp_doc_dir`
14040 pcp_doc_dir
=`eval echo $pcp_doc_dir`
14044 # Check whether --with-demosdir was given.
14045 if test "${with_demosdir+set}" = set; then :
14046 withval
=$with_demosdir; pcp_demos_dir
=$withval
14048 pcp_demos_dir
=$pcp_share_dir/demos
14053 if test -z "$XCONFIRM"
14055 # Extract the first word of "xconfirm", so it can be a program name with args.
14056 set dummy xconfirm
; ac_word
=$2
14057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14058 $as_echo_n "checking for $ac_word... " >&6; }
14059 if ${ac_cv_path_ac_xconfirm_prog+:} false
; then :
14060 $as_echo_n "(cached) " >&6
14062 case $ac_xconfirm_prog in
14064 ac_cv_path_ac_xconfirm_prog
="$ac_xconfirm_prog" # Let the user override the test with a path.
14067 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
14068 for as_dir
in $PATH
14071 test -z "$as_dir" && as_dir
=.
14072 for ac_exec_ext
in '' $ac_executable_extensions; do
14073 if as_fn_executable_p
"$as_dir/$ac_word$ac_exec_ext"; then
14074 ac_cv_path_ac_xconfirm_prog
="$as_dir/$ac_word$ac_exec_ext"
14075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14082 test -z "$ac_cv_path_ac_xconfirm_prog" && ac_cv_path_ac_xconfirm_prog
="$pcp_bin_dir/pmconfirm"
14086 ac_xconfirm_prog
=$ac_cv_path_ac_xconfirm_prog
14087 if test -n "$ac_xconfirm_prog"; then
14088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_xconfirm_prog" >&5
14089 $as_echo "$ac_xconfirm_prog" >&6; }
14091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14092 $as_echo "no" >&6; }
14097 ac_xconfirm_prog
=$XCONFIRM
14101 if test "$ac_cv_header_fcntl_h" = "yes"
14103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FNDELAY in fcntl.h" >&5
14104 $as_echo_n "checking for FNDELAY in fcntl.h... " >&6; }
14105 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14106 /* end confdefs.h. */
14116 if ac_fn_c_try_compile
"$LINENO"; then :
14118 $as_echo "#define HAVE_FNDELAY 1" >>confdefs.h
14120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14121 $as_echo "yes" >&6; }
14123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14124 $as_echo "no" >&6; }
14126 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14129 if test "$ac_cv_header_libzfs_h" = "yes"
14131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 5-argument style zpool_vdev_name" >&5
14132 $as_echo_n "checking for 5-argument style zpool_vdev_name... " >&6; }
14133 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14134 /* end confdefs.h. */
14135 #include <libzfs.h>
14139 libzfs_handle_t *zh;
14140 zpool_handle_t *zp;
14142 (void) zpool_vdev_name(zh, zp, np, B_FALSE, B_FALSE);
14148 if ac_fn_c_try_compile
"$LINENO"; then :
14150 $as_echo "#define HAVE_ZPOOL_VDEV_NAME_5ARG 1" >>confdefs.h
14152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14153 $as_echo "yes" >&6; }
14155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14156 $as_echo "no" >&6; }
14158 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 4-argument style zpool_vdev_name" >&5
14161 $as_echo_n "checking for 4-argument style zpool_vdev_name... " >&6; }
14162 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14163 /* end confdefs.h. */
14164 #include <libzfs.h>
14168 libzfs_handle_t *zh;
14169 zpool_handle_t *zp;
14171 (void) zpool_vdev_name(zh, zp, np, B_FALSE);
14177 if ac_fn_c_try_compile
"$LINENO"; then :
14179 $as_echo "#define HAVE_ZPOOL_VDEV_NAME_4ARG 1" >>confdefs.h
14181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14182 $as_echo "yes" >&6; }
14184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14185 $as_echo "no" >&6; }
14187 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14190 if test "$do_secure" = "check" -o "$do_secure" = "yes"
14194 saved_CFLAGS
="$CFLAGS"
14195 saved_CPPFLAGS
="$CPPFLAGS"
14196 NSS_INC_DIRS
="-I/usr/include/nss -I/usr/include/nss3"
14197 NSPR_INC_DIRS
="-I/usr/include/nspr -I/usr/include/nspr4"
14198 CFLAGS
="$CFLAGS $NSS_INC_DIRS $NSPR_INC_DIRS"
14199 CPPFLAGS
="$CPPFLAGS $NSS_INC_DIRS $NSPR_INC_DIRS"
14201 for ac_header
in nss
/nss.h
14203 ac_fn_c_check_header_mongrel
"$LINENO" "nss/nss.h" "ac_cv_header_nss_nss_h" "$ac_includes_default"
14204 if test "x$ac_cv_header_nss_nss_h" = xyes
; then :
14205 cat >>confdefs.h
<<_ACEOF
14206 #define HAVE_NSS_NSS_H 1
14208 NSSCFLAGS
=-I/usr
/include
/nss
14211 for ac_header
in nss
3/nss.h
14213 ac_fn_c_check_header_mongrel
"$LINENO" "nss3/nss.h" "ac_cv_header_nss3_nss_h" "$ac_includes_default"
14214 if test "x$ac_cv_header_nss3_nss_h" = xyes
; then :
14215 cat >>confdefs.h
<<_ACEOF
14216 #define HAVE_NSS3_NSS_H 1
14218 NSSCFLAGS
=-I/usr
/include
/nss3
14221 enable_secure
=false
14222 if test "$do_secure" = "yes"
14224 as_fn_error $?
"cannot enable secure sockets mode - no NSS header" "$LINENO" 5
14238 for ac_header
in nspr
/nspr.h
14240 ac_fn_c_check_header_mongrel
"$LINENO" "nspr/nspr.h" "ac_cv_header_nspr_nspr_h" "$ac_includes_default"
14241 if test "x$ac_cv_header_nspr_nspr_h" = xyes
; then :
14242 cat >>confdefs.h
<<_ACEOF
14243 #define HAVE_NSPR_NSPR_H 1
14245 NSPRCFLAGS
=-I/usr
/include
/nspr
14248 for ac_header
in nspr
4/nspr.h
14250 ac_fn_c_check_header_mongrel
"$LINENO" "nspr4/nspr.h" "ac_cv_header_nspr4_nspr_h" "$ac_includes_default"
14251 if test "x$ac_cv_header_nspr4_nspr_h" = xyes
; then :
14252 cat >>confdefs.h
<<_ACEOF
14253 #define HAVE_NSPR4_NSPR_H 1
14255 NSPRCFLAGS
=-I/usr
/include
/nspr4
14258 enable_secure
=false
14259 if test "$do_secure" = "yes"
14261 as_fn_error $?
"cannot enable secure sockets mode - no NSPR header" "$LINENO" 5
14275 for ac_header
in sasl
/sasl.h
14277 ac_fn_c_check_header_mongrel
"$LINENO" "sasl/sasl.h" "ac_cv_header_sasl_sasl_h" "$ac_includes_default"
14278 if test "x$ac_cv_header_sasl_sasl_h" = xyes
; then :
14279 cat >>confdefs.h
<<_ACEOF
14280 #define HAVE_SASL_SASL_H 1
14282 SASLCFLAGS
=-I/usr
/include
/sasl
14285 enable_secure
=false
14286 if test "$do_secure" = "yes"
14288 as_fn_error $?
"cannot enable secure sockets mode - no SASL header" "$LINENO" 5
14297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sasl_server_init in -lsasl2" >&5
14298 $as_echo_n "checking for sasl_server_init in -lsasl2... " >&6; }
14299 if ${ac_cv_lib_sasl2_sasl_server_init+:} false
; then :
14300 $as_echo_n "(cached) " >&6
14302 ac_check_lib_save_LIBS
=$LIBS
14303 LIBS
="-lsasl2 $LIBS"
14304 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14305 /* end confdefs.h. */
14307 /* Override any GCC internal prototype to avoid an error.
14308 Use char because int might match the return type of a GCC
14309 builtin and then its argument prototype would still apply. */
14313 char sasl_server_init ();
14317 return sasl_server_init ();
14322 if ac_fn_c_try_link
"$LINENO"; then :
14323 ac_cv_lib_sasl2_sasl_server_init
=yes
14325 ac_cv_lib_sasl2_sasl_server_init
=no
14327 rm -f core conftest.err conftest.
$ac_objext \
14328 conftest
$ac_exeext conftest.
$ac_ext
14329 LIBS
=$ac_check_lib_save_LIBS
14331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sasl2_sasl_server_init" >&5
14332 $as_echo "$ac_cv_lib_sasl2_sasl_server_init" >&6; }
14333 if test "x$ac_cv_lib_sasl2_sasl_server_init" = xyes
; then :
14334 lib_for_sasl
="-lsasl2"
14337 enable_secure
=false
14338 if test "$do_secure" = "yes"
14340 as_fn_error $?
"cannot enable secure sockets mode - no SASL library" "$LINENO" 5
14347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_ImportFD in -lssl" >&5
14348 $as_echo_n "checking for SSL_ImportFD in -lssl... " >&6; }
14349 if ${ac_cv_lib_ssl_SSL_ImportFD+:} false
; then :
14350 $as_echo_n "(cached) " >&6
14352 ac_check_lib_save_LIBS
=$LIBS
14354 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14355 /* end confdefs.h. */
14357 /* Override any GCC internal prototype to avoid an error.
14358 Use char because int might match the return type of a GCC
14359 builtin and then its argument prototype would still apply. */
14363 char SSL_ImportFD ();
14367 return SSL_ImportFD ();
14372 if ac_fn_c_try_link
"$LINENO"; then :
14373 ac_cv_lib_ssl_SSL_ImportFD
=yes
14375 ac_cv_lib_ssl_SSL_ImportFD
=no
14377 rm -f core conftest.err conftest.
$ac_objext \
14378 conftest
$ac_exeext conftest.
$ac_ext
14379 LIBS
=$ac_check_lib_save_LIBS
14381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_ImportFD" >&5
14382 $as_echo "$ac_cv_lib_ssl_SSL_ImportFD" >&6; }
14383 if test "x$ac_cv_lib_ssl_SSL_ImportFD" = xyes
; then :
14384 lib_for_ssl
="-lssl"
14387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_ImportFD in -lssl3" >&5
14388 $as_echo_n "checking for SSL_ImportFD in -lssl3... " >&6; }
14389 if ${ac_cv_lib_ssl3_SSL_ImportFD+:} false
; then :
14390 $as_echo_n "(cached) " >&6
14392 ac_check_lib_save_LIBS
=$LIBS
14393 LIBS
="-lssl3 $LIBS"
14394 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14395 /* end confdefs.h. */
14397 /* Override any GCC internal prototype to avoid an error.
14398 Use char because int might match the return type of a GCC
14399 builtin and then its argument prototype would still apply. */
14403 char SSL_ImportFD ();
14407 return SSL_ImportFD ();
14412 if ac_fn_c_try_link
"$LINENO"; then :
14413 ac_cv_lib_ssl3_SSL_ImportFD
=yes
14415 ac_cv_lib_ssl3_SSL_ImportFD
=no
14417 rm -f core conftest.err conftest.
$ac_objext \
14418 conftest
$ac_exeext conftest.
$ac_ext
14419 LIBS
=$ac_check_lib_save_LIBS
14421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl3_SSL_ImportFD" >&5
14422 $as_echo "$ac_cv_lib_ssl3_SSL_ImportFD" >&6; }
14423 if test "x$ac_cv_lib_ssl3_SSL_ImportFD" = xyes
; then :
14424 lib_for_ssl
="-lssl3"
14427 enable_secure
=false
14428 if test "$do_secure" = "yes"
14430 as_fn_error $?
"cannot enable secure sockets mode - no SSL library" "$LINENO" 5
14440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSS_Init in -lnss" >&5
14441 $as_echo_n "checking for NSS_Init in -lnss... " >&6; }
14442 if ${ac_cv_lib_nss_NSS_Init+:} false
; then :
14443 $as_echo_n "(cached) " >&6
14445 ac_check_lib_save_LIBS
=$LIBS
14447 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14448 /* end confdefs.h. */
14450 /* Override any GCC internal prototype to avoid an error.
14451 Use char because int might match the return type of a GCC
14452 builtin and then its argument prototype would still apply. */
14460 return NSS_Init ();
14465 if ac_fn_c_try_link
"$LINENO"; then :
14466 ac_cv_lib_nss_NSS_Init
=yes
14468 ac_cv_lib_nss_NSS_Init
=no
14470 rm -f core conftest.err conftest.
$ac_objext \
14471 conftest
$ac_exeext conftest.
$ac_ext
14472 LIBS
=$ac_check_lib_save_LIBS
14474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nss_NSS_Init" >&5
14475 $as_echo "$ac_cv_lib_nss_NSS_Init" >&6; }
14476 if test "x$ac_cv_lib_nss_NSS_Init" = xyes
; then :
14477 lib_for_nss
="-lnss"
14480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSS_Init in -lnss3" >&5
14481 $as_echo_n "checking for NSS_Init in -lnss3... " >&6; }
14482 if ${ac_cv_lib_nss3_NSS_Init+:} false
; then :
14483 $as_echo_n "(cached) " >&6
14485 ac_check_lib_save_LIBS
=$LIBS
14486 LIBS
="-lnss3 $LIBS"
14487 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14488 /* end confdefs.h. */
14490 /* Override any GCC internal prototype to avoid an error.
14491 Use char because int might match the return type of a GCC
14492 builtin and then its argument prototype would still apply. */
14500 return NSS_Init ();
14505 if ac_fn_c_try_link
"$LINENO"; then :
14506 ac_cv_lib_nss3_NSS_Init
=yes
14508 ac_cv_lib_nss3_NSS_Init
=no
14510 rm -f core conftest.err conftest.
$ac_objext \
14511 conftest
$ac_exeext conftest.
$ac_ext
14512 LIBS
=$ac_check_lib_save_LIBS
14514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nss3_NSS_Init" >&5
14515 $as_echo "$ac_cv_lib_nss3_NSS_Init" >&6; }
14516 if test "x$ac_cv_lib_nss3_NSS_Init" = xyes
; then :
14517 lib_for_nss
="-lnss3"
14520 enable_secure
=false
14521 if test "$do_secure" = "yes"
14523 as_fn_error $?
"cannot enable secure sockets mode - no NSS library" "$LINENO" 5
14533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PR_Init in -lnspr" >&5
14534 $as_echo_n "checking for PR_Init in -lnspr... " >&6; }
14535 if ${ac_cv_lib_nspr_PR_Init+:} false
; then :
14536 $as_echo_n "(cached) " >&6
14538 ac_check_lib_save_LIBS
=$LIBS
14539 LIBS
="-lnspr $LIBS"
14540 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14541 /* end confdefs.h. */
14543 /* Override any GCC internal prototype to avoid an error.
14544 Use char because int might match the return type of a GCC
14545 builtin and then its argument prototype would still apply. */
14558 if ac_fn_c_try_link
"$LINENO"; then :
14559 ac_cv_lib_nspr_PR_Init
=yes
14561 ac_cv_lib_nspr_PR_Init
=no
14563 rm -f core conftest.err conftest.
$ac_objext \
14564 conftest
$ac_exeext conftest.
$ac_ext
14565 LIBS
=$ac_check_lib_save_LIBS
14567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nspr_PR_Init" >&5
14568 $as_echo "$ac_cv_lib_nspr_PR_Init" >&6; }
14569 if test "x$ac_cv_lib_nspr_PR_Init" = xyes
; then :
14570 lib_for_nspr
="-lnspr"
14573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PR_Init in -lnspr4" >&5
14574 $as_echo_n "checking for PR_Init in -lnspr4... " >&6; }
14575 if ${ac_cv_lib_nspr4_PR_Init+:} false
; then :
14576 $as_echo_n "(cached) " >&6
14578 ac_check_lib_save_LIBS
=$LIBS
14579 LIBS
="-lnspr4 $LIBS"
14580 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14581 /* end confdefs.h. */
14583 /* Override any GCC internal prototype to avoid an error.
14584 Use char because int might match the return type of a GCC
14585 builtin and then its argument prototype would still apply. */
14598 if ac_fn_c_try_link
"$LINENO"; then :
14599 ac_cv_lib_nspr4_PR_Init
=yes
14601 ac_cv_lib_nspr4_PR_Init
=no
14603 rm -f core conftest.err conftest.
$ac_objext \
14604 conftest
$ac_exeext conftest.
$ac_ext
14605 LIBS
=$ac_check_lib_save_LIBS
14607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nspr4_PR_Init" >&5
14608 $as_echo "$ac_cv_lib_nspr4_PR_Init" >&6; }
14609 if test "x$ac_cv_lib_nspr4_PR_Init" = xyes
; then :
14610 lib_for_nspr
="-lnspr4"
14613 enable_secure
=false
14614 if test "$do_secure" = "yes"
14616 as_fn_error $?
"cannot enable secure sockets mode - no NSPR library" "$LINENO" 5
14626 if test "$enable_secure" = "true"
14629 $as_echo "#define HAVE_SECURE_SOCKETS 1" >>confdefs.h
14634 CPPFLAGS
="$saved_CPPFLAGS"
14635 CFLAGS
="$saved_CFLAGS"
14638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_add_4 in -latomic" >&5
14639 $as_echo_n "checking for __atomic_fetch_add_4 in -latomic... " >&6; }
14640 if ${ac_cv_lib_atomic___atomic_fetch_add_4+:} false
; then :
14641 $as_echo_n "(cached) " >&6
14643 ac_check_lib_save_LIBS
=$LIBS
14644 LIBS
="-latomic $LIBS"
14645 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14646 /* end confdefs.h. */
14648 /* Override any GCC internal prototype to avoid an error.
14649 Use char because int might match the return type of a GCC
14650 builtin and then its argument prototype would still apply. */
14654 char __atomic_fetch_add_4 ();
14658 return __atomic_fetch_add_4 ();
14663 if ac_fn_c_try_link
"$LINENO"; then :
14664 ac_cv_lib_atomic___atomic_fetch_add_4
=yes
14666 ac_cv_lib_atomic___atomic_fetch_add_4
=no
14668 rm -f core conftest.err conftest.
$ac_objext \
14669 conftest
$ac_exeext conftest.
$ac_ext
14670 LIBS
=$ac_check_lib_save_LIBS
14672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_atomic___atomic_fetch_add_4" >&5
14673 $as_echo "$ac_cv_lib_atomic___atomic_fetch_add_4" >&6; }
14674 if test "x$ac_cv_lib_atomic___atomic_fetch_add_4" = xyes
; then :
14675 lib_for_atomic
="-latomic"
14680 if test -f /usr
/include
/sn
/arsess.h
14682 pcp_mpi_dirs
=libpcp_mpi\ libpcp_mpiread
14688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_un in sys/un.h" >&5
14689 $as_echo_n "checking for struct sockaddr_un in sys/un.h... " >&6; }
14690 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14691 /* end confdefs.h. */
14693 #include <sys/types.h>
14694 #ifdef HAVE_SYS_SOCKET_H
14695 #include <sys/socket.h>
14697 #ifdef HAVE_SYS_UN_H
14698 #include <sys/un.h>
14704 struct sockaddr_un sa; sa.sun_family = AF_UNIX;
14709 if ac_fn_c_try_compile
"$LINENO"; then :
14711 $as_echo "#define HAVE_STRUCT_SOCKADDR_UN 1" >>confdefs.h
14712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14713 $as_echo "yes" >&6; }
14715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14716 $as_echo "no" >&6; }
14718 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct ucred in sys/socket.h" >&5
14721 $as_echo_n "checking for struct ucred in sys/socket.h... " >&6; }
14722 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14723 /* end confdefs.h. */
14725 #include <sys/types.h>
14726 #ifdef HAVE_SYS_SOCKET_H
14727 #include <sys/socket.h>
14729 #ifdef HAVE_SYS_UN_H
14730 #include <sys/un.h>
14736 struct ucred ucred; ucred.uid = 0;
14741 if ac_fn_c_try_compile
"$LINENO"; then :
14743 $as_echo "#define HAVE_STRUCT_UCRED 1" >>confdefs.h
14744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14745 $as_echo "yes" >&6; }
14747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14748 $as_echo "no" >&6; }
14750 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in time.h" >&5
14753 $as_echo_n "checking for struct timespec in time.h... " >&6; }
14754 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14755 /* end confdefs.h. */
14762 struct timespec foo;
14767 if ac_fn_c_try_compile
"$LINENO"; then :
14769 $as_echo "#define HAVE_STRUCT_TIMESPEC 1" >>confdefs.h
14770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14771 $as_echo "yes" >&6; }
14773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14774 $as_echo "no" >&6; }
14776 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for altzone in time.h" >&5
14779 $as_echo_n "checking for altzone in time.h... " >&6; }
14780 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14781 /* end confdefs.h. */
14788 time_t az = altzone;
14793 if ac_fn_c_try_compile
"$LINENO"; then :
14795 $as_echo "#define HAVE_ALTZONE 1" >>confdefs.h
14796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14797 $as_echo "yes" >&6; }
14799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14800 $as_echo "no" >&6; }
14802 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strftime knows about %z" >&5
14805 $as_echo_n "checking if strftime knows about %z... " >&6; }
14806 if test "$cross_compiling" = yes; then :
14807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14808 $as_echo "no" >&6; }
14810 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14811 /* end confdefs.h. */
14816 time_t t = time(NULL);
14817 struct tm * t1 = localtime (&t);
14818 if (strftime (b, 32, "%z", t1) < 3)
14820 if (strcmp(b, "%z") == 0)
14826 if ac_fn_c_try_run
"$LINENO"; then :
14828 $as_echo "#define HAVE_STRFTIME_z 1" >>confdefs.h
14829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14830 $as_echo "yes" >&6; }
14832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14833 $as_echo "no" >&6; }
14835 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
14836 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
14840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r returns char *" >&5
14841 $as_echo_n "checking if strerror_r returns char *... " >&6; }
14842 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14843 /* end confdefs.h. */
14844 #include <string.h>
14848 strerror_r(0, NULL, 0)[0];
14853 if ac_fn_c_try_compile
"$LINENO"; then :
14855 $as_echo "#define HAVE_STRERROR_R_PTR 1" >>confdefs.h
14856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14857 $as_echo "yes" >&6; }
14859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14860 $as_echo "no" >&6; }
14862 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
14868 ac_fn_c_check_func
"$LINENO" "readline" "ac_cv_func_readline"
14869 if test "x$ac_cv_func_readline" = xyes
; then :
14873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
14874 $as_echo_n "checking for readline in -lreadline... " >&6; }
14875 if ${ac_cv_lib_readline_readline+:} false
; then :
14876 $as_echo_n "(cached) " >&6
14878 ac_check_lib_save_LIBS
=$LIBS
14879 LIBS
="-lreadline $LIBS"
14880 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14881 /* end confdefs.h. */
14883 /* Override any GCC internal prototype to avoid an error.
14884 Use char because int might match the return type of a GCC
14885 builtin and then its argument prototype would still apply. */
14893 return readline ();
14898 if ac_fn_c_try_link
"$LINENO"; then :
14899 ac_cv_lib_readline_readline
=yes
14901 ac_cv_lib_readline_readline
=no
14903 rm -f core conftest.err conftest.
$ac_objext \
14904 conftest
$ac_exeext conftest.
$ac_ext
14905 LIBS
=$ac_check_lib_save_LIBS
14907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
14908 $as_echo "$ac_cv_lib_readline_readline" >&6; }
14909 if test "x$ac_cv_lib_readline_readline" = xyes
; then :
14910 cat >>confdefs.h
<<_ACEOF
14911 #define HAVE_LIBREADLINE 1
14914 LIBS
="-lreadline $LIBS"
14918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for add_history in -lreadline" >&5
14919 $as_echo_n "checking for add_history in -lreadline... " >&6; }
14920 if ${ac_cv_lib_readline_add_history+:} false
; then :
14921 $as_echo_n "(cached) " >&6
14923 ac_check_lib_save_LIBS
=$LIBS
14924 LIBS
="-lreadline -lcurses $LIBS"
14925 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
14926 /* end confdefs.h. */
14928 /* Override any GCC internal prototype to avoid an error.
14929 Use char because int might match the return type of a GCC
14930 builtin and then its argument prototype would still apply. */
14934 char add_history ();
14938 return add_history ();
14943 if ac_fn_c_try_link
"$LINENO"; then :
14944 ac_cv_lib_readline_add_history
=yes
14946 ac_cv_lib_readline_add_history
=no
14948 rm -f core conftest.err conftest.
$ac_objext \
14949 conftest
$ac_exeext conftest.
$ac_ext
14950 LIBS
=$ac_check_lib_save_LIBS
14952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_add_history" >&5
14953 $as_echo "$ac_cv_lib_readline_add_history" >&6; }
14954 if test "x$ac_cv_lib_readline_add_history" = xyes
; then :
14955 cat >>confdefs.h
<<_ACEOF
14956 #define HAVE_LIBREADLINE 1
14959 LIBS
="-lreadline $LIBS"
14969 if test $ac_cv_func_readline = yes
14972 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
14974 elif test $ac_cv_lib_readline_readline = yes
14977 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
14979 lib_for_readline
=-lreadline
14980 elif test $ac_cv_lib_readline_add_history = yes
14983 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
14985 lib_for_curses
=-lcurses
14986 lib_for_readline
=-lreadline
14994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib" >&5
14995 $as_echo_n "checking for zlib... " >&6; }
14997 if test -n "$zlib_CFLAGS"; then
14998 pkg_cv_zlib_CFLAGS
="$zlib_CFLAGS"
14999 elif test -n "$PKG_CONFIG"; then
15000 if test -n "$PKG_CONFIG" && \
15001 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib >= 1.0.0\""; } >&5
15002 ($PKG_CONFIG --exists --print-errors "zlib >= 1.0.0") 2>&5
15004 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15005 test $ac_status = 0; }; then
15006 pkg_cv_zlib_CFLAGS
=`$PKG_CONFIG --cflags "zlib >= 1.0.0" 2>/dev/null`
15007 test "x$?" != "x0" && pkg_failed
=yes
15014 if test -n "$zlib_LIBS"; then
15015 pkg_cv_zlib_LIBS
="$zlib_LIBS"
15016 elif test -n "$PKG_CONFIG"; then
15017 if test -n "$PKG_CONFIG" && \
15018 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib >= 1.0.0\""; } >&5
15019 ($PKG_CONFIG --exists --print-errors "zlib >= 1.0.0") 2>&5
15021 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15022 test $ac_status = 0; }; then
15023 pkg_cv_zlib_LIBS
=`$PKG_CONFIG --libs "zlib >= 1.0.0" 2>/dev/null`
15024 test "x$?" != "x0" && pkg_failed
=yes
15034 if test $pkg_failed = yes; then
15035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15036 $as_echo "no" >&6; }
15038 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15039 _pkg_short_errors_supported
=yes
15041 _pkg_short_errors_supported
=no
15043 if test $_pkg_short_errors_supported = yes; then
15044 zlib_PKG_ERRORS
=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "zlib >= 1.0.0" 2>&1`
15046 zlib_PKG_ERRORS
=`$PKG_CONFIG --print-errors --cflags --libs "zlib >= 1.0.0" 2>&1`
15048 # Put the nasty error message in config.log where it belongs
15049 echo "$zlib_PKG_ERRORS" >&5
15052 elif test $pkg_failed = untried
; then
15053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15054 $as_echo "no" >&6; }
15057 zlib_CFLAGS
=$pkg_cv_zlib_CFLAGS
15058 zlib_LIBS
=$pkg_cv_zlib_LIBS
15059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15060 $as_echo "yes" >&6; }
15063 HAVE_ZLIB
=$have_zlib
15066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AI_ADDRCONFIG" >&5
15067 $as_echo_n "checking for AI_ADDRCONFIG... " >&6; }
15068 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
15069 /* end confdefs.h. */
15072 int test = AI_ADDRCONFIG;
15083 if ac_fn_c_try_compile
"$LINENO"; then :
15085 $as_echo "#define HAVE_AI_ADDRCONFIG 1" >>confdefs.h
15086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15087 $as_echo "yes" >&6; }
15089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15090 $as_echo "no" >&6; }
15092 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
15096 if test -f .
/build
/tar
/parfait.
tar.gz
15098 { $as_echo "$as_me:${as_lineno-$LINENO}: adding Parfait package to the build" >&5
15099 $as_echo "$as_me: adding Parfait package to the build" >&6;}
15105 if test -f .
/build
/tar
/vector.
tar.gz
15107 { $as_echo "$as_me:${as_lineno-$LINENO}: adding Vector webapp to the build" >&5
15108 $as_echo "$as_me: adding Vector webapp to the build" >&6;}
15114 if test -f .
/build
/tar
/webjs.
tar.gz
15116 { $as_echo "$as_me:${as_lineno-$LINENO}: adding webjs webapps to the build" >&5
15117 $as_echo "$as_me: adding webjs webapps to the build" >&6;}
15125 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"
15127 cat >confcache
<<\_ACEOF
15128 # This file is a shell script that caches the results of configure
15129 # tests run on this system so they can be shared between configure
15130 # scripts and configure runs, see configure's option --config-cache.
15131 # It is not useful on other systems. If it contains results you don't
15132 # want to keep, you may remove or edit it.
15134 # config.status only pays attention to the cache file if you give it
15135 # the --recheck option to rerun configure.
15137 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15138 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15139 # following values.
15143 # The following way of writing the cache mishandles newlines in values,
15144 # but we know of no workaround that is simple, portable, and efficient.
15145 # So, we kill variables containing newlines.
15146 # Ultrix sh set writes to stderr and can't be redirected directly,
15147 # and sets the high bit in the cache file unless we assign to the vars.
15149 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15150 eval ac_val
=\$
$ac_var
15154 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15155 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15158 _ | IFS | as_nl
) ;; #(
15159 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
15160 *) { eval $ac_var=; unset $ac_var;} ;;
15166 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15167 *${as_nl}ac_space
=\
*)
15168 # `set' does not quote correctly, so add quotes: double-quote
15169 # substitution turns \\\\ into \\, and sed turns \\ into \.
15172 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15175 # `set' quotes correctly as required by POSIX, so do not add quotes.
15176 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15185 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15187 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15189 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
15190 if test -w "$cache_file"; then
15191 if test "x$cache_file" != "x/dev/null"; then
15192 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15193 $as_echo "$as_me: updating cache $cache_file" >&6;}
15194 if test ! -f "$cache_file" ||
test -h "$cache_file"; then
15195 cat confcache
>"$cache_file"
15197 case $cache_file in #(
15199 mv -f confcache
"$cache_file"$$
&&
15200 mv -f "$cache_file"$$
"$cache_file" ;; #(
15202 mv -f confcache
"$cache_file" ;;
15207 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15208 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15213 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
15214 # Let make expand exec_prefix.
15215 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
15217 DEFS
=-DHAVE_CONFIG_H
15222 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
15223 # 1. Remove the extension, and $U if already installed.
15224 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
15225 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
15226 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15227 # will be set to the directory where LIBOBJS objects are built.
15228 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15229 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
15231 LIBOBJS
=$ac_libobjs
15233 LTLIBOBJS
=$ac_ltlibobjs
15237 : "${CONFIG_STATUS=./config.status}"
15239 ac_clean_files_save
=$ac_clean_files
15240 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
15241 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15242 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15244 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15246 # Generated by $as_me.
15247 # Run this file to recreate the current configuration.
15248 # Compiler output produced by configure, useful for debugging
15249 # configure, is in config.log if it exists.
15252 ac_cs_recheck=false
15255 SHELL=\${CONFIG_SHELL-$SHELL}
15258 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
15259 ## -------------------- ##
15260 ## M4sh Initialization. ##
15261 ## -------------------- ##
15263 # Be more Bourne compatible
15264 DUALCASE
=1; export DUALCASE
# for MKS sh
15265 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
15268 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15269 # is contrary to our usage. Disable this feature.
15270 alias -g '${1+"$@"}'='"$@"'
15271 setopt NO_GLOB_SUBST
15273 case `(set -o) 2>/dev/null` in #(
15285 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15286 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15287 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15288 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15289 # Prefer a ksh shell builtin over an external printf program on Solaris,
15290 # but without wasting forks for bash or zsh.
15291 if test -z "$BASH_VERSION$ZSH_VERSION" \
15292 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15293 as_echo='print
-r --'
15294 as_echo_n='print
-rn --'
15295 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15296 as_echo='printf %s
\n'
15297 as_echo_n='printf %s
'
15299 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15300 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
15301 as_echo_n='/usr
/ucb
/echo -n'
15303 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15304 as_echo_n_body='eval
15308 expr "X$arg" : "X\\(.*\\)$as_nl";
15309 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15311 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
15313 export as_echo_n_body
15314 as_echo_n='sh
-c $as_echo_n_body as_echo
'
15316 export as_echo_body
15317 as_echo='sh
-c $as_echo_body as_echo
'
15320 # The user is always right.
15321 if test "${PATH_SEPARATOR+set}" != set; then
15323 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15324 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15331 # We need space, tab and new line, in precisely that order. Quoting is
15332 # there to prevent editors from complaining about space-tab.
15333 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15334 # splitting by setting IFS to empty value.)
15337 # Find who we are. Look in the path if we contain no directory separator.
15340 *[\\/]* ) as_myself=$0 ;;
15341 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15342 for as_dir in $PATH
15345 test -z "$as_dir" && as_dir=.
15346 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15352 # We did not find ourselves, most probably we were run as `sh COMMAND'
15353 # in which case we are not to be found in the path.
15354 if test "x$as_myself" = x
; then
15357 if test ! -f "$as_myself"; then
15358 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15362 # Unset variables that we do not need and which cause bugs (e.g. in
15363 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15364 # suppresses any "Segmentation fault" message there. '((' could
15365 # trigger a bug in pdksh 5.2.14.
15366 for as_var
in BASH_ENV ENV MAIL MAILPATH
15367 do eval test x\
${$as_var+set} = xset \
15368 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
15381 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
15384 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15385 # ----------------------------------------
15386 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15387 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15388 # script with STATUS, using 1 if that was 0.
15391 as_status
=$1; test $as_status -eq 0 && as_status
=1
15393 as_lineno
=${as_lineno-"$3"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
15394 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15396 $as_echo "$as_me: error: $2" >&2
15397 as_fn_exit
$as_status
15401 # as_fn_set_status STATUS
15402 # -----------------------
15403 # Set $? to STATUS, without forking.
15404 as_fn_set_status
()
15407 } # as_fn_set_status
15409 # as_fn_exit STATUS
15410 # -----------------
15411 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15415 as_fn_set_status
$1
15421 # Portably unset VAR.
15424 { eval $1=; unset $1;}
15426 as_unset
=as_fn_unset
15427 # as_fn_append VAR VALUE
15428 # ----------------------
15429 # Append the text in VALUE to the end of the definition contained in VAR. Take
15430 # advantage of any shell optimizations that allow amortized linear growth over
15431 # repeated appends, instead of the typical quadratic growth present in naive
15433 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
15434 eval 'as_fn_append ()
15445 # as_fn_arith ARG...
15446 # ------------------
15447 # Perform arithmetic evaluation on the ARGs, and store the result in the
15448 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15449 # must be portable across $(()) and expr.
15450 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
15451 eval 'as_fn_arith ()
15458 as_val
=`expr "$@" || test $? -eq 1`
15463 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
15464 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
15470 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15471 as_basename
=basename
15476 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
15482 as_me
=`$as_basename -- "$0" ||
15483 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15484 X"$0" : 'X\(//\)$' \| \
15485 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15487 sed '/^.*\/\([^/][^/]*\)\/*$/{
15501 # Avoid depending upon Character Ranges.
15502 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
15503 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15504 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
15505 as_cr_digits
='0123456789'
15506 as_cr_alnum
=$as_cr_Letters$as_cr_digits
15508 ECHO_C
= ECHO_N
= ECHO_T
=
15509 case `echo -n x` in #(((((
15511 case `echo 'xy\c'` in
15512 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
15514 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
15521 rm -f conf$$ conf$$.exe conf$$.
file
15522 if test -d conf$$.dir
; then
15523 rm -f conf$$.dir
/conf$$.
file
15526 mkdir conf$$.dir
2>/dev
/null
15528 if (echo >conf$$.
file) 2>/dev
/null
; then
15529 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
15531 # ... but there are two gotchas:
15532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15534 # In both cases, we have to default to `cp -pR'.
15535 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
15537 elif ln conf$$.
file conf$$
2>/dev
/null
; then
15545 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
15546 rmdir conf$$.dir
2>/dev
/null
15551 # Create "$as_dir" as a directory, including parents if necessary.
15556 -*) as_dir
=.
/$as_dir;;
15558 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
15562 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15563 *) as_qdir
=$as_dir;;
15565 as_dirs
="'$as_qdir' $as_dirs"
15566 as_dir
=`$as_dirname -- "$as_dir" ||
15567 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15568 X"$as_dir" : 'X\(//\)[^/]' \| \
15569 X"$as_dir" : 'X\(//\)$' \| \
15570 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15571 $as_echo X"$as_dir" |
15572 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15576 /^X\(\/\/\)[^/].*/{
15589 test -d "$as_dir" && break
15591 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
15592 } ||
test -d "$as_dir" || as_fn_error $?
"cannot create directory $as_dir"
15596 if mkdir
-p .
2>/dev
/null
; then
15597 as_mkdir_p
='mkdir -p "$as_dir"'
15599 test -d .
/-p && rmdir .
/-p
15604 # as_fn_executable_p FILE
15605 # -----------------------
15606 # Test if FILE is an executable regular file.
15607 as_fn_executable_p
()
15609 test -f "$1" && test -x "$1"
15610 } # as_fn_executable_p
15611 as_test_x
='test -x'
15612 as_executable_p
=as_fn_executable_p
15614 # Sed expression to map a string onto a valid CPP name.
15615 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15617 # Sed expression to map a string onto a valid variable name.
15618 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15622 ## ----------------------------------- ##
15623 ## Main body of $CONFIG_STATUS script. ##
15624 ## ----------------------------------- ##
15626 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
15628 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15629 # Save the log message, to keep $0 and so on meaningful, and to
15630 # report actual input values of CONFIG_FILES etc. instead of their
15631 # values after options handling.
15633 This file was extended by $as_me, which was
15634 generated by GNU Autoconf 2.69. Invocation command line was
15636 CONFIG_FILES = $CONFIG_FILES
15637 CONFIG_HEADERS = $CONFIG_HEADERS
15638 CONFIG_LINKS = $CONFIG_LINKS
15639 CONFIG_COMMANDS = $CONFIG_COMMANDS
15642 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15647 case $ac_config_files in *"
15648 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
15651 case $ac_config_headers in *"
15652 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
15656 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15657 # Files that config.status was made for.
15658 config_files="$ac_config_files"
15659 config_headers="$ac_config_headers"
15663 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15665 \`$as_me' instantiates files and other configuration actions
15666 from templates according to the current configuration. Unless the files
15667 and actions are specified as TAGs, all are instantiated by default.
15669 Usage: $0 [OPTION]... [TAG]...
15671 -h, --help print this help, then exit
15672 -V, --version print version number and configuration settings, then exit
15673 --config print configuration, then exit
15674 -q, --quiet, --silent
15675 do not print progress messages
15676 -d, --debug don't remove temporary files
15677 --recheck update $as_me by reconfiguring in the same conditions
15678 --file=FILE[:TEMPLATE]
15679 instantiate the configuration file FILE
15680 --header=FILE[:TEMPLATE]
15681 instantiate the configuration header FILE
15683 Configuration files:
15686 Configuration headers:
15689 Report bugs to the package provider."
15692 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15693 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15696 configured by $0, generated by GNU Autoconf 2.69,
15697 with options \\"\$ac_cs_config\\"
15699 Copyright (C) 2012 Free Software Foundation, Inc.
15700 This config.status script is free software; the Free Software Foundation
15701 gives unlimited permission to copy, distribute and modify it."
15705 test -n "\$AWK" || AWK=awk
15708 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15709 # The default lists apply if the user does not specify any file.
15715 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
15716 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
15720 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
15732 # Handling of the options.
15733 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
15735 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
15736 $as_echo "$ac_cs_version"; exit ;;
15737 --config |
--confi |
--conf |
--con |
--co |
--c )
15738 $as_echo "$ac_cs_config"; exit ;;
15739 --debug |
--debu |
--deb |
--de |
--d |
-d )
15741 --file |
--fil |
--fi |
--f )
15744 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15745 '') as_fn_error $?
"missing file argument" ;;
15747 as_fn_append CONFIG_FILES
" '$ac_optarg'"
15748 ac_need_defaults
=false
;;
15749 --header |
--heade |
--head |
--hea )
15752 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15754 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
15755 ac_need_defaults
=false
;;
15757 # Conflict between --help and --header
15758 as_fn_error $?
"ambiguous option: \`$1'
15759 Try \`$0 --help' for more information.";;
15760 --help |
--hel |
-h )
15761 $as_echo "$ac_cs_usage"; exit ;;
15762 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
15763 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
15766 # This is an error.
15767 -*) as_fn_error $?
"unrecognized option: \`$1'
15768 Try \`$0 --help' for more information." ;;
15770 *) as_fn_append ac_config_targets
" $1"
15771 ac_need_defaults
=false
;;
15777 ac_configure_extra_args
=
15779 if $ac_cs_silent; then
15781 ac_configure_extra_args
="$ac_configure_extra_args --silent"
15785 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15786 if \$ac_cs_recheck; then
15787 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15789 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15790 CONFIG_SHELL='$SHELL'
15791 export CONFIG_SHELL
15796 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15800 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15801 ## Running $as_me. ##
15807 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15810 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
15812 # Handling of arguments.
15813 for ac_config_target
in $ac_config_targets
15815 case $ac_config_target in
15816 "src/include/pcp/config.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/include/pcp/config.h" ;;
15817 "src/include/pcp/configsz.h") CONFIG_HEADERS
="$CONFIG_HEADERS src/include/pcp/configsz.h" ;;
15818 "src/include/pcp/platform_defs.h") CONFIG_FILES
="$CONFIG_FILES src/include/pcp/platform_defs.h" ;;
15819 "src/include/builddefs") CONFIG_FILES
="$CONFIG_FILES src/include/builddefs" ;;
15820 "src/include/pcp.conf") CONFIG_FILES
="$CONFIG_FILES src/include/pcp.conf" ;;
15821 "pcp.lsm") CONFIG_FILES
="$CONFIG_FILES pcp.lsm" ;;
15822 "debian/pcp.preinst.head") CONFIG_FILES
="$CONFIG_FILES debian/pcp.preinst.head" ;;
15823 "debian/pcp.postinst.head") CONFIG_FILES
="$CONFIG_FILES debian/pcp.postinst.head" ;;
15824 "build/tar/preinstall.head") CONFIG_FILES
="$CONFIG_FILES build/tar/preinstall.head" ;;
15825 "build/tar/postinstall.head") CONFIG_FILES
="$CONFIG_FILES build/tar/postinstall.head" ;;
15826 "build/GNUlocaldefs") CONFIG_FILES
="$CONFIG_FILES build/GNUlocaldefs" ;;
15827 "build/mac/uninstall-pcp") CONFIG_FILES
="$CONFIG_FILES build/mac/uninstall-pcp" ;;
15829 *) as_fn_error $?
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15834 # If the user did not use the arguments to specify the items to instantiate,
15835 # then the envvar interface is used. Set only those that are not.
15836 # We use the long form for the default assignment because of an extremely
15837 # bizarre bug on SunOS 4.1.3.
15838 if $ac_need_defaults; then
15839 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
15840 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
15843 # Have a temporary directory for convenience. Make it in the build tree
15844 # simply because there is no reason against having it here, and in addition,
15845 # creating and moving files from /tmp can sometimes cause problems.
15846 # Hook for its removal unless debugging.
15847 # Note that there is a small window in which the directory will not be cleaned:
15848 # after its creation but before its name has been assigned to `$tmp'.
15852 trap 'exit_status=$?
15853 : "${ac_tmp:=$tmp}"
15854 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15856 trap 'as_fn_exit 1' 1 2 13 15
15858 # Create a (secure) tmp directory for tmp files.
15861 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15865 tmp
=.
/conf$$
-$RANDOM
15866 (umask 077 && mkdir
"$tmp")
15867 } || as_fn_error $?
"cannot create a temporary directory in ." "$LINENO" 5
15870 # Set up the scripts for CONFIG_FILES section.
15871 # No need to generate them if there are no CONFIG_FILES.
15872 # This happens for instance with `./config.status config.h'.
15873 if test -n "$CONFIG_FILES"; then
15876 ac_cr
=`echo X | tr X '\015'`
15877 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15878 # But we know of no other shell where ac_cr would be empty at this
15879 # point, so we can use a bashism as a fallback.
15880 if test "x$ac_cr" = x
; then
15881 eval ac_cr
=\$
\'\\r
\'
15883 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15884 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15887 ac_cs_awk_cr
=$ac_cr
15890 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15895 echo "cat >conf$$subs.awk <<_ACEOF" &&
15896 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15898 } >conf$$subs.sh ||
15899 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
15900 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15902 for ac_last_try in false false false false false :; do
15903 . ./conf$$subs.sh ||
15904 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
15906 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
15907 if test $ac_delim_n = $ac_delim_num; then
15909 elif $ac_last_try; then
15910 as_fn_error $? "could not
make $CONFIG_STATUS" "$LINENO" 5
15912 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
15915 rm -f conf$$subs.sh
15917 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15918 cat >>"\
$ac_tmp/subs1.
awk" <<\\_ACAWK &&
15922 s/^/S["/; s
/!.
*/"]=/
15932 s/\(.\{148\}\)..*/\1/
15934 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
15939 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
15946 s/\(.\{148\}\)..*/\1/
15948 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
15952 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
15957 ' <conf$$subs.awk | sed '
15962 ' >>$CONFIG_STATUS || ac_write_fail=1
15963 rm -f conf$$subs.awk
15964 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15966 cat >>"\
$ac_tmp/subs1.
awk" <<_ACAWK &&
15967 for (key in S) S_is_set[key] = 1
15973 nfields = split(line, field, "@
")
15975 len = length(field[1])
15976 for (i = 2; i < nfields; i++) {
15978 keylen = length(key)
15979 if (S_is_set[key]) {
15981 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15982 len += length(value) + length(field[++i])
15993 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15994 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15995 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
15998 fi < "$ac_tmp/subs1.
awk" > "$ac_tmp/subs.
awk" \
15999 || as_fn_error $? "could not setup config files machinery
" "$LINENO" 5
16002 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16003 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".
", strip leading and
16004 # trailing colons and then remove the whole line if VPATH becomes empty
16005 # (actually we leave an empty line to preserve line numbers).
16006 if test "x
$srcdir" = x.; then
16007 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16025 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16026 fi # test -n "$CONFIG_FILES"
16028 # Set up the scripts for CONFIG_HEADERS section.
16029 # No need to generate them if there are no CONFIG_HEADERS.
16030 # This happens for instance with `./config.status Makefile'.
16031 if test -n "$CONFIG_HEADERS"; then
16032 cat >"$ac_tmp/defines.
awk" <<\_ACAWK ||
16036 # Transform confdefs.h into an awk script `defines.awk', embedded as
16037 # here-document in config.status, that substitutes the proper values into
16038 # config.h.in to produce config.h.
16040 # Create a delimiter string that does not exist in confdefs.h, to ease
16041 # handling of long lines.
16043 for ac_last_try in false false :; do
16044 ac_tt=`sed -n "/$ac_delim/p
" confdefs.h`
16045 if test -z "$ac_tt"; then
16047 elif $ac_last_try; then
16048 as_fn_error $? "could not
make $CONFIG_HEADERS" "$LINENO" 5
16050 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
16054 # For the awk script, D is an array of macro values keyed by name,
16055 # likewise P contains macro parameters if any. Preserve backslash
16056 # newline sequences.
16058 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16060 s/.\{148\}/&'"$ac_delim"'/g
16063 s/^[ ]*#[ ]*define[ ][ ]*/ /
16070 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
16072 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
16076 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
16077 D["\
1"]=" \
3\\\\\\n
"\\/p
16079 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
16084 s/.\{148\}/&'"$ac_delim"'/g
16089 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
16092 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
16094 ' <confdefs.h | sed '
16095 s/'"$ac_delim"'/"\\\
16096 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16098 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16099 for (key in D) D_is_set[key] = 1
16102 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16104 split(line, arg, " ")
16105 if (arg[1] == "#") {
16109 defundef
= substr
(arg
[1], 2)
16112 split(mac1
, mac2
, "(") #)
16114 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
16115 if (D_is_set
[macro
]) {
16116 # Preserve the white space surrounding the "#".
16117 print prefix
"define", macro P
[macro
] D
[macro
]
16120 # Replace #undef with comments. This is necessary, for example,
16121 # in the case of _POSIX_SOURCE, which is predefined and required
16122 # on some systems where configure will not decide to define it.
16123 if (defundef
== "undef") {
16124 print
"/*", prefix defundef
, macro
, "*/"
16132 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16133 as_fn_error $?
"could not setup config headers machinery" "$LINENO" 5
16134 fi # test -n "$CONFIG_HEADERS"
16137 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS "
16142 :[FHLC
]) ac_mode
=$ac_tag; continue;;
16144 case $ac_mode$ac_tag in
16146 :L
* |
:C
*:*) as_fn_error $?
"invalid tag \`$ac_tag'" "$LINENO" 5;;
16147 :[FH
]-) ac_tag
=-:-;;
16148 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
16165 -) ac_f
="$ac_tmp/stdin";;
16166 *) # Look for the file first in the build tree, then in the source tree
16167 # (if the path is not absolute). The absolute path cannot be DOS-style,
16168 # because $ac_f cannot contain `:'.
16172 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
16174 as_fn_error
1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16176 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16177 as_fn_append ac_file_inputs
" '$ac_f'"
16180 # Let's still pretend it is `configure' which instantiates (i.e., don't
16181 # use $as_me), people would be surprised to read:
16182 # /* config.h. Generated by config.status. */
16183 configure_input
='Generated from '`
16184 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16186 if test x
"$ac_file" != x-
; then
16187 configure_input
="$ac_file. $configure_input"
16188 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16189 $as_echo "$as_me: creating $ac_file" >&6;}
16191 # Neutralize special characters interpreted by sed in replacement strings.
16192 case $configure_input in #(
16193 *\
&* |
*\|
* |
*\\* )
16194 ac_sed_conf_input
=`$as_echo "$configure_input" |
16195 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16196 *) ac_sed_conf_input
=$configure_input;;
16200 *:-:* |
*:-) cat >"$ac_tmp/stdin" \
16201 || as_fn_error $?
"could not create $ac_file" "$LINENO" 5 ;;
16206 ac_dir
=`$as_dirname -- "$ac_file" ||
16207 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16208 X"$ac_file" : 'X\(//\)[^/]' \| \
16209 X"$ac_file" : 'X\(//\)$' \| \
16210 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16211 $as_echo X"$ac_file" |
16212 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16216 /^X\(\/\/\)[^/].*/{
16229 as_dir
="$ac_dir"; as_fn_mkdir_p
16233 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
16235 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16236 # A ".." for each directory in $ac_dir_suffix.
16237 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16238 case $ac_top_builddir_sub in
16239 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
16240 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
16243 ac_abs_top_builddir
=$ac_pwd
16244 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
16245 # for backward compatibility:
16246 ac_top_builddir
=$ac_top_build_prefix
16249 .
) # We are building in place.
16251 ac_top_srcdir
=$ac_top_builddir_sub
16252 ac_abs_top_srcdir
=$ac_pwd ;;
16253 [\\/]* | ?
:[\\/]* ) # Absolute name.
16254 ac_srcdir
=$srcdir$ac_dir_suffix;
16255 ac_top_srcdir
=$srcdir
16256 ac_abs_top_srcdir
=$srcdir ;;
16257 *) # Relative name.
16258 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
16259 ac_top_srcdir
=$ac_top_build_prefix$srcdir
16260 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
16262 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
16273 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16274 # If the template does not know about datarootdir, expand it.
16275 # FIXME: This hack should be removed a few years after 2.60.
16276 ac_datarootdir_hack
=; ac_datarootdir_seen
=
16287 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16288 *datarootdir
*) ac_datarootdir_seen
=yes;;
16289 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
16290 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16291 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16293 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16294 ac_datarootdir_hack='
16295 s&@datadir@&$datadir&g
16296 s&@docdir@&$docdir&g
16297 s&@infodir@&$infodir&g
16298 s&@localedir@&$localedir&g
16299 s&@mandir@&$mandir&g
16300 s&\\\${datarootdir}&$datarootdir&g' ;;
16304 # Neutralize VPATH when `$srcdir' = `.'.
16305 # Shell code in configure.ac might set extrasub.
16306 # FIXME: do we really want to maintain this feature?
16307 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16308 ac_sed_extra="$ac_vpsub
16311 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
16313 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
16314 s|@configure_input@|
$ac_sed_conf_input|
;t t
16315 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
16316 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
16317 s
&@srcdir@
&$ac_srcdir&;t t
16318 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
16319 s
&@top_srcdir@
&$ac_top_srcdir&;t t
16320 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
16321 s
&@builddir@
&$ac_builddir&;t t
16322 s
&@abs_builddir@
&$ac_abs_builddir&;t t
16323 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
16324 $ac_datarootdir_hack
16326 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.
awk" \
16327 >$ac_tmp/out || as_fn_error $? "could not create
$ac_file" "$LINENO" 5
16329 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16330 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out
"`; test -n "$ac_out"; } &&
16331 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16332 "$ac_tmp/out
"`; test -z "$ac_out"; } &&
16333 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
16334 which seems to be undefined. Please make sure it is defined" >&5
16335 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
16336 which seems to be undefined. Please make sure it is defined" >&2;}
16338 rm -f "$ac_tmp/stdin"
16340 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16341 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16343 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16349 if test x"$ac_file" != x-; then
16351 $as_echo "/* $configure_input */" \
16352 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16353 } >"$ac_tmp/config.h" \
16354 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16355 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16356 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16357 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16360 mv "$ac_tmp/config.h" "$ac_file" \
16361 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16364 $as_echo "/* $configure_input */" \
16365 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16366 || as_fn_error $? "could not create -" "$LINENO" 5
16378 ac_clean_files=$ac_clean_files_save
16380 test $ac_write_fail = 0 ||
16381 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16384 # configure is writing to config.log, and then calls config.status.
16385 # config.status does its own redirection, appending to config.log.
16386 # Unfortunately, on DOS this fails, as config.log is still kept open
16387 # by configure, so config.status won't be able to
write to it
; its
16388 # output is simply discarded. So we exec the FD to /dev/null,
16389 # effectively closing config.log, so it can be properly (re)opened and
16390 # appended to by config.status. When coming back to configure, we
16391 # need to make the FD available again.
16392 if test "$no_create" != yes; then
16394 ac_config_status_args
=
16395 test "$silent" = yes &&
16396 ac_config_status_args
="$ac_config_status_args --quiet"
16398 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
16400 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16401 # would make configure fail if this is the last instruction.
16402 $ac_cs_success || as_fn_exit
1
16404 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
16405 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16406 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}