qa: revert some change to expected 244 outputs (from pmda-restart)
[pcp.git] / configure
blob4408c8b5c06fe2a16fdb880bfc131d47e0d4b1fb
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 pcp_man_dir
663 pcp_x11_pre
664 pcp_x11_extra
665 pcp_x11_libflags
666 pcp_x11_incflags
667 X_EXTRA_LIBS
668 X_LIBS
669 X_PRE_LIBS
670 X_CFLAGS
671 XMKMF
672 python_prefix
673 perl_install_base
674 perl_installdirs
675 pcp_lib32_dir
676 pcp_lib_dir
677 pcp_pmdas_dir
678 pcp_var_dir
679 pcp_binadm_dir
680 pcp_share_dir
681 pcp_pmloggercontrol_path
682 pcp_pmsnapcontrol_path
683 pcp_pmiecontrol_path
684 pcp_pmproxyoptions_path
685 pcp_pmmgroptions_path
686 pcp_pmwebdoptions_path
687 pcp_pmcdrclocal_path
688 pcp_pmcdoptions_path
689 pcp_pmcdconf_path
690 pcp_sysconf_dir
691 pcp_saslconf_dir
692 pcp_etc_dir
693 lib_for_math
694 lib_for_dlopen
695 lib_for_rt
696 lib_for_basename
697 fmt_pthread
698 lib_for_pthreads
699 fmt_int64
700 fmt_pid
701 rdynamic_flag
702 enable_manager
703 enable_webapi
704 HAVE_CAIRO
705 cairo_LIBS
706 cairo_CFLAGS
707 HAVE_LIBMICROHTTPD
708 libmicrohttpd_LIBS
709 libmicrohttpd_CFLAGS
710 PMDA_POSTFIX
711 QSHAPE
712 PMDA_RPM
713 PMDA_PERFEVENT
714 PFM_LIBS
715 PMDA_PAPI
716 PAPI_LIBS
717 PAPI_CFLAGS
718 papi_LIBS
719 papi_CFLAGS
720 PMDA_INFINIBAND
721 IB_LIBS
722 PMDA_SYSTEMD
723 SYSTEMD_LIBS
724 SYSTEMD_CFLAGS
725 HAVE_NCURSES
726 ncurses_LIBS
727 ncurses_CFLAGS
728 lib_for_regex
729 grep
730 pcp_syslog_prog
731 pcp_ps_prog
732 LN_S
733 book_brand
734 book_toolchain
735 xmlto
736 XMLTO
737 dblatex
738 DBLATEX
739 publican
740 PUBLICAN
741 makepkg
742 MAKEPKG
743 dpkg
744 DPKG
745 md5sum
746 MD5SUM
747 makedepend
748 MAKEDEPEND
749 TRUEPROG
750 pod2man
751 POD2MAN
752 rpmprog
755 rpmbuild
756 RPMBUILD
757 dlltool
758 DLLTOOL
759 pkgmk
760 PKGMK
761 mkinstallp
762 MKINSTALLP
763 hdiutil
764 HDIUTIL
765 package_maker
768 lzma
769 LZMA
770 bzip2
771 BZIP2
772 gzip
776 pcp_group_install
777 pcp_user_install
781 make
782 MAKE
783 qmake
784 enable_qt
785 qt_release
786 QMAKE
787 PMDA_ACTIVEMQ
788 PMDA_NGINX
789 PMDA_ELASTICSEARCH
790 PMDA_ORACLE
791 PMDA_POSTGRESQL
792 PMDA_MYSQL
793 PMDA_SNMP
794 have_perl
795 pcp_perl_prog
796 PERL
797 PMDA_JSON
798 have_python_six
799 have_python_jsonpointer
800 pcp_python_prog
801 have_python
802 enable_python3
803 enable_python2
804 PYTHON3
805 PYTHON
807 LTLIBOBJS
808 LIBOBJS
809 pm_version_current
810 PACKAGE_DISTRIBUTION
811 PACKAGE_BUILD_DATE
812 PACKAGE_BUILD
813 PACKAGE_REVISION
814 PACKAGE_MINOR
815 PACKAGE_MAJOR
816 enable_systemd
817 pcp_systemdunit_dir
818 SYSTEMD_SYSTEMUNITDIR
819 enable_avahi
820 enable_discovery
821 lib_for_avahi
822 avahi_LIBS
823 avahi_CFLAGS
824 enable_probes
826 DTRACE
827 EGREP
828 GREP
829 echo_c
830 echo_n
831 sort
832 which
833 WHICH
834 echo
835 ECHO
840 yacc
841 YFLAGS
842 YACC
844 LEXLIB
845 LEX_OUTPUT_ROOT
847 enable_shared
849 ac_ct_CXX
850 CXXFLAGS
852 INVISIBILITY
853 PIECFLAGS
854 PIELDFLAGS
855 PLDFLAGS
856 PCFLAGS
857 cflags_abi
858 cc_is_gcc
860 CCPATH
861 OBJEXT
862 EXEEXT
863 ac_ct_CC
864 CPPFLAGS
865 LDFLAGS
866 CFLAGS
868 PKG_CONFIG_LIBDIR
869 PKG_CONFIG_PATH
870 PKG_CONFIG
871 optimization
872 pcp_ps_all_flags
873 pcp_platform_paths
874 cross_compiling
875 target_os
876 target_vendor
877 target_cpu
878 target
879 host_os
880 host_vendor
881 host_cpu
882 host
883 build_os
884 build_vendor
885 build_cpu
886 build
887 pcp_group
888 pcp_user
889 target_alias
890 host_alias
891 build_alias
892 LIBS
893 ECHO_T
894 ECHO_N
895 ECHO_C
896 DEFS
897 mandir
898 localedir
899 libdir
900 psdir
901 pdfdir
902 dvidir
903 htmldir
904 infodir
905 docdir
906 oldincludedir
907 includedir
908 localstatedir
909 sharedstatedir
910 sysconfdir
911 datadir
912 datarootdir
913 libexecdir
914 sbindir
915 bindir
916 program_transform_name
917 prefix
918 exec_prefix
919 PACKAGE_URL
920 PACKAGE_BUGREPORT
921 PACKAGE_STRING
922 PACKAGE_VERSION
923 PACKAGE_TARNAME
924 PACKAGE_NAME
925 PATH_SEPARATOR
926 SHELL'
927 ac_subst_files=''
928 ac_user_opts='
929 enable_option_checking
930 with_64bit
931 with_optimization
932 with_threads
933 with_secure_sockets
934 with_static_probes
935 with_infiniband
936 with_user
937 with_group
938 with_discovery
939 with_systemd
940 with_qt
941 with_python
942 with_python3
943 with_books
944 with_books_brand
945 with_papi
946 with_perfevent
947 with_pmdajson
948 with_manager
949 with_webapi
950 with_webjs
951 with_vector
952 with_parfait
953 with_make
954 with_tar
955 with_zip
956 enable_ssp
957 enable_pie
958 enable_visibility
959 enable_shared
960 with_configdir
961 with_perl_installdirs
962 with_perl_install_base
963 with_python_prefix
964 with_x
965 with_rcdir
966 with_sysconfigdir
967 with_logdir
968 with_rundir
969 with_tmpdir
970 with_docdir
971 with_demosdir
973 ac_precious_vars='build_alias
974 host_alias
975 target_alias
976 PKG_CONFIG
977 PKG_CONFIG_PATH
978 PKG_CONFIG_LIBDIR
980 CFLAGS
981 LDFLAGS
982 LIBS
983 CPPFLAGS
985 CXXFLAGS
987 YACC
988 YFLAGS
990 avahi_CFLAGS
991 avahi_LIBS
992 SYSTEMD_SYSTEMUNITDIR
993 ncurses_CFLAGS
994 ncurses_LIBS
995 SYSTEMD_CFLAGS
996 SYSTEMD_LIBS
997 papi_CFLAGS
998 papi_LIBS
999 libmicrohttpd_CFLAGS
1000 libmicrohttpd_LIBS
1001 cairo_CFLAGS
1002 cairo_LIBS
1003 XMKMF
1004 zlib_CFLAGS
1005 zlib_LIBS'
1008 # Initialize some variables set by options.
1009 ac_init_help=
1010 ac_init_version=false
1011 ac_unrecognized_opts=
1012 ac_unrecognized_sep=
1013 # The variables have the same names as the options, with
1014 # dashes changed to underlines.
1015 cache_file=/dev/null
1016 exec_prefix=NONE
1017 no_create=
1018 no_recursion=
1019 prefix=NONE
1020 program_prefix=NONE
1021 program_suffix=NONE
1022 program_transform_name=s,x,x,
1023 silent=
1024 site=
1025 srcdir=
1026 verbose=
1027 x_includes=NONE
1028 x_libraries=NONE
1030 # Installation directory options.
1031 # These are left unexpanded so users can "make install exec_prefix=/foo"
1032 # and all the variables that are supposed to be based on exec_prefix
1033 # by default will actually change.
1034 # Use braces instead of parens because sh, perl, etc. also accept them.
1035 # (The list follows the same order as the GNU Coding Standards.)
1036 bindir='${exec_prefix}/bin'
1037 sbindir='${exec_prefix}/sbin'
1038 libexecdir='${exec_prefix}/libexec'
1039 datarootdir='${prefix}/share'
1040 datadir='${datarootdir}'
1041 sysconfdir='${prefix}/etc'
1042 sharedstatedir='${prefix}/com'
1043 localstatedir='${prefix}/var'
1044 includedir='${prefix}/include'
1045 oldincludedir='/usr/include'
1046 docdir='${datarootdir}/doc/${PACKAGE}'
1047 infodir='${datarootdir}/info'
1048 htmldir='${docdir}'
1049 dvidir='${docdir}'
1050 pdfdir='${docdir}'
1051 psdir='${docdir}'
1052 libdir='${exec_prefix}/lib'
1053 localedir='${datarootdir}/locale'
1054 mandir='${datarootdir}/man'
1056 ac_prev=
1057 ac_dashdash=
1058 for ac_option
1060 # If the previous option needs an argument, assign it.
1061 if test -n "$ac_prev"; then
1062 eval $ac_prev=\$ac_option
1063 ac_prev=
1064 continue
1067 case $ac_option in
1068 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1069 *=) ac_optarg= ;;
1070 *) ac_optarg=yes ;;
1071 esac
1073 # Accept the important Cygnus configure options, so we can diagnose typos.
1075 case $ac_dashdash$ac_option in
1077 ac_dashdash=yes ;;
1079 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1080 ac_prev=bindir ;;
1081 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1082 bindir=$ac_optarg ;;
1084 -build | --build | --buil | --bui | --bu)
1085 ac_prev=build_alias ;;
1086 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1087 build_alias=$ac_optarg ;;
1089 -cache-file | --cache-file | --cache-fil | --cache-fi \
1090 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1091 ac_prev=cache_file ;;
1092 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1093 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1094 cache_file=$ac_optarg ;;
1096 --config-cache | -C)
1097 cache_file=config.cache ;;
1099 -datadir | --datadir | --datadi | --datad)
1100 ac_prev=datadir ;;
1101 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1102 datadir=$ac_optarg ;;
1104 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1105 | --dataroo | --dataro | --datar)
1106 ac_prev=datarootdir ;;
1107 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1108 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1109 datarootdir=$ac_optarg ;;
1111 -disable-* | --disable-*)
1112 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1113 # Reject names that are not valid shell variable names.
1114 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1115 as_fn_error $? "invalid feature name: $ac_useropt"
1116 ac_useropt_orig=$ac_useropt
1117 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1118 case $ac_user_opts in
1120 "enable_$ac_useropt"
1121 "*) ;;
1122 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1123 ac_unrecognized_sep=', ';;
1124 esac
1125 eval enable_$ac_useropt=no ;;
1127 -docdir | --docdir | --docdi | --doc | --do)
1128 ac_prev=docdir ;;
1129 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1130 docdir=$ac_optarg ;;
1132 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1133 ac_prev=dvidir ;;
1134 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1135 dvidir=$ac_optarg ;;
1137 -enable-* | --enable-*)
1138 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1139 # Reject names that are not valid shell variable names.
1140 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1141 as_fn_error $? "invalid feature name: $ac_useropt"
1142 ac_useropt_orig=$ac_useropt
1143 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1144 case $ac_user_opts in
1146 "enable_$ac_useropt"
1147 "*) ;;
1148 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1149 ac_unrecognized_sep=', ';;
1150 esac
1151 eval enable_$ac_useropt=\$ac_optarg ;;
1153 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1154 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1155 | --exec | --exe | --ex)
1156 ac_prev=exec_prefix ;;
1157 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1158 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1159 | --exec=* | --exe=* | --ex=*)
1160 exec_prefix=$ac_optarg ;;
1162 -gas | --gas | --ga | --g)
1163 # Obsolete; use --with-gas.
1164 with_gas=yes ;;
1166 -help | --help | --hel | --he | -h)
1167 ac_init_help=long ;;
1168 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1169 ac_init_help=recursive ;;
1170 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1171 ac_init_help=short ;;
1173 -host | --host | --hos | --ho)
1174 ac_prev=host_alias ;;
1175 -host=* | --host=* | --hos=* | --ho=*)
1176 host_alias=$ac_optarg ;;
1178 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1179 ac_prev=htmldir ;;
1180 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1181 | --ht=*)
1182 htmldir=$ac_optarg ;;
1184 -includedir | --includedir | --includedi | --included | --include \
1185 | --includ | --inclu | --incl | --inc)
1186 ac_prev=includedir ;;
1187 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1188 | --includ=* | --inclu=* | --incl=* | --inc=*)
1189 includedir=$ac_optarg ;;
1191 -infodir | --infodir | --infodi | --infod | --info | --inf)
1192 ac_prev=infodir ;;
1193 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1194 infodir=$ac_optarg ;;
1196 -libdir | --libdir | --libdi | --libd)
1197 ac_prev=libdir ;;
1198 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1199 libdir=$ac_optarg ;;
1201 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1202 | --libexe | --libex | --libe)
1203 ac_prev=libexecdir ;;
1204 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1205 | --libexe=* | --libex=* | --libe=*)
1206 libexecdir=$ac_optarg ;;
1208 -localedir | --localedir | --localedi | --localed | --locale)
1209 ac_prev=localedir ;;
1210 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1211 localedir=$ac_optarg ;;
1213 -localstatedir | --localstatedir | --localstatedi | --localstated \
1214 | --localstate | --localstat | --localsta | --localst | --locals)
1215 ac_prev=localstatedir ;;
1216 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1217 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1218 localstatedir=$ac_optarg ;;
1220 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1221 ac_prev=mandir ;;
1222 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1223 mandir=$ac_optarg ;;
1225 -nfp | --nfp | --nf)
1226 # Obsolete; use --without-fp.
1227 with_fp=no ;;
1229 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1230 | --no-cr | --no-c | -n)
1231 no_create=yes ;;
1233 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1234 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1235 no_recursion=yes ;;
1237 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1238 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1239 | --oldin | --oldi | --old | --ol | --o)
1240 ac_prev=oldincludedir ;;
1241 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1242 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1243 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1244 oldincludedir=$ac_optarg ;;
1246 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1247 ac_prev=prefix ;;
1248 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1249 prefix=$ac_optarg ;;
1251 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1252 | --program-pre | --program-pr | --program-p)
1253 ac_prev=program_prefix ;;
1254 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1255 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1256 program_prefix=$ac_optarg ;;
1258 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1259 | --program-suf | --program-su | --program-s)
1260 ac_prev=program_suffix ;;
1261 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1262 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1263 program_suffix=$ac_optarg ;;
1265 -program-transform-name | --program-transform-name \
1266 | --program-transform-nam | --program-transform-na \
1267 | --program-transform-n | --program-transform- \
1268 | --program-transform | --program-transfor \
1269 | --program-transfo | --program-transf \
1270 | --program-trans | --program-tran \
1271 | --progr-tra | --program-tr | --program-t)
1272 ac_prev=program_transform_name ;;
1273 -program-transform-name=* | --program-transform-name=* \
1274 | --program-transform-nam=* | --program-transform-na=* \
1275 | --program-transform-n=* | --program-transform-=* \
1276 | --program-transform=* | --program-transfor=* \
1277 | --program-transfo=* | --program-transf=* \
1278 | --program-trans=* | --program-tran=* \
1279 | --progr-tra=* | --program-tr=* | --program-t=*)
1280 program_transform_name=$ac_optarg ;;
1282 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1283 ac_prev=pdfdir ;;
1284 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1285 pdfdir=$ac_optarg ;;
1287 -psdir | --psdir | --psdi | --psd | --ps)
1288 ac_prev=psdir ;;
1289 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1290 psdir=$ac_optarg ;;
1292 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1293 | -silent | --silent | --silen | --sile | --sil)
1294 silent=yes ;;
1296 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1297 ac_prev=sbindir ;;
1298 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1299 | --sbi=* | --sb=*)
1300 sbindir=$ac_optarg ;;
1302 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1303 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1304 | --sharedst | --shareds | --shared | --share | --shar \
1305 | --sha | --sh)
1306 ac_prev=sharedstatedir ;;
1307 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1308 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1309 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1310 | --sha=* | --sh=*)
1311 sharedstatedir=$ac_optarg ;;
1313 -site | --site | --sit)
1314 ac_prev=site ;;
1315 -site=* | --site=* | --sit=*)
1316 site=$ac_optarg ;;
1318 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1319 ac_prev=srcdir ;;
1320 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1321 srcdir=$ac_optarg ;;
1323 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1324 | --syscon | --sysco | --sysc | --sys | --sy)
1325 ac_prev=sysconfdir ;;
1326 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1327 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1328 sysconfdir=$ac_optarg ;;
1330 -target | --target | --targe | --targ | --tar | --ta | --t)
1331 ac_prev=target_alias ;;
1332 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1333 target_alias=$ac_optarg ;;
1335 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1336 verbose=yes ;;
1338 -version | --version | --versio | --versi | --vers | -V)
1339 ac_init_version=: ;;
1341 -with-* | --with-*)
1342 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1343 # Reject names that are not valid shell variable names.
1344 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1345 as_fn_error $? "invalid package name: $ac_useropt"
1346 ac_useropt_orig=$ac_useropt
1347 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1348 case $ac_user_opts in
1350 "with_$ac_useropt"
1351 "*) ;;
1352 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1353 ac_unrecognized_sep=', ';;
1354 esac
1355 eval with_$ac_useropt=\$ac_optarg ;;
1357 -without-* | --without-*)
1358 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1359 # Reject names that are not valid shell variable names.
1360 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1361 as_fn_error $? "invalid package name: $ac_useropt"
1362 ac_useropt_orig=$ac_useropt
1363 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1364 case $ac_user_opts in
1366 "with_$ac_useropt"
1367 "*) ;;
1368 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1369 ac_unrecognized_sep=', ';;
1370 esac
1371 eval with_$ac_useropt=no ;;
1373 --x)
1374 # Obsolete; use --with-x.
1375 with_x=yes ;;
1377 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1378 | --x-incl | --x-inc | --x-in | --x-i)
1379 ac_prev=x_includes ;;
1380 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1381 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1382 x_includes=$ac_optarg ;;
1384 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1385 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1386 ac_prev=x_libraries ;;
1387 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1388 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1389 x_libraries=$ac_optarg ;;
1391 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1392 Try \`$0 --help' for more information"
1395 *=*)
1396 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1397 # Reject names that are not valid shell variable names.
1398 case $ac_envvar in #(
1399 '' | [0-9]* | *[!_$as_cr_alnum]* )
1400 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1401 esac
1402 eval $ac_envvar=\$ac_optarg
1403 export $ac_envvar ;;
1406 # FIXME: should be removed in autoconf 3.0.
1407 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1408 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1409 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1410 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1413 esac
1414 done
1416 if test -n "$ac_prev"; then
1417 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1418 as_fn_error $? "missing argument to $ac_option"
1421 if test -n "$ac_unrecognized_opts"; then
1422 case $enable_option_checking in
1423 no) ;;
1424 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1425 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1426 esac
1429 # Check all directory arguments for consistency.
1430 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1431 datadir sysconfdir sharedstatedir localstatedir includedir \
1432 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1433 libdir localedir mandir
1435 eval ac_val=\$$ac_var
1436 # Remove trailing slashes.
1437 case $ac_val in
1438 */ )
1439 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1440 eval $ac_var=\$ac_val;;
1441 esac
1442 # Be sure to have absolute directory names.
1443 case $ac_val in
1444 [\\/$]* | ?:[\\/]* ) continue;;
1445 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1446 esac
1447 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1448 done
1450 # There might be people who depend on the old broken behavior: `$host'
1451 # used to hold the argument of --host etc.
1452 # FIXME: To remove some day.
1453 build=$build_alias
1454 host=$host_alias
1455 target=$target_alias
1457 # FIXME: To remove some day.
1458 if test "x$host_alias" != x; then
1459 if test "x$build_alias" = x; then
1460 cross_compiling=maybe
1461 elif test "x$build_alias" != "x$host_alias"; then
1462 cross_compiling=yes
1466 ac_tool_prefix=
1467 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1469 test "$silent" = yes && exec 6>/dev/null
1472 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1473 ac_ls_di=`ls -di .` &&
1474 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1475 as_fn_error $? "working directory cannot be determined"
1476 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1477 as_fn_error $? "pwd does not report name of working directory"
1480 # Find the source files, if location was not specified.
1481 if test -z "$srcdir"; then
1482 ac_srcdir_defaulted=yes
1483 # Try the directory containing this script, then the parent directory.
1484 ac_confdir=`$as_dirname -- "$as_myself" ||
1485 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1486 X"$as_myself" : 'X\(//\)[^/]' \| \
1487 X"$as_myself" : 'X\(//\)$' \| \
1488 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1489 $as_echo X"$as_myself" |
1490 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1491 s//\1/
1494 /^X\(\/\/\)[^/].*/{
1495 s//\1/
1498 /^X\(\/\/\)$/{
1499 s//\1/
1502 /^X\(\/\).*/{
1503 s//\1/
1506 s/.*/./; q'`
1507 srcdir=$ac_confdir
1508 if test ! -r "$srcdir/$ac_unique_file"; then
1509 srcdir=..
1511 else
1512 ac_srcdir_defaulted=no
1514 if test ! -r "$srcdir/$ac_unique_file"; then
1515 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1516 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1518 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1519 ac_abs_confdir=`(
1520 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1521 pwd)`
1522 # When building in place, set srcdir=.
1523 if test "$ac_abs_confdir" = "$ac_pwd"; then
1524 srcdir=.
1526 # Remove unnecessary trailing slashes from srcdir.
1527 # Double slashes in file names in object file debugging info
1528 # mess up M-x gdb in Emacs.
1529 case $srcdir in
1530 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1531 esac
1532 for ac_var in $ac_precious_vars; do
1533 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1534 eval ac_env_${ac_var}_value=\$${ac_var}
1535 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1536 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1537 done
1540 # Report the --help message.
1542 if test "$ac_init_help" = "long"; then
1543 # Omit some internal or obsolete options to make the list less imposing.
1544 # This message is too long to be a string in the A/UX 3.1 sh.
1545 cat <<_ACEOF
1546 \`configure' configures this package to adapt to many kinds of systems.
1548 Usage: $0 [OPTION]... [VAR=VALUE]...
1550 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1551 VAR=VALUE. See below for descriptions of some of the useful variables.
1553 Defaults for the options are specified in brackets.
1555 Configuration:
1556 -h, --help display this help and exit
1557 --help=short display options specific to this package
1558 --help=recursive display the short help of all the included packages
1559 -V, --version display version information and exit
1560 -q, --quiet, --silent do not print \`checking ...' messages
1561 --cache-file=FILE cache test results in FILE [disabled]
1562 -C, --config-cache alias for \`--cache-file=config.cache'
1563 -n, --no-create do not create output files
1564 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1566 Installation directories:
1567 --prefix=PREFIX install architecture-independent files in PREFIX
1568 [$ac_default_prefix]
1569 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1570 [PREFIX]
1572 By default, \`make install' will install all the files in
1573 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1574 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1575 for instance \`--prefix=\$HOME'.
1577 For better control, use the options below.
1579 Fine tuning of the installation directories:
1580 --bindir=DIR user executables [EPREFIX/bin]
1581 --sbindir=DIR system admin executables [EPREFIX/sbin]
1582 --libexecdir=DIR program executables [EPREFIX/libexec]
1583 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1584 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1585 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1586 --libdir=DIR object code libraries [EPREFIX/lib]
1587 --includedir=DIR C header files [PREFIX/include]
1588 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1589 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1590 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1591 --infodir=DIR info documentation [DATAROOTDIR/info]
1592 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1593 --mandir=DIR man documentation [DATAROOTDIR/man]
1594 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1595 --htmldir=DIR html documentation [DOCDIR]
1596 --dvidir=DIR dvi documentation [DOCDIR]
1597 --pdfdir=DIR pdf documentation [DOCDIR]
1598 --psdir=DIR ps documentation [DOCDIR]
1599 _ACEOF
1601 cat <<\_ACEOF
1603 X features:
1604 --x-includes=DIR X include files are in DIR
1605 --x-libraries=DIR X library files are in DIR
1607 System types:
1608 --build=BUILD configure for building on BUILD [guessed]
1609 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1610 --target=TARGET configure for building compilers for TARGET [HOST]
1611 _ACEOF
1614 if test -n "$ac_init_help"; then
1616 cat <<\_ACEOF
1618 Optional Features:
1619 --disable-option-checking ignore unrecognized --enable/--with options
1620 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1621 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1622 --disable-ssp disable gcc stack-protector
1623 --disable-pie disable position-independent-executable
1624 --disable-visibility disable gcc symbol visibility
1625 --disable-shared disable core shared libary generation
1627 Optional Packages:
1628 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1629 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1630 --with-64bit turn on 64 bit compilation mode (default is platform
1631 dependent)
1632 --with-optimization enable optimization for C/C++ code (default is yes)
1633 --with-threads enable support for multiple threads (default is on)
1634 --with-secure-sockets enable support for secure sockets (default is on)
1635 --with-static-probes enable support for static probes (default is on)
1636 --with-infiniband enable support for Infiniband metrics (default is
1638 --with-user user account under which daemons run (default is
1639 pcp)
1640 --with-group user group under which daemons run (default is pcp)
1641 --with-discovery enable support for service discovery (default is on)
1642 --with-systemd enable support for systemd services (default is on)
1643 --with-qt enable support for tools requiring Qt (default is
1645 --with-python enable support for tools requiring Python (default
1646 is on)
1647 --with-python3 enable support for tools requiring Python3 (default
1648 is on)
1649 --with-books enable building of the PCP books (default is off)
1650 --with-books-brand=BRAND
1651 choose the docbook brand when building the PCP books
1652 (default is common)
1653 --with-papi[=DIR|=MODULE]
1654 enable performance api counter pmda (default is on)
1655 The optional argument may be a full path of a PAPI
1656 installation prefix, or a pkgconfig module name.
1657 --with-perfevent enable perfevent pmda (default is on)
1658 --with-pmdajson enable JSON pmda (default is on)
1659 --with-manager enable daemon manager (default is on)
1660 --with-webapi enable REST API daemon (default is on)
1661 --with-webjs enable building of webjs packages (default is off)
1662 --with-vector enable building of vector package (default is off)
1663 --with-parfait enable building of parfait package (default is off)
1664 --with-make path to GNU compatible make(1) (default is empty for
1665 auto discovery)
1666 --with-tar path to GNU compatible tar(1) (default is empty for
1667 auto discovery)
1668 --with-zip path to GNU compatible zip(1) (default is empty for
1669 auto discovery)
1670 --with-configdir configuration directory [LOCALSTATEDIR/pcp/config]
1671 --with-perl_installdirs perl installdirs [vendor]
1672 --with-perl_install_base
1673 perl install_base [PREFIX]
1674 --with-python_prefix python setup.py prefix [PREFIX]
1675 --with-x use the X Window System
1676 --with-rcdir rc directory [SYSCONFDIR/rc.d]
1677 --with-sysconfigdir sysconfig directory [SYSCONFDIR/sysconfig]
1678 --with-logdir log directory [LOCALSTATEDIR/log/pcp]
1679 --with-rundir run directory [LOCALSTATEDIR/run/pcp]
1680 --with-tmpdir tmp directory [LOCALSTATEDIR/tmp]
1681 --with-docdir docs directory [DOCDIR/pcp-VERSION]
1682 --with-demosdir run directory [DATADIR/pcp/demos]
1684 Some influential environment variables:
1685 PKG_CONFIG path to pkg-config utility
1686 PKG_CONFIG_PATH
1687 directories to add to pkg-config's search path
1688 PKG_CONFIG_LIBDIR
1689 path overriding pkg-config's built-in search path
1690 CC C compiler command
1691 CFLAGS C compiler flags
1692 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1693 nonstandard directory <lib dir>
1694 LIBS libraries to pass to the linker, e.g. -l<library>
1695 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1696 you have headers in a nonstandard directory <include dir>
1697 CXX C++ compiler command
1698 CXXFLAGS C++ compiler flags
1699 YACC The `Yet Another Compiler Compiler' implementation to use.
1700 Defaults to the first program found out of: `bison -y', `byacc',
1701 `yacc'.
1702 YFLAGS The list of arguments that will be passed by default to $YACC.
1703 This script will default YFLAGS to the empty string to avoid a
1704 default value of `-d' given by some make applications.
1705 CPP C preprocessor
1706 avahi_CFLAGS
1707 C compiler flags for avahi, overriding pkg-config
1708 avahi_LIBS linker flags for avahi, overriding pkg-config
1709 SYSTEMD_SYSTEMUNITDIR
1710 value of systemdsystemunitdir for systemd, overriding pkg-config
1711 ncurses_CFLAGS
1712 C compiler flags for ncurses, overriding pkg-config
1713 ncurses_LIBS
1714 linker flags for ncurses, overriding pkg-config
1715 SYSTEMD_CFLAGS
1716 C compiler flags for SYSTEMD, overriding pkg-config
1717 SYSTEMD_LIBS
1718 linker flags for SYSTEMD, overriding pkg-config
1719 papi_CFLAGS C compiler flags for papi, overriding pkg-config
1720 papi_LIBS linker flags for papi, overriding pkg-config
1721 libmicrohttpd_CFLAGS
1722 C compiler flags for libmicrohttpd, overriding pkg-config
1723 libmicrohttpd_LIBS
1724 linker flags for libmicrohttpd, overriding pkg-config
1725 cairo_CFLAGS
1726 C compiler flags for cairo, overriding pkg-config
1727 cairo_LIBS linker flags for cairo, overriding pkg-config
1728 XMKMF Path to xmkmf, Makefile generator for X Window System
1729 zlib_CFLAGS C compiler flags for zlib, overriding pkg-config
1730 zlib_LIBS linker flags for zlib, overriding pkg-config
1732 Use these variables to override the choices made by `configure' or to help
1733 it to find libraries and programs with nonstandard names/locations.
1735 Report bugs to the package provider.
1736 _ACEOF
1737 ac_status=$?
1740 if test "$ac_init_help" = "recursive"; then
1741 # If there are subdirs, report their specific --help.
1742 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1743 test -d "$ac_dir" ||
1744 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1745 continue
1746 ac_builddir=.
1748 case "$ac_dir" in
1749 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1751 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1752 # A ".." for each directory in $ac_dir_suffix.
1753 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1754 case $ac_top_builddir_sub in
1755 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1756 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1757 esac ;;
1758 esac
1759 ac_abs_top_builddir=$ac_pwd
1760 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1761 # for backward compatibility:
1762 ac_top_builddir=$ac_top_build_prefix
1764 case $srcdir in
1765 .) # We are building in place.
1766 ac_srcdir=.
1767 ac_top_srcdir=$ac_top_builddir_sub
1768 ac_abs_top_srcdir=$ac_pwd ;;
1769 [\\/]* | ?:[\\/]* ) # Absolute name.
1770 ac_srcdir=$srcdir$ac_dir_suffix;
1771 ac_top_srcdir=$srcdir
1772 ac_abs_top_srcdir=$srcdir ;;
1773 *) # Relative name.
1774 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1775 ac_top_srcdir=$ac_top_build_prefix$srcdir
1776 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1777 esac
1778 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1780 cd "$ac_dir" || { ac_status=$?; continue; }
1781 # Check for guested configure.
1782 if test -f "$ac_srcdir/configure.gnu"; then
1783 echo &&
1784 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1785 elif test -f "$ac_srcdir/configure"; then
1786 echo &&
1787 $SHELL "$ac_srcdir/configure" --help=recursive
1788 else
1789 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1790 fi || ac_status=$?
1791 cd "$ac_pwd" || { ac_status=$?; break; }
1792 done
1795 test -n "$ac_init_help" && exit $ac_status
1796 if $ac_init_version; then
1797 cat <<\_ACEOF
1798 configure
1799 generated by GNU Autoconf 2.69
1801 Copyright (C) 2012 Free Software Foundation, Inc.
1802 This configure script is free software; the Free Software Foundation
1803 gives unlimited permission to copy, distribute and modify it.
1804 _ACEOF
1805 exit
1808 ## ------------------------ ##
1809 ## Autoconf initialization. ##
1810 ## ------------------------ ##
1812 # ac_fn_c_try_compile LINENO
1813 # --------------------------
1814 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1815 ac_fn_c_try_compile ()
1817 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1818 rm -f conftest.$ac_objext
1819 if { { ac_try="$ac_compile"
1820 case "(($ac_try" in
1821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1822 *) ac_try_echo=$ac_try;;
1823 esac
1824 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1825 $as_echo "$ac_try_echo"; } >&5
1826 (eval "$ac_compile") 2>conftest.err
1827 ac_status=$?
1828 if test -s conftest.err; then
1829 grep -v '^ *+' conftest.err >conftest.er1
1830 cat conftest.er1 >&5
1831 mv -f conftest.er1 conftest.err
1833 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1834 test $ac_status = 0; } && {
1835 test -z "$ac_c_werror_flag" ||
1836 test ! -s conftest.err
1837 } && test -s conftest.$ac_objext; then :
1838 ac_retval=0
1839 else
1840 $as_echo "$as_me: failed program was:" >&5
1841 sed 's/^/| /' conftest.$ac_ext >&5
1843 ac_retval=1
1845 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1846 as_fn_set_status $ac_retval
1848 } # ac_fn_c_try_compile
1850 # ac_fn_c_try_link LINENO
1851 # -----------------------
1852 # Try to link conftest.$ac_ext, and return whether this succeeded.
1853 ac_fn_c_try_link ()
1855 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1856 rm -f conftest.$ac_objext conftest$ac_exeext
1857 if { { ac_try="$ac_link"
1858 case "(($ac_try" in
1859 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1860 *) ac_try_echo=$ac_try;;
1861 esac
1862 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1863 $as_echo "$ac_try_echo"; } >&5
1864 (eval "$ac_link") 2>conftest.err
1865 ac_status=$?
1866 if test -s conftest.err; then
1867 grep -v '^ *+' conftest.err >conftest.er1
1868 cat conftest.er1 >&5
1869 mv -f conftest.er1 conftest.err
1871 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1872 test $ac_status = 0; } && {
1873 test -z "$ac_c_werror_flag" ||
1874 test ! -s conftest.err
1875 } && test -s conftest$ac_exeext && {
1876 test "$cross_compiling" = yes ||
1877 test -x conftest$ac_exeext
1878 }; then :
1879 ac_retval=0
1880 else
1881 $as_echo "$as_me: failed program was:" >&5
1882 sed 's/^/| /' conftest.$ac_ext >&5
1884 ac_retval=1
1886 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1887 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1888 # interfere with the next link command; also delete a directory that is
1889 # left behind by Apple's compiler. We do this before executing the actions.
1890 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1891 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1892 as_fn_set_status $ac_retval
1894 } # ac_fn_c_try_link
1896 # ac_fn_cxx_try_compile LINENO
1897 # ----------------------------
1898 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1899 ac_fn_cxx_try_compile ()
1901 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1902 rm -f conftest.$ac_objext
1903 if { { ac_try="$ac_compile"
1904 case "(($ac_try" in
1905 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1906 *) ac_try_echo=$ac_try;;
1907 esac
1908 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1909 $as_echo "$ac_try_echo"; } >&5
1910 (eval "$ac_compile") 2>conftest.err
1911 ac_status=$?
1912 if test -s conftest.err; then
1913 grep -v '^ *+' conftest.err >conftest.er1
1914 cat conftest.er1 >&5
1915 mv -f conftest.er1 conftest.err
1917 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1918 test $ac_status = 0; } && {
1919 test -z "$ac_cxx_werror_flag" ||
1920 test ! -s conftest.err
1921 } && test -s conftest.$ac_objext; then :
1922 ac_retval=0
1923 else
1924 $as_echo "$as_me: failed program was:" >&5
1925 sed 's/^/| /' conftest.$ac_ext >&5
1927 ac_retval=1
1929 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1930 as_fn_set_status $ac_retval
1932 } # ac_fn_cxx_try_compile
1934 # ac_fn_c_try_cpp LINENO
1935 # ----------------------
1936 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1937 ac_fn_c_try_cpp ()
1939 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1940 if { { ac_try="$ac_cpp conftest.$ac_ext"
1941 case "(($ac_try" in
1942 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1943 *) ac_try_echo=$ac_try;;
1944 esac
1945 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1946 $as_echo "$ac_try_echo"; } >&5
1947 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1948 ac_status=$?
1949 if test -s conftest.err; then
1950 grep -v '^ *+' conftest.err >conftest.er1
1951 cat conftest.er1 >&5
1952 mv -f conftest.er1 conftest.err
1954 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1955 test $ac_status = 0; } > conftest.i && {
1956 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1957 test ! -s conftest.err
1958 }; then :
1959 ac_retval=0
1960 else
1961 $as_echo "$as_me: failed program was:" >&5
1962 sed 's/^/| /' conftest.$ac_ext >&5
1964 ac_retval=1
1966 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1967 as_fn_set_status $ac_retval
1969 } # ac_fn_c_try_cpp
1971 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1972 # -------------------------------------------------------
1973 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1974 # the include files in INCLUDES and setting the cache variable VAR
1975 # accordingly.
1976 ac_fn_c_check_header_mongrel ()
1978 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1979 if eval \${$3+:} false; then :
1980 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1981 $as_echo_n "checking for $2... " >&6; }
1982 if eval \${$3+:} false; then :
1983 $as_echo_n "(cached) " >&6
1985 eval ac_res=\$$3
1986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1987 $as_echo "$ac_res" >&6; }
1988 else
1989 # Is the header compilable?
1990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1991 $as_echo_n "checking $2 usability... " >&6; }
1992 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1993 /* end confdefs.h. */
1995 #include <$2>
1996 _ACEOF
1997 if ac_fn_c_try_compile "$LINENO"; then :
1998 ac_header_compiler=yes
1999 else
2000 ac_header_compiler=no
2002 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2004 $as_echo "$ac_header_compiler" >&6; }
2006 # Is the header present?
2007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2008 $as_echo_n "checking $2 presence... " >&6; }
2009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2010 /* end confdefs.h. */
2011 #include <$2>
2012 _ACEOF
2013 if ac_fn_c_try_cpp "$LINENO"; then :
2014 ac_header_preproc=yes
2015 else
2016 ac_header_preproc=no
2018 rm -f conftest.err conftest.i conftest.$ac_ext
2019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2020 $as_echo "$ac_header_preproc" >&6; }
2022 # So? What about this header?
2023 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2024 yes:no: )
2025 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2026 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2027 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2028 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2030 no:yes:* )
2031 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2032 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2033 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2034 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2035 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2036 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2037 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2038 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2039 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2040 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2042 esac
2043 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2044 $as_echo_n "checking for $2... " >&6; }
2045 if eval \${$3+:} false; then :
2046 $as_echo_n "(cached) " >&6
2047 else
2048 eval "$3=\$ac_header_compiler"
2050 eval ac_res=\$$3
2051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2052 $as_echo "$ac_res" >&6; }
2054 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2056 } # ac_fn_c_check_header_mongrel
2058 # ac_fn_c_try_run LINENO
2059 # ----------------------
2060 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2061 # that executables *can* be run.
2062 ac_fn_c_try_run ()
2064 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2065 if { { ac_try="$ac_link"
2066 case "(($ac_try" in
2067 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2068 *) ac_try_echo=$ac_try;;
2069 esac
2070 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2071 $as_echo "$ac_try_echo"; } >&5
2072 (eval "$ac_link") 2>&5
2073 ac_status=$?
2074 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2075 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2076 { { case "(($ac_try" in
2077 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2078 *) ac_try_echo=$ac_try;;
2079 esac
2080 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2081 $as_echo "$ac_try_echo"; } >&5
2082 (eval "$ac_try") 2>&5
2083 ac_status=$?
2084 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2085 test $ac_status = 0; }; }; then :
2086 ac_retval=0
2087 else
2088 $as_echo "$as_me: program exited with status $ac_status" >&5
2089 $as_echo "$as_me: failed program was:" >&5
2090 sed 's/^/| /' conftest.$ac_ext >&5
2092 ac_retval=$ac_status
2094 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2095 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2096 as_fn_set_status $ac_retval
2098 } # ac_fn_c_try_run
2100 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2101 # -------------------------------------------------------
2102 # Tests whether HEADER exists and can be compiled using the include files in
2103 # INCLUDES, setting the cache variable VAR accordingly.
2104 ac_fn_c_check_header_compile ()
2106 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2107 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2108 $as_echo_n "checking for $2... " >&6; }
2109 if eval \${$3+:} false; then :
2110 $as_echo_n "(cached) " >&6
2111 else
2112 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2113 /* end confdefs.h. */
2115 #include <$2>
2116 _ACEOF
2117 if ac_fn_c_try_compile "$LINENO"; then :
2118 eval "$3=yes"
2119 else
2120 eval "$3=no"
2122 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2124 eval ac_res=\$$3
2125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2126 $as_echo "$ac_res" >&6; }
2127 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2129 } # ac_fn_c_check_header_compile
2131 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2132 # -------------------------------------------
2133 # Tests whether TYPE exists after having included INCLUDES, setting cache
2134 # variable VAR accordingly.
2135 ac_fn_c_check_type ()
2137 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2138 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2139 $as_echo_n "checking for $2... " >&6; }
2140 if eval \${$3+:} false; then :
2141 $as_echo_n "(cached) " >&6
2142 else
2143 eval "$3=no"
2144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2145 /* end confdefs.h. */
2148 main ()
2150 if (sizeof ($2))
2151 return 0;
2153 return 0;
2155 _ACEOF
2156 if ac_fn_c_try_compile "$LINENO"; then :
2157 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2158 /* end confdefs.h. */
2161 main ()
2163 if (sizeof (($2)))
2164 return 0;
2166 return 0;
2168 _ACEOF
2169 if ac_fn_c_try_compile "$LINENO"; then :
2171 else
2172 eval "$3=yes"
2174 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2176 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2178 eval ac_res=\$$3
2179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2180 $as_echo "$ac_res" >&6; }
2181 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2183 } # ac_fn_c_check_type
2185 # ac_fn_c_check_func LINENO FUNC VAR
2186 # ----------------------------------
2187 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2188 ac_fn_c_check_func ()
2190 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2192 $as_echo_n "checking for $2... " >&6; }
2193 if eval \${$3+:} false; then :
2194 $as_echo_n "(cached) " >&6
2195 else
2196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2197 /* end confdefs.h. */
2198 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2199 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2200 #define $2 innocuous_$2
2202 /* System header to define __stub macros and hopefully few prototypes,
2203 which can conflict with char $2 (); below.
2204 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2205 <limits.h> exists even on freestanding compilers. */
2207 #ifdef __STDC__
2208 # include <limits.h>
2209 #else
2210 # include <assert.h>
2211 #endif
2213 #undef $2
2215 /* Override any GCC internal prototype to avoid an error.
2216 Use char because int might match the return type of a GCC
2217 builtin and then its argument prototype would still apply. */
2218 #ifdef __cplusplus
2219 extern "C"
2220 #endif
2221 char $2 ();
2222 /* The GNU C library defines this for functions which it implements
2223 to always fail with ENOSYS. Some functions are actually named
2224 something starting with __ and the normal name is an alias. */
2225 #if defined __stub_$2 || defined __stub___$2
2226 choke me
2227 #endif
2230 main ()
2232 return $2 ();
2234 return 0;
2236 _ACEOF
2237 if ac_fn_c_try_link "$LINENO"; then :
2238 eval "$3=yes"
2239 else
2240 eval "$3=no"
2242 rm -f core conftest.err conftest.$ac_objext \
2243 conftest$ac_exeext conftest.$ac_ext
2245 eval ac_res=\$$3
2246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2247 $as_echo "$ac_res" >&6; }
2248 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2250 } # ac_fn_c_check_func
2251 cat >config.log <<_ACEOF
2252 This file contains any messages produced by compilers while
2253 running configure, to aid debugging if configure makes a mistake.
2255 It was created by $as_me, which was
2256 generated by GNU Autoconf 2.69. Invocation command line was
2258 $ $0 $@
2260 _ACEOF
2261 exec 5>>config.log
2263 cat <<_ASUNAME
2264 ## --------- ##
2265 ## Platform. ##
2266 ## --------- ##
2268 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2269 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2270 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2271 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2272 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2274 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2275 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2277 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2278 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2279 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2280 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2281 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2282 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2283 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2285 _ASUNAME
2287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2288 for as_dir in $PATH
2290 IFS=$as_save_IFS
2291 test -z "$as_dir" && as_dir=.
2292 $as_echo "PATH: $as_dir"
2293 done
2294 IFS=$as_save_IFS
2296 } >&5
2298 cat >&5 <<_ACEOF
2301 ## ----------- ##
2302 ## Core tests. ##
2303 ## ----------- ##
2305 _ACEOF
2308 # Keep a trace of the command line.
2309 # Strip out --no-create and --no-recursion so they do not pile up.
2310 # Strip out --silent because we don't want to record it for future runs.
2311 # Also quote any args containing shell meta-characters.
2312 # Make two passes to allow for proper duplicate-argument suppression.
2313 ac_configure_args=
2314 ac_configure_args0=
2315 ac_configure_args1=
2316 ac_must_keep_next=false
2317 for ac_pass in 1 2
2319 for ac_arg
2321 case $ac_arg in
2322 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2323 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2324 | -silent | --silent | --silen | --sile | --sil)
2325 continue ;;
2326 *\'*)
2327 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2328 esac
2329 case $ac_pass in
2330 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2332 as_fn_append ac_configure_args1 " '$ac_arg'"
2333 if test $ac_must_keep_next = true; then
2334 ac_must_keep_next=false # Got value, back to normal.
2335 else
2336 case $ac_arg in
2337 *=* | --config-cache | -C | -disable-* | --disable-* \
2338 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2339 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2340 | -with-* | --with-* | -without-* | --without-* | --x)
2341 case "$ac_configure_args0 " in
2342 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2343 esac
2345 -* ) ac_must_keep_next=true ;;
2346 esac
2348 as_fn_append ac_configure_args " '$ac_arg'"
2350 esac
2351 done
2352 done
2353 { ac_configure_args0=; unset ac_configure_args0;}
2354 { ac_configure_args1=; unset ac_configure_args1;}
2356 # When interrupted or exit'd, cleanup temporary files, and complete
2357 # config.log. We remove comments because anyway the quotes in there
2358 # would cause problems or look ugly.
2359 # WARNING: Use '\'' to represent an apostrophe within the trap.
2360 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2361 trap 'exit_status=$?
2362 # Save into config.log some information that might help in debugging.
2364 echo
2366 $as_echo "## ---------------- ##
2367 ## Cache variables. ##
2368 ## ---------------- ##"
2369 echo
2370 # The following way of writing the cache mishandles newlines in values,
2372 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2373 eval ac_val=\$$ac_var
2374 case $ac_val in #(
2375 *${as_nl}*)
2376 case $ac_var in #(
2377 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2378 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2379 esac
2380 case $ac_var in #(
2381 _ | IFS | as_nl) ;; #(
2382 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2383 *) { eval $ac_var=; unset $ac_var;} ;;
2384 esac ;;
2385 esac
2386 done
2387 (set) 2>&1 |
2388 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2389 *${as_nl}ac_space=\ *)
2390 sed -n \
2391 "s/'\''/'\''\\\\'\'''\''/g;
2392 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2393 ;; #(
2395 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2397 esac |
2398 sort
2400 echo
2402 $as_echo "## ----------------- ##
2403 ## Output variables. ##
2404 ## ----------------- ##"
2405 echo
2406 for ac_var in $ac_subst_vars
2408 eval ac_val=\$$ac_var
2409 case $ac_val in
2410 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2411 esac
2412 $as_echo "$ac_var='\''$ac_val'\''"
2413 done | sort
2414 echo
2416 if test -n "$ac_subst_files"; then
2417 $as_echo "## ------------------- ##
2418 ## File substitutions. ##
2419 ## ------------------- ##"
2420 echo
2421 for ac_var in $ac_subst_files
2423 eval ac_val=\$$ac_var
2424 case $ac_val in
2425 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2426 esac
2427 $as_echo "$ac_var='\''$ac_val'\''"
2428 done | sort
2429 echo
2432 if test -s confdefs.h; then
2433 $as_echo "## ----------- ##
2434 ## confdefs.h. ##
2435 ## ----------- ##"
2436 echo
2437 cat confdefs.h
2438 echo
2440 test "$ac_signal" != 0 &&
2441 $as_echo "$as_me: caught signal $ac_signal"
2442 $as_echo "$as_me: exit $exit_status"
2443 } >&5
2444 rm -f core *.core core.conftest.* &&
2445 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2446 exit $exit_status
2448 for ac_signal in 1 2 13 15; do
2449 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2450 done
2451 ac_signal=0
2453 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2454 rm -f -r conftest* confdefs.h
2456 $as_echo "/* confdefs.h */" > confdefs.h
2458 # Predefined preprocessor variables.
2460 cat >>confdefs.h <<_ACEOF
2461 #define PACKAGE_NAME "$PACKAGE_NAME"
2462 _ACEOF
2464 cat >>confdefs.h <<_ACEOF
2465 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2466 _ACEOF
2468 cat >>confdefs.h <<_ACEOF
2469 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2470 _ACEOF
2472 cat >>confdefs.h <<_ACEOF
2473 #define PACKAGE_STRING "$PACKAGE_STRING"
2474 _ACEOF
2476 cat >>confdefs.h <<_ACEOF
2477 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2478 _ACEOF
2480 cat >>confdefs.h <<_ACEOF
2481 #define PACKAGE_URL "$PACKAGE_URL"
2482 _ACEOF
2485 # Let the site file select an alternate cache file if it wants to.
2486 # Prefer an explicitly selected file to automatically selected ones.
2487 ac_site_file1=NONE
2488 ac_site_file2=NONE
2489 if test -n "$CONFIG_SITE"; then
2490 # We do not want a PATH search for config.site.
2491 case $CONFIG_SITE in #((
2492 -*) ac_site_file1=./$CONFIG_SITE;;
2493 */*) ac_site_file1=$CONFIG_SITE;;
2494 *) ac_site_file1=./$CONFIG_SITE;;
2495 esac
2496 elif test "x$prefix" != xNONE; then
2497 ac_site_file1=$prefix/share/config.site
2498 ac_site_file2=$prefix/etc/config.site
2499 else
2500 ac_site_file1=$ac_default_prefix/share/config.site
2501 ac_site_file2=$ac_default_prefix/etc/config.site
2503 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2505 test "x$ac_site_file" = xNONE && continue
2506 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2507 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2508 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2509 sed 's/^/| /' "$ac_site_file" >&5
2510 . "$ac_site_file" \
2511 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2512 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2513 as_fn_error $? "failed to load site script $ac_site_file
2514 See \`config.log' for more details" "$LINENO" 5; }
2516 done
2518 if test -r "$cache_file"; then
2519 # Some versions of bash will fail to source /dev/null (special files
2520 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2521 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2522 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2523 $as_echo "$as_me: loading cache $cache_file" >&6;}
2524 case $cache_file in
2525 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2526 *) . "./$cache_file";;
2527 esac
2529 else
2530 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2531 $as_echo "$as_me: creating cache $cache_file" >&6;}
2532 >$cache_file
2535 # Check that the precious variables saved in the cache have kept the same
2536 # value.
2537 ac_cache_corrupted=false
2538 for ac_var in $ac_precious_vars; do
2539 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2540 eval ac_new_set=\$ac_env_${ac_var}_set
2541 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2542 eval ac_new_val=\$ac_env_${ac_var}_value
2543 case $ac_old_set,$ac_new_set in
2544 set,)
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2546 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2547 ac_cache_corrupted=: ;;
2548 ,set)
2549 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2550 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2551 ac_cache_corrupted=: ;;
2552 ,);;
2554 if test "x$ac_old_val" != "x$ac_new_val"; then
2555 # differences in whitespace do not lead to failure.
2556 ac_old_val_w=`echo x $ac_old_val`
2557 ac_new_val_w=`echo x $ac_new_val`
2558 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2559 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2560 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2561 ac_cache_corrupted=:
2562 else
2563 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2564 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2565 eval $ac_var=\$ac_old_val
2567 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2568 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2569 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2570 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2571 fi;;
2572 esac
2573 # Pass precious variables to config.status.
2574 if test "$ac_new_set" = set; then
2575 case $ac_new_val in
2576 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2577 *) ac_arg=$ac_var=$ac_new_val ;;
2578 esac
2579 case " $ac_configure_args " in
2580 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2581 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2582 esac
2584 done
2585 if $ac_cache_corrupted; then
2586 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2587 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2588 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2589 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2590 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2592 ## -------------------- ##
2593 ## Main body of script. ##
2594 ## -------------------- ##
2596 ac_ext=c
2597 ac_cpp='$CPP $CPPFLAGS'
2598 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2599 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2600 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2605 unset ROOT TOOLROOT
2608 # Check whether --with-64bit was given.
2609 if test "${with_64bit+set}" = set; then :
2610 withval=$with_64bit; use_64bit=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-64bit=$withval"
2615 # Check whether --with-optimization was given.
2616 if test "${with_optimization+set}" = set; then :
2617 withval=$with_optimization; use_optimization=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-optimization=$withval"
2618 else
2619 use_optimizaton=yes
2624 # Check whether --with-threads was given.
2625 if test "${with_threads+set}" = set; then :
2626 withval=$with_threads; do_threads=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-threads=$withval"
2627 else
2628 do_threads=check
2633 # Check whether --with-secure-sockets was given.
2634 if test "${with_secure_sockets+set}" = set; then :
2635 withval=$with_secure_sockets; do_secure=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-secure-sockets=$withval"
2636 else
2637 do_secure=check
2642 # Check whether --with-static-probes was given.
2643 if test "${with_static_probes+set}" = set; then :
2644 withval=$with_static_probes; do_probes=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-static-probes=$withval"
2645 else
2646 do_probes=check
2651 # Check whether --with-infiniband was given.
2652 if test "${with_infiniband+set}" = set; then :
2653 withval=$with_infiniband; do_infiniband=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-infiniband=$withval"
2654 else
2655 do_infiniband=check
2660 # Check whether --with-user was given.
2661 if test "${with_user+set}" = set; then :
2662 withval=$with_user; pcp_user=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-user-account=$withval"
2663 else
2664 pcp_user=pcp
2670 # Check whether --with-group was given.
2671 if test "${with_group+set}" = set; then :
2672 withval=$with_group; pcp_group=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-group-account=$withval"
2673 else
2674 pcp_group=pcp
2680 # Check whether --with-discovery was given.
2681 if test "${with_discovery+set}" = set; then :
2682 withval=$with_discovery; do_discovery=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-discovery=$withval"
2683 else
2684 do_discovery=check
2689 # Check whether --with-systemd was given.
2690 if test "${with_systemd+set}" = set; then :
2691 withval=$with_systemd; do_systemd=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-systemd=$withval"
2692 else
2693 do_systemd=check
2698 # Check whether --with-qt was given.
2699 if test "${with_qt+set}" = set; then :
2700 withval=$with_qt; do_qt=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-qt=$withval"
2701 else
2702 do_qt=check
2707 # Check whether --with-python was given.
2708 if test "${with_python+set}" = set; then :
2709 withval=$with_python; do_python=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-python=$withval"
2710 else
2711 do_python=check
2716 # Check whether --with-python3 was given.
2717 if test "${with_python3+set}" = set; then :
2718 withval=$with_python3; do_python3=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-python3=$withval"
2719 else
2720 do_python3=check
2725 # Check whether --with-books was given.
2726 if test "${with_books+set}" = set; then :
2727 withval=$with_books; do_books=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-books=$withval"
2728 else
2729 do_books=no
2734 # Check whether --with-books-brand was given.
2735 if test "${with_books_brand+set}" = set; then :
2736 withval=$with_books_brand; do_books_brand=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-books-brand=$withval"
2737 else
2738 do_books_brand=common
2743 # Check whether --with-papi was given.
2744 if test "${with_papi+set}" = set; then :
2745 withval=$with_papi; do_papi=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-papi=$withval"
2746 else
2747 do_papi=check
2752 # Check whether --with-perfevent was given.
2753 if test "${with_perfevent+set}" = set; then :
2754 withval=$with_perfevent; do_perfevent=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-perfevent=$withval"
2755 else
2756 do_perfevent=check
2761 # Check whether --with-pmdajson was given.
2762 if test "${with_pmdajson+set}" = set; then :
2763 withval=$with_pmdajson; do_pmdajson=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-pmdajson=$withval"
2764 else
2765 do_pmdajson=check
2770 # Check whether --with-manager was given.
2771 if test "${with_manager+set}" = set; then :
2772 withval=$with_manager; do_manager=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-manager=$withval"
2773 else
2774 do_manager=check
2779 # Check whether --with-webapi was given.
2780 if test "${with_webapi+set}" = set; then :
2781 withval=$with_webapi; do_webapi=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-webapi=$withval"
2782 else
2783 do_webapi=check
2788 # Check whether --with-webjs was given.
2789 if test "${with_webjs+set}" = set; then :
2790 withval=$with_webjs; do_webjs=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-webjs=$withval"
2791 else
2792 do_webjs=no
2797 # Check whether --with-vector was given.
2798 if test "${with_vector+set}" = set; then :
2799 withval=$with_vector; do_vector=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-vector=$withval"
2800 else
2801 do_vector=no
2806 # Check whether --with-parfait was given.
2807 if test "${with_parfait+set}" = set; then :
2808 withval=$with_parfait; do_parfait=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-parfait=$withval"
2809 else
2810 do_parfait=no
2816 # Check whether --with-make was given.
2817 if test "${with_make+set}" = set; then :
2818 withval=$with_make; MAKE=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-make=$withval"
2819 else
2820 MAKE=''
2825 # Check whether --with-tar was given.
2826 if test "${with_tar+set}" = set; then :
2827 withval=$with_tar; TAR=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-tar=$withval"
2828 else
2829 TAR=''
2834 # Check whether --with-zip was given.
2835 if test "${with_zip+set}" = set; then :
2836 withval=$with_zip; ZIP=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-zip=$withval"
2837 else
2838 ZIP=''
2843 # Note: the following environment variables may be
2844 # set to override the defaults.
2846 # MAKE CC CPP LD LEX YACC INSTALL AWK SED ECHO
2849 ac_aux_dir=
2850 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2851 if test -f "$ac_dir/install-sh"; then
2852 ac_aux_dir=$ac_dir
2853 ac_install_sh="$ac_aux_dir/install-sh -c"
2854 break
2855 elif test -f "$ac_dir/install.sh"; then
2856 ac_aux_dir=$ac_dir
2857 ac_install_sh="$ac_aux_dir/install.sh -c"
2858 break
2859 elif test -f "$ac_dir/shtool"; then
2860 ac_aux_dir=$ac_dir
2861 ac_install_sh="$ac_aux_dir/shtool install -c"
2862 break
2864 done
2865 if test -z "$ac_aux_dir"; then
2866 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2869 # These three variables are undocumented and unsupported,
2870 # and are intended to be withdrawn in a future Autoconf release.
2871 # They can cause serious problems if a builder's source tree is in a directory
2872 # whose full name contains unusual characters.
2873 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2874 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2875 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2878 # Make sure we can run config.sub.
2879 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2880 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2882 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2883 $as_echo_n "checking build system type... " >&6; }
2884 if ${ac_cv_build+:} false; then :
2885 $as_echo_n "(cached) " >&6
2886 else
2887 ac_build_alias=$build_alias
2888 test "x$ac_build_alias" = x &&
2889 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2890 test "x$ac_build_alias" = x &&
2891 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2892 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2893 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2896 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2897 $as_echo "$ac_cv_build" >&6; }
2898 case $ac_cv_build in
2899 *-*-*) ;;
2900 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2901 esac
2902 build=$ac_cv_build
2903 ac_save_IFS=$IFS; IFS='-'
2904 set x $ac_cv_build
2905 shift
2906 build_cpu=$1
2907 build_vendor=$2
2908 shift; shift
2909 # Remember, the first character of IFS is used to create $*,
2910 # except with old shells:
2911 build_os=$*
2912 IFS=$ac_save_IFS
2913 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2917 $as_echo_n "checking host system type... " >&6; }
2918 if ${ac_cv_host+:} false; then :
2919 $as_echo_n "(cached) " >&6
2920 else
2921 if test "x$host_alias" = x; then
2922 ac_cv_host=$ac_cv_build
2923 else
2924 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2925 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2930 $as_echo "$ac_cv_host" >&6; }
2931 case $ac_cv_host in
2932 *-*-*) ;;
2933 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2934 esac
2935 host=$ac_cv_host
2936 ac_save_IFS=$IFS; IFS='-'
2937 set x $ac_cv_host
2938 shift
2939 host_cpu=$1
2940 host_vendor=$2
2941 shift; shift
2942 # Remember, the first character of IFS is used to create $*,
2943 # except with old shells:
2944 host_os=$*
2945 IFS=$ac_save_IFS
2946 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2950 $as_echo_n "checking target system type... " >&6; }
2951 if ${ac_cv_target+:} false; then :
2952 $as_echo_n "(cached) " >&6
2953 else
2954 if test "x$target_alias" = x; then
2955 ac_cv_target=$ac_cv_host
2956 else
2957 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2958 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2963 $as_echo "$ac_cv_target" >&6; }
2964 case $ac_cv_target in
2965 *-*-*) ;;
2966 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2967 esac
2968 target=$ac_cv_target
2969 ac_save_IFS=$IFS; IFS='-'
2970 set x $ac_cv_target
2971 shift
2972 target_cpu=$1
2973 target_vendor=$2
2974 shift; shift
2975 # Remember, the first character of IFS is used to create $*,
2976 # except with old shells:
2977 target_os=$*
2978 IFS=$ac_save_IFS
2979 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2982 # The aliases save the names the user supplied, while $host etc.
2983 # will get canonicalized.
2984 test -n "$target_alias" &&
2985 test "$program_prefix$program_suffix$program_transform_name" = \
2986 NONENONEs,x,x, &&
2987 program_prefix=${target_alias}-
2989 if test -z "$target"
2990 then
2991 echo '
2992 FATAL ERROR: Cannot guess your target, try explicit specification
2993 using --target or mailto: pcp@oss.sgi.com to ask.'
2994 rm -rf conftest conftest.*
2995 exit 1
2996 else
2997 target=`echo $target | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
2998 target_os=`echo $target_os | sed 's/solaris2\..*/solaris/'`
2999 target_os=`echo $target_os | sed 's/^\([^-][^-]*\)-.*$/\1/' | sed 's/[\.0-9]*//g'`
3001 build=`echo $build | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
3002 build_os=`echo $build_os | sed 's/solaris2\..*/solaris/'`
3003 build_os=`echo $build_os | sed 's/^\([^-][^-]*\)-.*$/\1/'`
3006 echo Building on $build for $target
3007 echo "Build: os=$build_os cpu=$build_cpu"
3008 echo "Target: os=$target_os cpu=$target_cpu"
3010 if test "$cross_compiling" = "yes"; then
3011 if test -f ./config.$target_os; then
3012 . ./config.$target_os
3013 else
3014 echo
3015 echo "
3016 FATAL ERROR: Cannot perform cross-compilation without a file to source
3017 configuration information from (config.$target_os is missing)"
3018 rm -rf conftest conftest.*
3019 exit 1
3025 target_distro=$target_os
3026 if test $target_os = linux
3027 then
3029 $as_echo "#define IS_LINUX 1" >>confdefs.h
3031 test -f /etc/SuSE-release && target_distro=suse
3032 test -f /etc/fedora-release && target_distro=fedora
3033 test -f /etc/redhat-release && target_distro=redhat
3034 test -f /etc/debian_version && target_distro=debian
3035 test -f /etc/slackware-version && target_distro=slackware
3036 test -f /etc/gentoo-release && target_distro=gentoo
3037 test -f /etc/mandriva-release && target_distro=mandriva
3038 export CFLAGS="-fPIC -fno-strict-aliasing -D_GNU_SOURCE"
3039 pcp_platform_paths='/usr/bin/X11:/usr/local/bin'
3040 pcp_ps_all_flags=-efw
3041 elif test $target_os = darwin
3042 then
3044 $as_echo "#define IS_DARWIN 1" >>confdefs.h
3046 target_distro=macosx
3047 version=`sw_vers -productVersion | sed -e 's/\.//' -e 's/\..*//g'`
3048 CFLAGS="-fPIC -no-cpp-precomp -fno-strict-aliasing -arch i386"
3049 if test $version -ge 106
3050 then
3051 target_distro=cocoa
3052 CFLAGS="$CFLAGS -arch x86_64"
3054 export CFLAGS
3055 pcp_platform_paths='/usr/local/bin'
3056 pcp_ps_all_flags="-axw -o user,pid,ppid,cpu,stime,tty,time,command"
3057 elif test $target_os = mingw
3058 then
3060 $as_echo "#define IS_MINGW 1" >>confdefs.h
3062 CFLAGS="-fno-strict-aliasing"
3063 pcp_platform_paths=''
3064 pcp_ps_all_flags=-efW
3065 elif test $target_os = solaris
3066 then
3068 $as_echo "#define IS_SOLARIS 1" >>confdefs.h
3070 export CFLAGS_IF_GCC="-fPIC -fno-strict-aliasing"
3071 export CFLAGS_IF_SUNCC="-fPIC -xalias_level=any -D_XPG4_2 -D__EXTENSIONS__"
3072 pcp_platform_paths='/usr/bin/X11:/usr/local/bin:/opt/sfw/bin:/opt/csw/bin'
3073 pcp_ps_all_flags=-ef
3074 elif test $target_os = aix
3075 then
3077 $as_echo "#define IS_AIX 1" >>confdefs.h
3079 export CFLAGS="-qcpluscmt"
3080 pcp_platform_paths='/usr/bin/X11:/usr/local/bin'
3081 pcp_ps_all_flags=-ef
3082 elif test $target_os = freebsd || test $target_os = kfreebsd
3083 then
3085 $as_echo "#define IS_FREEBSD 1" >>confdefs.h
3087 test -f /etc/debian_version && target_distro=debian
3088 export CFLAGS="-fPIC -fno-strict-aliasing -D_GNU_SOURCE"
3089 if test $target_os = kfreebsd
3090 then
3091 pcp_ps_all_flags=-efw
3092 else
3093 pcp_ps_all_flags=auxww
3095 pcp_platform_paths='/usr/bin/X11'
3096 test -d /usr/local/bin && pcp_platform_paths="$pcp_platform_paths:/usr/local/bin"
3097 test -d /usr/bsd && pcp_platform_paths="$pcp_platform_paths:/usr/bsd"
3098 elif test $target_os = gnu
3099 then
3101 $as_echo "#define IS_GNU 1" >>confdefs.h
3103 test -f /etc/debian_version && target_distro=debian
3104 export CFLAGS="-fPIC -fno-strict-aliasing -D_GNU_SOURCE"
3105 pcp_platform_paths='/usr/bin/X11:/usr/local/bin'
3106 pcp_ps_all_flags=-efw
3107 elif test $target_os = netbsdelf
3108 then
3109 target_os=netbsd
3111 $as_echo "#define IS_NETBSD 1" >>confdefs.h
3113 export CFLAGS="-fPIC -fno-strict-aliasing -D_GNU_SOURCE -D_NETBSD_SOURCE"
3114 pcp_platform_paths='/usr/pkg/bin'
3115 pcp_ps_all_flags=auxww
3116 elif test $target_os = openbsd
3117 then
3118 target_os=openbsd
3120 $as_echo "#define IS_OPENBSD 1" >>confdefs.h
3122 export CFLAGS="-fPIC -fno-strict-aliasing -D_GNU_SOURCE"
3123 pcp_platform_paths='/usr/local/bin'
3124 pcp_ps_all_flags=auxww
3125 else
3126 echo
3127 echo "FATAL ERROR: need platform-specific customization for \"$target_os\""
3128 rm -rf conftest conftest.*
3129 exit 1
3134 if test "$use_optimization" = no
3135 then
3136 optimization="-O0 -g"
3137 else
3138 optimization="-O2 -g"
3149 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
3150 if test -n "$ac_tool_prefix"; then
3151 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3152 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3153 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3154 $as_echo_n "checking for $ac_word... " >&6; }
3155 if ${ac_cv_path_PKG_CONFIG+:} false; then :
3156 $as_echo_n "(cached) " >&6
3157 else
3158 case $PKG_CONFIG in
3159 [\\/]* | ?:[\\/]*)
3160 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3163 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3164 for as_dir in $PATH
3166 IFS=$as_save_IFS
3167 test -z "$as_dir" && as_dir=.
3168 for ac_exec_ext in '' $ac_executable_extensions; do
3169 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3170 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3171 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3172 break 2
3174 done
3175 done
3176 IFS=$as_save_IFS
3179 esac
3181 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3182 if test -n "$PKG_CONFIG"; then
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
3184 $as_echo "$PKG_CONFIG" >&6; }
3185 else
3186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3187 $as_echo "no" >&6; }
3192 if test -z "$ac_cv_path_PKG_CONFIG"; then
3193 ac_pt_PKG_CONFIG=$PKG_CONFIG
3194 # Extract the first word of "pkg-config", so it can be a program name with args.
3195 set dummy pkg-config; ac_word=$2
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3197 $as_echo_n "checking for $ac_word... " >&6; }
3198 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
3199 $as_echo_n "(cached) " >&6
3200 else
3201 case $ac_pt_PKG_CONFIG in
3202 [\\/]* | ?:[\\/]*)
3203 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
3206 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3207 for as_dir in $PATH
3209 IFS=$as_save_IFS
3210 test -z "$as_dir" && as_dir=.
3211 for ac_exec_ext in '' $ac_executable_extensions; do
3212 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3213 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3214 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3215 break 2
3217 done
3218 done
3219 IFS=$as_save_IFS
3222 esac
3224 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
3225 if test -n "$ac_pt_PKG_CONFIG"; then
3226 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
3227 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
3228 else
3229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3230 $as_echo "no" >&6; }
3233 if test "x$ac_pt_PKG_CONFIG" = x; then
3234 PKG_CONFIG=""
3235 else
3236 case $cross_compiling:$ac_tool_warned in
3237 yes:)
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3239 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3240 ac_tool_warned=yes ;;
3241 esac
3242 PKG_CONFIG=$ac_pt_PKG_CONFIG
3244 else
3245 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
3249 if test -n "$PKG_CONFIG"; then
3250 _pkg_min_version=0.9.0
3251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
3252 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
3253 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
3254 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3255 $as_echo "yes" >&6; }
3256 else
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3258 $as_echo "no" >&6; }
3259 PKG_CONFIG=""
3262 if test -z "$PKG_CONFIG"
3263 then
3264 echo
3265 echo "FATAL ERROR: did not find a pkg-config executable."
3266 echo "You can either set \$PKG_CONFIG as the full path to pkg-config"
3267 echo "in the environment, or install the pkgconfig package."
3268 rm -rf conftest conftest.*
3269 exit 1
3272 cflags_abi=
3273 ac_ext=c
3274 ac_cpp='$CPP $CPPFLAGS'
3275 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3276 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3277 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3278 if test -n "$ac_tool_prefix"; then
3279 for ac_prog in suncc egcc gcc cc
3281 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3282 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3284 $as_echo_n "checking for $ac_word... " >&6; }
3285 if ${ac_cv_prog_CC+:} false; then :
3286 $as_echo_n "(cached) " >&6
3287 else
3288 if test -n "$CC"; then
3289 ac_cv_prog_CC="$CC" # Let the user override the test.
3290 else
3291 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3292 for as_dir in $PATH
3294 IFS=$as_save_IFS
3295 test -z "$as_dir" && as_dir=.
3296 for ac_exec_ext in '' $ac_executable_extensions; do
3297 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3298 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3299 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3300 break 2
3302 done
3303 done
3304 IFS=$as_save_IFS
3308 CC=$ac_cv_prog_CC
3309 if test -n "$CC"; then
3310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3311 $as_echo "$CC" >&6; }
3312 else
3313 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3314 $as_echo "no" >&6; }
3318 test -n "$CC" && break
3319 done
3321 if test -z "$CC"; then
3322 ac_ct_CC=$CC
3323 for ac_prog in suncc egcc gcc cc
3325 # Extract the first word of "$ac_prog", so it can be a program name with args.
3326 set dummy $ac_prog; ac_word=$2
3327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3328 $as_echo_n "checking for $ac_word... " >&6; }
3329 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3330 $as_echo_n "(cached) " >&6
3331 else
3332 if test -n "$ac_ct_CC"; then
3333 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3334 else
3335 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3336 for as_dir in $PATH
3338 IFS=$as_save_IFS
3339 test -z "$as_dir" && as_dir=.
3340 for ac_exec_ext in '' $ac_executable_extensions; do
3341 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3342 ac_cv_prog_ac_ct_CC="$ac_prog"
3343 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3344 break 2
3346 done
3347 done
3348 IFS=$as_save_IFS
3352 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3353 if test -n "$ac_ct_CC"; then
3354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3355 $as_echo "$ac_ct_CC" >&6; }
3356 else
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3358 $as_echo "no" >&6; }
3362 test -n "$ac_ct_CC" && break
3363 done
3365 if test "x$ac_ct_CC" = x; then
3366 CC=""
3367 else
3368 case $cross_compiling:$ac_tool_warned in
3369 yes:)
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3371 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3372 ac_tool_warned=yes ;;
3373 esac
3374 CC=$ac_ct_CC
3379 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3380 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3381 as_fn_error $? "no acceptable C compiler found in \$PATH
3382 See \`config.log' for more details" "$LINENO" 5; }
3384 # Provide some information about the compiler.
3385 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3386 set X $ac_compile
3387 ac_compiler=$2
3388 for ac_option in --version -v -V -qversion; do
3389 { { ac_try="$ac_compiler $ac_option >&5"
3390 case "(($ac_try" in
3391 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3392 *) ac_try_echo=$ac_try;;
3393 esac
3394 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3395 $as_echo "$ac_try_echo"; } >&5
3396 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3397 ac_status=$?
3398 if test -s conftest.err; then
3399 sed '10a\
3400 ... rest of stderr output deleted ...
3401 10q' conftest.err >conftest.er1
3402 cat conftest.er1 >&5
3404 rm -f conftest.er1 conftest.err
3405 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3406 test $ac_status = 0; }
3407 done
3409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3410 /* end confdefs.h. */
3413 main ()
3417 return 0;
3419 _ACEOF
3420 ac_clean_files_save=$ac_clean_files
3421 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3422 # Try to create an executable without -o first, disregard a.out.
3423 # It will help us diagnose broken compilers, and finding out an intuition
3424 # of exeext.
3425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3426 $as_echo_n "checking whether the C compiler works... " >&6; }
3427 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3429 # The possible output files:
3430 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3432 ac_rmfiles=
3433 for ac_file in $ac_files
3435 case $ac_file in
3436 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3437 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3438 esac
3439 done
3440 rm -f $ac_rmfiles
3442 if { { ac_try="$ac_link_default"
3443 case "(($ac_try" in
3444 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3445 *) ac_try_echo=$ac_try;;
3446 esac
3447 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3448 $as_echo "$ac_try_echo"; } >&5
3449 (eval "$ac_link_default") 2>&5
3450 ac_status=$?
3451 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3452 test $ac_status = 0; }; then :
3453 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3454 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3455 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3456 # so that the user can short-circuit this test for compilers unknown to
3457 # Autoconf.
3458 for ac_file in $ac_files ''
3460 test -f "$ac_file" || continue
3461 case $ac_file in
3462 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3464 [ab].out )
3465 # We found the default executable, but exeext='' is most
3466 # certainly right.
3467 break;;
3468 *.* )
3469 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3470 then :; else
3471 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3473 # We set ac_cv_exeext here because the later test for it is not
3474 # safe: cross compilers may not add the suffix if given an `-o'
3475 # argument, so we may need to know it at that point already.
3476 # Even if this section looks crufty: it has the advantage of
3477 # actually working.
3478 break;;
3480 break;;
3481 esac
3482 done
3483 test "$ac_cv_exeext" = no && ac_cv_exeext=
3485 else
3486 ac_file=''
3488 if test -z "$ac_file"; then :
3489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3490 $as_echo "no" >&6; }
3491 $as_echo "$as_me: failed program was:" >&5
3492 sed 's/^/| /' conftest.$ac_ext >&5
3494 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3495 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3496 as_fn_error 77 "C compiler cannot create executables
3497 See \`config.log' for more details" "$LINENO" 5; }
3498 else
3499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3500 $as_echo "yes" >&6; }
3502 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3503 $as_echo_n "checking for C compiler default output file name... " >&6; }
3504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3505 $as_echo "$ac_file" >&6; }
3506 ac_exeext=$ac_cv_exeext
3508 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3509 ac_clean_files=$ac_clean_files_save
3510 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3511 $as_echo_n "checking for suffix of executables... " >&6; }
3512 if { { ac_try="$ac_link"
3513 case "(($ac_try" in
3514 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3515 *) ac_try_echo=$ac_try;;
3516 esac
3517 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3518 $as_echo "$ac_try_echo"; } >&5
3519 (eval "$ac_link") 2>&5
3520 ac_status=$?
3521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3522 test $ac_status = 0; }; then :
3523 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3524 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3525 # work properly (i.e., refer to `conftest.exe'), while it won't with
3526 # `rm'.
3527 for ac_file in conftest.exe conftest conftest.*; do
3528 test -f "$ac_file" || continue
3529 case $ac_file in
3530 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3531 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3532 break;;
3533 * ) break;;
3534 esac
3535 done
3536 else
3537 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3538 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3539 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3540 See \`config.log' for more details" "$LINENO" 5; }
3542 rm -f conftest conftest$ac_cv_exeext
3543 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3544 $as_echo "$ac_cv_exeext" >&6; }
3546 rm -f conftest.$ac_ext
3547 EXEEXT=$ac_cv_exeext
3548 ac_exeext=$EXEEXT
3549 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3550 /* end confdefs.h. */
3551 #include <stdio.h>
3553 main ()
3555 FILE *f = fopen ("conftest.out", "w");
3556 return ferror (f) || fclose (f) != 0;
3559 return 0;
3561 _ACEOF
3562 ac_clean_files="$ac_clean_files conftest.out"
3563 # Check that the compiler produces executables we can run. If not, either
3564 # the compiler is broken, or we cross compile.
3565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3566 $as_echo_n "checking whether we are cross compiling... " >&6; }
3567 if test "$cross_compiling" != yes; then
3568 { { ac_try="$ac_link"
3569 case "(($ac_try" in
3570 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3571 *) ac_try_echo=$ac_try;;
3572 esac
3573 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3574 $as_echo "$ac_try_echo"; } >&5
3575 (eval "$ac_link") 2>&5
3576 ac_status=$?
3577 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3578 test $ac_status = 0; }
3579 if { ac_try='./conftest$ac_cv_exeext'
3580 { { case "(($ac_try" in
3581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3582 *) ac_try_echo=$ac_try;;
3583 esac
3584 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3585 $as_echo "$ac_try_echo"; } >&5
3586 (eval "$ac_try") 2>&5
3587 ac_status=$?
3588 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3589 test $ac_status = 0; }; }; then
3590 cross_compiling=no
3591 else
3592 if test "$cross_compiling" = maybe; then
3593 cross_compiling=yes
3594 else
3595 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3596 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3597 as_fn_error $? "cannot run C compiled programs.
3598 If you meant to cross compile, use \`--host'.
3599 See \`config.log' for more details" "$LINENO" 5; }
3603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3604 $as_echo "$cross_compiling" >&6; }
3606 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3607 ac_clean_files=$ac_clean_files_save
3608 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3609 $as_echo_n "checking for suffix of object files... " >&6; }
3610 if ${ac_cv_objext+:} false; then :
3611 $as_echo_n "(cached) " >&6
3612 else
3613 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3614 /* end confdefs.h. */
3617 main ()
3621 return 0;
3623 _ACEOF
3624 rm -f conftest.o conftest.obj
3625 if { { ac_try="$ac_compile"
3626 case "(($ac_try" in
3627 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3628 *) ac_try_echo=$ac_try;;
3629 esac
3630 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3631 $as_echo "$ac_try_echo"; } >&5
3632 (eval "$ac_compile") 2>&5
3633 ac_status=$?
3634 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3635 test $ac_status = 0; }; then :
3636 for ac_file in conftest.o conftest.obj conftest.*; do
3637 test -f "$ac_file" || continue;
3638 case $ac_file in
3639 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3640 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3641 break;;
3642 esac
3643 done
3644 else
3645 $as_echo "$as_me: failed program was:" >&5
3646 sed 's/^/| /' conftest.$ac_ext >&5
3648 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3649 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3650 as_fn_error $? "cannot compute suffix of object files: cannot compile
3651 See \`config.log' for more details" "$LINENO" 5; }
3653 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3656 $as_echo "$ac_cv_objext" >&6; }
3657 OBJEXT=$ac_cv_objext
3658 ac_objext=$OBJEXT
3659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3660 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3661 if ${ac_cv_c_compiler_gnu+:} false; then :
3662 $as_echo_n "(cached) " >&6
3663 else
3664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3665 /* end confdefs.h. */
3668 main ()
3670 #ifndef __GNUC__
3671 choke me
3672 #endif
3675 return 0;
3677 _ACEOF
3678 if ac_fn_c_try_compile "$LINENO"; then :
3679 ac_compiler_gnu=yes
3680 else
3681 ac_compiler_gnu=no
3683 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3684 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3687 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3688 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3689 if test $ac_compiler_gnu = yes; then
3690 GCC=yes
3691 else
3692 GCC=
3694 ac_test_CFLAGS=${CFLAGS+set}
3695 ac_save_CFLAGS=$CFLAGS
3696 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3697 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3698 if ${ac_cv_prog_cc_g+:} false; then :
3699 $as_echo_n "(cached) " >&6
3700 else
3701 ac_save_c_werror_flag=$ac_c_werror_flag
3702 ac_c_werror_flag=yes
3703 ac_cv_prog_cc_g=no
3704 CFLAGS="-g"
3705 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3706 /* end confdefs.h. */
3709 main ()
3713 return 0;
3715 _ACEOF
3716 if ac_fn_c_try_compile "$LINENO"; then :
3717 ac_cv_prog_cc_g=yes
3718 else
3719 CFLAGS=""
3720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3721 /* end confdefs.h. */
3724 main ()
3728 return 0;
3730 _ACEOF
3731 if ac_fn_c_try_compile "$LINENO"; then :
3733 else
3734 ac_c_werror_flag=$ac_save_c_werror_flag
3735 CFLAGS="-g"
3736 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3737 /* end confdefs.h. */
3740 main ()
3744 return 0;
3746 _ACEOF
3747 if ac_fn_c_try_compile "$LINENO"; then :
3748 ac_cv_prog_cc_g=yes
3750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3752 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3755 ac_c_werror_flag=$ac_save_c_werror_flag
3757 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3758 $as_echo "$ac_cv_prog_cc_g" >&6; }
3759 if test "$ac_test_CFLAGS" = set; then
3760 CFLAGS=$ac_save_CFLAGS
3761 elif test $ac_cv_prog_cc_g = yes; then
3762 if test "$GCC" = yes; then
3763 CFLAGS="-g -O2"
3764 else
3765 CFLAGS="-g"
3767 else
3768 if test "$GCC" = yes; then
3769 CFLAGS="-O2"
3770 else
3771 CFLAGS=
3774 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3775 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3776 if ${ac_cv_prog_cc_c89+:} false; then :
3777 $as_echo_n "(cached) " >&6
3778 else
3779 ac_cv_prog_cc_c89=no
3780 ac_save_CC=$CC
3781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3782 /* end confdefs.h. */
3783 #include <stdarg.h>
3784 #include <stdio.h>
3785 struct stat;
3786 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3787 struct buf { int x; };
3788 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3789 static char *e (p, i)
3790 char **p;
3791 int i;
3793 return p[i];
3795 static char *f (char * (*g) (char **, int), char **p, ...)
3797 char *s;
3798 va_list v;
3799 va_start (v,p);
3800 s = g (p, va_arg (v,int));
3801 va_end (v);
3802 return s;
3805 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3806 function prototypes and stuff, but not '\xHH' hex character constants.
3807 These don't provoke an error unfortunately, instead are silently treated
3808 as 'x'. The following induces an error, until -std is added to get
3809 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3810 array size at least. It's necessary to write '\x00'==0 to get something
3811 that's true only with -std. */
3812 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3814 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3815 inside strings and character constants. */
3816 #define FOO(x) 'x'
3817 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3819 int test (int i, double x);
3820 struct s1 {int (*f) (int a);};
3821 struct s2 {int (*f) (double a);};
3822 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3823 int argc;
3824 char **argv;
3826 main ()
3828 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3830 return 0;
3832 _ACEOF
3833 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3834 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3836 CC="$ac_save_CC $ac_arg"
3837 if ac_fn_c_try_compile "$LINENO"; then :
3838 ac_cv_prog_cc_c89=$ac_arg
3840 rm -f core conftest.err conftest.$ac_objext
3841 test "x$ac_cv_prog_cc_c89" != "xno" && break
3842 done
3843 rm -f conftest.$ac_ext
3844 CC=$ac_save_CC
3847 # AC_CACHE_VAL
3848 case "x$ac_cv_prog_cc_c89" in
3850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3851 $as_echo "none needed" >&6; } ;;
3852 xno)
3853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3854 $as_echo "unsupported" >&6; } ;;
3856 CC="$CC $ac_cv_prog_cc_c89"
3857 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3858 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3859 esac
3860 if test "x$ac_cv_prog_cc_c89" != xno; then :
3864 ac_ext=c
3865 ac_cpp='$CPP $CPPFLAGS'
3866 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3867 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3868 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3870 if test $target_os = solaris
3871 then
3872 # Extract the first word of "$CC", so it can be a program name with args.
3873 set dummy $CC; ac_word=$2
3874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3875 $as_echo_n "checking for $ac_word... " >&6; }
3876 if ${ac_cv_path_CCPATH+:} false; then :
3877 $as_echo_n "(cached) " >&6
3878 else
3879 case $CCPATH in
3880 [\\/]* | ?:[\\/]*)
3881 ac_cv_path_CCPATH="$CCPATH" # Let the user override the test with a path.
3884 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3885 for as_dir in $PATH
3887 IFS=$as_save_IFS
3888 test -z "$as_dir" && as_dir=.
3889 for ac_exec_ext in '' $ac_executable_extensions; do
3890 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3891 ac_cv_path_CCPATH="$as_dir/$ac_word$ac_exec_ext"
3892 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3893 break 2
3895 done
3896 done
3897 IFS=$as_save_IFS
3899 test -z "$ac_cv_path_CCPATH" && ac_cv_path_CCPATH="$CC"
3901 esac
3903 CCPATH=$ac_cv_path_CCPATH
3904 if test -n "$CCPATH"; then
3905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCPATH" >&5
3906 $as_echo "$CCPATH" >&6; }
3907 else
3908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3909 $as_echo "no" >&6; }
3913 cc=$CCPATH
3914 if test "$GCC" = "yes"
3915 then
3916 CFLAGS="$CFLAGS $CFLAGS_IF_GCC"
3917 else
3918 CFLAGS="$CFLAGS $CFLAGS_IF_SUNCC"
3920 if test "$use_64bit" = "no"
3921 then
3923 else
3924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64 bit Solaris host" >&5
3925 $as_echo_n "checking for 64 bit Solaris host... " >&6; }
3926 case `isainfo -k`
3928 amd64|sparcv9)
3929 cflags_abi=-m64
3930 CFLAGS="$CFLAGS -m64"
3931 LDFLAGS="$LDFLAGS -m64"
3932 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3933 $as_echo "yes" >&6; }
3936 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3937 $as_echo "no" >&6; }
3939 esac
3941 else
3942 cc=$CC
3945 cc_is_gcc=$GCC
3948 PCFLAGS="$CFLAGS"
3949 PLDFLAGS=$LDFLAGS
3951 if echo "$CFLAGS" | grep 'D_FORTIFY_SOURCE' >/dev/null
3952 then
3953 CFLAGS="-O $PCFLAGS"
3957 # Add some security-related gcc flags
3958 if echo "$CFLAGS" | grep stack-protector >/dev/null
3959 then
3961 else
3962 # Check whether --enable-ssp was given.
3963 if test "${enable_ssp+set}" = set; then :
3964 enableval=$enable_ssp;
3968 if test "x$cc_is_gcc" = xyes -a "x$enable_ssp" != xno ; then :
3970 save_CFLAGS="$CFLAGS"
3971 CFLAGS="$CFLAGS -O -fstack-protector-all -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2"
3972 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3973 /* end confdefs.h. */
3974 int something ();
3975 _ACEOF
3976 if ac_fn_c_try_compile "$LINENO"; then :
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling with gcc -fstack-protector-all et al." >&5
3979 $as_echo "$as_me: Compiling with gcc -fstack-protector-all et al." >&6;}
3980 PCFLAGS="$PCFLAGS -fstack-protector-all -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2"
3981 else
3983 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiler does not support -fstack-protector-all et al." >&5
3984 $as_echo "$as_me: Compiler does not support -fstack-protector-all et al." >&6;}
3985 CFLAGS="$save_CFLAGS"
3988 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3995 # Check for even more security-related gcc/linker flags, useful for daemons
3996 # Check whether --enable-pie was given.
3997 if test "${enable_pie+set}" = set; then :
3998 enableval=$enable_pie;
4001 if test "x$cc_is_gcc" = xyes -a "x$enable_pie" != xno; then :
4003 PIECFLAGS='-fPIE'
4004 PIELDFLAGS='-pie -Wl,-z,relro -Wl,-z,now'
4005 save_CFLAGS="$CFLAGS"
4006 save_LDFLAGS="$LDFLAGS"
4007 CFLAGS="$CFLAGS $PIECFLAGS"
4008 LDFLAGS="$LDFLAGS $PIELDFLAGS"
4009 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4010 /* end confdefs.h. */
4011 void main () {}
4012 _ACEOF
4013 if ac_fn_c_try_link "$LINENO"; then :
4015 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling with gcc pie et al." >&5
4016 $as_echo "$as_me: Compiling with gcc pie et al." >&6;}
4018 else
4020 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiler does not support -pie et al." >&5
4021 $as_echo "$as_me: Compiler does not support -pie et al." >&6;}
4022 PIECFLAGS=""
4023 PIELDFLAGS=""
4026 rm -f core conftest.err conftest.$ac_objext \
4027 conftest$ac_exeext conftest.$ac_ext
4028 CFLAGS="$save_CFLAGS"
4029 LDFLAGS="$save_LDFLAGS"
4035 # Check for support for symbol hiding via gcc flags
4036 # Check whether --enable-visibility was given.
4037 if test "${enable_visibility+set}" = set; then :
4038 enableval=$enable_visibility;
4041 if test "x$cc_is_gcc" = xyes -a "$enable_visibility" != no; then :
4043 INVISIBILITY="-fvisibility=hidden"
4044 save_CFLAGS="$CFLAGS"
4045 CFLAGS="$CFLAGS -c $INVISIBILITY"
4046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4047 /* end confdefs.h. */
4048 int visible () { return 0; }
4049 _ACEOF
4050 if ac_fn_c_try_compile "$LINENO"; then :
4052 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling DSO PMDAs with gcc -fvisibility=hidden" >&5
4053 $as_echo "$as_me: Compiling DSO PMDAs with gcc -fvisibility=hidden" >&6;}
4055 else
4057 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiler does not support -fvisibility." >&5
4058 $as_echo "$as_me: Compiler does not support -fvisibility." >&6;}
4059 INVISIBILITY=""
4062 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4063 CFLAGS="$save_CFLAGS"
4068 ac_ext=cpp
4069 ac_cpp='$CXXCPP $CPPFLAGS'
4070 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4071 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4072 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4073 if test -z "$CXX"; then
4074 if test -n "$CCC"; then
4075 CXX=$CCC
4076 else
4077 if test -n "$ac_tool_prefix"; then
4078 for ac_prog in eg++ g++ c++
4080 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4081 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4082 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4083 $as_echo_n "checking for $ac_word... " >&6; }
4084 if ${ac_cv_prog_CXX+:} false; then :
4085 $as_echo_n "(cached) " >&6
4086 else
4087 if test -n "$CXX"; then
4088 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4089 else
4090 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4091 for as_dir in $PATH
4093 IFS=$as_save_IFS
4094 test -z "$as_dir" && as_dir=.
4095 for ac_exec_ext in '' $ac_executable_extensions; do
4096 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4097 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4098 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4099 break 2
4101 done
4102 done
4103 IFS=$as_save_IFS
4107 CXX=$ac_cv_prog_CXX
4108 if test -n "$CXX"; then
4109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4110 $as_echo "$CXX" >&6; }
4111 else
4112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4113 $as_echo "no" >&6; }
4117 test -n "$CXX" && break
4118 done
4120 if test -z "$CXX"; then
4121 ac_ct_CXX=$CXX
4122 for ac_prog in eg++ g++ c++
4124 # Extract the first word of "$ac_prog", so it can be a program name with args.
4125 set dummy $ac_prog; ac_word=$2
4126 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4127 $as_echo_n "checking for $ac_word... " >&6; }
4128 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4129 $as_echo_n "(cached) " >&6
4130 else
4131 if test -n "$ac_ct_CXX"; then
4132 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4133 else
4134 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4135 for as_dir in $PATH
4137 IFS=$as_save_IFS
4138 test -z "$as_dir" && as_dir=.
4139 for ac_exec_ext in '' $ac_executable_extensions; do
4140 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4141 ac_cv_prog_ac_ct_CXX="$ac_prog"
4142 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4143 break 2
4145 done
4146 done
4147 IFS=$as_save_IFS
4151 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4152 if test -n "$ac_ct_CXX"; then
4153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4154 $as_echo "$ac_ct_CXX" >&6; }
4155 else
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4157 $as_echo "no" >&6; }
4161 test -n "$ac_ct_CXX" && break
4162 done
4164 if test "x$ac_ct_CXX" = x; then
4165 CXX="g++"
4166 else
4167 case $cross_compiling:$ac_tool_warned in
4168 yes:)
4169 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4170 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4171 ac_tool_warned=yes ;;
4172 esac
4173 CXX=$ac_ct_CXX
4179 # Provide some information about the compiler.
4180 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4181 set X $ac_compile
4182 ac_compiler=$2
4183 for ac_option in --version -v -V -qversion; do
4184 { { ac_try="$ac_compiler $ac_option >&5"
4185 case "(($ac_try" in
4186 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4187 *) ac_try_echo=$ac_try;;
4188 esac
4189 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4190 $as_echo "$ac_try_echo"; } >&5
4191 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4192 ac_status=$?
4193 if test -s conftest.err; then
4194 sed '10a\
4195 ... rest of stderr output deleted ...
4196 10q' conftest.err >conftest.er1
4197 cat conftest.er1 >&5
4199 rm -f conftest.er1 conftest.err
4200 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4201 test $ac_status = 0; }
4202 done
4204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4205 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4206 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4207 $as_echo_n "(cached) " >&6
4208 else
4209 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4210 /* end confdefs.h. */
4213 main ()
4215 #ifndef __GNUC__
4216 choke me
4217 #endif
4220 return 0;
4222 _ACEOF
4223 if ac_fn_cxx_try_compile "$LINENO"; then :
4224 ac_compiler_gnu=yes
4225 else
4226 ac_compiler_gnu=no
4228 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4229 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4233 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4234 if test $ac_compiler_gnu = yes; then
4235 GXX=yes
4236 else
4237 GXX=
4239 ac_test_CXXFLAGS=${CXXFLAGS+set}
4240 ac_save_CXXFLAGS=$CXXFLAGS
4241 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4242 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4243 if ${ac_cv_prog_cxx_g+:} false; then :
4244 $as_echo_n "(cached) " >&6
4245 else
4246 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4247 ac_cxx_werror_flag=yes
4248 ac_cv_prog_cxx_g=no
4249 CXXFLAGS="-g"
4250 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4251 /* end confdefs.h. */
4254 main ()
4258 return 0;
4260 _ACEOF
4261 if ac_fn_cxx_try_compile "$LINENO"; then :
4262 ac_cv_prog_cxx_g=yes
4263 else
4264 CXXFLAGS=""
4265 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4266 /* end confdefs.h. */
4269 main ()
4273 return 0;
4275 _ACEOF
4276 if ac_fn_cxx_try_compile "$LINENO"; then :
4278 else
4279 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4280 CXXFLAGS="-g"
4281 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4282 /* end confdefs.h. */
4285 main ()
4289 return 0;
4291 _ACEOF
4292 if ac_fn_cxx_try_compile "$LINENO"; then :
4293 ac_cv_prog_cxx_g=yes
4295 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4297 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4299 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4300 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4302 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4303 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4304 if test "$ac_test_CXXFLAGS" = set; then
4305 CXXFLAGS=$ac_save_CXXFLAGS
4306 elif test $ac_cv_prog_cxx_g = yes; then
4307 if test "$GXX" = yes; then
4308 CXXFLAGS="-g -O2"
4309 else
4310 CXXFLAGS="-g"
4312 else
4313 if test "$GXX" = yes; then
4314 CXXFLAGS="-O2"
4315 else
4316 CXXFLAGS=
4319 ac_ext=c
4320 ac_cpp='$CPP $CPPFLAGS'
4321 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4322 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4323 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4325 cxx=$CXX
4327 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working C++ compiler" >&5
4328 $as_echo_n "checking for working C++ compiler... " >&6; }
4329 ac_ext=cpp
4330 ac_cpp='$CXXCPP $CPPFLAGS'
4331 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4332 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4333 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4337 /* end confdefs.h. */
4338 #include <cstdio>
4340 main ()
4342 const char gday[] = "G'day, world\n";
4344 return 0;
4346 _ACEOF
4347 if ac_fn_cxx_try_compile "$LINENO"; then :
4348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4349 $as_echo "yes" >&6; }
4350 else
4351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4352 $as_echo "no" >&6; }
4353 cxx=""
4355 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4356 ac_ext=c
4357 ac_cpp='$CPP $CPPFLAGS'
4358 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4359 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4360 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4363 # Prevent shared libraries from being built for libpcp and other core libraries
4364 # Check whether --enable-shared was given.
4365 if test "${enable_shared+set}" = set; then :
4366 enableval=$enable_shared; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --disable-shared=$withval"
4371 for ac_prog in flex lex
4373 # Extract the first word of "$ac_prog", so it can be a program name with args.
4374 set dummy $ac_prog; ac_word=$2
4375 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4376 $as_echo_n "checking for $ac_word... " >&6; }
4377 if ${ac_cv_prog_LEX+:} false; then :
4378 $as_echo_n "(cached) " >&6
4379 else
4380 if test -n "$LEX"; then
4381 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4382 else
4383 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4384 for as_dir in $PATH
4386 IFS=$as_save_IFS
4387 test -z "$as_dir" && as_dir=.
4388 for ac_exec_ext in '' $ac_executable_extensions; do
4389 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4390 ac_cv_prog_LEX="$ac_prog"
4391 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4392 break 2
4394 done
4395 done
4396 IFS=$as_save_IFS
4400 LEX=$ac_cv_prog_LEX
4401 if test -n "$LEX"; then
4402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
4403 $as_echo "$LEX" >&6; }
4404 else
4405 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4406 $as_echo "no" >&6; }
4410 test -n "$LEX" && break
4411 done
4412 test -n "$LEX" || LEX=":"
4414 if test "x$LEX" != "x:"; then
4415 cat >conftest.l <<_ACEOF
4417 a { ECHO; }
4418 b { REJECT; }
4419 c { yymore (); }
4420 d { yyless (1); }
4421 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
4422 yyless ((input () != 0)); }
4423 f { unput (yytext[0]); }
4424 . { BEGIN INITIAL; }
4426 #ifdef YYTEXT_POINTER
4427 extern char *yytext;
4428 #endif
4430 main (void)
4432 return ! yylex () + ! yywrap ();
4434 _ACEOF
4435 { { ac_try="$LEX conftest.l"
4436 case "(($ac_try" in
4437 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4438 *) ac_try_echo=$ac_try;;
4439 esac
4440 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4441 $as_echo "$ac_try_echo"; } >&5
4442 (eval "$LEX conftest.l") 2>&5
4443 ac_status=$?
4444 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4445 test $ac_status = 0; }
4446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
4447 $as_echo_n "checking lex output file root... " >&6; }
4448 if ${ac_cv_prog_lex_root+:} false; then :
4449 $as_echo_n "(cached) " >&6
4450 else
4452 if test -f lex.yy.c; then
4453 ac_cv_prog_lex_root=lex.yy
4454 elif test -f lexyy.c; then
4455 ac_cv_prog_lex_root=lexyy
4456 else
4457 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
4460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
4461 $as_echo "$ac_cv_prog_lex_root" >&6; }
4462 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4464 if test -z "${LEXLIB+set}"; then
4465 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
4466 $as_echo_n "checking lex library... " >&6; }
4467 if ${ac_cv_lib_lex+:} false; then :
4468 $as_echo_n "(cached) " >&6
4469 else
4471 ac_save_LIBS=$LIBS
4472 ac_cv_lib_lex='none needed'
4473 for ac_lib in '' -lfl -ll; do
4474 LIBS="$ac_lib $ac_save_LIBS"
4475 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4476 /* end confdefs.h. */
4477 `cat $LEX_OUTPUT_ROOT.c`
4478 _ACEOF
4479 if ac_fn_c_try_link "$LINENO"; then :
4480 ac_cv_lib_lex=$ac_lib
4482 rm -f core conftest.err conftest.$ac_objext \
4483 conftest$ac_exeext conftest.$ac_ext
4484 test "$ac_cv_lib_lex" != 'none needed' && break
4485 done
4486 LIBS=$ac_save_LIBS
4489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
4490 $as_echo "$ac_cv_lib_lex" >&6; }
4491 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
4496 $as_echo_n "checking whether yytext is a pointer... " >&6; }
4497 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
4498 $as_echo_n "(cached) " >&6
4499 else
4500 # POSIX says lex can declare yytext either as a pointer or an array; the
4501 # default is implementation-dependent. Figure out which it is, since
4502 # not all implementations provide the %pointer and %array declarations.
4503 ac_cv_prog_lex_yytext_pointer=no
4504 ac_save_LIBS=$LIBS
4505 LIBS="$LEXLIB $ac_save_LIBS"
4506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4507 /* end confdefs.h. */
4509 #define YYTEXT_POINTER 1
4510 `cat $LEX_OUTPUT_ROOT.c`
4511 _ACEOF
4512 if ac_fn_c_try_link "$LINENO"; then :
4513 ac_cv_prog_lex_yytext_pointer=yes
4515 rm -f core conftest.err conftest.$ac_objext \
4516 conftest$ac_exeext conftest.$ac_ext
4517 LIBS=$ac_save_LIBS
4520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
4521 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
4522 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4524 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
4527 rm -f conftest.l $LEX_OUTPUT_ROOT.c
4530 lex=$LEX
4532 for ac_prog in 'bison -y' byacc
4534 # Extract the first word of "$ac_prog", so it can be a program name with args.
4535 set dummy $ac_prog; ac_word=$2
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4537 $as_echo_n "checking for $ac_word... " >&6; }
4538 if ${ac_cv_prog_YACC+:} false; then :
4539 $as_echo_n "(cached) " >&6
4540 else
4541 if test -n "$YACC"; then
4542 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4543 else
4544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4545 for as_dir in $PATH
4547 IFS=$as_save_IFS
4548 test -z "$as_dir" && as_dir=.
4549 for ac_exec_ext in '' $ac_executable_extensions; do
4550 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4551 ac_cv_prog_YACC="$ac_prog"
4552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4553 break 2
4555 done
4556 done
4557 IFS=$as_save_IFS
4561 YACC=$ac_cv_prog_YACC
4562 if test -n "$YACC"; then
4563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
4564 $as_echo "$YACC" >&6; }
4565 else
4566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4567 $as_echo "no" >&6; }
4571 test -n "$YACC" && break
4572 done
4573 test -n "$YACC" || YACC="yacc"
4575 yacc=$YACC
4578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if yacc is executable" >&5
4579 $as_echo_n "checking if yacc is executable... " >&6; }
4580 binary=`echo $yacc | awk '{print $1}'`
4581 binary=`which "$binary"`
4582 if test -x "$binary"
4583 then
4584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4585 $as_echo " yes" >&6; }
4586 else
4587 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4588 $as_echo " no" >&6; }
4589 echo
4590 echo "FATAL ERROR: did not find a valid yacc executable."
4591 echo "You can either set \$YACC as the full path to yacc"
4592 echo "in the environment, or install a yacc/bison package."
4593 rm -rf conftest conftest.*
4594 exit 1
4596 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if lex is executable" >&5
4597 $as_echo_n "checking if lex is executable... " >&6; }
4598 binary=`echo $lex | awk '{print $1}'`
4599 binary=`which "$binary"`
4600 if test -x "$binary"
4601 then
4602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4603 $as_echo " yes" >&6; }
4604 else
4605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4606 $as_echo " no" >&6; }
4607 echo
4608 echo "FATAL ERROR: did not find a valid lex executable."
4609 echo "You can either set \$LEX as the full path to lex"
4610 echo "in the environment, or install a lex/flex package."
4611 rm -rf conftest conftest.*
4612 exit 1
4615 if test -z "$AWK"; then
4616 for ac_prog in gawk awk
4618 # Extract the first word of "$ac_prog", so it can be a program name with args.
4619 set dummy $ac_prog; ac_word=$2
4620 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4621 $as_echo_n "checking for $ac_word... " >&6; }
4622 if ${ac_cv_path_AWK+:} false; then :
4623 $as_echo_n "(cached) " >&6
4624 else
4625 case $AWK in
4626 [\\/]* | ?:[\\/]*)
4627 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
4630 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4631 for as_dir in $PATH
4633 IFS=$as_save_IFS
4634 test -z "$as_dir" && as_dir=.
4635 for ac_exec_ext in '' $ac_executable_extensions; do
4636 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4637 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
4638 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4639 break 2
4641 done
4642 done
4643 IFS=$as_save_IFS
4646 esac
4648 AWK=$ac_cv_path_AWK
4649 if test -n "$AWK"; then
4650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4651 $as_echo "$AWK" >&6; }
4652 else
4653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4654 $as_echo "no" >&6; }
4658 test -n "$AWK" && break
4659 done
4660 test -n "$AWK" || AWK="/usr/bin/awk"
4663 case "$AWK"
4665 gawk|*/gawk)
4666 awk="$AWK --posix"
4669 awk=$AWK
4671 esac
4673 if test -z "$SED"; then
4674 # Extract the first word of "sed", so it can be a program name with args.
4675 set dummy sed; ac_word=$2
4676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4677 $as_echo_n "checking for $ac_word... " >&6; }
4678 if ${ac_cv_path_SED+:} false; then :
4679 $as_echo_n "(cached) " >&6
4680 else
4681 case $SED in
4682 [\\/]* | ?:[\\/]*)
4683 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4686 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4687 for as_dir in $PATH
4689 IFS=$as_save_IFS
4690 test -z "$as_dir" && as_dir=.
4691 for ac_exec_ext in '' $ac_executable_extensions; do
4692 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4693 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4694 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4695 break 2
4697 done
4698 done
4699 IFS=$as_save_IFS
4701 test -z "$ac_cv_path_SED" && ac_cv_path_SED="/bin/sed"
4703 esac
4705 SED=$ac_cv_path_SED
4706 if test -n "$SED"; then
4707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
4708 $as_echo "$SED" >&6; }
4709 else
4710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4711 $as_echo "no" >&6; }
4716 sed=$SED
4718 if test -z "$ECHO"; then
4719 # Extract the first word of "echo", so it can be a program name with args.
4720 set dummy echo; ac_word=$2
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4722 $as_echo_n "checking for $ac_word... " >&6; }
4723 if ${ac_cv_path_ECHO+:} false; then :
4724 $as_echo_n "(cached) " >&6
4725 else
4726 case $ECHO in
4727 [\\/]* | ?:[\\/]*)
4728 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
4731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4732 for as_dir in $PATH
4734 IFS=$as_save_IFS
4735 test -z "$as_dir" && as_dir=.
4736 for ac_exec_ext in '' $ac_executable_extensions; do
4737 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4738 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
4739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4740 break 2
4742 done
4743 done
4744 IFS=$as_save_IFS
4746 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="/bin/echo"
4748 esac
4750 ECHO=$ac_cv_path_ECHO
4751 if test -n "$ECHO"; then
4752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
4753 $as_echo "$ECHO" >&6; }
4754 else
4755 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4756 $as_echo "no" >&6; }
4761 echo=$ECHO
4763 if test -z "$WHICH"; then
4764 # Extract the first word of "which", so it can be a program name with args.
4765 set dummy which; ac_word=$2
4766 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4767 $as_echo_n "checking for $ac_word... " >&6; }
4768 if ${ac_cv_path_WHICH+:} false; then :
4769 $as_echo_n "(cached) " >&6
4770 else
4771 case $WHICH in
4772 [\\/]* | ?:[\\/]*)
4773 ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
4776 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4777 for as_dir in $PATH
4779 IFS=$as_save_IFS
4780 test -z "$as_dir" && as_dir=.
4781 for ac_exec_ext in '' $ac_executable_extensions; do
4782 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4783 ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
4784 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4785 break 2
4787 done
4788 done
4789 IFS=$as_save_IFS
4791 test -z "$ac_cv_path_WHICH" && ac_cv_path_WHICH="/usr/bin/which"
4793 esac
4795 WHICH=$ac_cv_path_WHICH
4796 if test -n "$WHICH"; then
4797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
4798 $as_echo "$WHICH" >&6; }
4799 else
4800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4801 $as_echo "no" >&6; }
4806 which=$WHICH
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where unix-like sort(1) lives" >&5
4810 $as_echo_n "checking where unix-like sort(1) lives... " >&6; }
4811 if test $target_os = mingw; then
4812 for d in /bin /usr/bin /mingw/bin /mingw/usr/bin
4814 if test -x $d/sort; then
4815 sort=$d/sort
4816 break
4818 done
4819 else
4820 sort=`which sort`
4822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sort" >&5
4823 $as_echo "$sort" >&6; }
4824 $sort -n </dev/null
4825 if test $? != 0
4826 then
4827 echo
4828 echo "FATAL ERROR: $sort -n failed!"
4829 rm -rf conftest conftest.*
4830 exit 1
4834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if echo uses -n or backslash-c to suppress newlines" >&5
4835 $as_echo_n "checking if echo uses -n or backslash-c to suppress newlines... " >&6; }
4836 if ( $echo "testing\c"; $echo 1,2,3 ) | grep c >/dev/null
4837 then
4838 if ( $echo -n testing; $echo 1,2,3 ) | sed s/-n/xn/ | grep xn >/dev/null
4839 then
4840 echo_n= echo_c=
4841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither?" >&5
4842 $as_echo "neither?" >&6; }
4843 else
4844 echo_n=-n echo_c=
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -n" >&5
4846 $as_echo " -n" >&6; }
4848 else
4849 echo_n= echo_c='\c'
4850 { $as_echo "$as_me:${as_lineno-$LINENO}: result: backslash-c" >&5
4851 $as_echo "backslash-c" >&6; }
4856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4857 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4858 if ${ac_cv_path_GREP+:} false; then :
4859 $as_echo_n "(cached) " >&6
4860 else
4861 if test -z "$GREP"; then
4862 ac_path_GREP_found=false
4863 # Loop through the user's path and test for each of PROGNAME-LIST
4864 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4865 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4867 IFS=$as_save_IFS
4868 test -z "$as_dir" && as_dir=.
4869 for ac_prog in grep ggrep; do
4870 for ac_exec_ext in '' $ac_executable_extensions; do
4871 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4872 as_fn_executable_p "$ac_path_GREP" || continue
4873 # Check for GNU ac_path_GREP and select it if it is found.
4874 # Check for GNU $ac_path_GREP
4875 case `"$ac_path_GREP" --version 2>&1` in
4876 *GNU*)
4877 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4879 ac_count=0
4880 $as_echo_n 0123456789 >"conftest.in"
4881 while :
4883 cat "conftest.in" "conftest.in" >"conftest.tmp"
4884 mv "conftest.tmp" "conftest.in"
4885 cp "conftest.in" "conftest.nl"
4886 $as_echo 'GREP' >> "conftest.nl"
4887 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4888 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4889 as_fn_arith $ac_count + 1 && ac_count=$as_val
4890 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4891 # Best one so far, save it but keep looking for a better one
4892 ac_cv_path_GREP="$ac_path_GREP"
4893 ac_path_GREP_max=$ac_count
4895 # 10*(2^10) chars as input seems more than enough
4896 test $ac_count -gt 10 && break
4897 done
4898 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4899 esac
4901 $ac_path_GREP_found && break 3
4902 done
4903 done
4904 done
4905 IFS=$as_save_IFS
4906 if test -z "$ac_cv_path_GREP"; then
4907 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4909 else
4910 ac_cv_path_GREP=$GREP
4914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4915 $as_echo "$ac_cv_path_GREP" >&6; }
4916 GREP="$ac_cv_path_GREP"
4919 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4920 $as_echo_n "checking for egrep... " >&6; }
4921 if ${ac_cv_path_EGREP+:} false; then :
4922 $as_echo_n "(cached) " >&6
4923 else
4924 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4925 then ac_cv_path_EGREP="$GREP -E"
4926 else
4927 if test -z "$EGREP"; then
4928 ac_path_EGREP_found=false
4929 # Loop through the user's path and test for each of PROGNAME-LIST
4930 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4931 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4933 IFS=$as_save_IFS
4934 test -z "$as_dir" && as_dir=.
4935 for ac_prog in egrep; do
4936 for ac_exec_ext in '' $ac_executable_extensions; do
4937 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4938 as_fn_executable_p "$ac_path_EGREP" || continue
4939 # Check for GNU ac_path_EGREP and select it if it is found.
4940 # Check for GNU $ac_path_EGREP
4941 case `"$ac_path_EGREP" --version 2>&1` in
4942 *GNU*)
4943 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4945 ac_count=0
4946 $as_echo_n 0123456789 >"conftest.in"
4947 while :
4949 cat "conftest.in" "conftest.in" >"conftest.tmp"
4950 mv "conftest.tmp" "conftest.in"
4951 cp "conftest.in" "conftest.nl"
4952 $as_echo 'EGREP' >> "conftest.nl"
4953 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4954 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4955 as_fn_arith $ac_count + 1 && ac_count=$as_val
4956 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4957 # Best one so far, save it but keep looking for a better one
4958 ac_cv_path_EGREP="$ac_path_EGREP"
4959 ac_path_EGREP_max=$ac_count
4961 # 10*(2^10) chars as input seems more than enough
4962 test $ac_count -gt 10 && break
4963 done
4964 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4965 esac
4967 $ac_path_EGREP_found && break 3
4968 done
4969 done
4970 done
4971 IFS=$as_save_IFS
4972 if test -z "$ac_cv_path_EGREP"; then
4973 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4975 else
4976 ac_cv_path_EGREP=$EGREP
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4982 $as_echo "$ac_cv_path_EGREP" >&6; }
4983 EGREP="$ac_cv_path_EGREP"
4987 if test "$do_probes" = "check" -o "$do_probes" = "yes"
4988 then
4989 enable_probes=true
4990 for ac_prog in dtrace
4992 # Extract the first word of "$ac_prog", so it can be a program name with args.
4993 set dummy $ac_prog; ac_word=$2
4994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4995 $as_echo_n "checking for $ac_word... " >&6; }
4996 if ${ac_cv_prog_DTRACE+:} false; then :
4997 $as_echo_n "(cached) " >&6
4998 else
4999 if test -n "$DTRACE"; then
5000 ac_cv_prog_DTRACE="$DTRACE" # Let the user override the test.
5001 else
5002 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5003 for as_dir in $PATH
5005 IFS=$as_save_IFS
5006 test -z "$as_dir" && as_dir=.
5007 for ac_exec_ext in '' $ac_executable_extensions; do
5008 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5009 ac_cv_prog_DTRACE="$ac_prog"
5010 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5011 break 2
5013 done
5014 done
5015 IFS=$as_save_IFS
5019 DTRACE=$ac_cv_prog_DTRACE
5020 if test -n "$DTRACE"; then
5021 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5
5022 $as_echo "$DTRACE" >&6; }
5023 else
5024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5025 $as_echo "no" >&6; }
5029 test -n "$DTRACE" && break
5030 done
5032 if test -z "$DTRACE"
5033 then
5034 if test "$do_probes" = "yes"
5035 then
5036 as_fn_error $? "cannot enable static probes - no dtrace executable" "$LINENO" 5
5038 enable_probes=false
5040 ac_ext=c
5041 ac_cpp='$CPP $CPPFLAGS'
5042 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5043 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5044 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5046 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5047 # On Suns, sometimes $CPP names a directory.
5048 if test -n "$CPP" && test -d "$CPP"; then
5049 CPP=
5051 if test -z "$CPP"; then
5052 if ${ac_cv_prog_CPP+:} false; then :
5053 $as_echo_n "(cached) " >&6
5054 else
5055 # Double quotes because CPP needs to be expanded
5056 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5058 ac_preproc_ok=false
5059 for ac_c_preproc_warn_flag in '' yes
5061 # Use a header file that comes with gcc, so configuring glibc
5062 # with a fresh cross-compiler works.
5063 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5064 # <limits.h> exists even on freestanding compilers.
5065 # On the NeXT, cc -E runs the code through the compiler's parser,
5066 # not just through cpp. "Syntax error" is here to catch this case.
5067 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5068 /* end confdefs.h. */
5069 #ifdef __STDC__
5070 # include <limits.h>
5071 #else
5072 # include <assert.h>
5073 #endif
5074 Syntax error
5075 _ACEOF
5076 if ac_fn_c_try_cpp "$LINENO"; then :
5078 else
5079 # Broken: fails on valid input.
5080 continue
5082 rm -f conftest.err conftest.i conftest.$ac_ext
5084 # OK, works on sane cases. Now check whether nonexistent headers
5085 # can be detected and how.
5086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5087 /* end confdefs.h. */
5088 #include <ac_nonexistent.h>
5089 _ACEOF
5090 if ac_fn_c_try_cpp "$LINENO"; then :
5091 # Broken: success on invalid input.
5092 continue
5093 else
5094 # Passes both tests.
5095 ac_preproc_ok=:
5096 break
5098 rm -f conftest.err conftest.i conftest.$ac_ext
5100 done
5101 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5102 rm -f conftest.i conftest.err conftest.$ac_ext
5103 if $ac_preproc_ok; then :
5104 break
5107 done
5108 ac_cv_prog_CPP=$CPP
5111 CPP=$ac_cv_prog_CPP
5112 else
5113 ac_cv_prog_CPP=$CPP
5115 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5116 $as_echo "$CPP" >&6; }
5117 ac_preproc_ok=false
5118 for ac_c_preproc_warn_flag in '' yes
5120 # Use a header file that comes with gcc, so configuring glibc
5121 # with a fresh cross-compiler works.
5122 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5123 # <limits.h> exists even on freestanding compilers.
5124 # On the NeXT, cc -E runs the code through the compiler's parser,
5125 # not just through cpp. "Syntax error" is here to catch this case.
5126 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5127 /* end confdefs.h. */
5128 #ifdef __STDC__
5129 # include <limits.h>
5130 #else
5131 # include <assert.h>
5132 #endif
5133 Syntax error
5134 _ACEOF
5135 if ac_fn_c_try_cpp "$LINENO"; then :
5137 else
5138 # Broken: fails on valid input.
5139 continue
5141 rm -f conftest.err conftest.i conftest.$ac_ext
5143 # OK, works on sane cases. Now check whether nonexistent headers
5144 # can be detected and how.
5145 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5146 /* end confdefs.h. */
5147 #include <ac_nonexistent.h>
5148 _ACEOF
5149 if ac_fn_c_try_cpp "$LINENO"; then :
5150 # Broken: success on invalid input.
5151 continue
5152 else
5153 # Passes both tests.
5154 ac_preproc_ok=:
5155 break
5157 rm -f conftest.err conftest.i conftest.$ac_ext
5159 done
5160 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5161 rm -f conftest.i conftest.err conftest.$ac_ext
5162 if $ac_preproc_ok; then :
5164 else
5165 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5166 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5167 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5168 See \`config.log' for more details" "$LINENO" 5; }
5171 ac_ext=c
5172 ac_cpp='$CPP $CPPFLAGS'
5173 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5174 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5175 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5179 $as_echo_n "checking for ANSI C header files... " >&6; }
5180 if ${ac_cv_header_stdc+:} false; then :
5181 $as_echo_n "(cached) " >&6
5182 else
5183 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5184 /* end confdefs.h. */
5185 #include <stdlib.h>
5186 #include <stdarg.h>
5187 #include <string.h>
5188 #include <float.h>
5191 main ()
5195 return 0;
5197 _ACEOF
5198 if ac_fn_c_try_compile "$LINENO"; then :
5199 ac_cv_header_stdc=yes
5200 else
5201 ac_cv_header_stdc=no
5203 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5205 if test $ac_cv_header_stdc = yes; then
5206 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5207 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5208 /* end confdefs.h. */
5209 #include <string.h>
5211 _ACEOF
5212 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5213 $EGREP "memchr" >/dev/null 2>&1; then :
5215 else
5216 ac_cv_header_stdc=no
5218 rm -f conftest*
5222 if test $ac_cv_header_stdc = yes; then
5223 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5224 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5225 /* end confdefs.h. */
5226 #include <stdlib.h>
5228 _ACEOF
5229 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5230 $EGREP "free" >/dev/null 2>&1; then :
5232 else
5233 ac_cv_header_stdc=no
5235 rm -f conftest*
5239 if test $ac_cv_header_stdc = yes; then
5240 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5241 if test "$cross_compiling" = yes; then :
5243 else
5244 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5245 /* end confdefs.h. */
5246 #include <ctype.h>
5247 #include <stdlib.h>
5248 #if ((' ' & 0x0FF) == 0x020)
5249 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5250 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5251 #else
5252 # define ISLOWER(c) \
5253 (('a' <= (c) && (c) <= 'i') \
5254 || ('j' <= (c) && (c) <= 'r') \
5255 || ('s' <= (c) && (c) <= 'z'))
5256 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5257 #endif
5259 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5261 main ()
5263 int i;
5264 for (i = 0; i < 256; i++)
5265 if (XOR (islower (i), ISLOWER (i))
5266 || toupper (i) != TOUPPER (i))
5267 return 2;
5268 return 0;
5270 _ACEOF
5271 if ac_fn_c_try_run "$LINENO"; then :
5273 else
5274 ac_cv_header_stdc=no
5276 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5277 conftest.$ac_objext conftest.beam conftest.$ac_ext
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5283 $as_echo "$ac_cv_header_stdc" >&6; }
5284 if test $ac_cv_header_stdc = yes; then
5286 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5290 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5291 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5292 inttypes.h stdint.h unistd.h
5293 do :
5294 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5295 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5297 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5298 cat >>confdefs.h <<_ACEOF
5299 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5300 _ACEOF
5304 done
5307 for ac_header in sys/sdt.h
5308 do :
5309 ac_fn_c_check_header_mongrel "$LINENO" "sys/sdt.h" "ac_cv_header_sys_sdt_h" "$ac_includes_default"
5310 if test "x$ac_cv_header_sys_sdt_h" = xyes; then :
5311 cat >>confdefs.h <<_ACEOF
5312 #define HAVE_SYS_SDT_H 1
5313 _ACEOF
5315 if $enable_probes = true
5316 then
5317 if test $target_os = kfreebsd
5318 then
5319 enable_probes=false
5320 elif test $target_os = freebsd
5321 then
5322 rm -f conftest.d conftest.h
5323 cat <<End-of-File >conftest.d
5324 provider eek {
5325 probe urk(int);
5327 End-of-File
5328 if dtrace -s conftest.d -h >/dev/null 2>&1
5329 then
5330 if test ! -f conftest.h
5331 then
5332 enable_probes=false
5333 if test "$do_probes" = "yes"
5334 then
5335 as_fn_error $? "cannot enable static probes - no .h from dtrace -h" "$LINENO" 5
5338 else
5339 enable_probes=false
5340 if test "$do_probes" = "yes"
5341 then
5342 as_fn_error $? "cannot enable static probes - dtrace failed" "$LINENO" 5
5348 else
5350 enable_probes=false
5351 if test "$do_probes" = "yes"
5352 then
5353 as_fn_error $? "cannot enable static probes - no SDT header" "$LINENO" 5
5358 done
5361 if test "$enable_probes" = "true"
5362 then
5364 $as_echo "#define HAVE_STATIC_PROBES 1" >>confdefs.h
5371 if test "x$do_discovery" != "xno"; then :
5373 # on Mac OS X, dns_sd.h
5375 # on Linux, aloha Avahi
5376 enable_avahi=true
5378 pkg_failed=no
5379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for avahi" >&5
5380 $as_echo_n "checking for avahi... " >&6; }
5382 if test -n "$avahi_CFLAGS"; then
5383 pkg_cv_avahi_CFLAGS="$avahi_CFLAGS"
5384 elif test -n "$PKG_CONFIG"; then
5385 if test -n "$PKG_CONFIG" && \
5386 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"avahi-client\""; } >&5
5387 ($PKG_CONFIG --exists --print-errors "avahi-client") 2>&5
5388 ac_status=$?
5389 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5390 test $ac_status = 0; }; then
5391 pkg_cv_avahi_CFLAGS=`$PKG_CONFIG --cflags "avahi-client" 2>/dev/null`
5392 test "x$?" != "x0" && pkg_failed=yes
5393 else
5394 pkg_failed=yes
5396 else
5397 pkg_failed=untried
5399 if test -n "$avahi_LIBS"; then
5400 pkg_cv_avahi_LIBS="$avahi_LIBS"
5401 elif test -n "$PKG_CONFIG"; then
5402 if test -n "$PKG_CONFIG" && \
5403 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"avahi-client\""; } >&5
5404 ($PKG_CONFIG --exists --print-errors "avahi-client") 2>&5
5405 ac_status=$?
5406 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5407 test $ac_status = 0; }; then
5408 pkg_cv_avahi_LIBS=`$PKG_CONFIG --libs "avahi-client" 2>/dev/null`
5409 test "x$?" != "x0" && pkg_failed=yes
5410 else
5411 pkg_failed=yes
5413 else
5414 pkg_failed=untried
5419 if test $pkg_failed = yes; then
5420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5421 $as_echo "no" >&6; }
5423 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5424 _pkg_short_errors_supported=yes
5425 else
5426 _pkg_short_errors_supported=no
5428 if test $_pkg_short_errors_supported = yes; then
5429 avahi_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "avahi-client" 2>&1`
5430 else
5431 avahi_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "avahi-client" 2>&1`
5433 # Put the nasty error message in config.log where it belongs
5434 echo "$avahi_PKG_ERRORS" >&5
5436 enable_avahi=false
5437 elif test $pkg_failed = untried; then
5438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5439 $as_echo "no" >&6; }
5440 enable_avahi=false
5441 else
5442 avahi_CFLAGS=$pkg_cv_avahi_CFLAGS
5443 avahi_LIBS=$pkg_cv_avahi_LIBS
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5445 $as_echo "yes" >&6; }
5446 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for avahi_client_new in -lavahi-client" >&5
5447 $as_echo_n "checking for avahi_client_new in -lavahi-client... " >&6; }
5448 if ${ac_cv_lib_avahi_client_avahi_client_new+:} false; then :
5449 $as_echo_n "(cached) " >&6
5450 else
5451 ac_check_lib_save_LIBS=$LIBS
5452 LIBS="-lavahi-client $LIBS"
5453 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5454 /* end confdefs.h. */
5456 /* Override any GCC internal prototype to avoid an error.
5457 Use char because int might match the return type of a GCC
5458 builtin and then its argument prototype would still apply. */
5459 #ifdef __cplusplus
5460 extern "C"
5461 #endif
5462 char avahi_client_new ();
5464 main ()
5466 return avahi_client_new ();
5468 return 0;
5470 _ACEOF
5471 if ac_fn_c_try_link "$LINENO"; then :
5472 ac_cv_lib_avahi_client_avahi_client_new=yes
5473 else
5474 ac_cv_lib_avahi_client_avahi_client_new=no
5476 rm -f core conftest.err conftest.$ac_objext \
5477 conftest$ac_exeext conftest.$ac_ext
5478 LIBS=$ac_check_lib_save_LIBS
5480 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avahi_client_avahi_client_new" >&5
5481 $as_echo "$ac_cv_lib_avahi_client_avahi_client_new" >&6; }
5482 if test "x$ac_cv_lib_avahi_client_avahi_client_new" = xyes; then :
5483 lib_for_avahi="-lavahi-common -lavahi-client"
5484 else
5485 enable_avahi=false
5490 for ac_header in avahi-client/publish.h
5491 do :
5492 ac_fn_c_check_header_mongrel "$LINENO" "avahi-client/publish.h" "ac_cv_header_avahi_client_publish_h" "$ac_includes_default"
5493 if test "x$ac_cv_header_avahi_client_publish_h" = xyes; then :
5494 cat >>confdefs.h <<_ACEOF
5495 #define HAVE_AVAHI_CLIENT_PUBLISH_H 1
5496 _ACEOF
5498 else
5499 enable_avahi=false
5502 done
5504 for ac_header in avahi-common/alternative.h
5505 do :
5506 ac_fn_c_check_header_mongrel "$LINENO" "avahi-common/alternative.h" "ac_cv_header_avahi_common_alternative_h" "$ac_includes_default"
5507 if test "x$ac_cv_header_avahi_common_alternative_h" = xyes; then :
5508 cat >>confdefs.h <<_ACEOF
5509 #define HAVE_AVAHI_COMMON_ALTERNATIVE_H 1
5510 _ACEOF
5512 else
5513 enable_avahi=false
5516 done
5519 if test "$enable_avahi" = "true"
5520 then
5524 $as_echo "#define HAVE_AVAHI 1" >>confdefs.h
5526 enable_discovery=true
5529 if test "$do_discovery" != "check" -a "$enable_discovery" != "true"
5530 then
5531 as_fn_error $? "cannot enable service discovery - no supported mechanisms" "$LINENO" 5
5533 if test "$enable_discovery" = "true"
5534 then
5536 $as_echo "#define HAVE_SERVICE_DISCOVERY 1" >>confdefs.h
5544 enable_systemd=false
5545 if test "x$do_systemd" != "xno"; then :
5547 enable_systemd=true
5550 if test -n "$SYSTEMD_SYSTEMUNITDIR"; then
5551 pkg_cv_SYSTEMD_SYSTEMUNITDIR="$SYSTEMD_SYSTEMUNITDIR"
5552 elif test -n "$PKG_CONFIG"; then
5553 if test -n "$PKG_CONFIG" && \
5554 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd\""; } >&5
5555 ($PKG_CONFIG --exists --print-errors "systemd") 2>&5
5556 ac_status=$?
5557 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5558 test $ac_status = 0; }; then
5559 pkg_cv_SYSTEMD_SYSTEMUNITDIR=`$PKG_CONFIG --variable="systemdsystemunitdir" "systemd" 2>/dev/null`
5560 test "x$?" != "x0" && pkg_failed=yes
5561 else
5562 pkg_failed=yes
5564 else
5565 pkg_failed=untried
5567 SYSTEMD_SYSTEMUNITDIR=$pkg_cv_SYSTEMD_SYSTEMUNITDIR
5569 if test "x$SYSTEMD_SYSTEMUNITDIR" = x""; then :
5570 enable_systemd=false
5571 else
5572 pcp_systemdunit_dir=$SYSTEMD_SYSTEMUNITDIR
5575 if test -z "$pcp_systemdunit_dir"
5576 then
5577 if test "$do_systemd" = "yes"
5578 then
5579 as_fn_error $? "cannot enable systemd support - no systemunitdir path" "$LINENO" 5
5581 enable_systemd=false
5587 # NB: No AC_PREFIX_DEFAULT is needed, as the default configure invocation
5588 # targets a build for non-system directories such as /usr/local.
5589 # AC_PREFIX_DEFAULT([])
5591 . ./VERSION.pcp
5592 PACKAGE_VERSION=${PACKAGE_MAJOR}.${PACKAGE_MINOR}.${PACKAGE_REVISION}
5599 if test -z "$PACKAGE_BUILD_DATE" ; then
5600 PACKAGE_BUILD_DATE=`date +%Y-%m-%d`
5604 if test -z "$PACKAGE_DISTRIBUTION" ; then
5605 PACKAGE_DISTRIBUTION=$target_distro
5609 pm_version_current=`awk </dev/null "BEGIN { print (${PACKAGE_MAJOR}*256+${PACKAGE_MINOR})*256+${PACKAGE_REVISION} }"`
5612 ac_config_headers="$ac_config_headers src/include/pcp/config.h src/include/pcp/configsz.h"
5614 ac_config_files="$ac_config_files src/include/pcp/platform_defs.h"
5616 cat >confcache <<\_ACEOF
5617 # This file is a shell script that caches the results of configure
5618 # tests run on this system so they can be shared between configure
5619 # scripts and configure runs, see configure's option --config-cache.
5620 # It is not useful on other systems. If it contains results you don't
5621 # want to keep, you may remove or edit it.
5623 # config.status only pays attention to the cache file if you give it
5624 # the --recheck option to rerun configure.
5626 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5627 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5628 # following values.
5630 _ACEOF
5632 # The following way of writing the cache mishandles newlines in values,
5633 # but we know of no workaround that is simple, portable, and efficient.
5634 # So, we kill variables containing newlines.
5635 # Ultrix sh set writes to stderr and can't be redirected directly,
5636 # and sets the high bit in the cache file unless we assign to the vars.
5638 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5639 eval ac_val=\$$ac_var
5640 case $ac_val in #(
5641 *${as_nl}*)
5642 case $ac_var in #(
5643 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5644 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5645 esac
5646 case $ac_var in #(
5647 _ | IFS | as_nl) ;; #(
5648 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5649 *) { eval $ac_var=; unset $ac_var;} ;;
5650 esac ;;
5651 esac
5652 done
5654 (set) 2>&1 |
5655 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5656 *${as_nl}ac_space=\ *)
5657 # `set' does not quote correctly, so add quotes: double-quote
5658 # substitution turns \\\\ into \\, and sed turns \\ into \.
5659 sed -n \
5660 "s/'/'\\\\''/g;
5661 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5662 ;; #(
5664 # `set' quotes correctly as required by POSIX, so do not add quotes.
5665 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5667 esac |
5668 sort
5670 sed '
5671 /^ac_cv_env_/b end
5672 t clear
5673 :clear
5674 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5675 t end
5676 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5677 :end' >>confcache
5678 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5679 if test -w "$cache_file"; then
5680 if test "x$cache_file" != "x/dev/null"; then
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5682 $as_echo "$as_me: updating cache $cache_file" >&6;}
5683 if test ! -f "$cache_file" || test -h "$cache_file"; then
5684 cat confcache >"$cache_file"
5685 else
5686 case $cache_file in #(
5687 */* | ?:*)
5688 mv -f confcache "$cache_file"$$ &&
5689 mv -f "$cache_file"$$ "$cache_file" ;; #(
5691 mv -f confcache "$cache_file" ;;
5692 esac
5695 else
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5697 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5700 rm -f confcache
5702 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5703 # Let make expand exec_prefix.
5704 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5706 DEFS=-DHAVE_CONFIG_H
5708 ac_libobjs=
5709 ac_ltlibobjs=
5711 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5712 # 1. Remove the extension, and $U if already installed.
5713 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5714 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5715 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5716 # will be set to the directory where LIBOBJS objects are built.
5717 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5718 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
5719 done
5720 LIBOBJS=$ac_libobjs
5722 LTLIBOBJS=$ac_ltlibobjs
5726 : "${CONFIG_STATUS=./config.status}"
5727 ac_write_fail=0
5728 ac_clean_files_save=$ac_clean_files
5729 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5730 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5731 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5732 as_write_fail=0
5733 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5734 #! $SHELL
5735 # Generated by $as_me.
5736 # Run this file to recreate the current configuration.
5737 # Compiler output produced by configure, useful for debugging
5738 # configure, is in config.log if it exists.
5740 debug=false
5741 ac_cs_recheck=false
5742 ac_cs_silent=false
5744 SHELL=\${CONFIG_SHELL-$SHELL}
5745 export SHELL
5746 _ASEOF
5747 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5748 ## -------------------- ##
5749 ## M4sh Initialization. ##
5750 ## -------------------- ##
5752 # Be more Bourne compatible
5753 DUALCASE=1; export DUALCASE # for MKS sh
5754 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
5755 emulate sh
5756 NULLCMD=:
5757 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5758 # is contrary to our usage. Disable this feature.
5759 alias -g '${1+"$@"}'='"$@"'
5760 setopt NO_GLOB_SUBST
5761 else
5762 case `(set -o) 2>/dev/null` in #(
5763 *posix*) :
5764 set -o posix ;; #(
5765 *) :
5767 esac
5771 as_nl='
5773 export as_nl
5774 # Printing a long string crashes Solaris 7 /usr/bin/printf.
5775 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5776 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5777 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5778 # Prefer a ksh shell builtin over an external printf program on Solaris,
5779 # but without wasting forks for bash or zsh.
5780 if test -z "$BASH_VERSION$ZSH_VERSION" \
5781 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5782 as_echo='print -r --'
5783 as_echo_n='print -rn --'
5784 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5785 as_echo='printf %s\n'
5786 as_echo_n='printf %s'
5787 else
5788 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5789 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5790 as_echo_n='/usr/ucb/echo -n'
5791 else
5792 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5793 as_echo_n_body='eval
5794 arg=$1;
5795 case $arg in #(
5796 *"$as_nl"*)
5797 expr "X$arg" : "X\\(.*\\)$as_nl";
5798 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5799 esac;
5800 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5802 export as_echo_n_body
5803 as_echo_n='sh -c $as_echo_n_body as_echo'
5805 export as_echo_body
5806 as_echo='sh -c $as_echo_body as_echo'
5809 # The user is always right.
5810 if test "${PATH_SEPARATOR+set}" != set; then
5811 PATH_SEPARATOR=:
5812 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5813 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5814 PATH_SEPARATOR=';'
5819 # IFS
5820 # We need space, tab and new line, in precisely that order. Quoting is
5821 # there to prevent editors from complaining about space-tab.
5822 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
5823 # splitting by setting IFS to empty value.)
5824 IFS=" "" $as_nl"
5826 # Find who we are. Look in the path if we contain no directory separator.
5827 as_myself=
5828 case $0 in #((
5829 *[\\/]* ) as_myself=$0 ;;
5830 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5831 for as_dir in $PATH
5833 IFS=$as_save_IFS
5834 test -z "$as_dir" && as_dir=.
5835 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5836 done
5837 IFS=$as_save_IFS
5840 esac
5841 # We did not find ourselves, most probably we were run as `sh COMMAND'
5842 # in which case we are not to be found in the path.
5843 if test "x$as_myself" = x; then
5844 as_myself=$0
5846 if test ! -f "$as_myself"; then
5847 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5848 exit 1
5851 # Unset variables that we do not need and which cause bugs (e.g. in
5852 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
5853 # suppresses any "Segmentation fault" message there. '((' could
5854 # trigger a bug in pdksh 5.2.14.
5855 for as_var in BASH_ENV ENV MAIL MAILPATH
5856 do eval test x\${$as_var+set} = xset \
5857 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5858 done
5859 PS1='$ '
5860 PS2='> '
5861 PS4='+ '
5863 # NLS nuisances.
5864 LC_ALL=C
5865 export LC_ALL
5866 LANGUAGE=C
5867 export LANGUAGE
5869 # CDPATH.
5870 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5873 # as_fn_error STATUS ERROR [LINENO LOG_FD]
5874 # ----------------------------------------
5875 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5876 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5877 # script with STATUS, using 1 if that was 0.
5878 as_fn_error ()
5880 as_status=$1; test $as_status -eq 0 && as_status=1
5881 if test "$4"; then
5882 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5883 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
5885 $as_echo "$as_me: error: $2" >&2
5886 as_fn_exit $as_status
5887 } # as_fn_error
5890 # as_fn_set_status STATUS
5891 # -----------------------
5892 # Set $? to STATUS, without forking.
5893 as_fn_set_status ()
5895 return $1
5896 } # as_fn_set_status
5898 # as_fn_exit STATUS
5899 # -----------------
5900 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5901 as_fn_exit ()
5903 set +e
5904 as_fn_set_status $1
5905 exit $1
5906 } # as_fn_exit
5908 # as_fn_unset VAR
5909 # ---------------
5910 # Portably unset VAR.
5911 as_fn_unset ()
5913 { eval $1=; unset $1;}
5915 as_unset=as_fn_unset
5916 # as_fn_append VAR VALUE
5917 # ----------------------
5918 # Append the text in VALUE to the end of the definition contained in VAR. Take
5919 # advantage of any shell optimizations that allow amortized linear growth over
5920 # repeated appends, instead of the typical quadratic growth present in naive
5921 # implementations.
5922 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
5923 eval 'as_fn_append ()
5925 eval $1+=\$2
5927 else
5928 as_fn_append ()
5930 eval $1=\$$1\$2
5932 fi # as_fn_append
5934 # as_fn_arith ARG...
5935 # ------------------
5936 # Perform arithmetic evaluation on the ARGs, and store the result in the
5937 # global $as_val. Take advantage of shells that can avoid forks. The arguments
5938 # must be portable across $(()) and expr.
5939 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
5940 eval 'as_fn_arith ()
5942 as_val=$(( $* ))
5944 else
5945 as_fn_arith ()
5947 as_val=`expr "$@" || test $? -eq 1`
5949 fi # as_fn_arith
5952 if expr a : '\(a\)' >/dev/null 2>&1 &&
5953 test "X`expr 00001 : '.*\(...\)'`" = X001; then
5954 as_expr=expr
5955 else
5956 as_expr=false
5959 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5960 as_basename=basename
5961 else
5962 as_basename=false
5965 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5966 as_dirname=dirname
5967 else
5968 as_dirname=false
5971 as_me=`$as_basename -- "$0" ||
5972 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5973 X"$0" : 'X\(//\)$' \| \
5974 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5975 $as_echo X/"$0" |
5976 sed '/^.*\/\([^/][^/]*\)\/*$/{
5977 s//\1/
5980 /^X\/\(\/\/\)$/{
5981 s//\1/
5984 /^X\/\(\/\).*/{
5985 s//\1/
5988 s/.*/./; q'`
5990 # Avoid depending upon Character Ranges.
5991 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5992 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5993 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5994 as_cr_digits='0123456789'
5995 as_cr_alnum=$as_cr_Letters$as_cr_digits
5997 ECHO_C= ECHO_N= ECHO_T=
5998 case `echo -n x` in #(((((
5999 -n*)
6000 case `echo 'xy\c'` in
6001 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
6002 xy) ECHO_C='\c';;
6003 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
6004 ECHO_T=' ';;
6005 esac;;
6007 ECHO_N='-n';;
6008 esac
6010 rm -f conf$$ conf$$.exe conf$$.file
6011 if test -d conf$$.dir; then
6012 rm -f conf$$.dir/conf$$.file
6013 else
6014 rm -f conf$$.dir
6015 mkdir conf$$.dir 2>/dev/null
6017 if (echo >conf$$.file) 2>/dev/null; then
6018 if ln -s conf$$.file conf$$ 2>/dev/null; then
6019 as_ln_s='ln -s'
6020 # ... but there are two gotchas:
6021 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6022 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6023 # In both cases, we have to default to `cp -pR'.
6024 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6025 as_ln_s='cp -pR'
6026 elif ln conf$$.file conf$$ 2>/dev/null; then
6027 as_ln_s=ln
6028 else
6029 as_ln_s='cp -pR'
6031 else
6032 as_ln_s='cp -pR'
6034 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6035 rmdir conf$$.dir 2>/dev/null
6038 # as_fn_mkdir_p
6039 # -------------
6040 # Create "$as_dir" as a directory, including parents if necessary.
6041 as_fn_mkdir_p ()
6044 case $as_dir in #(
6045 -*) as_dir=./$as_dir;;
6046 esac
6047 test -d "$as_dir" || eval $as_mkdir_p || {
6048 as_dirs=
6049 while :; do
6050 case $as_dir in #(
6051 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6052 *) as_qdir=$as_dir;;
6053 esac
6054 as_dirs="'$as_qdir' $as_dirs"
6055 as_dir=`$as_dirname -- "$as_dir" ||
6056 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6057 X"$as_dir" : 'X\(//\)[^/]' \| \
6058 X"$as_dir" : 'X\(//\)$' \| \
6059 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6060 $as_echo X"$as_dir" |
6061 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6062 s//\1/
6065 /^X\(\/\/\)[^/].*/{
6066 s//\1/
6069 /^X\(\/\/\)$/{
6070 s//\1/
6073 /^X\(\/\).*/{
6074 s//\1/
6077 s/.*/./; q'`
6078 test -d "$as_dir" && break
6079 done
6080 test -z "$as_dirs" || eval "mkdir $as_dirs"
6081 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
6084 } # as_fn_mkdir_p
6085 if mkdir -p . 2>/dev/null; then
6086 as_mkdir_p='mkdir -p "$as_dir"'
6087 else
6088 test -d ./-p && rmdir ./-p
6089 as_mkdir_p=false
6093 # as_fn_executable_p FILE
6094 # -----------------------
6095 # Test if FILE is an executable regular file.
6096 as_fn_executable_p ()
6098 test -f "$1" && test -x "$1"
6099 } # as_fn_executable_p
6100 as_test_x='test -x'
6101 as_executable_p=as_fn_executable_p
6103 # Sed expression to map a string onto a valid CPP name.
6104 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6106 # Sed expression to map a string onto a valid variable name.
6107 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6110 exec 6>&1
6111 ## ----------------------------------- ##
6112 ## Main body of $CONFIG_STATUS script. ##
6113 ## ----------------------------------- ##
6114 _ASEOF
6115 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
6117 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6118 # Save the log message, to keep $0 and so on meaningful, and to
6119 # report actual input values of CONFIG_FILES etc. instead of their
6120 # values after options handling.
6121 ac_log="
6122 This file was extended by $as_me, which was
6123 generated by GNU Autoconf 2.69. Invocation command line was
6125 CONFIG_FILES = $CONFIG_FILES
6126 CONFIG_HEADERS = $CONFIG_HEADERS
6127 CONFIG_LINKS = $CONFIG_LINKS
6128 CONFIG_COMMANDS = $CONFIG_COMMANDS
6129 $ $0 $@
6131 on `(hostname || uname -n) 2>/dev/null | sed 1q`
6134 _ACEOF
6136 case $ac_config_files in *"
6137 "*) set x $ac_config_files; shift; ac_config_files=$*;;
6138 esac
6140 case $ac_config_headers in *"
6141 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
6142 esac
6145 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6146 # Files that config.status was made for.
6147 config_files="$ac_config_files"
6148 config_headers="$ac_config_headers"
6150 _ACEOF
6152 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6153 ac_cs_usage="\
6154 \`$as_me' instantiates files and other configuration actions
6155 from templates according to the current configuration. Unless the files
6156 and actions are specified as TAGs, all are instantiated by default.
6158 Usage: $0 [OPTION]... [TAG]...
6160 -h, --help print this help, then exit
6161 -V, --version print version number and configuration settings, then exit
6162 --config print configuration, then exit
6163 -q, --quiet, --silent
6164 do not print progress messages
6165 -d, --debug don't remove temporary files
6166 --recheck update $as_me by reconfiguring in the same conditions
6167 --file=FILE[:TEMPLATE]
6168 instantiate the configuration file FILE
6169 --header=FILE[:TEMPLATE]
6170 instantiate the configuration header FILE
6172 Configuration files:
6173 $config_files
6175 Configuration headers:
6176 $config_headers
6178 Report bugs to the package provider."
6180 _ACEOF
6181 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6182 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
6183 ac_cs_version="\\
6184 config.status
6185 configured by $0, generated by GNU Autoconf 2.69,
6186 with options \\"\$ac_cs_config\\"
6188 Copyright (C) 2012 Free Software Foundation, Inc.
6189 This config.status script is free software; the Free Software Foundation
6190 gives unlimited permission to copy, distribute and modify it."
6192 ac_pwd='$ac_pwd'
6193 srcdir='$srcdir'
6194 test -n "\$AWK" || AWK=awk
6195 _ACEOF
6197 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6198 # The default lists apply if the user does not specify any file.
6199 ac_need_defaults=:
6200 while test $# != 0
6202 case $1 in
6203 --*=?*)
6204 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6205 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6206 ac_shift=:
6208 --*=)
6209 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6210 ac_optarg=
6211 ac_shift=:
6214 ac_option=$1
6215 ac_optarg=$2
6216 ac_shift=shift
6218 esac
6220 case $ac_option in
6221 # Handling of the options.
6222 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6223 ac_cs_recheck=: ;;
6224 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6225 $as_echo "$ac_cs_version"; exit ;;
6226 --config | --confi | --conf | --con | --co | --c )
6227 $as_echo "$ac_cs_config"; exit ;;
6228 --debug | --debu | --deb | --de | --d | -d )
6229 debug=: ;;
6230 --file | --fil | --fi | --f )
6231 $ac_shift
6232 case $ac_optarg in
6233 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6234 '') as_fn_error $? "missing file argument" ;;
6235 esac
6236 as_fn_append CONFIG_FILES " '$ac_optarg'"
6237 ac_need_defaults=false;;
6238 --header | --heade | --head | --hea )
6239 $ac_shift
6240 case $ac_optarg in
6241 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6242 esac
6243 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
6244 ac_need_defaults=false;;
6245 --he | --h)
6246 # Conflict between --help and --header
6247 as_fn_error $? "ambiguous option: \`$1'
6248 Try \`$0 --help' for more information.";;
6249 --help | --hel | -h )
6250 $as_echo "$ac_cs_usage"; exit ;;
6251 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6252 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6253 ac_cs_silent=: ;;
6255 # This is an error.
6256 -*) as_fn_error $? "unrecognized option: \`$1'
6257 Try \`$0 --help' for more information." ;;
6259 *) as_fn_append ac_config_targets " $1"
6260 ac_need_defaults=false ;;
6262 esac
6263 shift
6264 done
6266 ac_configure_extra_args=
6268 if $ac_cs_silent; then
6269 exec 6>/dev/null
6270 ac_configure_extra_args="$ac_configure_extra_args --silent"
6273 _ACEOF
6274 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6275 if \$ac_cs_recheck; then
6276 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6277 shift
6278 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6279 CONFIG_SHELL='$SHELL'
6280 export CONFIG_SHELL
6281 exec "\$@"
6284 _ACEOF
6285 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6286 exec 5>>config.log
6288 echo
6289 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6290 ## Running $as_me. ##
6291 _ASBOX
6292 $as_echo "$ac_log"
6293 } >&5
6295 _ACEOF
6296 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6297 _ACEOF
6299 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6301 # Handling of arguments.
6302 for ac_config_target in $ac_config_targets
6304 case $ac_config_target in
6305 "src/include/pcp/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pcp/config.h" ;;
6306 "src/include/pcp/configsz.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pcp/configsz.h" ;;
6307 "src/include/pcp/platform_defs.h") CONFIG_FILES="$CONFIG_FILES src/include/pcp/platform_defs.h" ;;
6309 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
6310 esac
6311 done
6314 # If the user did not use the arguments to specify the items to instantiate,
6315 # then the envvar interface is used. Set only those that are not.
6316 # We use the long form for the default assignment because of an extremely
6317 # bizarre bug on SunOS 4.1.3.
6318 if $ac_need_defaults; then
6319 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6320 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6323 # Have a temporary directory for convenience. Make it in the build tree
6324 # simply because there is no reason against having it here, and in addition,
6325 # creating and moving files from /tmp can sometimes cause problems.
6326 # Hook for its removal unless debugging.
6327 # Note that there is a small window in which the directory will not be cleaned:
6328 # after its creation but before its name has been assigned to `$tmp'.
6329 $debug ||
6331 tmp= ac_tmp=
6332 trap 'exit_status=$?
6333 : "${ac_tmp:=$tmp}"
6334 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
6336 trap 'as_fn_exit 1' 1 2 13 15
6338 # Create a (secure) tmp directory for tmp files.
6341 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6342 test -d "$tmp"
6343 } ||
6345 tmp=./conf$$-$RANDOM
6346 (umask 077 && mkdir "$tmp")
6347 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
6348 ac_tmp=$tmp
6350 # Set up the scripts for CONFIG_FILES section.
6351 # No need to generate them if there are no CONFIG_FILES.
6352 # This happens for instance with `./config.status config.h'.
6353 if test -n "$CONFIG_FILES"; then
6356 ac_cr=`echo X | tr X '\015'`
6357 # On cygwin, bash can eat \r inside `` if the user requested igncr.
6358 # But we know of no other shell where ac_cr would be empty at this
6359 # point, so we can use a bashism as a fallback.
6360 if test "x$ac_cr" = x; then
6361 eval ac_cr=\$\'\\r\'
6363 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6364 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6365 ac_cs_awk_cr='\\r'
6366 else
6367 ac_cs_awk_cr=$ac_cr
6370 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
6371 _ACEOF
6375 echo "cat >conf$$subs.awk <<_ACEOF" &&
6376 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6377 echo "_ACEOF"
6378 } >conf$$subs.sh ||
6379 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6380 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
6381 ac_delim='%!_!# '
6382 for ac_last_try in false false false false false :; do
6383 . ./conf$$subs.sh ||
6384 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6386 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6387 if test $ac_delim_n = $ac_delim_num; then
6388 break
6389 elif $ac_last_try; then
6390 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6391 else
6392 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6394 done
6395 rm -f conf$$subs.sh
6397 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6398 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
6399 _ACEOF
6400 sed -n '
6402 s/^/S["/; s/!.*/"]=/
6405 s/^[^!]*!//
6406 :repl
6407 t repl
6408 s/'"$ac_delim"'$//
6409 t delim
6412 s/\(.\{148\}\)..*/\1/
6413 t more1
6414 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6417 b repl
6418 :more1
6419 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6422 s/.\{148\}//
6423 t nl
6424 :delim
6426 s/\(.\{148\}\)..*/\1/
6427 t more2
6428 s/["\\]/\\&/g; s/^/"/; s/$/"/
6431 :more2
6432 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6435 s/.\{148\}//
6436 t delim
6437 ' <conf$$subs.awk | sed '
6438 /^[^""]/{
6440 s/\n//
6442 ' >>$CONFIG_STATUS || ac_write_fail=1
6443 rm -f conf$$subs.awk
6444 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6445 _ACAWK
6446 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
6447 for (key in S) S_is_set[key] = 1
6448 FS = "\a"
6452 line = $ 0
6453 nfields = split(line, field, "@")
6454 substed = 0
6455 len = length(field[1])
6456 for (i = 2; i < nfields; i++) {
6457 key = field[i]
6458 keylen = length(key)
6459 if (S_is_set[key]) {
6460 value = S[key]
6461 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6462 len += length(value) + length(field[++i])
6463 substed = 1
6464 } else
6465 len += 1 + keylen
6468 print line
6471 _ACAWK
6472 _ACEOF
6473 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6474 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6475 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6476 else
6478 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
6479 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
6480 _ACEOF
6482 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
6483 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
6484 # trailing colons and then remove the whole line if VPATH becomes empty
6485 # (actually we leave an empty line to preserve line numbers).
6486 if test "x$srcdir" = x.; then
6487 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
6489 s///
6490 s/^/:/
6491 s/[ ]*$/:/
6492 s/:\$(srcdir):/:/g
6493 s/:\${srcdir}:/:/g
6494 s/:@srcdir@:/:/g
6495 s/^:*//
6496 s/:*$//
6498 s/\(=[ ]*\).*/\1/
6500 s/\n//
6501 s/^[^=]*=[ ]*$//
6505 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6506 fi # test -n "$CONFIG_FILES"
6508 # Set up the scripts for CONFIG_HEADERS section.
6509 # No need to generate them if there are no CONFIG_HEADERS.
6510 # This happens for instance with `./config.status Makefile'.
6511 if test -n "$CONFIG_HEADERS"; then
6512 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
6513 BEGIN {
6514 _ACEOF
6516 # Transform confdefs.h into an awk script `defines.awk', embedded as
6517 # here-document in config.status, that substitutes the proper values into
6518 # config.h.in to produce config.h.
6520 # Create a delimiter string that does not exist in confdefs.h, to ease
6521 # handling of long lines.
6522 ac_delim='%!_!# '
6523 for ac_last_try in false false :; do
6524 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
6525 if test -z "$ac_tt"; then
6526 break
6527 elif $ac_last_try; then
6528 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
6529 else
6530 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6532 done
6534 # For the awk script, D is an array of macro values keyed by name,
6535 # likewise P contains macro parameters if any. Preserve backslash
6536 # newline sequences.
6538 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6539 sed -n '
6540 s/.\{148\}/&'"$ac_delim"'/g
6541 t rset
6542 :rset
6543 s/^[ ]*#[ ]*define[ ][ ]*/ /
6544 t def
6546 :def
6547 s/\\$//
6548 t bsnl
6549 s/["\\]/\\&/g
6550 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6551 D["\1"]=" \3"/p
6552 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
6554 :bsnl
6555 s/["\\]/\\&/g
6556 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6557 D["\1"]=" \3\\\\\\n"\\/p
6558 t cont
6559 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6560 t cont
6562 :cont
6564 s/.\{148\}/&'"$ac_delim"'/g
6565 t clear
6566 :clear
6567 s/\\$//
6568 t bsnlc
6569 s/["\\]/\\&/g; s/^/"/; s/$/"/p
6571 :bsnlc
6572 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6573 b cont
6574 ' <confdefs.h | sed '
6575 s/'"$ac_delim"'/"\\\
6576 "/g' >>$CONFIG_STATUS || ac_write_fail=1
6578 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6579 for (key in D) D_is_set[key] = 1
6580 FS = "\a"
6582 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6583 line = \$ 0
6584 split(line, arg, " ")
6585 if (arg[1] == "#") {
6586 defundef = arg[2]
6587 mac1 = arg[3]
6588 } else {
6589 defundef = substr(arg[1], 2)
6590 mac1 = arg[2]
6592 split(mac1, mac2, "(") #)
6593 macro = mac2[1]
6594 prefix = substr(line, 1, index(line, defundef) - 1)
6595 if (D_is_set[macro]) {
6596 # Preserve the white space surrounding the "#".
6597 print prefix "define", macro P[macro] D[macro]
6598 next
6599 } else {
6600 # Replace #undef with comments. This is necessary, for example,
6601 # in the case of _POSIX_SOURCE, which is predefined and required
6602 # on some systems where configure will not decide to define it.
6603 if (defundef == "undef") {
6604 print "/*", prefix defundef, macro, "*/"
6605 next
6609 { print }
6610 _ACAWK
6611 _ACEOF
6612 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6613 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
6614 fi # test -n "$CONFIG_HEADERS"
6617 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
6618 shift
6619 for ac_tag
6621 case $ac_tag in
6622 :[FHLC]) ac_mode=$ac_tag; continue;;
6623 esac
6624 case $ac_mode$ac_tag in
6625 :[FHL]*:*);;
6626 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
6627 :[FH]-) ac_tag=-:-;;
6628 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6629 esac
6630 ac_save_IFS=$IFS
6631 IFS=:
6632 set x $ac_tag
6633 IFS=$ac_save_IFS
6634 shift
6635 ac_file=$1
6636 shift
6638 case $ac_mode in
6639 :L) ac_source=$1;;
6640 :[FH])
6641 ac_file_inputs=
6642 for ac_f
6644 case $ac_f in
6645 -) ac_f="$ac_tmp/stdin";;
6646 *) # Look for the file first in the build tree, then in the source tree
6647 # (if the path is not absolute). The absolute path cannot be DOS-style,
6648 # because $ac_f cannot contain `:'.
6649 test -f "$ac_f" ||
6650 case $ac_f in
6651 [\\/$]*) false;;
6652 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6653 esac ||
6654 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6655 esac
6656 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6657 as_fn_append ac_file_inputs " '$ac_f'"
6658 done
6660 # Let's still pretend it is `configure' which instantiates (i.e., don't
6661 # use $as_me), people would be surprised to read:
6662 # /* config.h. Generated by config.status. */
6663 configure_input='Generated from '`
6664 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6665 `' by configure.'
6666 if test x"$ac_file" != x-; then
6667 configure_input="$ac_file. $configure_input"
6668 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6669 $as_echo "$as_me: creating $ac_file" >&6;}
6671 # Neutralize special characters interpreted by sed in replacement strings.
6672 case $configure_input in #(
6673 *\&* | *\|* | *\\* )
6674 ac_sed_conf_input=`$as_echo "$configure_input" |
6675 sed 's/[\\\\&|]/\\\\&/g'`;; #(
6676 *) ac_sed_conf_input=$configure_input;;
6677 esac
6679 case $ac_tag in
6680 *:-:* | *:-) cat >"$ac_tmp/stdin" \
6681 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
6682 esac
6684 esac
6686 ac_dir=`$as_dirname -- "$ac_file" ||
6687 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6688 X"$ac_file" : 'X\(//\)[^/]' \| \
6689 X"$ac_file" : 'X\(//\)$' \| \
6690 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6691 $as_echo X"$ac_file" |
6692 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6693 s//\1/
6696 /^X\(\/\/\)[^/].*/{
6697 s//\1/
6700 /^X\(\/\/\)$/{
6701 s//\1/
6704 /^X\(\/\).*/{
6705 s//\1/
6708 s/.*/./; q'`
6709 as_dir="$ac_dir"; as_fn_mkdir_p
6710 ac_builddir=.
6712 case "$ac_dir" in
6713 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6715 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6716 # A ".." for each directory in $ac_dir_suffix.
6717 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6718 case $ac_top_builddir_sub in
6719 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6720 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6721 esac ;;
6722 esac
6723 ac_abs_top_builddir=$ac_pwd
6724 ac_abs_builddir=$ac_pwd$ac_dir_suffix
6725 # for backward compatibility:
6726 ac_top_builddir=$ac_top_build_prefix
6728 case $srcdir in
6729 .) # We are building in place.
6730 ac_srcdir=.
6731 ac_top_srcdir=$ac_top_builddir_sub
6732 ac_abs_top_srcdir=$ac_pwd ;;
6733 [\\/]* | ?:[\\/]* ) # Absolute name.
6734 ac_srcdir=$srcdir$ac_dir_suffix;
6735 ac_top_srcdir=$srcdir
6736 ac_abs_top_srcdir=$srcdir ;;
6737 *) # Relative name.
6738 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6739 ac_top_srcdir=$ac_top_build_prefix$srcdir
6740 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6741 esac
6742 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6745 case $ac_mode in
6748 # CONFIG_FILE
6751 _ACEOF
6753 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6754 # If the template does not know about datarootdir, expand it.
6755 # FIXME: This hack should be removed a few years after 2.60.
6756 ac_datarootdir_hack=; ac_datarootdir_seen=
6757 ac_sed_dataroot='
6758 /datarootdir/ {
6762 /@datadir@/p
6763 /@docdir@/p
6764 /@infodir@/p
6765 /@localedir@/p
6766 /@mandir@/p'
6767 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6768 *datarootdir*) ac_datarootdir_seen=yes;;
6769 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6770 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6771 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6772 _ACEOF
6773 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6774 ac_datarootdir_hack='
6775 s&@datadir@&$datadir&g
6776 s&@docdir@&$docdir&g
6777 s&@infodir@&$infodir&g
6778 s&@localedir@&$localedir&g
6779 s&@mandir@&$mandir&g
6780 s&\\\${datarootdir}&$datarootdir&g' ;;
6781 esac
6782 _ACEOF
6784 # Neutralize VPATH when `$srcdir' = `.'.
6785 # Shell code in configure.ac might set extrasub.
6786 # FIXME: do we really want to maintain this feature?
6787 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6788 ac_sed_extra="$ac_vpsub
6789 $extrasub
6790 _ACEOF
6791 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6793 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6794 s|@configure_input@|$ac_sed_conf_input|;t t
6795 s&@top_builddir@&$ac_top_builddir_sub&;t t
6796 s&@top_build_prefix@&$ac_top_build_prefix&;t t
6797 s&@srcdir@&$ac_srcdir&;t t
6798 s&@abs_srcdir@&$ac_abs_srcdir&;t t
6799 s&@top_srcdir@&$ac_top_srcdir&;t t
6800 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6801 s&@builddir@&$ac_builddir&;t t
6802 s&@abs_builddir@&$ac_abs_builddir&;t t
6803 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6804 $ac_datarootdir_hack
6806 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
6807 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6809 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6810 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
6811 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
6812 "$ac_tmp/out"`; test -z "$ac_out"; } &&
6813 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6814 which seems to be undefined. Please make sure it is defined" >&5
6815 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6816 which seems to be undefined. Please make sure it is defined" >&2;}
6818 rm -f "$ac_tmp/stdin"
6819 case $ac_file in
6820 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
6821 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
6822 esac \
6823 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6827 # CONFIG_HEADER
6829 if test x"$ac_file" != x-; then
6831 $as_echo "/* $configure_input */" \
6832 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
6833 } >"$ac_tmp/config.h" \
6834 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6835 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
6836 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
6837 $as_echo "$as_me: $ac_file is unchanged" >&6;}
6838 else
6839 rm -f "$ac_file"
6840 mv "$ac_tmp/config.h" "$ac_file" \
6841 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6843 else
6844 $as_echo "/* $configure_input */" \
6845 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
6846 || as_fn_error $? "could not create -" "$LINENO" 5
6851 esac
6853 done # for ac_tag
6856 as_fn_exit 0
6857 _ACEOF
6858 ac_clean_files=$ac_clean_files_save
6860 test $ac_write_fail = 0 ||
6861 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
6864 # configure is writing to config.log, and then calls config.status.
6865 # config.status does its own redirection, appending to config.log.
6866 # Unfortunately, on DOS this fails, as config.log is still kept open
6867 # by configure, so config.status won't be able to write to it; its
6868 # output is simply discarded. So we exec the FD to /dev/null,
6869 # effectively closing config.log, so it can be properly (re)opened and
6870 # appended to by config.status. When coming back to configure, we
6871 # need to make the FD available again.
6872 if test "$no_create" != yes; then
6873 ac_cs_success=:
6874 ac_config_status_args=
6875 test "$silent" = yes &&
6876 ac_config_status_args="$ac_config_status_args --quiet"
6877 exec 5>/dev/null
6878 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6879 exec 5>>config.log
6880 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6881 # would make configure fail if this is the last instruction.
6882 $ac_cs_success || as_fn_exit 1
6884 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6885 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6886 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
6890 for ac_prog in git
6892 # Extract the first word of "$ac_prog", so it can be a program name with args.
6893 set dummy $ac_prog; ac_word=$2
6894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6895 $as_echo_n "checking for $ac_word... " >&6; }
6896 if ${ac_cv_prog_GIT+:} false; then :
6897 $as_echo_n "(cached) " >&6
6898 else
6899 if test -n "$GIT"; then
6900 ac_cv_prog_GIT="$GIT" # Let the user override the test.
6901 else
6902 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6903 for as_dir in $PATH
6905 IFS=$as_save_IFS
6906 test -z "$as_dir" && as_dir=.
6907 for ac_exec_ext in '' $ac_executable_extensions; do
6908 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6909 ac_cv_prog_GIT="$ac_prog"
6910 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6911 break 2
6913 done
6914 done
6915 IFS=$as_save_IFS
6919 GIT=$ac_cv_prog_GIT
6920 if test -n "$GIT"; then
6921 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5
6922 $as_echo "$GIT" >&6; }
6923 else
6924 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6925 $as_echo "no" >&6; }
6929 test -n "$GIT" && break
6930 done
6934 for ac_prog in python
6936 # Extract the first word of "$ac_prog", so it can be a program name with args.
6937 set dummy $ac_prog; ac_word=$2
6938 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6939 $as_echo_n "checking for $ac_word... " >&6; }
6940 if ${ac_cv_prog_PYTHON+:} false; then :
6941 $as_echo_n "(cached) " >&6
6942 else
6943 if test -n "$PYTHON"; then
6944 ac_cv_prog_PYTHON="$PYTHON" # Let the user override the test.
6945 else
6946 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6947 for as_dir in $PATH
6949 IFS=$as_save_IFS
6950 test -z "$as_dir" && as_dir=.
6951 for ac_exec_ext in '' $ac_executable_extensions; do
6952 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6953 ac_cv_prog_PYTHON="$ac_prog"
6954 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6955 break 2
6957 done
6958 done
6959 IFS=$as_save_IFS
6963 PYTHON=$ac_cv_prog_PYTHON
6964 if test -n "$PYTHON"; then
6965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
6966 $as_echo "$PYTHON" >&6; }
6967 else
6968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6969 $as_echo "no" >&6; }
6973 test -n "$PYTHON" && break
6974 done
6975 test -n "$PYTHON" || PYTHON="python2.7"
6979 for ac_prog in python3
6981 # Extract the first word of "$ac_prog", so it can be a program name with args.
6982 set dummy $ac_prog; ac_word=$2
6983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6984 $as_echo_n "checking for $ac_word... " >&6; }
6985 if ${ac_cv_prog_PYTHON3+:} false; then :
6986 $as_echo_n "(cached) " >&6
6987 else
6988 if test -n "$PYTHON3"; then
6989 ac_cv_prog_PYTHON3="$PYTHON3" # Let the user override the test.
6990 else
6991 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6992 for as_dir in $PATH
6994 IFS=$as_save_IFS
6995 test -z "$as_dir" && as_dir=.
6996 for ac_exec_ext in '' $ac_executable_extensions; do
6997 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6998 ac_cv_prog_PYTHON3="$ac_prog"
6999 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7000 break 2
7002 done
7003 done
7004 IFS=$as_save_IFS
7008 PYTHON3=$ac_cv_prog_PYTHON3
7009 if test -n "$PYTHON3"; then
7010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON3" >&5
7011 $as_echo "$PYTHON3" >&6; }
7012 else
7013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7014 $as_echo "no" >&6; }
7018 test -n "$PYTHON3" && break
7019 done
7020 test -n "$PYTHON3" || PYTHON3="python3.4"
7024 enable_python2=false
7025 if test "x$do_python" != "xno"; then :
7027 enable_python2=true
7028 if test -z "$PYTHON"
7029 then
7030 enable_python2=false
7031 else
7032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python version" >&5
7033 $as_echo_n "checking Python version... " >&6; }
7034 eval `$PYTHON -V 2>&1 | awk '/^Python/ { ver=2; print $ver }' | awk -F. '{ major=1; minor=2; point=3; printf "export PY_MAJOR=%d PY_MINOR=%d PY_POINT=%d\n",$major,$minor,$point }'`
7035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PY_MAJOR.$PY_MINOR.$PY_POINT" >&5
7036 $as_echo "$PY_MAJOR.$PY_MINOR.$PY_POINT" >&6; }
7037 if test "$PY_MAJOR" -lt 2; then
7038 echo WARNING: Python version 2.6 or later does not seem to be installed.
7039 echo Cannot proceed with the Python $PY_MAJOR installation found.
7040 enable_python2=false
7042 if test "$PY_MAJOR" -eq 2 -a "$PY_MINOR" -lt 6 ; then
7043 echo WARNING: Python version 2.$PY_MINOR is too old.
7044 echo Python version 2.6 or later is required for Python builds.
7045 enable_python2=false
7047 for ac_header in python${PY_MAJOR}.${PY_MINOR}/Python.h
7048 do :
7049 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7050 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7051 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7052 cat >>confdefs.h <<_ACEOF
7053 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7054 _ACEOF
7056 else
7058 echo WARNING: Python version $PY_MAJOR.$PY_MINOR header file missing.
7059 echo Cannot proceed with the Python $PY_MAJOR installation found.
7060 enable_python2=false
7064 done
7068 if test "$do_python" != "check" -a "$enable_python2" != "true"
7069 then
7070 as_fn_error $? "cannot enable Python - no supported version found" "$LINENO" 5
7076 enable_python3=false
7077 if test "x$do_python3" != "xno"; then :
7079 enable_python3=true
7080 if test -z "$PYTHON3"
7081 then
7082 enable_python3=false
7083 else
7084 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python3 version" >&5
7085 $as_echo_n "checking Python3 version... " >&6; }
7086 eval `$PYTHON3 -V 2>&1 | awk '/^Python/ { ver=2; print $ver }' | awk -F. '{ major=1; minor=2; point=3; printf "export PY_MAJOR=%d PY_MINOR=%d PY_POINT=%d\n",$major,$minor,$point }'`
7087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PY_MAJOR.$PY_MINOR.$PY_POINT" >&5
7088 $as_echo "$PY_MAJOR.$PY_MINOR.$PY_POINT" >&6; }
7089 if test "$PY_MAJOR" -lt 3; then
7090 echo WARNING: Python version 3.3 or later does not seem to be installed.
7091 echo Cannot proceed with the Python $PY_MAJOR installation found.
7092 enable_python3=false
7094 if test "$PY_MAJOR" -eq 3 -a "$PY_MINOR" -lt 3 ; then
7095 echo WARNING: Python version 3.$PY_MINOR is too old.
7096 echo Python version 3.3 or later is required for Python builds.
7097 enable_python3=false
7099 for ac_header in python${PY_MAJOR}.${PY_MINOR}m/Python.h
7100 do :
7101 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7102 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7103 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7104 cat >>confdefs.h <<_ACEOF
7105 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7106 _ACEOF
7108 else
7110 echo WARNING: Python version $PY_MAJOR.$PY_MINOR header file missing.
7111 echo Cannot proceed with the Python $PY_MAJOR installation found.
7112 enable_python3=false
7116 done
7120 if test "$do_python3" != "check" -a "$enable_python3" != "true"
7121 then
7122 as_fn_error $? "cannot enable Python3 - no supported version found" "$LINENO" 5
7128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for any python version" >&5
7129 $as_echo_n "checking for any python version... " >&6; }
7130 if test "$cross_compiling" = "yes"; then
7131 ans=$have_python
7132 echo "cross-compile -> \"$ans\"" >&5
7133 elif test "$enable_python2" = "true" -o "$enable_python3" = "true"
7134 then
7135 have_python=true
7136 else
7137 have_python=false
7140 if $have_python; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7141 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7142 $as_echo "no" >&6; }; fi
7144 if test "$enable_python3" = "true"
7145 then
7146 pcp_python_prog=$PYTHON3
7147 elif test "$enable_python2" = "true"
7148 then
7149 pcp_python_prog=$PYTHON
7150 else
7151 pcp_python_prog=""
7156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python module jsonpointer" >&5
7157 $as_echo_n "checking for Python module jsonpointer... " >&6; }
7158 if test -n ""
7159 then
7160 txt=""
7161 else
7162 txt="import jsonpointer"
7164 $pcp_python_prog -c 'import sys;
7165 '"$txt" >>config.log 2>&1
7166 if test "$?" = 0
7167 then
7168 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7169 $as_echo "yes" >&6; }
7170 eval have_python_jsonpointer=true
7171 else
7172 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7173 $as_echo "no" >&6; }
7174 eval have_python_jsonpointer=false
7178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python module six" >&5
7179 $as_echo_n "checking for Python module six... " >&6; }
7180 if test -n ""
7181 then
7182 txt=""
7183 else
7184 txt="import six"
7186 $pcp_python_prog -c 'import sys;
7187 '"$txt" >>config.log 2>&1
7188 if test "$?" = 0
7189 then
7190 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7191 $as_echo "yes" >&6; }
7192 eval have_python_six=true
7193 else
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7195 $as_echo "no" >&6; }
7196 eval have_python_six=false
7201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the json PMDA should be included" >&5
7202 $as_echo_n "checking if the json PMDA should be included... " >&6; }
7203 pmda_json=false
7204 if test "x$do_pmdajson" = "xyes"; then :
7205 pmda_json=true
7207 if test "x$do_pmdajson" = "xcheck"; then :
7209 $have_python_jsonpointer && $have_python_six && pmda_json=true
7212 PMDA_JSON=$pmda_json
7214 if $pmda_json; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7215 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7216 $as_echo "no" >&6; }; fi
7218 for ac_prog in perl
7220 # Extract the first word of "$ac_prog", so it can be a program name with args.
7221 set dummy $ac_prog; ac_word=$2
7222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7223 $as_echo_n "checking for $ac_word... " >&6; }
7224 if ${ac_cv_prog_PERL+:} false; then :
7225 $as_echo_n "(cached) " >&6
7226 else
7227 if test -n "$PERL"; then
7228 ac_cv_prog_PERL="$PERL" # Let the user override the test.
7229 else
7230 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7231 for as_dir in $PATH
7233 IFS=$as_save_IFS
7234 test -z "$as_dir" && as_dir=.
7235 for ac_exec_ext in '' $ac_executable_extensions; do
7236 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7237 ac_cv_prog_PERL="$ac_prog"
7238 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7239 break 2
7241 done
7242 done
7243 IFS=$as_save_IFS
7247 PERL=$ac_cv_prog_PERL
7248 if test -n "$PERL"; then
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
7250 $as_echo "$PERL" >&6; }
7251 else
7252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7253 $as_echo "no" >&6; }
7257 test -n "$PERL" && break
7258 done
7262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for any perl version" >&5
7263 $as_echo_n "checking for any perl version... " >&6; }
7264 if test "$cross_compiling" = "yes"; then
7265 ans=$have_perl
7266 echo "cross-compile -> \"$ans\"" >&5
7267 elif test -n "$PERL"
7268 then
7269 pcp_perl_prog=$PERL
7270 have_perl=true
7271 else
7272 pcp_perl_prog=""
7273 have_perl=false
7277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pcp_perl_prog" >&5
7278 $as_echo "$pcp_perl_prog" >&6; }
7280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the SNMP PMDA should be included" >&5
7281 $as_echo_n "checking if the SNMP PMDA should be included... " >&6; }
7282 pmda_snmp=false
7283 if test "$have_perl" = true
7284 then
7285 if $pcp_perl_prog -e "use Net::SNMP" >/dev/null 2>&1
7286 then
7287 pmda_snmp=true
7290 PMDA_SNMP=$pmda_snmp
7292 if $pmda_snmp; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7293 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7294 $as_echo "no" >&6; }; fi
7296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the mysql PMDA should be included" >&5
7297 $as_echo_n "checking if the mysql PMDA should be included... " >&6; }
7298 pmda_mysql=false
7299 if test "$have_perl" = true
7300 then
7301 if $pcp_perl_prog -e "use DBI" >/dev/null 2>&1
7302 then
7303 if $pcp_perl_prog -e "use DBD::mysql" >/dev/null 2>&1
7304 then
7305 pmda_mysql=true
7309 PMDA_MYSQL=$pmda_mysql
7311 if $pmda_mysql; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7312 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7313 $as_echo "no" >&6; }; fi
7315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the postgresql PMDA should be included" >&5
7316 $as_echo_n "checking if the postgresql PMDA should be included... " >&6; }
7317 pmda_postgresql=false
7318 if test "$have_perl" = true
7319 then
7320 if $pcp_perl_prog -e "use DBI" >/dev/null 2>&1
7321 then
7322 if $pcp_perl_prog -e "use DBD::Pg" >/dev/null 2>&1
7323 then
7324 pmda_postgresql=true
7328 PMDA_POSTGRESQL=$pmda_postgresql
7330 if $pmda_postgresql; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7331 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7332 $as_echo "no" >&6; }; fi
7334 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the oracle PMDA should be included" >&5
7335 $as_echo_n "checking if the oracle PMDA should be included... " >&6; }
7336 pmda_oracle=false
7337 if test "$have_perl" = true
7338 then
7339 if $pcp_perl_prog -e "use DBI" >/dev/null 2>&1
7340 then
7341 pmda_oracle=true
7344 PMDA_ORACLE=$pmda_oracle
7346 if $pmda_oracle; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7347 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7348 $as_echo "no" >&6; }; fi
7350 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the elasticsearch PMDA should be included" >&5
7351 $as_echo_n "checking if the elasticsearch PMDA should be included... " >&6; }
7352 pmda_elasticsearch=false
7353 if test "$have_perl" = true
7354 then
7355 if $pcp_perl_prog -e "use LWP::UserAgent" >/dev/null 2>&1
7356 then
7357 pmda_elasticsearch=true
7360 PMDA_ELASTICSEARCH=$pmda_elasticsearch
7362 if $pmda_elasticsearch; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7363 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7364 $as_echo "no" >&6; }; fi
7366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the nginx PMDA should be included" >&5
7367 $as_echo_n "checking if the nginx PMDA should be included... " >&6; }
7368 pmda_nginx=false
7369 if test "$have_perl" = true
7370 then
7371 if $pcp_perl_prog -e "use LWP::UserAgent" >/dev/null 2>&1
7372 then
7373 pmda_nginx=true
7376 PMDA_NGINX=$pmda_nginx
7378 if $pmda_nginx; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7379 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7380 $as_echo "no" >&6; }; fi
7382 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the activemq PMDA should be included" >&5
7383 $as_echo_n "checking if the activemq PMDA should be included... " >&6; }
7384 pmda_activemq=false
7385 if test "$have_perl" = true
7386 then
7387 if $pcp_perl_prog -e "use LWP::UserAgent" >/dev/null 2>&1
7388 then
7389 pmda_activemq=true
7392 PMDA_ACTIVEMQ=$pmda_activemq
7394 if $pmda_activemq; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7395 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7396 $as_echo "no" >&6; }; fi
7398 qmake=$QMAKE
7399 enable_qt=false
7400 qt_release=release
7401 if test "x$do_qt" != "xno"; then :
7403 enable_qt=true
7405 if test -z "$QMAKE"
7406 then
7407 for ac_prog in qmake-qt4 qmake
7409 # Extract the first word of "$ac_prog", so it can be a program name with args.
7410 set dummy $ac_prog; ac_word=$2
7411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7412 $as_echo_n "checking for $ac_word... " >&6; }
7413 if ${ac_cv_path_QMAKE+:} false; then :
7414 $as_echo_n "(cached) " >&6
7415 else
7416 case $QMAKE in
7417 [\\/]* | ?:[\\/]*)
7418 ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
7421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7422 as_dummy="$QTDIR/bin:/usr/bin:/usr/lib64/qt4/bin:/usr/lib/qt4/bin:/usr/local/bin"
7423 for as_dir in $as_dummy
7425 IFS=$as_save_IFS
7426 test -z "$as_dir" && as_dir=.
7427 for ac_exec_ext in '' $ac_executable_extensions; do
7428 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7429 ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
7430 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7431 break 2
7433 done
7434 done
7435 IFS=$as_save_IFS
7438 esac
7440 QMAKE=$ac_cv_path_QMAKE
7441 if test -n "$QMAKE"; then
7442 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
7443 $as_echo "$QMAKE" >&6; }
7444 else
7445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7446 $as_echo "no" >&6; }
7450 test -n "$QMAKE" && break
7451 done
7453 test "x$cc_is_gcc" = xyes -a $target_os = solaris && QMAKE="$QMAKE -spec solaris-g++"
7455 qmake=$QMAKE
7456 if test -z "$QMAKE"
7457 then
7458 enable_qt=false
7459 else
7460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Qt version" >&5
7461 $as_echo_n "checking Qt version... " >&6; }
7462 eval `$qmake --version | awk '/Using Qt version/ { ver=4; print $ver }' | awk -F. '{ major=1; minor=2; point=3; printf "export QT_MAJOR=%d QT_MINOR=%d QT_POINT=%d\n",$major,$minor,$point }'`
7463 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_MAJOR.$QT_MINOR.$QT_POINT" >&5
7464 $as_echo "$QT_MAJOR.$QT_MINOR.$QT_POINT" >&6; }
7465 if test "$QT_MAJOR" -lt 4; then
7466 echo WARNING: Qt version 4.4 or later does not seem to be installed.
7467 echo Cannot proceed with the Qt $QT_MAJOR installation found.
7468 enable_qt=false
7470 if test "$QT_MAJOR" -eq 4 -a "$QT_MINOR" -lt 4 ; then
7471 echo WARNING: Qt version 4.$QT_MINOR is too old.
7472 echo Qt version 4.4 or later is required for Qt builds.
7473 enable_qt=false
7477 if test "$do_qt" != "check" -a "$enable_qt" != "true"
7478 then
7479 as_fn_error $? "cannot enable Qt - no supported Qt installation found" "$LINENO" 5
7480 elif test "$enable_qt" = "true" -a "x$cxx" = "x"
7481 then
7482 enable_qt=false
7483 test "$do_qt" != "check" && \
7484 as_fn_error $? "C++ compiler unavailable, cannot build Qt components" "$LINENO" 5
7485 elif test "$do_qt" = "debug"
7486 then
7487 qt_release=debug
7488 enable_qt=true
7496 if test -z "$MAKE"
7497 then
7498 # Extract the first word of "gmake", so it can be a program name with args.
7499 set dummy gmake; ac_word=$2
7500 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7501 $as_echo_n "checking for $ac_word... " >&6; }
7502 if ${ac_cv_path_MAKE+:} false; then :
7503 $as_echo_n "(cached) " >&6
7504 else
7505 case $MAKE in
7506 [\\/]* | ?:[\\/]*)
7507 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
7510 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7511 for as_dir in $PATH
7513 IFS=$as_save_IFS
7514 test -z "$as_dir" && as_dir=.
7515 for ac_exec_ext in '' $ac_executable_extensions; do
7516 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7517 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
7518 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7519 break 2
7521 done
7522 done
7523 IFS=$as_save_IFS
7526 esac
7528 MAKE=$ac_cv_path_MAKE
7529 if test -n "$MAKE"; then
7530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
7531 $as_echo "$MAKE" >&6; }
7532 else
7533 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7534 $as_echo "no" >&6; }
7538 if test -z "$MAKE"
7539 then
7540 # look elsewhere ...
7541 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make elsewhere" >&5
7542 $as_echo_n "checking for GNU make elsewhere... " >&6; }
7543 for f in /usr/local/bin/gmake /usr/freeware/bin/gmake /usr/local/bin/make /opt/sfw/bin/gmake nowhere
7545 if test -x $f
7546 then
7547 MAKE=$f
7548 break
7550 done
7551 if test $f = nowhere
7552 then
7553 # Check if /usr/bin/make is any good
7554 mver=`/usr/bin/make --version 2>/dev/null | sed -n -e1p | cut -c1-8`
7555 if test "$mver" != "GNU Make"
7556 then
7557 echo
7558 echo "FATAL ERROR: could not find GNU make anywhere"
7559 echo "You need to set \$MAKE as the full path to GNU make "
7560 echo "in the environment."
7561 rm -rf conftest conftest.*
7562 exit 1
7563 else
7564 MAKE=/usr/bin/make
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
7568 $as_echo "$MAKE" >&6; }
7571 make=$MAKE
7574 if test -z "$CPP"; then
7575 ac_ext=c
7576 ac_cpp='$CPP $CPPFLAGS'
7577 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7578 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7579 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7581 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7582 # On Suns, sometimes $CPP names a directory.
7583 if test -n "$CPP" && test -d "$CPP"; then
7584 CPP=
7586 if test -z "$CPP"; then
7587 if ${ac_cv_prog_CPP+:} false; then :
7588 $as_echo_n "(cached) " >&6
7589 else
7590 # Double quotes because CPP needs to be expanded
7591 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7593 ac_preproc_ok=false
7594 for ac_c_preproc_warn_flag in '' yes
7596 # Use a header file that comes with gcc, so configuring glibc
7597 # with a fresh cross-compiler works.
7598 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7599 # <limits.h> exists even on freestanding compilers.
7600 # On the NeXT, cc -E runs the code through the compiler's parser,
7601 # not just through cpp. "Syntax error" is here to catch this case.
7602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7603 /* end confdefs.h. */
7604 #ifdef __STDC__
7605 # include <limits.h>
7606 #else
7607 # include <assert.h>
7608 #endif
7609 Syntax error
7610 _ACEOF
7611 if ac_fn_c_try_cpp "$LINENO"; then :
7613 else
7614 # Broken: fails on valid input.
7615 continue
7617 rm -f conftest.err conftest.i conftest.$ac_ext
7619 # OK, works on sane cases. Now check whether nonexistent headers
7620 # can be detected and how.
7621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7622 /* end confdefs.h. */
7623 #include <ac_nonexistent.h>
7624 _ACEOF
7625 if ac_fn_c_try_cpp "$LINENO"; then :
7626 # Broken: success on invalid input.
7627 continue
7628 else
7629 # Passes both tests.
7630 ac_preproc_ok=:
7631 break
7633 rm -f conftest.err conftest.i conftest.$ac_ext
7635 done
7636 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7637 rm -f conftest.i conftest.err conftest.$ac_ext
7638 if $ac_preproc_ok; then :
7639 break
7642 done
7643 ac_cv_prog_CPP=$CPP
7646 CPP=$ac_cv_prog_CPP
7647 else
7648 ac_cv_prog_CPP=$CPP
7650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7651 $as_echo "$CPP" >&6; }
7652 ac_preproc_ok=false
7653 for ac_c_preproc_warn_flag in '' yes
7655 # Use a header file that comes with gcc, so configuring glibc
7656 # with a fresh cross-compiler works.
7657 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7658 # <limits.h> exists even on freestanding compilers.
7659 # On the NeXT, cc -E runs the code through the compiler's parser,
7660 # not just through cpp. "Syntax error" is here to catch this case.
7661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7662 /* end confdefs.h. */
7663 #ifdef __STDC__
7664 # include <limits.h>
7665 #else
7666 # include <assert.h>
7667 #endif
7668 Syntax error
7669 _ACEOF
7670 if ac_fn_c_try_cpp "$LINENO"; then :
7672 else
7673 # Broken: fails on valid input.
7674 continue
7676 rm -f conftest.err conftest.i conftest.$ac_ext
7678 # OK, works on sane cases. Now check whether nonexistent headers
7679 # can be detected and how.
7680 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7681 /* end confdefs.h. */
7682 #include <ac_nonexistent.h>
7683 _ACEOF
7684 if ac_fn_c_try_cpp "$LINENO"; then :
7685 # Broken: success on invalid input.
7686 continue
7687 else
7688 # Passes both tests.
7689 ac_preproc_ok=:
7690 break
7692 rm -f conftest.err conftest.i conftest.$ac_ext
7694 done
7695 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7696 rm -f conftest.i conftest.err conftest.$ac_ext
7697 if $ac_preproc_ok; then :
7699 else
7700 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7701 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7702 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7703 See \`config.log' for more details" "$LINENO" 5; }
7706 ac_ext=c
7707 ac_cpp='$CPP $CPPFLAGS'
7708 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7709 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7710 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7713 cpp=$CPP
7716 if test -z "$LD"; then
7717 # Extract the first word of "ld", so it can be a program name with args.
7718 set dummy ld; ac_word=$2
7719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7720 $as_echo_n "checking for $ac_word... " >&6; }
7721 if ${ac_cv_path_LD+:} false; then :
7722 $as_echo_n "(cached) " >&6
7723 else
7724 case $LD in
7725 [\\/]* | ?:[\\/]*)
7726 ac_cv_path_LD="$LD" # Let the user override the test with a path.
7729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7730 for as_dir in $PATH
7732 IFS=$as_save_IFS
7733 test -z "$as_dir" && as_dir=.
7734 for ac_exec_ext in '' $ac_executable_extensions; do
7735 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7736 ac_cv_path_LD="$as_dir/$ac_word$ac_exec_ext"
7737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7738 break 2
7740 done
7741 done
7742 IFS=$as_save_IFS
7744 test -z "$ac_cv_path_LD" && ac_cv_path_LD="/usr/bin/ld"
7746 esac
7748 LD=$ac_cv_path_LD
7749 if test -n "$LD"; then
7750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7751 $as_echo "$LD" >&6; }
7752 else
7753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7754 $as_echo "no" >&6; }
7759 ld=$LD
7762 if test -z "$PCP_USER_INSTALL" ; then
7763 pcp_user_install=root
7764 else
7765 pcp_user_install="$PCP_USER_INSTALL"
7768 if test -z "$PCP_GROUP_INSTALL" ; then
7769 case "$target_os"
7771 darwin|freebsd|netbsd|openbsd)
7772 pcp_group_install=wheel
7775 pcp_group_install=root
7777 esac
7778 else
7779 pcp_group_install="$PCP_GROUP_INSTALL"
7783 if test -z "$TAR"; then
7784 for ac_prog in gtar tar
7786 # Extract the first word of "$ac_prog", so it can be a program name with args.
7787 set dummy $ac_prog; ac_word=$2
7788 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7789 $as_echo_n "checking for $ac_word... " >&6; }
7790 if ${ac_cv_path_TAR+:} false; then :
7791 $as_echo_n "(cached) " >&6
7792 else
7793 case $TAR in
7794 [\\/]* | ?:[\\/]*)
7795 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7798 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7799 for as_dir in $PATH
7801 IFS=$as_save_IFS
7802 test -z "$as_dir" && as_dir=.
7803 for ac_exec_ext in '' $ac_executable_extensions; do
7804 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7805 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7806 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7807 break 2
7809 done
7810 done
7811 IFS=$as_save_IFS
7814 esac
7816 TAR=$ac_cv_path_TAR
7817 if test -n "$TAR"; then
7818 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
7819 $as_echo "$TAR" >&6; }
7820 else
7821 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7822 $as_echo "no" >&6; }
7826 test -n "$TAR" && break
7827 done
7828 test -n "$TAR" || TAR="tar"
7831 if test $target_os = darwin -a -x /usr/bin/gnutar
7832 then
7833 TAR=/usr/bin/gnutar
7835 tar=$TAR
7838 if test -z "$ZIP"; then
7839 # Extract the first word of "gzip", so it can be a program name with args.
7840 set dummy gzip; ac_word=$2
7841 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7842 $as_echo_n "checking for $ac_word... " >&6; }
7843 if ${ac_cv_path_ZIP+:} false; then :
7844 $as_echo_n "(cached) " >&6
7845 else
7846 case $ZIP in
7847 [\\/]* | ?:[\\/]*)
7848 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7852 for as_dir in $PATH
7854 IFS=$as_save_IFS
7855 test -z "$as_dir" && as_dir=.
7856 for ac_exec_ext in '' $ac_executable_extensions; do
7857 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7858 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7859 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7860 break 2
7862 done
7863 done
7864 IFS=$as_save_IFS
7866 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="/bin/gzip"
7868 esac
7870 ZIP=$ac_cv_path_ZIP
7871 if test -n "$ZIP"; then
7872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
7873 $as_echo "$ZIP" >&6; }
7874 else
7875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7876 $as_echo "no" >&6; }
7881 test ! -x "$ZIP" && ZIP=/usr/local/bin/gzip
7882 test ! -x "$ZIP" && ZIP=/usr/freeware/bin/gzip
7883 test ! -x "$ZIP" && ZIP=/usr/bin/gzip
7884 gzip=$ZIP
7885 test -z "$gzip" && gzip=no-gzip
7888 if test -z "$BZIP2"; then
7889 # Extract the first word of "bzip2", so it can be a program name with args.
7890 set dummy bzip2; ac_word=$2
7891 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7892 $as_echo_n "checking for $ac_word... " >&6; }
7893 if ${ac_cv_path_BZIP2+:} false; then :
7894 $as_echo_n "(cached) " >&6
7895 else
7896 case $BZIP2 in
7897 [\\/]* | ?:[\\/]*)
7898 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7901 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7902 for as_dir in $PATH
7904 IFS=$as_save_IFS
7905 test -z "$as_dir" && as_dir=.
7906 for ac_exec_ext in '' $ac_executable_extensions; do
7907 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7908 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7909 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7910 break 2
7912 done
7913 done
7914 IFS=$as_save_IFS
7916 test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="/bin/bzip2"
7918 esac
7920 BZIP2=$ac_cv_path_BZIP2
7921 if test -n "$BZIP2"; then
7922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIP2" >&5
7923 $as_echo "$BZIP2" >&6; }
7924 else
7925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7926 $as_echo "no" >&6; }
7931 test ! -x "$BZIP2" && BZIP2=/usr/bin/bzip2
7932 test ! -x "$BZIP2" && BZIP2=/usr/local/bin/bzip2
7933 test ! -x "$BZIP2" && BZIP2=/usr/freeware/bin/bzip2
7934 bzip2=$BZIP2
7935 test -z "$bzip2" && bzip2=no-bzip2
7938 if test -z "$LZMA"; then
7939 # Extract the first word of "lzma", so it can be a program name with args.
7940 set dummy lzma; ac_word=$2
7941 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7942 $as_echo_n "checking for $ac_word... " >&6; }
7943 if ${ac_cv_path_LZMA+:} false; then :
7944 $as_echo_n "(cached) " >&6
7945 else
7946 case $LZMA in
7947 [\\/]* | ?:[\\/]*)
7948 ac_cv_path_LZMA="$LZMA" # Let the user override the test with a path.
7951 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7952 for as_dir in $PATH
7954 IFS=$as_save_IFS
7955 test -z "$as_dir" && as_dir=.
7956 for ac_exec_ext in '' $ac_executable_extensions; do
7957 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7958 ac_cv_path_LZMA="$as_dir/$ac_word$ac_exec_ext"
7959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7960 break 2
7962 done
7963 done
7964 IFS=$as_save_IFS
7966 test -z "$ac_cv_path_LZMA" && ac_cv_path_LZMA="/bin/lzma"
7968 esac
7970 LZMA=$ac_cv_path_LZMA
7971 if test -n "$LZMA"; then
7972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZMA" >&5
7973 $as_echo "$LZMA" >&6; }
7974 else
7975 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7976 $as_echo "no" >&6; }
7981 test ! -x "$LZMA" && LZMA=/usr/bin/lzma
7982 test ! -x "$LZMA" && LZMA=/usr/local/bin/lzma
7983 test ! -x "$LZMA" && LZMA=/usr/freeware/bin/lzma
7984 lzma=$LZMA
7985 test -z "$lzma" && lzma=no-lzma
7988 if test -z "$XZ"; then
7989 # Extract the first word of "xz", so it can be a program name with args.
7990 set dummy xz; ac_word=$2
7991 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7992 $as_echo_n "checking for $ac_word... " >&6; }
7993 if ${ac_cv_path_XZ+:} false; then :
7994 $as_echo_n "(cached) " >&6
7995 else
7996 case $XZ in
7997 [\\/]* | ?:[\\/]*)
7998 ac_cv_path_XZ="$XZ" # Let the user override the test with a path.
8001 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8002 for as_dir in $PATH
8004 IFS=$as_save_IFS
8005 test -z "$as_dir" && as_dir=.
8006 for ac_exec_ext in '' $ac_executable_extensions; do
8007 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8008 ac_cv_path_XZ="$as_dir/$ac_word$ac_exec_ext"
8009 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8010 break 2
8012 done
8013 done
8014 IFS=$as_save_IFS
8016 test -z "$ac_cv_path_XZ" && ac_cv_path_XZ="/bin/xz"
8018 esac
8020 XZ=$ac_cv_path_XZ
8021 if test -n "$XZ"; then
8022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XZ" >&5
8023 $as_echo "$XZ" >&6; }
8024 else
8025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8026 $as_echo "no" >&6; }
8031 test ! -x "$XZ" && XZ=/usr/bin/xz
8032 test ! -x "$XZ" && XZ=/usr/local/bin/xz
8033 test ! -x "$XZ" && XZ=/usr/freeware/bin/xz
8034 xz=$XZ
8035 test -z "$xz" && xz=no-xz
8038 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PackageMaker" >&5
8039 $as_echo_n "checking for PackageMaker... " >&6; }
8040 if test -z "$PACKAGE_MAKER"
8041 then
8042 if test $target_os = darwin
8043 then
8044 if test -x /Applications/PackageMaker.app/Contents/MacOS/PackageMaker
8045 then # local XCode extras install
8046 package_maker=/Applications/PackageMaker.app/Contents/MacOS/PackageMaker
8047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (local install)" >&5
8048 $as_echo " yes (local install)" >&6; }
8049 elif test -x /Developer/Applications/PackageMaker.app/Contents/MacOS/PackageMaker
8050 then # Darwin 6.x
8051 package_maker=/Developer/Applications/PackageMaker.app/Contents/MacOS/PackageMaker
8052 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (darwin 6.x)" >&5
8053 $as_echo " yes (darwin 6.x)" >&6; }
8054 elif test -x /Developer/Applications/Utilities/PackageMaker.app/Contents/MacOS/PackageMaker
8055 then # Darwin 7.x
8056 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (darwin 7.x)" >&5
8057 $as_echo " yes (darwin 7.x)" >&6; }
8058 package_maker=/Developer/Applications/Utilities/PackageMaker.app/Contents/MacOS/PackageMaker
8059 else
8060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
8061 $as_echo " not found!" >&6; }
8062 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PackageMaker not found, mac packages will not be made" >&5
8063 $as_echo "$as_me: WARNING: PackageMaker not found, mac packages will not be made" >&2;}
8065 else
8066 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8067 $as_echo " no" >&6; }
8069 else
8070 package_maker="$PACKAGE_MAKER"
8074 if test -z "$HDIUTIL"; then
8075 # Extract the first word of "hdiutil", so it can be a program name with args.
8076 set dummy hdiutil; ac_word=$2
8077 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8078 $as_echo_n "checking for $ac_word... " >&6; }
8079 if ${ac_cv_path_HDIUTIL+:} false; then :
8080 $as_echo_n "(cached) " >&6
8081 else
8082 case $HDIUTIL in
8083 [\\/]* | ?:[\\/]*)
8084 ac_cv_path_HDIUTIL="$HDIUTIL" # Let the user override the test with a path.
8087 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8088 for as_dir in $PATH
8090 IFS=$as_save_IFS
8091 test -z "$as_dir" && as_dir=.
8092 for ac_exec_ext in '' $ac_executable_extensions; do
8093 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8094 ac_cv_path_HDIUTIL="$as_dir/$ac_word$ac_exec_ext"
8095 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8096 break 2
8098 done
8099 done
8100 IFS=$as_save_IFS
8103 esac
8105 HDIUTIL=$ac_cv_path_HDIUTIL
8106 if test -n "$HDIUTIL"; then
8107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HDIUTIL" >&5
8108 $as_echo "$HDIUTIL" >&6; }
8109 else
8110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8111 $as_echo "no" >&6; }
8116 hdiutil=$HDIUTIL
8119 if test -z "$MKINSTALLP"; then
8120 # Extract the first word of "mkinstallp", so it can be a program name with args.
8121 set dummy mkinstallp; ac_word=$2
8122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8123 $as_echo_n "checking for $ac_word... " >&6; }
8124 if ${ac_cv_path_MKINSTALLP+:} false; then :
8125 $as_echo_n "(cached) " >&6
8126 else
8127 case $MKINSTALLP in
8128 [\\/]* | ?:[\\/]*)
8129 ac_cv_path_MKINSTALLP="$MKINSTALLP" # Let the user override the test with a path.
8132 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8133 for as_dir in $PATH
8135 IFS=$as_save_IFS
8136 test -z "$as_dir" && as_dir=.
8137 for ac_exec_ext in '' $ac_executable_extensions; do
8138 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8139 ac_cv_path_MKINSTALLP="$as_dir/$ac_word$ac_exec_ext"
8140 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8141 break 2
8143 done
8144 done
8145 IFS=$as_save_IFS
8148 esac
8150 MKINSTALLP=$ac_cv_path_MKINSTALLP
8151 if test -n "$MKINSTALLP"; then
8152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKINSTALLP" >&5
8153 $as_echo "$MKINSTALLP" >&6; }
8154 else
8155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8156 $as_echo "no" >&6; }
8161 mkinstallp=$MKINSTALLP
8164 if test -z "$PKGMK"; then
8165 # Extract the first word of "pkgmk", so it can be a program name with args.
8166 set dummy pkgmk; ac_word=$2
8167 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8168 $as_echo_n "checking for $ac_word... " >&6; }
8169 if ${ac_cv_path_PKGMK+:} false; then :
8170 $as_echo_n "(cached) " >&6
8171 else
8172 case $PKGMK in
8173 [\\/]* | ?:[\\/]*)
8174 ac_cv_path_PKGMK="$PKGMK" # Let the user override the test with a path.
8177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8178 for as_dir in $PATH
8180 IFS=$as_save_IFS
8181 test -z "$as_dir" && as_dir=.
8182 for ac_exec_ext in '' $ac_executable_extensions; do
8183 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8184 ac_cv_path_PKGMK="$as_dir/$ac_word$ac_exec_ext"
8185 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8186 break 2
8188 done
8189 done
8190 IFS=$as_save_IFS
8193 esac
8195 PKGMK=$ac_cv_path_PKGMK
8196 if test -n "$PKGMK"; then
8197 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGMK" >&5
8198 $as_echo "$PKGMK" >&6; }
8199 else
8200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8201 $as_echo "no" >&6; }
8206 pkgmk=$PKGMK
8209 if test -z "$DLLTOOL"; then
8210 # Extract the first word of "dlltool", so it can be a program name with args.
8211 set dummy dlltool; ac_word=$2
8212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8213 $as_echo_n "checking for $ac_word... " >&6; }
8214 if ${ac_cv_path_DLLTOOL+:} false; then :
8215 $as_echo_n "(cached) " >&6
8216 else
8217 case $DLLTOOL in
8218 [\\/]* | ?:[\\/]*)
8219 ac_cv_path_DLLTOOL="$DLLTOOL" # Let the user override the test with a path.
8222 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8223 for as_dir in $PATH
8225 IFS=$as_save_IFS
8226 test -z "$as_dir" && as_dir=.
8227 for ac_exec_ext in '' $ac_executable_extensions; do
8228 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8229 ac_cv_path_DLLTOOL="$as_dir/$ac_word$ac_exec_ext"
8230 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8231 break 2
8233 done
8234 done
8235 IFS=$as_save_IFS
8238 esac
8240 DLLTOOL=$ac_cv_path_DLLTOOL
8241 if test -n "$DLLTOOL"; then
8242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8243 $as_echo "$DLLTOOL" >&6; }
8244 else
8245 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8246 $as_echo "no" >&6; }
8251 dlltool=$DLLTOOL
8254 if test -z "$RPMBUILD"; then
8255 # Extract the first word of "rpmbuild", so it can be a program name with args.
8256 set dummy rpmbuild; ac_word=$2
8257 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8258 $as_echo_n "checking for $ac_word... " >&6; }
8259 if ${ac_cv_path_RPMBUILD+:} false; then :
8260 $as_echo_n "(cached) " >&6
8261 else
8262 case $RPMBUILD in
8263 [\\/]* | ?:[\\/]*)
8264 ac_cv_path_RPMBUILD="$RPMBUILD" # Let the user override the test with a path.
8267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8268 for as_dir in $PATH
8270 IFS=$as_save_IFS
8271 test -z "$as_dir" && as_dir=.
8272 for ac_exec_ext in '' $ac_executable_extensions; do
8273 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8274 ac_cv_path_RPMBUILD="$as_dir/$ac_word$ac_exec_ext"
8275 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8276 break 2
8278 done
8279 done
8280 IFS=$as_save_IFS
8283 esac
8285 RPMBUILD=$ac_cv_path_RPMBUILD
8286 if test -n "$RPMBUILD"; then
8287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPMBUILD" >&5
8288 $as_echo "$RPMBUILD" >&6; }
8289 else
8290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8291 $as_echo "no" >&6; }
8296 test $target_distro = slackware && RPMBUILD=''
8297 rpmbuild=$RPMBUILD
8300 if test -z "$RPM"; then
8301 # Extract the first word of "rpm", so it can be a program name with args.
8302 set dummy rpm; ac_word=$2
8303 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8304 $as_echo_n "checking for $ac_word... " >&6; }
8305 if ${ac_cv_path_RPM+:} false; then :
8306 $as_echo_n "(cached) " >&6
8307 else
8308 case $RPM in
8309 [\\/]* | ?:[\\/]*)
8310 ac_cv_path_RPM="$RPM" # Let the user override the test with a path.
8313 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8314 for as_dir in $PATH
8316 IFS=$as_save_IFS
8317 test -z "$as_dir" && as_dir=.
8318 for ac_exec_ext in '' $ac_executable_extensions; do
8319 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8320 ac_cv_path_RPM="$as_dir/$ac_word$ac_exec_ext"
8321 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8322 break 2
8324 done
8325 done
8326 IFS=$as_save_IFS
8329 esac
8331 RPM=$ac_cv_path_RPM
8332 if test -n "$RPM"; then
8333 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
8334 $as_echo "$RPM" >&6; }
8335 else
8336 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8337 $as_echo "no" >&6; }
8342 test $target_distro = slackware && RPM=''
8343 rpm=$RPM
8346 if test -n "$RPMBUILD" -a -x "$RPMBUILD"
8347 then
8348 rpmprog=$RPMBUILD
8349 else
8350 rpmprog=$RPM
8354 if test -z "$POD2MAN"; then
8355 # Extract the first word of "pod2man", so it can be a program name with args.
8356 set dummy pod2man; ac_word=$2
8357 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8358 $as_echo_n "checking for $ac_word... " >&6; }
8359 if ${ac_cv_path_POD2MAN+:} false; then :
8360 $as_echo_n "(cached) " >&6
8361 else
8362 case $POD2MAN in
8363 [\\/]* | ?:[\\/]*)
8364 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8367 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8368 for as_dir in $PATH
8370 IFS=$as_save_IFS
8371 test -z "$as_dir" && as_dir=.
8372 for ac_exec_ext in '' $ac_executable_extensions; do
8373 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8374 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
8375 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8376 break 2
8378 done
8379 done
8380 IFS=$as_save_IFS
8383 esac
8385 POD2MAN=$ac_cv_path_POD2MAN
8386 if test -n "$POD2MAN"; then
8387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POD2MAN" >&5
8388 $as_echo "$POD2MAN" >&6; }
8389 else
8390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8391 $as_echo "no" >&6; }
8396 pod2man=$POD2MAN
8399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ExtUtils::MakeMaker is installed" >&5
8400 $as_echo_n "checking if ExtUtils::MakeMaker is installed... " >&6; }
8401 perl -e "use ExtUtils::MakeMaker" 2>/dev/null
8402 if test $? -eq 0
8403 then
8404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8405 $as_echo " yes" >&6; }
8406 else
8407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8408 $as_echo " no" >&6; }
8409 echo
8410 echo "FATAL ERROR: Perl ExtUtils::MakeMaker module missing."
8411 echo "You can either install this from your distribution, or"
8412 echo "download from CPAN (Comprehensive Perl Archive Network)."
8413 rm -rf conftest conftest.*
8414 exit 1
8417 # Extract the first word of "true", so it can be a program name with args.
8418 set dummy true; ac_word=$2
8419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8420 $as_echo_n "checking for $ac_word... " >&6; }
8421 if ${ac_cv_path_TRUEPROG+:} false; then :
8422 $as_echo_n "(cached) " >&6
8423 else
8424 case $TRUEPROG in
8425 [\\/]* | ?:[\\/]*)
8426 ac_cv_path_TRUEPROG="$TRUEPROG" # Let the user override the test with a path.
8429 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8430 for as_dir in $PATH
8432 IFS=$as_save_IFS
8433 test -z "$as_dir" && as_dir=.
8434 for ac_exec_ext in '' $ac_executable_extensions; do
8435 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8436 ac_cv_path_TRUEPROG="$as_dir/$ac_word$ac_exec_ext"
8437 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8438 break 2
8440 done
8441 done
8442 IFS=$as_save_IFS
8445 esac
8447 TRUEPROG=$ac_cv_path_TRUEPROG
8448 if test -n "$TRUEPROG"; then
8449 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUEPROG" >&5
8450 $as_echo "$TRUEPROG" >&6; }
8451 else
8452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8453 $as_echo "no" >&6; }
8458 if test -z "$MAKEDEPEND"; then
8459 # Extract the first word of "makedepend", so it can be a program name with args.
8460 set dummy makedepend; ac_word=$2
8461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8462 $as_echo_n "checking for $ac_word... " >&6; }
8463 if ${ac_cv_path_MAKEDEPEND+:} false; then :
8464 $as_echo_n "(cached) " >&6
8465 else
8466 case $MAKEDEPEND in
8467 [\\/]* | ?:[\\/]*)
8468 ac_cv_path_MAKEDEPEND="$MAKEDEPEND" # Let the user override the test with a path.
8471 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8472 for as_dir in $PATH
8474 IFS=$as_save_IFS
8475 test -z "$as_dir" && as_dir=.
8476 for ac_exec_ext in '' $ac_executable_extensions; do
8477 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8478 ac_cv_path_MAKEDEPEND="$as_dir/$ac_word$ac_exec_ext"
8479 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8480 break 2
8482 done
8483 done
8484 IFS=$as_save_IFS
8486 test -z "$ac_cv_path_MAKEDEPEND" && ac_cv_path_MAKEDEPEND="$TRUEPROG"
8488 esac
8490 MAKEDEPEND=$ac_cv_path_MAKEDEPEND
8491 if test -n "$MAKEDEPEND"; then
8492 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEDEPEND" >&5
8493 $as_echo "$MAKEDEPEND" >&6; }
8494 else
8495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8496 $as_echo "no" >&6; }
8501 makedepend=$MAKEDEPEND
8504 if test -z "$MD5SUM"; then
8505 # Extract the first word of "md5sum", so it can be a program name with args.
8506 set dummy md5sum; ac_word=$2
8507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8508 $as_echo_n "checking for $ac_word... " >&6; }
8509 if ${ac_cv_path_MD5SUM+:} false; then :
8510 $as_echo_n "(cached) " >&6
8511 else
8512 case $MD5SUM in
8513 [\\/]* | ?:[\\/]*)
8514 ac_cv_path_MD5SUM="$MD5SUM" # Let the user override the test with a path.
8517 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8518 for as_dir in $PATH
8520 IFS=$as_save_IFS
8521 test -z "$as_dir" && as_dir=.
8522 for ac_exec_ext in '' $ac_executable_extensions; do
8523 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8524 ac_cv_path_MD5SUM="$as_dir/$ac_word$ac_exec_ext"
8525 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8526 break 2
8528 done
8529 done
8530 IFS=$as_save_IFS
8532 test -z "$ac_cv_path_MD5SUM" && ac_cv_path_MD5SUM="$TRUEPROG"
8534 esac
8536 MD5SUM=$ac_cv_path_MD5SUM
8537 if test -n "$MD5SUM"; then
8538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MD5SUM" >&5
8539 $as_echo "$MD5SUM" >&6; }
8540 else
8541 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8542 $as_echo "no" >&6; }
8547 md5sum=$MD5SUM
8550 if test -z "$DPKG"; then
8551 # Extract the first word of "dpkg", so it can be a program name with args.
8552 set dummy dpkg; ac_word=$2
8553 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8554 $as_echo_n "checking for $ac_word... " >&6; }
8555 if ${ac_cv_path_DPKG+:} false; then :
8556 $as_echo_n "(cached) " >&6
8557 else
8558 case $DPKG in
8559 [\\/]* | ?:[\\/]*)
8560 ac_cv_path_DPKG="$DPKG" # Let the user override the test with a path.
8563 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8564 for as_dir in $PATH
8566 IFS=$as_save_IFS
8567 test -z "$as_dir" && as_dir=.
8568 for ac_exec_ext in '' $ac_executable_extensions; do
8569 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8570 ac_cv_path_DPKG="$as_dir/$ac_word$ac_exec_ext"
8571 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8572 break 2
8574 done
8575 done
8576 IFS=$as_save_IFS
8579 esac
8581 DPKG=$ac_cv_path_DPKG
8582 if test -n "$DPKG"; then
8583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DPKG" >&5
8584 $as_echo "$DPKG" >&6; }
8585 else
8586 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8587 $as_echo "no" >&6; }
8592 dpkg=$DKPG
8595 if test -z "$MAKEPKG"; then
8596 # Extract the first word of "makepkg", so it can be a program name with args.
8597 set dummy makepkg; ac_word=$2
8598 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8599 $as_echo_n "checking for $ac_word... " >&6; }
8600 if ${ac_cv_path_MAKEPKG+:} false; then :
8601 $as_echo_n "(cached) " >&6
8602 else
8603 case $MAKEPKG in
8604 [\\/]* | ?:[\\/]*)
8605 ac_cv_path_MAKEPKG="$MAKEPKG" # Let the user override the test with a path.
8608 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8609 for as_dir in $PATH
8611 IFS=$as_save_IFS
8612 test -z "$as_dir" && as_dir=.
8613 for ac_exec_ext in '' $ac_executable_extensions; do
8614 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8615 ac_cv_path_MAKEPKG="$as_dir/$ac_word$ac_exec_ext"
8616 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8617 break 2
8619 done
8620 done
8621 IFS=$as_save_IFS
8624 esac
8626 MAKEPKG=$ac_cv_path_MAKEPKG
8627 if test -n "$MAKEPKG"; then
8628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEPKG" >&5
8629 $as_echo "$MAKEPKG" >&6; }
8630 else
8631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8632 $as_echo "no" >&6; }
8637 makepkg=$MAKEPKG
8640 test -z "$PUBLICAN" && # Extract the first word of "publican", so it can be a program name with args.
8641 set dummy publican; ac_word=$2
8642 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8643 $as_echo_n "checking for $ac_word... " >&6; }
8644 if ${ac_cv_path_PUBLICAN+:} false; then :
8645 $as_echo_n "(cached) " >&6
8646 else
8647 case $PUBLICAN in
8648 [\\/]* | ?:[\\/]*)
8649 ac_cv_path_PUBLICAN="$PUBLICAN" # Let the user override the test with a path.
8652 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8653 for as_dir in $PATH
8655 IFS=$as_save_IFS
8656 test -z "$as_dir" && as_dir=.
8657 for ac_exec_ext in '' $ac_executable_extensions; do
8658 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8659 ac_cv_path_PUBLICAN="$as_dir/$ac_word$ac_exec_ext"
8660 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8661 break 2
8663 done
8664 done
8665 IFS=$as_save_IFS
8668 esac
8670 PUBLICAN=$ac_cv_path_PUBLICAN
8671 if test -n "$PUBLICAN"; then
8672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PUBLICAN" >&5
8673 $as_echo "$PUBLICAN" >&6; }
8674 else
8675 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8676 $as_echo "no" >&6; }
8680 publican=$PUBLICAN
8682 test -z "$DBLATEX" && # Extract the first word of "dblatex", so it can be a program name with args.
8683 set dummy dblatex; ac_word=$2
8684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8685 $as_echo_n "checking for $ac_word... " >&6; }
8686 if ${ac_cv_path_DBLATEX+:} false; then :
8687 $as_echo_n "(cached) " >&6
8688 else
8689 case $DBLATEX in
8690 [\\/]* | ?:[\\/]*)
8691 ac_cv_path_DBLATEX="$DBLATEX" # Let the user override the test with a path.
8694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8695 for as_dir in $PATH
8697 IFS=$as_save_IFS
8698 test -z "$as_dir" && as_dir=.
8699 for ac_exec_ext in '' $ac_executable_extensions; do
8700 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8701 ac_cv_path_DBLATEX="$as_dir/$ac_word$ac_exec_ext"
8702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8703 break 2
8705 done
8706 done
8707 IFS=$as_save_IFS
8710 esac
8712 DBLATEX=$ac_cv_path_DBLATEX
8713 if test -n "$DBLATEX"; then
8714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBLATEX" >&5
8715 $as_echo "$DBLATEX" >&6; }
8716 else
8717 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8718 $as_echo "no" >&6; }
8722 dblatex=$DBLATEX
8724 test -z "$XMLTO" && # Extract the first word of "xmlto", so it can be a program name with args.
8725 set dummy xmlto; ac_word=$2
8726 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8727 $as_echo_n "checking for $ac_word... " >&6; }
8728 if ${ac_cv_path_XMLTO+:} false; then :
8729 $as_echo_n "(cached) " >&6
8730 else
8731 case $XMLTO in
8732 [\\/]* | ?:[\\/]*)
8733 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
8736 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8737 for as_dir in $PATH
8739 IFS=$as_save_IFS
8740 test -z "$as_dir" && as_dir=.
8741 for ac_exec_ext in '' $ac_executable_extensions; do
8742 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8743 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
8744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8745 break 2
8747 done
8748 done
8749 IFS=$as_save_IFS
8752 esac
8754 XMLTO=$ac_cv_path_XMLTO
8755 if test -n "$XMLTO"; then
8756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
8757 $as_echo "$XMLTO" >&6; }
8758 else
8759 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8760 $as_echo "no" >&6; }
8764 xmlto=$XMLTO
8767 book_toolchain=""
8768 if test "$do_books" = "check" -o "$do_books" = "yes"
8769 then
8770 if test "$BOOK_TOOLCHAIN" != ""
8771 then
8772 book_toolchain=$BOOK_TOOLCHAIN
8773 elif test "$DBLATEX" != ""
8774 then
8775 book_toolchain=dblatex
8776 elif test "$PUBLICAN" != ""
8777 then
8778 book_toolchain=publican
8779 elif test "$XMLTO" != ""
8780 then
8781 book_toolchain=xmlto
8782 elif test "$do_books" = "yes"
8783 then
8784 as_fn_error $? "cannot enable books build - no toolchain found" "$LINENO" 5
8789 book_brand="common"
8790 if test "$do_books_brand" != ""
8791 then
8792 book_brand=$do_books_brand
8796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8797 $as_echo_n "checking whether ln -s works... " >&6; }
8798 LN_S=$as_ln_s
8799 if test "$LN_S" = "ln -s"; then
8800 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8801 $as_echo "yes" >&6; }
8802 else
8803 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8804 $as_echo "no, using $LN_S" >&6; }
8807 if test $target_os = mingw; then
8808 as_ln_s=/bin/true
8811 if test -d /proc
8812 then
8813 test -f /proc/stat || mount /proc >/dev/null 2>&1
8816 if test -n "$PROCPS"
8817 then
8818 pcp_ps_prog="$PROCPS"
8819 else
8820 pcp_ps_prog=ps
8824 if test $target_os = mingw
8825 then
8826 pcp_syslog_prog=pcp-eventlog
8827 else
8828 pcp_syslog_prog=logger
8832 grep=grep
8833 if test $target_os = solaris
8834 then
8835 test -f /usr/xpg4/bin/grep && grep=/usr/xpg4/bin/grep
8839 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc " >&5
8840 $as_echo_n "checking for /proc ... " >&6; }
8841 if test "$cross_compiling" = "yes"; then
8842 ans=$have_procfs
8843 echo "cross-compile -> \"$ans\"" >&5
8844 elif test -d /proc
8845 then
8846 have_procfs=true
8847 else
8848 have_procfs=false
8850 if $have_procfs
8851 then
8852 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8853 $as_echo "yes" >&6; }
8855 $as_echo "#define HAVE_PROCFS 1" >>confdefs.h
8857 else
8858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8859 $as_echo "no" >&6; }
8862 ac_header_dirent=no
8863 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8864 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8865 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
8866 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
8867 if eval \${$as_ac_Header+:} false; then :
8868 $as_echo_n "(cached) " >&6
8869 else
8870 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8871 /* end confdefs.h. */
8872 #include <sys/types.h>
8873 #include <$ac_hdr>
8876 main ()
8878 if ((DIR *) 0)
8879 return 0;
8881 return 0;
8883 _ACEOF
8884 if ac_fn_c_try_compile "$LINENO"; then :
8885 eval "$as_ac_Header=yes"
8886 else
8887 eval "$as_ac_Header=no"
8889 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8891 eval ac_res=\$$as_ac_Header
8892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8893 $as_echo "$ac_res" >&6; }
8894 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8895 cat >>confdefs.h <<_ACEOF
8896 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8897 _ACEOF
8899 ac_header_dirent=$ac_hdr; break
8902 done
8903 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8904 if test $ac_header_dirent = dirent.h; then
8905 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
8906 $as_echo_n "checking for library containing opendir... " >&6; }
8907 if ${ac_cv_search_opendir+:} false; then :
8908 $as_echo_n "(cached) " >&6
8909 else
8910 ac_func_search_save_LIBS=$LIBS
8911 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8912 /* end confdefs.h. */
8914 /* Override any GCC internal prototype to avoid an error.
8915 Use char because int might match the return type of a GCC
8916 builtin and then its argument prototype would still apply. */
8917 #ifdef __cplusplus
8918 extern "C"
8919 #endif
8920 char opendir ();
8922 main ()
8924 return opendir ();
8926 return 0;
8928 _ACEOF
8929 for ac_lib in '' dir; do
8930 if test -z "$ac_lib"; then
8931 ac_res="none required"
8932 else
8933 ac_res=-l$ac_lib
8934 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8936 if ac_fn_c_try_link "$LINENO"; then :
8937 ac_cv_search_opendir=$ac_res
8939 rm -f core conftest.err conftest.$ac_objext \
8940 conftest$ac_exeext
8941 if ${ac_cv_search_opendir+:} false; then :
8942 break
8944 done
8945 if ${ac_cv_search_opendir+:} false; then :
8947 else
8948 ac_cv_search_opendir=no
8950 rm conftest.$ac_ext
8951 LIBS=$ac_func_search_save_LIBS
8953 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8954 $as_echo "$ac_cv_search_opendir" >&6; }
8955 ac_res=$ac_cv_search_opendir
8956 if test "$ac_res" != no; then :
8957 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8961 else
8962 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
8963 $as_echo_n "checking for library containing opendir... " >&6; }
8964 if ${ac_cv_search_opendir+:} false; then :
8965 $as_echo_n "(cached) " >&6
8966 else
8967 ac_func_search_save_LIBS=$LIBS
8968 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8969 /* end confdefs.h. */
8971 /* Override any GCC internal prototype to avoid an error.
8972 Use char because int might match the return type of a GCC
8973 builtin and then its argument prototype would still apply. */
8974 #ifdef __cplusplus
8975 extern "C"
8976 #endif
8977 char opendir ();
8979 main ()
8981 return opendir ();
8983 return 0;
8985 _ACEOF
8986 for ac_lib in '' x; do
8987 if test -z "$ac_lib"; then
8988 ac_res="none required"
8989 else
8990 ac_res=-l$ac_lib
8991 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8993 if ac_fn_c_try_link "$LINENO"; then :
8994 ac_cv_search_opendir=$ac_res
8996 rm -f core conftest.err conftest.$ac_objext \
8997 conftest$ac_exeext
8998 if ${ac_cv_search_opendir+:} false; then :
8999 break
9001 done
9002 if ${ac_cv_search_opendir+:} false; then :
9004 else
9005 ac_cv_search_opendir=no
9007 rm conftest.$ac_ext
9008 LIBS=$ac_func_search_save_LIBS
9010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
9011 $as_echo "$ac_cv_search_opendir" >&6; }
9012 ac_res=$ac_cv_search_opendir
9013 if test "$ac_res" != no; then :
9014 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9020 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9021 $as_echo_n "checking for ANSI C header files... " >&6; }
9022 if ${ac_cv_header_stdc+:} false; then :
9023 $as_echo_n "(cached) " >&6
9024 else
9025 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9026 /* end confdefs.h. */
9027 #include <stdlib.h>
9028 #include <stdarg.h>
9029 #include <string.h>
9030 #include <float.h>
9033 main ()
9037 return 0;
9039 _ACEOF
9040 if ac_fn_c_try_compile "$LINENO"; then :
9041 ac_cv_header_stdc=yes
9042 else
9043 ac_cv_header_stdc=no
9045 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9047 if test $ac_cv_header_stdc = yes; then
9048 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9050 /* end confdefs.h. */
9051 #include <string.h>
9053 _ACEOF
9054 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9055 $EGREP "memchr" >/dev/null 2>&1; then :
9057 else
9058 ac_cv_header_stdc=no
9060 rm -f conftest*
9064 if test $ac_cv_header_stdc = yes; then
9065 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9066 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9067 /* end confdefs.h. */
9068 #include <stdlib.h>
9070 _ACEOF
9071 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9072 $EGREP "free" >/dev/null 2>&1; then :
9074 else
9075 ac_cv_header_stdc=no
9077 rm -f conftest*
9081 if test $ac_cv_header_stdc = yes; then
9082 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9083 if test "$cross_compiling" = yes; then :
9085 else
9086 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9087 /* end confdefs.h. */
9088 #include <ctype.h>
9089 #include <stdlib.h>
9090 #if ((' ' & 0x0FF) == 0x020)
9091 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9092 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9093 #else
9094 # define ISLOWER(c) \
9095 (('a' <= (c) && (c) <= 'i') \
9096 || ('j' <= (c) && (c) <= 'r') \
9097 || ('s' <= (c) && (c) <= 'z'))
9098 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9099 #endif
9101 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9103 main ()
9105 int i;
9106 for (i = 0; i < 256; i++)
9107 if (XOR (islower (i), ISLOWER (i))
9108 || toupper (i) != TOUPPER (i))
9109 return 2;
9110 return 0;
9112 _ACEOF
9113 if ac_fn_c_try_run "$LINENO"; then :
9115 else
9116 ac_cv_header_stdc=no
9118 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9119 conftest.$ac_objext conftest.beam conftest.$ac_ext
9124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9125 $as_echo "$ac_cv_header_stdc" >&6; }
9126 if test $ac_cv_header_stdc = yes; then
9128 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9132 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
9133 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
9134 if ${ac_cv_header_sys_wait_h+:} false; then :
9135 $as_echo_n "(cached) " >&6
9136 else
9137 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9138 /* end confdefs.h. */
9139 #include <sys/types.h>
9140 #include <sys/wait.h>
9141 #ifndef WEXITSTATUS
9142 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
9143 #endif
9144 #ifndef WIFEXITED
9145 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9146 #endif
9149 main ()
9151 int s;
9152 wait (&s);
9153 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9155 return 0;
9157 _ACEOF
9158 if ac_fn_c_try_compile "$LINENO"; then :
9159 ac_cv_header_sys_wait_h=yes
9160 else
9161 ac_cv_header_sys_wait_h=no
9163 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9165 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
9166 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
9167 if test $ac_cv_header_sys_wait_h = yes; then
9169 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
9173 for ac_header in fcntl.h limits.h malloc.h strings.h syslog.h
9174 do :
9175 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9176 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9177 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9178 cat >>confdefs.h <<_ACEOF
9179 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9180 _ACEOF
9184 done
9186 for ac_header in unistd.h stddef.h stdlib.h sched.h dlfcn.h dl.h
9187 do :
9188 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9189 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9190 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9191 cat >>confdefs.h <<_ACEOF
9192 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9193 _ACEOF
9197 done
9199 for ac_header in sys/time.h sys/times.h
9200 do :
9201 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9202 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9203 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9204 cat >>confdefs.h <<_ACEOF
9205 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9206 _ACEOF
9210 done
9212 for ac_header in sys/resource.h sys/prctl.h
9213 do :
9214 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9215 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9216 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9217 cat >>confdefs.h <<_ACEOF
9218 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9219 _ACEOF
9223 done
9225 for ac_header in sys/sysinfo.h sys/systeminfo.h
9226 do :
9227 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9228 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9229 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9230 cat >>confdefs.h <<_ACEOF
9231 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9232 _ACEOF
9236 done
9238 for ac_header in endian.h standards.h sys/byteorder.h
9239 do :
9240 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9241 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9242 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9243 cat >>confdefs.h <<_ACEOF
9244 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9245 _ACEOF
9249 done
9251 for ac_header in libgen.h sys/param.h sys/mman.h sys/un.h
9252 do :
9253 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9254 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9255 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9256 cat >>confdefs.h <<_ACEOF
9257 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9258 _ACEOF
9262 done
9264 for ac_header in values.h stdint.h ieeefp.h math.h
9265 do :
9266 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9267 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9268 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9269 cat >>confdefs.h <<_ACEOF
9270 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9271 _ACEOF
9275 done
9277 for ac_header in pwd.h grp.h regex.h sys/wait.h
9278 do :
9279 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9280 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9281 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9282 cat >>confdefs.h <<_ACEOF
9283 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9284 _ACEOF
9288 done
9290 for ac_header in termio.h termios.h sys/termios.h
9291 do :
9292 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9293 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9294 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9295 cat >>confdefs.h <<_ACEOF
9296 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9297 _ACEOF
9301 done
9303 for ac_header in sys/ioctl.h sys/select.h sys/socket.h
9304 do :
9305 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9306 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9307 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9308 cat >>confdefs.h <<_ACEOF
9309 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9310 _ACEOF
9314 done
9316 for ac_header in netdb.h
9317 do :
9318 ac_fn_c_check_header_mongrel "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default"
9319 if test "x$ac_cv_header_netdb_h" = xyes; then :
9320 cat >>confdefs.h <<_ACEOF
9321 #define HAVE_NETDB_H 1
9322 _ACEOF
9326 done
9328 if test $target_os = darwin -o $target_os = openbsd
9329 then
9330 for ac_header in net/if.h
9331 do :
9332 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "#include <sys/types.h>
9333 #include <sys/socket.h>
9335 if test "x$ac_cv_header_net_if_h" = xyes; then :
9336 cat >>confdefs.h <<_ACEOF
9337 #define HAVE_NET_IF_H 1
9338 _ACEOF
9342 done
9344 else
9345 for ac_header in net/if.h
9346 do :
9347 ac_fn_c_check_header_mongrel "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default"
9348 if test "x$ac_cv_header_net_if_h" = xyes; then :
9349 cat >>confdefs.h <<_ACEOF
9350 #define HAVE_NET_IF_H 1
9351 _ACEOF
9355 done
9358 for ac_header in netinet/in.h netinet/tcp.h arpa/inet.h
9359 do :
9360 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9361 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9362 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9363 cat >>confdefs.h <<_ACEOF
9364 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9365 _ACEOF
9369 done
9371 for ac_header in windows.h winsock2.h ws2tcpip.h
9372 do :
9373 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9374 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9375 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9376 cat >>confdefs.h <<_ACEOF
9377 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9378 _ACEOF
9382 done
9384 for ac_header in execinfo.h bits/wordsize.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 iptypes.h
9398 do :
9399 ac_fn_c_check_header_compile "$LINENO" "iptypes.h" "ac_cv_header_iptypes_h" "#include <windows.h>
9401 if test "x$ac_cv_header_iptypes_h" = xyes; then :
9402 cat >>confdefs.h <<_ACEOF
9403 #define HAVE_IPTYPES_H 1
9404 _ACEOF
9408 done
9410 for ac_header in iphlpapi.h
9411 do :
9412 ac_fn_c_check_header_compile "$LINENO" "iphlpapi.h" "ac_cv_header_iphlpapi_h" "#include <winsock2.h>
9414 if test "x$ac_cv_header_iphlpapi_h" = xyes; then :
9415 cat >>confdefs.h <<_ACEOF
9416 #define HAVE_IPHLPAPI_H 1
9417 _ACEOF
9421 done
9423 for ac_header in fts.h libzfs.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 sys/statvfs.h sys/statfs.h sys/mount.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
9450 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/endian.h " >&5
9451 $as_echo_n "checking for sys/endian.h ... " >&6; }
9452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9453 /* end confdefs.h. */
9455 #include <sys/endian.h>
9458 main ()
9463 return 0;
9465 _ACEOF
9466 if ac_fn_c_try_compile "$LINENO"; then :
9468 $as_echo "#define HAVE_SYS_ENDIAN_H 1" >>confdefs.h
9469 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9470 $as_echo "yes" >&6; }
9471 else
9472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9473 $as_echo "no" >&6; }
9475 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9477 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for machine/endian.h " >&5
9478 $as_echo_n "checking for machine/endian.h ... " >&6; }
9479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9480 /* end confdefs.h. */
9482 #include <machine/endian.h>
9485 main ()
9490 return 0;
9492 _ACEOF
9493 if ac_fn_c_try_compile "$LINENO"; then :
9495 $as_echo "#define HAVE_MACHINE_ENDIAN_H 1" >>confdefs.h
9496 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9497 $as_echo "yes" >&6; }
9498 else
9499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9500 $as_echo "no" >&6; }
9502 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/endian.h (IRIX variant) " >&5
9505 $as_echo_n "checking for sys/endian.h (IRIX variant) ... " >&6; }
9506 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9507 /* end confdefs.h. */
9509 #include <standards.h>
9510 #include <sys/endian.h>
9513 main ()
9518 return 0;
9520 _ACEOF
9521 if ac_fn_c_try_compile "$LINENO"; then :
9523 $as_echo "#define HAVE_SYS_ENDIAN_H 1" >>confdefs.h
9524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9525 $as_echo "yes" >&6; }
9526 else
9527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9528 $as_echo "no" >&6; }
9530 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9532 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
9533 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
9534 if ${ac_cv_c_const+:} false; then :
9535 $as_echo_n "(cached) " >&6
9536 else
9537 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9538 /* end confdefs.h. */
9541 main ()
9544 #ifndef __cplusplus
9545 /* Ultrix mips cc rejects this sort of thing. */
9546 typedef int charset[2];
9547 const charset cs = { 0, 0 };
9548 /* SunOS 4.1.1 cc rejects this. */
9549 char const *const *pcpcc;
9550 char **ppc;
9551 /* NEC SVR4.0.2 mips cc rejects this. */
9552 struct point {int x, y;};
9553 static struct point const zero = {0,0};
9554 /* AIX XL C 1.02.0.0 rejects this.
9555 It does not let you subtract one const X* pointer from another in
9556 an arm of an if-expression whose if-part is not a constant
9557 expression */
9558 const char *g = "string";
9559 pcpcc = &g + (g ? g-g : 0);
9560 /* HPUX 7.0 cc rejects these. */
9561 ++pcpcc;
9562 ppc = (char**) pcpcc;
9563 pcpcc = (char const *const *) ppc;
9564 { /* SCO 3.2v4 cc rejects this sort of thing. */
9565 char tx;
9566 char *t = &tx;
9567 char const *s = 0 ? (char *) 0 : (char const *) 0;
9569 *t++ = 0;
9570 if (s) return 0;
9572 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9573 int x[] = {25, 17};
9574 const int *foo = &x[0];
9575 ++foo;
9577 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9578 typedef const int *iptr;
9579 iptr p = 0;
9580 ++p;
9582 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
9583 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9584 struct s { int j; const int *ap[3]; } bx;
9585 struct s *b = &bx; b->j = 5;
9587 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9588 const int foo = 10;
9589 if (!foo) return 0;
9591 return !cs[0] && !zero.x;
9592 #endif
9595 return 0;
9597 _ACEOF
9598 if ac_fn_c_try_compile "$LINENO"; then :
9599 ac_cv_c_const=yes
9600 else
9601 ac_cv_c_const=no
9603 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
9606 $as_echo "$ac_cv_c_const" >&6; }
9607 if test $ac_cv_c_const = no; then
9609 $as_echo "#define const /**/" >>confdefs.h
9613 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
9614 if test "x$ac_cv_type_off_t" = xyes; then :
9616 else
9618 cat >>confdefs.h <<_ACEOF
9619 #define off_t long int
9620 _ACEOF
9624 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9625 if test "x$ac_cv_type_pid_t" = xyes; then :
9627 else
9629 cat >>confdefs.h <<_ACEOF
9630 #define pid_t int
9631 _ACEOF
9635 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
9636 if test "x$ac_cv_type_size_t" = xyes; then :
9638 else
9640 cat >>confdefs.h <<_ACEOF
9641 #define size_t unsigned int
9642 _ACEOF
9646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
9647 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
9648 if ${ac_cv_header_time+:} false; then :
9649 $as_echo_n "(cached) " >&6
9650 else
9651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9652 /* end confdefs.h. */
9653 #include <sys/types.h>
9654 #include <sys/time.h>
9655 #include <time.h>
9658 main ()
9660 if ((struct tm *) 0)
9661 return 0;
9663 return 0;
9665 _ACEOF
9666 if ac_fn_c_try_compile "$LINENO"; then :
9667 ac_cv_header_time=yes
9668 else
9669 ac_cv_header_time=no
9671 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
9674 $as_echo "$ac_cv_header_time" >&6; }
9675 if test $ac_cv_header_time = yes; then
9677 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
9681 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
9682 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
9683 if ${ac_cv_struct_tm+:} false; then :
9684 $as_echo_n "(cached) " >&6
9685 else
9686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9687 /* end confdefs.h. */
9688 #include <sys/types.h>
9689 #include <time.h>
9692 main ()
9694 struct tm tm;
9695 int *p = &tm.tm_sec;
9696 return !p;
9698 return 0;
9700 _ACEOF
9701 if ac_fn_c_try_compile "$LINENO"; then :
9702 ac_cv_struct_tm=time.h
9703 else
9704 ac_cv_struct_tm=sys/time.h
9706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
9709 $as_echo "$ac_cv_struct_tm" >&6; }
9710 if test $ac_cv_struct_tm = sys/time.h; then
9712 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
9716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
9717 $as_echo_n "checking for inline... " >&6; }
9718 if ${ac_cv_c_inline+:} false; then :
9719 $as_echo_n "(cached) " >&6
9720 else
9721 ac_cv_c_inline=no
9722 for ac_kw in inline __inline__ __inline; do
9723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9724 /* end confdefs.h. */
9725 #ifndef __cplusplus
9726 typedef int foo_t;
9727 static $ac_kw foo_t static_foo () {return 0; }
9728 $ac_kw foo_t foo () {return 0; }
9729 #endif
9731 _ACEOF
9732 if ac_fn_c_try_compile "$LINENO"; then :
9733 ac_cv_c_inline=$ac_kw
9735 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9736 test "$ac_cv_c_inline" != no && break
9737 done
9740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
9741 $as_echo "$ac_cv_c_inline" >&6; }
9743 case $ac_cv_c_inline in
9744 inline | yes) ;;
9746 case $ac_cv_c_inline in
9747 no) ac_val=;;
9748 *) ac_val=$ac_cv_c_inline;;
9749 esac
9750 cat >>confdefs.h <<_ACEOF
9751 #ifndef __cplusplus
9752 #define inline $ac_val
9753 #endif
9754 _ACEOF
9756 esac
9759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regcomp in -lregex" >&5
9760 $as_echo_n "checking for regcomp in -lregex... " >&6; }
9761 if ${ac_cv_lib_regex_regcomp+:} false; then :
9762 $as_echo_n "(cached) " >&6
9763 else
9764 ac_check_lib_save_LIBS=$LIBS
9765 LIBS="-lregex $LIBS"
9766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9767 /* end confdefs.h. */
9769 /* Override any GCC internal prototype to avoid an error.
9770 Use char because int might match the return type of a GCC
9771 builtin and then its argument prototype would still apply. */
9772 #ifdef __cplusplus
9773 extern "C"
9774 #endif
9775 char regcomp ();
9777 main ()
9779 return regcomp ();
9781 return 0;
9783 _ACEOF
9784 if ac_fn_c_try_link "$LINENO"; then :
9785 ac_cv_lib_regex_regcomp=yes
9786 else
9787 ac_cv_lib_regex_regcomp=no
9789 rm -f core conftest.err conftest.$ac_objext \
9790 conftest$ac_exeext conftest.$ac_ext
9791 LIBS=$ac_check_lib_save_LIBS
9793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_regex_regcomp" >&5
9794 $as_echo "$ac_cv_lib_regex_regcomp" >&6; }
9795 if test "x$ac_cv_lib_regex_regcomp" = xyes; then :
9796 cat >>confdefs.h <<_ACEOF
9797 #define HAVE_LIBREGEX 1
9798 _ACEOF
9800 LIBS="-lregex $LIBS"
9804 lib_for_regex=""
9805 if test $ac_cv_lib_regex_regcomp = yes
9806 then
9807 lib_for_regex="-lregex"
9812 pkg_failed=no
9813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ncurses" >&5
9814 $as_echo_n "checking for ncurses... " >&6; }
9816 if test -n "$ncurses_CFLAGS"; then
9817 pkg_cv_ncurses_CFLAGS="$ncurses_CFLAGS"
9818 elif test -n "$PKG_CONFIG"; then
9819 if test -n "$PKG_CONFIG" && \
9820 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncurses\""; } >&5
9821 ($PKG_CONFIG --exists --print-errors "ncurses") 2>&5
9822 ac_status=$?
9823 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9824 test $ac_status = 0; }; then
9825 pkg_cv_ncurses_CFLAGS=`$PKG_CONFIG --cflags "ncurses" 2>/dev/null`
9826 test "x$?" != "x0" && pkg_failed=yes
9827 else
9828 pkg_failed=yes
9830 else
9831 pkg_failed=untried
9833 if test -n "$ncurses_LIBS"; then
9834 pkg_cv_ncurses_LIBS="$ncurses_LIBS"
9835 elif test -n "$PKG_CONFIG"; then
9836 if test -n "$PKG_CONFIG" && \
9837 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncurses\""; } >&5
9838 ($PKG_CONFIG --exists --print-errors "ncurses") 2>&5
9839 ac_status=$?
9840 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9841 test $ac_status = 0; }; then
9842 pkg_cv_ncurses_LIBS=`$PKG_CONFIG --libs "ncurses" 2>/dev/null`
9843 test "x$?" != "x0" && pkg_failed=yes
9844 else
9845 pkg_failed=yes
9847 else
9848 pkg_failed=untried
9853 if test $pkg_failed = yes; then
9854 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9855 $as_echo "no" >&6; }
9857 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9858 _pkg_short_errors_supported=yes
9859 else
9860 _pkg_short_errors_supported=no
9862 if test $_pkg_short_errors_supported = yes; then
9863 ncurses_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ncurses" 2>&1`
9864 else
9865 ncurses_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ncurses" 2>&1`
9867 # Put the nasty error message in config.log where it belongs
9868 echo "$ncurses_PKG_ERRORS" >&5
9870 have_ncurses=false
9871 elif test $pkg_failed = untried; then
9872 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9873 $as_echo "no" >&6; }
9874 have_ncurses=false
9875 else
9876 ncurses_CFLAGS=$pkg_cv_ncurses_CFLAGS
9877 ncurses_LIBS=$pkg_cv_ncurses_LIBS
9878 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9879 $as_echo "yes" >&6; }
9880 have_ncurses=true
9882 HAVE_NCURSES=$have_ncurses
9886 pkg_failed=no
9887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD" >&5
9888 $as_echo_n "checking for SYSTEMD... " >&6; }
9890 if test -n "$SYSTEMD_CFLAGS"; then
9891 pkg_cv_SYSTEMD_CFLAGS="$SYSTEMD_CFLAGS"
9892 elif test -n "$PKG_CONFIG"; then
9893 if test -n "$PKG_CONFIG" && \
9894 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-journal\""; } >&5
9895 ($PKG_CONFIG --exists --print-errors "libsystemd-journal") 2>&5
9896 ac_status=$?
9897 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9898 test $ac_status = 0; }; then
9899 pkg_cv_SYSTEMD_CFLAGS=`$PKG_CONFIG --cflags "libsystemd-journal" 2>/dev/null`
9900 test "x$?" != "x0" && pkg_failed=yes
9901 else
9902 pkg_failed=yes
9904 else
9905 pkg_failed=untried
9907 if test -n "$SYSTEMD_LIBS"; then
9908 pkg_cv_SYSTEMD_LIBS="$SYSTEMD_LIBS"
9909 elif test -n "$PKG_CONFIG"; then
9910 if test -n "$PKG_CONFIG" && \
9911 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-journal\""; } >&5
9912 ($PKG_CONFIG --exists --print-errors "libsystemd-journal") 2>&5
9913 ac_status=$?
9914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9915 test $ac_status = 0; }; then
9916 pkg_cv_SYSTEMD_LIBS=`$PKG_CONFIG --libs "libsystemd-journal" 2>/dev/null`
9917 test "x$?" != "x0" && pkg_failed=yes
9918 else
9919 pkg_failed=yes
9921 else
9922 pkg_failed=untried
9927 if test $pkg_failed = yes; then
9928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9929 $as_echo "no" >&6; }
9931 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9932 _pkg_short_errors_supported=yes
9933 else
9934 _pkg_short_errors_supported=no
9936 if test $_pkg_short_errors_supported = yes; then
9937 SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd-journal" 2>&1`
9938 else
9939 SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd-journal" 2>&1`
9941 # Put the nasty error message in config.log where it belongs
9942 echo "$SYSTEMD_PKG_ERRORS" >&5
9944 pmda_systemd=false
9945 elif test $pkg_failed = untried; then
9946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9947 $as_echo "no" >&6; }
9948 pmda_systemd=false
9949 else
9950 SYSTEMD_CFLAGS=$pkg_cv_SYSTEMD_CFLAGS
9951 SYSTEMD_LIBS=$pkg_cv_SYSTEMD_LIBS
9952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9953 $as_echo "yes" >&6; }
9954 pmda_systemd=true
9956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the systemd PMDA should be included" >&5
9957 $as_echo_n "checking if the systemd PMDA should be included... " >&6; }
9958 PMDA_SYSTEMD=$pmda_systemd
9960 if $pmda_systemd; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9961 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9962 $as_echo "no" >&6; }; fi
9964 pmda_infiniband=false
9965 if test "x$do_infiniband" != "xno"; then :
9967 for ac_header in infiniband/umad.h
9968 do :
9969 ac_fn_c_check_header_mongrel "$LINENO" "infiniband/umad.h" "ac_cv_header_infiniband_umad_h" "$ac_includes_default"
9970 if test "x$ac_cv_header_infiniband_umad_h" = xyes; then :
9971 cat >>confdefs.h <<_ACEOF
9972 #define HAVE_INFINIBAND_UMAD_H 1
9973 _ACEOF
9975 for ac_header in infiniband/mad.h
9976 do :
9977 ac_fn_c_check_header_mongrel "$LINENO" "infiniband/mad.h" "ac_cv_header_infiniband_mad_h" "$ac_includes_default"
9978 if test "x$ac_cv_header_infiniband_mad_h" = xyes; then :
9979 cat >>confdefs.h <<_ACEOF
9980 #define HAVE_INFINIBAND_MAD_H 1
9981 _ACEOF
9982 pmda_infiniband=true
9985 done
9990 done
9992 savedLIBS=$LIBS
9993 IB_LIBS=""
9994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for madrpc_init in -libmad" >&5
9995 $as_echo_n "checking for madrpc_init in -libmad... " >&6; }
9996 if ${ac_cv_lib_ibmad_madrpc_init+:} false; then :
9997 $as_echo_n "(cached) " >&6
9998 else
9999 ac_check_lib_save_LIBS=$LIBS
10000 LIBS="-libmad $LIBS"
10001 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10002 /* end confdefs.h. */
10004 /* Override any GCC internal prototype to avoid an error.
10005 Use char because int might match the return type of a GCC
10006 builtin and then its argument prototype would still apply. */
10007 #ifdef __cplusplus
10008 extern "C"
10009 #endif
10010 char madrpc_init ();
10012 main ()
10014 return madrpc_init ();
10016 return 0;
10018 _ACEOF
10019 if ac_fn_c_try_link "$LINENO"; then :
10020 ac_cv_lib_ibmad_madrpc_init=yes
10021 else
10022 ac_cv_lib_ibmad_madrpc_init=no
10024 rm -f core conftest.err conftest.$ac_objext \
10025 conftest$ac_exeext conftest.$ac_ext
10026 LIBS=$ac_check_lib_save_LIBS
10028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ibmad_madrpc_init" >&5
10029 $as_echo "$ac_cv_lib_ibmad_madrpc_init" >&6; }
10030 if test "x$ac_cv_lib_ibmad_madrpc_init" = xyes; then :
10031 cat >>confdefs.h <<_ACEOF
10032 #define HAVE_LIBIBMAD 1
10033 _ACEOF
10035 LIBS="-libmad $LIBS"
10039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umad_init in -libumad" >&5
10040 $as_echo_n "checking for umad_init in -libumad... " >&6; }
10041 if ${ac_cv_lib_ibumad_umad_init+:} false; then :
10042 $as_echo_n "(cached) " >&6
10043 else
10044 ac_check_lib_save_LIBS=$LIBS
10045 LIBS="-libumad $LIBS"
10046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10047 /* end confdefs.h. */
10049 /* Override any GCC internal prototype to avoid an error.
10050 Use char because int might match the return type of a GCC
10051 builtin and then its argument prototype would still apply. */
10052 #ifdef __cplusplus
10053 extern "C"
10054 #endif
10055 char umad_init ();
10057 main ()
10059 return umad_init ();
10061 return 0;
10063 _ACEOF
10064 if ac_fn_c_try_link "$LINENO"; then :
10065 ac_cv_lib_ibumad_umad_init=yes
10066 else
10067 ac_cv_lib_ibumad_umad_init=no
10069 rm -f core conftest.err conftest.$ac_objext \
10070 conftest$ac_exeext conftest.$ac_ext
10071 LIBS=$ac_check_lib_save_LIBS
10073 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ibumad_umad_init" >&5
10074 $as_echo "$ac_cv_lib_ibumad_umad_init" >&6; }
10075 if test "x$ac_cv_lib_ibumad_umad_init" = xyes; then :
10076 cat >>confdefs.h <<_ACEOF
10077 #define HAVE_LIBIBUMAD 1
10078 _ACEOF
10080 LIBS="-libumad $LIBS"
10084 if test $ac_cv_lib_ibmad_madrpc_init = yes -a $ac_cv_lib_ibumad_umad_init = yes
10085 then
10086 IB_LIBS="-libmad -libumad"
10087 LIBS="$IB_LIBS"
10088 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for port_performance_query_via" >&5
10089 $as_echo_n "checking for port_performance_query_via... " >&6; }
10090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10091 /* end confdefs.h. */
10093 /* Override any GCC internal prototype to avoid an error.
10094 Use char because int might match the return type of a GCC
10095 builtin and then its argument prototype would still apply. */
10096 #ifdef __cplusplus
10097 extern "C"
10098 #endif
10099 char port_performance_query_via ();
10101 main ()
10103 return port_performance_query_via ();
10105 return 0;
10107 _ACEOF
10108 if ac_fn_c_try_link "$LINENO"; then :
10110 $as_echo "#define HAVE_PORT_PERFORMANCE_QUERY_VIA 1" >>confdefs.h
10112 have_port_performance_query_via=true
10113 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10114 $as_echo "yes" >&6; }
10115 else
10116 have_port_performance_query_via=false
10117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10118 $as_echo "no" >&6; }
10120 rm -f core conftest.err conftest.$ac_objext \
10121 conftest$ac_exeext conftest.$ac_ext
10122 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pma_query_via" >&5
10123 $as_echo_n "checking for pma_query_via... " >&6; }
10124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10125 /* end confdefs.h. */
10127 /* Override any GCC internal prototype to avoid an error.
10128 Use char because int might match the return type of a GCC
10129 builtin and then its argument prototype would still apply. */
10130 #ifdef __cplusplus
10131 extern "C"
10132 #endif
10133 char pma_query_via ();
10135 main ()
10137 return pma_query_via ();
10139 return 0;
10141 _ACEOF
10142 if ac_fn_c_try_link "$LINENO"; then :
10144 $as_echo "#define HAVE_PMA_QUERY_VIA 1" >>confdefs.h
10146 have_pma_query_via=true
10147 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10148 $as_echo "yes" >&6; }
10149 else
10150 have_pma_query_via=false
10151 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10152 $as_echo "no" >&6; }
10154 rm -f core conftest.err conftest.$ac_objext \
10155 conftest$ac_exeext conftest.$ac_ext
10156 LIBS=$savedLIBS
10157 if test $have_pma_query_via -o $have_port_performance_query_via
10158 then
10160 else
10161 pmda_infiniband=false
10163 else
10164 pmda_infiniband=false
10166 LIBS=$savedLIBS
10170 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the infiniband PMDA should be included" >&5
10171 $as_echo_n "checking if the infiniband PMDA should be included... " >&6; }
10172 PMDA_INFINIBAND=$pmda_infiniband
10174 if $pmda_infiniband; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10175 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10176 $as_echo "no" >&6; }; fi
10178 pmda_papi=false
10179 if test "x$do_papi" != "xno"; then :
10181 enable_papi=true
10183 saved_LDFLAGS="$LDFLAGS"
10184 saved_CFLAGS="$CFLAGS"
10185 savedLIBS=$LIBS
10187 CFLAGS="$papi_CFLAGS"
10188 LDFLAGS="$papi_LIBS"
10190 case "$do_papi" in
10191 yes|no|check)
10193 */*)
10194 PAPI_ROOTDIR=$do_papi;
10195 CFLAGS="-I$PAPI_ROOTDIR/include"
10196 LDFLAGS="-L$PAPI_ROOTDIR/lib"
10200 pkg_failed=no
10201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for papi" >&5
10202 $as_echo_n "checking for papi... " >&6; }
10204 if test -n "$papi_CFLAGS"; then
10205 pkg_cv_papi_CFLAGS="$papi_CFLAGS"
10206 elif test -n "$PKG_CONFIG"; then
10207 if test -n "$PKG_CONFIG" && \
10208 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$do_papi\""; } >&5
10209 ($PKG_CONFIG --exists --print-errors "$do_papi") 2>&5
10210 ac_status=$?
10211 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10212 test $ac_status = 0; }; then
10213 pkg_cv_papi_CFLAGS=`$PKG_CONFIG --cflags "$do_papi" 2>/dev/null`
10214 test "x$?" != "x0" && pkg_failed=yes
10215 else
10216 pkg_failed=yes
10218 else
10219 pkg_failed=untried
10221 if test -n "$papi_LIBS"; then
10222 pkg_cv_papi_LIBS="$papi_LIBS"
10223 elif test -n "$PKG_CONFIG"; then
10224 if test -n "$PKG_CONFIG" && \
10225 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$do_papi\""; } >&5
10226 ($PKG_CONFIG --exists --print-errors "$do_papi") 2>&5
10227 ac_status=$?
10228 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10229 test $ac_status = 0; }; then
10230 pkg_cv_papi_LIBS=`$PKG_CONFIG --libs "$do_papi" 2>/dev/null`
10231 test "x$?" != "x0" && pkg_failed=yes
10232 else
10233 pkg_failed=yes
10235 else
10236 pkg_failed=untried
10241 if test $pkg_failed = yes; then
10242 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10243 $as_echo "no" >&6; }
10245 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10246 _pkg_short_errors_supported=yes
10247 else
10248 _pkg_short_errors_supported=no
10250 if test $_pkg_short_errors_supported = yes; then
10251 papi_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$do_papi" 2>&1`
10252 else
10253 papi_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$do_papi" 2>&1`
10255 # Put the nasty error message in config.log where it belongs
10256 echo "$papi_PKG_ERRORS" >&5
10258 as_fn_error $? "Package requirements ($do_papi) were not met:
10260 $papi_PKG_ERRORS
10262 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10263 installed software in a non-standard prefix.
10265 Alternatively, you may set the environment variables papi_CFLAGS
10266 and papi_LIBS to avoid the need to call pkg-config.
10267 See the pkg-config man page for more details." "$LINENO" 5
10268 elif test $pkg_failed = untried; then
10269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10270 $as_echo "no" >&6; }
10271 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10272 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10273 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
10274 is in your PATH or set the PKG_CONFIG environment variable to the full
10275 path to pkg-config.
10277 Alternatively, you may set the environment variables papi_CFLAGS
10278 and papi_LIBS to avoid the need to call pkg-config.
10279 See the pkg-config man page for more details.
10281 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10282 See \`config.log' for more details" "$LINENO" 5; }
10283 else
10284 papi_CFLAGS=$pkg_cv_papi_CFLAGS
10285 papi_LIBS=$pkg_cv_papi_LIBS
10286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10287 $as_echo "yes" >&6; }
10289 CFLAGS="$papi_CFLAGS"
10290 LDFLAGS="$papi_LIBS"
10293 esac
10295 # $papi_LIBS may include -lpapi harmlessly redudantly with AC_CHECK_LIB
10296 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PAPI_library_init in -lpapi" >&5
10297 $as_echo_n "checking for PAPI_library_init in -lpapi... " >&6; }
10298 if ${ac_cv_lib_papi_PAPI_library_init+:} false; then :
10299 $as_echo_n "(cached) " >&6
10300 else
10301 ac_check_lib_save_LIBS=$LIBS
10302 LIBS="-lpapi $LIBS"
10303 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10304 /* end confdefs.h. */
10306 /* Override any GCC internal prototype to avoid an error.
10307 Use char because int might match the return type of a GCC
10308 builtin and then its argument prototype would still apply. */
10309 #ifdef __cplusplus
10310 extern "C"
10311 #endif
10312 char PAPI_library_init ();
10314 main ()
10316 return PAPI_library_init ();
10318 return 0;
10320 _ACEOF
10321 if ac_fn_c_try_link "$LINENO"; then :
10322 ac_cv_lib_papi_PAPI_library_init=yes
10323 else
10324 ac_cv_lib_papi_PAPI_library_init=no
10326 rm -f core conftest.err conftest.$ac_objext \
10327 conftest$ac_exeext conftest.$ac_ext
10328 LIBS=$ac_check_lib_save_LIBS
10330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_papi_PAPI_library_init" >&5
10331 $as_echo "$ac_cv_lib_papi_PAPI_library_init" >&6; }
10332 if test "x$ac_cv_lib_papi_PAPI_library_init" = xyes; then :
10333 papi_libs="$LDFLAGS -lpapi"
10334 else
10335 enable_papi=false
10338 for ac_header in papi.h
10339 do :
10340 ac_fn_c_check_header_mongrel "$LINENO" "papi.h" "ac_cv_header_papi_h" "$ac_includes_default"
10341 if test "x$ac_cv_header_papi_h" = xyes; then :
10342 cat >>confdefs.h <<_ACEOF
10343 #define HAVE_PAPI_H 1
10344 _ACEOF
10345 papi_cflags="$CFLAGS"
10346 else
10347 enable_papi=false
10350 done
10352 if test "$do_papi" != "check" -a "$enable_papi" != "true"
10353 then
10354 as_fn_error $? "PAPI is not installed, cannot enable the PAPI PMDA" "$LINENO" 5
10355 else
10356 pmda_papi=$enable_papi
10358 LIBS=$savedLIBS
10359 CFLAGS="$saved_CFLAGS"
10360 LDFLAGS="$saved_LDFLAGS"
10361 PAPI_CFLAGS=$papi_cflags
10363 PAPI_LIBS=$papi_libs
10367 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the papi PMDA should be included" >&5
10368 $as_echo_n "checking if the papi PMDA should be included... " >&6; }
10369 PMDA_PAPI=$pmda_papi
10371 if $pmda_papi; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10372 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10373 $as_echo "no" >&6; }; fi
10375 if test "x$pmda_papi" = "xtrue"; then :
10377 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct PAPI_component_info_t has a disabled field" >&5
10378 $as_echo_n "checking whether struct PAPI_component_info_t has a disabled field... " >&6; }
10379 cat <<End-of-File >conftest.c
10380 #include <papi.h>
10381 int main() { PAPI_component_info_t *c; c->disabled = 0; }
10382 End-of-File
10383 (eval $ac_compile) 2>conftest.out
10384 cat conftest.out >&5
10385 if test -s conftest.out
10386 then
10387 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10388 $as_echo "no" >&6; }
10389 else
10391 $as_echo "#define HAVE_PAPI_DISABLED_COMP 1" >>confdefs.h
10393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10394 $as_echo "yes" >&6; }
10397 rm -f conftest.*
10401 pmda_perfevent=false
10402 if test "x$do_perfevent" != "xno" ; then :
10404 enable_perfevent=true
10406 savedLIBS=$LIBS
10407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pfm_get_os_event_encoding in -lpfm" >&5
10408 $as_echo_n "checking for pfm_get_os_event_encoding in -lpfm... " >&6; }
10409 if ${ac_cv_lib_pfm_pfm_get_os_event_encoding+:} false; then :
10410 $as_echo_n "(cached) " >&6
10411 else
10412 ac_check_lib_save_LIBS=$LIBS
10413 LIBS="-lpfm $LIBS"
10414 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10415 /* end confdefs.h. */
10417 /* Override any GCC internal prototype to avoid an error.
10418 Use char because int might match the return type of a GCC
10419 builtin and then its argument prototype would still apply. */
10420 #ifdef __cplusplus
10421 extern "C"
10422 #endif
10423 char pfm_get_os_event_encoding ();
10425 main ()
10427 return pfm_get_os_event_encoding ();
10429 return 0;
10431 _ACEOF
10432 if ac_fn_c_try_link "$LINENO"; then :
10433 ac_cv_lib_pfm_pfm_get_os_event_encoding=yes
10434 else
10435 ac_cv_lib_pfm_pfm_get_os_event_encoding=no
10437 rm -f core conftest.err conftest.$ac_objext \
10438 conftest$ac_exeext conftest.$ac_ext
10439 LIBS=$ac_check_lib_save_LIBS
10441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pfm_pfm_get_os_event_encoding" >&5
10442 $as_echo "$ac_cv_lib_pfm_pfm_get_os_event_encoding" >&6; }
10443 if test "x$ac_cv_lib_pfm_pfm_get_os_event_encoding" = xyes; then :
10444 pfm_libs="-lpfm"
10445 else
10446 enable_perfevent=false
10449 for ac_header in perfmon/pfmlib_perf_event.h
10450 do :
10451 ac_fn_c_check_header_mongrel "$LINENO" "perfmon/pfmlib_perf_event.h" "ac_cv_header_perfmon_pfmlib_perf_event_h" "$ac_includes_default"
10452 if test "x$ac_cv_header_perfmon_pfmlib_perf_event_h" = xyes; then :
10453 cat >>confdefs.h <<_ACEOF
10454 #define HAVE_PERFMON_PFMLIB_PERF_EVENT_H 1
10455 _ACEOF
10457 else
10458 enable_perfevent=false
10461 done
10463 if test "$do_perfevent" != "check" -a "$enable_papi" != "true"
10464 then
10465 as_fn_error $? "libpfm is not installed, cannot enable the perfevent PMDA" "$LINENO" 5
10466 else
10467 pmda_perfevent=$enable_perfevent
10469 LIBS=$savedLIBS
10470 PFM_LIBS=$pfm_libs
10474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the perfevent PMDA should be included" >&5
10475 $as_echo_n "checking if the perfevent PMDA should be included... " >&6; }
10476 PMDA_PERFEVENT=$pmda_perfevent
10478 if $pmda_perfevent; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10479 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10480 $as_echo "no" >&6; }; fi
10482 pmda_rpm=false
10483 savedLIBS=$LIBS
10484 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rpmlib > 4.4.2" >&5
10485 $as_echo_n "checking for rpmlib > 4.4.2... " >&6; }
10486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10487 /* end confdefs.h. */
10488 #include <rpm/header.h>
10490 main ()
10492 (void)HEADERGET_EXT;
10494 return 0;
10496 _ACEOF
10497 if ac_fn_c_try_compile "$LINENO"; then :
10498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10499 $as_echo "yes" >&6; }
10500 pmda_rpm=true
10501 else
10502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10503 $as_echo "no" >&6; }
10505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the rpm PMDA should be included" >&5
10507 $as_echo_n "checking if the rpm PMDA should be included... " >&6; }
10508 PMDA_RPM=$pmda_rpm
10510 if $pmda_rpm; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10511 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10512 $as_echo "no" >&6; }; fi
10513 LIBS=$savedLIBS
10515 pmda_postfix=false
10516 for ac_prog in qshape
10518 # Extract the first word of "$ac_prog", so it can be a program name with args.
10519 set dummy $ac_prog; ac_word=$2
10520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10521 $as_echo_n "checking for $ac_word... " >&6; }
10522 if ${ac_cv_prog_QSHAPE+:} false; then :
10523 $as_echo_n "(cached) " >&6
10524 else
10525 if test -n "$QSHAPE"; then
10526 ac_cv_prog_QSHAPE="$QSHAPE" # Let the user override the test.
10527 else
10528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10529 as_dummy="path=$PATH:/usr/sbin"
10530 for as_dir in $as_dummy
10532 IFS=$as_save_IFS
10533 test -z "$as_dir" && as_dir=.
10534 for ac_exec_ext in '' $ac_executable_extensions; do
10535 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10536 ac_cv_prog_QSHAPE="$ac_prog"
10537 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10538 break 2
10540 done
10541 done
10542 IFS=$as_save_IFS
10546 QSHAPE=$ac_cv_prog_QSHAPE
10547 if test -n "$QSHAPE"; then
10548 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QSHAPE" >&5
10549 $as_echo "$QSHAPE" >&6; }
10550 else
10551 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10552 $as_echo "no" >&6; }
10556 test -n "$QSHAPE" && break
10557 done
10559 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the postfix PMDA should be included" >&5
10560 $as_echo_n "checking if the postfix PMDA should be included... " >&6; }
10561 if test -n "$QSHAPE"
10562 then
10563 pmda_postfix=true
10564 else
10565 for script in /usr/share/doc/packages/postfix-doc/auxiliary/qshape/qshape.pl
10567 if test -f "$script"
10568 then
10569 pmda_postfix=true
10570 break
10572 done
10574 PMDA_POSTFIX=$pmda_postfix
10576 if $pmda_postfix; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10577 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10578 $as_echo "no" >&6; }; fi
10581 pkg_failed=no
10582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmicrohttpd" >&5
10583 $as_echo_n "checking for libmicrohttpd... " >&6; }
10585 if test -n "$libmicrohttpd_CFLAGS"; then
10586 pkg_cv_libmicrohttpd_CFLAGS="$libmicrohttpd_CFLAGS"
10587 elif test -n "$PKG_CONFIG"; then
10588 if test -n "$PKG_CONFIG" && \
10589 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmicrohttpd > 0.9.9\""; } >&5
10590 ($PKG_CONFIG --exists --print-errors "libmicrohttpd > 0.9.9") 2>&5
10591 ac_status=$?
10592 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10593 test $ac_status = 0; }; then
10594 pkg_cv_libmicrohttpd_CFLAGS=`$PKG_CONFIG --cflags "libmicrohttpd > 0.9.9" 2>/dev/null`
10595 test "x$?" != "x0" && pkg_failed=yes
10596 else
10597 pkg_failed=yes
10599 else
10600 pkg_failed=untried
10602 if test -n "$libmicrohttpd_LIBS"; then
10603 pkg_cv_libmicrohttpd_LIBS="$libmicrohttpd_LIBS"
10604 elif test -n "$PKG_CONFIG"; then
10605 if test -n "$PKG_CONFIG" && \
10606 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmicrohttpd > 0.9.9\""; } >&5
10607 ($PKG_CONFIG --exists --print-errors "libmicrohttpd > 0.9.9") 2>&5
10608 ac_status=$?
10609 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10610 test $ac_status = 0; }; then
10611 pkg_cv_libmicrohttpd_LIBS=`$PKG_CONFIG --libs "libmicrohttpd > 0.9.9" 2>/dev/null`
10612 test "x$?" != "x0" && pkg_failed=yes
10613 else
10614 pkg_failed=yes
10616 else
10617 pkg_failed=untried
10622 if test $pkg_failed = yes; then
10623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10624 $as_echo "no" >&6; }
10626 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10627 _pkg_short_errors_supported=yes
10628 else
10629 _pkg_short_errors_supported=no
10631 if test $_pkg_short_errors_supported = yes; then
10632 libmicrohttpd_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libmicrohttpd > 0.9.9" 2>&1`
10633 else
10634 libmicrohttpd_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libmicrohttpd > 0.9.9" 2>&1`
10636 # Put the nasty error message in config.log where it belongs
10637 echo "$libmicrohttpd_PKG_ERRORS" >&5
10639 have_libmicrohttpd=false
10640 elif test $pkg_failed = untried; then
10641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10642 $as_echo "no" >&6; }
10643 have_libmicrohttpd=false
10644 else
10645 libmicrohttpd_CFLAGS=$pkg_cv_libmicrohttpd_CFLAGS
10646 libmicrohttpd_LIBS=$pkg_cv_libmicrohttpd_LIBS
10647 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10648 $as_echo "yes" >&6; }
10649 have_libmicrohttpd=true
10651 HAVE_LIBMICROHTTPD=$have_libmicrohttpd
10655 pkg_failed=no
10656 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo" >&5
10657 $as_echo_n "checking for cairo... " >&6; }
10659 if test -n "$cairo_CFLAGS"; then
10660 pkg_cv_cairo_CFLAGS="$cairo_CFLAGS"
10661 elif test -n "$PKG_CONFIG"; then
10662 if test -n "$PKG_CONFIG" && \
10663 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo >= 1.2, cairo-ft >= 1.2, cairo-png >= 1.2\""; } >&5
10664 ($PKG_CONFIG --exists --print-errors "cairo >= 1.2, cairo-ft >= 1.2, cairo-png >= 1.2") 2>&5
10665 ac_status=$?
10666 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10667 test $ac_status = 0; }; then
10668 pkg_cv_cairo_CFLAGS=`$PKG_CONFIG --cflags "cairo >= 1.2, cairo-ft >= 1.2, cairo-png >= 1.2" 2>/dev/null`
10669 test "x$?" != "x0" && pkg_failed=yes
10670 else
10671 pkg_failed=yes
10673 else
10674 pkg_failed=untried
10676 if test -n "$cairo_LIBS"; then
10677 pkg_cv_cairo_LIBS="$cairo_LIBS"
10678 elif test -n "$PKG_CONFIG"; then
10679 if test -n "$PKG_CONFIG" && \
10680 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo >= 1.2, cairo-ft >= 1.2, cairo-png >= 1.2\""; } >&5
10681 ($PKG_CONFIG --exists --print-errors "cairo >= 1.2, cairo-ft >= 1.2, cairo-png >= 1.2") 2>&5
10682 ac_status=$?
10683 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10684 test $ac_status = 0; }; then
10685 pkg_cv_cairo_LIBS=`$PKG_CONFIG --libs "cairo >= 1.2, cairo-ft >= 1.2, cairo-png >= 1.2" 2>/dev/null`
10686 test "x$?" != "x0" && pkg_failed=yes
10687 else
10688 pkg_failed=yes
10690 else
10691 pkg_failed=untried
10696 if test $pkg_failed = yes; then
10697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10698 $as_echo "no" >&6; }
10700 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10701 _pkg_short_errors_supported=yes
10702 else
10703 _pkg_short_errors_supported=no
10705 if test $_pkg_short_errors_supported = yes; then
10706 cairo_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cairo >= 1.2, cairo-ft >= 1.2, cairo-png >= 1.2" 2>&1`
10707 else
10708 cairo_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cairo >= 1.2, cairo-ft >= 1.2, cairo-png >= 1.2" 2>&1`
10710 # Put the nasty error message in config.log where it belongs
10711 echo "$cairo_PKG_ERRORS" >&5
10713 have_cairo=false
10714 elif test $pkg_failed = untried; then
10715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10716 $as_echo "no" >&6; }
10717 have_cairo=false
10718 else
10719 cairo_CFLAGS=$pkg_cv_cairo_CFLAGS
10720 cairo_LIBS=$pkg_cv_cairo_LIBS
10721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10722 $as_echo "yes" >&6; }
10723 have_cairo=true
10725 HAVE_CAIRO=$have_cairo
10728 enable_webapi=false
10729 if test "x$do_webapi" != "xno"; then :
10731 enable_webapi=true
10733 if test "$have_libmicrohttpd" != "true"
10734 then
10735 enable_webapi=false
10736 test "$do_webapi" != "check" && \
10737 as_fn_error $? "libmicrohttpd is not installed, cannot enable the web API" "$LINENO" 5
10738 elif test "$do_webapi" != "check" -a "x$cxx" = "x"
10739 then
10740 enable_webapi=false
10741 test "$do_webapi" != "check" && \
10742 as_fn_error $? "C++ compiler unavailable, cannot enable the web API" "$LINENO" 5
10748 enable_manager=false
10749 if test "x$do_manager" != "xno"; then :
10751 enable_manager=true
10753 if test "$target_os" = "mingw"
10754 then
10755 enable_manager=false
10756 test "$do_manager" != "check" && \
10757 as_fn_error $? "MinGW build, cannot enable daemon manager" "$LINENO" 5
10758 elif test "x$cxx" = "x"
10759 then
10760 enable_manager=false
10761 test "$do_manager" != "check" && \
10762 as_fn_error $? "C++ compiler unavailable, cannot enable daemon manager" "$LINENO" 5
10764 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compilation features for daemon manager" >&5
10765 $as_echo_n "checking compilation features for daemon manager... " >&6; }
10766 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10767 /* end confdefs.h. */
10768 #ifndef _XOPEN_SOURCE
10769 #define _XOPEN_SOURCE 600
10770 #endif
10771 #include <stdio.h>
10774 main ()
10778 return 0;
10780 _ACEOF
10781 if ac_fn_c_try_compile "$LINENO"; then :
10782 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10783 $as_echo "yes" >&6; }
10784 else
10785 enable_manager=false
10786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10787 $as_echo "no" >&6; }
10789 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
10795 $as_echo_n "checking return type of signal handlers... " >&6; }
10796 if ${ac_cv_type_signal+:} false; then :
10797 $as_echo_n "(cached) " >&6
10798 else
10799 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10800 /* end confdefs.h. */
10801 #include <sys/types.h>
10802 #include <signal.h>
10805 main ()
10807 return *(signal (0, 0)) (0) == 1;
10809 return 0;
10811 _ACEOF
10812 if ac_fn_c_try_compile "$LINENO"; then :
10813 ac_cv_type_signal=int
10814 else
10815 ac_cv_type_signal=void
10817 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
10820 $as_echo "$ac_cv_type_signal" >&6; }
10822 cat >>confdefs.h <<_ACEOF
10823 #define RETSIGTYPE $ac_cv_type_signal
10824 _ACEOF
10827 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wait3 that fills in rusage" >&5
10828 $as_echo_n "checking for wait3 that fills in rusage... " >&6; }
10829 if ${ac_cv_func_wait3_rusage+:} false; then :
10830 $as_echo_n "(cached) " >&6
10831 else
10832 if test "$cross_compiling" = yes; then :
10833 ac_cv_func_wait3_rusage=no
10834 else
10835 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10836 /* end confdefs.h. */
10837 $ac_includes_default
10838 #include <sys/time.h>
10839 #include <sys/resource.h>
10840 #include <sys/wait.h>
10841 /* HP-UX has wait3 but does not fill in rusage at all. */
10843 main ()
10845 struct rusage r;
10846 int i;
10847 /* Use a field that we can force nonzero --
10848 voluntary context switches.
10849 For systems like NeXT and OSF/1 that don't set it,
10850 also use the system CPU time. And page faults (I/O) for Linux. */
10851 r.ru_nvcsw = 0;
10852 r.ru_stime.tv_sec = 0;
10853 r.ru_stime.tv_usec = 0;
10854 r.ru_majflt = r.ru_minflt = 0;
10855 switch (fork ())
10857 case 0: /* Child. */
10858 sleep(1); /* Give up the CPU. */
10859 _exit(0);
10860 break;
10861 case -1: /* What can we do? */
10862 _exit(0);
10863 break;
10864 default: /* Parent. */
10865 wait3(&i, 0, &r);
10866 /* Avoid "text file busy" from rm on fast HP-UX machines. */
10867 sleep(2);
10868 return (r.ru_nvcsw == 0 && r.ru_majflt == 0 && r.ru_minflt == 0
10869 && r.ru_stime.tv_sec == 0 && r.ru_stime.tv_usec == 0);
10872 _ACEOF
10873 if ac_fn_c_try_run "$LINENO"; then :
10874 ac_cv_func_wait3_rusage=yes
10875 else
10876 ac_cv_func_wait3_rusage=no
10878 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10879 conftest.$ac_objext conftest.beam conftest.$ac_ext
10883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_wait3_rusage" >&5
10884 $as_echo "$ac_cv_func_wait3_rusage" >&6; }
10885 if test $ac_cv_func_wait3_rusage = yes; then
10887 $as_echo "#define HAVE_WAIT3 1" >>confdefs.h
10891 for ac_func in vprintf
10892 do :
10893 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
10894 if test "x$ac_cv_func_vprintf" = xyes; then :
10895 cat >>confdefs.h <<_ACEOF
10896 #define HAVE_VPRINTF 1
10897 _ACEOF
10899 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
10900 if test "x$ac_cv_func__doprnt" = xyes; then :
10902 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
10907 done
10910 for ac_func in mktime nanosleep usleep unsetenv
10911 do :
10912 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10913 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10914 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10915 cat >>confdefs.h <<_ACEOF
10916 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10917 _ACEOF
10920 done
10922 for ac_func in select socket gethostname getpeerucred getpeereid
10923 do :
10924 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10925 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10926 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10927 cat >>confdefs.h <<_ACEOF
10928 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10929 _ACEOF
10932 done
10934 for ac_func in uname syslog __clone pipe2 fcntl ioctl
10935 do :
10936 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10937 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10938 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10939 cat >>confdefs.h <<_ACEOF
10940 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10941 _ACEOF
10944 done
10946 for ac_func in prctl setlinebuf waitpid atexit kill
10947 do :
10948 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10949 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10950 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10951 cat >>confdefs.h <<_ACEOF
10952 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10953 _ACEOF
10956 done
10958 for ac_func in chown fchmod getcwd scandir mkstemp
10959 do :
10960 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10961 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10962 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10963 cat >>confdefs.h <<_ACEOF
10964 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10965 _ACEOF
10968 done
10970 for ac_func in brk sbrk posix_memalign memalign valloc
10971 do :
10972 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10973 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10974 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10975 cat >>confdefs.h <<_ACEOF
10976 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10977 _ACEOF
10980 done
10982 for ac_func in signal sighold sigrelse tcgetattr
10983 do :
10984 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10985 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10986 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10987 cat >>confdefs.h <<_ACEOF
10988 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10989 _ACEOF
10992 done
10994 for ac_func in regex regcmp regexec regcomp
10995 do :
10996 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10997 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10998 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10999 cat >>confdefs.h <<_ACEOF
11000 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11001 _ACEOF
11004 done
11006 for ac_func in strtod strtol strtoll strtoull strndup strchrnul
11007 do :
11008 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11009 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11010 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11011 cat >>confdefs.h <<_ACEOF
11012 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11013 _ACEOF
11016 done
11018 for ac_func in getuid getgid
11019 do :
11020 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11021 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11022 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11023 cat >>confdefs.h <<_ACEOF
11024 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11025 _ACEOF
11028 done
11030 for ac_func in getgrent getgrent_r getgrnam getgrnam_r getgrgid getgrgid_r
11031 do :
11032 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11033 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11034 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11035 cat >>confdefs.h <<_ACEOF
11036 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11037 _ACEOF
11040 done
11042 for ac_func in getpwent getpwent_r getpwnam getpwnam_r getpwuid getpwuid_r
11043 do :
11044 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11045 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11046 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11047 cat >>confdefs.h <<_ACEOF
11048 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11049 _ACEOF
11052 done
11054 for ac_func in sysinfo trace_back_stack backtrace
11055 do :
11056 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11057 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11058 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11059 cat >>confdefs.h <<_ACEOF
11060 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11061 _ACEOF
11064 done
11066 for ac_func in sendmsg recvmsg setns
11067 do :
11068 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11069 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11070 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11071 cat >>confdefs.h <<_ACEOF
11072 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11073 _ACEOF
11076 done
11079 if test $target_os != linux -a $target_os != freebsd -a $target_os != kfreebsd -a $target_os != netbsd; then
11080 for ac_func in readdir64
11081 do :
11082 ac_fn_c_check_func "$LINENO" "readdir64" "ac_cv_func_readdir64"
11083 if test "x$ac_cv_func_readdir64" = xyes; then :
11084 cat >>confdefs.h <<_ACEOF
11085 #define HAVE_READDIR64 1
11086 _ACEOF
11089 done
11093 if test $target_os = solaris
11094 then
11095 ac_fn_c_check_type "$LINENO" "__int32_t" "ac_cv_type___int32_t" "$ac_includes_default"
11096 if test "x$ac_cv_type___int32_t" = xyes; then :
11098 else
11100 cat >>confdefs.h <<_ACEOF
11101 #define __int32_t int32_t
11102 _ACEOF
11106 ac_fn_c_check_type "$LINENO" "__uint32_t" "ac_cv_type___uint32_t" "$ac_includes_default"
11107 if test "x$ac_cv_type___uint32_t" = xyes; then :
11109 else
11111 cat >>confdefs.h <<_ACEOF
11112 #define __uint32_t uint32_t
11113 _ACEOF
11117 ac_fn_c_check_type "$LINENO" "__int64_t" "ac_cv_type___int64_t" "$ac_includes_default"
11118 if test "x$ac_cv_type___int64_t" = xyes; then :
11120 else
11122 cat >>confdefs.h <<_ACEOF
11123 #define __int64_t int64_t
11124 _ACEOF
11128 ac_fn_c_check_type "$LINENO" "__uint64_t" "ac_cv_type___uint64_t" "$ac_includes_default"
11129 if test "x$ac_cv_type___uint64_t" = xyes; then :
11131 else
11133 cat >>confdefs.h <<_ACEOF
11134 #define __uint64_t uint64_t
11135 _ACEOF
11139 ac_fn_c_check_type "$LINENO" "uint_t" "ac_cv_type_uint_t" "$ac_includes_default"
11140 if test "x$ac_cv_type_uint_t" = xyes; then :
11142 else
11144 cat >>confdefs.h <<_ACEOF
11145 #define uint_t u_int32_t
11146 _ACEOF
11150 else
11151 ac_fn_c_check_type "$LINENO" "__int32_t" "ac_cv_type___int32_t" "$ac_includes_default"
11152 if test "x$ac_cv_type___int32_t" = xyes; then :
11154 else
11156 cat >>confdefs.h <<_ACEOF
11157 #define __int32_t int
11158 _ACEOF
11162 ac_fn_c_check_type "$LINENO" "__uint32_t" "ac_cv_type___uint32_t" "$ac_includes_default"
11163 if test "x$ac_cv_type___uint32_t" = xyes; then :
11165 else
11167 cat >>confdefs.h <<_ACEOF
11168 #define __uint32_t unsigned int
11169 _ACEOF
11173 ac_fn_c_check_type "$LINENO" "__int64_t" "ac_cv_type___int64_t" "$ac_includes_default"
11174 if test "x$ac_cv_type___int64_t" = xyes; then :
11176 else
11178 cat >>confdefs.h <<_ACEOF
11179 #define __int64_t long long
11180 _ACEOF
11184 ac_fn_c_check_type "$LINENO" "__uint64_t" "ac_cv_type___uint64_t" "$ac_includes_default"
11185 if test "x$ac_cv_type___uint64_t" = xyes; then :
11187 else
11189 cat >>confdefs.h <<_ACEOF
11190 #define __uint64_t unsigned long long
11191 _ACEOF
11195 ac_fn_c_check_type "$LINENO" "uint_t" "ac_cv_type_uint_t" "$ac_includes_default"
11196 if test "x$ac_cv_type_uint_t" = xyes; then :
11198 else
11200 cat >>confdefs.h <<_ACEOF
11201 #define uint_t unsigned int
11202 _ACEOF
11208 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __psint_t " >&5
11209 $as_echo_n "checking for __psint_t ... " >&6; }
11210 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11211 /* end confdefs.h. */
11213 #include <sys/types.h>
11214 #include <stdlib.h>
11215 #include <stddef.h>
11218 main ()
11220 __psint_t psint;
11222 return 0;
11224 _ACEOF
11225 if ac_fn_c_try_compile "$LINENO"; then :
11227 $as_echo "#define HAVE___PSINT_T 1" >>confdefs.h
11228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11229 $as_echo "yes" >&6; }
11230 else
11231 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11232 $as_echo "no" >&6; }
11234 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ptrdiff_t " >&5
11237 $as_echo_n "checking for ptrdiff_t ... " >&6; }
11238 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11239 /* end confdefs.h. */
11241 #include <stddef.h>
11242 #ifdef HAVE_MALLOC_H
11243 #include <malloc.h>
11244 #endif
11247 main ()
11249 ptrdiff_t ptrdiff;
11251 return 0;
11253 _ACEOF
11254 if ac_fn_c_try_compile "$LINENO"; then :
11256 $as_echo "#define HAVE_PTRDIFF_T 1" >>confdefs.h
11257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11258 $as_echo "yes" >&6; }
11259 else
11260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11261 $as_echo "no" >&6; }
11263 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11265 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t " >&5
11266 $as_echo_n "checking for uid_t ... " >&6; }
11267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11268 /* end confdefs.h. */
11270 #include <sys/types.h>
11271 #ifdef HAVE_PWD_H
11272 #include <pwd.h>
11273 #endif
11276 main ()
11278 uid_t uid;
11280 return 0;
11282 _ACEOF
11283 if ac_fn_c_try_compile "$LINENO"; then :
11285 $as_echo "#define HAVE_UID_T 1" >>confdefs.h
11286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11287 $as_echo "yes" >&6; }
11288 else
11289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11290 $as_echo "no" >&6; }
11292 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gid_t " >&5
11294 $as_echo_n "checking for gid_t ... " >&6; }
11295 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11296 /* end confdefs.h. */
11298 #include <sys/types.h>
11299 #ifdef HAVE_GRP_H
11300 #include <grp.h>
11301 #endif
11304 main ()
11306 gid_t gid;
11308 return 0;
11310 _ACEOF
11311 if ac_fn_c_try_compile "$LINENO"; then :
11313 $as_echo "#define HAVE_GID_T 1" >>confdefs.h
11314 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11315 $as_echo "yes" >&6; }
11316 else
11317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11318 $as_echo "no" >&6; }
11320 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SID " >&5
11322 $as_echo_n "checking for SID ... " >&6; }
11323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11324 /* end confdefs.h. */
11326 #ifdef HAVE_WINDOWS_H
11327 #include <windows.h>
11328 #endif
11331 main ()
11333 SID sid;
11335 return 0;
11337 _ACEOF
11338 if ac_fn_c_try_compile "$LINENO"; then :
11340 $as_echo "#define HAVE_SID 1" >>confdefs.h
11341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11342 $as_echo "yes" >&6; }
11343 else
11344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11345 $as_echo "no" >&6; }
11347 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11349 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t " >&5
11350 $as_echo_n "checking for socklen_t ... " >&6; }
11351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11352 /* end confdefs.h. */
11354 #include <sys/types.h>
11355 #ifdef HAVE_SYS_SOCKET_H
11356 #include <sys/socket.h>
11357 #endif
11360 main ()
11362 socklen_t len;
11364 return 0;
11366 _ACEOF
11367 if ac_fn_c_try_compile "$LINENO"; then :
11369 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
11370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11371 $as_echo "yes" >&6; }
11372 else
11373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11374 $as_echo "no" >&6; }
11376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11378 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11379 /* end confdefs.h. */
11381 #include <stdio.h>
11384 main ()
11386 long long x = 0LL;
11388 return 0;
11390 _ACEOF
11391 if ac_fn_c_try_compile "$LINENO"; then :
11393 $as_echo "#define HAVE_CONST_LONGLONG 1" >>confdefs.h
11396 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11398 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11399 /* end confdefs.h. */
11401 #include <stdlib.h>
11402 #include <unistd.h>
11405 main ()
11407 char **x = _environ;
11409 return 0;
11411 _ACEOF
11412 if ac_fn_c_try_link "$LINENO"; then :
11414 $as_echo "#define HAVE_UNDERBAR_ENVIRON 1" >>confdefs.h
11417 rm -f core conftest.err conftest.$ac_objext \
11418 conftest$ac_exeext conftest.$ac_ext
11420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PR_TERMCHILD constant in sys/prctl.h" >&5
11421 $as_echo_n "checking for PR_TERMCHILD constant in sys/prctl.h... " >&6; }
11422 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11423 /* end confdefs.h. */
11425 #ifdef HAVE_SYS_PRCTL_H
11426 #include <sys/prctl.h>
11427 #endif
11430 main ()
11432 int i = PR_TERMCHILD;
11434 return 0;
11436 _ACEOF
11437 if ac_fn_c_try_compile "$LINENO"; then :
11439 $as_echo "#define HAVE_PR_TERMCHILD 1" >>confdefs.h
11440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11441 $as_echo "yes" >&6; }
11442 else
11443 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11444 $as_echo "no" >&6; }
11446 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PR_SET_PDEATHSIG constant in sys/prctl.h" >&5
11449 $as_echo_n "checking for PR_SET_PDEATHSIG constant in sys/prctl.h... " >&6; }
11450 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11451 /* end confdefs.h. */
11453 #ifdef HAVE_SYS_PRCTL_H
11454 #include <sys/prctl.h>
11455 #endif
11458 main ()
11460 int i = PR_SET_PDEATHSIG;
11462 return 0;
11464 _ACEOF
11465 if ac_fn_c_try_compile "$LINENO"; then :
11467 $as_echo "#define HAVE_PR_SET_PDEATHSIG 1" >>confdefs.h
11468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11469 $as_echo "yes" >&6; }
11470 else
11471 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11472 $as_echo "no" >&6; }
11474 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
11477 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
11478 if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false; then :
11479 $as_echo_n "(cached) " >&6
11480 else
11481 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11482 /* end confdefs.h. */
11483 #include <sys/types.h>
11484 #include <termios.h>
11485 #ifdef TIOCGWINSZ
11487 #endif
11489 _ACEOF
11490 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11491 $EGREP "yes" >/dev/null 2>&1; then :
11492 ac_cv_sys_tiocgwinsz_in_termios_h=yes
11493 else
11494 ac_cv_sys_tiocgwinsz_in_termios_h=no
11496 rm -f conftest*
11499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
11500 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
11502 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
11503 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
11504 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
11505 if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false; then :
11506 $as_echo_n "(cached) " >&6
11507 else
11508 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11509 /* end confdefs.h. */
11510 #include <sys/types.h>
11511 #include <sys/ioctl.h>
11512 #ifdef TIOCGWINSZ
11514 #endif
11516 _ACEOF
11517 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11518 $EGREP "yes" >/dev/null 2>&1; then :
11519 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
11520 else
11521 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
11523 rm -f conftest*
11526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
11527 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
11529 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
11531 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
11537 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports -rdynamic" >&5
11538 $as_echo_n "checking if linker supports -rdynamic... " >&6; }
11539 save_CFLAGS="$CFLAGS"
11540 CFLAGS="-rdynamic"
11541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11542 /* end confdefs.h. */
11545 main ()
11549 return 0;
11551 _ACEOF
11552 if ac_fn_c_try_link "$LINENO"; then :
11553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11554 $as_echo "yes" >&6; }
11555 rdynamic_flag=-rdynamic
11556 else
11557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11558 $as_echo "no" >&6; }
11559 rdynamic_flag=
11562 rm -f core conftest.err conftest.$ac_objext \
11563 conftest$ac_exeext conftest.$ac_ext
11564 CFLAGS="$save_CFLAGS"
11568 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether const arg for scandir() select method" >&5
11569 $as_echo_n "checking whether const arg for scandir() select method... " >&6; }
11570 cat <<End-of-File >conftest.c
11571 #include <stdlib.h>
11572 #include <unistd.h>
11573 #include <dirent.h>
11574 static int
11575 my_select(const struct dirent *foo) { return 0; }
11576 int main() { struct dirent **list; return scandir(".", &list, my_select, NULL); }
11577 End-of-File
11578 (eval $ac_compile) 2>conftest.out
11579 cat conftest.out >&5
11580 if test -s conftest.out
11581 then
11582 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11583 $as_echo "no" >&6; }
11584 else
11586 $as_echo "#define HAVE_CONST_DIRENT 1" >>confdefs.h
11588 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11589 $as_echo "yes" >&6; }
11591 rm -f conftest.*
11593 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct dirent has a d_off field" >&5
11594 $as_echo_n "checking whether struct dirent has a d_off field... " >&6; }
11595 cat <<End-of-File >conftest.c
11596 #include <stdlib.h>
11597 #include <unistd.h>
11598 #include <dirent.h>
11599 int main() { struct dirent d; d.d_off = 0; }
11600 End-of-File
11601 (eval $ac_compile) 2>conftest.out
11602 cat conftest.out >&5
11603 if test -s conftest.out
11604 then
11605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11606 $as_echo "no" >&6; }
11607 else
11609 $as_echo "#define HAVE_DIRENT_D_OFF 1" >>confdefs.h
11611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11612 $as_echo "yes" >&6; }
11614 rm -f conftest.*
11616 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if printf %p produces 0x prefix" >&5
11617 $as_echo_n "checking if printf %p produces 0x prefix... " >&6; }
11618 if test "$cross_compiling" = "yes"; then
11619 ans=$printf_p_prefix
11620 echo "cross-compile -> \"$ans\"" >&5
11621 else
11622 cat <<End-of-File >conftest.c
11623 #include <stdio.h>
11624 int main(int argc, char **argv) { printf("%p", argv); return(0); }
11625 End-of-File
11626 (eval $ac_compile) 2>&5
11627 (eval $ac_link) 2>&5
11628 ans=`./conftest`
11629 echo "./conftest -> \"$ans\"" >&5
11631 case "$ans"
11633 0x*)
11635 $as_echo "#define HAVE_PRINTF_P_PFX 1" >>confdefs.h
11637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11638 $as_echo "yes" >&6; }
11641 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11642 $as_echo "no" >&6; }
11644 esac
11645 rm -rf conftest conftest.*
11647 _do_type()
11649 # need to deal with this sort of cpp output ...
11650 # typedef long pid_t;
11651 # typedef unsigned int pid_t;
11652 # typedef unsigned int pid_t __attribute__ ((__mode__ (__SI__)));
11653 # __extension__ typedef int pid_t;
11654 # typedef foo_t
11655 # pid_t;
11656 # typedef struct {
11657 # ....
11658 # } pid_t;
11659 # typedef ... *pid;
11660 # and chaining of the form
11661 # typedef long __pid_t;
11662 # typedef __pid_t pid_t;
11664 _raw=`$CPP conftest.c \
11665 | $SED \
11666 -e 's/[ ]__attribute__ ((.*));/;/' \
11667 -e 's/__extension__[ ][ ]*//' \
11668 | $AWK '
11669 /bozo/ { print; next }
11670 $1 == "typedef" { printf "%s",$0
11671 if ($NF ~ /;$/) {
11672 print ""
11673 next
11675 wantsemi = 1
11676 if ($0 ~ /{/) depth = 1
11677 next
11679 wantsemi == 1 { printf " %s",$0
11680 if ($0 ~ /{/) depth++
11681 if (depth) {
11682 if ($0 ~ /}/) depth--
11683 if (depth > 0) next
11685 if ($NF ~ /;$/) {
11686 print ""
11687 wantsemi = 0
11688 next
11690 }' \
11691 | $SED \
11692 -e 's/\*/* /g' \
11693 -e 's/^[ ]*//' \
11694 -e 's/;[ ]*$//' \
11695 | $AWK '
11696 $1 == "typedef" { map[$NF] = ""
11697 for (i = 2; i < NF; i++) {
11698 if (i == 2)
11699 map[$NF] = $i
11700 else
11701 map[$NF] = map[$NF] " " $i
11703 print $NF " -> " map[$NF] >"conftest.debug"
11704 next
11706 $2 == "bozo" { t = $1
11707 printf "best guess: %s",t >"conftest.debug"
11708 while (map[t] != "") {
11709 t = map[t]
11710 printf " -> %s",t >"conftest.debug"
11712 print "" >"conftest.debug"
11713 print t
11714 exit
11716 case "$_raw"
11718 int)
11719 _fmt='"d"'
11721 unsigned|'unsigned int')
11722 _fmt='"u"'
11724 long|'long int')
11725 _fmt='"ld"'
11727 'long long'|'long long int')
11728 if test $target_os = mingw; then
11729 _fmt='"I64d"'
11730 else
11731 _fmt='"lld"'
11734 'unsigned long'|'unsigned long int'|'long unsigned int')
11735 _fmt='"lu"'
11737 'unsigned long long'|'unsigned long long int')
11738 if test $target_os = mingw; then
11739 _fmt='"I64u"'
11740 else
11741 _fmt='"llu"'
11744 *\*) # pointer to a something
11745 _fmt='"p"'
11747 struct\ *) # not much can be done here ...
11748 _fmt='"p"'
11751 echo
11752 echo "FATAL ERROR: don't know what to do with type \"$_raw\""
11753 echo "... typedef mapping ..."
11754 cat conftest.debug
11755 rm -rf conftest conftest.*
11756 exit 1
11758 esac
11761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking printf type for pid_t" >&5
11762 $as_echo_n "checking printf type for pid_t... " >&6; }
11763 if test "$cross_compiling" = "yes"; then
11764 ans=$printf_fmt_pid
11765 echo "cross-compile -> \"$ans\"" >&5
11766 fmt_pid="$ans"
11767 else
11768 cat <<End-of-File >conftest.c
11769 #include <sys/types.h>
11770 #include <unistd.h>
11771 pid_t bozo;
11772 End-of-File
11773 _do_type
11774 fmt_pid="$_fmt"
11776 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fmt_pid" >&5
11777 $as_echo "$fmt_pid" >&6; }
11779 rm -rf conftest.c conftest.debug
11781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking printf type for int64_t " >&5
11782 $as_echo_n "checking printf type for int64_t ... " >&6; }
11783 if test "$cross_compiling" = "yes"; then
11784 ans=$printf_fmt_int64
11785 echo "cross-compile -> \"$ans\"" >&5
11786 else
11787 cat <<End-of-File >conftest.c
11788 #include <stdio.h>
11789 #include <stdint.h>
11790 #include <inttypes.h>
11791 int main()
11793 printf("\"%s\"\n", __PRI64_PREFIX "d");
11794 return(0);
11796 End-of-File
11797 ans=''
11798 (eval $ac_link) 2>&5
11799 if test -x ./conftest
11800 then
11801 ans=`./conftest`
11802 echo "./conftest -> \"$ans\"" >&5
11804 if test -z "$ans"
11805 then
11806 cat <<End-of-File >conftest.c
11807 #include <stdio.h>
11808 #include <stdint.h>
11809 #include <string.h>
11810 int main()
11812 char buf[17];
11813 int64_t bozo = 0x12345678abcdLL;
11814 sprintf(buf, "%lx", bozo);
11815 if (strcmp(buf, "12345678abcd") == 0)
11816 printf("\"ld\"\n");
11817 else {
11818 sprintf(buf, "%llx", bozo);
11819 if (strcmp(buf, "12345678abcd") == 0)
11820 printf("\"lld\"\n");
11822 return(0);
11824 End-of-File
11825 (eval $ac_link) 2>&5
11826 if test -x ./conftest
11827 then
11828 ans=`./conftest`
11829 echo "./conftest -> \"$ans\"" >&5
11833 if test -z "$ans"
11834 then
11835 echo 'FATAL ERROR: Cannot determine printf format for int64_t type'
11836 rm -rf conftest conftest.*
11837 exit 1
11839 fmt_int64="$ans"
11840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$fmt_int64\"" >&5
11841 $as_echo "\"$fmt_int64\"" >&6; }
11843 rm -rf conftest.* conftest
11845 { $as_echo "$as_me:${as_lineno-$LINENO}: checking strtol or strtoll for int64_t" >&5
11846 $as_echo_n "checking strtol or strtoll for int64_t... " >&6; }
11847 if test "$cross_compiling" = "yes"; then
11848 ans=$strtoint64
11849 echo "cross-compile -> \"$ans\"" >&5
11850 else
11851 cat <<End-of-File >conftest.c
11852 #include <stdio.h>
11853 #include <stdlib.h>
11854 main()
11856 long long int value = -1;
11857 value = strtol("1234567812345678", NULL, 16);
11858 if (value == 0x1234567812345678LL) {
11859 printf("strotol\n");
11860 exit(0);
11862 value = strtoll("1234567812345678", NULL, 16);
11863 if (value == 0x1234567812345678LL) {
11864 printf("strtoll\n");
11865 exit(0);
11867 exit(1);
11869 End-of-File
11870 (eval $ac_compile) 2>&5
11871 (eval $ac_link) 2>&5
11872 ans=`./conftest`
11873 echo "./conftest -> \"$ans\"" >&5
11875 case "$ans"
11877 strtol)
11878 $as_echo "#define strtoint64 strtol" >>confdefs.h
11880 $as_echo "#define strtouint64 strtoul" >>confdefs.h
11882 { $as_echo "$as_me:${as_lineno-$LINENO}: result: strtol" >&5
11883 $as_echo "strtol" >&6; }
11885 strtoll)
11886 $as_echo "#define strtoint64 strtoll" >>confdefs.h
11888 $as_echo "#define strtouint64 strtoull" >>confdefs.h
11890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: strtoll" >&5
11891 $as_echo "strtoll" >&6; }
11894 $as_echo "#define strtoint64 strtoll" >>confdefs.h
11896 $as_echo "#define strtouint64 strtoull" >>confdefs.h
11898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: assuming strtoll" >&5
11899 $as_echo "assuming strtoll" >&6; }
11901 esac
11902 rm -rf conftest conftest.*
11904 if test "$do_threads" = "check" -o "$do_threads" = "yes"
11905 then
11906 for ac_header in pthread.h
11907 do :
11908 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
11909 if test "x$ac_cv_header_pthread_h" = xyes; then :
11910 cat >>confdefs.h <<_ACEOF
11911 #define HAVE_PTHREAD_H 1
11912 _ACEOF
11914 else
11916 if test "$do_threads" = "yes"
11917 then
11918 as_fn_error $? "cannot enable multi-threaded mode - no pthread.h" "$LINENO" 5
11923 done
11926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_t in pthread.h" >&5
11927 $as_echo_n "checking for pthread_mutex_t in pthread.h... " >&6; }
11928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11929 /* end confdefs.h. */
11930 #include <pthread.h>
11932 main ()
11934 pthread_mutex_t mymutex;
11936 return 0;
11938 _ACEOF
11939 if ac_fn_c_try_compile "$LINENO"; then :
11941 $as_echo "#define HAVE_PTHREAD_MUTEX_T 1" >>confdefs.h
11942 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11943 $as_echo "yes" >&6; }
11944 else
11946 if test "$do_threads" = "yes"
11947 then
11948 as_fn_error $? "cannot enable multi-threaded mode - no mutexes" "$LINENO" 5
11949 else
11950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11951 $as_echo "no" >&6; }
11955 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where pthread_create() is defined" >&5
11958 $as_echo_n "checking where pthread_create() is defined... " >&6; }
11959 for cand in "" pthreads pthread ; do
11960 savedLIBS=$LIBS
11961 if test -n "$cand"
11962 then
11963 LIBS=`echo $LIBS -l$cand`
11965 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11966 /* end confdefs.h. */
11968 #include <pthread.h>
11971 main ()
11974 pthread_create(NULL, NULL, NULL, NULL);
11977 return 0;
11979 _ACEOF
11980 if ac_fn_c_try_link "$LINENO"; then :
11981 { $as_echo "$as_me:${as_lineno-$LINENO}: result: lib${cand:-c}" >&5
11982 $as_echo "lib${cand:-c}" >&6; }
11983 if test -z "$cand"
11984 then
11985 lib_for_pthreads="$cand"
11986 else
11987 lib_for_pthreads="-l$cand"
11989 LIBS=$savedLIBS
11990 break
11992 rm -f core conftest.err conftest.$ac_objext \
11993 conftest$ac_exeext conftest.$ac_ext
11994 LIBS=$savedLIBS
11995 done
11998 if test "$ac_cv_header_pthread_h" = "yes"
11999 then
12000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking printf type for pthread_t" >&5
12001 $as_echo_n "checking printf type for pthread_t... " >&6; }
12002 cat <<End-of-File >conftest.c
12003 #include <pthread.h>
12004 pthread_t bozo;
12005 End-of-File
12006 _do_type
12007 fmt_pthread="$_fmt"
12008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fmt_pthread" >&5
12009 $as_echo "$fmt_pthread" >&6; }
12011 rm -rf conftest.c conftest.debug
12013 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports __thread" >&5
12014 $as_echo_n "checking if compiler supports __thread... " >&6; }
12015 if test $target_os = netbsd
12016 then
12017 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12018 /* end confdefs.h. */
12019 #include <pthread.h>
12020 #if __GNUC__ < 4 || ( __GNUC__ == 4 && __GNUC_MINOR__ < 5 )
12021 broken!
12022 #else
12023 __thread int x;
12024 #endif
12026 main ()
12030 return 0;
12032 _ACEOF
12033 if ac_fn_c_try_compile "$LINENO"; then :
12035 $as_echo "#define HAVE___THREAD 1" >>confdefs.h
12036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12037 $as_echo "yes" >&6; }
12038 else
12039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12040 $as_echo "no" >&6; }
12042 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12043 else
12044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12045 /* end confdefs.h. */
12046 #include <pthread.h>
12047 __thread int x;
12049 main ()
12053 return 0;
12055 _ACEOF
12056 if ac_fn_c_try_compile "$LINENO"; then :
12058 $as_echo "#define HAVE___THREAD 1" >>confdefs.h
12059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12060 $as_echo "yes" >&6; }
12061 else
12062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12063 $as_echo "no" >&6; }
12065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_barrier_t in pthread.h" >&5
12069 $as_echo_n "checking for pthread_barrier_t in pthread.h... " >&6; }
12070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12071 /* end confdefs.h. */
12072 #include <pthread.h>
12074 main ()
12076 pthread_barrier_t mybarrier;
12078 return 0;
12080 _ACEOF
12081 if ac_fn_c_try_compile "$LINENO"; then :
12083 $as_echo "#define HAVE_PTHREAD_BARRIER_T 1" >>confdefs.h
12084 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12085 $as_echo "yes" >&6; }
12086 else
12087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12088 $as_echo "no" >&6; }
12090 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sizeof suseconds_t" >&5
12095 $as_echo_n "checking sizeof suseconds_t... " >&6; }
12096 if test "$cross_compiling" = "yes"; then
12097 ans=$sizeof_suseconds_t
12098 echo "cross-compile -> \"$ans\"" >&5
12099 else
12100 cat <<End-of-File >conftest.c
12101 #include <sys/time.h>
12102 main() { printf("%d", (int)sizeof(suseconds_t)); }
12103 End-of-File
12104 (eval $ac_compile) 2>&5
12105 (eval $ac_link) 2>&5
12106 ans=`./conftest`
12107 echo "./conftest -> \"$ans\"" >&5
12108 rm -rf conftest conftest.*
12110 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
12111 $as_echo "$ans" >&6; }
12113 cat >>confdefs.h <<_ACEOF
12114 #define SIZEOF_SUSECONDS_T $ans
12115 _ACEOF
12118 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sizeof time_t" >&5
12119 $as_echo_n "checking sizeof time_t... " >&6; }
12120 if test "$cross_compiling" = "yes"; then
12121 ans=$sizeof_time_t
12122 echo "cross-compile -> \"$ans\"" >&5
12123 else
12124 cat <<End-of-File >conftest.c
12125 #include <sys/time.h>
12126 main() { printf("%d", (int)sizeof(time_t)); }
12127 End-of-File
12128 (eval $ac_compile) 2>&5
12129 (eval $ac_link) 2>&5
12130 ans=`./conftest`
12131 echo "./conftest -> \"$ans\"" >&5
12132 rm -rf conftest conftest.*
12134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
12135 $as_echo "$ans" >&6; }
12137 cat >>confdefs.h <<_ACEOF
12138 #define SIZEOF_TIME_T $ans
12139 _ACEOF
12142 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sizeof long" >&5
12143 $as_echo_n "checking sizeof long... " >&6; }
12144 if test "$cross_compiling" = "yes"; then
12145 ans=$sizeof_long
12146 echo "cross-compile -> \"$ans\"" >&5
12147 else
12148 cat <<End-of-File >conftest.c
12149 #include <stdio.h>
12150 main() { printf("%d", (int)sizeof(long)); }
12151 End-of-File
12152 (eval $ac_compile) 2>&5
12153 (eval $ac_link) 2>&5
12154 ans=`./conftest`
12155 echo "./conftest -> \"$ans\"" >&5
12157 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
12158 $as_echo "$ans" >&6; }
12159 if test "$ans" = 4; then
12161 $as_echo "#define HAVE_32BIT_LONG 1" >>confdefs.h
12163 elif test "$ans" = 8; then
12165 $as_echo "#define HAVE_64BIT_LONG 1" >>confdefs.h
12167 else
12168 echo
12169 echo "FATAL ERROR: size of long is not 32 or 64 bits, cannot proceed."
12170 echo "sizeof(char *) -> $ans"
12171 rm -rf conftest conftest.*
12172 exit 1
12174 rm -rf conftest conftest.*
12176 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sizeof pointer" >&5
12177 $as_echo_n "checking sizeof pointer... " >&6; }
12178 if test "$cross_compiling" = "yes"; then
12179 ans=$sizeof_pointer
12180 echo "cross-compile -> \"$ans\"" >&5
12181 else
12182 cat <<End-of-File >conftest.c
12183 #include <stdio.h>
12184 main() { printf("%d", (int)sizeof(char *)); }
12185 End-of-File
12186 (eval $ac_compile) 2>&5
12187 (eval $ac_link) 2>&5
12188 ans=`./conftest`
12189 echo "./conftest -> \"$ans\"" >&5
12191 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
12192 $as_echo "$ans" >&6; }
12193 if test "$ans" = 4; then
12195 $as_echo "#define HAVE_32BIT_PTR 1" >>confdefs.h
12197 PCP_PTR_SIZE=32
12198 elif test "$ans" = 8; then
12200 $as_echo "#define HAVE_64BIT_PTR 1" >>confdefs.h
12202 PCP_PTR_SIZE=64
12203 else
12204 echo
12205 echo "FATAL ERROR: size of pointer is not 32 or 64 bits, cannot proceed."
12206 echo "sizeof(char *) -> $ans"
12207 rm -rf conftest conftest.*
12208 exit 1
12210 rm -rf conftest conftest.*
12212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sizeof int" >&5
12213 $as_echo_n "checking sizeof int... " >&6; }
12214 if test "$cross_compiling" = "yes"; then
12215 ans=$sizeof_int
12216 echo "cross-compile -> \"$ans\"" >&5
12217 else
12218 cat <<End-of-File >conftest.c
12219 #include <stdio.h>
12220 main() { printf("%d", (int)sizeof(int)); }
12221 End-of-File
12222 (eval $ac_compile) 2>&5
12223 (eval $ac_link) 2>&5
12224 ans=`./conftest`
12225 echo "./conftest -> \"$ans\"" >&5
12227 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
12228 $as_echo "$ans" >&6; }
12229 if test "$ans" != 4
12230 then
12231 echo
12232 echo "FATAL ERROR: sizeof(int) is not 32 bits, cannot proceed."
12233 echo "Note: 32-bit ints are assumed in the PCP external file formats and"
12234 echo " the over-the-wire PDU formats"
12235 rm -rf conftest conftest.*
12236 exit 1
12238 rm -rf conftest conftest.*
12240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bit fields allocated left-to-right" >&5
12241 $as_echo_n "checking if bit fields allocated left-to-right... " >&6; }
12242 if test "$cross_compiling" = "yes"; then
12243 ans=$bit_field_scheme
12244 echo "cross-compile -> \"$ans\"" >&5
12245 else
12246 cat <<End-of-File >conftest.c
12247 union { struct { unsigned int b:4; unsigned int c:4; } a; int p; } u;
12248 main() { u.a.b = 1; u.a.c = 2; printf("%0*x", 2*sizeof(int), u.p); }
12249 End-of-File
12250 (eval $ac_compile) 2>&5
12251 (eval $ac_link) 2>&5
12252 ans=`./conftest`
12253 echo "./conftest -> \"$ans\"" >&5
12255 case "$ans"
12257 1200*|*0012)
12258 # left-to-right starting from MSB (SGI cc on MIPS), or
12259 # left-to-right ending at LSB
12261 $as_echo "#define HAVE_BITFIELDS_LTOR 1" >>confdefs.h
12263 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12264 $as_echo "yes" >&6; }
12266 2100*|*0021)
12267 # right-to-left ending at MSB, or
12268 # right-to-left starting from LSB (gcc in Intel)
12269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12270 $as_echo "no" >&6; }
12273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
12274 $as_echo "unknown" >&6; }
12275 echo "FATAL ERROR: could not fathom your compiler's bit field allocation scheme"
12276 rm -f conftest conftest.*
12277 exit 1
12279 esac
12280 rm -rf conftest conftest.*
12282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12283 /* end confdefs.h. */
12285 #include <stdlib.h>
12286 #include <unistd.h>
12289 main ()
12292 __uint64_t x = 0;
12293 double y = (double)x;
12296 return 0;
12298 _ACEOF
12299 if ac_fn_c_try_link "$LINENO"; then :
12301 $as_echo "#define HAVE_CAST_U64_DOUBLE 1" >>confdefs.h
12304 rm -f core conftest.err conftest.$ac_objext \
12305 conftest$ac_exeext conftest.$ac_ext
12307 for ac_func in basename
12308 do :
12309 ac_fn_c_check_func "$LINENO" "basename" "ac_cv_func_basename"
12310 if test "x$ac_cv_func_basename" = xyes; then :
12311 cat >>confdefs.h <<_ACEOF
12312 #define HAVE_BASENAME 1
12313 _ACEOF
12316 done
12318 if test $ac_cv_func_basename = yes
12319 then
12321 $as_echo "#define HAVE_BASENAME 1" >>confdefs.h
12324 $as_echo "#define HAVE_DIRNAME 1" >>confdefs.h
12326 lib_for_basename=""
12327 else
12328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for basename in -lgen" >&5
12329 $as_echo_n "checking for basename in -lgen... " >&6; }
12330 if ${ac_cv_lib_gen_basename+:} false; then :
12331 $as_echo_n "(cached) " >&6
12332 else
12333 ac_check_lib_save_LIBS=$LIBS
12334 LIBS="-lgen $LIBS"
12335 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12336 /* end confdefs.h. */
12338 /* Override any GCC internal prototype to avoid an error.
12339 Use char because int might match the return type of a GCC
12340 builtin and then its argument prototype would still apply. */
12341 #ifdef __cplusplus
12342 extern "C"
12343 #endif
12344 char basename ();
12346 main ()
12348 return basename ();
12350 return 0;
12352 _ACEOF
12353 if ac_fn_c_try_link "$LINENO"; then :
12354 ac_cv_lib_gen_basename=yes
12355 else
12356 ac_cv_lib_gen_basename=no
12358 rm -f core conftest.err conftest.$ac_objext \
12359 conftest$ac_exeext conftest.$ac_ext
12360 LIBS=$ac_check_lib_save_LIBS
12362 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_basename" >&5
12363 $as_echo "$ac_cv_lib_gen_basename" >&6; }
12364 if test "x$ac_cv_lib_gen_basename" = xyes; then :
12365 cat >>confdefs.h <<_ACEOF
12366 #define HAVE_LIBGEN 1
12367 _ACEOF
12369 LIBS="-lgen $LIBS"
12373 if test $ac_cv_lib_gen_basename = yes
12374 then
12376 $as_echo "#define HAVE_BASENAME 1" >>confdefs.h
12379 $as_echo "#define HAVE_DIRNAME 1" >>confdefs.h
12381 lib_for_basename="-lgen"
12382 else
12383 lib_for_basename="-lpcp"
12388 lib_for_clock_gettime=
12389 for ac_func in clock_gettime
12390 do :
12391 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
12392 if test "x$ac_cv_func_clock_gettime" = xyes; then :
12393 cat >>confdefs.h <<_ACEOF
12394 #define HAVE_CLOCK_GETTIME 1
12395 _ACEOF
12398 done
12400 if test $ac_cv_func_clock_gettime = no
12401 then
12402 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
12403 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
12404 if ${ac_cv_lib_rt_clock_gettime+:} false; then :
12405 $as_echo_n "(cached) " >&6
12406 else
12407 ac_check_lib_save_LIBS=$LIBS
12408 LIBS="-lrt $LIBS"
12409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12410 /* end confdefs.h. */
12412 /* Override any GCC internal prototype to avoid an error.
12413 Use char because int might match the return type of a GCC
12414 builtin and then its argument prototype would still apply. */
12415 #ifdef __cplusplus
12416 extern "C"
12417 #endif
12418 char clock_gettime ();
12420 main ()
12422 return clock_gettime ();
12424 return 0;
12426 _ACEOF
12427 if ac_fn_c_try_link "$LINENO"; then :
12428 ac_cv_lib_rt_clock_gettime=yes
12429 else
12430 ac_cv_lib_rt_clock_gettime=no
12432 rm -f core conftest.err conftest.$ac_objext \
12433 conftest$ac_exeext conftest.$ac_ext
12434 LIBS=$ac_check_lib_save_LIBS
12436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
12437 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
12438 if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
12439 cat >>confdefs.h <<_ACEOF
12440 #define HAVE_LIBRT 1
12441 _ACEOF
12443 LIBS="-lrt $LIBS"
12447 if test $ac_cv_lib_rt_clock_gettime = yes
12448 then
12450 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
12452 lib_for_rt=-lrt
12457 lib_for_dlopen=
12458 for ac_func in dlopen
12459 do :
12460 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12461 if test "x$ac_cv_func_dlopen" = xyes; then :
12462 cat >>confdefs.h <<_ACEOF
12463 #define HAVE_DLOPEN 1
12464 _ACEOF
12467 done
12469 if test $ac_cv_func_dlopen = no
12470 then
12471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12472 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12473 if ${ac_cv_lib_dl_dlopen+:} false; then :
12474 $as_echo_n "(cached) " >&6
12475 else
12476 ac_check_lib_save_LIBS=$LIBS
12477 LIBS="-ldl $LIBS"
12478 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12479 /* end confdefs.h. */
12481 /* Override any GCC internal prototype to avoid an error.
12482 Use char because int might match the return type of a GCC
12483 builtin and then its argument prototype would still apply. */
12484 #ifdef __cplusplus
12485 extern "C"
12486 #endif
12487 char dlopen ();
12489 main ()
12491 return dlopen ();
12493 return 0;
12495 _ACEOF
12496 if ac_fn_c_try_link "$LINENO"; then :
12497 ac_cv_lib_dl_dlopen=yes
12498 else
12499 ac_cv_lib_dl_dlopen=no
12501 rm -f core conftest.err conftest.$ac_objext \
12502 conftest$ac_exeext conftest.$ac_ext
12503 LIBS=$ac_check_lib_save_LIBS
12505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12506 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12507 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12508 cat >>confdefs.h <<_ACEOF
12509 #define HAVE_LIBDL 1
12510 _ACEOF
12512 LIBS="-ldl $LIBS"
12516 if test $ac_cv_lib_dl_dlopen = yes
12517 then
12519 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
12521 lib_for_dlopen=-ldl
12526 lib_for_math=
12527 for ac_func in flog10
12528 do :
12529 ac_fn_c_check_func "$LINENO" "flog10" "ac_cv_func_flog10"
12530 if test "x$ac_cv_func_flog10" = xyes; then :
12531 cat >>confdefs.h <<_ACEOF
12532 #define HAVE_FLOG10 1
12533 _ACEOF
12536 done
12538 if test $ac_cv_func_flog10 = no
12539 then
12540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flog10 in -lm" >&5
12541 $as_echo_n "checking for flog10 in -lm... " >&6; }
12542 if ${ac_cv_lib_m_flog10+:} false; then :
12543 $as_echo_n "(cached) " >&6
12544 else
12545 ac_check_lib_save_LIBS=$LIBS
12546 LIBS="-lm $LIBS"
12547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12548 /* end confdefs.h. */
12550 /* Override any GCC internal prototype to avoid an error.
12551 Use char because int might match the return type of a GCC
12552 builtin and then its argument prototype would still apply. */
12553 #ifdef __cplusplus
12554 extern "C"
12555 #endif
12556 char flog10 ();
12558 main ()
12560 return flog10 ();
12562 return 0;
12564 _ACEOF
12565 if ac_fn_c_try_link "$LINENO"; then :
12566 ac_cv_lib_m_flog10=yes
12567 else
12568 ac_cv_lib_m_flog10=no
12570 rm -f core conftest.err conftest.$ac_objext \
12571 conftest$ac_exeext conftest.$ac_ext
12572 LIBS=$ac_check_lib_save_LIBS
12574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_flog10" >&5
12575 $as_echo "$ac_cv_lib_m_flog10" >&6; }
12576 if test "x$ac_cv_lib_m_flog10" = xyes; then :
12577 cat >>confdefs.h <<_ACEOF
12578 #define HAVE_LIBM 1
12579 _ACEOF
12581 LIBS="-lm $LIBS"
12585 if test $ac_cv_lib_m_flog10 = yes
12586 then
12588 $as_echo "#define HAVE_FLOG10 1" >>confdefs.h
12590 lib_for_math=-lm
12592 else
12594 $as_echo "#define HAVE_FLOG10 1" >>confdefs.h
12597 for ac_func in pow
12598 do :
12599 ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
12600 if test "x$ac_cv_func_pow" = xyes; then :
12601 cat >>confdefs.h <<_ACEOF
12602 #define HAVE_POW 1
12603 _ACEOF
12606 done
12608 if test $ac_cv_func_pow = no
12609 then
12610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
12611 $as_echo_n "checking for pow in -lm... " >&6; }
12612 if ${ac_cv_lib_m_pow+:} false; then :
12613 $as_echo_n "(cached) " >&6
12614 else
12615 ac_check_lib_save_LIBS=$LIBS
12616 LIBS="-lm $LIBS"
12617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12618 /* end confdefs.h. */
12620 /* Override any GCC internal prototype to avoid an error.
12621 Use char because int might match the return type of a GCC
12622 builtin and then its argument prototype would still apply. */
12623 #ifdef __cplusplus
12624 extern "C"
12625 #endif
12626 char pow ();
12628 main ()
12630 return pow ();
12632 return 0;
12634 _ACEOF
12635 if ac_fn_c_try_link "$LINENO"; then :
12636 ac_cv_lib_m_pow=yes
12637 else
12638 ac_cv_lib_m_pow=no
12640 rm -f core conftest.err conftest.$ac_objext \
12641 conftest$ac_exeext conftest.$ac_ext
12642 LIBS=$ac_check_lib_save_LIBS
12644 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
12645 $as_echo "$ac_cv_lib_m_pow" >&6; }
12646 if test "x$ac_cv_lib_m_pow" = xyes; then :
12647 cat >>confdefs.h <<_ACEOF
12648 #define HAVE_LIBM 1
12649 _ACEOF
12651 LIBS="-lm $LIBS"
12655 if test $ac_cv_lib_m_pow = yes
12656 then
12658 $as_echo "#define HAVE_POW 1" >>confdefs.h
12660 lib_for_math=-lm
12662 else
12664 $as_echo "#define HAVE_POW 1" >>confdefs.h
12667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpclassify()" >&5
12668 $as_echo_n "checking for fpclassify()... " >&6; }
12669 ac_cv_func_fpclassify=no
12670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12671 /* end confdefs.h. */
12673 #include <math.h>
12676 main ()
12679 double x = 123.456;
12680 if (fpclassify(x) == FP_NAN) exit(1);
12683 return 0;
12685 _ACEOF
12686 if ac_fn_c_try_link "$LINENO"; then :
12687 ac_cv_func_fpclassify=yes
12689 rm -f core conftest.err conftest.$ac_objext \
12690 conftest$ac_exeext conftest.$ac_ext
12691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fpclassify" >&5
12692 $as_echo "$ac_cv_func_fpclassify" >&6; }
12693 if test $ac_cv_func_fpclassify = no
12694 then
12695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpclassify() with -lm" >&5
12696 $as_echo_n "checking for fpclassify() with -lm... " >&6; }
12697 savedLIBS=$LIBS
12698 LIBS=-lm
12699 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12700 /* end confdefs.h. */
12702 #include <math.h>
12705 main ()
12708 double x = 123.456;
12709 if (fpclassify(x) == FP_NAN) exit(1);
12712 return 0;
12714 _ACEOF
12715 if ac_fn_c_try_link "$LINENO"; then :
12716 ac_cv_func_fpclassify=yes
12718 rm -f core conftest.err conftest.$ac_objext \
12719 conftest$ac_exeext conftest.$ac_ext
12720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fpclassify" >&5
12721 $as_echo "$ac_cv_func_fpclassify" >&6; }
12722 if test $ac_cv_func_fpclassify = yes
12723 then
12724 lib_for_math=-lm
12726 LIBS=$savedLIBS
12728 if test $ac_cv_func_fpclassify = yes
12729 then
12731 $as_echo "#define HAVE_FPCLASSIFY 1" >>confdefs.h
12733 else
12734 for ac_func in isnan
12735 do :
12736 ac_fn_c_check_func "$LINENO" "isnan" "ac_cv_func_isnan"
12737 if test "x$ac_cv_func_isnan" = xyes; then :
12738 cat >>confdefs.h <<_ACEOF
12739 #define HAVE_ISNAN 1
12740 _ACEOF
12743 done
12745 if test $ac_cv_func_isnan = no
12746 then
12747 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan in -lm" >&5
12748 $as_echo_n "checking for isnan in -lm... " >&6; }
12749 if ${ac_cv_lib_m_isnan+:} false; then :
12750 $as_echo_n "(cached) " >&6
12751 else
12752 ac_check_lib_save_LIBS=$LIBS
12753 LIBS="-lm $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 isnan ();
12765 main ()
12767 return isnan ();
12769 return 0;
12771 _ACEOF
12772 if ac_fn_c_try_link "$LINENO"; then :
12773 ac_cv_lib_m_isnan=yes
12774 else
12775 ac_cv_lib_m_isnan=no
12777 rm -f core conftest.err conftest.$ac_objext \
12778 conftest$ac_exeext conftest.$ac_ext
12779 LIBS=$ac_check_lib_save_LIBS
12781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_isnan" >&5
12782 $as_echo "$ac_cv_lib_m_isnan" >&6; }
12783 if test "x$ac_cv_lib_m_isnan" = xyes; then :
12784 cat >>confdefs.h <<_ACEOF
12785 #define HAVE_LIBM 1
12786 _ACEOF
12788 LIBS="-lm $LIBS"
12792 if test $ac_cv_lib_m_isnan = yes
12793 then
12795 $as_echo "#define HAVE_ISNAN 1" >>confdefs.h
12797 lib_for_math=-lm
12800 for ac_func in isnanf
12801 do :
12802 ac_fn_c_check_func "$LINENO" "isnanf" "ac_cv_func_isnanf"
12803 if test "x$ac_cv_func_isnanf" = xyes; then :
12804 cat >>confdefs.h <<_ACEOF
12805 #define HAVE_ISNANF 1
12806 _ACEOF
12809 done
12811 if test $ac_cv_func_isnanf = no
12812 then
12813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnanf in -lm" >&5
12814 $as_echo_n "checking for isnanf in -lm... " >&6; }
12815 if ${ac_cv_lib_m_isnanf+:} false; then :
12816 $as_echo_n "(cached) " >&6
12817 else
12818 ac_check_lib_save_LIBS=$LIBS
12819 LIBS="-lm $LIBS"
12820 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12821 /* end confdefs.h. */
12823 /* Override any GCC internal prototype to avoid an error.
12824 Use char because int might match the return type of a GCC
12825 builtin and then its argument prototype would still apply. */
12826 #ifdef __cplusplus
12827 extern "C"
12828 #endif
12829 char isnanf ();
12831 main ()
12833 return isnanf ();
12835 return 0;
12837 _ACEOF
12838 if ac_fn_c_try_link "$LINENO"; then :
12839 ac_cv_lib_m_isnanf=yes
12840 else
12841 ac_cv_lib_m_isnanf=no
12843 rm -f core conftest.err conftest.$ac_objext \
12844 conftest$ac_exeext conftest.$ac_ext
12845 LIBS=$ac_check_lib_save_LIBS
12847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_isnanf" >&5
12848 $as_echo "$ac_cv_lib_m_isnanf" >&6; }
12849 if test "x$ac_cv_lib_m_isnanf" = xyes; then :
12850 cat >>confdefs.h <<_ACEOF
12851 #define HAVE_LIBM 1
12852 _ACEOF
12854 LIBS="-lm $LIBS"
12858 if test $ac_cv_lib_m_isnanf = yes
12859 then
12861 $as_echo "#define HAVE_ISNANF 1" >>confdefs.h
12863 lib_for_math=-lm
12869 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12870 /* end confdefs.h. */
12871 #include <signal.h>
12873 main ()
12875 SIG_PF x;
12877 return 0;
12879 _ACEOF
12880 if ac_fn_c_try_link "$LINENO"; then :
12882 $as_echo "#define HAVE_SIGPF 1" >>confdefs.h
12885 rm -f core conftest.err conftest.$ac_objext \
12886 conftest$ac_exeext conftest.$ac_ext
12888 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12889 /* end confdefs.h. */
12890 #include <signal.h>
12892 main ()
12894 int x = SA_SIGINFO;
12896 return 0;
12898 _ACEOF
12899 if ac_fn_c_try_link "$LINENO"; then :
12901 $as_echo "#define HAVE_SA_SIGINFO 1" >>confdefs.h
12904 rm -f core conftest.err conftest.$ac_objext \
12905 conftest$ac_exeext conftest.$ac_ext
12907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12908 /* end confdefs.h. */
12909 #include <signal.h>
12911 main ()
12913 int x = SIGPIPE;
12915 return 0;
12917 _ACEOF
12918 if ac_fn_c_try_link "$LINENO"; then :
12920 $as_echo "#define HAVE_SIGPIPE 1" >>confdefs.h
12923 rm -f core conftest.err conftest.$ac_objext \
12924 conftest$ac_exeext conftest.$ac_ext
12926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12927 /* end confdefs.h. */
12928 #include <signal.h>
12930 main ()
12932 int x = SIGHUP;
12934 return 0;
12936 _ACEOF
12937 if ac_fn_c_try_link "$LINENO"; then :
12939 $as_echo "#define HAVE_SIGHUP 1" >>confdefs.h
12942 rm -f core conftest.err conftest.$ac_objext \
12943 conftest$ac_exeext conftest.$ac_ext
12945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12946 /* end confdefs.h. */
12947 #include <signal.h>
12949 main ()
12951 int x = SIGBUS;
12953 return 0;
12955 _ACEOF
12956 if ac_fn_c_try_link "$LINENO"; then :
12958 $as_echo "#define HAVE_SIGBUS 1" >>confdefs.h
12961 rm -f core conftest.err conftest.$ac_objext \
12962 conftest$ac_exeext conftest.$ac_ext
12964 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12965 /* end confdefs.h. */
12966 #include <sys/wait.h>
12968 main ()
12970 typedef void (*SIGRET)(int);
12971 SIGRET x = SIG_IGN;
12974 return 0;
12976 _ACEOF
12977 if ac_fn_c_try_link "$LINENO"; then :
12979 $as_echo "#define HAVE_WAIT_INCLUDES_SIGNAL 1" >>confdefs.h
12982 rm -f core conftest.err conftest.$ac_objext \
12983 conftest$ac_exeext conftest.$ac_ext
12985 have_stat_type=false
12986 have_stat_name=false
12987 if test $have_stat_name = false
12988 then
12989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12990 /* end confdefs.h. */
12991 #include <sys/stat.h>
12993 _ACEOF
12994 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12995 $EGREP "[ ]st_mtimespec" >/dev/null 2>&1; then :
12996 have_stat_name=true;
12998 $as_echo "#define HAVE_ST_MTIME_WITH_SPEC 1" >>confdefs.h
13001 rm -f conftest*
13004 if test $have_stat_name = false -a $target_os != darwin -a $target_os != linux -a $target_os != kfreebsd -a $target_os != netbsd
13005 then
13006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13007 /* end confdefs.h. */
13008 #include <sys/stat.h>
13010 _ACEOF
13011 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13012 $EGREP "[ ]st_mtime" >/dev/null 2>&1; then :
13013 have_stat_name=true;
13015 $as_echo "#define HAVE_ST_MTIME_WITH_E 1" >>confdefs.h
13018 rm -f conftest*
13021 if test $have_stat_type = false
13022 then
13023 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13024 /* end confdefs.h. */
13025 #include <sys/stat.h>
13027 _ACEOF
13028 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13029 $EGREP "timestruc_t[ ][ ]*st_mtim" >/dev/null 2>&1; then :
13030 have_stat_type=true;
13032 $as_echo "#define HAVE_STAT_TIMESTRUC 1" >>confdefs.h
13035 rm -f conftest*
13038 if test $have_stat_type = false
13039 then
13040 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13041 /* end confdefs.h. */
13042 #include <sys/stat.h>
13044 _ACEOF
13045 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13046 $EGREP "timespec_t[ ][ ]*st_mtim" >/dev/null 2>&1; then :
13047 have_stat_type=true;
13049 $as_echo "#define HAVE_STAT_TIMESPEC_T 1" >>confdefs.h
13052 rm -f conftest*
13055 if test $have_stat_type = false
13056 then
13057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13058 /* end confdefs.h. */
13059 #include <sys/stat.h>
13061 _ACEOF
13062 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13063 $EGREP "timespec[ ][ ]*st_mtim" >/dev/null 2>&1; then :
13064 have_stat_type=true;
13066 $as_echo "#define HAVE_STAT_TIMESPEC 1" >>confdefs.h
13069 rm -f conftest*
13072 if test $have_stat_type = false
13073 then
13074 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13075 /* end confdefs.h. */
13076 #include <sys/stat.h>
13078 _ACEOF
13079 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13080 $EGREP "time_t[ ][ ]*st_mtim" >/dev/null 2>&1; then :
13081 have_stat_type=true;
13083 $as_echo "#define HAVE_STAT_TIME_T 1" >>confdefs.h
13086 rm -f conftest*
13089 if test $have_stat_type = false
13090 then
13091 echo 'FATAL ERROR: Cannot determine struct stat time types.'
13092 rm -rf conftest conftest.*
13093 exit 1
13097 pcp_etc_dir=`eval echo $sysconfdir`
13098 pcp_etc_dir=`eval echo $pcp_etc_dir`
13100 pcp_saslconf_dir=`eval echo $sysconfdir/sasl2`
13101 pcp_saslconf_dir=`eval echo $pcp_saslconf_dir`
13103 pcp_sysconf_dir=`eval echo $sysconfdir/pcp`
13104 pcp_sysconf_dir=`eval echo $pcp_sysconf_dir`
13106 pcp_pmcdconf_path=$pcp_sysconf_dir/pmcd/pmcd.conf
13107 pcp_pmcdrclocal_path=$pcp_sysconf_dir/pmcd/rc.local
13108 pcp_pmcdoptions_path=$pcp_sysconf_dir/pmcd/pmcd.options
13109 pcp_pmwebdoptions_path=$pcp_sysconf_dir/pmwebd/pmwebd.options
13110 pcp_pmmgroptions_path=$pcp_sysconf_dir/pmmgr/pmmgr.options
13111 pcp_pmproxyoptions_path=$pcp_sysconf_dir/pmproxy/pmproxy.options
13112 pcp_pmiecontrol_path=$pcp_sysconf_dir/pmie/control
13113 pcp_pmsnapcontrol_path=$pcp_sysconf_dir/pmsnap/control
13114 pcp_pmloggercontrol_path=$pcp_sysconf_dir/pmlogger/control
13125 pcp_share_dir=`eval echo $datarootdir/pcp`
13126 pcp_share_dir=`eval echo $pcp_share_dir`
13129 pcp_binadm_dir=`eval echo $libexecdir/pcp/bin`
13130 pcp_binadm_dir=`eval echo $pcp_binadm_dir`
13133 pcp_var_dir=`eval echo $localstatedir/lib/pcp`
13134 pcp_var_dir=`eval echo $pcp_var_dir`
13138 # Check whether --with-configdir was given.
13139 if test "${with_configdir+set}" = set; then :
13140 withval=$with_configdir; pcp_config_dir=$withval
13141 else
13142 pcp_config_dir=$pcp_var_dir/config
13146 pcp_pmdas_dir=$pcp_var_dir/pmdas
13149 pcp_lib_dir=`eval echo $libdir`
13150 pcp_lib_dir=`eval echo $pcp_lib_dir`
13151 pcp_lib32_dir=`echo $pcp_lib_dir | sed -e s,64,, -e s,//,/,`
13156 # Check whether --with-perl_installdirs was given.
13157 if test "${with_perl_installdirs+set}" = set; then :
13158 withval=$with_perl_installdirs; perl_installdirs=$withval
13159 else
13160 perl_installdirs=vendor
13163 perl_installdirs=`eval echo $perl_installdirs`
13164 perl_installdirs=`eval echo $perl_installdirs`
13167 # Check whether --with-perl_install_base was given.
13168 if test "${with_perl_install_base+set}" = set; then :
13169 withval=$with_perl_install_base; perl_install_base=$withval
13170 else
13171 perl_install_base=$prefix
13174 perl_install_base=`eval echo $perl_install_base`
13175 perl_install_base=`eval echo $perl_install_base`
13179 # Check whether --with-python_prefix was given.
13180 if test "${with_python_prefix+set}" = set; then :
13181 withval=$with_python_prefix; python_prefix=$withval
13182 else
13183 python_prefix=$prefix
13186 python_prefix=`eval echo $python_prefix`
13187 python_prefix=`eval echo $python_prefix`
13190 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
13191 $as_echo_n "checking for X... " >&6; }
13194 # Check whether --with-x was given.
13195 if test "${with_x+set}" = set; then :
13196 withval=$with_x;
13199 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
13200 if test "x$with_x" = xno; then
13201 # The user explicitly disabled X.
13202 have_x=disabled
13203 else
13204 case $x_includes,$x_libraries in #(
13205 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
13206 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
13207 $as_echo_n "(cached) " >&6
13208 else
13209 # One or both of the vars are not set, and there is no cached value.
13210 ac_x_includes=no ac_x_libraries=no
13211 rm -f -r conftest.dir
13212 if mkdir conftest.dir; then
13213 cd conftest.dir
13214 cat >Imakefile <<'_ACEOF'
13215 incroot:
13216 @echo incroot='${INCROOT}'
13217 usrlibdir:
13218 @echo usrlibdir='${USRLIBDIR}'
13219 libdir:
13220 @echo libdir='${LIBDIR}'
13221 _ACEOF
13222 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
13223 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
13224 for ac_var in incroot usrlibdir libdir; do
13225 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
13226 done
13227 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
13228 for ac_extension in a so sl dylib la dll; do
13229 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
13230 test -f "$ac_im_libdir/libX11.$ac_extension"; then
13231 ac_im_usrlibdir=$ac_im_libdir; break
13233 done
13234 # Screen out bogus values from the imake configuration. They are
13235 # bogus both because they are the default anyway, and because
13236 # using them would break gcc on systems where it needs fixed includes.
13237 case $ac_im_incroot in
13238 /usr/include) ac_x_includes= ;;
13239 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
13240 esac
13241 case $ac_im_usrlibdir in
13242 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
13243 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
13244 esac
13246 cd ..
13247 rm -f -r conftest.dir
13250 # Standard set of common directories for X headers.
13251 # Check X11 before X11Rn because it is often a symlink to the current release.
13252 ac_x_header_dirs='
13253 /usr/X11/include
13254 /usr/X11R7/include
13255 /usr/X11R6/include
13256 /usr/X11R5/include
13257 /usr/X11R4/include
13259 /usr/include/X11
13260 /usr/include/X11R7
13261 /usr/include/X11R6
13262 /usr/include/X11R5
13263 /usr/include/X11R4
13265 /usr/local/X11/include
13266 /usr/local/X11R7/include
13267 /usr/local/X11R6/include
13268 /usr/local/X11R5/include
13269 /usr/local/X11R4/include
13271 /usr/local/include/X11
13272 /usr/local/include/X11R7
13273 /usr/local/include/X11R6
13274 /usr/local/include/X11R5
13275 /usr/local/include/X11R4
13277 /usr/X386/include
13278 /usr/x386/include
13279 /usr/XFree86/include/X11
13281 /usr/include
13282 /usr/local/include
13283 /usr/unsupported/include
13284 /usr/athena/include
13285 /usr/local/x11r5/include
13286 /usr/lpp/Xamples/include
13288 /usr/openwin/include
13289 /usr/openwin/share/include'
13291 if test "$ac_x_includes" = no; then
13292 # Guess where to find include files, by looking for Xlib.h.
13293 # First, try using that file with no special directory specified.
13294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13295 /* end confdefs.h. */
13296 #include <X11/Xlib.h>
13297 _ACEOF
13298 if ac_fn_c_try_cpp "$LINENO"; then :
13299 # We can compile using X headers with no special include directory.
13300 ac_x_includes=
13301 else
13302 for ac_dir in $ac_x_header_dirs; do
13303 if test -r "$ac_dir/X11/Xlib.h"; then
13304 ac_x_includes=$ac_dir
13305 break
13307 done
13309 rm -f conftest.err conftest.i conftest.$ac_ext
13310 fi # $ac_x_includes = no
13312 if test "$ac_x_libraries" = no; then
13313 # Check for the libraries.
13314 # See if we find them without any special options.
13315 # Don't add to $LIBS permanently.
13316 ac_save_LIBS=$LIBS
13317 LIBS="-lX11 $LIBS"
13318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13319 /* end confdefs.h. */
13320 #include <X11/Xlib.h>
13322 main ()
13324 XrmInitialize ()
13326 return 0;
13328 _ACEOF
13329 if ac_fn_c_try_link "$LINENO"; then :
13330 LIBS=$ac_save_LIBS
13331 # We can link X programs with no special library path.
13332 ac_x_libraries=
13333 else
13334 LIBS=$ac_save_LIBS
13335 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
13337 # Don't even attempt the hair of trying to link an X program!
13338 for ac_extension in a so sl dylib la dll; do
13339 if test -r "$ac_dir/libX11.$ac_extension"; then
13340 ac_x_libraries=$ac_dir
13341 break 2
13343 done
13344 done
13346 rm -f core conftest.err conftest.$ac_objext \
13347 conftest$ac_exeext conftest.$ac_ext
13348 fi # $ac_x_libraries = no
13350 case $ac_x_includes,$ac_x_libraries in #(
13351 no,* | *,no | *\'*)
13352 # Didn't find X, or a directory has "'" in its name.
13353 ac_cv_have_x="have_x=no";; #(
13355 # Record where we found X for the cache.
13356 ac_cv_have_x="have_x=yes\
13357 ac_x_includes='$ac_x_includes'\
13358 ac_x_libraries='$ac_x_libraries'"
13359 esac
13361 ;; #(
13362 *) have_x=yes;;
13363 esac
13364 eval "$ac_cv_have_x"
13365 fi # $with_x != no
13367 if test "$have_x" != yes; then
13368 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
13369 $as_echo "$have_x" >&6; }
13370 no_x=yes
13371 else
13372 # If each of the values was on the command line, it overrides each guess.
13373 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
13374 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
13375 # Update the cache value to reflect the command line values.
13376 ac_cv_have_x="have_x=yes\
13377 ac_x_includes='$x_includes'\
13378 ac_x_libraries='$x_libraries'"
13379 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
13380 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
13383 if test "$no_x" = yes; then
13384 # Not all programs may use this symbol, but it does not hurt to define it.
13386 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
13388 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
13389 else
13390 if test -n "$x_includes"; then
13391 X_CFLAGS="$X_CFLAGS -I$x_includes"
13394 # It would also be nice to do this for all -L options, not just this one.
13395 if test -n "$x_libraries"; then
13396 X_LIBS="$X_LIBS -L$x_libraries"
13397 # For Solaris; some versions of Sun CC require a space after -R and
13398 # others require no space. Words are not sufficient . . . .
13399 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
13400 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
13401 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
13402 ac_xsave_c_werror_flag=$ac_c_werror_flag
13403 ac_c_werror_flag=yes
13404 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13405 /* end confdefs.h. */
13408 main ()
13412 return 0;
13414 _ACEOF
13415 if ac_fn_c_try_link "$LINENO"; then :
13416 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13417 $as_echo "no" >&6; }
13418 X_LIBS="$X_LIBS -R$x_libraries"
13419 else
13420 LIBS="$ac_xsave_LIBS -R $x_libraries"
13421 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13422 /* end confdefs.h. */
13425 main ()
13429 return 0;
13431 _ACEOF
13432 if ac_fn_c_try_link "$LINENO"; then :
13433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13434 $as_echo "yes" >&6; }
13435 X_LIBS="$X_LIBS -R $x_libraries"
13436 else
13437 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
13438 $as_echo "neither works" >&6; }
13440 rm -f core conftest.err conftest.$ac_objext \
13441 conftest$ac_exeext conftest.$ac_ext
13443 rm -f core conftest.err conftest.$ac_objext \
13444 conftest$ac_exeext conftest.$ac_ext
13445 ac_c_werror_flag=$ac_xsave_c_werror_flag
13446 LIBS=$ac_xsave_LIBS
13449 # Check for system-dependent libraries X programs must link with.
13450 # Do this before checking for the system-independent R6 libraries
13451 # (-lICE), since we may need -lsocket or whatever for X linking.
13453 if test "$ISC" = yes; then
13454 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
13455 else
13456 # Martyn Johnson says this is needed for Ultrix, if the X
13457 # libraries were built with DECnet support. And Karl Berry says
13458 # the Alpha needs dnet_stub (dnet does not exist).
13459 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
13460 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13461 /* end confdefs.h. */
13463 /* Override any GCC internal prototype to avoid an error.
13464 Use char because int might match the return type of a GCC
13465 builtin and then its argument prototype would still apply. */
13466 #ifdef __cplusplus
13467 extern "C"
13468 #endif
13469 char XOpenDisplay ();
13471 main ()
13473 return XOpenDisplay ();
13475 return 0;
13477 _ACEOF
13478 if ac_fn_c_try_link "$LINENO"; then :
13480 else
13481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
13482 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
13483 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
13484 $as_echo_n "(cached) " >&6
13485 else
13486 ac_check_lib_save_LIBS=$LIBS
13487 LIBS="-ldnet $LIBS"
13488 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13489 /* end confdefs.h. */
13491 /* Override any GCC internal prototype to avoid an error.
13492 Use char because int might match the return type of a GCC
13493 builtin and then its argument prototype would still apply. */
13494 #ifdef __cplusplus
13495 extern "C"
13496 #endif
13497 char dnet_ntoa ();
13499 main ()
13501 return dnet_ntoa ();
13503 return 0;
13505 _ACEOF
13506 if ac_fn_c_try_link "$LINENO"; then :
13507 ac_cv_lib_dnet_dnet_ntoa=yes
13508 else
13509 ac_cv_lib_dnet_dnet_ntoa=no
13511 rm -f core conftest.err conftest.$ac_objext \
13512 conftest$ac_exeext conftest.$ac_ext
13513 LIBS=$ac_check_lib_save_LIBS
13515 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
13516 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
13517 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
13518 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
13521 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
13522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
13523 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
13524 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
13525 $as_echo_n "(cached) " >&6
13526 else
13527 ac_check_lib_save_LIBS=$LIBS
13528 LIBS="-ldnet_stub $LIBS"
13529 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13530 /* end confdefs.h. */
13532 /* Override any GCC internal prototype to avoid an error.
13533 Use char because int might match the return type of a GCC
13534 builtin and then its argument prototype would still apply. */
13535 #ifdef __cplusplus
13536 extern "C"
13537 #endif
13538 char dnet_ntoa ();
13540 main ()
13542 return dnet_ntoa ();
13544 return 0;
13546 _ACEOF
13547 if ac_fn_c_try_link "$LINENO"; then :
13548 ac_cv_lib_dnet_stub_dnet_ntoa=yes
13549 else
13550 ac_cv_lib_dnet_stub_dnet_ntoa=no
13552 rm -f core conftest.err conftest.$ac_objext \
13553 conftest$ac_exeext conftest.$ac_ext
13554 LIBS=$ac_check_lib_save_LIBS
13556 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
13557 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
13558 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
13559 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
13564 rm -f core conftest.err conftest.$ac_objext \
13565 conftest$ac_exeext conftest.$ac_ext
13566 LIBS="$ac_xsave_LIBS"
13568 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
13569 # to get the SysV transport functions.
13570 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
13571 # needs -lnsl.
13572 # The nsl library prevents programs from opening the X display
13573 # on Irix 5.2, according to T.E. Dickey.
13574 # The functions gethostbyname, getservbyname, and inet_addr are
13575 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
13576 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
13577 if test "x$ac_cv_func_gethostbyname" = xyes; then :
13581 if test $ac_cv_func_gethostbyname = no; then
13582 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
13583 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
13584 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
13585 $as_echo_n "(cached) " >&6
13586 else
13587 ac_check_lib_save_LIBS=$LIBS
13588 LIBS="-lnsl $LIBS"
13589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13590 /* end confdefs.h. */
13592 /* Override any GCC internal prototype to avoid an error.
13593 Use char because int might match the return type of a GCC
13594 builtin and then its argument prototype would still apply. */
13595 #ifdef __cplusplus
13596 extern "C"
13597 #endif
13598 char gethostbyname ();
13600 main ()
13602 return gethostbyname ();
13604 return 0;
13606 _ACEOF
13607 if ac_fn_c_try_link "$LINENO"; then :
13608 ac_cv_lib_nsl_gethostbyname=yes
13609 else
13610 ac_cv_lib_nsl_gethostbyname=no
13612 rm -f core conftest.err conftest.$ac_objext \
13613 conftest$ac_exeext conftest.$ac_ext
13614 LIBS=$ac_check_lib_save_LIBS
13616 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
13617 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
13618 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
13619 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
13622 if test $ac_cv_lib_nsl_gethostbyname = no; then
13623 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
13624 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
13625 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
13626 $as_echo_n "(cached) " >&6
13627 else
13628 ac_check_lib_save_LIBS=$LIBS
13629 LIBS="-lbsd $LIBS"
13630 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13631 /* end confdefs.h. */
13633 /* Override any GCC internal prototype to avoid an error.
13634 Use char because int might match the return type of a GCC
13635 builtin and then its argument prototype would still apply. */
13636 #ifdef __cplusplus
13637 extern "C"
13638 #endif
13639 char gethostbyname ();
13641 main ()
13643 return gethostbyname ();
13645 return 0;
13647 _ACEOF
13648 if ac_fn_c_try_link "$LINENO"; then :
13649 ac_cv_lib_bsd_gethostbyname=yes
13650 else
13651 ac_cv_lib_bsd_gethostbyname=no
13653 rm -f core conftest.err conftest.$ac_objext \
13654 conftest$ac_exeext conftest.$ac_ext
13655 LIBS=$ac_check_lib_save_LIBS
13657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
13658 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
13659 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
13660 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
13666 # lieder@skyler.mavd.honeywell.com says without -lsocket,
13667 # socket/setsockopt and other routines are undefined under SCO ODT
13668 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
13669 # on later versions), says Simon Leinen: it contains gethostby*
13670 # variants that don't use the name server (or something). -lsocket
13671 # must be given before -lnsl if both are needed. We assume that
13672 # if connect needs -lnsl, so does gethostbyname.
13673 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
13674 if test "x$ac_cv_func_connect" = xyes; then :
13678 if test $ac_cv_func_connect = no; then
13679 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
13680 $as_echo_n "checking for connect in -lsocket... " >&6; }
13681 if ${ac_cv_lib_socket_connect+:} false; then :
13682 $as_echo_n "(cached) " >&6
13683 else
13684 ac_check_lib_save_LIBS=$LIBS
13685 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
13686 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13687 /* end confdefs.h. */
13689 /* Override any GCC internal prototype to avoid an error.
13690 Use char because int might match the return type of a GCC
13691 builtin and then its argument prototype would still apply. */
13692 #ifdef __cplusplus
13693 extern "C"
13694 #endif
13695 char connect ();
13697 main ()
13699 return connect ();
13701 return 0;
13703 _ACEOF
13704 if ac_fn_c_try_link "$LINENO"; then :
13705 ac_cv_lib_socket_connect=yes
13706 else
13707 ac_cv_lib_socket_connect=no
13709 rm -f core conftest.err conftest.$ac_objext \
13710 conftest$ac_exeext conftest.$ac_ext
13711 LIBS=$ac_check_lib_save_LIBS
13713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
13714 $as_echo "$ac_cv_lib_socket_connect" >&6; }
13715 if test "x$ac_cv_lib_socket_connect" = xyes; then :
13716 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
13721 # Guillermo Gomez says -lposix is necessary on A/UX.
13722 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
13723 if test "x$ac_cv_func_remove" = xyes; then :
13727 if test $ac_cv_func_remove = no; then
13728 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
13729 $as_echo_n "checking for remove in -lposix... " >&6; }
13730 if ${ac_cv_lib_posix_remove+:} false; then :
13731 $as_echo_n "(cached) " >&6
13732 else
13733 ac_check_lib_save_LIBS=$LIBS
13734 LIBS="-lposix $LIBS"
13735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13736 /* end confdefs.h. */
13738 /* Override any GCC internal prototype to avoid an error.
13739 Use char because int might match the return type of a GCC
13740 builtin and then its argument prototype would still apply. */
13741 #ifdef __cplusplus
13742 extern "C"
13743 #endif
13744 char remove ();
13746 main ()
13748 return remove ();
13750 return 0;
13752 _ACEOF
13753 if ac_fn_c_try_link "$LINENO"; then :
13754 ac_cv_lib_posix_remove=yes
13755 else
13756 ac_cv_lib_posix_remove=no
13758 rm -f core conftest.err conftest.$ac_objext \
13759 conftest$ac_exeext conftest.$ac_ext
13760 LIBS=$ac_check_lib_save_LIBS
13762 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
13763 $as_echo "$ac_cv_lib_posix_remove" >&6; }
13764 if test "x$ac_cv_lib_posix_remove" = xyes; then :
13765 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
13770 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
13771 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
13772 if test "x$ac_cv_func_shmat" = xyes; then :
13776 if test $ac_cv_func_shmat = no; then
13777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
13778 $as_echo_n "checking for shmat in -lipc... " >&6; }
13779 if ${ac_cv_lib_ipc_shmat+:} false; then :
13780 $as_echo_n "(cached) " >&6
13781 else
13782 ac_check_lib_save_LIBS=$LIBS
13783 LIBS="-lipc $LIBS"
13784 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13785 /* end confdefs.h. */
13787 /* Override any GCC internal prototype to avoid an error.
13788 Use char because int might match the return type of a GCC
13789 builtin and then its argument prototype would still apply. */
13790 #ifdef __cplusplus
13791 extern "C"
13792 #endif
13793 char shmat ();
13795 main ()
13797 return shmat ();
13799 return 0;
13801 _ACEOF
13802 if ac_fn_c_try_link "$LINENO"; then :
13803 ac_cv_lib_ipc_shmat=yes
13804 else
13805 ac_cv_lib_ipc_shmat=no
13807 rm -f core conftest.err conftest.$ac_objext \
13808 conftest$ac_exeext conftest.$ac_ext
13809 LIBS=$ac_check_lib_save_LIBS
13811 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
13812 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
13813 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
13814 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
13820 # Check for libraries that X11R6 Xt/Xaw programs need.
13821 ac_save_LDFLAGS=$LDFLAGS
13822 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
13823 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
13824 # check for ICE first), but we must link in the order -lSM -lICE or
13825 # we get undefined symbols. So assume we have SM if we have ICE.
13826 # These have to be linked with before -lX11, unlike the other
13827 # libraries we check for below, so use a different variable.
13828 # John Interrante, Karl Berry
13829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
13830 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
13831 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
13832 $as_echo_n "(cached) " >&6
13833 else
13834 ac_check_lib_save_LIBS=$LIBS
13835 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
13836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13837 /* end confdefs.h. */
13839 /* Override any GCC internal prototype to avoid an error.
13840 Use char because int might match the return type of a GCC
13841 builtin and then its argument prototype would still apply. */
13842 #ifdef __cplusplus
13843 extern "C"
13844 #endif
13845 char IceConnectionNumber ();
13847 main ()
13849 return IceConnectionNumber ();
13851 return 0;
13853 _ACEOF
13854 if ac_fn_c_try_link "$LINENO"; then :
13855 ac_cv_lib_ICE_IceConnectionNumber=yes
13856 else
13857 ac_cv_lib_ICE_IceConnectionNumber=no
13859 rm -f core conftest.err conftest.$ac_objext \
13860 conftest$ac_exeext conftest.$ac_ext
13861 LIBS=$ac_check_lib_save_LIBS
13863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
13864 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
13865 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
13866 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
13869 LDFLAGS=$ac_save_LDFLAGS
13873 pcp_x11_incflags=$X_CFLAGS
13875 pcp_x11_libflags=$X_LIBS
13877 pcp_x11_extra=$X_EXTRA_LIBS
13879 pcp_x11_pre=$X_PRE_LIBS
13882 have_gzipped_manpages=false
13883 have_bzip2ed_manpages=false
13884 have_lzmaed_manpages=false
13885 have_xzed_manpages=false
13886 need_old_tbl_header=false
13887 man_header=
13888 pcp_man_dir=`eval echo $mandir`
13889 pcp_man_dir=`eval echo $pcp_man_dir`
13891 for d in /usr/man /usr/share/man $pcp_man_dir
13893 for sd in man1 sman1
13895 if test -f $d/$sd/man.1.gz
13896 then
13897 have_gzipped_manpages=true
13898 man_header=`$ZIP -d < $d/$sd/man.1.gz | head -1`
13899 break
13900 elif test -f $d/$sd/man.1.bz2
13901 then
13902 have_bzip2ed_manpages=true
13903 man_header=`$BZIP2 -d < $d/$sd/man.1.bz2 | head -1`
13904 break
13905 elif test -f $d/$sd/man.1.lzma
13906 then
13907 have_lzmaed_manpages=true
13908 man_header=`$LZMA -d < $d/$sd/man.1.lzma | head -1`
13909 break
13910 elif test -f $d/$sd/man.1.xz
13911 then
13912 have_xzed_manpages=true
13913 man_header=`$XZ -d < $d/$sd/man.1.xz | head -1`
13914 break
13915 elif test -f $d/$sd/man.1
13916 then
13917 man_header=`head -1 $d/$sd/man.1`
13918 break
13920 done
13921 done
13922 if test x"$man_header" = "x'\\\" t" -o x"$man_header" = "x'\\\" te" ; then
13923 need_old_tbl_header=true
13932 pcp_bin_dir=`eval echo $bindir`
13933 pcp_bin_dir=`eval echo $pcp_bin_dir`
13936 pcp_sbin_dir=`eval echo $sbindir`
13937 pcp_sbin_dir=`eval echo $pcp_sbin_dir`
13940 pcp_inc_dir=`eval echo $includedir/pcp`
13941 pcp_inc_dir=`eval echo $pcp_inc_dir`
13944 if test $target_os = linux; then
13945 pcp_books_dir=`eval echo $datarootdir/doc/pcp-doc`
13946 else
13947 pcp_books_dir=`eval echo $datarootdir/doc/pcp`
13949 pcp_books_dir=`eval echo $pcp_books_dir`
13950 pcp_html_dir=`eval echo $pcp_books_dir/html`
13954 if test $target_os = linux; then
13955 pcp_icons_dir=`eval echo $datarootdir/pcp-gui/pixmaps`
13956 else
13957 pcp_icons_dir=`eval echo $datarootdir/pcp/pixmaps`
13959 pcp_icons_dir=`eval echo $pcp_icons_dir`
13962 pcp_desktop_dir=`eval echo $datarootdir/applications`
13963 pcp_desktop_dir=`eval echo $pcp_desktop_dir`
13967 # Check whether --with-rcdir was given.
13968 if test "${with_rcdir+set}" = set; then :
13969 withval=$with_rcdir; pcp_rc_dir=$withval
13970 else
13972 if $enable_systemd
13973 then
13974 pcp_rc_dir="$pcp_share_dir/lib"
13975 else
13976 pcp_rc_dir="$pcp_etc_dir/init.d"
13983 # Check whether --with-sysconfigdir was given.
13984 if test "${with_sysconfigdir+set}" = set; then :
13985 withval=$with_sysconfigdir; pcp_sysconfig_dir=$withval
13986 else
13987 pcp_sysconfig_dir=$pcp_etc_dir/sysconfig
13993 # Check whether --with-logdir was given.
13994 if test "${with_logdir+set}" = set; then :
13995 withval=$with_logdir; pcp_log_dir=$withval
13996 else
13997 pcp_log_dir=$localstatedir/log/pcp
14000 pcp_log_dir=`eval echo $pcp_log_dir`
14001 pcp_log_dir=`eval echo $pcp_log_dir`
14005 # Check whether --with-rundir was given.
14006 if test "${with_rundir+set}" = set; then :
14007 withval=$with_rundir; pcp_run_dir=$withval
14008 else
14009 pcp_run_dir=$localstatedir/run/pcp
14012 pcp_run_dir=`eval echo $pcp_run_dir`
14013 pcp_run_dir=`eval echo $pcp_run_dir`
14017 # Check whether --with-tmpdir was given.
14018 if test "${with_tmpdir+set}" = set; then :
14019 withval=$with_tmpdir; pcp_tmpfile_dir=$withval
14020 else
14021 pcp_tmpfile_dir=$localstatedir/tmp
14024 pcp_tmpfile_dir=`eval echo $pcp_tmpfile_dir`
14025 pcp_tmpfile_dir=`eval echo $pcp_tmpfile_dir`
14028 pcp_tmp_dir=`eval echo $pcp_var_dir/tmp`
14032 # Check whether --with-docdir was given.
14033 if test "${with_docdir+set}" = set; then :
14034 withval=$with_docdir; pcp_doc_dir=$withval
14035 else
14036 PACKAGE=pcp-${PACKAGE_VERSION}; pcp_doc_dir=$docdir
14039 pcp_doc_dir=`eval echo $pcp_doc_dir`
14040 pcp_doc_dir=`eval echo $pcp_doc_dir`
14044 # Check whether --with-demosdir was given.
14045 if test "${with_demosdir+set}" = set; then :
14046 withval=$with_demosdir; pcp_demos_dir=$withval
14047 else
14048 pcp_demos_dir=$pcp_share_dir/demos
14053 if test -z "$XCONFIRM"
14054 then
14055 # Extract the first word of "xconfirm", so it can be a program name with args.
14056 set dummy xconfirm; ac_word=$2
14057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14058 $as_echo_n "checking for $ac_word... " >&6; }
14059 if ${ac_cv_path_ac_xconfirm_prog+:} false; then :
14060 $as_echo_n "(cached) " >&6
14061 else
14062 case $ac_xconfirm_prog in
14063 [\\/]* | ?:[\\/]*)
14064 ac_cv_path_ac_xconfirm_prog="$ac_xconfirm_prog" # Let the user override the test with a path.
14067 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14068 for as_dir in $PATH
14070 IFS=$as_save_IFS
14071 test -z "$as_dir" && as_dir=.
14072 for ac_exec_ext in '' $ac_executable_extensions; do
14073 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14074 ac_cv_path_ac_xconfirm_prog="$as_dir/$ac_word$ac_exec_ext"
14075 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14076 break 2
14078 done
14079 done
14080 IFS=$as_save_IFS
14082 test -z "$ac_cv_path_ac_xconfirm_prog" && ac_cv_path_ac_xconfirm_prog="$pcp_bin_dir/pmconfirm"
14084 esac
14086 ac_xconfirm_prog=$ac_cv_path_ac_xconfirm_prog
14087 if test -n "$ac_xconfirm_prog"; then
14088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_xconfirm_prog" >&5
14089 $as_echo "$ac_xconfirm_prog" >&6; }
14090 else
14091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14092 $as_echo "no" >&6; }
14096 else
14097 ac_xconfirm_prog=$XCONFIRM
14101 if test "$ac_cv_header_fcntl_h" = "yes"
14102 then
14103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FNDELAY in fcntl.h" >&5
14104 $as_echo_n "checking for FNDELAY in fcntl.h... " >&6; }
14105 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14106 /* end confdefs.h. */
14107 #include <fcntl.h>
14109 main ()
14111 int i = FNDELAY;
14113 return 0;
14115 _ACEOF
14116 if ac_fn_c_try_compile "$LINENO"; then :
14118 $as_echo "#define HAVE_FNDELAY 1" >>confdefs.h
14120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14121 $as_echo "yes" >&6; }
14122 else
14123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14124 $as_echo "no" >&6; }
14126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14129 if test "$ac_cv_header_libzfs_h" = "yes"
14130 then
14131 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 5-argument style zpool_vdev_name" >&5
14132 $as_echo_n "checking for 5-argument style zpool_vdev_name... " >&6; }
14133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14134 /* end confdefs.h. */
14135 #include <libzfs.h>
14137 main ()
14139 libzfs_handle_t *zh;
14140 zpool_handle_t *zp;
14141 nvlist_t *np;
14142 (void) zpool_vdev_name(zh, zp, np, B_FALSE, B_FALSE);
14145 return 0;
14147 _ACEOF
14148 if ac_fn_c_try_compile "$LINENO"; then :
14150 $as_echo "#define HAVE_ZPOOL_VDEV_NAME_5ARG 1" >>confdefs.h
14152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14153 $as_echo "yes" >&6; }
14154 else
14155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14156 $as_echo "no" >&6; }
14158 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14160 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 4-argument style zpool_vdev_name" >&5
14161 $as_echo_n "checking for 4-argument style zpool_vdev_name... " >&6; }
14162 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14163 /* end confdefs.h. */
14164 #include <libzfs.h>
14166 main ()
14168 libzfs_handle_t *zh;
14169 zpool_handle_t *zp;
14170 nvlist_t *np;
14171 (void) zpool_vdev_name(zh, zp, np, B_FALSE);
14174 return 0;
14176 _ACEOF
14177 if ac_fn_c_try_compile "$LINENO"; then :
14179 $as_echo "#define HAVE_ZPOOL_VDEV_NAME_4ARG 1" >>confdefs.h
14181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14182 $as_echo "yes" >&6; }
14183 else
14184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14185 $as_echo "no" >&6; }
14187 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14190 if test "$do_secure" = "check" -o "$do_secure" = "yes"
14191 then
14192 enable_secure=true
14194 saved_CFLAGS="$CFLAGS"
14195 saved_CPPFLAGS="$CPPFLAGS"
14196 NSS_INC_DIRS="-I/usr/include/nss -I/usr/include/nss3"
14197 NSPR_INC_DIRS="-I/usr/include/nspr -I/usr/include/nspr4"
14198 CFLAGS="$CFLAGS $NSS_INC_DIRS $NSPR_INC_DIRS"
14199 CPPFLAGS="$CPPFLAGS $NSS_INC_DIRS $NSPR_INC_DIRS"
14201 for ac_header in nss/nss.h
14202 do :
14203 ac_fn_c_check_header_mongrel "$LINENO" "nss/nss.h" "ac_cv_header_nss_nss_h" "$ac_includes_default"
14204 if test "x$ac_cv_header_nss_nss_h" = xyes; then :
14205 cat >>confdefs.h <<_ACEOF
14206 #define HAVE_NSS_NSS_H 1
14207 _ACEOF
14208 NSSCFLAGS=-I/usr/include/nss
14209 else
14211 for ac_header in nss3/nss.h
14212 do :
14213 ac_fn_c_check_header_mongrel "$LINENO" "nss3/nss.h" "ac_cv_header_nss3_nss_h" "$ac_includes_default"
14214 if test "x$ac_cv_header_nss3_nss_h" = xyes; then :
14215 cat >>confdefs.h <<_ACEOF
14216 #define HAVE_NSS3_NSS_H 1
14217 _ACEOF
14218 NSSCFLAGS=-I/usr/include/nss3
14219 else
14221 enable_secure=false
14222 if test "$do_secure" = "yes"
14223 then
14224 as_fn_error $? "cannot enable secure sockets mode - no NSS header" "$LINENO" 5
14229 done
14234 done
14238 for ac_header in nspr/nspr.h
14239 do :
14240 ac_fn_c_check_header_mongrel "$LINENO" "nspr/nspr.h" "ac_cv_header_nspr_nspr_h" "$ac_includes_default"
14241 if test "x$ac_cv_header_nspr_nspr_h" = xyes; then :
14242 cat >>confdefs.h <<_ACEOF
14243 #define HAVE_NSPR_NSPR_H 1
14244 _ACEOF
14245 NSPRCFLAGS=-I/usr/include/nspr
14246 else
14248 for ac_header in nspr4/nspr.h
14249 do :
14250 ac_fn_c_check_header_mongrel "$LINENO" "nspr4/nspr.h" "ac_cv_header_nspr4_nspr_h" "$ac_includes_default"
14251 if test "x$ac_cv_header_nspr4_nspr_h" = xyes; then :
14252 cat >>confdefs.h <<_ACEOF
14253 #define HAVE_NSPR4_NSPR_H 1
14254 _ACEOF
14255 NSPRCFLAGS=-I/usr/include/nspr4
14256 else
14258 enable_secure=false
14259 if test "$do_secure" = "yes"
14260 then
14261 as_fn_error $? "cannot enable secure sockets mode - no NSPR header" "$LINENO" 5
14266 done
14271 done
14275 for ac_header in sasl/sasl.h
14276 do :
14277 ac_fn_c_check_header_mongrel "$LINENO" "sasl/sasl.h" "ac_cv_header_sasl_sasl_h" "$ac_includes_default"
14278 if test "x$ac_cv_header_sasl_sasl_h" = xyes; then :
14279 cat >>confdefs.h <<_ACEOF
14280 #define HAVE_SASL_SASL_H 1
14281 _ACEOF
14282 SASLCFLAGS=-I/usr/include/sasl
14283 else
14285 enable_secure=false
14286 if test "$do_secure" = "yes"
14287 then
14288 as_fn_error $? "cannot enable secure sockets mode - no SASL header" "$LINENO" 5
14293 done
14297 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sasl_server_init in -lsasl2" >&5
14298 $as_echo_n "checking for sasl_server_init in -lsasl2... " >&6; }
14299 if ${ac_cv_lib_sasl2_sasl_server_init+:} false; then :
14300 $as_echo_n "(cached) " >&6
14301 else
14302 ac_check_lib_save_LIBS=$LIBS
14303 LIBS="-lsasl2 $LIBS"
14304 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14305 /* end confdefs.h. */
14307 /* Override any GCC internal prototype to avoid an error.
14308 Use char because int might match the return type of a GCC
14309 builtin and then its argument prototype would still apply. */
14310 #ifdef __cplusplus
14311 extern "C"
14312 #endif
14313 char sasl_server_init ();
14315 main ()
14317 return sasl_server_init ();
14319 return 0;
14321 _ACEOF
14322 if ac_fn_c_try_link "$LINENO"; then :
14323 ac_cv_lib_sasl2_sasl_server_init=yes
14324 else
14325 ac_cv_lib_sasl2_sasl_server_init=no
14327 rm -f core conftest.err conftest.$ac_objext \
14328 conftest$ac_exeext conftest.$ac_ext
14329 LIBS=$ac_check_lib_save_LIBS
14331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sasl2_sasl_server_init" >&5
14332 $as_echo "$ac_cv_lib_sasl2_sasl_server_init" >&6; }
14333 if test "x$ac_cv_lib_sasl2_sasl_server_init" = xyes; then :
14334 lib_for_sasl="-lsasl2"
14335 else
14337 enable_secure=false
14338 if test "$do_secure" = "yes"
14339 then
14340 as_fn_error $? "cannot enable secure sockets mode - no SASL library" "$LINENO" 5
14347 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_ImportFD in -lssl" >&5
14348 $as_echo_n "checking for SSL_ImportFD in -lssl... " >&6; }
14349 if ${ac_cv_lib_ssl_SSL_ImportFD+:} false; then :
14350 $as_echo_n "(cached) " >&6
14351 else
14352 ac_check_lib_save_LIBS=$LIBS
14353 LIBS="-lssl $LIBS"
14354 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14355 /* end confdefs.h. */
14357 /* Override any GCC internal prototype to avoid an error.
14358 Use char because int might match the return type of a GCC
14359 builtin and then its argument prototype would still apply. */
14360 #ifdef __cplusplus
14361 extern "C"
14362 #endif
14363 char SSL_ImportFD ();
14365 main ()
14367 return SSL_ImportFD ();
14369 return 0;
14371 _ACEOF
14372 if ac_fn_c_try_link "$LINENO"; then :
14373 ac_cv_lib_ssl_SSL_ImportFD=yes
14374 else
14375 ac_cv_lib_ssl_SSL_ImportFD=no
14377 rm -f core conftest.err conftest.$ac_objext \
14378 conftest$ac_exeext conftest.$ac_ext
14379 LIBS=$ac_check_lib_save_LIBS
14381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_ImportFD" >&5
14382 $as_echo "$ac_cv_lib_ssl_SSL_ImportFD" >&6; }
14383 if test "x$ac_cv_lib_ssl_SSL_ImportFD" = xyes; then :
14384 lib_for_ssl="-lssl"
14385 else
14387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_ImportFD in -lssl3" >&5
14388 $as_echo_n "checking for SSL_ImportFD in -lssl3... " >&6; }
14389 if ${ac_cv_lib_ssl3_SSL_ImportFD+:} false; then :
14390 $as_echo_n "(cached) " >&6
14391 else
14392 ac_check_lib_save_LIBS=$LIBS
14393 LIBS="-lssl3 $LIBS"
14394 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14395 /* end confdefs.h. */
14397 /* Override any GCC internal prototype to avoid an error.
14398 Use char because int might match the return type of a GCC
14399 builtin and then its argument prototype would still apply. */
14400 #ifdef __cplusplus
14401 extern "C"
14402 #endif
14403 char SSL_ImportFD ();
14405 main ()
14407 return SSL_ImportFD ();
14409 return 0;
14411 _ACEOF
14412 if ac_fn_c_try_link "$LINENO"; then :
14413 ac_cv_lib_ssl3_SSL_ImportFD=yes
14414 else
14415 ac_cv_lib_ssl3_SSL_ImportFD=no
14417 rm -f core conftest.err conftest.$ac_objext \
14418 conftest$ac_exeext conftest.$ac_ext
14419 LIBS=$ac_check_lib_save_LIBS
14421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl3_SSL_ImportFD" >&5
14422 $as_echo "$ac_cv_lib_ssl3_SSL_ImportFD" >&6; }
14423 if test "x$ac_cv_lib_ssl3_SSL_ImportFD" = xyes; then :
14424 lib_for_ssl="-lssl3"
14425 else
14427 enable_secure=false
14428 if test "$do_secure" = "yes"
14429 then
14430 as_fn_error $? "cannot enable secure sockets mode - no SSL library" "$LINENO" 5
14440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSS_Init in -lnss" >&5
14441 $as_echo_n "checking for NSS_Init in -lnss... " >&6; }
14442 if ${ac_cv_lib_nss_NSS_Init+:} false; then :
14443 $as_echo_n "(cached) " >&6
14444 else
14445 ac_check_lib_save_LIBS=$LIBS
14446 LIBS="-lnss $LIBS"
14447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14448 /* end confdefs.h. */
14450 /* Override any GCC internal prototype to avoid an error.
14451 Use char because int might match the return type of a GCC
14452 builtin and then its argument prototype would still apply. */
14453 #ifdef __cplusplus
14454 extern "C"
14455 #endif
14456 char NSS_Init ();
14458 main ()
14460 return NSS_Init ();
14462 return 0;
14464 _ACEOF
14465 if ac_fn_c_try_link "$LINENO"; then :
14466 ac_cv_lib_nss_NSS_Init=yes
14467 else
14468 ac_cv_lib_nss_NSS_Init=no
14470 rm -f core conftest.err conftest.$ac_objext \
14471 conftest$ac_exeext conftest.$ac_ext
14472 LIBS=$ac_check_lib_save_LIBS
14474 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nss_NSS_Init" >&5
14475 $as_echo "$ac_cv_lib_nss_NSS_Init" >&6; }
14476 if test "x$ac_cv_lib_nss_NSS_Init" = xyes; then :
14477 lib_for_nss="-lnss"
14478 else
14480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSS_Init in -lnss3" >&5
14481 $as_echo_n "checking for NSS_Init in -lnss3... " >&6; }
14482 if ${ac_cv_lib_nss3_NSS_Init+:} false; then :
14483 $as_echo_n "(cached) " >&6
14484 else
14485 ac_check_lib_save_LIBS=$LIBS
14486 LIBS="-lnss3 $LIBS"
14487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14488 /* end confdefs.h. */
14490 /* Override any GCC internal prototype to avoid an error.
14491 Use char because int might match the return type of a GCC
14492 builtin and then its argument prototype would still apply. */
14493 #ifdef __cplusplus
14494 extern "C"
14495 #endif
14496 char NSS_Init ();
14498 main ()
14500 return NSS_Init ();
14502 return 0;
14504 _ACEOF
14505 if ac_fn_c_try_link "$LINENO"; then :
14506 ac_cv_lib_nss3_NSS_Init=yes
14507 else
14508 ac_cv_lib_nss3_NSS_Init=no
14510 rm -f core conftest.err conftest.$ac_objext \
14511 conftest$ac_exeext conftest.$ac_ext
14512 LIBS=$ac_check_lib_save_LIBS
14514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nss3_NSS_Init" >&5
14515 $as_echo "$ac_cv_lib_nss3_NSS_Init" >&6; }
14516 if test "x$ac_cv_lib_nss3_NSS_Init" = xyes; then :
14517 lib_for_nss="-lnss3"
14518 else
14520 enable_secure=false
14521 if test "$do_secure" = "yes"
14522 then
14523 as_fn_error $? "cannot enable secure sockets mode - no NSS library" "$LINENO" 5
14533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PR_Init in -lnspr" >&5
14534 $as_echo_n "checking for PR_Init in -lnspr... " >&6; }
14535 if ${ac_cv_lib_nspr_PR_Init+:} false; then :
14536 $as_echo_n "(cached) " >&6
14537 else
14538 ac_check_lib_save_LIBS=$LIBS
14539 LIBS="-lnspr $LIBS"
14540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14541 /* end confdefs.h. */
14543 /* Override any GCC internal prototype to avoid an error.
14544 Use char because int might match the return type of a GCC
14545 builtin and then its argument prototype would still apply. */
14546 #ifdef __cplusplus
14547 extern "C"
14548 #endif
14549 char PR_Init ();
14551 main ()
14553 return PR_Init ();
14555 return 0;
14557 _ACEOF
14558 if ac_fn_c_try_link "$LINENO"; then :
14559 ac_cv_lib_nspr_PR_Init=yes
14560 else
14561 ac_cv_lib_nspr_PR_Init=no
14563 rm -f core conftest.err conftest.$ac_objext \
14564 conftest$ac_exeext conftest.$ac_ext
14565 LIBS=$ac_check_lib_save_LIBS
14567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nspr_PR_Init" >&5
14568 $as_echo "$ac_cv_lib_nspr_PR_Init" >&6; }
14569 if test "x$ac_cv_lib_nspr_PR_Init" = xyes; then :
14570 lib_for_nspr="-lnspr"
14571 else
14573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PR_Init in -lnspr4" >&5
14574 $as_echo_n "checking for PR_Init in -lnspr4... " >&6; }
14575 if ${ac_cv_lib_nspr4_PR_Init+:} false; then :
14576 $as_echo_n "(cached) " >&6
14577 else
14578 ac_check_lib_save_LIBS=$LIBS
14579 LIBS="-lnspr4 $LIBS"
14580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14581 /* end confdefs.h. */
14583 /* Override any GCC internal prototype to avoid an error.
14584 Use char because int might match the return type of a GCC
14585 builtin and then its argument prototype would still apply. */
14586 #ifdef __cplusplus
14587 extern "C"
14588 #endif
14589 char PR_Init ();
14591 main ()
14593 return PR_Init ();
14595 return 0;
14597 _ACEOF
14598 if ac_fn_c_try_link "$LINENO"; then :
14599 ac_cv_lib_nspr4_PR_Init=yes
14600 else
14601 ac_cv_lib_nspr4_PR_Init=no
14603 rm -f core conftest.err conftest.$ac_objext \
14604 conftest$ac_exeext conftest.$ac_ext
14605 LIBS=$ac_check_lib_save_LIBS
14607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nspr4_PR_Init" >&5
14608 $as_echo "$ac_cv_lib_nspr4_PR_Init" >&6; }
14609 if test "x$ac_cv_lib_nspr4_PR_Init" = xyes; then :
14610 lib_for_nspr="-lnspr4"
14611 else
14613 enable_secure=false
14614 if test "$do_secure" = "yes"
14615 then
14616 as_fn_error $? "cannot enable secure sockets mode - no NSPR library" "$LINENO" 5
14626 if test "$enable_secure" = "true"
14627 then
14629 $as_echo "#define HAVE_SECURE_SOCKETS 1" >>confdefs.h
14634 CPPFLAGS="$saved_CPPFLAGS"
14635 CFLAGS="$saved_CFLAGS"
14638 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_add_4 in -latomic" >&5
14639 $as_echo_n "checking for __atomic_fetch_add_4 in -latomic... " >&6; }
14640 if ${ac_cv_lib_atomic___atomic_fetch_add_4+:} false; then :
14641 $as_echo_n "(cached) " >&6
14642 else
14643 ac_check_lib_save_LIBS=$LIBS
14644 LIBS="-latomic $LIBS"
14645 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14646 /* end confdefs.h. */
14648 /* Override any GCC internal prototype to avoid an error.
14649 Use char because int might match the return type of a GCC
14650 builtin and then its argument prototype would still apply. */
14651 #ifdef __cplusplus
14652 extern "C"
14653 #endif
14654 char __atomic_fetch_add_4 ();
14656 main ()
14658 return __atomic_fetch_add_4 ();
14660 return 0;
14662 _ACEOF
14663 if ac_fn_c_try_link "$LINENO"; then :
14664 ac_cv_lib_atomic___atomic_fetch_add_4=yes
14665 else
14666 ac_cv_lib_atomic___atomic_fetch_add_4=no
14668 rm -f core conftest.err conftest.$ac_objext \
14669 conftest$ac_exeext conftest.$ac_ext
14670 LIBS=$ac_check_lib_save_LIBS
14672 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_atomic___atomic_fetch_add_4" >&5
14673 $as_echo "$ac_cv_lib_atomic___atomic_fetch_add_4" >&6; }
14674 if test "x$ac_cv_lib_atomic___atomic_fetch_add_4" = xyes; then :
14675 lib_for_atomic="-latomic"
14680 if test -f /usr/include/sn/arsess.h
14681 then
14682 pcp_mpi_dirs=libpcp_mpi\ libpcp_mpiread
14683 else
14684 pcp_mpi_dirs=
14688 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_un in sys/un.h" >&5
14689 $as_echo_n "checking for struct sockaddr_un in sys/un.h... " >&6; }
14690 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14691 /* end confdefs.h. */
14693 #include <sys/types.h>
14694 #ifdef HAVE_SYS_SOCKET_H
14695 #include <sys/socket.h>
14696 #endif
14697 #ifdef HAVE_SYS_UN_H
14698 #include <sys/un.h>
14699 #endif
14702 main ()
14704 struct sockaddr_un sa; sa.sun_family = AF_UNIX;
14706 return 0;
14708 _ACEOF
14709 if ac_fn_c_try_compile "$LINENO"; then :
14711 $as_echo "#define HAVE_STRUCT_SOCKADDR_UN 1" >>confdefs.h
14712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14713 $as_echo "yes" >&6; }
14714 else
14715 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14716 $as_echo "no" >&6; }
14718 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct ucred in sys/socket.h" >&5
14721 $as_echo_n "checking for struct ucred in sys/socket.h... " >&6; }
14722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14723 /* end confdefs.h. */
14725 #include <sys/types.h>
14726 #ifdef HAVE_SYS_SOCKET_H
14727 #include <sys/socket.h>
14728 #endif
14729 #ifdef HAVE_SYS_UN_H
14730 #include <sys/un.h>
14731 #endif
14734 main ()
14736 struct ucred ucred; ucred.uid = 0;
14738 return 0;
14740 _ACEOF
14741 if ac_fn_c_try_compile "$LINENO"; then :
14743 $as_echo "#define HAVE_STRUCT_UCRED 1" >>confdefs.h
14744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14745 $as_echo "yes" >&6; }
14746 else
14747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14748 $as_echo "no" >&6; }
14750 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in time.h" >&5
14753 $as_echo_n "checking for struct timespec in time.h... " >&6; }
14754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14755 /* end confdefs.h. */
14757 #include <time.h>
14760 main ()
14762 struct timespec foo;
14764 return 0;
14766 _ACEOF
14767 if ac_fn_c_try_compile "$LINENO"; then :
14769 $as_echo "#define HAVE_STRUCT_TIMESPEC 1" >>confdefs.h
14770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14771 $as_echo "yes" >&6; }
14772 else
14773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14774 $as_echo "no" >&6; }
14776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for altzone in time.h" >&5
14779 $as_echo_n "checking for altzone in time.h... " >&6; }
14780 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14781 /* end confdefs.h. */
14783 #include <time.h>
14786 main ()
14788 time_t az = altzone;
14790 return 0;
14792 _ACEOF
14793 if ac_fn_c_try_compile "$LINENO"; then :
14795 $as_echo "#define HAVE_ALTZONE 1" >>confdefs.h
14796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14797 $as_echo "yes" >&6; }
14798 else
14799 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14800 $as_echo "no" >&6; }
14802 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14804 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strftime knows about %z" >&5
14805 $as_echo_n "checking if strftime knows about %z... " >&6; }
14806 if test "$cross_compiling" = yes; then :
14807 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14808 $as_echo "no" >&6; }
14809 else
14810 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14811 /* end confdefs.h. */
14813 #include <time.h>
14814 int main () {
14815 char b[32]="";
14816 time_t t = time(NULL);
14817 struct tm * t1 = localtime (&t);
14818 if (strftime (b, 32, "%z", t1) < 3)
14819 return (1);
14820 if (strcmp(b, "%z") == 0)
14821 return(1);
14822 return (0);
14825 _ACEOF
14826 if ac_fn_c_try_run "$LINENO"; then :
14828 $as_echo "#define HAVE_STRFTIME_z 1" >>confdefs.h
14829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14830 $as_echo "yes" >&6; }
14831 else
14832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14833 $as_echo "no" >&6; }
14835 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14836 conftest.$ac_objext conftest.beam conftest.$ac_ext
14840 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r returns char *" >&5
14841 $as_echo_n "checking if strerror_r returns char *... " >&6; }
14842 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14843 /* end confdefs.h. */
14844 #include <string.h>
14846 main ()
14848 strerror_r(0, NULL, 0)[0];
14850 return 0;
14852 _ACEOF
14853 if ac_fn_c_try_compile "$LINENO"; then :
14855 $as_echo "#define HAVE_STRERROR_R_PTR 1" >>confdefs.h
14856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14857 $as_echo "yes" >&6; }
14858 else
14859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14860 $as_echo "no" >&6; }
14862 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14864 savedLIBS=$LIBS
14865 LIBS=
14866 lib_for_curses=
14867 lib_for_readline=
14868 ac_fn_c_check_func "$LINENO" "readline" "ac_cv_func_readline"
14869 if test "x$ac_cv_func_readline" = xyes; then :
14871 else
14873 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
14874 $as_echo_n "checking for readline in -lreadline... " >&6; }
14875 if ${ac_cv_lib_readline_readline+:} false; then :
14876 $as_echo_n "(cached) " >&6
14877 else
14878 ac_check_lib_save_LIBS=$LIBS
14879 LIBS="-lreadline $LIBS"
14880 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14881 /* end confdefs.h. */
14883 /* Override any GCC internal prototype to avoid an error.
14884 Use char because int might match the return type of a GCC
14885 builtin and then its argument prototype would still apply. */
14886 #ifdef __cplusplus
14887 extern "C"
14888 #endif
14889 char readline ();
14891 main ()
14893 return readline ();
14895 return 0;
14897 _ACEOF
14898 if ac_fn_c_try_link "$LINENO"; then :
14899 ac_cv_lib_readline_readline=yes
14900 else
14901 ac_cv_lib_readline_readline=no
14903 rm -f core conftest.err conftest.$ac_objext \
14904 conftest$ac_exeext conftest.$ac_ext
14905 LIBS=$ac_check_lib_save_LIBS
14907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
14908 $as_echo "$ac_cv_lib_readline_readline" >&6; }
14909 if test "x$ac_cv_lib_readline_readline" = xyes; then :
14910 cat >>confdefs.h <<_ACEOF
14911 #define HAVE_LIBREADLINE 1
14912 _ACEOF
14914 LIBS="-lreadline $LIBS"
14916 else
14918 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for add_history in -lreadline" >&5
14919 $as_echo_n "checking for add_history in -lreadline... " >&6; }
14920 if ${ac_cv_lib_readline_add_history+:} false; then :
14921 $as_echo_n "(cached) " >&6
14922 else
14923 ac_check_lib_save_LIBS=$LIBS
14924 LIBS="-lreadline -lcurses $LIBS"
14925 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14926 /* end confdefs.h. */
14928 /* Override any GCC internal prototype to avoid an error.
14929 Use char because int might match the return type of a GCC
14930 builtin and then its argument prototype would still apply. */
14931 #ifdef __cplusplus
14932 extern "C"
14933 #endif
14934 char add_history ();
14936 main ()
14938 return add_history ();
14940 return 0;
14942 _ACEOF
14943 if ac_fn_c_try_link "$LINENO"; then :
14944 ac_cv_lib_readline_add_history=yes
14945 else
14946 ac_cv_lib_readline_add_history=no
14948 rm -f core conftest.err conftest.$ac_objext \
14949 conftest$ac_exeext conftest.$ac_ext
14950 LIBS=$ac_check_lib_save_LIBS
14952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_add_history" >&5
14953 $as_echo "$ac_cv_lib_readline_add_history" >&6; }
14954 if test "x$ac_cv_lib_readline_add_history" = xyes; then :
14955 cat >>confdefs.h <<_ACEOF
14956 #define HAVE_LIBREADLINE 1
14957 _ACEOF
14959 LIBS="-lreadline $LIBS"
14969 if test $ac_cv_func_readline = yes
14970 then
14972 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
14974 elif test $ac_cv_lib_readline_readline = yes
14975 then
14977 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
14979 lib_for_readline=-lreadline
14980 elif test $ac_cv_lib_readline_add_history = yes
14981 then
14983 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
14985 lib_for_curses=-lcurses
14986 lib_for_readline=-lreadline
14990 LIBS=$savedLIBS
14993 pkg_failed=no
14994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib" >&5
14995 $as_echo_n "checking for zlib... " >&6; }
14997 if test -n "$zlib_CFLAGS"; then
14998 pkg_cv_zlib_CFLAGS="$zlib_CFLAGS"
14999 elif test -n "$PKG_CONFIG"; then
15000 if test -n "$PKG_CONFIG" && \
15001 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib >= 1.0.0\""; } >&5
15002 ($PKG_CONFIG --exists --print-errors "zlib >= 1.0.0") 2>&5
15003 ac_status=$?
15004 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15005 test $ac_status = 0; }; then
15006 pkg_cv_zlib_CFLAGS=`$PKG_CONFIG --cflags "zlib >= 1.0.0" 2>/dev/null`
15007 test "x$?" != "x0" && pkg_failed=yes
15008 else
15009 pkg_failed=yes
15011 else
15012 pkg_failed=untried
15014 if test -n "$zlib_LIBS"; then
15015 pkg_cv_zlib_LIBS="$zlib_LIBS"
15016 elif test -n "$PKG_CONFIG"; then
15017 if test -n "$PKG_CONFIG" && \
15018 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib >= 1.0.0\""; } >&5
15019 ($PKG_CONFIG --exists --print-errors "zlib >= 1.0.0") 2>&5
15020 ac_status=$?
15021 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15022 test $ac_status = 0; }; then
15023 pkg_cv_zlib_LIBS=`$PKG_CONFIG --libs "zlib >= 1.0.0" 2>/dev/null`
15024 test "x$?" != "x0" && pkg_failed=yes
15025 else
15026 pkg_failed=yes
15028 else
15029 pkg_failed=untried
15034 if test $pkg_failed = yes; then
15035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15036 $as_echo "no" >&6; }
15038 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15039 _pkg_short_errors_supported=yes
15040 else
15041 _pkg_short_errors_supported=no
15043 if test $_pkg_short_errors_supported = yes; then
15044 zlib_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "zlib >= 1.0.0" 2>&1`
15045 else
15046 zlib_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "zlib >= 1.0.0" 2>&1`
15048 # Put the nasty error message in config.log where it belongs
15049 echo "$zlib_PKG_ERRORS" >&5
15051 have_zlib=false
15052 elif test $pkg_failed = untried; then
15053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15054 $as_echo "no" >&6; }
15055 have_zlib=false
15056 else
15057 zlib_CFLAGS=$pkg_cv_zlib_CFLAGS
15058 zlib_LIBS=$pkg_cv_zlib_LIBS
15059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15060 $as_echo "yes" >&6; }
15061 have_zlib=true
15063 HAVE_ZLIB=$have_zlib
15066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AI_ADDRCONFIG" >&5
15067 $as_echo_n "checking for AI_ADDRCONFIG... " >&6; }
15068 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15069 /* end confdefs.h. */
15071 #include <netdb.h>
15072 int test = AI_ADDRCONFIG;
15075 main ()
15080 return 0;
15082 _ACEOF
15083 if ac_fn_c_try_compile "$LINENO"; then :
15085 $as_echo "#define HAVE_AI_ADDRCONFIG 1" >>confdefs.h
15086 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15087 $as_echo "yes" >&6; }
15088 else
15089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15090 $as_echo "no" >&6; }
15092 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15095 have_parfait=false
15096 if test -f ./build/tar/parfait.tar.gz
15097 then
15098 { $as_echo "$as_me:${as_lineno-$LINENO}: adding Parfait package to the build" >&5
15099 $as_echo "$as_me: adding Parfait package to the build" >&6;}
15100 have_parfait=true
15104 have_vector=false
15105 if test -f ./build/tar/vector.tar.gz
15106 then
15107 { $as_echo "$as_me:${as_lineno-$LINENO}: adding Vector webapp to the build" >&5
15108 $as_echo "$as_me: adding Vector webapp to the build" >&6;}
15109 have_vector=true
15113 have_webjs=false
15114 if test -f ./build/tar/webjs.tar.gz
15115 then
15116 { $as_echo "$as_me:${as_lineno-$LINENO}: adding webjs webapps to the build" >&5
15117 $as_echo "$as_me: adding webjs webapps to the build" >&6;}
15118 have_webjs=true
15125 ac_config_files="$ac_config_files src/include/builddefs src/include/pcp.conf pcp.lsm debian/pcp.preinst.head debian/pcp.postinst.head build/tar/preinstall.head build/tar/postinstall.head build/GNUlocaldefs build/mac/uninstall-pcp"
15127 cat >confcache <<\_ACEOF
15128 # This file is a shell script that caches the results of configure
15129 # tests run on this system so they can be shared between configure
15130 # scripts and configure runs, see configure's option --config-cache.
15131 # It is not useful on other systems. If it contains results you don't
15132 # want to keep, you may remove or edit it.
15134 # config.status only pays attention to the cache file if you give it
15135 # the --recheck option to rerun configure.
15137 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15138 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15139 # following values.
15141 _ACEOF
15143 # The following way of writing the cache mishandles newlines in values,
15144 # but we know of no workaround that is simple, portable, and efficient.
15145 # So, we kill variables containing newlines.
15146 # Ultrix sh set writes to stderr and can't be redirected directly,
15147 # and sets the high bit in the cache file unless we assign to the vars.
15149 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15150 eval ac_val=\$$ac_var
15151 case $ac_val in #(
15152 *${as_nl}*)
15153 case $ac_var in #(
15154 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15155 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15156 esac
15157 case $ac_var in #(
15158 _ | IFS | as_nl) ;; #(
15159 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15160 *) { eval $ac_var=; unset $ac_var;} ;;
15161 esac ;;
15162 esac
15163 done
15165 (set) 2>&1 |
15166 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15167 *${as_nl}ac_space=\ *)
15168 # `set' does not quote correctly, so add quotes: double-quote
15169 # substitution turns \\\\ into \\, and sed turns \\ into \.
15170 sed -n \
15171 "s/'/'\\\\''/g;
15172 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15173 ;; #(
15175 # `set' quotes correctly as required by POSIX, so do not add quotes.
15176 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15178 esac |
15179 sort
15181 sed '
15182 /^ac_cv_env_/b end
15183 t clear
15184 :clear
15185 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15186 t end
15187 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15188 :end' >>confcache
15189 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15190 if test -w "$cache_file"; then
15191 if test "x$cache_file" != "x/dev/null"; then
15192 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15193 $as_echo "$as_me: updating cache $cache_file" >&6;}
15194 if test ! -f "$cache_file" || test -h "$cache_file"; then
15195 cat confcache >"$cache_file"
15196 else
15197 case $cache_file in #(
15198 */* | ?:*)
15199 mv -f confcache "$cache_file"$$ &&
15200 mv -f "$cache_file"$$ "$cache_file" ;; #(
15202 mv -f confcache "$cache_file" ;;
15203 esac
15206 else
15207 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15208 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15211 rm -f confcache
15213 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15214 # Let make expand exec_prefix.
15215 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15217 DEFS=-DHAVE_CONFIG_H
15219 ac_libobjs=
15220 ac_ltlibobjs=
15222 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15223 # 1. Remove the extension, and $U if already installed.
15224 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15225 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15226 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15227 # will be set to the directory where LIBOBJS objects are built.
15228 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15229 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15230 done
15231 LIBOBJS=$ac_libobjs
15233 LTLIBOBJS=$ac_ltlibobjs
15237 : "${CONFIG_STATUS=./config.status}"
15238 ac_write_fail=0
15239 ac_clean_files_save=$ac_clean_files
15240 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15241 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15242 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15243 as_write_fail=0
15244 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15245 #! $SHELL
15246 # Generated by $as_me.
15247 # Run this file to recreate the current configuration.
15248 # Compiler output produced by configure, useful for debugging
15249 # configure, is in config.log if it exists.
15251 debug=false
15252 ac_cs_recheck=false
15253 ac_cs_silent=false
15255 SHELL=\${CONFIG_SHELL-$SHELL}
15256 export SHELL
15257 _ASEOF
15258 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15259 ## -------------------- ##
15260 ## M4sh Initialization. ##
15261 ## -------------------- ##
15263 # Be more Bourne compatible
15264 DUALCASE=1; export DUALCASE # for MKS sh
15265 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15266 emulate sh
15267 NULLCMD=:
15268 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15269 # is contrary to our usage. Disable this feature.
15270 alias -g '${1+"$@"}'='"$@"'
15271 setopt NO_GLOB_SUBST
15272 else
15273 case `(set -o) 2>/dev/null` in #(
15274 *posix*) :
15275 set -o posix ;; #(
15276 *) :
15278 esac
15282 as_nl='
15284 export as_nl
15285 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15286 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15287 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15288 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15289 # Prefer a ksh shell builtin over an external printf program on Solaris,
15290 # but without wasting forks for bash or zsh.
15291 if test -z "$BASH_VERSION$ZSH_VERSION" \
15292 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15293 as_echo='print -r --'
15294 as_echo_n='print -rn --'
15295 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15296 as_echo='printf %s\n'
15297 as_echo_n='printf %s'
15298 else
15299 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15300 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15301 as_echo_n='/usr/ucb/echo -n'
15302 else
15303 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15304 as_echo_n_body='eval
15305 arg=$1;
15306 case $arg in #(
15307 *"$as_nl"*)
15308 expr "X$arg" : "X\\(.*\\)$as_nl";
15309 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15310 esac;
15311 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15313 export as_echo_n_body
15314 as_echo_n='sh -c $as_echo_n_body as_echo'
15316 export as_echo_body
15317 as_echo='sh -c $as_echo_body as_echo'
15320 # The user is always right.
15321 if test "${PATH_SEPARATOR+set}" != set; then
15322 PATH_SEPARATOR=:
15323 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15324 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15325 PATH_SEPARATOR=';'
15330 # IFS
15331 # We need space, tab and new line, in precisely that order. Quoting is
15332 # there to prevent editors from complaining about space-tab.
15333 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15334 # splitting by setting IFS to empty value.)
15335 IFS=" "" $as_nl"
15337 # Find who we are. Look in the path if we contain no directory separator.
15338 as_myself=
15339 case $0 in #((
15340 *[\\/]* ) as_myself=$0 ;;
15341 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15342 for as_dir in $PATH
15344 IFS=$as_save_IFS
15345 test -z "$as_dir" && as_dir=.
15346 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15347 done
15348 IFS=$as_save_IFS
15351 esac
15352 # We did not find ourselves, most probably we were run as `sh COMMAND'
15353 # in which case we are not to be found in the path.
15354 if test "x$as_myself" = x; then
15355 as_myself=$0
15357 if test ! -f "$as_myself"; then
15358 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15359 exit 1
15362 # Unset variables that we do not need and which cause bugs (e.g. in
15363 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15364 # suppresses any "Segmentation fault" message there. '((' could
15365 # trigger a bug in pdksh 5.2.14.
15366 for as_var in BASH_ENV ENV MAIL MAILPATH
15367 do eval test x\${$as_var+set} = xset \
15368 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15369 done
15370 PS1='$ '
15371 PS2='> '
15372 PS4='+ '
15374 # NLS nuisances.
15375 LC_ALL=C
15376 export LC_ALL
15377 LANGUAGE=C
15378 export LANGUAGE
15380 # CDPATH.
15381 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15384 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15385 # ----------------------------------------
15386 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15387 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15388 # script with STATUS, using 1 if that was 0.
15389 as_fn_error ()
15391 as_status=$1; test $as_status -eq 0 && as_status=1
15392 if test "$4"; then
15393 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15394 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15396 $as_echo "$as_me: error: $2" >&2
15397 as_fn_exit $as_status
15398 } # as_fn_error
15401 # as_fn_set_status STATUS
15402 # -----------------------
15403 # Set $? to STATUS, without forking.
15404 as_fn_set_status ()
15406 return $1
15407 } # as_fn_set_status
15409 # as_fn_exit STATUS
15410 # -----------------
15411 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15412 as_fn_exit ()
15414 set +e
15415 as_fn_set_status $1
15416 exit $1
15417 } # as_fn_exit
15419 # as_fn_unset VAR
15420 # ---------------
15421 # Portably unset VAR.
15422 as_fn_unset ()
15424 { eval $1=; unset $1;}
15426 as_unset=as_fn_unset
15427 # as_fn_append VAR VALUE
15428 # ----------------------
15429 # Append the text in VALUE to the end of the definition contained in VAR. Take
15430 # advantage of any shell optimizations that allow amortized linear growth over
15431 # repeated appends, instead of the typical quadratic growth present in naive
15432 # implementations.
15433 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15434 eval 'as_fn_append ()
15436 eval $1+=\$2
15438 else
15439 as_fn_append ()
15441 eval $1=\$$1\$2
15443 fi # as_fn_append
15445 # as_fn_arith ARG...
15446 # ------------------
15447 # Perform arithmetic evaluation on the ARGs, and store the result in the
15448 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15449 # must be portable across $(()) and expr.
15450 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15451 eval 'as_fn_arith ()
15453 as_val=$(( $* ))
15455 else
15456 as_fn_arith ()
15458 as_val=`expr "$@" || test $? -eq 1`
15460 fi # as_fn_arith
15463 if expr a : '\(a\)' >/dev/null 2>&1 &&
15464 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15465 as_expr=expr
15466 else
15467 as_expr=false
15470 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15471 as_basename=basename
15472 else
15473 as_basename=false
15476 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15477 as_dirname=dirname
15478 else
15479 as_dirname=false
15482 as_me=`$as_basename -- "$0" ||
15483 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15484 X"$0" : 'X\(//\)$' \| \
15485 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15486 $as_echo X/"$0" |
15487 sed '/^.*\/\([^/][^/]*\)\/*$/{
15488 s//\1/
15491 /^X\/\(\/\/\)$/{
15492 s//\1/
15495 /^X\/\(\/\).*/{
15496 s//\1/
15499 s/.*/./; q'`
15501 # Avoid depending upon Character Ranges.
15502 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15503 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15504 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15505 as_cr_digits='0123456789'
15506 as_cr_alnum=$as_cr_Letters$as_cr_digits
15508 ECHO_C= ECHO_N= ECHO_T=
15509 case `echo -n x` in #(((((
15510 -n*)
15511 case `echo 'xy\c'` in
15512 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15513 xy) ECHO_C='\c';;
15514 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15515 ECHO_T=' ';;
15516 esac;;
15518 ECHO_N='-n';;
15519 esac
15521 rm -f conf$$ conf$$.exe conf$$.file
15522 if test -d conf$$.dir; then
15523 rm -f conf$$.dir/conf$$.file
15524 else
15525 rm -f conf$$.dir
15526 mkdir conf$$.dir 2>/dev/null
15528 if (echo >conf$$.file) 2>/dev/null; then
15529 if ln -s conf$$.file conf$$ 2>/dev/null; then
15530 as_ln_s='ln -s'
15531 # ... but there are two gotchas:
15532 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15533 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15534 # In both cases, we have to default to `cp -pR'.
15535 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15536 as_ln_s='cp -pR'
15537 elif ln conf$$.file conf$$ 2>/dev/null; then
15538 as_ln_s=ln
15539 else
15540 as_ln_s='cp -pR'
15542 else
15543 as_ln_s='cp -pR'
15545 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15546 rmdir conf$$.dir 2>/dev/null
15549 # as_fn_mkdir_p
15550 # -------------
15551 # Create "$as_dir" as a directory, including parents if necessary.
15552 as_fn_mkdir_p ()
15555 case $as_dir in #(
15556 -*) as_dir=./$as_dir;;
15557 esac
15558 test -d "$as_dir" || eval $as_mkdir_p || {
15559 as_dirs=
15560 while :; do
15561 case $as_dir in #(
15562 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15563 *) as_qdir=$as_dir;;
15564 esac
15565 as_dirs="'$as_qdir' $as_dirs"
15566 as_dir=`$as_dirname -- "$as_dir" ||
15567 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15568 X"$as_dir" : 'X\(//\)[^/]' \| \
15569 X"$as_dir" : 'X\(//\)$' \| \
15570 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15571 $as_echo X"$as_dir" |
15572 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15573 s//\1/
15576 /^X\(\/\/\)[^/].*/{
15577 s//\1/
15580 /^X\(\/\/\)$/{
15581 s//\1/
15584 /^X\(\/\).*/{
15585 s//\1/
15588 s/.*/./; q'`
15589 test -d "$as_dir" && break
15590 done
15591 test -z "$as_dirs" || eval "mkdir $as_dirs"
15592 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15595 } # as_fn_mkdir_p
15596 if mkdir -p . 2>/dev/null; then
15597 as_mkdir_p='mkdir -p "$as_dir"'
15598 else
15599 test -d ./-p && rmdir ./-p
15600 as_mkdir_p=false
15604 # as_fn_executable_p FILE
15605 # -----------------------
15606 # Test if FILE is an executable regular file.
15607 as_fn_executable_p ()
15609 test -f "$1" && test -x "$1"
15610 } # as_fn_executable_p
15611 as_test_x='test -x'
15612 as_executable_p=as_fn_executable_p
15614 # Sed expression to map a string onto a valid CPP name.
15615 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15617 # Sed expression to map a string onto a valid variable name.
15618 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15621 exec 6>&1
15622 ## ----------------------------------- ##
15623 ## Main body of $CONFIG_STATUS script. ##
15624 ## ----------------------------------- ##
15625 _ASEOF
15626 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15628 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15629 # Save the log message, to keep $0 and so on meaningful, and to
15630 # report actual input values of CONFIG_FILES etc. instead of their
15631 # values after options handling.
15632 ac_log="
15633 This file was extended by $as_me, which was
15634 generated by GNU Autoconf 2.69. Invocation command line was
15636 CONFIG_FILES = $CONFIG_FILES
15637 CONFIG_HEADERS = $CONFIG_HEADERS
15638 CONFIG_LINKS = $CONFIG_LINKS
15639 CONFIG_COMMANDS = $CONFIG_COMMANDS
15640 $ $0 $@
15642 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15645 _ACEOF
15647 case $ac_config_files in *"
15648 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15649 esac
15651 case $ac_config_headers in *"
15652 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15653 esac
15656 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15657 # Files that config.status was made for.
15658 config_files="$ac_config_files"
15659 config_headers="$ac_config_headers"
15661 _ACEOF
15663 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15664 ac_cs_usage="\
15665 \`$as_me' instantiates files and other configuration actions
15666 from templates according to the current configuration. Unless the files
15667 and actions are specified as TAGs, all are instantiated by default.
15669 Usage: $0 [OPTION]... [TAG]...
15671 -h, --help print this help, then exit
15672 -V, --version print version number and configuration settings, then exit
15673 --config print configuration, then exit
15674 -q, --quiet, --silent
15675 do not print progress messages
15676 -d, --debug don't remove temporary files
15677 --recheck update $as_me by reconfiguring in the same conditions
15678 --file=FILE[:TEMPLATE]
15679 instantiate the configuration file FILE
15680 --header=FILE[:TEMPLATE]
15681 instantiate the configuration header FILE
15683 Configuration files:
15684 $config_files
15686 Configuration headers:
15687 $config_headers
15689 Report bugs to the package provider."
15691 _ACEOF
15692 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15693 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15694 ac_cs_version="\\
15695 config.status
15696 configured by $0, generated by GNU Autoconf 2.69,
15697 with options \\"\$ac_cs_config\\"
15699 Copyright (C) 2012 Free Software Foundation, Inc.
15700 This config.status script is free software; the Free Software Foundation
15701 gives unlimited permission to copy, distribute and modify it."
15703 ac_pwd='$ac_pwd'
15704 srcdir='$srcdir'
15705 test -n "\$AWK" || AWK=awk
15706 _ACEOF
15708 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15709 # The default lists apply if the user does not specify any file.
15710 ac_need_defaults=:
15711 while test $# != 0
15713 case $1 in
15714 --*=?*)
15715 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15716 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15717 ac_shift=:
15719 --*=)
15720 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15721 ac_optarg=
15722 ac_shift=:
15725 ac_option=$1
15726 ac_optarg=$2
15727 ac_shift=shift
15729 esac
15731 case $ac_option in
15732 # Handling of the options.
15733 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15734 ac_cs_recheck=: ;;
15735 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15736 $as_echo "$ac_cs_version"; exit ;;
15737 --config | --confi | --conf | --con | --co | --c )
15738 $as_echo "$ac_cs_config"; exit ;;
15739 --debug | --debu | --deb | --de | --d | -d )
15740 debug=: ;;
15741 --file | --fil | --fi | --f )
15742 $ac_shift
15743 case $ac_optarg in
15744 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15745 '') as_fn_error $? "missing file argument" ;;
15746 esac
15747 as_fn_append CONFIG_FILES " '$ac_optarg'"
15748 ac_need_defaults=false;;
15749 --header | --heade | --head | --hea )
15750 $ac_shift
15751 case $ac_optarg in
15752 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15753 esac
15754 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15755 ac_need_defaults=false;;
15756 --he | --h)
15757 # Conflict between --help and --header
15758 as_fn_error $? "ambiguous option: \`$1'
15759 Try \`$0 --help' for more information.";;
15760 --help | --hel | -h )
15761 $as_echo "$ac_cs_usage"; exit ;;
15762 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15763 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15764 ac_cs_silent=: ;;
15766 # This is an error.
15767 -*) as_fn_error $? "unrecognized option: \`$1'
15768 Try \`$0 --help' for more information." ;;
15770 *) as_fn_append ac_config_targets " $1"
15771 ac_need_defaults=false ;;
15773 esac
15774 shift
15775 done
15777 ac_configure_extra_args=
15779 if $ac_cs_silent; then
15780 exec 6>/dev/null
15781 ac_configure_extra_args="$ac_configure_extra_args --silent"
15784 _ACEOF
15785 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15786 if \$ac_cs_recheck; then
15787 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15788 shift
15789 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15790 CONFIG_SHELL='$SHELL'
15791 export CONFIG_SHELL
15792 exec "\$@"
15795 _ACEOF
15796 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15797 exec 5>>config.log
15799 echo
15800 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15801 ## Running $as_me. ##
15802 _ASBOX
15803 $as_echo "$ac_log"
15804 } >&5
15806 _ACEOF
15807 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15808 _ACEOF
15810 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15812 # Handling of arguments.
15813 for ac_config_target in $ac_config_targets
15815 case $ac_config_target in
15816 "src/include/pcp/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pcp/config.h" ;;
15817 "src/include/pcp/configsz.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pcp/configsz.h" ;;
15818 "src/include/pcp/platform_defs.h") CONFIG_FILES="$CONFIG_FILES src/include/pcp/platform_defs.h" ;;
15819 "src/include/builddefs") CONFIG_FILES="$CONFIG_FILES src/include/builddefs" ;;
15820 "src/include/pcp.conf") CONFIG_FILES="$CONFIG_FILES src/include/pcp.conf" ;;
15821 "pcp.lsm") CONFIG_FILES="$CONFIG_FILES pcp.lsm" ;;
15822 "debian/pcp.preinst.head") CONFIG_FILES="$CONFIG_FILES debian/pcp.preinst.head" ;;
15823 "debian/pcp.postinst.head") CONFIG_FILES="$CONFIG_FILES debian/pcp.postinst.head" ;;
15824 "build/tar/preinstall.head") CONFIG_FILES="$CONFIG_FILES build/tar/preinstall.head" ;;
15825 "build/tar/postinstall.head") CONFIG_FILES="$CONFIG_FILES build/tar/postinstall.head" ;;
15826 "build/GNUlocaldefs") CONFIG_FILES="$CONFIG_FILES build/GNUlocaldefs" ;;
15827 "build/mac/uninstall-pcp") CONFIG_FILES="$CONFIG_FILES build/mac/uninstall-pcp" ;;
15829 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15830 esac
15831 done
15834 # If the user did not use the arguments to specify the items to instantiate,
15835 # then the envvar interface is used. Set only those that are not.
15836 # We use the long form for the default assignment because of an extremely
15837 # bizarre bug on SunOS 4.1.3.
15838 if $ac_need_defaults; then
15839 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15840 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15843 # Have a temporary directory for convenience. Make it in the build tree
15844 # simply because there is no reason against having it here, and in addition,
15845 # creating and moving files from /tmp can sometimes cause problems.
15846 # Hook for its removal unless debugging.
15847 # Note that there is a small window in which the directory will not be cleaned:
15848 # after its creation but before its name has been assigned to `$tmp'.
15849 $debug ||
15851 tmp= ac_tmp=
15852 trap 'exit_status=$?
15853 : "${ac_tmp:=$tmp}"
15854 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15856 trap 'as_fn_exit 1' 1 2 13 15
15858 # Create a (secure) tmp directory for tmp files.
15861 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15862 test -d "$tmp"
15863 } ||
15865 tmp=./conf$$-$RANDOM
15866 (umask 077 && mkdir "$tmp")
15867 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15868 ac_tmp=$tmp
15870 # Set up the scripts for CONFIG_FILES section.
15871 # No need to generate them if there are no CONFIG_FILES.
15872 # This happens for instance with `./config.status config.h'.
15873 if test -n "$CONFIG_FILES"; then
15876 ac_cr=`echo X | tr X '\015'`
15877 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15878 # But we know of no other shell where ac_cr would be empty at this
15879 # point, so we can use a bashism as a fallback.
15880 if test "x$ac_cr" = x; then
15881 eval ac_cr=\$\'\\r\'
15883 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15884 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15885 ac_cs_awk_cr='\\r'
15886 else
15887 ac_cs_awk_cr=$ac_cr
15890 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15891 _ACEOF
15895 echo "cat >conf$$subs.awk <<_ACEOF" &&
15896 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15897 echo "_ACEOF"
15898 } >conf$$subs.sh ||
15899 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15900 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15901 ac_delim='%!_!# '
15902 for ac_last_try in false false false false false :; do
15903 . ./conf$$subs.sh ||
15904 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15906 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15907 if test $ac_delim_n = $ac_delim_num; then
15908 break
15909 elif $ac_last_try; then
15910 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15911 else
15912 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15914 done
15915 rm -f conf$$subs.sh
15917 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15918 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15919 _ACEOF
15920 sed -n '
15922 s/^/S["/; s/!.*/"]=/
15925 s/^[^!]*!//
15926 :repl
15927 t repl
15928 s/'"$ac_delim"'$//
15929 t delim
15932 s/\(.\{148\}\)..*/\1/
15933 t more1
15934 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15937 b repl
15938 :more1
15939 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15942 s/.\{148\}//
15943 t nl
15944 :delim
15946 s/\(.\{148\}\)..*/\1/
15947 t more2
15948 s/["\\]/\\&/g; s/^/"/; s/$/"/
15951 :more2
15952 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15955 s/.\{148\}//
15956 t delim
15957 ' <conf$$subs.awk | sed '
15958 /^[^""]/{
15960 s/\n//
15962 ' >>$CONFIG_STATUS || ac_write_fail=1
15963 rm -f conf$$subs.awk
15964 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15965 _ACAWK
15966 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15967 for (key in S) S_is_set[key] = 1
15968 FS = "\a"
15972 line = $ 0
15973 nfields = split(line, field, "@")
15974 substed = 0
15975 len = length(field[1])
15976 for (i = 2; i < nfields; i++) {
15977 key = field[i]
15978 keylen = length(key)
15979 if (S_is_set[key]) {
15980 value = S[key]
15981 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15982 len += length(value) + length(field[++i])
15983 substed = 1
15984 } else
15985 len += 1 + keylen
15988 print line
15991 _ACAWK
15992 _ACEOF
15993 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15994 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15995 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15996 else
15998 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15999 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16000 _ACEOF
16002 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16003 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16004 # trailing colons and then remove the whole line if VPATH becomes empty
16005 # (actually we leave an empty line to preserve line numbers).
16006 if test "x$srcdir" = x.; then
16007 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16009 s///
16010 s/^/:/
16011 s/[ ]*$/:/
16012 s/:\$(srcdir):/:/g
16013 s/:\${srcdir}:/:/g
16014 s/:@srcdir@:/:/g
16015 s/^:*//
16016 s/:*$//
16018 s/\(=[ ]*\).*/\1/
16020 s/\n//
16021 s/^[^=]*=[ ]*$//
16025 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16026 fi # test -n "$CONFIG_FILES"
16028 # Set up the scripts for CONFIG_HEADERS section.
16029 # No need to generate them if there are no CONFIG_HEADERS.
16030 # This happens for instance with `./config.status Makefile'.
16031 if test -n "$CONFIG_HEADERS"; then
16032 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16033 BEGIN {
16034 _ACEOF
16036 # Transform confdefs.h into an awk script `defines.awk', embedded as
16037 # here-document in config.status, that substitutes the proper values into
16038 # config.h.in to produce config.h.
16040 # Create a delimiter string that does not exist in confdefs.h, to ease
16041 # handling of long lines.
16042 ac_delim='%!_!# '
16043 for ac_last_try in false false :; do
16044 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16045 if test -z "$ac_tt"; then
16046 break
16047 elif $ac_last_try; then
16048 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16049 else
16050 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16052 done
16054 # For the awk script, D is an array of macro values keyed by name,
16055 # likewise P contains macro parameters if any. Preserve backslash
16056 # newline sequences.
16058 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16059 sed -n '
16060 s/.\{148\}/&'"$ac_delim"'/g
16061 t rset
16062 :rset
16063 s/^[ ]*#[ ]*define[ ][ ]*/ /
16064 t def
16066 :def
16067 s/\\$//
16068 t bsnl
16069 s/["\\]/\\&/g
16070 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16071 D["\1"]=" \3"/p
16072 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16074 :bsnl
16075 s/["\\]/\\&/g
16076 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16077 D["\1"]=" \3\\\\\\n"\\/p
16078 t cont
16079 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16080 t cont
16082 :cont
16084 s/.\{148\}/&'"$ac_delim"'/g
16085 t clear
16086 :clear
16087 s/\\$//
16088 t bsnlc
16089 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16091 :bsnlc
16092 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16093 b cont
16094 ' <confdefs.h | sed '
16095 s/'"$ac_delim"'/"\\\
16096 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16098 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16099 for (key in D) D_is_set[key] = 1
16100 FS = "\a"
16102 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16103 line = \$ 0
16104 split(line, arg, " ")
16105 if (arg[1] == "#") {
16106 defundef = arg[2]
16107 mac1 = arg[3]
16108 } else {
16109 defundef = substr(arg[1], 2)
16110 mac1 = arg[2]
16112 split(mac1, mac2, "(") #)
16113 macro = mac2[1]
16114 prefix = substr(line, 1, index(line, defundef) - 1)
16115 if (D_is_set[macro]) {
16116 # Preserve the white space surrounding the "#".
16117 print prefix "define", macro P[macro] D[macro]
16118 next
16119 } else {
16120 # Replace #undef with comments. This is necessary, for example,
16121 # in the case of _POSIX_SOURCE, which is predefined and required
16122 # on some systems where configure will not decide to define it.
16123 if (defundef == "undef") {
16124 print "/*", prefix defundef, macro, "*/"
16125 next
16129 { print }
16130 _ACAWK
16131 _ACEOF
16132 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16133 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16134 fi # test -n "$CONFIG_HEADERS"
16137 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
16138 shift
16139 for ac_tag
16141 case $ac_tag in
16142 :[FHLC]) ac_mode=$ac_tag; continue;;
16143 esac
16144 case $ac_mode$ac_tag in
16145 :[FHL]*:*);;
16146 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16147 :[FH]-) ac_tag=-:-;;
16148 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16149 esac
16150 ac_save_IFS=$IFS
16151 IFS=:
16152 set x $ac_tag
16153 IFS=$ac_save_IFS
16154 shift
16155 ac_file=$1
16156 shift
16158 case $ac_mode in
16159 :L) ac_source=$1;;
16160 :[FH])
16161 ac_file_inputs=
16162 for ac_f
16164 case $ac_f in
16165 -) ac_f="$ac_tmp/stdin";;
16166 *) # Look for the file first in the build tree, then in the source tree
16167 # (if the path is not absolute). The absolute path cannot be DOS-style,
16168 # because $ac_f cannot contain `:'.
16169 test -f "$ac_f" ||
16170 case $ac_f in
16171 [\\/$]*) false;;
16172 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16173 esac ||
16174 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16175 esac
16176 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16177 as_fn_append ac_file_inputs " '$ac_f'"
16178 done
16180 # Let's still pretend it is `configure' which instantiates (i.e., don't
16181 # use $as_me), people would be surprised to read:
16182 # /* config.h. Generated by config.status. */
16183 configure_input='Generated from '`
16184 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16185 `' by configure.'
16186 if test x"$ac_file" != x-; then
16187 configure_input="$ac_file. $configure_input"
16188 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16189 $as_echo "$as_me: creating $ac_file" >&6;}
16191 # Neutralize special characters interpreted by sed in replacement strings.
16192 case $configure_input in #(
16193 *\&* | *\|* | *\\* )
16194 ac_sed_conf_input=`$as_echo "$configure_input" |
16195 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16196 *) ac_sed_conf_input=$configure_input;;
16197 esac
16199 case $ac_tag in
16200 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16201 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16202 esac
16204 esac
16206 ac_dir=`$as_dirname -- "$ac_file" ||
16207 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16208 X"$ac_file" : 'X\(//\)[^/]' \| \
16209 X"$ac_file" : 'X\(//\)$' \| \
16210 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16211 $as_echo X"$ac_file" |
16212 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16213 s//\1/
16216 /^X\(\/\/\)[^/].*/{
16217 s//\1/
16220 /^X\(\/\/\)$/{
16221 s//\1/
16224 /^X\(\/\).*/{
16225 s//\1/
16228 s/.*/./; q'`
16229 as_dir="$ac_dir"; as_fn_mkdir_p
16230 ac_builddir=.
16232 case "$ac_dir" in
16233 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16235 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16236 # A ".." for each directory in $ac_dir_suffix.
16237 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16238 case $ac_top_builddir_sub in
16239 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16240 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16241 esac ;;
16242 esac
16243 ac_abs_top_builddir=$ac_pwd
16244 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16245 # for backward compatibility:
16246 ac_top_builddir=$ac_top_build_prefix
16248 case $srcdir in
16249 .) # We are building in place.
16250 ac_srcdir=.
16251 ac_top_srcdir=$ac_top_builddir_sub
16252 ac_abs_top_srcdir=$ac_pwd ;;
16253 [\\/]* | ?:[\\/]* ) # Absolute name.
16254 ac_srcdir=$srcdir$ac_dir_suffix;
16255 ac_top_srcdir=$srcdir
16256 ac_abs_top_srcdir=$srcdir ;;
16257 *) # Relative name.
16258 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16259 ac_top_srcdir=$ac_top_build_prefix$srcdir
16260 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16261 esac
16262 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16265 case $ac_mode in
16268 # CONFIG_FILE
16271 _ACEOF
16273 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16274 # If the template does not know about datarootdir, expand it.
16275 # FIXME: This hack should be removed a few years after 2.60.
16276 ac_datarootdir_hack=; ac_datarootdir_seen=
16277 ac_sed_dataroot='
16278 /datarootdir/ {
16282 /@datadir@/p
16283 /@docdir@/p
16284 /@infodir@/p
16285 /@localedir@/p
16286 /@mandir@/p'
16287 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16288 *datarootdir*) ac_datarootdir_seen=yes;;
16289 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16290 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16291 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16292 _ACEOF
16293 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16294 ac_datarootdir_hack='
16295 s&@datadir@&$datadir&g
16296 s&@docdir@&$docdir&g
16297 s&@infodir@&$infodir&g
16298 s&@localedir@&$localedir&g
16299 s&@mandir@&$mandir&g
16300 s&\\\${datarootdir}&$datarootdir&g' ;;
16301 esac
16302 _ACEOF
16304 # Neutralize VPATH when `$srcdir' = `.'.
16305 # Shell code in configure.ac might set extrasub.
16306 # FIXME: do we really want to maintain this feature?
16307 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16308 ac_sed_extra="$ac_vpsub
16309 $extrasub
16310 _ACEOF
16311 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16313 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16314 s|@configure_input@|$ac_sed_conf_input|;t t
16315 s&@top_builddir@&$ac_top_builddir_sub&;t t
16316 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16317 s&@srcdir@&$ac_srcdir&;t t
16318 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16319 s&@top_srcdir@&$ac_top_srcdir&;t t
16320 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16321 s&@builddir@&$ac_builddir&;t t
16322 s&@abs_builddir@&$ac_abs_builddir&;t t
16323 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16324 $ac_datarootdir_hack
16326 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16327 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16329 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16330 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16331 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16332 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16333 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16334 which seems to be undefined. Please make sure it is defined" >&5
16335 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16336 which seems to be undefined. Please make sure it is defined" >&2;}
16338 rm -f "$ac_tmp/stdin"
16339 case $ac_file in
16340 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16341 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16342 esac \
16343 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16347 # CONFIG_HEADER
16349 if test x"$ac_file" != x-; then
16351 $as_echo "/* $configure_input */" \
16352 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16353 } >"$ac_tmp/config.h" \
16354 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16355 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16356 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16357 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16358 else
16359 rm -f "$ac_file"
16360 mv "$ac_tmp/config.h" "$ac_file" \
16361 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16363 else
16364 $as_echo "/* $configure_input */" \
16365 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16366 || as_fn_error $? "could not create -" "$LINENO" 5
16371 esac
16373 done # for ac_tag
16376 as_fn_exit 0
16377 _ACEOF
16378 ac_clean_files=$ac_clean_files_save
16380 test $ac_write_fail = 0 ||
16381 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16384 # configure is writing to config.log, and then calls config.status.
16385 # config.status does its own redirection, appending to config.log.
16386 # Unfortunately, on DOS this fails, as config.log is still kept open
16387 # by configure, so config.status won't be able to write to it; its
16388 # output is simply discarded. So we exec the FD to /dev/null,
16389 # effectively closing config.log, so it can be properly (re)opened and
16390 # appended to by config.status. When coming back to configure, we
16391 # need to make the FD available again.
16392 if test "$no_create" != yes; then
16393 ac_cs_success=:
16394 ac_config_status_args=
16395 test "$silent" = yes &&
16396 ac_config_status_args="$ac_config_status_args --quiet"
16397 exec 5>/dev/null
16398 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16399 exec 5>>config.log
16400 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16401 # would make configure fail if this is the last instruction.
16402 $ac_cs_success || as_fn_exit 1
16404 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16405 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16406 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}