pmdalinux: fix zoneinfo protection metrics on 32-bit platforms
[pcp.git] / configure
blob5af05f3f47afa8a581d94275314ac96c58bba2da
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
18 emulate sh
19 NULLCMD=:
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
23 setopt NO_GLOB_SUBST
24 else
25 case `(set -o) 2>/dev/null` in #(
26 *posix*) :
27 set -o posix ;; #(
28 *) :
30 esac
34 as_nl='
36 export as_nl
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
45 as_echo='print -r --'
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo='printf %s\n'
49 as_echo_n='printf %s'
50 else
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
54 else
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
56 as_echo_n_body='eval
57 arg=$1;
58 case $arg in #(
59 *"$as_nl"*)
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
62 esac;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
65 export as_echo_n_body
66 as_echo_n='sh -c $as_echo_n_body as_echo'
68 export as_echo_body
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
74 PATH_SEPARATOR=:
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
77 PATH_SEPARATOR=';'
82 # IFS
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
87 IFS=" "" $as_nl"
89 # Find who we are. Look in the path if we contain no directory separator.
90 as_myself=
91 case $0 in #((
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
94 for as_dir in $PATH
96 IFS=$as_save_IFS
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
99 done
100 IFS=$as_save_IFS
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107 as_myself=$0
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111 exit 1
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
121 done
122 PS1='$ '
123 PS2='> '
124 PS4='+ '
126 # NLS nuisances.
127 LC_ALL=C
128 export LC_ALL
129 LANGUAGE=C
130 export LANGUAGE
132 # CDPATH.
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
143 BASH_ENV=/dev/null
144 ENV=/dev/null
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
146 case $- in # ((((
147 *v*x* | *x*v* ) as_opts=-vx ;;
148 *v* ) as_opts=-v ;;
149 *x* ) as_opts=-x ;;
150 * ) as_opts= ;;
151 esac
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
156 as_fn_exit 255
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
162 emulate sh
163 NULLCMD=:
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
167 setopt NO_GLOB_SUBST
168 else
169 case \`(set -o) 2>/dev/null\` in #(
170 *posix*) :
171 set -o posix ;; #(
172 *) :
174 esac
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
183 exitcode=0
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
190 else
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
194 test -x / || exit 1"
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
201 as_have_required=yes
202 else
203 as_have_required=no
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
207 else
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
209 as_found=false
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
212 IFS=$as_save_IFS
213 test -z "$as_dir" && as_dir=.
214 as_found=:
215 case $as_dir in #(
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 break 2
227 done;;
228 esac
229 as_found=false
230 done
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
234 fi; }
235 IFS=$as_save_IFS
238 if test "x$CONFIG_SHELL" != x; then :
239 export CONFIG_SHELL
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
244 BASH_ENV=/dev/null
245 ENV=/dev/null
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
247 case $- in # ((((
248 *v*x* | *x*v* ) as_opts=-vx ;;
249 *v* ) as_opts=-v ;;
250 *x* ) as_opts=-x ;;
251 * ) as_opts= ;;
252 esac
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
257 exit 255
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
266 else
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
272 exit 1
276 SHELL=${CONFIG_SHELL-/bin/sh}
277 export SHELL
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
285 # as_fn_unset VAR
286 # ---------------
287 # Portably unset VAR.
288 as_fn_unset ()
290 { eval $1=; unset $1;}
292 as_unset=as_fn_unset
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
297 as_fn_set_status ()
299 return $1
300 } # as_fn_set_status
302 # as_fn_exit STATUS
303 # -----------------
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
305 as_fn_exit ()
307 set +e
308 as_fn_set_status $1
309 exit $1
310 } # as_fn_exit
312 # as_fn_mkdir_p
313 # -------------
314 # Create "$as_dir" as a directory, including parents if necessary.
315 as_fn_mkdir_p ()
318 case $as_dir in #(
319 -*) as_dir=./$as_dir;;
320 esac
321 test -d "$as_dir" || eval $as_mkdir_p || {
322 as_dirs=
323 while :; do
324 case $as_dir in #(
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
326 *) as_qdir=$as_dir;;
327 esac
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
336 s//\1/
339 /^X\(\/\/\)[^/].*/{
340 s//\1/
343 /^X\(\/\/\)$/{
344 s//\1/
347 /^X\(\/\).*/{
348 s//\1/
351 s/.*/./; q'`
352 test -d "$as_dir" && break
353 done
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
358 } # as_fn_mkdir_p
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
372 # implementations.
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
376 eval $1+=\$2
378 else
379 as_fn_append ()
381 eval $1=\$$1\$2
383 fi # as_fn_append
385 # as_fn_arith ARG...
386 # ------------------
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
391 eval 'as_fn_arith ()
393 as_val=$(( $* ))
395 else
396 as_fn_arith ()
398 as_val=`expr "$@" || test $? -eq 1`
400 fi # as_fn_arith
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
408 as_fn_error ()
410 as_status=$1; test $as_status -eq 0 && as_status=1
411 if test "$4"; then
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
417 } # as_fn_error
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
421 as_expr=expr
422 else
423 as_expr=false
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
427 as_basename=basename
428 else
429 as_basename=false
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
433 as_dirname=dirname
434 else
435 as_dirname=false
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
442 $as_echo X/"$0" |
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
444 s//\1/
447 /^X\/\(\/\/\)$/{
448 s//\1/
451 /^X\/\(\/\).*/{
452 s//\1/
455 s/.*/./; q'`
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
470 sed -n '
472 /[$]LINENO/=
473 ' <$as_myself |
474 sed '
475 s/[$]LINENO.*/&-/
476 t lineno
478 :lineno
480 :loop
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
482 t loop
483 s/-\n.*//
484 ' >$as_me.lineno &&
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
495 . "./$as_me.lineno"
496 # Exit status is that of the last command.
497 exit
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
502 -n*)
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
505 xy) ECHO_C='\c';;
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
507 ECHO_T=' ';;
508 esac;;
510 ECHO_N='-n';;
511 esac
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
516 else
517 rm -f conf$$.dir
518 mkdir conf$$.dir 2>/dev/null
520 if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
522 as_ln_s='ln -s'
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
528 as_ln_s='cp -pR'
529 elif ln conf$$.file conf$$ 2>/dev/null; then
530 as_ln_s=ln
531 else
532 as_ln_s='cp -pR'
534 else
535 as_ln_s='cp -pR'
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
540 if mkdir -p . 2>/dev/null; then
541 as_mkdir_p='mkdir -p "$as_dir"'
542 else
543 test -d ./-p && rmdir ./-p
544 as_mkdir_p=false
547 as_test_x='test -x'
548 as_executable_p=as_fn_executable_p
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 test -n "$DJDIR" || exec 7<&0 </dev/null
558 exec 6>&1
560 # Name of the host.
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
566 # Initializations.
568 ac_default_prefix=/usr/local
569 ac_clean_files=
570 ac_config_libobj_dir=.
571 LIBOBJS=
572 cross_compiling=no
573 subdirs=
574 MFLAGS=
575 MAKEFLAGS=
577 # Identity of this package.
578 PACKAGE_NAME=
579 PACKAGE_TARNAME=
580 PACKAGE_VERSION=
581 PACKAGE_STRING=
582 PACKAGE_BUGREPORT=
583 PACKAGE_URL=
585 ac_unique_file="src/include/pcp/pmapi.h"
586 # Factoring default headers for most tests.
587 ac_includes_default="\
588 #include <stdio.h>
589 #ifdef HAVE_SYS_TYPES_H
590 # include <sys/types.h>
591 #endif
592 #ifdef HAVE_SYS_STAT_H
593 # include <sys/stat.h>
594 #endif
595 #ifdef STDC_HEADERS
596 # include <stdlib.h>
597 # include <stddef.h>
598 #else
599 # ifdef HAVE_STDLIB_H
600 # include <stdlib.h>
601 # endif
602 #endif
603 #ifdef HAVE_STRING_H
604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
605 # include <memory.h>
606 # endif
607 # include <string.h>
608 #endif
609 #ifdef HAVE_STRINGS_H
610 # include <strings.h>
611 #endif
612 #ifdef HAVE_INTTYPES_H
613 # include <inttypes.h>
614 #endif
615 #ifdef HAVE_STDINT_H
616 # include <stdint.h>
617 #endif
618 #ifdef HAVE_UNISTD_H
619 # include <unistd.h>
620 #endif"
622 ac_subst_vars='PACKAGE_CONFIGURE
623 have_webjs
624 have_vector
625 have_parfait
626 HAVE_ZLIB
627 zlib_LIBS
628 zlib_CFLAGS
629 lib_for_curses
630 lib_for_readline
631 pcp_mpi_dirs
632 lib_for_atomic
633 enable_secure
634 lib_for_nspr
635 lib_for_nss
636 lib_for_ssl
637 lib_for_sasl
638 SASLCFLAGS
639 NSPRCFLAGS
640 NSSCFLAGS
641 ac_xconfirm_prog
642 pcp_demos_dir
643 pcp_doc_dir
644 pcp_tmp_dir
645 pcp_tmpfile_dir
646 pcp_run_dir
647 pcp_log_dir
648 pcp_sysconfig_dir
649 pcp_rc_dir
650 pcp_desktop_dir
651 pcp_icons_dir
652 pcp_html_dir
653 pcp_books_dir
654 pcp_inc_dir
655 pcp_sbin_dir
656 pcp_bin_dir
657 need_old_tbl_header
658 have_xzed_manpages
659 have_lzmaed_manpages
660 have_bzip2ed_manpages
661 have_gzipped_manpages
662 have_manpages
663 pcp_man_dir
664 pcp_x11_pre
665 pcp_x11_extra
666 pcp_x11_libflags
667 pcp_x11_incflags
668 X_EXTRA_LIBS
669 X_LIBS
670 X_PRE_LIBS
671 X_CFLAGS
672 XMKMF
673 python_prefix
674 perl_install_base
675 perl_installdirs
676 pcp_lib32_dir
677 pcp_lib_dir
678 pcp_pmdas_dir
679 pcp_var_dir
680 pcp_binadm_dir
681 pcp_share_dir
682 pcp_pmloggercontrol_path
683 pcp_pmsnapcontrol_path
684 pcp_pmiecontrol_path
685 pcp_pmproxyoptions_path
686 pcp_pmmgroptions_path
687 pcp_pmwebdoptions_path
688 pcp_pmcdrclocal_path
689 pcp_pmcdoptions_path
690 pcp_pmcdconf_path
691 pcp_sysconf_dir
692 pcp_saslconf_dir
693 pcp_etc_dir
694 lib_for_math
695 lib_for_dlopen
696 lib_for_rt
697 lib_for_basename
698 fmt_pthread
699 lib_for_pthreads
700 fmt_uint64
701 fmt_int64
702 fmt_pid
703 rdynamic_flag
704 pcp_selinux_dir
705 enable_selinux
706 enable_manager
707 enable_webapi
708 HAVE_CAIRO
709 cairo_LIBS
710 cairo_CFLAGS
711 HAVE_LIBMICROHTTPD
712 libmicrohttpd_LIBS
713 libmicrohttpd_CFLAGS
714 PMDA_POSTFIX
715 QSHAPE
716 PMDA_RPM
717 PMDA_PERFEVENT
718 PFM_LIBS
719 PMDA_PAPI
720 PAPI_LIBS
721 PAPI_CFLAGS
722 papi_LIBS
723 papi_CFLAGS
724 PMDA_INFINIBAND
725 IB_LIBS
726 PMDA_SYSTEMD
727 SYSTEMD_LIBS
728 SYSTEMD_CFLAGS
729 HAVE_NCURSES
730 ncurses_LIBS
731 ncurses_CFLAGS
732 lib_for_regex
733 grep
734 pcp_syslog_prog
735 pcp_ps_prog
736 LN_S
737 book_brand
738 book_toolchain
739 xmlto
740 XMLTO
741 dblatex
742 DBLATEX
743 publican
744 PUBLICAN
745 makepkg
746 MAKEPKG
747 dpkg
748 DPKG
749 md5sum
750 MD5SUM
751 makedepend
752 MAKEDEPEND
753 TRUEPROG
754 pod2man
755 POD2MAN
756 rpmprog
759 rpmbuild
760 RPMBUILD
761 dlltool
762 DLLTOOL
763 pkgmk
764 PKGMK
765 mkinstallp
766 MKINSTALLP
767 hdiutil
768 HDIUTIL
769 package_maker
772 lzma
773 LZMA
774 bzip2
775 BZIP2
776 gzip
780 pcp_group_install
781 pcp_user_install
785 make
786 MAKE
787 enable_qt3d
788 qmake
789 enable_qt
790 qt_release
791 QMAKE
792 PMDA_LIBVIRT
793 PMDA_LIO
794 PMDA_NUTCRACKER
795 PMDA_BIND2
796 PMDA_ACTIVEMQ
797 PMDA_NGINX
798 PMDA_ELASTICSEARCH
799 PMDA_ORACLE
800 PMDA_POSTGRESQL
801 PMDA_MYSQL
802 PMDA_SNMP
803 have_perl
804 pcp_perl_prog
805 PERL
806 have_python_libvirt
807 PMDA_JSON
808 have_python_six
809 have_python_requests
810 have_python_setuptools
811 have_python_jsonpointer
812 pcp_python_prog
813 have_python
814 enable_python3
815 enable_python2
816 PYTHON3
817 PYTHON
819 LTLIBOBJS
820 LIBOBJS
821 pm_version_current
822 PACKAGE_DISTRIBUTION
823 PACKAGE_BUILD_DATE
824 PACKAGE_BUILD
825 PACKAGE_REVISION
826 PACKAGE_MINOR
827 PACKAGE_MAJOR
828 enable_systemd
829 pcp_systemdunit_dir
830 SYSTEMD_SYSTEMUNITDIR
831 enable_avahi
832 enable_discovery
833 lib_for_avahi
834 avahi_LIBS
835 avahi_CFLAGS
836 enable_probes
838 DTRACE
839 EGREP
840 GREP
841 echo_c
842 echo_n
843 sort
844 yacc
845 YFLAGS
846 YACC
848 LEXLIB
849 LEX_OUTPUT_ROOT
851 which
852 WHICH
853 find
854 FIND
855 echo
856 ECHO
861 enable_shared
863 ac_ct_CXX
864 CXXFLAGS
866 INVISIBILITY
867 PIECFLAGS
868 PIELDFLAGS
869 PLDFLAGS
870 PCFLAGS
871 cflags_abi
872 cc_is_gcc
874 CCPATH
875 OBJEXT
876 EXEEXT
877 ac_ct_CC
878 CPPFLAGS
879 LDFLAGS
880 CFLAGS
882 PKG_CONFIG_LIBDIR
883 PKG_CONFIG_PATH
884 PKG_CONFIG
885 optimization
886 pcp_ps_all_flags
887 pcp_platform_paths
888 cross_compiling
889 target_os
890 target_vendor
891 target_cpu
892 target
893 host_os
894 host_vendor
895 host_cpu
896 host
897 build_os
898 build_vendor
899 build_cpu
900 build
901 pcp_group
902 pcp_user
903 target_alias
904 host_alias
905 build_alias
906 LIBS
907 ECHO_T
908 ECHO_N
909 ECHO_C
910 DEFS
911 mandir
912 localedir
913 libdir
914 psdir
915 pdfdir
916 dvidir
917 htmldir
918 infodir
919 docdir
920 oldincludedir
921 includedir
922 localstatedir
923 sharedstatedir
924 sysconfdir
925 datadir
926 datarootdir
927 libexecdir
928 sbindir
929 bindir
930 program_transform_name
931 prefix
932 exec_prefix
933 PACKAGE_URL
934 PACKAGE_BUGREPORT
935 PACKAGE_STRING
936 PACKAGE_VERSION
937 PACKAGE_TARNAME
938 PACKAGE_NAME
939 PATH_SEPARATOR
940 SHELL'
941 ac_subst_files=''
942 ac_user_opts='
943 enable_option_checking
944 with_64bit
945 with_optimization
946 with_threads
947 with_secure_sockets
948 with_static_probes
949 with_infiniband
950 with_user
951 with_group
952 with_discovery
953 with_systemd
954 with_qt
955 with_qt3d
956 with_python
957 with_python3
958 with_books
959 with_books_brand
960 with_papi
961 with_perfevent
962 with_pmdajson
963 with_pmdasnmp
964 with_manager
965 with_webapi
966 with_webjs
967 with_vector
968 with_parfait
969 with_selinux
970 with_make
971 with_tar
972 with_zip
973 enable_ssp
974 enable_pie
975 enable_visibility
976 enable_shared
977 with_configdir
978 with_perl_installdirs
979 with_perl_install_base
980 with_python_prefix
981 with_x
982 with_rcdir
983 with_sysconfigdir
984 with_logdir
985 with_rundir
986 with_tmpdir
987 with_docdir
988 with_demosdir
990 ac_precious_vars='build_alias
991 host_alias
992 target_alias
993 PKG_CONFIG
994 PKG_CONFIG_PATH
995 PKG_CONFIG_LIBDIR
997 CFLAGS
998 LDFLAGS
999 LIBS
1000 CPPFLAGS
1002 CXXFLAGS
1004 YACC
1005 YFLAGS
1007 avahi_CFLAGS
1008 avahi_LIBS
1009 SYSTEMD_SYSTEMUNITDIR
1010 ncurses_CFLAGS
1011 ncurses_LIBS
1012 SYSTEMD_CFLAGS
1013 SYSTEMD_LIBS
1014 papi_CFLAGS
1015 papi_LIBS
1016 libmicrohttpd_CFLAGS
1017 libmicrohttpd_LIBS
1018 cairo_CFLAGS
1019 cairo_LIBS
1020 XMKMF
1021 zlib_CFLAGS
1022 zlib_LIBS'
1025 # Initialize some variables set by options.
1026 ac_init_help=
1027 ac_init_version=false
1028 ac_unrecognized_opts=
1029 ac_unrecognized_sep=
1030 # The variables have the same names as the options, with
1031 # dashes changed to underlines.
1032 cache_file=/dev/null
1033 exec_prefix=NONE
1034 no_create=
1035 no_recursion=
1036 prefix=NONE
1037 program_prefix=NONE
1038 program_suffix=NONE
1039 program_transform_name=s,x,x,
1040 silent=
1041 site=
1042 srcdir=
1043 verbose=
1044 x_includes=NONE
1045 x_libraries=NONE
1047 # Installation directory options.
1048 # These are left unexpanded so users can "make install exec_prefix=/foo"
1049 # and all the variables that are supposed to be based on exec_prefix
1050 # by default will actually change.
1051 # Use braces instead of parens because sh, perl, etc. also accept them.
1052 # (The list follows the same order as the GNU Coding Standards.)
1053 bindir='${exec_prefix}/bin'
1054 sbindir='${exec_prefix}/sbin'
1055 libexecdir='${exec_prefix}/libexec'
1056 datarootdir='${prefix}/share'
1057 datadir='${datarootdir}'
1058 sysconfdir='${prefix}/etc'
1059 sharedstatedir='${prefix}/com'
1060 localstatedir='${prefix}/var'
1061 includedir='${prefix}/include'
1062 oldincludedir='/usr/include'
1063 docdir='${datarootdir}/doc/${PACKAGE}'
1064 infodir='${datarootdir}/info'
1065 htmldir='${docdir}'
1066 dvidir='${docdir}'
1067 pdfdir='${docdir}'
1068 psdir='${docdir}'
1069 libdir='${exec_prefix}/lib'
1070 localedir='${datarootdir}/locale'
1071 mandir='${datarootdir}/man'
1073 ac_prev=
1074 ac_dashdash=
1075 for ac_option
1077 # If the previous option needs an argument, assign it.
1078 if test -n "$ac_prev"; then
1079 eval $ac_prev=\$ac_option
1080 ac_prev=
1081 continue
1084 case $ac_option in
1085 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1086 *=) ac_optarg= ;;
1087 *) ac_optarg=yes ;;
1088 esac
1090 # Accept the important Cygnus configure options, so we can diagnose typos.
1092 case $ac_dashdash$ac_option in
1094 ac_dashdash=yes ;;
1096 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1097 ac_prev=bindir ;;
1098 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1099 bindir=$ac_optarg ;;
1101 -build | --build | --buil | --bui | --bu)
1102 ac_prev=build_alias ;;
1103 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1104 build_alias=$ac_optarg ;;
1106 -cache-file | --cache-file | --cache-fil | --cache-fi \
1107 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1108 ac_prev=cache_file ;;
1109 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1110 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1111 cache_file=$ac_optarg ;;
1113 --config-cache | -C)
1114 cache_file=config.cache ;;
1116 -datadir | --datadir | --datadi | --datad)
1117 ac_prev=datadir ;;
1118 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1119 datadir=$ac_optarg ;;
1121 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1122 | --dataroo | --dataro | --datar)
1123 ac_prev=datarootdir ;;
1124 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1125 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1126 datarootdir=$ac_optarg ;;
1128 -disable-* | --disable-*)
1129 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1130 # Reject names that are not valid shell variable names.
1131 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1132 as_fn_error $? "invalid feature name: $ac_useropt"
1133 ac_useropt_orig=$ac_useropt
1134 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1135 case $ac_user_opts in
1137 "enable_$ac_useropt"
1138 "*) ;;
1139 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1140 ac_unrecognized_sep=', ';;
1141 esac
1142 eval enable_$ac_useropt=no ;;
1144 -docdir | --docdir | --docdi | --doc | --do)
1145 ac_prev=docdir ;;
1146 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1147 docdir=$ac_optarg ;;
1149 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1150 ac_prev=dvidir ;;
1151 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1152 dvidir=$ac_optarg ;;
1154 -enable-* | --enable-*)
1155 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1156 # Reject names that are not valid shell variable names.
1157 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1158 as_fn_error $? "invalid feature name: $ac_useropt"
1159 ac_useropt_orig=$ac_useropt
1160 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1161 case $ac_user_opts in
1163 "enable_$ac_useropt"
1164 "*) ;;
1165 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1166 ac_unrecognized_sep=', ';;
1167 esac
1168 eval enable_$ac_useropt=\$ac_optarg ;;
1170 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1171 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1172 | --exec | --exe | --ex)
1173 ac_prev=exec_prefix ;;
1174 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1175 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1176 | --exec=* | --exe=* | --ex=*)
1177 exec_prefix=$ac_optarg ;;
1179 -gas | --gas | --ga | --g)
1180 # Obsolete; use --with-gas.
1181 with_gas=yes ;;
1183 -help | --help | --hel | --he | -h)
1184 ac_init_help=long ;;
1185 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1186 ac_init_help=recursive ;;
1187 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1188 ac_init_help=short ;;
1190 -host | --host | --hos | --ho)
1191 ac_prev=host_alias ;;
1192 -host=* | --host=* | --hos=* | --ho=*)
1193 host_alias=$ac_optarg ;;
1195 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1196 ac_prev=htmldir ;;
1197 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1198 | --ht=*)
1199 htmldir=$ac_optarg ;;
1201 -includedir | --includedir | --includedi | --included | --include \
1202 | --includ | --inclu | --incl | --inc)
1203 ac_prev=includedir ;;
1204 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1205 | --includ=* | --inclu=* | --incl=* | --inc=*)
1206 includedir=$ac_optarg ;;
1208 -infodir | --infodir | --infodi | --infod | --info | --inf)
1209 ac_prev=infodir ;;
1210 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1211 infodir=$ac_optarg ;;
1213 -libdir | --libdir | --libdi | --libd)
1214 ac_prev=libdir ;;
1215 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1216 libdir=$ac_optarg ;;
1218 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1219 | --libexe | --libex | --libe)
1220 ac_prev=libexecdir ;;
1221 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1222 | --libexe=* | --libex=* | --libe=*)
1223 libexecdir=$ac_optarg ;;
1225 -localedir | --localedir | --localedi | --localed | --locale)
1226 ac_prev=localedir ;;
1227 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1228 localedir=$ac_optarg ;;
1230 -localstatedir | --localstatedir | --localstatedi | --localstated \
1231 | --localstate | --localstat | --localsta | --localst | --locals)
1232 ac_prev=localstatedir ;;
1233 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1234 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1235 localstatedir=$ac_optarg ;;
1237 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1238 ac_prev=mandir ;;
1239 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1240 mandir=$ac_optarg ;;
1242 -nfp | --nfp | --nf)
1243 # Obsolete; use --without-fp.
1244 with_fp=no ;;
1246 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1247 | --no-cr | --no-c | -n)
1248 no_create=yes ;;
1250 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1251 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1252 no_recursion=yes ;;
1254 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1255 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1256 | --oldin | --oldi | --old | --ol | --o)
1257 ac_prev=oldincludedir ;;
1258 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1259 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1260 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1261 oldincludedir=$ac_optarg ;;
1263 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1264 ac_prev=prefix ;;
1265 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1266 prefix=$ac_optarg ;;
1268 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1269 | --program-pre | --program-pr | --program-p)
1270 ac_prev=program_prefix ;;
1271 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1272 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1273 program_prefix=$ac_optarg ;;
1275 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1276 | --program-suf | --program-su | --program-s)
1277 ac_prev=program_suffix ;;
1278 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1279 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1280 program_suffix=$ac_optarg ;;
1282 -program-transform-name | --program-transform-name \
1283 | --program-transform-nam | --program-transform-na \
1284 | --program-transform-n | --program-transform- \
1285 | --program-transform | --program-transfor \
1286 | --program-transfo | --program-transf \
1287 | --program-trans | --program-tran \
1288 | --progr-tra | --program-tr | --program-t)
1289 ac_prev=program_transform_name ;;
1290 -program-transform-name=* | --program-transform-name=* \
1291 | --program-transform-nam=* | --program-transform-na=* \
1292 | --program-transform-n=* | --program-transform-=* \
1293 | --program-transform=* | --program-transfor=* \
1294 | --program-transfo=* | --program-transf=* \
1295 | --program-trans=* | --program-tran=* \
1296 | --progr-tra=* | --program-tr=* | --program-t=*)
1297 program_transform_name=$ac_optarg ;;
1299 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1300 ac_prev=pdfdir ;;
1301 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1302 pdfdir=$ac_optarg ;;
1304 -psdir | --psdir | --psdi | --psd | --ps)
1305 ac_prev=psdir ;;
1306 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1307 psdir=$ac_optarg ;;
1309 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1310 | -silent | --silent | --silen | --sile | --sil)
1311 silent=yes ;;
1313 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1314 ac_prev=sbindir ;;
1315 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1316 | --sbi=* | --sb=*)
1317 sbindir=$ac_optarg ;;
1319 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1320 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1321 | --sharedst | --shareds | --shared | --share | --shar \
1322 | --sha | --sh)
1323 ac_prev=sharedstatedir ;;
1324 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1325 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1326 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1327 | --sha=* | --sh=*)
1328 sharedstatedir=$ac_optarg ;;
1330 -site | --site | --sit)
1331 ac_prev=site ;;
1332 -site=* | --site=* | --sit=*)
1333 site=$ac_optarg ;;
1335 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1336 ac_prev=srcdir ;;
1337 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1338 srcdir=$ac_optarg ;;
1340 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1341 | --syscon | --sysco | --sysc | --sys | --sy)
1342 ac_prev=sysconfdir ;;
1343 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1344 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1345 sysconfdir=$ac_optarg ;;
1347 -target | --target | --targe | --targ | --tar | --ta | --t)
1348 ac_prev=target_alias ;;
1349 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1350 target_alias=$ac_optarg ;;
1352 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1353 verbose=yes ;;
1355 -version | --version | --versio | --versi | --vers | -V)
1356 ac_init_version=: ;;
1358 -with-* | --with-*)
1359 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1360 # Reject names that are not valid shell variable names.
1361 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1362 as_fn_error $? "invalid package name: $ac_useropt"
1363 ac_useropt_orig=$ac_useropt
1364 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1365 case $ac_user_opts in
1367 "with_$ac_useropt"
1368 "*) ;;
1369 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1370 ac_unrecognized_sep=', ';;
1371 esac
1372 eval with_$ac_useropt=\$ac_optarg ;;
1374 -without-* | --without-*)
1375 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1376 # Reject names that are not valid shell variable names.
1377 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1378 as_fn_error $? "invalid package name: $ac_useropt"
1379 ac_useropt_orig=$ac_useropt
1380 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1381 case $ac_user_opts in
1383 "with_$ac_useropt"
1384 "*) ;;
1385 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1386 ac_unrecognized_sep=', ';;
1387 esac
1388 eval with_$ac_useropt=no ;;
1390 --x)
1391 # Obsolete; use --with-x.
1392 with_x=yes ;;
1394 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1395 | --x-incl | --x-inc | --x-in | --x-i)
1396 ac_prev=x_includes ;;
1397 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1398 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1399 x_includes=$ac_optarg ;;
1401 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1402 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1403 ac_prev=x_libraries ;;
1404 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1405 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1406 x_libraries=$ac_optarg ;;
1408 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1409 Try \`$0 --help' for more information"
1412 *=*)
1413 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1414 # Reject names that are not valid shell variable names.
1415 case $ac_envvar in #(
1416 '' | [0-9]* | *[!_$as_cr_alnum]* )
1417 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1418 esac
1419 eval $ac_envvar=\$ac_optarg
1420 export $ac_envvar ;;
1423 # FIXME: should be removed in autoconf 3.0.
1424 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1425 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1426 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1427 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1430 esac
1431 done
1433 if test -n "$ac_prev"; then
1434 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1435 as_fn_error $? "missing argument to $ac_option"
1438 if test -n "$ac_unrecognized_opts"; then
1439 case $enable_option_checking in
1440 no) ;;
1441 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1442 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1443 esac
1446 # Check all directory arguments for consistency.
1447 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1448 datadir sysconfdir sharedstatedir localstatedir includedir \
1449 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1450 libdir localedir mandir
1452 eval ac_val=\$$ac_var
1453 # Remove trailing slashes.
1454 case $ac_val in
1455 */ )
1456 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1457 eval $ac_var=\$ac_val;;
1458 esac
1459 # Be sure to have absolute directory names.
1460 case $ac_val in
1461 [\\/$]* | ?:[\\/]* ) continue;;
1462 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1463 esac
1464 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1465 done
1467 # There might be people who depend on the old broken behavior: `$host'
1468 # used to hold the argument of --host etc.
1469 # FIXME: To remove some day.
1470 build=$build_alias
1471 host=$host_alias
1472 target=$target_alias
1474 # FIXME: To remove some day.
1475 if test "x$host_alias" != x; then
1476 if test "x$build_alias" = x; then
1477 cross_compiling=maybe
1478 elif test "x$build_alias" != "x$host_alias"; then
1479 cross_compiling=yes
1483 ac_tool_prefix=
1484 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1486 test "$silent" = yes && exec 6>/dev/null
1489 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1490 ac_ls_di=`ls -di .` &&
1491 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1492 as_fn_error $? "working directory cannot be determined"
1493 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1494 as_fn_error $? "pwd does not report name of working directory"
1497 # Find the source files, if location was not specified.
1498 if test -z "$srcdir"; then
1499 ac_srcdir_defaulted=yes
1500 # Try the directory containing this script, then the parent directory.
1501 ac_confdir=`$as_dirname -- "$as_myself" ||
1502 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1503 X"$as_myself" : 'X\(//\)[^/]' \| \
1504 X"$as_myself" : 'X\(//\)$' \| \
1505 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1506 $as_echo X"$as_myself" |
1507 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1508 s//\1/
1511 /^X\(\/\/\)[^/].*/{
1512 s//\1/
1515 /^X\(\/\/\)$/{
1516 s//\1/
1519 /^X\(\/\).*/{
1520 s//\1/
1523 s/.*/./; q'`
1524 srcdir=$ac_confdir
1525 if test ! -r "$srcdir/$ac_unique_file"; then
1526 srcdir=..
1528 else
1529 ac_srcdir_defaulted=no
1531 if test ! -r "$srcdir/$ac_unique_file"; then
1532 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1533 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1535 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1536 ac_abs_confdir=`(
1537 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1538 pwd)`
1539 # When building in place, set srcdir=.
1540 if test "$ac_abs_confdir" = "$ac_pwd"; then
1541 srcdir=.
1543 # Remove unnecessary trailing slashes from srcdir.
1544 # Double slashes in file names in object file debugging info
1545 # mess up M-x gdb in Emacs.
1546 case $srcdir in
1547 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1548 esac
1549 for ac_var in $ac_precious_vars; do
1550 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1551 eval ac_env_${ac_var}_value=\$${ac_var}
1552 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1553 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1554 done
1557 # Report the --help message.
1559 if test "$ac_init_help" = "long"; then
1560 # Omit some internal or obsolete options to make the list less imposing.
1561 # This message is too long to be a string in the A/UX 3.1 sh.
1562 cat <<_ACEOF
1563 \`configure' configures this package to adapt to many kinds of systems.
1565 Usage: $0 [OPTION]... [VAR=VALUE]...
1567 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1568 VAR=VALUE. See below for descriptions of some of the useful variables.
1570 Defaults for the options are specified in brackets.
1572 Configuration:
1573 -h, --help display this help and exit
1574 --help=short display options specific to this package
1575 --help=recursive display the short help of all the included packages
1576 -V, --version display version information and exit
1577 -q, --quiet, --silent do not print \`checking ...' messages
1578 --cache-file=FILE cache test results in FILE [disabled]
1579 -C, --config-cache alias for \`--cache-file=config.cache'
1580 -n, --no-create do not create output files
1581 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1583 Installation directories:
1584 --prefix=PREFIX install architecture-independent files in PREFIX
1585 [$ac_default_prefix]
1586 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1587 [PREFIX]
1589 By default, \`make install' will install all the files in
1590 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1591 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1592 for instance \`--prefix=\$HOME'.
1594 For better control, use the options below.
1596 Fine tuning of the installation directories:
1597 --bindir=DIR user executables [EPREFIX/bin]
1598 --sbindir=DIR system admin executables [EPREFIX/sbin]
1599 --libexecdir=DIR program executables [EPREFIX/libexec]
1600 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1601 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1602 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1603 --libdir=DIR object code libraries [EPREFIX/lib]
1604 --includedir=DIR C header files [PREFIX/include]
1605 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1606 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1607 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1608 --infodir=DIR info documentation [DATAROOTDIR/info]
1609 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1610 --mandir=DIR man documentation [DATAROOTDIR/man]
1611 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1612 --htmldir=DIR html documentation [DOCDIR]
1613 --dvidir=DIR dvi documentation [DOCDIR]
1614 --pdfdir=DIR pdf documentation [DOCDIR]
1615 --psdir=DIR ps documentation [DOCDIR]
1616 _ACEOF
1618 cat <<\_ACEOF
1620 X features:
1621 --x-includes=DIR X include files are in DIR
1622 --x-libraries=DIR X library files are in DIR
1624 System types:
1625 --build=BUILD configure for building on BUILD [guessed]
1626 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1627 --target=TARGET configure for building compilers for TARGET [HOST]
1628 _ACEOF
1631 if test -n "$ac_init_help"; then
1633 cat <<\_ACEOF
1635 Optional Features:
1636 --disable-option-checking ignore unrecognized --enable/--with options
1637 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1638 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1639 --disable-ssp disable gcc stack-protector
1640 --disable-pie disable position-independent-executable
1641 --disable-visibility disable gcc symbol visibility
1642 --disable-shared disable core shared libary generation
1644 Optional Packages:
1645 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1646 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1647 --with-64bit turn on 64 bit compilation mode (default is platform
1648 dependent)
1649 --with-optimization enable optimization for C/C++ code (default is yes)
1650 --with-threads enable support for multiple threads (default is on)
1651 --with-secure-sockets enable support for secure sockets (default is on)
1652 --with-static-probes enable support for static probes (default is on)
1653 --with-infiniband enable support for Infiniband metrics (default is
1655 --with-user user account under which daemons run (default is
1656 pcp)
1657 --with-group user group under which daemons run (default is pcp)
1658 --with-discovery enable support for service discovery (default is on)
1659 --with-systemd enable support for systemd services (default is on)
1660 --with-qt enable support for tools requiring Qt (default is
1662 --with-qt3d enable support for 3D scene graph API (default is
1664 --with-python enable support for tools requiring Python (default
1665 is on)
1666 --with-python3 enable support for tools requiring Python3 (default
1667 is on)
1668 --with-books enable building of the PCP books (default is off)
1669 --with-books-brand=BRAND
1670 choose the docbook brand when building the PCP books
1671 (default is common)
1672 --with-papi[=DIR|=MODULE]
1673 enable performance api counter pmda (default is on)
1674 The optional argument may be a full path of a PAPI
1675 installation prefix, or a pkgconfig module name.
1676 --with-perfevent enable perfevent pmda (default is on)
1677 --with-pmdajson enable JSON pmda (default is on)
1678 --with-pmdasnmp enable SNMP pmda (default is on)
1679 --with-manager enable daemon manager (default is on)
1680 --with-webapi enable REST API daemon (default is on)
1681 --with-webjs enable building of webjs packages (default is off)
1682 --with-vector enable building of vector package (default is off)
1683 --with-parfait enable building of parfait package (default is off)
1684 --with-selinux enable building of selinux package (default is on)
1685 --with-make path to GNU compatible make(1) (default is empty for
1686 auto discovery)
1687 --with-tar path to GNU compatible tar(1) (default is empty for
1688 auto discovery)
1689 --with-zip path to GNU compatible zip(1) (default is empty for
1690 auto discovery)
1691 --with-configdir configuration directory [LOCALSTATEDIR/pcp/config]
1692 --with-perl_installdirs perl installdirs [vendor]
1693 --with-perl_install_base
1694 perl install_base [PREFIX]
1695 --with-python_prefix python setup.py prefix [PREFIX]
1696 --with-x use the X Window System
1697 --with-rcdir rc directory [SYSCONFDIR/rc.d]
1698 --with-sysconfigdir sysconfig directory [SYSCONFDIR/sysconfig]
1699 --with-logdir log directory [LOCALSTATEDIR/log/pcp]
1700 --with-rundir run directory [LOCALSTATEDIR/run/pcp]
1701 --with-tmpdir tmp directory [LOCALSTATEDIR/tmp]
1702 --with-docdir docs directory [DOCDIR/pcp-VERSION]
1703 --with-demosdir run directory [DATADIR/pcp/demos]
1705 Some influential environment variables:
1706 PKG_CONFIG path to pkg-config utility
1707 PKG_CONFIG_PATH
1708 directories to add to pkg-config's search path
1709 PKG_CONFIG_LIBDIR
1710 path overriding pkg-config's built-in search path
1711 CC C compiler command
1712 CFLAGS C compiler flags
1713 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1714 nonstandard directory <lib dir>
1715 LIBS libraries to pass to the linker, e.g. -l<library>
1716 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1717 you have headers in a nonstandard directory <include dir>
1718 CXX C++ compiler command
1719 CXXFLAGS C++ compiler flags
1720 YACC The `Yet Another Compiler Compiler' implementation to use.
1721 Defaults to the first program found out of: `bison -y', `byacc',
1722 `yacc'.
1723 YFLAGS The list of arguments that will be passed by default to $YACC.
1724 This script will default YFLAGS to the empty string to avoid a
1725 default value of `-d' given by some make applications.
1726 CPP C preprocessor
1727 avahi_CFLAGS
1728 C compiler flags for avahi, overriding pkg-config
1729 avahi_LIBS linker flags for avahi, overriding pkg-config
1730 SYSTEMD_SYSTEMUNITDIR
1731 value of systemdsystemunitdir for systemd, overriding pkg-config
1732 ncurses_CFLAGS
1733 C compiler flags for ncurses, overriding pkg-config
1734 ncurses_LIBS
1735 linker flags for ncurses, overriding pkg-config
1736 SYSTEMD_CFLAGS
1737 C compiler flags for SYSTEMD, overriding pkg-config
1738 SYSTEMD_LIBS
1739 linker flags for SYSTEMD, overriding pkg-config
1740 papi_CFLAGS C compiler flags for papi, overriding pkg-config
1741 papi_LIBS linker flags for papi, overriding pkg-config
1742 libmicrohttpd_CFLAGS
1743 C compiler flags for libmicrohttpd, overriding pkg-config
1744 libmicrohttpd_LIBS
1745 linker flags for libmicrohttpd, overriding pkg-config
1746 cairo_CFLAGS
1747 C compiler flags for cairo, overriding pkg-config
1748 cairo_LIBS linker flags for cairo, overriding pkg-config
1749 XMKMF Path to xmkmf, Makefile generator for X Window System
1750 zlib_CFLAGS C compiler flags for zlib, overriding pkg-config
1751 zlib_LIBS linker flags for zlib, overriding pkg-config
1753 Use these variables to override the choices made by `configure' or to help
1754 it to find libraries and programs with nonstandard names/locations.
1756 Report bugs to the package provider.
1757 _ACEOF
1758 ac_status=$?
1761 if test "$ac_init_help" = "recursive"; then
1762 # If there are subdirs, report their specific --help.
1763 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1764 test -d "$ac_dir" ||
1765 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1766 continue
1767 ac_builddir=.
1769 case "$ac_dir" in
1770 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1772 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1773 # A ".." for each directory in $ac_dir_suffix.
1774 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1775 case $ac_top_builddir_sub in
1776 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1777 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1778 esac ;;
1779 esac
1780 ac_abs_top_builddir=$ac_pwd
1781 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1782 # for backward compatibility:
1783 ac_top_builddir=$ac_top_build_prefix
1785 case $srcdir in
1786 .) # We are building in place.
1787 ac_srcdir=.
1788 ac_top_srcdir=$ac_top_builddir_sub
1789 ac_abs_top_srcdir=$ac_pwd ;;
1790 [\\/]* | ?:[\\/]* ) # Absolute name.
1791 ac_srcdir=$srcdir$ac_dir_suffix;
1792 ac_top_srcdir=$srcdir
1793 ac_abs_top_srcdir=$srcdir ;;
1794 *) # Relative name.
1795 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1796 ac_top_srcdir=$ac_top_build_prefix$srcdir
1797 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1798 esac
1799 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1801 cd "$ac_dir" || { ac_status=$?; continue; }
1802 # Check for guested configure.
1803 if test -f "$ac_srcdir/configure.gnu"; then
1804 echo &&
1805 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1806 elif test -f "$ac_srcdir/configure"; then
1807 echo &&
1808 $SHELL "$ac_srcdir/configure" --help=recursive
1809 else
1810 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1811 fi || ac_status=$?
1812 cd "$ac_pwd" || { ac_status=$?; break; }
1813 done
1816 test -n "$ac_init_help" && exit $ac_status
1817 if $ac_init_version; then
1818 cat <<\_ACEOF
1819 configure
1820 generated by GNU Autoconf 2.69
1822 Copyright (C) 2012 Free Software Foundation, Inc.
1823 This configure script is free software; the Free Software Foundation
1824 gives unlimited permission to copy, distribute and modify it.
1825 _ACEOF
1826 exit
1829 ## ------------------------ ##
1830 ## Autoconf initialization. ##
1831 ## ------------------------ ##
1833 # ac_fn_c_try_compile LINENO
1834 # --------------------------
1835 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1836 ac_fn_c_try_compile ()
1838 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1839 rm -f conftest.$ac_objext
1840 if { { ac_try="$ac_compile"
1841 case "(($ac_try" in
1842 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1843 *) ac_try_echo=$ac_try;;
1844 esac
1845 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1846 $as_echo "$ac_try_echo"; } >&5
1847 (eval "$ac_compile") 2>conftest.err
1848 ac_status=$?
1849 if test -s conftest.err; then
1850 grep -v '^ *+' conftest.err >conftest.er1
1851 cat conftest.er1 >&5
1852 mv -f conftest.er1 conftest.err
1854 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1855 test $ac_status = 0; } && {
1856 test -z "$ac_c_werror_flag" ||
1857 test ! -s conftest.err
1858 } && test -s conftest.$ac_objext; then :
1859 ac_retval=0
1860 else
1861 $as_echo "$as_me: failed program was:" >&5
1862 sed 's/^/| /' conftest.$ac_ext >&5
1864 ac_retval=1
1866 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1867 as_fn_set_status $ac_retval
1869 } # ac_fn_c_try_compile
1871 # ac_fn_c_try_link LINENO
1872 # -----------------------
1873 # Try to link conftest.$ac_ext, and return whether this succeeded.
1874 ac_fn_c_try_link ()
1876 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1877 rm -f conftest.$ac_objext conftest$ac_exeext
1878 if { { ac_try="$ac_link"
1879 case "(($ac_try" in
1880 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1881 *) ac_try_echo=$ac_try;;
1882 esac
1883 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1884 $as_echo "$ac_try_echo"; } >&5
1885 (eval "$ac_link") 2>conftest.err
1886 ac_status=$?
1887 if test -s conftest.err; then
1888 grep -v '^ *+' conftest.err >conftest.er1
1889 cat conftest.er1 >&5
1890 mv -f conftest.er1 conftest.err
1892 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1893 test $ac_status = 0; } && {
1894 test -z "$ac_c_werror_flag" ||
1895 test ! -s conftest.err
1896 } && test -s conftest$ac_exeext && {
1897 test "$cross_compiling" = yes ||
1898 test -x conftest$ac_exeext
1899 }; then :
1900 ac_retval=0
1901 else
1902 $as_echo "$as_me: failed program was:" >&5
1903 sed 's/^/| /' conftest.$ac_ext >&5
1905 ac_retval=1
1907 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1908 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1909 # interfere with the next link command; also delete a directory that is
1910 # left behind by Apple's compiler. We do this before executing the actions.
1911 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1912 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1913 as_fn_set_status $ac_retval
1915 } # ac_fn_c_try_link
1917 # ac_fn_cxx_try_compile LINENO
1918 # ----------------------------
1919 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1920 ac_fn_cxx_try_compile ()
1922 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1923 rm -f conftest.$ac_objext
1924 if { { ac_try="$ac_compile"
1925 case "(($ac_try" in
1926 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1927 *) ac_try_echo=$ac_try;;
1928 esac
1929 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1930 $as_echo "$ac_try_echo"; } >&5
1931 (eval "$ac_compile") 2>conftest.err
1932 ac_status=$?
1933 if test -s conftest.err; then
1934 grep -v '^ *+' conftest.err >conftest.er1
1935 cat conftest.er1 >&5
1936 mv -f conftest.er1 conftest.err
1938 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1939 test $ac_status = 0; } && {
1940 test -z "$ac_cxx_werror_flag" ||
1941 test ! -s conftest.err
1942 } && test -s conftest.$ac_objext; then :
1943 ac_retval=0
1944 else
1945 $as_echo "$as_me: failed program was:" >&5
1946 sed 's/^/| /' conftest.$ac_ext >&5
1948 ac_retval=1
1950 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1951 as_fn_set_status $ac_retval
1953 } # ac_fn_cxx_try_compile
1955 # ac_fn_c_try_cpp LINENO
1956 # ----------------------
1957 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1958 ac_fn_c_try_cpp ()
1960 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1961 if { { ac_try="$ac_cpp conftest.$ac_ext"
1962 case "(($ac_try" in
1963 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1964 *) ac_try_echo=$ac_try;;
1965 esac
1966 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1967 $as_echo "$ac_try_echo"; } >&5
1968 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1969 ac_status=$?
1970 if test -s conftest.err; then
1971 grep -v '^ *+' conftest.err >conftest.er1
1972 cat conftest.er1 >&5
1973 mv -f conftest.er1 conftest.err
1975 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1976 test $ac_status = 0; } > conftest.i && {
1977 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1978 test ! -s conftest.err
1979 }; then :
1980 ac_retval=0
1981 else
1982 $as_echo "$as_me: failed program was:" >&5
1983 sed 's/^/| /' conftest.$ac_ext >&5
1985 ac_retval=1
1987 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1988 as_fn_set_status $ac_retval
1990 } # ac_fn_c_try_cpp
1992 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1993 # -------------------------------------------------------
1994 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1995 # the include files in INCLUDES and setting the cache variable VAR
1996 # accordingly.
1997 ac_fn_c_check_header_mongrel ()
1999 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2000 if eval \${$3+:} false; then :
2001 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2002 $as_echo_n "checking for $2... " >&6; }
2003 if eval \${$3+:} false; then :
2004 $as_echo_n "(cached) " >&6
2006 eval ac_res=\$$3
2007 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2008 $as_echo "$ac_res" >&6; }
2009 else
2010 # Is the header compilable?
2011 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
2012 $as_echo_n "checking $2 usability... " >&6; }
2013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2014 /* end confdefs.h. */
2016 #include <$2>
2017 _ACEOF
2018 if ac_fn_c_try_compile "$LINENO"; then :
2019 ac_header_compiler=yes
2020 else
2021 ac_header_compiler=no
2023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2024 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2025 $as_echo "$ac_header_compiler" >&6; }
2027 # Is the header present?
2028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2029 $as_echo_n "checking $2 presence... " >&6; }
2030 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2031 /* end confdefs.h. */
2032 #include <$2>
2033 _ACEOF
2034 if ac_fn_c_try_cpp "$LINENO"; then :
2035 ac_header_preproc=yes
2036 else
2037 ac_header_preproc=no
2039 rm -f conftest.err conftest.i conftest.$ac_ext
2040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2041 $as_echo "$ac_header_preproc" >&6; }
2043 # So? What about this header?
2044 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2045 yes:no: )
2046 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2047 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2048 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2049 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2051 no:yes:* )
2052 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2053 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2054 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2055 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2056 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2057 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2058 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2059 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2060 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2061 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2063 esac
2064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2065 $as_echo_n "checking for $2... " >&6; }
2066 if eval \${$3+:} false; then :
2067 $as_echo_n "(cached) " >&6
2068 else
2069 eval "$3=\$ac_header_compiler"
2071 eval ac_res=\$$3
2072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2073 $as_echo "$ac_res" >&6; }
2075 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2077 } # ac_fn_c_check_header_mongrel
2079 # ac_fn_c_try_run LINENO
2080 # ----------------------
2081 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2082 # that executables *can* be run.
2083 ac_fn_c_try_run ()
2085 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2086 if { { ac_try="$ac_link"
2087 case "(($ac_try" in
2088 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2089 *) ac_try_echo=$ac_try;;
2090 esac
2091 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2092 $as_echo "$ac_try_echo"; } >&5
2093 (eval "$ac_link") 2>&5
2094 ac_status=$?
2095 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2096 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2097 { { case "(($ac_try" in
2098 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2099 *) ac_try_echo=$ac_try;;
2100 esac
2101 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2102 $as_echo "$ac_try_echo"; } >&5
2103 (eval "$ac_try") 2>&5
2104 ac_status=$?
2105 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2106 test $ac_status = 0; }; }; then :
2107 ac_retval=0
2108 else
2109 $as_echo "$as_me: program exited with status $ac_status" >&5
2110 $as_echo "$as_me: failed program was:" >&5
2111 sed 's/^/| /' conftest.$ac_ext >&5
2113 ac_retval=$ac_status
2115 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2116 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2117 as_fn_set_status $ac_retval
2119 } # ac_fn_c_try_run
2121 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2122 # -------------------------------------------------------
2123 # Tests whether HEADER exists and can be compiled using the include files in
2124 # INCLUDES, setting the cache variable VAR accordingly.
2125 ac_fn_c_check_header_compile ()
2127 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2129 $as_echo_n "checking for $2... " >&6; }
2130 if eval \${$3+:} false; then :
2131 $as_echo_n "(cached) " >&6
2132 else
2133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2134 /* end confdefs.h. */
2136 #include <$2>
2137 _ACEOF
2138 if ac_fn_c_try_compile "$LINENO"; then :
2139 eval "$3=yes"
2140 else
2141 eval "$3=no"
2143 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2145 eval ac_res=\$$3
2146 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2147 $as_echo "$ac_res" >&6; }
2148 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2150 } # ac_fn_c_check_header_compile
2152 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2153 # -------------------------------------------
2154 # Tests whether TYPE exists after having included INCLUDES, setting cache
2155 # variable VAR accordingly.
2156 ac_fn_c_check_type ()
2158 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2160 $as_echo_n "checking for $2... " >&6; }
2161 if eval \${$3+:} false; then :
2162 $as_echo_n "(cached) " >&6
2163 else
2164 eval "$3=no"
2165 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2166 /* end confdefs.h. */
2169 main ()
2171 if (sizeof ($2))
2172 return 0;
2174 return 0;
2176 _ACEOF
2177 if ac_fn_c_try_compile "$LINENO"; then :
2178 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2179 /* end confdefs.h. */
2182 main ()
2184 if (sizeof (($2)))
2185 return 0;
2187 return 0;
2189 _ACEOF
2190 if ac_fn_c_try_compile "$LINENO"; then :
2192 else
2193 eval "$3=yes"
2195 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2197 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2199 eval ac_res=\$$3
2200 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2201 $as_echo "$ac_res" >&6; }
2202 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2204 } # ac_fn_c_check_type
2206 # ac_fn_c_check_func LINENO FUNC VAR
2207 # ----------------------------------
2208 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2209 ac_fn_c_check_func ()
2211 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2212 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2213 $as_echo_n "checking for $2... " >&6; }
2214 if eval \${$3+:} false; then :
2215 $as_echo_n "(cached) " >&6
2216 else
2217 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2218 /* end confdefs.h. */
2219 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2220 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2221 #define $2 innocuous_$2
2223 /* System header to define __stub macros and hopefully few prototypes,
2224 which can conflict with char $2 (); below.
2225 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2226 <limits.h> exists even on freestanding compilers. */
2228 #ifdef __STDC__
2229 # include <limits.h>
2230 #else
2231 # include <assert.h>
2232 #endif
2234 #undef $2
2236 /* Override any GCC internal prototype to avoid an error.
2237 Use char because int might match the return type of a GCC
2238 builtin and then its argument prototype would still apply. */
2239 #ifdef __cplusplus
2240 extern "C"
2241 #endif
2242 char $2 ();
2243 /* The GNU C library defines this for functions which it implements
2244 to always fail with ENOSYS. Some functions are actually named
2245 something starting with __ and the normal name is an alias. */
2246 #if defined __stub_$2 || defined __stub___$2
2247 choke me
2248 #endif
2251 main ()
2253 return $2 ();
2255 return 0;
2257 _ACEOF
2258 if ac_fn_c_try_link "$LINENO"; then :
2259 eval "$3=yes"
2260 else
2261 eval "$3=no"
2263 rm -f core conftest.err conftest.$ac_objext \
2264 conftest$ac_exeext conftest.$ac_ext
2266 eval ac_res=\$$3
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2268 $as_echo "$ac_res" >&6; }
2269 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2271 } # ac_fn_c_check_func
2272 cat >config.log <<_ACEOF
2273 This file contains any messages produced by compilers while
2274 running configure, to aid debugging if configure makes a mistake.
2276 It was created by $as_me, which was
2277 generated by GNU Autoconf 2.69. Invocation command line was
2279 $ $0 $@
2281 _ACEOF
2282 exec 5>>config.log
2284 cat <<_ASUNAME
2285 ## --------- ##
2286 ## Platform. ##
2287 ## --------- ##
2289 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2290 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2291 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2292 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2293 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2295 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2296 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2298 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2299 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2300 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2301 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2302 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2303 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2304 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2306 _ASUNAME
2308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2309 for as_dir in $PATH
2311 IFS=$as_save_IFS
2312 test -z "$as_dir" && as_dir=.
2313 $as_echo "PATH: $as_dir"
2314 done
2315 IFS=$as_save_IFS
2317 } >&5
2319 cat >&5 <<_ACEOF
2322 ## ----------- ##
2323 ## Core tests. ##
2324 ## ----------- ##
2326 _ACEOF
2329 # Keep a trace of the command line.
2330 # Strip out --no-create and --no-recursion so they do not pile up.
2331 # Strip out --silent because we don't want to record it for future runs.
2332 # Also quote any args containing shell meta-characters.
2333 # Make two passes to allow for proper duplicate-argument suppression.
2334 ac_configure_args=
2335 ac_configure_args0=
2336 ac_configure_args1=
2337 ac_must_keep_next=false
2338 for ac_pass in 1 2
2340 for ac_arg
2342 case $ac_arg in
2343 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2344 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2345 | -silent | --silent | --silen | --sile | --sil)
2346 continue ;;
2347 *\'*)
2348 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2349 esac
2350 case $ac_pass in
2351 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2353 as_fn_append ac_configure_args1 " '$ac_arg'"
2354 if test $ac_must_keep_next = true; then
2355 ac_must_keep_next=false # Got value, back to normal.
2356 else
2357 case $ac_arg in
2358 *=* | --config-cache | -C | -disable-* | --disable-* \
2359 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2360 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2361 | -with-* | --with-* | -without-* | --without-* | --x)
2362 case "$ac_configure_args0 " in
2363 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2364 esac
2366 -* ) ac_must_keep_next=true ;;
2367 esac
2369 as_fn_append ac_configure_args " '$ac_arg'"
2371 esac
2372 done
2373 done
2374 { ac_configure_args0=; unset ac_configure_args0;}
2375 { ac_configure_args1=; unset ac_configure_args1;}
2377 # When interrupted or exit'd, cleanup temporary files, and complete
2378 # config.log. We remove comments because anyway the quotes in there
2379 # would cause problems or look ugly.
2380 # WARNING: Use '\'' to represent an apostrophe within the trap.
2381 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2382 trap 'exit_status=$?
2383 # Save into config.log some information that might help in debugging.
2385 echo
2387 $as_echo "## ---------------- ##
2388 ## Cache variables. ##
2389 ## ---------------- ##"
2390 echo
2391 # The following way of writing the cache mishandles newlines in values,
2393 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2394 eval ac_val=\$$ac_var
2395 case $ac_val in #(
2396 *${as_nl}*)
2397 case $ac_var in #(
2398 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2399 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2400 esac
2401 case $ac_var in #(
2402 _ | IFS | as_nl) ;; #(
2403 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2404 *) { eval $ac_var=; unset $ac_var;} ;;
2405 esac ;;
2406 esac
2407 done
2408 (set) 2>&1 |
2409 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2410 *${as_nl}ac_space=\ *)
2411 sed -n \
2412 "s/'\''/'\''\\\\'\'''\''/g;
2413 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2414 ;; #(
2416 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2418 esac |
2419 sort
2421 echo
2423 $as_echo "## ----------------- ##
2424 ## Output variables. ##
2425 ## ----------------- ##"
2426 echo
2427 for ac_var in $ac_subst_vars
2429 eval ac_val=\$$ac_var
2430 case $ac_val in
2431 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2432 esac
2433 $as_echo "$ac_var='\''$ac_val'\''"
2434 done | sort
2435 echo
2437 if test -n "$ac_subst_files"; then
2438 $as_echo "## ------------------- ##
2439 ## File substitutions. ##
2440 ## ------------------- ##"
2441 echo
2442 for ac_var in $ac_subst_files
2444 eval ac_val=\$$ac_var
2445 case $ac_val in
2446 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2447 esac
2448 $as_echo "$ac_var='\''$ac_val'\''"
2449 done | sort
2450 echo
2453 if test -s confdefs.h; then
2454 $as_echo "## ----------- ##
2455 ## confdefs.h. ##
2456 ## ----------- ##"
2457 echo
2458 cat confdefs.h
2459 echo
2461 test "$ac_signal" != 0 &&
2462 $as_echo "$as_me: caught signal $ac_signal"
2463 $as_echo "$as_me: exit $exit_status"
2464 } >&5
2465 rm -f core *.core core.conftest.* &&
2466 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2467 exit $exit_status
2469 for ac_signal in 1 2 13 15; do
2470 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2471 done
2472 ac_signal=0
2474 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2475 rm -f -r conftest* confdefs.h
2477 $as_echo "/* confdefs.h */" > confdefs.h
2479 # Predefined preprocessor variables.
2481 cat >>confdefs.h <<_ACEOF
2482 #define PACKAGE_NAME "$PACKAGE_NAME"
2483 _ACEOF
2485 cat >>confdefs.h <<_ACEOF
2486 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2487 _ACEOF
2489 cat >>confdefs.h <<_ACEOF
2490 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2491 _ACEOF
2493 cat >>confdefs.h <<_ACEOF
2494 #define PACKAGE_STRING "$PACKAGE_STRING"
2495 _ACEOF
2497 cat >>confdefs.h <<_ACEOF
2498 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2499 _ACEOF
2501 cat >>confdefs.h <<_ACEOF
2502 #define PACKAGE_URL "$PACKAGE_URL"
2503 _ACEOF
2506 # Let the site file select an alternate cache file if it wants to.
2507 # Prefer an explicitly selected file to automatically selected ones.
2508 ac_site_file1=NONE
2509 ac_site_file2=NONE
2510 if test -n "$CONFIG_SITE"; then
2511 # We do not want a PATH search for config.site.
2512 case $CONFIG_SITE in #((
2513 -*) ac_site_file1=./$CONFIG_SITE;;
2514 */*) ac_site_file1=$CONFIG_SITE;;
2515 *) ac_site_file1=./$CONFIG_SITE;;
2516 esac
2517 elif test "x$prefix" != xNONE; then
2518 ac_site_file1=$prefix/share/config.site
2519 ac_site_file2=$prefix/etc/config.site
2520 else
2521 ac_site_file1=$ac_default_prefix/share/config.site
2522 ac_site_file2=$ac_default_prefix/etc/config.site
2524 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2526 test "x$ac_site_file" = xNONE && continue
2527 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2528 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2529 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2530 sed 's/^/| /' "$ac_site_file" >&5
2531 . "$ac_site_file" \
2532 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2533 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2534 as_fn_error $? "failed to load site script $ac_site_file
2535 See \`config.log' for more details" "$LINENO" 5; }
2537 done
2539 if test -r "$cache_file"; then
2540 # Some versions of bash will fail to source /dev/null (special files
2541 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2542 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2543 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2544 $as_echo "$as_me: loading cache $cache_file" >&6;}
2545 case $cache_file in
2546 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2547 *) . "./$cache_file";;
2548 esac
2550 else
2551 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2552 $as_echo "$as_me: creating cache $cache_file" >&6;}
2553 >$cache_file
2556 # Check that the precious variables saved in the cache have kept the same
2557 # value.
2558 ac_cache_corrupted=false
2559 for ac_var in $ac_precious_vars; do
2560 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2561 eval ac_new_set=\$ac_env_${ac_var}_set
2562 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2563 eval ac_new_val=\$ac_env_${ac_var}_value
2564 case $ac_old_set,$ac_new_set in
2565 set,)
2566 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2567 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2568 ac_cache_corrupted=: ;;
2569 ,set)
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2571 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2572 ac_cache_corrupted=: ;;
2573 ,);;
2575 if test "x$ac_old_val" != "x$ac_new_val"; then
2576 # differences in whitespace do not lead to failure.
2577 ac_old_val_w=`echo x $ac_old_val`
2578 ac_new_val_w=`echo x $ac_new_val`
2579 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2580 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2581 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2582 ac_cache_corrupted=:
2583 else
2584 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2585 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2586 eval $ac_var=\$ac_old_val
2588 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2589 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2590 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2591 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2592 fi;;
2593 esac
2594 # Pass precious variables to config.status.
2595 if test "$ac_new_set" = set; then
2596 case $ac_new_val in
2597 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2598 *) ac_arg=$ac_var=$ac_new_val ;;
2599 esac
2600 case " $ac_configure_args " in
2601 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2602 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2603 esac
2605 done
2606 if $ac_cache_corrupted; then
2607 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2608 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2609 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2610 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2611 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2613 ## -------------------- ##
2614 ## Main body of script. ##
2615 ## -------------------- ##
2617 ac_ext=c
2618 ac_cpp='$CPP $CPPFLAGS'
2619 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2620 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2621 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2626 unset ROOT TOOLROOT
2629 # Check whether --with-64bit was given.
2630 if test "${with_64bit+set}" = set; then :
2631 withval=$with_64bit; use_64bit=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-64bit=$withval"
2636 # Check whether --with-optimization was given.
2637 if test "${with_optimization+set}" = set; then :
2638 withval=$with_optimization; use_optimization=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-optimization=$withval"
2639 else
2640 use_optimizaton=yes
2645 # Check whether --with-threads was given.
2646 if test "${with_threads+set}" = set; then :
2647 withval=$with_threads; do_threads=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-threads=$withval"
2648 else
2649 do_threads=check
2654 # Check whether --with-secure-sockets was given.
2655 if test "${with_secure_sockets+set}" = set; then :
2656 withval=$with_secure_sockets; do_secure=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-secure-sockets=$withval"
2657 else
2658 do_secure=check
2663 # Check whether --with-static-probes was given.
2664 if test "${with_static_probes+set}" = set; then :
2665 withval=$with_static_probes; do_probes=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-static-probes=$withval"
2666 else
2667 do_probes=check
2672 # Check whether --with-infiniband was given.
2673 if test "${with_infiniband+set}" = set; then :
2674 withval=$with_infiniband; do_infiniband=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-infiniband=$withval"
2675 else
2676 do_infiniband=check
2681 # Check whether --with-user was given.
2682 if test "${with_user+set}" = set; then :
2683 withval=$with_user; pcp_user=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-user-account=$withval"
2684 else
2685 pcp_user=pcp
2691 # Check whether --with-group was given.
2692 if test "${with_group+set}" = set; then :
2693 withval=$with_group; pcp_group=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-group-account=$withval"
2694 else
2695 pcp_group=pcp
2701 # Check whether --with-discovery was given.
2702 if test "${with_discovery+set}" = set; then :
2703 withval=$with_discovery; do_discovery=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-discovery=$withval"
2704 else
2705 do_discovery=check
2710 # Check whether --with-systemd was given.
2711 if test "${with_systemd+set}" = set; then :
2712 withval=$with_systemd; do_systemd=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-systemd=$withval"
2713 else
2714 do_systemd=check
2719 # Check whether --with-qt was given.
2720 if test "${with_qt+set}" = set; then :
2721 withval=$with_qt; do_qt=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-qt=$withval"
2722 else
2723 do_qt=check
2728 # Check whether --with-qt3d was given.
2729 if test "${with_qt3d+set}" = set; then :
2730 withval=$with_qt3d; do_qt3d=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-qt3d=$withval"
2731 else
2732 do_qt3d=check
2737 # Check whether --with-python was given.
2738 if test "${with_python+set}" = set; then :
2739 withval=$with_python; do_python=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-python=$withval"
2740 else
2741 do_python=check
2746 # Check whether --with-python3 was given.
2747 if test "${with_python3+set}" = set; then :
2748 withval=$with_python3; do_python3=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-python3=$withval"
2749 else
2750 do_python3=check
2755 # Check whether --with-books was given.
2756 if test "${with_books+set}" = set; then :
2757 withval=$with_books; do_books=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-books=$withval"
2758 else
2759 do_books=no
2764 # Check whether --with-books-brand was given.
2765 if test "${with_books_brand+set}" = set; then :
2766 withval=$with_books_brand; do_books_brand=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-books-brand=$withval"
2767 else
2768 do_books_brand=common
2773 # Check whether --with-papi was given.
2774 if test "${with_papi+set}" = set; then :
2775 withval=$with_papi; do_papi=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-papi=$withval"
2776 else
2777 do_papi=check
2782 # Check whether --with-perfevent was given.
2783 if test "${with_perfevent+set}" = set; then :
2784 withval=$with_perfevent; do_perfevent=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-perfevent=$withval"
2785 else
2786 do_perfevent=check
2791 # Check whether --with-pmdajson was given.
2792 if test "${with_pmdajson+set}" = set; then :
2793 withval=$with_pmdajson; do_pmdajson=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-pmdajson=$withval"
2794 else
2795 do_pmdajson=check
2800 # Check whether --with-pmdasnmp was given.
2801 if test "${with_pmdasnmp+set}" = set; then :
2802 withval=$with_pmdasnmp; do_pmdasnmp=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-pmdasnmp=$withval"
2803 else
2804 do_pmdasnmp=check
2809 # Check whether --with-manager was given.
2810 if test "${with_manager+set}" = set; then :
2811 withval=$with_manager; do_manager=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-manager=$withval"
2812 else
2813 do_manager=check
2818 # Check whether --with-webapi was given.
2819 if test "${with_webapi+set}" = set; then :
2820 withval=$with_webapi; do_webapi=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-webapi=$withval"
2821 else
2822 do_webapi=check
2827 # Check whether --with-webjs was given.
2828 if test "${with_webjs+set}" = set; then :
2829 withval=$with_webjs; do_webjs=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-webjs=$withval"
2830 else
2831 do_webjs=no
2836 # Check whether --with-vector was given.
2837 if test "${with_vector+set}" = set; then :
2838 withval=$with_vector; do_vector=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-vector=$withval"
2839 else
2840 do_vector=no
2845 # Check whether --with-parfait was given.
2846 if test "${with_parfait+set}" = set; then :
2847 withval=$with_parfait; do_parfait=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-parfait=$withval"
2848 else
2849 do_parfait=no
2854 # Check whether --with-selinux was given.
2855 if test "${with_selinux+set}" = set; then :
2856 withval=$with_selinux; do_selinux=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-selinux=$withval"
2857 else
2858 do_selinux=check
2863 # Check whether --with-make was given.
2864 if test "${with_make+set}" = set; then :
2865 withval=$with_make; MAKE=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-make=$withval"
2866 else
2867 MAKE=''
2872 # Check whether --with-tar was given.
2873 if test "${with_tar+set}" = set; then :
2874 withval=$with_tar; TAR=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-tar=$withval"
2875 else
2876 TAR=''
2881 # Check whether --with-zip was given.
2882 if test "${with_zip+set}" = set; then :
2883 withval=$with_zip; ZIP=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-zip=$withval"
2884 else
2885 ZIP=''
2890 ac_aux_dir=
2891 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2892 if test -f "$ac_dir/install-sh"; then
2893 ac_aux_dir=$ac_dir
2894 ac_install_sh="$ac_aux_dir/install-sh -c"
2895 break
2896 elif test -f "$ac_dir/install.sh"; then
2897 ac_aux_dir=$ac_dir
2898 ac_install_sh="$ac_aux_dir/install.sh -c"
2899 break
2900 elif test -f "$ac_dir/shtool"; then
2901 ac_aux_dir=$ac_dir
2902 ac_install_sh="$ac_aux_dir/shtool install -c"
2903 break
2905 done
2906 if test -z "$ac_aux_dir"; then
2907 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2910 # These three variables are undocumented and unsupported,
2911 # and are intended to be withdrawn in a future Autoconf release.
2912 # They can cause serious problems if a builder's source tree is in a directory
2913 # whose full name contains unusual characters.
2914 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2915 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2916 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2919 # Make sure we can run config.sub.
2920 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2921 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2923 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2924 $as_echo_n "checking build system type... " >&6; }
2925 if ${ac_cv_build+:} false; then :
2926 $as_echo_n "(cached) " >&6
2927 else
2928 ac_build_alias=$build_alias
2929 test "x$ac_build_alias" = x &&
2930 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2931 test "x$ac_build_alias" = x &&
2932 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2933 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2934 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2938 $as_echo "$ac_cv_build" >&6; }
2939 case $ac_cv_build in
2940 *-*-*) ;;
2941 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2942 esac
2943 build=$ac_cv_build
2944 ac_save_IFS=$IFS; IFS='-'
2945 set x $ac_cv_build
2946 shift
2947 build_cpu=$1
2948 build_vendor=$2
2949 shift; shift
2950 # Remember, the first character of IFS is used to create $*,
2951 # except with old shells:
2952 build_os=$*
2953 IFS=$ac_save_IFS
2954 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2957 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2958 $as_echo_n "checking host system type... " >&6; }
2959 if ${ac_cv_host+:} false; then :
2960 $as_echo_n "(cached) " >&6
2961 else
2962 if test "x$host_alias" = x; then
2963 ac_cv_host=$ac_cv_build
2964 else
2965 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2966 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2971 $as_echo "$ac_cv_host" >&6; }
2972 case $ac_cv_host in
2973 *-*-*) ;;
2974 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2975 esac
2976 host=$ac_cv_host
2977 ac_save_IFS=$IFS; IFS='-'
2978 set x $ac_cv_host
2979 shift
2980 host_cpu=$1
2981 host_vendor=$2
2982 shift; shift
2983 # Remember, the first character of IFS is used to create $*,
2984 # except with old shells:
2985 host_os=$*
2986 IFS=$ac_save_IFS
2987 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2990 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2991 $as_echo_n "checking target system type... " >&6; }
2992 if ${ac_cv_target+:} false; then :
2993 $as_echo_n "(cached) " >&6
2994 else
2995 if test "x$target_alias" = x; then
2996 ac_cv_target=$ac_cv_host
2997 else
2998 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2999 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
3003 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
3004 $as_echo "$ac_cv_target" >&6; }
3005 case $ac_cv_target in
3006 *-*-*) ;;
3007 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
3008 esac
3009 target=$ac_cv_target
3010 ac_save_IFS=$IFS; IFS='-'
3011 set x $ac_cv_target
3012 shift
3013 target_cpu=$1
3014 target_vendor=$2
3015 shift; shift
3016 # Remember, the first character of IFS is used to create $*,
3017 # except with old shells:
3018 target_os=$*
3019 IFS=$ac_save_IFS
3020 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
3023 # The aliases save the names the user supplied, while $host etc.
3024 # will get canonicalized.
3025 test -n "$target_alias" &&
3026 test "$program_prefix$program_suffix$program_transform_name" = \
3027 NONENONEs,x,x, &&
3028 program_prefix=${target_alias}-
3030 if test -z "$target"
3031 then
3032 echo '
3033 FATAL ERROR: Cannot guess your target, try explicit specification
3034 using --target or mailto: pcp@groups.io to ask.'
3035 rm -rf conftest conftest.*
3036 exit 1
3037 else
3038 target=`echo $target | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
3039 target_os=`echo $target_os | sed 's/solaris2\..*/solaris/'`
3040 target_os=`echo $target_os | sed 's/^\([^-][^-]*\)-.*$/\1/' | sed 's/[\.0-9]*//g'`
3042 build=`echo $build | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
3043 build_os=`echo $build_os | sed 's/solaris2\..*/solaris/'`
3044 build_os=`echo $build_os | sed 's/^\([^-][^-]*\)-.*$/\1/'`
3047 echo Building on $build for $target
3048 echo "Build: os=$build_os cpu=$build_cpu"
3049 echo "Target: os=$target_os cpu=$target_cpu"
3051 if test "$cross_compiling" = "yes"; then
3052 if test -f ./config.$target_os; then
3053 . ./config.$target_os
3054 else
3055 echo
3056 echo "
3057 FATAL ERROR: Cannot perform cross-compilation without a file to source
3058 configuration information from (config.$target_os is missing)"
3059 rm -rf conftest conftest.*
3060 exit 1
3066 target_distro=$target_os
3067 if test $target_os = linux
3068 then
3070 $as_echo "#define IS_LINUX 1" >>confdefs.h
3072 test -f /etc/SuSE-release && target_distro=suse
3073 test -f /etc/fedora-release && target_distro=fedora
3074 test -f /etc/redhat-release && target_distro=redhat
3075 test -f /etc/debian_version && target_distro=debian
3076 test -f /etc/slackware-version && target_distro=slackware
3077 test -f /etc/gentoo-release && target_distro=gentoo
3078 test -f /etc/mandriva-release && target_distro=mandriva
3079 test -f /etc/arch-release && target_distro=arch
3080 export CFLAGS="-fPIC -fno-strict-aliasing -D_GNU_SOURCE"
3081 pcp_platform_paths='/usr/bin/X11:/usr/local/bin'
3082 pcp_ps_all_flags=-efw
3083 elif test $target_os = darwin
3084 then
3086 $as_echo "#define IS_DARWIN 1" >>confdefs.h
3088 target_distro=macosx
3089 version=`sw_vers -productVersion | sed -e 's/\.//' -e 's/\..*//g'`
3090 CFLAGS="-fPIC -no-cpp-precomp -fno-strict-aliasing -arch i386"
3091 if test $version -ge 106
3092 then
3093 target_distro=cocoa
3094 CFLAGS="$CFLAGS -arch x86_64"
3096 export CFLAGS
3097 pcp_platform_paths='/usr/local/bin'
3098 pcp_ps_all_flags="-axw -o user,pid,ppid,cpu,stime,tty,time,command"
3099 elif test $target_os = mingw
3100 then
3102 $as_echo "#define IS_MINGW 1" >>confdefs.h
3104 CFLAGS="-fno-strict-aliasing"
3105 pcp_platform_paths=''
3106 pcp_ps_all_flags=-efW
3107 elif test $target_os = solaris
3108 then
3110 $as_echo "#define IS_SOLARIS 1" >>confdefs.h
3112 export CFLAGS_IF_GCC="-fPIC -fno-strict-aliasing"
3113 export CFLAGS_IF_SUNCC="-fPIC -xalias_level=any -D_XPG4_2 -D__EXTENSIONS__"
3114 pcp_platform_paths='/usr/bin/X11:/usr/local/bin:/opt/sfw/bin:/opt/csw/bin'
3115 pcp_ps_all_flags=-ef
3116 elif test $target_os = aix
3117 then
3119 $as_echo "#define IS_AIX 1" >>confdefs.h
3121 export CFLAGS="-qcpluscmt"
3122 pcp_platform_paths='/usr/bin/X11:/usr/local/bin'
3123 pcp_ps_all_flags=-ef
3124 elif test $target_os = freebsd || test $target_os = kfreebsd
3125 then
3127 $as_echo "#define IS_FREEBSD 1" >>confdefs.h
3129 test -f /etc/debian_version && target_distro=debian
3130 export CFLAGS="-fPIC -fno-strict-aliasing -D_GNU_SOURCE"
3131 if test $target_os = kfreebsd
3132 then
3133 pcp_ps_all_flags=-efw
3134 else
3135 pcp_ps_all_flags=auxww
3137 pcp_platform_paths='/usr/bin/X11'
3138 test -d /usr/local/bin && pcp_platform_paths="$pcp_platform_paths:/usr/local/bin"
3139 test -d /usr/bsd && pcp_platform_paths="$pcp_platform_paths:/usr/bsd"
3140 elif test $target_os = gnu
3141 then
3143 $as_echo "#define IS_GNU 1" >>confdefs.h
3145 test -f /etc/debian_version && target_distro=debian
3146 export CFLAGS="-fPIC -fno-strict-aliasing -D_GNU_SOURCE"
3147 pcp_platform_paths='/usr/bin/X11:/usr/local/bin'
3148 pcp_ps_all_flags=-efw
3149 elif test $target_os = netbsdelf
3150 then
3151 target_os=netbsd
3153 $as_echo "#define IS_NETBSD 1" >>confdefs.h
3155 export CFLAGS="-fPIC -fno-strict-aliasing -D_GNU_SOURCE -D_NETBSD_SOURCE"
3156 pcp_platform_paths='/usr/pkg/bin'
3157 pcp_ps_all_flags=auxww
3158 elif test $target_os = openbsd
3159 then
3160 target_os=openbsd
3162 $as_echo "#define IS_OPENBSD 1" >>confdefs.h
3164 export CFLAGS="-fPIC -fno-strict-aliasing -D_GNU_SOURCE"
3165 pcp_platform_paths='/usr/local/bin'
3166 pcp_ps_all_flags=auxww
3167 else
3168 echo
3169 echo "FATAL ERROR: need platform-specific customization for \"$target_os\""
3170 rm -rf conftest conftest.*
3171 exit 1
3176 if test "$use_optimization" = no
3177 then
3178 optimization="-O0 -g"
3179 else
3180 optimization="-O2 -g"
3191 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
3192 if test -n "$ac_tool_prefix"; then
3193 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3194 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3196 $as_echo_n "checking for $ac_word... " >&6; }
3197 if ${ac_cv_path_PKG_CONFIG+:} false; then :
3198 $as_echo_n "(cached) " >&6
3199 else
3200 case $PKG_CONFIG in
3201 [\\/]* | ?:[\\/]*)
3202 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3205 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3206 for as_dir in $PATH
3208 IFS=$as_save_IFS
3209 test -z "$as_dir" && as_dir=.
3210 for ac_exec_ext in '' $ac_executable_extensions; do
3211 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3212 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3213 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3214 break 2
3216 done
3217 done
3218 IFS=$as_save_IFS
3221 esac
3223 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3224 if test -n "$PKG_CONFIG"; then
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
3226 $as_echo "$PKG_CONFIG" >&6; }
3227 else
3228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3229 $as_echo "no" >&6; }
3234 if test -z "$ac_cv_path_PKG_CONFIG"; then
3235 ac_pt_PKG_CONFIG=$PKG_CONFIG
3236 # Extract the first word of "pkg-config", so it can be a program name with args.
3237 set dummy pkg-config; ac_word=$2
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3239 $as_echo_n "checking for $ac_word... " >&6; }
3240 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
3241 $as_echo_n "(cached) " >&6
3242 else
3243 case $ac_pt_PKG_CONFIG in
3244 [\\/]* | ?:[\\/]*)
3245 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
3248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3249 for as_dir in $PATH
3251 IFS=$as_save_IFS
3252 test -z "$as_dir" && as_dir=.
3253 for ac_exec_ext in '' $ac_executable_extensions; do
3254 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3255 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3257 break 2
3259 done
3260 done
3261 IFS=$as_save_IFS
3264 esac
3266 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
3267 if test -n "$ac_pt_PKG_CONFIG"; then
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
3269 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
3270 else
3271 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3272 $as_echo "no" >&6; }
3275 if test "x$ac_pt_PKG_CONFIG" = x; then
3276 PKG_CONFIG=""
3277 else
3278 case $cross_compiling:$ac_tool_warned in
3279 yes:)
3280 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3281 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3282 ac_tool_warned=yes ;;
3283 esac
3284 PKG_CONFIG=$ac_pt_PKG_CONFIG
3286 else
3287 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
3291 if test -n "$PKG_CONFIG"; then
3292 _pkg_min_version=0.9.0
3293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
3294 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
3295 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
3296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3297 $as_echo "yes" >&6; }
3298 else
3299 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3300 $as_echo "no" >&6; }
3301 PKG_CONFIG=""
3304 if test -z "$PKG_CONFIG"; then
3305 as_fn_error $? "cannot find a 'pkg-config' command" "$LINENO" 5
3308 cflags_abi=
3309 ac_ext=c
3310 ac_cpp='$CPP $CPPFLAGS'
3311 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3312 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3313 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3314 if test -n "$ac_tool_prefix"; then
3315 for ac_prog in suncc egcc gcc cc
3317 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3318 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3320 $as_echo_n "checking for $ac_word... " >&6; }
3321 if ${ac_cv_prog_CC+:} false; then :
3322 $as_echo_n "(cached) " >&6
3323 else
3324 if test -n "$CC"; then
3325 ac_cv_prog_CC="$CC" # Let the user override the test.
3326 else
3327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3328 for as_dir in $PATH
3330 IFS=$as_save_IFS
3331 test -z "$as_dir" && as_dir=.
3332 for ac_exec_ext in '' $ac_executable_extensions; do
3333 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3334 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3336 break 2
3338 done
3339 done
3340 IFS=$as_save_IFS
3344 CC=$ac_cv_prog_CC
3345 if test -n "$CC"; then
3346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3347 $as_echo "$CC" >&6; }
3348 else
3349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3350 $as_echo "no" >&6; }
3354 test -n "$CC" && break
3355 done
3357 if test -z "$CC"; then
3358 ac_ct_CC=$CC
3359 for ac_prog in suncc egcc gcc cc
3361 # Extract the first word of "$ac_prog", so it can be a program name with args.
3362 set dummy $ac_prog; ac_word=$2
3363 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3364 $as_echo_n "checking for $ac_word... " >&6; }
3365 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3366 $as_echo_n "(cached) " >&6
3367 else
3368 if test -n "$ac_ct_CC"; then
3369 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3370 else
3371 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3372 for as_dir in $PATH
3374 IFS=$as_save_IFS
3375 test -z "$as_dir" && as_dir=.
3376 for ac_exec_ext in '' $ac_executable_extensions; do
3377 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3378 ac_cv_prog_ac_ct_CC="$ac_prog"
3379 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3380 break 2
3382 done
3383 done
3384 IFS=$as_save_IFS
3388 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3389 if test -n "$ac_ct_CC"; then
3390 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3391 $as_echo "$ac_ct_CC" >&6; }
3392 else
3393 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3394 $as_echo "no" >&6; }
3398 test -n "$ac_ct_CC" && break
3399 done
3401 if test "x$ac_ct_CC" = x; then
3402 CC=""
3403 else
3404 case $cross_compiling:$ac_tool_warned in
3405 yes:)
3406 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3407 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3408 ac_tool_warned=yes ;;
3409 esac
3410 CC=$ac_ct_CC
3415 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3416 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3417 as_fn_error $? "no acceptable C compiler found in \$PATH
3418 See \`config.log' for more details" "$LINENO" 5; }
3420 # Provide some information about the compiler.
3421 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3422 set X $ac_compile
3423 ac_compiler=$2
3424 for ac_option in --version -v -V -qversion; do
3425 { { ac_try="$ac_compiler $ac_option >&5"
3426 case "(($ac_try" in
3427 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3428 *) ac_try_echo=$ac_try;;
3429 esac
3430 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3431 $as_echo "$ac_try_echo"; } >&5
3432 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3433 ac_status=$?
3434 if test -s conftest.err; then
3435 sed '10a\
3436 ... rest of stderr output deleted ...
3437 10q' conftest.err >conftest.er1
3438 cat conftest.er1 >&5
3440 rm -f conftest.er1 conftest.err
3441 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3442 test $ac_status = 0; }
3443 done
3445 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3446 /* end confdefs.h. */
3449 main ()
3453 return 0;
3455 _ACEOF
3456 ac_clean_files_save=$ac_clean_files
3457 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3458 # Try to create an executable without -o first, disregard a.out.
3459 # It will help us diagnose broken compilers, and finding out an intuition
3460 # of exeext.
3461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3462 $as_echo_n "checking whether the C compiler works... " >&6; }
3463 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3465 # The possible output files:
3466 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3468 ac_rmfiles=
3469 for ac_file in $ac_files
3471 case $ac_file in
3472 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3473 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3474 esac
3475 done
3476 rm -f $ac_rmfiles
3478 if { { ac_try="$ac_link_default"
3479 case "(($ac_try" in
3480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3481 *) ac_try_echo=$ac_try;;
3482 esac
3483 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3484 $as_echo "$ac_try_echo"; } >&5
3485 (eval "$ac_link_default") 2>&5
3486 ac_status=$?
3487 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3488 test $ac_status = 0; }; then :
3489 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3490 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3491 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3492 # so that the user can short-circuit this test for compilers unknown to
3493 # Autoconf.
3494 for ac_file in $ac_files ''
3496 test -f "$ac_file" || continue
3497 case $ac_file in
3498 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3500 [ab].out )
3501 # We found the default executable, but exeext='' is most
3502 # certainly right.
3503 break;;
3504 *.* )
3505 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3506 then :; else
3507 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3509 # We set ac_cv_exeext here because the later test for it is not
3510 # safe: cross compilers may not add the suffix if given an `-o'
3511 # argument, so we may need to know it at that point already.
3512 # Even if this section looks crufty: it has the advantage of
3513 # actually working.
3514 break;;
3516 break;;
3517 esac
3518 done
3519 test "$ac_cv_exeext" = no && ac_cv_exeext=
3521 else
3522 ac_file=''
3524 if test -z "$ac_file"; then :
3525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3526 $as_echo "no" >&6; }
3527 $as_echo "$as_me: failed program was:" >&5
3528 sed 's/^/| /' conftest.$ac_ext >&5
3530 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3531 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3532 as_fn_error 77 "C compiler cannot create executables
3533 See \`config.log' for more details" "$LINENO" 5; }
3534 else
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3536 $as_echo "yes" >&6; }
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3539 $as_echo_n "checking for C compiler default output file name... " >&6; }
3540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3541 $as_echo "$ac_file" >&6; }
3542 ac_exeext=$ac_cv_exeext
3544 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3545 ac_clean_files=$ac_clean_files_save
3546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3547 $as_echo_n "checking for suffix of executables... " >&6; }
3548 if { { ac_try="$ac_link"
3549 case "(($ac_try" in
3550 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3551 *) ac_try_echo=$ac_try;;
3552 esac
3553 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3554 $as_echo "$ac_try_echo"; } >&5
3555 (eval "$ac_link") 2>&5
3556 ac_status=$?
3557 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3558 test $ac_status = 0; }; then :
3559 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3560 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3561 # work properly (i.e., refer to `conftest.exe'), while it won't with
3562 # `rm'.
3563 for ac_file in conftest.exe conftest conftest.*; do
3564 test -f "$ac_file" || continue
3565 case $ac_file in
3566 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3567 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3568 break;;
3569 * ) break;;
3570 esac
3571 done
3572 else
3573 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3574 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3575 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3576 See \`config.log' for more details" "$LINENO" 5; }
3578 rm -f conftest conftest$ac_cv_exeext
3579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3580 $as_echo "$ac_cv_exeext" >&6; }
3582 rm -f conftest.$ac_ext
3583 EXEEXT=$ac_cv_exeext
3584 ac_exeext=$EXEEXT
3585 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3586 /* end confdefs.h. */
3587 #include <stdio.h>
3589 main ()
3591 FILE *f = fopen ("conftest.out", "w");
3592 return ferror (f) || fclose (f) != 0;
3595 return 0;
3597 _ACEOF
3598 ac_clean_files="$ac_clean_files conftest.out"
3599 # Check that the compiler produces executables we can run. If not, either
3600 # the compiler is broken, or we cross compile.
3601 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3602 $as_echo_n "checking whether we are cross compiling... " >&6; }
3603 if test "$cross_compiling" != yes; then
3604 { { ac_try="$ac_link"
3605 case "(($ac_try" in
3606 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3607 *) ac_try_echo=$ac_try;;
3608 esac
3609 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3610 $as_echo "$ac_try_echo"; } >&5
3611 (eval "$ac_link") 2>&5
3612 ac_status=$?
3613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3614 test $ac_status = 0; }
3615 if { ac_try='./conftest$ac_cv_exeext'
3616 { { case "(($ac_try" in
3617 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3618 *) ac_try_echo=$ac_try;;
3619 esac
3620 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3621 $as_echo "$ac_try_echo"; } >&5
3622 (eval "$ac_try") 2>&5
3623 ac_status=$?
3624 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3625 test $ac_status = 0; }; }; then
3626 cross_compiling=no
3627 else
3628 if test "$cross_compiling" = maybe; then
3629 cross_compiling=yes
3630 else
3631 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3632 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3633 as_fn_error $? "cannot run C compiled programs.
3634 If you meant to cross compile, use \`--host'.
3635 See \`config.log' for more details" "$LINENO" 5; }
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3640 $as_echo "$cross_compiling" >&6; }
3642 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3643 ac_clean_files=$ac_clean_files_save
3644 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3645 $as_echo_n "checking for suffix of object files... " >&6; }
3646 if ${ac_cv_objext+:} false; then :
3647 $as_echo_n "(cached) " >&6
3648 else
3649 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3650 /* end confdefs.h. */
3653 main ()
3657 return 0;
3659 _ACEOF
3660 rm -f conftest.o conftest.obj
3661 if { { ac_try="$ac_compile"
3662 case "(($ac_try" in
3663 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3664 *) ac_try_echo=$ac_try;;
3665 esac
3666 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3667 $as_echo "$ac_try_echo"; } >&5
3668 (eval "$ac_compile") 2>&5
3669 ac_status=$?
3670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3671 test $ac_status = 0; }; then :
3672 for ac_file in conftest.o conftest.obj conftest.*; do
3673 test -f "$ac_file" || continue;
3674 case $ac_file in
3675 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3676 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3677 break;;
3678 esac
3679 done
3680 else
3681 $as_echo "$as_me: failed program was:" >&5
3682 sed 's/^/| /' conftest.$ac_ext >&5
3684 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3685 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3686 as_fn_error $? "cannot compute suffix of object files: cannot compile
3687 See \`config.log' for more details" "$LINENO" 5; }
3689 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3692 $as_echo "$ac_cv_objext" >&6; }
3693 OBJEXT=$ac_cv_objext
3694 ac_objext=$OBJEXT
3695 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3696 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3697 if ${ac_cv_c_compiler_gnu+:} false; then :
3698 $as_echo_n "(cached) " >&6
3699 else
3700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3701 /* end confdefs.h. */
3704 main ()
3706 #ifndef __GNUC__
3707 choke me
3708 #endif
3711 return 0;
3713 _ACEOF
3714 if ac_fn_c_try_compile "$LINENO"; then :
3715 ac_compiler_gnu=yes
3716 else
3717 ac_compiler_gnu=no
3719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3720 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3724 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3725 if test $ac_compiler_gnu = yes; then
3726 GCC=yes
3727 else
3728 GCC=
3730 ac_test_CFLAGS=${CFLAGS+set}
3731 ac_save_CFLAGS=$CFLAGS
3732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3733 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3734 if ${ac_cv_prog_cc_g+:} false; then :
3735 $as_echo_n "(cached) " >&6
3736 else
3737 ac_save_c_werror_flag=$ac_c_werror_flag
3738 ac_c_werror_flag=yes
3739 ac_cv_prog_cc_g=no
3740 CFLAGS="-g"
3741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3742 /* end confdefs.h. */
3745 main ()
3749 return 0;
3751 _ACEOF
3752 if ac_fn_c_try_compile "$LINENO"; then :
3753 ac_cv_prog_cc_g=yes
3754 else
3755 CFLAGS=""
3756 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3757 /* end confdefs.h. */
3760 main ()
3764 return 0;
3766 _ACEOF
3767 if ac_fn_c_try_compile "$LINENO"; then :
3769 else
3770 ac_c_werror_flag=$ac_save_c_werror_flag
3771 CFLAGS="-g"
3772 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3773 /* end confdefs.h. */
3776 main ()
3780 return 0;
3782 _ACEOF
3783 if ac_fn_c_try_compile "$LINENO"; then :
3784 ac_cv_prog_cc_g=yes
3786 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3788 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3790 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3791 ac_c_werror_flag=$ac_save_c_werror_flag
3793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3794 $as_echo "$ac_cv_prog_cc_g" >&6; }
3795 if test "$ac_test_CFLAGS" = set; then
3796 CFLAGS=$ac_save_CFLAGS
3797 elif test $ac_cv_prog_cc_g = yes; then
3798 if test "$GCC" = yes; then
3799 CFLAGS="-g -O2"
3800 else
3801 CFLAGS="-g"
3803 else
3804 if test "$GCC" = yes; then
3805 CFLAGS="-O2"
3806 else
3807 CFLAGS=
3810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3811 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3812 if ${ac_cv_prog_cc_c89+:} false; then :
3813 $as_echo_n "(cached) " >&6
3814 else
3815 ac_cv_prog_cc_c89=no
3816 ac_save_CC=$CC
3817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3818 /* end confdefs.h. */
3819 #include <stdarg.h>
3820 #include <stdio.h>
3821 struct stat;
3822 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3823 struct buf { int x; };
3824 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3825 static char *e (p, i)
3826 char **p;
3827 int i;
3829 return p[i];
3831 static char *f (char * (*g) (char **, int), char **p, ...)
3833 char *s;
3834 va_list v;
3835 va_start (v,p);
3836 s = g (p, va_arg (v,int));
3837 va_end (v);
3838 return s;
3841 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3842 function prototypes and stuff, but not '\xHH' hex character constants.
3843 These don't provoke an error unfortunately, instead are silently treated
3844 as 'x'. The following induces an error, until -std is added to get
3845 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3846 array size at least. It's necessary to write '\x00'==0 to get something
3847 that's true only with -std. */
3848 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3850 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3851 inside strings and character constants. */
3852 #define FOO(x) 'x'
3853 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3855 int test (int i, double x);
3856 struct s1 {int (*f) (int a);};
3857 struct s2 {int (*f) (double a);};
3858 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3859 int argc;
3860 char **argv;
3862 main ()
3864 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3866 return 0;
3868 _ACEOF
3869 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3870 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3872 CC="$ac_save_CC $ac_arg"
3873 if ac_fn_c_try_compile "$LINENO"; then :
3874 ac_cv_prog_cc_c89=$ac_arg
3876 rm -f core conftest.err conftest.$ac_objext
3877 test "x$ac_cv_prog_cc_c89" != "xno" && break
3878 done
3879 rm -f conftest.$ac_ext
3880 CC=$ac_save_CC
3883 # AC_CACHE_VAL
3884 case "x$ac_cv_prog_cc_c89" in
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3887 $as_echo "none needed" >&6; } ;;
3888 xno)
3889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3890 $as_echo "unsupported" >&6; } ;;
3892 CC="$CC $ac_cv_prog_cc_c89"
3893 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3894 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3895 esac
3896 if test "x$ac_cv_prog_cc_c89" != xno; then :
3900 ac_ext=c
3901 ac_cpp='$CPP $CPPFLAGS'
3902 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3903 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3904 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3906 if test $target_os = solaris
3907 then
3908 # Extract the first word of "$CC", so it can be a program name with args.
3909 set dummy $CC; ac_word=$2
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3911 $as_echo_n "checking for $ac_word... " >&6; }
3912 if ${ac_cv_path_CCPATH+:} false; then :
3913 $as_echo_n "(cached) " >&6
3914 else
3915 case $CCPATH in
3916 [\\/]* | ?:[\\/]*)
3917 ac_cv_path_CCPATH="$CCPATH" # Let the user override the test with a path.
3920 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3921 for as_dir in $PATH
3923 IFS=$as_save_IFS
3924 test -z "$as_dir" && as_dir=.
3925 for ac_exec_ext in '' $ac_executable_extensions; do
3926 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3927 ac_cv_path_CCPATH="$as_dir/$ac_word$ac_exec_ext"
3928 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3929 break 2
3931 done
3932 done
3933 IFS=$as_save_IFS
3935 test -z "$ac_cv_path_CCPATH" && ac_cv_path_CCPATH="$CC"
3937 esac
3939 CCPATH=$ac_cv_path_CCPATH
3940 if test -n "$CCPATH"; then
3941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCPATH" >&5
3942 $as_echo "$CCPATH" >&6; }
3943 else
3944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3945 $as_echo "no" >&6; }
3949 cc=$CCPATH
3950 if test "$GCC" = "yes"
3951 then
3952 CFLAGS="$CFLAGS $CFLAGS_IF_GCC"
3953 else
3954 CFLAGS="$CFLAGS $CFLAGS_IF_SUNCC"
3956 if test "$use_64bit" = "no"
3957 then
3959 else
3960 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64 bit Solaris host" >&5
3961 $as_echo_n "checking for 64 bit Solaris host... " >&6; }
3962 case `isainfo -k`
3964 amd64|sparcv9)
3965 cflags_abi=-m64
3966 CFLAGS="$CFLAGS -m64"
3967 LDFLAGS="$LDFLAGS -m64"
3968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3969 $as_echo "yes" >&6; }
3972 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3973 $as_echo "no" >&6; }
3975 esac
3977 else
3978 cc=$CC
3981 cc_is_gcc=$GCC
3984 PCFLAGS="$CFLAGS"
3985 PLDFLAGS=$LDFLAGS
3987 if echo "$CFLAGS" | grep 'D_FORTIFY_SOURCE' >/dev/null
3988 then
3989 CFLAGS="-O $PCFLAGS"
3993 if echo "$CFLAGS" | grep stack-protector >/dev/null
3994 then
3996 else
3997 # Check whether --enable-ssp was given.
3998 if test "${enable_ssp+set}" = set; then :
3999 enableval=$enable_ssp;
4003 if test "x$cc_is_gcc" = xyes -a "x$enable_ssp" != xno ; then :
4005 save_CFLAGS="$CFLAGS"
4006 CFLAGS="$CFLAGS -O -fstack-protector-all -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2"
4007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4008 /* end confdefs.h. */
4009 int something ();
4010 _ACEOF
4011 if ac_fn_c_try_compile "$LINENO"; then :
4013 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling with gcc -fstack-protector-all et al." >&5
4014 $as_echo "$as_me: Compiling with gcc -fstack-protector-all et al." >&6;}
4015 PCFLAGS="$PCFLAGS -fstack-protector-all -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2"
4016 else
4018 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiler does not support -fstack-protector-all et al." >&5
4019 $as_echo "$as_me: Compiler does not support -fstack-protector-all et al." >&6;}
4020 CFLAGS="$save_CFLAGS"
4023 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4030 # Check whether --enable-pie was given.
4031 if test "${enable_pie+set}" = set; then :
4032 enableval=$enable_pie;
4035 if test "x$cc_is_gcc" = xyes -a "x$enable_pie" != xno; then :
4037 PIECFLAGS='-fPIE'
4038 PIELDFLAGS='-pie -Wl,-z,relro -Wl,-z,now'
4039 save_CFLAGS="$CFLAGS"
4040 save_LDFLAGS="$LDFLAGS"
4041 CFLAGS="$CFLAGS $PIECFLAGS"
4042 LDFLAGS="$LDFLAGS $PIELDFLAGS"
4043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4044 /* end confdefs.h. */
4045 void main () {}
4046 _ACEOF
4047 if ac_fn_c_try_link "$LINENO"; then :
4049 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling with gcc pie et al." >&5
4050 $as_echo "$as_me: Compiling with gcc pie et al." >&6;}
4052 else
4054 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiler does not support -pie et al." >&5
4055 $as_echo "$as_me: Compiler does not support -pie et al." >&6;}
4056 PIECFLAGS=""
4057 PIELDFLAGS=""
4060 rm -f core conftest.err conftest.$ac_objext \
4061 conftest$ac_exeext conftest.$ac_ext
4062 CFLAGS="$save_CFLAGS"
4063 LDFLAGS="$save_LDFLAGS"
4069 # Check whether --enable-visibility was given.
4070 if test "${enable_visibility+set}" = set; then :
4071 enableval=$enable_visibility;
4074 if test "x$cc_is_gcc" = xyes -a "$enable_visibility" != no; then :
4076 INVISIBILITY="-fvisibility=hidden"
4077 save_CFLAGS="$CFLAGS"
4078 CFLAGS="$CFLAGS -c $INVISIBILITY"
4079 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4080 /* end confdefs.h. */
4081 int visible () { return 0; }
4082 _ACEOF
4083 if ac_fn_c_try_compile "$LINENO"; then :
4085 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling DSO PMDAs with gcc -fvisibility=hidden" >&5
4086 $as_echo "$as_me: Compiling DSO PMDAs with gcc -fvisibility=hidden" >&6;}
4088 else
4090 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiler does not support -fvisibility." >&5
4091 $as_echo "$as_me: Compiler does not support -fvisibility." >&6;}
4092 INVISIBILITY=""
4095 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4096 CFLAGS="$save_CFLAGS"
4101 ac_ext=cpp
4102 ac_cpp='$CXXCPP $CPPFLAGS'
4103 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4104 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4105 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4106 if test -z "$CXX"; then
4107 if test -n "$CCC"; then
4108 CXX=$CCC
4109 else
4110 if test -n "$ac_tool_prefix"; then
4111 for ac_prog in eg++ g++ c++
4113 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4114 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4116 $as_echo_n "checking for $ac_word... " >&6; }
4117 if ${ac_cv_prog_CXX+:} false; then :
4118 $as_echo_n "(cached) " >&6
4119 else
4120 if test -n "$CXX"; then
4121 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4122 else
4123 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4124 for as_dir in $PATH
4126 IFS=$as_save_IFS
4127 test -z "$as_dir" && as_dir=.
4128 for ac_exec_ext in '' $ac_executable_extensions; do
4129 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4130 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4131 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4132 break 2
4134 done
4135 done
4136 IFS=$as_save_IFS
4140 CXX=$ac_cv_prog_CXX
4141 if test -n "$CXX"; then
4142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4143 $as_echo "$CXX" >&6; }
4144 else
4145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4146 $as_echo "no" >&6; }
4150 test -n "$CXX" && break
4151 done
4153 if test -z "$CXX"; then
4154 ac_ct_CXX=$CXX
4155 for ac_prog in eg++ g++ c++
4157 # Extract the first word of "$ac_prog", so it can be a program name with args.
4158 set dummy $ac_prog; ac_word=$2
4159 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4160 $as_echo_n "checking for $ac_word... " >&6; }
4161 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4162 $as_echo_n "(cached) " >&6
4163 else
4164 if test -n "$ac_ct_CXX"; then
4165 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4166 else
4167 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4168 for as_dir in $PATH
4170 IFS=$as_save_IFS
4171 test -z "$as_dir" && as_dir=.
4172 for ac_exec_ext in '' $ac_executable_extensions; do
4173 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4174 ac_cv_prog_ac_ct_CXX="$ac_prog"
4175 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4176 break 2
4178 done
4179 done
4180 IFS=$as_save_IFS
4184 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4185 if test -n "$ac_ct_CXX"; then
4186 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4187 $as_echo "$ac_ct_CXX" >&6; }
4188 else
4189 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4190 $as_echo "no" >&6; }
4194 test -n "$ac_ct_CXX" && break
4195 done
4197 if test "x$ac_ct_CXX" = x; then
4198 CXX="g++"
4199 else
4200 case $cross_compiling:$ac_tool_warned in
4201 yes:)
4202 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4203 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4204 ac_tool_warned=yes ;;
4205 esac
4206 CXX=$ac_ct_CXX
4212 # Provide some information about the compiler.
4213 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4214 set X $ac_compile
4215 ac_compiler=$2
4216 for ac_option in --version -v -V -qversion; do
4217 { { ac_try="$ac_compiler $ac_option >&5"
4218 case "(($ac_try" in
4219 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4220 *) ac_try_echo=$ac_try;;
4221 esac
4222 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4223 $as_echo "$ac_try_echo"; } >&5
4224 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4225 ac_status=$?
4226 if test -s conftest.err; then
4227 sed '10a\
4228 ... rest of stderr output deleted ...
4229 10q' conftest.err >conftest.er1
4230 cat conftest.er1 >&5
4232 rm -f conftest.er1 conftest.err
4233 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4234 test $ac_status = 0; }
4235 done
4237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4238 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4239 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4240 $as_echo_n "(cached) " >&6
4241 else
4242 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4243 /* end confdefs.h. */
4246 main ()
4248 #ifndef __GNUC__
4249 choke me
4250 #endif
4253 return 0;
4255 _ACEOF
4256 if ac_fn_cxx_try_compile "$LINENO"; then :
4257 ac_compiler_gnu=yes
4258 else
4259 ac_compiler_gnu=no
4261 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4262 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4265 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4266 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4267 if test $ac_compiler_gnu = yes; then
4268 GXX=yes
4269 else
4270 GXX=
4272 ac_test_CXXFLAGS=${CXXFLAGS+set}
4273 ac_save_CXXFLAGS=$CXXFLAGS
4274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4275 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4276 if ${ac_cv_prog_cxx_g+:} false; then :
4277 $as_echo_n "(cached) " >&6
4278 else
4279 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4280 ac_cxx_werror_flag=yes
4281 ac_cv_prog_cxx_g=no
4282 CXXFLAGS="-g"
4283 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4284 /* end confdefs.h. */
4287 main ()
4291 return 0;
4293 _ACEOF
4294 if ac_fn_cxx_try_compile "$LINENO"; then :
4295 ac_cv_prog_cxx_g=yes
4296 else
4297 CXXFLAGS=""
4298 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4299 /* end confdefs.h. */
4302 main ()
4306 return 0;
4308 _ACEOF
4309 if ac_fn_cxx_try_compile "$LINENO"; then :
4311 else
4312 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4313 CXXFLAGS="-g"
4314 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4315 /* end confdefs.h. */
4318 main ()
4322 return 0;
4324 _ACEOF
4325 if ac_fn_cxx_try_compile "$LINENO"; then :
4326 ac_cv_prog_cxx_g=yes
4328 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4330 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4332 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4333 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4336 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4337 if test "$ac_test_CXXFLAGS" = set; then
4338 CXXFLAGS=$ac_save_CXXFLAGS
4339 elif test $ac_cv_prog_cxx_g = yes; then
4340 if test "$GXX" = yes; then
4341 CXXFLAGS="-g -O2"
4342 else
4343 CXXFLAGS="-g"
4345 else
4346 if test "$GXX" = yes; then
4347 CXXFLAGS="-O2"
4348 else
4349 CXXFLAGS=
4352 ac_ext=c
4353 ac_cpp='$CPP $CPPFLAGS'
4354 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4355 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4356 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4358 cxx=$CXX
4360 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working C++ compiler" >&5
4361 $as_echo_n "checking for working C++ compiler... " >&6; }
4362 ac_ext=cpp
4363 ac_cpp='$CXXCPP $CPPFLAGS'
4364 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4365 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4366 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4369 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4370 /* end confdefs.h. */
4371 #include <cstdio>
4373 main ()
4375 const char gday[] = "G'day, world\n";
4377 return 0;
4379 _ACEOF
4380 if ac_fn_cxx_try_compile "$LINENO"; then :
4381 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4382 $as_echo "yes" >&6; }
4383 else
4384 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4385 $as_echo "no" >&6; }
4386 cxx=""
4388 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4389 ac_ext=c
4390 ac_cpp='$CPP $CPPFLAGS'
4391 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4392 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4393 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4396 # Check whether --enable-shared was given.
4397 if test "${enable_shared+set}" = set; then :
4398 enableval=$enable_shared; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --disable-shared=$withval"
4404 test -z "$AWK" && for ac_prog in gawk awk
4406 # Extract the first word of "$ac_prog", so it can be a program name with args.
4407 set dummy $ac_prog; ac_word=$2
4408 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4409 $as_echo_n "checking for $ac_word... " >&6; }
4410 if ${ac_cv_path_AWK+:} false; then :
4411 $as_echo_n "(cached) " >&6
4412 else
4413 case $AWK in
4414 [\\/]* | ?:[\\/]*)
4415 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
4418 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4419 for as_dir in $PATH
4421 IFS=$as_save_IFS
4422 test -z "$as_dir" && as_dir=.
4423 for ac_exec_ext in '' $ac_executable_extensions; do
4424 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4425 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
4426 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4427 break 2
4429 done
4430 done
4431 IFS=$as_save_IFS
4434 esac
4436 AWK=$ac_cv_path_AWK
4437 if test -n "$AWK"; then
4438 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4439 $as_echo "$AWK" >&6; }
4440 else
4441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4442 $as_echo "no" >&6; }
4446 test -n "$AWK" && break
4447 done
4448 test -n "$AWK" || AWK="/usr/bin/awk"
4450 case "$AWK"
4452 gawk|*/gawk)
4453 awk="$AWK --posix"
4456 awk=$AWK
4458 esac
4461 if test -z "$SED"; then
4462 # Extract the first word of "sed", so it can be a program name with args.
4463 set dummy sed; ac_word=$2
4464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4465 $as_echo_n "checking for $ac_word... " >&6; }
4466 if ${ac_cv_path_SED+:} false; then :
4467 $as_echo_n "(cached) " >&6
4468 else
4469 case $SED in
4470 [\\/]* | ?:[\\/]*)
4471 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4474 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4475 for as_dir in $PATH
4477 IFS=$as_save_IFS
4478 test -z "$as_dir" && as_dir=.
4479 for ac_exec_ext in '' $ac_executable_extensions; do
4480 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4481 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4482 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4483 break 2
4485 done
4486 done
4487 IFS=$as_save_IFS
4489 test -z "$ac_cv_path_SED" && ac_cv_path_SED="/bin/sed"
4491 esac
4493 SED=$ac_cv_path_SED
4494 if test -n "$SED"; then
4495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
4496 $as_echo "$SED" >&6; }
4497 else
4498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4499 $as_echo "no" >&6; }
4504 if test ! -x "$SED"; then
4505 as_fn_error $? "cannot find a valid 'sed' command." "$LINENO" 5
4507 sed=$SED
4510 if test -z "$ECHO"; then
4511 # Extract the first word of "echo", so it can be a program name with args.
4512 set dummy echo; ac_word=$2
4513 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4514 $as_echo_n "checking for $ac_word... " >&6; }
4515 if ${ac_cv_path_ECHO+:} false; then :
4516 $as_echo_n "(cached) " >&6
4517 else
4518 case $ECHO in
4519 [\\/]* | ?:[\\/]*)
4520 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
4523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4524 for as_dir in $PATH
4526 IFS=$as_save_IFS
4527 test -z "$as_dir" && as_dir=.
4528 for ac_exec_ext in '' $ac_executable_extensions; do
4529 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4530 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
4531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4532 break 2
4534 done
4535 done
4536 IFS=$as_save_IFS
4538 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="/bin/echo"
4540 esac
4542 ECHO=$ac_cv_path_ECHO
4543 if test -n "$ECHO"; then
4544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
4545 $as_echo "$ECHO" >&6; }
4546 else
4547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4548 $as_echo "no" >&6; }
4553 if test ! -x "$ECHO"; then
4554 as_fn_error $? "cannot find a valid 'echo' command." "$LINENO" 5
4556 echo=$ECHO
4559 if test -z "$FIND"; then
4560 # Extract the first word of "find", so it can be a program name with args.
4561 set dummy find; ac_word=$2
4562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4563 $as_echo_n "checking for $ac_word... " >&6; }
4564 if ${ac_cv_path_FIND+:} false; then :
4565 $as_echo_n "(cached) " >&6
4566 else
4567 case $FIND in
4568 [\\/]* | ?:[\\/]*)
4569 ac_cv_path_FIND="$FIND" # Let the user override the test with a path.
4572 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4573 for as_dir in $PATH
4575 IFS=$as_save_IFS
4576 test -z "$as_dir" && as_dir=.
4577 for ac_exec_ext in '' $ac_executable_extensions; do
4578 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4579 ac_cv_path_FIND="$as_dir/$ac_word$ac_exec_ext"
4580 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4581 break 2
4583 done
4584 done
4585 IFS=$as_save_IFS
4587 test -z "$ac_cv_path_FIND" && ac_cv_path_FIND="/usr/bin/find"
4589 esac
4591 FIND=$ac_cv_path_FIND
4592 if test -n "$FIND"; then
4593 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $FIND" >&5
4594 $as_echo "$FIND" >&6; }
4595 else
4596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4597 $as_echo "no" >&6; }
4602 if test ! -x "$FIND"; then
4603 as_fn_error $? "cannot find a valid 'find' command." "$LINENO" 5
4605 find=$FIND
4608 if test -z "$WHICH"; then
4609 # Extract the first word of "which", so it can be a program name with args.
4610 set dummy which; ac_word=$2
4611 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4612 $as_echo_n "checking for $ac_word... " >&6; }
4613 if ${ac_cv_path_WHICH+:} false; then :
4614 $as_echo_n "(cached) " >&6
4615 else
4616 case $WHICH in
4617 [\\/]* | ?:[\\/]*)
4618 ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
4621 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4622 for as_dir in $PATH
4624 IFS=$as_save_IFS
4625 test -z "$as_dir" && as_dir=.
4626 for ac_exec_ext in '' $ac_executable_extensions; do
4627 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4628 ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
4629 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4630 break 2
4632 done
4633 done
4634 IFS=$as_save_IFS
4636 test -z "$ac_cv_path_WHICH" && ac_cv_path_WHICH="/usr/bin/which"
4638 esac
4640 WHICH=$ac_cv_path_WHICH
4641 if test -n "$WHICH"; then
4642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
4643 $as_echo "$WHICH" >&6; }
4644 else
4645 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4646 $as_echo "no" >&6; }
4651 if test ! -x "$WHICH"; then
4652 as_fn_error $? "cannot find a valid 'which' command." "$LINENO" 5
4654 which=$WHICH
4657 for ac_prog in flex lex
4659 # Extract the first word of "$ac_prog", so it can be a program name with args.
4660 set dummy $ac_prog; ac_word=$2
4661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4662 $as_echo_n "checking for $ac_word... " >&6; }
4663 if ${ac_cv_prog_LEX+:} false; then :
4664 $as_echo_n "(cached) " >&6
4665 else
4666 if test -n "$LEX"; then
4667 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4668 else
4669 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4670 for as_dir in $PATH
4672 IFS=$as_save_IFS
4673 test -z "$as_dir" && as_dir=.
4674 for ac_exec_ext in '' $ac_executable_extensions; do
4675 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4676 ac_cv_prog_LEX="$ac_prog"
4677 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4678 break 2
4680 done
4681 done
4682 IFS=$as_save_IFS
4686 LEX=$ac_cv_prog_LEX
4687 if test -n "$LEX"; then
4688 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
4689 $as_echo "$LEX" >&6; }
4690 else
4691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4692 $as_echo "no" >&6; }
4696 test -n "$LEX" && break
4697 done
4698 test -n "$LEX" || LEX=":"
4700 if test "x$LEX" != "x:"; then
4701 cat >conftest.l <<_ACEOF
4703 a { ECHO; }
4704 b { REJECT; }
4705 c { yymore (); }
4706 d { yyless (1); }
4707 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
4708 yyless ((input () != 0)); }
4709 f { unput (yytext[0]); }
4710 . { BEGIN INITIAL; }
4712 #ifdef YYTEXT_POINTER
4713 extern char *yytext;
4714 #endif
4716 main (void)
4718 return ! yylex () + ! yywrap ();
4720 _ACEOF
4721 { { ac_try="$LEX conftest.l"
4722 case "(($ac_try" in
4723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4724 *) ac_try_echo=$ac_try;;
4725 esac
4726 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4727 $as_echo "$ac_try_echo"; } >&5
4728 (eval "$LEX conftest.l") 2>&5
4729 ac_status=$?
4730 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4731 test $ac_status = 0; }
4732 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
4733 $as_echo_n "checking lex output file root... " >&6; }
4734 if ${ac_cv_prog_lex_root+:} false; then :
4735 $as_echo_n "(cached) " >&6
4736 else
4738 if test -f lex.yy.c; then
4739 ac_cv_prog_lex_root=lex.yy
4740 elif test -f lexyy.c; then
4741 ac_cv_prog_lex_root=lexyy
4742 else
4743 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
4746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
4747 $as_echo "$ac_cv_prog_lex_root" >&6; }
4748 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4750 if test -z "${LEXLIB+set}"; then
4751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
4752 $as_echo_n "checking lex library... " >&6; }
4753 if ${ac_cv_lib_lex+:} false; then :
4754 $as_echo_n "(cached) " >&6
4755 else
4757 ac_save_LIBS=$LIBS
4758 ac_cv_lib_lex='none needed'
4759 for ac_lib in '' -lfl -ll; do
4760 LIBS="$ac_lib $ac_save_LIBS"
4761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4762 /* end confdefs.h. */
4763 `cat $LEX_OUTPUT_ROOT.c`
4764 _ACEOF
4765 if ac_fn_c_try_link "$LINENO"; then :
4766 ac_cv_lib_lex=$ac_lib
4768 rm -f core conftest.err conftest.$ac_objext \
4769 conftest$ac_exeext conftest.$ac_ext
4770 test "$ac_cv_lib_lex" != 'none needed' && break
4771 done
4772 LIBS=$ac_save_LIBS
4775 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
4776 $as_echo "$ac_cv_lib_lex" >&6; }
4777 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
4782 $as_echo_n "checking whether yytext is a pointer... " >&6; }
4783 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
4784 $as_echo_n "(cached) " >&6
4785 else
4786 # POSIX says lex can declare yytext either as a pointer or an array; the
4787 # default is implementation-dependent. Figure out which it is, since
4788 # not all implementations provide the %pointer and %array declarations.
4789 ac_cv_prog_lex_yytext_pointer=no
4790 ac_save_LIBS=$LIBS
4791 LIBS="$LEXLIB $ac_save_LIBS"
4792 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4793 /* end confdefs.h. */
4795 #define YYTEXT_POINTER 1
4796 `cat $LEX_OUTPUT_ROOT.c`
4797 _ACEOF
4798 if ac_fn_c_try_link "$LINENO"; then :
4799 ac_cv_prog_lex_yytext_pointer=yes
4801 rm -f core conftest.err conftest.$ac_objext \
4802 conftest$ac_exeext conftest.$ac_ext
4803 LIBS=$ac_save_LIBS
4806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
4807 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
4808 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4810 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
4813 rm -f conftest.l $LEX_OUTPUT_ROOT.c
4816 lex=`$echo $LEX | awk '{print $1}'`
4817 lex=`$which "$lex"`
4818 if test ! -x "$lex"; then
4819 as_fn_error $? "cannot find a valid 'lex'/'flex' command." "$LINENO" 5
4821 lex=$LEX
4824 for ac_prog in 'bison -y' byacc
4826 # Extract the first word of "$ac_prog", so it can be a program name with args.
4827 set dummy $ac_prog; ac_word=$2
4828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4829 $as_echo_n "checking for $ac_word... " >&6; }
4830 if ${ac_cv_prog_YACC+:} false; then :
4831 $as_echo_n "(cached) " >&6
4832 else
4833 if test -n "$YACC"; then
4834 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4835 else
4836 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4837 for as_dir in $PATH
4839 IFS=$as_save_IFS
4840 test -z "$as_dir" && as_dir=.
4841 for ac_exec_ext in '' $ac_executable_extensions; do
4842 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4843 ac_cv_prog_YACC="$ac_prog"
4844 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4845 break 2
4847 done
4848 done
4849 IFS=$as_save_IFS
4853 YACC=$ac_cv_prog_YACC
4854 if test -n "$YACC"; then
4855 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
4856 $as_echo "$YACC" >&6; }
4857 else
4858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4859 $as_echo "no" >&6; }
4863 test -n "$YACC" && break
4864 done
4865 test -n "$YACC" || YACC="yacc"
4867 yacc=`$echo $YACC | awk '{print $1}'`
4868 yacc=`$which "$yacc"`
4869 if test ! -x "$yacc"; then
4870 as_fn_error $? "cannot find a valid 'yacc'/'bison' command." "$LINENO" 5
4872 yacc=$YACC
4875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where unix-like sort(1) lives" >&5
4876 $as_echo_n "checking where unix-like sort(1) lives... " >&6; }
4877 if test $target_os = mingw; then
4878 for d in /bin /usr/bin /mingw/bin /mingw/usr/bin
4880 if test -x $d/sort; then
4881 sort=$d/sort
4882 break
4884 done
4885 else
4886 sort=`$which sort`
4888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sort" >&5
4889 $as_echo "$sort" >&6; }
4890 $sort -n </dev/null
4891 if test $? != 0
4892 then
4893 echo
4894 echo "FATAL ERROR: $sort -n failed!"
4895 rm -rf conftest conftest.*
4896 exit 1
4900 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if echo uses -n or backslash-c to suppress newlines" >&5
4901 $as_echo_n "checking if echo uses -n or backslash-c to suppress newlines... " >&6; }
4902 if ( $echo "testing\c"; $echo 1,2,3 ) | grep c >/dev/null
4903 then
4904 if ( $echo -n testing; $echo 1,2,3 ) | sed s/-n/xn/ | grep xn >/dev/null
4905 then
4906 echo_n= echo_c=
4907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither?" >&5
4908 $as_echo "neither?" >&6; }
4909 else
4910 echo_n=-n echo_c=
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -n" >&5
4912 $as_echo " -n" >&6; }
4914 else
4915 echo_n= echo_c='\c'
4916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: backslash-c" >&5
4917 $as_echo "backslash-c" >&6; }
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4923 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4924 if ${ac_cv_path_GREP+:} false; then :
4925 $as_echo_n "(cached) " >&6
4926 else
4927 if test -z "$GREP"; then
4928 ac_path_GREP_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 grep ggrep; do
4936 for ac_exec_ext in '' $ac_executable_extensions; do
4937 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4938 as_fn_executable_p "$ac_path_GREP" || continue
4939 # Check for GNU ac_path_GREP and select it if it is found.
4940 # Check for GNU $ac_path_GREP
4941 case `"$ac_path_GREP" --version 2>&1` in
4942 *GNU*)
4943 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_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 'GREP' >> "conftest.nl"
4953 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "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_GREP_max-0}; then
4957 # Best one so far, save it but keep looking for a better one
4958 ac_cv_path_GREP="$ac_path_GREP"
4959 ac_path_GREP_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_GREP_found && break 3
4968 done
4969 done
4970 done
4971 IFS=$as_save_IFS
4972 if test -z "$ac_cv_path_GREP"; then
4973 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4975 else
4976 ac_cv_path_GREP=$GREP
4980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4981 $as_echo "$ac_cv_path_GREP" >&6; }
4982 GREP="$ac_cv_path_GREP"
4985 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4986 $as_echo_n "checking for egrep... " >&6; }
4987 if ${ac_cv_path_EGREP+:} false; then :
4988 $as_echo_n "(cached) " >&6
4989 else
4990 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4991 then ac_cv_path_EGREP="$GREP -E"
4992 else
4993 if test -z "$EGREP"; then
4994 ac_path_EGREP_found=false
4995 # Loop through the user's path and test for each of PROGNAME-LIST
4996 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4997 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4999 IFS=$as_save_IFS
5000 test -z "$as_dir" && as_dir=.
5001 for ac_prog in egrep; do
5002 for ac_exec_ext in '' $ac_executable_extensions; do
5003 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5004 as_fn_executable_p "$ac_path_EGREP" || continue
5005 # Check for GNU ac_path_EGREP and select it if it is found.
5006 # Check for GNU $ac_path_EGREP
5007 case `"$ac_path_EGREP" --version 2>&1` in
5008 *GNU*)
5009 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5011 ac_count=0
5012 $as_echo_n 0123456789 >"conftest.in"
5013 while :
5015 cat "conftest.in" "conftest.in" >"conftest.tmp"
5016 mv "conftest.tmp" "conftest.in"
5017 cp "conftest.in" "conftest.nl"
5018 $as_echo 'EGREP' >> "conftest.nl"
5019 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5020 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5021 as_fn_arith $ac_count + 1 && ac_count=$as_val
5022 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5023 # Best one so far, save it but keep looking for a better one
5024 ac_cv_path_EGREP="$ac_path_EGREP"
5025 ac_path_EGREP_max=$ac_count
5027 # 10*(2^10) chars as input seems more than enough
5028 test $ac_count -gt 10 && break
5029 done
5030 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5031 esac
5033 $ac_path_EGREP_found && break 3
5034 done
5035 done
5036 done
5037 IFS=$as_save_IFS
5038 if test -z "$ac_cv_path_EGREP"; then
5039 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5041 else
5042 ac_cv_path_EGREP=$EGREP
5047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5048 $as_echo "$ac_cv_path_EGREP" >&6; }
5049 EGREP="$ac_cv_path_EGREP"
5053 if test "$do_probes" = "check" -o "$do_probes" = "yes"
5054 then
5055 enable_probes=true
5056 for ac_prog in dtrace
5058 # Extract the first word of "$ac_prog", so it can be a program name with args.
5059 set dummy $ac_prog; ac_word=$2
5060 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5061 $as_echo_n "checking for $ac_word... " >&6; }
5062 if ${ac_cv_prog_DTRACE+:} false; then :
5063 $as_echo_n "(cached) " >&6
5064 else
5065 if test -n "$DTRACE"; then
5066 ac_cv_prog_DTRACE="$DTRACE" # Let the user override the test.
5067 else
5068 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5069 for as_dir in $PATH
5071 IFS=$as_save_IFS
5072 test -z "$as_dir" && as_dir=.
5073 for ac_exec_ext in '' $ac_executable_extensions; do
5074 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5075 ac_cv_prog_DTRACE="$ac_prog"
5076 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5077 break 2
5079 done
5080 done
5081 IFS=$as_save_IFS
5085 DTRACE=$ac_cv_prog_DTRACE
5086 if test -n "$DTRACE"; then
5087 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5
5088 $as_echo "$DTRACE" >&6; }
5089 else
5090 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5091 $as_echo "no" >&6; }
5095 test -n "$DTRACE" && break
5096 done
5098 if test -z "$DTRACE"
5099 then
5100 if test "$do_probes" = "yes"
5101 then
5102 as_fn_error $? "cannot enable static probes - no dtrace executable" "$LINENO" 5
5104 enable_probes=false
5106 ac_ext=c
5107 ac_cpp='$CPP $CPPFLAGS'
5108 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5109 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5110 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5112 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5113 # On Suns, sometimes $CPP names a directory.
5114 if test -n "$CPP" && test -d "$CPP"; then
5115 CPP=
5117 if test -z "$CPP"; then
5118 if ${ac_cv_prog_CPP+:} false; then :
5119 $as_echo_n "(cached) " >&6
5120 else
5121 # Double quotes because CPP needs to be expanded
5122 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5124 ac_preproc_ok=false
5125 for ac_c_preproc_warn_flag in '' yes
5127 # Use a header file that comes with gcc, so configuring glibc
5128 # with a fresh cross-compiler works.
5129 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5130 # <limits.h> exists even on freestanding compilers.
5131 # On the NeXT, cc -E runs the code through the compiler's parser,
5132 # not just through cpp. "Syntax error" is here to catch this case.
5133 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5134 /* end confdefs.h. */
5135 #ifdef __STDC__
5136 # include <limits.h>
5137 #else
5138 # include <assert.h>
5139 #endif
5140 Syntax error
5141 _ACEOF
5142 if ac_fn_c_try_cpp "$LINENO"; then :
5144 else
5145 # Broken: fails on valid input.
5146 continue
5148 rm -f conftest.err conftest.i conftest.$ac_ext
5150 # OK, works on sane cases. Now check whether nonexistent headers
5151 # can be detected and how.
5152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5153 /* end confdefs.h. */
5154 #include <ac_nonexistent.h>
5155 _ACEOF
5156 if ac_fn_c_try_cpp "$LINENO"; then :
5157 # Broken: success on invalid input.
5158 continue
5159 else
5160 # Passes both tests.
5161 ac_preproc_ok=:
5162 break
5164 rm -f conftest.err conftest.i conftest.$ac_ext
5166 done
5167 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5168 rm -f conftest.i conftest.err conftest.$ac_ext
5169 if $ac_preproc_ok; then :
5170 break
5173 done
5174 ac_cv_prog_CPP=$CPP
5177 CPP=$ac_cv_prog_CPP
5178 else
5179 ac_cv_prog_CPP=$CPP
5181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5182 $as_echo "$CPP" >&6; }
5183 ac_preproc_ok=false
5184 for ac_c_preproc_warn_flag in '' yes
5186 # Use a header file that comes with gcc, so configuring glibc
5187 # with a fresh cross-compiler works.
5188 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5189 # <limits.h> exists even on freestanding compilers.
5190 # On the NeXT, cc -E runs the code through the compiler's parser,
5191 # not just through cpp. "Syntax error" is here to catch this case.
5192 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5193 /* end confdefs.h. */
5194 #ifdef __STDC__
5195 # include <limits.h>
5196 #else
5197 # include <assert.h>
5198 #endif
5199 Syntax error
5200 _ACEOF
5201 if ac_fn_c_try_cpp "$LINENO"; then :
5203 else
5204 # Broken: fails on valid input.
5205 continue
5207 rm -f conftest.err conftest.i conftest.$ac_ext
5209 # OK, works on sane cases. Now check whether nonexistent headers
5210 # can be detected and how.
5211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5212 /* end confdefs.h. */
5213 #include <ac_nonexistent.h>
5214 _ACEOF
5215 if ac_fn_c_try_cpp "$LINENO"; then :
5216 # Broken: success on invalid input.
5217 continue
5218 else
5219 # Passes both tests.
5220 ac_preproc_ok=:
5221 break
5223 rm -f conftest.err conftest.i conftest.$ac_ext
5225 done
5226 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5227 rm -f conftest.i conftest.err conftest.$ac_ext
5228 if $ac_preproc_ok; then :
5230 else
5231 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5232 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5233 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5234 See \`config.log' for more details" "$LINENO" 5; }
5237 ac_ext=c
5238 ac_cpp='$CPP $CPPFLAGS'
5239 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5240 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5241 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5245 $as_echo_n "checking for ANSI C header files... " >&6; }
5246 if ${ac_cv_header_stdc+:} false; then :
5247 $as_echo_n "(cached) " >&6
5248 else
5249 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5250 /* end confdefs.h. */
5251 #include <stdlib.h>
5252 #include <stdarg.h>
5253 #include <string.h>
5254 #include <float.h>
5257 main ()
5261 return 0;
5263 _ACEOF
5264 if ac_fn_c_try_compile "$LINENO"; then :
5265 ac_cv_header_stdc=yes
5266 else
5267 ac_cv_header_stdc=no
5269 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5271 if test $ac_cv_header_stdc = yes; then
5272 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5273 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5274 /* end confdefs.h. */
5275 #include <string.h>
5277 _ACEOF
5278 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5279 $EGREP "memchr" >/dev/null 2>&1; then :
5281 else
5282 ac_cv_header_stdc=no
5284 rm -f conftest*
5288 if test $ac_cv_header_stdc = yes; then
5289 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5291 /* end confdefs.h. */
5292 #include <stdlib.h>
5294 _ACEOF
5295 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5296 $EGREP "free" >/dev/null 2>&1; then :
5298 else
5299 ac_cv_header_stdc=no
5301 rm -f conftest*
5305 if test $ac_cv_header_stdc = yes; then
5306 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5307 if test "$cross_compiling" = yes; then :
5309 else
5310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5311 /* end confdefs.h. */
5312 #include <ctype.h>
5313 #include <stdlib.h>
5314 #if ((' ' & 0x0FF) == 0x020)
5315 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5316 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5317 #else
5318 # define ISLOWER(c) \
5319 (('a' <= (c) && (c) <= 'i') \
5320 || ('j' <= (c) && (c) <= 'r') \
5321 || ('s' <= (c) && (c) <= 'z'))
5322 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5323 #endif
5325 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5327 main ()
5329 int i;
5330 for (i = 0; i < 256; i++)
5331 if (XOR (islower (i), ISLOWER (i))
5332 || toupper (i) != TOUPPER (i))
5333 return 2;
5334 return 0;
5336 _ACEOF
5337 if ac_fn_c_try_run "$LINENO"; then :
5339 else
5340 ac_cv_header_stdc=no
5342 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5343 conftest.$ac_objext conftest.beam conftest.$ac_ext
5348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5349 $as_echo "$ac_cv_header_stdc" >&6; }
5350 if test $ac_cv_header_stdc = yes; then
5352 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5356 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5357 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5358 inttypes.h stdint.h unistd.h
5359 do :
5360 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5361 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5363 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5364 cat >>confdefs.h <<_ACEOF
5365 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5366 _ACEOF
5370 done
5373 for ac_header in sys/sdt.h
5374 do :
5375 ac_fn_c_check_header_mongrel "$LINENO" "sys/sdt.h" "ac_cv_header_sys_sdt_h" "$ac_includes_default"
5376 if test "x$ac_cv_header_sys_sdt_h" = xyes; then :
5377 cat >>confdefs.h <<_ACEOF
5378 #define HAVE_SYS_SDT_H 1
5379 _ACEOF
5381 if $enable_probes = true
5382 then
5383 if test $target_os = kfreebsd
5384 then
5385 enable_probes=false
5386 elif test $target_os = freebsd
5387 then
5388 rm -f conftest.d conftest.h
5389 cat <<End-of-File >conftest.d
5390 provider eek {
5391 probe urk(int);
5393 End-of-File
5394 if dtrace -s conftest.d -h >/dev/null 2>&1
5395 then
5396 if test ! -f conftest.h
5397 then
5398 enable_probes=false
5399 if test "$do_probes" = "yes"
5400 then
5401 as_fn_error $? "cannot enable static probes - no .h from dtrace -h" "$LINENO" 5
5404 else
5405 enable_probes=false
5406 if test "$do_probes" = "yes"
5407 then
5408 as_fn_error $? "cannot enable static probes - dtrace failed" "$LINENO" 5
5414 else
5416 enable_probes=false
5417 if test "$do_probes" = "yes"
5418 then
5419 as_fn_error $? "cannot enable static probes - no SDT header" "$LINENO" 5
5424 done
5427 if test "$enable_probes" = "true"
5428 then
5430 $as_echo "#define HAVE_STATIC_PROBES 1" >>confdefs.h
5437 if test "x$do_discovery" != "xno"; then :
5439 # on Mac OS X, dns_sd.h
5441 # on Linux, aloha Avahi
5442 enable_avahi=true
5444 pkg_failed=no
5445 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for avahi" >&5
5446 $as_echo_n "checking for avahi... " >&6; }
5448 if test -n "$avahi_CFLAGS"; then
5449 pkg_cv_avahi_CFLAGS="$avahi_CFLAGS"
5450 elif test -n "$PKG_CONFIG"; then
5451 if test -n "$PKG_CONFIG" && \
5452 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"avahi-client\""; } >&5
5453 ($PKG_CONFIG --exists --print-errors "avahi-client") 2>&5
5454 ac_status=$?
5455 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5456 test $ac_status = 0; }; then
5457 pkg_cv_avahi_CFLAGS=`$PKG_CONFIG --cflags "avahi-client" 2>/dev/null`
5458 test "x$?" != "x0" && pkg_failed=yes
5459 else
5460 pkg_failed=yes
5462 else
5463 pkg_failed=untried
5465 if test -n "$avahi_LIBS"; then
5466 pkg_cv_avahi_LIBS="$avahi_LIBS"
5467 elif test -n "$PKG_CONFIG"; then
5468 if test -n "$PKG_CONFIG" && \
5469 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"avahi-client\""; } >&5
5470 ($PKG_CONFIG --exists --print-errors "avahi-client") 2>&5
5471 ac_status=$?
5472 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5473 test $ac_status = 0; }; then
5474 pkg_cv_avahi_LIBS=`$PKG_CONFIG --libs "avahi-client" 2>/dev/null`
5475 test "x$?" != "x0" && pkg_failed=yes
5476 else
5477 pkg_failed=yes
5479 else
5480 pkg_failed=untried
5485 if test $pkg_failed = yes; then
5486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5487 $as_echo "no" >&6; }
5489 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5490 _pkg_short_errors_supported=yes
5491 else
5492 _pkg_short_errors_supported=no
5494 if test $_pkg_short_errors_supported = yes; then
5495 avahi_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "avahi-client" 2>&1`
5496 else
5497 avahi_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "avahi-client" 2>&1`
5499 # Put the nasty error message in config.log where it belongs
5500 echo "$avahi_PKG_ERRORS" >&5
5502 enable_avahi=false
5503 elif test $pkg_failed = untried; then
5504 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5505 $as_echo "no" >&6; }
5506 enable_avahi=false
5507 else
5508 avahi_CFLAGS=$pkg_cv_avahi_CFLAGS
5509 avahi_LIBS=$pkg_cv_avahi_LIBS
5510 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5511 $as_echo "yes" >&6; }
5512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for avahi_client_new in -lavahi-client" >&5
5513 $as_echo_n "checking for avahi_client_new in -lavahi-client... " >&6; }
5514 if ${ac_cv_lib_avahi_client_avahi_client_new+:} false; then :
5515 $as_echo_n "(cached) " >&6
5516 else
5517 ac_check_lib_save_LIBS=$LIBS
5518 LIBS="-lavahi-client $LIBS"
5519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5520 /* end confdefs.h. */
5522 /* Override any GCC internal prototype to avoid an error.
5523 Use char because int might match the return type of a GCC
5524 builtin and then its argument prototype would still apply. */
5525 #ifdef __cplusplus
5526 extern "C"
5527 #endif
5528 char avahi_client_new ();
5530 main ()
5532 return avahi_client_new ();
5534 return 0;
5536 _ACEOF
5537 if ac_fn_c_try_link "$LINENO"; then :
5538 ac_cv_lib_avahi_client_avahi_client_new=yes
5539 else
5540 ac_cv_lib_avahi_client_avahi_client_new=no
5542 rm -f core conftest.err conftest.$ac_objext \
5543 conftest$ac_exeext conftest.$ac_ext
5544 LIBS=$ac_check_lib_save_LIBS
5546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avahi_client_avahi_client_new" >&5
5547 $as_echo "$ac_cv_lib_avahi_client_avahi_client_new" >&6; }
5548 if test "x$ac_cv_lib_avahi_client_avahi_client_new" = xyes; then :
5549 lib_for_avahi="-lavahi-common -lavahi-client"
5550 else
5551 enable_avahi=false
5556 for ac_header in avahi-client/publish.h
5557 do :
5558 ac_fn_c_check_header_mongrel "$LINENO" "avahi-client/publish.h" "ac_cv_header_avahi_client_publish_h" "$ac_includes_default"
5559 if test "x$ac_cv_header_avahi_client_publish_h" = xyes; then :
5560 cat >>confdefs.h <<_ACEOF
5561 #define HAVE_AVAHI_CLIENT_PUBLISH_H 1
5562 _ACEOF
5564 else
5565 enable_avahi=false
5568 done
5570 for ac_header in avahi-common/alternative.h
5571 do :
5572 ac_fn_c_check_header_mongrel "$LINENO" "avahi-common/alternative.h" "ac_cv_header_avahi_common_alternative_h" "$ac_includes_default"
5573 if test "x$ac_cv_header_avahi_common_alternative_h" = xyes; then :
5574 cat >>confdefs.h <<_ACEOF
5575 #define HAVE_AVAHI_COMMON_ALTERNATIVE_H 1
5576 _ACEOF
5578 else
5579 enable_avahi=false
5582 done
5585 if test "$enable_avahi" = "true"
5586 then
5590 $as_echo "#define HAVE_AVAHI 1" >>confdefs.h
5592 enable_discovery=true
5595 if test "$do_discovery" != "check" -a "$enable_discovery" != "true"
5596 then
5597 as_fn_error $? "cannot enable service discovery - no supported mechanisms" "$LINENO" 5
5599 if test "$enable_discovery" = "true"
5600 then
5602 $as_echo "#define HAVE_SERVICE_DISCOVERY 1" >>confdefs.h
5610 enable_systemd=false
5611 if test "x$do_systemd" != "xno"; then :
5613 enable_systemd=true
5616 if test -n "$SYSTEMD_SYSTEMUNITDIR"; then
5617 pkg_cv_SYSTEMD_SYSTEMUNITDIR="$SYSTEMD_SYSTEMUNITDIR"
5618 elif test -n "$PKG_CONFIG"; then
5619 if test -n "$PKG_CONFIG" && \
5620 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd\""; } >&5
5621 ($PKG_CONFIG --exists --print-errors "systemd") 2>&5
5622 ac_status=$?
5623 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5624 test $ac_status = 0; }; then
5625 pkg_cv_SYSTEMD_SYSTEMUNITDIR=`$PKG_CONFIG --variable="systemdsystemunitdir" "systemd" 2>/dev/null`
5626 test "x$?" != "x0" && pkg_failed=yes
5627 else
5628 pkg_failed=yes
5630 else
5631 pkg_failed=untried
5633 SYSTEMD_SYSTEMUNITDIR=$pkg_cv_SYSTEMD_SYSTEMUNITDIR
5635 if test "x$SYSTEMD_SYSTEMUNITDIR" = x""; then :
5636 enable_systemd=false
5637 else
5638 pcp_systemdunit_dir=$SYSTEMD_SYSTEMUNITDIR
5641 if test -z "$pcp_systemdunit_dir"
5642 then
5643 if test "$do_systemd" = "yes"
5644 then
5645 as_fn_error $? "cannot enable systemd support - no systemunitdir path" "$LINENO" 5
5647 enable_systemd=false
5654 . ./VERSION.pcp
5655 PACKAGE_VERSION=${PACKAGE_MAJOR}.${PACKAGE_MINOR}.${PACKAGE_REVISION}
5662 if test -z "$PACKAGE_BUILD_DATE" ; then
5663 PACKAGE_BUILD_DATE=`date +%Y-%m-%d`
5667 if test -z "$PACKAGE_DISTRIBUTION" ; then
5668 PACKAGE_DISTRIBUTION=$target_distro
5672 pm_version_current=`awk </dev/null "BEGIN { print (${PACKAGE_MAJOR}*256+${PACKAGE_MINOR})*256+${PACKAGE_REVISION} }"`
5675 ac_config_headers="$ac_config_headers src/include/pcp/config.h src/include/pcp/configsz.h"
5677 ac_config_files="$ac_config_files src/include/pcp/platform_defs.h src/include/pcp/platformsz.h"
5679 cat >confcache <<\_ACEOF
5680 # This file is a shell script that caches the results of configure
5681 # tests run on this system so they can be shared between configure
5682 # scripts and configure runs, see configure's option --config-cache.
5683 # It is not useful on other systems. If it contains results you don't
5684 # want to keep, you may remove or edit it.
5686 # config.status only pays attention to the cache file if you give it
5687 # the --recheck option to rerun configure.
5689 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5690 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5691 # following values.
5693 _ACEOF
5695 # The following way of writing the cache mishandles newlines in values,
5696 # but we know of no workaround that is simple, portable, and efficient.
5697 # So, we kill variables containing newlines.
5698 # Ultrix sh set writes to stderr and can't be redirected directly,
5699 # and sets the high bit in the cache file unless we assign to the vars.
5701 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5702 eval ac_val=\$$ac_var
5703 case $ac_val in #(
5704 *${as_nl}*)
5705 case $ac_var in #(
5706 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5707 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5708 esac
5709 case $ac_var in #(
5710 _ | IFS | as_nl) ;; #(
5711 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5712 *) { eval $ac_var=; unset $ac_var;} ;;
5713 esac ;;
5714 esac
5715 done
5717 (set) 2>&1 |
5718 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5719 *${as_nl}ac_space=\ *)
5720 # `set' does not quote correctly, so add quotes: double-quote
5721 # substitution turns \\\\ into \\, and sed turns \\ into \.
5722 sed -n \
5723 "s/'/'\\\\''/g;
5724 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5725 ;; #(
5727 # `set' quotes correctly as required by POSIX, so do not add quotes.
5728 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5730 esac |
5731 sort
5733 sed '
5734 /^ac_cv_env_/b end
5735 t clear
5736 :clear
5737 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5738 t end
5739 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5740 :end' >>confcache
5741 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5742 if test -w "$cache_file"; then
5743 if test "x$cache_file" != "x/dev/null"; then
5744 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5745 $as_echo "$as_me: updating cache $cache_file" >&6;}
5746 if test ! -f "$cache_file" || test -h "$cache_file"; then
5747 cat confcache >"$cache_file"
5748 else
5749 case $cache_file in #(
5750 */* | ?:*)
5751 mv -f confcache "$cache_file"$$ &&
5752 mv -f "$cache_file"$$ "$cache_file" ;; #(
5754 mv -f confcache "$cache_file" ;;
5755 esac
5758 else
5759 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5760 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5763 rm -f confcache
5765 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5766 # Let make expand exec_prefix.
5767 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5769 DEFS=-DHAVE_CONFIG_H
5771 ac_libobjs=
5772 ac_ltlibobjs=
5774 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5775 # 1. Remove the extension, and $U if already installed.
5776 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5777 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5778 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5779 # will be set to the directory where LIBOBJS objects are built.
5780 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5781 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
5782 done
5783 LIBOBJS=$ac_libobjs
5785 LTLIBOBJS=$ac_ltlibobjs
5789 : "${CONFIG_STATUS=./config.status}"
5790 ac_write_fail=0
5791 ac_clean_files_save=$ac_clean_files
5792 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5793 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5794 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5795 as_write_fail=0
5796 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5797 #! $SHELL
5798 # Generated by $as_me.
5799 # Run this file to recreate the current configuration.
5800 # Compiler output produced by configure, useful for debugging
5801 # configure, is in config.log if it exists.
5803 debug=false
5804 ac_cs_recheck=false
5805 ac_cs_silent=false
5807 SHELL=\${CONFIG_SHELL-$SHELL}
5808 export SHELL
5809 _ASEOF
5810 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5811 ## -------------------- ##
5812 ## M4sh Initialization. ##
5813 ## -------------------- ##
5815 # Be more Bourne compatible
5816 DUALCASE=1; export DUALCASE # for MKS sh
5817 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
5818 emulate sh
5819 NULLCMD=:
5820 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5821 # is contrary to our usage. Disable this feature.
5822 alias -g '${1+"$@"}'='"$@"'
5823 setopt NO_GLOB_SUBST
5824 else
5825 case `(set -o) 2>/dev/null` in #(
5826 *posix*) :
5827 set -o posix ;; #(
5828 *) :
5830 esac
5834 as_nl='
5836 export as_nl
5837 # Printing a long string crashes Solaris 7 /usr/bin/printf.
5838 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5839 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5840 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5841 # Prefer a ksh shell builtin over an external printf program on Solaris,
5842 # but without wasting forks for bash or zsh.
5843 if test -z "$BASH_VERSION$ZSH_VERSION" \
5844 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5845 as_echo='print -r --'
5846 as_echo_n='print -rn --'
5847 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5848 as_echo='printf %s\n'
5849 as_echo_n='printf %s'
5850 else
5851 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5852 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5853 as_echo_n='/usr/ucb/echo -n'
5854 else
5855 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5856 as_echo_n_body='eval
5857 arg=$1;
5858 case $arg in #(
5859 *"$as_nl"*)
5860 expr "X$arg" : "X\\(.*\\)$as_nl";
5861 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5862 esac;
5863 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5865 export as_echo_n_body
5866 as_echo_n='sh -c $as_echo_n_body as_echo'
5868 export as_echo_body
5869 as_echo='sh -c $as_echo_body as_echo'
5872 # The user is always right.
5873 if test "${PATH_SEPARATOR+set}" != set; then
5874 PATH_SEPARATOR=:
5875 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5876 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5877 PATH_SEPARATOR=';'
5882 # IFS
5883 # We need space, tab and new line, in precisely that order. Quoting is
5884 # there to prevent editors from complaining about space-tab.
5885 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
5886 # splitting by setting IFS to empty value.)
5887 IFS=" "" $as_nl"
5889 # Find who we are. Look in the path if we contain no directory separator.
5890 as_myself=
5891 case $0 in #((
5892 *[\\/]* ) as_myself=$0 ;;
5893 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5894 for as_dir in $PATH
5896 IFS=$as_save_IFS
5897 test -z "$as_dir" && as_dir=.
5898 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5899 done
5900 IFS=$as_save_IFS
5903 esac
5904 # We did not find ourselves, most probably we were run as `sh COMMAND'
5905 # in which case we are not to be found in the path.
5906 if test "x$as_myself" = x; then
5907 as_myself=$0
5909 if test ! -f "$as_myself"; then
5910 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5911 exit 1
5914 # Unset variables that we do not need and which cause bugs (e.g. in
5915 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
5916 # suppresses any "Segmentation fault" message there. '((' could
5917 # trigger a bug in pdksh 5.2.14.
5918 for as_var in BASH_ENV ENV MAIL MAILPATH
5919 do eval test x\${$as_var+set} = xset \
5920 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5921 done
5922 PS1='$ '
5923 PS2='> '
5924 PS4='+ '
5926 # NLS nuisances.
5927 LC_ALL=C
5928 export LC_ALL
5929 LANGUAGE=C
5930 export LANGUAGE
5932 # CDPATH.
5933 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5936 # as_fn_error STATUS ERROR [LINENO LOG_FD]
5937 # ----------------------------------------
5938 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5939 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5940 # script with STATUS, using 1 if that was 0.
5941 as_fn_error ()
5943 as_status=$1; test $as_status -eq 0 && as_status=1
5944 if test "$4"; then
5945 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5946 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
5948 $as_echo "$as_me: error: $2" >&2
5949 as_fn_exit $as_status
5950 } # as_fn_error
5953 # as_fn_set_status STATUS
5954 # -----------------------
5955 # Set $? to STATUS, without forking.
5956 as_fn_set_status ()
5958 return $1
5959 } # as_fn_set_status
5961 # as_fn_exit STATUS
5962 # -----------------
5963 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5964 as_fn_exit ()
5966 set +e
5967 as_fn_set_status $1
5968 exit $1
5969 } # as_fn_exit
5971 # as_fn_unset VAR
5972 # ---------------
5973 # Portably unset VAR.
5974 as_fn_unset ()
5976 { eval $1=; unset $1;}
5978 as_unset=as_fn_unset
5979 # as_fn_append VAR VALUE
5980 # ----------------------
5981 # Append the text in VALUE to the end of the definition contained in VAR. Take
5982 # advantage of any shell optimizations that allow amortized linear growth over
5983 # repeated appends, instead of the typical quadratic growth present in naive
5984 # implementations.
5985 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
5986 eval 'as_fn_append ()
5988 eval $1+=\$2
5990 else
5991 as_fn_append ()
5993 eval $1=\$$1\$2
5995 fi # as_fn_append
5997 # as_fn_arith ARG...
5998 # ------------------
5999 # Perform arithmetic evaluation on the ARGs, and store the result in the
6000 # global $as_val. Take advantage of shells that can avoid forks. The arguments
6001 # must be portable across $(()) and expr.
6002 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
6003 eval 'as_fn_arith ()
6005 as_val=$(( $* ))
6007 else
6008 as_fn_arith ()
6010 as_val=`expr "$@" || test $? -eq 1`
6012 fi # as_fn_arith
6015 if expr a : '\(a\)' >/dev/null 2>&1 &&
6016 test "X`expr 00001 : '.*\(...\)'`" = X001; then
6017 as_expr=expr
6018 else
6019 as_expr=false
6022 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6023 as_basename=basename
6024 else
6025 as_basename=false
6028 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6029 as_dirname=dirname
6030 else
6031 as_dirname=false
6034 as_me=`$as_basename -- "$0" ||
6035 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6036 X"$0" : 'X\(//\)$' \| \
6037 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6038 $as_echo X/"$0" |
6039 sed '/^.*\/\([^/][^/]*\)\/*$/{
6040 s//\1/
6043 /^X\/\(\/\/\)$/{
6044 s//\1/
6047 /^X\/\(\/\).*/{
6048 s//\1/
6051 s/.*/./; q'`
6053 # Avoid depending upon Character Ranges.
6054 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6055 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6056 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6057 as_cr_digits='0123456789'
6058 as_cr_alnum=$as_cr_Letters$as_cr_digits
6060 ECHO_C= ECHO_N= ECHO_T=
6061 case `echo -n x` in #(((((
6062 -n*)
6063 case `echo 'xy\c'` in
6064 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
6065 xy) ECHO_C='\c';;
6066 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
6067 ECHO_T=' ';;
6068 esac;;
6070 ECHO_N='-n';;
6071 esac
6073 rm -f conf$$ conf$$.exe conf$$.file
6074 if test -d conf$$.dir; then
6075 rm -f conf$$.dir/conf$$.file
6076 else
6077 rm -f conf$$.dir
6078 mkdir conf$$.dir 2>/dev/null
6080 if (echo >conf$$.file) 2>/dev/null; then
6081 if ln -s conf$$.file conf$$ 2>/dev/null; then
6082 as_ln_s='ln -s'
6083 # ... but there are two gotchas:
6084 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6085 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6086 # In both cases, we have to default to `cp -pR'.
6087 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6088 as_ln_s='cp -pR'
6089 elif ln conf$$.file conf$$ 2>/dev/null; then
6090 as_ln_s=ln
6091 else
6092 as_ln_s='cp -pR'
6094 else
6095 as_ln_s='cp -pR'
6097 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6098 rmdir conf$$.dir 2>/dev/null
6101 # as_fn_mkdir_p
6102 # -------------
6103 # Create "$as_dir" as a directory, including parents if necessary.
6104 as_fn_mkdir_p ()
6107 case $as_dir in #(
6108 -*) as_dir=./$as_dir;;
6109 esac
6110 test -d "$as_dir" || eval $as_mkdir_p || {
6111 as_dirs=
6112 while :; do
6113 case $as_dir in #(
6114 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6115 *) as_qdir=$as_dir;;
6116 esac
6117 as_dirs="'$as_qdir' $as_dirs"
6118 as_dir=`$as_dirname -- "$as_dir" ||
6119 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6120 X"$as_dir" : 'X\(//\)[^/]' \| \
6121 X"$as_dir" : 'X\(//\)$' \| \
6122 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6123 $as_echo X"$as_dir" |
6124 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6125 s//\1/
6128 /^X\(\/\/\)[^/].*/{
6129 s//\1/
6132 /^X\(\/\/\)$/{
6133 s//\1/
6136 /^X\(\/\).*/{
6137 s//\1/
6140 s/.*/./; q'`
6141 test -d "$as_dir" && break
6142 done
6143 test -z "$as_dirs" || eval "mkdir $as_dirs"
6144 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
6147 } # as_fn_mkdir_p
6148 if mkdir -p . 2>/dev/null; then
6149 as_mkdir_p='mkdir -p "$as_dir"'
6150 else
6151 test -d ./-p && rmdir ./-p
6152 as_mkdir_p=false
6156 # as_fn_executable_p FILE
6157 # -----------------------
6158 # Test if FILE is an executable regular file.
6159 as_fn_executable_p ()
6161 test -f "$1" && test -x "$1"
6162 } # as_fn_executable_p
6163 as_test_x='test -x'
6164 as_executable_p=as_fn_executable_p
6166 # Sed expression to map a string onto a valid CPP name.
6167 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6169 # Sed expression to map a string onto a valid variable name.
6170 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6173 exec 6>&1
6174 ## ----------------------------------- ##
6175 ## Main body of $CONFIG_STATUS script. ##
6176 ## ----------------------------------- ##
6177 _ASEOF
6178 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
6180 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6181 # Save the log message, to keep $0 and so on meaningful, and to
6182 # report actual input values of CONFIG_FILES etc. instead of their
6183 # values after options handling.
6184 ac_log="
6185 This file was extended by $as_me, which was
6186 generated by GNU Autoconf 2.69. Invocation command line was
6188 CONFIG_FILES = $CONFIG_FILES
6189 CONFIG_HEADERS = $CONFIG_HEADERS
6190 CONFIG_LINKS = $CONFIG_LINKS
6191 CONFIG_COMMANDS = $CONFIG_COMMANDS
6192 $ $0 $@
6194 on `(hostname || uname -n) 2>/dev/null | sed 1q`
6197 _ACEOF
6199 case $ac_config_files in *"
6200 "*) set x $ac_config_files; shift; ac_config_files=$*;;
6201 esac
6203 case $ac_config_headers in *"
6204 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
6205 esac
6208 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6209 # Files that config.status was made for.
6210 config_files="$ac_config_files"
6211 config_headers="$ac_config_headers"
6213 _ACEOF
6215 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6216 ac_cs_usage="\
6217 \`$as_me' instantiates files and other configuration actions
6218 from templates according to the current configuration. Unless the files
6219 and actions are specified as TAGs, all are instantiated by default.
6221 Usage: $0 [OPTION]... [TAG]...
6223 -h, --help print this help, then exit
6224 -V, --version print version number and configuration settings, then exit
6225 --config print configuration, then exit
6226 -q, --quiet, --silent
6227 do not print progress messages
6228 -d, --debug don't remove temporary files
6229 --recheck update $as_me by reconfiguring in the same conditions
6230 --file=FILE[:TEMPLATE]
6231 instantiate the configuration file FILE
6232 --header=FILE[:TEMPLATE]
6233 instantiate the configuration header FILE
6235 Configuration files:
6236 $config_files
6238 Configuration headers:
6239 $config_headers
6241 Report bugs to the package provider."
6243 _ACEOF
6244 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6245 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
6246 ac_cs_version="\\
6247 config.status
6248 configured by $0, generated by GNU Autoconf 2.69,
6249 with options \\"\$ac_cs_config\\"
6251 Copyright (C) 2012 Free Software Foundation, Inc.
6252 This config.status script is free software; the Free Software Foundation
6253 gives unlimited permission to copy, distribute and modify it."
6255 ac_pwd='$ac_pwd'
6256 srcdir='$srcdir'
6257 test -n "\$AWK" || AWK=awk
6258 _ACEOF
6260 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6261 # The default lists apply if the user does not specify any file.
6262 ac_need_defaults=:
6263 while test $# != 0
6265 case $1 in
6266 --*=?*)
6267 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6268 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6269 ac_shift=:
6271 --*=)
6272 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6273 ac_optarg=
6274 ac_shift=:
6277 ac_option=$1
6278 ac_optarg=$2
6279 ac_shift=shift
6281 esac
6283 case $ac_option in
6284 # Handling of the options.
6285 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6286 ac_cs_recheck=: ;;
6287 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6288 $as_echo "$ac_cs_version"; exit ;;
6289 --config | --confi | --conf | --con | --co | --c )
6290 $as_echo "$ac_cs_config"; exit ;;
6291 --debug | --debu | --deb | --de | --d | -d )
6292 debug=: ;;
6293 --file | --fil | --fi | --f )
6294 $ac_shift
6295 case $ac_optarg in
6296 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6297 '') as_fn_error $? "missing file argument" ;;
6298 esac
6299 as_fn_append CONFIG_FILES " '$ac_optarg'"
6300 ac_need_defaults=false;;
6301 --header | --heade | --head | --hea )
6302 $ac_shift
6303 case $ac_optarg in
6304 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6305 esac
6306 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
6307 ac_need_defaults=false;;
6308 --he | --h)
6309 # Conflict between --help and --header
6310 as_fn_error $? "ambiguous option: \`$1'
6311 Try \`$0 --help' for more information.";;
6312 --help | --hel | -h )
6313 $as_echo "$ac_cs_usage"; exit ;;
6314 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6315 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6316 ac_cs_silent=: ;;
6318 # This is an error.
6319 -*) as_fn_error $? "unrecognized option: \`$1'
6320 Try \`$0 --help' for more information." ;;
6322 *) as_fn_append ac_config_targets " $1"
6323 ac_need_defaults=false ;;
6325 esac
6326 shift
6327 done
6329 ac_configure_extra_args=
6331 if $ac_cs_silent; then
6332 exec 6>/dev/null
6333 ac_configure_extra_args="$ac_configure_extra_args --silent"
6336 _ACEOF
6337 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6338 if \$ac_cs_recheck; then
6339 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6340 shift
6341 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6342 CONFIG_SHELL='$SHELL'
6343 export CONFIG_SHELL
6344 exec "\$@"
6347 _ACEOF
6348 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6349 exec 5>>config.log
6351 echo
6352 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6353 ## Running $as_me. ##
6354 _ASBOX
6355 $as_echo "$ac_log"
6356 } >&5
6358 _ACEOF
6359 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6360 _ACEOF
6362 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6364 # Handling of arguments.
6365 for ac_config_target in $ac_config_targets
6367 case $ac_config_target in
6368 "src/include/pcp/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pcp/config.h" ;;
6369 "src/include/pcp/configsz.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pcp/configsz.h" ;;
6370 "src/include/pcp/platform_defs.h") CONFIG_FILES="$CONFIG_FILES src/include/pcp/platform_defs.h" ;;
6371 "src/include/pcp/platformsz.h") CONFIG_FILES="$CONFIG_FILES src/include/pcp/platformsz.h" ;;
6373 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
6374 esac
6375 done
6378 # If the user did not use the arguments to specify the items to instantiate,
6379 # then the envvar interface is used. Set only those that are not.
6380 # We use the long form for the default assignment because of an extremely
6381 # bizarre bug on SunOS 4.1.3.
6382 if $ac_need_defaults; then
6383 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6384 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6387 # Have a temporary directory for convenience. Make it in the build tree
6388 # simply because there is no reason against having it here, and in addition,
6389 # creating and moving files from /tmp can sometimes cause problems.
6390 # Hook for its removal unless debugging.
6391 # Note that there is a small window in which the directory will not be cleaned:
6392 # after its creation but before its name has been assigned to `$tmp'.
6393 $debug ||
6395 tmp= ac_tmp=
6396 trap 'exit_status=$?
6397 : "${ac_tmp:=$tmp}"
6398 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
6400 trap 'as_fn_exit 1' 1 2 13 15
6402 # Create a (secure) tmp directory for tmp files.
6405 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6406 test -d "$tmp"
6407 } ||
6409 tmp=./conf$$-$RANDOM
6410 (umask 077 && mkdir "$tmp")
6411 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
6412 ac_tmp=$tmp
6414 # Set up the scripts for CONFIG_FILES section.
6415 # No need to generate them if there are no CONFIG_FILES.
6416 # This happens for instance with `./config.status config.h'.
6417 if test -n "$CONFIG_FILES"; then
6420 ac_cr=`echo X | tr X '\015'`
6421 # On cygwin, bash can eat \r inside `` if the user requested igncr.
6422 # But we know of no other shell where ac_cr would be empty at this
6423 # point, so we can use a bashism as a fallback.
6424 if test "x$ac_cr" = x; then
6425 eval ac_cr=\$\'\\r\'
6427 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6428 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6429 ac_cs_awk_cr='\\r'
6430 else
6431 ac_cs_awk_cr=$ac_cr
6434 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
6435 _ACEOF
6439 echo "cat >conf$$subs.awk <<_ACEOF" &&
6440 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6441 echo "_ACEOF"
6442 } >conf$$subs.sh ||
6443 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6444 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
6445 ac_delim='%!_!# '
6446 for ac_last_try in false false false false false :; do
6447 . ./conf$$subs.sh ||
6448 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6450 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6451 if test $ac_delim_n = $ac_delim_num; then
6452 break
6453 elif $ac_last_try; then
6454 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6455 else
6456 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6458 done
6459 rm -f conf$$subs.sh
6461 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6462 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
6463 _ACEOF
6464 sed -n '
6466 s/^/S["/; s/!.*/"]=/
6469 s/^[^!]*!//
6470 :repl
6471 t repl
6472 s/'"$ac_delim"'$//
6473 t delim
6476 s/\(.\{148\}\)..*/\1/
6477 t more1
6478 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6481 b repl
6482 :more1
6483 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6486 s/.\{148\}//
6487 t nl
6488 :delim
6490 s/\(.\{148\}\)..*/\1/
6491 t more2
6492 s/["\\]/\\&/g; s/^/"/; s/$/"/
6495 :more2
6496 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6499 s/.\{148\}//
6500 t delim
6501 ' <conf$$subs.awk | sed '
6502 /^[^""]/{
6504 s/\n//
6506 ' >>$CONFIG_STATUS || ac_write_fail=1
6507 rm -f conf$$subs.awk
6508 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6509 _ACAWK
6510 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
6511 for (key in S) S_is_set[key] = 1
6512 FS = "\a"
6516 line = $ 0
6517 nfields = split(line, field, "@")
6518 substed = 0
6519 len = length(field[1])
6520 for (i = 2; i < nfields; i++) {
6521 key = field[i]
6522 keylen = length(key)
6523 if (S_is_set[key]) {
6524 value = S[key]
6525 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6526 len += length(value) + length(field[++i])
6527 substed = 1
6528 } else
6529 len += 1 + keylen
6532 print line
6535 _ACAWK
6536 _ACEOF
6537 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6538 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6539 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6540 else
6542 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
6543 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
6544 _ACEOF
6546 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
6547 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
6548 # trailing colons and then remove the whole line if VPATH becomes empty
6549 # (actually we leave an empty line to preserve line numbers).
6550 if test "x$srcdir" = x.; then
6551 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
6553 s///
6554 s/^/:/
6555 s/[ ]*$/:/
6556 s/:\$(srcdir):/:/g
6557 s/:\${srcdir}:/:/g
6558 s/:@srcdir@:/:/g
6559 s/^:*//
6560 s/:*$//
6562 s/\(=[ ]*\).*/\1/
6564 s/\n//
6565 s/^[^=]*=[ ]*$//
6569 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6570 fi # test -n "$CONFIG_FILES"
6572 # Set up the scripts for CONFIG_HEADERS section.
6573 # No need to generate them if there are no CONFIG_HEADERS.
6574 # This happens for instance with `./config.status Makefile'.
6575 if test -n "$CONFIG_HEADERS"; then
6576 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
6577 BEGIN {
6578 _ACEOF
6580 # Transform confdefs.h into an awk script `defines.awk', embedded as
6581 # here-document in config.status, that substitutes the proper values into
6582 # config.h.in to produce config.h.
6584 # Create a delimiter string that does not exist in confdefs.h, to ease
6585 # handling of long lines.
6586 ac_delim='%!_!# '
6587 for ac_last_try in false false :; do
6588 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
6589 if test -z "$ac_tt"; then
6590 break
6591 elif $ac_last_try; then
6592 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
6593 else
6594 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6596 done
6598 # For the awk script, D is an array of macro values keyed by name,
6599 # likewise P contains macro parameters if any. Preserve backslash
6600 # newline sequences.
6602 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6603 sed -n '
6604 s/.\{148\}/&'"$ac_delim"'/g
6605 t rset
6606 :rset
6607 s/^[ ]*#[ ]*define[ ][ ]*/ /
6608 t def
6610 :def
6611 s/\\$//
6612 t bsnl
6613 s/["\\]/\\&/g
6614 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6615 D["\1"]=" \3"/p
6616 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
6618 :bsnl
6619 s/["\\]/\\&/g
6620 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6621 D["\1"]=" \3\\\\\\n"\\/p
6622 t cont
6623 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6624 t cont
6626 :cont
6628 s/.\{148\}/&'"$ac_delim"'/g
6629 t clear
6630 :clear
6631 s/\\$//
6632 t bsnlc
6633 s/["\\]/\\&/g; s/^/"/; s/$/"/p
6635 :bsnlc
6636 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6637 b cont
6638 ' <confdefs.h | sed '
6639 s/'"$ac_delim"'/"\\\
6640 "/g' >>$CONFIG_STATUS || ac_write_fail=1
6642 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6643 for (key in D) D_is_set[key] = 1
6644 FS = "\a"
6646 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6647 line = \$ 0
6648 split(line, arg, " ")
6649 if (arg[1] == "#") {
6650 defundef = arg[2]
6651 mac1 = arg[3]
6652 } else {
6653 defundef = substr(arg[1], 2)
6654 mac1 = arg[2]
6656 split(mac1, mac2, "(") #)
6657 macro = mac2[1]
6658 prefix = substr(line, 1, index(line, defundef) - 1)
6659 if (D_is_set[macro]) {
6660 # Preserve the white space surrounding the "#".
6661 print prefix "define", macro P[macro] D[macro]
6662 next
6663 } else {
6664 # Replace #undef with comments. This is necessary, for example,
6665 # in the case of _POSIX_SOURCE, which is predefined and required
6666 # on some systems where configure will not decide to define it.
6667 if (defundef == "undef") {
6668 print "/*", prefix defundef, macro, "*/"
6669 next
6673 { print }
6674 _ACAWK
6675 _ACEOF
6676 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6677 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
6678 fi # test -n "$CONFIG_HEADERS"
6681 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
6682 shift
6683 for ac_tag
6685 case $ac_tag in
6686 :[FHLC]) ac_mode=$ac_tag; continue;;
6687 esac
6688 case $ac_mode$ac_tag in
6689 :[FHL]*:*);;
6690 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
6691 :[FH]-) ac_tag=-:-;;
6692 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6693 esac
6694 ac_save_IFS=$IFS
6695 IFS=:
6696 set x $ac_tag
6697 IFS=$ac_save_IFS
6698 shift
6699 ac_file=$1
6700 shift
6702 case $ac_mode in
6703 :L) ac_source=$1;;
6704 :[FH])
6705 ac_file_inputs=
6706 for ac_f
6708 case $ac_f in
6709 -) ac_f="$ac_tmp/stdin";;
6710 *) # Look for the file first in the build tree, then in the source tree
6711 # (if the path is not absolute). The absolute path cannot be DOS-style,
6712 # because $ac_f cannot contain `:'.
6713 test -f "$ac_f" ||
6714 case $ac_f in
6715 [\\/$]*) false;;
6716 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6717 esac ||
6718 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6719 esac
6720 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6721 as_fn_append ac_file_inputs " '$ac_f'"
6722 done
6724 # Let's still pretend it is `configure' which instantiates (i.e., don't
6725 # use $as_me), people would be surprised to read:
6726 # /* config.h. Generated by config.status. */
6727 configure_input='Generated from '`
6728 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6729 `' by configure.'
6730 if test x"$ac_file" != x-; then
6731 configure_input="$ac_file. $configure_input"
6732 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6733 $as_echo "$as_me: creating $ac_file" >&6;}
6735 # Neutralize special characters interpreted by sed in replacement strings.
6736 case $configure_input in #(
6737 *\&* | *\|* | *\\* )
6738 ac_sed_conf_input=`$as_echo "$configure_input" |
6739 sed 's/[\\\\&|]/\\\\&/g'`;; #(
6740 *) ac_sed_conf_input=$configure_input;;
6741 esac
6743 case $ac_tag in
6744 *:-:* | *:-) cat >"$ac_tmp/stdin" \
6745 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
6746 esac
6748 esac
6750 ac_dir=`$as_dirname -- "$ac_file" ||
6751 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6752 X"$ac_file" : 'X\(//\)[^/]' \| \
6753 X"$ac_file" : 'X\(//\)$' \| \
6754 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6755 $as_echo X"$ac_file" |
6756 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6757 s//\1/
6760 /^X\(\/\/\)[^/].*/{
6761 s//\1/
6764 /^X\(\/\/\)$/{
6765 s//\1/
6768 /^X\(\/\).*/{
6769 s//\1/
6772 s/.*/./; q'`
6773 as_dir="$ac_dir"; as_fn_mkdir_p
6774 ac_builddir=.
6776 case "$ac_dir" in
6777 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6779 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6780 # A ".." for each directory in $ac_dir_suffix.
6781 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6782 case $ac_top_builddir_sub in
6783 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6784 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6785 esac ;;
6786 esac
6787 ac_abs_top_builddir=$ac_pwd
6788 ac_abs_builddir=$ac_pwd$ac_dir_suffix
6789 # for backward compatibility:
6790 ac_top_builddir=$ac_top_build_prefix
6792 case $srcdir in
6793 .) # We are building in place.
6794 ac_srcdir=.
6795 ac_top_srcdir=$ac_top_builddir_sub
6796 ac_abs_top_srcdir=$ac_pwd ;;
6797 [\\/]* | ?:[\\/]* ) # Absolute name.
6798 ac_srcdir=$srcdir$ac_dir_suffix;
6799 ac_top_srcdir=$srcdir
6800 ac_abs_top_srcdir=$srcdir ;;
6801 *) # Relative name.
6802 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6803 ac_top_srcdir=$ac_top_build_prefix$srcdir
6804 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6805 esac
6806 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6809 case $ac_mode in
6812 # CONFIG_FILE
6815 _ACEOF
6817 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6818 # If the template does not know about datarootdir, expand it.
6819 # FIXME: This hack should be removed a few years after 2.60.
6820 ac_datarootdir_hack=; ac_datarootdir_seen=
6821 ac_sed_dataroot='
6822 /datarootdir/ {
6826 /@datadir@/p
6827 /@docdir@/p
6828 /@infodir@/p
6829 /@localedir@/p
6830 /@mandir@/p'
6831 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6832 *datarootdir*) ac_datarootdir_seen=yes;;
6833 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6834 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6835 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6836 _ACEOF
6837 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6838 ac_datarootdir_hack='
6839 s&@datadir@&$datadir&g
6840 s&@docdir@&$docdir&g
6841 s&@infodir@&$infodir&g
6842 s&@localedir@&$localedir&g
6843 s&@mandir@&$mandir&g
6844 s&\\\${datarootdir}&$datarootdir&g' ;;
6845 esac
6846 _ACEOF
6848 # Neutralize VPATH when `$srcdir' = `.'.
6849 # Shell code in configure.ac might set extrasub.
6850 # FIXME: do we really want to maintain this feature?
6851 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6852 ac_sed_extra="$ac_vpsub
6853 $extrasub
6854 _ACEOF
6855 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6857 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6858 s|@configure_input@|$ac_sed_conf_input|;t t
6859 s&@top_builddir@&$ac_top_builddir_sub&;t t
6860 s&@top_build_prefix@&$ac_top_build_prefix&;t t
6861 s&@srcdir@&$ac_srcdir&;t t
6862 s&@abs_srcdir@&$ac_abs_srcdir&;t t
6863 s&@top_srcdir@&$ac_top_srcdir&;t t
6864 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6865 s&@builddir@&$ac_builddir&;t t
6866 s&@abs_builddir@&$ac_abs_builddir&;t t
6867 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6868 $ac_datarootdir_hack
6870 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
6871 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6873 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6874 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
6875 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
6876 "$ac_tmp/out"`; test -z "$ac_out"; } &&
6877 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6878 which seems to be undefined. Please make sure it is defined" >&5
6879 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6880 which seems to be undefined. Please make sure it is defined" >&2;}
6882 rm -f "$ac_tmp/stdin"
6883 case $ac_file in
6884 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
6885 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
6886 esac \
6887 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6891 # CONFIG_HEADER
6893 if test x"$ac_file" != x-; then
6895 $as_echo "/* $configure_input */" \
6896 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
6897 } >"$ac_tmp/config.h" \
6898 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6899 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
6900 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
6901 $as_echo "$as_me: $ac_file is unchanged" >&6;}
6902 else
6903 rm -f "$ac_file"
6904 mv "$ac_tmp/config.h" "$ac_file" \
6905 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6907 else
6908 $as_echo "/* $configure_input */" \
6909 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
6910 || as_fn_error $? "could not create -" "$LINENO" 5
6915 esac
6917 done # for ac_tag
6920 as_fn_exit 0
6921 _ACEOF
6922 ac_clean_files=$ac_clean_files_save
6924 test $ac_write_fail = 0 ||
6925 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
6928 # configure is writing to config.log, and then calls config.status.
6929 # config.status does its own redirection, appending to config.log.
6930 # Unfortunately, on DOS this fails, as config.log is still kept open
6931 # by configure, so config.status won't be able to write to it; its
6932 # output is simply discarded. So we exec the FD to /dev/null,
6933 # effectively closing config.log, so it can be properly (re)opened and
6934 # appended to by config.status. When coming back to configure, we
6935 # need to make the FD available again.
6936 if test "$no_create" != yes; then
6937 ac_cs_success=:
6938 ac_config_status_args=
6939 test "$silent" = yes &&
6940 ac_config_status_args="$ac_config_status_args --quiet"
6941 exec 5>/dev/null
6942 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6943 exec 5>>config.log
6944 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6945 # would make configure fail if this is the last instruction.
6946 $ac_cs_success || as_fn_exit 1
6948 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6949 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6950 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
6954 for ac_prog in git
6956 # Extract the first word of "$ac_prog", so it can be a program name with args.
6957 set dummy $ac_prog; ac_word=$2
6958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6959 $as_echo_n "checking for $ac_word... " >&6; }
6960 if ${ac_cv_prog_GIT+:} false; then :
6961 $as_echo_n "(cached) " >&6
6962 else
6963 if test -n "$GIT"; then
6964 ac_cv_prog_GIT="$GIT" # Let the user override the test.
6965 else
6966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6967 for as_dir in $PATH
6969 IFS=$as_save_IFS
6970 test -z "$as_dir" && as_dir=.
6971 for ac_exec_ext in '' $ac_executable_extensions; do
6972 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6973 ac_cv_prog_GIT="$ac_prog"
6974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6975 break 2
6977 done
6978 done
6979 IFS=$as_save_IFS
6983 GIT=$ac_cv_prog_GIT
6984 if test -n "$GIT"; then
6985 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5
6986 $as_echo "$GIT" >&6; }
6987 else
6988 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6989 $as_echo "no" >&6; }
6993 test -n "$GIT" && break
6994 done
6998 for ac_prog in python
7000 # Extract the first word of "$ac_prog", so it can be a program name with args.
7001 set dummy $ac_prog; ac_word=$2
7002 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7003 $as_echo_n "checking for $ac_word... " >&6; }
7004 if ${ac_cv_prog_PYTHON+:} false; then :
7005 $as_echo_n "(cached) " >&6
7006 else
7007 if test -n "$PYTHON"; then
7008 ac_cv_prog_PYTHON="$PYTHON" # Let the user override the test.
7009 else
7010 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7011 for as_dir in $PATH
7013 IFS=$as_save_IFS
7014 test -z "$as_dir" && as_dir=.
7015 for ac_exec_ext in '' $ac_executable_extensions; do
7016 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7017 ac_cv_prog_PYTHON="$ac_prog"
7018 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7019 break 2
7021 done
7022 done
7023 IFS=$as_save_IFS
7027 PYTHON=$ac_cv_prog_PYTHON
7028 if test -n "$PYTHON"; then
7029 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
7030 $as_echo "$PYTHON" >&6; }
7031 else
7032 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7033 $as_echo "no" >&6; }
7037 test -n "$PYTHON" && break
7038 done
7039 test -n "$PYTHON" || PYTHON="python2.7"
7043 for ac_prog in python3
7045 # Extract the first word of "$ac_prog", so it can be a program name with args.
7046 set dummy $ac_prog; ac_word=$2
7047 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7048 $as_echo_n "checking for $ac_word... " >&6; }
7049 if ${ac_cv_prog_PYTHON3+:} false; then :
7050 $as_echo_n "(cached) " >&6
7051 else
7052 if test -n "$PYTHON3"; then
7053 ac_cv_prog_PYTHON3="$PYTHON3" # Let the user override the test.
7054 else
7055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7056 for as_dir in $PATH
7058 IFS=$as_save_IFS
7059 test -z "$as_dir" && as_dir=.
7060 for ac_exec_ext in '' $ac_executable_extensions; do
7061 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7062 ac_cv_prog_PYTHON3="$ac_prog"
7063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7064 break 2
7066 done
7067 done
7068 IFS=$as_save_IFS
7072 PYTHON3=$ac_cv_prog_PYTHON3
7073 if test -n "$PYTHON3"; then
7074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON3" >&5
7075 $as_echo "$PYTHON3" >&6; }
7076 else
7077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7078 $as_echo "no" >&6; }
7082 test -n "$PYTHON3" && break
7083 done
7084 test -n "$PYTHON3" || PYTHON3="python3.4"
7088 enable_python2=false
7089 if test "x$do_python" != "xno"; then :
7091 enable_python2=true
7092 if test -z "$PYTHON"
7093 then
7094 enable_python2=false
7095 else
7096 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python version" >&5
7097 $as_echo_n "checking Python version... " >&6; }
7098 eval `$PYTHON -V 2>&1 | awk '/^Python/ { ver=2; print $ver }' | awk -F. '{ major=1; minor=2; point=3; printf "export PY_MAJOR=%d PY_MINOR=%d PY_POINT=%d\n",$major,$minor,$point }'`
7099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PY_MAJOR.$PY_MINOR.$PY_POINT" >&5
7100 $as_echo "$PY_MAJOR.$PY_MINOR.$PY_POINT" >&6; }
7101 if test "$PY_MAJOR" -lt 2; then
7102 echo WARNING: Python version 2.6 or later does not seem to be installed.
7103 enable_python2=false
7104 else
7105 if test "$PY_MAJOR" -eq 2 -a "$PY_MINOR" -lt 6 ; then
7106 echo WARNING: Python version 2.$PY_MINOR is too old.
7107 echo Python version 2.6 or later is required for Python builds.
7108 enable_python2=false
7109 else
7110 for ac_header in python${PY_MAJOR}.${PY_MINOR}/Python.h
7111 do :
7112 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7113 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7114 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7115 cat >>confdefs.h <<_ACEOF
7116 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7117 _ACEOF
7119 else
7121 echo WARNING: Python version $PY_MAJOR.$PY_MINOR header file missing.
7122 echo Cannot proceed with the Python $PY_MAJOR installation found.
7123 enable_python2=false
7127 done
7133 if test "$do_python" != "check" -a "$enable_python2" != "true"
7134 then
7135 as_fn_error $? "cannot enable Python - no supported version found" "$LINENO" 5
7141 enable_python3=false
7142 if test "x$do_python3" != "xno"; then :
7144 enable_python3=true
7145 if test -z "$PYTHON3"
7146 then
7147 enable_python3=false
7148 else
7149 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python3 version" >&5
7150 $as_echo_n "checking Python3 version... " >&6; }
7151 eval `$PYTHON3 -V 2>&1 | awk '/^Python/ { ver=2; print $ver }' | awk -F. '{ major=1; minor=2; point=3; printf "export PY_MAJOR=%d PY_MINOR=%d PY_POINT=%d\n",$major,$minor,$point }'`
7152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PY_MAJOR.$PY_MINOR.$PY_POINT" >&5
7153 $as_echo "$PY_MAJOR.$PY_MINOR.$PY_POINT" >&6; }
7154 if test "$PY_MAJOR" -lt 3; then
7155 echo WARNING: Python version 3.3 or later does not seem to be installed.
7156 enable_python3=false
7157 else
7158 if test "$PY_MAJOR" -eq 3 -a "$PY_MINOR" -lt 3 ; then
7159 echo WARNING: Python version 3.$PY_MINOR is too old.
7160 echo Python version 3.3 or later is required for Python builds.
7161 enable_python3=false
7162 else
7163 for ac_header in python${PY_MAJOR}.${PY_MINOR}m/Python.h
7164 do :
7165 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7166 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7167 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7168 cat >>confdefs.h <<_ACEOF
7169 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7170 _ACEOF
7172 else
7174 echo WARNING: Python version $PY_MAJOR.$PY_MINOR header file missing.
7175 echo Cannot proceed with the Python $PY_MAJOR installation found.
7176 enable_python3=false
7180 done
7186 if test "$do_python3" != "check" -a "$enable_python3" != "true"
7187 then
7188 as_fn_error $? "cannot enable Python3 - no supported version found" "$LINENO" 5
7194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for any python version" >&5
7195 $as_echo_n "checking for any python version... " >&6; }
7196 if test "$cross_compiling" = "yes"; then
7197 ans=$have_python
7198 echo "cross-compile -> \"$ans\"" >&5
7199 elif test "$enable_python2" = "true" -o "$enable_python3" = "true"
7200 then
7201 have_python=true
7202 else
7203 have_python=false
7206 if $have_python; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7207 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7208 $as_echo "no" >&6; }; fi
7210 if test "$enable_python3" = "true"
7211 then
7212 pcp_python_prog=$PYTHON3
7213 elif test "$enable_python2" = "true"
7214 then
7215 pcp_python_prog=$PYTHON
7216 else
7217 pcp_python_prog=""
7222 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python module jsonpointer" >&5
7223 $as_echo_n "checking for Python module jsonpointer... " >&6; }
7224 if test -n ""
7225 then
7226 txt=""
7227 else
7228 txt="import jsonpointer"
7230 $pcp_python_prog -c 'import sys;
7231 '"$txt" >>config.log 2>&1
7232 if test "$?" = 0
7233 then
7234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7235 $as_echo "yes" >&6; }
7236 eval have_python_jsonpointer=true
7237 else
7238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7239 $as_echo "no" >&6; }
7240 eval have_python_jsonpointer=false
7244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python module setuptools" >&5
7245 $as_echo_n "checking for Python module setuptools... " >&6; }
7246 if test -n ""
7247 then
7248 txt=""
7249 else
7250 txt="import setuptools"
7252 $pcp_python_prog -c 'import sys;
7253 '"$txt" >>config.log 2>&1
7254 if test "$?" = 0
7255 then
7256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7257 $as_echo "yes" >&6; }
7258 eval have_python_setuptools=true
7259 else
7260 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7261 $as_echo "no" >&6; }
7262 eval have_python_setuptools=false
7266 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python module requests" >&5
7267 $as_echo_n "checking for Python module requests... " >&6; }
7268 if test -n ""
7269 then
7270 txt=""
7271 else
7272 txt="import requests"
7274 $pcp_python_prog -c 'import sys;
7275 '"$txt" >>config.log 2>&1
7276 if test "$?" = 0
7277 then
7278 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7279 $as_echo "yes" >&6; }
7280 eval have_python_requests=true
7281 else
7282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7283 $as_echo "no" >&6; }
7284 eval have_python_requests=false
7288 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python module six" >&5
7289 $as_echo_n "checking for Python module six... " >&6; }
7290 if test -n ""
7291 then
7292 txt=""
7293 else
7294 txt="import six"
7296 $pcp_python_prog -c 'import sys;
7297 '"$txt" >>config.log 2>&1
7298 if test "$?" = 0
7299 then
7300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7301 $as_echo "yes" >&6; }
7302 eval have_python_six=true
7303 else
7304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7305 $as_echo "no" >&6; }
7306 eval have_python_six=false
7311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the json PMDA should be included" >&5
7312 $as_echo_n "checking if the json PMDA should be included... " >&6; }
7313 pmda_json=false
7314 if test "x$do_pmdajson" = "xyes"; then :
7315 pmda_json=true
7317 if test "x$do_pmdajson" = "xcheck"; then :
7319 $have_python_jsonpointer && $have_python_six && pmda_json=true
7322 PMDA_JSON=$pmda_json
7324 if $pmda_json; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7325 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7326 $as_echo "no" >&6; }; fi
7328 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python module libvirt" >&5
7329 $as_echo_n "checking for Python module libvirt... " >&6; }
7330 if test -n ""
7331 then
7332 txt=""
7333 else
7334 txt="import libvirt"
7336 $pcp_python_prog -c 'import sys;
7337 '"$txt" >>config.log 2>&1
7338 if test "$?" = 0
7339 then
7340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7341 $as_echo "yes" >&6; }
7342 eval have_python_libvirt=true
7343 else
7344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7345 $as_echo "no" >&6; }
7346 eval have_python_libvirt=false
7351 for ac_prog in perl
7353 # Extract the first word of "$ac_prog", so it can be a program name with args.
7354 set dummy $ac_prog; ac_word=$2
7355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7356 $as_echo_n "checking for $ac_word... " >&6; }
7357 if ${ac_cv_prog_PERL+:} false; then :
7358 $as_echo_n "(cached) " >&6
7359 else
7360 if test -n "$PERL"; then
7361 ac_cv_prog_PERL="$PERL" # Let the user override the test.
7362 else
7363 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7364 for as_dir in $PATH
7366 IFS=$as_save_IFS
7367 test -z "$as_dir" && as_dir=.
7368 for ac_exec_ext in '' $ac_executable_extensions; do
7369 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7370 ac_cv_prog_PERL="$ac_prog"
7371 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7372 break 2
7374 done
7375 done
7376 IFS=$as_save_IFS
7380 PERL=$ac_cv_prog_PERL
7381 if test -n "$PERL"; then
7382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
7383 $as_echo "$PERL" >&6; }
7384 else
7385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7386 $as_echo "no" >&6; }
7390 test -n "$PERL" && break
7391 done
7395 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for any perl version" >&5
7396 $as_echo_n "checking for any perl version... " >&6; }
7397 if test "$cross_compiling" = "yes"; then
7398 ans=$have_perl
7399 echo "cross-compile -> \"$ans\"" >&5
7400 elif test -n "$PERL"
7401 then
7402 pcp_perl_prog=$PERL
7403 have_perl=true
7404 else
7405 pcp_perl_prog=""
7406 have_perl=false
7410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pcp_perl_prog" >&5
7411 $as_echo "$pcp_perl_prog" >&6; }
7413 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the SNMP PMDA should be included" >&5
7414 $as_echo_n "checking if the SNMP PMDA should be included... " >&6; }
7415 pmda_snmp=false
7416 if test "x$do_pmdasnmp" = "xyes"; then :
7417 pmda_snmp=true
7419 if test "x$do_pmdasnmp" = "xcheck"; then :
7421 if test "$have_perl" = true
7422 then
7423 if $pcp_perl_prog -e "use Net::SNMP" >/dev/null 2>&1
7424 then
7425 pmda_snmp=true
7430 PMDA_SNMP=$pmda_snmp
7432 if $pmda_snmp; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7433 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7434 $as_echo "no" >&6; }; fi
7436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the mysql PMDA should be included" >&5
7437 $as_echo_n "checking if the mysql PMDA should be included... " >&6; }
7438 pmda_mysql=false
7439 if test "$have_perl" = true
7440 then
7441 if $pcp_perl_prog -e "use DBI" >/dev/null 2>&1
7442 then
7443 if $pcp_perl_prog -e "use DBD::mysql" >/dev/null 2>&1
7444 then
7445 pmda_mysql=true
7449 PMDA_MYSQL=$pmda_mysql
7451 if $pmda_mysql; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7452 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7453 $as_echo "no" >&6; }; fi
7455 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the postgresql PMDA should be included" >&5
7456 $as_echo_n "checking if the postgresql PMDA should be included... " >&6; }
7457 pmda_postgresql=false
7458 if test "$have_perl" = true
7459 then
7460 if $pcp_perl_prog -e "use DBI" >/dev/null 2>&1
7461 then
7462 if $pcp_perl_prog -e "use DBD::Pg" >/dev/null 2>&1
7463 then
7464 pmda_postgresql=true
7468 PMDA_POSTGRESQL=$pmda_postgresql
7470 if $pmda_postgresql; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7471 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7472 $as_echo "no" >&6; }; fi
7474 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the oracle PMDA should be included" >&5
7475 $as_echo_n "checking if the oracle PMDA should be included... " >&6; }
7476 pmda_oracle=false
7477 if test "$have_perl" = true
7478 then
7479 if $pcp_perl_prog -e "use DBI" >/dev/null 2>&1
7480 then
7481 pmda_oracle=true
7484 PMDA_ORACLE=$pmda_oracle
7486 if $pmda_oracle; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7487 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7488 $as_echo "no" >&6; }; fi
7490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the elasticsearch PMDA should be included" >&5
7491 $as_echo_n "checking if the elasticsearch PMDA should be included... " >&6; }
7492 pmda_elasticsearch=false
7493 if test "$have_perl" = true
7494 then
7495 if $pcp_perl_prog -e "use LWP::UserAgent" >/dev/null 2>&1
7496 then
7497 pmda_elasticsearch=true
7500 PMDA_ELASTICSEARCH=$pmda_elasticsearch
7502 if $pmda_elasticsearch; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7503 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7504 $as_echo "no" >&6; }; fi
7506 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the nginx PMDA should be included" >&5
7507 $as_echo_n "checking if the nginx PMDA should be included... " >&6; }
7508 pmda_nginx=false
7509 if test "$have_perl" = true
7510 then
7511 if $pcp_perl_prog -e "use LWP::UserAgent" >/dev/null 2>&1
7512 then
7513 pmda_nginx=true
7516 PMDA_NGINX=$pmda_nginx
7518 if $pmda_nginx; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7519 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7520 $as_echo "no" >&6; }; fi
7522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the activemq PMDA should be included" >&5
7523 $as_echo_n "checking if the activemq PMDA should be included... " >&6; }
7524 pmda_activemq=false
7525 if test "$have_perl" = true
7526 then
7527 if $pcp_perl_prog -e "use LWP::UserAgent" >/dev/null 2>&1
7528 then
7529 pmda_activemq=true
7532 PMDA_ACTIVEMQ=$pmda_activemq
7534 if $pmda_activemq; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7535 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7536 $as_echo "no" >&6; }; fi
7538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the bind2 PMDA should be included" >&5
7539 $as_echo_n "checking if the bind2 PMDA should be included... " >&6; }
7540 pmda_bind2=false
7541 if test "$have_perl" = true
7542 then
7543 if $pcp_perl_prog -e "use LWP::UserAgent" >/dev/null 2>&1
7544 then
7545 if $pcp_perl_prog -e "use XML::LibXML" >/dev/null 2>&1
7546 then
7547 if $pcp_perl_prog -e "use File::Slurp" >/dev/null 2>&1
7548 then
7549 pmda_bind2=true
7554 PMDA_BIND2=$pmda_bind2
7556 if $pmda_bind2; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7557 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7558 $as_echo "no" >&6; }; fi
7560 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the nutcracker PMDA should be included" >&5
7561 $as_echo_n "checking if the nutcracker PMDA should be included... " >&6; }
7562 pmda_nutcracker=false
7563 if test "$have_perl" = true
7564 then
7565 if $pcp_perl_prog -e "use YAML::XS" >/dev/null 2>&1
7566 then
7567 if $pcp_perl_prog -e "use JSON" >/dev/null 2>&1
7568 then
7569 pmda_nutcracker=true
7573 PMDA_NUTCRACKER=$pmda_nutcracker
7575 if $pmda_nutcracker; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7576 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7577 $as_echo "no" >&6; }; fi
7579 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the LIO PMDA should be included" >&5
7580 $as_echo_n "checking if the LIO PMDA should be included... " >&6; }
7581 pmda_lio=false
7582 if test "$have_python" = true
7583 then
7584 if $pcp_python_prog -c "import rtslib" >/dev/null 2>&1
7585 then
7586 pmda_lio=true
7589 PMDA_LIO=$pmda_lio
7591 if $pmda_lio; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7592 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7593 $as_echo "no" >&6; }; fi
7595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the libvirt PMDA should be included" >&5
7596 $as_echo_n "checking if the libvirt PMDA should be included... " >&6; }
7597 pmda_libvirt=false
7598 if test "$have_python" = true
7599 then
7600 if $pcp_python_prog -c "import libvirt" >/dev/null 2>&1
7601 then
7602 if $pcp_python_prog -c "import lxml" >/dev/null 2>&1
7603 then
7604 pmda_libvirt=true
7608 PMDA_LIBVIRT=$pmda_libvirt
7610 if $pmda_libvirt; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7611 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7612 $as_echo "no" >&6; }; fi
7614 qmake=$QMAKE
7615 enable_qt=false
7616 qt_release=release
7617 if test "x$do_qt" != "xno"; then :
7619 enable_qt=true
7621 if test -z "$QMAKE"
7622 then
7623 for ac_prog in qmake-qt5 qmake-qt4 qmake
7625 # Extract the first word of "$ac_prog", so it can be a program name with args.
7626 set dummy $ac_prog; ac_word=$2
7627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7628 $as_echo_n "checking for $ac_word... " >&6; }
7629 if ${ac_cv_path_QMAKE+:} false; then :
7630 $as_echo_n "(cached) " >&6
7631 else
7632 case $QMAKE in
7633 [\\/]* | ?:[\\/]*)
7634 ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
7637 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7638 as_dummy="$QTDIR/bin:/usr/bin:/usr/lib64/qt5/bin:/usr/lib/qt5/bin:/usr/lib64/qt4/bin:/usr/lib/qt4/bin:/usr/local/bin"
7639 for as_dir in $as_dummy
7641 IFS=$as_save_IFS
7642 test -z "$as_dir" && as_dir=.
7643 for ac_exec_ext in '' $ac_executable_extensions; do
7644 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7645 ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
7646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7647 break 2
7649 done
7650 done
7651 IFS=$as_save_IFS
7654 esac
7656 QMAKE=$ac_cv_path_QMAKE
7657 if test -n "$QMAKE"; then
7658 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
7659 $as_echo "$QMAKE" >&6; }
7660 else
7661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7662 $as_echo "no" >&6; }
7666 test -n "$QMAKE" && break
7667 done
7669 test "x$cc_is_gcc" = xyes -a $target_os = solaris && QMAKE="$QMAKE -spec solaris-g++"
7671 qmake=$QMAKE
7672 if test -z "$QMAKE"
7673 then
7674 enable_qt=false
7675 else
7676 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Qt version" >&5
7677 $as_echo_n "checking Qt version... " >&6; }
7678 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 }'`
7679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_MAJOR.$QT_MINOR.$QT_POINT" >&5
7680 $as_echo "$QT_MAJOR.$QT_MINOR.$QT_POINT" >&6; }
7681 if test "$QT_MAJOR" -lt 4; then
7682 echo WARNING: Qt version 4.4 or later does not seem to be installed.
7683 echo Cannot proceed with the Qt $QT_MAJOR installation found.
7684 enable_qt=false
7686 if test "$QT_MAJOR" -eq 4 -a "$QT_MINOR" -lt 4 ; then
7687 echo WARNING: Qt version 4.$QT_MINOR is too old.
7688 echo Qt version 4.4 or later is required for Qt builds.
7689 enable_qt=false
7693 if test "$do_qt" != "check" -a "$enable_qt" != "true"
7694 then
7695 as_fn_error $? "cannot enable Qt - no supported Qt installation found" "$LINENO" 5
7696 elif test "$enable_qt" = "true" -a "x$cxx" = "x"
7697 then
7698 enable_qt=false
7699 test "$do_qt" != "check" && \
7700 as_fn_error $? "C++ compiler unavailable, cannot build Qt components" "$LINENO" 5
7701 elif test "$do_qt" = "debug"
7702 then
7703 qt_release=debug
7704 enable_qt=true
7712 enable_qt3d=false
7713 if test "x$do_qt3d" != "xno"; then :
7715 if test -f /usr/include/Coin3/Inventor/Qt/SoQt.h
7716 then
7717 enable_qt3d=$enable_qt
7718 elif test -a "$do_qt3d" = "yes"
7719 then
7720 as_fn_error $? "cannot enable support for 3D scene graph API" "$LINENO" 5
7726 if test -z "$MAKE"
7727 then
7728 # Extract the first word of "gmake", so it can be a program name with args.
7729 set dummy gmake; ac_word=$2
7730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7731 $as_echo_n "checking for $ac_word... " >&6; }
7732 if ${ac_cv_path_MAKE+:} false; then :
7733 $as_echo_n "(cached) " >&6
7734 else
7735 case $MAKE in
7736 [\\/]* | ?:[\\/]*)
7737 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
7740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7741 for as_dir in $PATH
7743 IFS=$as_save_IFS
7744 test -z "$as_dir" && as_dir=.
7745 for ac_exec_ext in '' $ac_executable_extensions; do
7746 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7747 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
7748 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7749 break 2
7751 done
7752 done
7753 IFS=$as_save_IFS
7756 esac
7758 MAKE=$ac_cv_path_MAKE
7759 if test -n "$MAKE"; then
7760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
7761 $as_echo "$MAKE" >&6; }
7762 else
7763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7764 $as_echo "no" >&6; }
7768 if test -z "$MAKE"
7769 then
7770 # look elsewhere ...
7771 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make elsewhere" >&5
7772 $as_echo_n "checking for GNU make elsewhere... " >&6; }
7773 for f in /usr/local/bin/gmake /usr/freeware/bin/gmake /usr/local/bin/make /opt/sfw/bin/gmake nowhere
7775 if test -x $f
7776 then
7777 MAKE=$f
7778 break
7780 done
7781 if test $f = nowhere
7782 then
7783 # Check if /usr/bin/make is any good
7784 mver=`/usr/bin/make --version 2>/dev/null | sed -n -e1p | cut -c1-8`
7785 if test "$mver" != "GNU Make"
7786 then
7787 echo
7788 echo "FATAL ERROR: could not find GNU make anywhere"
7789 echo "You need to set \$MAKE as the full path to GNU make "
7790 echo "in the environment."
7791 rm -rf conftest conftest.*
7792 exit 1
7793 else
7794 MAKE=/usr/bin/make
7797 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
7798 $as_echo "$MAKE" >&6; }
7801 make=$MAKE
7804 if test -z "$CPP"; then
7805 ac_ext=c
7806 ac_cpp='$CPP $CPPFLAGS'
7807 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7808 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7809 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7811 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7812 # On Suns, sometimes $CPP names a directory.
7813 if test -n "$CPP" && test -d "$CPP"; then
7814 CPP=
7816 if test -z "$CPP"; then
7817 if ${ac_cv_prog_CPP+:} false; then :
7818 $as_echo_n "(cached) " >&6
7819 else
7820 # Double quotes because CPP needs to be expanded
7821 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7823 ac_preproc_ok=false
7824 for ac_c_preproc_warn_flag in '' yes
7826 # Use a header file that comes with gcc, so configuring glibc
7827 # with a fresh cross-compiler works.
7828 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7829 # <limits.h> exists even on freestanding compilers.
7830 # On the NeXT, cc -E runs the code through the compiler's parser,
7831 # not just through cpp. "Syntax error" is here to catch this case.
7832 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7833 /* end confdefs.h. */
7834 #ifdef __STDC__
7835 # include <limits.h>
7836 #else
7837 # include <assert.h>
7838 #endif
7839 Syntax error
7840 _ACEOF
7841 if ac_fn_c_try_cpp "$LINENO"; then :
7843 else
7844 # Broken: fails on valid input.
7845 continue
7847 rm -f conftest.err conftest.i conftest.$ac_ext
7849 # OK, works on sane cases. Now check whether nonexistent headers
7850 # can be detected and how.
7851 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7852 /* end confdefs.h. */
7853 #include <ac_nonexistent.h>
7854 _ACEOF
7855 if ac_fn_c_try_cpp "$LINENO"; then :
7856 # Broken: success on invalid input.
7857 continue
7858 else
7859 # Passes both tests.
7860 ac_preproc_ok=:
7861 break
7863 rm -f conftest.err conftest.i conftest.$ac_ext
7865 done
7866 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7867 rm -f conftest.i conftest.err conftest.$ac_ext
7868 if $ac_preproc_ok; then :
7869 break
7872 done
7873 ac_cv_prog_CPP=$CPP
7876 CPP=$ac_cv_prog_CPP
7877 else
7878 ac_cv_prog_CPP=$CPP
7880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7881 $as_echo "$CPP" >&6; }
7882 ac_preproc_ok=false
7883 for ac_c_preproc_warn_flag in '' yes
7885 # Use a header file that comes with gcc, so configuring glibc
7886 # with a fresh cross-compiler works.
7887 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7888 # <limits.h> exists even on freestanding compilers.
7889 # On the NeXT, cc -E runs the code through the compiler's parser,
7890 # not just through cpp. "Syntax error" is here to catch this case.
7891 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7892 /* end confdefs.h. */
7893 #ifdef __STDC__
7894 # include <limits.h>
7895 #else
7896 # include <assert.h>
7897 #endif
7898 Syntax error
7899 _ACEOF
7900 if ac_fn_c_try_cpp "$LINENO"; then :
7902 else
7903 # Broken: fails on valid input.
7904 continue
7906 rm -f conftest.err conftest.i conftest.$ac_ext
7908 # OK, works on sane cases. Now check whether nonexistent headers
7909 # can be detected and how.
7910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7911 /* end confdefs.h. */
7912 #include <ac_nonexistent.h>
7913 _ACEOF
7914 if ac_fn_c_try_cpp "$LINENO"; then :
7915 # Broken: success on invalid input.
7916 continue
7917 else
7918 # Passes both tests.
7919 ac_preproc_ok=:
7920 break
7922 rm -f conftest.err conftest.i conftest.$ac_ext
7924 done
7925 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7926 rm -f conftest.i conftest.err conftest.$ac_ext
7927 if $ac_preproc_ok; then :
7929 else
7930 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7931 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7932 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7933 See \`config.log' for more details" "$LINENO" 5; }
7936 ac_ext=c
7937 ac_cpp='$CPP $CPPFLAGS'
7938 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7939 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7940 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7943 cpp=$CPP
7946 if test -z "$LD"; then
7947 # Extract the first word of "ld", so it can be a program name with args.
7948 set dummy ld; ac_word=$2
7949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7950 $as_echo_n "checking for $ac_word... " >&6; }
7951 if ${ac_cv_path_LD+:} false; then :
7952 $as_echo_n "(cached) " >&6
7953 else
7954 case $LD in
7955 [\\/]* | ?:[\\/]*)
7956 ac_cv_path_LD="$LD" # Let the user override the test with a path.
7959 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7960 for as_dir in $PATH
7962 IFS=$as_save_IFS
7963 test -z "$as_dir" && as_dir=.
7964 for ac_exec_ext in '' $ac_executable_extensions; do
7965 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7966 ac_cv_path_LD="$as_dir/$ac_word$ac_exec_ext"
7967 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7968 break 2
7970 done
7971 done
7972 IFS=$as_save_IFS
7974 test -z "$ac_cv_path_LD" && ac_cv_path_LD="/usr/bin/ld"
7976 esac
7978 LD=$ac_cv_path_LD
7979 if test -n "$LD"; then
7980 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7981 $as_echo "$LD" >&6; }
7982 else
7983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7984 $as_echo "no" >&6; }
7989 ld=$LD
7992 if test -z "$PCP_USER_INSTALL" ; then
7993 pcp_user_install=root
7994 else
7995 pcp_user_install="$PCP_USER_INSTALL"
7998 if test -z "$PCP_GROUP_INSTALL" ; then
7999 case "$target_os"
8001 darwin|freebsd|netbsd|openbsd)
8002 pcp_group_install=wheel
8005 pcp_group_install=root
8007 esac
8008 else
8009 pcp_group_install="$PCP_GROUP_INSTALL"
8013 if test -z "$TAR"; then
8014 for ac_prog in gtar tar
8016 # Extract the first word of "$ac_prog", so it can be a program name with args.
8017 set dummy $ac_prog; ac_word=$2
8018 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8019 $as_echo_n "checking for $ac_word... " >&6; }
8020 if ${ac_cv_path_TAR+:} false; then :
8021 $as_echo_n "(cached) " >&6
8022 else
8023 case $TAR in
8024 [\\/]* | ?:[\\/]*)
8025 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
8028 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8029 for as_dir in $PATH
8031 IFS=$as_save_IFS
8032 test -z "$as_dir" && as_dir=.
8033 for ac_exec_ext in '' $ac_executable_extensions; do
8034 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8035 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
8036 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8037 break 2
8039 done
8040 done
8041 IFS=$as_save_IFS
8044 esac
8046 TAR=$ac_cv_path_TAR
8047 if test -n "$TAR"; then
8048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
8049 $as_echo "$TAR" >&6; }
8050 else
8051 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8052 $as_echo "no" >&6; }
8056 test -n "$TAR" && break
8057 done
8058 test -n "$TAR" || TAR="tar"
8061 if test $target_os = darwin -a -x /usr/bin/gnutar
8062 then
8063 TAR=/usr/bin/gnutar
8065 tar=$TAR
8068 if test -z "$ZIP"; then
8069 # Extract the first word of "gzip", so it can be a program name with args.
8070 set dummy gzip; ac_word=$2
8071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8072 $as_echo_n "checking for $ac_word... " >&6; }
8073 if ${ac_cv_path_ZIP+:} false; then :
8074 $as_echo_n "(cached) " >&6
8075 else
8076 case $ZIP in
8077 [\\/]* | ?:[\\/]*)
8078 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
8081 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8082 for as_dir in $PATH
8084 IFS=$as_save_IFS
8085 test -z "$as_dir" && as_dir=.
8086 for ac_exec_ext in '' $ac_executable_extensions; do
8087 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8088 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
8089 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8090 break 2
8092 done
8093 done
8094 IFS=$as_save_IFS
8096 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="/bin/gzip"
8098 esac
8100 ZIP=$ac_cv_path_ZIP
8101 if test -n "$ZIP"; then
8102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
8103 $as_echo "$ZIP" >&6; }
8104 else
8105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8106 $as_echo "no" >&6; }
8111 test ! -x "$ZIP" && ZIP=/usr/local/bin/gzip
8112 test ! -x "$ZIP" && ZIP=/usr/freeware/bin/gzip
8113 test ! -x "$ZIP" && ZIP=/usr/bin/gzip
8114 gzip=$ZIP
8115 test -z "$gzip" && gzip=no-gzip
8118 if test -z "$BZIP2"; then
8119 # Extract the first word of "bzip2", so it can be a program name with args.
8120 set dummy bzip2; ac_word=$2
8121 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8122 $as_echo_n "checking for $ac_word... " >&6; }
8123 if ${ac_cv_path_BZIP2+:} false; then :
8124 $as_echo_n "(cached) " >&6
8125 else
8126 case $BZIP2 in
8127 [\\/]* | ?:[\\/]*)
8128 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
8131 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8132 for as_dir in $PATH
8134 IFS=$as_save_IFS
8135 test -z "$as_dir" && as_dir=.
8136 for ac_exec_ext in '' $ac_executable_extensions; do
8137 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8138 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
8139 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8140 break 2
8142 done
8143 done
8144 IFS=$as_save_IFS
8146 test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="/bin/bzip2"
8148 esac
8150 BZIP2=$ac_cv_path_BZIP2
8151 if test -n "$BZIP2"; then
8152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIP2" >&5
8153 $as_echo "$BZIP2" >&6; }
8154 else
8155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8156 $as_echo "no" >&6; }
8161 test ! -x "$BZIP2" && BZIP2=/usr/bin/bzip2
8162 test ! -x "$BZIP2" && BZIP2=/usr/local/bin/bzip2
8163 test ! -x "$BZIP2" && BZIP2=/usr/freeware/bin/bzip2
8164 bzip2=$BZIP2
8165 test -z "$bzip2" && bzip2=no-bzip2
8168 if test -z "$LZMA"; then
8169 # Extract the first word of "lzma", so it can be a program name with args.
8170 set dummy lzma; ac_word=$2
8171 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8172 $as_echo_n "checking for $ac_word... " >&6; }
8173 if ${ac_cv_path_LZMA+:} false; then :
8174 $as_echo_n "(cached) " >&6
8175 else
8176 case $LZMA in
8177 [\\/]* | ?:[\\/]*)
8178 ac_cv_path_LZMA="$LZMA" # Let the user override the test with a path.
8181 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8182 for as_dir in $PATH
8184 IFS=$as_save_IFS
8185 test -z "$as_dir" && as_dir=.
8186 for ac_exec_ext in '' $ac_executable_extensions; do
8187 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8188 ac_cv_path_LZMA="$as_dir/$ac_word$ac_exec_ext"
8189 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8190 break 2
8192 done
8193 done
8194 IFS=$as_save_IFS
8196 test -z "$ac_cv_path_LZMA" && ac_cv_path_LZMA="/bin/lzma"
8198 esac
8200 LZMA=$ac_cv_path_LZMA
8201 if test -n "$LZMA"; then
8202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZMA" >&5
8203 $as_echo "$LZMA" >&6; }
8204 else
8205 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8206 $as_echo "no" >&6; }
8211 test ! -x "$LZMA" && LZMA=/usr/bin/lzma
8212 test ! -x "$LZMA" && LZMA=/usr/local/bin/lzma
8213 test ! -x "$LZMA" && LZMA=/usr/freeware/bin/lzma
8214 lzma=$LZMA
8215 test -z "$lzma" && lzma=no-lzma
8218 if test -z "$XZ"; then
8219 # Extract the first word of "xz", so it can be a program name with args.
8220 set dummy xz; ac_word=$2
8221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8222 $as_echo_n "checking for $ac_word... " >&6; }
8223 if ${ac_cv_path_XZ+:} false; then :
8224 $as_echo_n "(cached) " >&6
8225 else
8226 case $XZ in
8227 [\\/]* | ?:[\\/]*)
8228 ac_cv_path_XZ="$XZ" # Let the user override the test with a path.
8231 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8232 for as_dir in $PATH
8234 IFS=$as_save_IFS
8235 test -z "$as_dir" && as_dir=.
8236 for ac_exec_ext in '' $ac_executable_extensions; do
8237 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8238 ac_cv_path_XZ="$as_dir/$ac_word$ac_exec_ext"
8239 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8240 break 2
8242 done
8243 done
8244 IFS=$as_save_IFS
8246 test -z "$ac_cv_path_XZ" && ac_cv_path_XZ="/bin/xz"
8248 esac
8250 XZ=$ac_cv_path_XZ
8251 if test -n "$XZ"; then
8252 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XZ" >&5
8253 $as_echo "$XZ" >&6; }
8254 else
8255 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8256 $as_echo "no" >&6; }
8261 test ! -x "$XZ" && XZ=/usr/bin/xz
8262 test ! -x "$XZ" && XZ=/usr/local/bin/xz
8263 test ! -x "$XZ" && XZ=/usr/freeware/bin/xz
8264 xz=$XZ
8265 test -z "$xz" && xz=no-xz
8268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PackageMaker" >&5
8269 $as_echo_n "checking for PackageMaker... " >&6; }
8270 if test -z "$PACKAGE_MAKER"
8271 then
8272 if test $target_os = darwin
8273 then
8274 if test -x /Applications/PackageMaker.app/Contents/MacOS/PackageMaker
8275 then # local XCode extras install
8276 package_maker=/Applications/PackageMaker.app/Contents/MacOS/PackageMaker
8277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (local install)" >&5
8278 $as_echo " yes (local install)" >&6; }
8279 elif test -x /Developer/Applications/PackageMaker.app/Contents/MacOS/PackageMaker
8280 then # Darwin 6.x
8281 package_maker=/Developer/Applications/PackageMaker.app/Contents/MacOS/PackageMaker
8282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (darwin 6.x)" >&5
8283 $as_echo " yes (darwin 6.x)" >&6; }
8284 elif test -x /Developer/Applications/Utilities/PackageMaker.app/Contents/MacOS/PackageMaker
8285 then # Darwin 7.x
8286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (darwin 7.x)" >&5
8287 $as_echo " yes (darwin 7.x)" >&6; }
8288 package_maker=/Developer/Applications/Utilities/PackageMaker.app/Contents/MacOS/PackageMaker
8289 else
8290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
8291 $as_echo " not found!" >&6; }
8292 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PackageMaker not found, mac packages will not be made" >&5
8293 $as_echo "$as_me: WARNING: PackageMaker not found, mac packages will not be made" >&2;}
8295 else
8296 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8297 $as_echo " no" >&6; }
8299 else
8300 package_maker="$PACKAGE_MAKER"
8304 if test -z "$HDIUTIL"; then
8305 # Extract the first word of "hdiutil", so it can be a program name with args.
8306 set dummy hdiutil; ac_word=$2
8307 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8308 $as_echo_n "checking for $ac_word... " >&6; }
8309 if ${ac_cv_path_HDIUTIL+:} false; then :
8310 $as_echo_n "(cached) " >&6
8311 else
8312 case $HDIUTIL in
8313 [\\/]* | ?:[\\/]*)
8314 ac_cv_path_HDIUTIL="$HDIUTIL" # Let the user override the test with a path.
8317 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8318 for as_dir in $PATH
8320 IFS=$as_save_IFS
8321 test -z "$as_dir" && as_dir=.
8322 for ac_exec_ext in '' $ac_executable_extensions; do
8323 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8324 ac_cv_path_HDIUTIL="$as_dir/$ac_word$ac_exec_ext"
8325 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8326 break 2
8328 done
8329 done
8330 IFS=$as_save_IFS
8333 esac
8335 HDIUTIL=$ac_cv_path_HDIUTIL
8336 if test -n "$HDIUTIL"; then
8337 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HDIUTIL" >&5
8338 $as_echo "$HDIUTIL" >&6; }
8339 else
8340 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8341 $as_echo "no" >&6; }
8346 hdiutil=$HDIUTIL
8349 if test -z "$MKINSTALLP"; then
8350 # Extract the first word of "mkinstallp", so it can be a program name with args.
8351 set dummy mkinstallp; ac_word=$2
8352 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8353 $as_echo_n "checking for $ac_word... " >&6; }
8354 if ${ac_cv_path_MKINSTALLP+:} false; then :
8355 $as_echo_n "(cached) " >&6
8356 else
8357 case $MKINSTALLP in
8358 [\\/]* | ?:[\\/]*)
8359 ac_cv_path_MKINSTALLP="$MKINSTALLP" # Let the user override the test with a path.
8362 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8363 for as_dir in $PATH
8365 IFS=$as_save_IFS
8366 test -z "$as_dir" && as_dir=.
8367 for ac_exec_ext in '' $ac_executable_extensions; do
8368 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8369 ac_cv_path_MKINSTALLP="$as_dir/$ac_word$ac_exec_ext"
8370 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8371 break 2
8373 done
8374 done
8375 IFS=$as_save_IFS
8378 esac
8380 MKINSTALLP=$ac_cv_path_MKINSTALLP
8381 if test -n "$MKINSTALLP"; then
8382 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKINSTALLP" >&5
8383 $as_echo "$MKINSTALLP" >&6; }
8384 else
8385 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8386 $as_echo "no" >&6; }
8391 mkinstallp=$MKINSTALLP
8394 if test -z "$PKGMK"; then
8395 # Extract the first word of "pkgmk", so it can be a program name with args.
8396 set dummy pkgmk; ac_word=$2
8397 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8398 $as_echo_n "checking for $ac_word... " >&6; }
8399 if ${ac_cv_path_PKGMK+:} false; then :
8400 $as_echo_n "(cached) " >&6
8401 else
8402 case $PKGMK in
8403 [\\/]* | ?:[\\/]*)
8404 ac_cv_path_PKGMK="$PKGMK" # Let the user override the test with a path.
8407 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8408 for as_dir in $PATH
8410 IFS=$as_save_IFS
8411 test -z "$as_dir" && as_dir=.
8412 for ac_exec_ext in '' $ac_executable_extensions; do
8413 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8414 ac_cv_path_PKGMK="$as_dir/$ac_word$ac_exec_ext"
8415 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8416 break 2
8418 done
8419 done
8420 IFS=$as_save_IFS
8423 esac
8425 PKGMK=$ac_cv_path_PKGMK
8426 if test -n "$PKGMK"; then
8427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGMK" >&5
8428 $as_echo "$PKGMK" >&6; }
8429 else
8430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8431 $as_echo "no" >&6; }
8436 pkgmk=$PKGMK
8439 if test -z "$DLLTOOL"; then
8440 # Extract the first word of "dlltool", so it can be a program name with args.
8441 set dummy dlltool; ac_word=$2
8442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8443 $as_echo_n "checking for $ac_word... " >&6; }
8444 if ${ac_cv_path_DLLTOOL+:} false; then :
8445 $as_echo_n "(cached) " >&6
8446 else
8447 case $DLLTOOL in
8448 [\\/]* | ?:[\\/]*)
8449 ac_cv_path_DLLTOOL="$DLLTOOL" # Let the user override the test with a path.
8452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8453 for as_dir in $PATH
8455 IFS=$as_save_IFS
8456 test -z "$as_dir" && as_dir=.
8457 for ac_exec_ext in '' $ac_executable_extensions; do
8458 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8459 ac_cv_path_DLLTOOL="$as_dir/$ac_word$ac_exec_ext"
8460 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8461 break 2
8463 done
8464 done
8465 IFS=$as_save_IFS
8468 esac
8470 DLLTOOL=$ac_cv_path_DLLTOOL
8471 if test -n "$DLLTOOL"; then
8472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8473 $as_echo "$DLLTOOL" >&6; }
8474 else
8475 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8476 $as_echo "no" >&6; }
8481 dlltool=$DLLTOOL
8484 if test -z "$RPMBUILD"; then
8485 # Extract the first word of "rpmbuild", so it can be a program name with args.
8486 set dummy rpmbuild; ac_word=$2
8487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8488 $as_echo_n "checking for $ac_word... " >&6; }
8489 if ${ac_cv_path_RPMBUILD+:} false; then :
8490 $as_echo_n "(cached) " >&6
8491 else
8492 case $RPMBUILD in
8493 [\\/]* | ?:[\\/]*)
8494 ac_cv_path_RPMBUILD="$RPMBUILD" # Let the user override the test with a path.
8497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8498 for as_dir in $PATH
8500 IFS=$as_save_IFS
8501 test -z "$as_dir" && as_dir=.
8502 for ac_exec_ext in '' $ac_executable_extensions; do
8503 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8504 ac_cv_path_RPMBUILD="$as_dir/$ac_word$ac_exec_ext"
8505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8506 break 2
8508 done
8509 done
8510 IFS=$as_save_IFS
8513 esac
8515 RPMBUILD=$ac_cv_path_RPMBUILD
8516 if test -n "$RPMBUILD"; then
8517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPMBUILD" >&5
8518 $as_echo "$RPMBUILD" >&6; }
8519 else
8520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8521 $as_echo "no" >&6; }
8526 test $target_distro = slackware && RPMBUILD=''
8527 rpmbuild=$RPMBUILD
8530 if test -z "$RPM"; then
8531 # Extract the first word of "rpm", so it can be a program name with args.
8532 set dummy rpm; ac_word=$2
8533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8534 $as_echo_n "checking for $ac_word... " >&6; }
8535 if ${ac_cv_path_RPM+:} false; then :
8536 $as_echo_n "(cached) " >&6
8537 else
8538 case $RPM in
8539 [\\/]* | ?:[\\/]*)
8540 ac_cv_path_RPM="$RPM" # Let the user override the test with a path.
8543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8544 for as_dir in $PATH
8546 IFS=$as_save_IFS
8547 test -z "$as_dir" && as_dir=.
8548 for ac_exec_ext in '' $ac_executable_extensions; do
8549 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8550 ac_cv_path_RPM="$as_dir/$ac_word$ac_exec_ext"
8551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8552 break 2
8554 done
8555 done
8556 IFS=$as_save_IFS
8559 esac
8561 RPM=$ac_cv_path_RPM
8562 if test -n "$RPM"; then
8563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
8564 $as_echo "$RPM" >&6; }
8565 else
8566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8567 $as_echo "no" >&6; }
8572 test $target_distro = slackware && RPM=''
8573 rpm=$RPM
8576 if test -n "$RPMBUILD" -a -x "$RPMBUILD"
8577 then
8578 rpmprog=$RPMBUILD
8579 else
8580 rpmprog=$RPM
8584 if test -z "$POD2MAN"; then
8585 # Extract the first word of "pod2man", so it can be a program name with args.
8586 set dummy pod2man; ac_word=$2
8587 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8588 $as_echo_n "checking for $ac_word... " >&6; }
8589 if ${ac_cv_path_POD2MAN+:} false; then :
8590 $as_echo_n "(cached) " >&6
8591 else
8592 case $POD2MAN in
8593 [\\/]* | ?:[\\/]*)
8594 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8597 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8598 for as_dir in $PATH
8600 IFS=$as_save_IFS
8601 test -z "$as_dir" && as_dir=.
8602 for ac_exec_ext in '' $ac_executable_extensions; do
8603 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8604 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
8605 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8606 break 2
8608 done
8609 done
8610 IFS=$as_save_IFS
8613 esac
8615 POD2MAN=$ac_cv_path_POD2MAN
8616 if test -n "$POD2MAN"; then
8617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POD2MAN" >&5
8618 $as_echo "$POD2MAN" >&6; }
8619 else
8620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8621 $as_echo "no" >&6; }
8626 pod2man=$POD2MAN
8629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ExtUtils::MakeMaker is installed" >&5
8630 $as_echo_n "checking if ExtUtils::MakeMaker is installed... " >&6; }
8631 perl -e "use ExtUtils::MakeMaker" 2>/dev/null
8632 if test $? -eq 0
8633 then
8634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8635 $as_echo " yes" >&6; }
8636 else
8637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8638 $as_echo " no" >&6; }
8639 echo
8640 echo "FATAL ERROR: Perl ExtUtils::MakeMaker module missing."
8641 echo "You can either install this from your distribution, or"
8642 echo "download from CPAN (Comprehensive Perl Archive Network)."
8643 rm -rf conftest conftest.*
8644 exit 1
8647 # Extract the first word of "true", so it can be a program name with args.
8648 set dummy true; ac_word=$2
8649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8650 $as_echo_n "checking for $ac_word... " >&6; }
8651 if ${ac_cv_path_TRUEPROG+:} false; then :
8652 $as_echo_n "(cached) " >&6
8653 else
8654 case $TRUEPROG in
8655 [\\/]* | ?:[\\/]*)
8656 ac_cv_path_TRUEPROG="$TRUEPROG" # Let the user override the test with a path.
8659 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8660 for as_dir in $PATH
8662 IFS=$as_save_IFS
8663 test -z "$as_dir" && as_dir=.
8664 for ac_exec_ext in '' $ac_executable_extensions; do
8665 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8666 ac_cv_path_TRUEPROG="$as_dir/$ac_word$ac_exec_ext"
8667 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8668 break 2
8670 done
8671 done
8672 IFS=$as_save_IFS
8675 esac
8677 TRUEPROG=$ac_cv_path_TRUEPROG
8678 if test -n "$TRUEPROG"; then
8679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUEPROG" >&5
8680 $as_echo "$TRUEPROG" >&6; }
8681 else
8682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8683 $as_echo "no" >&6; }
8688 if test -z "$MAKEDEPEND"; then
8689 # Extract the first word of "makedepend", so it can be a program name with args.
8690 set dummy makedepend; ac_word=$2
8691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8692 $as_echo_n "checking for $ac_word... " >&6; }
8693 if ${ac_cv_path_MAKEDEPEND+:} false; then :
8694 $as_echo_n "(cached) " >&6
8695 else
8696 case $MAKEDEPEND in
8697 [\\/]* | ?:[\\/]*)
8698 ac_cv_path_MAKEDEPEND="$MAKEDEPEND" # Let the user override the test with a path.
8701 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8702 for as_dir in $PATH
8704 IFS=$as_save_IFS
8705 test -z "$as_dir" && as_dir=.
8706 for ac_exec_ext in '' $ac_executable_extensions; do
8707 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8708 ac_cv_path_MAKEDEPEND="$as_dir/$ac_word$ac_exec_ext"
8709 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8710 break 2
8712 done
8713 done
8714 IFS=$as_save_IFS
8716 test -z "$ac_cv_path_MAKEDEPEND" && ac_cv_path_MAKEDEPEND="$TRUEPROG"
8718 esac
8720 MAKEDEPEND=$ac_cv_path_MAKEDEPEND
8721 if test -n "$MAKEDEPEND"; then
8722 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEDEPEND" >&5
8723 $as_echo "$MAKEDEPEND" >&6; }
8724 else
8725 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8726 $as_echo "no" >&6; }
8731 makedepend=$MAKEDEPEND
8734 if test -z "$MD5SUM"; then
8735 # Extract the first word of "md5sum", so it can be a program name with args.
8736 set dummy md5sum; ac_word=$2
8737 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8738 $as_echo_n "checking for $ac_word... " >&6; }
8739 if ${ac_cv_path_MD5SUM+:} false; then :
8740 $as_echo_n "(cached) " >&6
8741 else
8742 case $MD5SUM in
8743 [\\/]* | ?:[\\/]*)
8744 ac_cv_path_MD5SUM="$MD5SUM" # Let the user override the test with a path.
8747 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8748 for as_dir in $PATH
8750 IFS=$as_save_IFS
8751 test -z "$as_dir" && as_dir=.
8752 for ac_exec_ext in '' $ac_executable_extensions; do
8753 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8754 ac_cv_path_MD5SUM="$as_dir/$ac_word$ac_exec_ext"
8755 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8756 break 2
8758 done
8759 done
8760 IFS=$as_save_IFS
8762 test -z "$ac_cv_path_MD5SUM" && ac_cv_path_MD5SUM="$TRUEPROG"
8764 esac
8766 MD5SUM=$ac_cv_path_MD5SUM
8767 if test -n "$MD5SUM"; then
8768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MD5SUM" >&5
8769 $as_echo "$MD5SUM" >&6; }
8770 else
8771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8772 $as_echo "no" >&6; }
8777 md5sum=$MD5SUM
8780 if test -z "$DPKG"; then
8781 # Extract the first word of "dpkg", so it can be a program name with args.
8782 set dummy dpkg; ac_word=$2
8783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8784 $as_echo_n "checking for $ac_word... " >&6; }
8785 if ${ac_cv_path_DPKG+:} false; then :
8786 $as_echo_n "(cached) " >&6
8787 else
8788 case $DPKG in
8789 [\\/]* | ?:[\\/]*)
8790 ac_cv_path_DPKG="$DPKG" # Let the user override the test with a path.
8793 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8794 for as_dir in $PATH
8796 IFS=$as_save_IFS
8797 test -z "$as_dir" && as_dir=.
8798 for ac_exec_ext in '' $ac_executable_extensions; do
8799 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8800 ac_cv_path_DPKG="$as_dir/$ac_word$ac_exec_ext"
8801 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8802 break 2
8804 done
8805 done
8806 IFS=$as_save_IFS
8809 esac
8811 DPKG=$ac_cv_path_DPKG
8812 if test -n "$DPKG"; then
8813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DPKG" >&5
8814 $as_echo "$DPKG" >&6; }
8815 else
8816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8817 $as_echo "no" >&6; }
8822 dpkg=$DKPG
8825 if test -z "$MAKEPKG"; then
8826 # Extract the first word of "makepkg", so it can be a program name with args.
8827 set dummy makepkg; ac_word=$2
8828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8829 $as_echo_n "checking for $ac_word... " >&6; }
8830 if ${ac_cv_path_MAKEPKG+:} false; then :
8831 $as_echo_n "(cached) " >&6
8832 else
8833 case $MAKEPKG in
8834 [\\/]* | ?:[\\/]*)
8835 ac_cv_path_MAKEPKG="$MAKEPKG" # Let the user override the test with a path.
8838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8839 for as_dir in $PATH
8841 IFS=$as_save_IFS
8842 test -z "$as_dir" && as_dir=.
8843 for ac_exec_ext in '' $ac_executable_extensions; do
8844 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8845 ac_cv_path_MAKEPKG="$as_dir/$ac_word$ac_exec_ext"
8846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8847 break 2
8849 done
8850 done
8851 IFS=$as_save_IFS
8854 esac
8856 MAKEPKG=$ac_cv_path_MAKEPKG
8857 if test -n "$MAKEPKG"; then
8858 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEPKG" >&5
8859 $as_echo "$MAKEPKG" >&6; }
8860 else
8861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8862 $as_echo "no" >&6; }
8867 makepkg=$MAKEPKG
8870 test -z "$PUBLICAN" && # Extract the first word of "publican", so it can be a program name with args.
8871 set dummy publican; ac_word=$2
8872 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8873 $as_echo_n "checking for $ac_word... " >&6; }
8874 if ${ac_cv_path_PUBLICAN+:} false; then :
8875 $as_echo_n "(cached) " >&6
8876 else
8877 case $PUBLICAN in
8878 [\\/]* | ?:[\\/]*)
8879 ac_cv_path_PUBLICAN="$PUBLICAN" # Let the user override the test with a path.
8882 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8883 for as_dir in $PATH
8885 IFS=$as_save_IFS
8886 test -z "$as_dir" && as_dir=.
8887 for ac_exec_ext in '' $ac_executable_extensions; do
8888 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8889 ac_cv_path_PUBLICAN="$as_dir/$ac_word$ac_exec_ext"
8890 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8891 break 2
8893 done
8894 done
8895 IFS=$as_save_IFS
8898 esac
8900 PUBLICAN=$ac_cv_path_PUBLICAN
8901 if test -n "$PUBLICAN"; then
8902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PUBLICAN" >&5
8903 $as_echo "$PUBLICAN" >&6; }
8904 else
8905 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8906 $as_echo "no" >&6; }
8910 publican=$PUBLICAN
8912 test -z "$DBLATEX" && # Extract the first word of "dblatex", so it can be a program name with args.
8913 set dummy dblatex; ac_word=$2
8914 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8915 $as_echo_n "checking for $ac_word... " >&6; }
8916 if ${ac_cv_path_DBLATEX+:} false; then :
8917 $as_echo_n "(cached) " >&6
8918 else
8919 case $DBLATEX in
8920 [\\/]* | ?:[\\/]*)
8921 ac_cv_path_DBLATEX="$DBLATEX" # Let the user override the test with a path.
8924 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8925 for as_dir in $PATH
8927 IFS=$as_save_IFS
8928 test -z "$as_dir" && as_dir=.
8929 for ac_exec_ext in '' $ac_executable_extensions; do
8930 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8931 ac_cv_path_DBLATEX="$as_dir/$ac_word$ac_exec_ext"
8932 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8933 break 2
8935 done
8936 done
8937 IFS=$as_save_IFS
8940 esac
8942 DBLATEX=$ac_cv_path_DBLATEX
8943 if test -n "$DBLATEX"; then
8944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBLATEX" >&5
8945 $as_echo "$DBLATEX" >&6; }
8946 else
8947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8948 $as_echo "no" >&6; }
8952 dblatex=$DBLATEX
8954 test -z "$XMLTO" && # Extract the first word of "xmlto", so it can be a program name with args.
8955 set dummy xmlto; ac_word=$2
8956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8957 $as_echo_n "checking for $ac_word... " >&6; }
8958 if ${ac_cv_path_XMLTO+:} false; then :
8959 $as_echo_n "(cached) " >&6
8960 else
8961 case $XMLTO in
8962 [\\/]* | ?:[\\/]*)
8963 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
8966 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8967 for as_dir in $PATH
8969 IFS=$as_save_IFS
8970 test -z "$as_dir" && as_dir=.
8971 for ac_exec_ext in '' $ac_executable_extensions; do
8972 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8973 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
8974 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8975 break 2
8977 done
8978 done
8979 IFS=$as_save_IFS
8982 esac
8984 XMLTO=$ac_cv_path_XMLTO
8985 if test -n "$XMLTO"; then
8986 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
8987 $as_echo "$XMLTO" >&6; }
8988 else
8989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8990 $as_echo "no" >&6; }
8994 xmlto=$XMLTO
8997 book_toolchain=""
8998 if test "$do_books" = "check" -o "$do_books" = "yes"
8999 then
9000 if test "$BOOK_TOOLCHAIN" != ""
9001 then
9002 book_toolchain=$BOOK_TOOLCHAIN
9003 elif test "$DBLATEX" != ""
9004 then
9005 book_toolchain=dblatex
9006 elif test "$PUBLICAN" != ""
9007 then
9008 book_toolchain=publican
9009 elif test "$XMLTO" != ""
9010 then
9011 book_toolchain=xmlto
9012 elif test "$do_books" = "yes"
9013 then
9014 as_fn_error $? "cannot enable books build - no toolchain found" "$LINENO" 5
9019 book_brand="common"
9020 if test "$do_books_brand" != ""
9021 then
9022 book_brand=$do_books_brand
9026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
9027 $as_echo_n "checking whether ln -s works... " >&6; }
9028 LN_S=$as_ln_s
9029 if test "$LN_S" = "ln -s"; then
9030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9031 $as_echo "yes" >&6; }
9032 else
9033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
9034 $as_echo "no, using $LN_S" >&6; }
9037 if test $target_os = mingw; then
9038 as_ln_s=/bin/true
9041 if test -d /proc
9042 then
9043 test -f /proc/stat || mount /proc >/dev/null 2>&1
9046 if test -n "$PROCPS"
9047 then
9048 pcp_ps_prog="$PROCPS"
9049 else
9050 pcp_ps_prog=ps
9054 if test $target_os = mingw
9055 then
9056 pcp_syslog_prog=pcp-eventlog
9057 else
9058 pcp_syslog_prog=logger
9062 grep=grep
9063 if test $target_os = solaris
9064 then
9065 test -f /usr/xpg4/bin/grep && grep=/usr/xpg4/bin/grep
9069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc " >&5
9070 $as_echo_n "checking for /proc ... " >&6; }
9071 if test "$cross_compiling" = "yes"; then
9072 ans=$have_procfs
9073 echo "cross-compile -> \"$ans\"" >&5
9074 elif test -d /proc
9075 then
9076 have_procfs=true
9077 else
9078 have_procfs=false
9080 if $have_procfs
9081 then
9082 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9083 $as_echo "yes" >&6; }
9085 $as_echo "#define HAVE_PROCFS 1" >>confdefs.h
9087 else
9088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9089 $as_echo "no" >&6; }
9092 ac_header_dirent=no
9093 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
9094 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
9095 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
9096 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
9097 if eval \${$as_ac_Header+:} false; then :
9098 $as_echo_n "(cached) " >&6
9099 else
9100 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9101 /* end confdefs.h. */
9102 #include <sys/types.h>
9103 #include <$ac_hdr>
9106 main ()
9108 if ((DIR *) 0)
9109 return 0;
9111 return 0;
9113 _ACEOF
9114 if ac_fn_c_try_compile "$LINENO"; then :
9115 eval "$as_ac_Header=yes"
9116 else
9117 eval "$as_ac_Header=no"
9119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9121 eval ac_res=\$$as_ac_Header
9122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
9123 $as_echo "$ac_res" >&6; }
9124 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9125 cat >>confdefs.h <<_ACEOF
9126 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
9127 _ACEOF
9129 ac_header_dirent=$ac_hdr; break
9132 done
9133 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
9134 if test $ac_header_dirent = dirent.h; then
9135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
9136 $as_echo_n "checking for library containing opendir... " >&6; }
9137 if ${ac_cv_search_opendir+:} false; then :
9138 $as_echo_n "(cached) " >&6
9139 else
9140 ac_func_search_save_LIBS=$LIBS
9141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9142 /* end confdefs.h. */
9144 /* Override any GCC internal prototype to avoid an error.
9145 Use char because int might match the return type of a GCC
9146 builtin and then its argument prototype would still apply. */
9147 #ifdef __cplusplus
9148 extern "C"
9149 #endif
9150 char opendir ();
9152 main ()
9154 return opendir ();
9156 return 0;
9158 _ACEOF
9159 for ac_lib in '' dir; do
9160 if test -z "$ac_lib"; then
9161 ac_res="none required"
9162 else
9163 ac_res=-l$ac_lib
9164 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9166 if ac_fn_c_try_link "$LINENO"; then :
9167 ac_cv_search_opendir=$ac_res
9169 rm -f core conftest.err conftest.$ac_objext \
9170 conftest$ac_exeext
9171 if ${ac_cv_search_opendir+:} false; then :
9172 break
9174 done
9175 if ${ac_cv_search_opendir+:} false; then :
9177 else
9178 ac_cv_search_opendir=no
9180 rm conftest.$ac_ext
9181 LIBS=$ac_func_search_save_LIBS
9183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
9184 $as_echo "$ac_cv_search_opendir" >&6; }
9185 ac_res=$ac_cv_search_opendir
9186 if test "$ac_res" != no; then :
9187 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9191 else
9192 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
9193 $as_echo_n "checking for library containing opendir... " >&6; }
9194 if ${ac_cv_search_opendir+:} false; then :
9195 $as_echo_n "(cached) " >&6
9196 else
9197 ac_func_search_save_LIBS=$LIBS
9198 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9199 /* end confdefs.h. */
9201 /* Override any GCC internal prototype to avoid an error.
9202 Use char because int might match the return type of a GCC
9203 builtin and then its argument prototype would still apply. */
9204 #ifdef __cplusplus
9205 extern "C"
9206 #endif
9207 char opendir ();
9209 main ()
9211 return opendir ();
9213 return 0;
9215 _ACEOF
9216 for ac_lib in '' x; do
9217 if test -z "$ac_lib"; then
9218 ac_res="none required"
9219 else
9220 ac_res=-l$ac_lib
9221 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
9223 if ac_fn_c_try_link "$LINENO"; then :
9224 ac_cv_search_opendir=$ac_res
9226 rm -f core conftest.err conftest.$ac_objext \
9227 conftest$ac_exeext
9228 if ${ac_cv_search_opendir+:} false; then :
9229 break
9231 done
9232 if ${ac_cv_search_opendir+:} false; then :
9234 else
9235 ac_cv_search_opendir=no
9237 rm conftest.$ac_ext
9238 LIBS=$ac_func_search_save_LIBS
9240 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
9241 $as_echo "$ac_cv_search_opendir" >&6; }
9242 ac_res=$ac_cv_search_opendir
9243 if test "$ac_res" != no; then :
9244 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9250 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9251 $as_echo_n "checking for ANSI C header files... " >&6; }
9252 if ${ac_cv_header_stdc+:} false; then :
9253 $as_echo_n "(cached) " >&6
9254 else
9255 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9256 /* end confdefs.h. */
9257 #include <stdlib.h>
9258 #include <stdarg.h>
9259 #include <string.h>
9260 #include <float.h>
9263 main ()
9267 return 0;
9269 _ACEOF
9270 if ac_fn_c_try_compile "$LINENO"; then :
9271 ac_cv_header_stdc=yes
9272 else
9273 ac_cv_header_stdc=no
9275 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9277 if test $ac_cv_header_stdc = yes; then
9278 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9279 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9280 /* end confdefs.h. */
9281 #include <string.h>
9283 _ACEOF
9284 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9285 $EGREP "memchr" >/dev/null 2>&1; then :
9287 else
9288 ac_cv_header_stdc=no
9290 rm -f conftest*
9294 if test $ac_cv_header_stdc = yes; then
9295 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9297 /* end confdefs.h. */
9298 #include <stdlib.h>
9300 _ACEOF
9301 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9302 $EGREP "free" >/dev/null 2>&1; then :
9304 else
9305 ac_cv_header_stdc=no
9307 rm -f conftest*
9311 if test $ac_cv_header_stdc = yes; then
9312 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9313 if test "$cross_compiling" = yes; then :
9315 else
9316 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9317 /* end confdefs.h. */
9318 #include <ctype.h>
9319 #include <stdlib.h>
9320 #if ((' ' & 0x0FF) == 0x020)
9321 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9322 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9323 #else
9324 # define ISLOWER(c) \
9325 (('a' <= (c) && (c) <= 'i') \
9326 || ('j' <= (c) && (c) <= 'r') \
9327 || ('s' <= (c) && (c) <= 'z'))
9328 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9329 #endif
9331 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9333 main ()
9335 int i;
9336 for (i = 0; i < 256; i++)
9337 if (XOR (islower (i), ISLOWER (i))
9338 || toupper (i) != TOUPPER (i))
9339 return 2;
9340 return 0;
9342 _ACEOF
9343 if ac_fn_c_try_run "$LINENO"; then :
9345 else
9346 ac_cv_header_stdc=no
9348 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9349 conftest.$ac_objext conftest.beam conftest.$ac_ext
9354 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9355 $as_echo "$ac_cv_header_stdc" >&6; }
9356 if test $ac_cv_header_stdc = yes; then
9358 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
9363 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
9364 if ${ac_cv_header_sys_wait_h+:} false; then :
9365 $as_echo_n "(cached) " >&6
9366 else
9367 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9368 /* end confdefs.h. */
9369 #include <sys/types.h>
9370 #include <sys/wait.h>
9371 #ifndef WEXITSTATUS
9372 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
9373 #endif
9374 #ifndef WIFEXITED
9375 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9376 #endif
9379 main ()
9381 int s;
9382 wait (&s);
9383 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9385 return 0;
9387 _ACEOF
9388 if ac_fn_c_try_compile "$LINENO"; then :
9389 ac_cv_header_sys_wait_h=yes
9390 else
9391 ac_cv_header_sys_wait_h=no
9393 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
9396 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
9397 if test $ac_cv_header_sys_wait_h = yes; then
9399 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
9403 for ac_header in fcntl.h limits.h malloc.h strings.h syslog.h
9404 do :
9405 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9406 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9407 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9408 cat >>confdefs.h <<_ACEOF
9409 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9410 _ACEOF
9414 done
9416 for ac_header in stddef.h sched.h dlfcn.h dl.h
9417 do :
9418 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9419 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9420 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9421 cat >>confdefs.h <<_ACEOF
9422 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9423 _ACEOF
9427 done
9429 for ac_header in sys/times.h sys/resource.h sys/prctl.h
9430 do :
9431 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9432 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9433 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9434 cat >>confdefs.h <<_ACEOF
9435 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9436 _ACEOF
9440 done
9442 for ac_header in sys/sysinfo.h sys/systeminfo.h
9443 do :
9444 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9445 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9446 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9447 cat >>confdefs.h <<_ACEOF
9448 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9449 _ACEOF
9453 done
9455 for ac_header in endian.h standards.h sys/byteorder.h
9456 do :
9457 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9458 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9459 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9460 cat >>confdefs.h <<_ACEOF
9461 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9462 _ACEOF
9466 done
9468 for ac_header in libgen.h sys/mman.h sys/un.h
9469 do :
9470 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9471 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9472 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9473 cat >>confdefs.h <<_ACEOF
9474 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9475 _ACEOF
9479 done
9481 for ac_header in values.h stdint.h ieeefp.h math.h
9482 do :
9483 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9484 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9485 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9486 cat >>confdefs.h <<_ACEOF
9487 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9488 _ACEOF
9492 done
9494 for ac_header in pwd.h grp.h regex.h sys/wait.h
9495 do :
9496 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9497 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9498 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9499 cat >>confdefs.h <<_ACEOF
9500 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9501 _ACEOF
9505 done
9507 for ac_header in termio.h termios.h sys/termios.h
9508 do :
9509 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9510 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9511 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9512 cat >>confdefs.h <<_ACEOF
9513 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9514 _ACEOF
9518 done
9520 for ac_header in sys/ioctl.h sys/select.h sys/socket.h
9521 do :
9522 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9523 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9524 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9525 cat >>confdefs.h <<_ACEOF
9526 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9527 _ACEOF
9531 done
9533 for ac_header in netdb.h
9534 do :
9535 ac_fn_c_check_header_mongrel "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default"
9536 if test "x$ac_cv_header_netdb_h" = xyes; then :
9537 cat >>confdefs.h <<_ACEOF
9538 #define HAVE_NETDB_H 1
9539 _ACEOF
9543 done
9545 if test $target_os = darwin -o $target_os = openbsd
9546 then
9547 for ac_header in net/if.h
9548 do :
9549 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "#include <sys/types.h>
9550 #include <sys/socket.h>
9552 if test "x$ac_cv_header_net_if_h" = xyes; then :
9553 cat >>confdefs.h <<_ACEOF
9554 #define HAVE_NET_IF_H 1
9555 _ACEOF
9559 done
9561 else
9562 for ac_header in net/if.h
9563 do :
9564 ac_fn_c_check_header_mongrel "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default"
9565 if test "x$ac_cv_header_net_if_h" = xyes; then :
9566 cat >>confdefs.h <<_ACEOF
9567 #define HAVE_NET_IF_H 1
9568 _ACEOF
9572 done
9575 for ac_header in netinet/in.h netinet/tcp.h arpa/inet.h
9576 do :
9577 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9578 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9579 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9580 cat >>confdefs.h <<_ACEOF
9581 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9582 _ACEOF
9586 done
9588 for ac_header in windows.h winsock2.h ws2tcpip.h
9589 do :
9590 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9591 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9592 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9593 cat >>confdefs.h <<_ACEOF
9594 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9595 _ACEOF
9599 done
9601 for ac_header in execinfo.h bits/wordsize.h
9602 do :
9603 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9604 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9605 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9606 cat >>confdefs.h <<_ACEOF
9607 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9608 _ACEOF
9612 done
9614 for ac_header in iptypes.h
9615 do :
9616 ac_fn_c_check_header_compile "$LINENO" "iptypes.h" "ac_cv_header_iptypes_h" "#include <windows.h>
9618 if test "x$ac_cv_header_iptypes_h" = xyes; then :
9619 cat >>confdefs.h <<_ACEOF
9620 #define HAVE_IPTYPES_H 1
9621 _ACEOF
9625 done
9627 for ac_header in iphlpapi.h
9628 do :
9629 ac_fn_c_check_header_compile "$LINENO" "iphlpapi.h" "ac_cv_header_iphlpapi_h" "#include <winsock2.h>
9631 if test "x$ac_cv_header_iphlpapi_h" = xyes; then :
9632 cat >>confdefs.h <<_ACEOF
9633 #define HAVE_IPHLPAPI_H 1
9634 _ACEOF
9638 done
9640 for ac_header in fts.h libzfs.h
9641 do :
9642 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9643 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9644 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9645 cat >>confdefs.h <<_ACEOF
9646 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9647 _ACEOF
9651 done
9653 for ac_header in sys/statvfs.h sys/statfs.h sys/mount.h
9654 do :
9655 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9656 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9657 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9658 cat >>confdefs.h <<_ACEOF
9659 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9660 _ACEOF
9664 done
9667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/endian.h " >&5
9668 $as_echo_n "checking for sys/endian.h ... " >&6; }
9669 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9670 /* end confdefs.h. */
9672 #include <sys/endian.h>
9675 main ()
9680 return 0;
9682 _ACEOF
9683 if ac_fn_c_try_compile "$LINENO"; then :
9685 $as_echo "#define HAVE_SYS_ENDIAN_H 1" >>confdefs.h
9686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9687 $as_echo "yes" >&6; }
9688 else
9689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9690 $as_echo "no" >&6; }
9692 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for machine/endian.h " >&5
9695 $as_echo_n "checking for machine/endian.h ... " >&6; }
9696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9697 /* end confdefs.h. */
9699 #include <machine/endian.h>
9702 main ()
9707 return 0;
9709 _ACEOF
9710 if ac_fn_c_try_compile "$LINENO"; then :
9712 $as_echo "#define HAVE_MACHINE_ENDIAN_H 1" >>confdefs.h
9713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9714 $as_echo "yes" >&6; }
9715 else
9716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9717 $as_echo "no" >&6; }
9719 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/endian.h (IRIX variant) " >&5
9722 $as_echo_n "checking for sys/endian.h (IRIX variant) ... " >&6; }
9723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9724 /* end confdefs.h. */
9726 #include <standards.h>
9727 #include <sys/endian.h>
9730 main ()
9735 return 0;
9737 _ACEOF
9738 if ac_fn_c_try_compile "$LINENO"; then :
9740 $as_echo "#define HAVE_SYS_ENDIAN_H 1" >>confdefs.h
9741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9742 $as_echo "yes" >&6; }
9743 else
9744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9745 $as_echo "no" >&6; }
9747 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9749 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
9750 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
9751 if ${ac_cv_c_const+:} false; then :
9752 $as_echo_n "(cached) " >&6
9753 else
9754 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9755 /* end confdefs.h. */
9758 main ()
9761 #ifndef __cplusplus
9762 /* Ultrix mips cc rejects this sort of thing. */
9763 typedef int charset[2];
9764 const charset cs = { 0, 0 };
9765 /* SunOS 4.1.1 cc rejects this. */
9766 char const *const *pcpcc;
9767 char **ppc;
9768 /* NEC SVR4.0.2 mips cc rejects this. */
9769 struct point {int x, y;};
9770 static struct point const zero = {0,0};
9771 /* AIX XL C 1.02.0.0 rejects this.
9772 It does not let you subtract one const X* pointer from another in
9773 an arm of an if-expression whose if-part is not a constant
9774 expression */
9775 const char *g = "string";
9776 pcpcc = &g + (g ? g-g : 0);
9777 /* HPUX 7.0 cc rejects these. */
9778 ++pcpcc;
9779 ppc = (char**) pcpcc;
9780 pcpcc = (char const *const *) ppc;
9781 { /* SCO 3.2v4 cc rejects this sort of thing. */
9782 char tx;
9783 char *t = &tx;
9784 char const *s = 0 ? (char *) 0 : (char const *) 0;
9786 *t++ = 0;
9787 if (s) return 0;
9789 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9790 int x[] = {25, 17};
9791 const int *foo = &x[0];
9792 ++foo;
9794 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9795 typedef const int *iptr;
9796 iptr p = 0;
9797 ++p;
9799 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
9800 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9801 struct s { int j; const int *ap[3]; } bx;
9802 struct s *b = &bx; b->j = 5;
9804 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9805 const int foo = 10;
9806 if (!foo) return 0;
9808 return !cs[0] && !zero.x;
9809 #endif
9812 return 0;
9814 _ACEOF
9815 if ac_fn_c_try_compile "$LINENO"; then :
9816 ac_cv_c_const=yes
9817 else
9818 ac_cv_c_const=no
9820 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
9823 $as_echo "$ac_cv_c_const" >&6; }
9824 if test $ac_cv_c_const = no; then
9826 $as_echo "#define const /**/" >>confdefs.h
9830 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
9831 if test "x$ac_cv_type_off_t" = xyes; then :
9833 else
9835 cat >>confdefs.h <<_ACEOF
9836 #define off_t long int
9837 _ACEOF
9841 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9842 if test "x$ac_cv_type_pid_t" = xyes; then :
9844 else
9846 cat >>confdefs.h <<_ACEOF
9847 #define pid_t int
9848 _ACEOF
9852 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
9853 if test "x$ac_cv_type_size_t" = xyes; then :
9855 else
9857 cat >>confdefs.h <<_ACEOF
9858 #define size_t unsigned int
9859 _ACEOF
9863 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
9864 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
9865 if ${ac_cv_header_time+:} false; then :
9866 $as_echo_n "(cached) " >&6
9867 else
9868 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9869 /* end confdefs.h. */
9870 #include <sys/types.h>
9871 #include <sys/time.h>
9872 #include <time.h>
9875 main ()
9877 if ((struct tm *) 0)
9878 return 0;
9880 return 0;
9882 _ACEOF
9883 if ac_fn_c_try_compile "$LINENO"; then :
9884 ac_cv_header_time=yes
9885 else
9886 ac_cv_header_time=no
9888 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9890 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
9891 $as_echo "$ac_cv_header_time" >&6; }
9892 if test $ac_cv_header_time = yes; then
9894 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
9898 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
9899 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
9900 if ${ac_cv_struct_tm+:} false; then :
9901 $as_echo_n "(cached) " >&6
9902 else
9903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9904 /* end confdefs.h. */
9905 #include <sys/types.h>
9906 #include <time.h>
9909 main ()
9911 struct tm tm;
9912 int *p = &tm.tm_sec;
9913 return !p;
9915 return 0;
9917 _ACEOF
9918 if ac_fn_c_try_compile "$LINENO"; then :
9919 ac_cv_struct_tm=time.h
9920 else
9921 ac_cv_struct_tm=sys/time.h
9923 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
9926 $as_echo "$ac_cv_struct_tm" >&6; }
9927 if test $ac_cv_struct_tm = sys/time.h; then
9929 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
9933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
9934 $as_echo_n "checking for inline... " >&6; }
9935 if ${ac_cv_c_inline+:} false; then :
9936 $as_echo_n "(cached) " >&6
9937 else
9938 ac_cv_c_inline=no
9939 for ac_kw in inline __inline__ __inline; do
9940 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9941 /* end confdefs.h. */
9942 #ifndef __cplusplus
9943 typedef int foo_t;
9944 static $ac_kw foo_t static_foo () {return 0; }
9945 $ac_kw foo_t foo () {return 0; }
9946 #endif
9948 _ACEOF
9949 if ac_fn_c_try_compile "$LINENO"; then :
9950 ac_cv_c_inline=$ac_kw
9952 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9953 test "$ac_cv_c_inline" != no && break
9954 done
9957 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
9958 $as_echo "$ac_cv_c_inline" >&6; }
9960 case $ac_cv_c_inline in
9961 inline | yes) ;;
9963 case $ac_cv_c_inline in
9964 no) ac_val=;;
9965 *) ac_val=$ac_cv_c_inline;;
9966 esac
9967 cat >>confdefs.h <<_ACEOF
9968 #ifndef __cplusplus
9969 #define inline $ac_val
9970 #endif
9971 _ACEOF
9973 esac
9976 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regcomp in -lregex" >&5
9977 $as_echo_n "checking for regcomp in -lregex... " >&6; }
9978 if ${ac_cv_lib_regex_regcomp+:} false; then :
9979 $as_echo_n "(cached) " >&6
9980 else
9981 ac_check_lib_save_LIBS=$LIBS
9982 LIBS="-lregex $LIBS"
9983 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9984 /* end confdefs.h. */
9986 /* Override any GCC internal prototype to avoid an error.
9987 Use char because int might match the return type of a GCC
9988 builtin and then its argument prototype would still apply. */
9989 #ifdef __cplusplus
9990 extern "C"
9991 #endif
9992 char regcomp ();
9994 main ()
9996 return regcomp ();
9998 return 0;
10000 _ACEOF
10001 if ac_fn_c_try_link "$LINENO"; then :
10002 ac_cv_lib_regex_regcomp=yes
10003 else
10004 ac_cv_lib_regex_regcomp=no
10006 rm -f core conftest.err conftest.$ac_objext \
10007 conftest$ac_exeext conftest.$ac_ext
10008 LIBS=$ac_check_lib_save_LIBS
10010 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_regex_regcomp" >&5
10011 $as_echo "$ac_cv_lib_regex_regcomp" >&6; }
10012 if test "x$ac_cv_lib_regex_regcomp" = xyes; then :
10013 cat >>confdefs.h <<_ACEOF
10014 #define HAVE_LIBREGEX 1
10015 _ACEOF
10017 LIBS="-lregex $LIBS"
10021 lib_for_regex=""
10022 if test $ac_cv_lib_regex_regcomp = yes
10023 then
10024 lib_for_regex="-lregex"
10029 pkg_failed=no
10030 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ncurses" >&5
10031 $as_echo_n "checking for ncurses... " >&6; }
10033 if test -n "$ncurses_CFLAGS"; then
10034 pkg_cv_ncurses_CFLAGS="$ncurses_CFLAGS"
10035 elif test -n "$PKG_CONFIG"; then
10036 if test -n "$PKG_CONFIG" && \
10037 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncurses\""; } >&5
10038 ($PKG_CONFIG --exists --print-errors "ncurses") 2>&5
10039 ac_status=$?
10040 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10041 test $ac_status = 0; }; then
10042 pkg_cv_ncurses_CFLAGS=`$PKG_CONFIG --cflags "ncurses" 2>/dev/null`
10043 test "x$?" != "x0" && pkg_failed=yes
10044 else
10045 pkg_failed=yes
10047 else
10048 pkg_failed=untried
10050 if test -n "$ncurses_LIBS"; then
10051 pkg_cv_ncurses_LIBS="$ncurses_LIBS"
10052 elif test -n "$PKG_CONFIG"; then
10053 if test -n "$PKG_CONFIG" && \
10054 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncurses\""; } >&5
10055 ($PKG_CONFIG --exists --print-errors "ncurses") 2>&5
10056 ac_status=$?
10057 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10058 test $ac_status = 0; }; then
10059 pkg_cv_ncurses_LIBS=`$PKG_CONFIG --libs "ncurses" 2>/dev/null`
10060 test "x$?" != "x0" && pkg_failed=yes
10061 else
10062 pkg_failed=yes
10064 else
10065 pkg_failed=untried
10070 if test $pkg_failed = yes; then
10071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10072 $as_echo "no" >&6; }
10074 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10075 _pkg_short_errors_supported=yes
10076 else
10077 _pkg_short_errors_supported=no
10079 if test $_pkg_short_errors_supported = yes; then
10080 ncurses_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ncurses" 2>&1`
10081 else
10082 ncurses_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ncurses" 2>&1`
10084 # Put the nasty error message in config.log where it belongs
10085 echo "$ncurses_PKG_ERRORS" >&5
10087 have_ncurses=false
10088 elif test $pkg_failed = untried; then
10089 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10090 $as_echo "no" >&6; }
10091 have_ncurses=false
10092 else
10093 ncurses_CFLAGS=$pkg_cv_ncurses_CFLAGS
10094 ncurses_LIBS=$pkg_cv_ncurses_LIBS
10095 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10096 $as_echo "yes" >&6; }
10097 have_ncurses=true
10099 HAVE_NCURSES=$have_ncurses
10103 pkg_failed=no
10104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD" >&5
10105 $as_echo_n "checking for SYSTEMD... " >&6; }
10107 if test -n "$SYSTEMD_CFLAGS"; then
10108 pkg_cv_SYSTEMD_CFLAGS="$SYSTEMD_CFLAGS"
10109 elif test -n "$PKG_CONFIG"; then
10110 if test -n "$PKG_CONFIG" && \
10111 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5
10112 ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5
10113 ac_status=$?
10114 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10115 test $ac_status = 0; }; then
10116 pkg_cv_SYSTEMD_CFLAGS=`$PKG_CONFIG --cflags "libsystemd" 2>/dev/null`
10117 test "x$?" != "x0" && pkg_failed=yes
10118 else
10119 pkg_failed=yes
10121 else
10122 pkg_failed=untried
10124 if test -n "$SYSTEMD_LIBS"; then
10125 pkg_cv_SYSTEMD_LIBS="$SYSTEMD_LIBS"
10126 elif test -n "$PKG_CONFIG"; then
10127 if test -n "$PKG_CONFIG" && \
10128 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd\""; } >&5
10129 ($PKG_CONFIG --exists --print-errors "libsystemd") 2>&5
10130 ac_status=$?
10131 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10132 test $ac_status = 0; }; then
10133 pkg_cv_SYSTEMD_LIBS=`$PKG_CONFIG --libs "libsystemd" 2>/dev/null`
10134 test "x$?" != "x0" && pkg_failed=yes
10135 else
10136 pkg_failed=yes
10138 else
10139 pkg_failed=untried
10144 if test $pkg_failed = yes; then
10145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10146 $as_echo "no" >&6; }
10148 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10149 _pkg_short_errors_supported=yes
10150 else
10151 _pkg_short_errors_supported=no
10153 if test $_pkg_short_errors_supported = yes; then
10154 SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd" 2>&1`
10155 else
10156 SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd" 2>&1`
10158 # Put the nasty error message in config.log where it belongs
10159 echo "$SYSTEMD_PKG_ERRORS" >&5
10161 pmda_systemd=false
10162 elif test $pkg_failed = untried; then
10163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10164 $as_echo "no" >&6; }
10165 pmda_systemd=false
10166 else
10167 SYSTEMD_CFLAGS=$pkg_cv_SYSTEMD_CFLAGS
10168 SYSTEMD_LIBS=$pkg_cv_SYSTEMD_LIBS
10169 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10170 $as_echo "yes" >&6; }
10171 pmda_systemd=true
10173 if $pmda_systemd
10174 then
10176 else
10178 pkg_failed=no
10179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD" >&5
10180 $as_echo_n "checking for SYSTEMD... " >&6; }
10182 if test -n "$SYSTEMD_CFLAGS"; then
10183 pkg_cv_SYSTEMD_CFLAGS="$SYSTEMD_CFLAGS"
10184 elif test -n "$PKG_CONFIG"; then
10185 if test -n "$PKG_CONFIG" && \
10186 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-journal\""; } >&5
10187 ($PKG_CONFIG --exists --print-errors "libsystemd-journal") 2>&5
10188 ac_status=$?
10189 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10190 test $ac_status = 0; }; then
10191 pkg_cv_SYSTEMD_CFLAGS=`$PKG_CONFIG --cflags "libsystemd-journal" 2>/dev/null`
10192 test "x$?" != "x0" && pkg_failed=yes
10193 else
10194 pkg_failed=yes
10196 else
10197 pkg_failed=untried
10199 if test -n "$SYSTEMD_LIBS"; then
10200 pkg_cv_SYSTEMD_LIBS="$SYSTEMD_LIBS"
10201 elif test -n "$PKG_CONFIG"; then
10202 if test -n "$PKG_CONFIG" && \
10203 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-journal\""; } >&5
10204 ($PKG_CONFIG --exists --print-errors "libsystemd-journal") 2>&5
10205 ac_status=$?
10206 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10207 test $ac_status = 0; }; then
10208 pkg_cv_SYSTEMD_LIBS=`$PKG_CONFIG --libs "libsystemd-journal" 2>/dev/null`
10209 test "x$?" != "x0" && pkg_failed=yes
10210 else
10211 pkg_failed=yes
10213 else
10214 pkg_failed=untried
10219 if test $pkg_failed = yes; then
10220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10221 $as_echo "no" >&6; }
10223 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10224 _pkg_short_errors_supported=yes
10225 else
10226 _pkg_short_errors_supported=no
10228 if test $_pkg_short_errors_supported = yes; then
10229 SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd-journal" 2>&1`
10230 else
10231 SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd-journal" 2>&1`
10233 # Put the nasty error message in config.log where it belongs
10234 echo "$SYSTEMD_PKG_ERRORS" >&5
10236 pmda_systemd=false
10237 elif test $pkg_failed = untried; then
10238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10239 $as_echo "no" >&6; }
10240 pmda_systemd=false
10241 else
10242 SYSTEMD_CFLAGS=$pkg_cv_SYSTEMD_CFLAGS
10243 SYSTEMD_LIBS=$pkg_cv_SYSTEMD_LIBS
10244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10245 $as_echo "yes" >&6; }
10246 pmda_systemd=true
10249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the systemd PMDA should be included" >&5
10250 $as_echo_n "checking if the systemd PMDA should be included... " >&6; }
10251 PMDA_SYSTEMD=$pmda_systemd
10253 if $pmda_systemd; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10254 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10255 $as_echo "no" >&6; }; fi
10257 pmda_infiniband=false
10258 if test "x$do_infiniband" != "xno"; then :
10260 for ac_header in infiniband/umad.h
10261 do :
10262 ac_fn_c_check_header_mongrel "$LINENO" "infiniband/umad.h" "ac_cv_header_infiniband_umad_h" "$ac_includes_default"
10263 if test "x$ac_cv_header_infiniband_umad_h" = xyes; then :
10264 cat >>confdefs.h <<_ACEOF
10265 #define HAVE_INFINIBAND_UMAD_H 1
10266 _ACEOF
10268 for ac_header in infiniband/mad.h
10269 do :
10270 ac_fn_c_check_header_mongrel "$LINENO" "infiniband/mad.h" "ac_cv_header_infiniband_mad_h" "$ac_includes_default"
10271 if test "x$ac_cv_header_infiniband_mad_h" = xyes; then :
10272 cat >>confdefs.h <<_ACEOF
10273 #define HAVE_INFINIBAND_MAD_H 1
10274 _ACEOF
10275 pmda_infiniband=true
10278 done
10283 done
10285 savedLIBS=$LIBS
10286 IB_LIBS=""
10287 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for madrpc_init in -libmad" >&5
10288 $as_echo_n "checking for madrpc_init in -libmad... " >&6; }
10289 if ${ac_cv_lib_ibmad_madrpc_init+:} false; then :
10290 $as_echo_n "(cached) " >&6
10291 else
10292 ac_check_lib_save_LIBS=$LIBS
10293 LIBS="-libmad $LIBS"
10294 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10295 /* end confdefs.h. */
10297 /* Override any GCC internal prototype to avoid an error.
10298 Use char because int might match the return type of a GCC
10299 builtin and then its argument prototype would still apply. */
10300 #ifdef __cplusplus
10301 extern "C"
10302 #endif
10303 char madrpc_init ();
10305 main ()
10307 return madrpc_init ();
10309 return 0;
10311 _ACEOF
10312 if ac_fn_c_try_link "$LINENO"; then :
10313 ac_cv_lib_ibmad_madrpc_init=yes
10314 else
10315 ac_cv_lib_ibmad_madrpc_init=no
10317 rm -f core conftest.err conftest.$ac_objext \
10318 conftest$ac_exeext conftest.$ac_ext
10319 LIBS=$ac_check_lib_save_LIBS
10321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ibmad_madrpc_init" >&5
10322 $as_echo "$ac_cv_lib_ibmad_madrpc_init" >&6; }
10323 if test "x$ac_cv_lib_ibmad_madrpc_init" = xyes; then :
10324 cat >>confdefs.h <<_ACEOF
10325 #define HAVE_LIBIBMAD 1
10326 _ACEOF
10328 LIBS="-libmad $LIBS"
10332 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umad_init in -libumad" >&5
10333 $as_echo_n "checking for umad_init in -libumad... " >&6; }
10334 if ${ac_cv_lib_ibumad_umad_init+:} false; then :
10335 $as_echo_n "(cached) " >&6
10336 else
10337 ac_check_lib_save_LIBS=$LIBS
10338 LIBS="-libumad $LIBS"
10339 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10340 /* end confdefs.h. */
10342 /* Override any GCC internal prototype to avoid an error.
10343 Use char because int might match the return type of a GCC
10344 builtin and then its argument prototype would still apply. */
10345 #ifdef __cplusplus
10346 extern "C"
10347 #endif
10348 char umad_init ();
10350 main ()
10352 return umad_init ();
10354 return 0;
10356 _ACEOF
10357 if ac_fn_c_try_link "$LINENO"; then :
10358 ac_cv_lib_ibumad_umad_init=yes
10359 else
10360 ac_cv_lib_ibumad_umad_init=no
10362 rm -f core conftest.err conftest.$ac_objext \
10363 conftest$ac_exeext conftest.$ac_ext
10364 LIBS=$ac_check_lib_save_LIBS
10366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ibumad_umad_init" >&5
10367 $as_echo "$ac_cv_lib_ibumad_umad_init" >&6; }
10368 if test "x$ac_cv_lib_ibumad_umad_init" = xyes; then :
10369 cat >>confdefs.h <<_ACEOF
10370 #define HAVE_LIBIBUMAD 1
10371 _ACEOF
10373 LIBS="-libumad $LIBS"
10377 if test $ac_cv_lib_ibmad_madrpc_init = yes -a $ac_cv_lib_ibumad_umad_init = yes
10378 then
10379 IB_LIBS="-libmad -libumad"
10380 LIBS="$IB_LIBS"
10381 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for port_performance_query_via" >&5
10382 $as_echo_n "checking for port_performance_query_via... " >&6; }
10383 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10384 /* end confdefs.h. */
10386 /* Override any GCC internal prototype to avoid an error.
10387 Use char because int might match the return type of a GCC
10388 builtin and then its argument prototype would still apply. */
10389 #ifdef __cplusplus
10390 extern "C"
10391 #endif
10392 char port_performance_query_via ();
10394 main ()
10396 return port_performance_query_via ();
10398 return 0;
10400 _ACEOF
10401 if ac_fn_c_try_link "$LINENO"; then :
10403 $as_echo "#define HAVE_PORT_PERFORMANCE_QUERY_VIA 1" >>confdefs.h
10405 have_port_performance_query_via=true
10406 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10407 $as_echo "yes" >&6; }
10408 else
10409 have_port_performance_query_via=false
10410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10411 $as_echo "no" >&6; }
10413 rm -f core conftest.err conftest.$ac_objext \
10414 conftest$ac_exeext conftest.$ac_ext
10415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pma_query_via" >&5
10416 $as_echo_n "checking for pma_query_via... " >&6; }
10417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10418 /* end confdefs.h. */
10420 /* Override any GCC internal prototype to avoid an error.
10421 Use char because int might match the return type of a GCC
10422 builtin and then its argument prototype would still apply. */
10423 #ifdef __cplusplus
10424 extern "C"
10425 #endif
10426 char pma_query_via ();
10428 main ()
10430 return pma_query_via ();
10432 return 0;
10434 _ACEOF
10435 if ac_fn_c_try_link "$LINENO"; then :
10437 $as_echo "#define HAVE_PMA_QUERY_VIA 1" >>confdefs.h
10439 have_pma_query_via=true
10440 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10441 $as_echo "yes" >&6; }
10442 else
10443 have_pma_query_via=false
10444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10445 $as_echo "no" >&6; }
10447 rm -f core conftest.err conftest.$ac_objext \
10448 conftest$ac_exeext conftest.$ac_ext
10449 LIBS=$savedLIBS
10450 if test $have_pma_query_via -o $have_port_performance_query_via
10451 then
10453 else
10454 pmda_infiniband=false
10456 else
10457 pmda_infiniband=false
10459 LIBS=$savedLIBS
10463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the infiniband PMDA should be included" >&5
10464 $as_echo_n "checking if the infiniband PMDA should be included... " >&6; }
10465 PMDA_INFINIBAND=$pmda_infiniband
10467 if $pmda_infiniband; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10468 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10469 $as_echo "no" >&6; }; fi
10471 pmda_papi=false
10472 if test "x$do_papi" != "xno"; then :
10474 enable_papi=true
10476 saved_LDFLAGS="$LDFLAGS"
10477 saved_CFLAGS="$CFLAGS"
10478 savedLIBS=$LIBS
10480 CFLAGS="$papi_CFLAGS"
10481 LDFLAGS="$papi_LIBS"
10483 case "$do_papi" in
10484 yes|no|check)
10486 */*)
10487 PAPI_ROOTDIR=$do_papi;
10488 CFLAGS="-I$PAPI_ROOTDIR/include"
10489 LDFLAGS="-L$PAPI_ROOTDIR/lib"
10493 pkg_failed=no
10494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for papi" >&5
10495 $as_echo_n "checking for papi... " >&6; }
10497 if test -n "$papi_CFLAGS"; then
10498 pkg_cv_papi_CFLAGS="$papi_CFLAGS"
10499 elif test -n "$PKG_CONFIG"; then
10500 if test -n "$PKG_CONFIG" && \
10501 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$do_papi\""; } >&5
10502 ($PKG_CONFIG --exists --print-errors "$do_papi") 2>&5
10503 ac_status=$?
10504 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10505 test $ac_status = 0; }; then
10506 pkg_cv_papi_CFLAGS=`$PKG_CONFIG --cflags "$do_papi" 2>/dev/null`
10507 test "x$?" != "x0" && pkg_failed=yes
10508 else
10509 pkg_failed=yes
10511 else
10512 pkg_failed=untried
10514 if test -n "$papi_LIBS"; then
10515 pkg_cv_papi_LIBS="$papi_LIBS"
10516 elif test -n "$PKG_CONFIG"; then
10517 if test -n "$PKG_CONFIG" && \
10518 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$do_papi\""; } >&5
10519 ($PKG_CONFIG --exists --print-errors "$do_papi") 2>&5
10520 ac_status=$?
10521 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10522 test $ac_status = 0; }; then
10523 pkg_cv_papi_LIBS=`$PKG_CONFIG --libs "$do_papi" 2>/dev/null`
10524 test "x$?" != "x0" && pkg_failed=yes
10525 else
10526 pkg_failed=yes
10528 else
10529 pkg_failed=untried
10534 if test $pkg_failed = yes; then
10535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10536 $as_echo "no" >&6; }
10538 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10539 _pkg_short_errors_supported=yes
10540 else
10541 _pkg_short_errors_supported=no
10543 if test $_pkg_short_errors_supported = yes; then
10544 papi_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$do_papi" 2>&1`
10545 else
10546 papi_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$do_papi" 2>&1`
10548 # Put the nasty error message in config.log where it belongs
10549 echo "$papi_PKG_ERRORS" >&5
10551 as_fn_error $? "Package requirements ($do_papi) were not met:
10553 $papi_PKG_ERRORS
10555 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10556 installed software in a non-standard prefix.
10558 Alternatively, you may set the environment variables papi_CFLAGS
10559 and papi_LIBS to avoid the need to call pkg-config.
10560 See the pkg-config man page for more details." "$LINENO" 5
10561 elif test $pkg_failed = untried; then
10562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10563 $as_echo "no" >&6; }
10564 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10565 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10566 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
10567 is in your PATH or set the PKG_CONFIG environment variable to the full
10568 path to pkg-config.
10570 Alternatively, you may set the environment variables papi_CFLAGS
10571 and papi_LIBS to avoid the need to call pkg-config.
10572 See the pkg-config man page for more details.
10574 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10575 See \`config.log' for more details" "$LINENO" 5; }
10576 else
10577 papi_CFLAGS=$pkg_cv_papi_CFLAGS
10578 papi_LIBS=$pkg_cv_papi_LIBS
10579 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10580 $as_echo "yes" >&6; }
10582 CFLAGS="$papi_CFLAGS"
10583 LDFLAGS="$papi_LIBS"
10586 esac
10588 # $papi_LIBS may include -lpapi harmlessly redudantly with AC_CHECK_LIB
10589 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PAPI_library_init in -lpapi" >&5
10590 $as_echo_n "checking for PAPI_library_init in -lpapi... " >&6; }
10591 if ${ac_cv_lib_papi_PAPI_library_init+:} false; then :
10592 $as_echo_n "(cached) " >&6
10593 else
10594 ac_check_lib_save_LIBS=$LIBS
10595 LIBS="-lpapi $LIBS"
10596 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10597 /* end confdefs.h. */
10599 /* Override any GCC internal prototype to avoid an error.
10600 Use char because int might match the return type of a GCC
10601 builtin and then its argument prototype would still apply. */
10602 #ifdef __cplusplus
10603 extern "C"
10604 #endif
10605 char PAPI_library_init ();
10607 main ()
10609 return PAPI_library_init ();
10611 return 0;
10613 _ACEOF
10614 if ac_fn_c_try_link "$LINENO"; then :
10615 ac_cv_lib_papi_PAPI_library_init=yes
10616 else
10617 ac_cv_lib_papi_PAPI_library_init=no
10619 rm -f core conftest.err conftest.$ac_objext \
10620 conftest$ac_exeext conftest.$ac_ext
10621 LIBS=$ac_check_lib_save_LIBS
10623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_papi_PAPI_library_init" >&5
10624 $as_echo "$ac_cv_lib_papi_PAPI_library_init" >&6; }
10625 if test "x$ac_cv_lib_papi_PAPI_library_init" = xyes; then :
10626 papi_libs="$LDFLAGS -lpapi"
10627 else
10628 enable_papi=false
10631 for ac_header in papi.h
10632 do :
10633 ac_fn_c_check_header_mongrel "$LINENO" "papi.h" "ac_cv_header_papi_h" "$ac_includes_default"
10634 if test "x$ac_cv_header_papi_h" = xyes; then :
10635 cat >>confdefs.h <<_ACEOF
10636 #define HAVE_PAPI_H 1
10637 _ACEOF
10638 papi_cflags="$CFLAGS"
10639 else
10640 enable_papi=false
10643 done
10645 if test "$do_papi" != "check" -a "$enable_papi" != "true"
10646 then
10647 as_fn_error $? "PAPI is not installed, cannot enable the PAPI PMDA" "$LINENO" 5
10648 else
10649 pmda_papi=$enable_papi
10651 LIBS=$savedLIBS
10652 CFLAGS="$saved_CFLAGS"
10653 LDFLAGS="$saved_LDFLAGS"
10654 PAPI_CFLAGS=$papi_cflags
10656 PAPI_LIBS=$papi_libs
10660 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the papi PMDA should be included" >&5
10661 $as_echo_n "checking if the papi PMDA should be included... " >&6; }
10662 PMDA_PAPI=$pmda_papi
10664 if $pmda_papi; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10665 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10666 $as_echo "no" >&6; }; fi
10668 if test "x$pmda_papi" = "xtrue"; then :
10670 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct PAPI_component_info_t has a disabled field" >&5
10671 $as_echo_n "checking whether struct PAPI_component_info_t has a disabled field... " >&6; }
10672 cat <<End-of-File >conftest.c
10673 #include <papi.h>
10674 int main() { PAPI_component_info_t *c; c->disabled = 0; }
10675 End-of-File
10676 (eval $ac_compile) 2>conftest.out
10677 cat conftest.out >&5
10678 if test -s conftest.out
10679 then
10680 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10681 $as_echo "no" >&6; }
10682 else
10684 $as_echo "#define HAVE_PAPI_DISABLED_COMP 1" >>confdefs.h
10686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10687 $as_echo "yes" >&6; }
10690 rm -f conftest.*
10694 pmda_perfevent=false
10695 if test "x$do_perfevent" != "xno" ; then :
10697 enable_perfevent=true
10699 savedLIBS=$LIBS
10700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pfm_get_os_event_encoding in -lpfm" >&5
10701 $as_echo_n "checking for pfm_get_os_event_encoding in -lpfm... " >&6; }
10702 if ${ac_cv_lib_pfm_pfm_get_os_event_encoding+:} false; then :
10703 $as_echo_n "(cached) " >&6
10704 else
10705 ac_check_lib_save_LIBS=$LIBS
10706 LIBS="-lpfm $LIBS"
10707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10708 /* end confdefs.h. */
10710 /* Override any GCC internal prototype to avoid an error.
10711 Use char because int might match the return type of a GCC
10712 builtin and then its argument prototype would still apply. */
10713 #ifdef __cplusplus
10714 extern "C"
10715 #endif
10716 char pfm_get_os_event_encoding ();
10718 main ()
10720 return pfm_get_os_event_encoding ();
10722 return 0;
10724 _ACEOF
10725 if ac_fn_c_try_link "$LINENO"; then :
10726 ac_cv_lib_pfm_pfm_get_os_event_encoding=yes
10727 else
10728 ac_cv_lib_pfm_pfm_get_os_event_encoding=no
10730 rm -f core conftest.err conftest.$ac_objext \
10731 conftest$ac_exeext conftest.$ac_ext
10732 LIBS=$ac_check_lib_save_LIBS
10734 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pfm_pfm_get_os_event_encoding" >&5
10735 $as_echo "$ac_cv_lib_pfm_pfm_get_os_event_encoding" >&6; }
10736 if test "x$ac_cv_lib_pfm_pfm_get_os_event_encoding" = xyes; then :
10737 pfm_libs="-lpfm"
10738 else
10739 enable_perfevent=false
10742 for ac_header in perfmon/pfmlib_perf_event.h
10743 do :
10744 ac_fn_c_check_header_mongrel "$LINENO" "perfmon/pfmlib_perf_event.h" "ac_cv_header_perfmon_pfmlib_perf_event_h" "$ac_includes_default"
10745 if test "x$ac_cv_header_perfmon_pfmlib_perf_event_h" = xyes; then :
10746 cat >>confdefs.h <<_ACEOF
10747 #define HAVE_PERFMON_PFMLIB_PERF_EVENT_H 1
10748 _ACEOF
10750 else
10751 enable_perfevent=false
10754 done
10756 if test "$do_perfevent" != "check" -a "$enable_perfevent" != "true"
10757 then
10758 as_fn_error $? "libpfm is not installed, cannot enable the perfevent PMDA" "$LINENO" 5
10759 else
10760 pmda_perfevent=$enable_perfevent
10762 LIBS=$savedLIBS
10763 PFM_LIBS=$pfm_libs
10767 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the perfevent PMDA should be included" >&5
10768 $as_echo_n "checking if the perfevent PMDA should be included... " >&6; }
10769 PMDA_PERFEVENT=$pmda_perfevent
10771 if $pmda_perfevent; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10772 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10773 $as_echo "no" >&6; }; fi
10775 pmda_rpm=false
10776 savedLIBS=$LIBS
10777 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rpmlib > 4.4.2" >&5
10778 $as_echo_n "checking for rpmlib > 4.4.2... " >&6; }
10779 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10780 /* end confdefs.h. */
10781 #include <rpm/header.h>
10783 main ()
10785 (void)HEADERGET_EXT;
10787 return 0;
10789 _ACEOF
10790 if ac_fn_c_try_compile "$LINENO"; then :
10791 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10792 $as_echo "yes" >&6; }
10793 pmda_rpm=true
10794 else
10795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10796 $as_echo "no" >&6; }
10798 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the rpm PMDA should be included" >&5
10800 $as_echo_n "checking if the rpm PMDA should be included... " >&6; }
10801 PMDA_RPM=$pmda_rpm
10803 if $pmda_rpm; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10804 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10805 $as_echo "no" >&6; }; fi
10806 LIBS=$savedLIBS
10808 pmda_postfix=false
10809 for ac_prog in qshape
10811 # Extract the first word of "$ac_prog", so it can be a program name with args.
10812 set dummy $ac_prog; ac_word=$2
10813 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10814 $as_echo_n "checking for $ac_word... " >&6; }
10815 if ${ac_cv_prog_QSHAPE+:} false; then :
10816 $as_echo_n "(cached) " >&6
10817 else
10818 if test -n "$QSHAPE"; then
10819 ac_cv_prog_QSHAPE="$QSHAPE" # Let the user override the test.
10820 else
10821 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10822 as_dummy="path=$PATH:/usr/sbin"
10823 for as_dir in $as_dummy
10825 IFS=$as_save_IFS
10826 test -z "$as_dir" && as_dir=.
10827 for ac_exec_ext in '' $ac_executable_extensions; do
10828 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10829 ac_cv_prog_QSHAPE="$ac_prog"
10830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10831 break 2
10833 done
10834 done
10835 IFS=$as_save_IFS
10839 QSHAPE=$ac_cv_prog_QSHAPE
10840 if test -n "$QSHAPE"; then
10841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QSHAPE" >&5
10842 $as_echo "$QSHAPE" >&6; }
10843 else
10844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10845 $as_echo "no" >&6; }
10849 test -n "$QSHAPE" && break
10850 done
10852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the postfix PMDA should be included" >&5
10853 $as_echo_n "checking if the postfix PMDA should be included... " >&6; }
10854 if test -n "$QSHAPE"
10855 then
10856 pmda_postfix=true
10857 else
10858 for script in /usr/share/doc/packages/postfix-doc/auxiliary/qshape/qshape.pl
10860 if test -f "$script"
10861 then
10862 pmda_postfix=true
10863 break
10865 done
10867 PMDA_POSTFIX=$pmda_postfix
10869 if $pmda_postfix; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10870 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10871 $as_echo "no" >&6; }; fi
10874 pkg_failed=no
10875 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmicrohttpd" >&5
10876 $as_echo_n "checking for libmicrohttpd... " >&6; }
10878 if test -n "$libmicrohttpd_CFLAGS"; then
10879 pkg_cv_libmicrohttpd_CFLAGS="$libmicrohttpd_CFLAGS"
10880 elif test -n "$PKG_CONFIG"; then
10881 if test -n "$PKG_CONFIG" && \
10882 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmicrohttpd > 0.9.9\""; } >&5
10883 ($PKG_CONFIG --exists --print-errors "libmicrohttpd > 0.9.9") 2>&5
10884 ac_status=$?
10885 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10886 test $ac_status = 0; }; then
10887 pkg_cv_libmicrohttpd_CFLAGS=`$PKG_CONFIG --cflags "libmicrohttpd > 0.9.9" 2>/dev/null`
10888 test "x$?" != "x0" && pkg_failed=yes
10889 else
10890 pkg_failed=yes
10892 else
10893 pkg_failed=untried
10895 if test -n "$libmicrohttpd_LIBS"; then
10896 pkg_cv_libmicrohttpd_LIBS="$libmicrohttpd_LIBS"
10897 elif test -n "$PKG_CONFIG"; then
10898 if test -n "$PKG_CONFIG" && \
10899 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmicrohttpd > 0.9.9\""; } >&5
10900 ($PKG_CONFIG --exists --print-errors "libmicrohttpd > 0.9.9") 2>&5
10901 ac_status=$?
10902 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10903 test $ac_status = 0; }; then
10904 pkg_cv_libmicrohttpd_LIBS=`$PKG_CONFIG --libs "libmicrohttpd > 0.9.9" 2>/dev/null`
10905 test "x$?" != "x0" && pkg_failed=yes
10906 else
10907 pkg_failed=yes
10909 else
10910 pkg_failed=untried
10915 if test $pkg_failed = yes; then
10916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10917 $as_echo "no" >&6; }
10919 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10920 _pkg_short_errors_supported=yes
10921 else
10922 _pkg_short_errors_supported=no
10924 if test $_pkg_short_errors_supported = yes; then
10925 libmicrohttpd_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libmicrohttpd > 0.9.9" 2>&1`
10926 else
10927 libmicrohttpd_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libmicrohttpd > 0.9.9" 2>&1`
10929 # Put the nasty error message in config.log where it belongs
10930 echo "$libmicrohttpd_PKG_ERRORS" >&5
10932 have_libmicrohttpd=false
10933 elif test $pkg_failed = untried; then
10934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10935 $as_echo "no" >&6; }
10936 have_libmicrohttpd=false
10937 else
10938 libmicrohttpd_CFLAGS=$pkg_cv_libmicrohttpd_CFLAGS
10939 libmicrohttpd_LIBS=$pkg_cv_libmicrohttpd_LIBS
10940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10941 $as_echo "yes" >&6; }
10942 have_libmicrohttpd=true
10944 HAVE_LIBMICROHTTPD=$have_libmicrohttpd
10948 pkg_failed=no
10949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo" >&5
10950 $as_echo_n "checking for cairo... " >&6; }
10952 if test -n "$cairo_CFLAGS"; then
10953 pkg_cv_cairo_CFLAGS="$cairo_CFLAGS"
10954 elif test -n "$PKG_CONFIG"; then
10955 if test -n "$PKG_CONFIG" && \
10956 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo >= 1.2, cairo-ft >= 1.2, cairo-png >= 1.2\""; } >&5
10957 ($PKG_CONFIG --exists --print-errors "cairo >= 1.2, cairo-ft >= 1.2, cairo-png >= 1.2") 2>&5
10958 ac_status=$?
10959 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10960 test $ac_status = 0; }; then
10961 pkg_cv_cairo_CFLAGS=`$PKG_CONFIG --cflags "cairo >= 1.2, cairo-ft >= 1.2, cairo-png >= 1.2" 2>/dev/null`
10962 test "x$?" != "x0" && pkg_failed=yes
10963 else
10964 pkg_failed=yes
10966 else
10967 pkg_failed=untried
10969 if test -n "$cairo_LIBS"; then
10970 pkg_cv_cairo_LIBS="$cairo_LIBS"
10971 elif test -n "$PKG_CONFIG"; then
10972 if test -n "$PKG_CONFIG" && \
10973 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo >= 1.2, cairo-ft >= 1.2, cairo-png >= 1.2\""; } >&5
10974 ($PKG_CONFIG --exists --print-errors "cairo >= 1.2, cairo-ft >= 1.2, cairo-png >= 1.2") 2>&5
10975 ac_status=$?
10976 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10977 test $ac_status = 0; }; then
10978 pkg_cv_cairo_LIBS=`$PKG_CONFIG --libs "cairo >= 1.2, cairo-ft >= 1.2, cairo-png >= 1.2" 2>/dev/null`
10979 test "x$?" != "x0" && pkg_failed=yes
10980 else
10981 pkg_failed=yes
10983 else
10984 pkg_failed=untried
10989 if test $pkg_failed = yes; then
10990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10991 $as_echo "no" >&6; }
10993 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10994 _pkg_short_errors_supported=yes
10995 else
10996 _pkg_short_errors_supported=no
10998 if test $_pkg_short_errors_supported = yes; then
10999 cairo_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cairo >= 1.2, cairo-ft >= 1.2, cairo-png >= 1.2" 2>&1`
11000 else
11001 cairo_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cairo >= 1.2, cairo-ft >= 1.2, cairo-png >= 1.2" 2>&1`
11003 # Put the nasty error message in config.log where it belongs
11004 echo "$cairo_PKG_ERRORS" >&5
11006 have_cairo=false
11007 elif test $pkg_failed = untried; then
11008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11009 $as_echo "no" >&6; }
11010 have_cairo=false
11011 else
11012 cairo_CFLAGS=$pkg_cv_cairo_CFLAGS
11013 cairo_LIBS=$pkg_cv_cairo_LIBS
11014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11015 $as_echo "yes" >&6; }
11016 have_cairo=true
11018 HAVE_CAIRO=$have_cairo
11021 enable_webapi=false
11022 if test "x$do_webapi" != "xno"; then :
11024 enable_webapi=true
11026 if test "$have_libmicrohttpd" != "true"
11027 then
11028 enable_webapi=false
11029 test "$do_webapi" != "check" && \
11030 as_fn_error $? "libmicrohttpd is not installed, cannot enable the web API" "$LINENO" 5
11031 elif test "$do_webapi" != "check" -a "x$cxx" = "x"
11032 then
11033 enable_webapi=false
11034 test "$do_webapi" != "check" && \
11035 as_fn_error $? "C++ compiler unavailable, cannot enable the web API" "$LINENO" 5
11041 enable_manager=false
11042 if test "x$do_manager" != "xno"; then :
11044 enable_manager=true
11046 if test "$target_os" = "mingw"
11047 then
11048 enable_manager=false
11049 test "$do_manager" != "check" && \
11050 as_fn_error $? "MinGW build, cannot enable daemon manager" "$LINENO" 5
11051 elif test "x$cxx" = "x"
11052 then
11053 enable_manager=false
11054 test "$do_manager" != "check" && \
11055 as_fn_error $? "C++ compiler unavailable, cannot enable daemon manager" "$LINENO" 5
11057 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compilation features for daemon manager" >&5
11058 $as_echo_n "checking compilation features for daemon manager... " >&6; }
11059 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11060 /* end confdefs.h. */
11061 #ifndef _XOPEN_SOURCE
11062 #define _XOPEN_SOURCE 600
11063 #endif
11064 #include <stdio.h>
11067 main ()
11071 return 0;
11073 _ACEOF
11074 if ac_fn_c_try_compile "$LINENO"; then :
11075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11076 $as_echo "yes" >&6; }
11077 else
11078 enable_manager=false
11079 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11080 $as_echo "no" >&6; }
11082 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11087 enable_selinux=false
11088 if test "x$do_selinux" != "xno"; then :
11090 if test -f /usr/share/selinux/devel/Makefile
11091 then
11092 enable_selinux=true
11093 else
11094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11095 $as_echo "no" >&6; }
11103 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
11104 $as_echo_n "checking return type of signal handlers... " >&6; }
11105 if ${ac_cv_type_signal+:} false; then :
11106 $as_echo_n "(cached) " >&6
11107 else
11108 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11109 /* end confdefs.h. */
11110 #include <sys/types.h>
11111 #include <signal.h>
11114 main ()
11116 return *(signal (0, 0)) (0) == 1;
11118 return 0;
11120 _ACEOF
11121 if ac_fn_c_try_compile "$LINENO"; then :
11122 ac_cv_type_signal=int
11123 else
11124 ac_cv_type_signal=void
11126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
11129 $as_echo "$ac_cv_type_signal" >&6; }
11131 cat >>confdefs.h <<_ACEOF
11132 #define RETSIGTYPE $ac_cv_type_signal
11133 _ACEOF
11136 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wait3 that fills in rusage" >&5
11137 $as_echo_n "checking for wait3 that fills in rusage... " >&6; }
11138 if ${ac_cv_func_wait3_rusage+:} false; then :
11139 $as_echo_n "(cached) " >&6
11140 else
11141 if test "$cross_compiling" = yes; then :
11142 ac_cv_func_wait3_rusage=no
11143 else
11144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11145 /* end confdefs.h. */
11146 $ac_includes_default
11147 #include <sys/time.h>
11148 #include <sys/resource.h>
11149 #include <sys/wait.h>
11150 /* HP-UX has wait3 but does not fill in rusage at all. */
11152 main ()
11154 struct rusage r;
11155 int i;
11156 /* Use a field that we can force nonzero --
11157 voluntary context switches.
11158 For systems like NeXT and OSF/1 that don't set it,
11159 also use the system CPU time. And page faults (I/O) for Linux. */
11160 r.ru_nvcsw = 0;
11161 r.ru_stime.tv_sec = 0;
11162 r.ru_stime.tv_usec = 0;
11163 r.ru_majflt = r.ru_minflt = 0;
11164 switch (fork ())
11166 case 0: /* Child. */
11167 sleep(1); /* Give up the CPU. */
11168 _exit(0);
11169 break;
11170 case -1: /* What can we do? */
11171 _exit(0);
11172 break;
11173 default: /* Parent. */
11174 wait3(&i, 0, &r);
11175 /* Avoid "text file busy" from rm on fast HP-UX machines. */
11176 sleep(2);
11177 return (r.ru_nvcsw == 0 && r.ru_majflt == 0 && r.ru_minflt == 0
11178 && r.ru_stime.tv_sec == 0 && r.ru_stime.tv_usec == 0);
11181 _ACEOF
11182 if ac_fn_c_try_run "$LINENO"; then :
11183 ac_cv_func_wait3_rusage=yes
11184 else
11185 ac_cv_func_wait3_rusage=no
11187 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
11188 conftest.$ac_objext conftest.beam conftest.$ac_ext
11192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_wait3_rusage" >&5
11193 $as_echo "$ac_cv_func_wait3_rusage" >&6; }
11194 if test $ac_cv_func_wait3_rusage = yes; then
11196 $as_echo "#define HAVE_WAIT3 1" >>confdefs.h
11200 for ac_func in vprintf
11201 do :
11202 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
11203 if test "x$ac_cv_func_vprintf" = xyes; then :
11204 cat >>confdefs.h <<_ACEOF
11205 #define HAVE_VPRINTF 1
11206 _ACEOF
11208 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
11209 if test "x$ac_cv_func__doprnt" = xyes; then :
11211 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
11216 done
11219 for ac_func in mktime nanosleep usleep unsetenv
11220 do :
11221 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11222 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11223 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11224 cat >>confdefs.h <<_ACEOF
11225 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11226 _ACEOF
11229 done
11231 for ac_func in select socket gethostname getpeerucred getpeereid
11232 do :
11233 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11234 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11235 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11236 cat >>confdefs.h <<_ACEOF
11237 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11238 _ACEOF
11241 done
11243 for ac_func in uname syslog __clone pipe2 fcntl ioctl
11244 do :
11245 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11246 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11247 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11248 cat >>confdefs.h <<_ACEOF
11249 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11250 _ACEOF
11253 done
11255 for ac_func in prctl setlinebuf waitpid atexit kill
11256 do :
11257 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11258 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11259 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11260 cat >>confdefs.h <<_ACEOF
11261 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11262 _ACEOF
11265 done
11267 for ac_func in chown fchmod getcwd scandir mkstemp
11268 do :
11269 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11270 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11271 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11272 cat >>confdefs.h <<_ACEOF
11273 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11274 _ACEOF
11277 done
11279 for ac_func in brk sbrk posix_memalign memalign valloc
11280 do :
11281 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11282 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11283 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11284 cat >>confdefs.h <<_ACEOF
11285 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11286 _ACEOF
11289 done
11291 for ac_func in signal sighold sigrelse tcgetattr
11292 do :
11293 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11294 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11295 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11296 cat >>confdefs.h <<_ACEOF
11297 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11298 _ACEOF
11301 done
11303 for ac_func in regex regcmp regexec regcomp
11304 do :
11305 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11306 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11307 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11308 cat >>confdefs.h <<_ACEOF
11309 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11310 _ACEOF
11313 done
11315 for ac_func in strtod strtol strtoll strtoull strndup strchrnul
11316 do :
11317 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11318 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11319 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11320 cat >>confdefs.h <<_ACEOF
11321 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11322 _ACEOF
11325 done
11327 for ac_func in getuid getgid
11328 do :
11329 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11330 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11331 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11332 cat >>confdefs.h <<_ACEOF
11333 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11334 _ACEOF
11337 done
11339 for ac_func in getgrent getgrent_r getgrnam getgrnam_r getgrgid getgrgid_r
11340 do :
11341 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11342 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11343 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11344 cat >>confdefs.h <<_ACEOF
11345 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11346 _ACEOF
11349 done
11351 for ac_func in getpwent getpwent_r getpwnam getpwnam_r getpwuid getpwuid_r
11352 do :
11353 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11354 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11355 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11356 cat >>confdefs.h <<_ACEOF
11357 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11358 _ACEOF
11361 done
11363 for ac_func in sysinfo trace_back_stack backtrace
11364 do :
11365 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11366 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11367 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11368 cat >>confdefs.h <<_ACEOF
11369 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11370 _ACEOF
11373 done
11375 for ac_func in sendmsg recvmsg setns
11376 do :
11377 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11378 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11379 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11380 cat >>confdefs.h <<_ACEOF
11381 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11382 _ACEOF
11385 done
11388 if test $target_os != linux -a $target_os != freebsd -a $target_os != kfreebsd -a $target_os != netbsd; then
11389 for ac_func in readdir64
11390 do :
11391 ac_fn_c_check_func "$LINENO" "readdir64" "ac_cv_func_readdir64"
11392 if test "x$ac_cv_func_readdir64" = xyes; then :
11393 cat >>confdefs.h <<_ACEOF
11394 #define HAVE_READDIR64 1
11395 _ACEOF
11398 done
11402 if test $target_os = solaris
11403 then
11404 ac_fn_c_check_type "$LINENO" "__int32_t" "ac_cv_type___int32_t" "$ac_includes_default"
11405 if test "x$ac_cv_type___int32_t" = xyes; then :
11407 else
11409 cat >>confdefs.h <<_ACEOF
11410 #define __int32_t int32_t
11411 _ACEOF
11415 ac_fn_c_check_type "$LINENO" "__uint32_t" "ac_cv_type___uint32_t" "$ac_includes_default"
11416 if test "x$ac_cv_type___uint32_t" = xyes; then :
11418 else
11420 cat >>confdefs.h <<_ACEOF
11421 #define __uint32_t uint32_t
11422 _ACEOF
11426 ac_fn_c_check_type "$LINENO" "__int64_t" "ac_cv_type___int64_t" "$ac_includes_default"
11427 if test "x$ac_cv_type___int64_t" = xyes; then :
11429 else
11431 cat >>confdefs.h <<_ACEOF
11432 #define __int64_t int64_t
11433 _ACEOF
11437 ac_fn_c_check_type "$LINENO" "__uint64_t" "ac_cv_type___uint64_t" "$ac_includes_default"
11438 if test "x$ac_cv_type___uint64_t" = xyes; then :
11440 else
11442 cat >>confdefs.h <<_ACEOF
11443 #define __uint64_t uint64_t
11444 _ACEOF
11448 ac_fn_c_check_type "$LINENO" "uint_t" "ac_cv_type_uint_t" "$ac_includes_default"
11449 if test "x$ac_cv_type_uint_t" = xyes; then :
11451 else
11453 cat >>confdefs.h <<_ACEOF
11454 #define uint_t u_int32_t
11455 _ACEOF
11459 else
11460 ac_fn_c_check_type "$LINENO" "__int32_t" "ac_cv_type___int32_t" "$ac_includes_default"
11461 if test "x$ac_cv_type___int32_t" = xyes; then :
11463 else
11465 cat >>confdefs.h <<_ACEOF
11466 #define __int32_t int
11467 _ACEOF
11471 ac_fn_c_check_type "$LINENO" "__uint32_t" "ac_cv_type___uint32_t" "$ac_includes_default"
11472 if test "x$ac_cv_type___uint32_t" = xyes; then :
11474 else
11476 cat >>confdefs.h <<_ACEOF
11477 #define __uint32_t unsigned int
11478 _ACEOF
11482 ac_fn_c_check_type "$LINENO" "__int64_t" "ac_cv_type___int64_t" "$ac_includes_default"
11483 if test "x$ac_cv_type___int64_t" = xyes; then :
11485 else
11487 cat >>confdefs.h <<_ACEOF
11488 #define __int64_t long long
11489 _ACEOF
11493 ac_fn_c_check_type "$LINENO" "__uint64_t" "ac_cv_type___uint64_t" "$ac_includes_default"
11494 if test "x$ac_cv_type___uint64_t" = xyes; then :
11496 else
11498 cat >>confdefs.h <<_ACEOF
11499 #define __uint64_t unsigned long long
11500 _ACEOF
11504 ac_fn_c_check_type "$LINENO" "uint_t" "ac_cv_type_uint_t" "$ac_includes_default"
11505 if test "x$ac_cv_type_uint_t" = xyes; then :
11507 else
11509 cat >>confdefs.h <<_ACEOF
11510 #define uint_t unsigned int
11511 _ACEOF
11517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __psint_t " >&5
11518 $as_echo_n "checking for __psint_t ... " >&6; }
11519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11520 /* end confdefs.h. */
11522 #include <sys/types.h>
11523 #include <stdlib.h>
11524 #include <stddef.h>
11527 main ()
11529 __psint_t psint;
11531 return 0;
11533 _ACEOF
11534 if ac_fn_c_try_compile "$LINENO"; then :
11536 $as_echo "#define HAVE___PSINT_T 1" >>confdefs.h
11537 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11538 $as_echo "yes" >&6; }
11539 else
11540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11541 $as_echo "no" >&6; }
11543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11545 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ptrdiff_t " >&5
11546 $as_echo_n "checking for ptrdiff_t ... " >&6; }
11547 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11548 /* end confdefs.h. */
11550 #include <stddef.h>
11551 #ifdef HAVE_MALLOC_H
11552 #include <malloc.h>
11553 #endif
11556 main ()
11558 ptrdiff_t ptrdiff;
11560 return 0;
11562 _ACEOF
11563 if ac_fn_c_try_compile "$LINENO"; then :
11565 $as_echo "#define HAVE_PTRDIFF_T 1" >>confdefs.h
11566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11567 $as_echo "yes" >&6; }
11568 else
11569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11570 $as_echo "no" >&6; }
11572 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11574 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t " >&5
11575 $as_echo_n "checking for uid_t ... " >&6; }
11576 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11577 /* end confdefs.h. */
11579 #include <sys/types.h>
11580 #ifdef HAVE_PWD_H
11581 #include <pwd.h>
11582 #endif
11585 main ()
11587 uid_t uid;
11589 return 0;
11591 _ACEOF
11592 if ac_fn_c_try_compile "$LINENO"; then :
11594 $as_echo "#define HAVE_UID_T 1" >>confdefs.h
11595 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11596 $as_echo "yes" >&6; }
11597 else
11598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11599 $as_echo "no" >&6; }
11601 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gid_t " >&5
11603 $as_echo_n "checking for gid_t ... " >&6; }
11604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11605 /* end confdefs.h. */
11607 #include <sys/types.h>
11608 #ifdef HAVE_GRP_H
11609 #include <grp.h>
11610 #endif
11613 main ()
11615 gid_t gid;
11617 return 0;
11619 _ACEOF
11620 if ac_fn_c_try_compile "$LINENO"; then :
11622 $as_echo "#define HAVE_GID_T 1" >>confdefs.h
11623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11624 $as_echo "yes" >&6; }
11625 else
11626 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11627 $as_echo "no" >&6; }
11629 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SID " >&5
11631 $as_echo_n "checking for SID ... " >&6; }
11632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11633 /* end confdefs.h. */
11635 #ifdef HAVE_WINDOWS_H
11636 #include <windows.h>
11637 #endif
11640 main ()
11642 SID sid;
11644 return 0;
11646 _ACEOF
11647 if ac_fn_c_try_compile "$LINENO"; then :
11649 $as_echo "#define HAVE_SID 1" >>confdefs.h
11650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11651 $as_echo "yes" >&6; }
11652 else
11653 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11654 $as_echo "no" >&6; }
11656 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11658 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t " >&5
11659 $as_echo_n "checking for socklen_t ... " >&6; }
11660 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11661 /* end confdefs.h. */
11663 #include <sys/types.h>
11664 #ifdef HAVE_SYS_SOCKET_H
11665 #include <sys/socket.h>
11666 #endif
11669 main ()
11671 socklen_t len;
11673 return 0;
11675 _ACEOF
11676 if ac_fn_c_try_compile "$LINENO"; then :
11678 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
11679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11680 $as_echo "yes" >&6; }
11681 else
11682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11683 $as_echo "no" >&6; }
11685 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11687 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11688 /* end confdefs.h. */
11690 #include <stdio.h>
11693 main ()
11695 long long x = 0LL;
11697 return 0;
11699 _ACEOF
11700 if ac_fn_c_try_compile "$LINENO"; then :
11702 $as_echo "#define HAVE_CONST_LONGLONG 1" >>confdefs.h
11705 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11708 /* end confdefs.h. */
11710 #include <stdlib.h>
11711 #include <unistd.h>
11714 main ()
11716 char **x = _environ;
11718 return 0;
11720 _ACEOF
11721 if ac_fn_c_try_link "$LINENO"; then :
11723 $as_echo "#define HAVE_UNDERBAR_ENVIRON 1" >>confdefs.h
11726 rm -f core conftest.err conftest.$ac_objext \
11727 conftest$ac_exeext conftest.$ac_ext
11729 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PR_TERMCHILD constant in sys/prctl.h" >&5
11730 $as_echo_n "checking for PR_TERMCHILD constant in sys/prctl.h... " >&6; }
11731 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11732 /* end confdefs.h. */
11734 #ifdef HAVE_SYS_PRCTL_H
11735 #include <sys/prctl.h>
11736 #endif
11739 main ()
11741 int i = PR_TERMCHILD;
11743 return 0;
11745 _ACEOF
11746 if ac_fn_c_try_compile "$LINENO"; then :
11748 $as_echo "#define HAVE_PR_TERMCHILD 1" >>confdefs.h
11749 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11750 $as_echo "yes" >&6; }
11751 else
11752 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11753 $as_echo "no" >&6; }
11755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PR_SET_PDEATHSIG constant in sys/prctl.h" >&5
11758 $as_echo_n "checking for PR_SET_PDEATHSIG constant in sys/prctl.h... " >&6; }
11759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11760 /* end confdefs.h. */
11762 #ifdef HAVE_SYS_PRCTL_H
11763 #include <sys/prctl.h>
11764 #endif
11767 main ()
11769 int i = PR_SET_PDEATHSIG;
11771 return 0;
11773 _ACEOF
11774 if ac_fn_c_try_compile "$LINENO"; then :
11776 $as_echo "#define HAVE_PR_SET_PDEATHSIG 1" >>confdefs.h
11777 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11778 $as_echo "yes" >&6; }
11779 else
11780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11781 $as_echo "no" >&6; }
11783 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11785 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
11786 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
11787 if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false; then :
11788 $as_echo_n "(cached) " >&6
11789 else
11790 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11791 /* end confdefs.h. */
11792 #include <sys/types.h>
11793 #include <termios.h>
11794 #ifdef TIOCGWINSZ
11796 #endif
11798 _ACEOF
11799 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11800 $EGREP "yes" >/dev/null 2>&1; then :
11801 ac_cv_sys_tiocgwinsz_in_termios_h=yes
11802 else
11803 ac_cv_sys_tiocgwinsz_in_termios_h=no
11805 rm -f conftest*
11808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
11809 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
11811 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
11812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
11813 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
11814 if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false; then :
11815 $as_echo_n "(cached) " >&6
11816 else
11817 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11818 /* end confdefs.h. */
11819 #include <sys/types.h>
11820 #include <sys/ioctl.h>
11821 #ifdef TIOCGWINSZ
11823 #endif
11825 _ACEOF
11826 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11827 $EGREP "yes" >/dev/null 2>&1; then :
11828 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
11829 else
11830 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
11832 rm -f conftest*
11835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
11836 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
11838 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
11840 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
11846 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports -rdynamic" >&5
11847 $as_echo_n "checking if linker supports -rdynamic... " >&6; }
11848 save_CFLAGS="$CFLAGS"
11849 CFLAGS="-rdynamic"
11850 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11851 /* end confdefs.h. */
11854 main ()
11858 return 0;
11860 _ACEOF
11861 if ac_fn_c_try_link "$LINENO"; then :
11862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11863 $as_echo "yes" >&6; }
11864 rdynamic_flag=-rdynamic
11865 else
11866 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11867 $as_echo "no" >&6; }
11868 rdynamic_flag=
11871 rm -f core conftest.err conftest.$ac_objext \
11872 conftest$ac_exeext conftest.$ac_ext
11873 CFLAGS="$save_CFLAGS"
11877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether const arg for scandir() select method" >&5
11878 $as_echo_n "checking whether const arg for scandir() select method... " >&6; }
11879 cat <<End-of-File >conftest.c
11880 #include <stdlib.h>
11881 #include <unistd.h>
11882 #include <dirent.h>
11883 static int
11884 my_select(const struct dirent *foo) { return 0; }
11885 int main() { struct dirent **list; return scandir(".", &list, my_select, NULL); }
11886 End-of-File
11887 (eval $ac_compile) 2>conftest.out
11888 cat conftest.out >&5
11889 if test -s conftest.out
11890 then
11891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11892 $as_echo "no" >&6; }
11893 else
11895 $as_echo "#define HAVE_CONST_DIRENT 1" >>confdefs.h
11897 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11898 $as_echo "yes" >&6; }
11900 rm -f conftest.*
11902 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct dirent has a d_off field" >&5
11903 $as_echo_n "checking whether struct dirent has a d_off field... " >&6; }
11904 cat <<End-of-File >conftest.c
11905 #include <stdlib.h>
11906 #include <unistd.h>
11907 #include <dirent.h>
11908 int main() { struct dirent d; d.d_off = 0; }
11909 End-of-File
11910 (eval $ac_compile) 2>conftest.out
11911 cat conftest.out >&5
11912 if test -s conftest.out
11913 then
11914 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11915 $as_echo "no" >&6; }
11916 else
11918 $as_echo "#define HAVE_DIRENT_D_OFF 1" >>confdefs.h
11920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11921 $as_echo "yes" >&6; }
11923 rm -f conftest.*
11925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if printf %p produces 0x prefix" >&5
11926 $as_echo_n "checking if printf %p produces 0x prefix... " >&6; }
11927 if test "$cross_compiling" = "yes"; then
11928 ans=$printf_p_prefix
11929 echo "cross-compile -> \"$ans\"" >&5
11930 else
11931 cat <<End-of-File >conftest.c
11932 #include <stdio.h>
11933 int main(int argc, char **argv) { printf("%p", argv); return(0); }
11934 End-of-File
11935 (eval $ac_compile) 2>&5
11936 (eval $ac_link) 2>&5
11937 ans=`./conftest`
11938 echo "./conftest -> \"$ans\"" >&5
11940 case "$ans"
11942 0x*)
11944 $as_echo "#define HAVE_PRINTF_P_PFX 1" >>confdefs.h
11946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11947 $as_echo "yes" >&6; }
11950 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11951 $as_echo "no" >&6; }
11953 esac
11954 rm -rf conftest conftest.*
11956 _do_type()
11958 # need to deal with this sort of cpp output ...
11959 # typedef long pid_t;
11960 # typedef unsigned int pid_t;
11961 # typedef unsigned int pid_t __attribute__ ((__mode__ (__SI__)));
11962 # __extension__ typedef int pid_t;
11963 # typedef foo_t
11964 # pid_t;
11965 # typedef struct {
11966 # ....
11967 # } pid_t;
11968 # typedef ... *pid;
11969 # and chaining of the form
11970 # typedef long __pid_t;
11971 # typedef __pid_t pid_t;
11973 _raw=`$CPP conftest.c \
11974 | $SED \
11975 -e 's/[ ]__attribute__ ((.*));/;/' \
11976 -e 's/__extension__[ ][ ]*//' \
11977 | $AWK '
11978 /bozo/ { print; next }
11979 $1 == "typedef" { printf "%s",$0
11980 if ($NF ~ /;$/) {
11981 print ""
11982 next
11984 wantsemi = 1
11985 if ($0 ~ /{/) depth = 1
11986 next
11988 wantsemi == 1 { printf " %s",$0
11989 if ($0 ~ /{/) depth++
11990 if (depth) {
11991 if ($0 ~ /}/) depth--
11992 if (depth > 0) next
11994 if ($NF ~ /;$/) {
11995 print ""
11996 wantsemi = 0
11997 next
11999 }' \
12000 | $SED \
12001 -e 's/\*/* /g' \
12002 -e 's/^[ ]*//' \
12003 -e 's/;[ ]*$//' \
12004 | $AWK '
12005 $1 == "typedef" { map[$NF] = ""
12006 for (i = 2; i < NF; i++) {
12007 if (i == 2)
12008 map[$NF] = $i
12009 else
12010 map[$NF] = map[$NF] " " $i
12012 print $NF " -> " map[$NF] >"conftest.debug"
12013 next
12015 $2 == "bozo" { t = $1
12016 printf "best guess: %s",t >"conftest.debug"
12017 while (map[t] != "") {
12018 t = map[t]
12019 printf " -> %s",t >"conftest.debug"
12021 print "" >"conftest.debug"
12022 print t
12023 exit
12025 case "$_raw"
12027 int)
12028 _fmt='"d"'
12030 unsigned|'unsigned int')
12031 _fmt='"u"'
12033 long|'long int')
12034 _fmt='"ld"'
12036 'long long'|'long long int')
12037 if test $target_os = mingw; then
12038 _fmt='"I64d"'
12039 else
12040 _fmt='"lld"'
12043 'unsigned long'|'unsigned long int'|'long unsigned int')
12044 _fmt='"lu"'
12046 'unsigned long long'|'unsigned long long int')
12047 if test $target_os = mingw; then
12048 _fmt='"I64u"'
12049 else
12050 _fmt='"llu"'
12053 *\*) # pointer to a something
12054 _fmt='"p"'
12056 struct\ *) # not much can be done here ...
12057 _fmt='"p"'
12060 echo
12061 echo "FATAL ERROR: don't know what to do with type \"$_raw\""
12062 echo "... typedef mapping ..."
12063 cat conftest.debug
12064 rm -rf conftest conftest.*
12065 exit 1
12067 esac
12070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking printf type for pid_t" >&5
12071 $as_echo_n "checking printf type for pid_t... " >&6; }
12072 if test "$cross_compiling" = "yes"; then
12073 ans=$printf_fmt_pid
12074 echo "cross-compile -> \"$ans\"" >&5
12075 fmt_pid="$ans"
12076 else
12077 cat <<End-of-File >conftest.c
12078 #include <sys/types.h>
12079 #include <unistd.h>
12080 pid_t bozo;
12081 End-of-File
12082 _do_type
12083 fmt_pid="$_fmt"
12085 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fmt_pid" >&5
12086 $as_echo "$fmt_pid" >&6; }
12088 rm -rf conftest.c conftest.debug
12090 { $as_echo "$as_me:${as_lineno-$LINENO}: checking printf type for int64_t " >&5
12091 $as_echo_n "checking printf type for int64_t ... " >&6; }
12092 if test "$cross_compiling" = "yes"; then
12093 ans=$printf_fmt_int64
12094 echo "cross-compile -> \"$ans\"" >&5
12095 else
12096 cat <<End-of-File >conftest.c
12097 #include <stdio.h>
12098 #include <stdint.h>
12099 #include <inttypes.h>
12100 int main()
12102 printf("\"%s\"\n", __PRI64_PREFIX "d");
12103 return(0);
12105 End-of-File
12106 ans=''
12107 (eval $ac_link) 2>&5
12108 if test -x ./conftest
12109 then
12110 ans=`./conftest`
12111 echo "./conftest -> \"$ans\"" >&5
12113 if test -z "$ans"
12114 then
12115 cat <<End-of-File >conftest.c
12116 #include <stdio.h>
12117 #include <stdint.h>
12118 #include <string.h>
12119 int main()
12121 char buf[17];
12122 int64_t bozo = 0x12345678abcdLL;
12123 sprintf(buf, "%lx", bozo);
12124 if (strcmp(buf, "12345678abcd") == 0)
12125 printf("\"ld\"\n");
12126 else {
12127 sprintf(buf, "%llx", bozo);
12128 if (strcmp(buf, "12345678abcd") == 0)
12129 printf("\"lld\"\n");
12131 return(0);
12133 End-of-File
12134 (eval $ac_link) 2>&5
12135 if test -x ./conftest
12136 then
12137 ans=`./conftest`
12138 echo "./conftest -> \"$ans\"" >&5
12142 if test -z "$ans"
12143 then
12144 echo 'FATAL ERROR: Cannot determine printf format for int64_t type'
12145 rm -rf conftest conftest.*
12146 exit 1
12148 fmt_int64="$ans"
12149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$fmt_int64\"" >&5
12150 $as_echo "\"$fmt_int64\"" >&6; }
12152 fmt_uint64=`echo $fmt_int64 | sed -e 's/d"/u"/'`
12154 rm -rf conftest.* conftest
12156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking strtol or strtoll for int64_t" >&5
12157 $as_echo_n "checking strtol or strtoll for int64_t... " >&6; }
12158 if test "$cross_compiling" = "yes"; then
12159 ans=$strtoint64
12160 echo "cross-compile -> \"$ans\"" >&5
12161 else
12162 cat <<End-of-File >conftest.c
12163 #include <stdio.h>
12164 #include <stdlib.h>
12165 main()
12167 long long int value = -1;
12168 value = strtol("1234567812345678", NULL, 16);
12169 if (value == 0x1234567812345678LL) {
12170 printf("strotol\n");
12171 exit(0);
12173 value = strtoll("1234567812345678", NULL, 16);
12174 if (value == 0x1234567812345678LL) {
12175 printf("strtoll\n");
12176 exit(0);
12178 exit(1);
12180 End-of-File
12181 (eval $ac_compile) 2>&5
12182 (eval $ac_link) 2>&5
12183 ans=`./conftest`
12184 echo "./conftest -> \"$ans\"" >&5
12186 case "$ans"
12188 strtol)
12189 $as_echo "#define strtoint64 strtol" >>confdefs.h
12191 $as_echo "#define strtouint64 strtoul" >>confdefs.h
12193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: strtol" >&5
12194 $as_echo "strtol" >&6; }
12196 strtoll)
12197 $as_echo "#define strtoint64 strtoll" >>confdefs.h
12199 $as_echo "#define strtouint64 strtoull" >>confdefs.h
12201 { $as_echo "$as_me:${as_lineno-$LINENO}: result: strtoll" >&5
12202 $as_echo "strtoll" >&6; }
12205 $as_echo "#define strtoint64 strtoll" >>confdefs.h
12207 $as_echo "#define strtouint64 strtoull" >>confdefs.h
12209 { $as_echo "$as_me:${as_lineno-$LINENO}: result: assuming strtoll" >&5
12210 $as_echo "assuming strtoll" >&6; }
12212 esac
12213 rm -rf conftest conftest.*
12215 if test "$do_threads" = "check" -o "$do_threads" = "yes"
12216 then
12217 for ac_header in pthread.h
12218 do :
12219 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
12220 if test "x$ac_cv_header_pthread_h" = xyes; then :
12221 cat >>confdefs.h <<_ACEOF
12222 #define HAVE_PTHREAD_H 1
12223 _ACEOF
12225 else
12227 if test "$do_threads" = "yes"
12228 then
12229 as_fn_error $? "cannot enable multi-threaded mode - no pthread.h" "$LINENO" 5
12234 done
12237 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_t in pthread.h" >&5
12238 $as_echo_n "checking for pthread_mutex_t in pthread.h... " >&6; }
12239 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12240 /* end confdefs.h. */
12241 #include <pthread.h>
12243 main ()
12245 pthread_mutex_t mymutex;
12247 return 0;
12249 _ACEOF
12250 if ac_fn_c_try_compile "$LINENO"; then :
12252 $as_echo "#define HAVE_PTHREAD_MUTEX_T 1" >>confdefs.h
12253 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12254 $as_echo "yes" >&6; }
12255 else
12257 if test "$do_threads" = "yes"
12258 then
12259 as_fn_error $? "cannot enable multi-threaded mode - no mutexes" "$LINENO" 5
12260 else
12261 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12262 $as_echo "no" >&6; }
12266 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12268 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where pthread_create() is defined" >&5
12269 $as_echo_n "checking where pthread_create() is defined... " >&6; }
12270 for cand in "" pthreads pthread ; do
12271 savedLIBS=$LIBS
12272 if test -n "$cand"
12273 then
12274 LIBS=`echo $LIBS -l$cand`
12276 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12277 /* end confdefs.h. */
12279 #include <pthread.h>
12282 main ()
12285 pthread_create(NULL, NULL, NULL, NULL);
12288 return 0;
12290 _ACEOF
12291 if ac_fn_c_try_link "$LINENO"; then :
12292 { $as_echo "$as_me:${as_lineno-$LINENO}: result: lib${cand:-c}" >&5
12293 $as_echo "lib${cand:-c}" >&6; }
12294 if test -z "$cand"
12295 then
12296 lib_for_pthreads="$cand"
12297 else
12298 lib_for_pthreads="-l$cand"
12300 LIBS=$savedLIBS
12301 break
12303 rm -f core conftest.err conftest.$ac_objext \
12304 conftest$ac_exeext conftest.$ac_ext
12305 LIBS=$savedLIBS
12306 done
12309 if test "$ac_cv_header_pthread_h" = "yes"
12310 then
12311 { $as_echo "$as_me:${as_lineno-$LINENO}: checking printf type for pthread_t" >&5
12312 $as_echo_n "checking printf type for pthread_t... " >&6; }
12313 cat <<End-of-File >conftest.c
12314 #include <pthread.h>
12315 pthread_t bozo;
12316 End-of-File
12317 _do_type
12318 fmt_pthread="$_fmt"
12319 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fmt_pthread" >&5
12320 $as_echo "$fmt_pthread" >&6; }
12322 rm -rf conftest.c conftest.debug
12324 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports __thread" >&5
12325 $as_echo_n "checking if compiler supports __thread... " >&6; }
12326 if test $target_os = netbsd
12327 then
12328 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12329 /* end confdefs.h. */
12330 #include <pthread.h>
12331 #if __GNUC__ < 4 || ( __GNUC__ == 4 && __GNUC_MINOR__ < 5 )
12332 broken!
12333 #else
12334 __thread int x;
12335 #endif
12337 main ()
12341 return 0;
12343 _ACEOF
12344 if ac_fn_c_try_compile "$LINENO"; then :
12346 $as_echo "#define HAVE___THREAD 1" >>confdefs.h
12347 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12348 $as_echo "yes" >&6; }
12349 else
12350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12351 $as_echo "no" >&6; }
12353 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12354 else
12355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12356 /* end confdefs.h. */
12357 #include <pthread.h>
12358 __thread int x;
12360 main ()
12364 return 0;
12366 _ACEOF
12367 if ac_fn_c_try_compile "$LINENO"; then :
12369 $as_echo "#define HAVE___THREAD 1" >>confdefs.h
12370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12371 $as_echo "yes" >&6; }
12372 else
12373 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12374 $as_echo "no" >&6; }
12376 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_barrier_t in pthread.h" >&5
12380 $as_echo_n "checking for pthread_barrier_t in pthread.h... " >&6; }
12381 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12382 /* end confdefs.h. */
12383 #include <pthread.h>
12385 main ()
12387 pthread_barrier_t mybarrier;
12389 return 0;
12391 _ACEOF
12392 if ac_fn_c_try_compile "$LINENO"; then :
12394 $as_echo "#define HAVE_PTHREAD_BARRIER_T 1" >>confdefs.h
12395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12396 $as_echo "yes" >&6; }
12397 else
12398 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12399 $as_echo "no" >&6; }
12401 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12405 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sizeof suseconds_t" >&5
12406 $as_echo_n "checking sizeof suseconds_t... " >&6; }
12407 if test "$cross_compiling" = "yes"; then
12408 ans=$sizeof_suseconds_t
12409 echo "cross-compile -> \"$ans\"" >&5
12410 else
12411 cat <<End-of-File >conftest.c
12412 #include <sys/time.h>
12413 main() { printf("%d", (int)sizeof(suseconds_t)); }
12414 End-of-File
12415 (eval $ac_compile) 2>&5
12416 (eval $ac_link) 2>&5
12417 ans=`./conftest`
12418 echo "./conftest -> \"$ans\"" >&5
12419 rm -rf conftest conftest.*
12421 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
12422 $as_echo "$ans" >&6; }
12424 cat >>confdefs.h <<_ACEOF
12425 #define SIZEOF_SUSECONDS_T $ans
12426 _ACEOF
12429 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sizeof time_t" >&5
12430 $as_echo_n "checking sizeof time_t... " >&6; }
12431 if test "$cross_compiling" = "yes"; then
12432 ans=$sizeof_time_t
12433 echo "cross-compile -> \"$ans\"" >&5
12434 else
12435 cat <<End-of-File >conftest.c
12436 #include <sys/time.h>
12437 main() { printf("%d", (int)sizeof(time_t)); }
12438 End-of-File
12439 (eval $ac_compile) 2>&5
12440 (eval $ac_link) 2>&5
12441 ans=`./conftest`
12442 echo "./conftest -> \"$ans\"" >&5
12443 rm -rf conftest conftest.*
12445 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
12446 $as_echo "$ans" >&6; }
12448 cat >>confdefs.h <<_ACEOF
12449 #define SIZEOF_TIME_T $ans
12450 _ACEOF
12453 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sizeof long" >&5
12454 $as_echo_n "checking sizeof long... " >&6; }
12455 if test "$cross_compiling" = "yes"; then
12456 ans=$sizeof_long
12457 echo "cross-compile -> \"$ans\"" >&5
12458 else
12459 cat <<End-of-File >conftest.c
12460 #include <stdio.h>
12461 main() { printf("%d", (int)sizeof(long)); }
12462 End-of-File
12463 (eval $ac_compile) 2>&5
12464 (eval $ac_link) 2>&5
12465 ans=`./conftest`
12466 echo "./conftest -> \"$ans\"" >&5
12468 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
12469 $as_echo "$ans" >&6; }
12470 if test "$ans" = 4; then
12472 $as_echo "#define HAVE_32BIT_LONG 1" >>confdefs.h
12474 elif test "$ans" = 8; then
12476 $as_echo "#define HAVE_64BIT_LONG 1" >>confdefs.h
12478 else
12479 echo
12480 echo "FATAL ERROR: size of long is not 32 or 64 bits, cannot proceed."
12481 echo "sizeof(char *) -> $ans"
12482 rm -rf conftest conftest.*
12483 exit 1
12485 rm -rf conftest conftest.*
12487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sizeof pointer" >&5
12488 $as_echo_n "checking sizeof pointer... " >&6; }
12489 if test "$cross_compiling" = "yes"; then
12490 ans=$sizeof_pointer
12491 echo "cross-compile -> \"$ans\"" >&5
12492 else
12493 cat <<End-of-File >conftest.c
12494 #include <stdio.h>
12495 main() { printf("%d", (int)sizeof(char *)); }
12496 End-of-File
12497 (eval $ac_compile) 2>&5
12498 (eval $ac_link) 2>&5
12499 ans=`./conftest`
12500 echo "./conftest -> \"$ans\"" >&5
12502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
12503 $as_echo "$ans" >&6; }
12504 if test "$ans" = 4; then
12506 $as_echo "#define HAVE_32BIT_PTR 1" >>confdefs.h
12508 PCP_PTR_SIZE=32
12509 elif test "$ans" = 8; then
12511 $as_echo "#define HAVE_64BIT_PTR 1" >>confdefs.h
12513 PCP_PTR_SIZE=64
12514 else
12515 echo
12516 echo "FATAL ERROR: size of pointer is not 32 or 64 bits, cannot proceed."
12517 echo "sizeof(char *) -> $ans"
12518 rm -rf conftest conftest.*
12519 exit 1
12521 rm -rf conftest conftest.*
12523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sizeof int" >&5
12524 $as_echo_n "checking sizeof int... " >&6; }
12525 if test "$cross_compiling" = "yes"; then
12526 ans=$sizeof_int
12527 echo "cross-compile -> \"$ans\"" >&5
12528 else
12529 cat <<End-of-File >conftest.c
12530 #include <stdio.h>
12531 main() { printf("%d", (int)sizeof(int)); }
12532 End-of-File
12533 (eval $ac_compile) 2>&5
12534 (eval $ac_link) 2>&5
12535 ans=`./conftest`
12536 echo "./conftest -> \"$ans\"" >&5
12538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
12539 $as_echo "$ans" >&6; }
12540 if test "$ans" != 4
12541 then
12542 echo
12543 echo "FATAL ERROR: sizeof(int) is not 32 bits, cannot proceed."
12544 echo "Note: 32-bit ints are assumed in the PCP external file formats and"
12545 echo " the over-the-wire PDU formats"
12546 rm -rf conftest conftest.*
12547 exit 1
12549 rm -rf conftest conftest.*
12551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bit fields allocated left-to-right" >&5
12552 $as_echo_n "checking if bit fields allocated left-to-right... " >&6; }
12553 if test "$cross_compiling" = "yes"; then
12554 ans=$bit_field_scheme
12555 echo "cross-compile -> \"$ans\"" >&5
12556 else
12557 cat <<End-of-File >conftest.c
12558 union { struct { unsigned int b:4; unsigned int c:4; } a; int p; } u;
12559 main() { u.a.b = 1; u.a.c = 2; printf("%0*x", 2*sizeof(int), u.p); }
12560 End-of-File
12561 (eval $ac_compile) 2>&5
12562 (eval $ac_link) 2>&5
12563 ans=`./conftest`
12564 echo "./conftest -> \"$ans\"" >&5
12566 case "$ans"
12568 1200*|*0012)
12569 # left-to-right starting from MSB (SGI cc on MIPS), or
12570 # left-to-right ending at LSB
12572 $as_echo "#define HAVE_BITFIELDS_LTOR 1" >>confdefs.h
12574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12575 $as_echo "yes" >&6; }
12577 2100*|*0021)
12578 # right-to-left ending at MSB, or
12579 # right-to-left starting from LSB (gcc in Intel)
12580 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12581 $as_echo "no" >&6; }
12584 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
12585 $as_echo "unknown" >&6; }
12586 echo "FATAL ERROR: could not fathom your compiler's bit field allocation scheme"
12587 rm -f conftest conftest.*
12588 exit 1
12590 esac
12591 rm -rf conftest conftest.*
12593 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12594 /* end confdefs.h. */
12596 #include <stdlib.h>
12597 #include <unistd.h>
12600 main ()
12603 __uint64_t x = 0;
12604 double y = (double)x;
12607 return 0;
12609 _ACEOF
12610 if ac_fn_c_try_link "$LINENO"; then :
12612 $as_echo "#define HAVE_CAST_U64_DOUBLE 1" >>confdefs.h
12615 rm -f core conftest.err conftest.$ac_objext \
12616 conftest$ac_exeext conftest.$ac_ext
12618 for ac_func in basename
12619 do :
12620 ac_fn_c_check_func "$LINENO" "basename" "ac_cv_func_basename"
12621 if test "x$ac_cv_func_basename" = xyes; then :
12622 cat >>confdefs.h <<_ACEOF
12623 #define HAVE_BASENAME 1
12624 _ACEOF
12627 done
12629 if test $ac_cv_func_basename = yes
12630 then
12632 $as_echo "#define HAVE_BASENAME 1" >>confdefs.h
12635 $as_echo "#define HAVE_DIRNAME 1" >>confdefs.h
12637 lib_for_basename=""
12638 else
12639 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for basename in -lgen" >&5
12640 $as_echo_n "checking for basename in -lgen... " >&6; }
12641 if ${ac_cv_lib_gen_basename+:} false; then :
12642 $as_echo_n "(cached) " >&6
12643 else
12644 ac_check_lib_save_LIBS=$LIBS
12645 LIBS="-lgen $LIBS"
12646 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12647 /* end confdefs.h. */
12649 /* Override any GCC internal prototype to avoid an error.
12650 Use char because int might match the return type of a GCC
12651 builtin and then its argument prototype would still apply. */
12652 #ifdef __cplusplus
12653 extern "C"
12654 #endif
12655 char basename ();
12657 main ()
12659 return basename ();
12661 return 0;
12663 _ACEOF
12664 if ac_fn_c_try_link "$LINENO"; then :
12665 ac_cv_lib_gen_basename=yes
12666 else
12667 ac_cv_lib_gen_basename=no
12669 rm -f core conftest.err conftest.$ac_objext \
12670 conftest$ac_exeext conftest.$ac_ext
12671 LIBS=$ac_check_lib_save_LIBS
12673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_basename" >&5
12674 $as_echo "$ac_cv_lib_gen_basename" >&6; }
12675 if test "x$ac_cv_lib_gen_basename" = xyes; then :
12676 cat >>confdefs.h <<_ACEOF
12677 #define HAVE_LIBGEN 1
12678 _ACEOF
12680 LIBS="-lgen $LIBS"
12684 if test $ac_cv_lib_gen_basename = yes
12685 then
12687 $as_echo "#define HAVE_BASENAME 1" >>confdefs.h
12690 $as_echo "#define HAVE_DIRNAME 1" >>confdefs.h
12692 lib_for_basename="-lgen"
12693 else
12694 lib_for_basename="-lpcp"
12699 lib_for_clock_gettime=
12700 for ac_func in clock_gettime
12701 do :
12702 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
12703 if test "x$ac_cv_func_clock_gettime" = xyes; then :
12704 cat >>confdefs.h <<_ACEOF
12705 #define HAVE_CLOCK_GETTIME 1
12706 _ACEOF
12709 done
12711 if test $ac_cv_func_clock_gettime = no
12712 then
12713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
12714 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
12715 if ${ac_cv_lib_rt_clock_gettime+:} false; then :
12716 $as_echo_n "(cached) " >&6
12717 else
12718 ac_check_lib_save_LIBS=$LIBS
12719 LIBS="-lrt $LIBS"
12720 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12721 /* end confdefs.h. */
12723 /* Override any GCC internal prototype to avoid an error.
12724 Use char because int might match the return type of a GCC
12725 builtin and then its argument prototype would still apply. */
12726 #ifdef __cplusplus
12727 extern "C"
12728 #endif
12729 char clock_gettime ();
12731 main ()
12733 return clock_gettime ();
12735 return 0;
12737 _ACEOF
12738 if ac_fn_c_try_link "$LINENO"; then :
12739 ac_cv_lib_rt_clock_gettime=yes
12740 else
12741 ac_cv_lib_rt_clock_gettime=no
12743 rm -f core conftest.err conftest.$ac_objext \
12744 conftest$ac_exeext conftest.$ac_ext
12745 LIBS=$ac_check_lib_save_LIBS
12747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
12748 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
12749 if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
12750 cat >>confdefs.h <<_ACEOF
12751 #define HAVE_LIBRT 1
12752 _ACEOF
12754 LIBS="-lrt $LIBS"
12758 if test $ac_cv_lib_rt_clock_gettime = yes
12759 then
12761 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
12763 lib_for_rt=-lrt
12768 lib_for_dlopen=
12769 for ac_func in dlopen
12770 do :
12771 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12772 if test "x$ac_cv_func_dlopen" = xyes; then :
12773 cat >>confdefs.h <<_ACEOF
12774 #define HAVE_DLOPEN 1
12775 _ACEOF
12778 done
12780 if test $ac_cv_func_dlopen = no
12781 then
12782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12783 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12784 if ${ac_cv_lib_dl_dlopen+:} false; then :
12785 $as_echo_n "(cached) " >&6
12786 else
12787 ac_check_lib_save_LIBS=$LIBS
12788 LIBS="-ldl $LIBS"
12789 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12790 /* end confdefs.h. */
12792 /* Override any GCC internal prototype to avoid an error.
12793 Use char because int might match the return type of a GCC
12794 builtin and then its argument prototype would still apply. */
12795 #ifdef __cplusplus
12796 extern "C"
12797 #endif
12798 char dlopen ();
12800 main ()
12802 return dlopen ();
12804 return 0;
12806 _ACEOF
12807 if ac_fn_c_try_link "$LINENO"; then :
12808 ac_cv_lib_dl_dlopen=yes
12809 else
12810 ac_cv_lib_dl_dlopen=no
12812 rm -f core conftest.err conftest.$ac_objext \
12813 conftest$ac_exeext conftest.$ac_ext
12814 LIBS=$ac_check_lib_save_LIBS
12816 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12817 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12818 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12819 cat >>confdefs.h <<_ACEOF
12820 #define HAVE_LIBDL 1
12821 _ACEOF
12823 LIBS="-ldl $LIBS"
12827 if test $ac_cv_lib_dl_dlopen = yes
12828 then
12830 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
12832 lib_for_dlopen=-ldl
12837 lib_for_math=
12838 for ac_func in flog10
12839 do :
12840 ac_fn_c_check_func "$LINENO" "flog10" "ac_cv_func_flog10"
12841 if test "x$ac_cv_func_flog10" = xyes; then :
12842 cat >>confdefs.h <<_ACEOF
12843 #define HAVE_FLOG10 1
12844 _ACEOF
12847 done
12849 if test $ac_cv_func_flog10 = no
12850 then
12851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flog10 in -lm" >&5
12852 $as_echo_n "checking for flog10 in -lm... " >&6; }
12853 if ${ac_cv_lib_m_flog10+:} false; then :
12854 $as_echo_n "(cached) " >&6
12855 else
12856 ac_check_lib_save_LIBS=$LIBS
12857 LIBS="-lm $LIBS"
12858 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12859 /* end confdefs.h. */
12861 /* Override any GCC internal prototype to avoid an error.
12862 Use char because int might match the return type of a GCC
12863 builtin and then its argument prototype would still apply. */
12864 #ifdef __cplusplus
12865 extern "C"
12866 #endif
12867 char flog10 ();
12869 main ()
12871 return flog10 ();
12873 return 0;
12875 _ACEOF
12876 if ac_fn_c_try_link "$LINENO"; then :
12877 ac_cv_lib_m_flog10=yes
12878 else
12879 ac_cv_lib_m_flog10=no
12881 rm -f core conftest.err conftest.$ac_objext \
12882 conftest$ac_exeext conftest.$ac_ext
12883 LIBS=$ac_check_lib_save_LIBS
12885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_flog10" >&5
12886 $as_echo "$ac_cv_lib_m_flog10" >&6; }
12887 if test "x$ac_cv_lib_m_flog10" = xyes; then :
12888 cat >>confdefs.h <<_ACEOF
12889 #define HAVE_LIBM 1
12890 _ACEOF
12892 LIBS="-lm $LIBS"
12896 if test $ac_cv_lib_m_flog10 = yes
12897 then
12899 $as_echo "#define HAVE_FLOG10 1" >>confdefs.h
12901 lib_for_math=-lm
12903 else
12905 $as_echo "#define HAVE_FLOG10 1" >>confdefs.h
12908 for ac_func in pow
12909 do :
12910 ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
12911 if test "x$ac_cv_func_pow" = xyes; then :
12912 cat >>confdefs.h <<_ACEOF
12913 #define HAVE_POW 1
12914 _ACEOF
12917 done
12919 if test $ac_cv_func_pow = no
12920 then
12921 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
12922 $as_echo_n "checking for pow in -lm... " >&6; }
12923 if ${ac_cv_lib_m_pow+:} false; then :
12924 $as_echo_n "(cached) " >&6
12925 else
12926 ac_check_lib_save_LIBS=$LIBS
12927 LIBS="-lm $LIBS"
12928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12929 /* end confdefs.h. */
12931 /* Override any GCC internal prototype to avoid an error.
12932 Use char because int might match the return type of a GCC
12933 builtin and then its argument prototype would still apply. */
12934 #ifdef __cplusplus
12935 extern "C"
12936 #endif
12937 char pow ();
12939 main ()
12941 return pow ();
12943 return 0;
12945 _ACEOF
12946 if ac_fn_c_try_link "$LINENO"; then :
12947 ac_cv_lib_m_pow=yes
12948 else
12949 ac_cv_lib_m_pow=no
12951 rm -f core conftest.err conftest.$ac_objext \
12952 conftest$ac_exeext conftest.$ac_ext
12953 LIBS=$ac_check_lib_save_LIBS
12955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
12956 $as_echo "$ac_cv_lib_m_pow" >&6; }
12957 if test "x$ac_cv_lib_m_pow" = xyes; then :
12958 cat >>confdefs.h <<_ACEOF
12959 #define HAVE_LIBM 1
12960 _ACEOF
12962 LIBS="-lm $LIBS"
12966 if test $ac_cv_lib_m_pow = yes
12967 then
12969 $as_echo "#define HAVE_POW 1" >>confdefs.h
12971 lib_for_math=-lm
12973 else
12975 $as_echo "#define HAVE_POW 1" >>confdefs.h
12978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpclassify()" >&5
12979 $as_echo_n "checking for fpclassify()... " >&6; }
12980 ac_cv_func_fpclassify=no
12981 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12982 /* end confdefs.h. */
12984 #include <math.h>
12987 main ()
12990 double x = 123.456;
12991 if (fpclassify(x) == FP_NAN) exit(1);
12994 return 0;
12996 _ACEOF
12997 if ac_fn_c_try_link "$LINENO"; then :
12998 ac_cv_func_fpclassify=yes
13000 rm -f core conftest.err conftest.$ac_objext \
13001 conftest$ac_exeext conftest.$ac_ext
13002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fpclassify" >&5
13003 $as_echo "$ac_cv_func_fpclassify" >&6; }
13004 if test $ac_cv_func_fpclassify = no
13005 then
13006 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpclassify() with -lm" >&5
13007 $as_echo_n "checking for fpclassify() with -lm... " >&6; }
13008 savedLIBS=$LIBS
13009 LIBS=-lm
13010 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13011 /* end confdefs.h. */
13013 #include <math.h>
13016 main ()
13019 double x = 123.456;
13020 if (fpclassify(x) == FP_NAN) exit(1);
13023 return 0;
13025 _ACEOF
13026 if ac_fn_c_try_link "$LINENO"; then :
13027 ac_cv_func_fpclassify=yes
13029 rm -f core conftest.err conftest.$ac_objext \
13030 conftest$ac_exeext conftest.$ac_ext
13031 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fpclassify" >&5
13032 $as_echo "$ac_cv_func_fpclassify" >&6; }
13033 if test $ac_cv_func_fpclassify = yes
13034 then
13035 lib_for_math=-lm
13037 LIBS=$savedLIBS
13039 if test $ac_cv_func_fpclassify = yes
13040 then
13042 $as_echo "#define HAVE_FPCLASSIFY 1" >>confdefs.h
13044 else
13045 for ac_func in isnan
13046 do :
13047 ac_fn_c_check_func "$LINENO" "isnan" "ac_cv_func_isnan"
13048 if test "x$ac_cv_func_isnan" = xyes; then :
13049 cat >>confdefs.h <<_ACEOF
13050 #define HAVE_ISNAN 1
13051 _ACEOF
13054 done
13056 if test $ac_cv_func_isnan = no
13057 then
13058 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan in -lm" >&5
13059 $as_echo_n "checking for isnan in -lm... " >&6; }
13060 if ${ac_cv_lib_m_isnan+:} false; then :
13061 $as_echo_n "(cached) " >&6
13062 else
13063 ac_check_lib_save_LIBS=$LIBS
13064 LIBS="-lm $LIBS"
13065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13066 /* end confdefs.h. */
13068 /* Override any GCC internal prototype to avoid an error.
13069 Use char because int might match the return type of a GCC
13070 builtin and then its argument prototype would still apply. */
13071 #ifdef __cplusplus
13072 extern "C"
13073 #endif
13074 char isnan ();
13076 main ()
13078 return isnan ();
13080 return 0;
13082 _ACEOF
13083 if ac_fn_c_try_link "$LINENO"; then :
13084 ac_cv_lib_m_isnan=yes
13085 else
13086 ac_cv_lib_m_isnan=no
13088 rm -f core conftest.err conftest.$ac_objext \
13089 conftest$ac_exeext conftest.$ac_ext
13090 LIBS=$ac_check_lib_save_LIBS
13092 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_isnan" >&5
13093 $as_echo "$ac_cv_lib_m_isnan" >&6; }
13094 if test "x$ac_cv_lib_m_isnan" = xyes; then :
13095 cat >>confdefs.h <<_ACEOF
13096 #define HAVE_LIBM 1
13097 _ACEOF
13099 LIBS="-lm $LIBS"
13103 if test $ac_cv_lib_m_isnan = yes
13104 then
13106 $as_echo "#define HAVE_ISNAN 1" >>confdefs.h
13108 lib_for_math=-lm
13111 for ac_func in isnanf
13112 do :
13113 ac_fn_c_check_func "$LINENO" "isnanf" "ac_cv_func_isnanf"
13114 if test "x$ac_cv_func_isnanf" = xyes; then :
13115 cat >>confdefs.h <<_ACEOF
13116 #define HAVE_ISNANF 1
13117 _ACEOF
13120 done
13122 if test $ac_cv_func_isnanf = no
13123 then
13124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnanf in -lm" >&5
13125 $as_echo_n "checking for isnanf in -lm... " >&6; }
13126 if ${ac_cv_lib_m_isnanf+:} false; then :
13127 $as_echo_n "(cached) " >&6
13128 else
13129 ac_check_lib_save_LIBS=$LIBS
13130 LIBS="-lm $LIBS"
13131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13132 /* end confdefs.h. */
13134 /* Override any GCC internal prototype to avoid an error.
13135 Use char because int might match the return type of a GCC
13136 builtin and then its argument prototype would still apply. */
13137 #ifdef __cplusplus
13138 extern "C"
13139 #endif
13140 char isnanf ();
13142 main ()
13144 return isnanf ();
13146 return 0;
13148 _ACEOF
13149 if ac_fn_c_try_link "$LINENO"; then :
13150 ac_cv_lib_m_isnanf=yes
13151 else
13152 ac_cv_lib_m_isnanf=no
13154 rm -f core conftest.err conftest.$ac_objext \
13155 conftest$ac_exeext conftest.$ac_ext
13156 LIBS=$ac_check_lib_save_LIBS
13158 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_isnanf" >&5
13159 $as_echo "$ac_cv_lib_m_isnanf" >&6; }
13160 if test "x$ac_cv_lib_m_isnanf" = xyes; then :
13161 cat >>confdefs.h <<_ACEOF
13162 #define HAVE_LIBM 1
13163 _ACEOF
13165 LIBS="-lm $LIBS"
13169 if test $ac_cv_lib_m_isnanf = yes
13170 then
13172 $as_echo "#define HAVE_ISNANF 1" >>confdefs.h
13174 lib_for_math=-lm
13180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13181 /* end confdefs.h. */
13182 #include <signal.h>
13184 main ()
13186 SIG_PF x;
13188 return 0;
13190 _ACEOF
13191 if ac_fn_c_try_link "$LINENO"; then :
13193 $as_echo "#define HAVE_SIGPF 1" >>confdefs.h
13196 rm -f core conftest.err conftest.$ac_objext \
13197 conftest$ac_exeext conftest.$ac_ext
13199 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13200 /* end confdefs.h. */
13201 #include <signal.h>
13203 main ()
13205 int x = SA_SIGINFO;
13207 return 0;
13209 _ACEOF
13210 if ac_fn_c_try_link "$LINENO"; then :
13212 $as_echo "#define HAVE_SA_SIGINFO 1" >>confdefs.h
13215 rm -f core conftest.err conftest.$ac_objext \
13216 conftest$ac_exeext conftest.$ac_ext
13218 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13219 /* end confdefs.h. */
13220 #include <signal.h>
13222 main ()
13224 int x = SIGPIPE;
13226 return 0;
13228 _ACEOF
13229 if ac_fn_c_try_link "$LINENO"; then :
13231 $as_echo "#define HAVE_SIGPIPE 1" >>confdefs.h
13234 rm -f core conftest.err conftest.$ac_objext \
13235 conftest$ac_exeext conftest.$ac_ext
13237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13238 /* end confdefs.h. */
13239 #include <signal.h>
13241 main ()
13243 int x = SIGHUP;
13245 return 0;
13247 _ACEOF
13248 if ac_fn_c_try_link "$LINENO"; then :
13250 $as_echo "#define HAVE_SIGHUP 1" >>confdefs.h
13253 rm -f core conftest.err conftest.$ac_objext \
13254 conftest$ac_exeext conftest.$ac_ext
13256 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13257 /* end confdefs.h. */
13258 #include <signal.h>
13260 main ()
13262 int x = SIGBUS;
13264 return 0;
13266 _ACEOF
13267 if ac_fn_c_try_link "$LINENO"; then :
13269 $as_echo "#define HAVE_SIGBUS 1" >>confdefs.h
13272 rm -f core conftest.err conftest.$ac_objext \
13273 conftest$ac_exeext conftest.$ac_ext
13275 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13276 /* end confdefs.h. */
13277 #include <sys/wait.h>
13279 main ()
13281 typedef void (*SIGRET)(int);
13282 SIGRET x = SIG_IGN;
13285 return 0;
13287 _ACEOF
13288 if ac_fn_c_try_link "$LINENO"; then :
13290 $as_echo "#define HAVE_WAIT_INCLUDES_SIGNAL 1" >>confdefs.h
13293 rm -f core conftest.err conftest.$ac_objext \
13294 conftest$ac_exeext conftest.$ac_ext
13296 have_stat_type=false
13297 have_stat_name=false
13298 if test $have_stat_name = false
13299 then
13300 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13301 /* end confdefs.h. */
13302 #include <sys/stat.h>
13304 _ACEOF
13305 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13306 $EGREP "[ ]st_mtimespec" >/dev/null 2>&1; then :
13307 have_stat_name=true;
13309 $as_echo "#define HAVE_ST_MTIME_WITH_SPEC 1" >>confdefs.h
13312 rm -f conftest*
13315 if test $have_stat_name = false -a $target_os != darwin -a $target_os != linux -a $target_os != kfreebsd -a $target_os != netbsd
13316 then
13317 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13318 /* end confdefs.h. */
13319 #include <sys/stat.h>
13321 _ACEOF
13322 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13323 $EGREP "[ ]st_mtime" >/dev/null 2>&1; then :
13324 have_stat_name=true;
13326 $as_echo "#define HAVE_ST_MTIME_WITH_E 1" >>confdefs.h
13329 rm -f conftest*
13332 if test $have_stat_type = false
13333 then
13334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13335 /* end confdefs.h. */
13336 #include <sys/stat.h>
13338 _ACEOF
13339 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13340 $EGREP "timestruc_t[ ][ ]*st_mtim" >/dev/null 2>&1; then :
13341 have_stat_type=true;
13343 $as_echo "#define HAVE_STAT_TIMESTRUC 1" >>confdefs.h
13346 rm -f conftest*
13349 if test $have_stat_type = false
13350 then
13351 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13352 /* end confdefs.h. */
13353 #include <sys/stat.h>
13355 _ACEOF
13356 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13357 $EGREP "timespec_t[ ][ ]*st_mtim" >/dev/null 2>&1; then :
13358 have_stat_type=true;
13360 $as_echo "#define HAVE_STAT_TIMESPEC_T 1" >>confdefs.h
13363 rm -f conftest*
13366 if test $have_stat_type = false
13367 then
13368 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13369 /* end confdefs.h. */
13370 #include <sys/stat.h>
13372 _ACEOF
13373 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13374 $EGREP "timespec[ ][ ]*st_mtim" >/dev/null 2>&1; then :
13375 have_stat_type=true;
13377 $as_echo "#define HAVE_STAT_TIMESPEC 1" >>confdefs.h
13380 rm -f conftest*
13383 if test $have_stat_type = false
13384 then
13385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13386 /* end confdefs.h. */
13387 #include <sys/stat.h>
13389 _ACEOF
13390 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13391 $EGREP "time_t[ ][ ]*st_mtim" >/dev/null 2>&1; then :
13392 have_stat_type=true;
13394 $as_echo "#define HAVE_STAT_TIME_T 1" >>confdefs.h
13397 rm -f conftest*
13400 if test $have_stat_type = false
13401 then
13402 echo 'FATAL ERROR: Cannot determine struct stat time types.'
13403 rm -rf conftest conftest.*
13404 exit 1
13408 pcp_etc_dir=`eval echo $sysconfdir`
13409 pcp_etc_dir=`eval echo $pcp_etc_dir`
13411 pcp_saslconf_dir=`eval echo $sysconfdir/sasl2`
13412 pcp_saslconf_dir=`eval echo $pcp_saslconf_dir`
13414 pcp_sysconf_dir=`eval echo $sysconfdir/pcp`
13415 pcp_sysconf_dir=`eval echo $pcp_sysconf_dir`
13417 pcp_pmcdconf_path=$pcp_sysconf_dir/pmcd/pmcd.conf
13418 pcp_pmcdrclocal_path=$pcp_sysconf_dir/pmcd/rc.local
13419 pcp_pmcdoptions_path=$pcp_sysconf_dir/pmcd/pmcd.options
13420 pcp_pmwebdoptions_path=$pcp_sysconf_dir/pmwebd/pmwebd.options
13421 pcp_pmmgroptions_path=$pcp_sysconf_dir/pmmgr/pmmgr.options
13422 pcp_pmproxyoptions_path=$pcp_sysconf_dir/pmproxy/pmproxy.options
13423 pcp_pmiecontrol_path=$pcp_sysconf_dir/pmie/control
13424 pcp_pmsnapcontrol_path=$pcp_sysconf_dir/pmsnap/control
13425 pcp_pmloggercontrol_path=$pcp_sysconf_dir/pmlogger/control
13436 pcp_share_dir=`eval echo $datarootdir/pcp`
13437 pcp_share_dir=`eval echo $pcp_share_dir`
13440 pcp_binadm_dir=`eval echo $libexecdir/pcp/bin`
13441 pcp_binadm_dir=`eval echo $pcp_binadm_dir`
13444 pcp_var_dir=`eval echo $localstatedir/lib/pcp`
13445 pcp_var_dir=`eval echo $pcp_var_dir`
13449 # Check whether --with-configdir was given.
13450 if test "${with_configdir+set}" = set; then :
13451 withval=$with_configdir; pcp_config_dir=$withval
13452 else
13453 pcp_config_dir=$pcp_var_dir/config
13457 pcp_pmdas_dir=$pcp_var_dir/pmdas
13460 pcp_selinux_dir=$pcp_var_dir/selinux
13463 pcp_lib_dir=`eval echo $libdir`
13464 pcp_lib_dir=`eval echo $pcp_lib_dir`
13465 pcp_lib32_dir=`echo $pcp_lib_dir | sed -e s,64,, -e s,//,/,`
13470 # Check whether --with-perl_installdirs was given.
13471 if test "${with_perl_installdirs+set}" = set; then :
13472 withval=$with_perl_installdirs; perl_installdirs=$withval
13473 else
13474 perl_installdirs=vendor
13477 perl_installdirs=`eval echo $perl_installdirs`
13478 perl_installdirs=`eval echo $perl_installdirs`
13481 # Check whether --with-perl_install_base was given.
13482 if test "${with_perl_install_base+set}" = set; then :
13483 withval=$with_perl_install_base; perl_install_base=$withval
13484 else
13485 perl_install_base=$prefix
13488 perl_install_base=`eval echo $perl_install_base`
13489 perl_install_base=`eval echo $perl_install_base`
13493 # Check whether --with-python_prefix was given.
13494 if test "${with_python_prefix+set}" = set; then :
13495 withval=$with_python_prefix; python_prefix=$withval
13496 else
13497 python_prefix=$prefix
13500 python_prefix=`eval echo $python_prefix`
13501 python_prefix=`eval echo $python_prefix`
13504 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
13505 $as_echo_n "checking for X... " >&6; }
13508 # Check whether --with-x was given.
13509 if test "${with_x+set}" = set; then :
13510 withval=$with_x;
13513 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
13514 if test "x$with_x" = xno; then
13515 # The user explicitly disabled X.
13516 have_x=disabled
13517 else
13518 case $x_includes,$x_libraries in #(
13519 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
13520 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
13521 $as_echo_n "(cached) " >&6
13522 else
13523 # One or both of the vars are not set, and there is no cached value.
13524 ac_x_includes=no ac_x_libraries=no
13525 rm -f -r conftest.dir
13526 if mkdir conftest.dir; then
13527 cd conftest.dir
13528 cat >Imakefile <<'_ACEOF'
13529 incroot:
13530 @echo incroot='${INCROOT}'
13531 usrlibdir:
13532 @echo usrlibdir='${USRLIBDIR}'
13533 libdir:
13534 @echo libdir='${LIBDIR}'
13535 _ACEOF
13536 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
13537 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
13538 for ac_var in incroot usrlibdir libdir; do
13539 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
13540 done
13541 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
13542 for ac_extension in a so sl dylib la dll; do
13543 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
13544 test -f "$ac_im_libdir/libX11.$ac_extension"; then
13545 ac_im_usrlibdir=$ac_im_libdir; break
13547 done
13548 # Screen out bogus values from the imake configuration. They are
13549 # bogus both because they are the default anyway, and because
13550 # using them would break gcc on systems where it needs fixed includes.
13551 case $ac_im_incroot in
13552 /usr/include) ac_x_includes= ;;
13553 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
13554 esac
13555 case $ac_im_usrlibdir in
13556 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
13557 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
13558 esac
13560 cd ..
13561 rm -f -r conftest.dir
13564 # Standard set of common directories for X headers.
13565 # Check X11 before X11Rn because it is often a symlink to the current release.
13566 ac_x_header_dirs='
13567 /usr/X11/include
13568 /usr/X11R7/include
13569 /usr/X11R6/include
13570 /usr/X11R5/include
13571 /usr/X11R4/include
13573 /usr/include/X11
13574 /usr/include/X11R7
13575 /usr/include/X11R6
13576 /usr/include/X11R5
13577 /usr/include/X11R4
13579 /usr/local/X11/include
13580 /usr/local/X11R7/include
13581 /usr/local/X11R6/include
13582 /usr/local/X11R5/include
13583 /usr/local/X11R4/include
13585 /usr/local/include/X11
13586 /usr/local/include/X11R7
13587 /usr/local/include/X11R6
13588 /usr/local/include/X11R5
13589 /usr/local/include/X11R4
13591 /usr/X386/include
13592 /usr/x386/include
13593 /usr/XFree86/include/X11
13595 /usr/include
13596 /usr/local/include
13597 /usr/unsupported/include
13598 /usr/athena/include
13599 /usr/local/x11r5/include
13600 /usr/lpp/Xamples/include
13602 /usr/openwin/include
13603 /usr/openwin/share/include'
13605 if test "$ac_x_includes" = no; then
13606 # Guess where to find include files, by looking for Xlib.h.
13607 # First, try using that file with no special directory specified.
13608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13609 /* end confdefs.h. */
13610 #include <X11/Xlib.h>
13611 _ACEOF
13612 if ac_fn_c_try_cpp "$LINENO"; then :
13613 # We can compile using X headers with no special include directory.
13614 ac_x_includes=
13615 else
13616 for ac_dir in $ac_x_header_dirs; do
13617 if test -r "$ac_dir/X11/Xlib.h"; then
13618 ac_x_includes=$ac_dir
13619 break
13621 done
13623 rm -f conftest.err conftest.i conftest.$ac_ext
13624 fi # $ac_x_includes = no
13626 if test "$ac_x_libraries" = no; then
13627 # Check for the libraries.
13628 # See if we find them without any special options.
13629 # Don't add to $LIBS permanently.
13630 ac_save_LIBS=$LIBS
13631 LIBS="-lX11 $LIBS"
13632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13633 /* end confdefs.h. */
13634 #include <X11/Xlib.h>
13636 main ()
13638 XrmInitialize ()
13640 return 0;
13642 _ACEOF
13643 if ac_fn_c_try_link "$LINENO"; then :
13644 LIBS=$ac_save_LIBS
13645 # We can link X programs with no special library path.
13646 ac_x_libraries=
13647 else
13648 LIBS=$ac_save_LIBS
13649 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
13651 # Don't even attempt the hair of trying to link an X program!
13652 for ac_extension in a so sl dylib la dll; do
13653 if test -r "$ac_dir/libX11.$ac_extension"; then
13654 ac_x_libraries=$ac_dir
13655 break 2
13657 done
13658 done
13660 rm -f core conftest.err conftest.$ac_objext \
13661 conftest$ac_exeext conftest.$ac_ext
13662 fi # $ac_x_libraries = no
13664 case $ac_x_includes,$ac_x_libraries in #(
13665 no,* | *,no | *\'*)
13666 # Didn't find X, or a directory has "'" in its name.
13667 ac_cv_have_x="have_x=no";; #(
13669 # Record where we found X for the cache.
13670 ac_cv_have_x="have_x=yes\
13671 ac_x_includes='$ac_x_includes'\
13672 ac_x_libraries='$ac_x_libraries'"
13673 esac
13675 ;; #(
13676 *) have_x=yes;;
13677 esac
13678 eval "$ac_cv_have_x"
13679 fi # $with_x != no
13681 if test "$have_x" != yes; then
13682 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
13683 $as_echo "$have_x" >&6; }
13684 no_x=yes
13685 else
13686 # If each of the values was on the command line, it overrides each guess.
13687 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
13688 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
13689 # Update the cache value to reflect the command line values.
13690 ac_cv_have_x="have_x=yes\
13691 ac_x_includes='$x_includes'\
13692 ac_x_libraries='$x_libraries'"
13693 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
13694 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
13697 if test "$no_x" = yes; then
13698 # Not all programs may use this symbol, but it does not hurt to define it.
13700 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
13702 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
13703 else
13704 if test -n "$x_includes"; then
13705 X_CFLAGS="$X_CFLAGS -I$x_includes"
13708 # It would also be nice to do this for all -L options, not just this one.
13709 if test -n "$x_libraries"; then
13710 X_LIBS="$X_LIBS -L$x_libraries"
13711 # For Solaris; some versions of Sun CC require a space after -R and
13712 # others require no space. Words are not sufficient . . . .
13713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
13714 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
13715 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
13716 ac_xsave_c_werror_flag=$ac_c_werror_flag
13717 ac_c_werror_flag=yes
13718 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13719 /* end confdefs.h. */
13722 main ()
13726 return 0;
13728 _ACEOF
13729 if ac_fn_c_try_link "$LINENO"; then :
13730 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13731 $as_echo "no" >&6; }
13732 X_LIBS="$X_LIBS -R$x_libraries"
13733 else
13734 LIBS="$ac_xsave_LIBS -R $x_libraries"
13735 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13736 /* end confdefs.h. */
13739 main ()
13743 return 0;
13745 _ACEOF
13746 if ac_fn_c_try_link "$LINENO"; then :
13747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13748 $as_echo "yes" >&6; }
13749 X_LIBS="$X_LIBS -R $x_libraries"
13750 else
13751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
13752 $as_echo "neither works" >&6; }
13754 rm -f core conftest.err conftest.$ac_objext \
13755 conftest$ac_exeext conftest.$ac_ext
13757 rm -f core conftest.err conftest.$ac_objext \
13758 conftest$ac_exeext conftest.$ac_ext
13759 ac_c_werror_flag=$ac_xsave_c_werror_flag
13760 LIBS=$ac_xsave_LIBS
13763 # Check for system-dependent libraries X programs must link with.
13764 # Do this before checking for the system-independent R6 libraries
13765 # (-lICE), since we may need -lsocket or whatever for X linking.
13767 if test "$ISC" = yes; then
13768 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
13769 else
13770 # Martyn Johnson says this is needed for Ultrix, if the X
13771 # libraries were built with DECnet support. And Karl Berry says
13772 # the Alpha needs dnet_stub (dnet does not exist).
13773 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
13774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13775 /* end confdefs.h. */
13777 /* Override any GCC internal prototype to avoid an error.
13778 Use char because int might match the return type of a GCC
13779 builtin and then its argument prototype would still apply. */
13780 #ifdef __cplusplus
13781 extern "C"
13782 #endif
13783 char XOpenDisplay ();
13785 main ()
13787 return XOpenDisplay ();
13789 return 0;
13791 _ACEOF
13792 if ac_fn_c_try_link "$LINENO"; then :
13794 else
13795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
13796 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
13797 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
13798 $as_echo_n "(cached) " >&6
13799 else
13800 ac_check_lib_save_LIBS=$LIBS
13801 LIBS="-ldnet $LIBS"
13802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13803 /* end confdefs.h. */
13805 /* Override any GCC internal prototype to avoid an error.
13806 Use char because int might match the return type of a GCC
13807 builtin and then its argument prototype would still apply. */
13808 #ifdef __cplusplus
13809 extern "C"
13810 #endif
13811 char dnet_ntoa ();
13813 main ()
13815 return dnet_ntoa ();
13817 return 0;
13819 _ACEOF
13820 if ac_fn_c_try_link "$LINENO"; then :
13821 ac_cv_lib_dnet_dnet_ntoa=yes
13822 else
13823 ac_cv_lib_dnet_dnet_ntoa=no
13825 rm -f core conftest.err conftest.$ac_objext \
13826 conftest$ac_exeext conftest.$ac_ext
13827 LIBS=$ac_check_lib_save_LIBS
13829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
13830 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
13831 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
13832 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
13835 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
13836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
13837 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
13838 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
13839 $as_echo_n "(cached) " >&6
13840 else
13841 ac_check_lib_save_LIBS=$LIBS
13842 LIBS="-ldnet_stub $LIBS"
13843 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13844 /* end confdefs.h. */
13846 /* Override any GCC internal prototype to avoid an error.
13847 Use char because int might match the return type of a GCC
13848 builtin and then its argument prototype would still apply. */
13849 #ifdef __cplusplus
13850 extern "C"
13851 #endif
13852 char dnet_ntoa ();
13854 main ()
13856 return dnet_ntoa ();
13858 return 0;
13860 _ACEOF
13861 if ac_fn_c_try_link "$LINENO"; then :
13862 ac_cv_lib_dnet_stub_dnet_ntoa=yes
13863 else
13864 ac_cv_lib_dnet_stub_dnet_ntoa=no
13866 rm -f core conftest.err conftest.$ac_objext \
13867 conftest$ac_exeext conftest.$ac_ext
13868 LIBS=$ac_check_lib_save_LIBS
13870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
13871 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
13872 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
13873 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
13878 rm -f core conftest.err conftest.$ac_objext \
13879 conftest$ac_exeext conftest.$ac_ext
13880 LIBS="$ac_xsave_LIBS"
13882 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
13883 # to get the SysV transport functions.
13884 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
13885 # needs -lnsl.
13886 # The nsl library prevents programs from opening the X display
13887 # on Irix 5.2, according to T.E. Dickey.
13888 # The functions gethostbyname, getservbyname, and inet_addr are
13889 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
13890 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
13891 if test "x$ac_cv_func_gethostbyname" = xyes; then :
13895 if test $ac_cv_func_gethostbyname = no; then
13896 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
13897 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
13898 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
13899 $as_echo_n "(cached) " >&6
13900 else
13901 ac_check_lib_save_LIBS=$LIBS
13902 LIBS="-lnsl $LIBS"
13903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13904 /* end confdefs.h. */
13906 /* Override any GCC internal prototype to avoid an error.
13907 Use char because int might match the return type of a GCC
13908 builtin and then its argument prototype would still apply. */
13909 #ifdef __cplusplus
13910 extern "C"
13911 #endif
13912 char gethostbyname ();
13914 main ()
13916 return gethostbyname ();
13918 return 0;
13920 _ACEOF
13921 if ac_fn_c_try_link "$LINENO"; then :
13922 ac_cv_lib_nsl_gethostbyname=yes
13923 else
13924 ac_cv_lib_nsl_gethostbyname=no
13926 rm -f core conftest.err conftest.$ac_objext \
13927 conftest$ac_exeext conftest.$ac_ext
13928 LIBS=$ac_check_lib_save_LIBS
13930 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
13931 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
13932 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
13933 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
13936 if test $ac_cv_lib_nsl_gethostbyname = no; then
13937 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
13938 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
13939 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
13940 $as_echo_n "(cached) " >&6
13941 else
13942 ac_check_lib_save_LIBS=$LIBS
13943 LIBS="-lbsd $LIBS"
13944 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13945 /* end confdefs.h. */
13947 /* Override any GCC internal prototype to avoid an error.
13948 Use char because int might match the return type of a GCC
13949 builtin and then its argument prototype would still apply. */
13950 #ifdef __cplusplus
13951 extern "C"
13952 #endif
13953 char gethostbyname ();
13955 main ()
13957 return gethostbyname ();
13959 return 0;
13961 _ACEOF
13962 if ac_fn_c_try_link "$LINENO"; then :
13963 ac_cv_lib_bsd_gethostbyname=yes
13964 else
13965 ac_cv_lib_bsd_gethostbyname=no
13967 rm -f core conftest.err conftest.$ac_objext \
13968 conftest$ac_exeext conftest.$ac_ext
13969 LIBS=$ac_check_lib_save_LIBS
13971 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
13972 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
13973 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
13974 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
13980 # lieder@skyler.mavd.honeywell.com says without -lsocket,
13981 # socket/setsockopt and other routines are undefined under SCO ODT
13982 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
13983 # on later versions), says Simon Leinen: it contains gethostby*
13984 # variants that don't use the name server (or something). -lsocket
13985 # must be given before -lnsl if both are needed. We assume that
13986 # if connect needs -lnsl, so does gethostbyname.
13987 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
13988 if test "x$ac_cv_func_connect" = xyes; then :
13992 if test $ac_cv_func_connect = no; then
13993 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
13994 $as_echo_n "checking for connect in -lsocket... " >&6; }
13995 if ${ac_cv_lib_socket_connect+:} false; then :
13996 $as_echo_n "(cached) " >&6
13997 else
13998 ac_check_lib_save_LIBS=$LIBS
13999 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
14000 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14001 /* end confdefs.h. */
14003 /* Override any GCC internal prototype to avoid an error.
14004 Use char because int might match the return type of a GCC
14005 builtin and then its argument prototype would still apply. */
14006 #ifdef __cplusplus
14007 extern "C"
14008 #endif
14009 char connect ();
14011 main ()
14013 return connect ();
14015 return 0;
14017 _ACEOF
14018 if ac_fn_c_try_link "$LINENO"; then :
14019 ac_cv_lib_socket_connect=yes
14020 else
14021 ac_cv_lib_socket_connect=no
14023 rm -f core conftest.err conftest.$ac_objext \
14024 conftest$ac_exeext conftest.$ac_ext
14025 LIBS=$ac_check_lib_save_LIBS
14027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
14028 $as_echo "$ac_cv_lib_socket_connect" >&6; }
14029 if test "x$ac_cv_lib_socket_connect" = xyes; then :
14030 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
14035 # Guillermo Gomez says -lposix is necessary on A/UX.
14036 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
14037 if test "x$ac_cv_func_remove" = xyes; then :
14041 if test $ac_cv_func_remove = no; then
14042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
14043 $as_echo_n "checking for remove in -lposix... " >&6; }
14044 if ${ac_cv_lib_posix_remove+:} false; then :
14045 $as_echo_n "(cached) " >&6
14046 else
14047 ac_check_lib_save_LIBS=$LIBS
14048 LIBS="-lposix $LIBS"
14049 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14050 /* end confdefs.h. */
14052 /* Override any GCC internal prototype to avoid an error.
14053 Use char because int might match the return type of a GCC
14054 builtin and then its argument prototype would still apply. */
14055 #ifdef __cplusplus
14056 extern "C"
14057 #endif
14058 char remove ();
14060 main ()
14062 return remove ();
14064 return 0;
14066 _ACEOF
14067 if ac_fn_c_try_link "$LINENO"; then :
14068 ac_cv_lib_posix_remove=yes
14069 else
14070 ac_cv_lib_posix_remove=no
14072 rm -f core conftest.err conftest.$ac_objext \
14073 conftest$ac_exeext conftest.$ac_ext
14074 LIBS=$ac_check_lib_save_LIBS
14076 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
14077 $as_echo "$ac_cv_lib_posix_remove" >&6; }
14078 if test "x$ac_cv_lib_posix_remove" = xyes; then :
14079 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
14084 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
14085 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
14086 if test "x$ac_cv_func_shmat" = xyes; then :
14090 if test $ac_cv_func_shmat = no; then
14091 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
14092 $as_echo_n "checking for shmat in -lipc... " >&6; }
14093 if ${ac_cv_lib_ipc_shmat+:} false; then :
14094 $as_echo_n "(cached) " >&6
14095 else
14096 ac_check_lib_save_LIBS=$LIBS
14097 LIBS="-lipc $LIBS"
14098 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14099 /* end confdefs.h. */
14101 /* Override any GCC internal prototype to avoid an error.
14102 Use char because int might match the return type of a GCC
14103 builtin and then its argument prototype would still apply. */
14104 #ifdef __cplusplus
14105 extern "C"
14106 #endif
14107 char shmat ();
14109 main ()
14111 return shmat ();
14113 return 0;
14115 _ACEOF
14116 if ac_fn_c_try_link "$LINENO"; then :
14117 ac_cv_lib_ipc_shmat=yes
14118 else
14119 ac_cv_lib_ipc_shmat=no
14121 rm -f core conftest.err conftest.$ac_objext \
14122 conftest$ac_exeext conftest.$ac_ext
14123 LIBS=$ac_check_lib_save_LIBS
14125 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
14126 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
14127 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
14128 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
14134 # Check for libraries that X11R6 Xt/Xaw programs need.
14135 ac_save_LDFLAGS=$LDFLAGS
14136 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
14137 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
14138 # check for ICE first), but we must link in the order -lSM -lICE or
14139 # we get undefined symbols. So assume we have SM if we have ICE.
14140 # These have to be linked with before -lX11, unlike the other
14141 # libraries we check for below, so use a different variable.
14142 # John Interrante, Karl Berry
14143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
14144 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
14145 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
14146 $as_echo_n "(cached) " >&6
14147 else
14148 ac_check_lib_save_LIBS=$LIBS
14149 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
14150 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14151 /* end confdefs.h. */
14153 /* Override any GCC internal prototype to avoid an error.
14154 Use char because int might match the return type of a GCC
14155 builtin and then its argument prototype would still apply. */
14156 #ifdef __cplusplus
14157 extern "C"
14158 #endif
14159 char IceConnectionNumber ();
14161 main ()
14163 return IceConnectionNumber ();
14165 return 0;
14167 _ACEOF
14168 if ac_fn_c_try_link "$LINENO"; then :
14169 ac_cv_lib_ICE_IceConnectionNumber=yes
14170 else
14171 ac_cv_lib_ICE_IceConnectionNumber=no
14173 rm -f core conftest.err conftest.$ac_objext \
14174 conftest$ac_exeext conftest.$ac_ext
14175 LIBS=$ac_check_lib_save_LIBS
14177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
14178 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
14179 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
14180 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
14183 LDFLAGS=$ac_save_LDFLAGS
14187 pcp_x11_incflags=$X_CFLAGS
14189 pcp_x11_libflags=$X_LIBS
14191 pcp_x11_extra=$X_EXTRA_LIBS
14193 pcp_x11_pre=$X_PRE_LIBS
14196 have_manpages=false
14197 have_gzipped_manpages=false
14198 have_bzip2ed_manpages=false
14199 have_lzmaed_manpages=false
14200 have_xzed_manpages=false
14201 need_old_tbl_header=false
14202 man_header=
14203 pcp_man_dir=`eval echo $mandir`
14204 pcp_man_dir=`eval echo $pcp_man_dir`
14206 for d in /usr/man /usr/share/man $pcp_man_dir
14208 for sd in man1 sman1
14210 if test -f $d/$sd/man.1.gz
14211 then
14212 have_gzipped_manpages=true
14213 have_manpages=true
14214 man_header=`$ZIP -d < $d/$sd/man.1.gz | head -1`
14215 break
14216 elif test -f $d/$sd/man.1.bz2
14217 then
14218 have_bzip2ed_manpages=true
14219 have_manpages=true
14220 man_header=`$BZIP2 -d < $d/$sd/man.1.bz2 | head -1`
14221 break
14222 elif test -f $d/$sd/man.1.lzma
14223 then
14224 have_lzmaed_manpages=true
14225 have_manpages=true
14226 man_header=`$LZMA -d < $d/$sd/man.1.lzma | head -1`
14227 break
14228 elif test -f $d/$sd/man.1.xz
14229 then
14230 have_xzed_manpages=true
14231 have_manpages=true
14232 man_header=`$XZ -d < $d/$sd/man.1.xz | head -1`
14233 break
14234 elif test -f $d/$sd/man.1
14235 then
14236 man_header=`head -1 $d/$sd/man.1`
14237 have_manpages=true
14238 break
14240 done
14241 done
14242 if test x"$man_header" = "x'\\\" t" -o x"$man_header" = "x'\\\" te" ; then
14243 need_old_tbl_header=true
14253 pcp_bin_dir=`eval echo $bindir`
14254 pcp_bin_dir=`eval echo $pcp_bin_dir`
14257 pcp_sbin_dir=`eval echo $sbindir`
14258 pcp_sbin_dir=`eval echo $pcp_sbin_dir`
14261 pcp_inc_dir=`eval echo $includedir/pcp`
14262 pcp_inc_dir=`eval echo $pcp_inc_dir`
14265 if test $target_os = linux; then
14266 pcp_books_dir=`eval echo $datarootdir/doc/pcp-doc`
14267 else
14268 pcp_books_dir=`eval echo $datarootdir/doc/pcp`
14270 pcp_books_dir=`eval echo $pcp_books_dir`
14271 pcp_html_dir=`eval echo $pcp_books_dir/html`
14275 if test $target_os = linux; then
14276 pcp_icons_dir=`eval echo $datarootdir/pcp-gui/pixmaps`
14277 else
14278 pcp_icons_dir=`eval echo $datarootdir/pcp/pixmaps`
14280 pcp_icons_dir=`eval echo $pcp_icons_dir`
14283 pcp_desktop_dir=`eval echo $datarootdir/applications`
14284 pcp_desktop_dir=`eval echo $pcp_desktop_dir`
14288 # Check whether --with-rcdir was given.
14289 if test "${with_rcdir+set}" = set; then :
14290 withval=$with_rcdir; pcp_rc_dir=$withval
14291 else
14293 if $enable_systemd
14294 then
14295 pcp_rc_dir="$pcp_share_dir/lib"
14296 else
14297 pcp_rc_dir="$pcp_etc_dir/init.d"
14304 # Check whether --with-sysconfigdir was given.
14305 if test "${with_sysconfigdir+set}" = set; then :
14306 withval=$with_sysconfigdir; pcp_sysconfig_dir=$withval
14307 else
14308 pcp_sysconfig_dir=$pcp_etc_dir/sysconfig
14314 # Check whether --with-logdir was given.
14315 if test "${with_logdir+set}" = set; then :
14316 withval=$with_logdir; pcp_log_dir=$withval
14317 else
14318 pcp_log_dir=$localstatedir/log/pcp
14321 pcp_log_dir=`eval echo $pcp_log_dir`
14322 pcp_log_dir=`eval echo $pcp_log_dir`
14326 # Check whether --with-rundir was given.
14327 if test "${with_rundir+set}" = set; then :
14328 withval=$with_rundir; pcp_run_dir=$withval
14329 else
14330 pcp_run_dir=$localstatedir/run/pcp
14333 pcp_run_dir=`eval echo $pcp_run_dir`
14334 pcp_run_dir=`eval echo $pcp_run_dir`
14338 # Check whether --with-tmpdir was given.
14339 if test "${with_tmpdir+set}" = set; then :
14340 withval=$with_tmpdir; pcp_tmpfile_dir=$withval
14341 else
14342 pcp_tmpfile_dir=$localstatedir/tmp
14345 pcp_tmpfile_dir=`eval echo $pcp_tmpfile_dir`
14346 pcp_tmpfile_dir=`eval echo $pcp_tmpfile_dir`
14349 pcp_tmp_dir=`eval echo $pcp_var_dir/tmp`
14353 # Check whether --with-docdir was given.
14354 if test "${with_docdir+set}" = set; then :
14355 withval=$with_docdir; pcp_doc_dir=$withval
14356 else
14357 PACKAGE=pcp-${PACKAGE_VERSION}; pcp_doc_dir=$docdir
14360 pcp_doc_dir=`eval echo $pcp_doc_dir`
14361 pcp_doc_dir=`eval echo $pcp_doc_dir`
14365 # Check whether --with-demosdir was given.
14366 if test "${with_demosdir+set}" = set; then :
14367 withval=$with_demosdir; pcp_demos_dir=$withval
14368 else
14369 pcp_demos_dir=$pcp_share_dir/demos
14374 if test -z "$XCONFIRM"
14375 then
14376 # Extract the first word of "xconfirm", so it can be a program name with args.
14377 set dummy xconfirm; ac_word=$2
14378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
14379 $as_echo_n "checking for $ac_word... " >&6; }
14380 if ${ac_cv_path_ac_xconfirm_prog+:} false; then :
14381 $as_echo_n "(cached) " >&6
14382 else
14383 case $ac_xconfirm_prog in
14384 [\\/]* | ?:[\\/]*)
14385 ac_cv_path_ac_xconfirm_prog="$ac_xconfirm_prog" # Let the user override the test with a path.
14388 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14389 for as_dir in $PATH
14391 IFS=$as_save_IFS
14392 test -z "$as_dir" && as_dir=.
14393 for ac_exec_ext in '' $ac_executable_extensions; do
14394 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14395 ac_cv_path_ac_xconfirm_prog="$as_dir/$ac_word$ac_exec_ext"
14396 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14397 break 2
14399 done
14400 done
14401 IFS=$as_save_IFS
14403 test -z "$ac_cv_path_ac_xconfirm_prog" && ac_cv_path_ac_xconfirm_prog="$pcp_bin_dir/pmconfirm"
14405 esac
14407 ac_xconfirm_prog=$ac_cv_path_ac_xconfirm_prog
14408 if test -n "$ac_xconfirm_prog"; then
14409 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_xconfirm_prog" >&5
14410 $as_echo "$ac_xconfirm_prog" >&6; }
14411 else
14412 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14413 $as_echo "no" >&6; }
14417 else
14418 ac_xconfirm_prog=$XCONFIRM
14422 if test "$ac_cv_header_fcntl_h" = "yes"
14423 then
14424 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FNDELAY in fcntl.h" >&5
14425 $as_echo_n "checking for FNDELAY in fcntl.h... " >&6; }
14426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14427 /* end confdefs.h. */
14428 #include <fcntl.h>
14430 main ()
14432 int i = FNDELAY;
14434 return 0;
14436 _ACEOF
14437 if ac_fn_c_try_compile "$LINENO"; then :
14439 $as_echo "#define HAVE_FNDELAY 1" >>confdefs.h
14441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14442 $as_echo "yes" >&6; }
14443 else
14444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14445 $as_echo "no" >&6; }
14447 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14450 if test "$ac_cv_header_libzfs_h" = "yes"
14451 then
14452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 5-argument style zpool_vdev_name" >&5
14453 $as_echo_n "checking for 5-argument style zpool_vdev_name... " >&6; }
14454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14455 /* end confdefs.h. */
14456 #include <libzfs.h>
14458 main ()
14460 libzfs_handle_t *zh;
14461 zpool_handle_t *zp;
14462 nvlist_t *np;
14463 (void) zpool_vdev_name(zh, zp, np, B_FALSE, B_FALSE);
14466 return 0;
14468 _ACEOF
14469 if ac_fn_c_try_compile "$LINENO"; then :
14471 $as_echo "#define HAVE_ZPOOL_VDEV_NAME_5ARG 1" >>confdefs.h
14473 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14474 $as_echo "yes" >&6; }
14475 else
14476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14477 $as_echo "no" >&6; }
14479 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14481 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 4-argument style zpool_vdev_name" >&5
14482 $as_echo_n "checking for 4-argument style zpool_vdev_name... " >&6; }
14483 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14484 /* end confdefs.h. */
14485 #include <libzfs.h>
14487 main ()
14489 libzfs_handle_t *zh;
14490 zpool_handle_t *zp;
14491 nvlist_t *np;
14492 (void) zpool_vdev_name(zh, zp, np, B_FALSE);
14495 return 0;
14497 _ACEOF
14498 if ac_fn_c_try_compile "$LINENO"; then :
14500 $as_echo "#define HAVE_ZPOOL_VDEV_NAME_4ARG 1" >>confdefs.h
14502 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14503 $as_echo "yes" >&6; }
14504 else
14505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14506 $as_echo "no" >&6; }
14508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14511 if test "$do_secure" = "check" -o "$do_secure" = "yes"
14512 then
14513 enable_secure=true
14515 saved_CFLAGS="$CFLAGS"
14516 saved_CPPFLAGS="$CPPFLAGS"
14517 NSS_INC_DIRS="-I/usr/include/nss -I/usr/include/nss3"
14518 NSPR_INC_DIRS="-I/usr/include/nspr -I/usr/include/nspr4"
14519 CFLAGS="$CFLAGS $NSS_INC_DIRS $NSPR_INC_DIRS"
14520 CPPFLAGS="$CPPFLAGS $NSS_INC_DIRS $NSPR_INC_DIRS"
14522 for ac_header in nss/nss.h
14523 do :
14524 ac_fn_c_check_header_mongrel "$LINENO" "nss/nss.h" "ac_cv_header_nss_nss_h" "$ac_includes_default"
14525 if test "x$ac_cv_header_nss_nss_h" = xyes; then :
14526 cat >>confdefs.h <<_ACEOF
14527 #define HAVE_NSS_NSS_H 1
14528 _ACEOF
14529 NSSCFLAGS=-I/usr/include/nss
14530 else
14532 for ac_header in nss3/nss.h
14533 do :
14534 ac_fn_c_check_header_mongrel "$LINENO" "nss3/nss.h" "ac_cv_header_nss3_nss_h" "$ac_includes_default"
14535 if test "x$ac_cv_header_nss3_nss_h" = xyes; then :
14536 cat >>confdefs.h <<_ACEOF
14537 #define HAVE_NSS3_NSS_H 1
14538 _ACEOF
14539 NSSCFLAGS=-I/usr/include/nss3
14540 else
14542 enable_secure=false
14543 if test "$do_secure" = "yes"
14544 then
14545 as_fn_error $? "cannot enable secure sockets mode - no NSS header" "$LINENO" 5
14550 done
14555 done
14559 for ac_header in nspr/nspr.h
14560 do :
14561 ac_fn_c_check_header_mongrel "$LINENO" "nspr/nspr.h" "ac_cv_header_nspr_nspr_h" "$ac_includes_default"
14562 if test "x$ac_cv_header_nspr_nspr_h" = xyes; then :
14563 cat >>confdefs.h <<_ACEOF
14564 #define HAVE_NSPR_NSPR_H 1
14565 _ACEOF
14566 NSPRCFLAGS=-I/usr/include/nspr
14567 else
14569 for ac_header in nspr4/nspr.h
14570 do :
14571 ac_fn_c_check_header_mongrel "$LINENO" "nspr4/nspr.h" "ac_cv_header_nspr4_nspr_h" "$ac_includes_default"
14572 if test "x$ac_cv_header_nspr4_nspr_h" = xyes; then :
14573 cat >>confdefs.h <<_ACEOF
14574 #define HAVE_NSPR4_NSPR_H 1
14575 _ACEOF
14576 NSPRCFLAGS=-I/usr/include/nspr4
14577 else
14579 enable_secure=false
14580 if test "$do_secure" = "yes"
14581 then
14582 as_fn_error $? "cannot enable secure sockets mode - no NSPR header" "$LINENO" 5
14587 done
14592 done
14596 for ac_header in sasl/sasl.h
14597 do :
14598 ac_fn_c_check_header_mongrel "$LINENO" "sasl/sasl.h" "ac_cv_header_sasl_sasl_h" "$ac_includes_default"
14599 if test "x$ac_cv_header_sasl_sasl_h" = xyes; then :
14600 cat >>confdefs.h <<_ACEOF
14601 #define HAVE_SASL_SASL_H 1
14602 _ACEOF
14603 SASLCFLAGS=-I/usr/include/sasl
14604 else
14606 enable_secure=false
14607 if test "$do_secure" = "yes"
14608 then
14609 as_fn_error $? "cannot enable secure sockets mode - no SASL header" "$LINENO" 5
14614 done
14618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sasl_server_init in -lsasl2" >&5
14619 $as_echo_n "checking for sasl_server_init in -lsasl2... " >&6; }
14620 if ${ac_cv_lib_sasl2_sasl_server_init+:} false; then :
14621 $as_echo_n "(cached) " >&6
14622 else
14623 ac_check_lib_save_LIBS=$LIBS
14624 LIBS="-lsasl2 $LIBS"
14625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14626 /* end confdefs.h. */
14628 /* Override any GCC internal prototype to avoid an error.
14629 Use char because int might match the return type of a GCC
14630 builtin and then its argument prototype would still apply. */
14631 #ifdef __cplusplus
14632 extern "C"
14633 #endif
14634 char sasl_server_init ();
14636 main ()
14638 return sasl_server_init ();
14640 return 0;
14642 _ACEOF
14643 if ac_fn_c_try_link "$LINENO"; then :
14644 ac_cv_lib_sasl2_sasl_server_init=yes
14645 else
14646 ac_cv_lib_sasl2_sasl_server_init=no
14648 rm -f core conftest.err conftest.$ac_objext \
14649 conftest$ac_exeext conftest.$ac_ext
14650 LIBS=$ac_check_lib_save_LIBS
14652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sasl2_sasl_server_init" >&5
14653 $as_echo "$ac_cv_lib_sasl2_sasl_server_init" >&6; }
14654 if test "x$ac_cv_lib_sasl2_sasl_server_init" = xyes; then :
14655 lib_for_sasl="-lsasl2"
14656 else
14658 enable_secure=false
14659 if test "$do_secure" = "yes"
14660 then
14661 as_fn_error $? "cannot enable secure sockets mode - no SASL library" "$LINENO" 5
14668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_ImportFD in -lssl" >&5
14669 $as_echo_n "checking for SSL_ImportFD in -lssl... " >&6; }
14670 if ${ac_cv_lib_ssl_SSL_ImportFD+:} false; then :
14671 $as_echo_n "(cached) " >&6
14672 else
14673 ac_check_lib_save_LIBS=$LIBS
14674 LIBS="-lssl $LIBS"
14675 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14676 /* end confdefs.h. */
14678 /* Override any GCC internal prototype to avoid an error.
14679 Use char because int might match the return type of a GCC
14680 builtin and then its argument prototype would still apply. */
14681 #ifdef __cplusplus
14682 extern "C"
14683 #endif
14684 char SSL_ImportFD ();
14686 main ()
14688 return SSL_ImportFD ();
14690 return 0;
14692 _ACEOF
14693 if ac_fn_c_try_link "$LINENO"; then :
14694 ac_cv_lib_ssl_SSL_ImportFD=yes
14695 else
14696 ac_cv_lib_ssl_SSL_ImportFD=no
14698 rm -f core conftest.err conftest.$ac_objext \
14699 conftest$ac_exeext conftest.$ac_ext
14700 LIBS=$ac_check_lib_save_LIBS
14702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_ImportFD" >&5
14703 $as_echo "$ac_cv_lib_ssl_SSL_ImportFD" >&6; }
14704 if test "x$ac_cv_lib_ssl_SSL_ImportFD" = xyes; then :
14705 lib_for_ssl="-lssl"
14706 else
14708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_ImportFD in -lssl3" >&5
14709 $as_echo_n "checking for SSL_ImportFD in -lssl3... " >&6; }
14710 if ${ac_cv_lib_ssl3_SSL_ImportFD+:} false; then :
14711 $as_echo_n "(cached) " >&6
14712 else
14713 ac_check_lib_save_LIBS=$LIBS
14714 LIBS="-lssl3 $LIBS"
14715 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14716 /* end confdefs.h. */
14718 /* Override any GCC internal prototype to avoid an error.
14719 Use char because int might match the return type of a GCC
14720 builtin and then its argument prototype would still apply. */
14721 #ifdef __cplusplus
14722 extern "C"
14723 #endif
14724 char SSL_ImportFD ();
14726 main ()
14728 return SSL_ImportFD ();
14730 return 0;
14732 _ACEOF
14733 if ac_fn_c_try_link "$LINENO"; then :
14734 ac_cv_lib_ssl3_SSL_ImportFD=yes
14735 else
14736 ac_cv_lib_ssl3_SSL_ImportFD=no
14738 rm -f core conftest.err conftest.$ac_objext \
14739 conftest$ac_exeext conftest.$ac_ext
14740 LIBS=$ac_check_lib_save_LIBS
14742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl3_SSL_ImportFD" >&5
14743 $as_echo "$ac_cv_lib_ssl3_SSL_ImportFD" >&6; }
14744 if test "x$ac_cv_lib_ssl3_SSL_ImportFD" = xyes; then :
14745 lib_for_ssl="-lssl3"
14746 else
14748 enable_secure=false
14749 if test "$do_secure" = "yes"
14750 then
14751 as_fn_error $? "cannot enable secure sockets mode - no SSL library" "$LINENO" 5
14761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSS_Init in -lnss" >&5
14762 $as_echo_n "checking for NSS_Init in -lnss... " >&6; }
14763 if ${ac_cv_lib_nss_NSS_Init+:} false; then :
14764 $as_echo_n "(cached) " >&6
14765 else
14766 ac_check_lib_save_LIBS=$LIBS
14767 LIBS="-lnss $LIBS"
14768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14769 /* end confdefs.h. */
14771 /* Override any GCC internal prototype to avoid an error.
14772 Use char because int might match the return type of a GCC
14773 builtin and then its argument prototype would still apply. */
14774 #ifdef __cplusplus
14775 extern "C"
14776 #endif
14777 char NSS_Init ();
14779 main ()
14781 return NSS_Init ();
14783 return 0;
14785 _ACEOF
14786 if ac_fn_c_try_link "$LINENO"; then :
14787 ac_cv_lib_nss_NSS_Init=yes
14788 else
14789 ac_cv_lib_nss_NSS_Init=no
14791 rm -f core conftest.err conftest.$ac_objext \
14792 conftest$ac_exeext conftest.$ac_ext
14793 LIBS=$ac_check_lib_save_LIBS
14795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nss_NSS_Init" >&5
14796 $as_echo "$ac_cv_lib_nss_NSS_Init" >&6; }
14797 if test "x$ac_cv_lib_nss_NSS_Init" = xyes; then :
14798 lib_for_nss="-lnss"
14799 else
14801 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSS_Init in -lnss3" >&5
14802 $as_echo_n "checking for NSS_Init in -lnss3... " >&6; }
14803 if ${ac_cv_lib_nss3_NSS_Init+:} false; then :
14804 $as_echo_n "(cached) " >&6
14805 else
14806 ac_check_lib_save_LIBS=$LIBS
14807 LIBS="-lnss3 $LIBS"
14808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14809 /* end confdefs.h. */
14811 /* Override any GCC internal prototype to avoid an error.
14812 Use char because int might match the return type of a GCC
14813 builtin and then its argument prototype would still apply. */
14814 #ifdef __cplusplus
14815 extern "C"
14816 #endif
14817 char NSS_Init ();
14819 main ()
14821 return NSS_Init ();
14823 return 0;
14825 _ACEOF
14826 if ac_fn_c_try_link "$LINENO"; then :
14827 ac_cv_lib_nss3_NSS_Init=yes
14828 else
14829 ac_cv_lib_nss3_NSS_Init=no
14831 rm -f core conftest.err conftest.$ac_objext \
14832 conftest$ac_exeext conftest.$ac_ext
14833 LIBS=$ac_check_lib_save_LIBS
14835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nss3_NSS_Init" >&5
14836 $as_echo "$ac_cv_lib_nss3_NSS_Init" >&6; }
14837 if test "x$ac_cv_lib_nss3_NSS_Init" = xyes; then :
14838 lib_for_nss="-lnss3"
14839 else
14841 enable_secure=false
14842 if test "$do_secure" = "yes"
14843 then
14844 as_fn_error $? "cannot enable secure sockets mode - no NSS library" "$LINENO" 5
14854 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PR_Init in -lnspr" >&5
14855 $as_echo_n "checking for PR_Init in -lnspr... " >&6; }
14856 if ${ac_cv_lib_nspr_PR_Init+:} false; then :
14857 $as_echo_n "(cached) " >&6
14858 else
14859 ac_check_lib_save_LIBS=$LIBS
14860 LIBS="-lnspr $LIBS"
14861 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14862 /* end confdefs.h. */
14864 /* Override any GCC internal prototype to avoid an error.
14865 Use char because int might match the return type of a GCC
14866 builtin and then its argument prototype would still apply. */
14867 #ifdef __cplusplus
14868 extern "C"
14869 #endif
14870 char PR_Init ();
14872 main ()
14874 return PR_Init ();
14876 return 0;
14878 _ACEOF
14879 if ac_fn_c_try_link "$LINENO"; then :
14880 ac_cv_lib_nspr_PR_Init=yes
14881 else
14882 ac_cv_lib_nspr_PR_Init=no
14884 rm -f core conftest.err conftest.$ac_objext \
14885 conftest$ac_exeext conftest.$ac_ext
14886 LIBS=$ac_check_lib_save_LIBS
14888 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nspr_PR_Init" >&5
14889 $as_echo "$ac_cv_lib_nspr_PR_Init" >&6; }
14890 if test "x$ac_cv_lib_nspr_PR_Init" = xyes; then :
14891 lib_for_nspr="-lnspr"
14892 else
14894 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PR_Init in -lnspr4" >&5
14895 $as_echo_n "checking for PR_Init in -lnspr4... " >&6; }
14896 if ${ac_cv_lib_nspr4_PR_Init+:} false; then :
14897 $as_echo_n "(cached) " >&6
14898 else
14899 ac_check_lib_save_LIBS=$LIBS
14900 LIBS="-lnspr4 $LIBS"
14901 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14902 /* end confdefs.h. */
14904 /* Override any GCC internal prototype to avoid an error.
14905 Use char because int might match the return type of a GCC
14906 builtin and then its argument prototype would still apply. */
14907 #ifdef __cplusplus
14908 extern "C"
14909 #endif
14910 char PR_Init ();
14912 main ()
14914 return PR_Init ();
14916 return 0;
14918 _ACEOF
14919 if ac_fn_c_try_link "$LINENO"; then :
14920 ac_cv_lib_nspr4_PR_Init=yes
14921 else
14922 ac_cv_lib_nspr4_PR_Init=no
14924 rm -f core conftest.err conftest.$ac_objext \
14925 conftest$ac_exeext conftest.$ac_ext
14926 LIBS=$ac_check_lib_save_LIBS
14928 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nspr4_PR_Init" >&5
14929 $as_echo "$ac_cv_lib_nspr4_PR_Init" >&6; }
14930 if test "x$ac_cv_lib_nspr4_PR_Init" = xyes; then :
14931 lib_for_nspr="-lnspr4"
14932 else
14934 enable_secure=false
14935 if test "$do_secure" = "yes"
14936 then
14937 as_fn_error $? "cannot enable secure sockets mode - no NSPR library" "$LINENO" 5
14947 if test "$enable_secure" = "true"
14948 then
14950 $as_echo "#define HAVE_SECURE_SOCKETS 1" >>confdefs.h
14955 CPPFLAGS="$saved_CPPFLAGS"
14956 CFLAGS="$saved_CFLAGS"
14959 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_add_4 in -latomic" >&5
14960 $as_echo_n "checking for __atomic_fetch_add_4 in -latomic... " >&6; }
14961 if ${ac_cv_lib_atomic___atomic_fetch_add_4+:} false; then :
14962 $as_echo_n "(cached) " >&6
14963 else
14964 ac_check_lib_save_LIBS=$LIBS
14965 LIBS="-latomic $LIBS"
14966 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14967 /* end confdefs.h. */
14969 /* Override any GCC internal prototype to avoid an error.
14970 Use char because int might match the return type of a GCC
14971 builtin and then its argument prototype would still apply. */
14972 #ifdef __cplusplus
14973 extern "C"
14974 #endif
14975 char __atomic_fetch_add_4 ();
14977 main ()
14979 return __atomic_fetch_add_4 ();
14981 return 0;
14983 _ACEOF
14984 if ac_fn_c_try_link "$LINENO"; then :
14985 ac_cv_lib_atomic___atomic_fetch_add_4=yes
14986 else
14987 ac_cv_lib_atomic___atomic_fetch_add_4=no
14989 rm -f core conftest.err conftest.$ac_objext \
14990 conftest$ac_exeext conftest.$ac_ext
14991 LIBS=$ac_check_lib_save_LIBS
14993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_atomic___atomic_fetch_add_4" >&5
14994 $as_echo "$ac_cv_lib_atomic___atomic_fetch_add_4" >&6; }
14995 if test "x$ac_cv_lib_atomic___atomic_fetch_add_4" = xyes; then :
14996 lib_for_atomic="-latomic"
15001 if test -f /usr/include/sn/arsess.h
15002 then
15003 pcp_mpi_dirs=libpcp_mpi\ libpcp_mpiread
15004 else
15005 pcp_mpi_dirs=
15009 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_un in sys/un.h" >&5
15010 $as_echo_n "checking for struct sockaddr_un in sys/un.h... " >&6; }
15011 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15012 /* end confdefs.h. */
15014 #include <sys/types.h>
15015 #ifdef HAVE_SYS_SOCKET_H
15016 #include <sys/socket.h>
15017 #endif
15018 #ifdef HAVE_SYS_UN_H
15019 #include <sys/un.h>
15020 #endif
15023 main ()
15025 struct sockaddr_un sa; sa.sun_family = AF_UNIX;
15027 return 0;
15029 _ACEOF
15030 if ac_fn_c_try_compile "$LINENO"; then :
15032 $as_echo "#define HAVE_STRUCT_SOCKADDR_UN 1" >>confdefs.h
15033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15034 $as_echo "yes" >&6; }
15035 else
15036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15037 $as_echo "no" >&6; }
15039 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct ucred in sys/socket.h" >&5
15042 $as_echo_n "checking for struct ucred in sys/socket.h... " >&6; }
15043 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15044 /* end confdefs.h. */
15046 #include <sys/types.h>
15047 #ifdef HAVE_SYS_SOCKET_H
15048 #include <sys/socket.h>
15049 #endif
15050 #ifdef HAVE_SYS_UN_H
15051 #include <sys/un.h>
15052 #endif
15055 main ()
15057 struct ucred ucred; ucred.uid = 0;
15059 return 0;
15061 _ACEOF
15062 if ac_fn_c_try_compile "$LINENO"; then :
15064 $as_echo "#define HAVE_STRUCT_UCRED 1" >>confdefs.h
15065 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15066 $as_echo "yes" >&6; }
15067 else
15068 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15069 $as_echo "no" >&6; }
15071 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15073 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in time.h" >&5
15074 $as_echo_n "checking for struct timespec in time.h... " >&6; }
15075 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15076 /* end confdefs.h. */
15078 #include <time.h>
15081 main ()
15083 struct timespec foo;
15085 return 0;
15087 _ACEOF
15088 if ac_fn_c_try_compile "$LINENO"; then :
15090 $as_echo "#define HAVE_STRUCT_TIMESPEC 1" >>confdefs.h
15091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15092 $as_echo "yes" >&6; }
15093 else
15094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15095 $as_echo "no" >&6; }
15097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for altzone in time.h" >&5
15100 $as_echo_n "checking for altzone in time.h... " >&6; }
15101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15102 /* end confdefs.h. */
15104 #include <time.h>
15107 main ()
15109 time_t az = altzone;
15111 return 0;
15113 _ACEOF
15114 if ac_fn_c_try_compile "$LINENO"; then :
15116 $as_echo "#define HAVE_ALTZONE 1" >>confdefs.h
15117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15118 $as_echo "yes" >&6; }
15119 else
15120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15121 $as_echo "no" >&6; }
15123 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15125 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strftime knows about %z" >&5
15126 $as_echo_n "checking if strftime knows about %z... " >&6; }
15127 if test "$cross_compiling" = yes; then :
15128 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15129 $as_echo "no" >&6; }
15130 else
15131 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15132 /* end confdefs.h. */
15134 #include <time.h>
15135 int main () {
15136 char b[32]="";
15137 time_t t = time(NULL);
15138 struct tm * t1 = localtime (&t);
15139 if (strftime (b, 32, "%z", t1) < 3)
15140 return (1);
15141 if (strcmp(b, "%z") == 0)
15142 return(1);
15143 return (0);
15146 _ACEOF
15147 if ac_fn_c_try_run "$LINENO"; then :
15149 $as_echo "#define HAVE_STRFTIME_z 1" >>confdefs.h
15150 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15151 $as_echo "yes" >&6; }
15152 else
15153 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15154 $as_echo "no" >&6; }
15156 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
15157 conftest.$ac_objext conftest.beam conftest.$ac_ext
15161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r returns char *" >&5
15162 $as_echo_n "checking if strerror_r returns char *... " >&6; }
15163 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15164 /* end confdefs.h. */
15165 #include <string.h>
15167 main ()
15169 strerror_r(0, NULL, 0)[0];
15171 return 0;
15173 _ACEOF
15174 if ac_fn_c_try_compile "$LINENO"; then :
15176 $as_echo "#define HAVE_STRERROR_R_PTR 1" >>confdefs.h
15177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15178 $as_echo "yes" >&6; }
15179 else
15180 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15181 $as_echo "no" >&6; }
15183 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15185 savedLIBS=$LIBS
15186 LIBS=
15187 lib_for_curses=
15188 lib_for_readline=
15189 ac_fn_c_check_func "$LINENO" "readline" "ac_cv_func_readline"
15190 if test "x$ac_cv_func_readline" = xyes; then :
15192 else
15194 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
15195 $as_echo_n "checking for readline in -lreadline... " >&6; }
15196 if ${ac_cv_lib_readline_readline+:} false; then :
15197 $as_echo_n "(cached) " >&6
15198 else
15199 ac_check_lib_save_LIBS=$LIBS
15200 LIBS="-lreadline $LIBS"
15201 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15202 /* end confdefs.h. */
15204 /* Override any GCC internal prototype to avoid an error.
15205 Use char because int might match the return type of a GCC
15206 builtin and then its argument prototype would still apply. */
15207 #ifdef __cplusplus
15208 extern "C"
15209 #endif
15210 char readline ();
15212 main ()
15214 return readline ();
15216 return 0;
15218 _ACEOF
15219 if ac_fn_c_try_link "$LINENO"; then :
15220 ac_cv_lib_readline_readline=yes
15221 else
15222 ac_cv_lib_readline_readline=no
15224 rm -f core conftest.err conftest.$ac_objext \
15225 conftest$ac_exeext conftest.$ac_ext
15226 LIBS=$ac_check_lib_save_LIBS
15228 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
15229 $as_echo "$ac_cv_lib_readline_readline" >&6; }
15230 if test "x$ac_cv_lib_readline_readline" = xyes; then :
15231 cat >>confdefs.h <<_ACEOF
15232 #define HAVE_LIBREADLINE 1
15233 _ACEOF
15235 LIBS="-lreadline $LIBS"
15237 else
15239 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for add_history in -lreadline" >&5
15240 $as_echo_n "checking for add_history in -lreadline... " >&6; }
15241 if ${ac_cv_lib_readline_add_history+:} false; then :
15242 $as_echo_n "(cached) " >&6
15243 else
15244 ac_check_lib_save_LIBS=$LIBS
15245 LIBS="-lreadline -lcurses $LIBS"
15246 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15247 /* end confdefs.h. */
15249 /* Override any GCC internal prototype to avoid an error.
15250 Use char because int might match the return type of a GCC
15251 builtin and then its argument prototype would still apply. */
15252 #ifdef __cplusplus
15253 extern "C"
15254 #endif
15255 char add_history ();
15257 main ()
15259 return add_history ();
15261 return 0;
15263 _ACEOF
15264 if ac_fn_c_try_link "$LINENO"; then :
15265 ac_cv_lib_readline_add_history=yes
15266 else
15267 ac_cv_lib_readline_add_history=no
15269 rm -f core conftest.err conftest.$ac_objext \
15270 conftest$ac_exeext conftest.$ac_ext
15271 LIBS=$ac_check_lib_save_LIBS
15273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_add_history" >&5
15274 $as_echo "$ac_cv_lib_readline_add_history" >&6; }
15275 if test "x$ac_cv_lib_readline_add_history" = xyes; then :
15276 cat >>confdefs.h <<_ACEOF
15277 #define HAVE_LIBREADLINE 1
15278 _ACEOF
15280 LIBS="-lreadline $LIBS"
15290 if test $ac_cv_func_readline = yes
15291 then
15293 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
15295 elif test $ac_cv_lib_readline_readline = yes
15296 then
15298 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
15300 lib_for_readline=-lreadline
15301 elif test $ac_cv_lib_readline_add_history = yes
15302 then
15304 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
15306 lib_for_curses=-lcurses
15307 lib_for_readline=-lreadline
15311 LIBS=$savedLIBS
15314 pkg_failed=no
15315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib" >&5
15316 $as_echo_n "checking for zlib... " >&6; }
15318 if test -n "$zlib_CFLAGS"; then
15319 pkg_cv_zlib_CFLAGS="$zlib_CFLAGS"
15320 elif test -n "$PKG_CONFIG"; then
15321 if test -n "$PKG_CONFIG" && \
15322 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib >= 1.0.0\""; } >&5
15323 ($PKG_CONFIG --exists --print-errors "zlib >= 1.0.0") 2>&5
15324 ac_status=$?
15325 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15326 test $ac_status = 0; }; then
15327 pkg_cv_zlib_CFLAGS=`$PKG_CONFIG --cflags "zlib >= 1.0.0" 2>/dev/null`
15328 test "x$?" != "x0" && pkg_failed=yes
15329 else
15330 pkg_failed=yes
15332 else
15333 pkg_failed=untried
15335 if test -n "$zlib_LIBS"; then
15336 pkg_cv_zlib_LIBS="$zlib_LIBS"
15337 elif test -n "$PKG_CONFIG"; then
15338 if test -n "$PKG_CONFIG" && \
15339 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib >= 1.0.0\""; } >&5
15340 ($PKG_CONFIG --exists --print-errors "zlib >= 1.0.0") 2>&5
15341 ac_status=$?
15342 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
15343 test $ac_status = 0; }; then
15344 pkg_cv_zlib_LIBS=`$PKG_CONFIG --libs "zlib >= 1.0.0" 2>/dev/null`
15345 test "x$?" != "x0" && pkg_failed=yes
15346 else
15347 pkg_failed=yes
15349 else
15350 pkg_failed=untried
15355 if test $pkg_failed = yes; then
15356 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15357 $as_echo "no" >&6; }
15359 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
15360 _pkg_short_errors_supported=yes
15361 else
15362 _pkg_short_errors_supported=no
15364 if test $_pkg_short_errors_supported = yes; then
15365 zlib_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "zlib >= 1.0.0" 2>&1`
15366 else
15367 zlib_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "zlib >= 1.0.0" 2>&1`
15369 # Put the nasty error message in config.log where it belongs
15370 echo "$zlib_PKG_ERRORS" >&5
15372 have_zlib=false
15373 elif test $pkg_failed = untried; then
15374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15375 $as_echo "no" >&6; }
15376 have_zlib=false
15377 else
15378 zlib_CFLAGS=$pkg_cv_zlib_CFLAGS
15379 zlib_LIBS=$pkg_cv_zlib_LIBS
15380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15381 $as_echo "yes" >&6; }
15382 have_zlib=true
15384 HAVE_ZLIB=$have_zlib
15387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AI_ADDRCONFIG" >&5
15388 $as_echo_n "checking for AI_ADDRCONFIG... " >&6; }
15389 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15390 /* end confdefs.h. */
15392 #include <netdb.h>
15393 int test = AI_ADDRCONFIG;
15396 main ()
15401 return 0;
15403 _ACEOF
15404 if ac_fn_c_try_compile "$LINENO"; then :
15406 $as_echo "#define HAVE_AI_ADDRCONFIG 1" >>confdefs.h
15407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15408 $as_echo "yes" >&6; }
15409 else
15410 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15411 $as_echo "no" >&6; }
15413 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15416 have_parfait=false
15417 if test -f ./build/tar/parfait.tar.gz
15418 then
15419 { $as_echo "$as_me:${as_lineno-$LINENO}: adding Parfait package to the build" >&5
15420 $as_echo "$as_me: adding Parfait package to the build" >&6;}
15421 have_parfait=true
15425 have_vector=false
15426 if test -f ./build/tar/vector.tar.gz
15427 then
15428 { $as_echo "$as_me:${as_lineno-$LINENO}: adding Vector webapp to the build" >&5
15429 $as_echo "$as_me: adding Vector webapp to the build" >&6;}
15430 have_vector=true
15434 have_webjs=false
15435 if test -f ./build/tar/webjs.tar.gz
15436 then
15437 { $as_echo "$as_me:${as_lineno-$LINENO}: adding webjs webapps to the build" >&5
15438 $as_echo "$as_me: adding webjs webapps to the build" >&6;}
15439 have_webjs=true
15446 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"
15448 cat >confcache <<\_ACEOF
15449 # This file is a shell script that caches the results of configure
15450 # tests run on this system so they can be shared between configure
15451 # scripts and configure runs, see configure's option --config-cache.
15452 # It is not useful on other systems. If it contains results you don't
15453 # want to keep, you may remove or edit it.
15455 # config.status only pays attention to the cache file if you give it
15456 # the --recheck option to rerun configure.
15458 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15459 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15460 # following values.
15462 _ACEOF
15464 # The following way of writing the cache mishandles newlines in values,
15465 # but we know of no workaround that is simple, portable, and efficient.
15466 # So, we kill variables containing newlines.
15467 # Ultrix sh set writes to stderr and can't be redirected directly,
15468 # and sets the high bit in the cache file unless we assign to the vars.
15470 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15471 eval ac_val=\$$ac_var
15472 case $ac_val in #(
15473 *${as_nl}*)
15474 case $ac_var in #(
15475 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15476 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15477 esac
15478 case $ac_var in #(
15479 _ | IFS | as_nl) ;; #(
15480 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15481 *) { eval $ac_var=; unset $ac_var;} ;;
15482 esac ;;
15483 esac
15484 done
15486 (set) 2>&1 |
15487 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15488 *${as_nl}ac_space=\ *)
15489 # `set' does not quote correctly, so add quotes: double-quote
15490 # substitution turns \\\\ into \\, and sed turns \\ into \.
15491 sed -n \
15492 "s/'/'\\\\''/g;
15493 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15494 ;; #(
15496 # `set' quotes correctly as required by POSIX, so do not add quotes.
15497 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15499 esac |
15500 sort
15502 sed '
15503 /^ac_cv_env_/b end
15504 t clear
15505 :clear
15506 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15507 t end
15508 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15509 :end' >>confcache
15510 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15511 if test -w "$cache_file"; then
15512 if test "x$cache_file" != "x/dev/null"; then
15513 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15514 $as_echo "$as_me: updating cache $cache_file" >&6;}
15515 if test ! -f "$cache_file" || test -h "$cache_file"; then
15516 cat confcache >"$cache_file"
15517 else
15518 case $cache_file in #(
15519 */* | ?:*)
15520 mv -f confcache "$cache_file"$$ &&
15521 mv -f "$cache_file"$$ "$cache_file" ;; #(
15523 mv -f confcache "$cache_file" ;;
15524 esac
15527 else
15528 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15529 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15532 rm -f confcache
15534 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15535 # Let make expand exec_prefix.
15536 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15538 DEFS=-DHAVE_CONFIG_H
15540 ac_libobjs=
15541 ac_ltlibobjs=
15543 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15544 # 1. Remove the extension, and $U if already installed.
15545 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15546 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15547 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15548 # will be set to the directory where LIBOBJS objects are built.
15549 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15550 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15551 done
15552 LIBOBJS=$ac_libobjs
15554 LTLIBOBJS=$ac_ltlibobjs
15558 : "${CONFIG_STATUS=./config.status}"
15559 ac_write_fail=0
15560 ac_clean_files_save=$ac_clean_files
15561 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15562 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15563 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15564 as_write_fail=0
15565 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15566 #! $SHELL
15567 # Generated by $as_me.
15568 # Run this file to recreate the current configuration.
15569 # Compiler output produced by configure, useful for debugging
15570 # configure, is in config.log if it exists.
15572 debug=false
15573 ac_cs_recheck=false
15574 ac_cs_silent=false
15576 SHELL=\${CONFIG_SHELL-$SHELL}
15577 export SHELL
15578 _ASEOF
15579 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15580 ## -------------------- ##
15581 ## M4sh Initialization. ##
15582 ## -------------------- ##
15584 # Be more Bourne compatible
15585 DUALCASE=1; export DUALCASE # for MKS sh
15586 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15587 emulate sh
15588 NULLCMD=:
15589 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15590 # is contrary to our usage. Disable this feature.
15591 alias -g '${1+"$@"}'='"$@"'
15592 setopt NO_GLOB_SUBST
15593 else
15594 case `(set -o) 2>/dev/null` in #(
15595 *posix*) :
15596 set -o posix ;; #(
15597 *) :
15599 esac
15603 as_nl='
15605 export as_nl
15606 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15607 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15608 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15609 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15610 # Prefer a ksh shell builtin over an external printf program on Solaris,
15611 # but without wasting forks for bash or zsh.
15612 if test -z "$BASH_VERSION$ZSH_VERSION" \
15613 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15614 as_echo='print -r --'
15615 as_echo_n='print -rn --'
15616 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15617 as_echo='printf %s\n'
15618 as_echo_n='printf %s'
15619 else
15620 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15621 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15622 as_echo_n='/usr/ucb/echo -n'
15623 else
15624 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15625 as_echo_n_body='eval
15626 arg=$1;
15627 case $arg in #(
15628 *"$as_nl"*)
15629 expr "X$arg" : "X\\(.*\\)$as_nl";
15630 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15631 esac;
15632 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15634 export as_echo_n_body
15635 as_echo_n='sh -c $as_echo_n_body as_echo'
15637 export as_echo_body
15638 as_echo='sh -c $as_echo_body as_echo'
15641 # The user is always right.
15642 if test "${PATH_SEPARATOR+set}" != set; then
15643 PATH_SEPARATOR=:
15644 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15645 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15646 PATH_SEPARATOR=';'
15651 # IFS
15652 # We need space, tab and new line, in precisely that order. Quoting is
15653 # there to prevent editors from complaining about space-tab.
15654 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15655 # splitting by setting IFS to empty value.)
15656 IFS=" "" $as_nl"
15658 # Find who we are. Look in the path if we contain no directory separator.
15659 as_myself=
15660 case $0 in #((
15661 *[\\/]* ) as_myself=$0 ;;
15662 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15663 for as_dir in $PATH
15665 IFS=$as_save_IFS
15666 test -z "$as_dir" && as_dir=.
15667 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15668 done
15669 IFS=$as_save_IFS
15672 esac
15673 # We did not find ourselves, most probably we were run as `sh COMMAND'
15674 # in which case we are not to be found in the path.
15675 if test "x$as_myself" = x; then
15676 as_myself=$0
15678 if test ! -f "$as_myself"; then
15679 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15680 exit 1
15683 # Unset variables that we do not need and which cause bugs (e.g. in
15684 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15685 # suppresses any "Segmentation fault" message there. '((' could
15686 # trigger a bug in pdksh 5.2.14.
15687 for as_var in BASH_ENV ENV MAIL MAILPATH
15688 do eval test x\${$as_var+set} = xset \
15689 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15690 done
15691 PS1='$ '
15692 PS2='> '
15693 PS4='+ '
15695 # NLS nuisances.
15696 LC_ALL=C
15697 export LC_ALL
15698 LANGUAGE=C
15699 export LANGUAGE
15701 # CDPATH.
15702 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15705 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15706 # ----------------------------------------
15707 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15708 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15709 # script with STATUS, using 1 if that was 0.
15710 as_fn_error ()
15712 as_status=$1; test $as_status -eq 0 && as_status=1
15713 if test "$4"; then
15714 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15715 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15717 $as_echo "$as_me: error: $2" >&2
15718 as_fn_exit $as_status
15719 } # as_fn_error
15722 # as_fn_set_status STATUS
15723 # -----------------------
15724 # Set $? to STATUS, without forking.
15725 as_fn_set_status ()
15727 return $1
15728 } # as_fn_set_status
15730 # as_fn_exit STATUS
15731 # -----------------
15732 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15733 as_fn_exit ()
15735 set +e
15736 as_fn_set_status $1
15737 exit $1
15738 } # as_fn_exit
15740 # as_fn_unset VAR
15741 # ---------------
15742 # Portably unset VAR.
15743 as_fn_unset ()
15745 { eval $1=; unset $1;}
15747 as_unset=as_fn_unset
15748 # as_fn_append VAR VALUE
15749 # ----------------------
15750 # Append the text in VALUE to the end of the definition contained in VAR. Take
15751 # advantage of any shell optimizations that allow amortized linear growth over
15752 # repeated appends, instead of the typical quadratic growth present in naive
15753 # implementations.
15754 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15755 eval 'as_fn_append ()
15757 eval $1+=\$2
15759 else
15760 as_fn_append ()
15762 eval $1=\$$1\$2
15764 fi # as_fn_append
15766 # as_fn_arith ARG...
15767 # ------------------
15768 # Perform arithmetic evaluation on the ARGs, and store the result in the
15769 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15770 # must be portable across $(()) and expr.
15771 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15772 eval 'as_fn_arith ()
15774 as_val=$(( $* ))
15776 else
15777 as_fn_arith ()
15779 as_val=`expr "$@" || test $? -eq 1`
15781 fi # as_fn_arith
15784 if expr a : '\(a\)' >/dev/null 2>&1 &&
15785 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15786 as_expr=expr
15787 else
15788 as_expr=false
15791 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15792 as_basename=basename
15793 else
15794 as_basename=false
15797 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15798 as_dirname=dirname
15799 else
15800 as_dirname=false
15803 as_me=`$as_basename -- "$0" ||
15804 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15805 X"$0" : 'X\(//\)$' \| \
15806 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15807 $as_echo X/"$0" |
15808 sed '/^.*\/\([^/][^/]*\)\/*$/{
15809 s//\1/
15812 /^X\/\(\/\/\)$/{
15813 s//\1/
15816 /^X\/\(\/\).*/{
15817 s//\1/
15820 s/.*/./; q'`
15822 # Avoid depending upon Character Ranges.
15823 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15824 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15825 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15826 as_cr_digits='0123456789'
15827 as_cr_alnum=$as_cr_Letters$as_cr_digits
15829 ECHO_C= ECHO_N= ECHO_T=
15830 case `echo -n x` in #(((((
15831 -n*)
15832 case `echo 'xy\c'` in
15833 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15834 xy) ECHO_C='\c';;
15835 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15836 ECHO_T=' ';;
15837 esac;;
15839 ECHO_N='-n';;
15840 esac
15842 rm -f conf$$ conf$$.exe conf$$.file
15843 if test -d conf$$.dir; then
15844 rm -f conf$$.dir/conf$$.file
15845 else
15846 rm -f conf$$.dir
15847 mkdir conf$$.dir 2>/dev/null
15849 if (echo >conf$$.file) 2>/dev/null; then
15850 if ln -s conf$$.file conf$$ 2>/dev/null; then
15851 as_ln_s='ln -s'
15852 # ... but there are two gotchas:
15853 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15854 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15855 # In both cases, we have to default to `cp -pR'.
15856 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15857 as_ln_s='cp -pR'
15858 elif ln conf$$.file conf$$ 2>/dev/null; then
15859 as_ln_s=ln
15860 else
15861 as_ln_s='cp -pR'
15863 else
15864 as_ln_s='cp -pR'
15866 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15867 rmdir conf$$.dir 2>/dev/null
15870 # as_fn_mkdir_p
15871 # -------------
15872 # Create "$as_dir" as a directory, including parents if necessary.
15873 as_fn_mkdir_p ()
15876 case $as_dir in #(
15877 -*) as_dir=./$as_dir;;
15878 esac
15879 test -d "$as_dir" || eval $as_mkdir_p || {
15880 as_dirs=
15881 while :; do
15882 case $as_dir in #(
15883 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15884 *) as_qdir=$as_dir;;
15885 esac
15886 as_dirs="'$as_qdir' $as_dirs"
15887 as_dir=`$as_dirname -- "$as_dir" ||
15888 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15889 X"$as_dir" : 'X\(//\)[^/]' \| \
15890 X"$as_dir" : 'X\(//\)$' \| \
15891 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15892 $as_echo X"$as_dir" |
15893 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15894 s//\1/
15897 /^X\(\/\/\)[^/].*/{
15898 s//\1/
15901 /^X\(\/\/\)$/{
15902 s//\1/
15905 /^X\(\/\).*/{
15906 s//\1/
15909 s/.*/./; q'`
15910 test -d "$as_dir" && break
15911 done
15912 test -z "$as_dirs" || eval "mkdir $as_dirs"
15913 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15916 } # as_fn_mkdir_p
15917 if mkdir -p . 2>/dev/null; then
15918 as_mkdir_p='mkdir -p "$as_dir"'
15919 else
15920 test -d ./-p && rmdir ./-p
15921 as_mkdir_p=false
15925 # as_fn_executable_p FILE
15926 # -----------------------
15927 # Test if FILE is an executable regular file.
15928 as_fn_executable_p ()
15930 test -f "$1" && test -x "$1"
15931 } # as_fn_executable_p
15932 as_test_x='test -x'
15933 as_executable_p=as_fn_executable_p
15935 # Sed expression to map a string onto a valid CPP name.
15936 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15938 # Sed expression to map a string onto a valid variable name.
15939 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15942 exec 6>&1
15943 ## ----------------------------------- ##
15944 ## Main body of $CONFIG_STATUS script. ##
15945 ## ----------------------------------- ##
15946 _ASEOF
15947 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15949 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15950 # Save the log message, to keep $0 and so on meaningful, and to
15951 # report actual input values of CONFIG_FILES etc. instead of their
15952 # values after options handling.
15953 ac_log="
15954 This file was extended by $as_me, which was
15955 generated by GNU Autoconf 2.69. Invocation command line was
15957 CONFIG_FILES = $CONFIG_FILES
15958 CONFIG_HEADERS = $CONFIG_HEADERS
15959 CONFIG_LINKS = $CONFIG_LINKS
15960 CONFIG_COMMANDS = $CONFIG_COMMANDS
15961 $ $0 $@
15963 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15966 _ACEOF
15968 case $ac_config_files in *"
15969 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15970 esac
15972 case $ac_config_headers in *"
15973 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15974 esac
15977 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15978 # Files that config.status was made for.
15979 config_files="$ac_config_files"
15980 config_headers="$ac_config_headers"
15982 _ACEOF
15984 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15985 ac_cs_usage="\
15986 \`$as_me' instantiates files and other configuration actions
15987 from templates according to the current configuration. Unless the files
15988 and actions are specified as TAGs, all are instantiated by default.
15990 Usage: $0 [OPTION]... [TAG]...
15992 -h, --help print this help, then exit
15993 -V, --version print version number and configuration settings, then exit
15994 --config print configuration, then exit
15995 -q, --quiet, --silent
15996 do not print progress messages
15997 -d, --debug don't remove temporary files
15998 --recheck update $as_me by reconfiguring in the same conditions
15999 --file=FILE[:TEMPLATE]
16000 instantiate the configuration file FILE
16001 --header=FILE[:TEMPLATE]
16002 instantiate the configuration header FILE
16004 Configuration files:
16005 $config_files
16007 Configuration headers:
16008 $config_headers
16010 Report bugs to the package provider."
16012 _ACEOF
16013 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16014 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
16015 ac_cs_version="\\
16016 config.status
16017 configured by $0, generated by GNU Autoconf 2.69,
16018 with options \\"\$ac_cs_config\\"
16020 Copyright (C) 2012 Free Software Foundation, Inc.
16021 This config.status script is free software; the Free Software Foundation
16022 gives unlimited permission to copy, distribute and modify it."
16024 ac_pwd='$ac_pwd'
16025 srcdir='$srcdir'
16026 test -n "\$AWK" || AWK=awk
16027 _ACEOF
16029 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16030 # The default lists apply if the user does not specify any file.
16031 ac_need_defaults=:
16032 while test $# != 0
16034 case $1 in
16035 --*=?*)
16036 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16037 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
16038 ac_shift=:
16040 --*=)
16041 ac_option=`expr "X$1" : 'X\([^=]*\)='`
16042 ac_optarg=
16043 ac_shift=:
16046 ac_option=$1
16047 ac_optarg=$2
16048 ac_shift=shift
16050 esac
16052 case $ac_option in
16053 # Handling of the options.
16054 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
16055 ac_cs_recheck=: ;;
16056 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
16057 $as_echo "$ac_cs_version"; exit ;;
16058 --config | --confi | --conf | --con | --co | --c )
16059 $as_echo "$ac_cs_config"; exit ;;
16060 --debug | --debu | --deb | --de | --d | -d )
16061 debug=: ;;
16062 --file | --fil | --fi | --f )
16063 $ac_shift
16064 case $ac_optarg in
16065 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16066 '') as_fn_error $? "missing file argument" ;;
16067 esac
16068 as_fn_append CONFIG_FILES " '$ac_optarg'"
16069 ac_need_defaults=false;;
16070 --header | --heade | --head | --hea )
16071 $ac_shift
16072 case $ac_optarg in
16073 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
16074 esac
16075 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
16076 ac_need_defaults=false;;
16077 --he | --h)
16078 # Conflict between --help and --header
16079 as_fn_error $? "ambiguous option: \`$1'
16080 Try \`$0 --help' for more information.";;
16081 --help | --hel | -h )
16082 $as_echo "$ac_cs_usage"; exit ;;
16083 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
16084 | -silent | --silent | --silen | --sile | --sil | --si | --s)
16085 ac_cs_silent=: ;;
16087 # This is an error.
16088 -*) as_fn_error $? "unrecognized option: \`$1'
16089 Try \`$0 --help' for more information." ;;
16091 *) as_fn_append ac_config_targets " $1"
16092 ac_need_defaults=false ;;
16094 esac
16095 shift
16096 done
16098 ac_configure_extra_args=
16100 if $ac_cs_silent; then
16101 exec 6>/dev/null
16102 ac_configure_extra_args="$ac_configure_extra_args --silent"
16105 _ACEOF
16106 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16107 if \$ac_cs_recheck; then
16108 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
16109 shift
16110 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
16111 CONFIG_SHELL='$SHELL'
16112 export CONFIG_SHELL
16113 exec "\$@"
16116 _ACEOF
16117 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16118 exec 5>>config.log
16120 echo
16121 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
16122 ## Running $as_me. ##
16123 _ASBOX
16124 $as_echo "$ac_log"
16125 } >&5
16127 _ACEOF
16128 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16129 _ACEOF
16131 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16133 # Handling of arguments.
16134 for ac_config_target in $ac_config_targets
16136 case $ac_config_target in
16137 "src/include/pcp/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pcp/config.h" ;;
16138 "src/include/pcp/configsz.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pcp/configsz.h" ;;
16139 "src/include/pcp/platform_defs.h") CONFIG_FILES="$CONFIG_FILES src/include/pcp/platform_defs.h" ;;
16140 "src/include/pcp/platformsz.h") CONFIG_FILES="$CONFIG_FILES src/include/pcp/platformsz.h" ;;
16141 "src/include/builddefs") CONFIG_FILES="$CONFIG_FILES src/include/builddefs" ;;
16142 "src/include/pcp.conf") CONFIG_FILES="$CONFIG_FILES src/include/pcp.conf" ;;
16143 "pcp.lsm") CONFIG_FILES="$CONFIG_FILES pcp.lsm" ;;
16144 "debian/pcp.preinst.head") CONFIG_FILES="$CONFIG_FILES debian/pcp.preinst.head" ;;
16145 "debian/pcp.postinst.head") CONFIG_FILES="$CONFIG_FILES debian/pcp.postinst.head" ;;
16146 "build/tar/preinstall.head") CONFIG_FILES="$CONFIG_FILES build/tar/preinstall.head" ;;
16147 "build/tar/postinstall.head") CONFIG_FILES="$CONFIG_FILES build/tar/postinstall.head" ;;
16148 "build/GNUlocaldefs") CONFIG_FILES="$CONFIG_FILES build/GNUlocaldefs" ;;
16149 "build/mac/uninstall-pcp") CONFIG_FILES="$CONFIG_FILES build/mac/uninstall-pcp" ;;
16151 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
16152 esac
16153 done
16156 # If the user did not use the arguments to specify the items to instantiate,
16157 # then the envvar interface is used. Set only those that are not.
16158 # We use the long form for the default assignment because of an extremely
16159 # bizarre bug on SunOS 4.1.3.
16160 if $ac_need_defaults; then
16161 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
16162 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
16165 # Have a temporary directory for convenience. Make it in the build tree
16166 # simply because there is no reason against having it here, and in addition,
16167 # creating and moving files from /tmp can sometimes cause problems.
16168 # Hook for its removal unless debugging.
16169 # Note that there is a small window in which the directory will not be cleaned:
16170 # after its creation but before its name has been assigned to `$tmp'.
16171 $debug ||
16173 tmp= ac_tmp=
16174 trap 'exit_status=$?
16175 : "${ac_tmp:=$tmp}"
16176 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
16178 trap 'as_fn_exit 1' 1 2 13 15
16180 # Create a (secure) tmp directory for tmp files.
16183 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
16184 test -d "$tmp"
16185 } ||
16187 tmp=./conf$$-$RANDOM
16188 (umask 077 && mkdir "$tmp")
16189 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
16190 ac_tmp=$tmp
16192 # Set up the scripts for CONFIG_FILES section.
16193 # No need to generate them if there are no CONFIG_FILES.
16194 # This happens for instance with `./config.status config.h'.
16195 if test -n "$CONFIG_FILES"; then
16198 ac_cr=`echo X | tr X '\015'`
16199 # On cygwin, bash can eat \r inside `` if the user requested igncr.
16200 # But we know of no other shell where ac_cr would be empty at this
16201 # point, so we can use a bashism as a fallback.
16202 if test "x$ac_cr" = x; then
16203 eval ac_cr=\$\'\\r\'
16205 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
16206 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
16207 ac_cs_awk_cr='\\r'
16208 else
16209 ac_cs_awk_cr=$ac_cr
16212 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
16213 _ACEOF
16217 echo "cat >conf$$subs.awk <<_ACEOF" &&
16218 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
16219 echo "_ACEOF"
16220 } >conf$$subs.sh ||
16221 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16222 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
16223 ac_delim='%!_!# '
16224 for ac_last_try in false false false false false :; do
16225 . ./conf$$subs.sh ||
16226 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16228 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
16229 if test $ac_delim_n = $ac_delim_num; then
16230 break
16231 elif $ac_last_try; then
16232 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
16233 else
16234 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16236 done
16237 rm -f conf$$subs.sh
16239 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16240 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
16241 _ACEOF
16242 sed -n '
16244 s/^/S["/; s/!.*/"]=/
16247 s/^[^!]*!//
16248 :repl
16249 t repl
16250 s/'"$ac_delim"'$//
16251 t delim
16254 s/\(.\{148\}\)..*/\1/
16255 t more1
16256 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
16259 b repl
16260 :more1
16261 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16264 s/.\{148\}//
16265 t nl
16266 :delim
16268 s/\(.\{148\}\)..*/\1/
16269 t more2
16270 s/["\\]/\\&/g; s/^/"/; s/$/"/
16273 :more2
16274 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
16277 s/.\{148\}//
16278 t delim
16279 ' <conf$$subs.awk | sed '
16280 /^[^""]/{
16282 s/\n//
16284 ' >>$CONFIG_STATUS || ac_write_fail=1
16285 rm -f conf$$subs.awk
16286 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16287 _ACAWK
16288 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
16289 for (key in S) S_is_set[key] = 1
16290 FS = "\a"
16294 line = $ 0
16295 nfields = split(line, field, "@")
16296 substed = 0
16297 len = length(field[1])
16298 for (i = 2; i < nfields; i++) {
16299 key = field[i]
16300 keylen = length(key)
16301 if (S_is_set[key]) {
16302 value = S[key]
16303 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
16304 len += length(value) + length(field[++i])
16305 substed = 1
16306 } else
16307 len += 1 + keylen
16310 print line
16313 _ACAWK
16314 _ACEOF
16315 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16316 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
16317 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
16318 else
16320 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
16321 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
16322 _ACEOF
16324 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
16325 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
16326 # trailing colons and then remove the whole line if VPATH becomes empty
16327 # (actually we leave an empty line to preserve line numbers).
16328 if test "x$srcdir" = x.; then
16329 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
16331 s///
16332 s/^/:/
16333 s/[ ]*$/:/
16334 s/:\$(srcdir):/:/g
16335 s/:\${srcdir}:/:/g
16336 s/:@srcdir@:/:/g
16337 s/^:*//
16338 s/:*$//
16340 s/\(=[ ]*\).*/\1/
16342 s/\n//
16343 s/^[^=]*=[ ]*$//
16347 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16348 fi # test -n "$CONFIG_FILES"
16350 # Set up the scripts for CONFIG_HEADERS section.
16351 # No need to generate them if there are no CONFIG_HEADERS.
16352 # This happens for instance with `./config.status Makefile'.
16353 if test -n "$CONFIG_HEADERS"; then
16354 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
16355 BEGIN {
16356 _ACEOF
16358 # Transform confdefs.h into an awk script `defines.awk', embedded as
16359 # here-document in config.status, that substitutes the proper values into
16360 # config.h.in to produce config.h.
16362 # Create a delimiter string that does not exist in confdefs.h, to ease
16363 # handling of long lines.
16364 ac_delim='%!_!# '
16365 for ac_last_try in false false :; do
16366 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
16367 if test -z "$ac_tt"; then
16368 break
16369 elif $ac_last_try; then
16370 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
16371 else
16372 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
16374 done
16376 # For the awk script, D is an array of macro values keyed by name,
16377 # likewise P contains macro parameters if any. Preserve backslash
16378 # newline sequences.
16380 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
16381 sed -n '
16382 s/.\{148\}/&'"$ac_delim"'/g
16383 t rset
16384 :rset
16385 s/^[ ]*#[ ]*define[ ][ ]*/ /
16386 t def
16388 :def
16389 s/\\$//
16390 t bsnl
16391 s/["\\]/\\&/g
16392 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16393 D["\1"]=" \3"/p
16394 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16396 :bsnl
16397 s/["\\]/\\&/g
16398 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16399 D["\1"]=" \3\\\\\\n"\\/p
16400 t cont
16401 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16402 t cont
16404 :cont
16406 s/.\{148\}/&'"$ac_delim"'/g
16407 t clear
16408 :clear
16409 s/\\$//
16410 t bsnlc
16411 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16413 :bsnlc
16414 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16415 b cont
16416 ' <confdefs.h | sed '
16417 s/'"$ac_delim"'/"\\\
16418 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16420 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16421 for (key in D) D_is_set[key] = 1
16422 FS = "\a"
16424 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16425 line = \$ 0
16426 split(line, arg, " ")
16427 if (arg[1] == "#") {
16428 defundef = arg[2]
16429 mac1 = arg[3]
16430 } else {
16431 defundef = substr(arg[1], 2)
16432 mac1 = arg[2]
16434 split(mac1, mac2, "(") #)
16435 macro = mac2[1]
16436 prefix = substr(line, 1, index(line, defundef) - 1)
16437 if (D_is_set[macro]) {
16438 # Preserve the white space surrounding the "#".
16439 print prefix "define", macro P[macro] D[macro]
16440 next
16441 } else {
16442 # Replace #undef with comments. This is necessary, for example,
16443 # in the case of _POSIX_SOURCE, which is predefined and required
16444 # on some systems where configure will not decide to define it.
16445 if (defundef == "undef") {
16446 print "/*", prefix defundef, macro, "*/"
16447 next
16451 { print }
16452 _ACAWK
16453 _ACEOF
16454 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16455 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16456 fi # test -n "$CONFIG_HEADERS"
16459 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
16460 shift
16461 for ac_tag
16463 case $ac_tag in
16464 :[FHLC]) ac_mode=$ac_tag; continue;;
16465 esac
16466 case $ac_mode$ac_tag in
16467 :[FHL]*:*);;
16468 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16469 :[FH]-) ac_tag=-:-;;
16470 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16471 esac
16472 ac_save_IFS=$IFS
16473 IFS=:
16474 set x $ac_tag
16475 IFS=$ac_save_IFS
16476 shift
16477 ac_file=$1
16478 shift
16480 case $ac_mode in
16481 :L) ac_source=$1;;
16482 :[FH])
16483 ac_file_inputs=
16484 for ac_f
16486 case $ac_f in
16487 -) ac_f="$ac_tmp/stdin";;
16488 *) # Look for the file first in the build tree, then in the source tree
16489 # (if the path is not absolute). The absolute path cannot be DOS-style,
16490 # because $ac_f cannot contain `:'.
16491 test -f "$ac_f" ||
16492 case $ac_f in
16493 [\\/$]*) false;;
16494 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16495 esac ||
16496 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16497 esac
16498 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16499 as_fn_append ac_file_inputs " '$ac_f'"
16500 done
16502 # Let's still pretend it is `configure' which instantiates (i.e., don't
16503 # use $as_me), people would be surprised to read:
16504 # /* config.h. Generated by config.status. */
16505 configure_input='Generated from '`
16506 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16507 `' by configure.'
16508 if test x"$ac_file" != x-; then
16509 configure_input="$ac_file. $configure_input"
16510 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16511 $as_echo "$as_me: creating $ac_file" >&6;}
16513 # Neutralize special characters interpreted by sed in replacement strings.
16514 case $configure_input in #(
16515 *\&* | *\|* | *\\* )
16516 ac_sed_conf_input=`$as_echo "$configure_input" |
16517 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16518 *) ac_sed_conf_input=$configure_input;;
16519 esac
16521 case $ac_tag in
16522 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16523 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16524 esac
16526 esac
16528 ac_dir=`$as_dirname -- "$ac_file" ||
16529 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16530 X"$ac_file" : 'X\(//\)[^/]' \| \
16531 X"$ac_file" : 'X\(//\)$' \| \
16532 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16533 $as_echo X"$ac_file" |
16534 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16535 s//\1/
16538 /^X\(\/\/\)[^/].*/{
16539 s//\1/
16542 /^X\(\/\/\)$/{
16543 s//\1/
16546 /^X\(\/\).*/{
16547 s//\1/
16550 s/.*/./; q'`
16551 as_dir="$ac_dir"; as_fn_mkdir_p
16552 ac_builddir=.
16554 case "$ac_dir" in
16555 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16557 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16558 # A ".." for each directory in $ac_dir_suffix.
16559 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16560 case $ac_top_builddir_sub in
16561 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16562 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16563 esac ;;
16564 esac
16565 ac_abs_top_builddir=$ac_pwd
16566 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16567 # for backward compatibility:
16568 ac_top_builddir=$ac_top_build_prefix
16570 case $srcdir in
16571 .) # We are building in place.
16572 ac_srcdir=.
16573 ac_top_srcdir=$ac_top_builddir_sub
16574 ac_abs_top_srcdir=$ac_pwd ;;
16575 [\\/]* | ?:[\\/]* ) # Absolute name.
16576 ac_srcdir=$srcdir$ac_dir_suffix;
16577 ac_top_srcdir=$srcdir
16578 ac_abs_top_srcdir=$srcdir ;;
16579 *) # Relative name.
16580 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16581 ac_top_srcdir=$ac_top_build_prefix$srcdir
16582 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16583 esac
16584 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16587 case $ac_mode in
16590 # CONFIG_FILE
16593 _ACEOF
16595 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16596 # If the template does not know about datarootdir, expand it.
16597 # FIXME: This hack should be removed a few years after 2.60.
16598 ac_datarootdir_hack=; ac_datarootdir_seen=
16599 ac_sed_dataroot='
16600 /datarootdir/ {
16604 /@datadir@/p
16605 /@docdir@/p
16606 /@infodir@/p
16607 /@localedir@/p
16608 /@mandir@/p'
16609 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16610 *datarootdir*) ac_datarootdir_seen=yes;;
16611 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16612 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16613 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16614 _ACEOF
16615 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16616 ac_datarootdir_hack='
16617 s&@datadir@&$datadir&g
16618 s&@docdir@&$docdir&g
16619 s&@infodir@&$infodir&g
16620 s&@localedir@&$localedir&g
16621 s&@mandir@&$mandir&g
16622 s&\\\${datarootdir}&$datarootdir&g' ;;
16623 esac
16624 _ACEOF
16626 # Neutralize VPATH when `$srcdir' = `.'.
16627 # Shell code in configure.ac might set extrasub.
16628 # FIXME: do we really want to maintain this feature?
16629 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16630 ac_sed_extra="$ac_vpsub
16631 $extrasub
16632 _ACEOF
16633 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16635 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16636 s|@configure_input@|$ac_sed_conf_input|;t t
16637 s&@top_builddir@&$ac_top_builddir_sub&;t t
16638 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16639 s&@srcdir@&$ac_srcdir&;t t
16640 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16641 s&@top_srcdir@&$ac_top_srcdir&;t t
16642 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16643 s&@builddir@&$ac_builddir&;t t
16644 s&@abs_builddir@&$ac_abs_builddir&;t t
16645 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16646 $ac_datarootdir_hack
16648 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16649 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16651 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16652 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16653 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16654 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16655 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16656 which seems to be undefined. Please make sure it is defined" >&5
16657 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16658 which seems to be undefined. Please make sure it is defined" >&2;}
16660 rm -f "$ac_tmp/stdin"
16661 case $ac_file in
16662 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16663 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16664 esac \
16665 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16669 # CONFIG_HEADER
16671 if test x"$ac_file" != x-; then
16673 $as_echo "/* $configure_input */" \
16674 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16675 } >"$ac_tmp/config.h" \
16676 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16677 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16678 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16679 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16680 else
16681 rm -f "$ac_file"
16682 mv "$ac_tmp/config.h" "$ac_file" \
16683 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16685 else
16686 $as_echo "/* $configure_input */" \
16687 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16688 || as_fn_error $? "could not create -" "$LINENO" 5
16693 esac
16695 done # for ac_tag
16698 as_fn_exit 0
16699 _ACEOF
16700 ac_clean_files=$ac_clean_files_save
16702 test $ac_write_fail = 0 ||
16703 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16706 # configure is writing to config.log, and then calls config.status.
16707 # config.status does its own redirection, appending to config.log.
16708 # Unfortunately, on DOS this fails, as config.log is still kept open
16709 # by configure, so config.status won't be able to write to it; its
16710 # output is simply discarded. So we exec the FD to /dev/null,
16711 # effectively closing config.log, so it can be properly (re)opened and
16712 # appended to by config.status. When coming back to configure, we
16713 # need to make the FD available again.
16714 if test "$no_create" != yes; then
16715 ac_cs_success=:
16716 ac_config_status_args=
16717 test "$silent" = yes &&
16718 ac_config_status_args="$ac_config_status_args --quiet"
16719 exec 5>/dev/null
16720 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16721 exec 5>>config.log
16722 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16723 # would make configure fail if this is the last instruction.
16724 $ac_cs_success || as_fn_exit 1
16726 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16727 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16728 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}