RHBZ 1403095, RHBZ 1411720: Archive interp mode performance:
[pcp.git] / configure
bloba4a1140a905f1bf001d533f7cfc60b68d49583e1
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
174 esac
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
190 else
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202 else
203 as_have_required=no
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
207 else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209 as_found=false
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 break 2
227 done;;
228 esac
229 as_found=false
230 done
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234 fi; }
235 IFS=$as_save_IFS
238 if test "x$CONFIG_SHELL" != x; then :
239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
244 BASH_ENV=/dev/null
245 ENV=/dev/null
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247 case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252 esac
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257 exit 255
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266 else
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
272 exit 1
276 SHELL=${CONFIG_SHELL-/bin/sh}
277 export SHELL
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
285 # as_fn_unset VAR
286 # ---------------
287 # Portably unset VAR.
288 as_fn_unset ()
290 { eval $1=; unset $1;}
292 as_unset=as_fn_unset
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
297 as_fn_set_status ()
299 return $1
300 } # as_fn_set_status
302 # as_fn_exit STATUS
303 # -----------------
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305 as_fn_exit ()
307 set +e
308 as_fn_set_status $1
309 exit $1
310 } # as_fn_exit
312 # as_fn_mkdir_p
313 # -------------
314 # Create "$as_dir" as a directory, including parents if necessary.
315 as_fn_mkdir_p ()
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
343 /^X\(\/\/\)$/{
344 s//\1/
347 /^X\(\/\).*/{
348 s//\1/
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
358 } # as_fn_mkdir_p
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
372 # implementations.
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
376 eval $1+=\$2
378 else
379 as_fn_append ()
381 eval $1=\$$1\$2
383 fi # as_fn_append
385 # as_fn_arith ARG...
386 # ------------------
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
393 as_val=$(( $* ))
395 else
396 as_fn_arith ()
398 as_val=`expr "$@" || test $? -eq 1`
400 fi # as_fn_arith
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
408 as_fn_error ()
410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
417 } # as_fn_error
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
421 as_expr=expr
422 else
423 as_expr=false
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427 as_basename=basename
428 else
429 as_basename=false
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434 else
435 as_dirname=false
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442 $as_echo X/"$0" |
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/
447 /^X\/\(\/\/\)$/{
448 s//\1/
451 /^X\/\(\/\).*/{
452 s//\1/
455 s/.*/./; q'`
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
470 sed -n '
472 /[$]LINENO/=
473 ' <$as_myself |
474 sed '
475 s/[$]LINENO.*/&-/
476 t lineno
478 :lineno
480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482 t loop
483 s/-\n.*//
484 ' >$as_me.lineno &&
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
496 # Exit status is that of the last command.
497 exit
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
502 -n*)
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
508 esac;;
510 ECHO_N='-n';;
511 esac
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
516 else
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
520 if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
522 as_ln_s='ln -s'
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528 as_ln_s='cp -pR'
529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
532 as_ln_s='cp -pR'
534 else
535 as_ln_s='cp -pR'
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
540 if mkdir -p . 2>/dev/null; then
541 as_mkdir_p='mkdir -p "$as_dir"'
542 else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
547 as_test_x='test -x'
548 as_executable_p=as_fn_executable_p
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 test -n "$DJDIR" || exec 7<&0 </dev/null
558 exec 6>&1
560 # Name of the host.
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
566 # Initializations.
568 ac_default_prefix=/usr/local
569 ac_clean_files=
570 ac_config_libobj_dir=.
571 LIBOBJS=
572 cross_compiling=no
573 subdirs=
574 MFLAGS=
575 MAKEFLAGS=
577 # Identity of this package.
578 PACKAGE_NAME=
579 PACKAGE_TARNAME=
580 PACKAGE_VERSION=
581 PACKAGE_STRING=
582 PACKAGE_BUGREPORT=
583 PACKAGE_URL=
585 ac_unique_file="src/include/pcp/pmapi.h"
586 # Factoring default headers for most tests.
587 ac_includes_default="\
588 #include <stdio.h>
589 #ifdef HAVE_SYS_TYPES_H
590 # include <sys/types.h>
591 #endif
592 #ifdef HAVE_SYS_STAT_H
593 # include <sys/stat.h>
594 #endif
595 #ifdef STDC_HEADERS
596 # include <stdlib.h>
597 # include <stddef.h>
598 #else
599 # ifdef HAVE_STDLIB_H
600 # include <stdlib.h>
601 # endif
602 #endif
603 #ifdef HAVE_STRING_H
604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
605 # include <memory.h>
606 # endif
607 # include <string.h>
608 #endif
609 #ifdef HAVE_STRINGS_H
610 # include <strings.h>
611 #endif
612 #ifdef HAVE_INTTYPES_H
613 # include <inttypes.h>
614 #endif
615 #ifdef HAVE_STDINT_H
616 # include <stdint.h>
617 #endif
618 #ifdef HAVE_UNISTD_H
619 # include <unistd.h>
620 #endif"
622 ac_subst_vars='PACKAGE_CONFIGURE
623 have_webjs
624 have_vector
625 have_parfait
626 HAVE_ZLIB
627 zlib_LIBS
628 zlib_CFLAGS
629 lib_for_curses
630 lib_for_readline
631 pcp_mpi_dirs
632 lib_for_atomic
633 enable_secure
634 lib_for_nspr
635 lib_for_nss
636 lib_for_ssl
637 lib_for_sasl
638 SASLCFLAGS
639 NSPRCFLAGS
640 NSSCFLAGS
641 ac_xconfirm_prog
642 pcp_demos_dir
643 pcp_doc_dir
644 pcp_tmp_dir
645 pcp_tmpfile_dir
646 pcp_run_dir
647 pcp_log_dir
648 pcp_sysconfig_dir
649 pcp_rc_dir
650 pcp_desktop_dir
651 pcp_icons_dir
652 pcp_html_dir
653 pcp_books_dir
654 pcp_inc_dir
655 pcp_sbin_dir
656 pcp_bin_dir
657 need_old_tbl_header
658 have_xzed_manpages
659 have_lzmaed_manpages
660 have_bzip2ed_manpages
661 have_gzipped_manpages
662 have_manpages
663 pcp_man_dir
664 pcp_x11_pre
665 pcp_x11_extra
666 pcp_x11_libflags
667 pcp_x11_incflags
668 X_EXTRA_LIBS
669 X_LIBS
670 X_PRE_LIBS
671 X_CFLAGS
672 XMKMF
673 python_prefix
674 perl_install_base
675 perl_installdirs
676 pcp_lib32_dir
677 pcp_lib_dir
678 pcp_pmdas_dir
679 pcp_var_dir
680 pcp_binadm_dir
681 pcp_share_dir
682 pcp_pmloggercontrol_path
683 pcp_pmsnapcontrol_path
684 pcp_pmiecontrol_path
685 pcp_pmproxyoptions_path
686 pcp_pmmgroptions_path
687 pcp_pmwebdoptions_path
688 pcp_pmcdrclocal_path
689 pcp_pmcdoptions_path
690 pcp_pmcdconf_path
691 pcp_sysconf_dir
692 pcp_saslconf_dir
693 pcp_etc_dir
694 lib_for_math
695 lib_for_dlopen
696 lib_for_rt
697 lib_for_basename
698 fmt_pthread
699 lib_for_pthreads
700 fmt_uint64
701 fmt_int64
702 fmt_pid
703 rdynamic_flag
704 enable_manager
705 enable_webapi
706 HAVE_CAIRO
707 cairo_LIBS
708 cairo_CFLAGS
709 HAVE_LIBMICROHTTPD
710 libmicrohttpd_LIBS
711 libmicrohttpd_CFLAGS
712 PMDA_POSTFIX
713 QSHAPE
714 PMDA_RPM
715 PMDA_PERFEVENT
716 PFM_LIBS
717 PMDA_PAPI
718 PAPI_LIBS
719 PAPI_CFLAGS
720 papi_LIBS
721 papi_CFLAGS
722 PMDA_INFINIBAND
723 IB_LIBS
724 PMDA_SYSTEMD
725 SYSTEMD_LIBS
726 SYSTEMD_CFLAGS
727 HAVE_NCURSES
728 ncurses_LIBS
729 ncurses_CFLAGS
730 lib_for_regex
731 grep
732 pcp_syslog_prog
733 pcp_ps_prog
734 LN_S
735 book_brand
736 book_toolchain
737 xmlto
738 XMLTO
739 dblatex
740 DBLATEX
741 publican
742 PUBLICAN
743 makepkg
744 MAKEPKG
745 dpkg
746 DPKG
747 md5sum
748 MD5SUM
749 makedepend
750 MAKEDEPEND
751 TRUEPROG
752 pod2man
753 POD2MAN
754 rpmprog
757 rpmbuild
758 RPMBUILD
759 dlltool
760 DLLTOOL
761 pkgmk
762 PKGMK
763 mkinstallp
764 MKINSTALLP
765 hdiutil
766 HDIUTIL
767 package_maker
770 lzma
771 LZMA
772 bzip2
773 BZIP2
774 gzip
778 pcp_group_install
779 pcp_user_install
783 make
784 MAKE
785 enable_qt3d
786 qmake
787 enable_qt
788 qt_release
789 QMAKE
790 PMDA_LIBVIRT
791 PMDA_NUTCRACKER
792 PMDA_BIND2
793 PMDA_ACTIVEMQ
794 PMDA_NGINX
795 PMDA_ELASTICSEARCH
796 PMDA_ORACLE
797 PMDA_POSTGRESQL
798 PMDA_MYSQL
799 PMDA_SNMP
800 have_perl
801 pcp_perl_prog
802 PERL
803 have_python_libvirt
804 PMDA_JSON
805 have_python_six
806 have_python_requests
807 have_python_setuptools
808 have_python_jsonpointer
809 pcp_python_prog
810 have_python
811 enable_python3
812 enable_python2
813 PYTHON3
814 PYTHON
816 LTLIBOBJS
817 LIBOBJS
818 pm_version_current
819 PACKAGE_DISTRIBUTION
820 PACKAGE_BUILD_DATE
821 PACKAGE_BUILD
822 PACKAGE_REVISION
823 PACKAGE_MINOR
824 PACKAGE_MAJOR
825 enable_systemd
826 pcp_systemdunit_dir
827 SYSTEMD_SYSTEMUNITDIR
828 enable_avahi
829 enable_discovery
830 lib_for_avahi
831 avahi_LIBS
832 avahi_CFLAGS
833 enable_probes
835 DTRACE
836 EGREP
837 GREP
838 echo_c
839 echo_n
840 sort
841 yacc
842 YFLAGS
843 YACC
845 LEXLIB
846 LEX_OUTPUT_ROOT
848 which
849 WHICH
850 find
851 FIND
852 echo
853 ECHO
858 enable_shared
860 ac_ct_CXX
861 CXXFLAGS
863 INVISIBILITY
864 PIECFLAGS
865 PIELDFLAGS
866 PLDFLAGS
867 PCFLAGS
868 cflags_abi
869 cc_is_gcc
871 CCPATH
872 OBJEXT
873 EXEEXT
874 ac_ct_CC
875 CPPFLAGS
876 LDFLAGS
877 CFLAGS
879 PKG_CONFIG_LIBDIR
880 PKG_CONFIG_PATH
881 PKG_CONFIG
882 optimization
883 pcp_ps_all_flags
884 pcp_platform_paths
885 cross_compiling
886 target_os
887 target_vendor
888 target_cpu
889 target
890 host_os
891 host_vendor
892 host_cpu
893 host
894 build_os
895 build_vendor
896 build_cpu
897 build
898 pcp_group
899 pcp_user
900 target_alias
901 host_alias
902 build_alias
903 LIBS
904 ECHO_T
905 ECHO_N
906 ECHO_C
907 DEFS
908 mandir
909 localedir
910 libdir
911 psdir
912 pdfdir
913 dvidir
914 htmldir
915 infodir
916 docdir
917 oldincludedir
918 includedir
919 localstatedir
920 sharedstatedir
921 sysconfdir
922 datadir
923 datarootdir
924 libexecdir
925 sbindir
926 bindir
927 program_transform_name
928 prefix
929 exec_prefix
930 PACKAGE_URL
931 PACKAGE_BUGREPORT
932 PACKAGE_STRING
933 PACKAGE_VERSION
934 PACKAGE_TARNAME
935 PACKAGE_NAME
936 PATH_SEPARATOR
937 SHELL'
938 ac_subst_files=''
939 ac_user_opts='
940 enable_option_checking
941 with_64bit
942 with_optimization
943 with_threads
944 with_secure_sockets
945 with_static_probes
946 with_infiniband
947 with_user
948 with_group
949 with_discovery
950 with_systemd
951 with_qt
952 with_qt3d
953 with_python
954 with_python3
955 with_books
956 with_books_brand
957 with_papi
958 with_perfevent
959 with_pmdajson
960 with_pmdasnmp
961 with_manager
962 with_webapi
963 with_webjs
964 with_vector
965 with_parfait
966 with_make
967 with_tar
968 with_zip
969 enable_ssp
970 enable_pie
971 enable_visibility
972 enable_shared
973 with_configdir
974 with_perl_installdirs
975 with_perl_install_base
976 with_python_prefix
977 with_x
978 with_rcdir
979 with_sysconfigdir
980 with_logdir
981 with_rundir
982 with_tmpdir
983 with_docdir
984 with_demosdir
986 ac_precious_vars='build_alias
987 host_alias
988 target_alias
989 PKG_CONFIG
990 PKG_CONFIG_PATH
991 PKG_CONFIG_LIBDIR
993 CFLAGS
994 LDFLAGS
995 LIBS
996 CPPFLAGS
998 CXXFLAGS
1000 YACC
1001 YFLAGS
1003 avahi_CFLAGS
1004 avahi_LIBS
1005 SYSTEMD_SYSTEMUNITDIR
1006 ncurses_CFLAGS
1007 ncurses_LIBS
1008 SYSTEMD_CFLAGS
1009 SYSTEMD_LIBS
1010 papi_CFLAGS
1011 papi_LIBS
1012 libmicrohttpd_CFLAGS
1013 libmicrohttpd_LIBS
1014 cairo_CFLAGS
1015 cairo_LIBS
1016 XMKMF
1017 zlib_CFLAGS
1018 zlib_LIBS'
1021 # Initialize some variables set by options.
1022 ac_init_help=
1023 ac_init_version=false
1024 ac_unrecognized_opts=
1025 ac_unrecognized_sep=
1026 # The variables have the same names as the options, with
1027 # dashes changed to underlines.
1028 cache_file=/dev/null
1029 exec_prefix=NONE
1030 no_create=
1031 no_recursion=
1032 prefix=NONE
1033 program_prefix=NONE
1034 program_suffix=NONE
1035 program_transform_name=s,x,x,
1036 silent=
1037 site=
1038 srcdir=
1039 verbose=
1040 x_includes=NONE
1041 x_libraries=NONE
1043 # Installation directory options.
1044 # These are left unexpanded so users can "make install exec_prefix=/foo"
1045 # and all the variables that are supposed to be based on exec_prefix
1046 # by default will actually change.
1047 # Use braces instead of parens because sh, perl, etc. also accept them.
1048 # (The list follows the same order as the GNU Coding Standards.)
1049 bindir='${exec_prefix}/bin'
1050 sbindir='${exec_prefix}/sbin'
1051 libexecdir='${exec_prefix}/libexec'
1052 datarootdir='${prefix}/share'
1053 datadir='${datarootdir}'
1054 sysconfdir='${prefix}/etc'
1055 sharedstatedir='${prefix}/com'
1056 localstatedir='${prefix}/var'
1057 includedir='${prefix}/include'
1058 oldincludedir='/usr/include'
1059 docdir='${datarootdir}/doc/${PACKAGE}'
1060 infodir='${datarootdir}/info'
1061 htmldir='${docdir}'
1062 dvidir='${docdir}'
1063 pdfdir='${docdir}'
1064 psdir='${docdir}'
1065 libdir='${exec_prefix}/lib'
1066 localedir='${datarootdir}/locale'
1067 mandir='${datarootdir}/man'
1069 ac_prev=
1070 ac_dashdash=
1071 for ac_option
1073 # If the previous option needs an argument, assign it.
1074 if test -n "$ac_prev"; then
1075 eval $ac_prev=\$ac_option
1076 ac_prev=
1077 continue
1080 case $ac_option in
1081 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1082 *=) ac_optarg= ;;
1083 *) ac_optarg=yes ;;
1084 esac
1086 # Accept the important Cygnus configure options, so we can diagnose typos.
1088 case $ac_dashdash$ac_option in
1090 ac_dashdash=yes ;;
1092 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1093 ac_prev=bindir ;;
1094 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1095 bindir=$ac_optarg ;;
1097 -build | --build | --buil | --bui | --bu)
1098 ac_prev=build_alias ;;
1099 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1100 build_alias=$ac_optarg ;;
1102 -cache-file | --cache-file | --cache-fil | --cache-fi \
1103 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1104 ac_prev=cache_file ;;
1105 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1106 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1107 cache_file=$ac_optarg ;;
1109 --config-cache | -C)
1110 cache_file=config.cache ;;
1112 -datadir | --datadir | --datadi | --datad)
1113 ac_prev=datadir ;;
1114 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1115 datadir=$ac_optarg ;;
1117 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1118 | --dataroo | --dataro | --datar)
1119 ac_prev=datarootdir ;;
1120 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1121 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1122 datarootdir=$ac_optarg ;;
1124 -disable-* | --disable-*)
1125 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1126 # Reject names that are not valid shell variable names.
1127 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1128 as_fn_error $? "invalid feature name: $ac_useropt"
1129 ac_useropt_orig=$ac_useropt
1130 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1131 case $ac_user_opts in
1133 "enable_$ac_useropt"
1134 "*) ;;
1135 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1136 ac_unrecognized_sep=', ';;
1137 esac
1138 eval enable_$ac_useropt=no ;;
1140 -docdir | --docdir | --docdi | --doc | --do)
1141 ac_prev=docdir ;;
1142 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1143 docdir=$ac_optarg ;;
1145 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1146 ac_prev=dvidir ;;
1147 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1148 dvidir=$ac_optarg ;;
1150 -enable-* | --enable-*)
1151 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1152 # Reject names that are not valid shell variable names.
1153 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1154 as_fn_error $? "invalid feature name: $ac_useropt"
1155 ac_useropt_orig=$ac_useropt
1156 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1157 case $ac_user_opts in
1159 "enable_$ac_useropt"
1160 "*) ;;
1161 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1162 ac_unrecognized_sep=', ';;
1163 esac
1164 eval enable_$ac_useropt=\$ac_optarg ;;
1166 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1167 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1168 | --exec | --exe | --ex)
1169 ac_prev=exec_prefix ;;
1170 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1171 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1172 | --exec=* | --exe=* | --ex=*)
1173 exec_prefix=$ac_optarg ;;
1175 -gas | --gas | --ga | --g)
1176 # Obsolete; use --with-gas.
1177 with_gas=yes ;;
1179 -help | --help | --hel | --he | -h)
1180 ac_init_help=long ;;
1181 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1182 ac_init_help=recursive ;;
1183 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1184 ac_init_help=short ;;
1186 -host | --host | --hos | --ho)
1187 ac_prev=host_alias ;;
1188 -host=* | --host=* | --hos=* | --ho=*)
1189 host_alias=$ac_optarg ;;
1191 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1192 ac_prev=htmldir ;;
1193 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1194 | --ht=*)
1195 htmldir=$ac_optarg ;;
1197 -includedir | --includedir | --includedi | --included | --include \
1198 | --includ | --inclu | --incl | --inc)
1199 ac_prev=includedir ;;
1200 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1201 | --includ=* | --inclu=* | --incl=* | --inc=*)
1202 includedir=$ac_optarg ;;
1204 -infodir | --infodir | --infodi | --infod | --info | --inf)
1205 ac_prev=infodir ;;
1206 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1207 infodir=$ac_optarg ;;
1209 -libdir | --libdir | --libdi | --libd)
1210 ac_prev=libdir ;;
1211 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1212 libdir=$ac_optarg ;;
1214 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1215 | --libexe | --libex | --libe)
1216 ac_prev=libexecdir ;;
1217 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1218 | --libexe=* | --libex=* | --libe=*)
1219 libexecdir=$ac_optarg ;;
1221 -localedir | --localedir | --localedi | --localed | --locale)
1222 ac_prev=localedir ;;
1223 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1224 localedir=$ac_optarg ;;
1226 -localstatedir | --localstatedir | --localstatedi | --localstated \
1227 | --localstate | --localstat | --localsta | --localst | --locals)
1228 ac_prev=localstatedir ;;
1229 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1230 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1231 localstatedir=$ac_optarg ;;
1233 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1234 ac_prev=mandir ;;
1235 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1236 mandir=$ac_optarg ;;
1238 -nfp | --nfp | --nf)
1239 # Obsolete; use --without-fp.
1240 with_fp=no ;;
1242 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1243 | --no-cr | --no-c | -n)
1244 no_create=yes ;;
1246 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1247 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1248 no_recursion=yes ;;
1250 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1251 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1252 | --oldin | --oldi | --old | --ol | --o)
1253 ac_prev=oldincludedir ;;
1254 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1255 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1256 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1257 oldincludedir=$ac_optarg ;;
1259 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1260 ac_prev=prefix ;;
1261 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1262 prefix=$ac_optarg ;;
1264 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1265 | --program-pre | --program-pr | --program-p)
1266 ac_prev=program_prefix ;;
1267 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1268 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1269 program_prefix=$ac_optarg ;;
1271 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1272 | --program-suf | --program-su | --program-s)
1273 ac_prev=program_suffix ;;
1274 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1275 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1276 program_suffix=$ac_optarg ;;
1278 -program-transform-name | --program-transform-name \
1279 | --program-transform-nam | --program-transform-na \
1280 | --program-transform-n | --program-transform- \
1281 | --program-transform | --program-transfor \
1282 | --program-transfo | --program-transf \
1283 | --program-trans | --program-tran \
1284 | --progr-tra | --program-tr | --program-t)
1285 ac_prev=program_transform_name ;;
1286 -program-transform-name=* | --program-transform-name=* \
1287 | --program-transform-nam=* | --program-transform-na=* \
1288 | --program-transform-n=* | --program-transform-=* \
1289 | --program-transform=* | --program-transfor=* \
1290 | --program-transfo=* | --program-transf=* \
1291 | --program-trans=* | --program-tran=* \
1292 | --progr-tra=* | --program-tr=* | --program-t=*)
1293 program_transform_name=$ac_optarg ;;
1295 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1296 ac_prev=pdfdir ;;
1297 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1298 pdfdir=$ac_optarg ;;
1300 -psdir | --psdir | --psdi | --psd | --ps)
1301 ac_prev=psdir ;;
1302 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1303 psdir=$ac_optarg ;;
1305 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1306 | -silent | --silent | --silen | --sile | --sil)
1307 silent=yes ;;
1309 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1310 ac_prev=sbindir ;;
1311 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1312 | --sbi=* | --sb=*)
1313 sbindir=$ac_optarg ;;
1315 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1316 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1317 | --sharedst | --shareds | --shared | --share | --shar \
1318 | --sha | --sh)
1319 ac_prev=sharedstatedir ;;
1320 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1321 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1322 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1323 | --sha=* | --sh=*)
1324 sharedstatedir=$ac_optarg ;;
1326 -site | --site | --sit)
1327 ac_prev=site ;;
1328 -site=* | --site=* | --sit=*)
1329 site=$ac_optarg ;;
1331 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1332 ac_prev=srcdir ;;
1333 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1334 srcdir=$ac_optarg ;;
1336 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1337 | --syscon | --sysco | --sysc | --sys | --sy)
1338 ac_prev=sysconfdir ;;
1339 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1340 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1341 sysconfdir=$ac_optarg ;;
1343 -target | --target | --targe | --targ | --tar | --ta | --t)
1344 ac_prev=target_alias ;;
1345 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1346 target_alias=$ac_optarg ;;
1348 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1349 verbose=yes ;;
1351 -version | --version | --versio | --versi | --vers | -V)
1352 ac_init_version=: ;;
1354 -with-* | --with-*)
1355 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1356 # Reject names that are not valid shell variable names.
1357 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1358 as_fn_error $? "invalid package name: $ac_useropt"
1359 ac_useropt_orig=$ac_useropt
1360 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1361 case $ac_user_opts in
1363 "with_$ac_useropt"
1364 "*) ;;
1365 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1366 ac_unrecognized_sep=', ';;
1367 esac
1368 eval with_$ac_useropt=\$ac_optarg ;;
1370 -without-* | --without-*)
1371 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1372 # Reject names that are not valid shell variable names.
1373 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1374 as_fn_error $? "invalid package name: $ac_useropt"
1375 ac_useropt_orig=$ac_useropt
1376 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1377 case $ac_user_opts in
1379 "with_$ac_useropt"
1380 "*) ;;
1381 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1382 ac_unrecognized_sep=', ';;
1383 esac
1384 eval with_$ac_useropt=no ;;
1386 --x)
1387 # Obsolete; use --with-x.
1388 with_x=yes ;;
1390 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1391 | --x-incl | --x-inc | --x-in | --x-i)
1392 ac_prev=x_includes ;;
1393 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1394 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1395 x_includes=$ac_optarg ;;
1397 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1398 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1399 ac_prev=x_libraries ;;
1400 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1401 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1402 x_libraries=$ac_optarg ;;
1404 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1405 Try \`$0 --help' for more information"
1408 *=*)
1409 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1410 # Reject names that are not valid shell variable names.
1411 case $ac_envvar in #(
1412 '' | [0-9]* | *[!_$as_cr_alnum]* )
1413 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1414 esac
1415 eval $ac_envvar=\$ac_optarg
1416 export $ac_envvar ;;
1419 # FIXME: should be removed in autoconf 3.0.
1420 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1421 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1422 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1423 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1426 esac
1427 done
1429 if test -n "$ac_prev"; then
1430 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1431 as_fn_error $? "missing argument to $ac_option"
1434 if test -n "$ac_unrecognized_opts"; then
1435 case $enable_option_checking in
1436 no) ;;
1437 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1438 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1439 esac
1442 # Check all directory arguments for consistency.
1443 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1444 datadir sysconfdir sharedstatedir localstatedir includedir \
1445 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1446 libdir localedir mandir
1448 eval ac_val=\$$ac_var
1449 # Remove trailing slashes.
1450 case $ac_val in
1451 */ )
1452 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1453 eval $ac_var=\$ac_val;;
1454 esac
1455 # Be sure to have absolute directory names.
1456 case $ac_val in
1457 [\\/$]* | ?:[\\/]* ) continue;;
1458 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1459 esac
1460 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1461 done
1463 # There might be people who depend on the old broken behavior: `$host'
1464 # used to hold the argument of --host etc.
1465 # FIXME: To remove some day.
1466 build=$build_alias
1467 host=$host_alias
1468 target=$target_alias
1470 # FIXME: To remove some day.
1471 if test "x$host_alias" != x; then
1472 if test "x$build_alias" = x; then
1473 cross_compiling=maybe
1474 elif test "x$build_alias" != "x$host_alias"; then
1475 cross_compiling=yes
1479 ac_tool_prefix=
1480 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1482 test "$silent" = yes && exec 6>/dev/null
1485 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1486 ac_ls_di=`ls -di .` &&
1487 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1488 as_fn_error $? "working directory cannot be determined"
1489 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1490 as_fn_error $? "pwd does not report name of working directory"
1493 # Find the source files, if location was not specified.
1494 if test -z "$srcdir"; then
1495 ac_srcdir_defaulted=yes
1496 # Try the directory containing this script, then the parent directory.
1497 ac_confdir=`$as_dirname -- "$as_myself" ||
1498 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1499 X"$as_myself" : 'X\(//\)[^/]' \| \
1500 X"$as_myself" : 'X\(//\)$' \| \
1501 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1502 $as_echo X"$as_myself" |
1503 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1504 s//\1/
1507 /^X\(\/\/\)[^/].*/{
1508 s//\1/
1511 /^X\(\/\/\)$/{
1512 s//\1/
1515 /^X\(\/\).*/{
1516 s//\1/
1519 s/.*/./; q'`
1520 srcdir=$ac_confdir
1521 if test ! -r "$srcdir/$ac_unique_file"; then
1522 srcdir=..
1524 else
1525 ac_srcdir_defaulted=no
1527 if test ! -r "$srcdir/$ac_unique_file"; then
1528 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1529 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1531 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1532 ac_abs_confdir=`(
1533 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1534 pwd)`
1535 # When building in place, set srcdir=.
1536 if test "$ac_abs_confdir" = "$ac_pwd"; then
1537 srcdir=.
1539 # Remove unnecessary trailing slashes from srcdir.
1540 # Double slashes in file names in object file debugging info
1541 # mess up M-x gdb in Emacs.
1542 case $srcdir in
1543 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1544 esac
1545 for ac_var in $ac_precious_vars; do
1546 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1547 eval ac_env_${ac_var}_value=\$${ac_var}
1548 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1549 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1550 done
1553 # Report the --help message.
1555 if test "$ac_init_help" = "long"; then
1556 # Omit some internal or obsolete options to make the list less imposing.
1557 # This message is too long to be a string in the A/UX 3.1 sh.
1558 cat <<_ACEOF
1559 \`configure' configures this package to adapt to many kinds of systems.
1561 Usage: $0 [OPTION]... [VAR=VALUE]...
1563 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1564 VAR=VALUE. See below for descriptions of some of the useful variables.
1566 Defaults for the options are specified in brackets.
1568 Configuration:
1569 -h, --help display this help and exit
1570 --help=short display options specific to this package
1571 --help=recursive display the short help of all the included packages
1572 -V, --version display version information and exit
1573 -q, --quiet, --silent do not print \`checking ...' messages
1574 --cache-file=FILE cache test results in FILE [disabled]
1575 -C, --config-cache alias for \`--cache-file=config.cache'
1576 -n, --no-create do not create output files
1577 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1579 Installation directories:
1580 --prefix=PREFIX install architecture-independent files in PREFIX
1581 [$ac_default_prefix]
1582 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1583 [PREFIX]
1585 By default, \`make install' will install all the files in
1586 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1587 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1588 for instance \`--prefix=\$HOME'.
1590 For better control, use the options below.
1592 Fine tuning of the installation directories:
1593 --bindir=DIR user executables [EPREFIX/bin]
1594 --sbindir=DIR system admin executables [EPREFIX/sbin]
1595 --libexecdir=DIR program executables [EPREFIX/libexec]
1596 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1597 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1598 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1599 --libdir=DIR object code libraries [EPREFIX/lib]
1600 --includedir=DIR C header files [PREFIX/include]
1601 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1602 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1603 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1604 --infodir=DIR info documentation [DATAROOTDIR/info]
1605 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1606 --mandir=DIR man documentation [DATAROOTDIR/man]
1607 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1608 --htmldir=DIR html documentation [DOCDIR]
1609 --dvidir=DIR dvi documentation [DOCDIR]
1610 --pdfdir=DIR pdf documentation [DOCDIR]
1611 --psdir=DIR ps documentation [DOCDIR]
1612 _ACEOF
1614 cat <<\_ACEOF
1616 X features:
1617 --x-includes=DIR X include files are in DIR
1618 --x-libraries=DIR X library files are in DIR
1620 System types:
1621 --build=BUILD configure for building on BUILD [guessed]
1622 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1623 --target=TARGET configure for building compilers for TARGET [HOST]
1624 _ACEOF
1627 if test -n "$ac_init_help"; then
1629 cat <<\_ACEOF
1631 Optional Features:
1632 --disable-option-checking ignore unrecognized --enable/--with options
1633 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1634 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1635 --disable-ssp disable gcc stack-protector
1636 --disable-pie disable position-independent-executable
1637 --disable-visibility disable gcc symbol visibility
1638 --disable-shared disable core shared libary generation
1640 Optional Packages:
1641 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1642 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1643 --with-64bit turn on 64 bit compilation mode (default is platform
1644 dependent)
1645 --with-optimization enable optimization for C/C++ code (default is yes)
1646 --with-threads enable support for multiple threads (default is on)
1647 --with-secure-sockets enable support for secure sockets (default is on)
1648 --with-static-probes enable support for static probes (default is on)
1649 --with-infiniband enable support for Infiniband metrics (default is
1651 --with-user user account under which daemons run (default is
1652 pcp)
1653 --with-group user group under which daemons run (default is pcp)
1654 --with-discovery enable support for service discovery (default is on)
1655 --with-systemd enable support for systemd services (default is on)
1656 --with-qt enable support for tools requiring Qt (default is
1658 --with-qt3d enable support for 3D scene graph API (default is
1660 --with-python enable support for tools requiring Python (default
1661 is on)
1662 --with-python3 enable support for tools requiring Python3 (default
1663 is on)
1664 --with-books enable building of the PCP books (default is off)
1665 --with-books-brand=BRAND
1666 choose the docbook brand when building the PCP books
1667 (default is common)
1668 --with-papi[=DIR|=MODULE]
1669 enable performance api counter pmda (default is on)
1670 The optional argument may be a full path of a PAPI
1671 installation prefix, or a pkgconfig module name.
1672 --with-perfevent enable perfevent pmda (default is on)
1673 --with-pmdajson enable JSON pmda (default is on)
1674 --with-pmdasnmp enable SNMP pmda (default is on)
1675 --with-manager enable daemon manager (default is on)
1676 --with-webapi enable REST API daemon (default is on)
1677 --with-webjs enable building of webjs packages (default is off)
1678 --with-vector enable building of vector package (default is off)
1679 --with-parfait enable building of parfait package (default is off)
1680 --with-make path to GNU compatible make(1) (default is empty for
1681 auto discovery)
1682 --with-tar path to GNU compatible tar(1) (default is empty for
1683 auto discovery)
1684 --with-zip path to GNU compatible zip(1) (default is empty for
1685 auto discovery)
1686 --with-configdir configuration directory [LOCALSTATEDIR/pcp/config]
1687 --with-perl_installdirs perl installdirs [vendor]
1688 --with-perl_install_base
1689 perl install_base [PREFIX]
1690 --with-python_prefix python setup.py prefix [PREFIX]
1691 --with-x use the X Window System
1692 --with-rcdir rc directory [SYSCONFDIR/rc.d]
1693 --with-sysconfigdir sysconfig directory [SYSCONFDIR/sysconfig]
1694 --with-logdir log directory [LOCALSTATEDIR/log/pcp]
1695 --with-rundir run directory [LOCALSTATEDIR/run/pcp]
1696 --with-tmpdir tmp directory [LOCALSTATEDIR/tmp]
1697 --with-docdir docs directory [DOCDIR/pcp-VERSION]
1698 --with-demosdir run directory [DATADIR/pcp/demos]
1700 Some influential environment variables:
1701 PKG_CONFIG path to pkg-config utility
1702 PKG_CONFIG_PATH
1703 directories to add to pkg-config's search path
1704 PKG_CONFIG_LIBDIR
1705 path overriding pkg-config's built-in search path
1706 CC C compiler command
1707 CFLAGS C compiler flags
1708 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1709 nonstandard directory <lib dir>
1710 LIBS libraries to pass to the linker, e.g. -l<library>
1711 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1712 you have headers in a nonstandard directory <include dir>
1713 CXX C++ compiler command
1714 CXXFLAGS C++ compiler flags
1715 YACC The `Yet Another Compiler Compiler' implementation to use.
1716 Defaults to the first program found out of: `bison -y', `byacc',
1717 `yacc'.
1718 YFLAGS The list of arguments that will be passed by default to $YACC.
1719 This script will default YFLAGS to the empty string to avoid a
1720 default value of `-d' given by some make applications.
1721 CPP C preprocessor
1722 avahi_CFLAGS
1723 C compiler flags for avahi, overriding pkg-config
1724 avahi_LIBS linker flags for avahi, overriding pkg-config
1725 SYSTEMD_SYSTEMUNITDIR
1726 value of systemdsystemunitdir for systemd, overriding pkg-config
1727 ncurses_CFLAGS
1728 C compiler flags for ncurses, overriding pkg-config
1729 ncurses_LIBS
1730 linker flags for ncurses, overriding pkg-config
1731 SYSTEMD_CFLAGS
1732 C compiler flags for SYSTEMD, overriding pkg-config
1733 SYSTEMD_LIBS
1734 linker flags for SYSTEMD, overriding pkg-config
1735 papi_CFLAGS C compiler flags for papi, overriding pkg-config
1736 papi_LIBS linker flags for papi, overriding pkg-config
1737 libmicrohttpd_CFLAGS
1738 C compiler flags for libmicrohttpd, overriding pkg-config
1739 libmicrohttpd_LIBS
1740 linker flags for libmicrohttpd, overriding pkg-config
1741 cairo_CFLAGS
1742 C compiler flags for cairo, overriding pkg-config
1743 cairo_LIBS linker flags for cairo, overriding pkg-config
1744 XMKMF Path to xmkmf, Makefile generator for X Window System
1745 zlib_CFLAGS C compiler flags for zlib, overriding pkg-config
1746 zlib_LIBS linker flags for zlib, overriding pkg-config
1748 Use these variables to override the choices made by `configure' or to help
1749 it to find libraries and programs with nonstandard names/locations.
1751 Report bugs to the package provider.
1752 _ACEOF
1753 ac_status=$?
1756 if test "$ac_init_help" = "recursive"; then
1757 # If there are subdirs, report their specific --help.
1758 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1759 test -d "$ac_dir" ||
1760 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1761 continue
1762 ac_builddir=.
1764 case "$ac_dir" in
1765 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1767 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1768 # A ".." for each directory in $ac_dir_suffix.
1769 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1770 case $ac_top_builddir_sub in
1771 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1772 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1773 esac ;;
1774 esac
1775 ac_abs_top_builddir=$ac_pwd
1776 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1777 # for backward compatibility:
1778 ac_top_builddir=$ac_top_build_prefix
1780 case $srcdir in
1781 .) # We are building in place.
1782 ac_srcdir=.
1783 ac_top_srcdir=$ac_top_builddir_sub
1784 ac_abs_top_srcdir=$ac_pwd ;;
1785 [\\/]* | ?:[\\/]* ) # Absolute name.
1786 ac_srcdir=$srcdir$ac_dir_suffix;
1787 ac_top_srcdir=$srcdir
1788 ac_abs_top_srcdir=$srcdir ;;
1789 *) # Relative name.
1790 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1791 ac_top_srcdir=$ac_top_build_prefix$srcdir
1792 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1793 esac
1794 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1796 cd "$ac_dir" || { ac_status=$?; continue; }
1797 # Check for guested configure.
1798 if test -f "$ac_srcdir/configure.gnu"; then
1799 echo &&
1800 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1801 elif test -f "$ac_srcdir/configure"; then
1802 echo &&
1803 $SHELL "$ac_srcdir/configure" --help=recursive
1804 else
1805 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1806 fi || ac_status=$?
1807 cd "$ac_pwd" || { ac_status=$?; break; }
1808 done
1811 test -n "$ac_init_help" && exit $ac_status
1812 if $ac_init_version; then
1813 cat <<\_ACEOF
1814 configure
1815 generated by GNU Autoconf 2.69
1817 Copyright (C) 2012 Free Software Foundation, Inc.
1818 This configure script is free software; the Free Software Foundation
1819 gives unlimited permission to copy, distribute and modify it.
1820 _ACEOF
1821 exit
1824 ## ------------------------ ##
1825 ## Autoconf initialization. ##
1826 ## ------------------------ ##
1828 # ac_fn_c_try_compile LINENO
1829 # --------------------------
1830 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1831 ac_fn_c_try_compile ()
1833 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1834 rm -f conftest.$ac_objext
1835 if { { ac_try="$ac_compile"
1836 case "(($ac_try" in
1837 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1838 *) ac_try_echo=$ac_try;;
1839 esac
1840 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1841 $as_echo "$ac_try_echo"; } >&5
1842 (eval "$ac_compile") 2>conftest.err
1843 ac_status=$?
1844 if test -s conftest.err; then
1845 grep -v '^ *+' conftest.err >conftest.er1
1846 cat conftest.er1 >&5
1847 mv -f conftest.er1 conftest.err
1849 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1850 test $ac_status = 0; } && {
1851 test -z "$ac_c_werror_flag" ||
1852 test ! -s conftest.err
1853 } && test -s conftest.$ac_objext; then :
1854 ac_retval=0
1855 else
1856 $as_echo "$as_me: failed program was:" >&5
1857 sed 's/^/| /' conftest.$ac_ext >&5
1859 ac_retval=1
1861 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1862 as_fn_set_status $ac_retval
1864 } # ac_fn_c_try_compile
1866 # ac_fn_c_try_link LINENO
1867 # -----------------------
1868 # Try to link conftest.$ac_ext, and return whether this succeeded.
1869 ac_fn_c_try_link ()
1871 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1872 rm -f conftest.$ac_objext conftest$ac_exeext
1873 if { { ac_try="$ac_link"
1874 case "(($ac_try" in
1875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1876 *) ac_try_echo=$ac_try;;
1877 esac
1878 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1879 $as_echo "$ac_try_echo"; } >&5
1880 (eval "$ac_link") 2>conftest.err
1881 ac_status=$?
1882 if test -s conftest.err; then
1883 grep -v '^ *+' conftest.err >conftest.er1
1884 cat conftest.er1 >&5
1885 mv -f conftest.er1 conftest.err
1887 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1888 test $ac_status = 0; } && {
1889 test -z "$ac_c_werror_flag" ||
1890 test ! -s conftest.err
1891 } && test -s conftest$ac_exeext && {
1892 test "$cross_compiling" = yes ||
1893 test -x conftest$ac_exeext
1894 }; then :
1895 ac_retval=0
1896 else
1897 $as_echo "$as_me: failed program was:" >&5
1898 sed 's/^/| /' conftest.$ac_ext >&5
1900 ac_retval=1
1902 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1903 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1904 # interfere with the next link command; also delete a directory that is
1905 # left behind by Apple's compiler. We do this before executing the actions.
1906 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1907 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1908 as_fn_set_status $ac_retval
1910 } # ac_fn_c_try_link
1912 # ac_fn_cxx_try_compile LINENO
1913 # ----------------------------
1914 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1915 ac_fn_cxx_try_compile ()
1917 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1918 rm -f conftest.$ac_objext
1919 if { { ac_try="$ac_compile"
1920 case "(($ac_try" in
1921 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1922 *) ac_try_echo=$ac_try;;
1923 esac
1924 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1925 $as_echo "$ac_try_echo"; } >&5
1926 (eval "$ac_compile") 2>conftest.err
1927 ac_status=$?
1928 if test -s conftest.err; then
1929 grep -v '^ *+' conftest.err >conftest.er1
1930 cat conftest.er1 >&5
1931 mv -f conftest.er1 conftest.err
1933 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1934 test $ac_status = 0; } && {
1935 test -z "$ac_cxx_werror_flag" ||
1936 test ! -s conftest.err
1937 } && test -s conftest.$ac_objext; then :
1938 ac_retval=0
1939 else
1940 $as_echo "$as_me: failed program was:" >&5
1941 sed 's/^/| /' conftest.$ac_ext >&5
1943 ac_retval=1
1945 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1946 as_fn_set_status $ac_retval
1948 } # ac_fn_cxx_try_compile
1950 # ac_fn_c_try_cpp LINENO
1951 # ----------------------
1952 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1953 ac_fn_c_try_cpp ()
1955 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1956 if { { ac_try="$ac_cpp conftest.$ac_ext"
1957 case "(($ac_try" in
1958 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1959 *) ac_try_echo=$ac_try;;
1960 esac
1961 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1962 $as_echo "$ac_try_echo"; } >&5
1963 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1964 ac_status=$?
1965 if test -s conftest.err; then
1966 grep -v '^ *+' conftest.err >conftest.er1
1967 cat conftest.er1 >&5
1968 mv -f conftest.er1 conftest.err
1970 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1971 test $ac_status = 0; } > conftest.i && {
1972 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1973 test ! -s conftest.err
1974 }; then :
1975 ac_retval=0
1976 else
1977 $as_echo "$as_me: failed program was:" >&5
1978 sed 's/^/| /' conftest.$ac_ext >&5
1980 ac_retval=1
1982 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1983 as_fn_set_status $ac_retval
1985 } # ac_fn_c_try_cpp
1987 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1988 # -------------------------------------------------------
1989 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1990 # the include files in INCLUDES and setting the cache variable VAR
1991 # accordingly.
1992 ac_fn_c_check_header_mongrel ()
1994 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1995 if eval \${$3+:} false; then :
1996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1997 $as_echo_n "checking for $2... " >&6; }
1998 if eval \${$3+:} false; then :
1999 $as_echo_n "(cached) " >&6
2001 eval ac_res=\$$3
2002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2003 $as_echo "$ac_res" >&6; }
2004 else
2005 # Is the header compilable?
2006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2007 $as_echo_n "checking $2 usability... " >&6; }
2008 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2009 /* end confdefs.h. */
2011 #include <$2>
2012 _ACEOF
2013 if ac_fn_c_try_compile "$LINENO"; then :
2014 ac_header_compiler=yes
2015 else
2016 ac_header_compiler=no
2018 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2020 $as_echo "$ac_header_compiler" >&6; }
2022 # Is the header present?
2023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2024 $as_echo_n "checking $2 presence... " >&6; }
2025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2026 /* end confdefs.h. */
2027 #include <$2>
2028 _ACEOF
2029 if ac_fn_c_try_cpp "$LINENO"; then :
2030 ac_header_preproc=yes
2031 else
2032 ac_header_preproc=no
2034 rm -f conftest.err conftest.i conftest.$ac_ext
2035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2036 $as_echo "$ac_header_preproc" >&6; }
2038 # So? What about this header?
2039 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2040 yes:no: )
2041 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2042 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2043 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2044 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2046 no:yes:* )
2047 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2048 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2049 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2050 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2051 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2052 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2053 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2054 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2055 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2056 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2058 esac
2059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2060 $as_echo_n "checking for $2... " >&6; }
2061 if eval \${$3+:} false; then :
2062 $as_echo_n "(cached) " >&6
2063 else
2064 eval "$3=\$ac_header_compiler"
2066 eval ac_res=\$$3
2067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2068 $as_echo "$ac_res" >&6; }
2070 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2072 } # ac_fn_c_check_header_mongrel
2074 # ac_fn_c_try_run LINENO
2075 # ----------------------
2076 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2077 # that executables *can* be run.
2078 ac_fn_c_try_run ()
2080 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2081 if { { ac_try="$ac_link"
2082 case "(($ac_try" in
2083 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2084 *) ac_try_echo=$ac_try;;
2085 esac
2086 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2087 $as_echo "$ac_try_echo"; } >&5
2088 (eval "$ac_link") 2>&5
2089 ac_status=$?
2090 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2091 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2092 { { case "(($ac_try" in
2093 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2094 *) ac_try_echo=$ac_try;;
2095 esac
2096 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2097 $as_echo "$ac_try_echo"; } >&5
2098 (eval "$ac_try") 2>&5
2099 ac_status=$?
2100 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2101 test $ac_status = 0; }; }; then :
2102 ac_retval=0
2103 else
2104 $as_echo "$as_me: program exited with status $ac_status" >&5
2105 $as_echo "$as_me: failed program was:" >&5
2106 sed 's/^/| /' conftest.$ac_ext >&5
2108 ac_retval=$ac_status
2110 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2111 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2112 as_fn_set_status $ac_retval
2114 } # ac_fn_c_try_run
2116 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2117 # -------------------------------------------------------
2118 # Tests whether HEADER exists and can be compiled using the include files in
2119 # INCLUDES, setting the cache variable VAR accordingly.
2120 ac_fn_c_check_header_compile ()
2122 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2124 $as_echo_n "checking for $2... " >&6; }
2125 if eval \${$3+:} false; then :
2126 $as_echo_n "(cached) " >&6
2127 else
2128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2129 /* end confdefs.h. */
2131 #include <$2>
2132 _ACEOF
2133 if ac_fn_c_try_compile "$LINENO"; then :
2134 eval "$3=yes"
2135 else
2136 eval "$3=no"
2138 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2140 eval ac_res=\$$3
2141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2142 $as_echo "$ac_res" >&6; }
2143 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2145 } # ac_fn_c_check_header_compile
2147 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2148 # -------------------------------------------
2149 # Tests whether TYPE exists after having included INCLUDES, setting cache
2150 # variable VAR accordingly.
2151 ac_fn_c_check_type ()
2153 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2155 $as_echo_n "checking for $2... " >&6; }
2156 if eval \${$3+:} false; then :
2157 $as_echo_n "(cached) " >&6
2158 else
2159 eval "$3=no"
2160 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2161 /* end confdefs.h. */
2164 main ()
2166 if (sizeof ($2))
2167 return 0;
2169 return 0;
2171 _ACEOF
2172 if ac_fn_c_try_compile "$LINENO"; then :
2173 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2174 /* end confdefs.h. */
2177 main ()
2179 if (sizeof (($2)))
2180 return 0;
2182 return 0;
2184 _ACEOF
2185 if ac_fn_c_try_compile "$LINENO"; then :
2187 else
2188 eval "$3=yes"
2190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2192 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2194 eval ac_res=\$$3
2195 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2196 $as_echo "$ac_res" >&6; }
2197 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2199 } # ac_fn_c_check_type
2201 # ac_fn_c_check_func LINENO FUNC VAR
2202 # ----------------------------------
2203 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2204 ac_fn_c_check_func ()
2206 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2207 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2208 $as_echo_n "checking for $2... " >&6; }
2209 if eval \${$3+:} false; then :
2210 $as_echo_n "(cached) " >&6
2211 else
2212 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2213 /* end confdefs.h. */
2214 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2215 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2216 #define $2 innocuous_$2
2218 /* System header to define __stub macros and hopefully few prototypes,
2219 which can conflict with char $2 (); below.
2220 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2221 <limits.h> exists even on freestanding compilers. */
2223 #ifdef __STDC__
2224 # include <limits.h>
2225 #else
2226 # include <assert.h>
2227 #endif
2229 #undef $2
2231 /* Override any GCC internal prototype to avoid an error.
2232 Use char because int might match the return type of a GCC
2233 builtin and then its argument prototype would still apply. */
2234 #ifdef __cplusplus
2235 extern "C"
2236 #endif
2237 char $2 ();
2238 /* The GNU C library defines this for functions which it implements
2239 to always fail with ENOSYS. Some functions are actually named
2240 something starting with __ and the normal name is an alias. */
2241 #if defined __stub_$2 || defined __stub___$2
2242 choke me
2243 #endif
2246 main ()
2248 return $2 ();
2250 return 0;
2252 _ACEOF
2253 if ac_fn_c_try_link "$LINENO"; then :
2254 eval "$3=yes"
2255 else
2256 eval "$3=no"
2258 rm -f core conftest.err conftest.$ac_objext \
2259 conftest$ac_exeext conftest.$ac_ext
2261 eval ac_res=\$$3
2262 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2263 $as_echo "$ac_res" >&6; }
2264 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2266 } # ac_fn_c_check_func
2267 cat >config.log <<_ACEOF
2268 This file contains any messages produced by compilers while
2269 running configure, to aid debugging if configure makes a mistake.
2271 It was created by $as_me, which was
2272 generated by GNU Autoconf 2.69. Invocation command line was
2274 $ $0 $@
2276 _ACEOF
2277 exec 5>>config.log
2279 cat <<_ASUNAME
2280 ## --------- ##
2281 ## Platform. ##
2282 ## --------- ##
2284 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2285 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2286 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2287 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2288 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2290 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2291 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2293 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2294 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2295 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2296 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2297 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2298 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2299 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2301 _ASUNAME
2303 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2304 for as_dir in $PATH
2306 IFS=$as_save_IFS
2307 test -z "$as_dir" && as_dir=.
2308 $as_echo "PATH: $as_dir"
2309 done
2310 IFS=$as_save_IFS
2312 } >&5
2314 cat >&5 <<_ACEOF
2317 ## ----------- ##
2318 ## Core tests. ##
2319 ## ----------- ##
2321 _ACEOF
2324 # Keep a trace of the command line.
2325 # Strip out --no-create and --no-recursion so they do not pile up.
2326 # Strip out --silent because we don't want to record it for future runs.
2327 # Also quote any args containing shell meta-characters.
2328 # Make two passes to allow for proper duplicate-argument suppression.
2329 ac_configure_args=
2330 ac_configure_args0=
2331 ac_configure_args1=
2332 ac_must_keep_next=false
2333 for ac_pass in 1 2
2335 for ac_arg
2337 case $ac_arg in
2338 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2339 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2340 | -silent | --silent | --silen | --sile | --sil)
2341 continue ;;
2342 *\'*)
2343 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2344 esac
2345 case $ac_pass in
2346 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2348 as_fn_append ac_configure_args1 " '$ac_arg'"
2349 if test $ac_must_keep_next = true; then
2350 ac_must_keep_next=false # Got value, back to normal.
2351 else
2352 case $ac_arg in
2353 *=* | --config-cache | -C | -disable-* | --disable-* \
2354 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2355 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2356 | -with-* | --with-* | -without-* | --without-* | --x)
2357 case "$ac_configure_args0 " in
2358 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2359 esac
2361 -* ) ac_must_keep_next=true ;;
2362 esac
2364 as_fn_append ac_configure_args " '$ac_arg'"
2366 esac
2367 done
2368 done
2369 { ac_configure_args0=; unset ac_configure_args0;}
2370 { ac_configure_args1=; unset ac_configure_args1;}
2372 # When interrupted or exit'd, cleanup temporary files, and complete
2373 # config.log. We remove comments because anyway the quotes in there
2374 # would cause problems or look ugly.
2375 # WARNING: Use '\'' to represent an apostrophe within the trap.
2376 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2377 trap 'exit_status=$?
2378 # Save into config.log some information that might help in debugging.
2380 echo
2382 $as_echo "## ---------------- ##
2383 ## Cache variables. ##
2384 ## ---------------- ##"
2385 echo
2386 # The following way of writing the cache mishandles newlines in values,
2388 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2389 eval ac_val=\$$ac_var
2390 case $ac_val in #(
2391 *${as_nl}*)
2392 case $ac_var in #(
2393 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2394 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2395 esac
2396 case $ac_var in #(
2397 _ | IFS | as_nl) ;; #(
2398 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2399 *) { eval $ac_var=; unset $ac_var;} ;;
2400 esac ;;
2401 esac
2402 done
2403 (set) 2>&1 |
2404 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2405 *${as_nl}ac_space=\ *)
2406 sed -n \
2407 "s/'\''/'\''\\\\'\'''\''/g;
2408 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2409 ;; #(
2411 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2413 esac |
2414 sort
2416 echo
2418 $as_echo "## ----------------- ##
2419 ## Output variables. ##
2420 ## ----------------- ##"
2421 echo
2422 for ac_var in $ac_subst_vars
2424 eval ac_val=\$$ac_var
2425 case $ac_val in
2426 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2427 esac
2428 $as_echo "$ac_var='\''$ac_val'\''"
2429 done | sort
2430 echo
2432 if test -n "$ac_subst_files"; then
2433 $as_echo "## ------------------- ##
2434 ## File substitutions. ##
2435 ## ------------------- ##"
2436 echo
2437 for ac_var in $ac_subst_files
2439 eval ac_val=\$$ac_var
2440 case $ac_val in
2441 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2442 esac
2443 $as_echo "$ac_var='\''$ac_val'\''"
2444 done | sort
2445 echo
2448 if test -s confdefs.h; then
2449 $as_echo "## ----------- ##
2450 ## confdefs.h. ##
2451 ## ----------- ##"
2452 echo
2453 cat confdefs.h
2454 echo
2456 test "$ac_signal" != 0 &&
2457 $as_echo "$as_me: caught signal $ac_signal"
2458 $as_echo "$as_me: exit $exit_status"
2459 } >&5
2460 rm -f core *.core core.conftest.* &&
2461 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2462 exit $exit_status
2464 for ac_signal in 1 2 13 15; do
2465 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2466 done
2467 ac_signal=0
2469 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2470 rm -f -r conftest* confdefs.h
2472 $as_echo "/* confdefs.h */" > confdefs.h
2474 # Predefined preprocessor variables.
2476 cat >>confdefs.h <<_ACEOF
2477 #define PACKAGE_NAME "$PACKAGE_NAME"
2478 _ACEOF
2480 cat >>confdefs.h <<_ACEOF
2481 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2482 _ACEOF
2484 cat >>confdefs.h <<_ACEOF
2485 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2486 _ACEOF
2488 cat >>confdefs.h <<_ACEOF
2489 #define PACKAGE_STRING "$PACKAGE_STRING"
2490 _ACEOF
2492 cat >>confdefs.h <<_ACEOF
2493 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2494 _ACEOF
2496 cat >>confdefs.h <<_ACEOF
2497 #define PACKAGE_URL "$PACKAGE_URL"
2498 _ACEOF
2501 # Let the site file select an alternate cache file if it wants to.
2502 # Prefer an explicitly selected file to automatically selected ones.
2503 ac_site_file1=NONE
2504 ac_site_file2=NONE
2505 if test -n "$CONFIG_SITE"; then
2506 # We do not want a PATH search for config.site.
2507 case $CONFIG_SITE in #((
2508 -*) ac_site_file1=./$CONFIG_SITE;;
2509 */*) ac_site_file1=$CONFIG_SITE;;
2510 *) ac_site_file1=./$CONFIG_SITE;;
2511 esac
2512 elif test "x$prefix" != xNONE; then
2513 ac_site_file1=$prefix/share/config.site
2514 ac_site_file2=$prefix/etc/config.site
2515 else
2516 ac_site_file1=$ac_default_prefix/share/config.site
2517 ac_site_file2=$ac_default_prefix/etc/config.site
2519 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2521 test "x$ac_site_file" = xNONE && continue
2522 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2523 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2524 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2525 sed 's/^/| /' "$ac_site_file" >&5
2526 . "$ac_site_file" \
2527 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2528 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2529 as_fn_error $? "failed to load site script $ac_site_file
2530 See \`config.log' for more details" "$LINENO" 5; }
2532 done
2534 if test -r "$cache_file"; then
2535 # Some versions of bash will fail to source /dev/null (special files
2536 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2537 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2538 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2539 $as_echo "$as_me: loading cache $cache_file" >&6;}
2540 case $cache_file in
2541 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2542 *) . "./$cache_file";;
2543 esac
2545 else
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2547 $as_echo "$as_me: creating cache $cache_file" >&6;}
2548 >$cache_file
2551 # Check that the precious variables saved in the cache have kept the same
2552 # value.
2553 ac_cache_corrupted=false
2554 for ac_var in $ac_precious_vars; do
2555 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2556 eval ac_new_set=\$ac_env_${ac_var}_set
2557 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2558 eval ac_new_val=\$ac_env_${ac_var}_value
2559 case $ac_old_set,$ac_new_set in
2560 set,)
2561 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2562 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2563 ac_cache_corrupted=: ;;
2564 ,set)
2565 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2566 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2567 ac_cache_corrupted=: ;;
2568 ,);;
2570 if test "x$ac_old_val" != "x$ac_new_val"; then
2571 # differences in whitespace do not lead to failure.
2572 ac_old_val_w=`echo x $ac_old_val`
2573 ac_new_val_w=`echo x $ac_new_val`
2574 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2575 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2576 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2577 ac_cache_corrupted=:
2578 else
2579 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2580 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2581 eval $ac_var=\$ac_old_val
2583 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2584 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2585 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2586 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2587 fi;;
2588 esac
2589 # Pass precious variables to config.status.
2590 if test "$ac_new_set" = set; then
2591 case $ac_new_val in
2592 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2593 *) ac_arg=$ac_var=$ac_new_val ;;
2594 esac
2595 case " $ac_configure_args " in
2596 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2597 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2598 esac
2600 done
2601 if $ac_cache_corrupted; then
2602 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2603 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2604 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2605 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2606 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2608 ## -------------------- ##
2609 ## Main body of script. ##
2610 ## -------------------- ##
2612 ac_ext=c
2613 ac_cpp='$CPP $CPPFLAGS'
2614 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2615 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2616 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2621 unset ROOT TOOLROOT
2624 # Check whether --with-64bit was given.
2625 if test "${with_64bit+set}" = set; then :
2626 withval=$with_64bit; use_64bit=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-64bit=$withval"
2631 # Check whether --with-optimization was given.
2632 if test "${with_optimization+set}" = set; then :
2633 withval=$with_optimization; use_optimization=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-optimization=$withval"
2634 else
2635 use_optimizaton=yes
2640 # Check whether --with-threads was given.
2641 if test "${with_threads+set}" = set; then :
2642 withval=$with_threads; do_threads=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-threads=$withval"
2643 else
2644 do_threads=check
2649 # Check whether --with-secure-sockets was given.
2650 if test "${with_secure_sockets+set}" = set; then :
2651 withval=$with_secure_sockets; do_secure=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-secure-sockets=$withval"
2652 else
2653 do_secure=check
2658 # Check whether --with-static-probes was given.
2659 if test "${with_static_probes+set}" = set; then :
2660 withval=$with_static_probes; do_probes=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-static-probes=$withval"
2661 else
2662 do_probes=check
2667 # Check whether --with-infiniband was given.
2668 if test "${with_infiniband+set}" = set; then :
2669 withval=$with_infiniband; do_infiniband=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-infiniband=$withval"
2670 else
2671 do_infiniband=check
2676 # Check whether --with-user was given.
2677 if test "${with_user+set}" = set; then :
2678 withval=$with_user; pcp_user=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-user-account=$withval"
2679 else
2680 pcp_user=pcp
2686 # Check whether --with-group was given.
2687 if test "${with_group+set}" = set; then :
2688 withval=$with_group; pcp_group=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-group-account=$withval"
2689 else
2690 pcp_group=pcp
2696 # Check whether --with-discovery was given.
2697 if test "${with_discovery+set}" = set; then :
2698 withval=$with_discovery; do_discovery=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-discovery=$withval"
2699 else
2700 do_discovery=check
2705 # Check whether --with-systemd was given.
2706 if test "${with_systemd+set}" = set; then :
2707 withval=$with_systemd; do_systemd=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-systemd=$withval"
2708 else
2709 do_systemd=check
2714 # Check whether --with-qt was given.
2715 if test "${with_qt+set}" = set; then :
2716 withval=$with_qt; do_qt=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-qt=$withval"
2717 else
2718 do_qt=check
2723 # Check whether --with-qt3d was given.
2724 if test "${with_qt3d+set}" = set; then :
2725 withval=$with_qt3d; do_qt3d=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-qt3d=$withval"
2726 else
2727 do_qt3d=check
2732 # Check whether --with-python was given.
2733 if test "${with_python+set}" = set; then :
2734 withval=$with_python; do_python=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-python=$withval"
2735 else
2736 do_python=check
2741 # Check whether --with-python3 was given.
2742 if test "${with_python3+set}" = set; then :
2743 withval=$with_python3; do_python3=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-python3=$withval"
2744 else
2745 do_python3=check
2750 # Check whether --with-books was given.
2751 if test "${with_books+set}" = set; then :
2752 withval=$with_books; do_books=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-books=$withval"
2753 else
2754 do_books=no
2759 # Check whether --with-books-brand was given.
2760 if test "${with_books_brand+set}" = set; then :
2761 withval=$with_books_brand; do_books_brand=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-books-brand=$withval"
2762 else
2763 do_books_brand=common
2768 # Check whether --with-papi was given.
2769 if test "${with_papi+set}" = set; then :
2770 withval=$with_papi; do_papi=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-papi=$withval"
2771 else
2772 do_papi=check
2777 # Check whether --with-perfevent was given.
2778 if test "${with_perfevent+set}" = set; then :
2779 withval=$with_perfevent; do_perfevent=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-perfevent=$withval"
2780 else
2781 do_perfevent=check
2786 # Check whether --with-pmdajson was given.
2787 if test "${with_pmdajson+set}" = set; then :
2788 withval=$with_pmdajson; do_pmdajson=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-pmdajson=$withval"
2789 else
2790 do_pmdajson=check
2795 # Check whether --with-pmdasnmp was given.
2796 if test "${with_pmdasnmp+set}" = set; then :
2797 withval=$with_pmdasnmp; do_pmdasnmp=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-pmdasnmp=$withval"
2798 else
2799 do_pmdasnmp=check
2804 # Check whether --with-manager was given.
2805 if test "${with_manager+set}" = set; then :
2806 withval=$with_manager; do_manager=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-manager=$withval"
2807 else
2808 do_manager=check
2813 # Check whether --with-webapi was given.
2814 if test "${with_webapi+set}" = set; then :
2815 withval=$with_webapi; do_webapi=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-webapi=$withval"
2816 else
2817 do_webapi=check
2822 # Check whether --with-webjs was given.
2823 if test "${with_webjs+set}" = set; then :
2824 withval=$with_webjs; do_webjs=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-webjs=$withval"
2825 else
2826 do_webjs=no
2831 # Check whether --with-vector was given.
2832 if test "${with_vector+set}" = set; then :
2833 withval=$with_vector; do_vector=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-vector=$withval"
2834 else
2835 do_vector=no
2840 # Check whether --with-parfait was given.
2841 if test "${with_parfait+set}" = set; then :
2842 withval=$with_parfait; do_parfait=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-parfait=$withval"
2843 else
2844 do_parfait=no
2850 # Check whether --with-make was given.
2851 if test "${with_make+set}" = set; then :
2852 withval=$with_make; MAKE=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-make=$withval"
2853 else
2854 MAKE=''
2859 # Check whether --with-tar was given.
2860 if test "${with_tar+set}" = set; then :
2861 withval=$with_tar; TAR=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-tar=$withval"
2862 else
2863 TAR=''
2868 # Check whether --with-zip was given.
2869 if test "${with_zip+set}" = set; then :
2870 withval=$with_zip; ZIP=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-zip=$withval"
2871 else
2872 ZIP=''
2877 # Note: the following environment variables may be
2878 # set to override the defaults.
2880 # MAKE CC CPP LD LEX YACC INSTALL AWK SED ECHO
2883 ac_aux_dir=
2884 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2885 if test -f "$ac_dir/install-sh"; then
2886 ac_aux_dir=$ac_dir
2887 ac_install_sh="$ac_aux_dir/install-sh -c"
2888 break
2889 elif test -f "$ac_dir/install.sh"; then
2890 ac_aux_dir=$ac_dir
2891 ac_install_sh="$ac_aux_dir/install.sh -c"
2892 break
2893 elif test -f "$ac_dir/shtool"; then
2894 ac_aux_dir=$ac_dir
2895 ac_install_sh="$ac_aux_dir/shtool install -c"
2896 break
2898 done
2899 if test -z "$ac_aux_dir"; then
2900 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2903 # These three variables are undocumented and unsupported,
2904 # and are intended to be withdrawn in a future Autoconf release.
2905 # They can cause serious problems if a builder's source tree is in a directory
2906 # whose full name contains unusual characters.
2907 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2908 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2909 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2912 # Make sure we can run config.sub.
2913 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2914 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2917 $as_echo_n "checking build system type... " >&6; }
2918 if ${ac_cv_build+:} false; then :
2919 $as_echo_n "(cached) " >&6
2920 else
2921 ac_build_alias=$build_alias
2922 test "x$ac_build_alias" = x &&
2923 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2924 test "x$ac_build_alias" = x &&
2925 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2926 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2927 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2931 $as_echo "$ac_cv_build" >&6; }
2932 case $ac_cv_build in
2933 *-*-*) ;;
2934 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2935 esac
2936 build=$ac_cv_build
2937 ac_save_IFS=$IFS; IFS='-'
2938 set x $ac_cv_build
2939 shift
2940 build_cpu=$1
2941 build_vendor=$2
2942 shift; shift
2943 # Remember, the first character of IFS is used to create $*,
2944 # except with old shells:
2945 build_os=$*
2946 IFS=$ac_save_IFS
2947 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2950 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2951 $as_echo_n "checking host system type... " >&6; }
2952 if ${ac_cv_host+:} false; then :
2953 $as_echo_n "(cached) " >&6
2954 else
2955 if test "x$host_alias" = x; then
2956 ac_cv_host=$ac_cv_build
2957 else
2958 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2959 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2964 $as_echo "$ac_cv_host" >&6; }
2965 case $ac_cv_host in
2966 *-*-*) ;;
2967 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2968 esac
2969 host=$ac_cv_host
2970 ac_save_IFS=$IFS; IFS='-'
2971 set x $ac_cv_host
2972 shift
2973 host_cpu=$1
2974 host_vendor=$2
2975 shift; shift
2976 # Remember, the first character of IFS is used to create $*,
2977 # except with old shells:
2978 host_os=$*
2979 IFS=$ac_save_IFS
2980 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2984 $as_echo_n "checking target system type... " >&6; }
2985 if ${ac_cv_target+:} false; then :
2986 $as_echo_n "(cached) " >&6
2987 else
2988 if test "x$target_alias" = x; then
2989 ac_cv_target=$ac_cv_host
2990 else
2991 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2992 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2997 $as_echo "$ac_cv_target" >&6; }
2998 case $ac_cv_target in
2999 *-*-*) ;;
3000 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3001 esac
3002 target=$ac_cv_target
3003 ac_save_IFS=$IFS; IFS='-'
3004 set x $ac_cv_target
3005 shift
3006 target_cpu=$1
3007 target_vendor=$2
3008 shift; shift
3009 # Remember, the first character of IFS is used to create $*,
3010 # except with old shells:
3011 target_os=$*
3012 IFS=$ac_save_IFS
3013 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3016 # The aliases save the names the user supplied, while $host etc.
3017 # will get canonicalized.
3018 test -n "$target_alias" &&
3019 test "$program_prefix$program_suffix$program_transform_name" = \
3020 NONENONEs,x,x, &&
3021 program_prefix=${target_alias}-
3023 if test -z "$target"
3024 then
3025 echo '
3026 FATAL ERROR: Cannot guess your target, try explicit specification
3027 using --target or mailto: pcp@groups.io to ask.'
3028 rm -rf conftest conftest.*
3029 exit 1
3030 else
3031 target=`echo $target | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
3032 target_os=`echo $target_os | sed 's/solaris2\..*/solaris/'`
3033 target_os=`echo $target_os | sed 's/^\([^-][^-]*\)-.*$/\1/' | sed 's/[\.0-9]*//g'`
3035 build=`echo $build | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
3036 build_os=`echo $build_os | sed 's/solaris2\..*/solaris/'`
3037 build_os=`echo $build_os | sed 's/^\([^-][^-]*\)-.*$/\1/'`
3040 echo Building on $build for $target
3041 echo "Build: os=$build_os cpu=$build_cpu"
3042 echo "Target: os=$target_os cpu=$target_cpu"
3044 if test "$cross_compiling" = "yes"; then
3045 if test -f ./config.$target_os; then
3046 . ./config.$target_os
3047 else
3048 echo
3049 echo "
3050 FATAL ERROR: Cannot perform cross-compilation without a file to source
3051 configuration information from (config.$target_os is missing)"
3052 rm -rf conftest conftest.*
3053 exit 1
3059 target_distro=$target_os
3060 if test $target_os = linux
3061 then
3063 $as_echo "#define IS_LINUX 1" >>confdefs.h
3065 test -f /etc/SuSE-release && target_distro=suse
3066 test -f /etc/fedora-release && target_distro=fedora
3067 test -f /etc/redhat-release && target_distro=redhat
3068 test -f /etc/debian_version && target_distro=debian
3069 test -f /etc/slackware-version && target_distro=slackware
3070 test -f /etc/gentoo-release && target_distro=gentoo
3071 test -f /etc/mandriva-release && target_distro=mandriva
3072 test -f /etc/arch-release && target_distro=arch
3073 export CFLAGS="-fPIC -fno-strict-aliasing -D_GNU_SOURCE"
3074 pcp_platform_paths='/usr/bin/X11:/usr/local/bin'
3075 pcp_ps_all_flags=-efw
3076 elif test $target_os = darwin
3077 then
3079 $as_echo "#define IS_DARWIN 1" >>confdefs.h
3081 target_distro=macosx
3082 version=`sw_vers -productVersion | sed -e 's/\.//' -e 's/\..*//g'`
3083 CFLAGS="-fPIC -no-cpp-precomp -fno-strict-aliasing -arch i386"
3084 if test $version -ge 106
3085 then
3086 target_distro=cocoa
3087 CFLAGS="$CFLAGS -arch x86_64"
3089 export CFLAGS
3090 pcp_platform_paths='/usr/local/bin'
3091 pcp_ps_all_flags="-axw -o user,pid,ppid,cpu,stime,tty,time,command"
3092 elif test $target_os = mingw
3093 then
3095 $as_echo "#define IS_MINGW 1" >>confdefs.h
3097 CFLAGS="-fno-strict-aliasing"
3098 pcp_platform_paths=''
3099 pcp_ps_all_flags=-efW
3100 elif test $target_os = solaris
3101 then
3103 $as_echo "#define IS_SOLARIS 1" >>confdefs.h
3105 export CFLAGS_IF_GCC="-fPIC -fno-strict-aliasing"
3106 export CFLAGS_IF_SUNCC="-fPIC -xalias_level=any -D_XPG4_2 -D__EXTENSIONS__"
3107 pcp_platform_paths='/usr/bin/X11:/usr/local/bin:/opt/sfw/bin:/opt/csw/bin'
3108 pcp_ps_all_flags=-ef
3109 elif test $target_os = aix
3110 then
3112 $as_echo "#define IS_AIX 1" >>confdefs.h
3114 export CFLAGS="-qcpluscmt"
3115 pcp_platform_paths='/usr/bin/X11:/usr/local/bin'
3116 pcp_ps_all_flags=-ef
3117 elif test $target_os = freebsd || test $target_os = kfreebsd
3118 then
3120 $as_echo "#define IS_FREEBSD 1" >>confdefs.h
3122 test -f /etc/debian_version && target_distro=debian
3123 export CFLAGS="-fPIC -fno-strict-aliasing -D_GNU_SOURCE"
3124 if test $target_os = kfreebsd
3125 then
3126 pcp_ps_all_flags=-efw
3127 else
3128 pcp_ps_all_flags=auxww
3130 pcp_platform_paths='/usr/bin/X11'
3131 test -d /usr/local/bin && pcp_platform_paths="$pcp_platform_paths:/usr/local/bin"
3132 test -d /usr/bsd && pcp_platform_paths="$pcp_platform_paths:/usr/bsd"
3133 elif test $target_os = gnu
3134 then
3136 $as_echo "#define IS_GNU 1" >>confdefs.h
3138 test -f /etc/debian_version && target_distro=debian
3139 export CFLAGS="-fPIC -fno-strict-aliasing -D_GNU_SOURCE"
3140 pcp_platform_paths='/usr/bin/X11:/usr/local/bin'
3141 pcp_ps_all_flags=-efw
3142 elif test $target_os = netbsdelf
3143 then
3144 target_os=netbsd
3146 $as_echo "#define IS_NETBSD 1" >>confdefs.h
3148 export CFLAGS="-fPIC -fno-strict-aliasing -D_GNU_SOURCE -D_NETBSD_SOURCE"
3149 pcp_platform_paths='/usr/pkg/bin'
3150 pcp_ps_all_flags=auxww
3151 elif test $target_os = openbsd
3152 then
3153 target_os=openbsd
3155 $as_echo "#define IS_OPENBSD 1" >>confdefs.h
3157 export CFLAGS="-fPIC -fno-strict-aliasing -D_GNU_SOURCE"
3158 pcp_platform_paths='/usr/local/bin'
3159 pcp_ps_all_flags=auxww
3160 else
3161 echo
3162 echo "FATAL ERROR: need platform-specific customization for \"$target_os\""
3163 rm -rf conftest conftest.*
3164 exit 1
3169 if test "$use_optimization" = no
3170 then
3171 optimization="-O0 -g"
3172 else
3173 optimization="-O2 -g"
3184 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
3185 if test -n "$ac_tool_prefix"; then
3186 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3187 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3189 $as_echo_n "checking for $ac_word... " >&6; }
3190 if ${ac_cv_path_PKG_CONFIG+:} false; then :
3191 $as_echo_n "(cached) " >&6
3192 else
3193 case $PKG_CONFIG in
3194 [\\/]* | ?:[\\/]*)
3195 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3198 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3199 for as_dir in $PATH
3201 IFS=$as_save_IFS
3202 test -z "$as_dir" && as_dir=.
3203 for ac_exec_ext in '' $ac_executable_extensions; do
3204 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3205 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3206 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3207 break 2
3209 done
3210 done
3211 IFS=$as_save_IFS
3214 esac
3216 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3217 if test -n "$PKG_CONFIG"; then
3218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
3219 $as_echo "$PKG_CONFIG" >&6; }
3220 else
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3222 $as_echo "no" >&6; }
3227 if test -z "$ac_cv_path_PKG_CONFIG"; then
3228 ac_pt_PKG_CONFIG=$PKG_CONFIG
3229 # Extract the first word of "pkg-config", so it can be a program name with args.
3230 set dummy pkg-config; ac_word=$2
3231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3232 $as_echo_n "checking for $ac_word... " >&6; }
3233 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
3234 $as_echo_n "(cached) " >&6
3235 else
3236 case $ac_pt_PKG_CONFIG in
3237 [\\/]* | ?:[\\/]*)
3238 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
3241 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3242 for as_dir in $PATH
3244 IFS=$as_save_IFS
3245 test -z "$as_dir" && as_dir=.
3246 for ac_exec_ext in '' $ac_executable_extensions; do
3247 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3248 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3249 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3250 break 2
3252 done
3253 done
3254 IFS=$as_save_IFS
3257 esac
3259 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
3260 if test -n "$ac_pt_PKG_CONFIG"; then
3261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
3262 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
3263 else
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3265 $as_echo "no" >&6; }
3268 if test "x$ac_pt_PKG_CONFIG" = x; then
3269 PKG_CONFIG=""
3270 else
3271 case $cross_compiling:$ac_tool_warned in
3272 yes:)
3273 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3274 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3275 ac_tool_warned=yes ;;
3276 esac
3277 PKG_CONFIG=$ac_pt_PKG_CONFIG
3279 else
3280 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
3284 if test -n "$PKG_CONFIG"; then
3285 _pkg_min_version=0.9.0
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
3287 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
3288 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
3289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3290 $as_echo "yes" >&6; }
3291 else
3292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3293 $as_echo "no" >&6; }
3294 PKG_CONFIG=""
3297 if test -z "$PKG_CONFIG"; then
3298 as_fn_error $? "cannot find a 'pkg-config' command" "$LINENO" 5
3301 cflags_abi=
3302 ac_ext=c
3303 ac_cpp='$CPP $CPPFLAGS'
3304 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3305 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3306 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3307 if test -n "$ac_tool_prefix"; then
3308 for ac_prog in suncc egcc gcc cc
3310 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3311 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3312 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3313 $as_echo_n "checking for $ac_word... " >&6; }
3314 if ${ac_cv_prog_CC+:} false; then :
3315 $as_echo_n "(cached) " >&6
3316 else
3317 if test -n "$CC"; then
3318 ac_cv_prog_CC="$CC" # Let the user override the test.
3319 else
3320 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3321 for as_dir in $PATH
3323 IFS=$as_save_IFS
3324 test -z "$as_dir" && as_dir=.
3325 for ac_exec_ext in '' $ac_executable_extensions; do
3326 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3327 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3328 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3329 break 2
3331 done
3332 done
3333 IFS=$as_save_IFS
3337 CC=$ac_cv_prog_CC
3338 if test -n "$CC"; then
3339 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3340 $as_echo "$CC" >&6; }
3341 else
3342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3343 $as_echo "no" >&6; }
3347 test -n "$CC" && break
3348 done
3350 if test -z "$CC"; then
3351 ac_ct_CC=$CC
3352 for ac_prog in suncc egcc gcc cc
3354 # Extract the first word of "$ac_prog", so it can be a program name with args.
3355 set dummy $ac_prog; ac_word=$2
3356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3357 $as_echo_n "checking for $ac_word... " >&6; }
3358 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3359 $as_echo_n "(cached) " >&6
3360 else
3361 if test -n "$ac_ct_CC"; then
3362 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3363 else
3364 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3365 for as_dir in $PATH
3367 IFS=$as_save_IFS
3368 test -z "$as_dir" && as_dir=.
3369 for ac_exec_ext in '' $ac_executable_extensions; do
3370 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3371 ac_cv_prog_ac_ct_CC="$ac_prog"
3372 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3373 break 2
3375 done
3376 done
3377 IFS=$as_save_IFS
3381 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3382 if test -n "$ac_ct_CC"; then
3383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3384 $as_echo "$ac_ct_CC" >&6; }
3385 else
3386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3387 $as_echo "no" >&6; }
3391 test -n "$ac_ct_CC" && break
3392 done
3394 if test "x$ac_ct_CC" = x; then
3395 CC=""
3396 else
3397 case $cross_compiling:$ac_tool_warned in
3398 yes:)
3399 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3400 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3401 ac_tool_warned=yes ;;
3402 esac
3403 CC=$ac_ct_CC
3408 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3409 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3410 as_fn_error $? "no acceptable C compiler found in \$PATH
3411 See \`config.log' for more details" "$LINENO" 5; }
3413 # Provide some information about the compiler.
3414 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3415 set X $ac_compile
3416 ac_compiler=$2
3417 for ac_option in --version -v -V -qversion; do
3418 { { ac_try="$ac_compiler $ac_option >&5"
3419 case "(($ac_try" in
3420 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3421 *) ac_try_echo=$ac_try;;
3422 esac
3423 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3424 $as_echo "$ac_try_echo"; } >&5
3425 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3426 ac_status=$?
3427 if test -s conftest.err; then
3428 sed '10a\
3429 ... rest of stderr output deleted ...
3430 10q' conftest.err >conftest.er1
3431 cat conftest.er1 >&5
3433 rm -f conftest.er1 conftest.err
3434 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3435 test $ac_status = 0; }
3436 done
3438 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3439 /* end confdefs.h. */
3442 main ()
3446 return 0;
3448 _ACEOF
3449 ac_clean_files_save=$ac_clean_files
3450 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3451 # Try to create an executable without -o first, disregard a.out.
3452 # It will help us diagnose broken compilers, and finding out an intuition
3453 # of exeext.
3454 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3455 $as_echo_n "checking whether the C compiler works... " >&6; }
3456 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3458 # The possible output files:
3459 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3461 ac_rmfiles=
3462 for ac_file in $ac_files
3464 case $ac_file in
3465 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3466 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3467 esac
3468 done
3469 rm -f $ac_rmfiles
3471 if { { ac_try="$ac_link_default"
3472 case "(($ac_try" in
3473 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3474 *) ac_try_echo=$ac_try;;
3475 esac
3476 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3477 $as_echo "$ac_try_echo"; } >&5
3478 (eval "$ac_link_default") 2>&5
3479 ac_status=$?
3480 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3481 test $ac_status = 0; }; then :
3482 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3483 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3484 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3485 # so that the user can short-circuit this test for compilers unknown to
3486 # Autoconf.
3487 for ac_file in $ac_files ''
3489 test -f "$ac_file" || continue
3490 case $ac_file in
3491 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3493 [ab].out )
3494 # We found the default executable, but exeext='' is most
3495 # certainly right.
3496 break;;
3497 *.* )
3498 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3499 then :; else
3500 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3502 # We set ac_cv_exeext here because the later test for it is not
3503 # safe: cross compilers may not add the suffix if given an `-o'
3504 # argument, so we may need to know it at that point already.
3505 # Even if this section looks crufty: it has the advantage of
3506 # actually working.
3507 break;;
3509 break;;
3510 esac
3511 done
3512 test "$ac_cv_exeext" = no && ac_cv_exeext=
3514 else
3515 ac_file=''
3517 if test -z "$ac_file"; then :
3518 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3519 $as_echo "no" >&6; }
3520 $as_echo "$as_me: failed program was:" >&5
3521 sed 's/^/| /' conftest.$ac_ext >&5
3523 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3524 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3525 as_fn_error 77 "C compiler cannot create executables
3526 See \`config.log' for more details" "$LINENO" 5; }
3527 else
3528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3529 $as_echo "yes" >&6; }
3531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3532 $as_echo_n "checking for C compiler default output file name... " >&6; }
3533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3534 $as_echo "$ac_file" >&6; }
3535 ac_exeext=$ac_cv_exeext
3537 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3538 ac_clean_files=$ac_clean_files_save
3539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3540 $as_echo_n "checking for suffix of executables... " >&6; }
3541 if { { ac_try="$ac_link"
3542 case "(($ac_try" in
3543 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3544 *) ac_try_echo=$ac_try;;
3545 esac
3546 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3547 $as_echo "$ac_try_echo"; } >&5
3548 (eval "$ac_link") 2>&5
3549 ac_status=$?
3550 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3551 test $ac_status = 0; }; then :
3552 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3553 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3554 # work properly (i.e., refer to `conftest.exe'), while it won't with
3555 # `rm'.
3556 for ac_file in conftest.exe conftest conftest.*; do
3557 test -f "$ac_file" || continue
3558 case $ac_file in
3559 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3560 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3561 break;;
3562 * ) break;;
3563 esac
3564 done
3565 else
3566 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3567 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3568 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3569 See \`config.log' for more details" "$LINENO" 5; }
3571 rm -f conftest conftest$ac_cv_exeext
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3573 $as_echo "$ac_cv_exeext" >&6; }
3575 rm -f conftest.$ac_ext
3576 EXEEXT=$ac_cv_exeext
3577 ac_exeext=$EXEEXT
3578 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3579 /* end confdefs.h. */
3580 #include <stdio.h>
3582 main ()
3584 FILE *f = fopen ("conftest.out", "w");
3585 return ferror (f) || fclose (f) != 0;
3588 return 0;
3590 _ACEOF
3591 ac_clean_files="$ac_clean_files conftest.out"
3592 # Check that the compiler produces executables we can run. If not, either
3593 # the compiler is broken, or we cross compile.
3594 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3595 $as_echo_n "checking whether we are cross compiling... " >&6; }
3596 if test "$cross_compiling" != yes; then
3597 { { ac_try="$ac_link"
3598 case "(($ac_try" in
3599 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3600 *) ac_try_echo=$ac_try;;
3601 esac
3602 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3603 $as_echo "$ac_try_echo"; } >&5
3604 (eval "$ac_link") 2>&5
3605 ac_status=$?
3606 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3607 test $ac_status = 0; }
3608 if { ac_try='./conftest$ac_cv_exeext'
3609 { { case "(($ac_try" in
3610 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3611 *) ac_try_echo=$ac_try;;
3612 esac
3613 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3614 $as_echo "$ac_try_echo"; } >&5
3615 (eval "$ac_try") 2>&5
3616 ac_status=$?
3617 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3618 test $ac_status = 0; }; }; then
3619 cross_compiling=no
3620 else
3621 if test "$cross_compiling" = maybe; then
3622 cross_compiling=yes
3623 else
3624 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3625 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3626 as_fn_error $? "cannot run C compiled programs.
3627 If you meant to cross compile, use \`--host'.
3628 See \`config.log' for more details" "$LINENO" 5; }
3632 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3633 $as_echo "$cross_compiling" >&6; }
3635 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3636 ac_clean_files=$ac_clean_files_save
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3638 $as_echo_n "checking for suffix of object files... " >&6; }
3639 if ${ac_cv_objext+:} false; then :
3640 $as_echo_n "(cached) " >&6
3641 else
3642 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3643 /* end confdefs.h. */
3646 main ()
3650 return 0;
3652 _ACEOF
3653 rm -f conftest.o conftest.obj
3654 if { { ac_try="$ac_compile"
3655 case "(($ac_try" in
3656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3657 *) ac_try_echo=$ac_try;;
3658 esac
3659 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3660 $as_echo "$ac_try_echo"; } >&5
3661 (eval "$ac_compile") 2>&5
3662 ac_status=$?
3663 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3664 test $ac_status = 0; }; then :
3665 for ac_file in conftest.o conftest.obj conftest.*; do
3666 test -f "$ac_file" || continue;
3667 case $ac_file in
3668 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3669 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3670 break;;
3671 esac
3672 done
3673 else
3674 $as_echo "$as_me: failed program was:" >&5
3675 sed 's/^/| /' conftest.$ac_ext >&5
3677 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3678 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3679 as_fn_error $? "cannot compute suffix of object files: cannot compile
3680 See \`config.log' for more details" "$LINENO" 5; }
3682 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3685 $as_echo "$ac_cv_objext" >&6; }
3686 OBJEXT=$ac_cv_objext
3687 ac_objext=$OBJEXT
3688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3689 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3690 if ${ac_cv_c_compiler_gnu+:} false; then :
3691 $as_echo_n "(cached) " >&6
3692 else
3693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3694 /* end confdefs.h. */
3697 main ()
3699 #ifndef __GNUC__
3700 choke me
3701 #endif
3704 return 0;
3706 _ACEOF
3707 if ac_fn_c_try_compile "$LINENO"; then :
3708 ac_compiler_gnu=yes
3709 else
3710 ac_compiler_gnu=no
3712 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3713 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3717 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3718 if test $ac_compiler_gnu = yes; then
3719 GCC=yes
3720 else
3721 GCC=
3723 ac_test_CFLAGS=${CFLAGS+set}
3724 ac_save_CFLAGS=$CFLAGS
3725 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3726 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3727 if ${ac_cv_prog_cc_g+:} false; then :
3728 $as_echo_n "(cached) " >&6
3729 else
3730 ac_save_c_werror_flag=$ac_c_werror_flag
3731 ac_c_werror_flag=yes
3732 ac_cv_prog_cc_g=no
3733 CFLAGS="-g"
3734 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3735 /* end confdefs.h. */
3738 main ()
3742 return 0;
3744 _ACEOF
3745 if ac_fn_c_try_compile "$LINENO"; then :
3746 ac_cv_prog_cc_g=yes
3747 else
3748 CFLAGS=""
3749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3750 /* end confdefs.h. */
3753 main ()
3757 return 0;
3759 _ACEOF
3760 if ac_fn_c_try_compile "$LINENO"; then :
3762 else
3763 ac_c_werror_flag=$ac_save_c_werror_flag
3764 CFLAGS="-g"
3765 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3766 /* end confdefs.h. */
3769 main ()
3773 return 0;
3775 _ACEOF
3776 if ac_fn_c_try_compile "$LINENO"; then :
3777 ac_cv_prog_cc_g=yes
3779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3781 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3784 ac_c_werror_flag=$ac_save_c_werror_flag
3786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3787 $as_echo "$ac_cv_prog_cc_g" >&6; }
3788 if test "$ac_test_CFLAGS" = set; then
3789 CFLAGS=$ac_save_CFLAGS
3790 elif test $ac_cv_prog_cc_g = yes; then
3791 if test "$GCC" = yes; then
3792 CFLAGS="-g -O2"
3793 else
3794 CFLAGS="-g"
3796 else
3797 if test "$GCC" = yes; then
3798 CFLAGS="-O2"
3799 else
3800 CFLAGS=
3803 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3804 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3805 if ${ac_cv_prog_cc_c89+:} false; then :
3806 $as_echo_n "(cached) " >&6
3807 else
3808 ac_cv_prog_cc_c89=no
3809 ac_save_CC=$CC
3810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3811 /* end confdefs.h. */
3812 #include <stdarg.h>
3813 #include <stdio.h>
3814 struct stat;
3815 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3816 struct buf { int x; };
3817 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3818 static char *e (p, i)
3819 char **p;
3820 int i;
3822 return p[i];
3824 static char *f (char * (*g) (char **, int), char **p, ...)
3826 char *s;
3827 va_list v;
3828 va_start (v,p);
3829 s = g (p, va_arg (v,int));
3830 va_end (v);
3831 return s;
3834 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3835 function prototypes and stuff, but not '\xHH' hex character constants.
3836 These don't provoke an error unfortunately, instead are silently treated
3837 as 'x'. The following induces an error, until -std is added to get
3838 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3839 array size at least. It's necessary to write '\x00'==0 to get something
3840 that's true only with -std. */
3841 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3843 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3844 inside strings and character constants. */
3845 #define FOO(x) 'x'
3846 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3848 int test (int i, double x);
3849 struct s1 {int (*f) (int a);};
3850 struct s2 {int (*f) (double a);};
3851 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3852 int argc;
3853 char **argv;
3855 main ()
3857 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3859 return 0;
3861 _ACEOF
3862 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3863 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3865 CC="$ac_save_CC $ac_arg"
3866 if ac_fn_c_try_compile "$LINENO"; then :
3867 ac_cv_prog_cc_c89=$ac_arg
3869 rm -f core conftest.err conftest.$ac_objext
3870 test "x$ac_cv_prog_cc_c89" != "xno" && break
3871 done
3872 rm -f conftest.$ac_ext
3873 CC=$ac_save_CC
3876 # AC_CACHE_VAL
3877 case "x$ac_cv_prog_cc_c89" in
3879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3880 $as_echo "none needed" >&6; } ;;
3881 xno)
3882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3883 $as_echo "unsupported" >&6; } ;;
3885 CC="$CC $ac_cv_prog_cc_c89"
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3887 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3888 esac
3889 if test "x$ac_cv_prog_cc_c89" != xno; then :
3893 ac_ext=c
3894 ac_cpp='$CPP $CPPFLAGS'
3895 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3896 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3897 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3899 if test $target_os = solaris
3900 then
3901 # Extract the first word of "$CC", so it can be a program name with args.
3902 set dummy $CC; ac_word=$2
3903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3904 $as_echo_n "checking for $ac_word... " >&6; }
3905 if ${ac_cv_path_CCPATH+:} false; then :
3906 $as_echo_n "(cached) " >&6
3907 else
3908 case $CCPATH in
3909 [\\/]* | ?:[\\/]*)
3910 ac_cv_path_CCPATH="$CCPATH" # Let the user override the test with a path.
3913 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3914 for as_dir in $PATH
3916 IFS=$as_save_IFS
3917 test -z "$as_dir" && as_dir=.
3918 for ac_exec_ext in '' $ac_executable_extensions; do
3919 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3920 ac_cv_path_CCPATH="$as_dir/$ac_word$ac_exec_ext"
3921 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3922 break 2
3924 done
3925 done
3926 IFS=$as_save_IFS
3928 test -z "$ac_cv_path_CCPATH" && ac_cv_path_CCPATH="$CC"
3930 esac
3932 CCPATH=$ac_cv_path_CCPATH
3933 if test -n "$CCPATH"; then
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCPATH" >&5
3935 $as_echo "$CCPATH" >&6; }
3936 else
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3938 $as_echo "no" >&6; }
3942 cc=$CCPATH
3943 if test "$GCC" = "yes"
3944 then
3945 CFLAGS="$CFLAGS $CFLAGS_IF_GCC"
3946 else
3947 CFLAGS="$CFLAGS $CFLAGS_IF_SUNCC"
3949 if test "$use_64bit" = "no"
3950 then
3952 else
3953 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64 bit Solaris host" >&5
3954 $as_echo_n "checking for 64 bit Solaris host... " >&6; }
3955 case `isainfo -k`
3957 amd64|sparcv9)
3958 cflags_abi=-m64
3959 CFLAGS="$CFLAGS -m64"
3960 LDFLAGS="$LDFLAGS -m64"
3961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3962 $as_echo "yes" >&6; }
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3966 $as_echo "no" >&6; }
3968 esac
3970 else
3971 cc=$CC
3974 cc_is_gcc=$GCC
3977 PCFLAGS="$CFLAGS"
3978 PLDFLAGS=$LDFLAGS
3980 if echo "$CFLAGS" | grep 'D_FORTIFY_SOURCE' >/dev/null
3981 then
3982 CFLAGS="-O $PCFLAGS"
3986 # Add some security-related gcc flags
3987 if echo "$CFLAGS" | grep stack-protector >/dev/null
3988 then
3990 else
3991 # Check whether --enable-ssp was given.
3992 if test "${enable_ssp+set}" = set; then :
3993 enableval=$enable_ssp;
3997 if test "x$cc_is_gcc" = xyes -a "x$enable_ssp" != xno ; then :
3999 save_CFLAGS="$CFLAGS"
4000 CFLAGS="$CFLAGS -O -fstack-protector-all -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2"
4001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4002 /* end confdefs.h. */
4003 int something ();
4004 _ACEOF
4005 if ac_fn_c_try_compile "$LINENO"; then :
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling with gcc -fstack-protector-all et al." >&5
4008 $as_echo "$as_me: Compiling with gcc -fstack-protector-all et al." >&6;}
4009 PCFLAGS="$PCFLAGS -fstack-protector-all -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2"
4010 else
4012 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiler does not support -fstack-protector-all et al." >&5
4013 $as_echo "$as_me: Compiler does not support -fstack-protector-all et al." >&6;}
4014 CFLAGS="$save_CFLAGS"
4017 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4024 # Check for even more security-related gcc/linker flags, useful for daemons
4025 # Check whether --enable-pie was given.
4026 if test "${enable_pie+set}" = set; then :
4027 enableval=$enable_pie;
4030 if test "x$cc_is_gcc" = xyes -a "x$enable_pie" != xno; then :
4032 PIECFLAGS='-fPIE'
4033 PIELDFLAGS='-pie -Wl,-z,relro -Wl,-z,now'
4034 save_CFLAGS="$CFLAGS"
4035 save_LDFLAGS="$LDFLAGS"
4036 CFLAGS="$CFLAGS $PIECFLAGS"
4037 LDFLAGS="$LDFLAGS $PIELDFLAGS"
4038 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4039 /* end confdefs.h. */
4040 void main () {}
4041 _ACEOF
4042 if ac_fn_c_try_link "$LINENO"; then :
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling with gcc pie et al." >&5
4045 $as_echo "$as_me: Compiling with gcc pie et al." >&6;}
4047 else
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiler does not support -pie et al." >&5
4050 $as_echo "$as_me: Compiler does not support -pie et al." >&6;}
4051 PIECFLAGS=""
4052 PIELDFLAGS=""
4055 rm -f core conftest.err conftest.$ac_objext \
4056 conftest$ac_exeext conftest.$ac_ext
4057 CFLAGS="$save_CFLAGS"
4058 LDFLAGS="$save_LDFLAGS"
4064 # Check for support for symbol hiding via gcc flags
4065 # Check whether --enable-visibility was given.
4066 if test "${enable_visibility+set}" = set; then :
4067 enableval=$enable_visibility;
4070 if test "x$cc_is_gcc" = xyes -a "$enable_visibility" != no; then :
4072 INVISIBILITY="-fvisibility=hidden"
4073 save_CFLAGS="$CFLAGS"
4074 CFLAGS="$CFLAGS -c $INVISIBILITY"
4075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4076 /* end confdefs.h. */
4077 int visible () { return 0; }
4078 _ACEOF
4079 if ac_fn_c_try_compile "$LINENO"; then :
4081 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling DSO PMDAs with gcc -fvisibility=hidden" >&5
4082 $as_echo "$as_me: Compiling DSO PMDAs with gcc -fvisibility=hidden" >&6;}
4084 else
4086 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiler does not support -fvisibility." >&5
4087 $as_echo "$as_me: Compiler does not support -fvisibility." >&6;}
4088 INVISIBILITY=""
4091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4092 CFLAGS="$save_CFLAGS"
4097 ac_ext=cpp
4098 ac_cpp='$CXXCPP $CPPFLAGS'
4099 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4100 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4101 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4102 if test -z "$CXX"; then
4103 if test -n "$CCC"; then
4104 CXX=$CCC
4105 else
4106 if test -n "$ac_tool_prefix"; then
4107 for ac_prog in eg++ g++ c++
4109 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4110 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4112 $as_echo_n "checking for $ac_word... " >&6; }
4113 if ${ac_cv_prog_CXX+:} false; then :
4114 $as_echo_n "(cached) " >&6
4115 else
4116 if test -n "$CXX"; then
4117 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4118 else
4119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4120 for as_dir in $PATH
4122 IFS=$as_save_IFS
4123 test -z "$as_dir" && as_dir=.
4124 for ac_exec_ext in '' $ac_executable_extensions; do
4125 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4126 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4128 break 2
4130 done
4131 done
4132 IFS=$as_save_IFS
4136 CXX=$ac_cv_prog_CXX
4137 if test -n "$CXX"; then
4138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4139 $as_echo "$CXX" >&6; }
4140 else
4141 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4142 $as_echo "no" >&6; }
4146 test -n "$CXX" && break
4147 done
4149 if test -z "$CXX"; then
4150 ac_ct_CXX=$CXX
4151 for ac_prog in eg++ g++ c++
4153 # Extract the first word of "$ac_prog", so it can be a program name with args.
4154 set dummy $ac_prog; ac_word=$2
4155 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4156 $as_echo_n "checking for $ac_word... " >&6; }
4157 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4158 $as_echo_n "(cached) " >&6
4159 else
4160 if test -n "$ac_ct_CXX"; then
4161 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4162 else
4163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4164 for as_dir in $PATH
4166 IFS=$as_save_IFS
4167 test -z "$as_dir" && as_dir=.
4168 for ac_exec_ext in '' $ac_executable_extensions; do
4169 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4170 ac_cv_prog_ac_ct_CXX="$ac_prog"
4171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4172 break 2
4174 done
4175 done
4176 IFS=$as_save_IFS
4180 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4181 if test -n "$ac_ct_CXX"; then
4182 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4183 $as_echo "$ac_ct_CXX" >&6; }
4184 else
4185 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4186 $as_echo "no" >&6; }
4190 test -n "$ac_ct_CXX" && break
4191 done
4193 if test "x$ac_ct_CXX" = x; then
4194 CXX="g++"
4195 else
4196 case $cross_compiling:$ac_tool_warned in
4197 yes:)
4198 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4199 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4200 ac_tool_warned=yes ;;
4201 esac
4202 CXX=$ac_ct_CXX
4208 # Provide some information about the compiler.
4209 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4210 set X $ac_compile
4211 ac_compiler=$2
4212 for ac_option in --version -v -V -qversion; do
4213 { { ac_try="$ac_compiler $ac_option >&5"
4214 case "(($ac_try" in
4215 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4216 *) ac_try_echo=$ac_try;;
4217 esac
4218 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4219 $as_echo "$ac_try_echo"; } >&5
4220 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4221 ac_status=$?
4222 if test -s conftest.err; then
4223 sed '10a\
4224 ... rest of stderr output deleted ...
4225 10q' conftest.err >conftest.er1
4226 cat conftest.er1 >&5
4228 rm -f conftest.er1 conftest.err
4229 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4230 test $ac_status = 0; }
4231 done
4233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4234 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4235 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4236 $as_echo_n "(cached) " >&6
4237 else
4238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4239 /* end confdefs.h. */
4242 main ()
4244 #ifndef __GNUC__
4245 choke me
4246 #endif
4249 return 0;
4251 _ACEOF
4252 if ac_fn_cxx_try_compile "$LINENO"; then :
4253 ac_compiler_gnu=yes
4254 else
4255 ac_compiler_gnu=no
4257 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4258 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4262 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4263 if test $ac_compiler_gnu = yes; then
4264 GXX=yes
4265 else
4266 GXX=
4268 ac_test_CXXFLAGS=${CXXFLAGS+set}
4269 ac_save_CXXFLAGS=$CXXFLAGS
4270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4271 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4272 if ${ac_cv_prog_cxx_g+:} false; then :
4273 $as_echo_n "(cached) " >&6
4274 else
4275 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4276 ac_cxx_werror_flag=yes
4277 ac_cv_prog_cxx_g=no
4278 CXXFLAGS="-g"
4279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4280 /* end confdefs.h. */
4283 main ()
4287 return 0;
4289 _ACEOF
4290 if ac_fn_cxx_try_compile "$LINENO"; then :
4291 ac_cv_prog_cxx_g=yes
4292 else
4293 CXXFLAGS=""
4294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4295 /* end confdefs.h. */
4298 main ()
4302 return 0;
4304 _ACEOF
4305 if ac_fn_cxx_try_compile "$LINENO"; then :
4307 else
4308 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4309 CXXFLAGS="-g"
4310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4311 /* end confdefs.h. */
4314 main ()
4318 return 0;
4320 _ACEOF
4321 if ac_fn_cxx_try_compile "$LINENO"; then :
4322 ac_cv_prog_cxx_g=yes
4324 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4326 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4329 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4332 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4333 if test "$ac_test_CXXFLAGS" = set; then
4334 CXXFLAGS=$ac_save_CXXFLAGS
4335 elif test $ac_cv_prog_cxx_g = yes; then
4336 if test "$GXX" = yes; then
4337 CXXFLAGS="-g -O2"
4338 else
4339 CXXFLAGS="-g"
4341 else
4342 if test "$GXX" = yes; then
4343 CXXFLAGS="-O2"
4344 else
4345 CXXFLAGS=
4348 ac_ext=c
4349 ac_cpp='$CPP $CPPFLAGS'
4350 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4351 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4352 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4354 cxx=$CXX
4356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working C++ compiler" >&5
4357 $as_echo_n "checking for working C++ compiler... " >&6; }
4358 ac_ext=cpp
4359 ac_cpp='$CXXCPP $CPPFLAGS'
4360 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4361 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4362 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4366 /* end confdefs.h. */
4367 #include <cstdio>
4369 main ()
4371 const char gday[] = "G'day, world\n";
4373 return 0;
4375 _ACEOF
4376 if ac_fn_cxx_try_compile "$LINENO"; then :
4377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4378 $as_echo "yes" >&6; }
4379 else
4380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4381 $as_echo "no" >&6; }
4382 cxx=""
4384 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4385 ac_ext=c
4386 ac_cpp='$CPP $CPPFLAGS'
4387 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4388 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4389 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4392 # Prevent shared libraries from being built for libpcp and other core libraries
4393 # Check whether --enable-shared was given.
4394 if test "${enable_shared+set}" = set; then :
4395 enableval=$enable_shared; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --disable-shared=$withval"
4401 test -z "$AWK" && for ac_prog in gawk awk
4403 # Extract the first word of "$ac_prog", so it can be a program name with args.
4404 set dummy $ac_prog; ac_word=$2
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4406 $as_echo_n "checking for $ac_word... " >&6; }
4407 if ${ac_cv_path_AWK+:} false; then :
4408 $as_echo_n "(cached) " >&6
4409 else
4410 case $AWK in
4411 [\\/]* | ?:[\\/]*)
4412 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
4415 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4416 for as_dir in $PATH
4418 IFS=$as_save_IFS
4419 test -z "$as_dir" && as_dir=.
4420 for ac_exec_ext in '' $ac_executable_extensions; do
4421 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4422 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
4423 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4424 break 2
4426 done
4427 done
4428 IFS=$as_save_IFS
4431 esac
4433 AWK=$ac_cv_path_AWK
4434 if test -n "$AWK"; then
4435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4436 $as_echo "$AWK" >&6; }
4437 else
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4439 $as_echo "no" >&6; }
4443 test -n "$AWK" && break
4444 done
4445 test -n "$AWK" || AWK="/usr/bin/awk"
4447 case "$AWK"
4449 gawk|*/gawk)
4450 awk="$AWK --posix"
4453 awk=$AWK
4455 esac
4458 if test -z "$SED"; then
4459 # Extract the first word of "sed", so it can be a program name with args.
4460 set dummy sed; ac_word=$2
4461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4462 $as_echo_n "checking for $ac_word... " >&6; }
4463 if ${ac_cv_path_SED+:} false; then :
4464 $as_echo_n "(cached) " >&6
4465 else
4466 case $SED in
4467 [\\/]* | ?:[\\/]*)
4468 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4472 for as_dir in $PATH
4474 IFS=$as_save_IFS
4475 test -z "$as_dir" && as_dir=.
4476 for ac_exec_ext in '' $ac_executable_extensions; do
4477 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4478 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4480 break 2
4482 done
4483 done
4484 IFS=$as_save_IFS
4486 test -z "$ac_cv_path_SED" && ac_cv_path_SED="/bin/sed"
4488 esac
4490 SED=$ac_cv_path_SED
4491 if test -n "$SED"; then
4492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
4493 $as_echo "$SED" >&6; }
4494 else
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4496 $as_echo "no" >&6; }
4501 if test ! -x "$SED"; then
4502 as_fn_error $? "cannot find a valid 'sed' command." "$LINENO" 5
4504 sed=$SED
4507 if test -z "$ECHO"; then
4508 # Extract the first word of "echo", so it can be a program name with args.
4509 set dummy echo; ac_word=$2
4510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4511 $as_echo_n "checking for $ac_word... " >&6; }
4512 if ${ac_cv_path_ECHO+:} false; then :
4513 $as_echo_n "(cached) " >&6
4514 else
4515 case $ECHO in
4516 [\\/]* | ?:[\\/]*)
4517 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
4520 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4521 for as_dir in $PATH
4523 IFS=$as_save_IFS
4524 test -z "$as_dir" && as_dir=.
4525 for ac_exec_ext in '' $ac_executable_extensions; do
4526 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4527 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
4528 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4529 break 2
4531 done
4532 done
4533 IFS=$as_save_IFS
4535 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="/bin/echo"
4537 esac
4539 ECHO=$ac_cv_path_ECHO
4540 if test -n "$ECHO"; then
4541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
4542 $as_echo "$ECHO" >&6; }
4543 else
4544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4545 $as_echo "no" >&6; }
4550 if test ! -x "$ECHO"; then
4551 as_fn_error $? "cannot find a valid 'echo' command." "$LINENO" 5
4553 echo=$ECHO
4556 if test -z "$FIND"; then
4557 # Extract the first word of "find", so it can be a program name with args.
4558 set dummy find; ac_word=$2
4559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4560 $as_echo_n "checking for $ac_word... " >&6; }
4561 if ${ac_cv_path_FIND+:} false; then :
4562 $as_echo_n "(cached) " >&6
4563 else
4564 case $FIND in
4565 [\\/]* | ?:[\\/]*)
4566 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
4569 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4570 for as_dir in $PATH
4572 IFS=$as_save_IFS
4573 test -z "$as_dir" && as_dir=.
4574 for ac_exec_ext in '' $ac_executable_extensions; do
4575 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4576 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
4577 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4578 break 2
4580 done
4581 done
4582 IFS=$as_save_IFS
4584 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="/usr/bin/find"
4586 esac
4588 FIND=$ac_cv_path_FIND
4589 if test -n "$FIND"; then
4590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
4591 $as_echo "$FIND" >&6; }
4592 else
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4594 $as_echo "no" >&6; }
4599 if test ! -x "$FIND"; then
4600 as_fn_error $? "cannot find a valid 'find' command." "$LINENO" 5
4602 find=$FIND
4605 if test -z "$WHICH"; then
4606 # Extract the first word of "which", so it can be a program name with args.
4607 set dummy which; ac_word=$2
4608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4609 $as_echo_n "checking for $ac_word... " >&6; }
4610 if ${ac_cv_path_WHICH+:} false; then :
4611 $as_echo_n "(cached) " >&6
4612 else
4613 case $WHICH in
4614 [\\/]* | ?:[\\/]*)
4615 ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
4618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4619 for as_dir in $PATH
4621 IFS=$as_save_IFS
4622 test -z "$as_dir" && as_dir=.
4623 for ac_exec_ext in '' $ac_executable_extensions; do
4624 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4625 ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
4626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4627 break 2
4629 done
4630 done
4631 IFS=$as_save_IFS
4633 test -z "$ac_cv_path_WHICH" && ac_cv_path_WHICH="/usr/bin/which"
4635 esac
4637 WHICH=$ac_cv_path_WHICH
4638 if test -n "$WHICH"; then
4639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
4640 $as_echo "$WHICH" >&6; }
4641 else
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4643 $as_echo "no" >&6; }
4648 if test ! -x "$WHICH"; then
4649 as_fn_error $? "cannot find a valid 'which' command." "$LINENO" 5
4651 which=$WHICH
4654 for ac_prog in flex lex
4656 # Extract the first word of "$ac_prog", so it can be a program name with args.
4657 set dummy $ac_prog; ac_word=$2
4658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4659 $as_echo_n "checking for $ac_word... " >&6; }
4660 if ${ac_cv_prog_LEX+:} false; then :
4661 $as_echo_n "(cached) " >&6
4662 else
4663 if test -n "$LEX"; then
4664 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4665 else
4666 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4667 for as_dir in $PATH
4669 IFS=$as_save_IFS
4670 test -z "$as_dir" && as_dir=.
4671 for ac_exec_ext in '' $ac_executable_extensions; do
4672 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4673 ac_cv_prog_LEX="$ac_prog"
4674 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4675 break 2
4677 done
4678 done
4679 IFS=$as_save_IFS
4683 LEX=$ac_cv_prog_LEX
4684 if test -n "$LEX"; then
4685 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
4686 $as_echo "$LEX" >&6; }
4687 else
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4689 $as_echo "no" >&6; }
4693 test -n "$LEX" && break
4694 done
4695 test -n "$LEX" || LEX=":"
4697 if test "x$LEX" != "x:"; then
4698 cat >conftest.l <<_ACEOF
4700 a { ECHO; }
4701 b { REJECT; }
4702 c { yymore (); }
4703 d { yyless (1); }
4704 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
4705 yyless ((input () != 0)); }
4706 f { unput (yytext[0]); }
4707 . { BEGIN INITIAL; }
4709 #ifdef YYTEXT_POINTER
4710 extern char *yytext;
4711 #endif
4713 main (void)
4715 return ! yylex () + ! yywrap ();
4717 _ACEOF
4718 { { ac_try="$LEX conftest.l"
4719 case "(($ac_try" in
4720 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4721 *) ac_try_echo=$ac_try;;
4722 esac
4723 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4724 $as_echo "$ac_try_echo"; } >&5
4725 (eval "$LEX conftest.l") 2>&5
4726 ac_status=$?
4727 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4728 test $ac_status = 0; }
4729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
4730 $as_echo_n "checking lex output file root... " >&6; }
4731 if ${ac_cv_prog_lex_root+:} false; then :
4732 $as_echo_n "(cached) " >&6
4733 else
4735 if test -f lex.yy.c; then
4736 ac_cv_prog_lex_root=lex.yy
4737 elif test -f lexyy.c; then
4738 ac_cv_prog_lex_root=lexyy
4739 else
4740 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
4743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
4744 $as_echo "$ac_cv_prog_lex_root" >&6; }
4745 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4747 if test -z "${LEXLIB+set}"; then
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
4749 $as_echo_n "checking lex library... " >&6; }
4750 if ${ac_cv_lib_lex+:} false; then :
4751 $as_echo_n "(cached) " >&6
4752 else
4754 ac_save_LIBS=$LIBS
4755 ac_cv_lib_lex='none needed'
4756 for ac_lib in '' -lfl -ll; do
4757 LIBS="$ac_lib $ac_save_LIBS"
4758 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4759 /* end confdefs.h. */
4760 `cat $LEX_OUTPUT_ROOT.c`
4761 _ACEOF
4762 if ac_fn_c_try_link "$LINENO"; then :
4763 ac_cv_lib_lex=$ac_lib
4765 rm -f core conftest.err conftest.$ac_objext \
4766 conftest$ac_exeext conftest.$ac_ext
4767 test "$ac_cv_lib_lex" != 'none needed' && break
4768 done
4769 LIBS=$ac_save_LIBS
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
4773 $as_echo "$ac_cv_lib_lex" >&6; }
4774 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
4779 $as_echo_n "checking whether yytext is a pointer... " >&6; }
4780 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
4781 $as_echo_n "(cached) " >&6
4782 else
4783 # POSIX says lex can declare yytext either as a pointer or an array; the
4784 # default is implementation-dependent. Figure out which it is, since
4785 # not all implementations provide the %pointer and %array declarations.
4786 ac_cv_prog_lex_yytext_pointer=no
4787 ac_save_LIBS=$LIBS
4788 LIBS="$LEXLIB $ac_save_LIBS"
4789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4790 /* end confdefs.h. */
4792 #define YYTEXT_POINTER 1
4793 `cat $LEX_OUTPUT_ROOT.c`
4794 _ACEOF
4795 if ac_fn_c_try_link "$LINENO"; then :
4796 ac_cv_prog_lex_yytext_pointer=yes
4798 rm -f core conftest.err conftest.$ac_objext \
4799 conftest$ac_exeext conftest.$ac_ext
4800 LIBS=$ac_save_LIBS
4803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
4804 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
4805 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4807 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
4810 rm -f conftest.l $LEX_OUTPUT_ROOT.c
4813 lex=`$echo $LEX | awk '{print $1}'`
4814 lex=`$which "$lex"`
4815 if test ! -x "$lex"; then
4816 as_fn_error $? "cannot find a valid 'lex'/'flex' command." "$LINENO" 5
4818 lex=$LEX
4821 for ac_prog in 'bison -y' byacc
4823 # Extract the first word of "$ac_prog", so it can be a program name with args.
4824 set dummy $ac_prog; ac_word=$2
4825 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4826 $as_echo_n "checking for $ac_word... " >&6; }
4827 if ${ac_cv_prog_YACC+:} false; then :
4828 $as_echo_n "(cached) " >&6
4829 else
4830 if test -n "$YACC"; then
4831 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4832 else
4833 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4834 for as_dir in $PATH
4836 IFS=$as_save_IFS
4837 test -z "$as_dir" && as_dir=.
4838 for ac_exec_ext in '' $ac_executable_extensions; do
4839 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4840 ac_cv_prog_YACC="$ac_prog"
4841 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4842 break 2
4844 done
4845 done
4846 IFS=$as_save_IFS
4850 YACC=$ac_cv_prog_YACC
4851 if test -n "$YACC"; then
4852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
4853 $as_echo "$YACC" >&6; }
4854 else
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4856 $as_echo "no" >&6; }
4860 test -n "$YACC" && break
4861 done
4862 test -n "$YACC" || YACC="yacc"
4864 yacc=`$echo $YACC | awk '{print $1}'`
4865 yacc=`$which "$yacc"`
4866 if test ! -x "$yacc"; then
4867 as_fn_error $? "cannot find a valid 'yacc'/'bison' command." "$LINENO" 5
4869 yacc=$YACC
4872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where unix-like sort(1) lives" >&5
4873 $as_echo_n "checking where unix-like sort(1) lives... " >&6; }
4874 if test $target_os = mingw; then
4875 for d in /bin /usr/bin /mingw/bin /mingw/usr/bin
4877 if test -x $d/sort; then
4878 sort=$d/sort
4879 break
4881 done
4882 else
4883 sort=`$which sort`
4885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sort" >&5
4886 $as_echo "$sort" >&6; }
4887 $sort -n </dev/null
4888 if test $? != 0
4889 then
4890 echo
4891 echo "FATAL ERROR: $sort -n failed!"
4892 rm -rf conftest conftest.*
4893 exit 1
4897 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if echo uses -n or backslash-c to suppress newlines" >&5
4898 $as_echo_n "checking if echo uses -n or backslash-c to suppress newlines... " >&6; }
4899 if ( $echo "testing\c"; $echo 1,2,3 ) | grep c >/dev/null
4900 then
4901 if ( $echo -n testing; $echo 1,2,3 ) | sed s/-n/xn/ | grep xn >/dev/null
4902 then
4903 echo_n= echo_c=
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither?" >&5
4905 $as_echo "neither?" >&6; }
4906 else
4907 echo_n=-n echo_c=
4908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -n" >&5
4909 $as_echo " -n" >&6; }
4911 else
4912 echo_n= echo_c='\c'
4913 { $as_echo "$as_me:${as_lineno-$LINENO}: result: backslash-c" >&5
4914 $as_echo "backslash-c" >&6; }
4919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4920 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4921 if ${ac_cv_path_GREP+:} false; then :
4922 $as_echo_n "(cached) " >&6
4923 else
4924 if test -z "$GREP"; then
4925 ac_path_GREP_found=false
4926 # Loop through the user's path and test for each of PROGNAME-LIST
4927 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4928 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4930 IFS=$as_save_IFS
4931 test -z "$as_dir" && as_dir=.
4932 for ac_prog in grep ggrep; do
4933 for ac_exec_ext in '' $ac_executable_extensions; do
4934 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4935 as_fn_executable_p "$ac_path_GREP" || continue
4936 # Check for GNU ac_path_GREP and select it if it is found.
4937 # Check for GNU $ac_path_GREP
4938 case `"$ac_path_GREP" --version 2>&1` in
4939 *GNU*)
4940 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4942 ac_count=0
4943 $as_echo_n 0123456789 >"conftest.in"
4944 while :
4946 cat "conftest.in" "conftest.in" >"conftest.tmp"
4947 mv "conftest.tmp" "conftest.in"
4948 cp "conftest.in" "conftest.nl"
4949 $as_echo 'GREP' >> "conftest.nl"
4950 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4951 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4952 as_fn_arith $ac_count + 1 && ac_count=$as_val
4953 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4954 # Best one so far, save it but keep looking for a better one
4955 ac_cv_path_GREP="$ac_path_GREP"
4956 ac_path_GREP_max=$ac_count
4958 # 10*(2^10) chars as input seems more than enough
4959 test $ac_count -gt 10 && break
4960 done
4961 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4962 esac
4964 $ac_path_GREP_found && break 3
4965 done
4966 done
4967 done
4968 IFS=$as_save_IFS
4969 if test -z "$ac_cv_path_GREP"; then
4970 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4972 else
4973 ac_cv_path_GREP=$GREP
4977 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4978 $as_echo "$ac_cv_path_GREP" >&6; }
4979 GREP="$ac_cv_path_GREP"
4982 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4983 $as_echo_n "checking for egrep... " >&6; }
4984 if ${ac_cv_path_EGREP+:} false; then :
4985 $as_echo_n "(cached) " >&6
4986 else
4987 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4988 then ac_cv_path_EGREP="$GREP -E"
4989 else
4990 if test -z "$EGREP"; then
4991 ac_path_EGREP_found=false
4992 # Loop through the user's path and test for each of PROGNAME-LIST
4993 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4994 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4996 IFS=$as_save_IFS
4997 test -z "$as_dir" && as_dir=.
4998 for ac_prog in egrep; do
4999 for ac_exec_ext in '' $ac_executable_extensions; do
5000 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5001 as_fn_executable_p "$ac_path_EGREP" || continue
5002 # Check for GNU ac_path_EGREP and select it if it is found.
5003 # Check for GNU $ac_path_EGREP
5004 case `"$ac_path_EGREP" --version 2>&1` in
5005 *GNU*)
5006 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5008 ac_count=0
5009 $as_echo_n 0123456789 >"conftest.in"
5010 while :
5012 cat "conftest.in" "conftest.in" >"conftest.tmp"
5013 mv "conftest.tmp" "conftest.in"
5014 cp "conftest.in" "conftest.nl"
5015 $as_echo 'EGREP' >> "conftest.nl"
5016 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5017 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5018 as_fn_arith $ac_count + 1 && ac_count=$as_val
5019 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5020 # Best one so far, save it but keep looking for a better one
5021 ac_cv_path_EGREP="$ac_path_EGREP"
5022 ac_path_EGREP_max=$ac_count
5024 # 10*(2^10) chars as input seems more than enough
5025 test $ac_count -gt 10 && break
5026 done
5027 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5028 esac
5030 $ac_path_EGREP_found && break 3
5031 done
5032 done
5033 done
5034 IFS=$as_save_IFS
5035 if test -z "$ac_cv_path_EGREP"; then
5036 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5038 else
5039 ac_cv_path_EGREP=$EGREP
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5045 $as_echo "$ac_cv_path_EGREP" >&6; }
5046 EGREP="$ac_cv_path_EGREP"
5050 if test "$do_probes" = "check" -o "$do_probes" = "yes"
5051 then
5052 enable_probes=true
5053 for ac_prog in dtrace
5055 # Extract the first word of "$ac_prog", so it can be a program name with args.
5056 set dummy $ac_prog; ac_word=$2
5057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5058 $as_echo_n "checking for $ac_word... " >&6; }
5059 if ${ac_cv_prog_DTRACE+:} false; then :
5060 $as_echo_n "(cached) " >&6
5061 else
5062 if test -n "$DTRACE"; then
5063 ac_cv_prog_DTRACE="$DTRACE" # Let the user override the test.
5064 else
5065 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5066 for as_dir in $PATH
5068 IFS=$as_save_IFS
5069 test -z "$as_dir" && as_dir=.
5070 for ac_exec_ext in '' $ac_executable_extensions; do
5071 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5072 ac_cv_prog_DTRACE="$ac_prog"
5073 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5074 break 2
5076 done
5077 done
5078 IFS=$as_save_IFS
5082 DTRACE=$ac_cv_prog_DTRACE
5083 if test -n "$DTRACE"; then
5084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5
5085 $as_echo "$DTRACE" >&6; }
5086 else
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5088 $as_echo "no" >&6; }
5092 test -n "$DTRACE" && break
5093 done
5095 if test -z "$DTRACE"
5096 then
5097 if test "$do_probes" = "yes"
5098 then
5099 as_fn_error $? "cannot enable static probes - no dtrace executable" "$LINENO" 5
5101 enable_probes=false
5103 ac_ext=c
5104 ac_cpp='$CPP $CPPFLAGS'
5105 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5106 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5107 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5109 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5110 # On Suns, sometimes $CPP names a directory.
5111 if test -n "$CPP" && test -d "$CPP"; then
5112 CPP=
5114 if test -z "$CPP"; then
5115 if ${ac_cv_prog_CPP+:} false; then :
5116 $as_echo_n "(cached) " >&6
5117 else
5118 # Double quotes because CPP needs to be expanded
5119 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5121 ac_preproc_ok=false
5122 for ac_c_preproc_warn_flag in '' yes
5124 # Use a header file that comes with gcc, so configuring glibc
5125 # with a fresh cross-compiler works.
5126 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5127 # <limits.h> exists even on freestanding compilers.
5128 # On the NeXT, cc -E runs the code through the compiler's parser,
5129 # not just through cpp. "Syntax error" is here to catch this case.
5130 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5131 /* end confdefs.h. */
5132 #ifdef __STDC__
5133 # include <limits.h>
5134 #else
5135 # include <assert.h>
5136 #endif
5137 Syntax error
5138 _ACEOF
5139 if ac_fn_c_try_cpp "$LINENO"; then :
5141 else
5142 # Broken: fails on valid input.
5143 continue
5145 rm -f conftest.err conftest.i conftest.$ac_ext
5147 # OK, works on sane cases. Now check whether nonexistent headers
5148 # can be detected and how.
5149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5150 /* end confdefs.h. */
5151 #include <ac_nonexistent.h>
5152 _ACEOF
5153 if ac_fn_c_try_cpp "$LINENO"; then :
5154 # Broken: success on invalid input.
5155 continue
5156 else
5157 # Passes both tests.
5158 ac_preproc_ok=:
5159 break
5161 rm -f conftest.err conftest.i conftest.$ac_ext
5163 done
5164 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5165 rm -f conftest.i conftest.err conftest.$ac_ext
5166 if $ac_preproc_ok; then :
5167 break
5170 done
5171 ac_cv_prog_CPP=$CPP
5174 CPP=$ac_cv_prog_CPP
5175 else
5176 ac_cv_prog_CPP=$CPP
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5179 $as_echo "$CPP" >&6; }
5180 ac_preproc_ok=false
5181 for ac_c_preproc_warn_flag in '' yes
5183 # Use a header file that comes with gcc, so configuring glibc
5184 # with a fresh cross-compiler works.
5185 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5186 # <limits.h> exists even on freestanding compilers.
5187 # On the NeXT, cc -E runs the code through the compiler's parser,
5188 # not just through cpp. "Syntax error" is here to catch this case.
5189 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5190 /* end confdefs.h. */
5191 #ifdef __STDC__
5192 # include <limits.h>
5193 #else
5194 # include <assert.h>
5195 #endif
5196 Syntax error
5197 _ACEOF
5198 if ac_fn_c_try_cpp "$LINENO"; then :
5200 else
5201 # Broken: fails on valid input.
5202 continue
5204 rm -f conftest.err conftest.i conftest.$ac_ext
5206 # OK, works on sane cases. Now check whether nonexistent headers
5207 # can be detected and how.
5208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5209 /* end confdefs.h. */
5210 #include <ac_nonexistent.h>
5211 _ACEOF
5212 if ac_fn_c_try_cpp "$LINENO"; then :
5213 # Broken: success on invalid input.
5214 continue
5215 else
5216 # Passes both tests.
5217 ac_preproc_ok=:
5218 break
5220 rm -f conftest.err conftest.i conftest.$ac_ext
5222 done
5223 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5224 rm -f conftest.i conftest.err conftest.$ac_ext
5225 if $ac_preproc_ok; then :
5227 else
5228 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5229 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5230 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5231 See \`config.log' for more details" "$LINENO" 5; }
5234 ac_ext=c
5235 ac_cpp='$CPP $CPPFLAGS'
5236 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5237 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5238 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5242 $as_echo_n "checking for ANSI C header files... " >&6; }
5243 if ${ac_cv_header_stdc+:} false; then :
5244 $as_echo_n "(cached) " >&6
5245 else
5246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5247 /* end confdefs.h. */
5248 #include <stdlib.h>
5249 #include <stdarg.h>
5250 #include <string.h>
5251 #include <float.h>
5254 main ()
5258 return 0;
5260 _ACEOF
5261 if ac_fn_c_try_compile "$LINENO"; then :
5262 ac_cv_header_stdc=yes
5263 else
5264 ac_cv_header_stdc=no
5266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5268 if test $ac_cv_header_stdc = yes; then
5269 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5270 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5271 /* end confdefs.h. */
5272 #include <string.h>
5274 _ACEOF
5275 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5276 $EGREP "memchr" >/dev/null 2>&1; then :
5278 else
5279 ac_cv_header_stdc=no
5281 rm -f conftest*
5285 if test $ac_cv_header_stdc = yes; then
5286 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5287 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5288 /* end confdefs.h. */
5289 #include <stdlib.h>
5291 _ACEOF
5292 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5293 $EGREP "free" >/dev/null 2>&1; then :
5295 else
5296 ac_cv_header_stdc=no
5298 rm -f conftest*
5302 if test $ac_cv_header_stdc = yes; then
5303 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5304 if test "$cross_compiling" = yes; then :
5306 else
5307 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5308 /* end confdefs.h. */
5309 #include <ctype.h>
5310 #include <stdlib.h>
5311 #if ((' ' & 0x0FF) == 0x020)
5312 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5313 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5314 #else
5315 # define ISLOWER(c) \
5316 (('a' <= (c) && (c) <= 'i') \
5317 || ('j' <= (c) && (c) <= 'r') \
5318 || ('s' <= (c) && (c) <= 'z'))
5319 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5320 #endif
5322 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5324 main ()
5326 int i;
5327 for (i = 0; i < 256; i++)
5328 if (XOR (islower (i), ISLOWER (i))
5329 || toupper (i) != TOUPPER (i))
5330 return 2;
5331 return 0;
5333 _ACEOF
5334 if ac_fn_c_try_run "$LINENO"; then :
5336 else
5337 ac_cv_header_stdc=no
5339 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5340 conftest.$ac_objext conftest.beam conftest.$ac_ext
5345 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5346 $as_echo "$ac_cv_header_stdc" >&6; }
5347 if test $ac_cv_header_stdc = yes; then
5349 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5353 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5354 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5355 inttypes.h stdint.h unistd.h
5356 do :
5357 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5358 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5360 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5361 cat >>confdefs.h <<_ACEOF
5362 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5363 _ACEOF
5367 done
5370 for ac_header in sys/sdt.h
5371 do :
5372 ac_fn_c_check_header_mongrel "$LINENO" "sys/sdt.h" "ac_cv_header_sys_sdt_h" "$ac_includes_default"
5373 if test "x$ac_cv_header_sys_sdt_h" = xyes; then :
5374 cat >>confdefs.h <<_ACEOF
5375 #define HAVE_SYS_SDT_H 1
5376 _ACEOF
5378 if $enable_probes = true
5379 then
5380 if test $target_os = kfreebsd
5381 then
5382 enable_probes=false
5383 elif test $target_os = freebsd
5384 then
5385 rm -f conftest.d conftest.h
5386 cat <<End-of-File >conftest.d
5387 provider eek {
5388 probe urk(int);
5390 End-of-File
5391 if dtrace -s conftest.d -h >/dev/null 2>&1
5392 then
5393 if test ! -f conftest.h
5394 then
5395 enable_probes=false
5396 if test "$do_probes" = "yes"
5397 then
5398 as_fn_error $? "cannot enable static probes - no .h from dtrace -h" "$LINENO" 5
5401 else
5402 enable_probes=false
5403 if test "$do_probes" = "yes"
5404 then
5405 as_fn_error $? "cannot enable static probes - dtrace failed" "$LINENO" 5
5411 else
5413 enable_probes=false
5414 if test "$do_probes" = "yes"
5415 then
5416 as_fn_error $? "cannot enable static probes - no SDT header" "$LINENO" 5
5421 done
5424 if test "$enable_probes" = "true"
5425 then
5427 $as_echo "#define HAVE_STATIC_PROBES 1" >>confdefs.h
5434 if test "x$do_discovery" != "xno"; then :
5436 # on Mac OS X, dns_sd.h
5438 # on Linux, aloha Avahi
5439 enable_avahi=true
5441 pkg_failed=no
5442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for avahi" >&5
5443 $as_echo_n "checking for avahi... " >&6; }
5445 if test -n "$avahi_CFLAGS"; then
5446 pkg_cv_avahi_CFLAGS="$avahi_CFLAGS"
5447 elif test -n "$PKG_CONFIG"; then
5448 if test -n "$PKG_CONFIG" && \
5449 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"avahi-client\""; } >&5
5450 ($PKG_CONFIG --exists --print-errors "avahi-client") 2>&5
5451 ac_status=$?
5452 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5453 test $ac_status = 0; }; then
5454 pkg_cv_avahi_CFLAGS=`$PKG_CONFIG --cflags "avahi-client" 2>/dev/null`
5455 test "x$?" != "x0" && pkg_failed=yes
5456 else
5457 pkg_failed=yes
5459 else
5460 pkg_failed=untried
5462 if test -n "$avahi_LIBS"; then
5463 pkg_cv_avahi_LIBS="$avahi_LIBS"
5464 elif test -n "$PKG_CONFIG"; then
5465 if test -n "$PKG_CONFIG" && \
5466 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"avahi-client\""; } >&5
5467 ($PKG_CONFIG --exists --print-errors "avahi-client") 2>&5
5468 ac_status=$?
5469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5470 test $ac_status = 0; }; then
5471 pkg_cv_avahi_LIBS=`$PKG_CONFIG --libs "avahi-client" 2>/dev/null`
5472 test "x$?" != "x0" && pkg_failed=yes
5473 else
5474 pkg_failed=yes
5476 else
5477 pkg_failed=untried
5482 if test $pkg_failed = yes; then
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5484 $as_echo "no" >&6; }
5486 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5487 _pkg_short_errors_supported=yes
5488 else
5489 _pkg_short_errors_supported=no
5491 if test $_pkg_short_errors_supported = yes; then
5492 avahi_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "avahi-client" 2>&1`
5493 else
5494 avahi_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "avahi-client" 2>&1`
5496 # Put the nasty error message in config.log where it belongs
5497 echo "$avahi_PKG_ERRORS" >&5
5499 enable_avahi=false
5500 elif test $pkg_failed = untried; then
5501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5502 $as_echo "no" >&6; }
5503 enable_avahi=false
5504 else
5505 avahi_CFLAGS=$pkg_cv_avahi_CFLAGS
5506 avahi_LIBS=$pkg_cv_avahi_LIBS
5507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5508 $as_echo "yes" >&6; }
5509 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for avahi_client_new in -lavahi-client" >&5
5510 $as_echo_n "checking for avahi_client_new in -lavahi-client... " >&6; }
5511 if ${ac_cv_lib_avahi_client_avahi_client_new+:} false; then :
5512 $as_echo_n "(cached) " >&6
5513 else
5514 ac_check_lib_save_LIBS=$LIBS
5515 LIBS="-lavahi-client $LIBS"
5516 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5517 /* end confdefs.h. */
5519 /* Override any GCC internal prototype to avoid an error.
5520 Use char because int might match the return type of a GCC
5521 builtin and then its argument prototype would still apply. */
5522 #ifdef __cplusplus
5523 extern "C"
5524 #endif
5525 char avahi_client_new ();
5527 main ()
5529 return avahi_client_new ();
5531 return 0;
5533 _ACEOF
5534 if ac_fn_c_try_link "$LINENO"; then :
5535 ac_cv_lib_avahi_client_avahi_client_new=yes
5536 else
5537 ac_cv_lib_avahi_client_avahi_client_new=no
5539 rm -f core conftest.err conftest.$ac_objext \
5540 conftest$ac_exeext conftest.$ac_ext
5541 LIBS=$ac_check_lib_save_LIBS
5543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avahi_client_avahi_client_new" >&5
5544 $as_echo "$ac_cv_lib_avahi_client_avahi_client_new" >&6; }
5545 if test "x$ac_cv_lib_avahi_client_avahi_client_new" = xyes; then :
5546 lib_for_avahi="-lavahi-common -lavahi-client"
5547 else
5548 enable_avahi=false
5553 for ac_header in avahi-client/publish.h
5554 do :
5555 ac_fn_c_check_header_mongrel "$LINENO" "avahi-client/publish.h" "ac_cv_header_avahi_client_publish_h" "$ac_includes_default"
5556 if test "x$ac_cv_header_avahi_client_publish_h" = xyes; then :
5557 cat >>confdefs.h <<_ACEOF
5558 #define HAVE_AVAHI_CLIENT_PUBLISH_H 1
5559 _ACEOF
5561 else
5562 enable_avahi=false
5565 done
5567 for ac_header in avahi-common/alternative.h
5568 do :
5569 ac_fn_c_check_header_mongrel "$LINENO" "avahi-common/alternative.h" "ac_cv_header_avahi_common_alternative_h" "$ac_includes_default"
5570 if test "x$ac_cv_header_avahi_common_alternative_h" = xyes; then :
5571 cat >>confdefs.h <<_ACEOF
5572 #define HAVE_AVAHI_COMMON_ALTERNATIVE_H 1
5573 _ACEOF
5575 else
5576 enable_avahi=false
5579 done
5582 if test "$enable_avahi" = "true"
5583 then
5587 $as_echo "#define HAVE_AVAHI 1" >>confdefs.h
5589 enable_discovery=true
5592 if test "$do_discovery" != "check" -a "$enable_discovery" != "true"
5593 then
5594 as_fn_error $? "cannot enable service discovery - no supported mechanisms" "$LINENO" 5
5596 if test "$enable_discovery" = "true"
5597 then
5599 $as_echo "#define HAVE_SERVICE_DISCOVERY 1" >>confdefs.h
5607 enable_systemd=false
5608 if test "x$do_systemd" != "xno"; then :
5610 enable_systemd=true
5613 if test -n "$SYSTEMD_SYSTEMUNITDIR"; then
5614 pkg_cv_SYSTEMD_SYSTEMUNITDIR="$SYSTEMD_SYSTEMUNITDIR"
5615 elif test -n "$PKG_CONFIG"; then
5616 if test -n "$PKG_CONFIG" && \
5617 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd\""; } >&5
5618 ($PKG_CONFIG --exists --print-errors "systemd") 2>&5
5619 ac_status=$?
5620 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5621 test $ac_status = 0; }; then
5622 pkg_cv_SYSTEMD_SYSTEMUNITDIR=`$PKG_CONFIG --variable="systemdsystemunitdir" "systemd" 2>/dev/null`
5623 test "x$?" != "x0" && pkg_failed=yes
5624 else
5625 pkg_failed=yes
5627 else
5628 pkg_failed=untried
5630 SYSTEMD_SYSTEMUNITDIR=$pkg_cv_SYSTEMD_SYSTEMUNITDIR
5632 if test "x$SYSTEMD_SYSTEMUNITDIR" = x""; then :
5633 enable_systemd=false
5634 else
5635 pcp_systemdunit_dir=$SYSTEMD_SYSTEMUNITDIR
5638 if test -z "$pcp_systemdunit_dir"
5639 then
5640 if test "$do_systemd" = "yes"
5641 then
5642 as_fn_error $? "cannot enable systemd support - no systemunitdir path" "$LINENO" 5
5644 enable_systemd=false
5650 # NB: No AC_PREFIX_DEFAULT is needed, as the default configure invocation
5651 # targets a build for non-system directories such as /usr/local.
5652 # AC_PREFIX_DEFAULT([])
5654 . ./VERSION.pcp
5655 PACKAGE_VERSION=${PACKAGE_MAJOR}.${PACKAGE_MINOR}.${PACKAGE_REVISION}
5662 if test -z "$PACKAGE_BUILD_DATE" ; then
5663 PACKAGE_BUILD_DATE=`date +%Y-%m-%d`
5667 if test -z "$PACKAGE_DISTRIBUTION" ; then
5668 PACKAGE_DISTRIBUTION=$target_distro
5672 pm_version_current=`awk </dev/null "BEGIN { print (${PACKAGE_MAJOR}*256+${PACKAGE_MINOR})*256+${PACKAGE_REVISION} }"`
5675 ac_config_headers="$ac_config_headers src/include/pcp/config.h src/include/pcp/configsz.h"
5677 ac_config_files="$ac_config_files src/include/pcp/platform_defs.h src/include/pcp/platformsz.h"
5679 cat >confcache <<\_ACEOF
5680 # This file is a shell script that caches the results of configure
5681 # tests run on this system so they can be shared between configure
5682 # scripts and configure runs, see configure's option --config-cache.
5683 # It is not useful on other systems. If it contains results you don't
5684 # want to keep, you may remove or edit it.
5686 # config.status only pays attention to the cache file if you give it
5687 # the --recheck option to rerun configure.
5689 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5690 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5691 # following values.
5693 _ACEOF
5695 # The following way of writing the cache mishandles newlines in values,
5696 # but we know of no workaround that is simple, portable, and efficient.
5697 # So, we kill variables containing newlines.
5698 # Ultrix sh set writes to stderr and can't be redirected directly,
5699 # and sets the high bit in the cache file unless we assign to the vars.
5701 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5702 eval ac_val=\$$ac_var
5703 case $ac_val in #(
5704 *${as_nl}*)
5705 case $ac_var in #(
5706 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5707 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5708 esac
5709 case $ac_var in #(
5710 _ | IFS | as_nl) ;; #(
5711 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5712 *) { eval $ac_var=; unset $ac_var;} ;;
5713 esac ;;
5714 esac
5715 done
5717 (set) 2>&1 |
5718 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5719 *${as_nl}ac_space=\ *)
5720 # `set' does not quote correctly, so add quotes: double-quote
5721 # substitution turns \\\\ into \\, and sed turns \\ into \.
5722 sed -n \
5723 "s/'/'\\\\''/g;
5724 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5725 ;; #(
5727 # `set' quotes correctly as required by POSIX, so do not add quotes.
5728 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5730 esac |
5731 sort
5733 sed '
5734 /^ac_cv_env_/b end
5735 t clear
5736 :clear
5737 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5738 t end
5739 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5740 :end' >>confcache
5741 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5742 if test -w "$cache_file"; then
5743 if test "x$cache_file" != "x/dev/null"; then
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5745 $as_echo "$as_me: updating cache $cache_file" >&6;}
5746 if test ! -f "$cache_file" || test -h "$cache_file"; then
5747 cat confcache >"$cache_file"
5748 else
5749 case $cache_file in #(
5750 */* | ?:*)
5751 mv -f confcache "$cache_file"$$ &&
5752 mv -f "$cache_file"$$ "$cache_file" ;; #(
5754 mv -f confcache "$cache_file" ;;
5755 esac
5758 else
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5760 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5763 rm -f confcache
5765 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5766 # Let make expand exec_prefix.
5767 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5769 DEFS=-DHAVE_CONFIG_H
5771 ac_libobjs=
5772 ac_ltlibobjs=
5774 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5775 # 1. Remove the extension, and $U if already installed.
5776 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5777 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5778 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5779 # will be set to the directory where LIBOBJS objects are built.
5780 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5781 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
5782 done
5783 LIBOBJS=$ac_libobjs
5785 LTLIBOBJS=$ac_ltlibobjs
5789 : "${CONFIG_STATUS=./config.status}"
5790 ac_write_fail=0
5791 ac_clean_files_save=$ac_clean_files
5792 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5794 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5795 as_write_fail=0
5796 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5797 #! $SHELL
5798 # Generated by $as_me.
5799 # Run this file to recreate the current configuration.
5800 # Compiler output produced by configure, useful for debugging
5801 # configure, is in config.log if it exists.
5803 debug=false
5804 ac_cs_recheck=false
5805 ac_cs_silent=false
5807 SHELL=\${CONFIG_SHELL-$SHELL}
5808 export SHELL
5809 _ASEOF
5810 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5811 ## -------------------- ##
5812 ## M4sh Initialization. ##
5813 ## -------------------- ##
5815 # Be more Bourne compatible
5816 DUALCASE=1; export DUALCASE # for MKS sh
5817 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
5818 emulate sh
5819 NULLCMD=:
5820 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5821 # is contrary to our usage. Disable this feature.
5822 alias -g '${1+"$@"}'='"$@"'
5823 setopt NO_GLOB_SUBST
5824 else
5825 case `(set -o) 2>/dev/null` in #(
5826 *posix*) :
5827 set -o posix ;; #(
5828 *) :
5830 esac
5834 as_nl='
5836 export as_nl
5837 # Printing a long string crashes Solaris 7 /usr/bin/printf.
5838 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5839 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5840 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5841 # Prefer a ksh shell builtin over an external printf program on Solaris,
5842 # but without wasting forks for bash or zsh.
5843 if test -z "$BASH_VERSION$ZSH_VERSION" \
5844 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5845 as_echo='print -r --'
5846 as_echo_n='print -rn --'
5847 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5848 as_echo='printf %s\n'
5849 as_echo_n='printf %s'
5850 else
5851 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5852 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5853 as_echo_n='/usr/ucb/echo -n'
5854 else
5855 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5856 as_echo_n_body='eval
5857 arg=$1;
5858 case $arg in #(
5859 *"$as_nl"*)
5860 expr "X$arg" : "X\\(.*\\)$as_nl";
5861 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5862 esac;
5863 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5865 export as_echo_n_body
5866 as_echo_n='sh -c $as_echo_n_body as_echo'
5868 export as_echo_body
5869 as_echo='sh -c $as_echo_body as_echo'
5872 # The user is always right.
5873 if test "${PATH_SEPARATOR+set}" != set; then
5874 PATH_SEPARATOR=:
5875 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5876 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5877 PATH_SEPARATOR=';'
5882 # IFS
5883 # We need space, tab and new line, in precisely that order. Quoting is
5884 # there to prevent editors from complaining about space-tab.
5885 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
5886 # splitting by setting IFS to empty value.)
5887 IFS=" "" $as_nl"
5889 # Find who we are. Look in the path if we contain no directory separator.
5890 as_myself=
5891 case $0 in #((
5892 *[\\/]* ) as_myself=$0 ;;
5893 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5894 for as_dir in $PATH
5896 IFS=$as_save_IFS
5897 test -z "$as_dir" && as_dir=.
5898 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5899 done
5900 IFS=$as_save_IFS
5903 esac
5904 # We did not find ourselves, most probably we were run as `sh COMMAND'
5905 # in which case we are not to be found in the path.
5906 if test "x$as_myself" = x; then
5907 as_myself=$0
5909 if test ! -f "$as_myself"; then
5910 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5911 exit 1
5914 # Unset variables that we do not need and which cause bugs (e.g. in
5915 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
5916 # suppresses any "Segmentation fault" message there. '((' could
5917 # trigger a bug in pdksh 5.2.14.
5918 for as_var in BASH_ENV ENV MAIL MAILPATH
5919 do eval test x\${$as_var+set} = xset \
5920 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5921 done
5922 PS1='$ '
5923 PS2='> '
5924 PS4='+ '
5926 # NLS nuisances.
5927 LC_ALL=C
5928 export LC_ALL
5929 LANGUAGE=C
5930 export LANGUAGE
5932 # CDPATH.
5933 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5936 # as_fn_error STATUS ERROR [LINENO LOG_FD]
5937 # ----------------------------------------
5938 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5939 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5940 # script with STATUS, using 1 if that was 0.
5941 as_fn_error ()
5943 as_status=$1; test $as_status -eq 0 && as_status=1
5944 if test "$4"; then
5945 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5946 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
5948 $as_echo "$as_me: error: $2" >&2
5949 as_fn_exit $as_status
5950 } # as_fn_error
5953 # as_fn_set_status STATUS
5954 # -----------------------
5955 # Set $? to STATUS, without forking.
5956 as_fn_set_status ()
5958 return $1
5959 } # as_fn_set_status
5961 # as_fn_exit STATUS
5962 # -----------------
5963 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5964 as_fn_exit ()
5966 set +e
5967 as_fn_set_status $1
5968 exit $1
5969 } # as_fn_exit
5971 # as_fn_unset VAR
5972 # ---------------
5973 # Portably unset VAR.
5974 as_fn_unset ()
5976 { eval $1=; unset $1;}
5978 as_unset=as_fn_unset
5979 # as_fn_append VAR VALUE
5980 # ----------------------
5981 # Append the text in VALUE to the end of the definition contained in VAR. Take
5982 # advantage of any shell optimizations that allow amortized linear growth over
5983 # repeated appends, instead of the typical quadratic growth present in naive
5984 # implementations.
5985 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
5986 eval 'as_fn_append ()
5988 eval $1+=\$2
5990 else
5991 as_fn_append ()
5993 eval $1=\$$1\$2
5995 fi # as_fn_append
5997 # as_fn_arith ARG...
5998 # ------------------
5999 # Perform arithmetic evaluation on the ARGs, and store the result in the
6000 # global $as_val. Take advantage of shells that can avoid forks. The arguments
6001 # must be portable across $(()) and expr.
6002 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
6003 eval 'as_fn_arith ()
6005 as_val=$(( $* ))
6007 else
6008 as_fn_arith ()
6010 as_val=`expr "$@" || test $? -eq 1`
6012 fi # as_fn_arith
6015 if expr a : '\(a\)' >/dev/null 2>&1 &&
6016 test "X`expr 00001 : '.*\(...\)'`" = X001; then
6017 as_expr=expr
6018 else
6019 as_expr=false
6022 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6023 as_basename=basename
6024 else
6025 as_basename=false
6028 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6029 as_dirname=dirname
6030 else
6031 as_dirname=false
6034 as_me=`$as_basename -- "$0" ||
6035 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6036 X"$0" : 'X\(//\)$' \| \
6037 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6038 $as_echo X/"$0" |
6039 sed '/^.*\/\([^/][^/]*\)\/*$/{
6040 s//\1/
6043 /^X\/\(\/\/\)$/{
6044 s//\1/
6047 /^X\/\(\/\).*/{
6048 s//\1/
6051 s/.*/./; q'`
6053 # Avoid depending upon Character Ranges.
6054 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6055 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6056 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6057 as_cr_digits='0123456789'
6058 as_cr_alnum=$as_cr_Letters$as_cr_digits
6060 ECHO_C= ECHO_N= ECHO_T=
6061 case `echo -n x` in #(((((
6062 -n*)
6063 case `echo 'xy\c'` in
6064 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
6065 xy) ECHO_C='\c';;
6066 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
6067 ECHO_T=' ';;
6068 esac;;
6070 ECHO_N='-n';;
6071 esac
6073 rm -f conf$$ conf$$.exe conf$$.file
6074 if test -d conf$$.dir; then
6075 rm -f conf$$.dir/conf$$.file
6076 else
6077 rm -f conf$$.dir
6078 mkdir conf$$.dir 2>/dev/null
6080 if (echo >conf$$.file) 2>/dev/null; then
6081 if ln -s conf$$.file conf$$ 2>/dev/null; then
6082 as_ln_s='ln -s'
6083 # ... but there are two gotchas:
6084 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6085 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6086 # In both cases, we have to default to `cp -pR'.
6087 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6088 as_ln_s='cp -pR'
6089 elif ln conf$$.file conf$$ 2>/dev/null; then
6090 as_ln_s=ln
6091 else
6092 as_ln_s='cp -pR'
6094 else
6095 as_ln_s='cp -pR'
6097 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6098 rmdir conf$$.dir 2>/dev/null
6101 # as_fn_mkdir_p
6102 # -------------
6103 # Create "$as_dir" as a directory, including parents if necessary.
6104 as_fn_mkdir_p ()
6107 case $as_dir in #(
6108 -*) as_dir=./$as_dir;;
6109 esac
6110 test -d "$as_dir" || eval $as_mkdir_p || {
6111 as_dirs=
6112 while :; do
6113 case $as_dir in #(
6114 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6115 *) as_qdir=$as_dir;;
6116 esac
6117 as_dirs="'$as_qdir' $as_dirs"
6118 as_dir=`$as_dirname -- "$as_dir" ||
6119 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6120 X"$as_dir" : 'X\(//\)[^/]' \| \
6121 X"$as_dir" : 'X\(//\)$' \| \
6122 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6123 $as_echo X"$as_dir" |
6124 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6125 s//\1/
6128 /^X\(\/\/\)[^/].*/{
6129 s//\1/
6132 /^X\(\/\/\)$/{
6133 s//\1/
6136 /^X\(\/\).*/{
6137 s//\1/
6140 s/.*/./; q'`
6141 test -d "$as_dir" && break
6142 done
6143 test -z "$as_dirs" || eval "mkdir $as_dirs"
6144 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
6147 } # as_fn_mkdir_p
6148 if mkdir -p . 2>/dev/null; then
6149 as_mkdir_p='mkdir -p "$as_dir"'
6150 else
6151 test -d ./-p && rmdir ./-p
6152 as_mkdir_p=false
6156 # as_fn_executable_p FILE
6157 # -----------------------
6158 # Test if FILE is an executable regular file.
6159 as_fn_executable_p ()
6161 test -f "$1" && test -x "$1"
6162 } # as_fn_executable_p
6163 as_test_x='test -x'
6164 as_executable_p=as_fn_executable_p
6166 # Sed expression to map a string onto a valid CPP name.
6167 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6169 # Sed expression to map a string onto a valid variable name.
6170 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6173 exec 6>&1
6174 ## ----------------------------------- ##
6175 ## Main body of $CONFIG_STATUS script. ##
6176 ## ----------------------------------- ##
6177 _ASEOF
6178 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
6180 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6181 # Save the log message, to keep $0 and so on meaningful, and to
6182 # report actual input values of CONFIG_FILES etc. instead of their
6183 # values after options handling.
6184 ac_log="
6185 This file was extended by $as_me, which was
6186 generated by GNU Autoconf 2.69. Invocation command line was
6188 CONFIG_FILES = $CONFIG_FILES
6189 CONFIG_HEADERS = $CONFIG_HEADERS
6190 CONFIG_LINKS = $CONFIG_LINKS
6191 CONFIG_COMMANDS = $CONFIG_COMMANDS
6192 $ $0 $@
6194 on `(hostname || uname -n) 2>/dev/null | sed 1q`
6197 _ACEOF
6199 case $ac_config_files in *"
6200 "*) set x $ac_config_files; shift; ac_config_files=$*;;
6201 esac
6203 case $ac_config_headers in *"
6204 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
6205 esac
6208 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6209 # Files that config.status was made for.
6210 config_files="$ac_config_files"
6211 config_headers="$ac_config_headers"
6213 _ACEOF
6215 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6216 ac_cs_usage="\
6217 \`$as_me' instantiates files and other configuration actions
6218 from templates according to the current configuration. Unless the files
6219 and actions are specified as TAGs, all are instantiated by default.
6221 Usage: $0 [OPTION]... [TAG]...
6223 -h, --help print this help, then exit
6224 -V, --version print version number and configuration settings, then exit
6225 --config print configuration, then exit
6226 -q, --quiet, --silent
6227 do not print progress messages
6228 -d, --debug don't remove temporary files
6229 --recheck update $as_me by reconfiguring in the same conditions
6230 --file=FILE[:TEMPLATE]
6231 instantiate the configuration file FILE
6232 --header=FILE[:TEMPLATE]
6233 instantiate the configuration header FILE
6235 Configuration files:
6236 $config_files
6238 Configuration headers:
6239 $config_headers
6241 Report bugs to the package provider."
6243 _ACEOF
6244 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6245 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
6246 ac_cs_version="\\
6247 config.status
6248 configured by $0, generated by GNU Autoconf 2.69,
6249 with options \\"\$ac_cs_config\\"
6251 Copyright (C) 2012 Free Software Foundation, Inc.
6252 This config.status script is free software; the Free Software Foundation
6253 gives unlimited permission to copy, distribute and modify it."
6255 ac_pwd='$ac_pwd'
6256 srcdir='$srcdir'
6257 test -n "\$AWK" || AWK=awk
6258 _ACEOF
6260 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6261 # The default lists apply if the user does not specify any file.
6262 ac_need_defaults=:
6263 while test $# != 0
6265 case $1 in
6266 --*=?*)
6267 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6268 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6269 ac_shift=:
6271 --*=)
6272 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6273 ac_optarg=
6274 ac_shift=:
6277 ac_option=$1
6278 ac_optarg=$2
6279 ac_shift=shift
6281 esac
6283 case $ac_option in
6284 # Handling of the options.
6285 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6286 ac_cs_recheck=: ;;
6287 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6288 $as_echo "$ac_cs_version"; exit ;;
6289 --config | --confi | --conf | --con | --co | --c )
6290 $as_echo "$ac_cs_config"; exit ;;
6291 --debug | --debu | --deb | --de | --d | -d )
6292 debug=: ;;
6293 --file | --fil | --fi | --f )
6294 $ac_shift
6295 case $ac_optarg in
6296 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6297 '') as_fn_error $? "missing file argument" ;;
6298 esac
6299 as_fn_append CONFIG_FILES " '$ac_optarg'"
6300 ac_need_defaults=false;;
6301 --header | --heade | --head | --hea )
6302 $ac_shift
6303 case $ac_optarg in
6304 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6305 esac
6306 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
6307 ac_need_defaults=false;;
6308 --he | --h)
6309 # Conflict between --help and --header
6310 as_fn_error $? "ambiguous option: \`$1'
6311 Try \`$0 --help' for more information.";;
6312 --help | --hel | -h )
6313 $as_echo "$ac_cs_usage"; exit ;;
6314 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6315 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6316 ac_cs_silent=: ;;
6318 # This is an error.
6319 -*) as_fn_error $? "unrecognized option: \`$1'
6320 Try \`$0 --help' for more information." ;;
6322 *) as_fn_append ac_config_targets " $1"
6323 ac_need_defaults=false ;;
6325 esac
6326 shift
6327 done
6329 ac_configure_extra_args=
6331 if $ac_cs_silent; then
6332 exec 6>/dev/null
6333 ac_configure_extra_args="$ac_configure_extra_args --silent"
6336 _ACEOF
6337 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6338 if \$ac_cs_recheck; then
6339 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6340 shift
6341 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6342 CONFIG_SHELL='$SHELL'
6343 export CONFIG_SHELL
6344 exec "\$@"
6347 _ACEOF
6348 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6349 exec 5>>config.log
6351 echo
6352 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6353 ## Running $as_me. ##
6354 _ASBOX
6355 $as_echo "$ac_log"
6356 } >&5
6358 _ACEOF
6359 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6360 _ACEOF
6362 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6364 # Handling of arguments.
6365 for ac_config_target in $ac_config_targets
6367 case $ac_config_target in
6368 "src/include/pcp/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pcp/config.h" ;;
6369 "src/include/pcp/configsz.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pcp/configsz.h" ;;
6370 "src/include/pcp/platform_defs.h") CONFIG_FILES="$CONFIG_FILES src/include/pcp/platform_defs.h" ;;
6371 "src/include/pcp/platformsz.h") CONFIG_FILES="$CONFIG_FILES src/include/pcp/platformsz.h" ;;
6373 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
6374 esac
6375 done
6378 # If the user did not use the arguments to specify the items to instantiate,
6379 # then the envvar interface is used. Set only those that are not.
6380 # We use the long form for the default assignment because of an extremely
6381 # bizarre bug on SunOS 4.1.3.
6382 if $ac_need_defaults; then
6383 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6384 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6387 # Have a temporary directory for convenience. Make it in the build tree
6388 # simply because there is no reason against having it here, and in addition,
6389 # creating and moving files from /tmp can sometimes cause problems.
6390 # Hook for its removal unless debugging.
6391 # Note that there is a small window in which the directory will not be cleaned:
6392 # after its creation but before its name has been assigned to `$tmp'.
6393 $debug ||
6395 tmp= ac_tmp=
6396 trap 'exit_status=$?
6397 : "${ac_tmp:=$tmp}"
6398 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
6400 trap 'as_fn_exit 1' 1 2 13 15
6402 # Create a (secure) tmp directory for tmp files.
6405 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6406 test -d "$tmp"
6407 } ||
6409 tmp=./conf$$-$RANDOM
6410 (umask 077 && mkdir "$tmp")
6411 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
6412 ac_tmp=$tmp
6414 # Set up the scripts for CONFIG_FILES section.
6415 # No need to generate them if there are no CONFIG_FILES.
6416 # This happens for instance with `./config.status config.h'.
6417 if test -n "$CONFIG_FILES"; then
6420 ac_cr=`echo X | tr X '\015'`
6421 # On cygwin, bash can eat \r inside `` if the user requested igncr.
6422 # But we know of no other shell where ac_cr would be empty at this
6423 # point, so we can use a bashism as a fallback.
6424 if test "x$ac_cr" = x; then
6425 eval ac_cr=\$\'\\r\'
6427 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6428 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6429 ac_cs_awk_cr='\\r'
6430 else
6431 ac_cs_awk_cr=$ac_cr
6434 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
6435 _ACEOF
6439 echo "cat >conf$$subs.awk <<_ACEOF" &&
6440 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6441 echo "_ACEOF"
6442 } >conf$$subs.sh ||
6443 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6444 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
6445 ac_delim='%!_!# '
6446 for ac_last_try in false false false false false :; do
6447 . ./conf$$subs.sh ||
6448 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6450 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6451 if test $ac_delim_n = $ac_delim_num; then
6452 break
6453 elif $ac_last_try; then
6454 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6455 else
6456 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6458 done
6459 rm -f conf$$subs.sh
6461 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6462 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
6463 _ACEOF
6464 sed -n '
6466 s/^/S["/; s/!.*/"]=/
6469 s/^[^!]*!//
6470 :repl
6471 t repl
6472 s/'"$ac_delim"'$//
6473 t delim
6476 s/\(.\{148\}\)..*/\1/
6477 t more1
6478 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6481 b repl
6482 :more1
6483 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6486 s/.\{148\}//
6487 t nl
6488 :delim
6490 s/\(.\{148\}\)..*/\1/
6491 t more2
6492 s/["\\]/\\&/g; s/^/"/; s/$/"/
6495 :more2
6496 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6499 s/.\{148\}//
6500 t delim
6501 ' <conf$$subs.awk | sed '
6502 /^[^""]/{
6504 s/\n//
6506 ' >>$CONFIG_STATUS || ac_write_fail=1
6507 rm -f conf$$subs.awk
6508 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6509 _ACAWK
6510 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
6511 for (key in S) S_is_set[key] = 1
6512 FS = "\a"
6516 line = $ 0
6517 nfields = split(line, field, "@")
6518 substed = 0
6519 len = length(field[1])
6520 for (i = 2; i < nfields; i++) {
6521 key = field[i]
6522 keylen = length(key)
6523 if (S_is_set[key]) {
6524 value = S[key]
6525 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6526 len += length(value) + length(field[++i])
6527 substed = 1
6528 } else
6529 len += 1 + keylen
6532 print line
6535 _ACAWK
6536 _ACEOF
6537 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6538 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6539 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6540 else
6542 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
6543 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
6544 _ACEOF
6546 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
6547 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
6548 # trailing colons and then remove the whole line if VPATH becomes empty
6549 # (actually we leave an empty line to preserve line numbers).
6550 if test "x$srcdir" = x.; then
6551 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
6553 s///
6554 s/^/:/
6555 s/[ ]*$/:/
6556 s/:\$(srcdir):/:/g
6557 s/:\${srcdir}:/:/g
6558 s/:@srcdir@:/:/g
6559 s/^:*//
6560 s/:*$//
6562 s/\(=[ ]*\).*/\1/
6564 s/\n//
6565 s/^[^=]*=[ ]*$//
6569 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6570 fi # test -n "$CONFIG_FILES"
6572 # Set up the scripts for CONFIG_HEADERS section.
6573 # No need to generate them if there are no CONFIG_HEADERS.
6574 # This happens for instance with `./config.status Makefile'.
6575 if test -n "$CONFIG_HEADERS"; then
6576 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
6577 BEGIN {
6578 _ACEOF
6580 # Transform confdefs.h into an awk script `defines.awk', embedded as
6581 # here-document in config.status, that substitutes the proper values into
6582 # config.h.in to produce config.h.
6584 # Create a delimiter string that does not exist in confdefs.h, to ease
6585 # handling of long lines.
6586 ac_delim='%!_!# '
6587 for ac_last_try in false false :; do
6588 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
6589 if test -z "$ac_tt"; then
6590 break
6591 elif $ac_last_try; then
6592 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
6593 else
6594 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6596 done
6598 # For the awk script, D is an array of macro values keyed by name,
6599 # likewise P contains macro parameters if any. Preserve backslash
6600 # newline sequences.
6602 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6603 sed -n '
6604 s/.\{148\}/&'"$ac_delim"'/g
6605 t rset
6606 :rset
6607 s/^[ ]*#[ ]*define[ ][ ]*/ /
6608 t def
6610 :def
6611 s/\\$//
6612 t bsnl
6613 s/["\\]/\\&/g
6614 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6615 D["\1"]=" \3"/p
6616 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
6618 :bsnl
6619 s/["\\]/\\&/g
6620 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6621 D["\1"]=" \3\\\\\\n"\\/p
6622 t cont
6623 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6624 t cont
6626 :cont
6628 s/.\{148\}/&'"$ac_delim"'/g
6629 t clear
6630 :clear
6631 s/\\$//
6632 t bsnlc
6633 s/["\\]/\\&/g; s/^/"/; s/$/"/p
6635 :bsnlc
6636 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6637 b cont
6638 ' <confdefs.h | sed '
6639 s/'"$ac_delim"'/"\\\
6640 "/g' >>$CONFIG_STATUS || ac_write_fail=1
6642 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6643 for (key in D) D_is_set[key] = 1
6644 FS = "\a"
6646 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6647 line = \$ 0
6648 split(line, arg, " ")
6649 if (arg[1] == "#") {
6650 defundef = arg[2]
6651 mac1 = arg[3]
6652 } else {
6653 defundef = substr(arg[1], 2)
6654 mac1 = arg[2]
6656 split(mac1, mac2, "(") #)
6657 macro = mac2[1]
6658 prefix = substr(line, 1, index(line, defundef) - 1)
6659 if (D_is_set[macro]) {
6660 # Preserve the white space surrounding the "#".
6661 print prefix "define", macro P[macro] D[macro]
6662 next
6663 } else {
6664 # Replace #undef with comments. This is necessary, for example,
6665 # in the case of _POSIX_SOURCE, which is predefined and required
6666 # on some systems where configure will not decide to define it.
6667 if (defundef == "undef") {
6668 print "/*", prefix defundef, macro, "*/"
6669 next
6673 { print }
6674 _ACAWK
6675 _ACEOF
6676 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6677 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
6678 fi # test -n "$CONFIG_HEADERS"
6681 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
6682 shift
6683 for ac_tag
6685 case $ac_tag in
6686 :[FHLC]) ac_mode=$ac_tag; continue;;
6687 esac
6688 case $ac_mode$ac_tag in
6689 :[FHL]*:*);;
6690 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
6691 :[FH]-) ac_tag=-:-;;
6692 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6693 esac
6694 ac_save_IFS=$IFS
6695 IFS=:
6696 set x $ac_tag
6697 IFS=$ac_save_IFS
6698 shift
6699 ac_file=$1
6700 shift
6702 case $ac_mode in
6703 :L) ac_source=$1;;
6704 :[FH])
6705 ac_file_inputs=
6706 for ac_f
6708 case $ac_f in
6709 -) ac_f="$ac_tmp/stdin";;
6710 *) # Look for the file first in the build tree, then in the source tree
6711 # (if the path is not absolute). The absolute path cannot be DOS-style,
6712 # because $ac_f cannot contain `:'.
6713 test -f "$ac_f" ||
6714 case $ac_f in
6715 [\\/$]*) false;;
6716 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6717 esac ||
6718 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6719 esac
6720 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6721 as_fn_append ac_file_inputs " '$ac_f'"
6722 done
6724 # Let's still pretend it is `configure' which instantiates (i.e., don't
6725 # use $as_me), people would be surprised to read:
6726 # /* config.h. Generated by config.status. */
6727 configure_input='Generated from '`
6728 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6729 `' by configure.'
6730 if test x"$ac_file" != x-; then
6731 configure_input="$ac_file. $configure_input"
6732 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6733 $as_echo "$as_me: creating $ac_file" >&6;}
6735 # Neutralize special characters interpreted by sed in replacement strings.
6736 case $configure_input in #(
6737 *\&* | *\|* | *\\* )
6738 ac_sed_conf_input=`$as_echo "$configure_input" |
6739 sed 's/[\\\\&|]/\\\\&/g'`;; #(
6740 *) ac_sed_conf_input=$configure_input;;
6741 esac
6743 case $ac_tag in
6744 *:-:* | *:-) cat >"$ac_tmp/stdin" \
6745 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
6746 esac
6748 esac
6750 ac_dir=`$as_dirname -- "$ac_file" ||
6751 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6752 X"$ac_file" : 'X\(//\)[^/]' \| \
6753 X"$ac_file" : 'X\(//\)$' \| \
6754 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6755 $as_echo X"$ac_file" |
6756 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6757 s//\1/
6760 /^X\(\/\/\)[^/].*/{
6761 s//\1/
6764 /^X\(\/\/\)$/{
6765 s//\1/
6768 /^X\(\/\).*/{
6769 s//\1/
6772 s/.*/./; q'`
6773 as_dir="$ac_dir"; as_fn_mkdir_p
6774 ac_builddir=.
6776 case "$ac_dir" in
6777 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6779 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6780 # A ".." for each directory in $ac_dir_suffix.
6781 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6782 case $ac_top_builddir_sub in
6783 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6784 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6785 esac ;;
6786 esac
6787 ac_abs_top_builddir=$ac_pwd
6788 ac_abs_builddir=$ac_pwd$ac_dir_suffix
6789 # for backward compatibility:
6790 ac_top_builddir=$ac_top_build_prefix
6792 case $srcdir in
6793 .) # We are building in place.
6794 ac_srcdir=.
6795 ac_top_srcdir=$ac_top_builddir_sub
6796 ac_abs_top_srcdir=$ac_pwd ;;
6797 [\\/]* | ?:[\\/]* ) # Absolute name.
6798 ac_srcdir=$srcdir$ac_dir_suffix;
6799 ac_top_srcdir=$srcdir
6800 ac_abs_top_srcdir=$srcdir ;;
6801 *) # Relative name.
6802 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6803 ac_top_srcdir=$ac_top_build_prefix$srcdir
6804 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6805 esac
6806 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6809 case $ac_mode in
6812 # CONFIG_FILE
6815 _ACEOF
6817 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6818 # If the template does not know about datarootdir, expand it.
6819 # FIXME: This hack should be removed a few years after 2.60.
6820 ac_datarootdir_hack=; ac_datarootdir_seen=
6821 ac_sed_dataroot='
6822 /datarootdir/ {
6826 /@datadir@/p
6827 /@docdir@/p
6828 /@infodir@/p
6829 /@localedir@/p
6830 /@mandir@/p'
6831 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6832 *datarootdir*) ac_datarootdir_seen=yes;;
6833 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6835 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6836 _ACEOF
6837 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6838 ac_datarootdir_hack='
6839 s&@datadir@&$datadir&g
6840 s&@docdir@&$docdir&g
6841 s&@infodir@&$infodir&g
6842 s&@localedir@&$localedir&g
6843 s&@mandir@&$mandir&g
6844 s&\\\${datarootdir}&$datarootdir&g' ;;
6845 esac
6846 _ACEOF
6848 # Neutralize VPATH when `$srcdir' = `.'.
6849 # Shell code in configure.ac might set extrasub.
6850 # FIXME: do we really want to maintain this feature?
6851 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6852 ac_sed_extra="$ac_vpsub
6853 $extrasub
6854 _ACEOF
6855 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6857 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6858 s|@configure_input@|$ac_sed_conf_input|;t t
6859 s&@top_builddir@&$ac_top_builddir_sub&;t t
6860 s&@top_build_prefix@&$ac_top_build_prefix&;t t
6861 s&@srcdir@&$ac_srcdir&;t t
6862 s&@abs_srcdir@&$ac_abs_srcdir&;t t
6863 s&@top_srcdir@&$ac_top_srcdir&;t t
6864 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6865 s&@builddir@&$ac_builddir&;t t
6866 s&@abs_builddir@&$ac_abs_builddir&;t t
6867 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6868 $ac_datarootdir_hack
6870 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
6871 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6873 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6874 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
6875 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
6876 "$ac_tmp/out"`; test -z "$ac_out"; } &&
6877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6878 which seems to be undefined. Please make sure it is defined" >&5
6879 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6880 which seems to be undefined. Please make sure it is defined" >&2;}
6882 rm -f "$ac_tmp/stdin"
6883 case $ac_file in
6884 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
6885 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
6886 esac \
6887 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6891 # CONFIG_HEADER
6893 if test x"$ac_file" != x-; then
6895 $as_echo "/* $configure_input */" \
6896 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
6897 } >"$ac_tmp/config.h" \
6898 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6899 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
6900 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
6901 $as_echo "$as_me: $ac_file is unchanged" >&6;}
6902 else
6903 rm -f "$ac_file"
6904 mv "$ac_tmp/config.h" "$ac_file" \
6905 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6907 else
6908 $as_echo "/* $configure_input */" \
6909 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
6910 || as_fn_error $? "could not create -" "$LINENO" 5
6915 esac
6917 done # for ac_tag
6920 as_fn_exit 0
6921 _ACEOF
6922 ac_clean_files=$ac_clean_files_save
6924 test $ac_write_fail = 0 ||
6925 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
6928 # configure is writing to config.log, and then calls config.status.
6929 # config.status does its own redirection, appending to config.log.
6930 # Unfortunately, on DOS this fails, as config.log is still kept open
6931 # by configure, so config.status won't be able to write to it; its
6932 # output is simply discarded. So we exec the FD to /dev/null,
6933 # effectively closing config.log, so it can be properly (re)opened and
6934 # appended to by config.status. When coming back to configure, we
6935 # need to make the FD available again.
6936 if test "$no_create" != yes; then
6937 ac_cs_success=:
6938 ac_config_status_args=
6939 test "$silent" = yes &&
6940 ac_config_status_args="$ac_config_status_args --quiet"
6941 exec 5>/dev/null
6942 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6943 exec 5>>config.log
6944 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6945 # would make configure fail if this is the last instruction.
6946 $ac_cs_success || as_fn_exit 1
6948 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6950 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
6954 for ac_prog in git
6956 # Extract the first word of "$ac_prog", so it can be a program name with args.
6957 set dummy $ac_prog; ac_word=$2
6958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6959 $as_echo_n "checking for $ac_word... " >&6; }
6960 if ${ac_cv_prog_GIT+:} false; then :
6961 $as_echo_n "(cached) " >&6
6962 else
6963 if test -n "$GIT"; then
6964 ac_cv_prog_GIT="$GIT" # Let the user override the test.
6965 else
6966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6967 for as_dir in $PATH
6969 IFS=$as_save_IFS
6970 test -z "$as_dir" && as_dir=.
6971 for ac_exec_ext in '' $ac_executable_extensions; do
6972 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6973 ac_cv_prog_GIT="$ac_prog"
6974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6975 break 2
6977 done
6978 done
6979 IFS=$as_save_IFS
6983 GIT=$ac_cv_prog_GIT
6984 if test -n "$GIT"; then
6985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5
6986 $as_echo "$GIT" >&6; }
6987 else
6988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6989 $as_echo "no" >&6; }
6993 test -n "$GIT" && break
6994 done
6998 for ac_prog in python
7000 # Extract the first word of "$ac_prog", so it can be a program name with args.
7001 set dummy $ac_prog; ac_word=$2
7002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7003 $as_echo_n "checking for $ac_word... " >&6; }
7004 if ${ac_cv_prog_PYTHON+:} false; then :
7005 $as_echo_n "(cached) " >&6
7006 else
7007 if test -n "$PYTHON"; then
7008 ac_cv_prog_PYTHON="$PYTHON" # Let the user override the test.
7009 else
7010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7011 for as_dir in $PATH
7013 IFS=$as_save_IFS
7014 test -z "$as_dir" && as_dir=.
7015 for ac_exec_ext in '' $ac_executable_extensions; do
7016 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7017 ac_cv_prog_PYTHON="$ac_prog"
7018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7019 break 2
7021 done
7022 done
7023 IFS=$as_save_IFS
7027 PYTHON=$ac_cv_prog_PYTHON
7028 if test -n "$PYTHON"; then
7029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
7030 $as_echo "$PYTHON" >&6; }
7031 else
7032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7033 $as_echo "no" >&6; }
7037 test -n "$PYTHON" && break
7038 done
7039 test -n "$PYTHON" || PYTHON="python2.7"
7043 for ac_prog in python3
7045 # Extract the first word of "$ac_prog", so it can be a program name with args.
7046 set dummy $ac_prog; ac_word=$2
7047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7048 $as_echo_n "checking for $ac_word... " >&6; }
7049 if ${ac_cv_prog_PYTHON3+:} false; then :
7050 $as_echo_n "(cached) " >&6
7051 else
7052 if test -n "$PYTHON3"; then
7053 ac_cv_prog_PYTHON3="$PYTHON3" # Let the user override the test.
7054 else
7055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7056 for as_dir in $PATH
7058 IFS=$as_save_IFS
7059 test -z "$as_dir" && as_dir=.
7060 for ac_exec_ext in '' $ac_executable_extensions; do
7061 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7062 ac_cv_prog_PYTHON3="$ac_prog"
7063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7064 break 2
7066 done
7067 done
7068 IFS=$as_save_IFS
7072 PYTHON3=$ac_cv_prog_PYTHON3
7073 if test -n "$PYTHON3"; then
7074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON3" >&5
7075 $as_echo "$PYTHON3" >&6; }
7076 else
7077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7078 $as_echo "no" >&6; }
7082 test -n "$PYTHON3" && break
7083 done
7084 test -n "$PYTHON3" || PYTHON3="python3.4"
7088 enable_python2=false
7089 if test "x$do_python" != "xno"; then :
7091 enable_python2=true
7092 if test -z "$PYTHON"
7093 then
7094 enable_python2=false
7095 else
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python version" >&5
7097 $as_echo_n "checking Python version... " >&6; }
7098 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 }'`
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PY_MAJOR.$PY_MINOR.$PY_POINT" >&5
7100 $as_echo "$PY_MAJOR.$PY_MINOR.$PY_POINT" >&6; }
7101 if test "$PY_MAJOR" -lt 2; then
7102 echo WARNING: Python version 2.6 or later does not seem to be installed.
7103 enable_python2=false
7104 else
7105 if test "$PY_MAJOR" -eq 2 -a "$PY_MINOR" -lt 6 ; then
7106 echo WARNING: Python version 2.$PY_MINOR is too old.
7107 echo Python version 2.6 or later is required for Python builds.
7108 enable_python2=false
7109 else
7110 for ac_header in python${PY_MAJOR}.${PY_MINOR}/Python.h
7111 do :
7112 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7113 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7114 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7115 cat >>confdefs.h <<_ACEOF
7116 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7117 _ACEOF
7119 else
7121 echo WARNING: Python version $PY_MAJOR.$PY_MINOR header file missing.
7122 echo Cannot proceed with the Python $PY_MAJOR installation found.
7123 enable_python2=false
7127 done
7133 if test "$do_python" != "check" -a "$enable_python2" != "true"
7134 then
7135 as_fn_error $? "cannot enable Python - no supported version found" "$LINENO" 5
7141 enable_python3=false
7142 if test "x$do_python3" != "xno"; then :
7144 enable_python3=true
7145 if test -z "$PYTHON3"
7146 then
7147 enable_python3=false
7148 else
7149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python3 version" >&5
7150 $as_echo_n "checking Python3 version... " >&6; }
7151 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 }'`
7152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PY_MAJOR.$PY_MINOR.$PY_POINT" >&5
7153 $as_echo "$PY_MAJOR.$PY_MINOR.$PY_POINT" >&6; }
7154 if test "$PY_MAJOR" -lt 3; then
7155 echo WARNING: Python version 3.3 or later does not seem to be installed.
7156 enable_python3=false
7157 else
7158 if test "$PY_MAJOR" -eq 3 -a "$PY_MINOR" -lt 3 ; then
7159 echo WARNING: Python version 3.$PY_MINOR is too old.
7160 echo Python version 3.3 or later is required for Python builds.
7161 enable_python3=false
7162 else
7163 for ac_header in python${PY_MAJOR}.${PY_MINOR}m/Python.h
7164 do :
7165 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7166 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7167 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7168 cat >>confdefs.h <<_ACEOF
7169 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7170 _ACEOF
7172 else
7174 echo WARNING: Python version $PY_MAJOR.$PY_MINOR header file missing.
7175 echo Cannot proceed with the Python $PY_MAJOR installation found.
7176 enable_python3=false
7180 done
7186 if test "$do_python3" != "check" -a "$enable_python3" != "true"
7187 then
7188 as_fn_error $? "cannot enable Python3 - no supported version found" "$LINENO" 5
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for any python version" >&5
7195 $as_echo_n "checking for any python version... " >&6; }
7196 if test "$cross_compiling" = "yes"; then
7197 ans=$have_python
7198 echo "cross-compile -> \"$ans\"" >&5
7199 elif test "$enable_python2" = "true" -o "$enable_python3" = "true"
7200 then
7201 have_python=true
7202 else
7203 have_python=false
7206 if $have_python; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7207 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7208 $as_echo "no" >&6; }; fi
7210 if test "$enable_python3" = "true"
7211 then
7212 pcp_python_prog=$PYTHON3
7213 elif test "$enable_python2" = "true"
7214 then
7215 pcp_python_prog=$PYTHON
7216 else
7217 pcp_python_prog=""
7222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python module jsonpointer" >&5
7223 $as_echo_n "checking for Python module jsonpointer... " >&6; }
7224 if test -n ""
7225 then
7226 txt=""
7227 else
7228 txt="import jsonpointer"
7230 $pcp_python_prog -c 'import sys;
7231 '"$txt" >>config.log 2>&1
7232 if test "$?" = 0
7233 then
7234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7235 $as_echo "yes" >&6; }
7236 eval have_python_jsonpointer=true
7237 else
7238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7239 $as_echo "no" >&6; }
7240 eval have_python_jsonpointer=false
7244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python module setuptools" >&5
7245 $as_echo_n "checking for Python module setuptools... " >&6; }
7246 if test -n ""
7247 then
7248 txt=""
7249 else
7250 txt="import setuptools"
7252 $pcp_python_prog -c 'import sys;
7253 '"$txt" >>config.log 2>&1
7254 if test "$?" = 0
7255 then
7256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7257 $as_echo "yes" >&6; }
7258 eval have_python_setuptools=true
7259 else
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7261 $as_echo "no" >&6; }
7262 eval have_python_setuptools=false
7266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python module requests" >&5
7267 $as_echo_n "checking for Python module requests... " >&6; }
7268 if test -n ""
7269 then
7270 txt=""
7271 else
7272 txt="import requests"
7274 $pcp_python_prog -c 'import sys;
7275 '"$txt" >>config.log 2>&1
7276 if test "$?" = 0
7277 then
7278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7279 $as_echo "yes" >&6; }
7280 eval have_python_requests=true
7281 else
7282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7283 $as_echo "no" >&6; }
7284 eval have_python_requests=false
7288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python module six" >&5
7289 $as_echo_n "checking for Python module six... " >&6; }
7290 if test -n ""
7291 then
7292 txt=""
7293 else
7294 txt="import six"
7296 $pcp_python_prog -c 'import sys;
7297 '"$txt" >>config.log 2>&1
7298 if test "$?" = 0
7299 then
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7301 $as_echo "yes" >&6; }
7302 eval have_python_six=true
7303 else
7304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7305 $as_echo "no" >&6; }
7306 eval have_python_six=false
7311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the json PMDA should be included" >&5
7312 $as_echo_n "checking if the json PMDA should be included... " >&6; }
7313 pmda_json=false
7314 if test "x$do_pmdajson" = "xyes"; then :
7315 pmda_json=true
7317 if test "x$do_pmdajson" = "xcheck"; then :
7319 $have_python_jsonpointer && $have_python_six && pmda_json=true
7322 PMDA_JSON=$pmda_json
7324 if $pmda_json; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7325 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7326 $as_echo "no" >&6; }; fi
7328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python module libvirt" >&5
7329 $as_echo_n "checking for Python module libvirt... " >&6; }
7330 if test -n ""
7331 then
7332 txt=""
7333 else
7334 txt="import libvirt"
7336 $pcp_python_prog -c 'import sys;
7337 '"$txt" >>config.log 2>&1
7338 if test "$?" = 0
7339 then
7340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7341 $as_echo "yes" >&6; }
7342 eval have_python_libvirt=true
7343 else
7344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7345 $as_echo "no" >&6; }
7346 eval have_python_libvirt=false
7351 for ac_prog in perl
7353 # Extract the first word of "$ac_prog", so it can be a program name with args.
7354 set dummy $ac_prog; ac_word=$2
7355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7356 $as_echo_n "checking for $ac_word... " >&6; }
7357 if ${ac_cv_prog_PERL+:} false; then :
7358 $as_echo_n "(cached) " >&6
7359 else
7360 if test -n "$PERL"; then
7361 ac_cv_prog_PERL="$PERL" # Let the user override the test.
7362 else
7363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7364 for as_dir in $PATH
7366 IFS=$as_save_IFS
7367 test -z "$as_dir" && as_dir=.
7368 for ac_exec_ext in '' $ac_executable_extensions; do
7369 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7370 ac_cv_prog_PERL="$ac_prog"
7371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7372 break 2
7374 done
7375 done
7376 IFS=$as_save_IFS
7380 PERL=$ac_cv_prog_PERL
7381 if test -n "$PERL"; then
7382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
7383 $as_echo "$PERL" >&6; }
7384 else
7385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7386 $as_echo "no" >&6; }
7390 test -n "$PERL" && break
7391 done
7395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for any perl version" >&5
7396 $as_echo_n "checking for any perl version... " >&6; }
7397 if test "$cross_compiling" = "yes"; then
7398 ans=$have_perl
7399 echo "cross-compile -> \"$ans\"" >&5
7400 elif test -n "$PERL"
7401 then
7402 pcp_perl_prog=$PERL
7403 have_perl=true
7404 else
7405 pcp_perl_prog=""
7406 have_perl=false
7410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pcp_perl_prog" >&5
7411 $as_echo "$pcp_perl_prog" >&6; }
7413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the SNMP PMDA should be included" >&5
7414 $as_echo_n "checking if the SNMP PMDA should be included... " >&6; }
7415 pmda_snmp=false
7416 if test "x$do_pmdasnmp" = "xyes"; then :
7417 pmda_snmp=true
7419 if test "x$do_pmdasnmp" = "xcheck"; then :
7421 if test "$have_perl" = true
7422 then
7423 if $pcp_perl_prog -e "use Net::SNMP" >/dev/null 2>&1
7424 then
7425 pmda_snmp=true
7430 PMDA_SNMP=$pmda_snmp
7432 if $pmda_snmp; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7433 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7434 $as_echo "no" >&6; }; fi
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the mysql PMDA should be included" >&5
7437 $as_echo_n "checking if the mysql PMDA should be included... " >&6; }
7438 pmda_mysql=false
7439 if test "$have_perl" = true
7440 then
7441 if $pcp_perl_prog -e "use DBI" >/dev/null 2>&1
7442 then
7443 if $pcp_perl_prog -e "use DBD::mysql" >/dev/null 2>&1
7444 then
7445 pmda_mysql=true
7449 PMDA_MYSQL=$pmda_mysql
7451 if $pmda_mysql; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7452 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7453 $as_echo "no" >&6; }; fi
7455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the postgresql PMDA should be included" >&5
7456 $as_echo_n "checking if the postgresql PMDA should be included... " >&6; }
7457 pmda_postgresql=false
7458 if test "$have_perl" = true
7459 then
7460 if $pcp_perl_prog -e "use DBI" >/dev/null 2>&1
7461 then
7462 if $pcp_perl_prog -e "use DBD::Pg" >/dev/null 2>&1
7463 then
7464 pmda_postgresql=true
7468 PMDA_POSTGRESQL=$pmda_postgresql
7470 if $pmda_postgresql; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7471 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7472 $as_echo "no" >&6; }; fi
7474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the oracle PMDA should be included" >&5
7475 $as_echo_n "checking if the oracle PMDA should be included... " >&6; }
7476 pmda_oracle=false
7477 if test "$have_perl" = true
7478 then
7479 if $pcp_perl_prog -e "use DBI" >/dev/null 2>&1
7480 then
7481 pmda_oracle=true
7484 PMDA_ORACLE=$pmda_oracle
7486 if $pmda_oracle; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7487 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7488 $as_echo "no" >&6; }; fi
7490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the elasticsearch PMDA should be included" >&5
7491 $as_echo_n "checking if the elasticsearch PMDA should be included... " >&6; }
7492 pmda_elasticsearch=false
7493 if test "$have_perl" = true
7494 then
7495 if $pcp_perl_prog -e "use LWP::UserAgent" >/dev/null 2>&1
7496 then
7497 pmda_elasticsearch=true
7500 PMDA_ELASTICSEARCH=$pmda_elasticsearch
7502 if $pmda_elasticsearch; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7503 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7504 $as_echo "no" >&6; }; fi
7506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the nginx PMDA should be included" >&5
7507 $as_echo_n "checking if the nginx PMDA should be included... " >&6; }
7508 pmda_nginx=false
7509 if test "$have_perl" = true
7510 then
7511 if $pcp_perl_prog -e "use LWP::UserAgent" >/dev/null 2>&1
7512 then
7513 pmda_nginx=true
7516 PMDA_NGINX=$pmda_nginx
7518 if $pmda_nginx; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7519 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7520 $as_echo "no" >&6; }; fi
7522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the activemq PMDA should be included" >&5
7523 $as_echo_n "checking if the activemq PMDA should be included... " >&6; }
7524 pmda_activemq=false
7525 if test "$have_perl" = true
7526 then
7527 if $pcp_perl_prog -e "use LWP::UserAgent" >/dev/null 2>&1
7528 then
7529 pmda_activemq=true
7532 PMDA_ACTIVEMQ=$pmda_activemq
7534 if $pmda_activemq; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7535 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7536 $as_echo "no" >&6; }; fi
7538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the bind2 PMDA should be included" >&5
7539 $as_echo_n "checking if the bind2 PMDA should be included... " >&6; }
7540 pmda_bind2=false
7541 if test "$have_perl" = true
7542 then
7543 if $pcp_perl_prog -e "use LWP::UserAgent" >/dev/null 2>&1
7544 then
7545 if $pcp_perl_prog -e "use XML::LibXML" >/dev/null 2>&1
7546 then
7547 pmda_bind2=true
7551 PMDA_BIND2=$pmda_bind2
7553 if $pmda_bind2; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7554 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7555 $as_echo "no" >&6; }; fi
7557 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the nutcracker PMDA should be included" >&5
7558 $as_echo_n "checking if the nutcracker PMDA should be included... " >&6; }
7559 pmda_nutcracker=false
7560 if test "$have_perl" = true
7561 then
7562 if $pcp_perl_prog -e "use YAML::XS" >/dev/null 2>&1
7563 then
7564 if $pcp_perl_prog -e "use JSON" >/dev/null 2>&1
7565 then
7566 pmda_nutcracker=true
7570 PMDA_NUTCRACKER=$pmda_nutcracker
7572 if $pmda_nutcracker; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7573 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7574 $as_echo "no" >&6; }; fi
7576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the libvirt PMDA should be included" >&5
7577 $as_echo_n "checking if the libvirt PMDA should be included... " >&6; }
7578 pmda_libvirt=false
7579 if test "$have_python" = true
7580 then
7581 if $pcp_python_prog -c "import libvirt" >/dev/null 2>&1
7582 then
7583 if $pcp_python_prog -c "import lxml" >/dev/null 2>&1
7584 then
7585 pmda_libvirt=true
7589 PMDA_LIBVIRT=$pmda_libvirt
7591 if $pmda_libvirt; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7592 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7593 $as_echo "no" >&6; }; fi
7595 qmake=$QMAKE
7596 enable_qt=false
7597 qt_release=release
7598 if test "x$do_qt" != "xno"; then :
7600 enable_qt=true
7602 if test -z "$QMAKE"
7603 then
7604 for ac_prog in qmake-qt5 qmake-qt4 qmake
7606 # Extract the first word of "$ac_prog", so it can be a program name with args.
7607 set dummy $ac_prog; ac_word=$2
7608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7609 $as_echo_n "checking for $ac_word... " >&6; }
7610 if ${ac_cv_path_QMAKE+:} false; then :
7611 $as_echo_n "(cached) " >&6
7612 else
7613 case $QMAKE in
7614 [\\/]* | ?:[\\/]*)
7615 ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
7618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7619 as_dummy="$QTDIR/bin:/usr/bin:/usr/lib64/qt5/bin:/usr/lib/qt5/bin:/usr/lib64/qt4/bin:/usr/lib/qt4/bin:/usr/local/bin"
7620 for as_dir in $as_dummy
7622 IFS=$as_save_IFS
7623 test -z "$as_dir" && as_dir=.
7624 for ac_exec_ext in '' $ac_executable_extensions; do
7625 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7626 ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
7627 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7628 break 2
7630 done
7631 done
7632 IFS=$as_save_IFS
7635 esac
7637 QMAKE=$ac_cv_path_QMAKE
7638 if test -n "$QMAKE"; then
7639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
7640 $as_echo "$QMAKE" >&6; }
7641 else
7642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7643 $as_echo "no" >&6; }
7647 test -n "$QMAKE" && break
7648 done
7650 test "x$cc_is_gcc" = xyes -a $target_os = solaris && QMAKE="$QMAKE -spec solaris-g++"
7652 qmake=$QMAKE
7653 if test -z "$QMAKE"
7654 then
7655 enable_qt=false
7656 else
7657 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Qt version" >&5
7658 $as_echo_n "checking Qt version... " >&6; }
7659 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 }'`
7660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_MAJOR.$QT_MINOR.$QT_POINT" >&5
7661 $as_echo "$QT_MAJOR.$QT_MINOR.$QT_POINT" >&6; }
7662 if test "$QT_MAJOR" -lt 4; then
7663 echo WARNING: Qt version 4.4 or later does not seem to be installed.
7664 echo Cannot proceed with the Qt $QT_MAJOR installation found.
7665 enable_qt=false
7667 if test "$QT_MAJOR" -eq 4 -a "$QT_MINOR" -lt 4 ; then
7668 echo WARNING: Qt version 4.$QT_MINOR is too old.
7669 echo Qt version 4.4 or later is required for Qt builds.
7670 enable_qt=false
7674 if test "$do_qt" != "check" -a "$enable_qt" != "true"
7675 then
7676 as_fn_error $? "cannot enable Qt - no supported Qt installation found" "$LINENO" 5
7677 elif test "$enable_qt" = "true" -a "x$cxx" = "x"
7678 then
7679 enable_qt=false
7680 test "$do_qt" != "check" && \
7681 as_fn_error $? "C++ compiler unavailable, cannot build Qt components" "$LINENO" 5
7682 elif test "$do_qt" = "debug"
7683 then
7684 qt_release=debug
7685 enable_qt=true
7693 enable_qt3d=false
7694 if test "x$do_qt3d" != "xno"; then :
7696 if test -f /usr/include/Coin3/Inventor/Qt/SoQt.h
7697 then
7698 enable_qt3d=$enable_qt
7699 elif test -a "$do_qt3d" = "yes"
7700 then
7701 as_fn_error $? "cannot enable support for 3D scene graph API" "$LINENO" 5
7707 if test -z "$MAKE"
7708 then
7709 # Extract the first word of "gmake", so it can be a program name with args.
7710 set dummy gmake; ac_word=$2
7711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7712 $as_echo_n "checking for $ac_word... " >&6; }
7713 if ${ac_cv_path_MAKE+:} false; then :
7714 $as_echo_n "(cached) " >&6
7715 else
7716 case $MAKE in
7717 [\\/]* | ?:[\\/]*)
7718 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
7721 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7722 for as_dir in $PATH
7724 IFS=$as_save_IFS
7725 test -z "$as_dir" && as_dir=.
7726 for ac_exec_ext in '' $ac_executable_extensions; do
7727 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7728 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
7729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7730 break 2
7732 done
7733 done
7734 IFS=$as_save_IFS
7737 esac
7739 MAKE=$ac_cv_path_MAKE
7740 if test -n "$MAKE"; then
7741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
7742 $as_echo "$MAKE" >&6; }
7743 else
7744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7745 $as_echo "no" >&6; }
7749 if test -z "$MAKE"
7750 then
7751 # look elsewhere ...
7752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make elsewhere" >&5
7753 $as_echo_n "checking for GNU make elsewhere... " >&6; }
7754 for f in /usr/local/bin/gmake /usr/freeware/bin/gmake /usr/local/bin/make /opt/sfw/bin/gmake nowhere
7756 if test -x $f
7757 then
7758 MAKE=$f
7759 break
7761 done
7762 if test $f = nowhere
7763 then
7764 # Check if /usr/bin/make is any good
7765 mver=`/usr/bin/make --version 2>/dev/null | sed -n -e1p | cut -c1-8`
7766 if test "$mver" != "GNU Make"
7767 then
7768 echo
7769 echo "FATAL ERROR: could not find GNU make anywhere"
7770 echo "You need to set \$MAKE as the full path to GNU make "
7771 echo "in the environment."
7772 rm -rf conftest conftest.*
7773 exit 1
7774 else
7775 MAKE=/usr/bin/make
7778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
7779 $as_echo "$MAKE" >&6; }
7782 make=$MAKE
7785 if test -z "$CPP"; then
7786 ac_ext=c
7787 ac_cpp='$CPP $CPPFLAGS'
7788 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7789 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7790 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7791 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7792 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7793 # On Suns, sometimes $CPP names a directory.
7794 if test -n "$CPP" && test -d "$CPP"; then
7795 CPP=
7797 if test -z "$CPP"; then
7798 if ${ac_cv_prog_CPP+:} false; then :
7799 $as_echo_n "(cached) " >&6
7800 else
7801 # Double quotes because CPP needs to be expanded
7802 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7804 ac_preproc_ok=false
7805 for ac_c_preproc_warn_flag in '' yes
7807 # Use a header file that comes with gcc, so configuring glibc
7808 # with a fresh cross-compiler works.
7809 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7810 # <limits.h> exists even on freestanding compilers.
7811 # On the NeXT, cc -E runs the code through the compiler's parser,
7812 # not just through cpp. "Syntax error" is here to catch this case.
7813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7814 /* end confdefs.h. */
7815 #ifdef __STDC__
7816 # include <limits.h>
7817 #else
7818 # include <assert.h>
7819 #endif
7820 Syntax error
7821 _ACEOF
7822 if ac_fn_c_try_cpp "$LINENO"; then :
7824 else
7825 # Broken: fails on valid input.
7826 continue
7828 rm -f conftest.err conftest.i conftest.$ac_ext
7830 # OK, works on sane cases. Now check whether nonexistent headers
7831 # can be detected and how.
7832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7833 /* end confdefs.h. */
7834 #include <ac_nonexistent.h>
7835 _ACEOF
7836 if ac_fn_c_try_cpp "$LINENO"; then :
7837 # Broken: success on invalid input.
7838 continue
7839 else
7840 # Passes both tests.
7841 ac_preproc_ok=:
7842 break
7844 rm -f conftest.err conftest.i conftest.$ac_ext
7846 done
7847 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7848 rm -f conftest.i conftest.err conftest.$ac_ext
7849 if $ac_preproc_ok; then :
7850 break
7853 done
7854 ac_cv_prog_CPP=$CPP
7857 CPP=$ac_cv_prog_CPP
7858 else
7859 ac_cv_prog_CPP=$CPP
7861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7862 $as_echo "$CPP" >&6; }
7863 ac_preproc_ok=false
7864 for ac_c_preproc_warn_flag in '' yes
7866 # Use a header file that comes with gcc, so configuring glibc
7867 # with a fresh cross-compiler works.
7868 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7869 # <limits.h> exists even on freestanding compilers.
7870 # On the NeXT, cc -E runs the code through the compiler's parser,
7871 # not just through cpp. "Syntax error" is here to catch this case.
7872 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7873 /* end confdefs.h. */
7874 #ifdef __STDC__
7875 # include <limits.h>
7876 #else
7877 # include <assert.h>
7878 #endif
7879 Syntax error
7880 _ACEOF
7881 if ac_fn_c_try_cpp "$LINENO"; then :
7883 else
7884 # Broken: fails on valid input.
7885 continue
7887 rm -f conftest.err conftest.i conftest.$ac_ext
7889 # OK, works on sane cases. Now check whether nonexistent headers
7890 # can be detected and how.
7891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7892 /* end confdefs.h. */
7893 #include <ac_nonexistent.h>
7894 _ACEOF
7895 if ac_fn_c_try_cpp "$LINENO"; then :
7896 # Broken: success on invalid input.
7897 continue
7898 else
7899 # Passes both tests.
7900 ac_preproc_ok=:
7901 break
7903 rm -f conftest.err conftest.i conftest.$ac_ext
7905 done
7906 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7907 rm -f conftest.i conftest.err conftest.$ac_ext
7908 if $ac_preproc_ok; then :
7910 else
7911 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7912 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7913 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7914 See \`config.log' for more details" "$LINENO" 5; }
7917 ac_ext=c
7918 ac_cpp='$CPP $CPPFLAGS'
7919 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7920 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7921 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7924 cpp=$CPP
7927 if test -z "$LD"; then
7928 # Extract the first word of "ld", so it can be a program name with args.
7929 set dummy ld; ac_word=$2
7930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7931 $as_echo_n "checking for $ac_word... " >&6; }
7932 if ${ac_cv_path_LD+:} false; then :
7933 $as_echo_n "(cached) " >&6
7934 else
7935 case $LD in
7936 [\\/]* | ?:[\\/]*)
7937 ac_cv_path_LD="$LD" # Let the user override the test with a path.
7940 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7941 for as_dir in $PATH
7943 IFS=$as_save_IFS
7944 test -z "$as_dir" && as_dir=.
7945 for ac_exec_ext in '' $ac_executable_extensions; do
7946 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7947 ac_cv_path_LD="$as_dir/$ac_word$ac_exec_ext"
7948 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7949 break 2
7951 done
7952 done
7953 IFS=$as_save_IFS
7955 test -z "$ac_cv_path_LD" && ac_cv_path_LD="/usr/bin/ld"
7957 esac
7959 LD=$ac_cv_path_LD
7960 if test -n "$LD"; then
7961 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7962 $as_echo "$LD" >&6; }
7963 else
7964 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7965 $as_echo "no" >&6; }
7970 ld=$LD
7973 if test -z "$PCP_USER_INSTALL" ; then
7974 pcp_user_install=root
7975 else
7976 pcp_user_install="$PCP_USER_INSTALL"
7979 if test -z "$PCP_GROUP_INSTALL" ; then
7980 case "$target_os"
7982 darwin|freebsd|netbsd|openbsd)
7983 pcp_group_install=wheel
7986 pcp_group_install=root
7988 esac
7989 else
7990 pcp_group_install="$PCP_GROUP_INSTALL"
7994 if test -z "$TAR"; then
7995 for ac_prog in gtar tar
7997 # Extract the first word of "$ac_prog", so it can be a program name with args.
7998 set dummy $ac_prog; ac_word=$2
7999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8000 $as_echo_n "checking for $ac_word... " >&6; }
8001 if ${ac_cv_path_TAR+:} false; then :
8002 $as_echo_n "(cached) " >&6
8003 else
8004 case $TAR in
8005 [\\/]* | ?:[\\/]*)
8006 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
8009 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8010 for as_dir in $PATH
8012 IFS=$as_save_IFS
8013 test -z "$as_dir" && as_dir=.
8014 for ac_exec_ext in '' $ac_executable_extensions; do
8015 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8016 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
8017 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8018 break 2
8020 done
8021 done
8022 IFS=$as_save_IFS
8025 esac
8027 TAR=$ac_cv_path_TAR
8028 if test -n "$TAR"; then
8029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
8030 $as_echo "$TAR" >&6; }
8031 else
8032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8033 $as_echo "no" >&6; }
8037 test -n "$TAR" && break
8038 done
8039 test -n "$TAR" || TAR="tar"
8042 if test $target_os = darwin -a -x /usr/bin/gnutar
8043 then
8044 TAR=/usr/bin/gnutar
8046 tar=$TAR
8049 if test -z "$ZIP"; then
8050 # Extract the first word of "gzip", so it can be a program name with args.
8051 set dummy gzip; ac_word=$2
8052 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8053 $as_echo_n "checking for $ac_word... " >&6; }
8054 if ${ac_cv_path_ZIP+:} false; then :
8055 $as_echo_n "(cached) " >&6
8056 else
8057 case $ZIP in
8058 [\\/]* | ?:[\\/]*)
8059 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8062 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8063 for as_dir in $PATH
8065 IFS=$as_save_IFS
8066 test -z "$as_dir" && as_dir=.
8067 for ac_exec_ext in '' $ac_executable_extensions; do
8068 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8069 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8070 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8071 break 2
8073 done
8074 done
8075 IFS=$as_save_IFS
8077 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="/bin/gzip"
8079 esac
8081 ZIP=$ac_cv_path_ZIP
8082 if test -n "$ZIP"; then
8083 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
8084 $as_echo "$ZIP" >&6; }
8085 else
8086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8087 $as_echo "no" >&6; }
8092 test ! -x "$ZIP" && ZIP=/usr/local/bin/gzip
8093 test ! -x "$ZIP" && ZIP=/usr/freeware/bin/gzip
8094 test ! -x "$ZIP" && ZIP=/usr/bin/gzip
8095 gzip=$ZIP
8096 test -z "$gzip" && gzip=no-gzip
8099 if test -z "$BZIP2"; then
8100 # Extract the first word of "bzip2", so it can be a program name with args.
8101 set dummy bzip2; ac_word=$2
8102 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8103 $as_echo_n "checking for $ac_word... " >&6; }
8104 if ${ac_cv_path_BZIP2+:} false; then :
8105 $as_echo_n "(cached) " >&6
8106 else
8107 case $BZIP2 in
8108 [\\/]* | ?:[\\/]*)
8109 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
8112 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8113 for as_dir in $PATH
8115 IFS=$as_save_IFS
8116 test -z "$as_dir" && as_dir=.
8117 for ac_exec_ext in '' $ac_executable_extensions; do
8118 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8119 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
8120 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8121 break 2
8123 done
8124 done
8125 IFS=$as_save_IFS
8127 test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="/bin/bzip2"
8129 esac
8131 BZIP2=$ac_cv_path_BZIP2
8132 if test -n "$BZIP2"; then
8133 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIP2" >&5
8134 $as_echo "$BZIP2" >&6; }
8135 else
8136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8137 $as_echo "no" >&6; }
8142 test ! -x "$BZIP2" && BZIP2=/usr/bin/bzip2
8143 test ! -x "$BZIP2" && BZIP2=/usr/local/bin/bzip2
8144 test ! -x "$BZIP2" && BZIP2=/usr/freeware/bin/bzip2
8145 bzip2=$BZIP2
8146 test -z "$bzip2" && bzip2=no-bzip2
8149 if test -z "$LZMA"; then
8150 # Extract the first word of "lzma", so it can be a program name with args.
8151 set dummy lzma; ac_word=$2
8152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8153 $as_echo_n "checking for $ac_word... " >&6; }
8154 if ${ac_cv_path_LZMA+:} false; then :
8155 $as_echo_n "(cached) " >&6
8156 else
8157 case $LZMA in
8158 [\\/]* | ?:[\\/]*)
8159 ac_cv_path_LZMA="$LZMA" # Let the user override the test with a path.
8162 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8163 for as_dir in $PATH
8165 IFS=$as_save_IFS
8166 test -z "$as_dir" && as_dir=.
8167 for ac_exec_ext in '' $ac_executable_extensions; do
8168 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8169 ac_cv_path_LZMA="$as_dir/$ac_word$ac_exec_ext"
8170 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8171 break 2
8173 done
8174 done
8175 IFS=$as_save_IFS
8177 test -z "$ac_cv_path_LZMA" && ac_cv_path_LZMA="/bin/lzma"
8179 esac
8181 LZMA=$ac_cv_path_LZMA
8182 if test -n "$LZMA"; then
8183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZMA" >&5
8184 $as_echo "$LZMA" >&6; }
8185 else
8186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8187 $as_echo "no" >&6; }
8192 test ! -x "$LZMA" && LZMA=/usr/bin/lzma
8193 test ! -x "$LZMA" && LZMA=/usr/local/bin/lzma
8194 test ! -x "$LZMA" && LZMA=/usr/freeware/bin/lzma
8195 lzma=$LZMA
8196 test -z "$lzma" && lzma=no-lzma
8199 if test -z "$XZ"; then
8200 # Extract the first word of "xz", so it can be a program name with args.
8201 set dummy xz; ac_word=$2
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8203 $as_echo_n "checking for $ac_word... " >&6; }
8204 if ${ac_cv_path_XZ+:} false; then :
8205 $as_echo_n "(cached) " >&6
8206 else
8207 case $XZ in
8208 [\\/]* | ?:[\\/]*)
8209 ac_cv_path_XZ="$XZ" # Let the user override the test with a path.
8212 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8213 for as_dir in $PATH
8215 IFS=$as_save_IFS
8216 test -z "$as_dir" && as_dir=.
8217 for ac_exec_ext in '' $ac_executable_extensions; do
8218 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8219 ac_cv_path_XZ="$as_dir/$ac_word$ac_exec_ext"
8220 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8221 break 2
8223 done
8224 done
8225 IFS=$as_save_IFS
8227 test -z "$ac_cv_path_XZ" && ac_cv_path_XZ="/bin/xz"
8229 esac
8231 XZ=$ac_cv_path_XZ
8232 if test -n "$XZ"; then
8233 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XZ" >&5
8234 $as_echo "$XZ" >&6; }
8235 else
8236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8237 $as_echo "no" >&6; }
8242 test ! -x "$XZ" && XZ=/usr/bin/xz
8243 test ! -x "$XZ" && XZ=/usr/local/bin/xz
8244 test ! -x "$XZ" && XZ=/usr/freeware/bin/xz
8245 xz=$XZ
8246 test -z "$xz" && xz=no-xz
8249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PackageMaker" >&5
8250 $as_echo_n "checking for PackageMaker... " >&6; }
8251 if test -z "$PACKAGE_MAKER"
8252 then
8253 if test $target_os = darwin
8254 then
8255 if test -x /Applications/PackageMaker.app/Contents/MacOS/PackageMaker
8256 then # local XCode extras install
8257 package_maker=/Applications/PackageMaker.app/Contents/MacOS/PackageMaker
8258 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (local install)" >&5
8259 $as_echo " yes (local install)" >&6; }
8260 elif test -x /Developer/Applications/PackageMaker.app/Contents/MacOS/PackageMaker
8261 then # Darwin 6.x
8262 package_maker=/Developer/Applications/PackageMaker.app/Contents/MacOS/PackageMaker
8263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (darwin 6.x)" >&5
8264 $as_echo " yes (darwin 6.x)" >&6; }
8265 elif test -x /Developer/Applications/Utilities/PackageMaker.app/Contents/MacOS/PackageMaker
8266 then # Darwin 7.x
8267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (darwin 7.x)" >&5
8268 $as_echo " yes (darwin 7.x)" >&6; }
8269 package_maker=/Developer/Applications/Utilities/PackageMaker.app/Contents/MacOS/PackageMaker
8270 else
8271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
8272 $as_echo " not found!" >&6; }
8273 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PackageMaker not found, mac packages will not be made" >&5
8274 $as_echo "$as_me: WARNING: PackageMaker not found, mac packages will not be made" >&2;}
8276 else
8277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8278 $as_echo " no" >&6; }
8280 else
8281 package_maker="$PACKAGE_MAKER"
8285 if test -z "$HDIUTIL"; then
8286 # Extract the first word of "hdiutil", so it can be a program name with args.
8287 set dummy hdiutil; ac_word=$2
8288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8289 $as_echo_n "checking for $ac_word... " >&6; }
8290 if ${ac_cv_path_HDIUTIL+:} false; then :
8291 $as_echo_n "(cached) " >&6
8292 else
8293 case $HDIUTIL in
8294 [\\/]* | ?:[\\/]*)
8295 ac_cv_path_HDIUTIL="$HDIUTIL" # Let the user override the test with a path.
8298 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8299 for as_dir in $PATH
8301 IFS=$as_save_IFS
8302 test -z "$as_dir" && as_dir=.
8303 for ac_exec_ext in '' $ac_executable_extensions; do
8304 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8305 ac_cv_path_HDIUTIL="$as_dir/$ac_word$ac_exec_ext"
8306 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8307 break 2
8309 done
8310 done
8311 IFS=$as_save_IFS
8314 esac
8316 HDIUTIL=$ac_cv_path_HDIUTIL
8317 if test -n "$HDIUTIL"; then
8318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HDIUTIL" >&5
8319 $as_echo "$HDIUTIL" >&6; }
8320 else
8321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8322 $as_echo "no" >&6; }
8327 hdiutil=$HDIUTIL
8330 if test -z "$MKINSTALLP"; then
8331 # Extract the first word of "mkinstallp", so it can be a program name with args.
8332 set dummy mkinstallp; ac_word=$2
8333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8334 $as_echo_n "checking for $ac_word... " >&6; }
8335 if ${ac_cv_path_MKINSTALLP+:} false; then :
8336 $as_echo_n "(cached) " >&6
8337 else
8338 case $MKINSTALLP in
8339 [\\/]* | ?:[\\/]*)
8340 ac_cv_path_MKINSTALLP="$MKINSTALLP" # Let the user override the test with a path.
8343 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8344 for as_dir in $PATH
8346 IFS=$as_save_IFS
8347 test -z "$as_dir" && as_dir=.
8348 for ac_exec_ext in '' $ac_executable_extensions; do
8349 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8350 ac_cv_path_MKINSTALLP="$as_dir/$ac_word$ac_exec_ext"
8351 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8352 break 2
8354 done
8355 done
8356 IFS=$as_save_IFS
8359 esac
8361 MKINSTALLP=$ac_cv_path_MKINSTALLP
8362 if test -n "$MKINSTALLP"; then
8363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKINSTALLP" >&5
8364 $as_echo "$MKINSTALLP" >&6; }
8365 else
8366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8367 $as_echo "no" >&6; }
8372 mkinstallp=$MKINSTALLP
8375 if test -z "$PKGMK"; then
8376 # Extract the first word of "pkgmk", so it can be a program name with args.
8377 set dummy pkgmk; ac_word=$2
8378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8379 $as_echo_n "checking for $ac_word... " >&6; }
8380 if ${ac_cv_path_PKGMK+:} false; then :
8381 $as_echo_n "(cached) " >&6
8382 else
8383 case $PKGMK in
8384 [\\/]* | ?:[\\/]*)
8385 ac_cv_path_PKGMK="$PKGMK" # Let the user override the test with a path.
8388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8389 for as_dir in $PATH
8391 IFS=$as_save_IFS
8392 test -z "$as_dir" && as_dir=.
8393 for ac_exec_ext in '' $ac_executable_extensions; do
8394 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8395 ac_cv_path_PKGMK="$as_dir/$ac_word$ac_exec_ext"
8396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8397 break 2
8399 done
8400 done
8401 IFS=$as_save_IFS
8404 esac
8406 PKGMK=$ac_cv_path_PKGMK
8407 if test -n "$PKGMK"; then
8408 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGMK" >&5
8409 $as_echo "$PKGMK" >&6; }
8410 else
8411 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8412 $as_echo "no" >&6; }
8417 pkgmk=$PKGMK
8420 if test -z "$DLLTOOL"; then
8421 # Extract the first word of "dlltool", so it can be a program name with args.
8422 set dummy dlltool; ac_word=$2
8423 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8424 $as_echo_n "checking for $ac_word... " >&6; }
8425 if ${ac_cv_path_DLLTOOL+:} false; then :
8426 $as_echo_n "(cached) " >&6
8427 else
8428 case $DLLTOOL in
8429 [\\/]* | ?:[\\/]*)
8430 ac_cv_path_DLLTOOL="$DLLTOOL" # Let the user override the test with a path.
8433 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8434 for as_dir in $PATH
8436 IFS=$as_save_IFS
8437 test -z "$as_dir" && as_dir=.
8438 for ac_exec_ext in '' $ac_executable_extensions; do
8439 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8440 ac_cv_path_DLLTOOL="$as_dir/$ac_word$ac_exec_ext"
8441 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8442 break 2
8444 done
8445 done
8446 IFS=$as_save_IFS
8449 esac
8451 DLLTOOL=$ac_cv_path_DLLTOOL
8452 if test -n "$DLLTOOL"; then
8453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8454 $as_echo "$DLLTOOL" >&6; }
8455 else
8456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8457 $as_echo "no" >&6; }
8462 dlltool=$DLLTOOL
8465 if test -z "$RPMBUILD"; then
8466 # Extract the first word of "rpmbuild", so it can be a program name with args.
8467 set dummy rpmbuild; ac_word=$2
8468 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8469 $as_echo_n "checking for $ac_word... " >&6; }
8470 if ${ac_cv_path_RPMBUILD+:} false; then :
8471 $as_echo_n "(cached) " >&6
8472 else
8473 case $RPMBUILD in
8474 [\\/]* | ?:[\\/]*)
8475 ac_cv_path_RPMBUILD="$RPMBUILD" # Let the user override the test with a path.
8478 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8479 for as_dir in $PATH
8481 IFS=$as_save_IFS
8482 test -z "$as_dir" && as_dir=.
8483 for ac_exec_ext in '' $ac_executable_extensions; do
8484 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8485 ac_cv_path_RPMBUILD="$as_dir/$ac_word$ac_exec_ext"
8486 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8487 break 2
8489 done
8490 done
8491 IFS=$as_save_IFS
8494 esac
8496 RPMBUILD=$ac_cv_path_RPMBUILD
8497 if test -n "$RPMBUILD"; then
8498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPMBUILD" >&5
8499 $as_echo "$RPMBUILD" >&6; }
8500 else
8501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8502 $as_echo "no" >&6; }
8507 test $target_distro = slackware && RPMBUILD=''
8508 rpmbuild=$RPMBUILD
8511 if test -z "$RPM"; then
8512 # Extract the first word of "rpm", so it can be a program name with args.
8513 set dummy rpm; ac_word=$2
8514 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8515 $as_echo_n "checking for $ac_word... " >&6; }
8516 if ${ac_cv_path_RPM+:} false; then :
8517 $as_echo_n "(cached) " >&6
8518 else
8519 case $RPM in
8520 [\\/]* | ?:[\\/]*)
8521 ac_cv_path_RPM="$RPM" # Let the user override the test with a path.
8524 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8525 for as_dir in $PATH
8527 IFS=$as_save_IFS
8528 test -z "$as_dir" && as_dir=.
8529 for ac_exec_ext in '' $ac_executable_extensions; do
8530 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8531 ac_cv_path_RPM="$as_dir/$ac_word$ac_exec_ext"
8532 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8533 break 2
8535 done
8536 done
8537 IFS=$as_save_IFS
8540 esac
8542 RPM=$ac_cv_path_RPM
8543 if test -n "$RPM"; then
8544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
8545 $as_echo "$RPM" >&6; }
8546 else
8547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8548 $as_echo "no" >&6; }
8553 test $target_distro = slackware && RPM=''
8554 rpm=$RPM
8557 if test -n "$RPMBUILD" -a -x "$RPMBUILD"
8558 then
8559 rpmprog=$RPMBUILD
8560 else
8561 rpmprog=$RPM
8565 if test -z "$POD2MAN"; then
8566 # Extract the first word of "pod2man", so it can be a program name with args.
8567 set dummy pod2man; ac_word=$2
8568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8569 $as_echo_n "checking for $ac_word... " >&6; }
8570 if ${ac_cv_path_POD2MAN+:} false; then :
8571 $as_echo_n "(cached) " >&6
8572 else
8573 case $POD2MAN in
8574 [\\/]* | ?:[\\/]*)
8575 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8578 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8579 for as_dir in $PATH
8581 IFS=$as_save_IFS
8582 test -z "$as_dir" && as_dir=.
8583 for ac_exec_ext in '' $ac_executable_extensions; do
8584 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8585 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
8586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8587 break 2
8589 done
8590 done
8591 IFS=$as_save_IFS
8594 esac
8596 POD2MAN=$ac_cv_path_POD2MAN
8597 if test -n "$POD2MAN"; then
8598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POD2MAN" >&5
8599 $as_echo "$POD2MAN" >&6; }
8600 else
8601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8602 $as_echo "no" >&6; }
8607 pod2man=$POD2MAN
8610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ExtUtils::MakeMaker is installed" >&5
8611 $as_echo_n "checking if ExtUtils::MakeMaker is installed... " >&6; }
8612 perl -e "use ExtUtils::MakeMaker" 2>/dev/null
8613 if test $? -eq 0
8614 then
8615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8616 $as_echo " yes" >&6; }
8617 else
8618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8619 $as_echo " no" >&6; }
8620 echo
8621 echo "FATAL ERROR: Perl ExtUtils::MakeMaker module missing."
8622 echo "You can either install this from your distribution, or"
8623 echo "download from CPAN (Comprehensive Perl Archive Network)."
8624 rm -rf conftest conftest.*
8625 exit 1
8628 # Extract the first word of "true", so it can be a program name with args.
8629 set dummy true; ac_word=$2
8630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8631 $as_echo_n "checking for $ac_word... " >&6; }
8632 if ${ac_cv_path_TRUEPROG+:} false; then :
8633 $as_echo_n "(cached) " >&6
8634 else
8635 case $TRUEPROG in
8636 [\\/]* | ?:[\\/]*)
8637 ac_cv_path_TRUEPROG="$TRUEPROG" # Let the user override the test with a path.
8640 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8641 for as_dir in $PATH
8643 IFS=$as_save_IFS
8644 test -z "$as_dir" && as_dir=.
8645 for ac_exec_ext in '' $ac_executable_extensions; do
8646 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8647 ac_cv_path_TRUEPROG="$as_dir/$ac_word$ac_exec_ext"
8648 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8649 break 2
8651 done
8652 done
8653 IFS=$as_save_IFS
8656 esac
8658 TRUEPROG=$ac_cv_path_TRUEPROG
8659 if test -n "$TRUEPROG"; then
8660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUEPROG" >&5
8661 $as_echo "$TRUEPROG" >&6; }
8662 else
8663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8664 $as_echo "no" >&6; }
8669 if test -z "$MAKEDEPEND"; then
8670 # Extract the first word of "makedepend", so it can be a program name with args.
8671 set dummy makedepend; ac_word=$2
8672 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8673 $as_echo_n "checking for $ac_word... " >&6; }
8674 if ${ac_cv_path_MAKEDEPEND+:} false; then :
8675 $as_echo_n "(cached) " >&6
8676 else
8677 case $MAKEDEPEND in
8678 [\\/]* | ?:[\\/]*)
8679 ac_cv_path_MAKEDEPEND="$MAKEDEPEND" # Let the user override the test with a path.
8682 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8683 for as_dir in $PATH
8685 IFS=$as_save_IFS
8686 test -z "$as_dir" && as_dir=.
8687 for ac_exec_ext in '' $ac_executable_extensions; do
8688 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8689 ac_cv_path_MAKEDEPEND="$as_dir/$ac_word$ac_exec_ext"
8690 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8691 break 2
8693 done
8694 done
8695 IFS=$as_save_IFS
8697 test -z "$ac_cv_path_MAKEDEPEND" && ac_cv_path_MAKEDEPEND="$TRUEPROG"
8699 esac
8701 MAKEDEPEND=$ac_cv_path_MAKEDEPEND
8702 if test -n "$MAKEDEPEND"; then
8703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEDEPEND" >&5
8704 $as_echo "$MAKEDEPEND" >&6; }
8705 else
8706 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8707 $as_echo "no" >&6; }
8712 makedepend=$MAKEDEPEND
8715 if test -z "$MD5SUM"; then
8716 # Extract the first word of "md5sum", so it can be a program name with args.
8717 set dummy md5sum; ac_word=$2
8718 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8719 $as_echo_n "checking for $ac_word... " >&6; }
8720 if ${ac_cv_path_MD5SUM+:} false; then :
8721 $as_echo_n "(cached) " >&6
8722 else
8723 case $MD5SUM in
8724 [\\/]* | ?:[\\/]*)
8725 ac_cv_path_MD5SUM="$MD5SUM" # Let the user override the test with a path.
8728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8729 for as_dir in $PATH
8731 IFS=$as_save_IFS
8732 test -z "$as_dir" && as_dir=.
8733 for ac_exec_ext in '' $ac_executable_extensions; do
8734 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8735 ac_cv_path_MD5SUM="$as_dir/$ac_word$ac_exec_ext"
8736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8737 break 2
8739 done
8740 done
8741 IFS=$as_save_IFS
8743 test -z "$ac_cv_path_MD5SUM" && ac_cv_path_MD5SUM="$TRUEPROG"
8745 esac
8747 MD5SUM=$ac_cv_path_MD5SUM
8748 if test -n "$MD5SUM"; then
8749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MD5SUM" >&5
8750 $as_echo "$MD5SUM" >&6; }
8751 else
8752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8753 $as_echo "no" >&6; }
8758 md5sum=$MD5SUM
8761 if test -z "$DPKG"; then
8762 # Extract the first word of "dpkg", so it can be a program name with args.
8763 set dummy dpkg; ac_word=$2
8764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8765 $as_echo_n "checking for $ac_word... " >&6; }
8766 if ${ac_cv_path_DPKG+:} false; then :
8767 $as_echo_n "(cached) " >&6
8768 else
8769 case $DPKG in
8770 [\\/]* | ?:[\\/]*)
8771 ac_cv_path_DPKG="$DPKG" # Let the user override the test with a path.
8774 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8775 for as_dir in $PATH
8777 IFS=$as_save_IFS
8778 test -z "$as_dir" && as_dir=.
8779 for ac_exec_ext in '' $ac_executable_extensions; do
8780 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8781 ac_cv_path_DPKG="$as_dir/$ac_word$ac_exec_ext"
8782 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8783 break 2
8785 done
8786 done
8787 IFS=$as_save_IFS
8790 esac
8792 DPKG=$ac_cv_path_DPKG
8793 if test -n "$DPKG"; then
8794 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DPKG" >&5
8795 $as_echo "$DPKG" >&6; }
8796 else
8797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8798 $as_echo "no" >&6; }
8803 dpkg=$DKPG
8806 if test -z "$MAKEPKG"; then
8807 # Extract the first word of "makepkg", so it can be a program name with args.
8808 set dummy makepkg; ac_word=$2
8809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8810 $as_echo_n "checking for $ac_word... " >&6; }
8811 if ${ac_cv_path_MAKEPKG+:} false; then :
8812 $as_echo_n "(cached) " >&6
8813 else
8814 case $MAKEPKG in
8815 [\\/]* | ?:[\\/]*)
8816 ac_cv_path_MAKEPKG="$MAKEPKG" # Let the user override the test with a path.
8819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8820 for as_dir in $PATH
8822 IFS=$as_save_IFS
8823 test -z "$as_dir" && as_dir=.
8824 for ac_exec_ext in '' $ac_executable_extensions; do
8825 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8826 ac_cv_path_MAKEPKG="$as_dir/$ac_word$ac_exec_ext"
8827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8828 break 2
8830 done
8831 done
8832 IFS=$as_save_IFS
8835 esac
8837 MAKEPKG=$ac_cv_path_MAKEPKG
8838 if test -n "$MAKEPKG"; then
8839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEPKG" >&5
8840 $as_echo "$MAKEPKG" >&6; }
8841 else
8842 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8843 $as_echo "no" >&6; }
8848 makepkg=$MAKEPKG
8851 test -z "$PUBLICAN" && # Extract the first word of "publican", so it can be a program name with args.
8852 set dummy publican; ac_word=$2
8853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8854 $as_echo_n "checking for $ac_word... " >&6; }
8855 if ${ac_cv_path_PUBLICAN+:} false; then :
8856 $as_echo_n "(cached) " >&6
8857 else
8858 case $PUBLICAN in
8859 [\\/]* | ?:[\\/]*)
8860 ac_cv_path_PUBLICAN="$PUBLICAN" # Let the user override the test with a path.
8863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8864 for as_dir in $PATH
8866 IFS=$as_save_IFS
8867 test -z "$as_dir" && as_dir=.
8868 for ac_exec_ext in '' $ac_executable_extensions; do
8869 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8870 ac_cv_path_PUBLICAN="$as_dir/$ac_word$ac_exec_ext"
8871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8872 break 2
8874 done
8875 done
8876 IFS=$as_save_IFS
8879 esac
8881 PUBLICAN=$ac_cv_path_PUBLICAN
8882 if test -n "$PUBLICAN"; then
8883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PUBLICAN" >&5
8884 $as_echo "$PUBLICAN" >&6; }
8885 else
8886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8887 $as_echo "no" >&6; }
8891 publican=$PUBLICAN
8893 test -z "$DBLATEX" && # Extract the first word of "dblatex", so it can be a program name with args.
8894 set dummy dblatex; ac_word=$2
8895 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8896 $as_echo_n "checking for $ac_word... " >&6; }
8897 if ${ac_cv_path_DBLATEX+:} false; then :
8898 $as_echo_n "(cached) " >&6
8899 else
8900 case $DBLATEX in
8901 [\\/]* | ?:[\\/]*)
8902 ac_cv_path_DBLATEX="$DBLATEX" # Let the user override the test with a path.
8905 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8906 for as_dir in $PATH
8908 IFS=$as_save_IFS
8909 test -z "$as_dir" && as_dir=.
8910 for ac_exec_ext in '' $ac_executable_extensions; do
8911 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8912 ac_cv_path_DBLATEX="$as_dir/$ac_word$ac_exec_ext"
8913 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8914 break 2
8916 done
8917 done
8918 IFS=$as_save_IFS
8921 esac
8923 DBLATEX=$ac_cv_path_DBLATEX
8924 if test -n "$DBLATEX"; then
8925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBLATEX" >&5
8926 $as_echo "$DBLATEX" >&6; }
8927 else
8928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8929 $as_echo "no" >&6; }
8933 dblatex=$DBLATEX
8935 test -z "$XMLTO" && # Extract the first word of "xmlto", so it can be a program name with args.
8936 set dummy xmlto; ac_word=$2
8937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8938 $as_echo_n "checking for $ac_word... " >&6; }
8939 if ${ac_cv_path_XMLTO+:} false; then :
8940 $as_echo_n "(cached) " >&6
8941 else
8942 case $XMLTO in
8943 [\\/]* | ?:[\\/]*)
8944 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
8947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8948 for as_dir in $PATH
8950 IFS=$as_save_IFS
8951 test -z "$as_dir" && as_dir=.
8952 for ac_exec_ext in '' $ac_executable_extensions; do
8953 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8954 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
8955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8956 break 2
8958 done
8959 done
8960 IFS=$as_save_IFS
8963 esac
8965 XMLTO=$ac_cv_path_XMLTO
8966 if test -n "$XMLTO"; then
8967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
8968 $as_echo "$XMLTO" >&6; }
8969 else
8970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8971 $as_echo "no" >&6; }
8975 xmlto=$XMLTO
8978 book_toolchain=""
8979 if test "$do_books" = "check" -o "$do_books" = "yes"
8980 then
8981 if test "$BOOK_TOOLCHAIN" != ""
8982 then
8983 book_toolchain=$BOOK_TOOLCHAIN
8984 elif test "$DBLATEX" != ""
8985 then
8986 book_toolchain=dblatex
8987 elif test "$PUBLICAN" != ""
8988 then
8989 book_toolchain=publican
8990 elif test "$XMLTO" != ""
8991 then
8992 book_toolchain=xmlto
8993 elif test "$do_books" = "yes"
8994 then
8995 as_fn_error $? "cannot enable books build - no toolchain found" "$LINENO" 5
9000 book_brand="common"
9001 if test "$do_books_brand" != ""
9002 then
9003 book_brand=$do_books_brand
9007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
9008 $as_echo_n "checking whether ln -s works... " >&6; }
9009 LN_S=$as_ln_s
9010 if test "$LN_S" = "ln -s"; then
9011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9012 $as_echo "yes" >&6; }
9013 else
9014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
9015 $as_echo "no, using $LN_S" >&6; }
9018 if test $target_os = mingw; then
9019 as_ln_s=/bin/true
9022 if test -d /proc
9023 then
9024 test -f /proc/stat || mount /proc >/dev/null 2>&1
9027 if test -n "$PROCPS"
9028 then
9029 pcp_ps_prog="$PROCPS"
9030 else
9031 pcp_ps_prog=ps
9035 if test $target_os = mingw
9036 then
9037 pcp_syslog_prog=pcp-eventlog
9038 else
9039 pcp_syslog_prog=logger
9043 grep=grep
9044 if test $target_os = solaris
9045 then
9046 test -f /usr/xpg4/bin/grep && grep=/usr/xpg4/bin/grep
9050 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc " >&5
9051 $as_echo_n "checking for /proc ... " >&6; }
9052 if test "$cross_compiling" = "yes"; then
9053 ans=$have_procfs
9054 echo "cross-compile -> \"$ans\"" >&5
9055 elif test -d /proc
9056 then
9057 have_procfs=true
9058 else
9059 have_procfs=false
9061 if $have_procfs
9062 then
9063 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9064 $as_echo "yes" >&6; }
9066 $as_echo "#define HAVE_PROCFS 1" >>confdefs.h
9068 else
9069 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9070 $as_echo "no" >&6; }
9073 ac_header_dirent=no
9074 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9075 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9076 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
9077 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
9078 if eval \${$as_ac_Header+:} false; then :
9079 $as_echo_n "(cached) " >&6
9080 else
9081 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9082 /* end confdefs.h. */
9083 #include <sys/types.h>
9084 #include <$ac_hdr>
9087 main ()
9089 if ((DIR *) 0)
9090 return 0;
9092 return 0;
9094 _ACEOF
9095 if ac_fn_c_try_compile "$LINENO"; then :
9096 eval "$as_ac_Header=yes"
9097 else
9098 eval "$as_ac_Header=no"
9100 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9102 eval ac_res=\$$as_ac_Header
9103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9104 $as_echo "$ac_res" >&6; }
9105 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9106 cat >>confdefs.h <<_ACEOF
9107 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9108 _ACEOF
9110 ac_header_dirent=$ac_hdr; break
9113 done
9114 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9115 if test $ac_header_dirent = dirent.h; then
9116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
9117 $as_echo_n "checking for library containing opendir... " >&6; }
9118 if ${ac_cv_search_opendir+:} false; then :
9119 $as_echo_n "(cached) " >&6
9120 else
9121 ac_func_search_save_LIBS=$LIBS
9122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9123 /* end confdefs.h. */
9125 /* Override any GCC internal prototype to avoid an error.
9126 Use char because int might match the return type of a GCC
9127 builtin and then its argument prototype would still apply. */
9128 #ifdef __cplusplus
9129 extern "C"
9130 #endif
9131 char opendir ();
9133 main ()
9135 return opendir ();
9137 return 0;
9139 _ACEOF
9140 for ac_lib in '' dir; do
9141 if test -z "$ac_lib"; then
9142 ac_res="none required"
9143 else
9144 ac_res=-l$ac_lib
9145 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9147 if ac_fn_c_try_link "$LINENO"; then :
9148 ac_cv_search_opendir=$ac_res
9150 rm -f core conftest.err conftest.$ac_objext \
9151 conftest$ac_exeext
9152 if ${ac_cv_search_opendir+:} false; then :
9153 break
9155 done
9156 if ${ac_cv_search_opendir+:} false; then :
9158 else
9159 ac_cv_search_opendir=no
9161 rm conftest.$ac_ext
9162 LIBS=$ac_func_search_save_LIBS
9164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
9165 $as_echo "$ac_cv_search_opendir" >&6; }
9166 ac_res=$ac_cv_search_opendir
9167 if test "$ac_res" != no; then :
9168 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9172 else
9173 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
9174 $as_echo_n "checking for library containing opendir... " >&6; }
9175 if ${ac_cv_search_opendir+:} false; then :
9176 $as_echo_n "(cached) " >&6
9177 else
9178 ac_func_search_save_LIBS=$LIBS
9179 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9180 /* end confdefs.h. */
9182 /* Override any GCC internal prototype to avoid an error.
9183 Use char because int might match the return type of a GCC
9184 builtin and then its argument prototype would still apply. */
9185 #ifdef __cplusplus
9186 extern "C"
9187 #endif
9188 char opendir ();
9190 main ()
9192 return opendir ();
9194 return 0;
9196 _ACEOF
9197 for ac_lib in '' x; do
9198 if test -z "$ac_lib"; then
9199 ac_res="none required"
9200 else
9201 ac_res=-l$ac_lib
9202 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9204 if ac_fn_c_try_link "$LINENO"; then :
9205 ac_cv_search_opendir=$ac_res
9207 rm -f core conftest.err conftest.$ac_objext \
9208 conftest$ac_exeext
9209 if ${ac_cv_search_opendir+:} false; then :
9210 break
9212 done
9213 if ${ac_cv_search_opendir+:} false; then :
9215 else
9216 ac_cv_search_opendir=no
9218 rm conftest.$ac_ext
9219 LIBS=$ac_func_search_save_LIBS
9221 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
9222 $as_echo "$ac_cv_search_opendir" >&6; }
9223 ac_res=$ac_cv_search_opendir
9224 if test "$ac_res" != no; then :
9225 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9231 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9232 $as_echo_n "checking for ANSI C header files... " >&6; }
9233 if ${ac_cv_header_stdc+:} false; then :
9234 $as_echo_n "(cached) " >&6
9235 else
9236 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9237 /* end confdefs.h. */
9238 #include <stdlib.h>
9239 #include <stdarg.h>
9240 #include <string.h>
9241 #include <float.h>
9244 main ()
9248 return 0;
9250 _ACEOF
9251 if ac_fn_c_try_compile "$LINENO"; then :
9252 ac_cv_header_stdc=yes
9253 else
9254 ac_cv_header_stdc=no
9256 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9258 if test $ac_cv_header_stdc = yes; then
9259 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9260 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9261 /* end confdefs.h. */
9262 #include <string.h>
9264 _ACEOF
9265 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9266 $EGREP "memchr" >/dev/null 2>&1; then :
9268 else
9269 ac_cv_header_stdc=no
9271 rm -f conftest*
9275 if test $ac_cv_header_stdc = yes; then
9276 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9278 /* end confdefs.h. */
9279 #include <stdlib.h>
9281 _ACEOF
9282 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9283 $EGREP "free" >/dev/null 2>&1; then :
9285 else
9286 ac_cv_header_stdc=no
9288 rm -f conftest*
9292 if test $ac_cv_header_stdc = yes; then
9293 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9294 if test "$cross_compiling" = yes; then :
9296 else
9297 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9298 /* end confdefs.h. */
9299 #include <ctype.h>
9300 #include <stdlib.h>
9301 #if ((' ' & 0x0FF) == 0x020)
9302 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9303 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9304 #else
9305 # define ISLOWER(c) \
9306 (('a' <= (c) && (c) <= 'i') \
9307 || ('j' <= (c) && (c) <= 'r') \
9308 || ('s' <= (c) && (c) <= 'z'))
9309 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9310 #endif
9312 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9314 main ()
9316 int i;
9317 for (i = 0; i < 256; i++)
9318 if (XOR (islower (i), ISLOWER (i))
9319 || toupper (i) != TOUPPER (i))
9320 return 2;
9321 return 0;
9323 _ACEOF
9324 if ac_fn_c_try_run "$LINENO"; then :
9326 else
9327 ac_cv_header_stdc=no
9329 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9330 conftest.$ac_objext conftest.beam conftest.$ac_ext
9335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9336 $as_echo "$ac_cv_header_stdc" >&6; }
9337 if test $ac_cv_header_stdc = yes; then
9339 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9343 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
9344 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
9345 if ${ac_cv_header_sys_wait_h+:} false; then :
9346 $as_echo_n "(cached) " >&6
9347 else
9348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9349 /* end confdefs.h. */
9350 #include <sys/types.h>
9351 #include <sys/wait.h>
9352 #ifndef WEXITSTATUS
9353 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
9354 #endif
9355 #ifndef WIFEXITED
9356 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9357 #endif
9360 main ()
9362 int s;
9363 wait (&s);
9364 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9366 return 0;
9368 _ACEOF
9369 if ac_fn_c_try_compile "$LINENO"; then :
9370 ac_cv_header_sys_wait_h=yes
9371 else
9372 ac_cv_header_sys_wait_h=no
9374 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
9377 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
9378 if test $ac_cv_header_sys_wait_h = yes; then
9380 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
9384 for ac_header in fcntl.h limits.h malloc.h strings.h syslog.h
9385 do :
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
9391 _ACEOF
9395 done
9397 for ac_header in stddef.h sched.h dlfcn.h dl.h
9398 do :
9399 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9400 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9401 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9402 cat >>confdefs.h <<_ACEOF
9403 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9404 _ACEOF
9408 done
9410 for ac_header in sys/times.h sys/resource.h sys/prctl.h
9411 do :
9412 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9413 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9414 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9415 cat >>confdefs.h <<_ACEOF
9416 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9417 _ACEOF
9421 done
9423 for ac_header in sys/sysinfo.h sys/systeminfo.h
9424 do :
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
9430 _ACEOF
9434 done
9436 for ac_header in endian.h standards.h sys/byteorder.h
9437 do :
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
9443 _ACEOF
9447 done
9449 for ac_header in libgen.h sys/mman.h sys/un.h
9450 do :
9451 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9452 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9453 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9454 cat >>confdefs.h <<_ACEOF
9455 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9456 _ACEOF
9460 done
9462 for ac_header in values.h stdint.h ieeefp.h math.h
9463 do :
9464 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9465 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9466 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9467 cat >>confdefs.h <<_ACEOF
9468 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9469 _ACEOF
9473 done
9475 for ac_header in pwd.h grp.h regex.h sys/wait.h
9476 do :
9477 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9478 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9479 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9480 cat >>confdefs.h <<_ACEOF
9481 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9482 _ACEOF
9486 done
9488 for ac_header in termio.h termios.h sys/termios.h
9489 do :
9490 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9491 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9492 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9493 cat >>confdefs.h <<_ACEOF
9494 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9495 _ACEOF
9499 done
9501 for ac_header in sys/ioctl.h sys/select.h sys/socket.h
9502 do :
9503 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9504 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9505 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9506 cat >>confdefs.h <<_ACEOF
9507 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9508 _ACEOF
9512 done
9514 for ac_header in netdb.h
9515 do :
9516 ac_fn_c_check_header_mongrel "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default"
9517 if test "x$ac_cv_header_netdb_h" = xyes; then :
9518 cat >>confdefs.h <<_ACEOF
9519 #define HAVE_NETDB_H 1
9520 _ACEOF
9524 done
9526 if test $target_os = darwin -o $target_os = openbsd
9527 then
9528 for ac_header in net/if.h
9529 do :
9530 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "#include <sys/types.h>
9531 #include <sys/socket.h>
9533 if test "x$ac_cv_header_net_if_h" = xyes; then :
9534 cat >>confdefs.h <<_ACEOF
9535 #define HAVE_NET_IF_H 1
9536 _ACEOF
9540 done
9542 else
9543 for ac_header in net/if.h
9544 do :
9545 ac_fn_c_check_header_mongrel "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default"
9546 if test "x$ac_cv_header_net_if_h" = xyes; then :
9547 cat >>confdefs.h <<_ACEOF
9548 #define HAVE_NET_IF_H 1
9549 _ACEOF
9553 done
9556 for ac_header in netinet/in.h netinet/tcp.h arpa/inet.h
9557 do :
9558 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9559 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9560 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9561 cat >>confdefs.h <<_ACEOF
9562 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9563 _ACEOF
9567 done
9569 for ac_header in windows.h winsock2.h ws2tcpip.h
9570 do :
9571 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9572 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9573 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9574 cat >>confdefs.h <<_ACEOF
9575 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9576 _ACEOF
9580 done
9582 for ac_header in execinfo.h bits/wordsize.h
9583 do :
9584 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9585 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9586 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9587 cat >>confdefs.h <<_ACEOF
9588 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9589 _ACEOF
9593 done
9595 for ac_header in iptypes.h
9596 do :
9597 ac_fn_c_check_header_compile "$LINENO" "iptypes.h" "ac_cv_header_iptypes_h" "#include <windows.h>
9599 if test "x$ac_cv_header_iptypes_h" = xyes; then :
9600 cat >>confdefs.h <<_ACEOF
9601 #define HAVE_IPTYPES_H 1
9602 _ACEOF
9606 done
9608 for ac_header in iphlpapi.h
9609 do :
9610 ac_fn_c_check_header_compile "$LINENO" "iphlpapi.h" "ac_cv_header_iphlpapi_h" "#include <winsock2.h>
9612 if test "x$ac_cv_header_iphlpapi_h" = xyes; then :
9613 cat >>confdefs.h <<_ACEOF
9614 #define HAVE_IPHLPAPI_H 1
9615 _ACEOF
9619 done
9621 for ac_header in fts.h libzfs.h
9622 do :
9623 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9624 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9625 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9626 cat >>confdefs.h <<_ACEOF
9627 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9628 _ACEOF
9632 done
9634 for ac_header in sys/statvfs.h sys/statfs.h sys/mount.h
9635 do :
9636 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9637 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9638 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9639 cat >>confdefs.h <<_ACEOF
9640 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9641 _ACEOF
9645 done
9648 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/endian.h " >&5
9649 $as_echo_n "checking for sys/endian.h ... " >&6; }
9650 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9651 /* end confdefs.h. */
9653 #include <sys/endian.h>
9656 main ()
9661 return 0;
9663 _ACEOF
9664 if ac_fn_c_try_compile "$LINENO"; then :
9666 $as_echo "#define HAVE_SYS_ENDIAN_H 1" >>confdefs.h
9667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9668 $as_echo "yes" >&6; }
9669 else
9670 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9671 $as_echo "no" >&6; }
9673 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for machine/endian.h " >&5
9676 $as_echo_n "checking for machine/endian.h ... " >&6; }
9677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9678 /* end confdefs.h. */
9680 #include <machine/endian.h>
9683 main ()
9688 return 0;
9690 _ACEOF
9691 if ac_fn_c_try_compile "$LINENO"; then :
9693 $as_echo "#define HAVE_MACHINE_ENDIAN_H 1" >>confdefs.h
9694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9695 $as_echo "yes" >&6; }
9696 else
9697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9698 $as_echo "no" >&6; }
9700 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/endian.h (IRIX variant) " >&5
9703 $as_echo_n "checking for sys/endian.h (IRIX variant) ... " >&6; }
9704 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9705 /* end confdefs.h. */
9707 #include <standards.h>
9708 #include <sys/endian.h>
9711 main ()
9716 return 0;
9718 _ACEOF
9719 if ac_fn_c_try_compile "$LINENO"; then :
9721 $as_echo "#define HAVE_SYS_ENDIAN_H 1" >>confdefs.h
9722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9723 $as_echo "yes" >&6; }
9724 else
9725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9726 $as_echo "no" >&6; }
9728 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
9731 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
9732 if ${ac_cv_c_const+:} false; then :
9733 $as_echo_n "(cached) " >&6
9734 else
9735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9736 /* end confdefs.h. */
9739 main ()
9742 #ifndef __cplusplus
9743 /* Ultrix mips cc rejects this sort of thing. */
9744 typedef int charset[2];
9745 const charset cs = { 0, 0 };
9746 /* SunOS 4.1.1 cc rejects this. */
9747 char const *const *pcpcc;
9748 char **ppc;
9749 /* NEC SVR4.0.2 mips cc rejects this. */
9750 struct point {int x, y;};
9751 static struct point const zero = {0,0};
9752 /* AIX XL C 1.02.0.0 rejects this.
9753 It does not let you subtract one const X* pointer from another in
9754 an arm of an if-expression whose if-part is not a constant
9755 expression */
9756 const char *g = "string";
9757 pcpcc = &g + (g ? g-g : 0);
9758 /* HPUX 7.0 cc rejects these. */
9759 ++pcpcc;
9760 ppc = (char**) pcpcc;
9761 pcpcc = (char const *const *) ppc;
9762 { /* SCO 3.2v4 cc rejects this sort of thing. */
9763 char tx;
9764 char *t = &tx;
9765 char const *s = 0 ? (char *) 0 : (char const *) 0;
9767 *t++ = 0;
9768 if (s) return 0;
9770 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9771 int x[] = {25, 17};
9772 const int *foo = &x[0];
9773 ++foo;
9775 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9776 typedef const int *iptr;
9777 iptr p = 0;
9778 ++p;
9780 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
9781 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9782 struct s { int j; const int *ap[3]; } bx;
9783 struct s *b = &bx; b->j = 5;
9785 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9786 const int foo = 10;
9787 if (!foo) return 0;
9789 return !cs[0] && !zero.x;
9790 #endif
9793 return 0;
9795 _ACEOF
9796 if ac_fn_c_try_compile "$LINENO"; then :
9797 ac_cv_c_const=yes
9798 else
9799 ac_cv_c_const=no
9801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
9804 $as_echo "$ac_cv_c_const" >&6; }
9805 if test $ac_cv_c_const = no; then
9807 $as_echo "#define const /**/" >>confdefs.h
9811 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
9812 if test "x$ac_cv_type_off_t" = xyes; then :
9814 else
9816 cat >>confdefs.h <<_ACEOF
9817 #define off_t long int
9818 _ACEOF
9822 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9823 if test "x$ac_cv_type_pid_t" = xyes; then :
9825 else
9827 cat >>confdefs.h <<_ACEOF
9828 #define pid_t int
9829 _ACEOF
9833 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
9834 if test "x$ac_cv_type_size_t" = xyes; then :
9836 else
9838 cat >>confdefs.h <<_ACEOF
9839 #define size_t unsigned int
9840 _ACEOF
9844 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
9845 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
9846 if ${ac_cv_header_time+:} false; then :
9847 $as_echo_n "(cached) " >&6
9848 else
9849 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9850 /* end confdefs.h. */
9851 #include <sys/types.h>
9852 #include <sys/time.h>
9853 #include <time.h>
9856 main ()
9858 if ((struct tm *) 0)
9859 return 0;
9861 return 0;
9863 _ACEOF
9864 if ac_fn_c_try_compile "$LINENO"; then :
9865 ac_cv_header_time=yes
9866 else
9867 ac_cv_header_time=no
9869 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
9872 $as_echo "$ac_cv_header_time" >&6; }
9873 if test $ac_cv_header_time = yes; then
9875 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
9879 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
9880 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
9881 if ${ac_cv_struct_tm+:} false; then :
9882 $as_echo_n "(cached) " >&6
9883 else
9884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9885 /* end confdefs.h. */
9886 #include <sys/types.h>
9887 #include <time.h>
9890 main ()
9892 struct tm tm;
9893 int *p = &tm.tm_sec;
9894 return !p;
9896 return 0;
9898 _ACEOF
9899 if ac_fn_c_try_compile "$LINENO"; then :
9900 ac_cv_struct_tm=time.h
9901 else
9902 ac_cv_struct_tm=sys/time.h
9904 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9906 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
9907 $as_echo "$ac_cv_struct_tm" >&6; }
9908 if test $ac_cv_struct_tm = sys/time.h; then
9910 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
9914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
9915 $as_echo_n "checking for inline... " >&6; }
9916 if ${ac_cv_c_inline+:} false; then :
9917 $as_echo_n "(cached) " >&6
9918 else
9919 ac_cv_c_inline=no
9920 for ac_kw in inline __inline__ __inline; do
9921 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9922 /* end confdefs.h. */
9923 #ifndef __cplusplus
9924 typedef int foo_t;
9925 static $ac_kw foo_t static_foo () {return 0; }
9926 $ac_kw foo_t foo () {return 0; }
9927 #endif
9929 _ACEOF
9930 if ac_fn_c_try_compile "$LINENO"; then :
9931 ac_cv_c_inline=$ac_kw
9933 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9934 test "$ac_cv_c_inline" != no && break
9935 done
9938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
9939 $as_echo "$ac_cv_c_inline" >&6; }
9941 case $ac_cv_c_inline in
9942 inline | yes) ;;
9944 case $ac_cv_c_inline in
9945 no) ac_val=;;
9946 *) ac_val=$ac_cv_c_inline;;
9947 esac
9948 cat >>confdefs.h <<_ACEOF
9949 #ifndef __cplusplus
9950 #define inline $ac_val
9951 #endif
9952 _ACEOF
9954 esac
9957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regcomp in -lregex" >&5
9958 $as_echo_n "checking for regcomp in -lregex... " >&6; }
9959 if ${ac_cv_lib_regex_regcomp+:} false; then :
9960 $as_echo_n "(cached) " >&6
9961 else
9962 ac_check_lib_save_LIBS=$LIBS
9963 LIBS="-lregex $LIBS"
9964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9965 /* end confdefs.h. */
9967 /* Override any GCC internal prototype to avoid an error.
9968 Use char because int might match the return type of a GCC
9969 builtin and then its argument prototype would still apply. */
9970 #ifdef __cplusplus
9971 extern "C"
9972 #endif
9973 char regcomp ();
9975 main ()
9977 return regcomp ();
9979 return 0;
9981 _ACEOF
9982 if ac_fn_c_try_link "$LINENO"; then :
9983 ac_cv_lib_regex_regcomp=yes
9984 else
9985 ac_cv_lib_regex_regcomp=no
9987 rm -f core conftest.err conftest.$ac_objext \
9988 conftest$ac_exeext conftest.$ac_ext
9989 LIBS=$ac_check_lib_save_LIBS
9991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_regex_regcomp" >&5
9992 $as_echo "$ac_cv_lib_regex_regcomp" >&6; }
9993 if test "x$ac_cv_lib_regex_regcomp" = xyes; then :
9994 cat >>confdefs.h <<_ACEOF
9995 #define HAVE_LIBREGEX 1
9996 _ACEOF
9998 LIBS="-lregex $LIBS"
10002 lib_for_regex=""
10003 if test $ac_cv_lib_regex_regcomp = yes
10004 then
10005 lib_for_regex="-lregex"
10010 pkg_failed=no
10011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ncurses" >&5
10012 $as_echo_n "checking for ncurses... " >&6; }
10014 if test -n "$ncurses_CFLAGS"; then
10015 pkg_cv_ncurses_CFLAGS="$ncurses_CFLAGS"
10016 elif test -n "$PKG_CONFIG"; then
10017 if test -n "$PKG_CONFIG" && \
10018 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncurses\""; } >&5
10019 ($PKG_CONFIG --exists --print-errors "ncurses") 2>&5
10020 ac_status=$?
10021 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10022 test $ac_status = 0; }; then
10023 pkg_cv_ncurses_CFLAGS=`$PKG_CONFIG --cflags "ncurses" 2>/dev/null`
10024 test "x$?" != "x0" && pkg_failed=yes
10025 else
10026 pkg_failed=yes
10028 else
10029 pkg_failed=untried
10031 if test -n "$ncurses_LIBS"; then
10032 pkg_cv_ncurses_LIBS="$ncurses_LIBS"
10033 elif test -n "$PKG_CONFIG"; then
10034 if test -n "$PKG_CONFIG" && \
10035 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncurses\""; } >&5
10036 ($PKG_CONFIG --exists --print-errors "ncurses") 2>&5
10037 ac_status=$?
10038 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10039 test $ac_status = 0; }; then
10040 pkg_cv_ncurses_LIBS=`$PKG_CONFIG --libs "ncurses" 2>/dev/null`
10041 test "x$?" != "x0" && pkg_failed=yes
10042 else
10043 pkg_failed=yes
10045 else
10046 pkg_failed=untried
10051 if test $pkg_failed = yes; then
10052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10053 $as_echo "no" >&6; }
10055 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10056 _pkg_short_errors_supported=yes
10057 else
10058 _pkg_short_errors_supported=no
10060 if test $_pkg_short_errors_supported = yes; then
10061 ncurses_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ncurses" 2>&1`
10062 else
10063 ncurses_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ncurses" 2>&1`
10065 # Put the nasty error message in config.log where it belongs
10066 echo "$ncurses_PKG_ERRORS" >&5
10068 have_ncurses=false
10069 elif test $pkg_failed = untried; then
10070 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10071 $as_echo "no" >&6; }
10072 have_ncurses=false
10073 else
10074 ncurses_CFLAGS=$pkg_cv_ncurses_CFLAGS
10075 ncurses_LIBS=$pkg_cv_ncurses_LIBS
10076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10077 $as_echo "yes" >&6; }
10078 have_ncurses=true
10080 HAVE_NCURSES=$have_ncurses
10084 pkg_failed=no
10085 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD" >&5
10086 $as_echo_n "checking for SYSTEMD... " >&6; }
10088 if test -n "$SYSTEMD_CFLAGS"; then
10089 pkg_cv_SYSTEMD_CFLAGS="$SYSTEMD_CFLAGS"
10090 elif test -n "$PKG_CONFIG"; then
10091 if test -n "$PKG_CONFIG" && \
10092 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5
10093 ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5
10094 ac_status=$?
10095 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10096 test $ac_status = 0; }; then
10097 pkg_cv_SYSTEMD_CFLAGS=`$PKG_CONFIG --cflags "libsystemd" 2>/dev/null`
10098 test "x$?" != "x0" && pkg_failed=yes
10099 else
10100 pkg_failed=yes
10102 else
10103 pkg_failed=untried
10105 if test -n "$SYSTEMD_LIBS"; then
10106 pkg_cv_SYSTEMD_LIBS="$SYSTEMD_LIBS"
10107 elif test -n "$PKG_CONFIG"; then
10108 if test -n "$PKG_CONFIG" && \
10109 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5
10110 ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5
10111 ac_status=$?
10112 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10113 test $ac_status = 0; }; then
10114 pkg_cv_SYSTEMD_LIBS=`$PKG_CONFIG --libs "libsystemd" 2>/dev/null`
10115 test "x$?" != "x0" && pkg_failed=yes
10116 else
10117 pkg_failed=yes
10119 else
10120 pkg_failed=untried
10125 if test $pkg_failed = yes; then
10126 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10127 $as_echo "no" >&6; }
10129 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10130 _pkg_short_errors_supported=yes
10131 else
10132 _pkg_short_errors_supported=no
10134 if test $_pkg_short_errors_supported = yes; then
10135 SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd" 2>&1`
10136 else
10137 SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd" 2>&1`
10139 # Put the nasty error message in config.log where it belongs
10140 echo "$SYSTEMD_PKG_ERRORS" >&5
10142 pmda_systemd=false
10143 elif test $pkg_failed = untried; then
10144 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10145 $as_echo "no" >&6; }
10146 pmda_systemd=false
10147 else
10148 SYSTEMD_CFLAGS=$pkg_cv_SYSTEMD_CFLAGS
10149 SYSTEMD_LIBS=$pkg_cv_SYSTEMD_LIBS
10150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10151 $as_echo "yes" >&6; }
10152 pmda_systemd=true
10154 if $pmda_systemd
10155 then
10157 else
10159 pkg_failed=no
10160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD" >&5
10161 $as_echo_n "checking for SYSTEMD... " >&6; }
10163 if test -n "$SYSTEMD_CFLAGS"; then
10164 pkg_cv_SYSTEMD_CFLAGS="$SYSTEMD_CFLAGS"
10165 elif test -n "$PKG_CONFIG"; then
10166 if test -n "$PKG_CONFIG" && \
10167 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-journal\""; } >&5
10168 ($PKG_CONFIG --exists --print-errors "libsystemd-journal") 2>&5
10169 ac_status=$?
10170 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10171 test $ac_status = 0; }; then
10172 pkg_cv_SYSTEMD_CFLAGS=`$PKG_CONFIG --cflags "libsystemd-journal" 2>/dev/null`
10173 test "x$?" != "x0" && pkg_failed=yes
10174 else
10175 pkg_failed=yes
10177 else
10178 pkg_failed=untried
10180 if test -n "$SYSTEMD_LIBS"; then
10181 pkg_cv_SYSTEMD_LIBS="$SYSTEMD_LIBS"
10182 elif test -n "$PKG_CONFIG"; then
10183 if test -n "$PKG_CONFIG" && \
10184 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-journal\""; } >&5
10185 ($PKG_CONFIG --exists --print-errors "libsystemd-journal") 2>&5
10186 ac_status=$?
10187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10188 test $ac_status = 0; }; then
10189 pkg_cv_SYSTEMD_LIBS=`$PKG_CONFIG --libs "libsystemd-journal" 2>/dev/null`
10190 test "x$?" != "x0" && pkg_failed=yes
10191 else
10192 pkg_failed=yes
10194 else
10195 pkg_failed=untried
10200 if test $pkg_failed = yes; then
10201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10202 $as_echo "no" >&6; }
10204 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10205 _pkg_short_errors_supported=yes
10206 else
10207 _pkg_short_errors_supported=no
10209 if test $_pkg_short_errors_supported = yes; then
10210 SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd-journal" 2>&1`
10211 else
10212 SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd-journal" 2>&1`
10214 # Put the nasty error message in config.log where it belongs
10215 echo "$SYSTEMD_PKG_ERRORS" >&5
10217 pmda_systemd=false
10218 elif test $pkg_failed = untried; then
10219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10220 $as_echo "no" >&6; }
10221 pmda_systemd=false
10222 else
10223 SYSTEMD_CFLAGS=$pkg_cv_SYSTEMD_CFLAGS
10224 SYSTEMD_LIBS=$pkg_cv_SYSTEMD_LIBS
10225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10226 $as_echo "yes" >&6; }
10227 pmda_systemd=true
10230 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the systemd PMDA should be included" >&5
10231 $as_echo_n "checking if the systemd PMDA should be included... " >&6; }
10232 PMDA_SYSTEMD=$pmda_systemd
10234 if $pmda_systemd; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10235 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10236 $as_echo "no" >&6; }; fi
10238 pmda_infiniband=false
10239 if test "x$do_infiniband" != "xno"; then :
10241 for ac_header in infiniband/umad.h
10242 do :
10243 ac_fn_c_check_header_mongrel "$LINENO" "infiniband/umad.h" "ac_cv_header_infiniband_umad_h" "$ac_includes_default"
10244 if test "x$ac_cv_header_infiniband_umad_h" = xyes; then :
10245 cat >>confdefs.h <<_ACEOF
10246 #define HAVE_INFINIBAND_UMAD_H 1
10247 _ACEOF
10249 for ac_header in infiniband/mad.h
10250 do :
10251 ac_fn_c_check_header_mongrel "$LINENO" "infiniband/mad.h" "ac_cv_header_infiniband_mad_h" "$ac_includes_default"
10252 if test "x$ac_cv_header_infiniband_mad_h" = xyes; then :
10253 cat >>confdefs.h <<_ACEOF
10254 #define HAVE_INFINIBAND_MAD_H 1
10255 _ACEOF
10256 pmda_infiniband=true
10259 done
10264 done
10266 savedLIBS=$LIBS
10267 IB_LIBS=""
10268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for madrpc_init in -libmad" >&5
10269 $as_echo_n "checking for madrpc_init in -libmad... " >&6; }
10270 if ${ac_cv_lib_ibmad_madrpc_init+:} false; then :
10271 $as_echo_n "(cached) " >&6
10272 else
10273 ac_check_lib_save_LIBS=$LIBS
10274 LIBS="-libmad $LIBS"
10275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10276 /* end confdefs.h. */
10278 /* Override any GCC internal prototype to avoid an error.
10279 Use char because int might match the return type of a GCC
10280 builtin and then its argument prototype would still apply. */
10281 #ifdef __cplusplus
10282 extern "C"
10283 #endif
10284 char madrpc_init ();
10286 main ()
10288 return madrpc_init ();
10290 return 0;
10292 _ACEOF
10293 if ac_fn_c_try_link "$LINENO"; then :
10294 ac_cv_lib_ibmad_madrpc_init=yes
10295 else
10296 ac_cv_lib_ibmad_madrpc_init=no
10298 rm -f core conftest.err conftest.$ac_objext \
10299 conftest$ac_exeext conftest.$ac_ext
10300 LIBS=$ac_check_lib_save_LIBS
10302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ibmad_madrpc_init" >&5
10303 $as_echo "$ac_cv_lib_ibmad_madrpc_init" >&6; }
10304 if test "x$ac_cv_lib_ibmad_madrpc_init" = xyes; then :
10305 cat >>confdefs.h <<_ACEOF
10306 #define HAVE_LIBIBMAD 1
10307 _ACEOF
10309 LIBS="-libmad $LIBS"
10313 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umad_init in -libumad" >&5
10314 $as_echo_n "checking for umad_init in -libumad... " >&6; }
10315 if ${ac_cv_lib_ibumad_umad_init+:} false; then :
10316 $as_echo_n "(cached) " >&6
10317 else
10318 ac_check_lib_save_LIBS=$LIBS
10319 LIBS="-libumad $LIBS"
10320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10321 /* end confdefs.h. */
10323 /* Override any GCC internal prototype to avoid an error.
10324 Use char because int might match the return type of a GCC
10325 builtin and then its argument prototype would still apply. */
10326 #ifdef __cplusplus
10327 extern "C"
10328 #endif
10329 char umad_init ();
10331 main ()
10333 return umad_init ();
10335 return 0;
10337 _ACEOF
10338 if ac_fn_c_try_link "$LINENO"; then :
10339 ac_cv_lib_ibumad_umad_init=yes
10340 else
10341 ac_cv_lib_ibumad_umad_init=no
10343 rm -f core conftest.err conftest.$ac_objext \
10344 conftest$ac_exeext conftest.$ac_ext
10345 LIBS=$ac_check_lib_save_LIBS
10347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ibumad_umad_init" >&5
10348 $as_echo "$ac_cv_lib_ibumad_umad_init" >&6; }
10349 if test "x$ac_cv_lib_ibumad_umad_init" = xyes; then :
10350 cat >>confdefs.h <<_ACEOF
10351 #define HAVE_LIBIBUMAD 1
10352 _ACEOF
10354 LIBS="-libumad $LIBS"
10358 if test $ac_cv_lib_ibmad_madrpc_init = yes -a $ac_cv_lib_ibumad_umad_init = yes
10359 then
10360 IB_LIBS="-libmad -libumad"
10361 LIBS="$IB_LIBS"
10362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for port_performance_query_via" >&5
10363 $as_echo_n "checking for port_performance_query_via... " >&6; }
10364 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10365 /* end confdefs.h. */
10367 /* Override any GCC internal prototype to avoid an error.
10368 Use char because int might match the return type of a GCC
10369 builtin and then its argument prototype would still apply. */
10370 #ifdef __cplusplus
10371 extern "C"
10372 #endif
10373 char port_performance_query_via ();
10375 main ()
10377 return port_performance_query_via ();
10379 return 0;
10381 _ACEOF
10382 if ac_fn_c_try_link "$LINENO"; then :
10384 $as_echo "#define HAVE_PORT_PERFORMANCE_QUERY_VIA 1" >>confdefs.h
10386 have_port_performance_query_via=true
10387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10388 $as_echo "yes" >&6; }
10389 else
10390 have_port_performance_query_via=false
10391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10392 $as_echo "no" >&6; }
10394 rm -f core conftest.err conftest.$ac_objext \
10395 conftest$ac_exeext conftest.$ac_ext
10396 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pma_query_via" >&5
10397 $as_echo_n "checking for pma_query_via... " >&6; }
10398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10399 /* end confdefs.h. */
10401 /* Override any GCC internal prototype to avoid an error.
10402 Use char because int might match the return type of a GCC
10403 builtin and then its argument prototype would still apply. */
10404 #ifdef __cplusplus
10405 extern "C"
10406 #endif
10407 char pma_query_via ();
10409 main ()
10411 return pma_query_via ();
10413 return 0;
10415 _ACEOF
10416 if ac_fn_c_try_link "$LINENO"; then :
10418 $as_echo "#define HAVE_PMA_QUERY_VIA 1" >>confdefs.h
10420 have_pma_query_via=true
10421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10422 $as_echo "yes" >&6; }
10423 else
10424 have_pma_query_via=false
10425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10426 $as_echo "no" >&6; }
10428 rm -f core conftest.err conftest.$ac_objext \
10429 conftest$ac_exeext conftest.$ac_ext
10430 LIBS=$savedLIBS
10431 if test $have_pma_query_via -o $have_port_performance_query_via
10432 then
10434 else
10435 pmda_infiniband=false
10437 else
10438 pmda_infiniband=false
10440 LIBS=$savedLIBS
10444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the infiniband PMDA should be included" >&5
10445 $as_echo_n "checking if the infiniband PMDA should be included... " >&6; }
10446 PMDA_INFINIBAND=$pmda_infiniband
10448 if $pmda_infiniband; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10449 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10450 $as_echo "no" >&6; }; fi
10452 pmda_papi=false
10453 if test "x$do_papi" != "xno"; then :
10455 enable_papi=true
10457 saved_LDFLAGS="$LDFLAGS"
10458 saved_CFLAGS="$CFLAGS"
10459 savedLIBS=$LIBS
10461 CFLAGS="$papi_CFLAGS"
10462 LDFLAGS="$papi_LIBS"
10464 case "$do_papi" in
10465 yes|no|check)
10467 */*)
10468 PAPI_ROOTDIR=$do_papi;
10469 CFLAGS="-I$PAPI_ROOTDIR/include"
10470 LDFLAGS="-L$PAPI_ROOTDIR/lib"
10474 pkg_failed=no
10475 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for papi" >&5
10476 $as_echo_n "checking for papi... " >&6; }
10478 if test -n "$papi_CFLAGS"; then
10479 pkg_cv_papi_CFLAGS="$papi_CFLAGS"
10480 elif test -n "$PKG_CONFIG"; then
10481 if test -n "$PKG_CONFIG" && \
10482 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$do_papi\""; } >&5
10483 ($PKG_CONFIG --exists --print-errors "$do_papi") 2>&5
10484 ac_status=$?
10485 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10486 test $ac_status = 0; }; then
10487 pkg_cv_papi_CFLAGS=`$PKG_CONFIG --cflags "$do_papi" 2>/dev/null`
10488 test "x$?" != "x0" && pkg_failed=yes
10489 else
10490 pkg_failed=yes
10492 else
10493 pkg_failed=untried
10495 if test -n "$papi_LIBS"; then
10496 pkg_cv_papi_LIBS="$papi_LIBS"
10497 elif test -n "$PKG_CONFIG"; then
10498 if test -n "$PKG_CONFIG" && \
10499 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$do_papi\""; } >&5
10500 ($PKG_CONFIG --exists --print-errors "$do_papi") 2>&5
10501 ac_status=$?
10502 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10503 test $ac_status = 0; }; then
10504 pkg_cv_papi_LIBS=`$PKG_CONFIG --libs "$do_papi" 2>/dev/null`
10505 test "x$?" != "x0" && pkg_failed=yes
10506 else
10507 pkg_failed=yes
10509 else
10510 pkg_failed=untried
10515 if test $pkg_failed = yes; then
10516 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10517 $as_echo "no" >&6; }
10519 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10520 _pkg_short_errors_supported=yes
10521 else
10522 _pkg_short_errors_supported=no
10524 if test $_pkg_short_errors_supported = yes; then
10525 papi_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$do_papi" 2>&1`
10526 else
10527 papi_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$do_papi" 2>&1`
10529 # Put the nasty error message in config.log where it belongs
10530 echo "$papi_PKG_ERRORS" >&5
10532 as_fn_error $? "Package requirements ($do_papi) were not met:
10534 $papi_PKG_ERRORS
10536 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10537 installed software in a non-standard prefix.
10539 Alternatively, you may set the environment variables papi_CFLAGS
10540 and papi_LIBS to avoid the need to call pkg-config.
10541 See the pkg-config man page for more details." "$LINENO" 5
10542 elif test $pkg_failed = untried; then
10543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10544 $as_echo "no" >&6; }
10545 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10546 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10547 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
10548 is in your PATH or set the PKG_CONFIG environment variable to the full
10549 path to pkg-config.
10551 Alternatively, you may set the environment variables papi_CFLAGS
10552 and papi_LIBS to avoid the need to call pkg-config.
10553 See the pkg-config man page for more details.
10555 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10556 See \`config.log' for more details" "$LINENO" 5; }
10557 else
10558 papi_CFLAGS=$pkg_cv_papi_CFLAGS
10559 papi_LIBS=$pkg_cv_papi_LIBS
10560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10561 $as_echo "yes" >&6; }
10563 CFLAGS="$papi_CFLAGS"
10564 LDFLAGS="$papi_LIBS"
10567 esac
10569 # $papi_LIBS may include -lpapi harmlessly redudantly with AC_CHECK_LIB
10570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PAPI_library_init in -lpapi" >&5
10571 $as_echo_n "checking for PAPI_library_init in -lpapi... " >&6; }
10572 if ${ac_cv_lib_papi_PAPI_library_init+:} false; then :
10573 $as_echo_n "(cached) " >&6
10574 else
10575 ac_check_lib_save_LIBS=$LIBS
10576 LIBS="-lpapi $LIBS"
10577 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10578 /* end confdefs.h. */
10580 /* Override any GCC internal prototype to avoid an error.
10581 Use char because int might match the return type of a GCC
10582 builtin and then its argument prototype would still apply. */
10583 #ifdef __cplusplus
10584 extern "C"
10585 #endif
10586 char PAPI_library_init ();
10588 main ()
10590 return PAPI_library_init ();
10592 return 0;
10594 _ACEOF
10595 if ac_fn_c_try_link "$LINENO"; then :
10596 ac_cv_lib_papi_PAPI_library_init=yes
10597 else
10598 ac_cv_lib_papi_PAPI_library_init=no
10600 rm -f core conftest.err conftest.$ac_objext \
10601 conftest$ac_exeext conftest.$ac_ext
10602 LIBS=$ac_check_lib_save_LIBS
10604 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_papi_PAPI_library_init" >&5
10605 $as_echo "$ac_cv_lib_papi_PAPI_library_init" >&6; }
10606 if test "x$ac_cv_lib_papi_PAPI_library_init" = xyes; then :
10607 papi_libs="$LDFLAGS -lpapi"
10608 else
10609 enable_papi=false
10612 for ac_header in papi.h
10613 do :
10614 ac_fn_c_check_header_mongrel "$LINENO" "papi.h" "ac_cv_header_papi_h" "$ac_includes_default"
10615 if test "x$ac_cv_header_papi_h" = xyes; then :
10616 cat >>confdefs.h <<_ACEOF
10617 #define HAVE_PAPI_H 1
10618 _ACEOF
10619 papi_cflags="$CFLAGS"
10620 else
10621 enable_papi=false
10624 done
10626 if test "$do_papi" != "check" -a "$enable_papi" != "true"
10627 then
10628 as_fn_error $? "PAPI is not installed, cannot enable the PAPI PMDA" "$LINENO" 5
10629 else
10630 pmda_papi=$enable_papi
10632 LIBS=$savedLIBS
10633 CFLAGS="$saved_CFLAGS"
10634 LDFLAGS="$saved_LDFLAGS"
10635 PAPI_CFLAGS=$papi_cflags
10637 PAPI_LIBS=$papi_libs
10641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the papi PMDA should be included" >&5
10642 $as_echo_n "checking if the papi PMDA should be included... " >&6; }
10643 PMDA_PAPI=$pmda_papi
10645 if $pmda_papi; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10646 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10647 $as_echo "no" >&6; }; fi
10649 if test "x$pmda_papi" = "xtrue"; then :
10651 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct PAPI_component_info_t has a disabled field" >&5
10652 $as_echo_n "checking whether struct PAPI_component_info_t has a disabled field... " >&6; }
10653 cat <<End-of-File >conftest.c
10654 #include <papi.h>
10655 int main() { PAPI_component_info_t *c; c->disabled = 0; }
10656 End-of-File
10657 (eval $ac_compile) 2>conftest.out
10658 cat conftest.out >&5
10659 if test -s conftest.out
10660 then
10661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10662 $as_echo "no" >&6; }
10663 else
10665 $as_echo "#define HAVE_PAPI_DISABLED_COMP 1" >>confdefs.h
10667 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10668 $as_echo "yes" >&6; }
10671 rm -f conftest.*
10675 pmda_perfevent=false
10676 if test "x$do_perfevent" != "xno" ; then :
10678 enable_perfevent=true
10680 savedLIBS=$LIBS
10681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pfm_get_os_event_encoding in -lpfm" >&5
10682 $as_echo_n "checking for pfm_get_os_event_encoding in -lpfm... " >&6; }
10683 if ${ac_cv_lib_pfm_pfm_get_os_event_encoding+:} false; then :
10684 $as_echo_n "(cached) " >&6
10685 else
10686 ac_check_lib_save_LIBS=$LIBS
10687 LIBS="-lpfm $LIBS"
10688 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10689 /* end confdefs.h. */
10691 /* Override any GCC internal prototype to avoid an error.
10692 Use char because int might match the return type of a GCC
10693 builtin and then its argument prototype would still apply. */
10694 #ifdef __cplusplus
10695 extern "C"
10696 #endif
10697 char pfm_get_os_event_encoding ();
10699 main ()
10701 return pfm_get_os_event_encoding ();
10703 return 0;
10705 _ACEOF
10706 if ac_fn_c_try_link "$LINENO"; then :
10707 ac_cv_lib_pfm_pfm_get_os_event_encoding=yes
10708 else
10709 ac_cv_lib_pfm_pfm_get_os_event_encoding=no
10711 rm -f core conftest.err conftest.$ac_objext \
10712 conftest$ac_exeext conftest.$ac_ext
10713 LIBS=$ac_check_lib_save_LIBS
10715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pfm_pfm_get_os_event_encoding" >&5
10716 $as_echo "$ac_cv_lib_pfm_pfm_get_os_event_encoding" >&6; }
10717 if test "x$ac_cv_lib_pfm_pfm_get_os_event_encoding" = xyes; then :
10718 pfm_libs="-lpfm"
10719 else
10720 enable_perfevent=false
10723 for ac_header in perfmon/pfmlib_perf_event.h
10724 do :
10725 ac_fn_c_check_header_mongrel "$LINENO" "perfmon/pfmlib_perf_event.h" "ac_cv_header_perfmon_pfmlib_perf_event_h" "$ac_includes_default"
10726 if test "x$ac_cv_header_perfmon_pfmlib_perf_event_h" = xyes; then :
10727 cat >>confdefs.h <<_ACEOF
10728 #define HAVE_PERFMON_PFMLIB_PERF_EVENT_H 1
10729 _ACEOF
10731 else
10732 enable_perfevent=false
10735 done
10737 if test "$do_perfevent" != "check" -a "$enable_perfevent" != "true"
10738 then
10739 as_fn_error $? "libpfm is not installed, cannot enable the perfevent PMDA" "$LINENO" 5
10740 else
10741 pmda_perfevent=$enable_perfevent
10743 LIBS=$savedLIBS
10744 PFM_LIBS=$pfm_libs
10748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the perfevent PMDA should be included" >&5
10749 $as_echo_n "checking if the perfevent PMDA should be included... " >&6; }
10750 PMDA_PERFEVENT=$pmda_perfevent
10752 if $pmda_perfevent; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10753 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10754 $as_echo "no" >&6; }; fi
10756 pmda_rpm=false
10757 savedLIBS=$LIBS
10758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rpmlib > 4.4.2" >&5
10759 $as_echo_n "checking for rpmlib > 4.4.2... " >&6; }
10760 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10761 /* end confdefs.h. */
10762 #include <rpm/header.h>
10764 main ()
10766 (void)HEADERGET_EXT;
10768 return 0;
10770 _ACEOF
10771 if ac_fn_c_try_compile "$LINENO"; then :
10772 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10773 $as_echo "yes" >&6; }
10774 pmda_rpm=true
10775 else
10776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10777 $as_echo "no" >&6; }
10779 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10780 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the rpm PMDA should be included" >&5
10781 $as_echo_n "checking if the rpm PMDA should be included... " >&6; }
10782 PMDA_RPM=$pmda_rpm
10784 if $pmda_rpm; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10785 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10786 $as_echo "no" >&6; }; fi
10787 LIBS=$savedLIBS
10789 pmda_postfix=false
10790 for ac_prog in qshape
10792 # Extract the first word of "$ac_prog", so it can be a program name with args.
10793 set dummy $ac_prog; ac_word=$2
10794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10795 $as_echo_n "checking for $ac_word... " >&6; }
10796 if ${ac_cv_prog_QSHAPE+:} false; then :
10797 $as_echo_n "(cached) " >&6
10798 else
10799 if test -n "$QSHAPE"; then
10800 ac_cv_prog_QSHAPE="$QSHAPE" # Let the user override the test.
10801 else
10802 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10803 as_dummy="path=$PATH:/usr/sbin"
10804 for as_dir in $as_dummy
10806 IFS=$as_save_IFS
10807 test -z "$as_dir" && as_dir=.
10808 for ac_exec_ext in '' $ac_executable_extensions; do
10809 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10810 ac_cv_prog_QSHAPE="$ac_prog"
10811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10812 break 2
10814 done
10815 done
10816 IFS=$as_save_IFS
10820 QSHAPE=$ac_cv_prog_QSHAPE
10821 if test -n "$QSHAPE"; then
10822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QSHAPE" >&5
10823 $as_echo "$QSHAPE" >&6; }
10824 else
10825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10826 $as_echo "no" >&6; }
10830 test -n "$QSHAPE" && break
10831 done
10833 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the postfix PMDA should be included" >&5
10834 $as_echo_n "checking if the postfix PMDA should be included... " >&6; }
10835 if test -n "$QSHAPE"
10836 then
10837 pmda_postfix=true
10838 else
10839 for script in /usr/share/doc/packages/postfix-doc/auxiliary/qshape/qshape.pl
10841 if test -f "$script"
10842 then
10843 pmda_postfix=true
10844 break
10846 done
10848 PMDA_POSTFIX=$pmda_postfix
10850 if $pmda_postfix; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10851 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10852 $as_echo "no" >&6; }; fi
10855 pkg_failed=no
10856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmicrohttpd" >&5
10857 $as_echo_n "checking for libmicrohttpd... " >&6; }
10859 if test -n "$libmicrohttpd_CFLAGS"; then
10860 pkg_cv_libmicrohttpd_CFLAGS="$libmicrohttpd_CFLAGS"
10861 elif test -n "$PKG_CONFIG"; then
10862 if test -n "$PKG_CONFIG" && \
10863 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmicrohttpd > 0.9.9\""; } >&5
10864 ($PKG_CONFIG --exists --print-errors "libmicrohttpd > 0.9.9") 2>&5
10865 ac_status=$?
10866 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10867 test $ac_status = 0; }; then
10868 pkg_cv_libmicrohttpd_CFLAGS=`$PKG_CONFIG --cflags "libmicrohttpd > 0.9.9" 2>/dev/null`
10869 test "x$?" != "x0" && pkg_failed=yes
10870 else
10871 pkg_failed=yes
10873 else
10874 pkg_failed=untried
10876 if test -n "$libmicrohttpd_LIBS"; then
10877 pkg_cv_libmicrohttpd_LIBS="$libmicrohttpd_LIBS"
10878 elif test -n "$PKG_CONFIG"; then
10879 if test -n "$PKG_CONFIG" && \
10880 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmicrohttpd > 0.9.9\""; } >&5
10881 ($PKG_CONFIG --exists --print-errors "libmicrohttpd > 0.9.9") 2>&5
10882 ac_status=$?
10883 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10884 test $ac_status = 0; }; then
10885 pkg_cv_libmicrohttpd_LIBS=`$PKG_CONFIG --libs "libmicrohttpd > 0.9.9" 2>/dev/null`
10886 test "x$?" != "x0" && pkg_failed=yes
10887 else
10888 pkg_failed=yes
10890 else
10891 pkg_failed=untried
10896 if test $pkg_failed = yes; then
10897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10898 $as_echo "no" >&6; }
10900 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10901 _pkg_short_errors_supported=yes
10902 else
10903 _pkg_short_errors_supported=no
10905 if test $_pkg_short_errors_supported = yes; then
10906 libmicrohttpd_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libmicrohttpd > 0.9.9" 2>&1`
10907 else
10908 libmicrohttpd_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libmicrohttpd > 0.9.9" 2>&1`
10910 # Put the nasty error message in config.log where it belongs
10911 echo "$libmicrohttpd_PKG_ERRORS" >&5
10913 have_libmicrohttpd=false
10914 elif test $pkg_failed = untried; then
10915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10916 $as_echo "no" >&6; }
10917 have_libmicrohttpd=false
10918 else
10919 libmicrohttpd_CFLAGS=$pkg_cv_libmicrohttpd_CFLAGS
10920 libmicrohttpd_LIBS=$pkg_cv_libmicrohttpd_LIBS
10921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10922 $as_echo "yes" >&6; }
10923 have_libmicrohttpd=true
10925 HAVE_LIBMICROHTTPD=$have_libmicrohttpd
10929 pkg_failed=no
10930 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo" >&5
10931 $as_echo_n "checking for cairo... " >&6; }
10933 if test -n "$cairo_CFLAGS"; then
10934 pkg_cv_cairo_CFLAGS="$cairo_CFLAGS"
10935 elif test -n "$PKG_CONFIG"; then
10936 if test -n "$PKG_CONFIG" && \
10937 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo >= 1.2, cairo-ft >= 1.2, cairo-png >= 1.2\""; } >&5
10938 ($PKG_CONFIG --exists --print-errors "cairo >= 1.2, cairo-ft >= 1.2, cairo-png >= 1.2") 2>&5
10939 ac_status=$?
10940 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10941 test $ac_status = 0; }; then
10942 pkg_cv_cairo_CFLAGS=`$PKG_CONFIG --cflags "cairo >= 1.2, cairo-ft >= 1.2, cairo-png >= 1.2" 2>/dev/null`
10943 test "x$?" != "x0" && pkg_failed=yes
10944 else
10945 pkg_failed=yes
10947 else
10948 pkg_failed=untried
10950 if test -n "$cairo_LIBS"; then
10951 pkg_cv_cairo_LIBS="$cairo_LIBS"
10952 elif test -n "$PKG_CONFIG"; then
10953 if test -n "$PKG_CONFIG" && \
10954 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo >= 1.2, cairo-ft >= 1.2, cairo-png >= 1.2\""; } >&5
10955 ($PKG_CONFIG --exists --print-errors "cairo >= 1.2, cairo-ft >= 1.2, cairo-png >= 1.2") 2>&5
10956 ac_status=$?
10957 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10958 test $ac_status = 0; }; then
10959 pkg_cv_cairo_LIBS=`$PKG_CONFIG --libs "cairo >= 1.2, cairo-ft >= 1.2, cairo-png >= 1.2" 2>/dev/null`
10960 test "x$?" != "x0" && pkg_failed=yes
10961 else
10962 pkg_failed=yes
10964 else
10965 pkg_failed=untried
10970 if test $pkg_failed = yes; then
10971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10972 $as_echo "no" >&6; }
10974 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10975 _pkg_short_errors_supported=yes
10976 else
10977 _pkg_short_errors_supported=no
10979 if test $_pkg_short_errors_supported = yes; then
10980 cairo_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cairo >= 1.2, cairo-ft >= 1.2, cairo-png >= 1.2" 2>&1`
10981 else
10982 cairo_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cairo >= 1.2, cairo-ft >= 1.2, cairo-png >= 1.2" 2>&1`
10984 # Put the nasty error message in config.log where it belongs
10985 echo "$cairo_PKG_ERRORS" >&5
10987 have_cairo=false
10988 elif test $pkg_failed = untried; then
10989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10990 $as_echo "no" >&6; }
10991 have_cairo=false
10992 else
10993 cairo_CFLAGS=$pkg_cv_cairo_CFLAGS
10994 cairo_LIBS=$pkg_cv_cairo_LIBS
10995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10996 $as_echo "yes" >&6; }
10997 have_cairo=true
10999 HAVE_CAIRO=$have_cairo
11002 enable_webapi=false
11003 if test "x$do_webapi" != "xno"; then :
11005 enable_webapi=true
11007 if test "$have_libmicrohttpd" != "true"
11008 then
11009 enable_webapi=false
11010 test "$do_webapi" != "check" && \
11011 as_fn_error $? "libmicrohttpd is not installed, cannot enable the web API" "$LINENO" 5
11012 elif test "$do_webapi" != "check" -a "x$cxx" = "x"
11013 then
11014 enable_webapi=false
11015 test "$do_webapi" != "check" && \
11016 as_fn_error $? "C++ compiler unavailable, cannot enable the web API" "$LINENO" 5
11022 enable_manager=false
11023 if test "x$do_manager" != "xno"; then :
11025 enable_manager=true
11027 if test "$target_os" = "mingw"
11028 then
11029 enable_manager=false
11030 test "$do_manager" != "check" && \
11031 as_fn_error $? "MinGW build, cannot enable daemon manager" "$LINENO" 5
11032 elif test "x$cxx" = "x"
11033 then
11034 enable_manager=false
11035 test "$do_manager" != "check" && \
11036 as_fn_error $? "C++ compiler unavailable, cannot enable daemon manager" "$LINENO" 5
11038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compilation features for daemon manager" >&5
11039 $as_echo_n "checking compilation features for daemon manager... " >&6; }
11040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11041 /* end confdefs.h. */
11042 #ifndef _XOPEN_SOURCE
11043 #define _XOPEN_SOURCE 600
11044 #endif
11045 #include <stdio.h>
11048 main ()
11052 return 0;
11054 _ACEOF
11055 if ac_fn_c_try_compile "$LINENO"; then :
11056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11057 $as_echo "yes" >&6; }
11058 else
11059 enable_manager=false
11060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11061 $as_echo "no" >&6; }
11063 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
11069 $as_echo_n "checking return type of signal handlers... " >&6; }
11070 if ${ac_cv_type_signal+:} false; then :
11071 $as_echo_n "(cached) " >&6
11072 else
11073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11074 /* end confdefs.h. */
11075 #include <sys/types.h>
11076 #include <signal.h>
11079 main ()
11081 return *(signal (0, 0)) (0) == 1;
11083 return 0;
11085 _ACEOF
11086 if ac_fn_c_try_compile "$LINENO"; then :
11087 ac_cv_type_signal=int
11088 else
11089 ac_cv_type_signal=void
11091 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11093 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
11094 $as_echo "$ac_cv_type_signal" >&6; }
11096 cat >>confdefs.h <<_ACEOF
11097 #define RETSIGTYPE $ac_cv_type_signal
11098 _ACEOF
11101 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wait3 that fills in rusage" >&5
11102 $as_echo_n "checking for wait3 that fills in rusage... " >&6; }
11103 if ${ac_cv_func_wait3_rusage+:} false; then :
11104 $as_echo_n "(cached) " >&6
11105 else
11106 if test "$cross_compiling" = yes; then :
11107 ac_cv_func_wait3_rusage=no
11108 else
11109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11110 /* end confdefs.h. */
11111 $ac_includes_default
11112 #include <sys/time.h>
11113 #include <sys/resource.h>
11114 #include <sys/wait.h>
11115 /* HP-UX has wait3 but does not fill in rusage at all. */
11117 main ()
11119 struct rusage r;
11120 int i;
11121 /* Use a field that we can force nonzero --
11122 voluntary context switches.
11123 For systems like NeXT and OSF/1 that don't set it,
11124 also use the system CPU time. And page faults (I/O) for Linux. */
11125 r.ru_nvcsw = 0;
11126 r.ru_stime.tv_sec = 0;
11127 r.ru_stime.tv_usec = 0;
11128 r.ru_majflt = r.ru_minflt = 0;
11129 switch (fork ())
11131 case 0: /* Child. */
11132 sleep(1); /* Give up the CPU. */
11133 _exit(0);
11134 break;
11135 case -1: /* What can we do? */
11136 _exit(0);
11137 break;
11138 default: /* Parent. */
11139 wait3(&i, 0, &r);
11140 /* Avoid "text file busy" from rm on fast HP-UX machines. */
11141 sleep(2);
11142 return (r.ru_nvcsw == 0 && r.ru_majflt == 0 && r.ru_minflt == 0
11143 && r.ru_stime.tv_sec == 0 && r.ru_stime.tv_usec == 0);
11146 _ACEOF
11147 if ac_fn_c_try_run "$LINENO"; then :
11148 ac_cv_func_wait3_rusage=yes
11149 else
11150 ac_cv_func_wait3_rusage=no
11152 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11153 conftest.$ac_objext conftest.beam conftest.$ac_ext
11157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_wait3_rusage" >&5
11158 $as_echo "$ac_cv_func_wait3_rusage" >&6; }
11159 if test $ac_cv_func_wait3_rusage = yes; then
11161 $as_echo "#define HAVE_WAIT3 1" >>confdefs.h
11165 for ac_func in vprintf
11166 do :
11167 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
11168 if test "x$ac_cv_func_vprintf" = xyes; then :
11169 cat >>confdefs.h <<_ACEOF
11170 #define HAVE_VPRINTF 1
11171 _ACEOF
11173 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
11174 if test "x$ac_cv_func__doprnt" = xyes; then :
11176 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
11181 done
11184 for ac_func in mktime nanosleep usleep unsetenv
11185 do :
11186 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11187 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11188 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11189 cat >>confdefs.h <<_ACEOF
11190 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11191 _ACEOF
11194 done
11196 for ac_func in select socket gethostname getpeerucred getpeereid
11197 do :
11198 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11199 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11200 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11201 cat >>confdefs.h <<_ACEOF
11202 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11203 _ACEOF
11206 done
11208 for ac_func in uname syslog __clone pipe2 fcntl ioctl
11209 do :
11210 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11211 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11212 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11213 cat >>confdefs.h <<_ACEOF
11214 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11215 _ACEOF
11218 done
11220 for ac_func in prctl setlinebuf waitpid atexit kill
11221 do :
11222 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11223 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11224 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11225 cat >>confdefs.h <<_ACEOF
11226 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11227 _ACEOF
11230 done
11232 for ac_func in chown fchmod getcwd scandir mkstemp
11233 do :
11234 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11235 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11236 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11237 cat >>confdefs.h <<_ACEOF
11238 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11239 _ACEOF
11242 done
11244 for ac_func in brk sbrk posix_memalign memalign valloc
11245 do :
11246 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11247 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11248 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11249 cat >>confdefs.h <<_ACEOF
11250 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11251 _ACEOF
11254 done
11256 for ac_func in signal sighold sigrelse tcgetattr
11257 do :
11258 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11259 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11260 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11261 cat >>confdefs.h <<_ACEOF
11262 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11263 _ACEOF
11266 done
11268 for ac_func in regex regcmp regexec regcomp
11269 do :
11270 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11271 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11272 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11273 cat >>confdefs.h <<_ACEOF
11274 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11275 _ACEOF
11278 done
11280 for ac_func in strtod strtol strtoll strtoull strndup strchrnul
11281 do :
11282 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11283 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11284 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11285 cat >>confdefs.h <<_ACEOF
11286 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11287 _ACEOF
11290 done
11292 for ac_func in getuid getgid
11293 do :
11294 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11295 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11296 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11297 cat >>confdefs.h <<_ACEOF
11298 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11299 _ACEOF
11302 done
11304 for ac_func in getgrent getgrent_r getgrnam getgrnam_r getgrgid getgrgid_r
11305 do :
11306 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11307 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11308 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11309 cat >>confdefs.h <<_ACEOF
11310 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11311 _ACEOF
11314 done
11316 for ac_func in getpwent getpwent_r getpwnam getpwnam_r getpwuid getpwuid_r
11317 do :
11318 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11319 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11320 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11321 cat >>confdefs.h <<_ACEOF
11322 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11323 _ACEOF
11326 done
11328 for ac_func in sysinfo trace_back_stack backtrace
11329 do :
11330 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11331 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11332 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11333 cat >>confdefs.h <<_ACEOF
11334 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11335 _ACEOF
11338 done
11340 for ac_func in sendmsg recvmsg setns
11341 do :
11342 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11343 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11344 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11345 cat >>confdefs.h <<_ACEOF
11346 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11347 _ACEOF
11350 done
11353 if test $target_os != linux -a $target_os != freebsd -a $target_os != kfreebsd -a $target_os != netbsd; then
11354 for ac_func in readdir64
11355 do :
11356 ac_fn_c_check_func "$LINENO" "readdir64" "ac_cv_func_readdir64"
11357 if test "x$ac_cv_func_readdir64" = xyes; then :
11358 cat >>confdefs.h <<_ACEOF
11359 #define HAVE_READDIR64 1
11360 _ACEOF
11363 done
11367 if test $target_os = solaris
11368 then
11369 ac_fn_c_check_type "$LINENO" "__int32_t" "ac_cv_type___int32_t" "$ac_includes_default"
11370 if test "x$ac_cv_type___int32_t" = xyes; then :
11372 else
11374 cat >>confdefs.h <<_ACEOF
11375 #define __int32_t int32_t
11376 _ACEOF
11380 ac_fn_c_check_type "$LINENO" "__uint32_t" "ac_cv_type___uint32_t" "$ac_includes_default"
11381 if test "x$ac_cv_type___uint32_t" = xyes; then :
11383 else
11385 cat >>confdefs.h <<_ACEOF
11386 #define __uint32_t uint32_t
11387 _ACEOF
11391 ac_fn_c_check_type "$LINENO" "__int64_t" "ac_cv_type___int64_t" "$ac_includes_default"
11392 if test "x$ac_cv_type___int64_t" = xyes; then :
11394 else
11396 cat >>confdefs.h <<_ACEOF
11397 #define __int64_t int64_t
11398 _ACEOF
11402 ac_fn_c_check_type "$LINENO" "__uint64_t" "ac_cv_type___uint64_t" "$ac_includes_default"
11403 if test "x$ac_cv_type___uint64_t" = xyes; then :
11405 else
11407 cat >>confdefs.h <<_ACEOF
11408 #define __uint64_t uint64_t
11409 _ACEOF
11413 ac_fn_c_check_type "$LINENO" "uint_t" "ac_cv_type_uint_t" "$ac_includes_default"
11414 if test "x$ac_cv_type_uint_t" = xyes; then :
11416 else
11418 cat >>confdefs.h <<_ACEOF
11419 #define uint_t u_int32_t
11420 _ACEOF
11424 else
11425 ac_fn_c_check_type "$LINENO" "__int32_t" "ac_cv_type___int32_t" "$ac_includes_default"
11426 if test "x$ac_cv_type___int32_t" = xyes; then :
11428 else
11430 cat >>confdefs.h <<_ACEOF
11431 #define __int32_t int
11432 _ACEOF
11436 ac_fn_c_check_type "$LINENO" "__uint32_t" "ac_cv_type___uint32_t" "$ac_includes_default"
11437 if test "x$ac_cv_type___uint32_t" = xyes; then :
11439 else
11441 cat >>confdefs.h <<_ACEOF
11442 #define __uint32_t unsigned int
11443 _ACEOF
11447 ac_fn_c_check_type "$LINENO" "__int64_t" "ac_cv_type___int64_t" "$ac_includes_default"
11448 if test "x$ac_cv_type___int64_t" = xyes; then :
11450 else
11452 cat >>confdefs.h <<_ACEOF
11453 #define __int64_t long long
11454 _ACEOF
11458 ac_fn_c_check_type "$LINENO" "__uint64_t" "ac_cv_type___uint64_t" "$ac_includes_default"
11459 if test "x$ac_cv_type___uint64_t" = xyes; then :
11461 else
11463 cat >>confdefs.h <<_ACEOF
11464 #define __uint64_t unsigned long long
11465 _ACEOF
11469 ac_fn_c_check_type "$LINENO" "uint_t" "ac_cv_type_uint_t" "$ac_includes_default"
11470 if test "x$ac_cv_type_uint_t" = xyes; then :
11472 else
11474 cat >>confdefs.h <<_ACEOF
11475 #define uint_t unsigned int
11476 _ACEOF
11482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __psint_t " >&5
11483 $as_echo_n "checking for __psint_t ... " >&6; }
11484 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11485 /* end confdefs.h. */
11487 #include <sys/types.h>
11488 #include <stdlib.h>
11489 #include <stddef.h>
11492 main ()
11494 __psint_t psint;
11496 return 0;
11498 _ACEOF
11499 if ac_fn_c_try_compile "$LINENO"; then :
11501 $as_echo "#define HAVE___PSINT_T 1" >>confdefs.h
11502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11503 $as_echo "yes" >&6; }
11504 else
11505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11506 $as_echo "no" >&6; }
11508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ptrdiff_t " >&5
11511 $as_echo_n "checking for ptrdiff_t ... " >&6; }
11512 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11513 /* end confdefs.h. */
11515 #include <stddef.h>
11516 #ifdef HAVE_MALLOC_H
11517 #include <malloc.h>
11518 #endif
11521 main ()
11523 ptrdiff_t ptrdiff;
11525 return 0;
11527 _ACEOF
11528 if ac_fn_c_try_compile "$LINENO"; then :
11530 $as_echo "#define HAVE_PTRDIFF_T 1" >>confdefs.h
11531 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11532 $as_echo "yes" >&6; }
11533 else
11534 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11535 $as_echo "no" >&6; }
11537 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11539 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t " >&5
11540 $as_echo_n "checking for uid_t ... " >&6; }
11541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11542 /* end confdefs.h. */
11544 #include <sys/types.h>
11545 #ifdef HAVE_PWD_H
11546 #include <pwd.h>
11547 #endif
11550 main ()
11552 uid_t uid;
11554 return 0;
11556 _ACEOF
11557 if ac_fn_c_try_compile "$LINENO"; then :
11559 $as_echo "#define HAVE_UID_T 1" >>confdefs.h
11560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11561 $as_echo "yes" >&6; }
11562 else
11563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11564 $as_echo "no" >&6; }
11566 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gid_t " >&5
11568 $as_echo_n "checking for gid_t ... " >&6; }
11569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11570 /* end confdefs.h. */
11572 #include <sys/types.h>
11573 #ifdef HAVE_GRP_H
11574 #include <grp.h>
11575 #endif
11578 main ()
11580 gid_t gid;
11582 return 0;
11584 _ACEOF
11585 if ac_fn_c_try_compile "$LINENO"; then :
11587 $as_echo "#define HAVE_GID_T 1" >>confdefs.h
11588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11589 $as_echo "yes" >&6; }
11590 else
11591 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11592 $as_echo "no" >&6; }
11594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SID " >&5
11596 $as_echo_n "checking for SID ... " >&6; }
11597 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11598 /* end confdefs.h. */
11600 #ifdef HAVE_WINDOWS_H
11601 #include <windows.h>
11602 #endif
11605 main ()
11607 SID sid;
11609 return 0;
11611 _ACEOF
11612 if ac_fn_c_try_compile "$LINENO"; then :
11614 $as_echo "#define HAVE_SID 1" >>confdefs.h
11615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11616 $as_echo "yes" >&6; }
11617 else
11618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11619 $as_echo "no" >&6; }
11621 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t " >&5
11624 $as_echo_n "checking for socklen_t ... " >&6; }
11625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11626 /* end confdefs.h. */
11628 #include <sys/types.h>
11629 #ifdef HAVE_SYS_SOCKET_H
11630 #include <sys/socket.h>
11631 #endif
11634 main ()
11636 socklen_t len;
11638 return 0;
11640 _ACEOF
11641 if ac_fn_c_try_compile "$LINENO"; then :
11643 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
11644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11645 $as_echo "yes" >&6; }
11646 else
11647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11648 $as_echo "no" >&6; }
11650 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11652 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11653 /* end confdefs.h. */
11655 #include <stdio.h>
11658 main ()
11660 long long x = 0LL;
11662 return 0;
11664 _ACEOF
11665 if ac_fn_c_try_compile "$LINENO"; then :
11667 $as_echo "#define HAVE_CONST_LONGLONG 1" >>confdefs.h
11670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11672 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11673 /* end confdefs.h. */
11675 #include <stdlib.h>
11676 #include <unistd.h>
11679 main ()
11681 char **x = _environ;
11683 return 0;
11685 _ACEOF
11686 if ac_fn_c_try_link "$LINENO"; then :
11688 $as_echo "#define HAVE_UNDERBAR_ENVIRON 1" >>confdefs.h
11691 rm -f core conftest.err conftest.$ac_objext \
11692 conftest$ac_exeext conftest.$ac_ext
11694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PR_TERMCHILD constant in sys/prctl.h" >&5
11695 $as_echo_n "checking for PR_TERMCHILD constant in sys/prctl.h... " >&6; }
11696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11697 /* end confdefs.h. */
11699 #ifdef HAVE_SYS_PRCTL_H
11700 #include <sys/prctl.h>
11701 #endif
11704 main ()
11706 int i = PR_TERMCHILD;
11708 return 0;
11710 _ACEOF
11711 if ac_fn_c_try_compile "$LINENO"; then :
11713 $as_echo "#define HAVE_PR_TERMCHILD 1" >>confdefs.h
11714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11715 $as_echo "yes" >&6; }
11716 else
11717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11718 $as_echo "no" >&6; }
11720 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11722 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PR_SET_PDEATHSIG constant in sys/prctl.h" >&5
11723 $as_echo_n "checking for PR_SET_PDEATHSIG constant in sys/prctl.h... " >&6; }
11724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11725 /* end confdefs.h. */
11727 #ifdef HAVE_SYS_PRCTL_H
11728 #include <sys/prctl.h>
11729 #endif
11732 main ()
11734 int i = PR_SET_PDEATHSIG;
11736 return 0;
11738 _ACEOF
11739 if ac_fn_c_try_compile "$LINENO"; then :
11741 $as_echo "#define HAVE_PR_SET_PDEATHSIG 1" >>confdefs.h
11742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11743 $as_echo "yes" >&6; }
11744 else
11745 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11746 $as_echo "no" >&6; }
11748 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11750 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
11751 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
11752 if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false; then :
11753 $as_echo_n "(cached) " >&6
11754 else
11755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11756 /* end confdefs.h. */
11757 #include <sys/types.h>
11758 #include <termios.h>
11759 #ifdef TIOCGWINSZ
11761 #endif
11763 _ACEOF
11764 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11765 $EGREP "yes" >/dev/null 2>&1; then :
11766 ac_cv_sys_tiocgwinsz_in_termios_h=yes
11767 else
11768 ac_cv_sys_tiocgwinsz_in_termios_h=no
11770 rm -f conftest*
11773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
11774 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
11776 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
11777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
11778 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
11779 if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false; then :
11780 $as_echo_n "(cached) " >&6
11781 else
11782 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11783 /* end confdefs.h. */
11784 #include <sys/types.h>
11785 #include <sys/ioctl.h>
11786 #ifdef TIOCGWINSZ
11788 #endif
11790 _ACEOF
11791 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11792 $EGREP "yes" >/dev/null 2>&1; then :
11793 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
11794 else
11795 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
11797 rm -f conftest*
11800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
11801 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
11803 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
11805 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
11811 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports -rdynamic" >&5
11812 $as_echo_n "checking if linker supports -rdynamic... " >&6; }
11813 save_CFLAGS="$CFLAGS"
11814 CFLAGS="-rdynamic"
11815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11816 /* end confdefs.h. */
11819 main ()
11823 return 0;
11825 _ACEOF
11826 if ac_fn_c_try_link "$LINENO"; then :
11827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11828 $as_echo "yes" >&6; }
11829 rdynamic_flag=-rdynamic
11830 else
11831 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11832 $as_echo "no" >&6; }
11833 rdynamic_flag=
11836 rm -f core conftest.err conftest.$ac_objext \
11837 conftest$ac_exeext conftest.$ac_ext
11838 CFLAGS="$save_CFLAGS"
11842 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether const arg for scandir() select method" >&5
11843 $as_echo_n "checking whether const arg for scandir() select method... " >&6; }
11844 cat <<End-of-File >conftest.c
11845 #include <stdlib.h>
11846 #include <unistd.h>
11847 #include <dirent.h>
11848 static int
11849 my_select(const struct dirent *foo) { return 0; }
11850 int main() { struct dirent **list; return scandir(".", &list, my_select, NULL); }
11851 End-of-File
11852 (eval $ac_compile) 2>conftest.out
11853 cat conftest.out >&5
11854 if test -s conftest.out
11855 then
11856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11857 $as_echo "no" >&6; }
11858 else
11860 $as_echo "#define HAVE_CONST_DIRENT 1" >>confdefs.h
11862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11863 $as_echo "yes" >&6; }
11865 rm -f conftest.*
11867 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct dirent has a d_off field" >&5
11868 $as_echo_n "checking whether struct dirent has a d_off field... " >&6; }
11869 cat <<End-of-File >conftest.c
11870 #include <stdlib.h>
11871 #include <unistd.h>
11872 #include <dirent.h>
11873 int main() { struct dirent d; d.d_off = 0; }
11874 End-of-File
11875 (eval $ac_compile) 2>conftest.out
11876 cat conftest.out >&5
11877 if test -s conftest.out
11878 then
11879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11880 $as_echo "no" >&6; }
11881 else
11883 $as_echo "#define HAVE_DIRENT_D_OFF 1" >>confdefs.h
11885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11886 $as_echo "yes" >&6; }
11888 rm -f conftest.*
11890 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if printf %p produces 0x prefix" >&5
11891 $as_echo_n "checking if printf %p produces 0x prefix... " >&6; }
11892 if test "$cross_compiling" = "yes"; then
11893 ans=$printf_p_prefix
11894 echo "cross-compile -> \"$ans\"" >&5
11895 else
11896 cat <<End-of-File >conftest.c
11897 #include <stdio.h>
11898 int main(int argc, char **argv) { printf("%p", argv); return(0); }
11899 End-of-File
11900 (eval $ac_compile) 2>&5
11901 (eval $ac_link) 2>&5
11902 ans=`./conftest`
11903 echo "./conftest -> \"$ans\"" >&5
11905 case "$ans"
11907 0x*)
11909 $as_echo "#define HAVE_PRINTF_P_PFX 1" >>confdefs.h
11911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11912 $as_echo "yes" >&6; }
11915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11916 $as_echo "no" >&6; }
11918 esac
11919 rm -rf conftest conftest.*
11921 _do_type()
11923 # need to deal with this sort of cpp output ...
11924 # typedef long pid_t;
11925 # typedef unsigned int pid_t;
11926 # typedef unsigned int pid_t __attribute__ ((__mode__ (__SI__)));
11927 # __extension__ typedef int pid_t;
11928 # typedef foo_t
11929 # pid_t;
11930 # typedef struct {
11931 # ....
11932 # } pid_t;
11933 # typedef ... *pid;
11934 # and chaining of the form
11935 # typedef long __pid_t;
11936 # typedef __pid_t pid_t;
11938 _raw=`$CPP conftest.c \
11939 | $SED \
11940 -e 's/[ ]__attribute__ ((.*));/;/' \
11941 -e 's/__extension__[ ][ ]*//' \
11942 | $AWK '
11943 /bozo/ { print; next }
11944 $1 == "typedef" { printf "%s",$0
11945 if ($NF ~ /;$/) {
11946 print ""
11947 next
11949 wantsemi = 1
11950 if ($0 ~ /{/) depth = 1
11951 next
11953 wantsemi == 1 { printf " %s",$0
11954 if ($0 ~ /{/) depth++
11955 if (depth) {
11956 if ($0 ~ /}/) depth--
11957 if (depth > 0) next
11959 if ($NF ~ /;$/) {
11960 print ""
11961 wantsemi = 0
11962 next
11964 }' \
11965 | $SED \
11966 -e 's/\*/* /g' \
11967 -e 's/^[ ]*//' \
11968 -e 's/;[ ]*$//' \
11969 | $AWK '
11970 $1 == "typedef" { map[$NF] = ""
11971 for (i = 2; i < NF; i++) {
11972 if (i == 2)
11973 map[$NF] = $i
11974 else
11975 map[$NF] = map[$NF] " " $i
11977 print $NF " -> " map[$NF] >"conftest.debug"
11978 next
11980 $2 == "bozo" { t = $1
11981 printf "best guess: %s",t >"conftest.debug"
11982 while (map[t] != "") {
11983 t = map[t]
11984 printf " -> %s",t >"conftest.debug"
11986 print "" >"conftest.debug"
11987 print t
11988 exit
11990 case "$_raw"
11992 int)
11993 _fmt='"d"'
11995 unsigned|'unsigned int')
11996 _fmt='"u"'
11998 long|'long int')
11999 _fmt='"ld"'
12001 'long long'|'long long int')
12002 if test $target_os = mingw; then
12003 _fmt='"I64d"'
12004 else
12005 _fmt='"lld"'
12008 'unsigned long'|'unsigned long int'|'long unsigned int')
12009 _fmt='"lu"'
12011 'unsigned long long'|'unsigned long long int')
12012 if test $target_os = mingw; then
12013 _fmt='"I64u"'
12014 else
12015 _fmt='"llu"'
12018 *\*) # pointer to a something
12019 _fmt='"p"'
12021 struct\ *) # not much can be done here ...
12022 _fmt='"p"'
12025 echo
12026 echo "FATAL ERROR: don't know what to do with type \"$_raw\""
12027 echo "... typedef mapping ..."
12028 cat conftest.debug
12029 rm -rf conftest conftest.*
12030 exit 1
12032 esac
12035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking printf type for pid_t" >&5
12036 $as_echo_n "checking printf type for pid_t... " >&6; }
12037 if test "$cross_compiling" = "yes"; then
12038 ans=$printf_fmt_pid
12039 echo "cross-compile -> \"$ans\"" >&5
12040 fmt_pid="$ans"
12041 else
12042 cat <<End-of-File >conftest.c
12043 #include <sys/types.h>
12044 #include <unistd.h>
12045 pid_t bozo;
12046 End-of-File
12047 _do_type
12048 fmt_pid="$_fmt"
12050 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fmt_pid" >&5
12051 $as_echo "$fmt_pid" >&6; }
12053 rm -rf conftest.c conftest.debug
12055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking printf type for int64_t " >&5
12056 $as_echo_n "checking printf type for int64_t ... " >&6; }
12057 if test "$cross_compiling" = "yes"; then
12058 ans=$printf_fmt_int64
12059 echo "cross-compile -> \"$ans\"" >&5
12060 else
12061 cat <<End-of-File >conftest.c
12062 #include <stdio.h>
12063 #include <stdint.h>
12064 #include <inttypes.h>
12065 int main()
12067 printf("\"%s\"\n", __PRI64_PREFIX "d");
12068 return(0);
12070 End-of-File
12071 ans=''
12072 (eval $ac_link) 2>&5
12073 if test -x ./conftest
12074 then
12075 ans=`./conftest`
12076 echo "./conftest -> \"$ans\"" >&5
12078 if test -z "$ans"
12079 then
12080 cat <<End-of-File >conftest.c
12081 #include <stdio.h>
12082 #include <stdint.h>
12083 #include <string.h>
12084 int main()
12086 char buf[17];
12087 int64_t bozo = 0x12345678abcdLL;
12088 sprintf(buf, "%lx", bozo);
12089 if (strcmp(buf, "12345678abcd") == 0)
12090 printf("\"ld\"\n");
12091 else {
12092 sprintf(buf, "%llx", bozo);
12093 if (strcmp(buf, "12345678abcd") == 0)
12094 printf("\"lld\"\n");
12096 return(0);
12098 End-of-File
12099 (eval $ac_link) 2>&5
12100 if test -x ./conftest
12101 then
12102 ans=`./conftest`
12103 echo "./conftest -> \"$ans\"" >&5
12107 if test -z "$ans"
12108 then
12109 echo 'FATAL ERROR: Cannot determine printf format for int64_t type'
12110 rm -rf conftest conftest.*
12111 exit 1
12113 fmt_int64="$ans"
12114 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$fmt_int64\"" >&5
12115 $as_echo "\"$fmt_int64\"" >&6; }
12117 fmt_uint64=`echo $fmt_int64 | sed -e 's/d"/u"/'`
12119 rm -rf conftest.* conftest
12121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking strtol or strtoll for int64_t" >&5
12122 $as_echo_n "checking strtol or strtoll for int64_t... " >&6; }
12123 if test "$cross_compiling" = "yes"; then
12124 ans=$strtoint64
12125 echo "cross-compile -> \"$ans\"" >&5
12126 else
12127 cat <<End-of-File >conftest.c
12128 #include <stdio.h>
12129 #include <stdlib.h>
12130 main()
12132 long long int value = -1;
12133 value = strtol("1234567812345678", NULL, 16);
12134 if (value == 0x1234567812345678LL) {
12135 printf("strotol\n");
12136 exit(0);
12138 value = strtoll("1234567812345678", NULL, 16);
12139 if (value == 0x1234567812345678LL) {
12140 printf("strtoll\n");
12141 exit(0);
12143 exit(1);
12145 End-of-File
12146 (eval $ac_compile) 2>&5
12147 (eval $ac_link) 2>&5
12148 ans=`./conftest`
12149 echo "./conftest -> \"$ans\"" >&5
12151 case "$ans"
12153 strtol)
12154 $as_echo "#define strtoint64 strtol" >>confdefs.h
12156 $as_echo "#define strtouint64 strtoul" >>confdefs.h
12158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: strtol" >&5
12159 $as_echo "strtol" >&6; }
12161 strtoll)
12162 $as_echo "#define strtoint64 strtoll" >>confdefs.h
12164 $as_echo "#define strtouint64 strtoull" >>confdefs.h
12166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: strtoll" >&5
12167 $as_echo "strtoll" >&6; }
12170 $as_echo "#define strtoint64 strtoll" >>confdefs.h
12172 $as_echo "#define strtouint64 strtoull" >>confdefs.h
12174 { $as_echo "$as_me:${as_lineno-$LINENO}: result: assuming strtoll" >&5
12175 $as_echo "assuming strtoll" >&6; }
12177 esac
12178 rm -rf conftest conftest.*
12180 if test "$do_threads" = "check" -o "$do_threads" = "yes"
12181 then
12182 for ac_header in pthread.h
12183 do :
12184 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
12185 if test "x$ac_cv_header_pthread_h" = xyes; then :
12186 cat >>confdefs.h <<_ACEOF
12187 #define HAVE_PTHREAD_H 1
12188 _ACEOF
12190 else
12192 if test "$do_threads" = "yes"
12193 then
12194 as_fn_error $? "cannot enable multi-threaded mode - no pthread.h" "$LINENO" 5
12199 done
12202 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_t in pthread.h" >&5
12203 $as_echo_n "checking for pthread_mutex_t in pthread.h... " >&6; }
12204 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12205 /* end confdefs.h. */
12206 #include <pthread.h>
12208 main ()
12210 pthread_mutex_t mymutex;
12212 return 0;
12214 _ACEOF
12215 if ac_fn_c_try_compile "$LINENO"; then :
12217 $as_echo "#define HAVE_PTHREAD_MUTEX_T 1" >>confdefs.h
12218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12219 $as_echo "yes" >&6; }
12220 else
12222 if test "$do_threads" = "yes"
12223 then
12224 as_fn_error $? "cannot enable multi-threaded mode - no mutexes" "$LINENO" 5
12225 else
12226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12227 $as_echo "no" >&6; }
12231 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12233 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where pthread_create() is defined" >&5
12234 $as_echo_n "checking where pthread_create() is defined... " >&6; }
12235 for cand in "" pthreads pthread ; do
12236 savedLIBS=$LIBS
12237 if test -n "$cand"
12238 then
12239 LIBS=`echo $LIBS -l$cand`
12241 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12242 /* end confdefs.h. */
12244 #include <pthread.h>
12247 main ()
12250 pthread_create(NULL, NULL, NULL, NULL);
12253 return 0;
12255 _ACEOF
12256 if ac_fn_c_try_link "$LINENO"; then :
12257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: lib${cand:-c}" >&5
12258 $as_echo "lib${cand:-c}" >&6; }
12259 if test -z "$cand"
12260 then
12261 lib_for_pthreads="$cand"
12262 else
12263 lib_for_pthreads="-l$cand"
12265 LIBS=$savedLIBS
12266 break
12268 rm -f core conftest.err conftest.$ac_objext \
12269 conftest$ac_exeext conftest.$ac_ext
12270 LIBS=$savedLIBS
12271 done
12274 if test "$ac_cv_header_pthread_h" = "yes"
12275 then
12276 { $as_echo "$as_me:${as_lineno-$LINENO}: checking printf type for pthread_t" >&5
12277 $as_echo_n "checking printf type for pthread_t... " >&6; }
12278 cat <<End-of-File >conftest.c
12279 #include <pthread.h>
12280 pthread_t bozo;
12281 End-of-File
12282 _do_type
12283 fmt_pthread="$_fmt"
12284 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fmt_pthread" >&5
12285 $as_echo "$fmt_pthread" >&6; }
12287 rm -rf conftest.c conftest.debug
12289 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports __thread" >&5
12290 $as_echo_n "checking if compiler supports __thread... " >&6; }
12291 if test $target_os = netbsd
12292 then
12293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12294 /* end confdefs.h. */
12295 #include <pthread.h>
12296 #if __GNUC__ < 4 || ( __GNUC__ == 4 && __GNUC_MINOR__ < 5 )
12297 broken!
12298 #else
12299 __thread int x;
12300 #endif
12302 main ()
12306 return 0;
12308 _ACEOF
12309 if ac_fn_c_try_compile "$LINENO"; then :
12311 $as_echo "#define HAVE___THREAD 1" >>confdefs.h
12312 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12313 $as_echo "yes" >&6; }
12314 else
12315 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12316 $as_echo "no" >&6; }
12318 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12319 else
12320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12321 /* end confdefs.h. */
12322 #include <pthread.h>
12323 __thread int x;
12325 main ()
12329 return 0;
12331 _ACEOF
12332 if ac_fn_c_try_compile "$LINENO"; then :
12334 $as_echo "#define HAVE___THREAD 1" >>confdefs.h
12335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12336 $as_echo "yes" >&6; }
12337 else
12338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12339 $as_echo "no" >&6; }
12341 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_barrier_t in pthread.h" >&5
12345 $as_echo_n "checking for pthread_barrier_t in pthread.h... " >&6; }
12346 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12347 /* end confdefs.h. */
12348 #include <pthread.h>
12350 main ()
12352 pthread_barrier_t mybarrier;
12354 return 0;
12356 _ACEOF
12357 if ac_fn_c_try_compile "$LINENO"; then :
12359 $as_echo "#define HAVE_PTHREAD_BARRIER_T 1" >>confdefs.h
12360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12361 $as_echo "yes" >&6; }
12362 else
12363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12364 $as_echo "no" >&6; }
12366 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12370 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sizeof suseconds_t" >&5
12371 $as_echo_n "checking sizeof suseconds_t... " >&6; }
12372 if test "$cross_compiling" = "yes"; then
12373 ans=$sizeof_suseconds_t
12374 echo "cross-compile -> \"$ans\"" >&5
12375 else
12376 cat <<End-of-File >conftest.c
12377 #include <sys/time.h>
12378 main() { printf("%d", (int)sizeof(suseconds_t)); }
12379 End-of-File
12380 (eval $ac_compile) 2>&5
12381 (eval $ac_link) 2>&5
12382 ans=`./conftest`
12383 echo "./conftest -> \"$ans\"" >&5
12384 rm -rf conftest conftest.*
12386 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
12387 $as_echo "$ans" >&6; }
12389 cat >>confdefs.h <<_ACEOF
12390 #define SIZEOF_SUSECONDS_T $ans
12391 _ACEOF
12394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sizeof time_t" >&5
12395 $as_echo_n "checking sizeof time_t... " >&6; }
12396 if test "$cross_compiling" = "yes"; then
12397 ans=$sizeof_time_t
12398 echo "cross-compile -> \"$ans\"" >&5
12399 else
12400 cat <<End-of-File >conftest.c
12401 #include <sys/time.h>
12402 main() { printf("%d", (int)sizeof(time_t)); }
12403 End-of-File
12404 (eval $ac_compile) 2>&5
12405 (eval $ac_link) 2>&5
12406 ans=`./conftest`
12407 echo "./conftest -> \"$ans\"" >&5
12408 rm -rf conftest conftest.*
12410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
12411 $as_echo "$ans" >&6; }
12413 cat >>confdefs.h <<_ACEOF
12414 #define SIZEOF_TIME_T $ans
12415 _ACEOF
12418 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sizeof long" >&5
12419 $as_echo_n "checking sizeof long... " >&6; }
12420 if test "$cross_compiling" = "yes"; then
12421 ans=$sizeof_long
12422 echo "cross-compile -> \"$ans\"" >&5
12423 else
12424 cat <<End-of-File >conftest.c
12425 #include <stdio.h>
12426 main() { printf("%d", (int)sizeof(long)); }
12427 End-of-File
12428 (eval $ac_compile) 2>&5
12429 (eval $ac_link) 2>&5
12430 ans=`./conftest`
12431 echo "./conftest -> \"$ans\"" >&5
12433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
12434 $as_echo "$ans" >&6; }
12435 if test "$ans" = 4; then
12437 $as_echo "#define HAVE_32BIT_LONG 1" >>confdefs.h
12439 elif test "$ans" = 8; then
12441 $as_echo "#define HAVE_64BIT_LONG 1" >>confdefs.h
12443 else
12444 echo
12445 echo "FATAL ERROR: size of long is not 32 or 64 bits, cannot proceed."
12446 echo "sizeof(char *) -> $ans"
12447 rm -rf conftest conftest.*
12448 exit 1
12450 rm -rf conftest conftest.*
12452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sizeof pointer" >&5
12453 $as_echo_n "checking sizeof pointer... " >&6; }
12454 if test "$cross_compiling" = "yes"; then
12455 ans=$sizeof_pointer
12456 echo "cross-compile -> \"$ans\"" >&5
12457 else
12458 cat <<End-of-File >conftest.c
12459 #include <stdio.h>
12460 main() { printf("%d", (int)sizeof(char *)); }
12461 End-of-File
12462 (eval $ac_compile) 2>&5
12463 (eval $ac_link) 2>&5
12464 ans=`./conftest`
12465 echo "./conftest -> \"$ans\"" >&5
12467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
12468 $as_echo "$ans" >&6; }
12469 if test "$ans" = 4; then
12471 $as_echo "#define HAVE_32BIT_PTR 1" >>confdefs.h
12473 PCP_PTR_SIZE=32
12474 elif test "$ans" = 8; then
12476 $as_echo "#define HAVE_64BIT_PTR 1" >>confdefs.h
12478 PCP_PTR_SIZE=64
12479 else
12480 echo
12481 echo "FATAL ERROR: size of pointer is not 32 or 64 bits, cannot proceed."
12482 echo "sizeof(char *) -> $ans"
12483 rm -rf conftest conftest.*
12484 exit 1
12486 rm -rf conftest conftest.*
12488 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sizeof int" >&5
12489 $as_echo_n "checking sizeof int... " >&6; }
12490 if test "$cross_compiling" = "yes"; then
12491 ans=$sizeof_int
12492 echo "cross-compile -> \"$ans\"" >&5
12493 else
12494 cat <<End-of-File >conftest.c
12495 #include <stdio.h>
12496 main() { printf("%d", (int)sizeof(int)); }
12497 End-of-File
12498 (eval $ac_compile) 2>&5
12499 (eval $ac_link) 2>&5
12500 ans=`./conftest`
12501 echo "./conftest -> \"$ans\"" >&5
12503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
12504 $as_echo "$ans" >&6; }
12505 if test "$ans" != 4
12506 then
12507 echo
12508 echo "FATAL ERROR: sizeof(int) is not 32 bits, cannot proceed."
12509 echo "Note: 32-bit ints are assumed in the PCP external file formats and"
12510 echo " the over-the-wire PDU formats"
12511 rm -rf conftest conftest.*
12512 exit 1
12514 rm -rf conftest conftest.*
12516 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bit fields allocated left-to-right" >&5
12517 $as_echo_n "checking if bit fields allocated left-to-right... " >&6; }
12518 if test "$cross_compiling" = "yes"; then
12519 ans=$bit_field_scheme
12520 echo "cross-compile -> \"$ans\"" >&5
12521 else
12522 cat <<End-of-File >conftest.c
12523 union { struct { unsigned int b:4; unsigned int c:4; } a; int p; } u;
12524 main() { u.a.b = 1; u.a.c = 2; printf("%0*x", 2*sizeof(int), u.p); }
12525 End-of-File
12526 (eval $ac_compile) 2>&5
12527 (eval $ac_link) 2>&5
12528 ans=`./conftest`
12529 echo "./conftest -> \"$ans\"" >&5
12531 case "$ans"
12533 1200*|*0012)
12534 # left-to-right starting from MSB (SGI cc on MIPS), or
12535 # left-to-right ending at LSB
12537 $as_echo "#define HAVE_BITFIELDS_LTOR 1" >>confdefs.h
12539 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12540 $as_echo "yes" >&6; }
12542 2100*|*0021)
12543 # right-to-left ending at MSB, or
12544 # right-to-left starting from LSB (gcc in Intel)
12545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12546 $as_echo "no" >&6; }
12549 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
12550 $as_echo "unknown" >&6; }
12551 echo "FATAL ERROR: could not fathom your compiler's bit field allocation scheme"
12552 rm -f conftest conftest.*
12553 exit 1
12555 esac
12556 rm -rf conftest conftest.*
12558 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12559 /* end confdefs.h. */
12561 #include <stdlib.h>
12562 #include <unistd.h>
12565 main ()
12568 __uint64_t x = 0;
12569 double y = (double)x;
12572 return 0;
12574 _ACEOF
12575 if ac_fn_c_try_link "$LINENO"; then :
12577 $as_echo "#define HAVE_CAST_U64_DOUBLE 1" >>confdefs.h
12580 rm -f core conftest.err conftest.$ac_objext \
12581 conftest$ac_exeext conftest.$ac_ext
12583 for ac_func in basename
12584 do :
12585 ac_fn_c_check_func "$LINENO" "basename" "ac_cv_func_basename"
12586 if test "x$ac_cv_func_basename" = xyes; then :
12587 cat >>confdefs.h <<_ACEOF
12588 #define HAVE_BASENAME 1
12589 _ACEOF
12592 done
12594 if test $ac_cv_func_basename = yes
12595 then
12597 $as_echo "#define HAVE_BASENAME 1" >>confdefs.h
12600 $as_echo "#define HAVE_DIRNAME 1" >>confdefs.h
12602 lib_for_basename=""
12603 else
12604 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for basename in -lgen" >&5
12605 $as_echo_n "checking for basename in -lgen... " >&6; }
12606 if ${ac_cv_lib_gen_basename+:} false; then :
12607 $as_echo_n "(cached) " >&6
12608 else
12609 ac_check_lib_save_LIBS=$LIBS
12610 LIBS="-lgen $LIBS"
12611 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12612 /* end confdefs.h. */
12614 /* Override any GCC internal prototype to avoid an error.
12615 Use char because int might match the return type of a GCC
12616 builtin and then its argument prototype would still apply. */
12617 #ifdef __cplusplus
12618 extern "C"
12619 #endif
12620 char basename ();
12622 main ()
12624 return basename ();
12626 return 0;
12628 _ACEOF
12629 if ac_fn_c_try_link "$LINENO"; then :
12630 ac_cv_lib_gen_basename=yes
12631 else
12632 ac_cv_lib_gen_basename=no
12634 rm -f core conftest.err conftest.$ac_objext \
12635 conftest$ac_exeext conftest.$ac_ext
12636 LIBS=$ac_check_lib_save_LIBS
12638 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_basename" >&5
12639 $as_echo "$ac_cv_lib_gen_basename" >&6; }
12640 if test "x$ac_cv_lib_gen_basename" = xyes; then :
12641 cat >>confdefs.h <<_ACEOF
12642 #define HAVE_LIBGEN 1
12643 _ACEOF
12645 LIBS="-lgen $LIBS"
12649 if test $ac_cv_lib_gen_basename = yes
12650 then
12652 $as_echo "#define HAVE_BASENAME 1" >>confdefs.h
12655 $as_echo "#define HAVE_DIRNAME 1" >>confdefs.h
12657 lib_for_basename="-lgen"
12658 else
12659 lib_for_basename="-lpcp"
12664 lib_for_clock_gettime=
12665 for ac_func in clock_gettime
12666 do :
12667 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
12668 if test "x$ac_cv_func_clock_gettime" = xyes; then :
12669 cat >>confdefs.h <<_ACEOF
12670 #define HAVE_CLOCK_GETTIME 1
12671 _ACEOF
12674 done
12676 if test $ac_cv_func_clock_gettime = no
12677 then
12678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
12679 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
12680 if ${ac_cv_lib_rt_clock_gettime+:} false; then :
12681 $as_echo_n "(cached) " >&6
12682 else
12683 ac_check_lib_save_LIBS=$LIBS
12684 LIBS="-lrt $LIBS"
12685 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12686 /* end confdefs.h. */
12688 /* Override any GCC internal prototype to avoid an error.
12689 Use char because int might match the return type of a GCC
12690 builtin and then its argument prototype would still apply. */
12691 #ifdef __cplusplus
12692 extern "C"
12693 #endif
12694 char clock_gettime ();
12696 main ()
12698 return clock_gettime ();
12700 return 0;
12702 _ACEOF
12703 if ac_fn_c_try_link "$LINENO"; then :
12704 ac_cv_lib_rt_clock_gettime=yes
12705 else
12706 ac_cv_lib_rt_clock_gettime=no
12708 rm -f core conftest.err conftest.$ac_objext \
12709 conftest$ac_exeext conftest.$ac_ext
12710 LIBS=$ac_check_lib_save_LIBS
12712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
12713 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
12714 if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
12715 cat >>confdefs.h <<_ACEOF
12716 #define HAVE_LIBRT 1
12717 _ACEOF
12719 LIBS="-lrt $LIBS"
12723 if test $ac_cv_lib_rt_clock_gettime = yes
12724 then
12726 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
12728 lib_for_rt=-lrt
12733 lib_for_dlopen=
12734 for ac_func in dlopen
12735 do :
12736 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12737 if test "x$ac_cv_func_dlopen" = xyes; then :
12738 cat >>confdefs.h <<_ACEOF
12739 #define HAVE_DLOPEN 1
12740 _ACEOF
12743 done
12745 if test $ac_cv_func_dlopen = no
12746 then
12747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12748 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12749 if ${ac_cv_lib_dl_dlopen+:} false; then :
12750 $as_echo_n "(cached) " >&6
12751 else
12752 ac_check_lib_save_LIBS=$LIBS
12753 LIBS="-ldl $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. */
12760 #ifdef __cplusplus
12761 extern "C"
12762 #endif
12763 char dlopen ();
12765 main ()
12767 return dlopen ();
12769 return 0;
12771 _ACEOF
12772 if ac_fn_c_try_link "$LINENO"; then :
12773 ac_cv_lib_dl_dlopen=yes
12774 else
12775 ac_cv_lib_dl_dlopen=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_dl_dlopen" >&5
12782 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12783 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12784 cat >>confdefs.h <<_ACEOF
12785 #define HAVE_LIBDL 1
12786 _ACEOF
12788 LIBS="-ldl $LIBS"
12792 if test $ac_cv_lib_dl_dlopen = yes
12793 then
12795 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
12797 lib_for_dlopen=-ldl
12802 lib_for_math=
12803 for ac_func in flog10
12804 do :
12805 ac_fn_c_check_func "$LINENO" "flog10" "ac_cv_func_flog10"
12806 if test "x$ac_cv_func_flog10" = xyes; then :
12807 cat >>confdefs.h <<_ACEOF
12808 #define HAVE_FLOG10 1
12809 _ACEOF
12812 done
12814 if test $ac_cv_func_flog10 = no
12815 then
12816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flog10 in -lm" >&5
12817 $as_echo_n "checking for flog10 in -lm... " >&6; }
12818 if ${ac_cv_lib_m_flog10+:} false; then :
12819 $as_echo_n "(cached) " >&6
12820 else
12821 ac_check_lib_save_LIBS=$LIBS
12822 LIBS="-lm $LIBS"
12823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12824 /* end confdefs.h. */
12826 /* Override any GCC internal prototype to avoid an error.
12827 Use char because int might match the return type of a GCC
12828 builtin and then its argument prototype would still apply. */
12829 #ifdef __cplusplus
12830 extern "C"
12831 #endif
12832 char flog10 ();
12834 main ()
12836 return flog10 ();
12838 return 0;
12840 _ACEOF
12841 if ac_fn_c_try_link "$LINENO"; then :
12842 ac_cv_lib_m_flog10=yes
12843 else
12844 ac_cv_lib_m_flog10=no
12846 rm -f core conftest.err conftest.$ac_objext \
12847 conftest$ac_exeext conftest.$ac_ext
12848 LIBS=$ac_check_lib_save_LIBS
12850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_flog10" >&5
12851 $as_echo "$ac_cv_lib_m_flog10" >&6; }
12852 if test "x$ac_cv_lib_m_flog10" = xyes; then :
12853 cat >>confdefs.h <<_ACEOF
12854 #define HAVE_LIBM 1
12855 _ACEOF
12857 LIBS="-lm $LIBS"
12861 if test $ac_cv_lib_m_flog10 = yes
12862 then
12864 $as_echo "#define HAVE_FLOG10 1" >>confdefs.h
12866 lib_for_math=-lm
12868 else
12870 $as_echo "#define HAVE_FLOG10 1" >>confdefs.h
12873 for ac_func in pow
12874 do :
12875 ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
12876 if test "x$ac_cv_func_pow" = xyes; then :
12877 cat >>confdefs.h <<_ACEOF
12878 #define HAVE_POW 1
12879 _ACEOF
12882 done
12884 if test $ac_cv_func_pow = no
12885 then
12886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
12887 $as_echo_n "checking for pow in -lm... " >&6; }
12888 if ${ac_cv_lib_m_pow+:} false; then :
12889 $as_echo_n "(cached) " >&6
12890 else
12891 ac_check_lib_save_LIBS=$LIBS
12892 LIBS="-lm $LIBS"
12893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12894 /* end confdefs.h. */
12896 /* Override any GCC internal prototype to avoid an error.
12897 Use char because int might match the return type of a GCC
12898 builtin and then its argument prototype would still apply. */
12899 #ifdef __cplusplus
12900 extern "C"
12901 #endif
12902 char pow ();
12904 main ()
12906 return pow ();
12908 return 0;
12910 _ACEOF
12911 if ac_fn_c_try_link "$LINENO"; then :
12912 ac_cv_lib_m_pow=yes
12913 else
12914 ac_cv_lib_m_pow=no
12916 rm -f core conftest.err conftest.$ac_objext \
12917 conftest$ac_exeext conftest.$ac_ext
12918 LIBS=$ac_check_lib_save_LIBS
12920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
12921 $as_echo "$ac_cv_lib_m_pow" >&6; }
12922 if test "x$ac_cv_lib_m_pow" = xyes; then :
12923 cat >>confdefs.h <<_ACEOF
12924 #define HAVE_LIBM 1
12925 _ACEOF
12927 LIBS="-lm $LIBS"
12931 if test $ac_cv_lib_m_pow = yes
12932 then
12934 $as_echo "#define HAVE_POW 1" >>confdefs.h
12936 lib_for_math=-lm
12938 else
12940 $as_echo "#define HAVE_POW 1" >>confdefs.h
12943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpclassify()" >&5
12944 $as_echo_n "checking for fpclassify()... " >&6; }
12945 ac_cv_func_fpclassify=no
12946 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12947 /* end confdefs.h. */
12949 #include <math.h>
12952 main ()
12955 double x = 123.456;
12956 if (fpclassify(x) == FP_NAN) exit(1);
12959 return 0;
12961 _ACEOF
12962 if ac_fn_c_try_link "$LINENO"; then :
12963 ac_cv_func_fpclassify=yes
12965 rm -f core conftest.err conftest.$ac_objext \
12966 conftest$ac_exeext conftest.$ac_ext
12967 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fpclassify" >&5
12968 $as_echo "$ac_cv_func_fpclassify" >&6; }
12969 if test $ac_cv_func_fpclassify = no
12970 then
12971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpclassify() with -lm" >&5
12972 $as_echo_n "checking for fpclassify() with -lm... " >&6; }
12973 savedLIBS=$LIBS
12974 LIBS=-lm
12975 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12976 /* end confdefs.h. */
12978 #include <math.h>
12981 main ()
12984 double x = 123.456;
12985 if (fpclassify(x) == FP_NAN) exit(1);
12988 return 0;
12990 _ACEOF
12991 if ac_fn_c_try_link "$LINENO"; then :
12992 ac_cv_func_fpclassify=yes
12994 rm -f core conftest.err conftest.$ac_objext \
12995 conftest$ac_exeext conftest.$ac_ext
12996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fpclassify" >&5
12997 $as_echo "$ac_cv_func_fpclassify" >&6; }
12998 if test $ac_cv_func_fpclassify = yes
12999 then
13000 lib_for_math=-lm
13002 LIBS=$savedLIBS
13004 if test $ac_cv_func_fpclassify = yes
13005 then
13007 $as_echo "#define HAVE_FPCLASSIFY 1" >>confdefs.h
13009 else
13010 for ac_func in isnan
13011 do :
13012 ac_fn_c_check_func "$LINENO" "isnan" "ac_cv_func_isnan"
13013 if test "x$ac_cv_func_isnan" = xyes; then :
13014 cat >>confdefs.h <<_ACEOF
13015 #define HAVE_ISNAN 1
13016 _ACEOF
13019 done
13021 if test $ac_cv_func_isnan = no
13022 then
13023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan in -lm" >&5
13024 $as_echo_n "checking for isnan in -lm... " >&6; }
13025 if ${ac_cv_lib_m_isnan+:} false; then :
13026 $as_echo_n "(cached) " >&6
13027 else
13028 ac_check_lib_save_LIBS=$LIBS
13029 LIBS="-lm $LIBS"
13030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13031 /* end confdefs.h. */
13033 /* Override any GCC internal prototype to avoid an error.
13034 Use char because int might match the return type of a GCC
13035 builtin and then its argument prototype would still apply. */
13036 #ifdef __cplusplus
13037 extern "C"
13038 #endif
13039 char isnan ();
13041 main ()
13043 return isnan ();
13045 return 0;
13047 _ACEOF
13048 if ac_fn_c_try_link "$LINENO"; then :
13049 ac_cv_lib_m_isnan=yes
13050 else
13051 ac_cv_lib_m_isnan=no
13053 rm -f core conftest.err conftest.$ac_objext \
13054 conftest$ac_exeext conftest.$ac_ext
13055 LIBS=$ac_check_lib_save_LIBS
13057 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_isnan" >&5
13058 $as_echo "$ac_cv_lib_m_isnan" >&6; }
13059 if test "x$ac_cv_lib_m_isnan" = xyes; then :
13060 cat >>confdefs.h <<_ACEOF
13061 #define HAVE_LIBM 1
13062 _ACEOF
13064 LIBS="-lm $LIBS"
13068 if test $ac_cv_lib_m_isnan = yes
13069 then
13071 $as_echo "#define HAVE_ISNAN 1" >>confdefs.h
13073 lib_for_math=-lm
13076 for ac_func in isnanf
13077 do :
13078 ac_fn_c_check_func "$LINENO" "isnanf" "ac_cv_func_isnanf"
13079 if test "x$ac_cv_func_isnanf" = xyes; then :
13080 cat >>confdefs.h <<_ACEOF
13081 #define HAVE_ISNANF 1
13082 _ACEOF
13085 done
13087 if test $ac_cv_func_isnanf = no
13088 then
13089 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnanf in -lm" >&5
13090 $as_echo_n "checking for isnanf in -lm... " >&6; }
13091 if ${ac_cv_lib_m_isnanf+:} false; then :
13092 $as_echo_n "(cached) " >&6
13093 else
13094 ac_check_lib_save_LIBS=$LIBS
13095 LIBS="-lm $LIBS"
13096 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13097 /* end confdefs.h. */
13099 /* Override any GCC internal prototype to avoid an error.
13100 Use char because int might match the return type of a GCC
13101 builtin and then its argument prototype would still apply. */
13102 #ifdef __cplusplus
13103 extern "C"
13104 #endif
13105 char isnanf ();
13107 main ()
13109 return isnanf ();
13111 return 0;
13113 _ACEOF
13114 if ac_fn_c_try_link "$LINENO"; then :
13115 ac_cv_lib_m_isnanf=yes
13116 else
13117 ac_cv_lib_m_isnanf=no
13119 rm -f core conftest.err conftest.$ac_objext \
13120 conftest$ac_exeext conftest.$ac_ext
13121 LIBS=$ac_check_lib_save_LIBS
13123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_isnanf" >&5
13124 $as_echo "$ac_cv_lib_m_isnanf" >&6; }
13125 if test "x$ac_cv_lib_m_isnanf" = xyes; then :
13126 cat >>confdefs.h <<_ACEOF
13127 #define HAVE_LIBM 1
13128 _ACEOF
13130 LIBS="-lm $LIBS"
13134 if test $ac_cv_lib_m_isnanf = yes
13135 then
13137 $as_echo "#define HAVE_ISNANF 1" >>confdefs.h
13139 lib_for_math=-lm
13145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13146 /* end confdefs.h. */
13147 #include <signal.h>
13149 main ()
13151 SIG_PF x;
13153 return 0;
13155 _ACEOF
13156 if ac_fn_c_try_link "$LINENO"; then :
13158 $as_echo "#define HAVE_SIGPF 1" >>confdefs.h
13161 rm -f core conftest.err conftest.$ac_objext \
13162 conftest$ac_exeext conftest.$ac_ext
13164 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13165 /* end confdefs.h. */
13166 #include <signal.h>
13168 main ()
13170 int x = SA_SIGINFO;
13172 return 0;
13174 _ACEOF
13175 if ac_fn_c_try_link "$LINENO"; then :
13177 $as_echo "#define HAVE_SA_SIGINFO 1" >>confdefs.h
13180 rm -f core conftest.err conftest.$ac_objext \
13181 conftest$ac_exeext conftest.$ac_ext
13183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13184 /* end confdefs.h. */
13185 #include <signal.h>
13187 main ()
13189 int x = SIGPIPE;
13191 return 0;
13193 _ACEOF
13194 if ac_fn_c_try_link "$LINENO"; then :
13196 $as_echo "#define HAVE_SIGPIPE 1" >>confdefs.h
13199 rm -f core conftest.err conftest.$ac_objext \
13200 conftest$ac_exeext conftest.$ac_ext
13202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13203 /* end confdefs.h. */
13204 #include <signal.h>
13206 main ()
13208 int x = SIGHUP;
13210 return 0;
13212 _ACEOF
13213 if ac_fn_c_try_link "$LINENO"; then :
13215 $as_echo "#define HAVE_SIGHUP 1" >>confdefs.h
13218 rm -f core conftest.err conftest.$ac_objext \
13219 conftest$ac_exeext conftest.$ac_ext
13221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13222 /* end confdefs.h. */
13223 #include <signal.h>
13225 main ()
13227 int x = SIGBUS;
13229 return 0;
13231 _ACEOF
13232 if ac_fn_c_try_link "$LINENO"; then :
13234 $as_echo "#define HAVE_SIGBUS 1" >>confdefs.h
13237 rm -f core conftest.err conftest.$ac_objext \
13238 conftest$ac_exeext conftest.$ac_ext
13240 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13241 /* end confdefs.h. */
13242 #include <sys/wait.h>
13244 main ()
13246 typedef void (*SIGRET)(int);
13247 SIGRET x = SIG_IGN;
13250 return 0;
13252 _ACEOF
13253 if ac_fn_c_try_link "$LINENO"; then :
13255 $as_echo "#define HAVE_WAIT_INCLUDES_SIGNAL 1" >>confdefs.h
13258 rm -f core conftest.err conftest.$ac_objext \
13259 conftest$ac_exeext conftest.$ac_ext
13261 have_stat_type=false
13262 have_stat_name=false
13263 if test $have_stat_name = false
13264 then
13265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13266 /* end confdefs.h. */
13267 #include <sys/stat.h>
13269 _ACEOF
13270 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13271 $EGREP "[ ]st_mtimespec" >/dev/null 2>&1; then :
13272 have_stat_name=true;
13274 $as_echo "#define HAVE_ST_MTIME_WITH_SPEC 1" >>confdefs.h
13277 rm -f conftest*
13280 if test $have_stat_name = false -a $target_os != darwin -a $target_os != linux -a $target_os != kfreebsd -a $target_os != netbsd
13281 then
13282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13283 /* end confdefs.h. */
13284 #include <sys/stat.h>
13286 _ACEOF
13287 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13288 $EGREP "[ ]st_mtime" >/dev/null 2>&1; then :
13289 have_stat_name=true;
13291 $as_echo "#define HAVE_ST_MTIME_WITH_E 1" >>confdefs.h
13294 rm -f conftest*
13297 if test $have_stat_type = false
13298 then
13299 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13300 /* end confdefs.h. */
13301 #include <sys/stat.h>
13303 _ACEOF
13304 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13305 $EGREP "timestruc_t[ ][ ]*st_mtim" >/dev/null 2>&1; then :
13306 have_stat_type=true;
13308 $as_echo "#define HAVE_STAT_TIMESTRUC 1" >>confdefs.h
13311 rm -f conftest*
13314 if test $have_stat_type = false
13315 then
13316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13317 /* end confdefs.h. */
13318 #include <sys/stat.h>
13320 _ACEOF
13321 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13322 $EGREP "timespec_t[ ][ ]*st_mtim" >/dev/null 2>&1; then :
13323 have_stat_type=true;
13325 $as_echo "#define HAVE_STAT_TIMESPEC_T 1" >>confdefs.h
13328 rm -f conftest*
13331 if test $have_stat_type = false
13332 then
13333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13334 /* end confdefs.h. */
13335 #include <sys/stat.h>
13337 _ACEOF
13338 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13339 $EGREP "timespec[ ][ ]*st_mtim" >/dev/null 2>&1; then :
13340 have_stat_type=true;
13342 $as_echo "#define HAVE_STAT_TIMESPEC 1" >>confdefs.h
13345 rm -f conftest*
13348 if test $have_stat_type = false
13349 then
13350 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13351 /* end confdefs.h. */
13352 #include <sys/stat.h>
13354 _ACEOF
13355 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13356 $EGREP "time_t[ ][ ]*st_mtim" >/dev/null 2>&1; then :
13357 have_stat_type=true;
13359 $as_echo "#define HAVE_STAT_TIME_T 1" >>confdefs.h
13362 rm -f conftest*
13365 if test $have_stat_type = false
13366 then
13367 echo 'FATAL ERROR: Cannot determine struct stat time types.'
13368 rm -rf conftest conftest.*
13369 exit 1
13373 pcp_etc_dir=`eval echo $sysconfdir`
13374 pcp_etc_dir=`eval echo $pcp_etc_dir`
13376 pcp_saslconf_dir=`eval echo $sysconfdir/sasl2`
13377 pcp_saslconf_dir=`eval echo $pcp_saslconf_dir`
13379 pcp_sysconf_dir=`eval echo $sysconfdir/pcp`
13380 pcp_sysconf_dir=`eval echo $pcp_sysconf_dir`
13382 pcp_pmcdconf_path=$pcp_sysconf_dir/pmcd/pmcd.conf
13383 pcp_pmcdrclocal_path=$pcp_sysconf_dir/pmcd/rc.local
13384 pcp_pmcdoptions_path=$pcp_sysconf_dir/pmcd/pmcd.options
13385 pcp_pmwebdoptions_path=$pcp_sysconf_dir/pmwebd/pmwebd.options
13386 pcp_pmmgroptions_path=$pcp_sysconf_dir/pmmgr/pmmgr.options
13387 pcp_pmproxyoptions_path=$pcp_sysconf_dir/pmproxy/pmproxy.options
13388 pcp_pmiecontrol_path=$pcp_sysconf_dir/pmie/control
13389 pcp_pmsnapcontrol_path=$pcp_sysconf_dir/pmsnap/control
13390 pcp_pmloggercontrol_path=$pcp_sysconf_dir/pmlogger/control
13401 pcp_share_dir=`eval echo $datarootdir/pcp`
13402 pcp_share_dir=`eval echo $pcp_share_dir`
13405 pcp_binadm_dir=`eval echo $libexecdir/pcp/bin`
13406 pcp_binadm_dir=`eval echo $pcp_binadm_dir`
13409 pcp_var_dir=`eval echo $localstatedir/lib/pcp`
13410 pcp_var_dir=`eval echo $pcp_var_dir`
13414 # Check whether --with-configdir was given.
13415 if test "${with_configdir+set}" = set; then :
13416 withval=$with_configdir; pcp_config_dir=$withval
13417 else
13418 pcp_config_dir=$pcp_var_dir/config
13422 pcp_pmdas_dir=$pcp_var_dir/pmdas
13425 pcp_lib_dir=`eval echo $libdir`
13426 pcp_lib_dir=`eval echo $pcp_lib_dir`
13427 pcp_lib32_dir=`echo $pcp_lib_dir | sed -e s,64,, -e s,//,/,`
13432 # Check whether --with-perl_installdirs was given.
13433 if test "${with_perl_installdirs+set}" = set; then :
13434 withval=$with_perl_installdirs; perl_installdirs=$withval
13435 else
13436 perl_installdirs=vendor
13439 perl_installdirs=`eval echo $perl_installdirs`
13440 perl_installdirs=`eval echo $perl_installdirs`
13443 # Check whether --with-perl_install_base was given.
13444 if test "${with_perl_install_base+set}" = set; then :
13445 withval=$with_perl_install_base; perl_install_base=$withval
13446 else
13447 perl_install_base=$prefix
13450 perl_install_base=`eval echo $perl_install_base`
13451 perl_install_base=`eval echo $perl_install_base`
13455 # Check whether --with-python_prefix was given.
13456 if test "${with_python_prefix+set}" = set; then :
13457 withval=$with_python_prefix; python_prefix=$withval
13458 else
13459 python_prefix=$prefix
13462 python_prefix=`eval echo $python_prefix`
13463 python_prefix=`eval echo $python_prefix`
13466 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
13467 $as_echo_n "checking for X... " >&6; }
13470 # Check whether --with-x was given.
13471 if test "${with_x+set}" = set; then :
13472 withval=$with_x;
13475 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
13476 if test "x$with_x" = xno; then
13477 # The user explicitly disabled X.
13478 have_x=disabled
13479 else
13480 case $x_includes,$x_libraries in #(
13481 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
13482 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
13483 $as_echo_n "(cached) " >&6
13484 else
13485 # One or both of the vars are not set, and there is no cached value.
13486 ac_x_includes=no ac_x_libraries=no
13487 rm -f -r conftest.dir
13488 if mkdir conftest.dir; then
13489 cd conftest.dir
13490 cat >Imakefile <<'_ACEOF'
13491 incroot:
13492 @echo incroot='${INCROOT}'
13493 usrlibdir:
13494 @echo usrlibdir='${USRLIBDIR}'
13495 libdir:
13496 @echo libdir='${LIBDIR}'
13497 _ACEOF
13498 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
13499 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
13500 for ac_var in incroot usrlibdir libdir; do
13501 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
13502 done
13503 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
13504 for ac_extension in a so sl dylib la dll; do
13505 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
13506 test -f "$ac_im_libdir/libX11.$ac_extension"; then
13507 ac_im_usrlibdir=$ac_im_libdir; break
13509 done
13510 # Screen out bogus values from the imake configuration. They are
13511 # bogus both because they are the default anyway, and because
13512 # using them would break gcc on systems where it needs fixed includes.
13513 case $ac_im_incroot in
13514 /usr/include) ac_x_includes= ;;
13515 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
13516 esac
13517 case $ac_im_usrlibdir in
13518 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
13519 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
13520 esac
13522 cd ..
13523 rm -f -r conftest.dir
13526 # Standard set of common directories for X headers.
13527 # Check X11 before X11Rn because it is often a symlink to the current release.
13528 ac_x_header_dirs='
13529 /usr/X11/include
13530 /usr/X11R7/include
13531 /usr/X11R6/include
13532 /usr/X11R5/include
13533 /usr/X11R4/include
13535 /usr/include/X11
13536 /usr/include/X11R7
13537 /usr/include/X11R6
13538 /usr/include/X11R5
13539 /usr/include/X11R4
13541 /usr/local/X11/include
13542 /usr/local/X11R7/include
13543 /usr/local/X11R6/include
13544 /usr/local/X11R5/include
13545 /usr/local/X11R4/include
13547 /usr/local/include/X11
13548 /usr/local/include/X11R7
13549 /usr/local/include/X11R6
13550 /usr/local/include/X11R5
13551 /usr/local/include/X11R4
13553 /usr/X386/include
13554 /usr/x386/include
13555 /usr/XFree86/include/X11
13557 /usr/include
13558 /usr/local/include
13559 /usr/unsupported/include
13560 /usr/athena/include
13561 /usr/local/x11r5/include
13562 /usr/lpp/Xamples/include
13564 /usr/openwin/include
13565 /usr/openwin/share/include'
13567 if test "$ac_x_includes" = no; then
13568 # Guess where to find include files, by looking for Xlib.h.
13569 # First, try using that file with no special directory specified.
13570 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13571 /* end confdefs.h. */
13572 #include <X11/Xlib.h>
13573 _ACEOF
13574 if ac_fn_c_try_cpp "$LINENO"; then :
13575 # We can compile using X headers with no special include directory.
13576 ac_x_includes=
13577 else
13578 for ac_dir in $ac_x_header_dirs; do
13579 if test -r "$ac_dir/X11/Xlib.h"; then
13580 ac_x_includes=$ac_dir
13581 break
13583 done
13585 rm -f conftest.err conftest.i conftest.$ac_ext
13586 fi # $ac_x_includes = no
13588 if test "$ac_x_libraries" = no; then
13589 # Check for the libraries.
13590 # See if we find them without any special options.
13591 # Don't add to $LIBS permanently.
13592 ac_save_LIBS=$LIBS
13593 LIBS="-lX11 $LIBS"
13594 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13595 /* end confdefs.h. */
13596 #include <X11/Xlib.h>
13598 main ()
13600 XrmInitialize ()
13602 return 0;
13604 _ACEOF
13605 if ac_fn_c_try_link "$LINENO"; then :
13606 LIBS=$ac_save_LIBS
13607 # We can link X programs with no special library path.
13608 ac_x_libraries=
13609 else
13610 LIBS=$ac_save_LIBS
13611 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
13613 # Don't even attempt the hair of trying to link an X program!
13614 for ac_extension in a so sl dylib la dll; do
13615 if test -r "$ac_dir/libX11.$ac_extension"; then
13616 ac_x_libraries=$ac_dir
13617 break 2
13619 done
13620 done
13622 rm -f core conftest.err conftest.$ac_objext \
13623 conftest$ac_exeext conftest.$ac_ext
13624 fi # $ac_x_libraries = no
13626 case $ac_x_includes,$ac_x_libraries in #(
13627 no,* | *,no | *\'*)
13628 # Didn't find X, or a directory has "'" in its name.
13629 ac_cv_have_x="have_x=no";; #(
13631 # Record where we found X for the cache.
13632 ac_cv_have_x="have_x=yes\
13633 ac_x_includes='$ac_x_includes'\
13634 ac_x_libraries='$ac_x_libraries'"
13635 esac
13637 ;; #(
13638 *) have_x=yes;;
13639 esac
13640 eval "$ac_cv_have_x"
13641 fi # $with_x != no
13643 if test "$have_x" != yes; then
13644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
13645 $as_echo "$have_x" >&6; }
13646 no_x=yes
13647 else
13648 # If each of the values was on the command line, it overrides each guess.
13649 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
13650 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
13651 # Update the cache value to reflect the command line values.
13652 ac_cv_have_x="have_x=yes\
13653 ac_x_includes='$x_includes'\
13654 ac_x_libraries='$x_libraries'"
13655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
13656 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
13659 if test "$no_x" = yes; then
13660 # Not all programs may use this symbol, but it does not hurt to define it.
13662 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
13664 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
13665 else
13666 if test -n "$x_includes"; then
13667 X_CFLAGS="$X_CFLAGS -I$x_includes"
13670 # It would also be nice to do this for all -L options, not just this one.
13671 if test -n "$x_libraries"; then
13672 X_LIBS="$X_LIBS -L$x_libraries"
13673 # For Solaris; some versions of Sun CC require a space after -R and
13674 # others require no space. Words are not sufficient . . . .
13675 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
13676 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
13677 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
13678 ac_xsave_c_werror_flag=$ac_c_werror_flag
13679 ac_c_werror_flag=yes
13680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13681 /* end confdefs.h. */
13684 main ()
13688 return 0;
13690 _ACEOF
13691 if ac_fn_c_try_link "$LINENO"; then :
13692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13693 $as_echo "no" >&6; }
13694 X_LIBS="$X_LIBS -R$x_libraries"
13695 else
13696 LIBS="$ac_xsave_LIBS -R $x_libraries"
13697 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13698 /* end confdefs.h. */
13701 main ()
13705 return 0;
13707 _ACEOF
13708 if ac_fn_c_try_link "$LINENO"; then :
13709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13710 $as_echo "yes" >&6; }
13711 X_LIBS="$X_LIBS -R $x_libraries"
13712 else
13713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
13714 $as_echo "neither works" >&6; }
13716 rm -f core conftest.err conftest.$ac_objext \
13717 conftest$ac_exeext conftest.$ac_ext
13719 rm -f core conftest.err conftest.$ac_objext \
13720 conftest$ac_exeext conftest.$ac_ext
13721 ac_c_werror_flag=$ac_xsave_c_werror_flag
13722 LIBS=$ac_xsave_LIBS
13725 # Check for system-dependent libraries X programs must link with.
13726 # Do this before checking for the system-independent R6 libraries
13727 # (-lICE), since we may need -lsocket or whatever for X linking.
13729 if test "$ISC" = yes; then
13730 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
13731 else
13732 # Martyn Johnson says this is needed for Ultrix, if the X
13733 # libraries were built with DECnet support. And Karl Berry says
13734 # the Alpha needs dnet_stub (dnet does not exist).
13735 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
13736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13737 /* end confdefs.h. */
13739 /* Override any GCC internal prototype to avoid an error.
13740 Use char because int might match the return type of a GCC
13741 builtin and then its argument prototype would still apply. */
13742 #ifdef __cplusplus
13743 extern "C"
13744 #endif
13745 char XOpenDisplay ();
13747 main ()
13749 return XOpenDisplay ();
13751 return 0;
13753 _ACEOF
13754 if ac_fn_c_try_link "$LINENO"; then :
13756 else
13757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
13758 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
13759 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
13760 $as_echo_n "(cached) " >&6
13761 else
13762 ac_check_lib_save_LIBS=$LIBS
13763 LIBS="-ldnet $LIBS"
13764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13765 /* end confdefs.h. */
13767 /* Override any GCC internal prototype to avoid an error.
13768 Use char because int might match the return type of a GCC
13769 builtin and then its argument prototype would still apply. */
13770 #ifdef __cplusplus
13771 extern "C"
13772 #endif
13773 char dnet_ntoa ();
13775 main ()
13777 return dnet_ntoa ();
13779 return 0;
13781 _ACEOF
13782 if ac_fn_c_try_link "$LINENO"; then :
13783 ac_cv_lib_dnet_dnet_ntoa=yes
13784 else
13785 ac_cv_lib_dnet_dnet_ntoa=no
13787 rm -f core conftest.err conftest.$ac_objext \
13788 conftest$ac_exeext conftest.$ac_ext
13789 LIBS=$ac_check_lib_save_LIBS
13791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
13792 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
13793 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
13794 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
13797 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
13798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
13799 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
13800 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
13801 $as_echo_n "(cached) " >&6
13802 else
13803 ac_check_lib_save_LIBS=$LIBS
13804 LIBS="-ldnet_stub $LIBS"
13805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13806 /* end confdefs.h. */
13808 /* Override any GCC internal prototype to avoid an error.
13809 Use char because int might match the return type of a GCC
13810 builtin and then its argument prototype would still apply. */
13811 #ifdef __cplusplus
13812 extern "C"
13813 #endif
13814 char dnet_ntoa ();
13816 main ()
13818 return dnet_ntoa ();
13820 return 0;
13822 _ACEOF
13823 if ac_fn_c_try_link "$LINENO"; then :
13824 ac_cv_lib_dnet_stub_dnet_ntoa=yes
13825 else
13826 ac_cv_lib_dnet_stub_dnet_ntoa=no
13828 rm -f core conftest.err conftest.$ac_objext \
13829 conftest$ac_exeext conftest.$ac_ext
13830 LIBS=$ac_check_lib_save_LIBS
13832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
13833 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
13834 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
13835 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
13840 rm -f core conftest.err conftest.$ac_objext \
13841 conftest$ac_exeext conftest.$ac_ext
13842 LIBS="$ac_xsave_LIBS"
13844 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
13845 # to get the SysV transport functions.
13846 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
13847 # needs -lnsl.
13848 # The nsl library prevents programs from opening the X display
13849 # on Irix 5.2, according to T.E. Dickey.
13850 # The functions gethostbyname, getservbyname, and inet_addr are
13851 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
13852 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
13853 if test "x$ac_cv_func_gethostbyname" = xyes; then :
13857 if test $ac_cv_func_gethostbyname = no; then
13858 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
13859 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
13860 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
13861 $as_echo_n "(cached) " >&6
13862 else
13863 ac_check_lib_save_LIBS=$LIBS
13864 LIBS="-lnsl $LIBS"
13865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13866 /* end confdefs.h. */
13868 /* Override any GCC internal prototype to avoid an error.
13869 Use char because int might match the return type of a GCC
13870 builtin and then its argument prototype would still apply. */
13871 #ifdef __cplusplus
13872 extern "C"
13873 #endif
13874 char gethostbyname ();
13876 main ()
13878 return gethostbyname ();
13880 return 0;
13882 _ACEOF
13883 if ac_fn_c_try_link "$LINENO"; then :
13884 ac_cv_lib_nsl_gethostbyname=yes
13885 else
13886 ac_cv_lib_nsl_gethostbyname=no
13888 rm -f core conftest.err conftest.$ac_objext \
13889 conftest$ac_exeext conftest.$ac_ext
13890 LIBS=$ac_check_lib_save_LIBS
13892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
13893 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
13894 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
13895 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
13898 if test $ac_cv_lib_nsl_gethostbyname = no; then
13899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
13900 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
13901 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
13902 $as_echo_n "(cached) " >&6
13903 else
13904 ac_check_lib_save_LIBS=$LIBS
13905 LIBS="-lbsd $LIBS"
13906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13907 /* end confdefs.h. */
13909 /* Override any GCC internal prototype to avoid an error.
13910 Use char because int might match the return type of a GCC
13911 builtin and then its argument prototype would still apply. */
13912 #ifdef __cplusplus
13913 extern "C"
13914 #endif
13915 char gethostbyname ();
13917 main ()
13919 return gethostbyname ();
13921 return 0;
13923 _ACEOF
13924 if ac_fn_c_try_link "$LINENO"; then :
13925 ac_cv_lib_bsd_gethostbyname=yes
13926 else
13927 ac_cv_lib_bsd_gethostbyname=no
13929 rm -f core conftest.err conftest.$ac_objext \
13930 conftest$ac_exeext conftest.$ac_ext
13931 LIBS=$ac_check_lib_save_LIBS
13933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
13934 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
13935 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
13936 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
13942 # lieder@skyler.mavd.honeywell.com says without -lsocket,
13943 # socket/setsockopt and other routines are undefined under SCO ODT
13944 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
13945 # on later versions), says Simon Leinen: it contains gethostby*
13946 # variants that don't use the name server (or something). -lsocket
13947 # must be given before -lnsl if both are needed. We assume that
13948 # if connect needs -lnsl, so does gethostbyname.
13949 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
13950 if test "x$ac_cv_func_connect" = xyes; then :
13954 if test $ac_cv_func_connect = no; then
13955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
13956 $as_echo_n "checking for connect in -lsocket... " >&6; }
13957 if ${ac_cv_lib_socket_connect+:} false; then :
13958 $as_echo_n "(cached) " >&6
13959 else
13960 ac_check_lib_save_LIBS=$LIBS
13961 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
13962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13963 /* end confdefs.h. */
13965 /* Override any GCC internal prototype to avoid an error.
13966 Use char because int might match the return type of a GCC
13967 builtin and then its argument prototype would still apply. */
13968 #ifdef __cplusplus
13969 extern "C"
13970 #endif
13971 char connect ();
13973 main ()
13975 return connect ();
13977 return 0;
13979 _ACEOF
13980 if ac_fn_c_try_link "$LINENO"; then :
13981 ac_cv_lib_socket_connect=yes
13982 else
13983 ac_cv_lib_socket_connect=no
13985 rm -f core conftest.err conftest.$ac_objext \
13986 conftest$ac_exeext conftest.$ac_ext
13987 LIBS=$ac_check_lib_save_LIBS
13989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
13990 $as_echo "$ac_cv_lib_socket_connect" >&6; }
13991 if test "x$ac_cv_lib_socket_connect" = xyes; then :
13992 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
13997 # Guillermo Gomez says -lposix is necessary on A/UX.
13998 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
13999 if test "x$ac_cv_func_remove" = xyes; then :
14003 if test $ac_cv_func_remove = no; then
14004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
14005 $as_echo_n "checking for remove in -lposix... " >&6; }
14006 if ${ac_cv_lib_posix_remove+:} false; then :
14007 $as_echo_n "(cached) " >&6
14008 else
14009 ac_check_lib_save_LIBS=$LIBS
14010 LIBS="-lposix $LIBS"
14011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14012 /* end confdefs.h. */
14014 /* Override any GCC internal prototype to avoid an error.
14015 Use char because int might match the return type of a GCC
14016 builtin and then its argument prototype would still apply. */
14017 #ifdef __cplusplus
14018 extern "C"
14019 #endif
14020 char remove ();
14022 main ()
14024 return remove ();
14026 return 0;
14028 _ACEOF
14029 if ac_fn_c_try_link "$LINENO"; then :
14030 ac_cv_lib_posix_remove=yes
14031 else
14032 ac_cv_lib_posix_remove=no
14034 rm -f core conftest.err conftest.$ac_objext \
14035 conftest$ac_exeext conftest.$ac_ext
14036 LIBS=$ac_check_lib_save_LIBS
14038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
14039 $as_echo "$ac_cv_lib_posix_remove" >&6; }
14040 if test "x$ac_cv_lib_posix_remove" = xyes; then :
14041 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
14046 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
14047 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
14048 if test "x$ac_cv_func_shmat" = xyes; then :
14052 if test $ac_cv_func_shmat = no; then
14053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
14054 $as_echo_n "checking for shmat in -lipc... " >&6; }
14055 if ${ac_cv_lib_ipc_shmat+:} false; then :
14056 $as_echo_n "(cached) " >&6
14057 else
14058 ac_check_lib_save_LIBS=$LIBS
14059 LIBS="-lipc $LIBS"
14060 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14061 /* end confdefs.h. */
14063 /* Override any GCC internal prototype to avoid an error.
14064 Use char because int might match the return type of a GCC
14065 builtin and then its argument prototype would still apply. */
14066 #ifdef __cplusplus
14067 extern "C"
14068 #endif
14069 char shmat ();
14071 main ()
14073 return shmat ();
14075 return 0;
14077 _ACEOF
14078 if ac_fn_c_try_link "$LINENO"; then :
14079 ac_cv_lib_ipc_shmat=yes
14080 else
14081 ac_cv_lib_ipc_shmat=no
14083 rm -f core conftest.err conftest.$ac_objext \
14084 conftest$ac_exeext conftest.$ac_ext
14085 LIBS=$ac_check_lib_save_LIBS
14087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
14088 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
14089 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
14090 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
14096 # Check for libraries that X11R6 Xt/Xaw programs need.
14097 ac_save_LDFLAGS=$LDFLAGS
14098 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
14099 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
14100 # check for ICE first), but we must link in the order -lSM -lICE or
14101 # we get undefined symbols. So assume we have SM if we have ICE.
14102 # These have to be linked with before -lX11, unlike the other
14103 # libraries we check for below, so use a different variable.
14104 # John Interrante, Karl Berry
14105 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
14106 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
14107 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
14108 $as_echo_n "(cached) " >&6
14109 else
14110 ac_check_lib_save_LIBS=$LIBS
14111 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
14112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14113 /* end confdefs.h. */
14115 /* Override any GCC internal prototype to avoid an error.
14116 Use char because int might match the return type of a GCC
14117 builtin and then its argument prototype would still apply. */
14118 #ifdef __cplusplus
14119 extern "C"
14120 #endif
14121 char IceConnectionNumber ();
14123 main ()
14125 return IceConnectionNumber ();
14127 return 0;
14129 _ACEOF
14130 if ac_fn_c_try_link "$LINENO"; then :
14131 ac_cv_lib_ICE_IceConnectionNumber=yes
14132 else
14133 ac_cv_lib_ICE_IceConnectionNumber=no
14135 rm -f core conftest.err conftest.$ac_objext \
14136 conftest$ac_exeext conftest.$ac_ext
14137 LIBS=$ac_check_lib_save_LIBS
14139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
14140 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
14141 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
14142 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
14145 LDFLAGS=$ac_save_LDFLAGS
14149 pcp_x11_incflags=$X_CFLAGS
14151 pcp_x11_libflags=$X_LIBS
14153 pcp_x11_extra=$X_EXTRA_LIBS
14155 pcp_x11_pre=$X_PRE_LIBS
14158 have_manpages=false
14159 have_gzipped_manpages=false
14160 have_bzip2ed_manpages=false
14161 have_lzmaed_manpages=false
14162 have_xzed_manpages=false
14163 need_old_tbl_header=false
14164 man_header=
14165 pcp_man_dir=`eval echo $mandir`
14166 pcp_man_dir=`eval echo $pcp_man_dir`
14168 for d in /usr/man /usr/share/man $pcp_man_dir
14170 for sd in man1 sman1
14172 if test -f $d/$sd/man.1.gz
14173 then
14174 have_gzipped_manpages=true
14175 have_manpages=true
14176 man_header=`$ZIP -d < $d/$sd/man.1.gz | head -1`
14177 break
14178 elif test -f $d/$sd/man.1.bz2
14179 then
14180 have_bzip2ed_manpages=true
14181 have_manpages=true
14182 man_header=`$BZIP2 -d < $d/$sd/man.1.bz2 | head -1`
14183 break
14184 elif test -f $d/$sd/man.1.lzma
14185 then
14186 have_lzmaed_manpages=true
14187 have_manpages=true
14188 man_header=`$LZMA -d < $d/$sd/man.1.lzma | head -1`
14189 break
14190 elif test -f $d/$sd/man.1.xz
14191 then
14192 have_xzed_manpages=true
14193 have_manpages=true
14194 man_header=`$XZ -d < $d/$sd/man.1.xz | head -1`
14195 break
14196 elif test -f $d/$sd/man.1
14197 then
14198 man_header=`head -1 $d/$sd/man.1`
14199 have_manpages=true
14200 break
14202 done
14203 done
14204 if test x"$man_header" = "x'\\\" t" -o x"$man_header" = "x'\\\" te" ; then
14205 need_old_tbl_header=true
14215 pcp_bin_dir=`eval echo $bindir`
14216 pcp_bin_dir=`eval echo $pcp_bin_dir`
14219 pcp_sbin_dir=`eval echo $sbindir`
14220 pcp_sbin_dir=`eval echo $pcp_sbin_dir`
14223 pcp_inc_dir=`eval echo $includedir/pcp`
14224 pcp_inc_dir=`eval echo $pcp_inc_dir`
14227 if test $target_os = linux; then
14228 pcp_books_dir=`eval echo $datarootdir/doc/pcp-doc`
14229 else
14230 pcp_books_dir=`eval echo $datarootdir/doc/pcp`
14232 pcp_books_dir=`eval echo $pcp_books_dir`
14233 pcp_html_dir=`eval echo $pcp_books_dir/html`
14237 if test $target_os = linux; then
14238 pcp_icons_dir=`eval echo $datarootdir/pcp-gui/pixmaps`
14239 else
14240 pcp_icons_dir=`eval echo $datarootdir/pcp/pixmaps`
14242 pcp_icons_dir=`eval echo $pcp_icons_dir`
14245 pcp_desktop_dir=`eval echo $datarootdir/applications`
14246 pcp_desktop_dir=`eval echo $pcp_desktop_dir`
14250 # Check whether --with-rcdir was given.
14251 if test "${with_rcdir+set}" = set; then :
14252 withval=$with_rcdir; pcp_rc_dir=$withval
14253 else
14255 if $enable_systemd
14256 then
14257 pcp_rc_dir="$pcp_share_dir/lib"
14258 else
14259 pcp_rc_dir="$pcp_etc_dir/init.d"
14266 # Check whether --with-sysconfigdir was given.
14267 if test "${with_sysconfigdir+set}" = set; then :
14268 withval=$with_sysconfigdir; pcp_sysconfig_dir=$withval
14269 else
14270 pcp_sysconfig_dir=$pcp_etc_dir/sysconfig
14276 # Check whether --with-logdir was given.
14277 if test "${with_logdir+set}" = set; then :
14278 withval=$with_logdir; pcp_log_dir=$withval
14279 else
14280 pcp_log_dir=$localstatedir/log/pcp
14283 pcp_log_dir=`eval echo $pcp_log_dir`
14284 pcp_log_dir=`eval echo $pcp_log_dir`
14288 # Check whether --with-rundir was given.
14289 if test "${with_rundir+set}" = set; then :
14290 withval=$with_rundir; pcp_run_dir=$withval
14291 else
14292 pcp_run_dir=$localstatedir/run/pcp
14295 pcp_run_dir=`eval echo $pcp_run_dir`
14296 pcp_run_dir=`eval echo $pcp_run_dir`
14300 # Check whether --with-tmpdir was given.
14301 if test "${with_tmpdir+set}" = set; then :
14302 withval=$with_tmpdir; pcp_tmpfile_dir=$withval
14303 else
14304 pcp_tmpfile_dir=$localstatedir/tmp
14307 pcp_tmpfile_dir=`eval echo $pcp_tmpfile_dir`
14308 pcp_tmpfile_dir=`eval echo $pcp_tmpfile_dir`
14311 pcp_tmp_dir=`eval echo $pcp_var_dir/tmp`
14315 # Check whether --with-docdir was given.
14316 if test "${with_docdir+set}" = set; then :
14317 withval=$with_docdir; pcp_doc_dir=$withval
14318 else
14319 PACKAGE=pcp-${PACKAGE_VERSION}; pcp_doc_dir=$docdir
14322 pcp_doc_dir=`eval echo $pcp_doc_dir`
14323 pcp_doc_dir=`eval echo $pcp_doc_dir`
14327 # Check whether --with-demosdir was given.
14328 if test "${with_demosdir+set}" = set; then :
14329 withval=$with_demosdir; pcp_demos_dir=$withval
14330 else
14331 pcp_demos_dir=$pcp_share_dir/demos
14336 if test -z "$XCONFIRM"
14337 then
14338 # Extract the first word of "xconfirm", so it can be a program name with args.
14339 set dummy xconfirm; ac_word=$2
14340 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14341 $as_echo_n "checking for $ac_word... " >&6; }
14342 if ${ac_cv_path_ac_xconfirm_prog+:} false; then :
14343 $as_echo_n "(cached) " >&6
14344 else
14345 case $ac_xconfirm_prog in
14346 [\\/]* | ?:[\\/]*)
14347 ac_cv_path_ac_xconfirm_prog="$ac_xconfirm_prog" # Let the user override the test with a path.
14350 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14351 for as_dir in $PATH
14353 IFS=$as_save_IFS
14354 test -z "$as_dir" && as_dir=.
14355 for ac_exec_ext in '' $ac_executable_extensions; do
14356 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14357 ac_cv_path_ac_xconfirm_prog="$as_dir/$ac_word$ac_exec_ext"
14358 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14359 break 2
14361 done
14362 done
14363 IFS=$as_save_IFS
14365 test -z "$ac_cv_path_ac_xconfirm_prog" && ac_cv_path_ac_xconfirm_prog="$pcp_bin_dir/pmconfirm"
14367 esac
14369 ac_xconfirm_prog=$ac_cv_path_ac_xconfirm_prog
14370 if test -n "$ac_xconfirm_prog"; then
14371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_xconfirm_prog" >&5
14372 $as_echo "$ac_xconfirm_prog" >&6; }
14373 else
14374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14375 $as_echo "no" >&6; }
14379 else
14380 ac_xconfirm_prog=$XCONFIRM
14384 if test "$ac_cv_header_fcntl_h" = "yes"
14385 then
14386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FNDELAY in fcntl.h" >&5
14387 $as_echo_n "checking for FNDELAY in fcntl.h... " >&6; }
14388 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14389 /* end confdefs.h. */
14390 #include <fcntl.h>
14392 main ()
14394 int i = FNDELAY;
14396 return 0;
14398 _ACEOF
14399 if ac_fn_c_try_compile "$LINENO"; then :
14401 $as_echo "#define HAVE_FNDELAY 1" >>confdefs.h
14403 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14404 $as_echo "yes" >&6; }
14405 else
14406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14407 $as_echo "no" >&6; }
14409 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14412 if test "$ac_cv_header_libzfs_h" = "yes"
14413 then
14414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 5-argument style zpool_vdev_name" >&5
14415 $as_echo_n "checking for 5-argument style zpool_vdev_name... " >&6; }
14416 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14417 /* end confdefs.h. */
14418 #include <libzfs.h>
14420 main ()
14422 libzfs_handle_t *zh;
14423 zpool_handle_t *zp;
14424 nvlist_t *np;
14425 (void) zpool_vdev_name(zh, zp, np, B_FALSE, B_FALSE);
14428 return 0;
14430 _ACEOF
14431 if ac_fn_c_try_compile "$LINENO"; then :
14433 $as_echo "#define HAVE_ZPOOL_VDEV_NAME_5ARG 1" >>confdefs.h
14435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14436 $as_echo "yes" >&6; }
14437 else
14438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14439 $as_echo "no" >&6; }
14441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14443 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 4-argument style zpool_vdev_name" >&5
14444 $as_echo_n "checking for 4-argument style zpool_vdev_name... " >&6; }
14445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14446 /* end confdefs.h. */
14447 #include <libzfs.h>
14449 main ()
14451 libzfs_handle_t *zh;
14452 zpool_handle_t *zp;
14453 nvlist_t *np;
14454 (void) zpool_vdev_name(zh, zp, np, B_FALSE);
14457 return 0;
14459 _ACEOF
14460 if ac_fn_c_try_compile "$LINENO"; then :
14462 $as_echo "#define HAVE_ZPOOL_VDEV_NAME_4ARG 1" >>confdefs.h
14464 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14465 $as_echo "yes" >&6; }
14466 else
14467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14468 $as_echo "no" >&6; }
14470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14473 if test "$do_secure" = "check" -o "$do_secure" = "yes"
14474 then
14475 enable_secure=true
14477 saved_CFLAGS="$CFLAGS"
14478 saved_CPPFLAGS="$CPPFLAGS"
14479 NSS_INC_DIRS="-I/usr/include/nss -I/usr/include/nss3"
14480 NSPR_INC_DIRS="-I/usr/include/nspr -I/usr/include/nspr4"
14481 CFLAGS="$CFLAGS $NSS_INC_DIRS $NSPR_INC_DIRS"
14482 CPPFLAGS="$CPPFLAGS $NSS_INC_DIRS $NSPR_INC_DIRS"
14484 for ac_header in nss/nss.h
14485 do :
14486 ac_fn_c_check_header_mongrel "$LINENO" "nss/nss.h" "ac_cv_header_nss_nss_h" "$ac_includes_default"
14487 if test "x$ac_cv_header_nss_nss_h" = xyes; then :
14488 cat >>confdefs.h <<_ACEOF
14489 #define HAVE_NSS_NSS_H 1
14490 _ACEOF
14491 NSSCFLAGS=-I/usr/include/nss
14492 else
14494 for ac_header in nss3/nss.h
14495 do :
14496 ac_fn_c_check_header_mongrel "$LINENO" "nss3/nss.h" "ac_cv_header_nss3_nss_h" "$ac_includes_default"
14497 if test "x$ac_cv_header_nss3_nss_h" = xyes; then :
14498 cat >>confdefs.h <<_ACEOF
14499 #define HAVE_NSS3_NSS_H 1
14500 _ACEOF
14501 NSSCFLAGS=-I/usr/include/nss3
14502 else
14504 enable_secure=false
14505 if test "$do_secure" = "yes"
14506 then
14507 as_fn_error $? "cannot enable secure sockets mode - no NSS header" "$LINENO" 5
14512 done
14517 done
14521 for ac_header in nspr/nspr.h
14522 do :
14523 ac_fn_c_check_header_mongrel "$LINENO" "nspr/nspr.h" "ac_cv_header_nspr_nspr_h" "$ac_includes_default"
14524 if test "x$ac_cv_header_nspr_nspr_h" = xyes; then :
14525 cat >>confdefs.h <<_ACEOF
14526 #define HAVE_NSPR_NSPR_H 1
14527 _ACEOF
14528 NSPRCFLAGS=-I/usr/include/nspr
14529 else
14531 for ac_header in nspr4/nspr.h
14532 do :
14533 ac_fn_c_check_header_mongrel "$LINENO" "nspr4/nspr.h" "ac_cv_header_nspr4_nspr_h" "$ac_includes_default"
14534 if test "x$ac_cv_header_nspr4_nspr_h" = xyes; then :
14535 cat >>confdefs.h <<_ACEOF
14536 #define HAVE_NSPR4_NSPR_H 1
14537 _ACEOF
14538 NSPRCFLAGS=-I/usr/include/nspr4
14539 else
14541 enable_secure=false
14542 if test "$do_secure" = "yes"
14543 then
14544 as_fn_error $? "cannot enable secure sockets mode - no NSPR header" "$LINENO" 5
14549 done
14554 done
14558 for ac_header in sasl/sasl.h
14559 do :
14560 ac_fn_c_check_header_mongrel "$LINENO" "sasl/sasl.h" "ac_cv_header_sasl_sasl_h" "$ac_includes_default"
14561 if test "x$ac_cv_header_sasl_sasl_h" = xyes; then :
14562 cat >>confdefs.h <<_ACEOF
14563 #define HAVE_SASL_SASL_H 1
14564 _ACEOF
14565 SASLCFLAGS=-I/usr/include/sasl
14566 else
14568 enable_secure=false
14569 if test "$do_secure" = "yes"
14570 then
14571 as_fn_error $? "cannot enable secure sockets mode - no SASL header" "$LINENO" 5
14576 done
14580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sasl_server_init in -lsasl2" >&5
14581 $as_echo_n "checking for sasl_server_init in -lsasl2... " >&6; }
14582 if ${ac_cv_lib_sasl2_sasl_server_init+:} false; then :
14583 $as_echo_n "(cached) " >&6
14584 else
14585 ac_check_lib_save_LIBS=$LIBS
14586 LIBS="-lsasl2 $LIBS"
14587 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14588 /* end confdefs.h. */
14590 /* Override any GCC internal prototype to avoid an error.
14591 Use char because int might match the return type of a GCC
14592 builtin and then its argument prototype would still apply. */
14593 #ifdef __cplusplus
14594 extern "C"
14595 #endif
14596 char sasl_server_init ();
14598 main ()
14600 return sasl_server_init ();
14602 return 0;
14604 _ACEOF
14605 if ac_fn_c_try_link "$LINENO"; then :
14606 ac_cv_lib_sasl2_sasl_server_init=yes
14607 else
14608 ac_cv_lib_sasl2_sasl_server_init=no
14610 rm -f core conftest.err conftest.$ac_objext \
14611 conftest$ac_exeext conftest.$ac_ext
14612 LIBS=$ac_check_lib_save_LIBS
14614 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sasl2_sasl_server_init" >&5
14615 $as_echo "$ac_cv_lib_sasl2_sasl_server_init" >&6; }
14616 if test "x$ac_cv_lib_sasl2_sasl_server_init" = xyes; then :
14617 lib_for_sasl="-lsasl2"
14618 else
14620 enable_secure=false
14621 if test "$do_secure" = "yes"
14622 then
14623 as_fn_error $? "cannot enable secure sockets mode - no SASL library" "$LINENO" 5
14630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_ImportFD in -lssl" >&5
14631 $as_echo_n "checking for SSL_ImportFD in -lssl... " >&6; }
14632 if ${ac_cv_lib_ssl_SSL_ImportFD+:} false; then :
14633 $as_echo_n "(cached) " >&6
14634 else
14635 ac_check_lib_save_LIBS=$LIBS
14636 LIBS="-lssl $LIBS"
14637 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14638 /* end confdefs.h. */
14640 /* Override any GCC internal prototype to avoid an error.
14641 Use char because int might match the return type of a GCC
14642 builtin and then its argument prototype would still apply. */
14643 #ifdef __cplusplus
14644 extern "C"
14645 #endif
14646 char SSL_ImportFD ();
14648 main ()
14650 return SSL_ImportFD ();
14652 return 0;
14654 _ACEOF
14655 if ac_fn_c_try_link "$LINENO"; then :
14656 ac_cv_lib_ssl_SSL_ImportFD=yes
14657 else
14658 ac_cv_lib_ssl_SSL_ImportFD=no
14660 rm -f core conftest.err conftest.$ac_objext \
14661 conftest$ac_exeext conftest.$ac_ext
14662 LIBS=$ac_check_lib_save_LIBS
14664 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_ImportFD" >&5
14665 $as_echo "$ac_cv_lib_ssl_SSL_ImportFD" >&6; }
14666 if test "x$ac_cv_lib_ssl_SSL_ImportFD" = xyes; then :
14667 lib_for_ssl="-lssl"
14668 else
14670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_ImportFD in -lssl3" >&5
14671 $as_echo_n "checking for SSL_ImportFD in -lssl3... " >&6; }
14672 if ${ac_cv_lib_ssl3_SSL_ImportFD+:} false; then :
14673 $as_echo_n "(cached) " >&6
14674 else
14675 ac_check_lib_save_LIBS=$LIBS
14676 LIBS="-lssl3 $LIBS"
14677 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14678 /* end confdefs.h. */
14680 /* Override any GCC internal prototype to avoid an error.
14681 Use char because int might match the return type of a GCC
14682 builtin and then its argument prototype would still apply. */
14683 #ifdef __cplusplus
14684 extern "C"
14685 #endif
14686 char SSL_ImportFD ();
14688 main ()
14690 return SSL_ImportFD ();
14692 return 0;
14694 _ACEOF
14695 if ac_fn_c_try_link "$LINENO"; then :
14696 ac_cv_lib_ssl3_SSL_ImportFD=yes
14697 else
14698 ac_cv_lib_ssl3_SSL_ImportFD=no
14700 rm -f core conftest.err conftest.$ac_objext \
14701 conftest$ac_exeext conftest.$ac_ext
14702 LIBS=$ac_check_lib_save_LIBS
14704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl3_SSL_ImportFD" >&5
14705 $as_echo "$ac_cv_lib_ssl3_SSL_ImportFD" >&6; }
14706 if test "x$ac_cv_lib_ssl3_SSL_ImportFD" = xyes; then :
14707 lib_for_ssl="-lssl3"
14708 else
14710 enable_secure=false
14711 if test "$do_secure" = "yes"
14712 then
14713 as_fn_error $? "cannot enable secure sockets mode - no SSL library" "$LINENO" 5
14723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSS_Init in -lnss" >&5
14724 $as_echo_n "checking for NSS_Init in -lnss... " >&6; }
14725 if ${ac_cv_lib_nss_NSS_Init+:} false; then :
14726 $as_echo_n "(cached) " >&6
14727 else
14728 ac_check_lib_save_LIBS=$LIBS
14729 LIBS="-lnss $LIBS"
14730 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14731 /* end confdefs.h. */
14733 /* Override any GCC internal prototype to avoid an error.
14734 Use char because int might match the return type of a GCC
14735 builtin and then its argument prototype would still apply. */
14736 #ifdef __cplusplus
14737 extern "C"
14738 #endif
14739 char NSS_Init ();
14741 main ()
14743 return NSS_Init ();
14745 return 0;
14747 _ACEOF
14748 if ac_fn_c_try_link "$LINENO"; then :
14749 ac_cv_lib_nss_NSS_Init=yes
14750 else
14751 ac_cv_lib_nss_NSS_Init=no
14753 rm -f core conftest.err conftest.$ac_objext \
14754 conftest$ac_exeext conftest.$ac_ext
14755 LIBS=$ac_check_lib_save_LIBS
14757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nss_NSS_Init" >&5
14758 $as_echo "$ac_cv_lib_nss_NSS_Init" >&6; }
14759 if test "x$ac_cv_lib_nss_NSS_Init" = xyes; then :
14760 lib_for_nss="-lnss"
14761 else
14763 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSS_Init in -lnss3" >&5
14764 $as_echo_n "checking for NSS_Init in -lnss3... " >&6; }
14765 if ${ac_cv_lib_nss3_NSS_Init+:} false; then :
14766 $as_echo_n "(cached) " >&6
14767 else
14768 ac_check_lib_save_LIBS=$LIBS
14769 LIBS="-lnss3 $LIBS"
14770 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14771 /* end confdefs.h. */
14773 /* Override any GCC internal prototype to avoid an error.
14774 Use char because int might match the return type of a GCC
14775 builtin and then its argument prototype would still apply. */
14776 #ifdef __cplusplus
14777 extern "C"
14778 #endif
14779 char NSS_Init ();
14781 main ()
14783 return NSS_Init ();
14785 return 0;
14787 _ACEOF
14788 if ac_fn_c_try_link "$LINENO"; then :
14789 ac_cv_lib_nss3_NSS_Init=yes
14790 else
14791 ac_cv_lib_nss3_NSS_Init=no
14793 rm -f core conftest.err conftest.$ac_objext \
14794 conftest$ac_exeext conftest.$ac_ext
14795 LIBS=$ac_check_lib_save_LIBS
14797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nss3_NSS_Init" >&5
14798 $as_echo "$ac_cv_lib_nss3_NSS_Init" >&6; }
14799 if test "x$ac_cv_lib_nss3_NSS_Init" = xyes; then :
14800 lib_for_nss="-lnss3"
14801 else
14803 enable_secure=false
14804 if test "$do_secure" = "yes"
14805 then
14806 as_fn_error $? "cannot enable secure sockets mode - no NSS library" "$LINENO" 5
14816 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PR_Init in -lnspr" >&5
14817 $as_echo_n "checking for PR_Init in -lnspr... " >&6; }
14818 if ${ac_cv_lib_nspr_PR_Init+:} false; then :
14819 $as_echo_n "(cached) " >&6
14820 else
14821 ac_check_lib_save_LIBS=$LIBS
14822 LIBS="-lnspr $LIBS"
14823 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14824 /* end confdefs.h. */
14826 /* Override any GCC internal prototype to avoid an error.
14827 Use char because int might match the return type of a GCC
14828 builtin and then its argument prototype would still apply. */
14829 #ifdef __cplusplus
14830 extern "C"
14831 #endif
14832 char PR_Init ();
14834 main ()
14836 return PR_Init ();
14838 return 0;
14840 _ACEOF
14841 if ac_fn_c_try_link "$LINENO"; then :
14842 ac_cv_lib_nspr_PR_Init=yes
14843 else
14844 ac_cv_lib_nspr_PR_Init=no
14846 rm -f core conftest.err conftest.$ac_objext \
14847 conftest$ac_exeext conftest.$ac_ext
14848 LIBS=$ac_check_lib_save_LIBS
14850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nspr_PR_Init" >&5
14851 $as_echo "$ac_cv_lib_nspr_PR_Init" >&6; }
14852 if test "x$ac_cv_lib_nspr_PR_Init" = xyes; then :
14853 lib_for_nspr="-lnspr"
14854 else
14856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PR_Init in -lnspr4" >&5
14857 $as_echo_n "checking for PR_Init in -lnspr4... " >&6; }
14858 if ${ac_cv_lib_nspr4_PR_Init+:} false; then :
14859 $as_echo_n "(cached) " >&6
14860 else
14861 ac_check_lib_save_LIBS=$LIBS
14862 LIBS="-lnspr4 $LIBS"
14863 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14864 /* end confdefs.h. */
14866 /* Override any GCC internal prototype to avoid an error.
14867 Use char because int might match the return type of a GCC
14868 builtin and then its argument prototype would still apply. */
14869 #ifdef __cplusplus
14870 extern "C"
14871 #endif
14872 char PR_Init ();
14874 main ()
14876 return PR_Init ();
14878 return 0;
14880 _ACEOF
14881 if ac_fn_c_try_link "$LINENO"; then :
14882 ac_cv_lib_nspr4_PR_Init=yes
14883 else
14884 ac_cv_lib_nspr4_PR_Init=no
14886 rm -f core conftest.err conftest.$ac_objext \
14887 conftest$ac_exeext conftest.$ac_ext
14888 LIBS=$ac_check_lib_save_LIBS
14890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nspr4_PR_Init" >&5
14891 $as_echo "$ac_cv_lib_nspr4_PR_Init" >&6; }
14892 if test "x$ac_cv_lib_nspr4_PR_Init" = xyes; then :
14893 lib_for_nspr="-lnspr4"
14894 else
14896 enable_secure=false
14897 if test "$do_secure" = "yes"
14898 then
14899 as_fn_error $? "cannot enable secure sockets mode - no NSPR library" "$LINENO" 5
14909 if test "$enable_secure" = "true"
14910 then
14912 $as_echo "#define HAVE_SECURE_SOCKETS 1" >>confdefs.h
14917 CPPFLAGS="$saved_CPPFLAGS"
14918 CFLAGS="$saved_CFLAGS"
14921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_add_4 in -latomic" >&5
14922 $as_echo_n "checking for __atomic_fetch_add_4 in -latomic... " >&6; }
14923 if ${ac_cv_lib_atomic___atomic_fetch_add_4+:} false; then :
14924 $as_echo_n "(cached) " >&6
14925 else
14926 ac_check_lib_save_LIBS=$LIBS
14927 LIBS="-latomic $LIBS"
14928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14929 /* end confdefs.h. */
14931 /* Override any GCC internal prototype to avoid an error.
14932 Use char because int might match the return type of a GCC
14933 builtin and then its argument prototype would still apply. */
14934 #ifdef __cplusplus
14935 extern "C"
14936 #endif
14937 char __atomic_fetch_add_4 ();
14939 main ()
14941 return __atomic_fetch_add_4 ();
14943 return 0;
14945 _ACEOF
14946 if ac_fn_c_try_link "$LINENO"; then :
14947 ac_cv_lib_atomic___atomic_fetch_add_4=yes
14948 else
14949 ac_cv_lib_atomic___atomic_fetch_add_4=no
14951 rm -f core conftest.err conftest.$ac_objext \
14952 conftest$ac_exeext conftest.$ac_ext
14953 LIBS=$ac_check_lib_save_LIBS
14955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_atomic___atomic_fetch_add_4" >&5
14956 $as_echo "$ac_cv_lib_atomic___atomic_fetch_add_4" >&6; }
14957 if test "x$ac_cv_lib_atomic___atomic_fetch_add_4" = xyes; then :
14958 lib_for_atomic="-latomic"
14963 if test -f /usr/include/sn/arsess.h
14964 then
14965 pcp_mpi_dirs=libpcp_mpi\ libpcp_mpiread
14966 else
14967 pcp_mpi_dirs=
14971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_un in sys/un.h" >&5
14972 $as_echo_n "checking for struct sockaddr_un in sys/un.h... " >&6; }
14973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14974 /* end confdefs.h. */
14976 #include <sys/types.h>
14977 #ifdef HAVE_SYS_SOCKET_H
14978 #include <sys/socket.h>
14979 #endif
14980 #ifdef HAVE_SYS_UN_H
14981 #include <sys/un.h>
14982 #endif
14985 main ()
14987 struct sockaddr_un sa; sa.sun_family = AF_UNIX;
14989 return 0;
14991 _ACEOF
14992 if ac_fn_c_try_compile "$LINENO"; then :
14994 $as_echo "#define HAVE_STRUCT_SOCKADDR_UN 1" >>confdefs.h
14995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14996 $as_echo "yes" >&6; }
14997 else
14998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14999 $as_echo "no" >&6; }
15001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct ucred in sys/socket.h" >&5
15004 $as_echo_n "checking for struct ucred in sys/socket.h... " >&6; }
15005 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15006 /* end confdefs.h. */
15008 #include <sys/types.h>
15009 #ifdef HAVE_SYS_SOCKET_H
15010 #include <sys/socket.h>
15011 #endif
15012 #ifdef HAVE_SYS_UN_H
15013 #include <sys/un.h>
15014 #endif
15017 main ()
15019 struct ucred ucred; ucred.uid = 0;
15021 return 0;
15023 _ACEOF
15024 if ac_fn_c_try_compile "$LINENO"; then :
15026 $as_echo "#define HAVE_STRUCT_UCRED 1" >>confdefs.h
15027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15028 $as_echo "yes" >&6; }
15029 else
15030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15031 $as_echo "no" >&6; }
15033 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15035 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in time.h" >&5
15036 $as_echo_n "checking for struct timespec in time.h... " >&6; }
15037 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15038 /* end confdefs.h. */
15040 #include <time.h>
15043 main ()
15045 struct timespec foo;
15047 return 0;
15049 _ACEOF
15050 if ac_fn_c_try_compile "$LINENO"; then :
15052 $as_echo "#define HAVE_STRUCT_TIMESPEC 1" >>confdefs.h
15053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15054 $as_echo "yes" >&6; }
15055 else
15056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15057 $as_echo "no" >&6; }
15059 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for altzone in time.h" >&5
15062 $as_echo_n "checking for altzone in time.h... " >&6; }
15063 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15064 /* end confdefs.h. */
15066 #include <time.h>
15069 main ()
15071 time_t az = altzone;
15073 return 0;
15075 _ACEOF
15076 if ac_fn_c_try_compile "$LINENO"; then :
15078 $as_echo "#define HAVE_ALTZONE 1" >>confdefs.h
15079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15080 $as_echo "yes" >&6; }
15081 else
15082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15083 $as_echo "no" >&6; }
15085 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15087 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strftime knows about %z" >&5
15088 $as_echo_n "checking if strftime knows about %z... " >&6; }
15089 if test "$cross_compiling" = yes; then :
15090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15091 $as_echo "no" >&6; }
15092 else
15093 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15094 /* end confdefs.h. */
15096 #include <time.h>
15097 int main () {
15098 char b[32]="";
15099 time_t t = time(NULL);
15100 struct tm * t1 = localtime (&t);
15101 if (strftime (b, 32, "%z", t1) < 3)
15102 return (1);
15103 if (strcmp(b, "%z") == 0)
15104 return(1);
15105 return (0);
15108 _ACEOF
15109 if ac_fn_c_try_run "$LINENO"; then :
15111 $as_echo "#define HAVE_STRFTIME_z 1" >>confdefs.h
15112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15113 $as_echo "yes" >&6; }
15114 else
15115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15116 $as_echo "no" >&6; }
15118 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15119 conftest.$ac_objext conftest.beam conftest.$ac_ext
15123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r returns char *" >&5
15124 $as_echo_n "checking if strerror_r returns char *... " >&6; }
15125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15126 /* end confdefs.h. */
15127 #include <string.h>
15129 main ()
15131 strerror_r(0, NULL, 0)[0];
15133 return 0;
15135 _ACEOF
15136 if ac_fn_c_try_compile "$LINENO"; then :
15138 $as_echo "#define HAVE_STRERROR_R_PTR 1" >>confdefs.h
15139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15140 $as_echo "yes" >&6; }
15141 else
15142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15143 $as_echo "no" >&6; }
15145 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15147 savedLIBS=$LIBS
15148 LIBS=
15149 lib_for_curses=
15150 lib_for_readline=
15151 ac_fn_c_check_func "$LINENO" "readline" "ac_cv_func_readline"
15152 if test "x$ac_cv_func_readline" = xyes; then :
15154 else
15156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
15157 $as_echo_n "checking for readline in -lreadline... " >&6; }
15158 if ${ac_cv_lib_readline_readline+:} false; then :
15159 $as_echo_n "(cached) " >&6
15160 else
15161 ac_check_lib_save_LIBS=$LIBS
15162 LIBS="-lreadline $LIBS"
15163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15164 /* end confdefs.h. */
15166 /* Override any GCC internal prototype to avoid an error.
15167 Use char because int might match the return type of a GCC
15168 builtin and then its argument prototype would still apply. */
15169 #ifdef __cplusplus
15170 extern "C"
15171 #endif
15172 char readline ();
15174 main ()
15176 return readline ();
15178 return 0;
15180 _ACEOF
15181 if ac_fn_c_try_link "$LINENO"; then :
15182 ac_cv_lib_readline_readline=yes
15183 else
15184 ac_cv_lib_readline_readline=no
15186 rm -f core conftest.err conftest.$ac_objext \
15187 conftest$ac_exeext conftest.$ac_ext
15188 LIBS=$ac_check_lib_save_LIBS
15190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
15191 $as_echo "$ac_cv_lib_readline_readline" >&6; }
15192 if test "x$ac_cv_lib_readline_readline" = xyes; then :
15193 cat >>confdefs.h <<_ACEOF
15194 #define HAVE_LIBREADLINE 1
15195 _ACEOF
15197 LIBS="-lreadline $LIBS"
15199 else
15201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for add_history in -lreadline" >&5
15202 $as_echo_n "checking for add_history in -lreadline... " >&6; }
15203 if ${ac_cv_lib_readline_add_history+:} false; then :
15204 $as_echo_n "(cached) " >&6
15205 else
15206 ac_check_lib_save_LIBS=$LIBS
15207 LIBS="-lreadline -lcurses $LIBS"
15208 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15209 /* end confdefs.h. */
15211 /* Override any GCC internal prototype to avoid an error.
15212 Use char because int might match the return type of a GCC
15213 builtin and then its argument prototype would still apply. */
15214 #ifdef __cplusplus
15215 extern "C"
15216 #endif
15217 char add_history ();
15219 main ()
15221 return add_history ();
15223 return 0;
15225 _ACEOF
15226 if ac_fn_c_try_link "$LINENO"; then :
15227 ac_cv_lib_readline_add_history=yes
15228 else
15229 ac_cv_lib_readline_add_history=no
15231 rm -f core conftest.err conftest.$ac_objext \
15232 conftest$ac_exeext conftest.$ac_ext
15233 LIBS=$ac_check_lib_save_LIBS
15235 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_add_history" >&5
15236 $as_echo "$ac_cv_lib_readline_add_history" >&6; }
15237 if test "x$ac_cv_lib_readline_add_history" = xyes; then :
15238 cat >>confdefs.h <<_ACEOF
15239 #define HAVE_LIBREADLINE 1
15240 _ACEOF
15242 LIBS="-lreadline $LIBS"
15252 if test $ac_cv_func_readline = yes
15253 then
15255 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
15257 elif test $ac_cv_lib_readline_readline = yes
15258 then
15260 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
15262 lib_for_readline=-lreadline
15263 elif test $ac_cv_lib_readline_add_history = yes
15264 then
15266 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
15268 lib_for_curses=-lcurses
15269 lib_for_readline=-lreadline
15273 LIBS=$savedLIBS
15276 pkg_failed=no
15277 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib" >&5
15278 $as_echo_n "checking for zlib... " >&6; }
15280 if test -n "$zlib_CFLAGS"; then
15281 pkg_cv_zlib_CFLAGS="$zlib_CFLAGS"
15282 elif test -n "$PKG_CONFIG"; then
15283 if test -n "$PKG_CONFIG" && \
15284 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib >= 1.0.0\""; } >&5
15285 ($PKG_CONFIG --exists --print-errors "zlib >= 1.0.0") 2>&5
15286 ac_status=$?
15287 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15288 test $ac_status = 0; }; then
15289 pkg_cv_zlib_CFLAGS=`$PKG_CONFIG --cflags "zlib >= 1.0.0" 2>/dev/null`
15290 test "x$?" != "x0" && pkg_failed=yes
15291 else
15292 pkg_failed=yes
15294 else
15295 pkg_failed=untried
15297 if test -n "$zlib_LIBS"; then
15298 pkg_cv_zlib_LIBS="$zlib_LIBS"
15299 elif test -n "$PKG_CONFIG"; then
15300 if test -n "$PKG_CONFIG" && \
15301 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib >= 1.0.0\""; } >&5
15302 ($PKG_CONFIG --exists --print-errors "zlib >= 1.0.0") 2>&5
15303 ac_status=$?
15304 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15305 test $ac_status = 0; }; then
15306 pkg_cv_zlib_LIBS=`$PKG_CONFIG --libs "zlib >= 1.0.0" 2>/dev/null`
15307 test "x$?" != "x0" && pkg_failed=yes
15308 else
15309 pkg_failed=yes
15311 else
15312 pkg_failed=untried
15317 if test $pkg_failed = yes; then
15318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15319 $as_echo "no" >&6; }
15321 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15322 _pkg_short_errors_supported=yes
15323 else
15324 _pkg_short_errors_supported=no
15326 if test $_pkg_short_errors_supported = yes; then
15327 zlib_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "zlib >= 1.0.0" 2>&1`
15328 else
15329 zlib_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "zlib >= 1.0.0" 2>&1`
15331 # Put the nasty error message in config.log where it belongs
15332 echo "$zlib_PKG_ERRORS" >&5
15334 have_zlib=false
15335 elif test $pkg_failed = untried; then
15336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15337 $as_echo "no" >&6; }
15338 have_zlib=false
15339 else
15340 zlib_CFLAGS=$pkg_cv_zlib_CFLAGS
15341 zlib_LIBS=$pkg_cv_zlib_LIBS
15342 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15343 $as_echo "yes" >&6; }
15344 have_zlib=true
15346 HAVE_ZLIB=$have_zlib
15349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AI_ADDRCONFIG" >&5
15350 $as_echo_n "checking for AI_ADDRCONFIG... " >&6; }
15351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15352 /* end confdefs.h. */
15354 #include <netdb.h>
15355 int test = AI_ADDRCONFIG;
15358 main ()
15363 return 0;
15365 _ACEOF
15366 if ac_fn_c_try_compile "$LINENO"; then :
15368 $as_echo "#define HAVE_AI_ADDRCONFIG 1" >>confdefs.h
15369 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15370 $as_echo "yes" >&6; }
15371 else
15372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15373 $as_echo "no" >&6; }
15375 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15378 have_parfait=false
15379 if test -f ./build/tar/parfait.tar.gz
15380 then
15381 { $as_echo "$as_me:${as_lineno-$LINENO}: adding Parfait package to the build" >&5
15382 $as_echo "$as_me: adding Parfait package to the build" >&6;}
15383 have_parfait=true
15387 have_vector=false
15388 if test -f ./build/tar/vector.tar.gz
15389 then
15390 { $as_echo "$as_me:${as_lineno-$LINENO}: adding Vector webapp to the build" >&5
15391 $as_echo "$as_me: adding Vector webapp to the build" >&6;}
15392 have_vector=true
15396 have_webjs=false
15397 if test -f ./build/tar/webjs.tar.gz
15398 then
15399 { $as_echo "$as_me:${as_lineno-$LINENO}: adding webjs webapps to the build" >&5
15400 $as_echo "$as_me: adding webjs webapps to the build" >&6;}
15401 have_webjs=true
15408 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"
15410 cat >confcache <<\_ACEOF
15411 # This file is a shell script that caches the results of configure
15412 # tests run on this system so they can be shared between configure
15413 # scripts and configure runs, see configure's option --config-cache.
15414 # It is not useful on other systems. If it contains results you don't
15415 # want to keep, you may remove or edit it.
15417 # config.status only pays attention to the cache file if you give it
15418 # the --recheck option to rerun configure.
15420 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15421 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15422 # following values.
15424 _ACEOF
15426 # The following way of writing the cache mishandles newlines in values,
15427 # but we know of no workaround that is simple, portable, and efficient.
15428 # So, we kill variables containing newlines.
15429 # Ultrix sh set writes to stderr and can't be redirected directly,
15430 # and sets the high bit in the cache file unless we assign to the vars.
15432 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15433 eval ac_val=\$$ac_var
15434 case $ac_val in #(
15435 *${as_nl}*)
15436 case $ac_var in #(
15437 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15438 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15439 esac
15440 case $ac_var in #(
15441 _ | IFS | as_nl) ;; #(
15442 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15443 *) { eval $ac_var=; unset $ac_var;} ;;
15444 esac ;;
15445 esac
15446 done
15448 (set) 2>&1 |
15449 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15450 *${as_nl}ac_space=\ *)
15451 # `set' does not quote correctly, so add quotes: double-quote
15452 # substitution turns \\\\ into \\, and sed turns \\ into \.
15453 sed -n \
15454 "s/'/'\\\\''/g;
15455 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15456 ;; #(
15458 # `set' quotes correctly as required by POSIX, so do not add quotes.
15459 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15461 esac |
15462 sort
15464 sed '
15465 /^ac_cv_env_/b end
15466 t clear
15467 :clear
15468 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15469 t end
15470 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15471 :end' >>confcache
15472 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15473 if test -w "$cache_file"; then
15474 if test "x$cache_file" != "x/dev/null"; then
15475 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15476 $as_echo "$as_me: updating cache $cache_file" >&6;}
15477 if test ! -f "$cache_file" || test -h "$cache_file"; then
15478 cat confcache >"$cache_file"
15479 else
15480 case $cache_file in #(
15481 */* | ?:*)
15482 mv -f confcache "$cache_file"$$ &&
15483 mv -f "$cache_file"$$ "$cache_file" ;; #(
15485 mv -f confcache "$cache_file" ;;
15486 esac
15489 else
15490 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15491 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15494 rm -f confcache
15496 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15497 # Let make expand exec_prefix.
15498 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15500 DEFS=-DHAVE_CONFIG_H
15502 ac_libobjs=
15503 ac_ltlibobjs=
15505 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15506 # 1. Remove the extension, and $U if already installed.
15507 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15508 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15509 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15510 # will be set to the directory where LIBOBJS objects are built.
15511 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15512 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15513 done
15514 LIBOBJS=$ac_libobjs
15516 LTLIBOBJS=$ac_ltlibobjs
15520 : "${CONFIG_STATUS=./config.status}"
15521 ac_write_fail=0
15522 ac_clean_files_save=$ac_clean_files
15523 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15524 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15525 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15526 as_write_fail=0
15527 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15528 #! $SHELL
15529 # Generated by $as_me.
15530 # Run this file to recreate the current configuration.
15531 # Compiler output produced by configure, useful for debugging
15532 # configure, is in config.log if it exists.
15534 debug=false
15535 ac_cs_recheck=false
15536 ac_cs_silent=false
15538 SHELL=\${CONFIG_SHELL-$SHELL}
15539 export SHELL
15540 _ASEOF
15541 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15542 ## -------------------- ##
15543 ## M4sh Initialization. ##
15544 ## -------------------- ##
15546 # Be more Bourne compatible
15547 DUALCASE=1; export DUALCASE # for MKS sh
15548 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15549 emulate sh
15550 NULLCMD=:
15551 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15552 # is contrary to our usage. Disable this feature.
15553 alias -g '${1+"$@"}'='"$@"'
15554 setopt NO_GLOB_SUBST
15555 else
15556 case `(set -o) 2>/dev/null` in #(
15557 *posix*) :
15558 set -o posix ;; #(
15559 *) :
15561 esac
15565 as_nl='
15567 export as_nl
15568 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15569 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15570 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15571 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15572 # Prefer a ksh shell builtin over an external printf program on Solaris,
15573 # but without wasting forks for bash or zsh.
15574 if test -z "$BASH_VERSION$ZSH_VERSION" \
15575 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15576 as_echo='print -r --'
15577 as_echo_n='print -rn --'
15578 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15579 as_echo='printf %s\n'
15580 as_echo_n='printf %s'
15581 else
15582 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15583 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15584 as_echo_n='/usr/ucb/echo -n'
15585 else
15586 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15587 as_echo_n_body='eval
15588 arg=$1;
15589 case $arg in #(
15590 *"$as_nl"*)
15591 expr "X$arg" : "X\\(.*\\)$as_nl";
15592 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15593 esac;
15594 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15596 export as_echo_n_body
15597 as_echo_n='sh -c $as_echo_n_body as_echo'
15599 export as_echo_body
15600 as_echo='sh -c $as_echo_body as_echo'
15603 # The user is always right.
15604 if test "${PATH_SEPARATOR+set}" != set; then
15605 PATH_SEPARATOR=:
15606 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15607 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15608 PATH_SEPARATOR=';'
15613 # IFS
15614 # We need space, tab and new line, in precisely that order. Quoting is
15615 # there to prevent editors from complaining about space-tab.
15616 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15617 # splitting by setting IFS to empty value.)
15618 IFS=" "" $as_nl"
15620 # Find who we are. Look in the path if we contain no directory separator.
15621 as_myself=
15622 case $0 in #((
15623 *[\\/]* ) as_myself=$0 ;;
15624 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15625 for as_dir in $PATH
15627 IFS=$as_save_IFS
15628 test -z "$as_dir" && as_dir=.
15629 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15630 done
15631 IFS=$as_save_IFS
15634 esac
15635 # We did not find ourselves, most probably we were run as `sh COMMAND'
15636 # in which case we are not to be found in the path.
15637 if test "x$as_myself" = x; then
15638 as_myself=$0
15640 if test ! -f "$as_myself"; then
15641 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15642 exit 1
15645 # Unset variables that we do not need and which cause bugs (e.g. in
15646 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15647 # suppresses any "Segmentation fault" message there. '((' could
15648 # trigger a bug in pdksh 5.2.14.
15649 for as_var in BASH_ENV ENV MAIL MAILPATH
15650 do eval test x\${$as_var+set} = xset \
15651 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15652 done
15653 PS1='$ '
15654 PS2='> '
15655 PS4='+ '
15657 # NLS nuisances.
15658 LC_ALL=C
15659 export LC_ALL
15660 LANGUAGE=C
15661 export LANGUAGE
15663 # CDPATH.
15664 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15667 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15668 # ----------------------------------------
15669 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15670 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15671 # script with STATUS, using 1 if that was 0.
15672 as_fn_error ()
15674 as_status=$1; test $as_status -eq 0 && as_status=1
15675 if test "$4"; then
15676 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15677 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15679 $as_echo "$as_me: error: $2" >&2
15680 as_fn_exit $as_status
15681 } # as_fn_error
15684 # as_fn_set_status STATUS
15685 # -----------------------
15686 # Set $? to STATUS, without forking.
15687 as_fn_set_status ()
15689 return $1
15690 } # as_fn_set_status
15692 # as_fn_exit STATUS
15693 # -----------------
15694 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15695 as_fn_exit ()
15697 set +e
15698 as_fn_set_status $1
15699 exit $1
15700 } # as_fn_exit
15702 # as_fn_unset VAR
15703 # ---------------
15704 # Portably unset VAR.
15705 as_fn_unset ()
15707 { eval $1=; unset $1;}
15709 as_unset=as_fn_unset
15710 # as_fn_append VAR VALUE
15711 # ----------------------
15712 # Append the text in VALUE to the end of the definition contained in VAR. Take
15713 # advantage of any shell optimizations that allow amortized linear growth over
15714 # repeated appends, instead of the typical quadratic growth present in naive
15715 # implementations.
15716 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15717 eval 'as_fn_append ()
15719 eval $1+=\$2
15721 else
15722 as_fn_append ()
15724 eval $1=\$$1\$2
15726 fi # as_fn_append
15728 # as_fn_arith ARG...
15729 # ------------------
15730 # Perform arithmetic evaluation on the ARGs, and store the result in the
15731 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15732 # must be portable across $(()) and expr.
15733 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15734 eval 'as_fn_arith ()
15736 as_val=$(( $* ))
15738 else
15739 as_fn_arith ()
15741 as_val=`expr "$@" || test $? -eq 1`
15743 fi # as_fn_arith
15746 if expr a : '\(a\)' >/dev/null 2>&1 &&
15747 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15748 as_expr=expr
15749 else
15750 as_expr=false
15753 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15754 as_basename=basename
15755 else
15756 as_basename=false
15759 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15760 as_dirname=dirname
15761 else
15762 as_dirname=false
15765 as_me=`$as_basename -- "$0" ||
15766 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15767 X"$0" : 'X\(//\)$' \| \
15768 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15769 $as_echo X/"$0" |
15770 sed '/^.*\/\([^/][^/]*\)\/*$/{
15771 s//\1/
15774 /^X\/\(\/\/\)$/{
15775 s//\1/
15778 /^X\/\(\/\).*/{
15779 s//\1/
15782 s/.*/./; q'`
15784 # Avoid depending upon Character Ranges.
15785 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15786 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15787 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15788 as_cr_digits='0123456789'
15789 as_cr_alnum=$as_cr_Letters$as_cr_digits
15791 ECHO_C= ECHO_N= ECHO_T=
15792 case `echo -n x` in #(((((
15793 -n*)
15794 case `echo 'xy\c'` in
15795 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15796 xy) ECHO_C='\c';;
15797 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15798 ECHO_T=' ';;
15799 esac;;
15801 ECHO_N='-n';;
15802 esac
15804 rm -f conf$$ conf$$.exe conf$$.file
15805 if test -d conf$$.dir; then
15806 rm -f conf$$.dir/conf$$.file
15807 else
15808 rm -f conf$$.dir
15809 mkdir conf$$.dir 2>/dev/null
15811 if (echo >conf$$.file) 2>/dev/null; then
15812 if ln -s conf$$.file conf$$ 2>/dev/null; then
15813 as_ln_s='ln -s'
15814 # ... but there are two gotchas:
15815 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15816 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15817 # In both cases, we have to default to `cp -pR'.
15818 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15819 as_ln_s='cp -pR'
15820 elif ln conf$$.file conf$$ 2>/dev/null; then
15821 as_ln_s=ln
15822 else
15823 as_ln_s='cp -pR'
15825 else
15826 as_ln_s='cp -pR'
15828 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15829 rmdir conf$$.dir 2>/dev/null
15832 # as_fn_mkdir_p
15833 # -------------
15834 # Create "$as_dir" as a directory, including parents if necessary.
15835 as_fn_mkdir_p ()
15838 case $as_dir in #(
15839 -*) as_dir=./$as_dir;;
15840 esac
15841 test -d "$as_dir" || eval $as_mkdir_p || {
15842 as_dirs=
15843 while :; do
15844 case $as_dir in #(
15845 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15846 *) as_qdir=$as_dir;;
15847 esac
15848 as_dirs="'$as_qdir' $as_dirs"
15849 as_dir=`$as_dirname -- "$as_dir" ||
15850 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15851 X"$as_dir" : 'X\(//\)[^/]' \| \
15852 X"$as_dir" : 'X\(//\)$' \| \
15853 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15854 $as_echo X"$as_dir" |
15855 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15856 s//\1/
15859 /^X\(\/\/\)[^/].*/{
15860 s//\1/
15863 /^X\(\/\/\)$/{
15864 s//\1/
15867 /^X\(\/\).*/{
15868 s//\1/
15871 s/.*/./; q'`
15872 test -d "$as_dir" && break
15873 done
15874 test -z "$as_dirs" || eval "mkdir $as_dirs"
15875 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15878 } # as_fn_mkdir_p
15879 if mkdir -p . 2>/dev/null; then
15880 as_mkdir_p='mkdir -p "$as_dir"'
15881 else
15882 test -d ./-p && rmdir ./-p
15883 as_mkdir_p=false
15887 # as_fn_executable_p FILE
15888 # -----------------------
15889 # Test if FILE is an executable regular file.
15890 as_fn_executable_p ()
15892 test -f "$1" && test -x "$1"
15893 } # as_fn_executable_p
15894 as_test_x='test -x'
15895 as_executable_p=as_fn_executable_p
15897 # Sed expression to map a string onto a valid CPP name.
15898 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15900 # Sed expression to map a string onto a valid variable name.
15901 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15904 exec 6>&1
15905 ## ----------------------------------- ##
15906 ## Main body of $CONFIG_STATUS script. ##
15907 ## ----------------------------------- ##
15908 _ASEOF
15909 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15911 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15912 # Save the log message, to keep $0 and so on meaningful, and to
15913 # report actual input values of CONFIG_FILES etc. instead of their
15914 # values after options handling.
15915 ac_log="
15916 This file was extended by $as_me, which was
15917 generated by GNU Autoconf 2.69. Invocation command line was
15919 CONFIG_FILES = $CONFIG_FILES
15920 CONFIG_HEADERS = $CONFIG_HEADERS
15921 CONFIG_LINKS = $CONFIG_LINKS
15922 CONFIG_COMMANDS = $CONFIG_COMMANDS
15923 $ $0 $@
15925 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15928 _ACEOF
15930 case $ac_config_files in *"
15931 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15932 esac
15934 case $ac_config_headers in *"
15935 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15936 esac
15939 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15940 # Files that config.status was made for.
15941 config_files="$ac_config_files"
15942 config_headers="$ac_config_headers"
15944 _ACEOF
15946 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15947 ac_cs_usage="\
15948 \`$as_me' instantiates files and other configuration actions
15949 from templates according to the current configuration. Unless the files
15950 and actions are specified as TAGs, all are instantiated by default.
15952 Usage: $0 [OPTION]... [TAG]...
15954 -h, --help print this help, then exit
15955 -V, --version print version number and configuration settings, then exit
15956 --config print configuration, then exit
15957 -q, --quiet, --silent
15958 do not print progress messages
15959 -d, --debug don't remove temporary files
15960 --recheck update $as_me by reconfiguring in the same conditions
15961 --file=FILE[:TEMPLATE]
15962 instantiate the configuration file FILE
15963 --header=FILE[:TEMPLATE]
15964 instantiate the configuration header FILE
15966 Configuration files:
15967 $config_files
15969 Configuration headers:
15970 $config_headers
15972 Report bugs to the package provider."
15974 _ACEOF
15975 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15976 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15977 ac_cs_version="\\
15978 config.status
15979 configured by $0, generated by GNU Autoconf 2.69,
15980 with options \\"\$ac_cs_config\\"
15982 Copyright (C) 2012 Free Software Foundation, Inc.
15983 This config.status script is free software; the Free Software Foundation
15984 gives unlimited permission to copy, distribute and modify it."
15986 ac_pwd='$ac_pwd'
15987 srcdir='$srcdir'
15988 test -n "\$AWK" || AWK=awk
15989 _ACEOF
15991 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15992 # The default lists apply if the user does not specify any file.
15993 ac_need_defaults=:
15994 while test $# != 0
15996 case $1 in
15997 --*=?*)
15998 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15999 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16000 ac_shift=:
16002 --*=)
16003 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16004 ac_optarg=
16005 ac_shift=:
16008 ac_option=$1
16009 ac_optarg=$2
16010 ac_shift=shift
16012 esac
16014 case $ac_option in
16015 # Handling of the options.
16016 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16017 ac_cs_recheck=: ;;
16018 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16019 $as_echo "$ac_cs_version"; exit ;;
16020 --config | --confi | --conf | --con | --co | --c )
16021 $as_echo "$ac_cs_config"; exit ;;
16022 --debug | --debu | --deb | --de | --d | -d )
16023 debug=: ;;
16024 --file | --fil | --fi | --f )
16025 $ac_shift
16026 case $ac_optarg in
16027 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16028 '') as_fn_error $? "missing file argument" ;;
16029 esac
16030 as_fn_append CONFIG_FILES " '$ac_optarg'"
16031 ac_need_defaults=false;;
16032 --header | --heade | --head | --hea )
16033 $ac_shift
16034 case $ac_optarg in
16035 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16036 esac
16037 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16038 ac_need_defaults=false;;
16039 --he | --h)
16040 # Conflict between --help and --header
16041 as_fn_error $? "ambiguous option: \`$1'
16042 Try \`$0 --help' for more information.";;
16043 --help | --hel | -h )
16044 $as_echo "$ac_cs_usage"; exit ;;
16045 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16046 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16047 ac_cs_silent=: ;;
16049 # This is an error.
16050 -*) as_fn_error $? "unrecognized option: \`$1'
16051 Try \`$0 --help' for more information." ;;
16053 *) as_fn_append ac_config_targets " $1"
16054 ac_need_defaults=false ;;
16056 esac
16057 shift
16058 done
16060 ac_configure_extra_args=
16062 if $ac_cs_silent; then
16063 exec 6>/dev/null
16064 ac_configure_extra_args="$ac_configure_extra_args --silent"
16067 _ACEOF
16068 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16069 if \$ac_cs_recheck; then
16070 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16071 shift
16072 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16073 CONFIG_SHELL='$SHELL'
16074 export CONFIG_SHELL
16075 exec "\$@"
16078 _ACEOF
16079 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16080 exec 5>>config.log
16082 echo
16083 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16084 ## Running $as_me. ##
16085 _ASBOX
16086 $as_echo "$ac_log"
16087 } >&5
16089 _ACEOF
16090 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16091 _ACEOF
16093 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16095 # Handling of arguments.
16096 for ac_config_target in $ac_config_targets
16098 case $ac_config_target in
16099 "src/include/pcp/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pcp/config.h" ;;
16100 "src/include/pcp/configsz.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pcp/configsz.h" ;;
16101 "src/include/pcp/platform_defs.h") CONFIG_FILES="$CONFIG_FILES src/include/pcp/platform_defs.h" ;;
16102 "src/include/pcp/platformsz.h") CONFIG_FILES="$CONFIG_FILES src/include/pcp/platformsz.h" ;;
16103 "src/include/builddefs") CONFIG_FILES="$CONFIG_FILES src/include/builddefs" ;;
16104 "src/include/pcp.conf") CONFIG_FILES="$CONFIG_FILES src/include/pcp.conf" ;;
16105 "pcp.lsm") CONFIG_FILES="$CONFIG_FILES pcp.lsm" ;;
16106 "debian/pcp.preinst.head") CONFIG_FILES="$CONFIG_FILES debian/pcp.preinst.head" ;;
16107 "debian/pcp.postinst.head") CONFIG_FILES="$CONFIG_FILES debian/pcp.postinst.head" ;;
16108 "build/tar/preinstall.head") CONFIG_FILES="$CONFIG_FILES build/tar/preinstall.head" ;;
16109 "build/tar/postinstall.head") CONFIG_FILES="$CONFIG_FILES build/tar/postinstall.head" ;;
16110 "build/GNUlocaldefs") CONFIG_FILES="$CONFIG_FILES build/GNUlocaldefs" ;;
16111 "build/mac/uninstall-pcp") CONFIG_FILES="$CONFIG_FILES build/mac/uninstall-pcp" ;;
16113 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16114 esac
16115 done
16118 # If the user did not use the arguments to specify the items to instantiate,
16119 # then the envvar interface is used. Set only those that are not.
16120 # We use the long form for the default assignment because of an extremely
16121 # bizarre bug on SunOS 4.1.3.
16122 if $ac_need_defaults; then
16123 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16124 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16127 # Have a temporary directory for convenience. Make it in the build tree
16128 # simply because there is no reason against having it here, and in addition,
16129 # creating and moving files from /tmp can sometimes cause problems.
16130 # Hook for its removal unless debugging.
16131 # Note that there is a small window in which the directory will not be cleaned:
16132 # after its creation but before its name has been assigned to `$tmp'.
16133 $debug ||
16135 tmp= ac_tmp=
16136 trap 'exit_status=$?
16137 : "${ac_tmp:=$tmp}"
16138 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16140 trap 'as_fn_exit 1' 1 2 13 15
16142 # Create a (secure) tmp directory for tmp files.
16145 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16146 test -d "$tmp"
16147 } ||
16149 tmp=./conf$$-$RANDOM
16150 (umask 077 && mkdir "$tmp")
16151 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16152 ac_tmp=$tmp
16154 # Set up the scripts for CONFIG_FILES section.
16155 # No need to generate them if there are no CONFIG_FILES.
16156 # This happens for instance with `./config.status config.h'.
16157 if test -n "$CONFIG_FILES"; then
16160 ac_cr=`echo X | tr X '\015'`
16161 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16162 # But we know of no other shell where ac_cr would be empty at this
16163 # point, so we can use a bashism as a fallback.
16164 if test "x$ac_cr" = x; then
16165 eval ac_cr=\$\'\\r\'
16167 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16168 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16169 ac_cs_awk_cr='\\r'
16170 else
16171 ac_cs_awk_cr=$ac_cr
16174 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16175 _ACEOF
16179 echo "cat >conf$$subs.awk <<_ACEOF" &&
16180 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16181 echo "_ACEOF"
16182 } >conf$$subs.sh ||
16183 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16184 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16185 ac_delim='%!_!# '
16186 for ac_last_try in false false false false false :; do
16187 . ./conf$$subs.sh ||
16188 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16190 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16191 if test $ac_delim_n = $ac_delim_num; then
16192 break
16193 elif $ac_last_try; then
16194 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16195 else
16196 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16198 done
16199 rm -f conf$$subs.sh
16201 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16202 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16203 _ACEOF
16204 sed -n '
16206 s/^/S["/; s/!.*/"]=/
16209 s/^[^!]*!//
16210 :repl
16211 t repl
16212 s/'"$ac_delim"'$//
16213 t delim
16216 s/\(.\{148\}\)..*/\1/
16217 t more1
16218 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16221 b repl
16222 :more1
16223 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16226 s/.\{148\}//
16227 t nl
16228 :delim
16230 s/\(.\{148\}\)..*/\1/
16231 t more2
16232 s/["\\]/\\&/g; s/^/"/; s/$/"/
16235 :more2
16236 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16239 s/.\{148\}//
16240 t delim
16241 ' <conf$$subs.awk | sed '
16242 /^[^""]/{
16244 s/\n//
16246 ' >>$CONFIG_STATUS || ac_write_fail=1
16247 rm -f conf$$subs.awk
16248 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16249 _ACAWK
16250 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16251 for (key in S) S_is_set[key] = 1
16252 FS = "\a"
16256 line = $ 0
16257 nfields = split(line, field, "@")
16258 substed = 0
16259 len = length(field[1])
16260 for (i = 2; i < nfields; i++) {
16261 key = field[i]
16262 keylen = length(key)
16263 if (S_is_set[key]) {
16264 value = S[key]
16265 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16266 len += length(value) + length(field[++i])
16267 substed = 1
16268 } else
16269 len += 1 + keylen
16272 print line
16275 _ACAWK
16276 _ACEOF
16277 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16278 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16279 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16280 else
16282 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16283 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16284 _ACEOF
16286 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16287 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16288 # trailing colons and then remove the whole line if VPATH becomes empty
16289 # (actually we leave an empty line to preserve line numbers).
16290 if test "x$srcdir" = x.; then
16291 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16293 s///
16294 s/^/:/
16295 s/[ ]*$/:/
16296 s/:\$(srcdir):/:/g
16297 s/:\${srcdir}:/:/g
16298 s/:@srcdir@:/:/g
16299 s/^:*//
16300 s/:*$//
16302 s/\(=[ ]*\).*/\1/
16304 s/\n//
16305 s/^[^=]*=[ ]*$//
16309 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16310 fi # test -n "$CONFIG_FILES"
16312 # Set up the scripts for CONFIG_HEADERS section.
16313 # No need to generate them if there are no CONFIG_HEADERS.
16314 # This happens for instance with `./config.status Makefile'.
16315 if test -n "$CONFIG_HEADERS"; then
16316 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16317 BEGIN {
16318 _ACEOF
16320 # Transform confdefs.h into an awk script `defines.awk', embedded as
16321 # here-document in config.status, that substitutes the proper values into
16322 # config.h.in to produce config.h.
16324 # Create a delimiter string that does not exist in confdefs.h, to ease
16325 # handling of long lines.
16326 ac_delim='%!_!# '
16327 for ac_last_try in false false :; do
16328 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16329 if test -z "$ac_tt"; then
16330 break
16331 elif $ac_last_try; then
16332 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16333 else
16334 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16336 done
16338 # For the awk script, D is an array of macro values keyed by name,
16339 # likewise P contains macro parameters if any. Preserve backslash
16340 # newline sequences.
16342 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16343 sed -n '
16344 s/.\{148\}/&'"$ac_delim"'/g
16345 t rset
16346 :rset
16347 s/^[ ]*#[ ]*define[ ][ ]*/ /
16348 t def
16350 :def
16351 s/\\$//
16352 t bsnl
16353 s/["\\]/\\&/g
16354 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16355 D["\1"]=" \3"/p
16356 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16358 :bsnl
16359 s/["\\]/\\&/g
16360 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16361 D["\1"]=" \3\\\\\\n"\\/p
16362 t cont
16363 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16364 t cont
16366 :cont
16368 s/.\{148\}/&'"$ac_delim"'/g
16369 t clear
16370 :clear
16371 s/\\$//
16372 t bsnlc
16373 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16375 :bsnlc
16376 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16377 b cont
16378 ' <confdefs.h | sed '
16379 s/'"$ac_delim"'/"\\\
16380 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16382 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16383 for (key in D) D_is_set[key] = 1
16384 FS = "\a"
16386 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16387 line = \$ 0
16388 split(line, arg, " ")
16389 if (arg[1] == "#") {
16390 defundef = arg[2]
16391 mac1 = arg[3]
16392 } else {
16393 defundef = substr(arg[1], 2)
16394 mac1 = arg[2]
16396 split(mac1, mac2, "(") #)
16397 macro = mac2[1]
16398 prefix = substr(line, 1, index(line, defundef) - 1)
16399 if (D_is_set[macro]) {
16400 # Preserve the white space surrounding the "#".
16401 print prefix "define", macro P[macro] D[macro]
16402 next
16403 } else {
16404 # Replace #undef with comments. This is necessary, for example,
16405 # in the case of _POSIX_SOURCE, which is predefined and required
16406 # on some systems where configure will not decide to define it.
16407 if (defundef == "undef") {
16408 print "/*", prefix defundef, macro, "*/"
16409 next
16413 { print }
16414 _ACAWK
16415 _ACEOF
16416 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16417 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16418 fi # test -n "$CONFIG_HEADERS"
16421 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
16422 shift
16423 for ac_tag
16425 case $ac_tag in
16426 :[FHLC]) ac_mode=$ac_tag; continue;;
16427 esac
16428 case $ac_mode$ac_tag in
16429 :[FHL]*:*);;
16430 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16431 :[FH]-) ac_tag=-:-;;
16432 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16433 esac
16434 ac_save_IFS=$IFS
16435 IFS=:
16436 set x $ac_tag
16437 IFS=$ac_save_IFS
16438 shift
16439 ac_file=$1
16440 shift
16442 case $ac_mode in
16443 :L) ac_source=$1;;
16444 :[FH])
16445 ac_file_inputs=
16446 for ac_f
16448 case $ac_f in
16449 -) ac_f="$ac_tmp/stdin";;
16450 *) # Look for the file first in the build tree, then in the source tree
16451 # (if the path is not absolute). The absolute path cannot be DOS-style,
16452 # because $ac_f cannot contain `:'.
16453 test -f "$ac_f" ||
16454 case $ac_f in
16455 [\\/$]*) false;;
16456 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16457 esac ||
16458 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16459 esac
16460 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16461 as_fn_append ac_file_inputs " '$ac_f'"
16462 done
16464 # Let's still pretend it is `configure' which instantiates (i.e., don't
16465 # use $as_me), people would be surprised to read:
16466 # /* config.h. Generated by config.status. */
16467 configure_input='Generated from '`
16468 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16469 `' by configure.'
16470 if test x"$ac_file" != x-; then
16471 configure_input="$ac_file. $configure_input"
16472 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16473 $as_echo "$as_me: creating $ac_file" >&6;}
16475 # Neutralize special characters interpreted by sed in replacement strings.
16476 case $configure_input in #(
16477 *\&* | *\|* | *\\* )
16478 ac_sed_conf_input=`$as_echo "$configure_input" |
16479 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16480 *) ac_sed_conf_input=$configure_input;;
16481 esac
16483 case $ac_tag in
16484 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16485 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16486 esac
16488 esac
16490 ac_dir=`$as_dirname -- "$ac_file" ||
16491 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16492 X"$ac_file" : 'X\(//\)[^/]' \| \
16493 X"$ac_file" : 'X\(//\)$' \| \
16494 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16495 $as_echo X"$ac_file" |
16496 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16497 s//\1/
16500 /^X\(\/\/\)[^/].*/{
16501 s//\1/
16504 /^X\(\/\/\)$/{
16505 s//\1/
16508 /^X\(\/\).*/{
16509 s//\1/
16512 s/.*/./; q'`
16513 as_dir="$ac_dir"; as_fn_mkdir_p
16514 ac_builddir=.
16516 case "$ac_dir" in
16517 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16519 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16520 # A ".." for each directory in $ac_dir_suffix.
16521 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16522 case $ac_top_builddir_sub in
16523 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16524 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16525 esac ;;
16526 esac
16527 ac_abs_top_builddir=$ac_pwd
16528 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16529 # for backward compatibility:
16530 ac_top_builddir=$ac_top_build_prefix
16532 case $srcdir in
16533 .) # We are building in place.
16534 ac_srcdir=.
16535 ac_top_srcdir=$ac_top_builddir_sub
16536 ac_abs_top_srcdir=$ac_pwd ;;
16537 [\\/]* | ?:[\\/]* ) # Absolute name.
16538 ac_srcdir=$srcdir$ac_dir_suffix;
16539 ac_top_srcdir=$srcdir
16540 ac_abs_top_srcdir=$srcdir ;;
16541 *) # Relative name.
16542 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16543 ac_top_srcdir=$ac_top_build_prefix$srcdir
16544 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16545 esac
16546 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16549 case $ac_mode in
16552 # CONFIG_FILE
16555 _ACEOF
16557 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16558 # If the template does not know about datarootdir, expand it.
16559 # FIXME: This hack should be removed a few years after 2.60.
16560 ac_datarootdir_hack=; ac_datarootdir_seen=
16561 ac_sed_dataroot='
16562 /datarootdir/ {
16566 /@datadir@/p
16567 /@docdir@/p
16568 /@infodir@/p
16569 /@localedir@/p
16570 /@mandir@/p'
16571 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16572 *datarootdir*) ac_datarootdir_seen=yes;;
16573 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16574 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16575 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16576 _ACEOF
16577 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16578 ac_datarootdir_hack='
16579 s&@datadir@&$datadir&g
16580 s&@docdir@&$docdir&g
16581 s&@infodir@&$infodir&g
16582 s&@localedir@&$localedir&g
16583 s&@mandir@&$mandir&g
16584 s&\\\${datarootdir}&$datarootdir&g' ;;
16585 esac
16586 _ACEOF
16588 # Neutralize VPATH when `$srcdir' = `.'.
16589 # Shell code in configure.ac might set extrasub.
16590 # FIXME: do we really want to maintain this feature?
16591 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16592 ac_sed_extra="$ac_vpsub
16593 $extrasub
16594 _ACEOF
16595 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16597 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16598 s|@configure_input@|$ac_sed_conf_input|;t t
16599 s&@top_builddir@&$ac_top_builddir_sub&;t t
16600 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16601 s&@srcdir@&$ac_srcdir&;t t
16602 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16603 s&@top_srcdir@&$ac_top_srcdir&;t t
16604 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16605 s&@builddir@&$ac_builddir&;t t
16606 s&@abs_builddir@&$ac_abs_builddir&;t t
16607 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16608 $ac_datarootdir_hack
16610 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16611 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16613 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16614 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16615 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16616 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16617 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16618 which seems to be undefined. Please make sure it is defined" >&5
16619 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16620 which seems to be undefined. Please make sure it is defined" >&2;}
16622 rm -f "$ac_tmp/stdin"
16623 case $ac_file in
16624 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16625 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16626 esac \
16627 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16631 # CONFIG_HEADER
16633 if test x"$ac_file" != x-; then
16635 $as_echo "/* $configure_input */" \
16636 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16637 } >"$ac_tmp/config.h" \
16638 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16639 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16640 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16641 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16642 else
16643 rm -f "$ac_file"
16644 mv "$ac_tmp/config.h" "$ac_file" \
16645 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16647 else
16648 $as_echo "/* $configure_input */" \
16649 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16650 || as_fn_error $? "could not create -" "$LINENO" 5
16655 esac
16657 done # for ac_tag
16660 as_fn_exit 0
16661 _ACEOF
16662 ac_clean_files=$ac_clean_files_save
16664 test $ac_write_fail = 0 ||
16665 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16668 # configure is writing to config.log, and then calls config.status.
16669 # config.status does its own redirection, appending to config.log.
16670 # Unfortunately, on DOS this fails, as config.log is still kept open
16671 # by configure, so config.status won't be able to write to it; its
16672 # output is simply discarded. So we exec the FD to /dev/null,
16673 # effectively closing config.log, so it can be properly (re)opened and
16674 # appended to by config.status. When coming back to configure, we
16675 # need to make the FD available again.
16676 if test "$no_create" != yes; then
16677 ac_cs_success=:
16678 ac_config_status_args=
16679 test "$silent" = yes &&
16680 ac_config_status_args="$ac_config_status_args --quiet"
16681 exec 5>/dev/null
16682 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16683 exec 5>>config.log
16684 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16685 # would make configure fail if this is the last instruction.
16686 $ac_cs_success || as_fn_exit 1
16688 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16689 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16690 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}