Merge branch 'master' of git://git.pcp.io/pcp into multi-archive
[pcp.git] / configure
blobd3aa221603c0c89875c86b52ec22221c19cad9d8
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_ZLIB
626 zlib_LIBS
627 zlib_CFLAGS
628 lib_for_curses
629 lib_for_readline
630 pcp_mpi_dirs
631 lib_for_atomic
632 enable_secure
633 lib_for_nspr
634 lib_for_nss
635 lib_for_ssl
636 lib_for_sasl
637 SASLCFLAGS
638 NSPRCFLAGS
639 NSSCFLAGS
640 ac_xconfirm_prog
641 pcp_demos_dir
642 pcp_doc_dir
643 pcp_tmp_dir
644 pcp_tmpfile_dir
645 pcp_run_dir
646 pcp_log_dir
647 pcp_sysconfig_dir
648 pcp_rc_dir
649 pcp_desktop_dir
650 pcp_icons_dir
651 pcp_html_dir
652 pcp_books_dir
653 pcp_inc_dir
654 pcp_sbin_dir
655 pcp_bin_dir
656 need_old_tbl_header
657 have_xzed_manpages
658 have_lzmaed_manpages
659 have_bzip2ed_manpages
660 have_gzipped_manpages
661 pcp_man_dir
662 pcp_x11_pre
663 pcp_x11_extra
664 pcp_x11_libflags
665 pcp_x11_incflags
666 X_EXTRA_LIBS
667 X_LIBS
668 X_PRE_LIBS
669 X_CFLAGS
670 XMKMF
671 python_prefix
672 perl_install_base
673 perl_installdirs
674 pcp_lib32_dir
675 pcp_lib_dir
676 pcp_pmdas_dir
677 pcp_var_dir
678 pcp_binadm_dir
679 pcp_share_dir
680 pcp_pmloggercontrol_path
681 pcp_pmsnapcontrol_path
682 pcp_pmiecontrol_path
683 pcp_pmproxyoptions_path
684 pcp_pmmgroptions_path
685 pcp_pmwebdoptions_path
686 pcp_pmcdrclocal_path
687 pcp_pmcdoptions_path
688 pcp_pmcdconf_path
689 pcp_sysconf_dir
690 pcp_saslconf_dir
691 pcp_etc_dir
692 lib_for_math
693 lib_for_dlopen
694 lib_for_rt
695 lib_for_basename
696 fmt_pthread
697 lib_for_pthreads
698 fmt_int64
699 fmt_pid
700 rdynamic_flag
701 enable_manager
702 enable_webapi
703 HAVE_CAIRO
704 cairo_LIBS
705 cairo_CFLAGS
706 HAVE_LIBMICROHTTPD
707 libmicrohttpd_LIBS
708 libmicrohttpd_CFLAGS
709 PMDA_POSTFIX
710 QSHAPE
711 PMDA_RPM
712 PMDA_PERFEVENT
713 PFM_LIBS
714 PMDA_PAPI
715 PAPI_LIBS
716 PAPI_CFLAGS
717 papi_LIBS
718 papi_CFLAGS
719 PMDA_INFINIBAND
720 IB_LIBS
721 PMDA_SYSTEMD
722 SYSTEMD_LIBS
723 SYSTEMD_CFLAGS
724 HAVE_NCURSES
725 ncurses_LIBS
726 ncurses_CFLAGS
727 lib_for_regex
728 grep
729 pcp_syslog_prog
730 pcp_ps_prog
731 LN_S
732 book_brand
733 book_toolchain
734 xmlto
735 XMLTO
736 dblatex
737 DBLATEX
738 publican
739 PUBLICAN
740 makepkg
741 MAKEPKG
742 dpkg
743 DPKG
744 md5sum
745 MD5SUM
746 makedepend
747 MAKEDEPEND
748 TRUEPROG
749 pod2man
750 POD2MAN
751 rpmprog
754 rpmbuild
755 RPMBUILD
756 dlltool
757 DLLTOOL
758 pkgmk
759 PKGMK
760 mkinstallp
761 MKINSTALLP
762 hdiutil
763 HDIUTIL
764 package_maker
767 lzma
768 LZMA
769 bzip2
770 BZIP2
771 gzip
775 pcp_group_install
776 pcp_user_install
780 make
781 MAKE
782 qmake
783 enable_qt
784 qt_release
785 QMAKE
786 PMDA_ACTIVEMQ
787 PMDA_NGINX
788 PMDA_ELASTICSEARCH
789 PMDA_ORACLE
790 PMDA_POSTGRESQL
791 PMDA_MYSQL
792 PMDA_SNMP
793 have_perl
794 pcp_perl_prog
795 PERL
796 PMDA_JSON
797 have_python_six
798 have_python_jsonpointer
799 pcp_python_prog
800 have_python
801 enable_python3
802 enable_python2
803 PYTHON3
804 PYTHON
806 LTLIBOBJS
807 LIBOBJS
808 pm_version_current
809 PACKAGE_DISTRIBUTION
810 PACKAGE_BUILD_DATE
811 PACKAGE_BUILD
812 PACKAGE_REVISION
813 PACKAGE_MINOR
814 PACKAGE_MAJOR
815 enable_systemd
816 pcp_systemdunit_dir
817 SYSTEMD_SYSTEMUNITDIR
818 enable_avahi
819 enable_discovery
820 lib_for_avahi
821 avahi_LIBS
822 avahi_CFLAGS
823 enable_probes
825 DTRACE
826 EGREP
827 GREP
828 echo_c
829 echo_n
830 sort
831 which
832 WHICH
833 echo
834 ECHO
839 yacc
840 YFLAGS
841 YACC
843 LEXLIB
844 LEX_OUTPUT_ROOT
846 enable_shared
848 ac_ct_CXX
849 CXXFLAGS
851 INVISIBILITY
852 PIECFLAGS
853 PIELDFLAGS
854 PLDFLAGS
855 PCFLAGS
856 cflags_abi
857 cc_is_gcc
859 CCPATH
860 OBJEXT
861 EXEEXT
862 ac_ct_CC
863 CPPFLAGS
864 LDFLAGS
865 CFLAGS
867 PKG_CONFIG_LIBDIR
868 PKG_CONFIG_PATH
869 PKG_CONFIG
870 optimization
871 pcp_ps_all_flags
872 pcp_platform_paths
873 cross_compiling
874 target_os
875 target_vendor
876 target_cpu
877 target
878 host_os
879 host_vendor
880 host_cpu
881 host
882 build_os
883 build_vendor
884 build_cpu
885 build
886 pcp_group
887 pcp_user
888 target_alias
889 host_alias
890 build_alias
891 LIBS
892 ECHO_T
893 ECHO_N
894 ECHO_C
895 DEFS
896 mandir
897 localedir
898 libdir
899 psdir
900 pdfdir
901 dvidir
902 htmldir
903 infodir
904 docdir
905 oldincludedir
906 includedir
907 localstatedir
908 sharedstatedir
909 sysconfdir
910 datadir
911 datarootdir
912 libexecdir
913 sbindir
914 bindir
915 program_transform_name
916 prefix
917 exec_prefix
918 PACKAGE_URL
919 PACKAGE_BUGREPORT
920 PACKAGE_STRING
921 PACKAGE_VERSION
922 PACKAGE_TARNAME
923 PACKAGE_NAME
924 PATH_SEPARATOR
925 SHELL'
926 ac_subst_files=''
927 ac_user_opts='
928 enable_option_checking
929 with_64bit
930 with_optimization
931 with_threads
932 with_secure_sockets
933 with_static_probes
934 with_infiniband
935 with_user
936 with_group
937 with_discovery
938 with_systemd
939 with_qt
940 with_python
941 with_python3
942 with_books
943 with_books_brand
944 with_papi
945 with_perfevent
946 with_pmdajson
947 with_manager
948 with_webapi
949 with_webjs
950 with_vector
951 with_make
952 with_tar
953 with_zip
954 enable_ssp
955 enable_pie
956 enable_visibility
957 enable_shared
958 with_configdir
959 with_perl_installdirs
960 with_perl_install_base
961 with_python_prefix
962 with_x
963 with_rcdir
964 with_sysconfigdir
965 with_logdir
966 with_rundir
967 with_tmpdir
968 with_docdir
969 with_demosdir
971 ac_precious_vars='build_alias
972 host_alias
973 target_alias
974 PKG_CONFIG
975 PKG_CONFIG_PATH
976 PKG_CONFIG_LIBDIR
978 CFLAGS
979 LDFLAGS
980 LIBS
981 CPPFLAGS
983 CXXFLAGS
985 YACC
986 YFLAGS
988 avahi_CFLAGS
989 avahi_LIBS
990 SYSTEMD_SYSTEMUNITDIR
991 ncurses_CFLAGS
992 ncurses_LIBS
993 SYSTEMD_CFLAGS
994 SYSTEMD_LIBS
995 papi_CFLAGS
996 papi_LIBS
997 libmicrohttpd_CFLAGS
998 libmicrohttpd_LIBS
999 cairo_CFLAGS
1000 cairo_LIBS
1001 XMKMF
1002 zlib_CFLAGS
1003 zlib_LIBS'
1006 # Initialize some variables set by options.
1007 ac_init_help=
1008 ac_init_version=false
1009 ac_unrecognized_opts=
1010 ac_unrecognized_sep=
1011 # The variables have the same names as the options, with
1012 # dashes changed to underlines.
1013 cache_file=/dev/null
1014 exec_prefix=NONE
1015 no_create=
1016 no_recursion=
1017 prefix=NONE
1018 program_prefix=NONE
1019 program_suffix=NONE
1020 program_transform_name=s,x,x,
1021 silent=
1022 site=
1023 srcdir=
1024 verbose=
1025 x_includes=NONE
1026 x_libraries=NONE
1028 # Installation directory options.
1029 # These are left unexpanded so users can "make install exec_prefix=/foo"
1030 # and all the variables that are supposed to be based on exec_prefix
1031 # by default will actually change.
1032 # Use braces instead of parens because sh, perl, etc. also accept them.
1033 # (The list follows the same order as the GNU Coding Standards.)
1034 bindir='${exec_prefix}/bin'
1035 sbindir='${exec_prefix}/sbin'
1036 libexecdir='${exec_prefix}/libexec'
1037 datarootdir='${prefix}/share'
1038 datadir='${datarootdir}'
1039 sysconfdir='${prefix}/etc'
1040 sharedstatedir='${prefix}/com'
1041 localstatedir='${prefix}/var'
1042 includedir='${prefix}/include'
1043 oldincludedir='/usr/include'
1044 docdir='${datarootdir}/doc/${PACKAGE}'
1045 infodir='${datarootdir}/info'
1046 htmldir='${docdir}'
1047 dvidir='${docdir}'
1048 pdfdir='${docdir}'
1049 psdir='${docdir}'
1050 libdir='${exec_prefix}/lib'
1051 localedir='${datarootdir}/locale'
1052 mandir='${datarootdir}/man'
1054 ac_prev=
1055 ac_dashdash=
1056 for ac_option
1058 # If the previous option needs an argument, assign it.
1059 if test -n "$ac_prev"; then
1060 eval $ac_prev=\$ac_option
1061 ac_prev=
1062 continue
1065 case $ac_option in
1066 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
1067 *=) ac_optarg= ;;
1068 *) ac_optarg=yes ;;
1069 esac
1071 # Accept the important Cygnus configure options, so we can diagnose typos.
1073 case $ac_dashdash$ac_option in
1075 ac_dashdash=yes ;;
1077 -bindir | --bindir | --bindi | --bind | --bin | --bi)
1078 ac_prev=bindir ;;
1079 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
1080 bindir=$ac_optarg ;;
1082 -build | --build | --buil | --bui | --bu)
1083 ac_prev=build_alias ;;
1084 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
1085 build_alias=$ac_optarg ;;
1087 -cache-file | --cache-file | --cache-fil | --cache-fi \
1088 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
1089 ac_prev=cache_file ;;
1090 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
1091 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
1092 cache_file=$ac_optarg ;;
1094 --config-cache | -C)
1095 cache_file=config.cache ;;
1097 -datadir | --datadir | --datadi | --datad)
1098 ac_prev=datadir ;;
1099 -datadir=* | --datadir=* | --datadi=* | --datad=*)
1100 datadir=$ac_optarg ;;
1102 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
1103 | --dataroo | --dataro | --datar)
1104 ac_prev=datarootdir ;;
1105 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
1106 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
1107 datarootdir=$ac_optarg ;;
1109 -disable-* | --disable-*)
1110 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
1111 # Reject names that are not valid shell variable names.
1112 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1113 as_fn_error $? "invalid feature name: $ac_useropt"
1114 ac_useropt_orig=$ac_useropt
1115 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1116 case $ac_user_opts in
1118 "enable_$ac_useropt"
1119 "*) ;;
1120 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
1121 ac_unrecognized_sep=', ';;
1122 esac
1123 eval enable_$ac_useropt=no ;;
1125 -docdir | --docdir | --docdi | --doc | --do)
1126 ac_prev=docdir ;;
1127 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
1128 docdir=$ac_optarg ;;
1130 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
1131 ac_prev=dvidir ;;
1132 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
1133 dvidir=$ac_optarg ;;
1135 -enable-* | --enable-*)
1136 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
1137 # Reject names that are not valid shell variable names.
1138 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1139 as_fn_error $? "invalid feature name: $ac_useropt"
1140 ac_useropt_orig=$ac_useropt
1141 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1142 case $ac_user_opts in
1144 "enable_$ac_useropt"
1145 "*) ;;
1146 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1147 ac_unrecognized_sep=', ';;
1148 esac
1149 eval enable_$ac_useropt=\$ac_optarg ;;
1151 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1152 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1153 | --exec | --exe | --ex)
1154 ac_prev=exec_prefix ;;
1155 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1156 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1157 | --exec=* | --exe=* | --ex=*)
1158 exec_prefix=$ac_optarg ;;
1160 -gas | --gas | --ga | --g)
1161 # Obsolete; use --with-gas.
1162 with_gas=yes ;;
1164 -help | --help | --hel | --he | -h)
1165 ac_init_help=long ;;
1166 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1167 ac_init_help=recursive ;;
1168 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1169 ac_init_help=short ;;
1171 -host | --host | --hos | --ho)
1172 ac_prev=host_alias ;;
1173 -host=* | --host=* | --hos=* | --ho=*)
1174 host_alias=$ac_optarg ;;
1176 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1177 ac_prev=htmldir ;;
1178 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1179 | --ht=*)
1180 htmldir=$ac_optarg ;;
1182 -includedir | --includedir | --includedi | --included | --include \
1183 | --includ | --inclu | --incl | --inc)
1184 ac_prev=includedir ;;
1185 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1186 | --includ=* | --inclu=* | --incl=* | --inc=*)
1187 includedir=$ac_optarg ;;
1189 -infodir | --infodir | --infodi | --infod | --info | --inf)
1190 ac_prev=infodir ;;
1191 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1192 infodir=$ac_optarg ;;
1194 -libdir | --libdir | --libdi | --libd)
1195 ac_prev=libdir ;;
1196 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1197 libdir=$ac_optarg ;;
1199 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1200 | --libexe | --libex | --libe)
1201 ac_prev=libexecdir ;;
1202 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1203 | --libexe=* | --libex=* | --libe=*)
1204 libexecdir=$ac_optarg ;;
1206 -localedir | --localedir | --localedi | --localed | --locale)
1207 ac_prev=localedir ;;
1208 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1209 localedir=$ac_optarg ;;
1211 -localstatedir | --localstatedir | --localstatedi | --localstated \
1212 | --localstate | --localstat | --localsta | --localst | --locals)
1213 ac_prev=localstatedir ;;
1214 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1215 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1216 localstatedir=$ac_optarg ;;
1218 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1219 ac_prev=mandir ;;
1220 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1221 mandir=$ac_optarg ;;
1223 -nfp | --nfp | --nf)
1224 # Obsolete; use --without-fp.
1225 with_fp=no ;;
1227 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1228 | --no-cr | --no-c | -n)
1229 no_create=yes ;;
1231 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1232 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1233 no_recursion=yes ;;
1235 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1236 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1237 | --oldin | --oldi | --old | --ol | --o)
1238 ac_prev=oldincludedir ;;
1239 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1240 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1241 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1242 oldincludedir=$ac_optarg ;;
1244 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1245 ac_prev=prefix ;;
1246 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1247 prefix=$ac_optarg ;;
1249 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1250 | --program-pre | --program-pr | --program-p)
1251 ac_prev=program_prefix ;;
1252 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1253 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1254 program_prefix=$ac_optarg ;;
1256 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1257 | --program-suf | --program-su | --program-s)
1258 ac_prev=program_suffix ;;
1259 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1260 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1261 program_suffix=$ac_optarg ;;
1263 -program-transform-name | --program-transform-name \
1264 | --program-transform-nam | --program-transform-na \
1265 | --program-transform-n | --program-transform- \
1266 | --program-transform | --program-transfor \
1267 | --program-transfo | --program-transf \
1268 | --program-trans | --program-tran \
1269 | --progr-tra | --program-tr | --program-t)
1270 ac_prev=program_transform_name ;;
1271 -program-transform-name=* | --program-transform-name=* \
1272 | --program-transform-nam=* | --program-transform-na=* \
1273 | --program-transform-n=* | --program-transform-=* \
1274 | --program-transform=* | --program-transfor=* \
1275 | --program-transfo=* | --program-transf=* \
1276 | --program-trans=* | --program-tran=* \
1277 | --progr-tra=* | --program-tr=* | --program-t=*)
1278 program_transform_name=$ac_optarg ;;
1280 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1281 ac_prev=pdfdir ;;
1282 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1283 pdfdir=$ac_optarg ;;
1285 -psdir | --psdir | --psdi | --psd | --ps)
1286 ac_prev=psdir ;;
1287 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1288 psdir=$ac_optarg ;;
1290 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1291 | -silent | --silent | --silen | --sile | --sil)
1292 silent=yes ;;
1294 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1295 ac_prev=sbindir ;;
1296 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1297 | --sbi=* | --sb=*)
1298 sbindir=$ac_optarg ;;
1300 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1301 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1302 | --sharedst | --shareds | --shared | --share | --shar \
1303 | --sha | --sh)
1304 ac_prev=sharedstatedir ;;
1305 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1306 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1307 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1308 | --sha=* | --sh=*)
1309 sharedstatedir=$ac_optarg ;;
1311 -site | --site | --sit)
1312 ac_prev=site ;;
1313 -site=* | --site=* | --sit=*)
1314 site=$ac_optarg ;;
1316 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1317 ac_prev=srcdir ;;
1318 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1319 srcdir=$ac_optarg ;;
1321 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1322 | --syscon | --sysco | --sysc | --sys | --sy)
1323 ac_prev=sysconfdir ;;
1324 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1325 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1326 sysconfdir=$ac_optarg ;;
1328 -target | --target | --targe | --targ | --tar | --ta | --t)
1329 ac_prev=target_alias ;;
1330 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1331 target_alias=$ac_optarg ;;
1333 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1334 verbose=yes ;;
1336 -version | --version | --versio | --versi | --vers | -V)
1337 ac_init_version=: ;;
1339 -with-* | --with-*)
1340 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1341 # Reject names that are not valid shell variable names.
1342 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1343 as_fn_error $? "invalid package name: $ac_useropt"
1344 ac_useropt_orig=$ac_useropt
1345 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1346 case $ac_user_opts in
1348 "with_$ac_useropt"
1349 "*) ;;
1350 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1351 ac_unrecognized_sep=', ';;
1352 esac
1353 eval with_$ac_useropt=\$ac_optarg ;;
1355 -without-* | --without-*)
1356 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1357 # Reject names that are not valid shell variable names.
1358 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1359 as_fn_error $? "invalid package name: $ac_useropt"
1360 ac_useropt_orig=$ac_useropt
1361 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1362 case $ac_user_opts in
1364 "with_$ac_useropt"
1365 "*) ;;
1366 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1367 ac_unrecognized_sep=', ';;
1368 esac
1369 eval with_$ac_useropt=no ;;
1371 --x)
1372 # Obsolete; use --with-x.
1373 with_x=yes ;;
1375 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1376 | --x-incl | --x-inc | --x-in | --x-i)
1377 ac_prev=x_includes ;;
1378 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1379 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1380 x_includes=$ac_optarg ;;
1382 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1383 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1384 ac_prev=x_libraries ;;
1385 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1386 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1387 x_libraries=$ac_optarg ;;
1389 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1390 Try \`$0 --help' for more information"
1393 *=*)
1394 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1395 # Reject names that are not valid shell variable names.
1396 case $ac_envvar in #(
1397 '' | [0-9]* | *[!_$as_cr_alnum]* )
1398 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1399 esac
1400 eval $ac_envvar=\$ac_optarg
1401 export $ac_envvar ;;
1404 # FIXME: should be removed in autoconf 3.0.
1405 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1406 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1407 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1408 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1411 esac
1412 done
1414 if test -n "$ac_prev"; then
1415 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1416 as_fn_error $? "missing argument to $ac_option"
1419 if test -n "$ac_unrecognized_opts"; then
1420 case $enable_option_checking in
1421 no) ;;
1422 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1423 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1424 esac
1427 # Check all directory arguments for consistency.
1428 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1429 datadir sysconfdir sharedstatedir localstatedir includedir \
1430 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1431 libdir localedir mandir
1433 eval ac_val=\$$ac_var
1434 # Remove trailing slashes.
1435 case $ac_val in
1436 */ )
1437 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1438 eval $ac_var=\$ac_val;;
1439 esac
1440 # Be sure to have absolute directory names.
1441 case $ac_val in
1442 [\\/$]* | ?:[\\/]* ) continue;;
1443 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1444 esac
1445 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1446 done
1448 # There might be people who depend on the old broken behavior: `$host'
1449 # used to hold the argument of --host etc.
1450 # FIXME: To remove some day.
1451 build=$build_alias
1452 host=$host_alias
1453 target=$target_alias
1455 # FIXME: To remove some day.
1456 if test "x$host_alias" != x; then
1457 if test "x$build_alias" = x; then
1458 cross_compiling=maybe
1459 elif test "x$build_alias" != "x$host_alias"; then
1460 cross_compiling=yes
1464 ac_tool_prefix=
1465 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1467 test "$silent" = yes && exec 6>/dev/null
1470 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1471 ac_ls_di=`ls -di .` &&
1472 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1473 as_fn_error $? "working directory cannot be determined"
1474 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1475 as_fn_error $? "pwd does not report name of working directory"
1478 # Find the source files, if location was not specified.
1479 if test -z "$srcdir"; then
1480 ac_srcdir_defaulted=yes
1481 # Try the directory containing this script, then the parent directory.
1482 ac_confdir=`$as_dirname -- "$as_myself" ||
1483 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1484 X"$as_myself" : 'X\(//\)[^/]' \| \
1485 X"$as_myself" : 'X\(//\)$' \| \
1486 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1487 $as_echo X"$as_myself" |
1488 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1489 s//\1/
1492 /^X\(\/\/\)[^/].*/{
1493 s//\1/
1496 /^X\(\/\/\)$/{
1497 s//\1/
1500 /^X\(\/\).*/{
1501 s//\1/
1504 s/.*/./; q'`
1505 srcdir=$ac_confdir
1506 if test ! -r "$srcdir/$ac_unique_file"; then
1507 srcdir=..
1509 else
1510 ac_srcdir_defaulted=no
1512 if test ! -r "$srcdir/$ac_unique_file"; then
1513 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1514 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1516 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1517 ac_abs_confdir=`(
1518 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1519 pwd)`
1520 # When building in place, set srcdir=.
1521 if test "$ac_abs_confdir" = "$ac_pwd"; then
1522 srcdir=.
1524 # Remove unnecessary trailing slashes from srcdir.
1525 # Double slashes in file names in object file debugging info
1526 # mess up M-x gdb in Emacs.
1527 case $srcdir in
1528 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1529 esac
1530 for ac_var in $ac_precious_vars; do
1531 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1532 eval ac_env_${ac_var}_value=\$${ac_var}
1533 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1534 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1535 done
1538 # Report the --help message.
1540 if test "$ac_init_help" = "long"; then
1541 # Omit some internal or obsolete options to make the list less imposing.
1542 # This message is too long to be a string in the A/UX 3.1 sh.
1543 cat <<_ACEOF
1544 \`configure' configures this package to adapt to many kinds of systems.
1546 Usage: $0 [OPTION]... [VAR=VALUE]...
1548 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1549 VAR=VALUE. See below for descriptions of some of the useful variables.
1551 Defaults for the options are specified in brackets.
1553 Configuration:
1554 -h, --help display this help and exit
1555 --help=short display options specific to this package
1556 --help=recursive display the short help of all the included packages
1557 -V, --version display version information and exit
1558 -q, --quiet, --silent do not print \`checking ...' messages
1559 --cache-file=FILE cache test results in FILE [disabled]
1560 -C, --config-cache alias for \`--cache-file=config.cache'
1561 -n, --no-create do not create output files
1562 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1564 Installation directories:
1565 --prefix=PREFIX install architecture-independent files in PREFIX
1566 [$ac_default_prefix]
1567 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1568 [PREFIX]
1570 By default, \`make install' will install all the files in
1571 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1572 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1573 for instance \`--prefix=\$HOME'.
1575 For better control, use the options below.
1577 Fine tuning of the installation directories:
1578 --bindir=DIR user executables [EPREFIX/bin]
1579 --sbindir=DIR system admin executables [EPREFIX/sbin]
1580 --libexecdir=DIR program executables [EPREFIX/libexec]
1581 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1582 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1583 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1584 --libdir=DIR object code libraries [EPREFIX/lib]
1585 --includedir=DIR C header files [PREFIX/include]
1586 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1587 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1588 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1589 --infodir=DIR info documentation [DATAROOTDIR/info]
1590 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1591 --mandir=DIR man documentation [DATAROOTDIR/man]
1592 --docdir=DIR documentation root [DATAROOTDIR/doc/PACKAGE]
1593 --htmldir=DIR html documentation [DOCDIR]
1594 --dvidir=DIR dvi documentation [DOCDIR]
1595 --pdfdir=DIR pdf documentation [DOCDIR]
1596 --psdir=DIR ps documentation [DOCDIR]
1597 _ACEOF
1599 cat <<\_ACEOF
1601 X features:
1602 --x-includes=DIR X include files are in DIR
1603 --x-libraries=DIR X library files are in DIR
1605 System types:
1606 --build=BUILD configure for building on BUILD [guessed]
1607 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1608 --target=TARGET configure for building compilers for TARGET [HOST]
1609 _ACEOF
1612 if test -n "$ac_init_help"; then
1614 cat <<\_ACEOF
1616 Optional Features:
1617 --disable-option-checking ignore unrecognized --enable/--with options
1618 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1619 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1620 --disable-ssp disable gcc stack-protector
1621 --disable-pie disable position-independent-executable
1622 --disable-visibility disable gcc symbol visibility
1623 --disable-shared disable core shared libary generation
1625 Optional Packages:
1626 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1627 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1628 --with-64bit turn on 64 bit compilation mode (default is platform
1629 dependent)
1630 --with-optimization enable optimization for C/C++ code (default is yes)
1631 --with-threads enable support for multiple threads (default is on)
1632 --with-secure-sockets enable support for secure sockets (default is on)
1633 --with-static-probes enable support for static probes (default is on)
1634 --with-infiniband enable support for Infiniband metrics (default is
1636 --with-user user account under which daemons run (default is
1637 pcp)
1638 --with-group user group under which daemons run (default is pcp)
1639 --with-discovery enable support for service discovery (default is on)
1640 --with-systemd enable support for systemd services (default is on)
1641 --with-qt enable support for tools requiring Qt (default is
1643 --with-python enable support for tools requiring Python (default
1644 is on)
1645 --with-python3 enable support for tools requiring Python3 (default
1646 is on)
1647 --with-books enable building of the PCP books (default is off)
1648 --with-books-brand=BRAND
1649 choose the docbook brand when building the PCP books
1650 (default is common)
1651 --with-papi[=DIR|=MODULE]
1652 enable performance api counter pmda (default is on)
1653 The optional argument may be a full path of a PAPI
1654 installation prefix, or a pkgconfig module name.
1655 --with-perfevent enable perfevent pmda (default is on)
1656 --with-pmdajson enable JSON pmda (default is on)
1657 --with-manager enable daemon manager (default is on)
1658 --with-webapi enable REST API daemon (default is on)
1659 --with-webjs enable building of webjs packages (default is off)
1660 --with-vector enable building of vector package (default is off)
1661 --with-make path to GNU compatible make(1) (default is empty for
1662 auto discovery)
1663 --with-tar path to GNU compatible tar(1) (default is empty for
1664 auto discovery)
1665 --with-zip path to GNU compatible zip(1) (default is empty for
1666 auto discovery)
1667 --with-configdir configuration directory [LOCALSTATEDIR/pcp/config]
1668 --with-perl_installdirs perl installdirs [vendor]
1669 --with-perl_install_base
1670 perl install_base [PREFIX]
1671 --with-python_prefix python setup.py prefix [PREFIX]
1672 --with-x use the X Window System
1673 --with-rcdir rc directory [SYSCONFDIR/rc.d]
1674 --with-sysconfigdir sysconfig directory [SYSCONFDIR/sysconfig]
1675 --with-logdir log directory [LOCALSTATEDIR/log/pcp]
1676 --with-rundir run directory [LOCALSTATEDIR/run/pcp]
1677 --with-tmpdir tmp directory [LOCALSTATEDIR/tmp]
1678 --with-docdir docs directory [DOCDIR/pcp-VERSION]
1679 --with-demosdir run directory [DATADIR/pcp/demos]
1681 Some influential environment variables:
1682 PKG_CONFIG path to pkg-config utility
1683 PKG_CONFIG_PATH
1684 directories to add to pkg-config's search path
1685 PKG_CONFIG_LIBDIR
1686 path overriding pkg-config's built-in search path
1687 CC C compiler command
1688 CFLAGS C compiler flags
1689 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1690 nonstandard directory <lib dir>
1691 LIBS libraries to pass to the linker, e.g. -l<library>
1692 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1693 you have headers in a nonstandard directory <include dir>
1694 CXX C++ compiler command
1695 CXXFLAGS C++ compiler flags
1696 YACC The `Yet Another Compiler Compiler' implementation to use.
1697 Defaults to the first program found out of: `bison -y', `byacc',
1698 `yacc'.
1699 YFLAGS The list of arguments that will be passed by default to $YACC.
1700 This script will default YFLAGS to the empty string to avoid a
1701 default value of `-d' given by some make applications.
1702 CPP C preprocessor
1703 avahi_CFLAGS
1704 C compiler flags for avahi, overriding pkg-config
1705 avahi_LIBS linker flags for avahi, overriding pkg-config
1706 SYSTEMD_SYSTEMUNITDIR
1707 value of systemdsystemunitdir for systemd, overriding pkg-config
1708 ncurses_CFLAGS
1709 C compiler flags for ncurses, overriding pkg-config
1710 ncurses_LIBS
1711 linker flags for ncurses, overriding pkg-config
1712 SYSTEMD_CFLAGS
1713 C compiler flags for SYSTEMD, overriding pkg-config
1714 SYSTEMD_LIBS
1715 linker flags for SYSTEMD, overriding pkg-config
1716 papi_CFLAGS C compiler flags for papi, overriding pkg-config
1717 papi_LIBS linker flags for papi, overriding pkg-config
1718 libmicrohttpd_CFLAGS
1719 C compiler flags for libmicrohttpd, overriding pkg-config
1720 libmicrohttpd_LIBS
1721 linker flags for libmicrohttpd, overriding pkg-config
1722 cairo_CFLAGS
1723 C compiler flags for cairo, overriding pkg-config
1724 cairo_LIBS linker flags for cairo, overriding pkg-config
1725 XMKMF Path to xmkmf, Makefile generator for X Window System
1726 zlib_CFLAGS C compiler flags for zlib, overriding pkg-config
1727 zlib_LIBS linker flags for zlib, overriding pkg-config
1729 Use these variables to override the choices made by `configure' or to help
1730 it to find libraries and programs with nonstandard names/locations.
1732 Report bugs to the package provider.
1733 _ACEOF
1734 ac_status=$?
1737 if test "$ac_init_help" = "recursive"; then
1738 # If there are subdirs, report their specific --help.
1739 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1740 test -d "$ac_dir" ||
1741 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1742 continue
1743 ac_builddir=.
1745 case "$ac_dir" in
1746 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1748 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1749 # A ".." for each directory in $ac_dir_suffix.
1750 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1751 case $ac_top_builddir_sub in
1752 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1753 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1754 esac ;;
1755 esac
1756 ac_abs_top_builddir=$ac_pwd
1757 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1758 # for backward compatibility:
1759 ac_top_builddir=$ac_top_build_prefix
1761 case $srcdir in
1762 .) # We are building in place.
1763 ac_srcdir=.
1764 ac_top_srcdir=$ac_top_builddir_sub
1765 ac_abs_top_srcdir=$ac_pwd ;;
1766 [\\/]* | ?:[\\/]* ) # Absolute name.
1767 ac_srcdir=$srcdir$ac_dir_suffix;
1768 ac_top_srcdir=$srcdir
1769 ac_abs_top_srcdir=$srcdir ;;
1770 *) # Relative name.
1771 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1772 ac_top_srcdir=$ac_top_build_prefix$srcdir
1773 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1774 esac
1775 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1777 cd "$ac_dir" || { ac_status=$?; continue; }
1778 # Check for guested configure.
1779 if test -f "$ac_srcdir/configure.gnu"; then
1780 echo &&
1781 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1782 elif test -f "$ac_srcdir/configure"; then
1783 echo &&
1784 $SHELL "$ac_srcdir/configure" --help=recursive
1785 else
1786 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1787 fi || ac_status=$?
1788 cd "$ac_pwd" || { ac_status=$?; break; }
1789 done
1792 test -n "$ac_init_help" && exit $ac_status
1793 if $ac_init_version; then
1794 cat <<\_ACEOF
1795 configure
1796 generated by GNU Autoconf 2.69
1798 Copyright (C) 2012 Free Software Foundation, Inc.
1799 This configure script is free software; the Free Software Foundation
1800 gives unlimited permission to copy, distribute and modify it.
1801 _ACEOF
1802 exit
1805 ## ------------------------ ##
1806 ## Autoconf initialization. ##
1807 ## ------------------------ ##
1809 # ac_fn_c_try_compile LINENO
1810 # --------------------------
1811 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1812 ac_fn_c_try_compile ()
1814 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1815 rm -f conftest.$ac_objext
1816 if { { ac_try="$ac_compile"
1817 case "(($ac_try" in
1818 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1819 *) ac_try_echo=$ac_try;;
1820 esac
1821 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1822 $as_echo "$ac_try_echo"; } >&5
1823 (eval "$ac_compile") 2>conftest.err
1824 ac_status=$?
1825 if test -s conftest.err; then
1826 grep -v '^ *+' conftest.err >conftest.er1
1827 cat conftest.er1 >&5
1828 mv -f conftest.er1 conftest.err
1830 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1831 test $ac_status = 0; } && {
1832 test -z "$ac_c_werror_flag" ||
1833 test ! -s conftest.err
1834 } && test -s conftest.$ac_objext; then :
1835 ac_retval=0
1836 else
1837 $as_echo "$as_me: failed program was:" >&5
1838 sed 's/^/| /' conftest.$ac_ext >&5
1840 ac_retval=1
1842 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1843 as_fn_set_status $ac_retval
1845 } # ac_fn_c_try_compile
1847 # ac_fn_c_try_link LINENO
1848 # -----------------------
1849 # Try to link conftest.$ac_ext, and return whether this succeeded.
1850 ac_fn_c_try_link ()
1852 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1853 rm -f conftest.$ac_objext conftest$ac_exeext
1854 if { { ac_try="$ac_link"
1855 case "(($ac_try" in
1856 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1857 *) ac_try_echo=$ac_try;;
1858 esac
1859 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1860 $as_echo "$ac_try_echo"; } >&5
1861 (eval "$ac_link") 2>conftest.err
1862 ac_status=$?
1863 if test -s conftest.err; then
1864 grep -v '^ *+' conftest.err >conftest.er1
1865 cat conftest.er1 >&5
1866 mv -f conftest.er1 conftest.err
1868 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1869 test $ac_status = 0; } && {
1870 test -z "$ac_c_werror_flag" ||
1871 test ! -s conftest.err
1872 } && test -s conftest$ac_exeext && {
1873 test "$cross_compiling" = yes ||
1874 test -x conftest$ac_exeext
1875 }; then :
1876 ac_retval=0
1877 else
1878 $as_echo "$as_me: failed program was:" >&5
1879 sed 's/^/| /' conftest.$ac_ext >&5
1881 ac_retval=1
1883 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1884 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1885 # interfere with the next link command; also delete a directory that is
1886 # left behind by Apple's compiler. We do this before executing the actions.
1887 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1888 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1889 as_fn_set_status $ac_retval
1891 } # ac_fn_c_try_link
1893 # ac_fn_cxx_try_compile LINENO
1894 # ----------------------------
1895 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1896 ac_fn_cxx_try_compile ()
1898 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1899 rm -f conftest.$ac_objext
1900 if { { ac_try="$ac_compile"
1901 case "(($ac_try" in
1902 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1903 *) ac_try_echo=$ac_try;;
1904 esac
1905 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1906 $as_echo "$ac_try_echo"; } >&5
1907 (eval "$ac_compile") 2>conftest.err
1908 ac_status=$?
1909 if test -s conftest.err; then
1910 grep -v '^ *+' conftest.err >conftest.er1
1911 cat conftest.er1 >&5
1912 mv -f conftest.er1 conftest.err
1914 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1915 test $ac_status = 0; } && {
1916 test -z "$ac_cxx_werror_flag" ||
1917 test ! -s conftest.err
1918 } && test -s conftest.$ac_objext; then :
1919 ac_retval=0
1920 else
1921 $as_echo "$as_me: failed program was:" >&5
1922 sed 's/^/| /' conftest.$ac_ext >&5
1924 ac_retval=1
1926 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1927 as_fn_set_status $ac_retval
1929 } # ac_fn_cxx_try_compile
1931 # ac_fn_c_try_cpp LINENO
1932 # ----------------------
1933 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1934 ac_fn_c_try_cpp ()
1936 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1937 if { { ac_try="$ac_cpp conftest.$ac_ext"
1938 case "(($ac_try" in
1939 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1940 *) ac_try_echo=$ac_try;;
1941 esac
1942 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1943 $as_echo "$ac_try_echo"; } >&5
1944 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1945 ac_status=$?
1946 if test -s conftest.err; then
1947 grep -v '^ *+' conftest.err >conftest.er1
1948 cat conftest.er1 >&5
1949 mv -f conftest.er1 conftest.err
1951 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1952 test $ac_status = 0; } > conftest.i && {
1953 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1954 test ! -s conftest.err
1955 }; then :
1956 ac_retval=0
1957 else
1958 $as_echo "$as_me: failed program was:" >&5
1959 sed 's/^/| /' conftest.$ac_ext >&5
1961 ac_retval=1
1963 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1964 as_fn_set_status $ac_retval
1966 } # ac_fn_c_try_cpp
1968 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1969 # -------------------------------------------------------
1970 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1971 # the include files in INCLUDES and setting the cache variable VAR
1972 # accordingly.
1973 ac_fn_c_check_header_mongrel ()
1975 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1976 if eval \${$3+:} false; then :
1977 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1978 $as_echo_n "checking for $2... " >&6; }
1979 if eval \${$3+:} false; then :
1980 $as_echo_n "(cached) " >&6
1982 eval ac_res=\$$3
1983 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1984 $as_echo "$ac_res" >&6; }
1985 else
1986 # Is the header compilable?
1987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1988 $as_echo_n "checking $2 usability... " >&6; }
1989 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1990 /* end confdefs.h. */
1992 #include <$2>
1993 _ACEOF
1994 if ac_fn_c_try_compile "$LINENO"; then :
1995 ac_header_compiler=yes
1996 else
1997 ac_header_compiler=no
1999 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
2001 $as_echo "$ac_header_compiler" >&6; }
2003 # Is the header present?
2004 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
2005 $as_echo_n "checking $2 presence... " >&6; }
2006 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2007 /* end confdefs.h. */
2008 #include <$2>
2009 _ACEOF
2010 if ac_fn_c_try_cpp "$LINENO"; then :
2011 ac_header_preproc=yes
2012 else
2013 ac_header_preproc=no
2015 rm -f conftest.err conftest.i conftest.$ac_ext
2016 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
2017 $as_echo "$ac_header_preproc" >&6; }
2019 # So? What about this header?
2020 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
2021 yes:no: )
2022 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
2023 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
2024 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2025 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2027 no:yes:* )
2028 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
2029 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
2030 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
2031 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
2032 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
2033 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
2034 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
2035 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
2036 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
2037 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
2039 esac
2040 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2041 $as_echo_n "checking for $2... " >&6; }
2042 if eval \${$3+:} false; then :
2043 $as_echo_n "(cached) " >&6
2044 else
2045 eval "$3=\$ac_header_compiler"
2047 eval ac_res=\$$3
2048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2049 $as_echo "$ac_res" >&6; }
2051 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2053 } # ac_fn_c_check_header_mongrel
2055 # ac_fn_c_try_run LINENO
2056 # ----------------------
2057 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
2058 # that executables *can* be run.
2059 ac_fn_c_try_run ()
2061 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2062 if { { ac_try="$ac_link"
2063 case "(($ac_try" in
2064 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2065 *) ac_try_echo=$ac_try;;
2066 esac
2067 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2068 $as_echo "$ac_try_echo"; } >&5
2069 (eval "$ac_link") 2>&5
2070 ac_status=$?
2071 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2072 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
2073 { { case "(($ac_try" in
2074 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2075 *) ac_try_echo=$ac_try;;
2076 esac
2077 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2078 $as_echo "$ac_try_echo"; } >&5
2079 (eval "$ac_try") 2>&5
2080 ac_status=$?
2081 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2082 test $ac_status = 0; }; }; then :
2083 ac_retval=0
2084 else
2085 $as_echo "$as_me: program exited with status $ac_status" >&5
2086 $as_echo "$as_me: failed program was:" >&5
2087 sed 's/^/| /' conftest.$ac_ext >&5
2089 ac_retval=$ac_status
2091 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2092 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2093 as_fn_set_status $ac_retval
2095 } # ac_fn_c_try_run
2097 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
2098 # -------------------------------------------------------
2099 # Tests whether HEADER exists and can be compiled using the include files in
2100 # INCLUDES, setting the cache variable VAR accordingly.
2101 ac_fn_c_check_header_compile ()
2103 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2104 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2105 $as_echo_n "checking for $2... " >&6; }
2106 if eval \${$3+:} false; then :
2107 $as_echo_n "(cached) " >&6
2108 else
2109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2110 /* end confdefs.h. */
2112 #include <$2>
2113 _ACEOF
2114 if ac_fn_c_try_compile "$LINENO"; then :
2115 eval "$3=yes"
2116 else
2117 eval "$3=no"
2119 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2121 eval ac_res=\$$3
2122 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2123 $as_echo "$ac_res" >&6; }
2124 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2126 } # ac_fn_c_check_header_compile
2128 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
2129 # -------------------------------------------
2130 # Tests whether TYPE exists after having included INCLUDES, setting cache
2131 # variable VAR accordingly.
2132 ac_fn_c_check_type ()
2134 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2135 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2136 $as_echo_n "checking for $2... " >&6; }
2137 if eval \${$3+:} false; then :
2138 $as_echo_n "(cached) " >&6
2139 else
2140 eval "$3=no"
2141 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2142 /* end confdefs.h. */
2145 main ()
2147 if (sizeof ($2))
2148 return 0;
2150 return 0;
2152 _ACEOF
2153 if ac_fn_c_try_compile "$LINENO"; then :
2154 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2155 /* end confdefs.h. */
2158 main ()
2160 if (sizeof (($2)))
2161 return 0;
2163 return 0;
2165 _ACEOF
2166 if ac_fn_c_try_compile "$LINENO"; then :
2168 else
2169 eval "$3=yes"
2171 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2173 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2175 eval ac_res=\$$3
2176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2177 $as_echo "$ac_res" >&6; }
2178 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2180 } # ac_fn_c_check_type
2182 # ac_fn_c_check_func LINENO FUNC VAR
2183 # ----------------------------------
2184 # Tests whether FUNC exists, setting the cache variable VAR accordingly
2185 ac_fn_c_check_func ()
2187 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2189 $as_echo_n "checking for $2... " >&6; }
2190 if eval \${$3+:} false; then :
2191 $as_echo_n "(cached) " >&6
2192 else
2193 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2194 /* end confdefs.h. */
2195 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2196 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2197 #define $2 innocuous_$2
2199 /* System header to define __stub macros and hopefully few prototypes,
2200 which can conflict with char $2 (); below.
2201 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2202 <limits.h> exists even on freestanding compilers. */
2204 #ifdef __STDC__
2205 # include <limits.h>
2206 #else
2207 # include <assert.h>
2208 #endif
2210 #undef $2
2212 /* Override any GCC internal prototype to avoid an error.
2213 Use char because int might match the return type of a GCC
2214 builtin and then its argument prototype would still apply. */
2215 #ifdef __cplusplus
2216 extern "C"
2217 #endif
2218 char $2 ();
2219 /* The GNU C library defines this for functions which it implements
2220 to always fail with ENOSYS. Some functions are actually named
2221 something starting with __ and the normal name is an alias. */
2222 #if defined __stub_$2 || defined __stub___$2
2223 choke me
2224 #endif
2227 main ()
2229 return $2 ();
2231 return 0;
2233 _ACEOF
2234 if ac_fn_c_try_link "$LINENO"; then :
2235 eval "$3=yes"
2236 else
2237 eval "$3=no"
2239 rm -f core conftest.err conftest.$ac_objext \
2240 conftest$ac_exeext conftest.$ac_ext
2242 eval ac_res=\$$3
2243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2244 $as_echo "$ac_res" >&6; }
2245 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2247 } # ac_fn_c_check_func
2248 cat >config.log <<_ACEOF
2249 This file contains any messages produced by compilers while
2250 running configure, to aid debugging if configure makes a mistake.
2252 It was created by $as_me, which was
2253 generated by GNU Autoconf 2.69. Invocation command line was
2255 $ $0 $@
2257 _ACEOF
2258 exec 5>>config.log
2260 cat <<_ASUNAME
2261 ## --------- ##
2262 ## Platform. ##
2263 ## --------- ##
2265 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2266 uname -m = `(uname -m) 2>/dev/null || echo unknown`
2267 uname -r = `(uname -r) 2>/dev/null || echo unknown`
2268 uname -s = `(uname -s) 2>/dev/null || echo unknown`
2269 uname -v = `(uname -v) 2>/dev/null || echo unknown`
2271 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2272 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2274 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2275 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2276 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2277 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2278 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2279 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2280 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2282 _ASUNAME
2284 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2285 for as_dir in $PATH
2287 IFS=$as_save_IFS
2288 test -z "$as_dir" && as_dir=.
2289 $as_echo "PATH: $as_dir"
2290 done
2291 IFS=$as_save_IFS
2293 } >&5
2295 cat >&5 <<_ACEOF
2298 ## ----------- ##
2299 ## Core tests. ##
2300 ## ----------- ##
2302 _ACEOF
2305 # Keep a trace of the command line.
2306 # Strip out --no-create and --no-recursion so they do not pile up.
2307 # Strip out --silent because we don't want to record it for future runs.
2308 # Also quote any args containing shell meta-characters.
2309 # Make two passes to allow for proper duplicate-argument suppression.
2310 ac_configure_args=
2311 ac_configure_args0=
2312 ac_configure_args1=
2313 ac_must_keep_next=false
2314 for ac_pass in 1 2
2316 for ac_arg
2318 case $ac_arg in
2319 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2320 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2321 | -silent | --silent | --silen | --sile | --sil)
2322 continue ;;
2323 *\'*)
2324 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2325 esac
2326 case $ac_pass in
2327 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2329 as_fn_append ac_configure_args1 " '$ac_arg'"
2330 if test $ac_must_keep_next = true; then
2331 ac_must_keep_next=false # Got value, back to normal.
2332 else
2333 case $ac_arg in
2334 *=* | --config-cache | -C | -disable-* | --disable-* \
2335 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2336 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2337 | -with-* | --with-* | -without-* | --without-* | --x)
2338 case "$ac_configure_args0 " in
2339 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2340 esac
2342 -* ) ac_must_keep_next=true ;;
2343 esac
2345 as_fn_append ac_configure_args " '$ac_arg'"
2347 esac
2348 done
2349 done
2350 { ac_configure_args0=; unset ac_configure_args0;}
2351 { ac_configure_args1=; unset ac_configure_args1;}
2353 # When interrupted or exit'd, cleanup temporary files, and complete
2354 # config.log. We remove comments because anyway the quotes in there
2355 # would cause problems or look ugly.
2356 # WARNING: Use '\'' to represent an apostrophe within the trap.
2357 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2358 trap 'exit_status=$?
2359 # Save into config.log some information that might help in debugging.
2361 echo
2363 $as_echo "## ---------------- ##
2364 ## Cache variables. ##
2365 ## ---------------- ##"
2366 echo
2367 # The following way of writing the cache mishandles newlines in values,
2369 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2370 eval ac_val=\$$ac_var
2371 case $ac_val in #(
2372 *${as_nl}*)
2373 case $ac_var in #(
2374 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2375 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2376 esac
2377 case $ac_var in #(
2378 _ | IFS | as_nl) ;; #(
2379 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2380 *) { eval $ac_var=; unset $ac_var;} ;;
2381 esac ;;
2382 esac
2383 done
2384 (set) 2>&1 |
2385 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2386 *${as_nl}ac_space=\ *)
2387 sed -n \
2388 "s/'\''/'\''\\\\'\'''\''/g;
2389 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2390 ;; #(
2392 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2394 esac |
2395 sort
2397 echo
2399 $as_echo "## ----------------- ##
2400 ## Output variables. ##
2401 ## ----------------- ##"
2402 echo
2403 for ac_var in $ac_subst_vars
2405 eval ac_val=\$$ac_var
2406 case $ac_val in
2407 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2408 esac
2409 $as_echo "$ac_var='\''$ac_val'\''"
2410 done | sort
2411 echo
2413 if test -n "$ac_subst_files"; then
2414 $as_echo "## ------------------- ##
2415 ## File substitutions. ##
2416 ## ------------------- ##"
2417 echo
2418 for ac_var in $ac_subst_files
2420 eval ac_val=\$$ac_var
2421 case $ac_val in
2422 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2423 esac
2424 $as_echo "$ac_var='\''$ac_val'\''"
2425 done | sort
2426 echo
2429 if test -s confdefs.h; then
2430 $as_echo "## ----------- ##
2431 ## confdefs.h. ##
2432 ## ----------- ##"
2433 echo
2434 cat confdefs.h
2435 echo
2437 test "$ac_signal" != 0 &&
2438 $as_echo "$as_me: caught signal $ac_signal"
2439 $as_echo "$as_me: exit $exit_status"
2440 } >&5
2441 rm -f core *.core core.conftest.* &&
2442 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2443 exit $exit_status
2445 for ac_signal in 1 2 13 15; do
2446 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2447 done
2448 ac_signal=0
2450 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2451 rm -f -r conftest* confdefs.h
2453 $as_echo "/* confdefs.h */" > confdefs.h
2455 # Predefined preprocessor variables.
2457 cat >>confdefs.h <<_ACEOF
2458 #define PACKAGE_NAME "$PACKAGE_NAME"
2459 _ACEOF
2461 cat >>confdefs.h <<_ACEOF
2462 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2463 _ACEOF
2465 cat >>confdefs.h <<_ACEOF
2466 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2467 _ACEOF
2469 cat >>confdefs.h <<_ACEOF
2470 #define PACKAGE_STRING "$PACKAGE_STRING"
2471 _ACEOF
2473 cat >>confdefs.h <<_ACEOF
2474 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2475 _ACEOF
2477 cat >>confdefs.h <<_ACEOF
2478 #define PACKAGE_URL "$PACKAGE_URL"
2479 _ACEOF
2482 # Let the site file select an alternate cache file if it wants to.
2483 # Prefer an explicitly selected file to automatically selected ones.
2484 ac_site_file1=NONE
2485 ac_site_file2=NONE
2486 if test -n "$CONFIG_SITE"; then
2487 # We do not want a PATH search for config.site.
2488 case $CONFIG_SITE in #((
2489 -*) ac_site_file1=./$CONFIG_SITE;;
2490 */*) ac_site_file1=$CONFIG_SITE;;
2491 *) ac_site_file1=./$CONFIG_SITE;;
2492 esac
2493 elif test "x$prefix" != xNONE; then
2494 ac_site_file1=$prefix/share/config.site
2495 ac_site_file2=$prefix/etc/config.site
2496 else
2497 ac_site_file1=$ac_default_prefix/share/config.site
2498 ac_site_file2=$ac_default_prefix/etc/config.site
2500 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2502 test "x$ac_site_file" = xNONE && continue
2503 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2504 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2505 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2506 sed 's/^/| /' "$ac_site_file" >&5
2507 . "$ac_site_file" \
2508 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2509 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2510 as_fn_error $? "failed to load site script $ac_site_file
2511 See \`config.log' for more details" "$LINENO" 5; }
2513 done
2515 if test -r "$cache_file"; then
2516 # Some versions of bash will fail to source /dev/null (special files
2517 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2518 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2520 $as_echo "$as_me: loading cache $cache_file" >&6;}
2521 case $cache_file in
2522 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2523 *) . "./$cache_file";;
2524 esac
2526 else
2527 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2528 $as_echo "$as_me: creating cache $cache_file" >&6;}
2529 >$cache_file
2532 # Check that the precious variables saved in the cache have kept the same
2533 # value.
2534 ac_cache_corrupted=false
2535 for ac_var in $ac_precious_vars; do
2536 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2537 eval ac_new_set=\$ac_env_${ac_var}_set
2538 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2539 eval ac_new_val=\$ac_env_${ac_var}_value
2540 case $ac_old_set,$ac_new_set in
2541 set,)
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2543 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2544 ac_cache_corrupted=: ;;
2545 ,set)
2546 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2547 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2548 ac_cache_corrupted=: ;;
2549 ,);;
2551 if test "x$ac_old_val" != "x$ac_new_val"; then
2552 # differences in whitespace do not lead to failure.
2553 ac_old_val_w=`echo x $ac_old_val`
2554 ac_new_val_w=`echo x $ac_new_val`
2555 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2556 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2557 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2558 ac_cache_corrupted=:
2559 else
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2561 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2562 eval $ac_var=\$ac_old_val
2564 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2565 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2566 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2567 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2568 fi;;
2569 esac
2570 # Pass precious variables to config.status.
2571 if test "$ac_new_set" = set; then
2572 case $ac_new_val in
2573 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2574 *) ac_arg=$ac_var=$ac_new_val ;;
2575 esac
2576 case " $ac_configure_args " in
2577 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2578 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2579 esac
2581 done
2582 if $ac_cache_corrupted; then
2583 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2584 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2585 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2586 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2587 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2589 ## -------------------- ##
2590 ## Main body of script. ##
2591 ## -------------------- ##
2593 ac_ext=c
2594 ac_cpp='$CPP $CPPFLAGS'
2595 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2596 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2597 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2601 unset ROOT TOOLROOT
2604 # Check whether --with-64bit was given.
2605 if test "${with_64bit+set}" = set; then :
2606 withval=$with_64bit; use_64bit=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-64bit=$withval"
2611 # Check whether --with-optimization was given.
2612 if test "${with_optimization+set}" = set; then :
2613 withval=$with_optimization; use_optimization=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-optimization=$withval"
2614 else
2615 use_optimizaton=yes
2620 # Check whether --with-threads was given.
2621 if test "${with_threads+set}" = set; then :
2622 withval=$with_threads; do_threads=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-threads=$withval"
2623 else
2624 do_threads=check
2629 # Check whether --with-secure-sockets was given.
2630 if test "${with_secure_sockets+set}" = set; then :
2631 withval=$with_secure_sockets; do_secure=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-secure-sockets=$withval"
2632 else
2633 do_secure=check
2638 # Check whether --with-static-probes was given.
2639 if test "${with_static_probes+set}" = set; then :
2640 withval=$with_static_probes; do_probes=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-static-probes=$withval"
2641 else
2642 do_probes=check
2647 # Check whether --with-infiniband was given.
2648 if test "${with_infiniband+set}" = set; then :
2649 withval=$with_infiniband; do_infiniband=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-infiniband=$withval"
2650 else
2651 do_infiniband=check
2656 # Check whether --with-user was given.
2657 if test "${with_user+set}" = set; then :
2658 withval=$with_user; pcp_user=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-user-account=$withval"
2659 else
2660 pcp_user=pcp
2666 # Check whether --with-group was given.
2667 if test "${with_group+set}" = set; then :
2668 withval=$with_group; pcp_group=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-group-account=$withval"
2669 else
2670 pcp_group=pcp
2676 # Check whether --with-discovery was given.
2677 if test "${with_discovery+set}" = set; then :
2678 withval=$with_discovery; do_discovery=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-discovery=$withval"
2679 else
2680 do_discovery=check
2685 # Check whether --with-systemd was given.
2686 if test "${with_systemd+set}" = set; then :
2687 withval=$with_systemd; do_systemd=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-systemd=$withval"
2688 else
2689 do_systemd=check
2694 # Check whether --with-qt was given.
2695 if test "${with_qt+set}" = set; then :
2696 withval=$with_qt; do_qt=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-qt=$withval"
2697 else
2698 do_qt=check
2703 # Check whether --with-python was given.
2704 if test "${with_python+set}" = set; then :
2705 withval=$with_python; do_python=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-python=$withval"
2706 else
2707 do_python=check
2712 # Check whether --with-python3 was given.
2713 if test "${with_python3+set}" = set; then :
2714 withval=$with_python3; do_python3=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-python3=$withval"
2715 else
2716 do_python3=check
2721 # Check whether --with-books was given.
2722 if test "${with_books+set}" = set; then :
2723 withval=$with_books; do_books=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-books=$withval"
2724 else
2725 do_books=no
2730 # Check whether --with-books-brand was given.
2731 if test "${with_books_brand+set}" = set; then :
2732 withval=$with_books_brand; do_books_brand=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-books-brand=$withval"
2733 else
2734 do_books_brand=common
2739 # Check whether --with-papi was given.
2740 if test "${with_papi+set}" = set; then :
2741 withval=$with_papi; do_papi=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-papi=$withval"
2742 else
2743 do_papi=check
2748 # Check whether --with-perfevent was given.
2749 if test "${with_perfevent+set}" = set; then :
2750 withval=$with_perfevent; do_perfevent=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-perfevent=$withval"
2751 else
2752 do_perfevent=check
2757 # Check whether --with-pmdajson was given.
2758 if test "${with_pmdajson+set}" = set; then :
2759 withval=$with_pmdajson; do_pmdajson=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-pmdajson=$withval"
2760 else
2761 do_pmdajson=check
2766 # Check whether --with-manager was given.
2767 if test "${with_manager+set}" = set; then :
2768 withval=$with_manager; do_manager=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-manager=$withval"
2769 else
2770 do_manager=check
2775 # Check whether --with-webapi was given.
2776 if test "${with_webapi+set}" = set; then :
2777 withval=$with_webapi; do_webapi=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-webapi=$withval"
2778 else
2779 do_webapi=check
2784 # Check whether --with-webjs was given.
2785 if test "${with_webjs+set}" = set; then :
2786 withval=$with_webjs; do_webjs=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-webjs=$withval"
2787 else
2788 do_webjs=no
2793 # Check whether --with-vector was given.
2794 if test "${with_vector+set}" = set; then :
2795 withval=$with_vector; do_vector=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-vector=$withval"
2796 else
2797 do_vector=no
2803 # Check whether --with-make was given.
2804 if test "${with_make+set}" = set; then :
2805 withval=$with_make; MAKE=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-make=$withval"
2806 else
2807 MAKE=''
2812 # Check whether --with-tar was given.
2813 if test "${with_tar+set}" = set; then :
2814 withval=$with_tar; TAR=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-tar=$withval"
2815 else
2816 TAR=''
2821 # Check whether --with-zip was given.
2822 if test "${with_zip+set}" = set; then :
2823 withval=$with_zip; ZIP=$withval; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --with-zip=$withval"
2824 else
2825 ZIP=''
2830 # Note: the following environment variables may be
2831 # set to override the defaults.
2833 # MAKE CC CPP LD LEX YACC INSTALL AWK SED ECHO
2836 ac_aux_dir=
2837 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2838 if test -f "$ac_dir/install-sh"; then
2839 ac_aux_dir=$ac_dir
2840 ac_install_sh="$ac_aux_dir/install-sh -c"
2841 break
2842 elif test -f "$ac_dir/install.sh"; then
2843 ac_aux_dir=$ac_dir
2844 ac_install_sh="$ac_aux_dir/install.sh -c"
2845 break
2846 elif test -f "$ac_dir/shtool"; then
2847 ac_aux_dir=$ac_dir
2848 ac_install_sh="$ac_aux_dir/shtool install -c"
2849 break
2851 done
2852 if test -z "$ac_aux_dir"; then
2853 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2856 # These three variables are undocumented and unsupported,
2857 # and are intended to be withdrawn in a future Autoconf release.
2858 # They can cause serious problems if a builder's source tree is in a directory
2859 # whose full name contains unusual characters.
2860 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2861 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2862 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2865 # Make sure we can run config.sub.
2866 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
2867 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
2869 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
2870 $as_echo_n "checking build system type... " >&6; }
2871 if ${ac_cv_build+:} false; then :
2872 $as_echo_n "(cached) " >&6
2873 else
2874 ac_build_alias=$build_alias
2875 test "x$ac_build_alias" = x &&
2876 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
2877 test "x$ac_build_alias" = x &&
2878 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
2879 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
2880 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
2883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
2884 $as_echo "$ac_cv_build" >&6; }
2885 case $ac_cv_build in
2886 *-*-*) ;;
2887 *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
2888 esac
2889 build=$ac_cv_build
2890 ac_save_IFS=$IFS; IFS='-'
2891 set x $ac_cv_build
2892 shift
2893 build_cpu=$1
2894 build_vendor=$2
2895 shift; shift
2896 # Remember, the first character of IFS is used to create $*,
2897 # except with old shells:
2898 build_os=$*
2899 IFS=$ac_save_IFS
2900 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
2903 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
2904 $as_echo_n "checking host system type... " >&6; }
2905 if ${ac_cv_host+:} false; then :
2906 $as_echo_n "(cached) " >&6
2907 else
2908 if test "x$host_alias" = x; then
2909 ac_cv_host=$ac_cv_build
2910 else
2911 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
2912 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
2916 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
2917 $as_echo "$ac_cv_host" >&6; }
2918 case $ac_cv_host in
2919 *-*-*) ;;
2920 *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
2921 esac
2922 host=$ac_cv_host
2923 ac_save_IFS=$IFS; IFS='-'
2924 set x $ac_cv_host
2925 shift
2926 host_cpu=$1
2927 host_vendor=$2
2928 shift; shift
2929 # Remember, the first character of IFS is used to create $*,
2930 # except with old shells:
2931 host_os=$*
2932 IFS=$ac_save_IFS
2933 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
2936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking target system type" >&5
2937 $as_echo_n "checking target system type... " >&6; }
2938 if ${ac_cv_target+:} false; then :
2939 $as_echo_n "(cached) " >&6
2940 else
2941 if test "x$target_alias" = x; then
2942 ac_cv_target=$ac_cv_host
2943 else
2944 ac_cv_target=`$SHELL "$ac_aux_dir/config.sub" $target_alias` ||
2945 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $target_alias failed" "$LINENO" 5
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_target" >&5
2950 $as_echo "$ac_cv_target" >&6; }
2951 case $ac_cv_target in
2952 *-*-*) ;;
2953 *) as_fn_error $? "invalid value of canonical target" "$LINENO" 5;;
2954 esac
2955 target=$ac_cv_target
2956 ac_save_IFS=$IFS; IFS='-'
2957 set x $ac_cv_target
2958 shift
2959 target_cpu=$1
2960 target_vendor=$2
2961 shift; shift
2962 # Remember, the first character of IFS is used to create $*,
2963 # except with old shells:
2964 target_os=$*
2965 IFS=$ac_save_IFS
2966 case $target_os in *\ *) target_os=`echo "$target_os" | sed 's/ /-/g'`;; esac
2969 # The aliases save the names the user supplied, while $host etc.
2970 # will get canonicalized.
2971 test -n "$target_alias" &&
2972 test "$program_prefix$program_suffix$program_transform_name" = \
2973 NONENONEs,x,x, &&
2974 program_prefix=${target_alias}-
2976 if test -z "$target"
2977 then
2978 echo '
2979 FATAL ERROR: Cannot guess your target, try explicit specification
2980 using --target or mailto: pcp@oss.sgi.com to ask.'
2981 rm -rf conftest conftest.*
2982 exit 1
2983 else
2984 target=`echo $target | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
2985 target_os=`echo $target_os | sed 's/solaris2\..*/solaris/'`
2986 target_os=`echo $target_os | sed 's/^\([^-][^-]*\)-.*$/\1/' | sed 's/[\.0-9]*//g'`
2988 build=`echo $build | sed 's/^\([^-][^-]*-[^-][^-]*-[^-][^-]*\)-.*$/\1/'`
2989 build_os=`echo $build_os | sed 's/solaris2\..*/solaris/'`
2990 build_os=`echo $build_os | sed 's/^\([^-][^-]*\)-.*$/\1/'`
2993 echo Building on $build for $target
2994 echo "Build: os=$build_os cpu=$build_cpu"
2995 echo "Target: os=$target_os cpu=$target_cpu"
2997 if test "$cross_compiling" = "yes"; then
2998 if test -f ./config.$target_os; then
2999 . ./config.$target_os
3000 else
3001 echo
3002 echo "
3003 FATAL ERROR: Cannot perform cross-compilation without a file to source
3004 configuration information from (config.$target_os is missing)"
3005 rm -rf conftest conftest.*
3006 exit 1
3012 target_distro=$target_os
3013 if test $target_os = linux
3014 then
3016 $as_echo "#define IS_LINUX 1" >>confdefs.h
3018 test -f /etc/SuSE-release && target_distro=suse
3019 test -f /etc/fedora-release && target_distro=fedora
3020 test -f /etc/redhat-release && target_distro=redhat
3021 test -f /etc/debian_version && target_distro=debian
3022 test -f /etc/slackware-version && target_distro=slackware
3023 test -f /etc/gentoo-release && target_distro=gentoo
3024 test -f /etc/mandriva-release && target_distro=mandriva
3025 export CFLAGS="-fPIC -fno-strict-aliasing -D_GNU_SOURCE"
3026 pcp_platform_paths='/usr/bin/X11:/usr/local/bin'
3027 pcp_ps_all_flags=-efw
3028 elif test $target_os = darwin
3029 then
3031 $as_echo "#define IS_DARWIN 1" >>confdefs.h
3033 target_distro=macosx
3034 version=`sw_vers -productVersion | sed -e 's/\.//' -e 's/\..*//g'`
3035 CFLAGS="-fPIC -no-cpp-precomp -fno-strict-aliasing -arch i386"
3036 if test $version -ge 106
3037 then
3038 target_distro=cocoa
3039 CFLAGS="$CFLAGS -arch x86_64"
3041 export CFLAGS
3042 pcp_platform_paths='/usr/local/bin'
3043 pcp_ps_all_flags=auxww
3044 elif test $target_os = mingw
3045 then
3047 $as_echo "#define IS_MINGW 1" >>confdefs.h
3049 CFLAGS="-fno-strict-aliasing"
3050 pcp_platform_paths=''
3051 pcp_ps_all_flags=-efW
3052 elif test $target_os = solaris
3053 then
3055 $as_echo "#define IS_SOLARIS 1" >>confdefs.h
3057 export CFLAGS_IF_GCC="-fPIC -fno-strict-aliasing"
3058 export CFLAGS_IF_SUNCC="-fPIC -xalias_level=any -D_XPG4_2 -D__EXTENSIONS__"
3059 pcp_platform_paths='/usr/bin/X11:/usr/local/bin:/opt/sfw/bin:/opt/csw/bin'
3060 pcp_ps_all_flags=-ef
3061 elif test $target_os = aix
3062 then
3064 $as_echo "#define IS_AIX 1" >>confdefs.h
3066 export CFLAGS="-qcpluscmt"
3067 pcp_platform_paths='/usr/bin/X11:/usr/local/bin'
3068 pcp_ps_all_flags=-ef
3069 elif test $target_os = freebsd || test $target_os = kfreebsd
3070 then
3072 $as_echo "#define IS_FREEBSD 1" >>confdefs.h
3074 test -f /etc/debian_version && target_distro=debian
3075 export CFLAGS="-fPIC -fno-strict-aliasing -D_GNU_SOURCE"
3076 if test $target_os = kfreebsd
3077 then
3078 pcp_ps_all_flags=-efw
3079 else
3080 pcp_ps_all_flags=auxww
3082 pcp_platform_paths='/usr/bin/X11'
3083 test -d /usr/local/bin && pcp_platform_paths="$pcp_platform_paths:/usr/local/bin"
3084 test -d /usr/bsd && pcp_platform_paths="$pcp_platform_paths:/usr/bsd"
3085 elif test $target_os = gnu
3086 then
3088 $as_echo "#define IS_GNU 1" >>confdefs.h
3090 test -f /etc/debian_version && target_distro=debian
3091 export CFLAGS="-fPIC -fno-strict-aliasing -D_GNU_SOURCE"
3092 pcp_platform_paths='/usr/bin/X11:/usr/local/bin'
3093 pcp_ps_all_flags=-efw
3094 elif test $target_os = netbsdelf
3095 then
3096 target_os=netbsd
3098 $as_echo "#define IS_NETBSD 1" >>confdefs.h
3100 export CFLAGS="-fPIC -fno-strict-aliasing -D_GNU_SOURCE -D_NETBSD_SOURCE"
3101 pcp_platform_paths='/usr/pkg/bin'
3102 pcp_ps_all_flags=auxww
3103 elif test $target_os = openbsd
3104 then
3105 target_os=openbsd
3107 $as_echo "#define IS_OPENBSD 1" >>confdefs.h
3109 export CFLAGS="-fPIC -fno-strict-aliasing -D_GNU_SOURCE"
3110 pcp_platform_paths='/usr/local/bin'
3111 pcp_ps_all_flags=auxww
3112 else
3113 echo
3114 echo "FATAL ERROR: need platform-specific customization for \"$target_os\""
3115 rm -rf conftest conftest.*
3116 exit 1
3121 if test "$use_optimization" = no
3122 then
3123 optimization="-O0 -g"
3124 else
3125 optimization="-O2 -g"
3136 if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
3137 if test -n "$ac_tool_prefix"; then
3138 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
3139 set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
3140 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3141 $as_echo_n "checking for $ac_word... " >&6; }
3142 if ${ac_cv_path_PKG_CONFIG+:} false; then :
3143 $as_echo_n "(cached) " >&6
3144 else
3145 case $PKG_CONFIG in
3146 [\\/]* | ?:[\\/]*)
3147 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
3150 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3151 for as_dir in $PATH
3153 IFS=$as_save_IFS
3154 test -z "$as_dir" && as_dir=.
3155 for ac_exec_ext in '' $ac_executable_extensions; do
3156 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3157 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3158 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3159 break 2
3161 done
3162 done
3163 IFS=$as_save_IFS
3166 esac
3168 PKG_CONFIG=$ac_cv_path_PKG_CONFIG
3169 if test -n "$PKG_CONFIG"; then
3170 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
3171 $as_echo "$PKG_CONFIG" >&6; }
3172 else
3173 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3174 $as_echo "no" >&6; }
3179 if test -z "$ac_cv_path_PKG_CONFIG"; then
3180 ac_pt_PKG_CONFIG=$PKG_CONFIG
3181 # Extract the first word of "pkg-config", so it can be a program name with args.
3182 set dummy pkg-config; ac_word=$2
3183 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3184 $as_echo_n "checking for $ac_word... " >&6; }
3185 if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
3186 $as_echo_n "(cached) " >&6
3187 else
3188 case $ac_pt_PKG_CONFIG in
3189 [\\/]* | ?:[\\/]*)
3190 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
3193 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3194 for as_dir in $PATH
3196 IFS=$as_save_IFS
3197 test -z "$as_dir" && as_dir=.
3198 for ac_exec_ext in '' $ac_executable_extensions; do
3199 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3200 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
3201 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3202 break 2
3204 done
3205 done
3206 IFS=$as_save_IFS
3209 esac
3211 ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
3212 if test -n "$ac_pt_PKG_CONFIG"; then
3213 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
3214 $as_echo "$ac_pt_PKG_CONFIG" >&6; }
3215 else
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3217 $as_echo "no" >&6; }
3220 if test "x$ac_pt_PKG_CONFIG" = x; then
3221 PKG_CONFIG=""
3222 else
3223 case $cross_compiling:$ac_tool_warned in
3224 yes:)
3225 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3226 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3227 ac_tool_warned=yes ;;
3228 esac
3229 PKG_CONFIG=$ac_pt_PKG_CONFIG
3231 else
3232 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
3236 if test -n "$PKG_CONFIG"; then
3237 _pkg_min_version=0.9.0
3238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
3239 $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
3240 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
3241 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3242 $as_echo "yes" >&6; }
3243 else
3244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3245 $as_echo "no" >&6; }
3246 PKG_CONFIG=""
3249 if test -z "$PKG_CONFIG"
3250 then
3251 echo
3252 echo "FATAL ERROR: did not find a pkg-config executable."
3253 echo "You can either set \$PKG_CONFIG as the full path to pkg-config"
3254 echo "in the environment, or install the pkgconfig package."
3255 rm -rf conftest conftest.*
3256 exit 1
3259 cflags_abi=
3260 ac_ext=c
3261 ac_cpp='$CPP $CPPFLAGS'
3262 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3263 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3264 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3265 if test -n "$ac_tool_prefix"; then
3266 for ac_prog in suncc egcc gcc cc
3268 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3269 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3270 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3271 $as_echo_n "checking for $ac_word... " >&6; }
3272 if ${ac_cv_prog_CC+:} false; then :
3273 $as_echo_n "(cached) " >&6
3274 else
3275 if test -n "$CC"; then
3276 ac_cv_prog_CC="$CC" # Let the user override the test.
3277 else
3278 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3279 for as_dir in $PATH
3281 IFS=$as_save_IFS
3282 test -z "$as_dir" && as_dir=.
3283 for ac_exec_ext in '' $ac_executable_extensions; do
3284 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3285 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3286 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3287 break 2
3289 done
3290 done
3291 IFS=$as_save_IFS
3295 CC=$ac_cv_prog_CC
3296 if test -n "$CC"; then
3297 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3298 $as_echo "$CC" >&6; }
3299 else
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3301 $as_echo "no" >&6; }
3305 test -n "$CC" && break
3306 done
3308 if test -z "$CC"; then
3309 ac_ct_CC=$CC
3310 for ac_prog in suncc egcc gcc cc
3312 # Extract the first word of "$ac_prog", so it can be a program name with args.
3313 set dummy $ac_prog; ac_word=$2
3314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3315 $as_echo_n "checking for $ac_word... " >&6; }
3316 if ${ac_cv_prog_ac_ct_CC+:} false; then :
3317 $as_echo_n "(cached) " >&6
3318 else
3319 if test -n "$ac_ct_CC"; then
3320 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3321 else
3322 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3323 for as_dir in $PATH
3325 IFS=$as_save_IFS
3326 test -z "$as_dir" && as_dir=.
3327 for ac_exec_ext in '' $ac_executable_extensions; do
3328 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3329 ac_cv_prog_ac_ct_CC="$ac_prog"
3330 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3331 break 2
3333 done
3334 done
3335 IFS=$as_save_IFS
3339 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3340 if test -n "$ac_ct_CC"; then
3341 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3342 $as_echo "$ac_ct_CC" >&6; }
3343 else
3344 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3345 $as_echo "no" >&6; }
3349 test -n "$ac_ct_CC" && break
3350 done
3352 if test "x$ac_ct_CC" = x; then
3353 CC=""
3354 else
3355 case $cross_compiling:$ac_tool_warned in
3356 yes:)
3357 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3358 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3359 ac_tool_warned=yes ;;
3360 esac
3361 CC=$ac_ct_CC
3366 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3367 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3368 as_fn_error $? "no acceptable C compiler found in \$PATH
3369 See \`config.log' for more details" "$LINENO" 5; }
3371 # Provide some information about the compiler.
3372 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3373 set X $ac_compile
3374 ac_compiler=$2
3375 for ac_option in --version -v -V -qversion; do
3376 { { ac_try="$ac_compiler $ac_option >&5"
3377 case "(($ac_try" in
3378 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3379 *) ac_try_echo=$ac_try;;
3380 esac
3381 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3382 $as_echo "$ac_try_echo"; } >&5
3383 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3384 ac_status=$?
3385 if test -s conftest.err; then
3386 sed '10a\
3387 ... rest of stderr output deleted ...
3388 10q' conftest.err >conftest.er1
3389 cat conftest.er1 >&5
3391 rm -f conftest.er1 conftest.err
3392 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3393 test $ac_status = 0; }
3394 done
3396 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3397 /* end confdefs.h. */
3400 main ()
3404 return 0;
3406 _ACEOF
3407 ac_clean_files_save=$ac_clean_files
3408 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3409 # Try to create an executable without -o first, disregard a.out.
3410 # It will help us diagnose broken compilers, and finding out an intuition
3411 # of exeext.
3412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
3413 $as_echo_n "checking whether the C compiler works... " >&6; }
3414 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3416 # The possible output files:
3417 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3419 ac_rmfiles=
3420 for ac_file in $ac_files
3422 case $ac_file in
3423 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3424 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3425 esac
3426 done
3427 rm -f $ac_rmfiles
3429 if { { ac_try="$ac_link_default"
3430 case "(($ac_try" in
3431 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3432 *) ac_try_echo=$ac_try;;
3433 esac
3434 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3435 $as_echo "$ac_try_echo"; } >&5
3436 (eval "$ac_link_default") 2>&5
3437 ac_status=$?
3438 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3439 test $ac_status = 0; }; then :
3440 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3441 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3442 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3443 # so that the user can short-circuit this test for compilers unknown to
3444 # Autoconf.
3445 for ac_file in $ac_files ''
3447 test -f "$ac_file" || continue
3448 case $ac_file in
3449 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3451 [ab].out )
3452 # We found the default executable, but exeext='' is most
3453 # certainly right.
3454 break;;
3455 *.* )
3456 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3457 then :; else
3458 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3460 # We set ac_cv_exeext here because the later test for it is not
3461 # safe: cross compilers may not add the suffix if given an `-o'
3462 # argument, so we may need to know it at that point already.
3463 # Even if this section looks crufty: it has the advantage of
3464 # actually working.
3465 break;;
3467 break;;
3468 esac
3469 done
3470 test "$ac_cv_exeext" = no && ac_cv_exeext=
3472 else
3473 ac_file=''
3475 if test -z "$ac_file"; then :
3476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3477 $as_echo "no" >&6; }
3478 $as_echo "$as_me: failed program was:" >&5
3479 sed 's/^/| /' conftest.$ac_ext >&5
3481 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3482 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3483 as_fn_error 77 "C compiler cannot create executables
3484 See \`config.log' for more details" "$LINENO" 5; }
3485 else
3486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3487 $as_echo "yes" >&6; }
3489 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3490 $as_echo_n "checking for C compiler default output file name... " >&6; }
3491 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3492 $as_echo "$ac_file" >&6; }
3493 ac_exeext=$ac_cv_exeext
3495 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3496 ac_clean_files=$ac_clean_files_save
3497 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3498 $as_echo_n "checking for suffix of executables... " >&6; }
3499 if { { ac_try="$ac_link"
3500 case "(($ac_try" in
3501 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3502 *) ac_try_echo=$ac_try;;
3503 esac
3504 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3505 $as_echo "$ac_try_echo"; } >&5
3506 (eval "$ac_link") 2>&5
3507 ac_status=$?
3508 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3509 test $ac_status = 0; }; then :
3510 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3511 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3512 # work properly (i.e., refer to `conftest.exe'), while it won't with
3513 # `rm'.
3514 for ac_file in conftest.exe conftest conftest.*; do
3515 test -f "$ac_file" || continue
3516 case $ac_file in
3517 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3518 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3519 break;;
3520 * ) break;;
3521 esac
3522 done
3523 else
3524 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3525 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3526 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3527 See \`config.log' for more details" "$LINENO" 5; }
3529 rm -f conftest conftest$ac_cv_exeext
3530 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3531 $as_echo "$ac_cv_exeext" >&6; }
3533 rm -f conftest.$ac_ext
3534 EXEEXT=$ac_cv_exeext
3535 ac_exeext=$EXEEXT
3536 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3537 /* end confdefs.h. */
3538 #include <stdio.h>
3540 main ()
3542 FILE *f = fopen ("conftest.out", "w");
3543 return ferror (f) || fclose (f) != 0;
3546 return 0;
3548 _ACEOF
3549 ac_clean_files="$ac_clean_files conftest.out"
3550 # Check that the compiler produces executables we can run. If not, either
3551 # the compiler is broken, or we cross compile.
3552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3553 $as_echo_n "checking whether we are cross compiling... " >&6; }
3554 if test "$cross_compiling" != yes; then
3555 { { ac_try="$ac_link"
3556 case "(($ac_try" in
3557 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3558 *) ac_try_echo=$ac_try;;
3559 esac
3560 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3561 $as_echo "$ac_try_echo"; } >&5
3562 (eval "$ac_link") 2>&5
3563 ac_status=$?
3564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3565 test $ac_status = 0; }
3566 if { ac_try='./conftest$ac_cv_exeext'
3567 { { case "(($ac_try" in
3568 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3569 *) ac_try_echo=$ac_try;;
3570 esac
3571 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3572 $as_echo "$ac_try_echo"; } >&5
3573 (eval "$ac_try") 2>&5
3574 ac_status=$?
3575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3576 test $ac_status = 0; }; }; then
3577 cross_compiling=no
3578 else
3579 if test "$cross_compiling" = maybe; then
3580 cross_compiling=yes
3581 else
3582 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3583 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3584 as_fn_error $? "cannot run C compiled programs.
3585 If you meant to cross compile, use \`--host'.
3586 See \`config.log' for more details" "$LINENO" 5; }
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3591 $as_echo "$cross_compiling" >&6; }
3593 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3594 ac_clean_files=$ac_clean_files_save
3595 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3596 $as_echo_n "checking for suffix of object files... " >&6; }
3597 if ${ac_cv_objext+:} false; then :
3598 $as_echo_n "(cached) " >&6
3599 else
3600 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3601 /* end confdefs.h. */
3604 main ()
3608 return 0;
3610 _ACEOF
3611 rm -f conftest.o conftest.obj
3612 if { { ac_try="$ac_compile"
3613 case "(($ac_try" in
3614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3615 *) ac_try_echo=$ac_try;;
3616 esac
3617 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3618 $as_echo "$ac_try_echo"; } >&5
3619 (eval "$ac_compile") 2>&5
3620 ac_status=$?
3621 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3622 test $ac_status = 0; }; then :
3623 for ac_file in conftest.o conftest.obj conftest.*; do
3624 test -f "$ac_file" || continue;
3625 case $ac_file in
3626 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3627 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3628 break;;
3629 esac
3630 done
3631 else
3632 $as_echo "$as_me: failed program was:" >&5
3633 sed 's/^/| /' conftest.$ac_ext >&5
3635 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3636 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3637 as_fn_error $? "cannot compute suffix of object files: cannot compile
3638 See \`config.log' for more details" "$LINENO" 5; }
3640 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3643 $as_echo "$ac_cv_objext" >&6; }
3644 OBJEXT=$ac_cv_objext
3645 ac_objext=$OBJEXT
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3647 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3648 if ${ac_cv_c_compiler_gnu+:} false; then :
3649 $as_echo_n "(cached) " >&6
3650 else
3651 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3652 /* end confdefs.h. */
3655 main ()
3657 #ifndef __GNUC__
3658 choke me
3659 #endif
3662 return 0;
3664 _ACEOF
3665 if ac_fn_c_try_compile "$LINENO"; then :
3666 ac_compiler_gnu=yes
3667 else
3668 ac_compiler_gnu=no
3670 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3671 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3675 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3676 if test $ac_compiler_gnu = yes; then
3677 GCC=yes
3678 else
3679 GCC=
3681 ac_test_CFLAGS=${CFLAGS+set}
3682 ac_save_CFLAGS=$CFLAGS
3683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3684 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3685 if ${ac_cv_prog_cc_g+:} false; then :
3686 $as_echo_n "(cached) " >&6
3687 else
3688 ac_save_c_werror_flag=$ac_c_werror_flag
3689 ac_c_werror_flag=yes
3690 ac_cv_prog_cc_g=no
3691 CFLAGS="-g"
3692 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3693 /* end confdefs.h. */
3696 main ()
3700 return 0;
3702 _ACEOF
3703 if ac_fn_c_try_compile "$LINENO"; then :
3704 ac_cv_prog_cc_g=yes
3705 else
3706 CFLAGS=""
3707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3708 /* end confdefs.h. */
3711 main ()
3715 return 0;
3717 _ACEOF
3718 if ac_fn_c_try_compile "$LINENO"; then :
3720 else
3721 ac_c_werror_flag=$ac_save_c_werror_flag
3722 CFLAGS="-g"
3723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3724 /* end confdefs.h. */
3727 main ()
3731 return 0;
3733 _ACEOF
3734 if ac_fn_c_try_compile "$LINENO"; then :
3735 ac_cv_prog_cc_g=yes
3737 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3739 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3742 ac_c_werror_flag=$ac_save_c_werror_flag
3744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3745 $as_echo "$ac_cv_prog_cc_g" >&6; }
3746 if test "$ac_test_CFLAGS" = set; then
3747 CFLAGS=$ac_save_CFLAGS
3748 elif test $ac_cv_prog_cc_g = yes; then
3749 if test "$GCC" = yes; then
3750 CFLAGS="-g -O2"
3751 else
3752 CFLAGS="-g"
3754 else
3755 if test "$GCC" = yes; then
3756 CFLAGS="-O2"
3757 else
3758 CFLAGS=
3761 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
3762 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
3763 if ${ac_cv_prog_cc_c89+:} false; then :
3764 $as_echo_n "(cached) " >&6
3765 else
3766 ac_cv_prog_cc_c89=no
3767 ac_save_CC=$CC
3768 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3769 /* end confdefs.h. */
3770 #include <stdarg.h>
3771 #include <stdio.h>
3772 struct stat;
3773 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3774 struct buf { int x; };
3775 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3776 static char *e (p, i)
3777 char **p;
3778 int i;
3780 return p[i];
3782 static char *f (char * (*g) (char **, int), char **p, ...)
3784 char *s;
3785 va_list v;
3786 va_start (v,p);
3787 s = g (p, va_arg (v,int));
3788 va_end (v);
3789 return s;
3792 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3793 function prototypes and stuff, but not '\xHH' hex character constants.
3794 These don't provoke an error unfortunately, instead are silently treated
3795 as 'x'. The following induces an error, until -std is added to get
3796 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3797 array size at least. It's necessary to write '\x00'==0 to get something
3798 that's true only with -std. */
3799 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3801 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3802 inside strings and character constants. */
3803 #define FOO(x) 'x'
3804 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3806 int test (int i, double x);
3807 struct s1 {int (*f) (int a);};
3808 struct s2 {int (*f) (double a);};
3809 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3810 int argc;
3811 char **argv;
3813 main ()
3815 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3817 return 0;
3819 _ACEOF
3820 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3821 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3823 CC="$ac_save_CC $ac_arg"
3824 if ac_fn_c_try_compile "$LINENO"; then :
3825 ac_cv_prog_cc_c89=$ac_arg
3827 rm -f core conftest.err conftest.$ac_objext
3828 test "x$ac_cv_prog_cc_c89" != "xno" && break
3829 done
3830 rm -f conftest.$ac_ext
3831 CC=$ac_save_CC
3834 # AC_CACHE_VAL
3835 case "x$ac_cv_prog_cc_c89" in
3837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3838 $as_echo "none needed" >&6; } ;;
3839 xno)
3840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3841 $as_echo "unsupported" >&6; } ;;
3843 CC="$CC $ac_cv_prog_cc_c89"
3844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3845 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3846 esac
3847 if test "x$ac_cv_prog_cc_c89" != xno; then :
3851 ac_ext=c
3852 ac_cpp='$CPP $CPPFLAGS'
3853 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3854 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3855 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3857 if test $target_os = solaris
3858 then
3859 # Extract the first word of "$CC", so it can be a program name with args.
3860 set dummy $CC; ac_word=$2
3861 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3862 $as_echo_n "checking for $ac_word... " >&6; }
3863 if ${ac_cv_path_CCPATH+:} false; then :
3864 $as_echo_n "(cached) " >&6
3865 else
3866 case $CCPATH in
3867 [\\/]* | ?:[\\/]*)
3868 ac_cv_path_CCPATH="$CCPATH" # Let the user override the test with a path.
3871 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3872 for as_dir in $PATH
3874 IFS=$as_save_IFS
3875 test -z "$as_dir" && as_dir=.
3876 for ac_exec_ext in '' $ac_executable_extensions; do
3877 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3878 ac_cv_path_CCPATH="$as_dir/$ac_word$ac_exec_ext"
3879 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3880 break 2
3882 done
3883 done
3884 IFS=$as_save_IFS
3886 test -z "$ac_cv_path_CCPATH" && ac_cv_path_CCPATH="$CC"
3888 esac
3890 CCPATH=$ac_cv_path_CCPATH
3891 if test -n "$CCPATH"; then
3892 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CCPATH" >&5
3893 $as_echo "$CCPATH" >&6; }
3894 else
3895 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3896 $as_echo "no" >&6; }
3900 cc=$CCPATH
3901 if test "$GCC" = "yes"
3902 then
3903 CFLAGS="$CFLAGS $CFLAGS_IF_GCC"
3904 else
3905 CFLAGS="$CFLAGS $CFLAGS_IF_SUNCC"
3907 if test "$use_64bit" = "no"
3908 then
3910 else
3911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 64 bit Solaris host" >&5
3912 $as_echo_n "checking for 64 bit Solaris host... " >&6; }
3913 case `isainfo -k`
3915 amd64|sparcv9)
3916 cflags_abi=-m64
3917 CFLAGS="$CFLAGS -m64"
3918 LDFLAGS="$LDFLAGS -m64"
3919 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3920 $as_echo "yes" >&6; }
3923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3924 $as_echo "no" >&6; }
3926 esac
3928 else
3929 cc=$CC
3932 cc_is_gcc=$GCC
3935 PCFLAGS="$CFLAGS"
3936 PLDFLAGS=$LDFLAGS
3938 if echo "$CFLAGS" | grep 'D_FORTIFY_SOURCE' >/dev/null
3939 then
3940 CFLAGS="-O $PCFLAGS"
3944 # Add some security-related gcc flags
3945 if echo "$CFLAGS" | grep stack-protector >/dev/null
3946 then
3948 else
3949 # Check whether --enable-ssp was given.
3950 if test "${enable_ssp+set}" = set; then :
3951 enableval=$enable_ssp;
3955 if test "x$cc_is_gcc" = xyes -a "x$enable_ssp" != xno ; then :
3957 save_CFLAGS="$CFLAGS"
3958 CFLAGS="$CFLAGS -O -fstack-protector-all -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2"
3959 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3960 /* end confdefs.h. */
3961 int something ();
3962 _ACEOF
3963 if ac_fn_c_try_compile "$LINENO"; then :
3965 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling with gcc -fstack-protector-all et al." >&5
3966 $as_echo "$as_me: Compiling with gcc -fstack-protector-all et al." >&6;}
3967 PCFLAGS="$PCFLAGS -fstack-protector-all -U_FORTIFY_SOURCE -D_FORTIFY_SOURCE=2"
3968 else
3970 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiler does not support -fstack-protector-all et al." >&5
3971 $as_echo "$as_me: Compiler does not support -fstack-protector-all et al." >&6;}
3972 CFLAGS="$save_CFLAGS"
3975 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3982 # Check for even more security-related gcc/linker flags, useful for daemons
3983 # Check whether --enable-pie was given.
3984 if test "${enable_pie+set}" = set; then :
3985 enableval=$enable_pie;
3988 if test "x$cc_is_gcc" = xyes -a "x$enable_pie" != xno; then :
3990 PIECFLAGS='-fPIE'
3991 PIELDFLAGS='-pie -Wl,-z,relro -Wl,-z,now'
3992 save_CFLAGS="$CFLAGS"
3993 save_LDFLAGS="$LDFLAGS"
3994 CFLAGS="$CFLAGS $PIECFLAGS"
3995 LDFLAGS="$LDFLAGS $PIELDFLAGS"
3996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3997 /* end confdefs.h. */
3998 void main () {}
3999 _ACEOF
4000 if ac_fn_c_try_link "$LINENO"; then :
4002 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling with gcc pie et al." >&5
4003 $as_echo "$as_me: Compiling with gcc pie et al." >&6;}
4005 else
4007 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiler does not support -pie et al." >&5
4008 $as_echo "$as_me: Compiler does not support -pie et al." >&6;}
4009 PIECFLAGS=""
4010 PIELDFLAGS=""
4013 rm -f core conftest.err conftest.$ac_objext \
4014 conftest$ac_exeext conftest.$ac_ext
4015 CFLAGS="$save_CFLAGS"
4016 LDFLAGS="$save_LDFLAGS"
4022 # Check for support for symbol hiding via gcc flags
4023 # Check whether --enable-visibility was given.
4024 if test "${enable_visibility+set}" = set; then :
4025 enableval=$enable_visibility;
4028 if test "x$cc_is_gcc" = xyes -a "$enable_visibility" != no; then :
4030 INVISIBILITY="-fvisibility=hidden"
4031 save_CFLAGS="$CFLAGS"
4032 CFLAGS="$CFLAGS -c $INVISIBILITY"
4033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4034 /* end confdefs.h. */
4035 int visible () { return 0; }
4036 _ACEOF
4037 if ac_fn_c_try_compile "$LINENO"; then :
4039 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiling DSO PMDAs with gcc -fvisibility=hidden" >&5
4040 $as_echo "$as_me: Compiling DSO PMDAs with gcc -fvisibility=hidden" >&6;}
4042 else
4044 { $as_echo "$as_me:${as_lineno-$LINENO}: Compiler does not support -fvisibility." >&5
4045 $as_echo "$as_me: Compiler does not support -fvisibility." >&6;}
4046 INVISIBILITY=""
4049 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4050 CFLAGS="$save_CFLAGS"
4055 ac_ext=cpp
4056 ac_cpp='$CXXCPP $CPPFLAGS'
4057 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4058 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4059 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4060 if test -z "$CXX"; then
4061 if test -n "$CCC"; then
4062 CXX=$CCC
4063 else
4064 if test -n "$ac_tool_prefix"; then
4065 for ac_prog in eg++ g++ c++
4067 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4068 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4069 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4070 $as_echo_n "checking for $ac_word... " >&6; }
4071 if ${ac_cv_prog_CXX+:} false; then :
4072 $as_echo_n "(cached) " >&6
4073 else
4074 if test -n "$CXX"; then
4075 ac_cv_prog_CXX="$CXX" # Let the user override the test.
4076 else
4077 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4078 for as_dir in $PATH
4080 IFS=$as_save_IFS
4081 test -z "$as_dir" && as_dir=.
4082 for ac_exec_ext in '' $ac_executable_extensions; do
4083 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4084 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
4085 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4086 break 2
4088 done
4089 done
4090 IFS=$as_save_IFS
4094 CXX=$ac_cv_prog_CXX
4095 if test -n "$CXX"; then
4096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
4097 $as_echo "$CXX" >&6; }
4098 else
4099 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4100 $as_echo "no" >&6; }
4104 test -n "$CXX" && break
4105 done
4107 if test -z "$CXX"; then
4108 ac_ct_CXX=$CXX
4109 for ac_prog in eg++ g++ c++
4111 # Extract the first word of "$ac_prog", so it can be a program name with args.
4112 set dummy $ac_prog; ac_word=$2
4113 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4114 $as_echo_n "checking for $ac_word... " >&6; }
4115 if ${ac_cv_prog_ac_ct_CXX+:} false; then :
4116 $as_echo_n "(cached) " >&6
4117 else
4118 if test -n "$ac_ct_CXX"; then
4119 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
4120 else
4121 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4122 for as_dir in $PATH
4124 IFS=$as_save_IFS
4125 test -z "$as_dir" && as_dir=.
4126 for ac_exec_ext in '' $ac_executable_extensions; do
4127 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4128 ac_cv_prog_ac_ct_CXX="$ac_prog"
4129 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4130 break 2
4132 done
4133 done
4134 IFS=$as_save_IFS
4138 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
4139 if test -n "$ac_ct_CXX"; then
4140 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
4141 $as_echo "$ac_ct_CXX" >&6; }
4142 else
4143 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4144 $as_echo "no" >&6; }
4148 test -n "$ac_ct_CXX" && break
4149 done
4151 if test "x$ac_ct_CXX" = x; then
4152 CXX="g++"
4153 else
4154 case $cross_compiling:$ac_tool_warned in
4155 yes:)
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4157 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4158 ac_tool_warned=yes ;;
4159 esac
4160 CXX=$ac_ct_CXX
4166 # Provide some information about the compiler.
4167 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
4168 set X $ac_compile
4169 ac_compiler=$2
4170 for ac_option in --version -v -V -qversion; do
4171 { { ac_try="$ac_compiler $ac_option >&5"
4172 case "(($ac_try" in
4173 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4174 *) ac_try_echo=$ac_try;;
4175 esac
4176 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4177 $as_echo "$ac_try_echo"; } >&5
4178 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4179 ac_status=$?
4180 if test -s conftest.err; then
4181 sed '10a\
4182 ... rest of stderr output deleted ...
4183 10q' conftest.err >conftest.er1
4184 cat conftest.er1 >&5
4186 rm -f conftest.er1 conftest.err
4187 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4188 test $ac_status = 0; }
4189 done
4191 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
4192 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
4193 if ${ac_cv_cxx_compiler_gnu+:} false; then :
4194 $as_echo_n "(cached) " >&6
4195 else
4196 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4197 /* end confdefs.h. */
4200 main ()
4202 #ifndef __GNUC__
4203 choke me
4204 #endif
4207 return 0;
4209 _ACEOF
4210 if ac_fn_cxx_try_compile "$LINENO"; then :
4211 ac_compiler_gnu=yes
4212 else
4213 ac_compiler_gnu=no
4215 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4216 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
4219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
4220 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
4221 if test $ac_compiler_gnu = yes; then
4222 GXX=yes
4223 else
4224 GXX=
4226 ac_test_CXXFLAGS=${CXXFLAGS+set}
4227 ac_save_CXXFLAGS=$CXXFLAGS
4228 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
4229 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
4230 if ${ac_cv_prog_cxx_g+:} false; then :
4231 $as_echo_n "(cached) " >&6
4232 else
4233 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
4234 ac_cxx_werror_flag=yes
4235 ac_cv_prog_cxx_g=no
4236 CXXFLAGS="-g"
4237 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4238 /* end confdefs.h. */
4241 main ()
4245 return 0;
4247 _ACEOF
4248 if ac_fn_cxx_try_compile "$LINENO"; then :
4249 ac_cv_prog_cxx_g=yes
4250 else
4251 CXXFLAGS=""
4252 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4253 /* end confdefs.h. */
4256 main ()
4260 return 0;
4262 _ACEOF
4263 if ac_fn_cxx_try_compile "$LINENO"; then :
4265 else
4266 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4267 CXXFLAGS="-g"
4268 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4269 /* end confdefs.h. */
4272 main ()
4276 return 0;
4278 _ACEOF
4279 if ac_fn_cxx_try_compile "$LINENO"; then :
4280 ac_cv_prog_cxx_g=yes
4282 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4284 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4286 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4287 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
4289 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
4290 $as_echo "$ac_cv_prog_cxx_g" >&6; }
4291 if test "$ac_test_CXXFLAGS" = set; then
4292 CXXFLAGS=$ac_save_CXXFLAGS
4293 elif test $ac_cv_prog_cxx_g = yes; then
4294 if test "$GXX" = yes; then
4295 CXXFLAGS="-g -O2"
4296 else
4297 CXXFLAGS="-g"
4299 else
4300 if test "$GXX" = yes; then
4301 CXXFLAGS="-O2"
4302 else
4303 CXXFLAGS=
4306 ac_ext=c
4307 ac_cpp='$CPP $CPPFLAGS'
4308 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4309 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4310 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4312 cxx=$CXX
4314 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working C++ compiler" >&5
4315 $as_echo_n "checking for working C++ compiler... " >&6; }
4316 ac_ext=cpp
4317 ac_cpp='$CXXCPP $CPPFLAGS'
4318 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4319 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4320 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4323 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4324 /* end confdefs.h. */
4325 #include <cstdio>
4327 main ()
4329 const char gday[] = "G'day, world\n";
4331 return 0;
4333 _ACEOF
4334 if ac_fn_cxx_try_compile "$LINENO"; then :
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4336 $as_echo "yes" >&6; }
4337 else
4338 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4339 $as_echo "no" >&6; }
4340 cxx=""
4342 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4343 ac_ext=c
4344 ac_cpp='$CPP $CPPFLAGS'
4345 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4346 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4347 ac_compiler_gnu=$ac_cv_c_compiler_gnu
4350 # Prevent shared libraries from being built for libpcp and other core libraries
4351 # Check whether --enable-shared was given.
4352 if test "${enable_shared+set}" = set; then :
4353 enableval=$enable_shared; PACKAGE_CONFIGURE="$PACKAGE_CONFIGURE --disable-shared=$withval"
4358 for ac_prog in flex lex
4360 # Extract the first word of "$ac_prog", so it can be a program name with args.
4361 set dummy $ac_prog; ac_word=$2
4362 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4363 $as_echo_n "checking for $ac_word... " >&6; }
4364 if ${ac_cv_prog_LEX+:} false; then :
4365 $as_echo_n "(cached) " >&6
4366 else
4367 if test -n "$LEX"; then
4368 ac_cv_prog_LEX="$LEX" # Let the user override the test.
4369 else
4370 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4371 for as_dir in $PATH
4373 IFS=$as_save_IFS
4374 test -z "$as_dir" && as_dir=.
4375 for ac_exec_ext in '' $ac_executable_extensions; do
4376 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4377 ac_cv_prog_LEX="$ac_prog"
4378 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4379 break 2
4381 done
4382 done
4383 IFS=$as_save_IFS
4387 LEX=$ac_cv_prog_LEX
4388 if test -n "$LEX"; then
4389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LEX" >&5
4390 $as_echo "$LEX" >&6; }
4391 else
4392 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4393 $as_echo "no" >&6; }
4397 test -n "$LEX" && break
4398 done
4399 test -n "$LEX" || LEX=":"
4401 if test "x$LEX" != "x:"; then
4402 cat >conftest.l <<_ACEOF
4404 a { ECHO; }
4405 b { REJECT; }
4406 c { yymore (); }
4407 d { yyless (1); }
4408 e { /* IRIX 6.5 flex 2.5.4 underquotes its yyless argument. */
4409 yyless ((input () != 0)); }
4410 f { unput (yytext[0]); }
4411 . { BEGIN INITIAL; }
4413 #ifdef YYTEXT_POINTER
4414 extern char *yytext;
4415 #endif
4417 main (void)
4419 return ! yylex () + ! yywrap ();
4421 _ACEOF
4422 { { ac_try="$LEX conftest.l"
4423 case "(($ac_try" in
4424 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4425 *) ac_try_echo=$ac_try;;
4426 esac
4427 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4428 $as_echo "$ac_try_echo"; } >&5
4429 (eval "$LEX conftest.l") 2>&5
4430 ac_status=$?
4431 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4432 test $ac_status = 0; }
4433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex output file root" >&5
4434 $as_echo_n "checking lex output file root... " >&6; }
4435 if ${ac_cv_prog_lex_root+:} false; then :
4436 $as_echo_n "(cached) " >&6
4437 else
4439 if test -f lex.yy.c; then
4440 ac_cv_prog_lex_root=lex.yy
4441 elif test -f lexyy.c; then
4442 ac_cv_prog_lex_root=lexyy
4443 else
4444 as_fn_error $? "cannot find output from $LEX; giving up" "$LINENO" 5
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_root" >&5
4448 $as_echo "$ac_cv_prog_lex_root" >&6; }
4449 LEX_OUTPUT_ROOT=$ac_cv_prog_lex_root
4451 if test -z "${LEXLIB+set}"; then
4452 { $as_echo "$as_me:${as_lineno-$LINENO}: checking lex library" >&5
4453 $as_echo_n "checking lex library... " >&6; }
4454 if ${ac_cv_lib_lex+:} false; then :
4455 $as_echo_n "(cached) " >&6
4456 else
4458 ac_save_LIBS=$LIBS
4459 ac_cv_lib_lex='none needed'
4460 for ac_lib in '' -lfl -ll; do
4461 LIBS="$ac_lib $ac_save_LIBS"
4462 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4463 /* end confdefs.h. */
4464 `cat $LEX_OUTPUT_ROOT.c`
4465 _ACEOF
4466 if ac_fn_c_try_link "$LINENO"; then :
4467 ac_cv_lib_lex=$ac_lib
4469 rm -f core conftest.err conftest.$ac_objext \
4470 conftest$ac_exeext conftest.$ac_ext
4471 test "$ac_cv_lib_lex" != 'none needed' && break
4472 done
4473 LIBS=$ac_save_LIBS
4476 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_lex" >&5
4477 $as_echo "$ac_cv_lib_lex" >&6; }
4478 test "$ac_cv_lib_lex" != 'none needed' && LEXLIB=$ac_cv_lib_lex
4482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether yytext is a pointer" >&5
4483 $as_echo_n "checking whether yytext is a pointer... " >&6; }
4484 if ${ac_cv_prog_lex_yytext_pointer+:} false; then :
4485 $as_echo_n "(cached) " >&6
4486 else
4487 # POSIX says lex can declare yytext either as a pointer or an array; the
4488 # default is implementation-dependent. Figure out which it is, since
4489 # not all implementations provide the %pointer and %array declarations.
4490 ac_cv_prog_lex_yytext_pointer=no
4491 ac_save_LIBS=$LIBS
4492 LIBS="$LEXLIB $ac_save_LIBS"
4493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4494 /* end confdefs.h. */
4496 #define YYTEXT_POINTER 1
4497 `cat $LEX_OUTPUT_ROOT.c`
4498 _ACEOF
4499 if ac_fn_c_try_link "$LINENO"; then :
4500 ac_cv_prog_lex_yytext_pointer=yes
4502 rm -f core conftest.err conftest.$ac_objext \
4503 conftest$ac_exeext conftest.$ac_ext
4504 LIBS=$ac_save_LIBS
4507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_lex_yytext_pointer" >&5
4508 $as_echo "$ac_cv_prog_lex_yytext_pointer" >&6; }
4509 if test $ac_cv_prog_lex_yytext_pointer = yes; then
4511 $as_echo "#define YYTEXT_POINTER 1" >>confdefs.h
4514 rm -f conftest.l $LEX_OUTPUT_ROOT.c
4517 lex=$LEX
4519 for ac_prog in 'bison -y' byacc
4521 # Extract the first word of "$ac_prog", so it can be a program name with args.
4522 set dummy $ac_prog; ac_word=$2
4523 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4524 $as_echo_n "checking for $ac_word... " >&6; }
4525 if ${ac_cv_prog_YACC+:} false; then :
4526 $as_echo_n "(cached) " >&6
4527 else
4528 if test -n "$YACC"; then
4529 ac_cv_prog_YACC="$YACC" # Let the user override the test.
4530 else
4531 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4532 for as_dir in $PATH
4534 IFS=$as_save_IFS
4535 test -z "$as_dir" && as_dir=.
4536 for ac_exec_ext in '' $ac_executable_extensions; do
4537 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4538 ac_cv_prog_YACC="$ac_prog"
4539 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4540 break 2
4542 done
4543 done
4544 IFS=$as_save_IFS
4548 YACC=$ac_cv_prog_YACC
4549 if test -n "$YACC"; then
4550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $YACC" >&5
4551 $as_echo "$YACC" >&6; }
4552 else
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4554 $as_echo "no" >&6; }
4558 test -n "$YACC" && break
4559 done
4560 test -n "$YACC" || YACC="yacc"
4562 yacc=$YACC
4565 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if yacc is executable" >&5
4566 $as_echo_n "checking if yacc is executable... " >&6; }
4567 binary=`echo $yacc | awk '{print $1}'`
4568 binary=`which "$binary"`
4569 if test -x "$binary"
4570 then
4571 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4572 $as_echo " yes" >&6; }
4573 else
4574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4575 $as_echo " no" >&6; }
4576 echo
4577 echo "FATAL ERROR: did not find a valid yacc executable."
4578 echo "You can either set \$YACC as the full path to yacc"
4579 echo "in the environment, or install a yacc/bison package."
4580 rm -rf conftest conftest.*
4581 exit 1
4583 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if lex is executable" >&5
4584 $as_echo_n "checking if lex is executable... " >&6; }
4585 binary=`echo $lex | awk '{print $1}'`
4586 binary=`which "$binary"`
4587 if test -x "$binary"
4588 then
4589 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4590 $as_echo " yes" >&6; }
4591 else
4592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4593 $as_echo " no" >&6; }
4594 echo
4595 echo "FATAL ERROR: did not find a valid lex executable."
4596 echo "You can either set \$LEX as the full path to lex"
4597 echo "in the environment, or install a lex/flex package."
4598 rm -rf conftest conftest.*
4599 exit 1
4602 if test -z "$AWK"; then
4603 for ac_prog in gawk awk
4605 # Extract the first word of "$ac_prog", so it can be a program name with args.
4606 set dummy $ac_prog; ac_word=$2
4607 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4608 $as_echo_n "checking for $ac_word... " >&6; }
4609 if ${ac_cv_path_AWK+:} false; then :
4610 $as_echo_n "(cached) " >&6
4611 else
4612 case $AWK in
4613 [\\/]* | ?:[\\/]*)
4614 ac_cv_path_AWK="$AWK" # Let the user override the test with a path.
4617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4618 for as_dir in $PATH
4620 IFS=$as_save_IFS
4621 test -z "$as_dir" && as_dir=.
4622 for ac_exec_ext in '' $ac_executable_extensions; do
4623 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4624 ac_cv_path_AWK="$as_dir/$ac_word$ac_exec_ext"
4625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4626 break 2
4628 done
4629 done
4630 IFS=$as_save_IFS
4633 esac
4635 AWK=$ac_cv_path_AWK
4636 if test -n "$AWK"; then
4637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
4638 $as_echo "$AWK" >&6; }
4639 else
4640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4641 $as_echo "no" >&6; }
4645 test -n "$AWK" && break
4646 done
4647 test -n "$AWK" || AWK="/usr/bin/awk"
4650 case "$AWK"
4652 gawk|*/gawk)
4653 awk="$AWK --posix"
4656 awk=$AWK
4658 esac
4660 if test -z "$SED"; then
4661 # Extract the first word of "sed", so it can be a program name with args.
4662 set dummy sed; ac_word=$2
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4664 $as_echo_n "checking for $ac_word... " >&6; }
4665 if ${ac_cv_path_SED+:} false; then :
4666 $as_echo_n "(cached) " >&6
4667 else
4668 case $SED in
4669 [\\/]* | ?:[\\/]*)
4670 ac_cv_path_SED="$SED" # Let the user override the test with a path.
4673 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4674 for as_dir in $PATH
4676 IFS=$as_save_IFS
4677 test -z "$as_dir" && as_dir=.
4678 for ac_exec_ext in '' $ac_executable_extensions; do
4679 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4680 ac_cv_path_SED="$as_dir/$ac_word$ac_exec_ext"
4681 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4682 break 2
4684 done
4685 done
4686 IFS=$as_save_IFS
4688 test -z "$ac_cv_path_SED" && ac_cv_path_SED="/bin/sed"
4690 esac
4692 SED=$ac_cv_path_SED
4693 if test -n "$SED"; then
4694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SED" >&5
4695 $as_echo "$SED" >&6; }
4696 else
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4698 $as_echo "no" >&6; }
4703 sed=$SED
4705 if test -z "$ECHO"; then
4706 # Extract the first word of "echo", so it can be a program name with args.
4707 set dummy echo; ac_word=$2
4708 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4709 $as_echo_n "checking for $ac_word... " >&6; }
4710 if ${ac_cv_path_ECHO+:} false; then :
4711 $as_echo_n "(cached) " >&6
4712 else
4713 case $ECHO in
4714 [\\/]* | ?:[\\/]*)
4715 ac_cv_path_ECHO="$ECHO" # Let the user override the test with a path.
4718 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4719 for as_dir in $PATH
4721 IFS=$as_save_IFS
4722 test -z "$as_dir" && as_dir=.
4723 for ac_exec_ext in '' $ac_executable_extensions; do
4724 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4725 ac_cv_path_ECHO="$as_dir/$ac_word$ac_exec_ext"
4726 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4727 break 2
4729 done
4730 done
4731 IFS=$as_save_IFS
4733 test -z "$ac_cv_path_ECHO" && ac_cv_path_ECHO="/bin/echo"
4735 esac
4737 ECHO=$ac_cv_path_ECHO
4738 if test -n "$ECHO"; then
4739 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ECHO" >&5
4740 $as_echo "$ECHO" >&6; }
4741 else
4742 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4743 $as_echo "no" >&6; }
4748 echo=$ECHO
4750 if test -z "$WHICH"; then
4751 # Extract the first word of "which", so it can be a program name with args.
4752 set dummy which; ac_word=$2
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4754 $as_echo_n "checking for $ac_word... " >&6; }
4755 if ${ac_cv_path_WHICH+:} false; then :
4756 $as_echo_n "(cached) " >&6
4757 else
4758 case $WHICH in
4759 [\\/]* | ?:[\\/]*)
4760 ac_cv_path_WHICH="$WHICH" # Let the user override the test with a path.
4763 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4764 for as_dir in $PATH
4766 IFS=$as_save_IFS
4767 test -z "$as_dir" && as_dir=.
4768 for ac_exec_ext in '' $ac_executable_extensions; do
4769 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4770 ac_cv_path_WHICH="$as_dir/$ac_word$ac_exec_ext"
4771 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4772 break 2
4774 done
4775 done
4776 IFS=$as_save_IFS
4778 test -z "$ac_cv_path_WHICH" && ac_cv_path_WHICH="/usr/bin/which"
4780 esac
4782 WHICH=$ac_cv_path_WHICH
4783 if test -n "$WHICH"; then
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WHICH" >&5
4785 $as_echo "$WHICH" >&6; }
4786 else
4787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4788 $as_echo "no" >&6; }
4793 which=$WHICH
4796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where unix-like sort(1) lives" >&5
4797 $as_echo_n "checking where unix-like sort(1) lives... " >&6; }
4798 if test $target_os = mingw; then
4799 for d in /bin /usr/bin /mingw/bin /mingw/usr/bin
4801 if test -x $d/sort; then
4802 sort=$d/sort
4803 break
4805 done
4806 else
4807 sort=`which sort`
4809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $sort" >&5
4810 $as_echo "$sort" >&6; }
4811 $sort -n </dev/null
4812 if test $? != 0
4813 then
4814 echo
4815 echo "FATAL ERROR: $sort -n failed!"
4816 rm -rf conftest conftest.*
4817 exit 1
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if echo uses -n or backslash-c to suppress newlines" >&5
4822 $as_echo_n "checking if echo uses -n or backslash-c to suppress newlines... " >&6; }
4823 if ( $echo "testing\c"; $echo 1,2,3 ) | grep c >/dev/null
4824 then
4825 if ( $echo -n testing; $echo 1,2,3 ) | sed s/-n/xn/ | grep xn >/dev/null
4826 then
4827 echo_n= echo_c=
4828 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither?" >&5
4829 $as_echo "neither?" >&6; }
4830 else
4831 echo_n=-n echo_c=
4832 { $as_echo "$as_me:${as_lineno-$LINENO}: result: -n" >&5
4833 $as_echo " -n" >&6; }
4835 else
4836 echo_n= echo_c='\c'
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: backslash-c" >&5
4838 $as_echo "backslash-c" >&6; }
4843 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4844 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4845 if ${ac_cv_path_GREP+:} false; then :
4846 $as_echo_n "(cached) " >&6
4847 else
4848 if test -z "$GREP"; then
4849 ac_path_GREP_found=false
4850 # Loop through the user's path and test for each of PROGNAME-LIST
4851 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4852 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4854 IFS=$as_save_IFS
4855 test -z "$as_dir" && as_dir=.
4856 for ac_prog in grep ggrep; do
4857 for ac_exec_ext in '' $ac_executable_extensions; do
4858 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4859 as_fn_executable_p "$ac_path_GREP" || continue
4860 # Check for GNU ac_path_GREP and select it if it is found.
4861 # Check for GNU $ac_path_GREP
4862 case `"$ac_path_GREP" --version 2>&1` in
4863 *GNU*)
4864 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4866 ac_count=0
4867 $as_echo_n 0123456789 >"conftest.in"
4868 while :
4870 cat "conftest.in" "conftest.in" >"conftest.tmp"
4871 mv "conftest.tmp" "conftest.in"
4872 cp "conftest.in" "conftest.nl"
4873 $as_echo 'GREP' >> "conftest.nl"
4874 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4875 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4876 as_fn_arith $ac_count + 1 && ac_count=$as_val
4877 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4878 # Best one so far, save it but keep looking for a better one
4879 ac_cv_path_GREP="$ac_path_GREP"
4880 ac_path_GREP_max=$ac_count
4882 # 10*(2^10) chars as input seems more than enough
4883 test $ac_count -gt 10 && break
4884 done
4885 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4886 esac
4888 $ac_path_GREP_found && break 3
4889 done
4890 done
4891 done
4892 IFS=$as_save_IFS
4893 if test -z "$ac_cv_path_GREP"; then
4894 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4896 else
4897 ac_cv_path_GREP=$GREP
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4902 $as_echo "$ac_cv_path_GREP" >&6; }
4903 GREP="$ac_cv_path_GREP"
4906 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4907 $as_echo_n "checking for egrep... " >&6; }
4908 if ${ac_cv_path_EGREP+:} false; then :
4909 $as_echo_n "(cached) " >&6
4910 else
4911 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4912 then ac_cv_path_EGREP="$GREP -E"
4913 else
4914 if test -z "$EGREP"; then
4915 ac_path_EGREP_found=false
4916 # Loop through the user's path and test for each of PROGNAME-LIST
4917 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4918 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4920 IFS=$as_save_IFS
4921 test -z "$as_dir" && as_dir=.
4922 for ac_prog in egrep; do
4923 for ac_exec_ext in '' $ac_executable_extensions; do
4924 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4925 as_fn_executable_p "$ac_path_EGREP" || continue
4926 # Check for GNU ac_path_EGREP and select it if it is found.
4927 # Check for GNU $ac_path_EGREP
4928 case `"$ac_path_EGREP" --version 2>&1` in
4929 *GNU*)
4930 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4932 ac_count=0
4933 $as_echo_n 0123456789 >"conftest.in"
4934 while :
4936 cat "conftest.in" "conftest.in" >"conftest.tmp"
4937 mv "conftest.tmp" "conftest.in"
4938 cp "conftest.in" "conftest.nl"
4939 $as_echo 'EGREP' >> "conftest.nl"
4940 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4941 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4942 as_fn_arith $ac_count + 1 && ac_count=$as_val
4943 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4944 # Best one so far, save it but keep looking for a better one
4945 ac_cv_path_EGREP="$ac_path_EGREP"
4946 ac_path_EGREP_max=$ac_count
4948 # 10*(2^10) chars as input seems more than enough
4949 test $ac_count -gt 10 && break
4950 done
4951 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4952 esac
4954 $ac_path_EGREP_found && break 3
4955 done
4956 done
4957 done
4958 IFS=$as_save_IFS
4959 if test -z "$ac_cv_path_EGREP"; then
4960 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4962 else
4963 ac_cv_path_EGREP=$EGREP
4968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4969 $as_echo "$ac_cv_path_EGREP" >&6; }
4970 EGREP="$ac_cv_path_EGREP"
4974 if test "$do_probes" = "check" -o "$do_probes" = "yes"
4975 then
4976 enable_probes=true
4977 for ac_prog in dtrace
4979 # Extract the first word of "$ac_prog", so it can be a program name with args.
4980 set dummy $ac_prog; ac_word=$2
4981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4982 $as_echo_n "checking for $ac_word... " >&6; }
4983 if ${ac_cv_prog_DTRACE+:} false; then :
4984 $as_echo_n "(cached) " >&6
4985 else
4986 if test -n "$DTRACE"; then
4987 ac_cv_prog_DTRACE="$DTRACE" # Let the user override the test.
4988 else
4989 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4990 for as_dir in $PATH
4992 IFS=$as_save_IFS
4993 test -z "$as_dir" && as_dir=.
4994 for ac_exec_ext in '' $ac_executable_extensions; do
4995 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4996 ac_cv_prog_DTRACE="$ac_prog"
4997 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4998 break 2
5000 done
5001 done
5002 IFS=$as_save_IFS
5006 DTRACE=$ac_cv_prog_DTRACE
5007 if test -n "$DTRACE"; then
5008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DTRACE" >&5
5009 $as_echo "$DTRACE" >&6; }
5010 else
5011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5012 $as_echo "no" >&6; }
5016 test -n "$DTRACE" && break
5017 done
5019 if test -z "$DTRACE"
5020 then
5021 if test "$do_probes" = "yes"
5022 then
5023 as_fn_error $? "cannot enable static probes - no dtrace executable" "$LINENO" 5
5025 enable_probes=false
5027 ac_ext=c
5028 ac_cpp='$CPP $CPPFLAGS'
5029 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5030 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5031 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5032 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
5033 $as_echo_n "checking how to run the C preprocessor... " >&6; }
5034 # On Suns, sometimes $CPP names a directory.
5035 if test -n "$CPP" && test -d "$CPP"; then
5036 CPP=
5038 if test -z "$CPP"; then
5039 if ${ac_cv_prog_CPP+:} false; then :
5040 $as_echo_n "(cached) " >&6
5041 else
5042 # Double quotes because CPP needs to be expanded
5043 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
5045 ac_preproc_ok=false
5046 for ac_c_preproc_warn_flag in '' yes
5048 # Use a header file that comes with gcc, so configuring glibc
5049 # with a fresh cross-compiler works.
5050 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5051 # <limits.h> exists even on freestanding compilers.
5052 # On the NeXT, cc -E runs the code through the compiler's parser,
5053 # not just through cpp. "Syntax error" is here to catch this case.
5054 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5055 /* end confdefs.h. */
5056 #ifdef __STDC__
5057 # include <limits.h>
5058 #else
5059 # include <assert.h>
5060 #endif
5061 Syntax error
5062 _ACEOF
5063 if ac_fn_c_try_cpp "$LINENO"; then :
5065 else
5066 # Broken: fails on valid input.
5067 continue
5069 rm -f conftest.err conftest.i conftest.$ac_ext
5071 # OK, works on sane cases. Now check whether nonexistent headers
5072 # can be detected and how.
5073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5074 /* end confdefs.h. */
5075 #include <ac_nonexistent.h>
5076 _ACEOF
5077 if ac_fn_c_try_cpp "$LINENO"; then :
5078 # Broken: success on invalid input.
5079 continue
5080 else
5081 # Passes both tests.
5082 ac_preproc_ok=:
5083 break
5085 rm -f conftest.err conftest.i conftest.$ac_ext
5087 done
5088 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5089 rm -f conftest.i conftest.err conftest.$ac_ext
5090 if $ac_preproc_ok; then :
5091 break
5094 done
5095 ac_cv_prog_CPP=$CPP
5098 CPP=$ac_cv_prog_CPP
5099 else
5100 ac_cv_prog_CPP=$CPP
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
5103 $as_echo "$CPP" >&6; }
5104 ac_preproc_ok=false
5105 for ac_c_preproc_warn_flag in '' yes
5107 # Use a header file that comes with gcc, so configuring glibc
5108 # with a fresh cross-compiler works.
5109 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5110 # <limits.h> exists even on freestanding compilers.
5111 # On the NeXT, cc -E runs the code through the compiler's parser,
5112 # not just through cpp. "Syntax error" is here to catch this case.
5113 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5114 /* end confdefs.h. */
5115 #ifdef __STDC__
5116 # include <limits.h>
5117 #else
5118 # include <assert.h>
5119 #endif
5120 Syntax error
5121 _ACEOF
5122 if ac_fn_c_try_cpp "$LINENO"; then :
5124 else
5125 # Broken: fails on valid input.
5126 continue
5128 rm -f conftest.err conftest.i conftest.$ac_ext
5130 # OK, works on sane cases. Now check whether nonexistent headers
5131 # can be detected and how.
5132 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5133 /* end confdefs.h. */
5134 #include <ac_nonexistent.h>
5135 _ACEOF
5136 if ac_fn_c_try_cpp "$LINENO"; then :
5137 # Broken: success on invalid input.
5138 continue
5139 else
5140 # Passes both tests.
5141 ac_preproc_ok=:
5142 break
5144 rm -f conftest.err conftest.i conftest.$ac_ext
5146 done
5147 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5148 rm -f conftest.i conftest.err conftest.$ac_ext
5149 if $ac_preproc_ok; then :
5151 else
5152 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5153 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5154 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
5155 See \`config.log' for more details" "$LINENO" 5; }
5158 ac_ext=c
5159 ac_cpp='$CPP $CPPFLAGS'
5160 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5161 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5162 ac_compiler_gnu=$ac_cv_c_compiler_gnu
5165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5166 $as_echo_n "checking for ANSI C header files... " >&6; }
5167 if ${ac_cv_header_stdc+:} false; then :
5168 $as_echo_n "(cached) " >&6
5169 else
5170 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5171 /* end confdefs.h. */
5172 #include <stdlib.h>
5173 #include <stdarg.h>
5174 #include <string.h>
5175 #include <float.h>
5178 main ()
5182 return 0;
5184 _ACEOF
5185 if ac_fn_c_try_compile "$LINENO"; then :
5186 ac_cv_header_stdc=yes
5187 else
5188 ac_cv_header_stdc=no
5190 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5192 if test $ac_cv_header_stdc = yes; then
5193 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5194 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5195 /* end confdefs.h. */
5196 #include <string.h>
5198 _ACEOF
5199 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5200 $EGREP "memchr" >/dev/null 2>&1; then :
5202 else
5203 ac_cv_header_stdc=no
5205 rm -f conftest*
5209 if test $ac_cv_header_stdc = yes; then
5210 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5212 /* end confdefs.h. */
5213 #include <stdlib.h>
5215 _ACEOF
5216 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5217 $EGREP "free" >/dev/null 2>&1; then :
5219 else
5220 ac_cv_header_stdc=no
5222 rm -f conftest*
5226 if test $ac_cv_header_stdc = yes; then
5227 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5228 if test "$cross_compiling" = yes; then :
5230 else
5231 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5232 /* end confdefs.h. */
5233 #include <ctype.h>
5234 #include <stdlib.h>
5235 #if ((' ' & 0x0FF) == 0x020)
5236 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5237 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5238 #else
5239 # define ISLOWER(c) \
5240 (('a' <= (c) && (c) <= 'i') \
5241 || ('j' <= (c) && (c) <= 'r') \
5242 || ('s' <= (c) && (c) <= 'z'))
5243 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5244 #endif
5246 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5248 main ()
5250 int i;
5251 for (i = 0; i < 256; i++)
5252 if (XOR (islower (i), ISLOWER (i))
5253 || toupper (i) != TOUPPER (i))
5254 return 2;
5255 return 0;
5257 _ACEOF
5258 if ac_fn_c_try_run "$LINENO"; then :
5260 else
5261 ac_cv_header_stdc=no
5263 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5264 conftest.$ac_objext conftest.beam conftest.$ac_ext
5269 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5270 $as_echo "$ac_cv_header_stdc" >&6; }
5271 if test $ac_cv_header_stdc = yes; then
5273 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5277 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5278 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5279 inttypes.h stdint.h unistd.h
5280 do :
5281 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5282 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5284 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5285 cat >>confdefs.h <<_ACEOF
5286 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5287 _ACEOF
5291 done
5294 for ac_header in sys/sdt.h
5295 do :
5296 ac_fn_c_check_header_mongrel "$LINENO" "sys/sdt.h" "ac_cv_header_sys_sdt_h" "$ac_includes_default"
5297 if test "x$ac_cv_header_sys_sdt_h" = xyes; then :
5298 cat >>confdefs.h <<_ACEOF
5299 #define HAVE_SYS_SDT_H 1
5300 _ACEOF
5302 if $enable_probes = true
5303 then
5304 if test $target_os = kfreebsd
5305 then
5306 enable_probes=false
5307 elif test $target_os = freebsd
5308 then
5309 rm -f conftest.d conftest.h
5310 cat <<End-of-File >conftest.d
5311 provider eek {
5312 probe urk(int);
5314 End-of-File
5315 if dtrace -s conftest.d -h >/dev/null 2>&1
5316 then
5317 if test ! -f conftest.h
5318 then
5319 enable_probes=false
5320 if test "$do_probes" = "yes"
5321 then
5322 as_fn_error $? "cannot enable static probes - no .h from dtrace -h" "$LINENO" 5
5325 else
5326 enable_probes=false
5327 if test "$do_probes" = "yes"
5328 then
5329 as_fn_error $? "cannot enable static probes - dtrace failed" "$LINENO" 5
5335 else
5337 enable_probes=false
5338 if test "$do_probes" = "yes"
5339 then
5340 as_fn_error $? "cannot enable static probes - no SDT header" "$LINENO" 5
5345 done
5348 if test "$enable_probes" = "true"
5349 then
5351 $as_echo "#define HAVE_STATIC_PROBES 1" >>confdefs.h
5358 if test "x$do_discovery" != "xno"; then :
5360 # on Mac OS X, dns_sd.h
5362 # on Linux, aloha Avahi
5363 enable_avahi=true
5365 pkg_failed=no
5366 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for avahi" >&5
5367 $as_echo_n "checking for avahi... " >&6; }
5369 if test -n "$avahi_CFLAGS"; then
5370 pkg_cv_avahi_CFLAGS="$avahi_CFLAGS"
5371 elif test -n "$PKG_CONFIG"; then
5372 if test -n "$PKG_CONFIG" && \
5373 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"avahi-client\""; } >&5
5374 ($PKG_CONFIG --exists --print-errors "avahi-client") 2>&5
5375 ac_status=$?
5376 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5377 test $ac_status = 0; }; then
5378 pkg_cv_avahi_CFLAGS=`$PKG_CONFIG --cflags "avahi-client" 2>/dev/null`
5379 test "x$?" != "x0" && pkg_failed=yes
5380 else
5381 pkg_failed=yes
5383 else
5384 pkg_failed=untried
5386 if test -n "$avahi_LIBS"; then
5387 pkg_cv_avahi_LIBS="$avahi_LIBS"
5388 elif test -n "$PKG_CONFIG"; then
5389 if test -n "$PKG_CONFIG" && \
5390 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"avahi-client\""; } >&5
5391 ($PKG_CONFIG --exists --print-errors "avahi-client") 2>&5
5392 ac_status=$?
5393 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5394 test $ac_status = 0; }; then
5395 pkg_cv_avahi_LIBS=`$PKG_CONFIG --libs "avahi-client" 2>/dev/null`
5396 test "x$?" != "x0" && pkg_failed=yes
5397 else
5398 pkg_failed=yes
5400 else
5401 pkg_failed=untried
5406 if test $pkg_failed = yes; then
5407 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5408 $as_echo "no" >&6; }
5410 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
5411 _pkg_short_errors_supported=yes
5412 else
5413 _pkg_short_errors_supported=no
5415 if test $_pkg_short_errors_supported = yes; then
5416 avahi_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "avahi-client" 2>&1`
5417 else
5418 avahi_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "avahi-client" 2>&1`
5420 # Put the nasty error message in config.log where it belongs
5421 echo "$avahi_PKG_ERRORS" >&5
5423 enable_avahi=false
5424 elif test $pkg_failed = untried; then
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5426 $as_echo "no" >&6; }
5427 enable_avahi=false
5428 else
5429 avahi_CFLAGS=$pkg_cv_avahi_CFLAGS
5430 avahi_LIBS=$pkg_cv_avahi_LIBS
5431 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5432 $as_echo "yes" >&6; }
5433 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for avahi_client_new in -lavahi-client" >&5
5434 $as_echo_n "checking for avahi_client_new in -lavahi-client... " >&6; }
5435 if ${ac_cv_lib_avahi_client_avahi_client_new+:} false; then :
5436 $as_echo_n "(cached) " >&6
5437 else
5438 ac_check_lib_save_LIBS=$LIBS
5439 LIBS="-lavahi-client $LIBS"
5440 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5441 /* end confdefs.h. */
5443 /* Override any GCC internal prototype to avoid an error.
5444 Use char because int might match the return type of a GCC
5445 builtin and then its argument prototype would still apply. */
5446 #ifdef __cplusplus
5447 extern "C"
5448 #endif
5449 char avahi_client_new ();
5451 main ()
5453 return avahi_client_new ();
5455 return 0;
5457 _ACEOF
5458 if ac_fn_c_try_link "$LINENO"; then :
5459 ac_cv_lib_avahi_client_avahi_client_new=yes
5460 else
5461 ac_cv_lib_avahi_client_avahi_client_new=no
5463 rm -f core conftest.err conftest.$ac_objext \
5464 conftest$ac_exeext conftest.$ac_ext
5465 LIBS=$ac_check_lib_save_LIBS
5467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_avahi_client_avahi_client_new" >&5
5468 $as_echo "$ac_cv_lib_avahi_client_avahi_client_new" >&6; }
5469 if test "x$ac_cv_lib_avahi_client_avahi_client_new" = xyes; then :
5470 lib_for_avahi="-lavahi-common -lavahi-client"
5471 else
5472 enable_avahi=false
5477 for ac_header in avahi-client/publish.h
5478 do :
5479 ac_fn_c_check_header_mongrel "$LINENO" "avahi-client/publish.h" "ac_cv_header_avahi_client_publish_h" "$ac_includes_default"
5480 if test "x$ac_cv_header_avahi_client_publish_h" = xyes; then :
5481 cat >>confdefs.h <<_ACEOF
5482 #define HAVE_AVAHI_CLIENT_PUBLISH_H 1
5483 _ACEOF
5485 else
5486 enable_avahi=false
5489 done
5491 for ac_header in avahi-common/alternative.h
5492 do :
5493 ac_fn_c_check_header_mongrel "$LINENO" "avahi-common/alternative.h" "ac_cv_header_avahi_common_alternative_h" "$ac_includes_default"
5494 if test "x$ac_cv_header_avahi_common_alternative_h" = xyes; then :
5495 cat >>confdefs.h <<_ACEOF
5496 #define HAVE_AVAHI_COMMON_ALTERNATIVE_H 1
5497 _ACEOF
5499 else
5500 enable_avahi=false
5503 done
5506 if test "$enable_avahi" = "true"
5507 then
5511 $as_echo "#define HAVE_AVAHI 1" >>confdefs.h
5513 enable_discovery=true
5516 if test "$do_discovery" != "check" -a "$enable_discovery" != "true"
5517 then
5518 as_fn_error $? "cannot enable service discovery - no supported mechanisms" "$LINENO" 5
5520 if test "$enable_discovery" = "true"
5521 then
5523 $as_echo "#define HAVE_SERVICE_DISCOVERY 1" >>confdefs.h
5531 enable_systemd=false
5532 if test "x$do_systemd" != "xno"; then :
5534 enable_systemd=true
5537 if test -n "$SYSTEMD_SYSTEMUNITDIR"; then
5538 pkg_cv_SYSTEMD_SYSTEMUNITDIR="$SYSTEMD_SYSTEMUNITDIR"
5539 elif test -n "$PKG_CONFIG"; then
5540 if test -n "$PKG_CONFIG" && \
5541 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"systemd\""; } >&5
5542 ($PKG_CONFIG --exists --print-errors "systemd") 2>&5
5543 ac_status=$?
5544 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
5545 test $ac_status = 0; }; then
5546 pkg_cv_SYSTEMD_SYSTEMUNITDIR=`$PKG_CONFIG --variable="systemdsystemunitdir" "systemd" 2>/dev/null`
5547 test "x$?" != "x0" && pkg_failed=yes
5548 else
5549 pkg_failed=yes
5551 else
5552 pkg_failed=untried
5554 SYSTEMD_SYSTEMUNITDIR=$pkg_cv_SYSTEMD_SYSTEMUNITDIR
5556 if test "x$SYSTEMD_SYSTEMUNITDIR" = x""; then :
5557 enable_systemd=false
5558 else
5559 pcp_systemdunit_dir=$SYSTEMD_SYSTEMUNITDIR
5562 if test -z "$pcp_systemdunit_dir"
5563 then
5564 if test "$do_systemd" = "yes"
5565 then
5566 as_fn_error $? "cannot enable systemd support - no systemunitdir path" "$LINENO" 5
5568 enable_systemd=false
5574 # NB: No AC_PREFIX_DEFAULT is needed, as the default configure invocation
5575 # targets a build for non-system directories such as /usr/local.
5576 # AC_PREFIX_DEFAULT([])
5578 . ./VERSION.pcp
5579 PACKAGE_VERSION=${PACKAGE_MAJOR}.${PACKAGE_MINOR}.${PACKAGE_REVISION}
5586 if test -z "$PACKAGE_BUILD_DATE" ; then
5587 PACKAGE_BUILD_DATE=`date +%Y-%m-%d`
5591 if test -z "$PACKAGE_DISTRIBUTION" ; then
5592 PACKAGE_DISTRIBUTION=$target_distro
5596 pm_version_current=`awk </dev/null "BEGIN { print (${PACKAGE_MAJOR}*256+${PACKAGE_MINOR})*256+${PACKAGE_REVISION} }"`
5599 ac_config_headers="$ac_config_headers src/include/pcp/config.h src/include/pcp/configsz.h"
5601 ac_config_files="$ac_config_files src/include/pcp/platform_defs.h"
5603 cat >confcache <<\_ACEOF
5604 # This file is a shell script that caches the results of configure
5605 # tests run on this system so they can be shared between configure
5606 # scripts and configure runs, see configure's option --config-cache.
5607 # It is not useful on other systems. If it contains results you don't
5608 # want to keep, you may remove or edit it.
5610 # config.status only pays attention to the cache file if you give it
5611 # the --recheck option to rerun configure.
5613 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5614 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5615 # following values.
5617 _ACEOF
5619 # The following way of writing the cache mishandles newlines in values,
5620 # but we know of no workaround that is simple, portable, and efficient.
5621 # So, we kill variables containing newlines.
5622 # Ultrix sh set writes to stderr and can't be redirected directly,
5623 # and sets the high bit in the cache file unless we assign to the vars.
5625 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5626 eval ac_val=\$$ac_var
5627 case $ac_val in #(
5628 *${as_nl}*)
5629 case $ac_var in #(
5630 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5631 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5632 esac
5633 case $ac_var in #(
5634 _ | IFS | as_nl) ;; #(
5635 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5636 *) { eval $ac_var=; unset $ac_var;} ;;
5637 esac ;;
5638 esac
5639 done
5641 (set) 2>&1 |
5642 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5643 *${as_nl}ac_space=\ *)
5644 # `set' does not quote correctly, so add quotes: double-quote
5645 # substitution turns \\\\ into \\, and sed turns \\ into \.
5646 sed -n \
5647 "s/'/'\\\\''/g;
5648 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5649 ;; #(
5651 # `set' quotes correctly as required by POSIX, so do not add quotes.
5652 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5654 esac |
5655 sort
5657 sed '
5658 /^ac_cv_env_/b end
5659 t clear
5660 :clear
5661 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5662 t end
5663 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5664 :end' >>confcache
5665 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5666 if test -w "$cache_file"; then
5667 if test "x$cache_file" != "x/dev/null"; then
5668 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5669 $as_echo "$as_me: updating cache $cache_file" >&6;}
5670 if test ! -f "$cache_file" || test -h "$cache_file"; then
5671 cat confcache >"$cache_file"
5672 else
5673 case $cache_file in #(
5674 */* | ?:*)
5675 mv -f confcache "$cache_file"$$ &&
5676 mv -f "$cache_file"$$ "$cache_file" ;; #(
5678 mv -f confcache "$cache_file" ;;
5679 esac
5682 else
5683 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5684 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5687 rm -f confcache
5689 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5690 # Let make expand exec_prefix.
5691 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5693 DEFS=-DHAVE_CONFIG_H
5695 ac_libobjs=
5696 ac_ltlibobjs=
5698 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5699 # 1. Remove the extension, and $U if already installed.
5700 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5701 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5702 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5703 # will be set to the directory where LIBOBJS objects are built.
5704 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5705 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
5706 done
5707 LIBOBJS=$ac_libobjs
5709 LTLIBOBJS=$ac_ltlibobjs
5713 : "${CONFIG_STATUS=./config.status}"
5714 ac_write_fail=0
5715 ac_clean_files_save=$ac_clean_files
5716 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5717 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5718 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5719 as_write_fail=0
5720 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5721 #! $SHELL
5722 # Generated by $as_me.
5723 # Run this file to recreate the current configuration.
5724 # Compiler output produced by configure, useful for debugging
5725 # configure, is in config.log if it exists.
5727 debug=false
5728 ac_cs_recheck=false
5729 ac_cs_silent=false
5731 SHELL=\${CONFIG_SHELL-$SHELL}
5732 export SHELL
5733 _ASEOF
5734 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5735 ## -------------------- ##
5736 ## M4sh Initialization. ##
5737 ## -------------------- ##
5739 # Be more Bourne compatible
5740 DUALCASE=1; export DUALCASE # for MKS sh
5741 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
5742 emulate sh
5743 NULLCMD=:
5744 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5745 # is contrary to our usage. Disable this feature.
5746 alias -g '${1+"$@"}'='"$@"'
5747 setopt NO_GLOB_SUBST
5748 else
5749 case `(set -o) 2>/dev/null` in #(
5750 *posix*) :
5751 set -o posix ;; #(
5752 *) :
5754 esac
5758 as_nl='
5760 export as_nl
5761 # Printing a long string crashes Solaris 7 /usr/bin/printf.
5762 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5763 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5764 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5765 # Prefer a ksh shell builtin over an external printf program on Solaris,
5766 # but without wasting forks for bash or zsh.
5767 if test -z "$BASH_VERSION$ZSH_VERSION" \
5768 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5769 as_echo='print -r --'
5770 as_echo_n='print -rn --'
5771 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5772 as_echo='printf %s\n'
5773 as_echo_n='printf %s'
5774 else
5775 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5776 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5777 as_echo_n='/usr/ucb/echo -n'
5778 else
5779 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5780 as_echo_n_body='eval
5781 arg=$1;
5782 case $arg in #(
5783 *"$as_nl"*)
5784 expr "X$arg" : "X\\(.*\\)$as_nl";
5785 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5786 esac;
5787 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5789 export as_echo_n_body
5790 as_echo_n='sh -c $as_echo_n_body as_echo'
5792 export as_echo_body
5793 as_echo='sh -c $as_echo_body as_echo'
5796 # The user is always right.
5797 if test "${PATH_SEPARATOR+set}" != set; then
5798 PATH_SEPARATOR=:
5799 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5800 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5801 PATH_SEPARATOR=';'
5806 # IFS
5807 # We need space, tab and new line, in precisely that order. Quoting is
5808 # there to prevent editors from complaining about space-tab.
5809 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
5810 # splitting by setting IFS to empty value.)
5811 IFS=" "" $as_nl"
5813 # Find who we are. Look in the path if we contain no directory separator.
5814 as_myself=
5815 case $0 in #((
5816 *[\\/]* ) as_myself=$0 ;;
5817 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5818 for as_dir in $PATH
5820 IFS=$as_save_IFS
5821 test -z "$as_dir" && as_dir=.
5822 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5823 done
5824 IFS=$as_save_IFS
5827 esac
5828 # We did not find ourselves, most probably we were run as `sh COMMAND'
5829 # in which case we are not to be found in the path.
5830 if test "x$as_myself" = x; then
5831 as_myself=$0
5833 if test ! -f "$as_myself"; then
5834 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5835 exit 1
5838 # Unset variables that we do not need and which cause bugs (e.g. in
5839 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
5840 # suppresses any "Segmentation fault" message there. '((' could
5841 # trigger a bug in pdksh 5.2.14.
5842 for as_var in BASH_ENV ENV MAIL MAILPATH
5843 do eval test x\${$as_var+set} = xset \
5844 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5845 done
5846 PS1='$ '
5847 PS2='> '
5848 PS4='+ '
5850 # NLS nuisances.
5851 LC_ALL=C
5852 export LC_ALL
5853 LANGUAGE=C
5854 export LANGUAGE
5856 # CDPATH.
5857 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5860 # as_fn_error STATUS ERROR [LINENO LOG_FD]
5861 # ----------------------------------------
5862 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5863 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5864 # script with STATUS, using 1 if that was 0.
5865 as_fn_error ()
5867 as_status=$1; test $as_status -eq 0 && as_status=1
5868 if test "$4"; then
5869 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5870 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
5872 $as_echo "$as_me: error: $2" >&2
5873 as_fn_exit $as_status
5874 } # as_fn_error
5877 # as_fn_set_status STATUS
5878 # -----------------------
5879 # Set $? to STATUS, without forking.
5880 as_fn_set_status ()
5882 return $1
5883 } # as_fn_set_status
5885 # as_fn_exit STATUS
5886 # -----------------
5887 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5888 as_fn_exit ()
5890 set +e
5891 as_fn_set_status $1
5892 exit $1
5893 } # as_fn_exit
5895 # as_fn_unset VAR
5896 # ---------------
5897 # Portably unset VAR.
5898 as_fn_unset ()
5900 { eval $1=; unset $1;}
5902 as_unset=as_fn_unset
5903 # as_fn_append VAR VALUE
5904 # ----------------------
5905 # Append the text in VALUE to the end of the definition contained in VAR. Take
5906 # advantage of any shell optimizations that allow amortized linear growth over
5907 # repeated appends, instead of the typical quadratic growth present in naive
5908 # implementations.
5909 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
5910 eval 'as_fn_append ()
5912 eval $1+=\$2
5914 else
5915 as_fn_append ()
5917 eval $1=\$$1\$2
5919 fi # as_fn_append
5921 # as_fn_arith ARG...
5922 # ------------------
5923 # Perform arithmetic evaluation on the ARGs, and store the result in the
5924 # global $as_val. Take advantage of shells that can avoid forks. The arguments
5925 # must be portable across $(()) and expr.
5926 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
5927 eval 'as_fn_arith ()
5929 as_val=$(( $* ))
5931 else
5932 as_fn_arith ()
5934 as_val=`expr "$@" || test $? -eq 1`
5936 fi # as_fn_arith
5939 if expr a : '\(a\)' >/dev/null 2>&1 &&
5940 test "X`expr 00001 : '.*\(...\)'`" = X001; then
5941 as_expr=expr
5942 else
5943 as_expr=false
5946 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5947 as_basename=basename
5948 else
5949 as_basename=false
5952 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5953 as_dirname=dirname
5954 else
5955 as_dirname=false
5958 as_me=`$as_basename -- "$0" ||
5959 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5960 X"$0" : 'X\(//\)$' \| \
5961 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5962 $as_echo X/"$0" |
5963 sed '/^.*\/\([^/][^/]*\)\/*$/{
5964 s//\1/
5967 /^X\/\(\/\/\)$/{
5968 s//\1/
5971 /^X\/\(\/\).*/{
5972 s//\1/
5975 s/.*/./; q'`
5977 # Avoid depending upon Character Ranges.
5978 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5979 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5980 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5981 as_cr_digits='0123456789'
5982 as_cr_alnum=$as_cr_Letters$as_cr_digits
5984 ECHO_C= ECHO_N= ECHO_T=
5985 case `echo -n x` in #(((((
5986 -n*)
5987 case `echo 'xy\c'` in
5988 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
5989 xy) ECHO_C='\c';;
5990 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
5991 ECHO_T=' ';;
5992 esac;;
5994 ECHO_N='-n';;
5995 esac
5997 rm -f conf$$ conf$$.exe conf$$.file
5998 if test -d conf$$.dir; then
5999 rm -f conf$$.dir/conf$$.file
6000 else
6001 rm -f conf$$.dir
6002 mkdir conf$$.dir 2>/dev/null
6004 if (echo >conf$$.file) 2>/dev/null; then
6005 if ln -s conf$$.file conf$$ 2>/dev/null; then
6006 as_ln_s='ln -s'
6007 # ... but there are two gotchas:
6008 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6009 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6010 # In both cases, we have to default to `cp -pR'.
6011 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6012 as_ln_s='cp -pR'
6013 elif ln conf$$.file conf$$ 2>/dev/null; then
6014 as_ln_s=ln
6015 else
6016 as_ln_s='cp -pR'
6018 else
6019 as_ln_s='cp -pR'
6021 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6022 rmdir conf$$.dir 2>/dev/null
6025 # as_fn_mkdir_p
6026 # -------------
6027 # Create "$as_dir" as a directory, including parents if necessary.
6028 as_fn_mkdir_p ()
6031 case $as_dir in #(
6032 -*) as_dir=./$as_dir;;
6033 esac
6034 test -d "$as_dir" || eval $as_mkdir_p || {
6035 as_dirs=
6036 while :; do
6037 case $as_dir in #(
6038 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6039 *) as_qdir=$as_dir;;
6040 esac
6041 as_dirs="'$as_qdir' $as_dirs"
6042 as_dir=`$as_dirname -- "$as_dir" ||
6043 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6044 X"$as_dir" : 'X\(//\)[^/]' \| \
6045 X"$as_dir" : 'X\(//\)$' \| \
6046 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6047 $as_echo X"$as_dir" |
6048 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6049 s//\1/
6052 /^X\(\/\/\)[^/].*/{
6053 s//\1/
6056 /^X\(\/\/\)$/{
6057 s//\1/
6060 /^X\(\/\).*/{
6061 s//\1/
6064 s/.*/./; q'`
6065 test -d "$as_dir" && break
6066 done
6067 test -z "$as_dirs" || eval "mkdir $as_dirs"
6068 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
6071 } # as_fn_mkdir_p
6072 if mkdir -p . 2>/dev/null; then
6073 as_mkdir_p='mkdir -p "$as_dir"'
6074 else
6075 test -d ./-p && rmdir ./-p
6076 as_mkdir_p=false
6080 # as_fn_executable_p FILE
6081 # -----------------------
6082 # Test if FILE is an executable regular file.
6083 as_fn_executable_p ()
6085 test -f "$1" && test -x "$1"
6086 } # as_fn_executable_p
6087 as_test_x='test -x'
6088 as_executable_p=as_fn_executable_p
6090 # Sed expression to map a string onto a valid CPP name.
6091 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6093 # Sed expression to map a string onto a valid variable name.
6094 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6097 exec 6>&1
6098 ## ----------------------------------- ##
6099 ## Main body of $CONFIG_STATUS script. ##
6100 ## ----------------------------------- ##
6101 _ASEOF
6102 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
6104 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6105 # Save the log message, to keep $0 and so on meaningful, and to
6106 # report actual input values of CONFIG_FILES etc. instead of their
6107 # values after options handling.
6108 ac_log="
6109 This file was extended by $as_me, which was
6110 generated by GNU Autoconf 2.69. Invocation command line was
6112 CONFIG_FILES = $CONFIG_FILES
6113 CONFIG_HEADERS = $CONFIG_HEADERS
6114 CONFIG_LINKS = $CONFIG_LINKS
6115 CONFIG_COMMANDS = $CONFIG_COMMANDS
6116 $ $0 $@
6118 on `(hostname || uname -n) 2>/dev/null | sed 1q`
6121 _ACEOF
6123 case $ac_config_files in *"
6124 "*) set x $ac_config_files; shift; ac_config_files=$*;;
6125 esac
6127 case $ac_config_headers in *"
6128 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
6129 esac
6132 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6133 # Files that config.status was made for.
6134 config_files="$ac_config_files"
6135 config_headers="$ac_config_headers"
6137 _ACEOF
6139 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6140 ac_cs_usage="\
6141 \`$as_me' instantiates files and other configuration actions
6142 from templates according to the current configuration. Unless the files
6143 and actions are specified as TAGs, all are instantiated by default.
6145 Usage: $0 [OPTION]... [TAG]...
6147 -h, --help print this help, then exit
6148 -V, --version print version number and configuration settings, then exit
6149 --config print configuration, then exit
6150 -q, --quiet, --silent
6151 do not print progress messages
6152 -d, --debug don't remove temporary files
6153 --recheck update $as_me by reconfiguring in the same conditions
6154 --file=FILE[:TEMPLATE]
6155 instantiate the configuration file FILE
6156 --header=FILE[:TEMPLATE]
6157 instantiate the configuration header FILE
6159 Configuration files:
6160 $config_files
6162 Configuration headers:
6163 $config_headers
6165 Report bugs to the package provider."
6167 _ACEOF
6168 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6169 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
6170 ac_cs_version="\\
6171 config.status
6172 configured by $0, generated by GNU Autoconf 2.69,
6173 with options \\"\$ac_cs_config\\"
6175 Copyright (C) 2012 Free Software Foundation, Inc.
6176 This config.status script is free software; the Free Software Foundation
6177 gives unlimited permission to copy, distribute and modify it."
6179 ac_pwd='$ac_pwd'
6180 srcdir='$srcdir'
6181 test -n "\$AWK" || AWK=awk
6182 _ACEOF
6184 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6185 # The default lists apply if the user does not specify any file.
6186 ac_need_defaults=:
6187 while test $# != 0
6189 case $1 in
6190 --*=?*)
6191 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6192 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6193 ac_shift=:
6195 --*=)
6196 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6197 ac_optarg=
6198 ac_shift=:
6201 ac_option=$1
6202 ac_optarg=$2
6203 ac_shift=shift
6205 esac
6207 case $ac_option in
6208 # Handling of the options.
6209 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6210 ac_cs_recheck=: ;;
6211 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6212 $as_echo "$ac_cs_version"; exit ;;
6213 --config | --confi | --conf | --con | --co | --c )
6214 $as_echo "$ac_cs_config"; exit ;;
6215 --debug | --debu | --deb | --de | --d | -d )
6216 debug=: ;;
6217 --file | --fil | --fi | --f )
6218 $ac_shift
6219 case $ac_optarg in
6220 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6221 '') as_fn_error $? "missing file argument" ;;
6222 esac
6223 as_fn_append CONFIG_FILES " '$ac_optarg'"
6224 ac_need_defaults=false;;
6225 --header | --heade | --head | --hea )
6226 $ac_shift
6227 case $ac_optarg in
6228 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6229 esac
6230 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
6231 ac_need_defaults=false;;
6232 --he | --h)
6233 # Conflict between --help and --header
6234 as_fn_error $? "ambiguous option: \`$1'
6235 Try \`$0 --help' for more information.";;
6236 --help | --hel | -h )
6237 $as_echo "$ac_cs_usage"; exit ;;
6238 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6239 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6240 ac_cs_silent=: ;;
6242 # This is an error.
6243 -*) as_fn_error $? "unrecognized option: \`$1'
6244 Try \`$0 --help' for more information." ;;
6246 *) as_fn_append ac_config_targets " $1"
6247 ac_need_defaults=false ;;
6249 esac
6250 shift
6251 done
6253 ac_configure_extra_args=
6255 if $ac_cs_silent; then
6256 exec 6>/dev/null
6257 ac_configure_extra_args="$ac_configure_extra_args --silent"
6260 _ACEOF
6261 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6262 if \$ac_cs_recheck; then
6263 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6264 shift
6265 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6266 CONFIG_SHELL='$SHELL'
6267 export CONFIG_SHELL
6268 exec "\$@"
6271 _ACEOF
6272 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6273 exec 5>>config.log
6275 echo
6276 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6277 ## Running $as_me. ##
6278 _ASBOX
6279 $as_echo "$ac_log"
6280 } >&5
6282 _ACEOF
6283 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6284 _ACEOF
6286 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6288 # Handling of arguments.
6289 for ac_config_target in $ac_config_targets
6291 case $ac_config_target in
6292 "src/include/pcp/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pcp/config.h" ;;
6293 "src/include/pcp/configsz.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pcp/configsz.h" ;;
6294 "src/include/pcp/platform_defs.h") CONFIG_FILES="$CONFIG_FILES src/include/pcp/platform_defs.h" ;;
6296 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
6297 esac
6298 done
6301 # If the user did not use the arguments to specify the items to instantiate,
6302 # then the envvar interface is used. Set only those that are not.
6303 # We use the long form for the default assignment because of an extremely
6304 # bizarre bug on SunOS 4.1.3.
6305 if $ac_need_defaults; then
6306 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6307 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
6310 # Have a temporary directory for convenience. Make it in the build tree
6311 # simply because there is no reason against having it here, and in addition,
6312 # creating and moving files from /tmp can sometimes cause problems.
6313 # Hook for its removal unless debugging.
6314 # Note that there is a small window in which the directory will not be cleaned:
6315 # after its creation but before its name has been assigned to `$tmp'.
6316 $debug ||
6318 tmp= ac_tmp=
6319 trap 'exit_status=$?
6320 : "${ac_tmp:=$tmp}"
6321 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
6323 trap 'as_fn_exit 1' 1 2 13 15
6325 # Create a (secure) tmp directory for tmp files.
6328 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6329 test -d "$tmp"
6330 } ||
6332 tmp=./conf$$-$RANDOM
6333 (umask 077 && mkdir "$tmp")
6334 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
6335 ac_tmp=$tmp
6337 # Set up the scripts for CONFIG_FILES section.
6338 # No need to generate them if there are no CONFIG_FILES.
6339 # This happens for instance with `./config.status config.h'.
6340 if test -n "$CONFIG_FILES"; then
6343 ac_cr=`echo X | tr X '\015'`
6344 # On cygwin, bash can eat \r inside `` if the user requested igncr.
6345 # But we know of no other shell where ac_cr would be empty at this
6346 # point, so we can use a bashism as a fallback.
6347 if test "x$ac_cr" = x; then
6348 eval ac_cr=\$\'\\r\'
6350 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6351 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6352 ac_cs_awk_cr='\\r'
6353 else
6354 ac_cs_awk_cr=$ac_cr
6357 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
6358 _ACEOF
6362 echo "cat >conf$$subs.awk <<_ACEOF" &&
6363 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6364 echo "_ACEOF"
6365 } >conf$$subs.sh ||
6366 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6367 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
6368 ac_delim='%!_!# '
6369 for ac_last_try in false false false false false :; do
6370 . ./conf$$subs.sh ||
6371 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6373 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6374 if test $ac_delim_n = $ac_delim_num; then
6375 break
6376 elif $ac_last_try; then
6377 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6378 else
6379 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6381 done
6382 rm -f conf$$subs.sh
6384 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6385 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
6386 _ACEOF
6387 sed -n '
6389 s/^/S["/; s/!.*/"]=/
6392 s/^[^!]*!//
6393 :repl
6394 t repl
6395 s/'"$ac_delim"'$//
6396 t delim
6399 s/\(.\{148\}\)..*/\1/
6400 t more1
6401 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6404 b repl
6405 :more1
6406 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6409 s/.\{148\}//
6410 t nl
6411 :delim
6413 s/\(.\{148\}\)..*/\1/
6414 t more2
6415 s/["\\]/\\&/g; s/^/"/; s/$/"/
6418 :more2
6419 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6422 s/.\{148\}//
6423 t delim
6424 ' <conf$$subs.awk | sed '
6425 /^[^""]/{
6427 s/\n//
6429 ' >>$CONFIG_STATUS || ac_write_fail=1
6430 rm -f conf$$subs.awk
6431 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6432 _ACAWK
6433 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
6434 for (key in S) S_is_set[key] = 1
6435 FS = "\a"
6439 line = $ 0
6440 nfields = split(line, field, "@")
6441 substed = 0
6442 len = length(field[1])
6443 for (i = 2; i < nfields; i++) {
6444 key = field[i]
6445 keylen = length(key)
6446 if (S_is_set[key]) {
6447 value = S[key]
6448 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6449 len += length(value) + length(field[++i])
6450 substed = 1
6451 } else
6452 len += 1 + keylen
6455 print line
6458 _ACAWK
6459 _ACEOF
6460 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6461 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6462 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6463 else
6465 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
6466 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
6467 _ACEOF
6469 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
6470 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
6471 # trailing colons and then remove the whole line if VPATH becomes empty
6472 # (actually we leave an empty line to preserve line numbers).
6473 if test "x$srcdir" = x.; then
6474 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
6476 s///
6477 s/^/:/
6478 s/[ ]*$/:/
6479 s/:\$(srcdir):/:/g
6480 s/:\${srcdir}:/:/g
6481 s/:@srcdir@:/:/g
6482 s/^:*//
6483 s/:*$//
6485 s/\(=[ ]*\).*/\1/
6487 s/\n//
6488 s/^[^=]*=[ ]*$//
6492 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6493 fi # test -n "$CONFIG_FILES"
6495 # Set up the scripts for CONFIG_HEADERS section.
6496 # No need to generate them if there are no CONFIG_HEADERS.
6497 # This happens for instance with `./config.status Makefile'.
6498 if test -n "$CONFIG_HEADERS"; then
6499 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
6500 BEGIN {
6501 _ACEOF
6503 # Transform confdefs.h into an awk script `defines.awk', embedded as
6504 # here-document in config.status, that substitutes the proper values into
6505 # config.h.in to produce config.h.
6507 # Create a delimiter string that does not exist in confdefs.h, to ease
6508 # handling of long lines.
6509 ac_delim='%!_!# '
6510 for ac_last_try in false false :; do
6511 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
6512 if test -z "$ac_tt"; then
6513 break
6514 elif $ac_last_try; then
6515 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
6516 else
6517 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6519 done
6521 # For the awk script, D is an array of macro values keyed by name,
6522 # likewise P contains macro parameters if any. Preserve backslash
6523 # newline sequences.
6525 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6526 sed -n '
6527 s/.\{148\}/&'"$ac_delim"'/g
6528 t rset
6529 :rset
6530 s/^[ ]*#[ ]*define[ ][ ]*/ /
6531 t def
6533 :def
6534 s/\\$//
6535 t bsnl
6536 s/["\\]/\\&/g
6537 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6538 D["\1"]=" \3"/p
6539 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
6541 :bsnl
6542 s/["\\]/\\&/g
6543 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
6544 D["\1"]=" \3\\\\\\n"\\/p
6545 t cont
6546 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
6547 t cont
6549 :cont
6551 s/.\{148\}/&'"$ac_delim"'/g
6552 t clear
6553 :clear
6554 s/\\$//
6555 t bsnlc
6556 s/["\\]/\\&/g; s/^/"/; s/$/"/p
6558 :bsnlc
6559 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
6560 b cont
6561 ' <confdefs.h | sed '
6562 s/'"$ac_delim"'/"\\\
6563 "/g' >>$CONFIG_STATUS || ac_write_fail=1
6565 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6566 for (key in D) D_is_set[key] = 1
6567 FS = "\a"
6569 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
6570 line = \$ 0
6571 split(line, arg, " ")
6572 if (arg[1] == "#") {
6573 defundef = arg[2]
6574 mac1 = arg[3]
6575 } else {
6576 defundef = substr(arg[1], 2)
6577 mac1 = arg[2]
6579 split(mac1, mac2, "(") #)
6580 macro = mac2[1]
6581 prefix = substr(line, 1, index(line, defundef) - 1)
6582 if (D_is_set[macro]) {
6583 # Preserve the white space surrounding the "#".
6584 print prefix "define", macro P[macro] D[macro]
6585 next
6586 } else {
6587 # Replace #undef with comments. This is necessary, for example,
6588 # in the case of _POSIX_SOURCE, which is predefined and required
6589 # on some systems where configure will not decide to define it.
6590 if (defundef == "undef") {
6591 print "/*", prefix defundef, macro, "*/"
6592 next
6596 { print }
6597 _ACAWK
6598 _ACEOF
6599 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6600 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
6601 fi # test -n "$CONFIG_HEADERS"
6604 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
6605 shift
6606 for ac_tag
6608 case $ac_tag in
6609 :[FHLC]) ac_mode=$ac_tag; continue;;
6610 esac
6611 case $ac_mode$ac_tag in
6612 :[FHL]*:*);;
6613 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
6614 :[FH]-) ac_tag=-:-;;
6615 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6616 esac
6617 ac_save_IFS=$IFS
6618 IFS=:
6619 set x $ac_tag
6620 IFS=$ac_save_IFS
6621 shift
6622 ac_file=$1
6623 shift
6625 case $ac_mode in
6626 :L) ac_source=$1;;
6627 :[FH])
6628 ac_file_inputs=
6629 for ac_f
6631 case $ac_f in
6632 -) ac_f="$ac_tmp/stdin";;
6633 *) # Look for the file first in the build tree, then in the source tree
6634 # (if the path is not absolute). The absolute path cannot be DOS-style,
6635 # because $ac_f cannot contain `:'.
6636 test -f "$ac_f" ||
6637 case $ac_f in
6638 [\\/$]*) false;;
6639 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6640 esac ||
6641 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6642 esac
6643 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6644 as_fn_append ac_file_inputs " '$ac_f'"
6645 done
6647 # Let's still pretend it is `configure' which instantiates (i.e., don't
6648 # use $as_me), people would be surprised to read:
6649 # /* config.h. Generated by config.status. */
6650 configure_input='Generated from '`
6651 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6652 `' by configure.'
6653 if test x"$ac_file" != x-; then
6654 configure_input="$ac_file. $configure_input"
6655 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6656 $as_echo "$as_me: creating $ac_file" >&6;}
6658 # Neutralize special characters interpreted by sed in replacement strings.
6659 case $configure_input in #(
6660 *\&* | *\|* | *\\* )
6661 ac_sed_conf_input=`$as_echo "$configure_input" |
6662 sed 's/[\\\\&|]/\\\\&/g'`;; #(
6663 *) ac_sed_conf_input=$configure_input;;
6664 esac
6666 case $ac_tag in
6667 *:-:* | *:-) cat >"$ac_tmp/stdin" \
6668 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
6669 esac
6671 esac
6673 ac_dir=`$as_dirname -- "$ac_file" ||
6674 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6675 X"$ac_file" : 'X\(//\)[^/]' \| \
6676 X"$ac_file" : 'X\(//\)$' \| \
6677 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6678 $as_echo X"$ac_file" |
6679 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6680 s//\1/
6683 /^X\(\/\/\)[^/].*/{
6684 s//\1/
6687 /^X\(\/\/\)$/{
6688 s//\1/
6691 /^X\(\/\).*/{
6692 s//\1/
6695 s/.*/./; q'`
6696 as_dir="$ac_dir"; as_fn_mkdir_p
6697 ac_builddir=.
6699 case "$ac_dir" in
6700 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6702 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6703 # A ".." for each directory in $ac_dir_suffix.
6704 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6705 case $ac_top_builddir_sub in
6706 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6707 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6708 esac ;;
6709 esac
6710 ac_abs_top_builddir=$ac_pwd
6711 ac_abs_builddir=$ac_pwd$ac_dir_suffix
6712 # for backward compatibility:
6713 ac_top_builddir=$ac_top_build_prefix
6715 case $srcdir in
6716 .) # We are building in place.
6717 ac_srcdir=.
6718 ac_top_srcdir=$ac_top_builddir_sub
6719 ac_abs_top_srcdir=$ac_pwd ;;
6720 [\\/]* | ?:[\\/]* ) # Absolute name.
6721 ac_srcdir=$srcdir$ac_dir_suffix;
6722 ac_top_srcdir=$srcdir
6723 ac_abs_top_srcdir=$srcdir ;;
6724 *) # Relative name.
6725 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6726 ac_top_srcdir=$ac_top_build_prefix$srcdir
6727 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6728 esac
6729 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6732 case $ac_mode in
6735 # CONFIG_FILE
6738 _ACEOF
6740 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6741 # If the template does not know about datarootdir, expand it.
6742 # FIXME: This hack should be removed a few years after 2.60.
6743 ac_datarootdir_hack=; ac_datarootdir_seen=
6744 ac_sed_dataroot='
6745 /datarootdir/ {
6749 /@datadir@/p
6750 /@docdir@/p
6751 /@infodir@/p
6752 /@localedir@/p
6753 /@mandir@/p'
6754 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6755 *datarootdir*) ac_datarootdir_seen=yes;;
6756 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6757 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6758 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6759 _ACEOF
6760 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6761 ac_datarootdir_hack='
6762 s&@datadir@&$datadir&g
6763 s&@docdir@&$docdir&g
6764 s&@infodir@&$infodir&g
6765 s&@localedir@&$localedir&g
6766 s&@mandir@&$mandir&g
6767 s&\\\${datarootdir}&$datarootdir&g' ;;
6768 esac
6769 _ACEOF
6771 # Neutralize VPATH when `$srcdir' = `.'.
6772 # Shell code in configure.ac might set extrasub.
6773 # FIXME: do we really want to maintain this feature?
6774 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6775 ac_sed_extra="$ac_vpsub
6776 $extrasub
6777 _ACEOF
6778 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6780 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6781 s|@configure_input@|$ac_sed_conf_input|;t t
6782 s&@top_builddir@&$ac_top_builddir_sub&;t t
6783 s&@top_build_prefix@&$ac_top_build_prefix&;t t
6784 s&@srcdir@&$ac_srcdir&;t t
6785 s&@abs_srcdir@&$ac_abs_srcdir&;t t
6786 s&@top_srcdir@&$ac_top_srcdir&;t t
6787 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6788 s&@builddir@&$ac_builddir&;t t
6789 s&@abs_builddir@&$ac_abs_builddir&;t t
6790 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6791 $ac_datarootdir_hack
6793 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
6794 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6796 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6797 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
6798 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
6799 "$ac_tmp/out"`; test -z "$ac_out"; } &&
6800 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6801 which seems to be undefined. Please make sure it is defined" >&5
6802 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6803 which seems to be undefined. Please make sure it is defined" >&2;}
6805 rm -f "$ac_tmp/stdin"
6806 case $ac_file in
6807 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
6808 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
6809 esac \
6810 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6814 # CONFIG_HEADER
6816 if test x"$ac_file" != x-; then
6818 $as_echo "/* $configure_input */" \
6819 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
6820 } >"$ac_tmp/config.h" \
6821 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6822 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
6823 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
6824 $as_echo "$as_me: $ac_file is unchanged" >&6;}
6825 else
6826 rm -f "$ac_file"
6827 mv "$ac_tmp/config.h" "$ac_file" \
6828 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6830 else
6831 $as_echo "/* $configure_input */" \
6832 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
6833 || as_fn_error $? "could not create -" "$LINENO" 5
6838 esac
6840 done # for ac_tag
6843 as_fn_exit 0
6844 _ACEOF
6845 ac_clean_files=$ac_clean_files_save
6847 test $ac_write_fail = 0 ||
6848 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
6851 # configure is writing to config.log, and then calls config.status.
6852 # config.status does its own redirection, appending to config.log.
6853 # Unfortunately, on DOS this fails, as config.log is still kept open
6854 # by configure, so config.status won't be able to write to it; its
6855 # output is simply discarded. So we exec the FD to /dev/null,
6856 # effectively closing config.log, so it can be properly (re)opened and
6857 # appended to by config.status. When coming back to configure, we
6858 # need to make the FD available again.
6859 if test "$no_create" != yes; then
6860 ac_cs_success=:
6861 ac_config_status_args=
6862 test "$silent" = yes &&
6863 ac_config_status_args="$ac_config_status_args --quiet"
6864 exec 5>/dev/null
6865 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6866 exec 5>>config.log
6867 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6868 # would make configure fail if this is the last instruction.
6869 $ac_cs_success || as_fn_exit 1
6871 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6872 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6873 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
6877 for ac_prog in git
6879 # Extract the first word of "$ac_prog", so it can be a program name with args.
6880 set dummy $ac_prog; ac_word=$2
6881 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6882 $as_echo_n "checking for $ac_word... " >&6; }
6883 if ${ac_cv_prog_GIT+:} false; then :
6884 $as_echo_n "(cached) " >&6
6885 else
6886 if test -n "$GIT"; then
6887 ac_cv_prog_GIT="$GIT" # Let the user override the test.
6888 else
6889 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6890 for as_dir in $PATH
6892 IFS=$as_save_IFS
6893 test -z "$as_dir" && as_dir=.
6894 for ac_exec_ext in '' $ac_executable_extensions; do
6895 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6896 ac_cv_prog_GIT="$ac_prog"
6897 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6898 break 2
6900 done
6901 done
6902 IFS=$as_save_IFS
6906 GIT=$ac_cv_prog_GIT
6907 if test -n "$GIT"; then
6908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $GIT" >&5
6909 $as_echo "$GIT" >&6; }
6910 else
6911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6912 $as_echo "no" >&6; }
6916 test -n "$GIT" && break
6917 done
6921 for ac_prog in python
6923 # Extract the first word of "$ac_prog", so it can be a program name with args.
6924 set dummy $ac_prog; ac_word=$2
6925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6926 $as_echo_n "checking for $ac_word... " >&6; }
6927 if ${ac_cv_prog_PYTHON+:} false; then :
6928 $as_echo_n "(cached) " >&6
6929 else
6930 if test -n "$PYTHON"; then
6931 ac_cv_prog_PYTHON="$PYTHON" # Let the user override the test.
6932 else
6933 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6934 for as_dir in $PATH
6936 IFS=$as_save_IFS
6937 test -z "$as_dir" && as_dir=.
6938 for ac_exec_ext in '' $ac_executable_extensions; do
6939 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6940 ac_cv_prog_PYTHON="$ac_prog"
6941 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6942 break 2
6944 done
6945 done
6946 IFS=$as_save_IFS
6950 PYTHON=$ac_cv_prog_PYTHON
6951 if test -n "$PYTHON"; then
6952 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON" >&5
6953 $as_echo "$PYTHON" >&6; }
6954 else
6955 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
6956 $as_echo "no" >&6; }
6960 test -n "$PYTHON" && break
6961 done
6962 test -n "$PYTHON" || PYTHON="python2.7"
6966 for ac_prog in python3
6968 # Extract the first word of "$ac_prog", so it can be a program name with args.
6969 set dummy $ac_prog; ac_word=$2
6970 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
6971 $as_echo_n "checking for $ac_word... " >&6; }
6972 if ${ac_cv_prog_PYTHON3+:} false; then :
6973 $as_echo_n "(cached) " >&6
6974 else
6975 if test -n "$PYTHON3"; then
6976 ac_cv_prog_PYTHON3="$PYTHON3" # Let the user override the test.
6977 else
6978 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6979 for as_dir in $PATH
6981 IFS=$as_save_IFS
6982 test -z "$as_dir" && as_dir=.
6983 for ac_exec_ext in '' $ac_executable_extensions; do
6984 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
6985 ac_cv_prog_PYTHON3="$ac_prog"
6986 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
6987 break 2
6989 done
6990 done
6991 IFS=$as_save_IFS
6995 PYTHON3=$ac_cv_prog_PYTHON3
6996 if test -n "$PYTHON3"; then
6997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PYTHON3" >&5
6998 $as_echo "$PYTHON3" >&6; }
6999 else
7000 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7001 $as_echo "no" >&6; }
7005 test -n "$PYTHON3" && break
7006 done
7007 test -n "$PYTHON3" || PYTHON3="python3.4"
7011 enable_python2=false
7012 if test "x$do_python" != "xno"; then :
7014 enable_python2=true
7015 if test -z "$PYTHON"
7016 then
7017 enable_python2=false
7018 else
7019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python version" >&5
7020 $as_echo_n "checking Python version... " >&6; }
7021 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 }'`
7022 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PY_MAJOR.$PY_MINOR.$PY_POINT" >&5
7023 $as_echo "$PY_MAJOR.$PY_MINOR.$PY_POINT" >&6; }
7024 if test "$PY_MAJOR" -lt 2; then
7025 echo WARNING: Python version 2.6 or later does not seem to be installed.
7026 echo Cannot proceed with the Python $PY_MAJOR installation found.
7027 enable_python2=false
7029 if test "$PY_MAJOR" -eq 2 -a "$PY_MINOR" -lt 6 ; then
7030 echo WARNING: Python version 2.$PY_MINOR is too old.
7031 echo Python version 2.6 or later is required for Python builds.
7032 enable_python2=false
7034 for ac_header in python${PY_MAJOR}.${PY_MINOR}/Python.h
7035 do :
7036 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7037 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7038 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7039 cat >>confdefs.h <<_ACEOF
7040 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7041 _ACEOF
7043 else
7045 echo WARNING: Python version $PY_MAJOR.$PY_MINOR header file missing.
7046 echo Cannot proceed with the Python $PY_MAJOR installation found.
7047 enable_python2=false
7051 done
7055 if test "$do_python" != "check" -a "$enable_python2" != "true"
7056 then
7057 as_fn_error $? "cannot enable Python - no supported version found" "$LINENO" 5
7063 enable_python3=false
7064 if test "x$do_python3" != "xno"; then :
7066 enable_python3=true
7067 if test -z "$PYTHON3"
7068 then
7069 enable_python3=false
7070 else
7071 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Python3 version" >&5
7072 $as_echo_n "checking Python3 version... " >&6; }
7073 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 }'`
7074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PY_MAJOR.$PY_MINOR.$PY_POINT" >&5
7075 $as_echo "$PY_MAJOR.$PY_MINOR.$PY_POINT" >&6; }
7076 if test "$PY_MAJOR" -lt 3; then
7077 echo WARNING: Python version 3.3 or later does not seem to be installed.
7078 echo Cannot proceed with the Python $PY_MAJOR installation found.
7079 enable_python3=false
7081 if test "$PY_MAJOR" -eq 3 -a "$PY_MINOR" -lt 3 ; then
7082 echo WARNING: Python version 3.$PY_MINOR is too old.
7083 echo Python version 3.3 or later is required for Python builds.
7084 enable_python3=false
7086 for ac_header in python${PY_MAJOR}.${PY_MINOR}m/Python.h
7087 do :
7088 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
7089 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
7090 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
7091 cat >>confdefs.h <<_ACEOF
7092 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
7093 _ACEOF
7095 else
7097 echo WARNING: Python version $PY_MAJOR.$PY_MINOR header file missing.
7098 echo Cannot proceed with the Python $PY_MAJOR installation found.
7099 enable_python3=false
7103 done
7107 if test "$do_python3" != "check" -a "$enable_python3" != "true"
7108 then
7109 as_fn_error $? "cannot enable Python3 - no supported version found" "$LINENO" 5
7115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for any python version" >&5
7116 $as_echo_n "checking for any python version... " >&6; }
7117 if test "$cross_compiling" = "yes"; then
7118 ans=$have_python
7119 echo "cross-compile -> \"$ans\"" >&5
7120 elif test "$enable_python2" = "true" -o "$enable_python3" = "true"
7121 then
7122 have_python=true
7123 else
7124 have_python=false
7127 if $have_python; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7128 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7129 $as_echo "no" >&6; }; fi
7131 if test "$enable_python3" = "true"
7132 then
7133 pcp_python_prog=$PYTHON3
7134 elif test "$enable_python2" = "true"
7135 then
7136 pcp_python_prog=$PYTHON
7137 else
7138 pcp_python_prog=""
7143 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python module jsonpointer" >&5
7144 $as_echo_n "checking for Python module jsonpointer... " >&6; }
7145 if test -n ""
7146 then
7147 txt=""
7148 else
7149 txt="import jsonpointer"
7151 $pcp_python_prog -c 'import sys;
7152 '"$txt" >>config.log 2>&1
7153 if test "$?" = 0
7154 then
7155 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7156 $as_echo "yes" >&6; }
7157 eval have_python_jsonpointer=true
7158 else
7159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7160 $as_echo "no" >&6; }
7161 eval have_python_jsonpointer=false
7165 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for Python module six" >&5
7166 $as_echo_n "checking for Python module six... " >&6; }
7167 if test -n ""
7168 then
7169 txt=""
7170 else
7171 txt="import six"
7173 $pcp_python_prog -c 'import sys;
7174 '"$txt" >>config.log 2>&1
7175 if test "$?" = 0
7176 then
7177 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7178 $as_echo "yes" >&6; }
7179 eval have_python_six=true
7180 else
7181 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7182 $as_echo "no" >&6; }
7183 eval have_python_six=false
7188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the json PMDA should be included" >&5
7189 $as_echo_n "checking if the json PMDA should be included... " >&6; }
7190 pmda_json=false
7191 if test "x$do_pmdajson" = "xyes"; then :
7192 pmda_json=true
7194 if test "x$do_pmdajson" = "xcheck"; then :
7196 $have_python_jsonpointer && $have_python_six && pmda_json=true
7199 PMDA_JSON=$pmda_json
7201 if $pmda_json; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7202 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7203 $as_echo "no" >&6; }; fi
7205 for ac_prog in perl
7207 # Extract the first word of "$ac_prog", so it can be a program name with args.
7208 set dummy $ac_prog; ac_word=$2
7209 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7210 $as_echo_n "checking for $ac_word... " >&6; }
7211 if ${ac_cv_prog_PERL+:} false; then :
7212 $as_echo_n "(cached) " >&6
7213 else
7214 if test -n "$PERL"; then
7215 ac_cv_prog_PERL="$PERL" # Let the user override the test.
7216 else
7217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7218 for as_dir in $PATH
7220 IFS=$as_save_IFS
7221 test -z "$as_dir" && as_dir=.
7222 for ac_exec_ext in '' $ac_executable_extensions; do
7223 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7224 ac_cv_prog_PERL="$ac_prog"
7225 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7226 break 2
7228 done
7229 done
7230 IFS=$as_save_IFS
7234 PERL=$ac_cv_prog_PERL
7235 if test -n "$PERL"; then
7236 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PERL" >&5
7237 $as_echo "$PERL" >&6; }
7238 else
7239 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7240 $as_echo "no" >&6; }
7244 test -n "$PERL" && break
7245 done
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for any perl version" >&5
7250 $as_echo_n "checking for any perl version... " >&6; }
7251 if test "$cross_compiling" = "yes"; then
7252 ans=$have_perl
7253 echo "cross-compile -> \"$ans\"" >&5
7254 elif test -n "$PERL"
7255 then
7256 pcp_perl_prog=$PERL
7257 have_perl=true
7258 else
7259 pcp_perl_prog=""
7260 have_perl=false
7264 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $pcp_perl_prog" >&5
7265 $as_echo "$pcp_perl_prog" >&6; }
7267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the SNMP PMDA should be included" >&5
7268 $as_echo_n "checking if the SNMP PMDA should be included... " >&6; }
7269 pmda_snmp=false
7270 if test "$have_perl" = true
7271 then
7272 if $pcp_perl_prog -e "use Net::SNMP" >/dev/null 2>&1
7273 then
7274 pmda_snmp=true
7277 PMDA_SNMP=$pmda_snmp
7279 if $pmda_snmp; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7280 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7281 $as_echo "no" >&6; }; fi
7283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the mysql PMDA should be included" >&5
7284 $as_echo_n "checking if the mysql PMDA should be included... " >&6; }
7285 pmda_mysql=false
7286 if test "$have_perl" = true
7287 then
7288 if $pcp_perl_prog -e "use DBI" >/dev/null 2>&1
7289 then
7290 if $pcp_perl_prog -e "use DBD::mysql" >/dev/null 2>&1
7291 then
7292 pmda_mysql=true
7296 PMDA_MYSQL=$pmda_mysql
7298 if $pmda_mysql; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7299 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7300 $as_echo "no" >&6; }; fi
7302 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the postgresql PMDA should be included" >&5
7303 $as_echo_n "checking if the postgresql PMDA should be included... " >&6; }
7304 pmda_postgresql=false
7305 if test "$have_perl" = true
7306 then
7307 if $pcp_perl_prog -e "use DBI" >/dev/null 2>&1
7308 then
7309 if $pcp_perl_prog -e "use DBD::Pg" >/dev/null 2>&1
7310 then
7311 pmda_postgresql=true
7315 PMDA_POSTGRESQL=$pmda_postgresql
7317 if $pmda_postgresql; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7318 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7319 $as_echo "no" >&6; }; fi
7321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the oracle PMDA should be included" >&5
7322 $as_echo_n "checking if the oracle PMDA should be included... " >&6; }
7323 pmda_oracle=false
7324 if test "$have_perl" = true
7325 then
7326 if $pcp_perl_prog -e "use DBI" >/dev/null 2>&1
7327 then
7328 pmda_oracle=true
7331 PMDA_ORACLE=$pmda_oracle
7333 if $pmda_oracle; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7334 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7335 $as_echo "no" >&6; }; fi
7337 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the elasticsearch PMDA should be included" >&5
7338 $as_echo_n "checking if the elasticsearch PMDA should be included... " >&6; }
7339 pmda_elasticsearch=false
7340 if test "$have_perl" = true
7341 then
7342 if $pcp_perl_prog -e "use LWP::UserAgent" >/dev/null 2>&1
7343 then
7344 pmda_elasticsearch=true
7347 PMDA_ELASTICSEARCH=$pmda_elasticsearch
7349 if $pmda_elasticsearch; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7350 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7351 $as_echo "no" >&6; }; fi
7353 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the nginx PMDA should be included" >&5
7354 $as_echo_n "checking if the nginx PMDA should be included... " >&6; }
7355 pmda_nginx=false
7356 if test "$have_perl" = true
7357 then
7358 if $pcp_perl_prog -e "use LWP::UserAgent" >/dev/null 2>&1
7359 then
7360 pmda_nginx=true
7363 PMDA_NGINX=$pmda_nginx
7365 if $pmda_nginx; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7366 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7367 $as_echo "no" >&6; }; fi
7369 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the activemq PMDA should be included" >&5
7370 $as_echo_n "checking if the activemq PMDA should be included... " >&6; }
7371 pmda_activemq=false
7372 if test "$have_perl" = true
7373 then
7374 if $pcp_perl_prog -e "use LWP::UserAgent" >/dev/null 2>&1
7375 then
7376 pmda_activemq=true
7379 PMDA_ACTIVEMQ=$pmda_activemq
7381 if $pmda_activemq; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7382 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7383 $as_echo "no" >&6; }; fi
7385 qmake=$QMAKE
7386 enable_qt=false
7387 qt_release=release
7388 if test "x$do_qt" != "xno"; then :
7390 enable_qt=true
7392 if test -z "$QMAKE"
7393 then
7394 for ac_prog in qmake-qt4 qmake
7396 # Extract the first word of "$ac_prog", so it can be a program name with args.
7397 set dummy $ac_prog; ac_word=$2
7398 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7399 $as_echo_n "checking for $ac_word... " >&6; }
7400 if ${ac_cv_path_QMAKE+:} false; then :
7401 $as_echo_n "(cached) " >&6
7402 else
7403 case $QMAKE in
7404 [\\/]* | ?:[\\/]*)
7405 ac_cv_path_QMAKE="$QMAKE" # Let the user override the test with a path.
7408 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7409 as_dummy="$QTDIR/bin:/usr/bin:/usr/lib64/qt4/bin:/usr/lib/qt4/bin"
7410 for as_dir in $as_dummy
7412 IFS=$as_save_IFS
7413 test -z "$as_dir" && as_dir=.
7414 for ac_exec_ext in '' $ac_executable_extensions; do
7415 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7416 ac_cv_path_QMAKE="$as_dir/$ac_word$ac_exec_ext"
7417 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7418 break 2
7420 done
7421 done
7422 IFS=$as_save_IFS
7425 esac
7427 QMAKE=$ac_cv_path_QMAKE
7428 if test -n "$QMAKE"; then
7429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QMAKE" >&5
7430 $as_echo "$QMAKE" >&6; }
7431 else
7432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7433 $as_echo "no" >&6; }
7437 test -n "$QMAKE" && break
7438 done
7440 test "x$cc_is_gcc" = xyes -a $target_os = solaris && QMAKE="$QMAKE -spec solaris-g++"
7442 qmake=$QMAKE
7443 if test -z "$QMAKE"
7444 then
7445 enable_qt=false
7446 else
7447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking Qt version" >&5
7448 $as_echo_n "checking Qt version... " >&6; }
7449 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 }'`
7450 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QT_MAJOR.$QT_MINOR.$QT_POINT" >&5
7451 $as_echo "$QT_MAJOR.$QT_MINOR.$QT_POINT" >&6; }
7452 if test "$QT_MAJOR" -lt 4; then
7453 echo WARNING: Qt version 4.4 or later does not seem to be installed.
7454 echo Cannot proceed with the Qt $QT_MAJOR installation found.
7455 enable_qt=false
7457 if test "$QT_MAJOR" -eq 4 -a "$QT_MINOR" -lt 4 ; then
7458 echo WARNING: Qt version 4.$QT_MINOR is too old.
7459 echo Qt version 4.4 or later is required for Qt builds.
7460 enable_qt=false
7464 if test "$do_qt" != "check" -a "$enable_qt" != "true"
7465 then
7466 as_fn_error $? "cannot enable Qt - no supported Qt installation found" "$LINENO" 5
7467 elif test "$enable_qt" = "true" -a "x$cxx" = "x"
7468 then
7469 enable_qt=false
7470 test "$do_qt" != "check" && \
7471 as_fn_error $? "C++ compiler unavailable, cannot build Qt components" "$LINENO" 5
7472 elif test "$do_qt" = "debug"
7473 then
7474 qt_release=debug
7475 enable_qt=true
7483 if test -z "$MAKE"
7484 then
7485 # Extract the first word of "gmake", so it can be a program name with args.
7486 set dummy gmake; ac_word=$2
7487 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7488 $as_echo_n "checking for $ac_word... " >&6; }
7489 if ${ac_cv_path_MAKE+:} false; then :
7490 $as_echo_n "(cached) " >&6
7491 else
7492 case $MAKE in
7493 [\\/]* | ?:[\\/]*)
7494 ac_cv_path_MAKE="$MAKE" # Let the user override the test with a path.
7497 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7498 for as_dir in $PATH
7500 IFS=$as_save_IFS
7501 test -z "$as_dir" && as_dir=.
7502 for ac_exec_ext in '' $ac_executable_extensions; do
7503 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7504 ac_cv_path_MAKE="$as_dir/$ac_word$ac_exec_ext"
7505 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7506 break 2
7508 done
7509 done
7510 IFS=$as_save_IFS
7513 esac
7515 MAKE=$ac_cv_path_MAKE
7516 if test -n "$MAKE"; then
7517 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
7518 $as_echo "$MAKE" >&6; }
7519 else
7520 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7521 $as_echo "no" >&6; }
7525 if test -z "$MAKE"
7526 then
7527 # look elsewhere ...
7528 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for GNU make elsewhere" >&5
7529 $as_echo_n "checking for GNU make elsewhere... " >&6; }
7530 for f in /usr/local/bin/gmake /usr/freeware/bin/gmake /usr/local/bin/make /opt/sfw/bin/gmake nowhere
7532 if test -x $f
7533 then
7534 MAKE=$f
7535 break
7537 done
7538 if test $f = nowhere
7539 then
7540 # Check if /usr/bin/make is any good
7541 mver=`/usr/bin/make --version 2>/dev/null | sed -n -e1p | cut -c1-8`
7542 if test "$mver" != "GNU Make"
7543 then
7544 echo
7545 echo "FATAL ERROR: could not find GNU make anywhere"
7546 echo "You need to set \$MAKE as the full path to GNU make "
7547 echo "in the environment."
7548 rm -rf conftest conftest.*
7549 exit 1
7550 else
7551 MAKE=/usr/bin/make
7554 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKE" >&5
7555 $as_echo "$MAKE" >&6; }
7558 make=$MAKE
7561 if test -z "$CPP"; then
7562 ac_ext=c
7563 ac_cpp='$CPP $CPPFLAGS'
7564 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7565 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7566 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7567 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
7568 $as_echo_n "checking how to run the C preprocessor... " >&6; }
7569 # On Suns, sometimes $CPP names a directory.
7570 if test -n "$CPP" && test -d "$CPP"; then
7571 CPP=
7573 if test -z "$CPP"; then
7574 if ${ac_cv_prog_CPP+:} false; then :
7575 $as_echo_n "(cached) " >&6
7576 else
7577 # Double quotes because CPP needs to be expanded
7578 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
7580 ac_preproc_ok=false
7581 for ac_c_preproc_warn_flag in '' yes
7583 # Use a header file that comes with gcc, so configuring glibc
7584 # with a fresh cross-compiler works.
7585 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7586 # <limits.h> exists even on freestanding compilers.
7587 # On the NeXT, cc -E runs the code through the compiler's parser,
7588 # not just through cpp. "Syntax error" is here to catch this case.
7589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7590 /* end confdefs.h. */
7591 #ifdef __STDC__
7592 # include <limits.h>
7593 #else
7594 # include <assert.h>
7595 #endif
7596 Syntax error
7597 _ACEOF
7598 if ac_fn_c_try_cpp "$LINENO"; then :
7600 else
7601 # Broken: fails on valid input.
7602 continue
7604 rm -f conftest.err conftest.i conftest.$ac_ext
7606 # OK, works on sane cases. Now check whether nonexistent headers
7607 # can be detected and how.
7608 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7609 /* end confdefs.h. */
7610 #include <ac_nonexistent.h>
7611 _ACEOF
7612 if ac_fn_c_try_cpp "$LINENO"; then :
7613 # Broken: success on invalid input.
7614 continue
7615 else
7616 # Passes both tests.
7617 ac_preproc_ok=:
7618 break
7620 rm -f conftest.err conftest.i conftest.$ac_ext
7622 done
7623 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7624 rm -f conftest.i conftest.err conftest.$ac_ext
7625 if $ac_preproc_ok; then :
7626 break
7629 done
7630 ac_cv_prog_CPP=$CPP
7633 CPP=$ac_cv_prog_CPP
7634 else
7635 ac_cv_prog_CPP=$CPP
7637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
7638 $as_echo "$CPP" >&6; }
7639 ac_preproc_ok=false
7640 for ac_c_preproc_warn_flag in '' yes
7642 # Use a header file that comes with gcc, so configuring glibc
7643 # with a fresh cross-compiler works.
7644 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7645 # <limits.h> exists even on freestanding compilers.
7646 # On the NeXT, cc -E runs the code through the compiler's parser,
7647 # not just through cpp. "Syntax error" is here to catch this case.
7648 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7649 /* end confdefs.h. */
7650 #ifdef __STDC__
7651 # include <limits.h>
7652 #else
7653 # include <assert.h>
7654 #endif
7655 Syntax error
7656 _ACEOF
7657 if ac_fn_c_try_cpp "$LINENO"; then :
7659 else
7660 # Broken: fails on valid input.
7661 continue
7663 rm -f conftest.err conftest.i conftest.$ac_ext
7665 # OK, works on sane cases. Now check whether nonexistent headers
7666 # can be detected and how.
7667 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
7668 /* end confdefs.h. */
7669 #include <ac_nonexistent.h>
7670 _ACEOF
7671 if ac_fn_c_try_cpp "$LINENO"; then :
7672 # Broken: success on invalid input.
7673 continue
7674 else
7675 # Passes both tests.
7676 ac_preproc_ok=:
7677 break
7679 rm -f conftest.err conftest.i conftest.$ac_ext
7681 done
7682 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
7683 rm -f conftest.i conftest.err conftest.$ac_ext
7684 if $ac_preproc_ok; then :
7686 else
7687 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
7688 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
7689 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
7690 See \`config.log' for more details" "$LINENO" 5; }
7693 ac_ext=c
7694 ac_cpp='$CPP $CPPFLAGS'
7695 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
7696 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
7697 ac_compiler_gnu=$ac_cv_c_compiler_gnu
7700 cpp=$CPP
7703 if test -z "$LD"; then
7704 # Extract the first word of "ld", so it can be a program name with args.
7705 set dummy ld; ac_word=$2
7706 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7707 $as_echo_n "checking for $ac_word... " >&6; }
7708 if ${ac_cv_path_LD+:} false; then :
7709 $as_echo_n "(cached) " >&6
7710 else
7711 case $LD in
7712 [\\/]* | ?:[\\/]*)
7713 ac_cv_path_LD="$LD" # Let the user override the test with a path.
7716 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7717 for as_dir in $PATH
7719 IFS=$as_save_IFS
7720 test -z "$as_dir" && as_dir=.
7721 for ac_exec_ext in '' $ac_executable_extensions; do
7722 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7723 ac_cv_path_LD="$as_dir/$ac_word$ac_exec_ext"
7724 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7725 break 2
7727 done
7728 done
7729 IFS=$as_save_IFS
7731 test -z "$ac_cv_path_LD" && ac_cv_path_LD="/usr/bin/ld"
7733 esac
7735 LD=$ac_cv_path_LD
7736 if test -n "$LD"; then
7737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LD" >&5
7738 $as_echo "$LD" >&6; }
7739 else
7740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7741 $as_echo "no" >&6; }
7746 ld=$LD
7749 if test -z "$PCP_USER_INSTALL" ; then
7750 pcp_user_install=root
7751 else
7752 pcp_user_install="$PCP_USER_INSTALL"
7755 if test -z "$PCP_GROUP_INSTALL" ; then
7756 case "$target_os"
7758 darwin|freebsd|netbsd|openbsd)
7759 pcp_group_install=wheel
7762 pcp_group_install=root
7764 esac
7765 else
7766 pcp_group_install="$PCP_GROUP_INSTALL"
7770 if test -z "$TAR"; then
7771 for ac_prog in gtar tar
7773 # Extract the first word of "$ac_prog", so it can be a program name with args.
7774 set dummy $ac_prog; ac_word=$2
7775 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7776 $as_echo_n "checking for $ac_word... " >&6; }
7777 if ${ac_cv_path_TAR+:} false; then :
7778 $as_echo_n "(cached) " >&6
7779 else
7780 case $TAR in
7781 [\\/]* | ?:[\\/]*)
7782 ac_cv_path_TAR="$TAR" # Let the user override the test with a path.
7785 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7786 for as_dir in $PATH
7788 IFS=$as_save_IFS
7789 test -z "$as_dir" && as_dir=.
7790 for ac_exec_ext in '' $ac_executable_extensions; do
7791 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7792 ac_cv_path_TAR="$as_dir/$ac_word$ac_exec_ext"
7793 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7794 break 2
7796 done
7797 done
7798 IFS=$as_save_IFS
7801 esac
7803 TAR=$ac_cv_path_TAR
7804 if test -n "$TAR"; then
7805 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TAR" >&5
7806 $as_echo "$TAR" >&6; }
7807 else
7808 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7809 $as_echo "no" >&6; }
7813 test -n "$TAR" && break
7814 done
7815 test -n "$TAR" || TAR="tar"
7818 if test $target_os = darwin -a -x /usr/bin/gnutar
7819 then
7820 TAR=/usr/bin/gnutar
7822 tar=$TAR
7825 if test -z "$ZIP"; then
7826 # Extract the first word of "gzip", so it can be a program name with args.
7827 set dummy gzip; ac_word=$2
7828 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7829 $as_echo_n "checking for $ac_word... " >&6; }
7830 if ${ac_cv_path_ZIP+:} false; then :
7831 $as_echo_n "(cached) " >&6
7832 else
7833 case $ZIP in
7834 [\\/]* | ?:[\\/]*)
7835 ac_cv_path_ZIP="$ZIP" # Let the user override the test with a path.
7838 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7839 for as_dir in $PATH
7841 IFS=$as_save_IFS
7842 test -z "$as_dir" && as_dir=.
7843 for ac_exec_ext in '' $ac_executable_extensions; do
7844 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7845 ac_cv_path_ZIP="$as_dir/$ac_word$ac_exec_ext"
7846 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7847 break 2
7849 done
7850 done
7851 IFS=$as_save_IFS
7853 test -z "$ac_cv_path_ZIP" && ac_cv_path_ZIP="/bin/gzip"
7855 esac
7857 ZIP=$ac_cv_path_ZIP
7858 if test -n "$ZIP"; then
7859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
7860 $as_echo "$ZIP" >&6; }
7861 else
7862 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7863 $as_echo "no" >&6; }
7868 test ! -x "$ZIP" && ZIP=/usr/local/bin/gzip
7869 test ! -x "$ZIP" && ZIP=/usr/freeware/bin/gzip
7870 test ! -x "$ZIP" && ZIP=/usr/bin/gzip
7871 gzip=$ZIP
7872 test -z "$gzip" && gzip=no-gzip
7875 if test -z "$BZIP2"; then
7876 # Extract the first word of "bzip2", so it can be a program name with args.
7877 set dummy bzip2; ac_word=$2
7878 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7879 $as_echo_n "checking for $ac_word... " >&6; }
7880 if ${ac_cv_path_BZIP2+:} false; then :
7881 $as_echo_n "(cached) " >&6
7882 else
7883 case $BZIP2 in
7884 [\\/]* | ?:[\\/]*)
7885 ac_cv_path_BZIP2="$BZIP2" # Let the user override the test with a path.
7888 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7889 for as_dir in $PATH
7891 IFS=$as_save_IFS
7892 test -z "$as_dir" && as_dir=.
7893 for ac_exec_ext in '' $ac_executable_extensions; do
7894 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7895 ac_cv_path_BZIP2="$as_dir/$ac_word$ac_exec_ext"
7896 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7897 break 2
7899 done
7900 done
7901 IFS=$as_save_IFS
7903 test -z "$ac_cv_path_BZIP2" && ac_cv_path_BZIP2="/bin/bzip2"
7905 esac
7907 BZIP2=$ac_cv_path_BZIP2
7908 if test -n "$BZIP2"; then
7909 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $BZIP2" >&5
7910 $as_echo "$BZIP2" >&6; }
7911 else
7912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7913 $as_echo "no" >&6; }
7918 test ! -x "$BZIP2" && BZIP2=/usr/bin/bzip2
7919 test ! -x "$BZIP2" && BZIP2=/usr/local/bin/bzip2
7920 test ! -x "$BZIP2" && BZIP2=/usr/freeware/bin/bzip2
7921 bzip2=$BZIP2
7922 test -z "$bzip2" && bzip2=no-bzip2
7925 if test -z "$LZMA"; then
7926 # Extract the first word of "lzma", so it can be a program name with args.
7927 set dummy lzma; ac_word=$2
7928 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7929 $as_echo_n "checking for $ac_word... " >&6; }
7930 if ${ac_cv_path_LZMA+:} false; then :
7931 $as_echo_n "(cached) " >&6
7932 else
7933 case $LZMA in
7934 [\\/]* | ?:[\\/]*)
7935 ac_cv_path_LZMA="$LZMA" # Let the user override the test with a path.
7938 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7939 for as_dir in $PATH
7941 IFS=$as_save_IFS
7942 test -z "$as_dir" && as_dir=.
7943 for ac_exec_ext in '' $ac_executable_extensions; do
7944 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7945 ac_cv_path_LZMA="$as_dir/$ac_word$ac_exec_ext"
7946 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7947 break 2
7949 done
7950 done
7951 IFS=$as_save_IFS
7953 test -z "$ac_cv_path_LZMA" && ac_cv_path_LZMA="/bin/lzma"
7955 esac
7957 LZMA=$ac_cv_path_LZMA
7958 if test -n "$LZMA"; then
7959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $LZMA" >&5
7960 $as_echo "$LZMA" >&6; }
7961 else
7962 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7963 $as_echo "no" >&6; }
7968 test ! -x "$LZMA" && LZMA=/usr/bin/lzma
7969 test ! -x "$LZMA" && LZMA=/usr/local/bin/lzma
7970 test ! -x "$LZMA" && LZMA=/usr/freeware/bin/lzma
7971 lzma=$LZMA
7972 test -z "$lzma" && lzma=no-lzma
7975 if test -z "$XZ"; then
7976 # Extract the first word of "xz", so it can be a program name with args.
7977 set dummy xz; ac_word=$2
7978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
7979 $as_echo_n "checking for $ac_word... " >&6; }
7980 if ${ac_cv_path_XZ+:} false; then :
7981 $as_echo_n "(cached) " >&6
7982 else
7983 case $XZ in
7984 [\\/]* | ?:[\\/]*)
7985 ac_cv_path_XZ="$XZ" # Let the user override the test with a path.
7988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7989 for as_dir in $PATH
7991 IFS=$as_save_IFS
7992 test -z "$as_dir" && as_dir=.
7993 for ac_exec_ext in '' $ac_executable_extensions; do
7994 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
7995 ac_cv_path_XZ="$as_dir/$ac_word$ac_exec_ext"
7996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
7997 break 2
7999 done
8000 done
8001 IFS=$as_save_IFS
8003 test -z "$ac_cv_path_XZ" && ac_cv_path_XZ="/bin/xz"
8005 esac
8007 XZ=$ac_cv_path_XZ
8008 if test -n "$XZ"; then
8009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XZ" >&5
8010 $as_echo "$XZ" >&6; }
8011 else
8012 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8013 $as_echo "no" >&6; }
8018 test ! -x "$XZ" && XZ=/usr/bin/xz
8019 test ! -x "$XZ" && XZ=/usr/local/bin/xz
8020 test ! -x "$XZ" && XZ=/usr/freeware/bin/xz
8021 xz=$XZ
8022 test -z "$xz" && xz=no-xz
8025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PackageMaker" >&5
8026 $as_echo_n "checking for PackageMaker... " >&6; }
8027 if test -z "$PACKAGE_MAKER"
8028 then
8029 if test $target_os = darwin
8030 then
8031 if test -x /Applications/PackageMaker.app/Contents/MacOS/PackageMaker
8032 then # local XCode extras install
8033 package_maker=/Applications/PackageMaker.app/Contents/MacOS/PackageMaker
8034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (local install)" >&5
8035 $as_echo " yes (local install)" >&6; }
8036 elif test -x /Developer/Applications/PackageMaker.app/Contents/MacOS/PackageMaker
8037 then # Darwin 6.x
8038 package_maker=/Developer/Applications/PackageMaker.app/Contents/MacOS/PackageMaker
8039 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (darwin 6.x)" >&5
8040 $as_echo " yes (darwin 6.x)" >&6; }
8041 elif test -x /Developer/Applications/Utilities/PackageMaker.app/Contents/MacOS/PackageMaker
8042 then # Darwin 7.x
8043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes (darwin 7.x)" >&5
8044 $as_echo " yes (darwin 7.x)" >&6; }
8045 package_maker=/Developer/Applications/Utilities/PackageMaker.app/Contents/MacOS/PackageMaker
8046 else
8047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: not found!" >&5
8048 $as_echo " not found!" >&6; }
8049 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: PackageMaker not found, mac packages will not be made" >&5
8050 $as_echo "$as_me: WARNING: PackageMaker not found, mac packages will not be made" >&2;}
8052 else
8053 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8054 $as_echo " no" >&6; }
8056 else
8057 package_maker="$PACKAGE_MAKER"
8061 if test -z "$HDIUTIL"; then
8062 # Extract the first word of "hdiutil", so it can be a program name with args.
8063 set dummy hdiutil; ac_word=$2
8064 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8065 $as_echo_n "checking for $ac_word... " >&6; }
8066 if ${ac_cv_path_HDIUTIL+:} false; then :
8067 $as_echo_n "(cached) " >&6
8068 else
8069 case $HDIUTIL in
8070 [\\/]* | ?:[\\/]*)
8071 ac_cv_path_HDIUTIL="$HDIUTIL" # Let the user override the test with a path.
8074 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8075 for as_dir in $PATH
8077 IFS=$as_save_IFS
8078 test -z "$as_dir" && as_dir=.
8079 for ac_exec_ext in '' $ac_executable_extensions; do
8080 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8081 ac_cv_path_HDIUTIL="$as_dir/$ac_word$ac_exec_ext"
8082 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8083 break 2
8085 done
8086 done
8087 IFS=$as_save_IFS
8090 esac
8092 HDIUTIL=$ac_cv_path_HDIUTIL
8093 if test -n "$HDIUTIL"; then
8094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HDIUTIL" >&5
8095 $as_echo "$HDIUTIL" >&6; }
8096 else
8097 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8098 $as_echo "no" >&6; }
8103 hdiutil=$HDIUTIL
8106 if test -z "$MKINSTALLP"; then
8107 # Extract the first word of "mkinstallp", so it can be a program name with args.
8108 set dummy mkinstallp; ac_word=$2
8109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8110 $as_echo_n "checking for $ac_word... " >&6; }
8111 if ${ac_cv_path_MKINSTALLP+:} false; then :
8112 $as_echo_n "(cached) " >&6
8113 else
8114 case $MKINSTALLP in
8115 [\\/]* | ?:[\\/]*)
8116 ac_cv_path_MKINSTALLP="$MKINSTALLP" # Let the user override the test with a path.
8119 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8120 for as_dir in $PATH
8122 IFS=$as_save_IFS
8123 test -z "$as_dir" && as_dir=.
8124 for ac_exec_ext in '' $ac_executable_extensions; do
8125 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8126 ac_cv_path_MKINSTALLP="$as_dir/$ac_word$ac_exec_ext"
8127 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8128 break 2
8130 done
8131 done
8132 IFS=$as_save_IFS
8135 esac
8137 MKINSTALLP=$ac_cv_path_MKINSTALLP
8138 if test -n "$MKINSTALLP"; then
8139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKINSTALLP" >&5
8140 $as_echo "$MKINSTALLP" >&6; }
8141 else
8142 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8143 $as_echo "no" >&6; }
8148 mkinstallp=$MKINSTALLP
8151 if test -z "$PKGMK"; then
8152 # Extract the first word of "pkgmk", so it can be a program name with args.
8153 set dummy pkgmk; ac_word=$2
8154 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8155 $as_echo_n "checking for $ac_word... " >&6; }
8156 if ${ac_cv_path_PKGMK+:} false; then :
8157 $as_echo_n "(cached) " >&6
8158 else
8159 case $PKGMK in
8160 [\\/]* | ?:[\\/]*)
8161 ac_cv_path_PKGMK="$PKGMK" # Let the user override the test with a path.
8164 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8165 for as_dir in $PATH
8167 IFS=$as_save_IFS
8168 test -z "$as_dir" && as_dir=.
8169 for ac_exec_ext in '' $ac_executable_extensions; do
8170 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8171 ac_cv_path_PKGMK="$as_dir/$ac_word$ac_exec_ext"
8172 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8173 break 2
8175 done
8176 done
8177 IFS=$as_save_IFS
8180 esac
8182 PKGMK=$ac_cv_path_PKGMK
8183 if test -n "$PKGMK"; then
8184 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKGMK" >&5
8185 $as_echo "$PKGMK" >&6; }
8186 else
8187 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8188 $as_echo "no" >&6; }
8193 pkgmk=$PKGMK
8196 if test -z "$DLLTOOL"; then
8197 # Extract the first word of "dlltool", so it can be a program name with args.
8198 set dummy dlltool; ac_word=$2
8199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8200 $as_echo_n "checking for $ac_word... " >&6; }
8201 if ${ac_cv_path_DLLTOOL+:} false; then :
8202 $as_echo_n "(cached) " >&6
8203 else
8204 case $DLLTOOL in
8205 [\\/]* | ?:[\\/]*)
8206 ac_cv_path_DLLTOOL="$DLLTOOL" # Let the user override the test with a path.
8209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8210 for as_dir in $PATH
8212 IFS=$as_save_IFS
8213 test -z "$as_dir" && as_dir=.
8214 for ac_exec_ext in '' $ac_executable_extensions; do
8215 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8216 ac_cv_path_DLLTOOL="$as_dir/$ac_word$ac_exec_ext"
8217 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8218 break 2
8220 done
8221 done
8222 IFS=$as_save_IFS
8225 esac
8227 DLLTOOL=$ac_cv_path_DLLTOOL
8228 if test -n "$DLLTOOL"; then
8229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DLLTOOL" >&5
8230 $as_echo "$DLLTOOL" >&6; }
8231 else
8232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8233 $as_echo "no" >&6; }
8238 dlltool=$DLLTOOL
8241 if test -z "$RPMBUILD"; then
8242 # Extract the first word of "rpmbuild", so it can be a program name with args.
8243 set dummy rpmbuild; ac_word=$2
8244 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8245 $as_echo_n "checking for $ac_word... " >&6; }
8246 if ${ac_cv_path_RPMBUILD+:} false; then :
8247 $as_echo_n "(cached) " >&6
8248 else
8249 case $RPMBUILD in
8250 [\\/]* | ?:[\\/]*)
8251 ac_cv_path_RPMBUILD="$RPMBUILD" # Let the user override the test with a path.
8254 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8255 for as_dir in $PATH
8257 IFS=$as_save_IFS
8258 test -z "$as_dir" && as_dir=.
8259 for ac_exec_ext in '' $ac_executable_extensions; do
8260 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8261 ac_cv_path_RPMBUILD="$as_dir/$ac_word$ac_exec_ext"
8262 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8263 break 2
8265 done
8266 done
8267 IFS=$as_save_IFS
8270 esac
8272 RPMBUILD=$ac_cv_path_RPMBUILD
8273 if test -n "$RPMBUILD"; then
8274 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPMBUILD" >&5
8275 $as_echo "$RPMBUILD" >&6; }
8276 else
8277 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8278 $as_echo "no" >&6; }
8283 test $target_distro = slackware && RPMBUILD=''
8284 rpmbuild=$RPMBUILD
8287 if test -z "$RPM"; then
8288 # Extract the first word of "rpm", so it can be a program name with args.
8289 set dummy rpm; ac_word=$2
8290 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8291 $as_echo_n "checking for $ac_word... " >&6; }
8292 if ${ac_cv_path_RPM+:} false; then :
8293 $as_echo_n "(cached) " >&6
8294 else
8295 case $RPM in
8296 [\\/]* | ?:[\\/]*)
8297 ac_cv_path_RPM="$RPM" # Let the user override the test with a path.
8300 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8301 for as_dir in $PATH
8303 IFS=$as_save_IFS
8304 test -z "$as_dir" && as_dir=.
8305 for ac_exec_ext in '' $ac_executable_extensions; do
8306 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8307 ac_cv_path_RPM="$as_dir/$ac_word$ac_exec_ext"
8308 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8309 break 2
8311 done
8312 done
8313 IFS=$as_save_IFS
8316 esac
8318 RPM=$ac_cv_path_RPM
8319 if test -n "$RPM"; then
8320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RPM" >&5
8321 $as_echo "$RPM" >&6; }
8322 else
8323 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8324 $as_echo "no" >&6; }
8329 test $target_distro = slackware && RPM=''
8330 rpm=$RPM
8333 if test -n "$RPMBUILD" -a -x "$RPMBUILD"
8334 then
8335 rpmprog=$RPMBUILD
8336 else
8337 rpmprog=$RPM
8341 if test -z "$POD2MAN"; then
8342 # Extract the first word of "pod2man", so it can be a program name with args.
8343 set dummy pod2man; ac_word=$2
8344 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8345 $as_echo_n "checking for $ac_word... " >&6; }
8346 if ${ac_cv_path_POD2MAN+:} false; then :
8347 $as_echo_n "(cached) " >&6
8348 else
8349 case $POD2MAN in
8350 [\\/]* | ?:[\\/]*)
8351 ac_cv_path_POD2MAN="$POD2MAN" # Let the user override the test with a path.
8354 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8355 for as_dir in $PATH
8357 IFS=$as_save_IFS
8358 test -z "$as_dir" && as_dir=.
8359 for ac_exec_ext in '' $ac_executable_extensions; do
8360 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8361 ac_cv_path_POD2MAN="$as_dir/$ac_word$ac_exec_ext"
8362 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8363 break 2
8365 done
8366 done
8367 IFS=$as_save_IFS
8370 esac
8372 POD2MAN=$ac_cv_path_POD2MAN
8373 if test -n "$POD2MAN"; then
8374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $POD2MAN" >&5
8375 $as_echo "$POD2MAN" >&6; }
8376 else
8377 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8378 $as_echo "no" >&6; }
8383 pod2man=$POD2MAN
8386 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if ExtUtils::MakeMaker is installed" >&5
8387 $as_echo_n "checking if ExtUtils::MakeMaker is installed... " >&6; }
8388 perl -e "use ExtUtils::MakeMaker" 2>/dev/null
8389 if test $? -eq 0
8390 then
8391 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8392 $as_echo " yes" >&6; }
8393 else
8394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8395 $as_echo " no" >&6; }
8396 echo
8397 echo "FATAL ERROR: Perl ExtUtils::MakeMaker module missing."
8398 echo "You can either install this from your distribution, or"
8399 echo "download from CPAN (Comprehensive Perl Archive Network)."
8400 rm -rf conftest conftest.*
8401 exit 1
8404 # Extract the first word of "true", so it can be a program name with args.
8405 set dummy true; ac_word=$2
8406 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8407 $as_echo_n "checking for $ac_word... " >&6; }
8408 if ${ac_cv_path_TRUEPROG+:} false; then :
8409 $as_echo_n "(cached) " >&6
8410 else
8411 case $TRUEPROG in
8412 [\\/]* | ?:[\\/]*)
8413 ac_cv_path_TRUEPROG="$TRUEPROG" # Let the user override the test with a path.
8416 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8417 for as_dir in $PATH
8419 IFS=$as_save_IFS
8420 test -z "$as_dir" && as_dir=.
8421 for ac_exec_ext in '' $ac_executable_extensions; do
8422 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8423 ac_cv_path_TRUEPROG="$as_dir/$ac_word$ac_exec_ext"
8424 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8425 break 2
8427 done
8428 done
8429 IFS=$as_save_IFS
8432 esac
8434 TRUEPROG=$ac_cv_path_TRUEPROG
8435 if test -n "$TRUEPROG"; then
8436 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $TRUEPROG" >&5
8437 $as_echo "$TRUEPROG" >&6; }
8438 else
8439 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8440 $as_echo "no" >&6; }
8445 if test -z "$MAKEDEPEND"; then
8446 # Extract the first word of "makedepend", so it can be a program name with args.
8447 set dummy makedepend; ac_word=$2
8448 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8449 $as_echo_n "checking for $ac_word... " >&6; }
8450 if ${ac_cv_path_MAKEDEPEND+:} false; then :
8451 $as_echo_n "(cached) " >&6
8452 else
8453 case $MAKEDEPEND in
8454 [\\/]* | ?:[\\/]*)
8455 ac_cv_path_MAKEDEPEND="$MAKEDEPEND" # Let the user override the test with a path.
8458 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8459 for as_dir in $PATH
8461 IFS=$as_save_IFS
8462 test -z "$as_dir" && as_dir=.
8463 for ac_exec_ext in '' $ac_executable_extensions; do
8464 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8465 ac_cv_path_MAKEDEPEND="$as_dir/$ac_word$ac_exec_ext"
8466 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8467 break 2
8469 done
8470 done
8471 IFS=$as_save_IFS
8473 test -z "$ac_cv_path_MAKEDEPEND" && ac_cv_path_MAKEDEPEND="$TRUEPROG"
8475 esac
8477 MAKEDEPEND=$ac_cv_path_MAKEDEPEND
8478 if test -n "$MAKEDEPEND"; then
8479 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEDEPEND" >&5
8480 $as_echo "$MAKEDEPEND" >&6; }
8481 else
8482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8483 $as_echo "no" >&6; }
8488 makedepend=$MAKEDEPEND
8491 if test -z "$MD5SUM"; then
8492 # Extract the first word of "md5sum", so it can be a program name with args.
8493 set dummy md5sum; ac_word=$2
8494 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8495 $as_echo_n "checking for $ac_word... " >&6; }
8496 if ${ac_cv_path_MD5SUM+:} false; then :
8497 $as_echo_n "(cached) " >&6
8498 else
8499 case $MD5SUM in
8500 [\\/]* | ?:[\\/]*)
8501 ac_cv_path_MD5SUM="$MD5SUM" # Let the user override the test with a path.
8504 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8505 for as_dir in $PATH
8507 IFS=$as_save_IFS
8508 test -z "$as_dir" && as_dir=.
8509 for ac_exec_ext in '' $ac_executable_extensions; do
8510 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8511 ac_cv_path_MD5SUM="$as_dir/$ac_word$ac_exec_ext"
8512 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8513 break 2
8515 done
8516 done
8517 IFS=$as_save_IFS
8519 test -z "$ac_cv_path_MD5SUM" && ac_cv_path_MD5SUM="$TRUEPROG"
8521 esac
8523 MD5SUM=$ac_cv_path_MD5SUM
8524 if test -n "$MD5SUM"; then
8525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MD5SUM" >&5
8526 $as_echo "$MD5SUM" >&6; }
8527 else
8528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8529 $as_echo "no" >&6; }
8534 md5sum=$MD5SUM
8537 if test -z "$DPKG"; then
8538 # Extract the first word of "dpkg", so it can be a program name with args.
8539 set dummy dpkg; ac_word=$2
8540 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8541 $as_echo_n "checking for $ac_word... " >&6; }
8542 if ${ac_cv_path_DPKG+:} false; then :
8543 $as_echo_n "(cached) " >&6
8544 else
8545 case $DPKG in
8546 [\\/]* | ?:[\\/]*)
8547 ac_cv_path_DPKG="$DPKG" # Let the user override the test with a path.
8550 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8551 for as_dir in $PATH
8553 IFS=$as_save_IFS
8554 test -z "$as_dir" && as_dir=.
8555 for ac_exec_ext in '' $ac_executable_extensions; do
8556 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8557 ac_cv_path_DPKG="$as_dir/$ac_word$ac_exec_ext"
8558 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8559 break 2
8561 done
8562 done
8563 IFS=$as_save_IFS
8566 esac
8568 DPKG=$ac_cv_path_DPKG
8569 if test -n "$DPKG"; then
8570 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DPKG" >&5
8571 $as_echo "$DPKG" >&6; }
8572 else
8573 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8574 $as_echo "no" >&6; }
8579 dpkg=$DKPG
8582 if test -z "$MAKEPKG"; then
8583 # Extract the first word of "makepkg", so it can be a program name with args.
8584 set dummy makepkg; ac_word=$2
8585 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8586 $as_echo_n "checking for $ac_word... " >&6; }
8587 if ${ac_cv_path_MAKEPKG+:} false; then :
8588 $as_echo_n "(cached) " >&6
8589 else
8590 case $MAKEPKG in
8591 [\\/]* | ?:[\\/]*)
8592 ac_cv_path_MAKEPKG="$MAKEPKG" # Let the user override the test with a path.
8595 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8596 for as_dir in $PATH
8598 IFS=$as_save_IFS
8599 test -z "$as_dir" && as_dir=.
8600 for ac_exec_ext in '' $ac_executable_extensions; do
8601 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8602 ac_cv_path_MAKEPKG="$as_dir/$ac_word$ac_exec_ext"
8603 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8604 break 2
8606 done
8607 done
8608 IFS=$as_save_IFS
8611 esac
8613 MAKEPKG=$ac_cv_path_MAKEPKG
8614 if test -n "$MAKEPKG"; then
8615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAKEPKG" >&5
8616 $as_echo "$MAKEPKG" >&6; }
8617 else
8618 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8619 $as_echo "no" >&6; }
8624 makepkg=$MAKEPKG
8627 test -z "$PUBLICAN" && # Extract the first word of "publican", so it can be a program name with args.
8628 set dummy publican; ac_word=$2
8629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8630 $as_echo_n "checking for $ac_word... " >&6; }
8631 if ${ac_cv_path_PUBLICAN+:} false; then :
8632 $as_echo_n "(cached) " >&6
8633 else
8634 case $PUBLICAN in
8635 [\\/]* | ?:[\\/]*)
8636 ac_cv_path_PUBLICAN="$PUBLICAN" # Let the user override the test with a path.
8639 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8640 for as_dir in $PATH
8642 IFS=$as_save_IFS
8643 test -z "$as_dir" && as_dir=.
8644 for ac_exec_ext in '' $ac_executable_extensions; do
8645 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8646 ac_cv_path_PUBLICAN="$as_dir/$ac_word$ac_exec_ext"
8647 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8648 break 2
8650 done
8651 done
8652 IFS=$as_save_IFS
8655 esac
8657 PUBLICAN=$ac_cv_path_PUBLICAN
8658 if test -n "$PUBLICAN"; then
8659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PUBLICAN" >&5
8660 $as_echo "$PUBLICAN" >&6; }
8661 else
8662 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8663 $as_echo "no" >&6; }
8667 publican=$PUBLICAN
8669 test -z "$DBLATEX" && # Extract the first word of "dblatex", so it can be a program name with args.
8670 set dummy dblatex; ac_word=$2
8671 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8672 $as_echo_n "checking for $ac_word... " >&6; }
8673 if ${ac_cv_path_DBLATEX+:} false; then :
8674 $as_echo_n "(cached) " >&6
8675 else
8676 case $DBLATEX in
8677 [\\/]* | ?:[\\/]*)
8678 ac_cv_path_DBLATEX="$DBLATEX" # Let the user override the test with a path.
8681 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8682 for as_dir in $PATH
8684 IFS=$as_save_IFS
8685 test -z "$as_dir" && as_dir=.
8686 for ac_exec_ext in '' $ac_executable_extensions; do
8687 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8688 ac_cv_path_DBLATEX="$as_dir/$ac_word$ac_exec_ext"
8689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8690 break 2
8692 done
8693 done
8694 IFS=$as_save_IFS
8697 esac
8699 DBLATEX=$ac_cv_path_DBLATEX
8700 if test -n "$DBLATEX"; then
8701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $DBLATEX" >&5
8702 $as_echo "$DBLATEX" >&6; }
8703 else
8704 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8705 $as_echo "no" >&6; }
8709 dblatex=$DBLATEX
8711 test -z "$XMLTO" && # Extract the first word of "xmlto", so it can be a program name with args.
8712 set dummy xmlto; ac_word=$2
8713 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
8714 $as_echo_n "checking for $ac_word... " >&6; }
8715 if ${ac_cv_path_XMLTO+:} false; then :
8716 $as_echo_n "(cached) " >&6
8717 else
8718 case $XMLTO in
8719 [\\/]* | ?:[\\/]*)
8720 ac_cv_path_XMLTO="$XMLTO" # Let the user override the test with a path.
8723 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
8724 for as_dir in $PATH
8726 IFS=$as_save_IFS
8727 test -z "$as_dir" && as_dir=.
8728 for ac_exec_ext in '' $ac_executable_extensions; do
8729 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
8730 ac_cv_path_XMLTO="$as_dir/$ac_word$ac_exec_ext"
8731 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
8732 break 2
8734 done
8735 done
8736 IFS=$as_save_IFS
8739 esac
8741 XMLTO=$ac_cv_path_XMLTO
8742 if test -n "$XMLTO"; then
8743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XMLTO" >&5
8744 $as_echo "$XMLTO" >&6; }
8745 else
8746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8747 $as_echo "no" >&6; }
8751 xmlto=$XMLTO
8754 book_toolchain=""
8755 if test "$do_books" = "check" -o "$do_books" = "yes"
8756 then
8757 if test "$BOOK_TOOLCHAIN" != ""
8758 then
8759 book_toolchain=$BOOK_TOOLCHAIN
8760 elif test "$DBLATEX" != ""
8761 then
8762 book_toolchain=dblatex
8763 elif test "$PUBLICAN" != ""
8764 then
8765 book_toolchain=publican
8766 elif test "$XMLTO" != ""
8767 then
8768 book_toolchain=xmlto
8769 elif test "$do_books" = "yes"
8770 then
8771 as_fn_error $? "cannot enable books build - no toolchain found" "$LINENO" 5
8776 book_brand="common"
8777 if test "$do_books_brand" != ""
8778 then
8779 book_brand=$do_books_brand
8783 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
8784 $as_echo_n "checking whether ln -s works... " >&6; }
8785 LN_S=$as_ln_s
8786 if test "$LN_S" = "ln -s"; then
8787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8788 $as_echo "yes" >&6; }
8789 else
8790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
8791 $as_echo "no, using $LN_S" >&6; }
8794 if test $target_os = mingw; then
8795 as_ln_s=/bin/true
8798 if test -d /proc
8799 then
8800 test -f /proc/stat || mount /proc >/dev/null 2>&1
8803 if test -n "$PROCPS"
8804 then
8805 pcp_ps_prog="$PROCPS"
8806 else
8807 pcp_ps_prog=ps
8811 if test $target_os = mingw
8812 then
8813 pcp_syslog_prog=pcp-eventlog
8814 else
8815 pcp_syslog_prog=logger
8819 grep=grep
8820 if test $target_os = solaris
8821 then
8822 test -f /usr/xpg4/bin/grep && grep=/usr/xpg4/bin/grep
8826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for /proc " >&5
8827 $as_echo_n "checking for /proc ... " >&6; }
8828 if test "$cross_compiling" = "yes"; then
8829 ans=$have_procfs
8830 echo "cross-compile -> \"$ans\"" >&5
8831 elif test -d /proc
8832 then
8833 have_procfs=true
8834 else
8835 have_procfs=false
8837 if $have_procfs
8838 then
8839 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8840 $as_echo "yes" >&6; }
8842 $as_echo "#define HAVE_PROCFS 1" >>confdefs.h
8844 else
8845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8846 $as_echo "no" >&6; }
8849 ac_header_dirent=no
8850 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
8851 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
8852 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
8853 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
8854 if eval \${$as_ac_Header+:} false; then :
8855 $as_echo_n "(cached) " >&6
8856 else
8857 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8858 /* end confdefs.h. */
8859 #include <sys/types.h>
8860 #include <$ac_hdr>
8863 main ()
8865 if ((DIR *) 0)
8866 return 0;
8868 return 0;
8870 _ACEOF
8871 if ac_fn_c_try_compile "$LINENO"; then :
8872 eval "$as_ac_Header=yes"
8873 else
8874 eval "$as_ac_Header=no"
8876 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8878 eval ac_res=\$$as_ac_Header
8879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
8880 $as_echo "$ac_res" >&6; }
8881 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
8882 cat >>confdefs.h <<_ACEOF
8883 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
8884 _ACEOF
8886 ac_header_dirent=$ac_hdr; break
8889 done
8890 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
8891 if test $ac_header_dirent = dirent.h; then
8892 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
8893 $as_echo_n "checking for library containing opendir... " >&6; }
8894 if ${ac_cv_search_opendir+:} false; then :
8895 $as_echo_n "(cached) " >&6
8896 else
8897 ac_func_search_save_LIBS=$LIBS
8898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8899 /* end confdefs.h. */
8901 /* Override any GCC internal prototype to avoid an error.
8902 Use char because int might match the return type of a GCC
8903 builtin and then its argument prototype would still apply. */
8904 #ifdef __cplusplus
8905 extern "C"
8906 #endif
8907 char opendir ();
8909 main ()
8911 return opendir ();
8913 return 0;
8915 _ACEOF
8916 for ac_lib in '' dir; do
8917 if test -z "$ac_lib"; then
8918 ac_res="none required"
8919 else
8920 ac_res=-l$ac_lib
8921 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8923 if ac_fn_c_try_link "$LINENO"; then :
8924 ac_cv_search_opendir=$ac_res
8926 rm -f core conftest.err conftest.$ac_objext \
8927 conftest$ac_exeext
8928 if ${ac_cv_search_opendir+:} false; then :
8929 break
8931 done
8932 if ${ac_cv_search_opendir+:} false; then :
8934 else
8935 ac_cv_search_opendir=no
8937 rm conftest.$ac_ext
8938 LIBS=$ac_func_search_save_LIBS
8940 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8941 $as_echo "$ac_cv_search_opendir" >&6; }
8942 ac_res=$ac_cv_search_opendir
8943 if test "$ac_res" != no; then :
8944 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
8948 else
8949 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
8950 $as_echo_n "checking for library containing opendir... " >&6; }
8951 if ${ac_cv_search_opendir+:} false; then :
8952 $as_echo_n "(cached) " >&6
8953 else
8954 ac_func_search_save_LIBS=$LIBS
8955 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
8956 /* end confdefs.h. */
8958 /* Override any GCC internal prototype to avoid an error.
8959 Use char because int might match the return type of a GCC
8960 builtin and then its argument prototype would still apply. */
8961 #ifdef __cplusplus
8962 extern "C"
8963 #endif
8964 char opendir ();
8966 main ()
8968 return opendir ();
8970 return 0;
8972 _ACEOF
8973 for ac_lib in '' x; do
8974 if test -z "$ac_lib"; then
8975 ac_res="none required"
8976 else
8977 ac_res=-l$ac_lib
8978 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
8980 if ac_fn_c_try_link "$LINENO"; then :
8981 ac_cv_search_opendir=$ac_res
8983 rm -f core conftest.err conftest.$ac_objext \
8984 conftest$ac_exeext
8985 if ${ac_cv_search_opendir+:} false; then :
8986 break
8988 done
8989 if ${ac_cv_search_opendir+:} false; then :
8991 else
8992 ac_cv_search_opendir=no
8994 rm conftest.$ac_ext
8995 LIBS=$ac_func_search_save_LIBS
8997 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
8998 $as_echo "$ac_cv_search_opendir" >&6; }
8999 ac_res=$ac_cv_search_opendir
9000 if test "$ac_res" != no; then :
9001 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
9007 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
9008 $as_echo_n "checking for ANSI C header files... " >&6; }
9009 if ${ac_cv_header_stdc+:} false; then :
9010 $as_echo_n "(cached) " >&6
9011 else
9012 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9013 /* end confdefs.h. */
9014 #include <stdlib.h>
9015 #include <stdarg.h>
9016 #include <string.h>
9017 #include <float.h>
9020 main ()
9024 return 0;
9026 _ACEOF
9027 if ac_fn_c_try_compile "$LINENO"; then :
9028 ac_cv_header_stdc=yes
9029 else
9030 ac_cv_header_stdc=no
9032 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9034 if test $ac_cv_header_stdc = yes; then
9035 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
9036 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9037 /* end confdefs.h. */
9038 #include <string.h>
9040 _ACEOF
9041 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9042 $EGREP "memchr" >/dev/null 2>&1; then :
9044 else
9045 ac_cv_header_stdc=no
9047 rm -f conftest*
9051 if test $ac_cv_header_stdc = yes; then
9052 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
9053 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9054 /* end confdefs.h. */
9055 #include <stdlib.h>
9057 _ACEOF
9058 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
9059 $EGREP "free" >/dev/null 2>&1; then :
9061 else
9062 ac_cv_header_stdc=no
9064 rm -f conftest*
9068 if test $ac_cv_header_stdc = yes; then
9069 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
9070 if test "$cross_compiling" = yes; then :
9072 else
9073 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9074 /* end confdefs.h. */
9075 #include <ctype.h>
9076 #include <stdlib.h>
9077 #if ((' ' & 0x0FF) == 0x020)
9078 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
9079 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
9080 #else
9081 # define ISLOWER(c) \
9082 (('a' <= (c) && (c) <= 'i') \
9083 || ('j' <= (c) && (c) <= 'r') \
9084 || ('s' <= (c) && (c) <= 'z'))
9085 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
9086 #endif
9088 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
9090 main ()
9092 int i;
9093 for (i = 0; i < 256; i++)
9094 if (XOR (islower (i), ISLOWER (i))
9095 || toupper (i) != TOUPPER (i))
9096 return 2;
9097 return 0;
9099 _ACEOF
9100 if ac_fn_c_try_run "$LINENO"; then :
9102 else
9103 ac_cv_header_stdc=no
9105 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
9106 conftest.$ac_objext conftest.beam conftest.$ac_ext
9111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
9112 $as_echo "$ac_cv_header_stdc" >&6; }
9113 if test $ac_cv_header_stdc = yes; then
9115 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
9119 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/wait.h that is POSIX.1 compatible" >&5
9120 $as_echo_n "checking for sys/wait.h that is POSIX.1 compatible... " >&6; }
9121 if ${ac_cv_header_sys_wait_h+:} false; then :
9122 $as_echo_n "(cached) " >&6
9123 else
9124 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9125 /* end confdefs.h. */
9126 #include <sys/types.h>
9127 #include <sys/wait.h>
9128 #ifndef WEXITSTATUS
9129 # define WEXITSTATUS(stat_val) ((unsigned int) (stat_val) >> 8)
9130 #endif
9131 #ifndef WIFEXITED
9132 # define WIFEXITED(stat_val) (((stat_val) & 255) == 0)
9133 #endif
9136 main ()
9138 int s;
9139 wait (&s);
9140 s = WIFEXITED (s) ? WEXITSTATUS (s) : 1;
9142 return 0;
9144 _ACEOF
9145 if ac_fn_c_try_compile "$LINENO"; then :
9146 ac_cv_header_sys_wait_h=yes
9147 else
9148 ac_cv_header_sys_wait_h=no
9150 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_sys_wait_h" >&5
9153 $as_echo "$ac_cv_header_sys_wait_h" >&6; }
9154 if test $ac_cv_header_sys_wait_h = yes; then
9156 $as_echo "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
9160 for ac_header in fcntl.h limits.h malloc.h strings.h syslog.h
9161 do :
9162 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9163 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9164 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9165 cat >>confdefs.h <<_ACEOF
9166 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9167 _ACEOF
9171 done
9173 for ac_header in unistd.h stddef.h stdlib.h sched.h dlfcn.h dl.h
9174 do :
9175 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9176 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9177 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9178 cat >>confdefs.h <<_ACEOF
9179 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9180 _ACEOF
9184 done
9186 for ac_header in sys/time.h sys/times.h
9187 do :
9188 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9189 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9190 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9191 cat >>confdefs.h <<_ACEOF
9192 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9193 _ACEOF
9197 done
9199 for ac_header in sys/resource.h sys/prctl.h
9200 do :
9201 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9202 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9203 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9204 cat >>confdefs.h <<_ACEOF
9205 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9206 _ACEOF
9210 done
9212 for ac_header in sys/sysinfo.h sys/systeminfo.h
9213 do :
9214 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9215 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9216 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9217 cat >>confdefs.h <<_ACEOF
9218 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9219 _ACEOF
9223 done
9225 for ac_header in endian.h standards.h sys/byteorder.h
9226 do :
9227 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9228 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9229 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9230 cat >>confdefs.h <<_ACEOF
9231 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9232 _ACEOF
9236 done
9238 for ac_header in libgen.h sys/param.h sys/mman.h sys/un.h
9239 do :
9240 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9241 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9242 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9243 cat >>confdefs.h <<_ACEOF
9244 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9245 _ACEOF
9249 done
9251 for ac_header in values.h stdint.h ieeefp.h math.h
9252 do :
9253 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9254 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9255 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9256 cat >>confdefs.h <<_ACEOF
9257 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9258 _ACEOF
9262 done
9264 for ac_header in pwd.h grp.h regex.h sys/wait.h
9265 do :
9266 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9267 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9268 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9269 cat >>confdefs.h <<_ACEOF
9270 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9271 _ACEOF
9275 done
9277 for ac_header in termio.h termios.h sys/termios.h
9278 do :
9279 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9280 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9281 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9282 cat >>confdefs.h <<_ACEOF
9283 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9284 _ACEOF
9288 done
9290 for ac_header in sys/ioctl.h sys/select.h sys/socket.h
9291 do :
9292 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9293 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9294 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9295 cat >>confdefs.h <<_ACEOF
9296 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9297 _ACEOF
9301 done
9303 for ac_header in netdb.h
9304 do :
9305 ac_fn_c_check_header_mongrel "$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default"
9306 if test "x$ac_cv_header_netdb_h" = xyes; then :
9307 cat >>confdefs.h <<_ACEOF
9308 #define HAVE_NETDB_H 1
9309 _ACEOF
9313 done
9315 if test $target_os = darwin -o $target_os = openbsd
9316 then
9317 for ac_header in net/if.h
9318 do :
9319 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "#include <sys/types.h>
9320 #include <sys/socket.h>
9322 if test "x$ac_cv_header_net_if_h" = xyes; then :
9323 cat >>confdefs.h <<_ACEOF
9324 #define HAVE_NET_IF_H 1
9325 _ACEOF
9329 done
9331 else
9332 for ac_header in net/if.h
9333 do :
9334 ac_fn_c_check_header_mongrel "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default"
9335 if test "x$ac_cv_header_net_if_h" = xyes; then :
9336 cat >>confdefs.h <<_ACEOF
9337 #define HAVE_NET_IF_H 1
9338 _ACEOF
9342 done
9345 for ac_header in netinet/in.h netinet/tcp.h arpa/inet.h
9346 do :
9347 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9348 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9349 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9350 cat >>confdefs.h <<_ACEOF
9351 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9352 _ACEOF
9356 done
9358 for ac_header in windows.h winsock2.h ws2tcpip.h
9359 do :
9360 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9361 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9362 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9363 cat >>confdefs.h <<_ACEOF
9364 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9365 _ACEOF
9369 done
9371 for ac_header in execinfo.h bits/wordsize.h
9372 do :
9373 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9374 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9375 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9376 cat >>confdefs.h <<_ACEOF
9377 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9378 _ACEOF
9382 done
9384 for ac_header in iptypes.h
9385 do :
9386 ac_fn_c_check_header_compile "$LINENO" "iptypes.h" "ac_cv_header_iptypes_h" "#include <windows.h>
9388 if test "x$ac_cv_header_iptypes_h" = xyes; then :
9389 cat >>confdefs.h <<_ACEOF
9390 #define HAVE_IPTYPES_H 1
9391 _ACEOF
9395 done
9397 for ac_header in iphlpapi.h
9398 do :
9399 ac_fn_c_check_header_compile "$LINENO" "iphlpapi.h" "ac_cv_header_iphlpapi_h" "#include <winsock2.h>
9401 if test "x$ac_cv_header_iphlpapi_h" = xyes; then :
9402 cat >>confdefs.h <<_ACEOF
9403 #define HAVE_IPHLPAPI_H 1
9404 _ACEOF
9408 done
9410 for ac_header in fts.h libzfs.h
9411 do :
9412 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9413 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9414 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9415 cat >>confdefs.h <<_ACEOF
9416 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9417 _ACEOF
9421 done
9423 for ac_header in sys/statvfs.h sys/statfs.h sys/mount.h
9424 do :
9425 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
9426 ac_fn_c_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default"
9427 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
9428 cat >>confdefs.h <<_ACEOF
9429 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
9430 _ACEOF
9434 done
9437 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/endian.h " >&5
9438 $as_echo_n "checking for sys/endian.h ... " >&6; }
9439 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9440 /* end confdefs.h. */
9442 #include <sys/endian.h>
9445 main ()
9450 return 0;
9452 _ACEOF
9453 if ac_fn_c_try_compile "$LINENO"; then :
9455 $as_echo "#define HAVE_SYS_ENDIAN_H 1" >>confdefs.h
9456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9457 $as_echo "yes" >&6; }
9458 else
9459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9460 $as_echo "no" >&6; }
9462 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9464 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for machine/endian.h " >&5
9465 $as_echo_n "checking for machine/endian.h ... " >&6; }
9466 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9467 /* end confdefs.h. */
9469 #include <machine/endian.h>
9472 main ()
9477 return 0;
9479 _ACEOF
9480 if ac_fn_c_try_compile "$LINENO"; then :
9482 $as_echo "#define HAVE_MACHINE_ENDIAN_H 1" >>confdefs.h
9483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9484 $as_echo "yes" >&6; }
9485 else
9486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9487 $as_echo "no" >&6; }
9489 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9491 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sys/endian.h (IRIX variant) " >&5
9492 $as_echo_n "checking for sys/endian.h (IRIX variant) ... " >&6; }
9493 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9494 /* end confdefs.h. */
9496 #include <standards.h>
9497 #include <sys/endian.h>
9500 main ()
9505 return 0;
9507 _ACEOF
9508 if ac_fn_c_try_compile "$LINENO"; then :
9510 $as_echo "#define HAVE_SYS_ENDIAN_H 1" >>confdefs.h
9511 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9512 $as_echo "yes" >&6; }
9513 else
9514 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9515 $as_echo "no" >&6; }
9517 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9519 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for an ANSI C-conforming const" >&5
9520 $as_echo_n "checking for an ANSI C-conforming const... " >&6; }
9521 if ${ac_cv_c_const+:} false; then :
9522 $as_echo_n "(cached) " >&6
9523 else
9524 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9525 /* end confdefs.h. */
9528 main ()
9531 #ifndef __cplusplus
9532 /* Ultrix mips cc rejects this sort of thing. */
9533 typedef int charset[2];
9534 const charset cs = { 0, 0 };
9535 /* SunOS 4.1.1 cc rejects this. */
9536 char const *const *pcpcc;
9537 char **ppc;
9538 /* NEC SVR4.0.2 mips cc rejects this. */
9539 struct point {int x, y;};
9540 static struct point const zero = {0,0};
9541 /* AIX XL C 1.02.0.0 rejects this.
9542 It does not let you subtract one const X* pointer from another in
9543 an arm of an if-expression whose if-part is not a constant
9544 expression */
9545 const char *g = "string";
9546 pcpcc = &g + (g ? g-g : 0);
9547 /* HPUX 7.0 cc rejects these. */
9548 ++pcpcc;
9549 ppc = (char**) pcpcc;
9550 pcpcc = (char const *const *) ppc;
9551 { /* SCO 3.2v4 cc rejects this sort of thing. */
9552 char tx;
9553 char *t = &tx;
9554 char const *s = 0 ? (char *) 0 : (char const *) 0;
9556 *t++ = 0;
9557 if (s) return 0;
9559 { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */
9560 int x[] = {25, 17};
9561 const int *foo = &x[0];
9562 ++foo;
9564 { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */
9565 typedef const int *iptr;
9566 iptr p = 0;
9567 ++p;
9569 { /* AIX XL C 1.02.0.0 rejects this sort of thing, saying
9570 "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */
9571 struct s { int j; const int *ap[3]; } bx;
9572 struct s *b = &bx; b->j = 5;
9574 { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */
9575 const int foo = 10;
9576 if (!foo) return 0;
9578 return !cs[0] && !zero.x;
9579 #endif
9582 return 0;
9584 _ACEOF
9585 if ac_fn_c_try_compile "$LINENO"; then :
9586 ac_cv_c_const=yes
9587 else
9588 ac_cv_c_const=no
9590 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_const" >&5
9593 $as_echo "$ac_cv_c_const" >&6; }
9594 if test $ac_cv_c_const = no; then
9596 $as_echo "#define const /**/" >>confdefs.h
9600 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
9601 if test "x$ac_cv_type_off_t" = xyes; then :
9603 else
9605 cat >>confdefs.h <<_ACEOF
9606 #define off_t long int
9607 _ACEOF
9611 ac_fn_c_check_type "$LINENO" "pid_t" "ac_cv_type_pid_t" "$ac_includes_default"
9612 if test "x$ac_cv_type_pid_t" = xyes; then :
9614 else
9616 cat >>confdefs.h <<_ACEOF
9617 #define pid_t int
9618 _ACEOF
9622 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
9623 if test "x$ac_cv_type_size_t" = xyes; then :
9625 else
9627 cat >>confdefs.h <<_ACEOF
9628 #define size_t unsigned int
9629 _ACEOF
9633 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether time.h and sys/time.h may both be included" >&5
9634 $as_echo_n "checking whether time.h and sys/time.h may both be included... " >&6; }
9635 if ${ac_cv_header_time+:} false; then :
9636 $as_echo_n "(cached) " >&6
9637 else
9638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9639 /* end confdefs.h. */
9640 #include <sys/types.h>
9641 #include <sys/time.h>
9642 #include <time.h>
9645 main ()
9647 if ((struct tm *) 0)
9648 return 0;
9650 return 0;
9652 _ACEOF
9653 if ac_fn_c_try_compile "$LINENO"; then :
9654 ac_cv_header_time=yes
9655 else
9656 ac_cv_header_time=no
9658 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_time" >&5
9661 $as_echo "$ac_cv_header_time" >&6; }
9662 if test $ac_cv_header_time = yes; then
9664 $as_echo "#define TIME_WITH_SYS_TIME 1" >>confdefs.h
9668 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct tm is in sys/time.h or time.h" >&5
9669 $as_echo_n "checking whether struct tm is in sys/time.h or time.h... " >&6; }
9670 if ${ac_cv_struct_tm+:} false; then :
9671 $as_echo_n "(cached) " >&6
9672 else
9673 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9674 /* end confdefs.h. */
9675 #include <sys/types.h>
9676 #include <time.h>
9679 main ()
9681 struct tm tm;
9682 int *p = &tm.tm_sec;
9683 return !p;
9685 return 0;
9687 _ACEOF
9688 if ac_fn_c_try_compile "$LINENO"; then :
9689 ac_cv_struct_tm=time.h
9690 else
9691 ac_cv_struct_tm=sys/time.h
9693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9695 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_struct_tm" >&5
9696 $as_echo "$ac_cv_struct_tm" >&6; }
9697 if test $ac_cv_struct_tm = sys/time.h; then
9699 $as_echo "#define TM_IN_SYS_TIME 1" >>confdefs.h
9703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for inline" >&5
9704 $as_echo_n "checking for inline... " >&6; }
9705 if ${ac_cv_c_inline+:} false; then :
9706 $as_echo_n "(cached) " >&6
9707 else
9708 ac_cv_c_inline=no
9709 for ac_kw in inline __inline__ __inline; do
9710 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9711 /* end confdefs.h. */
9712 #ifndef __cplusplus
9713 typedef int foo_t;
9714 static $ac_kw foo_t static_foo () {return 0; }
9715 $ac_kw foo_t foo () {return 0; }
9716 #endif
9718 _ACEOF
9719 if ac_fn_c_try_compile "$LINENO"; then :
9720 ac_cv_c_inline=$ac_kw
9722 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
9723 test "$ac_cv_c_inline" != no && break
9724 done
9727 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_inline" >&5
9728 $as_echo "$ac_cv_c_inline" >&6; }
9730 case $ac_cv_c_inline in
9731 inline | yes) ;;
9733 case $ac_cv_c_inline in
9734 no) ac_val=;;
9735 *) ac_val=$ac_cv_c_inline;;
9736 esac
9737 cat >>confdefs.h <<_ACEOF
9738 #ifndef __cplusplus
9739 #define inline $ac_val
9740 #endif
9741 _ACEOF
9743 esac
9746 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for regcomp in -lregex" >&5
9747 $as_echo_n "checking for regcomp in -lregex... " >&6; }
9748 if ${ac_cv_lib_regex_regcomp+:} false; then :
9749 $as_echo_n "(cached) " >&6
9750 else
9751 ac_check_lib_save_LIBS=$LIBS
9752 LIBS="-lregex $LIBS"
9753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9754 /* end confdefs.h. */
9756 /* Override any GCC internal prototype to avoid an error.
9757 Use char because int might match the return type of a GCC
9758 builtin and then its argument prototype would still apply. */
9759 #ifdef __cplusplus
9760 extern "C"
9761 #endif
9762 char regcomp ();
9764 main ()
9766 return regcomp ();
9768 return 0;
9770 _ACEOF
9771 if ac_fn_c_try_link "$LINENO"; then :
9772 ac_cv_lib_regex_regcomp=yes
9773 else
9774 ac_cv_lib_regex_regcomp=no
9776 rm -f core conftest.err conftest.$ac_objext \
9777 conftest$ac_exeext conftest.$ac_ext
9778 LIBS=$ac_check_lib_save_LIBS
9780 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_regex_regcomp" >&5
9781 $as_echo "$ac_cv_lib_regex_regcomp" >&6; }
9782 if test "x$ac_cv_lib_regex_regcomp" = xyes; then :
9783 cat >>confdefs.h <<_ACEOF
9784 #define HAVE_LIBREGEX 1
9785 _ACEOF
9787 LIBS="-lregex $LIBS"
9791 lib_for_regex=""
9792 if test $ac_cv_lib_regex_regcomp = yes
9793 then
9794 lib_for_regex="-lregex"
9799 pkg_failed=no
9800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ncurses" >&5
9801 $as_echo_n "checking for ncurses... " >&6; }
9803 if test -n "$ncurses_CFLAGS"; then
9804 pkg_cv_ncurses_CFLAGS="$ncurses_CFLAGS"
9805 elif test -n "$PKG_CONFIG"; then
9806 if test -n "$PKG_CONFIG" && \
9807 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncurses\""; } >&5
9808 ($PKG_CONFIG --exists --print-errors "ncurses") 2>&5
9809 ac_status=$?
9810 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9811 test $ac_status = 0; }; then
9812 pkg_cv_ncurses_CFLAGS=`$PKG_CONFIG --cflags "ncurses" 2>/dev/null`
9813 test "x$?" != "x0" && pkg_failed=yes
9814 else
9815 pkg_failed=yes
9817 else
9818 pkg_failed=untried
9820 if test -n "$ncurses_LIBS"; then
9821 pkg_cv_ncurses_LIBS="$ncurses_LIBS"
9822 elif test -n "$PKG_CONFIG"; then
9823 if test -n "$PKG_CONFIG" && \
9824 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"ncurses\""; } >&5
9825 ($PKG_CONFIG --exists --print-errors "ncurses") 2>&5
9826 ac_status=$?
9827 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9828 test $ac_status = 0; }; then
9829 pkg_cv_ncurses_LIBS=`$PKG_CONFIG --libs "ncurses" 2>/dev/null`
9830 test "x$?" != "x0" && pkg_failed=yes
9831 else
9832 pkg_failed=yes
9834 else
9835 pkg_failed=untried
9840 if test $pkg_failed = yes; then
9841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9842 $as_echo "no" >&6; }
9844 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9845 _pkg_short_errors_supported=yes
9846 else
9847 _pkg_short_errors_supported=no
9849 if test $_pkg_short_errors_supported = yes; then
9850 ncurses_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "ncurses" 2>&1`
9851 else
9852 ncurses_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "ncurses" 2>&1`
9854 # Put the nasty error message in config.log where it belongs
9855 echo "$ncurses_PKG_ERRORS" >&5
9857 have_ncurses=false
9858 elif test $pkg_failed = untried; then
9859 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9860 $as_echo "no" >&6; }
9861 have_ncurses=false
9862 else
9863 ncurses_CFLAGS=$pkg_cv_ncurses_CFLAGS
9864 ncurses_LIBS=$pkg_cv_ncurses_LIBS
9865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9866 $as_echo "yes" >&6; }
9867 have_ncurses=true
9869 HAVE_NCURSES=$have_ncurses
9873 pkg_failed=no
9874 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SYSTEMD" >&5
9875 $as_echo_n "checking for SYSTEMD... " >&6; }
9877 if test -n "$SYSTEMD_CFLAGS"; then
9878 pkg_cv_SYSTEMD_CFLAGS="$SYSTEMD_CFLAGS"
9879 elif test -n "$PKG_CONFIG"; then
9880 if test -n "$PKG_CONFIG" && \
9881 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-journal\""; } >&5
9882 ($PKG_CONFIG --exists --print-errors "libsystemd-journal") 2>&5
9883 ac_status=$?
9884 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9885 test $ac_status = 0; }; then
9886 pkg_cv_SYSTEMD_CFLAGS=`$PKG_CONFIG --cflags "libsystemd-journal" 2>/dev/null`
9887 test "x$?" != "x0" && pkg_failed=yes
9888 else
9889 pkg_failed=yes
9891 else
9892 pkg_failed=untried
9894 if test -n "$SYSTEMD_LIBS"; then
9895 pkg_cv_SYSTEMD_LIBS="$SYSTEMD_LIBS"
9896 elif test -n "$PKG_CONFIG"; then
9897 if test -n "$PKG_CONFIG" && \
9898 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libsystemd-journal\""; } >&5
9899 ($PKG_CONFIG --exists --print-errors "libsystemd-journal") 2>&5
9900 ac_status=$?
9901 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
9902 test $ac_status = 0; }; then
9903 pkg_cv_SYSTEMD_LIBS=`$PKG_CONFIG --libs "libsystemd-journal" 2>/dev/null`
9904 test "x$?" != "x0" && pkg_failed=yes
9905 else
9906 pkg_failed=yes
9908 else
9909 pkg_failed=untried
9914 if test $pkg_failed = yes; then
9915 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9916 $as_echo "no" >&6; }
9918 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
9919 _pkg_short_errors_supported=yes
9920 else
9921 _pkg_short_errors_supported=no
9923 if test $_pkg_short_errors_supported = yes; then
9924 SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libsystemd-journal" 2>&1`
9925 else
9926 SYSTEMD_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libsystemd-journal" 2>&1`
9928 # Put the nasty error message in config.log where it belongs
9929 echo "$SYSTEMD_PKG_ERRORS" >&5
9931 pmda_systemd=false
9932 elif test $pkg_failed = untried; then
9933 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9934 $as_echo "no" >&6; }
9935 pmda_systemd=false
9936 else
9937 SYSTEMD_CFLAGS=$pkg_cv_SYSTEMD_CFLAGS
9938 SYSTEMD_LIBS=$pkg_cv_SYSTEMD_LIBS
9939 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9940 $as_echo "yes" >&6; }
9941 pmda_systemd=true
9943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the systemd PMDA should be included" >&5
9944 $as_echo_n "checking if the systemd PMDA should be included... " >&6; }
9945 PMDA_SYSTEMD=$pmda_systemd
9947 if $pmda_systemd; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
9948 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
9949 $as_echo "no" >&6; }; fi
9951 pmda_infiniband=false
9952 if test "x$do_infiniband" != "xno"; then :
9954 for ac_header in infiniband/umad.h
9955 do :
9956 ac_fn_c_check_header_mongrel "$LINENO" "infiniband/umad.h" "ac_cv_header_infiniband_umad_h" "$ac_includes_default"
9957 if test "x$ac_cv_header_infiniband_umad_h" = xyes; then :
9958 cat >>confdefs.h <<_ACEOF
9959 #define HAVE_INFINIBAND_UMAD_H 1
9960 _ACEOF
9962 for ac_header in infiniband/mad.h
9963 do :
9964 ac_fn_c_check_header_mongrel "$LINENO" "infiniband/mad.h" "ac_cv_header_infiniband_mad_h" "$ac_includes_default"
9965 if test "x$ac_cv_header_infiniband_mad_h" = xyes; then :
9966 cat >>confdefs.h <<_ACEOF
9967 #define HAVE_INFINIBAND_MAD_H 1
9968 _ACEOF
9969 pmda_infiniband=true
9972 done
9977 done
9979 savedLIBS=$LIBS
9980 IB_LIBS=""
9981 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for madrpc_init in -libmad" >&5
9982 $as_echo_n "checking for madrpc_init in -libmad... " >&6; }
9983 if ${ac_cv_lib_ibmad_madrpc_init+:} false; then :
9984 $as_echo_n "(cached) " >&6
9985 else
9986 ac_check_lib_save_LIBS=$LIBS
9987 LIBS="-libmad $LIBS"
9988 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
9989 /* end confdefs.h. */
9991 /* Override any GCC internal prototype to avoid an error.
9992 Use char because int might match the return type of a GCC
9993 builtin and then its argument prototype would still apply. */
9994 #ifdef __cplusplus
9995 extern "C"
9996 #endif
9997 char madrpc_init ();
9999 main ()
10001 return madrpc_init ();
10003 return 0;
10005 _ACEOF
10006 if ac_fn_c_try_link "$LINENO"; then :
10007 ac_cv_lib_ibmad_madrpc_init=yes
10008 else
10009 ac_cv_lib_ibmad_madrpc_init=no
10011 rm -f core conftest.err conftest.$ac_objext \
10012 conftest$ac_exeext conftest.$ac_ext
10013 LIBS=$ac_check_lib_save_LIBS
10015 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ibmad_madrpc_init" >&5
10016 $as_echo "$ac_cv_lib_ibmad_madrpc_init" >&6; }
10017 if test "x$ac_cv_lib_ibmad_madrpc_init" = xyes; then :
10018 cat >>confdefs.h <<_ACEOF
10019 #define HAVE_LIBIBMAD 1
10020 _ACEOF
10022 LIBS="-libmad $LIBS"
10026 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for umad_init in -libumad" >&5
10027 $as_echo_n "checking for umad_init in -libumad... " >&6; }
10028 if ${ac_cv_lib_ibumad_umad_init+:} false; then :
10029 $as_echo_n "(cached) " >&6
10030 else
10031 ac_check_lib_save_LIBS=$LIBS
10032 LIBS="-libumad $LIBS"
10033 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10034 /* end confdefs.h. */
10036 /* Override any GCC internal prototype to avoid an error.
10037 Use char because int might match the return type of a GCC
10038 builtin and then its argument prototype would still apply. */
10039 #ifdef __cplusplus
10040 extern "C"
10041 #endif
10042 char umad_init ();
10044 main ()
10046 return umad_init ();
10048 return 0;
10050 _ACEOF
10051 if ac_fn_c_try_link "$LINENO"; then :
10052 ac_cv_lib_ibumad_umad_init=yes
10053 else
10054 ac_cv_lib_ibumad_umad_init=no
10056 rm -f core conftest.err conftest.$ac_objext \
10057 conftest$ac_exeext conftest.$ac_ext
10058 LIBS=$ac_check_lib_save_LIBS
10060 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ibumad_umad_init" >&5
10061 $as_echo "$ac_cv_lib_ibumad_umad_init" >&6; }
10062 if test "x$ac_cv_lib_ibumad_umad_init" = xyes; then :
10063 cat >>confdefs.h <<_ACEOF
10064 #define HAVE_LIBIBUMAD 1
10065 _ACEOF
10067 LIBS="-libumad $LIBS"
10071 if test $ac_cv_lib_ibmad_madrpc_init = yes -a $ac_cv_lib_ibumad_umad_init = yes
10072 then
10073 IB_LIBS="-libmad -libumad"
10074 LIBS="$IB_LIBS"
10075 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for port_performance_query_via" >&5
10076 $as_echo_n "checking for port_performance_query_via... " >&6; }
10077 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10078 /* end confdefs.h. */
10080 /* Override any GCC internal prototype to avoid an error.
10081 Use char because int might match the return type of a GCC
10082 builtin and then its argument prototype would still apply. */
10083 #ifdef __cplusplus
10084 extern "C"
10085 #endif
10086 char port_performance_query_via ();
10088 main ()
10090 return port_performance_query_via ();
10092 return 0;
10094 _ACEOF
10095 if ac_fn_c_try_link "$LINENO"; then :
10097 $as_echo "#define HAVE_PORT_PERFORMANCE_QUERY_VIA 1" >>confdefs.h
10099 have_port_performance_query_via=true
10100 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10101 $as_echo "yes" >&6; }
10102 else
10103 have_port_performance_query_via=false
10104 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10105 $as_echo "no" >&6; }
10107 rm -f core conftest.err conftest.$ac_objext \
10108 conftest$ac_exeext conftest.$ac_ext
10109 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pma_query_via" >&5
10110 $as_echo_n "checking for pma_query_via... " >&6; }
10111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10112 /* end confdefs.h. */
10114 /* Override any GCC internal prototype to avoid an error.
10115 Use char because int might match the return type of a GCC
10116 builtin and then its argument prototype would still apply. */
10117 #ifdef __cplusplus
10118 extern "C"
10119 #endif
10120 char pma_query_via ();
10122 main ()
10124 return pma_query_via ();
10126 return 0;
10128 _ACEOF
10129 if ac_fn_c_try_link "$LINENO"; then :
10131 $as_echo "#define HAVE_PMA_QUERY_VIA 1" >>confdefs.h
10133 have_pma_query_via=true
10134 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10135 $as_echo "yes" >&6; }
10136 else
10137 have_pma_query_via=false
10138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10139 $as_echo "no" >&6; }
10141 rm -f core conftest.err conftest.$ac_objext \
10142 conftest$ac_exeext conftest.$ac_ext
10143 LIBS=$savedLIBS
10144 if test $have_pma_query_via -o $have_port_performance_query_via
10145 then
10147 else
10148 pmda_infiniband=false
10150 else
10151 pmda_infiniband=false
10153 LIBS=$savedLIBS
10157 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the infiniband PMDA should be included" >&5
10158 $as_echo_n "checking if the infiniband PMDA should be included... " >&6; }
10159 PMDA_INFINIBAND=$pmda_infiniband
10161 if $pmda_infiniband; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10162 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10163 $as_echo "no" >&6; }; fi
10165 pmda_papi=false
10166 if test "x$do_papi" != "xno"; then :
10168 enable_papi=true
10170 saved_LDFLAGS="$LDFLAGS"
10171 saved_CFLAGS="$CFLAGS"
10172 savedLIBS=$LIBS
10174 CFLAGS="$papi_CFLAGS"
10175 LDFLAGS="$papi_LIBS"
10177 case "$do_papi" in
10178 yes|no|check)
10180 */*)
10181 PAPI_ROOTDIR=$do_papi;
10182 CFLAGS="-I$PAPI_ROOTDIR/include"
10183 LDFLAGS="-L$PAPI_ROOTDIR/lib"
10187 pkg_failed=no
10188 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for papi" >&5
10189 $as_echo_n "checking for papi... " >&6; }
10191 if test -n "$papi_CFLAGS"; then
10192 pkg_cv_papi_CFLAGS="$papi_CFLAGS"
10193 elif test -n "$PKG_CONFIG"; then
10194 if test -n "$PKG_CONFIG" && \
10195 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$do_papi\""; } >&5
10196 ($PKG_CONFIG --exists --print-errors "$do_papi") 2>&5
10197 ac_status=$?
10198 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10199 test $ac_status = 0; }; then
10200 pkg_cv_papi_CFLAGS=`$PKG_CONFIG --cflags "$do_papi" 2>/dev/null`
10201 test "x$?" != "x0" && pkg_failed=yes
10202 else
10203 pkg_failed=yes
10205 else
10206 pkg_failed=untried
10208 if test -n "$papi_LIBS"; then
10209 pkg_cv_papi_LIBS="$papi_LIBS"
10210 elif test -n "$PKG_CONFIG"; then
10211 if test -n "$PKG_CONFIG" && \
10212 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"\$do_papi\""; } >&5
10213 ($PKG_CONFIG --exists --print-errors "$do_papi") 2>&5
10214 ac_status=$?
10215 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10216 test $ac_status = 0; }; then
10217 pkg_cv_papi_LIBS=`$PKG_CONFIG --libs "$do_papi" 2>/dev/null`
10218 test "x$?" != "x0" && pkg_failed=yes
10219 else
10220 pkg_failed=yes
10222 else
10223 pkg_failed=untried
10228 if test $pkg_failed = yes; then
10229 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10230 $as_echo "no" >&6; }
10232 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10233 _pkg_short_errors_supported=yes
10234 else
10235 _pkg_short_errors_supported=no
10237 if test $_pkg_short_errors_supported = yes; then
10238 papi_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "$do_papi" 2>&1`
10239 else
10240 papi_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "$do_papi" 2>&1`
10242 # Put the nasty error message in config.log where it belongs
10243 echo "$papi_PKG_ERRORS" >&5
10245 as_fn_error $? "Package requirements ($do_papi) were not met:
10247 $papi_PKG_ERRORS
10249 Consider adjusting the PKG_CONFIG_PATH environment variable if you
10250 installed software in a non-standard prefix.
10252 Alternatively, you may set the environment variables papi_CFLAGS
10253 and papi_LIBS to avoid the need to call pkg-config.
10254 See the pkg-config man page for more details." "$LINENO" 5
10255 elif test $pkg_failed = untried; then
10256 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10257 $as_echo "no" >&6; }
10258 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
10259 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
10260 as_fn_error $? "The pkg-config script could not be found or is too old. Make sure it
10261 is in your PATH or set the PKG_CONFIG environment variable to the full
10262 path to pkg-config.
10264 Alternatively, you may set the environment variables papi_CFLAGS
10265 and papi_LIBS to avoid the need to call pkg-config.
10266 See the pkg-config man page for more details.
10268 To get pkg-config, see <http://pkg-config.freedesktop.org/>.
10269 See \`config.log' for more details" "$LINENO" 5; }
10270 else
10271 papi_CFLAGS=$pkg_cv_papi_CFLAGS
10272 papi_LIBS=$pkg_cv_papi_LIBS
10273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10274 $as_echo "yes" >&6; }
10276 CFLAGS="$papi_CFLAGS"
10277 LDFLAGS="$papi_LIBS"
10280 esac
10282 # $papi_LIBS may include -lpapi harmlessly redudantly with AC_CHECK_LIB
10283 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PAPI_library_init in -lpapi" >&5
10284 $as_echo_n "checking for PAPI_library_init in -lpapi... " >&6; }
10285 if ${ac_cv_lib_papi_PAPI_library_init+:} false; then :
10286 $as_echo_n "(cached) " >&6
10287 else
10288 ac_check_lib_save_LIBS=$LIBS
10289 LIBS="-lpapi $LIBS"
10290 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10291 /* end confdefs.h. */
10293 /* Override any GCC internal prototype to avoid an error.
10294 Use char because int might match the return type of a GCC
10295 builtin and then its argument prototype would still apply. */
10296 #ifdef __cplusplus
10297 extern "C"
10298 #endif
10299 char PAPI_library_init ();
10301 main ()
10303 return PAPI_library_init ();
10305 return 0;
10307 _ACEOF
10308 if ac_fn_c_try_link "$LINENO"; then :
10309 ac_cv_lib_papi_PAPI_library_init=yes
10310 else
10311 ac_cv_lib_papi_PAPI_library_init=no
10313 rm -f core conftest.err conftest.$ac_objext \
10314 conftest$ac_exeext conftest.$ac_ext
10315 LIBS=$ac_check_lib_save_LIBS
10317 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_papi_PAPI_library_init" >&5
10318 $as_echo "$ac_cv_lib_papi_PAPI_library_init" >&6; }
10319 if test "x$ac_cv_lib_papi_PAPI_library_init" = xyes; then :
10320 papi_libs="$LDFLAGS -lpapi"
10321 else
10322 enable_papi=false
10325 for ac_header in papi.h
10326 do :
10327 ac_fn_c_check_header_mongrel "$LINENO" "papi.h" "ac_cv_header_papi_h" "$ac_includes_default"
10328 if test "x$ac_cv_header_papi_h" = xyes; then :
10329 cat >>confdefs.h <<_ACEOF
10330 #define HAVE_PAPI_H 1
10331 _ACEOF
10332 papi_cflags="$CFLAGS"
10333 else
10334 enable_papi=false
10337 done
10339 if test "$do_papi" != "check" -a "$enable_papi" != "true"
10340 then
10341 as_fn_error $? "PAPI is not installed, cannot enable the PAPI PMDA" "$LINENO" 5
10342 else
10343 pmda_papi=$enable_papi
10345 LIBS=$savedLIBS
10346 CFLAGS="$saved_CFLAGS"
10347 LDFLAGS="$saved_LDFLAGS"
10348 PAPI_CFLAGS=$papi_cflags
10350 PAPI_LIBS=$papi_libs
10354 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the papi PMDA should be included" >&5
10355 $as_echo_n "checking if the papi PMDA should be included... " >&6; }
10356 PMDA_PAPI=$pmda_papi
10358 if $pmda_papi; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10359 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10360 $as_echo "no" >&6; }; fi
10362 if test "x$pmda_papi" = "xtrue"; then :
10364 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct PAPI_component_info_t has a disabled field" >&5
10365 $as_echo_n "checking whether struct PAPI_component_info_t has a disabled field... " >&6; }
10366 cat <<End-of-File >conftest.c
10367 #include <papi.h>
10368 int main() { PAPI_component_info_t *c; c->disabled = 0; }
10369 End-of-File
10370 (eval $ac_compile) 2>conftest.out
10371 cat conftest.out >&5
10372 if test -s conftest.out
10373 then
10374 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10375 $as_echo "no" >&6; }
10376 else
10378 $as_echo "#define HAVE_PAPI_DISABLED_COMP 1" >>confdefs.h
10380 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10381 $as_echo "yes" >&6; }
10384 rm -f conftest.*
10388 pmda_perfevent=false
10389 if test "x$do_perfevent" != "xno" ; then :
10391 enable_perfevent=true
10393 savedLIBS=$LIBS
10394 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pfm_get_os_event_encoding in -lpfm" >&5
10395 $as_echo_n "checking for pfm_get_os_event_encoding in -lpfm... " >&6; }
10396 if ${ac_cv_lib_pfm_pfm_get_os_event_encoding+:} false; then :
10397 $as_echo_n "(cached) " >&6
10398 else
10399 ac_check_lib_save_LIBS=$LIBS
10400 LIBS="-lpfm $LIBS"
10401 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10402 /* end confdefs.h. */
10404 /* Override any GCC internal prototype to avoid an error.
10405 Use char because int might match the return type of a GCC
10406 builtin and then its argument prototype would still apply. */
10407 #ifdef __cplusplus
10408 extern "C"
10409 #endif
10410 char pfm_get_os_event_encoding ();
10412 main ()
10414 return pfm_get_os_event_encoding ();
10416 return 0;
10418 _ACEOF
10419 if ac_fn_c_try_link "$LINENO"; then :
10420 ac_cv_lib_pfm_pfm_get_os_event_encoding=yes
10421 else
10422 ac_cv_lib_pfm_pfm_get_os_event_encoding=no
10424 rm -f core conftest.err conftest.$ac_objext \
10425 conftest$ac_exeext conftest.$ac_ext
10426 LIBS=$ac_check_lib_save_LIBS
10428 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pfm_pfm_get_os_event_encoding" >&5
10429 $as_echo "$ac_cv_lib_pfm_pfm_get_os_event_encoding" >&6; }
10430 if test "x$ac_cv_lib_pfm_pfm_get_os_event_encoding" = xyes; then :
10431 pfm_libs="-lpfm"
10432 else
10433 enable_perfevent=false
10436 for ac_header in perfmon/pfmlib_perf_event.h
10437 do :
10438 ac_fn_c_check_header_mongrel "$LINENO" "perfmon/pfmlib_perf_event.h" "ac_cv_header_perfmon_pfmlib_perf_event_h" "$ac_includes_default"
10439 if test "x$ac_cv_header_perfmon_pfmlib_perf_event_h" = xyes; then :
10440 cat >>confdefs.h <<_ACEOF
10441 #define HAVE_PERFMON_PFMLIB_PERF_EVENT_H 1
10442 _ACEOF
10444 else
10445 enable_perfevent=false
10448 done
10450 if test "$do_perfevent" != "check" -a "$enable_papi" != "true"
10451 then
10452 as_fn_error $? "libpfm is not installed, cannot enable the perfevent PMDA" "$LINENO" 5
10453 else
10454 pmda_perfevent=$enable_perfevent
10456 LIBS=$savedLIBS
10457 PFM_LIBS=$pfm_libs
10461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the perfevent PMDA should be included" >&5
10462 $as_echo_n "checking if the perfevent PMDA should be included... " >&6; }
10463 PMDA_PERFEVENT=$pmda_perfevent
10465 if $pmda_perfevent; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10466 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10467 $as_echo "no" >&6; }; fi
10469 pmda_rpm=false
10470 savedLIBS=$LIBS
10471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for rpmlib > 4.4.2" >&5
10472 $as_echo_n "checking for rpmlib > 4.4.2... " >&6; }
10473 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10474 /* end confdefs.h. */
10475 #include <rpm/header.h>
10477 main ()
10479 (void)HEADERGET_EXT;
10481 return 0;
10483 _ACEOF
10484 if ac_fn_c_try_compile "$LINENO"; then :
10485 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10486 $as_echo "yes" >&6; }
10487 pmda_rpm=true
10488 else
10489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10490 $as_echo "no" >&6; }
10492 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10493 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the rpm PMDA should be included" >&5
10494 $as_echo_n "checking if the rpm PMDA should be included... " >&6; }
10495 PMDA_RPM=$pmda_rpm
10497 if $pmda_rpm; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10498 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10499 $as_echo "no" >&6; }; fi
10500 LIBS=$savedLIBS
10502 pmda_postfix=false
10503 for ac_prog in qshape
10505 # Extract the first word of "$ac_prog", so it can be a program name with args.
10506 set dummy $ac_prog; ac_word=$2
10507 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
10508 $as_echo_n "checking for $ac_word... " >&6; }
10509 if ${ac_cv_prog_QSHAPE+:} false; then :
10510 $as_echo_n "(cached) " >&6
10511 else
10512 if test -n "$QSHAPE"; then
10513 ac_cv_prog_QSHAPE="$QSHAPE" # Let the user override the test.
10514 else
10515 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
10516 as_dummy="path=$PATH:/usr/sbin"
10517 for as_dir in $as_dummy
10519 IFS=$as_save_IFS
10520 test -z "$as_dir" && as_dir=.
10521 for ac_exec_ext in '' $ac_executable_extensions; do
10522 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
10523 ac_cv_prog_QSHAPE="$ac_prog"
10524 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
10525 break 2
10527 done
10528 done
10529 IFS=$as_save_IFS
10533 QSHAPE=$ac_cv_prog_QSHAPE
10534 if test -n "$QSHAPE"; then
10535 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $QSHAPE" >&5
10536 $as_echo "$QSHAPE" >&6; }
10537 else
10538 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10539 $as_echo "no" >&6; }
10543 test -n "$QSHAPE" && break
10544 done
10546 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if the postfix PMDA should be included" >&5
10547 $as_echo_n "checking if the postfix PMDA should be included... " >&6; }
10548 if test -n "$QSHAPE"
10549 then
10550 pmda_postfix=true
10551 else
10552 for script in /usr/share/doc/packages/postfix-doc/auxiliary/qshape/qshape.pl
10554 if test -f "$script"
10555 then
10556 pmda_postfix=true
10557 break
10559 done
10561 PMDA_POSTFIX=$pmda_postfix
10563 if $pmda_postfix; then { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10564 $as_echo "yes" >&6; }; else { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10565 $as_echo "no" >&6; }; fi
10568 pkg_failed=no
10569 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libmicrohttpd" >&5
10570 $as_echo_n "checking for libmicrohttpd... " >&6; }
10572 if test -n "$libmicrohttpd_CFLAGS"; then
10573 pkg_cv_libmicrohttpd_CFLAGS="$libmicrohttpd_CFLAGS"
10574 elif test -n "$PKG_CONFIG"; then
10575 if test -n "$PKG_CONFIG" && \
10576 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmicrohttpd > 0.9.9\""; } >&5
10577 ($PKG_CONFIG --exists --print-errors "libmicrohttpd > 0.9.9") 2>&5
10578 ac_status=$?
10579 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10580 test $ac_status = 0; }; then
10581 pkg_cv_libmicrohttpd_CFLAGS=`$PKG_CONFIG --cflags "libmicrohttpd > 0.9.9" 2>/dev/null`
10582 test "x$?" != "x0" && pkg_failed=yes
10583 else
10584 pkg_failed=yes
10586 else
10587 pkg_failed=untried
10589 if test -n "$libmicrohttpd_LIBS"; then
10590 pkg_cv_libmicrohttpd_LIBS="$libmicrohttpd_LIBS"
10591 elif test -n "$PKG_CONFIG"; then
10592 if test -n "$PKG_CONFIG" && \
10593 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"libmicrohttpd > 0.9.9\""; } >&5
10594 ($PKG_CONFIG --exists --print-errors "libmicrohttpd > 0.9.9") 2>&5
10595 ac_status=$?
10596 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10597 test $ac_status = 0; }; then
10598 pkg_cv_libmicrohttpd_LIBS=`$PKG_CONFIG --libs "libmicrohttpd > 0.9.9" 2>/dev/null`
10599 test "x$?" != "x0" && pkg_failed=yes
10600 else
10601 pkg_failed=yes
10603 else
10604 pkg_failed=untried
10609 if test $pkg_failed = yes; then
10610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10611 $as_echo "no" >&6; }
10613 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10614 _pkg_short_errors_supported=yes
10615 else
10616 _pkg_short_errors_supported=no
10618 if test $_pkg_short_errors_supported = yes; then
10619 libmicrohttpd_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "libmicrohttpd > 0.9.9" 2>&1`
10620 else
10621 libmicrohttpd_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "libmicrohttpd > 0.9.9" 2>&1`
10623 # Put the nasty error message in config.log where it belongs
10624 echo "$libmicrohttpd_PKG_ERRORS" >&5
10626 have_libmicrohttpd=false
10627 elif test $pkg_failed = untried; then
10628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10629 $as_echo "no" >&6; }
10630 have_libmicrohttpd=false
10631 else
10632 libmicrohttpd_CFLAGS=$pkg_cv_libmicrohttpd_CFLAGS
10633 libmicrohttpd_LIBS=$pkg_cv_libmicrohttpd_LIBS
10634 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10635 $as_echo "yes" >&6; }
10636 have_libmicrohttpd=true
10638 HAVE_LIBMICROHTTPD=$have_libmicrohttpd
10642 pkg_failed=no
10643 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for cairo" >&5
10644 $as_echo_n "checking for cairo... " >&6; }
10646 if test -n "$cairo_CFLAGS"; then
10647 pkg_cv_cairo_CFLAGS="$cairo_CFLAGS"
10648 elif test -n "$PKG_CONFIG"; then
10649 if test -n "$PKG_CONFIG" && \
10650 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo >= 1.2, cairo-ft >= 1.2, cairo-png >= 1.2\""; } >&5
10651 ($PKG_CONFIG --exists --print-errors "cairo >= 1.2, cairo-ft >= 1.2, cairo-png >= 1.2") 2>&5
10652 ac_status=$?
10653 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10654 test $ac_status = 0; }; then
10655 pkg_cv_cairo_CFLAGS=`$PKG_CONFIG --cflags "cairo >= 1.2, cairo-ft >= 1.2, cairo-png >= 1.2" 2>/dev/null`
10656 test "x$?" != "x0" && pkg_failed=yes
10657 else
10658 pkg_failed=yes
10660 else
10661 pkg_failed=untried
10663 if test -n "$cairo_LIBS"; then
10664 pkg_cv_cairo_LIBS="$cairo_LIBS"
10665 elif test -n "$PKG_CONFIG"; then
10666 if test -n "$PKG_CONFIG" && \
10667 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"cairo >= 1.2, cairo-ft >= 1.2, cairo-png >= 1.2\""; } >&5
10668 ($PKG_CONFIG --exists --print-errors "cairo >= 1.2, cairo-ft >= 1.2, cairo-png >= 1.2") 2>&5
10669 ac_status=$?
10670 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
10671 test $ac_status = 0; }; then
10672 pkg_cv_cairo_LIBS=`$PKG_CONFIG --libs "cairo >= 1.2, cairo-ft >= 1.2, cairo-png >= 1.2" 2>/dev/null`
10673 test "x$?" != "x0" && pkg_failed=yes
10674 else
10675 pkg_failed=yes
10677 else
10678 pkg_failed=untried
10683 if test $pkg_failed = yes; then
10684 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10685 $as_echo "no" >&6; }
10687 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
10688 _pkg_short_errors_supported=yes
10689 else
10690 _pkg_short_errors_supported=no
10692 if test $_pkg_short_errors_supported = yes; then
10693 cairo_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "cairo >= 1.2, cairo-ft >= 1.2, cairo-png >= 1.2" 2>&1`
10694 else
10695 cairo_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "cairo >= 1.2, cairo-ft >= 1.2, cairo-png >= 1.2" 2>&1`
10697 # Put the nasty error message in config.log where it belongs
10698 echo "$cairo_PKG_ERRORS" >&5
10700 have_cairo=false
10701 elif test $pkg_failed = untried; then
10702 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10703 $as_echo "no" >&6; }
10704 have_cairo=false
10705 else
10706 cairo_CFLAGS=$pkg_cv_cairo_CFLAGS
10707 cairo_LIBS=$pkg_cv_cairo_LIBS
10708 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10709 $as_echo "yes" >&6; }
10710 have_cairo=true
10712 HAVE_CAIRO=$have_cairo
10715 enable_webapi=false
10716 if test "x$do_webapi" != "xno"; then :
10718 enable_webapi=true
10720 if test "$have_libmicrohttpd" != "true"
10721 then
10722 enable_webapi=false
10723 test "$do_webapi" != "check" && \
10724 as_fn_error $? "libmicrohttpd is not installed, cannot enable the web API" "$LINENO" 5
10725 elif test "$do_webapi" != "check" -a "x$cxx" = "x"
10726 then
10727 enable_webapi=false
10728 test "$do_webapi" != "check" && \
10729 as_fn_error $? "C++ compiler unavailable, cannot enable the web API" "$LINENO" 5
10735 enable_manager=false
10736 if test "x$do_manager" != "xno"; then :
10738 enable_manager=true
10740 if test "$target_os" = "mingw"
10741 then
10742 enable_manager=false
10743 test "$do_manager" != "check" && \
10744 as_fn_error $? "MinGW build, cannot enable daemon manager" "$LINENO" 5
10745 elif test "x$cxx" = "x"
10746 then
10747 enable_manager=false
10748 test "$do_manager" != "check" && \
10749 as_fn_error $? "C++ compiler unavailable, cannot enable daemon manager" "$LINENO" 5
10751 { $as_echo "$as_me:${as_lineno-$LINENO}: checking compilation features for daemon manager" >&5
10752 $as_echo_n "checking compilation features for daemon manager... " >&6; }
10753 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10754 /* end confdefs.h. */
10755 #ifndef _XOPEN_SOURCE
10756 #define _XOPEN_SOURCE 600
10757 #endif
10758 #include <stdio.h>
10761 main ()
10765 return 0;
10767 _ACEOF
10768 if ac_fn_c_try_compile "$LINENO"; then :
10769 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
10770 $as_echo "yes" >&6; }
10771 else
10772 enable_manager=false
10773 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
10774 $as_echo "no" >&6; }
10776 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10781 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
10782 $as_echo_n "checking return type of signal handlers... " >&6; }
10783 if ${ac_cv_type_signal+:} false; then :
10784 $as_echo_n "(cached) " >&6
10785 else
10786 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10787 /* end confdefs.h. */
10788 #include <sys/types.h>
10789 #include <signal.h>
10792 main ()
10794 return *(signal (0, 0)) (0) == 1;
10796 return 0;
10798 _ACEOF
10799 if ac_fn_c_try_compile "$LINENO"; then :
10800 ac_cv_type_signal=int
10801 else
10802 ac_cv_type_signal=void
10804 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
10806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
10807 $as_echo "$ac_cv_type_signal" >&6; }
10809 cat >>confdefs.h <<_ACEOF
10810 #define RETSIGTYPE $ac_cv_type_signal
10811 _ACEOF
10814 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for wait3 that fills in rusage" >&5
10815 $as_echo_n "checking for wait3 that fills in rusage... " >&6; }
10816 if ${ac_cv_func_wait3_rusage+:} false; then :
10817 $as_echo_n "(cached) " >&6
10818 else
10819 if test "$cross_compiling" = yes; then :
10820 ac_cv_func_wait3_rusage=no
10821 else
10822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
10823 /* end confdefs.h. */
10824 $ac_includes_default
10825 #include <sys/time.h>
10826 #include <sys/resource.h>
10827 #include <sys/wait.h>
10828 /* HP-UX has wait3 but does not fill in rusage at all. */
10830 main ()
10832 struct rusage r;
10833 int i;
10834 /* Use a field that we can force nonzero --
10835 voluntary context switches.
10836 For systems like NeXT and OSF/1 that don't set it,
10837 also use the system CPU time. And page faults (I/O) for Linux. */
10838 r.ru_nvcsw = 0;
10839 r.ru_stime.tv_sec = 0;
10840 r.ru_stime.tv_usec = 0;
10841 r.ru_majflt = r.ru_minflt = 0;
10842 switch (fork ())
10844 case 0: /* Child. */
10845 sleep(1); /* Give up the CPU. */
10846 _exit(0);
10847 break;
10848 case -1: /* What can we do? */
10849 _exit(0);
10850 break;
10851 default: /* Parent. */
10852 wait3(&i, 0, &r);
10853 /* Avoid "text file busy" from rm on fast HP-UX machines. */
10854 sleep(2);
10855 return (r.ru_nvcsw == 0 && r.ru_majflt == 0 && r.ru_minflt == 0
10856 && r.ru_stime.tv_sec == 0 && r.ru_stime.tv_usec == 0);
10859 _ACEOF
10860 if ac_fn_c_try_run "$LINENO"; then :
10861 ac_cv_func_wait3_rusage=yes
10862 else
10863 ac_cv_func_wait3_rusage=no
10865 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
10866 conftest.$ac_objext conftest.beam conftest.$ac_ext
10870 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_wait3_rusage" >&5
10871 $as_echo "$ac_cv_func_wait3_rusage" >&6; }
10872 if test $ac_cv_func_wait3_rusage = yes; then
10874 $as_echo "#define HAVE_WAIT3 1" >>confdefs.h
10878 for ac_func in vprintf
10879 do :
10880 ac_fn_c_check_func "$LINENO" "vprintf" "ac_cv_func_vprintf"
10881 if test "x$ac_cv_func_vprintf" = xyes; then :
10882 cat >>confdefs.h <<_ACEOF
10883 #define HAVE_VPRINTF 1
10884 _ACEOF
10886 ac_fn_c_check_func "$LINENO" "_doprnt" "ac_cv_func__doprnt"
10887 if test "x$ac_cv_func__doprnt" = xyes; then :
10889 $as_echo "#define HAVE_DOPRNT 1" >>confdefs.h
10894 done
10897 for ac_func in mktime nanosleep usleep unsetenv
10898 do :
10899 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10900 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10901 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10902 cat >>confdefs.h <<_ACEOF
10903 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10904 _ACEOF
10907 done
10909 for ac_func in select socket gethostname getpeerucred getpeereid
10910 do :
10911 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10912 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10913 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10914 cat >>confdefs.h <<_ACEOF
10915 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10916 _ACEOF
10919 done
10921 for ac_func in uname syslog __clone pipe2 fcntl ioctl
10922 do :
10923 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10924 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10925 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10926 cat >>confdefs.h <<_ACEOF
10927 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10928 _ACEOF
10931 done
10933 for ac_func in prctl setlinebuf waitpid atexit kill
10934 do :
10935 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10936 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10937 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10938 cat >>confdefs.h <<_ACEOF
10939 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10940 _ACEOF
10943 done
10945 for ac_func in chown fchmod getcwd scandir mkstemp
10946 do :
10947 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10948 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10949 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10950 cat >>confdefs.h <<_ACEOF
10951 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10952 _ACEOF
10955 done
10957 for ac_func in brk sbrk posix_memalign memalign valloc
10958 do :
10959 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10960 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10961 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10962 cat >>confdefs.h <<_ACEOF
10963 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10964 _ACEOF
10967 done
10969 for ac_func in signal sighold sigrelse tcgetattr
10970 do :
10971 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10972 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10973 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10974 cat >>confdefs.h <<_ACEOF
10975 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10976 _ACEOF
10979 done
10981 for ac_func in regex regcmp regexec regcomp
10982 do :
10983 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10984 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10985 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10986 cat >>confdefs.h <<_ACEOF
10987 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
10988 _ACEOF
10991 done
10993 for ac_func in strtod strtol strtoll strtoull strndup strchrnul
10994 do :
10995 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
10996 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
10997 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
10998 cat >>confdefs.h <<_ACEOF
10999 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11000 _ACEOF
11003 done
11005 for ac_func in getuid getgid
11006 do :
11007 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11008 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11009 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11010 cat >>confdefs.h <<_ACEOF
11011 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11012 _ACEOF
11015 done
11017 for ac_func in getgrent getgrent_r getgrnam getgrnam_r getgrgid getgrgid_r
11018 do :
11019 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11020 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11021 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11022 cat >>confdefs.h <<_ACEOF
11023 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11024 _ACEOF
11027 done
11029 for ac_func in getpwent getpwent_r getpwnam getpwnam_r getpwuid getpwuid_r
11030 do :
11031 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11032 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11033 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11034 cat >>confdefs.h <<_ACEOF
11035 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11036 _ACEOF
11039 done
11041 for ac_func in sysinfo trace_back_stack backtrace
11042 do :
11043 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11044 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11045 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11046 cat >>confdefs.h <<_ACEOF
11047 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11048 _ACEOF
11051 done
11053 for ac_func in sendmsg recvmsg setns
11054 do :
11055 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
11056 ac_fn_c_check_func "$LINENO" "$ac_func" "$as_ac_var"
11057 if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
11058 cat >>confdefs.h <<_ACEOF
11059 #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
11060 _ACEOF
11063 done
11066 if test $target_os != linux -a $target_os != freebsd -a $target_os != kfreebsd -a $target_os != netbsd; then
11067 for ac_func in readdir64
11068 do :
11069 ac_fn_c_check_func "$LINENO" "readdir64" "ac_cv_func_readdir64"
11070 if test "x$ac_cv_func_readdir64" = xyes; then :
11071 cat >>confdefs.h <<_ACEOF
11072 #define HAVE_READDIR64 1
11073 _ACEOF
11076 done
11080 if test $target_os = solaris
11081 then
11082 ac_fn_c_check_type "$LINENO" "__int32_t" "ac_cv_type___int32_t" "$ac_includes_default"
11083 if test "x$ac_cv_type___int32_t" = xyes; then :
11085 else
11087 cat >>confdefs.h <<_ACEOF
11088 #define __int32_t int32_t
11089 _ACEOF
11093 ac_fn_c_check_type "$LINENO" "__uint32_t" "ac_cv_type___uint32_t" "$ac_includes_default"
11094 if test "x$ac_cv_type___uint32_t" = xyes; then :
11096 else
11098 cat >>confdefs.h <<_ACEOF
11099 #define __uint32_t uint32_t
11100 _ACEOF
11104 ac_fn_c_check_type "$LINENO" "__int64_t" "ac_cv_type___int64_t" "$ac_includes_default"
11105 if test "x$ac_cv_type___int64_t" = xyes; then :
11107 else
11109 cat >>confdefs.h <<_ACEOF
11110 #define __int64_t int64_t
11111 _ACEOF
11115 ac_fn_c_check_type "$LINENO" "__uint64_t" "ac_cv_type___uint64_t" "$ac_includes_default"
11116 if test "x$ac_cv_type___uint64_t" = xyes; then :
11118 else
11120 cat >>confdefs.h <<_ACEOF
11121 #define __uint64_t uint64_t
11122 _ACEOF
11126 ac_fn_c_check_type "$LINENO" "uint_t" "ac_cv_type_uint_t" "$ac_includes_default"
11127 if test "x$ac_cv_type_uint_t" = xyes; then :
11129 else
11131 cat >>confdefs.h <<_ACEOF
11132 #define uint_t u_int32_t
11133 _ACEOF
11137 else
11138 ac_fn_c_check_type "$LINENO" "__int32_t" "ac_cv_type___int32_t" "$ac_includes_default"
11139 if test "x$ac_cv_type___int32_t" = xyes; then :
11141 else
11143 cat >>confdefs.h <<_ACEOF
11144 #define __int32_t int
11145 _ACEOF
11149 ac_fn_c_check_type "$LINENO" "__uint32_t" "ac_cv_type___uint32_t" "$ac_includes_default"
11150 if test "x$ac_cv_type___uint32_t" = xyes; then :
11152 else
11154 cat >>confdefs.h <<_ACEOF
11155 #define __uint32_t unsigned int
11156 _ACEOF
11160 ac_fn_c_check_type "$LINENO" "__int64_t" "ac_cv_type___int64_t" "$ac_includes_default"
11161 if test "x$ac_cv_type___int64_t" = xyes; then :
11163 else
11165 cat >>confdefs.h <<_ACEOF
11166 #define __int64_t long long
11167 _ACEOF
11171 ac_fn_c_check_type "$LINENO" "__uint64_t" "ac_cv_type___uint64_t" "$ac_includes_default"
11172 if test "x$ac_cv_type___uint64_t" = xyes; then :
11174 else
11176 cat >>confdefs.h <<_ACEOF
11177 #define __uint64_t unsigned long long
11178 _ACEOF
11182 ac_fn_c_check_type "$LINENO" "uint_t" "ac_cv_type_uint_t" "$ac_includes_default"
11183 if test "x$ac_cv_type_uint_t" = xyes; then :
11185 else
11187 cat >>confdefs.h <<_ACEOF
11188 #define uint_t unsigned int
11189 _ACEOF
11195 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __psint_t " >&5
11196 $as_echo_n "checking for __psint_t ... " >&6; }
11197 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11198 /* end confdefs.h. */
11200 #include <sys/types.h>
11201 #include <stdlib.h>
11202 #include <stddef.h>
11205 main ()
11207 __psint_t psint;
11209 return 0;
11211 _ACEOF
11212 if ac_fn_c_try_compile "$LINENO"; then :
11214 $as_echo "#define HAVE___PSINT_T 1" >>confdefs.h
11215 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11216 $as_echo "yes" >&6; }
11217 else
11218 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11219 $as_echo "no" >&6; }
11221 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11223 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ptrdiff_t " >&5
11224 $as_echo_n "checking for ptrdiff_t ... " >&6; }
11225 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11226 /* end confdefs.h. */
11228 #include <stddef.h>
11229 #ifdef HAVE_MALLOC_H
11230 #include <malloc.h>
11231 #endif
11234 main ()
11236 ptrdiff_t ptrdiff;
11238 return 0;
11240 _ACEOF
11241 if ac_fn_c_try_compile "$LINENO"; then :
11243 $as_echo "#define HAVE_PTRDIFF_T 1" >>confdefs.h
11244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11245 $as_echo "yes" >&6; }
11246 else
11247 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11248 $as_echo "no" >&6; }
11250 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11252 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for uid_t " >&5
11253 $as_echo_n "checking for uid_t ... " >&6; }
11254 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11255 /* end confdefs.h. */
11257 #include <sys/types.h>
11258 #ifdef HAVE_PWD_H
11259 #include <pwd.h>
11260 #endif
11263 main ()
11265 uid_t uid;
11267 return 0;
11269 _ACEOF
11270 if ac_fn_c_try_compile "$LINENO"; then :
11272 $as_echo "#define HAVE_UID_T 1" >>confdefs.h
11273 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11274 $as_echo "yes" >&6; }
11275 else
11276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11277 $as_echo "no" >&6; }
11279 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gid_t " >&5
11281 $as_echo_n "checking for gid_t ... " >&6; }
11282 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11283 /* end confdefs.h. */
11285 #include <sys/types.h>
11286 #ifdef HAVE_GRP_H
11287 #include <grp.h>
11288 #endif
11291 main ()
11293 gid_t gid;
11295 return 0;
11297 _ACEOF
11298 if ac_fn_c_try_compile "$LINENO"; then :
11300 $as_echo "#define HAVE_GID_T 1" >>confdefs.h
11301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11302 $as_echo "yes" >&6; }
11303 else
11304 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11305 $as_echo "no" >&6; }
11307 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11308 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SID " >&5
11309 $as_echo_n "checking for SID ... " >&6; }
11310 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11311 /* end confdefs.h. */
11313 #ifdef HAVE_WINDOWS_H
11314 #include <windows.h>
11315 #endif
11318 main ()
11320 SID sid;
11322 return 0;
11324 _ACEOF
11325 if ac_fn_c_try_compile "$LINENO"; then :
11327 $as_echo "#define HAVE_SID 1" >>confdefs.h
11328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11329 $as_echo "yes" >&6; }
11330 else
11331 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11332 $as_echo "no" >&6; }
11334 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11336 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for socklen_t " >&5
11337 $as_echo_n "checking for socklen_t ... " >&6; }
11338 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11339 /* end confdefs.h. */
11341 #include <sys/types.h>
11342 #ifdef HAVE_SYS_SOCKET_H
11343 #include <sys/socket.h>
11344 #endif
11347 main ()
11349 socklen_t len;
11351 return 0;
11353 _ACEOF
11354 if ac_fn_c_try_compile "$LINENO"; then :
11356 $as_echo "#define HAVE_SOCKLEN_T 1" >>confdefs.h
11357 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11358 $as_echo "yes" >&6; }
11359 else
11360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11361 $as_echo "no" >&6; }
11363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11365 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11366 /* end confdefs.h. */
11368 #include <stdio.h>
11371 main ()
11373 long long x = 0LL;
11375 return 0;
11377 _ACEOF
11378 if ac_fn_c_try_compile "$LINENO"; then :
11380 $as_echo "#define HAVE_CONST_LONGLONG 1" >>confdefs.h
11383 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11385 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11386 /* end confdefs.h. */
11388 #include <stdlib.h>
11389 #include <unistd.h>
11392 main ()
11394 char **x = _environ;
11396 return 0;
11398 _ACEOF
11399 if ac_fn_c_try_link "$LINENO"; then :
11401 $as_echo "#define HAVE_UNDERBAR_ENVIRON 1" >>confdefs.h
11404 rm -f core conftest.err conftest.$ac_objext \
11405 conftest$ac_exeext conftest.$ac_ext
11407 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PR_TERMCHILD constant in sys/prctl.h" >&5
11408 $as_echo_n "checking for PR_TERMCHILD constant in sys/prctl.h... " >&6; }
11409 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11410 /* end confdefs.h. */
11412 #ifdef HAVE_SYS_PRCTL_H
11413 #include <sys/prctl.h>
11414 #endif
11417 main ()
11419 int i = PR_TERMCHILD;
11421 return 0;
11423 _ACEOF
11424 if ac_fn_c_try_compile "$LINENO"; then :
11426 $as_echo "#define HAVE_PR_TERMCHILD 1" >>confdefs.h
11427 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11428 $as_echo "yes" >&6; }
11429 else
11430 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11431 $as_echo "no" >&6; }
11433 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11435 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PR_SET_PDEATHSIG constant in sys/prctl.h" >&5
11436 $as_echo_n "checking for PR_SET_PDEATHSIG constant in sys/prctl.h... " >&6; }
11437 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11438 /* end confdefs.h. */
11440 #ifdef HAVE_SYS_PRCTL_H
11441 #include <sys/prctl.h>
11442 #endif
11445 main ()
11447 int i = PR_SET_PDEATHSIG;
11449 return 0;
11451 _ACEOF
11452 if ac_fn_c_try_compile "$LINENO"; then :
11454 $as_echo "#define HAVE_PR_SET_PDEATHSIG 1" >>confdefs.h
11455 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11456 $as_echo "yes" >&6; }
11457 else
11458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11459 $as_echo "no" >&6; }
11461 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11463 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether termios.h defines TIOCGWINSZ" >&5
11464 $as_echo_n "checking whether termios.h defines TIOCGWINSZ... " >&6; }
11465 if ${ac_cv_sys_tiocgwinsz_in_termios_h+:} false; then :
11466 $as_echo_n "(cached) " >&6
11467 else
11468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11469 /* end confdefs.h. */
11470 #include <sys/types.h>
11471 #include <termios.h>
11472 #ifdef TIOCGWINSZ
11474 #endif
11476 _ACEOF
11477 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11478 $EGREP "yes" >/dev/null 2>&1; then :
11479 ac_cv_sys_tiocgwinsz_in_termios_h=yes
11480 else
11481 ac_cv_sys_tiocgwinsz_in_termios_h=no
11483 rm -f conftest*
11486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_termios_h" >&5
11487 $as_echo "$ac_cv_sys_tiocgwinsz_in_termios_h" >&6; }
11489 if test $ac_cv_sys_tiocgwinsz_in_termios_h != yes; then
11490 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sys/ioctl.h defines TIOCGWINSZ" >&5
11491 $as_echo_n "checking whether sys/ioctl.h defines TIOCGWINSZ... " >&6; }
11492 if ${ac_cv_sys_tiocgwinsz_in_sys_ioctl_h+:} false; then :
11493 $as_echo_n "(cached) " >&6
11494 else
11495 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11496 /* end confdefs.h. */
11497 #include <sys/types.h>
11498 #include <sys/ioctl.h>
11499 #ifdef TIOCGWINSZ
11501 #endif
11503 _ACEOF
11504 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
11505 $EGREP "yes" >/dev/null 2>&1; then :
11506 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=yes
11507 else
11508 ac_cv_sys_tiocgwinsz_in_sys_ioctl_h=no
11510 rm -f conftest*
11513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&5
11514 $as_echo "$ac_cv_sys_tiocgwinsz_in_sys_ioctl_h" >&6; }
11516 if test $ac_cv_sys_tiocgwinsz_in_sys_ioctl_h = yes; then
11518 $as_echo "#define GWINSZ_IN_SYS_IOCTL 1" >>confdefs.h
11524 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if linker supports -rdynamic" >&5
11525 $as_echo_n "checking if linker supports -rdynamic... " >&6; }
11526 save_CFLAGS="$CFLAGS"
11527 CFLAGS="-rdynamic"
11528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11529 /* end confdefs.h. */
11532 main ()
11536 return 0;
11538 _ACEOF
11539 if ac_fn_c_try_link "$LINENO"; then :
11540 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11541 $as_echo "yes" >&6; }
11542 rdynamic_flag=-rdynamic
11543 else
11544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11545 $as_echo "no" >&6; }
11546 rdynamic_flag=
11549 rm -f core conftest.err conftest.$ac_objext \
11550 conftest$ac_exeext conftest.$ac_ext
11551 CFLAGS="$save_CFLAGS"
11555 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether const arg for scandir() select method" >&5
11556 $as_echo_n "checking whether const arg for scandir() select method... " >&6; }
11557 cat <<End-of-File >conftest.c
11558 #include <stdlib.h>
11559 #include <unistd.h>
11560 #include <dirent.h>
11561 static int
11562 my_select(const struct dirent *foo) { return 0; }
11563 int main() { struct dirent **list; return scandir(".", &list, my_select, NULL); }
11564 End-of-File
11565 (eval $ac_compile) 2>conftest.out
11566 cat conftest.out >&5
11567 if test -s conftest.out
11568 then
11569 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11570 $as_echo "no" >&6; }
11571 else
11573 $as_echo "#define HAVE_CONST_DIRENT 1" >>confdefs.h
11575 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11576 $as_echo "yes" >&6; }
11578 rm -f conftest.*
11580 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether struct dirent has a d_off field" >&5
11581 $as_echo_n "checking whether struct dirent has a d_off field... " >&6; }
11582 cat <<End-of-File >conftest.c
11583 #include <stdlib.h>
11584 #include <unistd.h>
11585 #include <dirent.h>
11586 int main() { struct dirent d; d.d_off = 0; }
11587 End-of-File
11588 (eval $ac_compile) 2>conftest.out
11589 cat conftest.out >&5
11590 if test -s conftest.out
11591 then
11592 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11593 $as_echo "no" >&6; }
11594 else
11596 $as_echo "#define HAVE_DIRENT_D_OFF 1" >>confdefs.h
11598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11599 $as_echo "yes" >&6; }
11601 rm -f conftest.*
11603 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if printf %p produces 0x prefix" >&5
11604 $as_echo_n "checking if printf %p produces 0x prefix... " >&6; }
11605 if test "$cross_compiling" = "yes"; then
11606 ans=$printf_p_prefix
11607 echo "cross-compile -> \"$ans\"" >&5
11608 else
11609 cat <<End-of-File >conftest.c
11610 #include <stdio.h>
11611 int main(int argc, char **argv) { printf("%p", argv); return(0); }
11612 End-of-File
11613 (eval $ac_compile) 2>&5
11614 (eval $ac_link) 2>&5
11615 ans=`./conftest`
11616 echo "./conftest -> \"$ans\"" >&5
11618 case "$ans"
11620 0x*)
11622 $as_echo "#define HAVE_PRINTF_P_PFX 1" >>confdefs.h
11624 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11625 $as_echo "yes" >&6; }
11628 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11629 $as_echo "no" >&6; }
11631 esac
11632 rm -rf conftest conftest.*
11634 _do_type()
11636 # need to deal with this sort of cpp output ...
11637 # typedef long pid_t;
11638 # typedef unsigned int pid_t;
11639 # typedef unsigned int pid_t __attribute__ ((__mode__ (__SI__)));
11640 # __extension__ typedef int pid_t;
11641 # typedef foo_t
11642 # pid_t;
11643 # typedef struct {
11644 # ....
11645 # } pid_t;
11646 # typedef ... *pid;
11647 # and chaining of the form
11648 # typedef long __pid_t;
11649 # typedef __pid_t pid_t;
11651 _raw=`$CPP conftest.c \
11652 | $SED \
11653 -e 's/[ ]__attribute__ ((.*));/;/' \
11654 -e 's/__extension__[ ][ ]*//' \
11655 | $AWK '
11656 /bozo/ { print; next }
11657 $1 == "typedef" { printf "%s",$0
11658 if ($NF ~ /;$/) {
11659 print ""
11660 next
11662 wantsemi = 1
11663 if ($0 ~ /{/) depth = 1
11664 next
11666 wantsemi == 1 { printf " %s",$0
11667 if ($0 ~ /{/) depth++
11668 if (depth) {
11669 if ($0 ~ /}/) depth--
11670 if (depth > 0) next
11672 if ($NF ~ /;$/) {
11673 print ""
11674 wantsemi = 0
11675 next
11677 }' \
11678 | $SED \
11679 -e 's/\*/* /g' \
11680 -e 's/^[ ]*//' \
11681 -e 's/;[ ]*$//' \
11682 | $AWK '
11683 $1 == "typedef" { map[$NF] = ""
11684 for (i = 2; i < NF; i++) {
11685 if (i == 2)
11686 map[$NF] = $i
11687 else
11688 map[$NF] = map[$NF] " " $i
11690 print $NF " -> " map[$NF] >"conftest.debug"
11691 next
11693 $2 == "bozo" { t = $1
11694 printf "best guess: %s",t >"conftest.debug"
11695 while (map[t] != "") {
11696 t = map[t]
11697 printf " -> %s",t >"conftest.debug"
11699 print "" >"conftest.debug"
11700 print t
11701 exit
11703 case "$_raw"
11705 int)
11706 _fmt='"d"'
11708 unsigned|'unsigned int')
11709 _fmt='"u"'
11711 long|'long int')
11712 _fmt='"ld"'
11714 'long long'|'long long int')
11715 if test $target_os = mingw; then
11716 _fmt='"I64d"'
11717 else
11718 _fmt='"lld"'
11721 'unsigned long'|'unsigned long int'|'long unsigned int')
11722 _fmt='"lu"'
11724 'unsigned long long'|'unsigned long long int')
11725 if test $target_os = mingw; then
11726 _fmt='"I64u"'
11727 else
11728 _fmt='"llu"'
11731 *\*) # pointer to a something
11732 _fmt='"p"'
11734 struct\ *) # not much can be done here ...
11735 _fmt='"p"'
11738 echo
11739 echo "FATAL ERROR: don't know what to do with type \"$_raw\""
11740 echo "... typedef mapping ..."
11741 cat conftest.debug
11742 rm -rf conftest conftest.*
11743 exit 1
11745 esac
11748 { $as_echo "$as_me:${as_lineno-$LINENO}: checking printf type for pid_t" >&5
11749 $as_echo_n "checking printf type for pid_t... " >&6; }
11750 if test "$cross_compiling" = "yes"; then
11751 ans=$printf_fmt_pid
11752 echo "cross-compile -> \"$ans\"" >&5
11753 fmt_pid="$ans"
11754 else
11755 cat <<End-of-File >conftest.c
11756 #include <sys/types.h>
11757 #include <unistd.h>
11758 pid_t bozo;
11759 End-of-File
11760 _do_type
11761 fmt_pid="$_fmt"
11763 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fmt_pid" >&5
11764 $as_echo "$fmt_pid" >&6; }
11766 rm -rf conftest.c conftest.debug
11768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking printf type for int64_t " >&5
11769 $as_echo_n "checking printf type for int64_t ... " >&6; }
11770 if test "$cross_compiling" = "yes"; then
11771 ans=$printf_fmt_int64
11772 echo "cross-compile -> \"$ans\"" >&5
11773 else
11774 cat <<End-of-File >conftest.c
11775 #include <stdio.h>
11776 #include <stdint.h>
11777 #include <inttypes.h>
11778 int main()
11780 printf("\"%s\"\n", __PRI64_PREFIX "d");
11781 return(0);
11783 End-of-File
11784 ans=''
11785 (eval $ac_link) 2>&5
11786 if test -x ./conftest
11787 then
11788 ans=`./conftest`
11789 echo "./conftest -> \"$ans\"" >&5
11791 if test -z "$ans"
11792 then
11793 cat <<End-of-File >conftest.c
11794 #include <stdio.h>
11795 #include <stdint.h>
11796 #include <string.h>
11797 int main()
11799 char buf[17];
11800 int64_t bozo = 0x12345678abcdLL;
11801 sprintf(buf, "%lx", bozo);
11802 if (strcmp(buf, "12345678abcd") == 0)
11803 printf("\"ld\"\n");
11804 else {
11805 sprintf(buf, "%llx", bozo);
11806 if (strcmp(buf, "12345678abcd") == 0)
11807 printf("\"lld\"\n");
11809 return(0);
11811 End-of-File
11812 (eval $ac_link) 2>&5
11813 if test -x ./conftest
11814 then
11815 ans=`./conftest`
11816 echo "./conftest -> \"$ans\"" >&5
11820 if test -z "$ans"
11821 then
11822 echo 'FATAL ERROR: Cannot determine printf format for int64_t type'
11823 rm -rf conftest conftest.*
11824 exit 1
11826 fmt_int64="$ans"
11827 { $as_echo "$as_me:${as_lineno-$LINENO}: result: \"$fmt_int64\"" >&5
11828 $as_echo "\"$fmt_int64\"" >&6; }
11830 rm -rf conftest.* conftest
11832 { $as_echo "$as_me:${as_lineno-$LINENO}: checking strtol or strtoll for int64_t" >&5
11833 $as_echo_n "checking strtol or strtoll for int64_t... " >&6; }
11834 if test "$cross_compiling" = "yes"; then
11835 ans=$strtoint64
11836 echo "cross-compile -> \"$ans\"" >&5
11837 else
11838 cat <<End-of-File >conftest.c
11839 #include <stdio.h>
11840 #include <stdlib.h>
11841 main()
11843 long long int value = -1;
11844 value = strtol("1234567812345678", NULL, 16);
11845 if (value == 0x1234567812345678LL) {
11846 printf("strotol\n");
11847 exit(0);
11849 value = strtoll("1234567812345678", NULL, 16);
11850 if (value == 0x1234567812345678LL) {
11851 printf("strtoll\n");
11852 exit(0);
11854 exit(1);
11856 End-of-File
11857 (eval $ac_compile) 2>&5
11858 (eval $ac_link) 2>&5
11859 ans=`./conftest`
11860 echo "./conftest -> \"$ans\"" >&5
11862 case "$ans"
11864 strtol)
11865 $as_echo "#define strtoint64 strtol" >>confdefs.h
11867 $as_echo "#define strtouint64 strtoul" >>confdefs.h
11869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: strtol" >&5
11870 $as_echo "strtol" >&6; }
11872 strtoll)
11873 $as_echo "#define strtoint64 strtoll" >>confdefs.h
11875 $as_echo "#define strtouint64 strtoull" >>confdefs.h
11877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: strtoll" >&5
11878 $as_echo "strtoll" >&6; }
11881 $as_echo "#define strtoint64 strtoll" >>confdefs.h
11883 $as_echo "#define strtouint64 strtoull" >>confdefs.h
11885 { $as_echo "$as_me:${as_lineno-$LINENO}: result: assuming strtoll" >&5
11886 $as_echo "assuming strtoll" >&6; }
11888 esac
11889 rm -rf conftest conftest.*
11891 if test "$do_threads" = "check" -o "$do_threads" = "yes"
11892 then
11893 for ac_header in pthread.h
11894 do :
11895 ac_fn_c_check_header_mongrel "$LINENO" "pthread.h" "ac_cv_header_pthread_h" "$ac_includes_default"
11896 if test "x$ac_cv_header_pthread_h" = xyes; then :
11897 cat >>confdefs.h <<_ACEOF
11898 #define HAVE_PTHREAD_H 1
11899 _ACEOF
11901 else
11903 if test "$do_threads" = "yes"
11904 then
11905 as_fn_error $? "cannot enable multi-threaded mode - no pthread.h" "$LINENO" 5
11910 done
11913 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_mutex_t in pthread.h" >&5
11914 $as_echo_n "checking for pthread_mutex_t in pthread.h... " >&6; }
11915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11916 /* end confdefs.h. */
11917 #include <pthread.h>
11919 main ()
11921 pthread_mutex_t mymutex;
11923 return 0;
11925 _ACEOF
11926 if ac_fn_c_try_compile "$LINENO"; then :
11928 $as_echo "#define HAVE_PTHREAD_MUTEX_T 1" >>confdefs.h
11929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
11930 $as_echo "yes" >&6; }
11931 else
11933 if test "$do_threads" = "yes"
11934 then
11935 as_fn_error $? "cannot enable multi-threaded mode - no mutexes" "$LINENO" 5
11936 else
11937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
11938 $as_echo "no" >&6; }
11942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
11944 { $as_echo "$as_me:${as_lineno-$LINENO}: checking where pthread_create() is defined" >&5
11945 $as_echo_n "checking where pthread_create() is defined... " >&6; }
11946 for cand in "" pthreads pthread ; do
11947 savedLIBS=$LIBS
11948 if test -n "$cand"
11949 then
11950 LIBS=`echo $LIBS -l$cand`
11952 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
11953 /* end confdefs.h. */
11955 #include <pthread.h>
11958 main ()
11961 pthread_create(NULL, NULL, NULL, NULL);
11964 return 0;
11966 _ACEOF
11967 if ac_fn_c_try_link "$LINENO"; then :
11968 { $as_echo "$as_me:${as_lineno-$LINENO}: result: lib${cand:-c}" >&5
11969 $as_echo "lib${cand:-c}" >&6; }
11970 if test -z "$cand"
11971 then
11972 lib_for_pthreads="$cand"
11973 else
11974 lib_for_pthreads="-l$cand"
11976 LIBS=$savedLIBS
11977 break
11979 rm -f core conftest.err conftest.$ac_objext \
11980 conftest$ac_exeext conftest.$ac_ext
11981 LIBS=$savedLIBS
11982 done
11985 if test "$ac_cv_header_pthread_h" = "yes"
11986 then
11987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking printf type for pthread_t" >&5
11988 $as_echo_n "checking printf type for pthread_t... " >&6; }
11989 cat <<End-of-File >conftest.c
11990 #include <pthread.h>
11991 pthread_t bozo;
11992 End-of-File
11993 _do_type
11994 fmt_pthread="$_fmt"
11995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $fmt_pthread" >&5
11996 $as_echo "$fmt_pthread" >&6; }
11998 rm -rf conftest.c conftest.debug
12000 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if compiler supports __thread" >&5
12001 $as_echo_n "checking if compiler supports __thread... " >&6; }
12002 if test $target_os = netbsd
12003 then
12004 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12005 /* end confdefs.h. */
12006 #include <pthread.h>
12007 #if __GNUC__ < 4 || ( __GNUC__ == 4 && __GNUC_MINOR__ < 5 )
12008 broken!
12009 #else
12010 __thread int x;
12011 #endif
12013 main ()
12017 return 0;
12019 _ACEOF
12020 if ac_fn_c_try_compile "$LINENO"; then :
12022 $as_echo "#define HAVE___THREAD 1" >>confdefs.h
12023 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12024 $as_echo "yes" >&6; }
12025 else
12026 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12027 $as_echo "no" >&6; }
12029 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12030 else
12031 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12032 /* end confdefs.h. */
12033 #include <pthread.h>
12034 __thread int x;
12036 main ()
12040 return 0;
12042 _ACEOF
12043 if ac_fn_c_try_compile "$LINENO"; then :
12045 $as_echo "#define HAVE___THREAD 1" >>confdefs.h
12046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12047 $as_echo "yes" >&6; }
12048 else
12049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12050 $as_echo "no" >&6; }
12052 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12055 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pthread_barrier_t in pthread.h" >&5
12056 $as_echo_n "checking for pthread_barrier_t in pthread.h... " >&6; }
12057 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12058 /* end confdefs.h. */
12059 #include <pthread.h>
12061 main ()
12063 pthread_barrier_t mybarrier;
12065 return 0;
12067 _ACEOF
12068 if ac_fn_c_try_compile "$LINENO"; then :
12070 $as_echo "#define HAVE_PTHREAD_BARRIER_T 1" >>confdefs.h
12071 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12072 $as_echo "yes" >&6; }
12073 else
12074 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12075 $as_echo "no" >&6; }
12077 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
12081 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sizeof long" >&5
12082 $as_echo_n "checking sizeof long... " >&6; }
12083 if test "$cross_compiling" = "yes"; then
12084 ans=$sizeof_long
12085 echo "cross-compile -> \"$ans\"" >&5
12086 else
12087 cat <<End-of-File >conftest.c
12088 #include <stdio.h>
12089 main() { printf("%d", (int)sizeof(long)); }
12090 End-of-File
12091 (eval $ac_compile) 2>&5
12092 (eval $ac_link) 2>&5
12093 ans=`./conftest`
12094 echo "./conftest -> \"$ans\"" >&5
12096 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
12097 $as_echo "$ans" >&6; }
12098 if test "$ans" = 4; then
12100 $as_echo "#define HAVE_32BIT_LONG 1" >>confdefs.h
12102 elif test "$ans" = 8; then
12104 $as_echo "#define HAVE_64BIT_LONG 1" >>confdefs.h
12106 else
12107 echo
12108 echo "FATAL ERROR: size of long is not 32 or 64 bits, cannot proceed."
12109 echo "sizeof(char *) -> $ans"
12110 rm -rf conftest conftest.*
12111 exit 1
12113 rm -rf conftest conftest.*
12115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sizeof pointer" >&5
12116 $as_echo_n "checking sizeof pointer... " >&6; }
12117 if test "$cross_compiling" = "yes"; then
12118 ans=$sizeof_pointer
12119 echo "cross-compile -> \"$ans\"" >&5
12120 else
12121 cat <<End-of-File >conftest.c
12122 #include <stdio.h>
12123 main() { printf("%d", (int)sizeof(char *)); }
12124 End-of-File
12125 (eval $ac_compile) 2>&5
12126 (eval $ac_link) 2>&5
12127 ans=`./conftest`
12128 echo "./conftest -> \"$ans\"" >&5
12130 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
12131 $as_echo "$ans" >&6; }
12132 if test "$ans" = 4; then
12134 $as_echo "#define HAVE_32BIT_PTR 1" >>confdefs.h
12136 PCP_PTR_SIZE=32
12137 elif test "$ans" = 8; then
12139 $as_echo "#define HAVE_64BIT_PTR 1" >>confdefs.h
12141 PCP_PTR_SIZE=64
12142 else
12143 echo
12144 echo "FATAL ERROR: size of pointer is not 32 or 64 bits, cannot proceed."
12145 echo "sizeof(char *) -> $ans"
12146 rm -rf conftest conftest.*
12147 exit 1
12149 rm -rf conftest conftest.*
12151 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sizeof int" >&5
12152 $as_echo_n "checking sizeof int... " >&6; }
12153 if test "$cross_compiling" = "yes"; then
12154 ans=$sizeof_int
12155 echo "cross-compile -> \"$ans\"" >&5
12156 else
12157 cat <<End-of-File >conftest.c
12158 #include <stdio.h>
12159 main() { printf("%d", (int)sizeof(int)); }
12160 End-of-File
12161 (eval $ac_compile) 2>&5
12162 (eval $ac_link) 2>&5
12163 ans=`./conftest`
12164 echo "./conftest -> \"$ans\"" >&5
12166 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ans" >&5
12167 $as_echo "$ans" >&6; }
12168 if test "$ans" != 4
12169 then
12170 echo
12171 echo "FATAL ERROR: sizeof(int) is not 32 bits, cannot proceed."
12172 echo "Note: 32-bit ints are assumed in the PCP external file formats and"
12173 echo " the over-the-wire PDU formats"
12174 rm -rf conftest conftest.*
12175 exit 1
12177 rm -rf conftest conftest.*
12179 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if bit fields allocated left-to-right" >&5
12180 $as_echo_n "checking if bit fields allocated left-to-right... " >&6; }
12181 if test "$cross_compiling" = "yes"; then
12182 ans=$bit_field_scheme
12183 echo "cross-compile -> \"$ans\"" >&5
12184 else
12185 cat <<End-of-File >conftest.c
12186 union { struct { unsigned int b:4; unsigned int c:4; } a; int p; } u;
12187 main() { u.a.b = 1; u.a.c = 2; printf("%0*x", 2*sizeof(int), u.p); }
12188 End-of-File
12189 (eval $ac_compile) 2>&5
12190 (eval $ac_link) 2>&5
12191 ans=`./conftest`
12192 echo "./conftest -> \"$ans\"" >&5
12194 case "$ans"
12196 1200*|*0012)
12197 # left-to-right starting from MSB (SGI cc on MIPS), or
12198 # left-to-right ending at LSB
12200 $as_echo "#define HAVE_BITFIELDS_LTOR 1" >>confdefs.h
12202 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
12203 $as_echo "yes" >&6; }
12205 2100*|*0021)
12206 # right-to-left ending at MSB, or
12207 # right-to-left starting from LSB (gcc in Intel)
12208 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
12209 $as_echo "no" >&6; }
12212 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unknown" >&5
12213 $as_echo "unknown" >&6; }
12214 echo "FATAL ERROR: could not fathom your compiler's bit field allocation scheme"
12215 rm -f conftest conftest.*
12216 exit 1
12218 esac
12219 rm -rf conftest conftest.*
12221 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12222 /* end confdefs.h. */
12224 #include <stdlib.h>
12225 #include <unistd.h>
12228 main ()
12231 __uint64_t x = 0;
12232 double y = (double)x;
12235 return 0;
12237 _ACEOF
12238 if ac_fn_c_try_link "$LINENO"; then :
12240 $as_echo "#define HAVE_CAST_U64_DOUBLE 1" >>confdefs.h
12243 rm -f core conftest.err conftest.$ac_objext \
12244 conftest$ac_exeext conftest.$ac_ext
12246 for ac_func in basename
12247 do :
12248 ac_fn_c_check_func "$LINENO" "basename" "ac_cv_func_basename"
12249 if test "x$ac_cv_func_basename" = xyes; then :
12250 cat >>confdefs.h <<_ACEOF
12251 #define HAVE_BASENAME 1
12252 _ACEOF
12255 done
12257 if test $ac_cv_func_basename = yes
12258 then
12260 $as_echo "#define HAVE_BASENAME 1" >>confdefs.h
12263 $as_echo "#define HAVE_DIRNAME 1" >>confdefs.h
12265 lib_for_basename=""
12266 else
12267 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for basename in -lgen" >&5
12268 $as_echo_n "checking for basename in -lgen... " >&6; }
12269 if ${ac_cv_lib_gen_basename+:} false; then :
12270 $as_echo_n "(cached) " >&6
12271 else
12272 ac_check_lib_save_LIBS=$LIBS
12273 LIBS="-lgen $LIBS"
12274 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12275 /* end confdefs.h. */
12277 /* Override any GCC internal prototype to avoid an error.
12278 Use char because int might match the return type of a GCC
12279 builtin and then its argument prototype would still apply. */
12280 #ifdef __cplusplus
12281 extern "C"
12282 #endif
12283 char basename ();
12285 main ()
12287 return basename ();
12289 return 0;
12291 _ACEOF
12292 if ac_fn_c_try_link "$LINENO"; then :
12293 ac_cv_lib_gen_basename=yes
12294 else
12295 ac_cv_lib_gen_basename=no
12297 rm -f core conftest.err conftest.$ac_objext \
12298 conftest$ac_exeext conftest.$ac_ext
12299 LIBS=$ac_check_lib_save_LIBS
12301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_gen_basename" >&5
12302 $as_echo "$ac_cv_lib_gen_basename" >&6; }
12303 if test "x$ac_cv_lib_gen_basename" = xyes; then :
12304 cat >>confdefs.h <<_ACEOF
12305 #define HAVE_LIBGEN 1
12306 _ACEOF
12308 LIBS="-lgen $LIBS"
12312 if test $ac_cv_lib_gen_basename = yes
12313 then
12315 $as_echo "#define HAVE_BASENAME 1" >>confdefs.h
12318 $as_echo "#define HAVE_DIRNAME 1" >>confdefs.h
12320 lib_for_basename="-lgen"
12321 else
12322 lib_for_basename="-lpcp"
12327 lib_for_clock_gettime=
12328 for ac_func in clock_gettime
12329 do :
12330 ac_fn_c_check_func "$LINENO" "clock_gettime" "ac_cv_func_clock_gettime"
12331 if test "x$ac_cv_func_clock_gettime" = xyes; then :
12332 cat >>confdefs.h <<_ACEOF
12333 #define HAVE_CLOCK_GETTIME 1
12334 _ACEOF
12337 done
12339 if test $ac_cv_func_clock_gettime = no
12340 then
12341 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for clock_gettime in -lrt" >&5
12342 $as_echo_n "checking for clock_gettime in -lrt... " >&6; }
12343 if ${ac_cv_lib_rt_clock_gettime+:} false; then :
12344 $as_echo_n "(cached) " >&6
12345 else
12346 ac_check_lib_save_LIBS=$LIBS
12347 LIBS="-lrt $LIBS"
12348 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12349 /* end confdefs.h. */
12351 /* Override any GCC internal prototype to avoid an error.
12352 Use char because int might match the return type of a GCC
12353 builtin and then its argument prototype would still apply. */
12354 #ifdef __cplusplus
12355 extern "C"
12356 #endif
12357 char clock_gettime ();
12359 main ()
12361 return clock_gettime ();
12363 return 0;
12365 _ACEOF
12366 if ac_fn_c_try_link "$LINENO"; then :
12367 ac_cv_lib_rt_clock_gettime=yes
12368 else
12369 ac_cv_lib_rt_clock_gettime=no
12371 rm -f core conftest.err conftest.$ac_objext \
12372 conftest$ac_exeext conftest.$ac_ext
12373 LIBS=$ac_check_lib_save_LIBS
12375 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_rt_clock_gettime" >&5
12376 $as_echo "$ac_cv_lib_rt_clock_gettime" >&6; }
12377 if test "x$ac_cv_lib_rt_clock_gettime" = xyes; then :
12378 cat >>confdefs.h <<_ACEOF
12379 #define HAVE_LIBRT 1
12380 _ACEOF
12382 LIBS="-lrt $LIBS"
12386 if test $ac_cv_lib_rt_clock_gettime = yes
12387 then
12389 $as_echo "#define HAVE_CLOCK_GETTIME 1" >>confdefs.h
12391 lib_for_rt=-lrt
12396 lib_for_dlopen=
12397 for ac_func in dlopen
12398 do :
12399 ac_fn_c_check_func "$LINENO" "dlopen" "ac_cv_func_dlopen"
12400 if test "x$ac_cv_func_dlopen" = xyes; then :
12401 cat >>confdefs.h <<_ACEOF
12402 #define HAVE_DLOPEN 1
12403 _ACEOF
12406 done
12408 if test $ac_cv_func_dlopen = no
12409 then
12410 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dlopen in -ldl" >&5
12411 $as_echo_n "checking for dlopen in -ldl... " >&6; }
12412 if ${ac_cv_lib_dl_dlopen+:} false; then :
12413 $as_echo_n "(cached) " >&6
12414 else
12415 ac_check_lib_save_LIBS=$LIBS
12416 LIBS="-ldl $LIBS"
12417 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12418 /* end confdefs.h. */
12420 /* Override any GCC internal prototype to avoid an error.
12421 Use char because int might match the return type of a GCC
12422 builtin and then its argument prototype would still apply. */
12423 #ifdef __cplusplus
12424 extern "C"
12425 #endif
12426 char dlopen ();
12428 main ()
12430 return dlopen ();
12432 return 0;
12434 _ACEOF
12435 if ac_fn_c_try_link "$LINENO"; then :
12436 ac_cv_lib_dl_dlopen=yes
12437 else
12438 ac_cv_lib_dl_dlopen=no
12440 rm -f core conftest.err conftest.$ac_objext \
12441 conftest$ac_exeext conftest.$ac_ext
12442 LIBS=$ac_check_lib_save_LIBS
12444 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dl_dlopen" >&5
12445 $as_echo "$ac_cv_lib_dl_dlopen" >&6; }
12446 if test "x$ac_cv_lib_dl_dlopen" = xyes; then :
12447 cat >>confdefs.h <<_ACEOF
12448 #define HAVE_LIBDL 1
12449 _ACEOF
12451 LIBS="-ldl $LIBS"
12455 if test $ac_cv_lib_dl_dlopen = yes
12456 then
12458 $as_echo "#define HAVE_DLOPEN 1" >>confdefs.h
12460 lib_for_dlopen=-ldl
12465 lib_for_math=
12466 for ac_func in flog10
12467 do :
12468 ac_fn_c_check_func "$LINENO" "flog10" "ac_cv_func_flog10"
12469 if test "x$ac_cv_func_flog10" = xyes; then :
12470 cat >>confdefs.h <<_ACEOF
12471 #define HAVE_FLOG10 1
12472 _ACEOF
12475 done
12477 if test $ac_cv_func_flog10 = no
12478 then
12479 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for flog10 in -lm" >&5
12480 $as_echo_n "checking for flog10 in -lm... " >&6; }
12481 if ${ac_cv_lib_m_flog10+:} false; then :
12482 $as_echo_n "(cached) " >&6
12483 else
12484 ac_check_lib_save_LIBS=$LIBS
12485 LIBS="-lm $LIBS"
12486 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12487 /* end confdefs.h. */
12489 /* Override any GCC internal prototype to avoid an error.
12490 Use char because int might match the return type of a GCC
12491 builtin and then its argument prototype would still apply. */
12492 #ifdef __cplusplus
12493 extern "C"
12494 #endif
12495 char flog10 ();
12497 main ()
12499 return flog10 ();
12501 return 0;
12503 _ACEOF
12504 if ac_fn_c_try_link "$LINENO"; then :
12505 ac_cv_lib_m_flog10=yes
12506 else
12507 ac_cv_lib_m_flog10=no
12509 rm -f core conftest.err conftest.$ac_objext \
12510 conftest$ac_exeext conftest.$ac_ext
12511 LIBS=$ac_check_lib_save_LIBS
12513 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_flog10" >&5
12514 $as_echo "$ac_cv_lib_m_flog10" >&6; }
12515 if test "x$ac_cv_lib_m_flog10" = xyes; then :
12516 cat >>confdefs.h <<_ACEOF
12517 #define HAVE_LIBM 1
12518 _ACEOF
12520 LIBS="-lm $LIBS"
12524 if test $ac_cv_lib_m_flog10 = yes
12525 then
12527 $as_echo "#define HAVE_FLOG10 1" >>confdefs.h
12529 lib_for_math=-lm
12531 else
12533 $as_echo "#define HAVE_FLOG10 1" >>confdefs.h
12536 for ac_func in pow
12537 do :
12538 ac_fn_c_check_func "$LINENO" "pow" "ac_cv_func_pow"
12539 if test "x$ac_cv_func_pow" = xyes; then :
12540 cat >>confdefs.h <<_ACEOF
12541 #define HAVE_POW 1
12542 _ACEOF
12545 done
12547 if test $ac_cv_func_pow = no
12548 then
12549 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pow in -lm" >&5
12550 $as_echo_n "checking for pow in -lm... " >&6; }
12551 if ${ac_cv_lib_m_pow+:} false; then :
12552 $as_echo_n "(cached) " >&6
12553 else
12554 ac_check_lib_save_LIBS=$LIBS
12555 LIBS="-lm $LIBS"
12556 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12557 /* end confdefs.h. */
12559 /* Override any GCC internal prototype to avoid an error.
12560 Use char because int might match the return type of a GCC
12561 builtin and then its argument prototype would still apply. */
12562 #ifdef __cplusplus
12563 extern "C"
12564 #endif
12565 char pow ();
12567 main ()
12569 return pow ();
12571 return 0;
12573 _ACEOF
12574 if ac_fn_c_try_link "$LINENO"; then :
12575 ac_cv_lib_m_pow=yes
12576 else
12577 ac_cv_lib_m_pow=no
12579 rm -f core conftest.err conftest.$ac_objext \
12580 conftest$ac_exeext conftest.$ac_ext
12581 LIBS=$ac_check_lib_save_LIBS
12583 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_pow" >&5
12584 $as_echo "$ac_cv_lib_m_pow" >&6; }
12585 if test "x$ac_cv_lib_m_pow" = xyes; then :
12586 cat >>confdefs.h <<_ACEOF
12587 #define HAVE_LIBM 1
12588 _ACEOF
12590 LIBS="-lm $LIBS"
12594 if test $ac_cv_lib_m_pow = yes
12595 then
12597 $as_echo "#define HAVE_POW 1" >>confdefs.h
12599 lib_for_math=-lm
12601 else
12603 $as_echo "#define HAVE_POW 1" >>confdefs.h
12606 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpclassify()" >&5
12607 $as_echo_n "checking for fpclassify()... " >&6; }
12608 ac_cv_func_fpclassify=no
12609 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12610 /* end confdefs.h. */
12612 #include <math.h>
12615 main ()
12618 double x = 123.456;
12619 if (fpclassify(x) == FP_NAN) exit(1);
12622 return 0;
12624 _ACEOF
12625 if ac_fn_c_try_link "$LINENO"; then :
12626 ac_cv_func_fpclassify=yes
12628 rm -f core conftest.err conftest.$ac_objext \
12629 conftest$ac_exeext conftest.$ac_ext
12630 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fpclassify" >&5
12631 $as_echo "$ac_cv_func_fpclassify" >&6; }
12632 if test $ac_cv_func_fpclassify = no
12633 then
12634 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for fpclassify() with -lm" >&5
12635 $as_echo_n "checking for fpclassify() with -lm... " >&6; }
12636 savedLIBS=$LIBS
12637 LIBS=-lm
12638 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12639 /* end confdefs.h. */
12641 #include <math.h>
12644 main ()
12647 double x = 123.456;
12648 if (fpclassify(x) == FP_NAN) exit(1);
12651 return 0;
12653 _ACEOF
12654 if ac_fn_c_try_link "$LINENO"; then :
12655 ac_cv_func_fpclassify=yes
12657 rm -f core conftest.err conftest.$ac_objext \
12658 conftest$ac_exeext conftest.$ac_ext
12659 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_func_fpclassify" >&5
12660 $as_echo "$ac_cv_func_fpclassify" >&6; }
12661 if test $ac_cv_func_fpclassify = yes
12662 then
12663 lib_for_math=-lm
12665 LIBS=$savedLIBS
12667 if test $ac_cv_func_fpclassify = yes
12668 then
12670 $as_echo "#define HAVE_FPCLASSIFY 1" >>confdefs.h
12672 else
12673 for ac_func in isnan
12674 do :
12675 ac_fn_c_check_func "$LINENO" "isnan" "ac_cv_func_isnan"
12676 if test "x$ac_cv_func_isnan" = xyes; then :
12677 cat >>confdefs.h <<_ACEOF
12678 #define HAVE_ISNAN 1
12679 _ACEOF
12682 done
12684 if test $ac_cv_func_isnan = no
12685 then
12686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnan in -lm" >&5
12687 $as_echo_n "checking for isnan in -lm... " >&6; }
12688 if ${ac_cv_lib_m_isnan+:} false; then :
12689 $as_echo_n "(cached) " >&6
12690 else
12691 ac_check_lib_save_LIBS=$LIBS
12692 LIBS="-lm $LIBS"
12693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12694 /* end confdefs.h. */
12696 /* Override any GCC internal prototype to avoid an error.
12697 Use char because int might match the return type of a GCC
12698 builtin and then its argument prototype would still apply. */
12699 #ifdef __cplusplus
12700 extern "C"
12701 #endif
12702 char isnan ();
12704 main ()
12706 return isnan ();
12708 return 0;
12710 _ACEOF
12711 if ac_fn_c_try_link "$LINENO"; then :
12712 ac_cv_lib_m_isnan=yes
12713 else
12714 ac_cv_lib_m_isnan=no
12716 rm -f core conftest.err conftest.$ac_objext \
12717 conftest$ac_exeext conftest.$ac_ext
12718 LIBS=$ac_check_lib_save_LIBS
12720 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_isnan" >&5
12721 $as_echo "$ac_cv_lib_m_isnan" >&6; }
12722 if test "x$ac_cv_lib_m_isnan" = xyes; then :
12723 cat >>confdefs.h <<_ACEOF
12724 #define HAVE_LIBM 1
12725 _ACEOF
12727 LIBS="-lm $LIBS"
12731 if test $ac_cv_lib_m_isnan = yes
12732 then
12734 $as_echo "#define HAVE_ISNAN 1" >>confdefs.h
12736 lib_for_math=-lm
12739 for ac_func in isnanf
12740 do :
12741 ac_fn_c_check_func "$LINENO" "isnanf" "ac_cv_func_isnanf"
12742 if test "x$ac_cv_func_isnanf" = xyes; then :
12743 cat >>confdefs.h <<_ACEOF
12744 #define HAVE_ISNANF 1
12745 _ACEOF
12748 done
12750 if test $ac_cv_func_isnanf = no
12751 then
12752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for isnanf in -lm" >&5
12753 $as_echo_n "checking for isnanf in -lm... " >&6; }
12754 if ${ac_cv_lib_m_isnanf+:} false; then :
12755 $as_echo_n "(cached) " >&6
12756 else
12757 ac_check_lib_save_LIBS=$LIBS
12758 LIBS="-lm $LIBS"
12759 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12760 /* end confdefs.h. */
12762 /* Override any GCC internal prototype to avoid an error.
12763 Use char because int might match the return type of a GCC
12764 builtin and then its argument prototype would still apply. */
12765 #ifdef __cplusplus
12766 extern "C"
12767 #endif
12768 char isnanf ();
12770 main ()
12772 return isnanf ();
12774 return 0;
12776 _ACEOF
12777 if ac_fn_c_try_link "$LINENO"; then :
12778 ac_cv_lib_m_isnanf=yes
12779 else
12780 ac_cv_lib_m_isnanf=no
12782 rm -f core conftest.err conftest.$ac_objext \
12783 conftest$ac_exeext conftest.$ac_ext
12784 LIBS=$ac_check_lib_save_LIBS
12786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_m_isnanf" >&5
12787 $as_echo "$ac_cv_lib_m_isnanf" >&6; }
12788 if test "x$ac_cv_lib_m_isnanf" = xyes; then :
12789 cat >>confdefs.h <<_ACEOF
12790 #define HAVE_LIBM 1
12791 _ACEOF
12793 LIBS="-lm $LIBS"
12797 if test $ac_cv_lib_m_isnanf = yes
12798 then
12800 $as_echo "#define HAVE_ISNANF 1" >>confdefs.h
12802 lib_for_math=-lm
12808 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12809 /* end confdefs.h. */
12810 #include <signal.h>
12812 main ()
12814 SIG_PF x;
12816 return 0;
12818 _ACEOF
12819 if ac_fn_c_try_link "$LINENO"; then :
12821 $as_echo "#define HAVE_SIGPF 1" >>confdefs.h
12824 rm -f core conftest.err conftest.$ac_objext \
12825 conftest$ac_exeext conftest.$ac_ext
12827 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12828 /* end confdefs.h. */
12829 #include <signal.h>
12831 main ()
12833 int x = SA_SIGINFO;
12835 return 0;
12837 _ACEOF
12838 if ac_fn_c_try_link "$LINENO"; then :
12840 $as_echo "#define HAVE_SA_SIGINFO 1" >>confdefs.h
12843 rm -f core conftest.err conftest.$ac_objext \
12844 conftest$ac_exeext conftest.$ac_ext
12846 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12847 /* end confdefs.h. */
12848 #include <signal.h>
12850 main ()
12852 int x = SIGPIPE;
12854 return 0;
12856 _ACEOF
12857 if ac_fn_c_try_link "$LINENO"; then :
12859 $as_echo "#define HAVE_SIGPIPE 1" >>confdefs.h
12862 rm -f core conftest.err conftest.$ac_objext \
12863 conftest$ac_exeext conftest.$ac_ext
12865 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12866 /* end confdefs.h. */
12867 #include <signal.h>
12869 main ()
12871 int x = SIGHUP;
12873 return 0;
12875 _ACEOF
12876 if ac_fn_c_try_link "$LINENO"; then :
12878 $as_echo "#define HAVE_SIGHUP 1" >>confdefs.h
12881 rm -f core conftest.err conftest.$ac_objext \
12882 conftest$ac_exeext conftest.$ac_ext
12884 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12885 /* end confdefs.h. */
12886 #include <signal.h>
12888 main ()
12890 int x = SIGBUS;
12892 return 0;
12894 _ACEOF
12895 if ac_fn_c_try_link "$LINENO"; then :
12897 $as_echo "#define HAVE_SIGBUS 1" >>confdefs.h
12900 rm -f core conftest.err conftest.$ac_objext \
12901 conftest$ac_exeext conftest.$ac_ext
12903 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12904 /* end confdefs.h. */
12905 #include <sys/wait.h>
12907 main ()
12909 typedef void (*SIGRET)(int);
12910 SIGRET x = SIG_IGN;
12913 return 0;
12915 _ACEOF
12916 if ac_fn_c_try_link "$LINENO"; then :
12918 $as_echo "#define HAVE_WAIT_INCLUDES_SIGNAL 1" >>confdefs.h
12921 rm -f core conftest.err conftest.$ac_objext \
12922 conftest$ac_exeext conftest.$ac_ext
12924 have_stat_type=false
12925 have_stat_name=false
12926 if test $have_stat_name = false
12927 then
12928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12929 /* end confdefs.h. */
12930 #include <sys/stat.h>
12932 _ACEOF
12933 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12934 $EGREP "[ ]st_mtimespec" >/dev/null 2>&1; then :
12935 have_stat_name=true;
12937 $as_echo "#define HAVE_ST_MTIME_WITH_SPEC 1" >>confdefs.h
12940 rm -f conftest*
12943 if test $have_stat_name = false -a $target_os != darwin -a $target_os != linux -a $target_os != kfreebsd -a $target_os != netbsd
12944 then
12945 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12946 /* end confdefs.h. */
12947 #include <sys/stat.h>
12949 _ACEOF
12950 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12951 $EGREP "[ ]st_mtime" >/dev/null 2>&1; then :
12952 have_stat_name=true;
12954 $as_echo "#define HAVE_ST_MTIME_WITH_E 1" >>confdefs.h
12957 rm -f conftest*
12960 if test $have_stat_type = false
12961 then
12962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12963 /* end confdefs.h. */
12964 #include <sys/stat.h>
12966 _ACEOF
12967 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12968 $EGREP "timestruc_t[ ][ ]*st_mtim" >/dev/null 2>&1; then :
12969 have_stat_type=true;
12971 $as_echo "#define HAVE_STAT_TIMESTRUC 1" >>confdefs.h
12974 rm -f conftest*
12977 if test $have_stat_type = false
12978 then
12979 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12980 /* end confdefs.h. */
12981 #include <sys/stat.h>
12983 _ACEOF
12984 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
12985 $EGREP "timespec_t[ ][ ]*st_mtim" >/dev/null 2>&1; then :
12986 have_stat_type=true;
12988 $as_echo "#define HAVE_STAT_TIMESPEC_T 1" >>confdefs.h
12991 rm -f conftest*
12994 if test $have_stat_type = false
12995 then
12996 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
12997 /* end confdefs.h. */
12998 #include <sys/stat.h>
13000 _ACEOF
13001 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13002 $EGREP "timespec[ ][ ]*st_mtim" >/dev/null 2>&1; then :
13003 have_stat_type=true;
13005 $as_echo "#define HAVE_STAT_TIMESPEC 1" >>confdefs.h
13008 rm -f conftest*
13011 if test $have_stat_type = false
13012 then
13013 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13014 /* end confdefs.h. */
13015 #include <sys/stat.h>
13017 _ACEOF
13018 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
13019 $EGREP "time_t[ ][ ]*st_mtim" >/dev/null 2>&1; then :
13020 have_stat_type=true;
13022 $as_echo "#define HAVE_STAT_TIME_T 1" >>confdefs.h
13025 rm -f conftest*
13028 if test $have_stat_type = false
13029 then
13030 echo 'FATAL ERROR: Cannot determine struct stat time types.'
13031 rm -rf conftest conftest.*
13032 exit 1
13036 pcp_etc_dir=`eval echo $sysconfdir`
13037 pcp_etc_dir=`eval echo $pcp_etc_dir`
13039 pcp_saslconf_dir=`eval echo $sysconfdir/sasl2`
13040 pcp_saslconf_dir=`eval echo $pcp_saslconf_dir`
13042 pcp_sysconf_dir=`eval echo $sysconfdir/pcp`
13043 pcp_sysconf_dir=`eval echo $pcp_sysconf_dir`
13045 pcp_pmcdconf_path=$pcp_sysconf_dir/pmcd/pmcd.conf
13046 pcp_pmcdrclocal_path=$pcp_sysconf_dir/pmcd/rc.local
13047 pcp_pmcdoptions_path=$pcp_sysconf_dir/pmcd/pmcd.options
13048 pcp_pmwebdoptions_path=$pcp_sysconf_dir/pmwebd/pmwebd.options
13049 pcp_pmmgroptions_path=$pcp_sysconf_dir/pmmgr/pmmgr.options
13050 pcp_pmproxyoptions_path=$pcp_sysconf_dir/pmproxy/pmproxy.options
13051 pcp_pmiecontrol_path=$pcp_sysconf_dir/pmie/control
13052 pcp_pmsnapcontrol_path=$pcp_sysconf_dir/pmsnap/control
13053 pcp_pmloggercontrol_path=$pcp_sysconf_dir/pmlogger/control
13064 pcp_share_dir=`eval echo $datarootdir/pcp`
13065 pcp_share_dir=`eval echo $pcp_share_dir`
13068 pcp_binadm_dir=`eval echo $libexecdir/pcp/bin`
13069 pcp_binadm_dir=`eval echo $pcp_binadm_dir`
13072 pcp_var_dir=`eval echo $localstatedir/lib/pcp`
13073 pcp_var_dir=`eval echo $pcp_var_dir`
13077 # Check whether --with-configdir was given.
13078 if test "${with_configdir+set}" = set; then :
13079 withval=$with_configdir; pcp_config_dir=$withval
13080 else
13081 pcp_config_dir=$pcp_var_dir/config
13085 pcp_pmdas_dir=$pcp_var_dir/pmdas
13088 pcp_lib_dir=`eval echo $libdir`
13089 pcp_lib_dir=`eval echo $pcp_lib_dir`
13090 pcp_lib32_dir=`echo $pcp_lib_dir | sed -e s,64,, -e s,//,/,`
13095 # Check whether --with-perl_installdirs was given.
13096 if test "${with_perl_installdirs+set}" = set; then :
13097 withval=$with_perl_installdirs; perl_installdirs=$withval
13098 else
13099 perl_installdirs=vendor
13102 perl_installdirs=`eval echo $perl_installdirs`
13103 perl_installdirs=`eval echo $perl_installdirs`
13106 # Check whether --with-perl_install_base was given.
13107 if test "${with_perl_install_base+set}" = set; then :
13108 withval=$with_perl_install_base; perl_install_base=$withval
13109 else
13110 perl_install_base=$prefix
13113 perl_install_base=`eval echo $perl_install_base`
13114 perl_install_base=`eval echo $perl_install_base`
13118 # Check whether --with-python_prefix was given.
13119 if test "${with_python_prefix+set}" = set; then :
13120 withval=$with_python_prefix; python_prefix=$withval
13121 else
13122 python_prefix=$prefix
13125 python_prefix=`eval echo $python_prefix`
13126 python_prefix=`eval echo $python_prefix`
13129 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for X" >&5
13130 $as_echo_n "checking for X... " >&6; }
13133 # Check whether --with-x was given.
13134 if test "${with_x+set}" = set; then :
13135 withval=$with_x;
13138 # $have_x is `yes', `no', `disabled', or empty when we do not yet know.
13139 if test "x$with_x" = xno; then
13140 # The user explicitly disabled X.
13141 have_x=disabled
13142 else
13143 case $x_includes,$x_libraries in #(
13144 *\'*) as_fn_error $? "cannot use X directory names containing '" "$LINENO" 5;; #(
13145 *,NONE | NONE,*) if ${ac_cv_have_x+:} false; then :
13146 $as_echo_n "(cached) " >&6
13147 else
13148 # One or both of the vars are not set, and there is no cached value.
13149 ac_x_includes=no ac_x_libraries=no
13150 rm -f -r conftest.dir
13151 if mkdir conftest.dir; then
13152 cd conftest.dir
13153 cat >Imakefile <<'_ACEOF'
13154 incroot:
13155 @echo incroot='${INCROOT}'
13156 usrlibdir:
13157 @echo usrlibdir='${USRLIBDIR}'
13158 libdir:
13159 @echo libdir='${LIBDIR}'
13160 _ACEOF
13161 if (export CC; ${XMKMF-xmkmf}) >/dev/null 2>/dev/null && test -f Makefile; then
13162 # GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
13163 for ac_var in incroot usrlibdir libdir; do
13164 eval "ac_im_$ac_var=\`\${MAKE-make} $ac_var 2>/dev/null | sed -n 's/^$ac_var=//p'\`"
13165 done
13166 # Open Windows xmkmf reportedly sets LIBDIR instead of USRLIBDIR.
13167 for ac_extension in a so sl dylib la dll; do
13168 if test ! -f "$ac_im_usrlibdir/libX11.$ac_extension" &&
13169 test -f "$ac_im_libdir/libX11.$ac_extension"; then
13170 ac_im_usrlibdir=$ac_im_libdir; break
13172 done
13173 # Screen out bogus values from the imake configuration. They are
13174 # bogus both because they are the default anyway, and because
13175 # using them would break gcc on systems where it needs fixed includes.
13176 case $ac_im_incroot in
13177 /usr/include) ac_x_includes= ;;
13178 *) test -f "$ac_im_incroot/X11/Xos.h" && ac_x_includes=$ac_im_incroot;;
13179 esac
13180 case $ac_im_usrlibdir in
13181 /usr/lib | /usr/lib64 | /lib | /lib64) ;;
13182 *) test -d "$ac_im_usrlibdir" && ac_x_libraries=$ac_im_usrlibdir ;;
13183 esac
13185 cd ..
13186 rm -f -r conftest.dir
13189 # Standard set of common directories for X headers.
13190 # Check X11 before X11Rn because it is often a symlink to the current release.
13191 ac_x_header_dirs='
13192 /usr/X11/include
13193 /usr/X11R7/include
13194 /usr/X11R6/include
13195 /usr/X11R5/include
13196 /usr/X11R4/include
13198 /usr/include/X11
13199 /usr/include/X11R7
13200 /usr/include/X11R6
13201 /usr/include/X11R5
13202 /usr/include/X11R4
13204 /usr/local/X11/include
13205 /usr/local/X11R7/include
13206 /usr/local/X11R6/include
13207 /usr/local/X11R5/include
13208 /usr/local/X11R4/include
13210 /usr/local/include/X11
13211 /usr/local/include/X11R7
13212 /usr/local/include/X11R6
13213 /usr/local/include/X11R5
13214 /usr/local/include/X11R4
13216 /usr/X386/include
13217 /usr/x386/include
13218 /usr/XFree86/include/X11
13220 /usr/include
13221 /usr/local/include
13222 /usr/unsupported/include
13223 /usr/athena/include
13224 /usr/local/x11r5/include
13225 /usr/lpp/Xamples/include
13227 /usr/openwin/include
13228 /usr/openwin/share/include'
13230 if test "$ac_x_includes" = no; then
13231 # Guess where to find include files, by looking for Xlib.h.
13232 # First, try using that file with no special directory specified.
13233 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13234 /* end confdefs.h. */
13235 #include <X11/Xlib.h>
13236 _ACEOF
13237 if ac_fn_c_try_cpp "$LINENO"; then :
13238 # We can compile using X headers with no special include directory.
13239 ac_x_includes=
13240 else
13241 for ac_dir in $ac_x_header_dirs; do
13242 if test -r "$ac_dir/X11/Xlib.h"; then
13243 ac_x_includes=$ac_dir
13244 break
13246 done
13248 rm -f conftest.err conftest.i conftest.$ac_ext
13249 fi # $ac_x_includes = no
13251 if test "$ac_x_libraries" = no; then
13252 # Check for the libraries.
13253 # See if we find them without any special options.
13254 # Don't add to $LIBS permanently.
13255 ac_save_LIBS=$LIBS
13256 LIBS="-lX11 $LIBS"
13257 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13258 /* end confdefs.h. */
13259 #include <X11/Xlib.h>
13261 main ()
13263 XrmInitialize ()
13265 return 0;
13267 _ACEOF
13268 if ac_fn_c_try_link "$LINENO"; then :
13269 LIBS=$ac_save_LIBS
13270 # We can link X programs with no special library path.
13271 ac_x_libraries=
13272 else
13273 LIBS=$ac_save_LIBS
13274 for ac_dir in `$as_echo "$ac_x_includes $ac_x_header_dirs" | sed s/include/lib/g`
13276 # Don't even attempt the hair of trying to link an X program!
13277 for ac_extension in a so sl dylib la dll; do
13278 if test -r "$ac_dir/libX11.$ac_extension"; then
13279 ac_x_libraries=$ac_dir
13280 break 2
13282 done
13283 done
13285 rm -f core conftest.err conftest.$ac_objext \
13286 conftest$ac_exeext conftest.$ac_ext
13287 fi # $ac_x_libraries = no
13289 case $ac_x_includes,$ac_x_libraries in #(
13290 no,* | *,no | *\'*)
13291 # Didn't find X, or a directory has "'" in its name.
13292 ac_cv_have_x="have_x=no";; #(
13294 # Record where we found X for the cache.
13295 ac_cv_have_x="have_x=yes\
13296 ac_x_includes='$ac_x_includes'\
13297 ac_x_libraries='$ac_x_libraries'"
13298 esac
13300 ;; #(
13301 *) have_x=yes;;
13302 esac
13303 eval "$ac_cv_have_x"
13304 fi # $with_x != no
13306 if test "$have_x" != yes; then
13307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $have_x" >&5
13308 $as_echo "$have_x" >&6; }
13309 no_x=yes
13310 else
13311 # If each of the values was on the command line, it overrides each guess.
13312 test "x$x_includes" = xNONE && x_includes=$ac_x_includes
13313 test "x$x_libraries" = xNONE && x_libraries=$ac_x_libraries
13314 # Update the cache value to reflect the command line values.
13315 ac_cv_have_x="have_x=yes\
13316 ac_x_includes='$x_includes'\
13317 ac_x_libraries='$x_libraries'"
13318 { $as_echo "$as_me:${as_lineno-$LINENO}: result: libraries $x_libraries, headers $x_includes" >&5
13319 $as_echo "libraries $x_libraries, headers $x_includes" >&6; }
13322 if test "$no_x" = yes; then
13323 # Not all programs may use this symbol, but it does not hurt to define it.
13325 $as_echo "#define X_DISPLAY_MISSING 1" >>confdefs.h
13327 X_CFLAGS= X_PRE_LIBS= X_LIBS= X_EXTRA_LIBS=
13328 else
13329 if test -n "$x_includes"; then
13330 X_CFLAGS="$X_CFLAGS -I$x_includes"
13333 # It would also be nice to do this for all -L options, not just this one.
13334 if test -n "$x_libraries"; then
13335 X_LIBS="$X_LIBS -L$x_libraries"
13336 # For Solaris; some versions of Sun CC require a space after -R and
13337 # others require no space. Words are not sufficient . . . .
13338 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether -R must be followed by a space" >&5
13339 $as_echo_n "checking whether -R must be followed by a space... " >&6; }
13340 ac_xsave_LIBS=$LIBS; LIBS="$LIBS -R$x_libraries"
13341 ac_xsave_c_werror_flag=$ac_c_werror_flag
13342 ac_c_werror_flag=yes
13343 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13344 /* end confdefs.h. */
13347 main ()
13351 return 0;
13353 _ACEOF
13354 if ac_fn_c_try_link "$LINENO"; then :
13355 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
13356 $as_echo "no" >&6; }
13357 X_LIBS="$X_LIBS -R$x_libraries"
13358 else
13359 LIBS="$ac_xsave_LIBS -R $x_libraries"
13360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13361 /* end confdefs.h. */
13364 main ()
13368 return 0;
13370 _ACEOF
13371 if ac_fn_c_try_link "$LINENO"; then :
13372 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
13373 $as_echo "yes" >&6; }
13374 X_LIBS="$X_LIBS -R $x_libraries"
13375 else
13376 { $as_echo "$as_me:${as_lineno-$LINENO}: result: neither works" >&5
13377 $as_echo "neither works" >&6; }
13379 rm -f core conftest.err conftest.$ac_objext \
13380 conftest$ac_exeext conftest.$ac_ext
13382 rm -f core conftest.err conftest.$ac_objext \
13383 conftest$ac_exeext conftest.$ac_ext
13384 ac_c_werror_flag=$ac_xsave_c_werror_flag
13385 LIBS=$ac_xsave_LIBS
13388 # Check for system-dependent libraries X programs must link with.
13389 # Do this before checking for the system-independent R6 libraries
13390 # (-lICE), since we may need -lsocket or whatever for X linking.
13392 if test "$ISC" = yes; then
13393 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl_s -linet"
13394 else
13395 # Martyn Johnson says this is needed for Ultrix, if the X
13396 # libraries were built with DECnet support. And Karl Berry says
13397 # the Alpha needs dnet_stub (dnet does not exist).
13398 ac_xsave_LIBS="$LIBS"; LIBS="$LIBS $X_LIBS -lX11"
13399 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13400 /* end confdefs.h. */
13402 /* Override any GCC internal prototype to avoid an error.
13403 Use char because int might match the return type of a GCC
13404 builtin and then its argument prototype would still apply. */
13405 #ifdef __cplusplus
13406 extern "C"
13407 #endif
13408 char XOpenDisplay ();
13410 main ()
13412 return XOpenDisplay ();
13414 return 0;
13416 _ACEOF
13417 if ac_fn_c_try_link "$LINENO"; then :
13419 else
13420 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet" >&5
13421 $as_echo_n "checking for dnet_ntoa in -ldnet... " >&6; }
13422 if ${ac_cv_lib_dnet_dnet_ntoa+:} false; then :
13423 $as_echo_n "(cached) " >&6
13424 else
13425 ac_check_lib_save_LIBS=$LIBS
13426 LIBS="-ldnet $LIBS"
13427 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13428 /* end confdefs.h. */
13430 /* Override any GCC internal prototype to avoid an error.
13431 Use char because int might match the return type of a GCC
13432 builtin and then its argument prototype would still apply. */
13433 #ifdef __cplusplus
13434 extern "C"
13435 #endif
13436 char dnet_ntoa ();
13438 main ()
13440 return dnet_ntoa ();
13442 return 0;
13444 _ACEOF
13445 if ac_fn_c_try_link "$LINENO"; then :
13446 ac_cv_lib_dnet_dnet_ntoa=yes
13447 else
13448 ac_cv_lib_dnet_dnet_ntoa=no
13450 rm -f core conftest.err conftest.$ac_objext \
13451 conftest$ac_exeext conftest.$ac_ext
13452 LIBS=$ac_check_lib_save_LIBS
13454 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_dnet_ntoa" >&5
13455 $as_echo "$ac_cv_lib_dnet_dnet_ntoa" >&6; }
13456 if test "x$ac_cv_lib_dnet_dnet_ntoa" = xyes; then :
13457 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet"
13460 if test $ac_cv_lib_dnet_dnet_ntoa = no; then
13461 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for dnet_ntoa in -ldnet_stub" >&5
13462 $as_echo_n "checking for dnet_ntoa in -ldnet_stub... " >&6; }
13463 if ${ac_cv_lib_dnet_stub_dnet_ntoa+:} false; then :
13464 $as_echo_n "(cached) " >&6
13465 else
13466 ac_check_lib_save_LIBS=$LIBS
13467 LIBS="-ldnet_stub $LIBS"
13468 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13469 /* end confdefs.h. */
13471 /* Override any GCC internal prototype to avoid an error.
13472 Use char because int might match the return type of a GCC
13473 builtin and then its argument prototype would still apply. */
13474 #ifdef __cplusplus
13475 extern "C"
13476 #endif
13477 char dnet_ntoa ();
13479 main ()
13481 return dnet_ntoa ();
13483 return 0;
13485 _ACEOF
13486 if ac_fn_c_try_link "$LINENO"; then :
13487 ac_cv_lib_dnet_stub_dnet_ntoa=yes
13488 else
13489 ac_cv_lib_dnet_stub_dnet_ntoa=no
13491 rm -f core conftest.err conftest.$ac_objext \
13492 conftest$ac_exeext conftest.$ac_ext
13493 LIBS=$ac_check_lib_save_LIBS
13495 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_dnet_stub_dnet_ntoa" >&5
13496 $as_echo "$ac_cv_lib_dnet_stub_dnet_ntoa" >&6; }
13497 if test "x$ac_cv_lib_dnet_stub_dnet_ntoa" = xyes; then :
13498 X_EXTRA_LIBS="$X_EXTRA_LIBS -ldnet_stub"
13503 rm -f core conftest.err conftest.$ac_objext \
13504 conftest$ac_exeext conftest.$ac_ext
13505 LIBS="$ac_xsave_LIBS"
13507 # msh@cis.ufl.edu says -lnsl (and -lsocket) are needed for his 386/AT,
13508 # to get the SysV transport functions.
13509 # Chad R. Larson says the Pyramis MIS-ES running DC/OSx (SVR4)
13510 # needs -lnsl.
13511 # The nsl library prevents programs from opening the X display
13512 # on Irix 5.2, according to T.E. Dickey.
13513 # The functions gethostbyname, getservbyname, and inet_addr are
13514 # in -lbsd on LynxOS 3.0.1/i386, according to Lars Hecking.
13515 ac_fn_c_check_func "$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
13516 if test "x$ac_cv_func_gethostbyname" = xyes; then :
13520 if test $ac_cv_func_gethostbyname = no; then
13521 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lnsl" >&5
13522 $as_echo_n "checking for gethostbyname in -lnsl... " >&6; }
13523 if ${ac_cv_lib_nsl_gethostbyname+:} false; then :
13524 $as_echo_n "(cached) " >&6
13525 else
13526 ac_check_lib_save_LIBS=$LIBS
13527 LIBS="-lnsl $LIBS"
13528 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13529 /* end confdefs.h. */
13531 /* Override any GCC internal prototype to avoid an error.
13532 Use char because int might match the return type of a GCC
13533 builtin and then its argument prototype would still apply. */
13534 #ifdef __cplusplus
13535 extern "C"
13536 #endif
13537 char gethostbyname ();
13539 main ()
13541 return gethostbyname ();
13543 return 0;
13545 _ACEOF
13546 if ac_fn_c_try_link "$LINENO"; then :
13547 ac_cv_lib_nsl_gethostbyname=yes
13548 else
13549 ac_cv_lib_nsl_gethostbyname=no
13551 rm -f core conftest.err conftest.$ac_objext \
13552 conftest$ac_exeext conftest.$ac_ext
13553 LIBS=$ac_check_lib_save_LIBS
13555 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nsl_gethostbyname" >&5
13556 $as_echo "$ac_cv_lib_nsl_gethostbyname" >&6; }
13557 if test "x$ac_cv_lib_nsl_gethostbyname" = xyes; then :
13558 X_EXTRA_LIBS="$X_EXTRA_LIBS -lnsl"
13561 if test $ac_cv_lib_nsl_gethostbyname = no; then
13562 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for gethostbyname in -lbsd" >&5
13563 $as_echo_n "checking for gethostbyname in -lbsd... " >&6; }
13564 if ${ac_cv_lib_bsd_gethostbyname+:} false; then :
13565 $as_echo_n "(cached) " >&6
13566 else
13567 ac_check_lib_save_LIBS=$LIBS
13568 LIBS="-lbsd $LIBS"
13569 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13570 /* end confdefs.h. */
13572 /* Override any GCC internal prototype to avoid an error.
13573 Use char because int might match the return type of a GCC
13574 builtin and then its argument prototype would still apply. */
13575 #ifdef __cplusplus
13576 extern "C"
13577 #endif
13578 char gethostbyname ();
13580 main ()
13582 return gethostbyname ();
13584 return 0;
13586 _ACEOF
13587 if ac_fn_c_try_link "$LINENO"; then :
13588 ac_cv_lib_bsd_gethostbyname=yes
13589 else
13590 ac_cv_lib_bsd_gethostbyname=no
13592 rm -f core conftest.err conftest.$ac_objext \
13593 conftest$ac_exeext conftest.$ac_ext
13594 LIBS=$ac_check_lib_save_LIBS
13596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_bsd_gethostbyname" >&5
13597 $as_echo "$ac_cv_lib_bsd_gethostbyname" >&6; }
13598 if test "x$ac_cv_lib_bsd_gethostbyname" = xyes; then :
13599 X_EXTRA_LIBS="$X_EXTRA_LIBS -lbsd"
13605 # lieder@skyler.mavd.honeywell.com says without -lsocket,
13606 # socket/setsockopt and other routines are undefined under SCO ODT
13607 # 2.0. But -lsocket is broken on IRIX 5.2 (and is not necessary
13608 # on later versions), says Simon Leinen: it contains gethostby*
13609 # variants that don't use the name server (or something). -lsocket
13610 # must be given before -lnsl if both are needed. We assume that
13611 # if connect needs -lnsl, so does gethostbyname.
13612 ac_fn_c_check_func "$LINENO" "connect" "ac_cv_func_connect"
13613 if test "x$ac_cv_func_connect" = xyes; then :
13617 if test $ac_cv_func_connect = no; then
13618 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for connect in -lsocket" >&5
13619 $as_echo_n "checking for connect in -lsocket... " >&6; }
13620 if ${ac_cv_lib_socket_connect+:} false; then :
13621 $as_echo_n "(cached) " >&6
13622 else
13623 ac_check_lib_save_LIBS=$LIBS
13624 LIBS="-lsocket $X_EXTRA_LIBS $LIBS"
13625 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13626 /* end confdefs.h. */
13628 /* Override any GCC internal prototype to avoid an error.
13629 Use char because int might match the return type of a GCC
13630 builtin and then its argument prototype would still apply. */
13631 #ifdef __cplusplus
13632 extern "C"
13633 #endif
13634 char connect ();
13636 main ()
13638 return connect ();
13640 return 0;
13642 _ACEOF
13643 if ac_fn_c_try_link "$LINENO"; then :
13644 ac_cv_lib_socket_connect=yes
13645 else
13646 ac_cv_lib_socket_connect=no
13648 rm -f core conftest.err conftest.$ac_objext \
13649 conftest$ac_exeext conftest.$ac_ext
13650 LIBS=$ac_check_lib_save_LIBS
13652 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_socket_connect" >&5
13653 $as_echo "$ac_cv_lib_socket_connect" >&6; }
13654 if test "x$ac_cv_lib_socket_connect" = xyes; then :
13655 X_EXTRA_LIBS="-lsocket $X_EXTRA_LIBS"
13660 # Guillermo Gomez says -lposix is necessary on A/UX.
13661 ac_fn_c_check_func "$LINENO" "remove" "ac_cv_func_remove"
13662 if test "x$ac_cv_func_remove" = xyes; then :
13666 if test $ac_cv_func_remove = no; then
13667 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for remove in -lposix" >&5
13668 $as_echo_n "checking for remove in -lposix... " >&6; }
13669 if ${ac_cv_lib_posix_remove+:} false; then :
13670 $as_echo_n "(cached) " >&6
13671 else
13672 ac_check_lib_save_LIBS=$LIBS
13673 LIBS="-lposix $LIBS"
13674 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13675 /* end confdefs.h. */
13677 /* Override any GCC internal prototype to avoid an error.
13678 Use char because int might match the return type of a GCC
13679 builtin and then its argument prototype would still apply. */
13680 #ifdef __cplusplus
13681 extern "C"
13682 #endif
13683 char remove ();
13685 main ()
13687 return remove ();
13689 return 0;
13691 _ACEOF
13692 if ac_fn_c_try_link "$LINENO"; then :
13693 ac_cv_lib_posix_remove=yes
13694 else
13695 ac_cv_lib_posix_remove=no
13697 rm -f core conftest.err conftest.$ac_objext \
13698 conftest$ac_exeext conftest.$ac_ext
13699 LIBS=$ac_check_lib_save_LIBS
13701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_posix_remove" >&5
13702 $as_echo "$ac_cv_lib_posix_remove" >&6; }
13703 if test "x$ac_cv_lib_posix_remove" = xyes; then :
13704 X_EXTRA_LIBS="$X_EXTRA_LIBS -lposix"
13709 # BSDI BSD/OS 2.1 needs -lipc for XOpenDisplay.
13710 ac_fn_c_check_func "$LINENO" "shmat" "ac_cv_func_shmat"
13711 if test "x$ac_cv_func_shmat" = xyes; then :
13715 if test $ac_cv_func_shmat = no; then
13716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for shmat in -lipc" >&5
13717 $as_echo_n "checking for shmat in -lipc... " >&6; }
13718 if ${ac_cv_lib_ipc_shmat+:} false; then :
13719 $as_echo_n "(cached) " >&6
13720 else
13721 ac_check_lib_save_LIBS=$LIBS
13722 LIBS="-lipc $LIBS"
13723 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13724 /* end confdefs.h. */
13726 /* Override any GCC internal prototype to avoid an error.
13727 Use char because int might match the return type of a GCC
13728 builtin and then its argument prototype would still apply. */
13729 #ifdef __cplusplus
13730 extern "C"
13731 #endif
13732 char shmat ();
13734 main ()
13736 return shmat ();
13738 return 0;
13740 _ACEOF
13741 if ac_fn_c_try_link "$LINENO"; then :
13742 ac_cv_lib_ipc_shmat=yes
13743 else
13744 ac_cv_lib_ipc_shmat=no
13746 rm -f core conftest.err conftest.$ac_objext \
13747 conftest$ac_exeext conftest.$ac_ext
13748 LIBS=$ac_check_lib_save_LIBS
13750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ipc_shmat" >&5
13751 $as_echo "$ac_cv_lib_ipc_shmat" >&6; }
13752 if test "x$ac_cv_lib_ipc_shmat" = xyes; then :
13753 X_EXTRA_LIBS="$X_EXTRA_LIBS -lipc"
13759 # Check for libraries that X11R6 Xt/Xaw programs need.
13760 ac_save_LDFLAGS=$LDFLAGS
13761 test -n "$x_libraries" && LDFLAGS="$LDFLAGS -L$x_libraries"
13762 # SM needs ICE to (dynamically) link under SunOS 4.x (so we have to
13763 # check for ICE first), but we must link in the order -lSM -lICE or
13764 # we get undefined symbols. So assume we have SM if we have ICE.
13765 # These have to be linked with before -lX11, unlike the other
13766 # libraries we check for below, so use a different variable.
13767 # John Interrante, Karl Berry
13768 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for IceConnectionNumber in -lICE" >&5
13769 $as_echo_n "checking for IceConnectionNumber in -lICE... " >&6; }
13770 if ${ac_cv_lib_ICE_IceConnectionNumber+:} false; then :
13771 $as_echo_n "(cached) " >&6
13772 else
13773 ac_check_lib_save_LIBS=$LIBS
13774 LIBS="-lICE $X_EXTRA_LIBS $LIBS"
13775 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
13776 /* end confdefs.h. */
13778 /* Override any GCC internal prototype to avoid an error.
13779 Use char because int might match the return type of a GCC
13780 builtin and then its argument prototype would still apply. */
13781 #ifdef __cplusplus
13782 extern "C"
13783 #endif
13784 char IceConnectionNumber ();
13786 main ()
13788 return IceConnectionNumber ();
13790 return 0;
13792 _ACEOF
13793 if ac_fn_c_try_link "$LINENO"; then :
13794 ac_cv_lib_ICE_IceConnectionNumber=yes
13795 else
13796 ac_cv_lib_ICE_IceConnectionNumber=no
13798 rm -f core conftest.err conftest.$ac_objext \
13799 conftest$ac_exeext conftest.$ac_ext
13800 LIBS=$ac_check_lib_save_LIBS
13802 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ICE_IceConnectionNumber" >&5
13803 $as_echo "$ac_cv_lib_ICE_IceConnectionNumber" >&6; }
13804 if test "x$ac_cv_lib_ICE_IceConnectionNumber" = xyes; then :
13805 X_PRE_LIBS="$X_PRE_LIBS -lSM -lICE"
13808 LDFLAGS=$ac_save_LDFLAGS
13812 pcp_x11_incflags=$X_CFLAGS
13814 pcp_x11_libflags=$X_LIBS
13816 pcp_x11_extra=$X_EXTRA_LIBS
13818 pcp_x11_pre=$X_PRE_LIBS
13821 have_gzipped_manpages=false
13822 have_bzip2ed_manpages=false
13823 have_lzmaed_manpages=false
13824 have_xzed_manpages=false
13825 need_old_tbl_header=false
13826 man_header=
13827 pcp_man_dir=`eval echo $mandir`
13828 pcp_man_dir=`eval echo $pcp_man_dir`
13830 for d in /usr/man /usr/share/man $pcp_man_dir
13832 for sd in man1 sman1
13834 if test -f $d/$sd/man.1.gz
13835 then
13836 have_gzipped_manpages=true
13837 man_header=`$ZIP -d < $d/$sd/man.1.gz | head -1`
13838 break
13839 elif test -f $d/$sd/man.1.bz2
13840 then
13841 have_bzip2ed_manpages=true
13842 man_header=`$BZIP2 -d < $d/$sd/man.1.bz2 | head -1`
13843 break
13844 elif test -f $d/$sd/man.1.lzma
13845 then
13846 have_lzmaed_manpages=true
13847 man_header=`$LZMA -d < $d/$sd/man.1.lzma | head -1`
13848 break
13849 elif test -f $d/$sd/man.1.xz
13850 then
13851 have_xzed_manpages=true
13852 man_header=`$XZ -d < $d/$sd/man.1.xz | head -1`
13853 break
13854 elif test -f $d/$sd/man.1
13855 then
13856 man_header=`head -1 $d/$sd/man.1`
13857 break
13859 done
13860 done
13861 if test x"$man_header" = "x'\\\" t" -o x"$man_header" = "x'\\\" te" ; then
13862 need_old_tbl_header=true
13871 pcp_bin_dir=`eval echo $bindir`
13872 pcp_bin_dir=`eval echo $pcp_bin_dir`
13875 pcp_sbin_dir=`eval echo $sbindir`
13876 pcp_sbin_dir=`eval echo $pcp_sbin_dir`
13879 pcp_inc_dir=`eval echo $includedir/pcp`
13880 pcp_inc_dir=`eval echo $pcp_inc_dir`
13883 if test $target_os = linux; then
13884 pcp_books_dir=`eval echo $datarootdir/doc/pcp-doc`
13885 else
13886 pcp_books_dir=`eval echo $datarootdir/doc/pcp`
13888 pcp_books_dir=`eval echo $pcp_books_dir`
13889 pcp_html_dir=`eval echo $pcp_books_dir/html`
13893 if test $target_os = linux; then
13894 pcp_icons_dir=`eval echo $datarootdir/pcp-gui/pixmaps`
13895 else
13896 pcp_icons_dir=`eval echo $datarootdir/pcp/pixmaps`
13898 pcp_icons_dir=`eval echo $pcp_icons_dir`
13901 pcp_desktop_dir=`eval echo $datarootdir/applications`
13902 pcp_desktop_dir=`eval echo $pcp_desktop_dir`
13906 # Check whether --with-rcdir was given.
13907 if test "${with_rcdir+set}" = set; then :
13908 withval=$with_rcdir; pcp_rc_dir=$withval
13909 else
13911 if $enable_systemd
13912 then
13913 pcp_rc_dir="$pcp_share_dir/lib"
13914 else
13915 pcp_rc_dir="$pcp_etc_dir/init.d"
13922 # Check whether --with-sysconfigdir was given.
13923 if test "${with_sysconfigdir+set}" = set; then :
13924 withval=$with_sysconfigdir; pcp_sysconfig_dir=$withval
13925 else
13926 pcp_sysconfig_dir=$pcp_etc_dir/sysconfig
13932 # Check whether --with-logdir was given.
13933 if test "${with_logdir+set}" = set; then :
13934 withval=$with_logdir; pcp_log_dir=$withval
13935 else
13936 pcp_log_dir=$localstatedir/log/pcp
13939 pcp_log_dir=`eval echo $pcp_log_dir`
13940 pcp_log_dir=`eval echo $pcp_log_dir`
13944 # Check whether --with-rundir was given.
13945 if test "${with_rundir+set}" = set; then :
13946 withval=$with_rundir; pcp_run_dir=$withval
13947 else
13948 pcp_run_dir=$localstatedir/run/pcp
13951 pcp_run_dir=`eval echo $pcp_run_dir`
13952 pcp_run_dir=`eval echo $pcp_run_dir`
13956 # Check whether --with-tmpdir was given.
13957 if test "${with_tmpdir+set}" = set; then :
13958 withval=$with_tmpdir; pcp_tmpfile_dir=$withval
13959 else
13960 pcp_tmpfile_dir=$localstatedir/tmp
13963 pcp_tmpfile_dir=`eval echo $pcp_tmpfile_dir`
13964 pcp_tmpfile_dir=`eval echo $pcp_tmpfile_dir`
13967 pcp_tmp_dir=`eval echo $pcp_var_dir/tmp`
13971 # Check whether --with-docdir was given.
13972 if test "${with_docdir+set}" = set; then :
13973 withval=$with_docdir; pcp_doc_dir=$withval
13974 else
13975 PACKAGE=pcp-${PACKAGE_VERSION}; pcp_doc_dir=$docdir
13978 pcp_doc_dir=`eval echo $pcp_doc_dir`
13979 pcp_doc_dir=`eval echo $pcp_doc_dir`
13983 # Check whether --with-demosdir was given.
13984 if test "${with_demosdir+set}" = set; then :
13985 withval=$with_demosdir; pcp_demos_dir=$withval
13986 else
13987 pcp_demos_dir=$pcp_share_dir/demos
13992 if test -z "$XCONFIRM"
13993 then
13994 # Extract the first word of "xconfirm", so it can be a program name with args.
13995 set dummy xconfirm; ac_word=$2
13996 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
13997 $as_echo_n "checking for $ac_word... " >&6; }
13998 if ${ac_cv_path_ac_xconfirm_prog+:} false; then :
13999 $as_echo_n "(cached) " >&6
14000 else
14001 case $ac_xconfirm_prog in
14002 [\\/]* | ?:[\\/]*)
14003 ac_cv_path_ac_xconfirm_prog="$ac_xconfirm_prog" # Let the user override the test with a path.
14006 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
14007 for as_dir in $PATH
14009 IFS=$as_save_IFS
14010 test -z "$as_dir" && as_dir=.
14011 for ac_exec_ext in '' $ac_executable_extensions; do
14012 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
14013 ac_cv_path_ac_xconfirm_prog="$as_dir/$ac_word$ac_exec_ext"
14014 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
14015 break 2
14017 done
14018 done
14019 IFS=$as_save_IFS
14021 test -z "$ac_cv_path_ac_xconfirm_prog" && ac_cv_path_ac_xconfirm_prog="$pcp_bin_dir/pmconfirm"
14023 esac
14025 ac_xconfirm_prog=$ac_cv_path_ac_xconfirm_prog
14026 if test -n "$ac_xconfirm_prog"; then
14027 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_xconfirm_prog" >&5
14028 $as_echo "$ac_xconfirm_prog" >&6; }
14029 else
14030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14031 $as_echo "no" >&6; }
14035 else
14036 ac_xconfirm_prog=$XCONFIRM
14040 if test "$ac_cv_header_fcntl_h" = "yes"
14041 then
14042 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for FNDELAY in fcntl.h" >&5
14043 $as_echo_n "checking for FNDELAY in fcntl.h... " >&6; }
14044 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14045 /* end confdefs.h. */
14046 #include <fcntl.h>
14048 main ()
14050 int i = FNDELAY;
14052 return 0;
14054 _ACEOF
14055 if ac_fn_c_try_compile "$LINENO"; then :
14057 $as_echo "#define HAVE_FNDELAY 1" >>confdefs.h
14059 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14060 $as_echo "yes" >&6; }
14061 else
14062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14063 $as_echo "no" >&6; }
14065 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14068 if test "$ac_cv_header_libzfs_h" = "yes"
14069 then
14070 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 5-argument style zpool_vdev_name" >&5
14071 $as_echo_n "checking for 5-argument style zpool_vdev_name... " >&6; }
14072 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14073 /* end confdefs.h. */
14074 #include <libzfs.h>
14076 main ()
14078 libzfs_handle_t *zh;
14079 zpool_handle_t *zp;
14080 nvlist_t *np;
14081 (void) zpool_vdev_name(zh, zp, np, B_FALSE, B_FALSE);
14084 return 0;
14086 _ACEOF
14087 if ac_fn_c_try_compile "$LINENO"; then :
14089 $as_echo "#define HAVE_ZPOOL_VDEV_NAME_5ARG 1" >>confdefs.h
14091 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14092 $as_echo "yes" >&6; }
14093 else
14094 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14095 $as_echo "no" >&6; }
14097 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14099 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for 4-argument style zpool_vdev_name" >&5
14100 $as_echo_n "checking for 4-argument style zpool_vdev_name... " >&6; }
14101 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14102 /* end confdefs.h. */
14103 #include <libzfs.h>
14105 main ()
14107 libzfs_handle_t *zh;
14108 zpool_handle_t *zp;
14109 nvlist_t *np;
14110 (void) zpool_vdev_name(zh, zp, np, B_FALSE);
14113 return 0;
14115 _ACEOF
14116 if ac_fn_c_try_compile "$LINENO"; then :
14118 $as_echo "#define HAVE_ZPOOL_VDEV_NAME_4ARG 1" >>confdefs.h
14120 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14121 $as_echo "yes" >&6; }
14122 else
14123 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14124 $as_echo "no" >&6; }
14126 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14129 if test "$do_secure" = "check" -o "$do_secure" = "yes"
14130 then
14131 enable_secure=true
14133 saved_CFLAGS="$CFLAGS"
14134 saved_CPPFLAGS="$CPPFLAGS"
14135 NSS_INC_DIRS="-I/usr/include/nss -I/usr/include/nss3"
14136 NSPR_INC_DIRS="-I/usr/include/nspr -I/usr/include/nspr4"
14137 CFLAGS="$CFLAGS $NSS_INC_DIRS $NSPR_INC_DIRS"
14138 CPPFLAGS="$CPPFLAGS $NSS_INC_DIRS $NSPR_INC_DIRS"
14140 for ac_header in nss/nss.h
14141 do :
14142 ac_fn_c_check_header_mongrel "$LINENO" "nss/nss.h" "ac_cv_header_nss_nss_h" "$ac_includes_default"
14143 if test "x$ac_cv_header_nss_nss_h" = xyes; then :
14144 cat >>confdefs.h <<_ACEOF
14145 #define HAVE_NSS_NSS_H 1
14146 _ACEOF
14147 NSSCFLAGS=-I/usr/include/nss
14148 else
14150 for ac_header in nss3/nss.h
14151 do :
14152 ac_fn_c_check_header_mongrel "$LINENO" "nss3/nss.h" "ac_cv_header_nss3_nss_h" "$ac_includes_default"
14153 if test "x$ac_cv_header_nss3_nss_h" = xyes; then :
14154 cat >>confdefs.h <<_ACEOF
14155 #define HAVE_NSS3_NSS_H 1
14156 _ACEOF
14157 NSSCFLAGS=-I/usr/include/nss3
14158 else
14160 enable_secure=false
14161 if test "$do_secure" = "yes"
14162 then
14163 as_fn_error $? "cannot enable secure sockets mode - no NSS header" "$LINENO" 5
14168 done
14173 done
14177 for ac_header in nspr/nspr.h
14178 do :
14179 ac_fn_c_check_header_mongrel "$LINENO" "nspr/nspr.h" "ac_cv_header_nspr_nspr_h" "$ac_includes_default"
14180 if test "x$ac_cv_header_nspr_nspr_h" = xyes; then :
14181 cat >>confdefs.h <<_ACEOF
14182 #define HAVE_NSPR_NSPR_H 1
14183 _ACEOF
14184 NSPRCFLAGS=-I/usr/include/nspr
14185 else
14187 for ac_header in nspr4/nspr.h
14188 do :
14189 ac_fn_c_check_header_mongrel "$LINENO" "nspr4/nspr.h" "ac_cv_header_nspr4_nspr_h" "$ac_includes_default"
14190 if test "x$ac_cv_header_nspr4_nspr_h" = xyes; then :
14191 cat >>confdefs.h <<_ACEOF
14192 #define HAVE_NSPR4_NSPR_H 1
14193 _ACEOF
14194 NSPRCFLAGS=-I/usr/include/nspr4
14195 else
14197 enable_secure=false
14198 if test "$do_secure" = "yes"
14199 then
14200 as_fn_error $? "cannot enable secure sockets mode - no NSPR header" "$LINENO" 5
14205 done
14210 done
14214 for ac_header in sasl/sasl.h
14215 do :
14216 ac_fn_c_check_header_mongrel "$LINENO" "sasl/sasl.h" "ac_cv_header_sasl_sasl_h" "$ac_includes_default"
14217 if test "x$ac_cv_header_sasl_sasl_h" = xyes; then :
14218 cat >>confdefs.h <<_ACEOF
14219 #define HAVE_SASL_SASL_H 1
14220 _ACEOF
14221 SASLCFLAGS=-I/usr/include/sasl
14222 else
14224 enable_secure=false
14225 if test "$do_secure" = "yes"
14226 then
14227 as_fn_error $? "cannot enable secure sockets mode - no SASL header" "$LINENO" 5
14232 done
14236 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sasl_server_init in -lsasl2" >&5
14237 $as_echo_n "checking for sasl_server_init in -lsasl2... " >&6; }
14238 if ${ac_cv_lib_sasl2_sasl_server_init+:} false; then :
14239 $as_echo_n "(cached) " >&6
14240 else
14241 ac_check_lib_save_LIBS=$LIBS
14242 LIBS="-lsasl2 $LIBS"
14243 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14244 /* end confdefs.h. */
14246 /* Override any GCC internal prototype to avoid an error.
14247 Use char because int might match the return type of a GCC
14248 builtin and then its argument prototype would still apply. */
14249 #ifdef __cplusplus
14250 extern "C"
14251 #endif
14252 char sasl_server_init ();
14254 main ()
14256 return sasl_server_init ();
14258 return 0;
14260 _ACEOF
14261 if ac_fn_c_try_link "$LINENO"; then :
14262 ac_cv_lib_sasl2_sasl_server_init=yes
14263 else
14264 ac_cv_lib_sasl2_sasl_server_init=no
14266 rm -f core conftest.err conftest.$ac_objext \
14267 conftest$ac_exeext conftest.$ac_ext
14268 LIBS=$ac_check_lib_save_LIBS
14270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sasl2_sasl_server_init" >&5
14271 $as_echo "$ac_cv_lib_sasl2_sasl_server_init" >&6; }
14272 if test "x$ac_cv_lib_sasl2_sasl_server_init" = xyes; then :
14273 lib_for_sasl="-lsasl2"
14274 else
14276 enable_secure=false
14277 if test "$do_secure" = "yes"
14278 then
14279 as_fn_error $? "cannot enable secure sockets mode - no SASL library" "$LINENO" 5
14286 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_ImportFD in -lssl" >&5
14287 $as_echo_n "checking for SSL_ImportFD in -lssl... " >&6; }
14288 if ${ac_cv_lib_ssl_SSL_ImportFD+:} false; then :
14289 $as_echo_n "(cached) " >&6
14290 else
14291 ac_check_lib_save_LIBS=$LIBS
14292 LIBS="-lssl $LIBS"
14293 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14294 /* end confdefs.h. */
14296 /* Override any GCC internal prototype to avoid an error.
14297 Use char because int might match the return type of a GCC
14298 builtin and then its argument prototype would still apply. */
14299 #ifdef __cplusplus
14300 extern "C"
14301 #endif
14302 char SSL_ImportFD ();
14304 main ()
14306 return SSL_ImportFD ();
14308 return 0;
14310 _ACEOF
14311 if ac_fn_c_try_link "$LINENO"; then :
14312 ac_cv_lib_ssl_SSL_ImportFD=yes
14313 else
14314 ac_cv_lib_ssl_SSL_ImportFD=no
14316 rm -f core conftest.err conftest.$ac_objext \
14317 conftest$ac_exeext conftest.$ac_ext
14318 LIBS=$ac_check_lib_save_LIBS
14320 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl_SSL_ImportFD" >&5
14321 $as_echo "$ac_cv_lib_ssl_SSL_ImportFD" >&6; }
14322 if test "x$ac_cv_lib_ssl_SSL_ImportFD" = xyes; then :
14323 lib_for_ssl="-lssl"
14324 else
14326 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for SSL_ImportFD in -lssl3" >&5
14327 $as_echo_n "checking for SSL_ImportFD in -lssl3... " >&6; }
14328 if ${ac_cv_lib_ssl3_SSL_ImportFD+:} false; then :
14329 $as_echo_n "(cached) " >&6
14330 else
14331 ac_check_lib_save_LIBS=$LIBS
14332 LIBS="-lssl3 $LIBS"
14333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14334 /* end confdefs.h. */
14336 /* Override any GCC internal prototype to avoid an error.
14337 Use char because int might match the return type of a GCC
14338 builtin and then its argument prototype would still apply. */
14339 #ifdef __cplusplus
14340 extern "C"
14341 #endif
14342 char SSL_ImportFD ();
14344 main ()
14346 return SSL_ImportFD ();
14348 return 0;
14350 _ACEOF
14351 if ac_fn_c_try_link "$LINENO"; then :
14352 ac_cv_lib_ssl3_SSL_ImportFD=yes
14353 else
14354 ac_cv_lib_ssl3_SSL_ImportFD=no
14356 rm -f core conftest.err conftest.$ac_objext \
14357 conftest$ac_exeext conftest.$ac_ext
14358 LIBS=$ac_check_lib_save_LIBS
14360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_ssl3_SSL_ImportFD" >&5
14361 $as_echo "$ac_cv_lib_ssl3_SSL_ImportFD" >&6; }
14362 if test "x$ac_cv_lib_ssl3_SSL_ImportFD" = xyes; then :
14363 lib_for_ssl="-lssl3"
14364 else
14366 enable_secure=false
14367 if test "$do_secure" = "yes"
14368 then
14369 as_fn_error $? "cannot enable secure sockets mode - no SSL library" "$LINENO" 5
14379 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSS_Init in -lnss" >&5
14380 $as_echo_n "checking for NSS_Init in -lnss... " >&6; }
14381 if ${ac_cv_lib_nss_NSS_Init+:} false; then :
14382 $as_echo_n "(cached) " >&6
14383 else
14384 ac_check_lib_save_LIBS=$LIBS
14385 LIBS="-lnss $LIBS"
14386 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14387 /* end confdefs.h. */
14389 /* Override any GCC internal prototype to avoid an error.
14390 Use char because int might match the return type of a GCC
14391 builtin and then its argument prototype would still apply. */
14392 #ifdef __cplusplus
14393 extern "C"
14394 #endif
14395 char NSS_Init ();
14397 main ()
14399 return NSS_Init ();
14401 return 0;
14403 _ACEOF
14404 if ac_fn_c_try_link "$LINENO"; then :
14405 ac_cv_lib_nss_NSS_Init=yes
14406 else
14407 ac_cv_lib_nss_NSS_Init=no
14409 rm -f core conftest.err conftest.$ac_objext \
14410 conftest$ac_exeext conftest.$ac_ext
14411 LIBS=$ac_check_lib_save_LIBS
14413 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nss_NSS_Init" >&5
14414 $as_echo "$ac_cv_lib_nss_NSS_Init" >&6; }
14415 if test "x$ac_cv_lib_nss_NSS_Init" = xyes; then :
14416 lib_for_nss="-lnss"
14417 else
14419 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for NSS_Init in -lnss3" >&5
14420 $as_echo_n "checking for NSS_Init in -lnss3... " >&6; }
14421 if ${ac_cv_lib_nss3_NSS_Init+:} false; then :
14422 $as_echo_n "(cached) " >&6
14423 else
14424 ac_check_lib_save_LIBS=$LIBS
14425 LIBS="-lnss3 $LIBS"
14426 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14427 /* end confdefs.h. */
14429 /* Override any GCC internal prototype to avoid an error.
14430 Use char because int might match the return type of a GCC
14431 builtin and then its argument prototype would still apply. */
14432 #ifdef __cplusplus
14433 extern "C"
14434 #endif
14435 char NSS_Init ();
14437 main ()
14439 return NSS_Init ();
14441 return 0;
14443 _ACEOF
14444 if ac_fn_c_try_link "$LINENO"; then :
14445 ac_cv_lib_nss3_NSS_Init=yes
14446 else
14447 ac_cv_lib_nss3_NSS_Init=no
14449 rm -f core conftest.err conftest.$ac_objext \
14450 conftest$ac_exeext conftest.$ac_ext
14451 LIBS=$ac_check_lib_save_LIBS
14453 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nss3_NSS_Init" >&5
14454 $as_echo "$ac_cv_lib_nss3_NSS_Init" >&6; }
14455 if test "x$ac_cv_lib_nss3_NSS_Init" = xyes; then :
14456 lib_for_nss="-lnss3"
14457 else
14459 enable_secure=false
14460 if test "$do_secure" = "yes"
14461 then
14462 as_fn_error $? "cannot enable secure sockets mode - no NSS library" "$LINENO" 5
14472 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PR_Init in -lnspr" >&5
14473 $as_echo_n "checking for PR_Init in -lnspr... " >&6; }
14474 if ${ac_cv_lib_nspr_PR_Init+:} false; then :
14475 $as_echo_n "(cached) " >&6
14476 else
14477 ac_check_lib_save_LIBS=$LIBS
14478 LIBS="-lnspr $LIBS"
14479 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14480 /* end confdefs.h. */
14482 /* Override any GCC internal prototype to avoid an error.
14483 Use char because int might match the return type of a GCC
14484 builtin and then its argument prototype would still apply. */
14485 #ifdef __cplusplus
14486 extern "C"
14487 #endif
14488 char PR_Init ();
14490 main ()
14492 return PR_Init ();
14494 return 0;
14496 _ACEOF
14497 if ac_fn_c_try_link "$LINENO"; then :
14498 ac_cv_lib_nspr_PR_Init=yes
14499 else
14500 ac_cv_lib_nspr_PR_Init=no
14502 rm -f core conftest.err conftest.$ac_objext \
14503 conftest$ac_exeext conftest.$ac_ext
14504 LIBS=$ac_check_lib_save_LIBS
14506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nspr_PR_Init" >&5
14507 $as_echo "$ac_cv_lib_nspr_PR_Init" >&6; }
14508 if test "x$ac_cv_lib_nspr_PR_Init" = xyes; then :
14509 lib_for_nspr="-lnspr"
14510 else
14512 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PR_Init in -lnspr4" >&5
14513 $as_echo_n "checking for PR_Init in -lnspr4... " >&6; }
14514 if ${ac_cv_lib_nspr4_PR_Init+:} false; then :
14515 $as_echo_n "(cached) " >&6
14516 else
14517 ac_check_lib_save_LIBS=$LIBS
14518 LIBS="-lnspr4 $LIBS"
14519 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14520 /* end confdefs.h. */
14522 /* Override any GCC internal prototype to avoid an error.
14523 Use char because int might match the return type of a GCC
14524 builtin and then its argument prototype would still apply. */
14525 #ifdef __cplusplus
14526 extern "C"
14527 #endif
14528 char PR_Init ();
14530 main ()
14532 return PR_Init ();
14534 return 0;
14536 _ACEOF
14537 if ac_fn_c_try_link "$LINENO"; then :
14538 ac_cv_lib_nspr4_PR_Init=yes
14539 else
14540 ac_cv_lib_nspr4_PR_Init=no
14542 rm -f core conftest.err conftest.$ac_objext \
14543 conftest$ac_exeext conftest.$ac_ext
14544 LIBS=$ac_check_lib_save_LIBS
14546 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_nspr4_PR_Init" >&5
14547 $as_echo "$ac_cv_lib_nspr4_PR_Init" >&6; }
14548 if test "x$ac_cv_lib_nspr4_PR_Init" = xyes; then :
14549 lib_for_nspr="-lnspr4"
14550 else
14552 enable_secure=false
14553 if test "$do_secure" = "yes"
14554 then
14555 as_fn_error $? "cannot enable secure sockets mode - no NSPR library" "$LINENO" 5
14565 if test "$enable_secure" = "true"
14566 then
14568 $as_echo "#define HAVE_SECURE_SOCKETS 1" >>confdefs.h
14573 CPPFLAGS="$saved_CPPFLAGS"
14574 CFLAGS="$saved_CFLAGS"
14577 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for __atomic_fetch_add_4 in -latomic" >&5
14578 $as_echo_n "checking for __atomic_fetch_add_4 in -latomic... " >&6; }
14579 if ${ac_cv_lib_atomic___atomic_fetch_add_4+:} false; then :
14580 $as_echo_n "(cached) " >&6
14581 else
14582 ac_check_lib_save_LIBS=$LIBS
14583 LIBS="-latomic $LIBS"
14584 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14585 /* end confdefs.h. */
14587 /* Override any GCC internal prototype to avoid an error.
14588 Use char because int might match the return type of a GCC
14589 builtin and then its argument prototype would still apply. */
14590 #ifdef __cplusplus
14591 extern "C"
14592 #endif
14593 char __atomic_fetch_add_4 ();
14595 main ()
14597 return __atomic_fetch_add_4 ();
14599 return 0;
14601 _ACEOF
14602 if ac_fn_c_try_link "$LINENO"; then :
14603 ac_cv_lib_atomic___atomic_fetch_add_4=yes
14604 else
14605 ac_cv_lib_atomic___atomic_fetch_add_4=no
14607 rm -f core conftest.err conftest.$ac_objext \
14608 conftest$ac_exeext conftest.$ac_ext
14609 LIBS=$ac_check_lib_save_LIBS
14611 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_atomic___atomic_fetch_add_4" >&5
14612 $as_echo "$ac_cv_lib_atomic___atomic_fetch_add_4" >&6; }
14613 if test "x$ac_cv_lib_atomic___atomic_fetch_add_4" = xyes; then :
14614 lib_for_atomic="-latomic"
14619 if test -f /usr/include/sn/arsess.h
14620 then
14621 pcp_mpi_dirs=libpcp_mpi\ libpcp_mpiread
14622 else
14623 pcp_mpi_dirs=
14627 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct sockaddr_un in sys/un.h" >&5
14628 $as_echo_n "checking for struct sockaddr_un in sys/un.h... " >&6; }
14629 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14630 /* end confdefs.h. */
14632 #include <sys/types.h>
14633 #ifdef HAVE_SYS_SOCKET_H
14634 #include <sys/socket.h>
14635 #endif
14636 #ifdef HAVE_SYS_UN_H
14637 #include <sys/un.h>
14638 #endif
14641 main ()
14643 struct sockaddr_un sa; sa.sun_family = AF_UNIX;
14645 return 0;
14647 _ACEOF
14648 if ac_fn_c_try_compile "$LINENO"; then :
14650 $as_echo "#define HAVE_STRUCT_SOCKADDR_UN 1" >>confdefs.h
14651 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14652 $as_echo "yes" >&6; }
14653 else
14654 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14655 $as_echo "no" >&6; }
14657 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14659 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct ucred in sys/socket.h" >&5
14660 $as_echo_n "checking for struct ucred in sys/socket.h... " >&6; }
14661 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14662 /* end confdefs.h. */
14664 #include <sys/types.h>
14665 #ifdef HAVE_SYS_SOCKET_H
14666 #include <sys/socket.h>
14667 #endif
14668 #ifdef HAVE_SYS_UN_H
14669 #include <sys/un.h>
14670 #endif
14673 main ()
14675 struct ucred ucred; ucred.uid = 0;
14677 return 0;
14679 _ACEOF
14680 if ac_fn_c_try_compile "$LINENO"; then :
14682 $as_echo "#define HAVE_STRUCT_UCRED 1" >>confdefs.h
14683 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14684 $as_echo "yes" >&6; }
14685 else
14686 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14687 $as_echo "no" >&6; }
14689 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14691 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for struct timespec in time.h" >&5
14692 $as_echo_n "checking for struct timespec in time.h... " >&6; }
14693 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14694 /* end confdefs.h. */
14696 #include <time.h>
14699 main ()
14701 struct timespec foo;
14703 return 0;
14705 _ACEOF
14706 if ac_fn_c_try_compile "$LINENO"; then :
14708 $as_echo "#define HAVE_STRUCT_TIMESPEC 1" >>confdefs.h
14709 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14710 $as_echo "yes" >&6; }
14711 else
14712 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14713 $as_echo "no" >&6; }
14715 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for altzone in time.h" >&5
14718 $as_echo_n "checking for altzone in time.h... " >&6; }
14719 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14720 /* end confdefs.h. */
14722 #include <time.h>
14725 main ()
14727 time_t az = altzone;
14729 return 0;
14731 _ACEOF
14732 if ac_fn_c_try_compile "$LINENO"; then :
14734 $as_echo "#define HAVE_ALTZONE 1" >>confdefs.h
14735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14736 $as_echo "yes" >&6; }
14737 else
14738 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14739 $as_echo "no" >&6; }
14741 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14743 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strftime knows about %z" >&5
14744 $as_echo_n "checking if strftime knows about %z... " >&6; }
14745 if test "$cross_compiling" = yes; then :
14746 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14747 $as_echo "no" >&6; }
14748 else
14749 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14750 /* end confdefs.h. */
14752 #include <time.h>
14753 int main () {
14754 char b[32]="";
14755 time_t t = time(NULL);
14756 struct tm * t1 = localtime (&t);
14757 if (strftime (b, 32, "%z", t1) < 3)
14758 return (1);
14759 if (strcmp(b, "%z") == 0)
14760 return(1);
14761 return (0);
14764 _ACEOF
14765 if ac_fn_c_try_run "$LINENO"; then :
14767 $as_echo "#define HAVE_STRFTIME_z 1" >>confdefs.h
14768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14769 $as_echo "yes" >&6; }
14770 else
14771 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14772 $as_echo "no" >&6; }
14774 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
14775 conftest.$ac_objext conftest.beam conftest.$ac_ext
14779 { $as_echo "$as_me:${as_lineno-$LINENO}: checking if strerror_r returns char *" >&5
14780 $as_echo_n "checking if strerror_r returns char *... " >&6; }
14781 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14782 /* end confdefs.h. */
14783 #include <string.h>
14785 main ()
14787 strerror_r(0, NULL, 0)[0];
14789 return 0;
14791 _ACEOF
14792 if ac_fn_c_try_compile "$LINENO"; then :
14794 $as_echo "#define HAVE_STRERROR_R_PTR 1" >>confdefs.h
14795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14796 $as_echo "yes" >&6; }
14797 else
14798 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14799 $as_echo "no" >&6; }
14801 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
14803 savedLIBS=$LIBS
14804 LIBS=
14805 lib_for_curses=
14806 lib_for_readline=
14807 ac_fn_c_check_func "$LINENO" "readline" "ac_cv_func_readline"
14808 if test "x$ac_cv_func_readline" = xyes; then :
14810 else
14812 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for readline in -lreadline" >&5
14813 $as_echo_n "checking for readline in -lreadline... " >&6; }
14814 if ${ac_cv_lib_readline_readline+:} false; then :
14815 $as_echo_n "(cached) " >&6
14816 else
14817 ac_check_lib_save_LIBS=$LIBS
14818 LIBS="-lreadline $LIBS"
14819 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14820 /* end confdefs.h. */
14822 /* Override any GCC internal prototype to avoid an error.
14823 Use char because int might match the return type of a GCC
14824 builtin and then its argument prototype would still apply. */
14825 #ifdef __cplusplus
14826 extern "C"
14827 #endif
14828 char readline ();
14830 main ()
14832 return readline ();
14834 return 0;
14836 _ACEOF
14837 if ac_fn_c_try_link "$LINENO"; then :
14838 ac_cv_lib_readline_readline=yes
14839 else
14840 ac_cv_lib_readline_readline=no
14842 rm -f core conftest.err conftest.$ac_objext \
14843 conftest$ac_exeext conftest.$ac_ext
14844 LIBS=$ac_check_lib_save_LIBS
14846 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_readline" >&5
14847 $as_echo "$ac_cv_lib_readline_readline" >&6; }
14848 if test "x$ac_cv_lib_readline_readline" = xyes; then :
14849 cat >>confdefs.h <<_ACEOF
14850 #define HAVE_LIBREADLINE 1
14851 _ACEOF
14853 LIBS="-lreadline $LIBS"
14855 else
14857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for add_history in -lreadline" >&5
14858 $as_echo_n "checking for add_history in -lreadline... " >&6; }
14859 if ${ac_cv_lib_readline_add_history+:} false; then :
14860 $as_echo_n "(cached) " >&6
14861 else
14862 ac_check_lib_save_LIBS=$LIBS
14863 LIBS="-lreadline -lcurses $LIBS"
14864 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
14865 /* end confdefs.h. */
14867 /* Override any GCC internal prototype to avoid an error.
14868 Use char because int might match the return type of a GCC
14869 builtin and then its argument prototype would still apply. */
14870 #ifdef __cplusplus
14871 extern "C"
14872 #endif
14873 char add_history ();
14875 main ()
14877 return add_history ();
14879 return 0;
14881 _ACEOF
14882 if ac_fn_c_try_link "$LINENO"; then :
14883 ac_cv_lib_readline_add_history=yes
14884 else
14885 ac_cv_lib_readline_add_history=no
14887 rm -f core conftest.err conftest.$ac_objext \
14888 conftest$ac_exeext conftest.$ac_ext
14889 LIBS=$ac_check_lib_save_LIBS
14891 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_readline_add_history" >&5
14892 $as_echo "$ac_cv_lib_readline_add_history" >&6; }
14893 if test "x$ac_cv_lib_readline_add_history" = xyes; then :
14894 cat >>confdefs.h <<_ACEOF
14895 #define HAVE_LIBREADLINE 1
14896 _ACEOF
14898 LIBS="-lreadline $LIBS"
14908 if test $ac_cv_func_readline = yes
14909 then
14911 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
14913 elif test $ac_cv_lib_readline_readline = yes
14914 then
14916 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
14918 lib_for_readline=-lreadline
14919 elif test $ac_cv_lib_readline_add_history = yes
14920 then
14922 $as_echo "#define HAVE_READLINE 1" >>confdefs.h
14924 lib_for_curses=-lcurses
14925 lib_for_readline=-lreadline
14929 LIBS=$savedLIBS
14932 pkg_failed=no
14933 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for zlib" >&5
14934 $as_echo_n "checking for zlib... " >&6; }
14936 if test -n "$zlib_CFLAGS"; then
14937 pkg_cv_zlib_CFLAGS="$zlib_CFLAGS"
14938 elif test -n "$PKG_CONFIG"; then
14939 if test -n "$PKG_CONFIG" && \
14940 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib >= 1.0.0\""; } >&5
14941 ($PKG_CONFIG --exists --print-errors "zlib >= 1.0.0") 2>&5
14942 ac_status=$?
14943 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14944 test $ac_status = 0; }; then
14945 pkg_cv_zlib_CFLAGS=`$PKG_CONFIG --cflags "zlib >= 1.0.0" 2>/dev/null`
14946 test "x$?" != "x0" && pkg_failed=yes
14947 else
14948 pkg_failed=yes
14950 else
14951 pkg_failed=untried
14953 if test -n "$zlib_LIBS"; then
14954 pkg_cv_zlib_LIBS="$zlib_LIBS"
14955 elif test -n "$PKG_CONFIG"; then
14956 if test -n "$PKG_CONFIG" && \
14957 { { $as_echo "$as_me:${as_lineno-$LINENO}: \$PKG_CONFIG --exists --print-errors \"zlib >= 1.0.0\""; } >&5
14958 ($PKG_CONFIG --exists --print-errors "zlib >= 1.0.0") 2>&5
14959 ac_status=$?
14960 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
14961 test $ac_status = 0; }; then
14962 pkg_cv_zlib_LIBS=`$PKG_CONFIG --libs "zlib >= 1.0.0" 2>/dev/null`
14963 test "x$?" != "x0" && pkg_failed=yes
14964 else
14965 pkg_failed=yes
14967 else
14968 pkg_failed=untried
14973 if test $pkg_failed = yes; then
14974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14975 $as_echo "no" >&6; }
14977 if $PKG_CONFIG --atleast-pkgconfig-version 0.20; then
14978 _pkg_short_errors_supported=yes
14979 else
14980 _pkg_short_errors_supported=no
14982 if test $_pkg_short_errors_supported = yes; then
14983 zlib_PKG_ERRORS=`$PKG_CONFIG --short-errors --print-errors --cflags --libs "zlib >= 1.0.0" 2>&1`
14984 else
14985 zlib_PKG_ERRORS=`$PKG_CONFIG --print-errors --cflags --libs "zlib >= 1.0.0" 2>&1`
14987 # Put the nasty error message in config.log where it belongs
14988 echo "$zlib_PKG_ERRORS" >&5
14990 have_zlib=false
14991 elif test $pkg_failed = untried; then
14992 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
14993 $as_echo "no" >&6; }
14994 have_zlib=false
14995 else
14996 zlib_CFLAGS=$pkg_cv_zlib_CFLAGS
14997 zlib_LIBS=$pkg_cv_zlib_LIBS
14998 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
14999 $as_echo "yes" >&6; }
15000 have_zlib=true
15002 HAVE_ZLIB=$have_zlib
15005 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for AI_ADDRCONFIG" >&5
15006 $as_echo_n "checking for AI_ADDRCONFIG... " >&6; }
15007 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
15008 /* end confdefs.h. */
15010 #include <netdb.h>
15011 int test = AI_ADDRCONFIG;
15014 main ()
15019 return 0;
15021 _ACEOF
15022 if ac_fn_c_try_compile "$LINENO"; then :
15024 $as_echo "#define HAVE_AI_ADDRCONFIG 1" >>confdefs.h
15025 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
15026 $as_echo "yes" >&6; }
15027 else
15028 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
15029 $as_echo "no" >&6; }
15031 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
15034 have_vector=false
15035 if test -f ./build/tar/vector.tar.gz
15036 then
15037 { $as_echo "$as_me:${as_lineno-$LINENO}: adding Vector webapp to the build" >&5
15038 $as_echo "$as_me: adding Vector webapp to the build" >&6;}
15039 have_vector=true
15043 have_webjs=false
15044 if test -f ./build/tar/webjs.tar.gz
15045 then
15046 { $as_echo "$as_me:${as_lineno-$LINENO}: adding webjs webapps to the build" >&5
15047 $as_echo "$as_me: adding webjs webapps to the build" >&6;}
15048 have_webjs=true
15055 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"
15057 cat >confcache <<\_ACEOF
15058 # This file is a shell script that caches the results of configure
15059 # tests run on this system so they can be shared between configure
15060 # scripts and configure runs, see configure's option --config-cache.
15061 # It is not useful on other systems. If it contains results you don't
15062 # want to keep, you may remove or edit it.
15064 # config.status only pays attention to the cache file if you give it
15065 # the --recheck option to rerun configure.
15067 # `ac_cv_env_foo' variables (set or unset) will be overridden when
15068 # loading this file, other *unset* `ac_cv_foo' will be assigned the
15069 # following values.
15071 _ACEOF
15073 # The following way of writing the cache mishandles newlines in values,
15074 # but we know of no workaround that is simple, portable, and efficient.
15075 # So, we kill variables containing newlines.
15076 # Ultrix sh set writes to stderr and can't be redirected directly,
15077 # and sets the high bit in the cache file unless we assign to the vars.
15079 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
15080 eval ac_val=\$$ac_var
15081 case $ac_val in #(
15082 *${as_nl}*)
15083 case $ac_var in #(
15084 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
15085 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
15086 esac
15087 case $ac_var in #(
15088 _ | IFS | as_nl) ;; #(
15089 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
15090 *) { eval $ac_var=; unset $ac_var;} ;;
15091 esac ;;
15092 esac
15093 done
15095 (set) 2>&1 |
15096 case $as_nl`(ac_space=' '; set) 2>&1` in #(
15097 *${as_nl}ac_space=\ *)
15098 # `set' does not quote correctly, so add quotes: double-quote
15099 # substitution turns \\\\ into \\, and sed turns \\ into \.
15100 sed -n \
15101 "s/'/'\\\\''/g;
15102 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
15103 ;; #(
15105 # `set' quotes correctly as required by POSIX, so do not add quotes.
15106 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
15108 esac |
15109 sort
15111 sed '
15112 /^ac_cv_env_/b end
15113 t clear
15114 :clear
15115 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
15116 t end
15117 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
15118 :end' >>confcache
15119 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
15120 if test -w "$cache_file"; then
15121 if test "x$cache_file" != "x/dev/null"; then
15122 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
15123 $as_echo "$as_me: updating cache $cache_file" >&6;}
15124 if test ! -f "$cache_file" || test -h "$cache_file"; then
15125 cat confcache >"$cache_file"
15126 else
15127 case $cache_file in #(
15128 */* | ?:*)
15129 mv -f confcache "$cache_file"$$ &&
15130 mv -f "$cache_file"$$ "$cache_file" ;; #(
15132 mv -f confcache "$cache_file" ;;
15133 esac
15136 else
15137 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
15138 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
15141 rm -f confcache
15143 test "x$prefix" = xNONE && prefix=$ac_default_prefix
15144 # Let make expand exec_prefix.
15145 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
15147 DEFS=-DHAVE_CONFIG_H
15149 ac_libobjs=
15150 ac_ltlibobjs=
15152 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
15153 # 1. Remove the extension, and $U if already installed.
15154 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
15155 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
15156 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
15157 # will be set to the directory where LIBOBJS objects are built.
15158 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
15159 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
15160 done
15161 LIBOBJS=$ac_libobjs
15163 LTLIBOBJS=$ac_ltlibobjs
15167 : "${CONFIG_STATUS=./config.status}"
15168 ac_write_fail=0
15169 ac_clean_files_save=$ac_clean_files
15170 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
15171 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
15172 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
15173 as_write_fail=0
15174 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
15175 #! $SHELL
15176 # Generated by $as_me.
15177 # Run this file to recreate the current configuration.
15178 # Compiler output produced by configure, useful for debugging
15179 # configure, is in config.log if it exists.
15181 debug=false
15182 ac_cs_recheck=false
15183 ac_cs_silent=false
15185 SHELL=\${CONFIG_SHELL-$SHELL}
15186 export SHELL
15187 _ASEOF
15188 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
15189 ## -------------------- ##
15190 ## M4sh Initialization. ##
15191 ## -------------------- ##
15193 # Be more Bourne compatible
15194 DUALCASE=1; export DUALCASE # for MKS sh
15195 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
15196 emulate sh
15197 NULLCMD=:
15198 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
15199 # is contrary to our usage. Disable this feature.
15200 alias -g '${1+"$@"}'='"$@"'
15201 setopt NO_GLOB_SUBST
15202 else
15203 case `(set -o) 2>/dev/null` in #(
15204 *posix*) :
15205 set -o posix ;; #(
15206 *) :
15208 esac
15212 as_nl='
15214 export as_nl
15215 # Printing a long string crashes Solaris 7 /usr/bin/printf.
15216 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
15217 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
15218 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
15219 # Prefer a ksh shell builtin over an external printf program on Solaris,
15220 # but without wasting forks for bash or zsh.
15221 if test -z "$BASH_VERSION$ZSH_VERSION" \
15222 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
15223 as_echo='print -r --'
15224 as_echo_n='print -rn --'
15225 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
15226 as_echo='printf %s\n'
15227 as_echo_n='printf %s'
15228 else
15229 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
15230 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
15231 as_echo_n='/usr/ucb/echo -n'
15232 else
15233 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
15234 as_echo_n_body='eval
15235 arg=$1;
15236 case $arg in #(
15237 *"$as_nl"*)
15238 expr "X$arg" : "X\\(.*\\)$as_nl";
15239 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
15240 esac;
15241 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
15243 export as_echo_n_body
15244 as_echo_n='sh -c $as_echo_n_body as_echo'
15246 export as_echo_body
15247 as_echo='sh -c $as_echo_body as_echo'
15250 # The user is always right.
15251 if test "${PATH_SEPARATOR+set}" != set; then
15252 PATH_SEPARATOR=:
15253 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
15254 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
15255 PATH_SEPARATOR=';'
15260 # IFS
15261 # We need space, tab and new line, in precisely that order. Quoting is
15262 # there to prevent editors from complaining about space-tab.
15263 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
15264 # splitting by setting IFS to empty value.)
15265 IFS=" "" $as_nl"
15267 # Find who we are. Look in the path if we contain no directory separator.
15268 as_myself=
15269 case $0 in #((
15270 *[\\/]* ) as_myself=$0 ;;
15271 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
15272 for as_dir in $PATH
15274 IFS=$as_save_IFS
15275 test -z "$as_dir" && as_dir=.
15276 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
15277 done
15278 IFS=$as_save_IFS
15281 esac
15282 # We did not find ourselves, most probably we were run as `sh COMMAND'
15283 # in which case we are not to be found in the path.
15284 if test "x$as_myself" = x; then
15285 as_myself=$0
15287 if test ! -f "$as_myself"; then
15288 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
15289 exit 1
15292 # Unset variables that we do not need and which cause bugs (e.g. in
15293 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
15294 # suppresses any "Segmentation fault" message there. '((' could
15295 # trigger a bug in pdksh 5.2.14.
15296 for as_var in BASH_ENV ENV MAIL MAILPATH
15297 do eval test x\${$as_var+set} = xset \
15298 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
15299 done
15300 PS1='$ '
15301 PS2='> '
15302 PS4='+ '
15304 # NLS nuisances.
15305 LC_ALL=C
15306 export LC_ALL
15307 LANGUAGE=C
15308 export LANGUAGE
15310 # CDPATH.
15311 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
15314 # as_fn_error STATUS ERROR [LINENO LOG_FD]
15315 # ----------------------------------------
15316 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
15317 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
15318 # script with STATUS, using 1 if that was 0.
15319 as_fn_error ()
15321 as_status=$1; test $as_status -eq 0 && as_status=1
15322 if test "$4"; then
15323 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
15324 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
15326 $as_echo "$as_me: error: $2" >&2
15327 as_fn_exit $as_status
15328 } # as_fn_error
15331 # as_fn_set_status STATUS
15332 # -----------------------
15333 # Set $? to STATUS, without forking.
15334 as_fn_set_status ()
15336 return $1
15337 } # as_fn_set_status
15339 # as_fn_exit STATUS
15340 # -----------------
15341 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
15342 as_fn_exit ()
15344 set +e
15345 as_fn_set_status $1
15346 exit $1
15347 } # as_fn_exit
15349 # as_fn_unset VAR
15350 # ---------------
15351 # Portably unset VAR.
15352 as_fn_unset ()
15354 { eval $1=; unset $1;}
15356 as_unset=as_fn_unset
15357 # as_fn_append VAR VALUE
15358 # ----------------------
15359 # Append the text in VALUE to the end of the definition contained in VAR. Take
15360 # advantage of any shell optimizations that allow amortized linear growth over
15361 # repeated appends, instead of the typical quadratic growth present in naive
15362 # implementations.
15363 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
15364 eval 'as_fn_append ()
15366 eval $1+=\$2
15368 else
15369 as_fn_append ()
15371 eval $1=\$$1\$2
15373 fi # as_fn_append
15375 # as_fn_arith ARG...
15376 # ------------------
15377 # Perform arithmetic evaluation on the ARGs, and store the result in the
15378 # global $as_val. Take advantage of shells that can avoid forks. The arguments
15379 # must be portable across $(()) and expr.
15380 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
15381 eval 'as_fn_arith ()
15383 as_val=$(( $* ))
15385 else
15386 as_fn_arith ()
15388 as_val=`expr "$@" || test $? -eq 1`
15390 fi # as_fn_arith
15393 if expr a : '\(a\)' >/dev/null 2>&1 &&
15394 test "X`expr 00001 : '.*\(...\)'`" = X001; then
15395 as_expr=expr
15396 else
15397 as_expr=false
15400 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
15401 as_basename=basename
15402 else
15403 as_basename=false
15406 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
15407 as_dirname=dirname
15408 else
15409 as_dirname=false
15412 as_me=`$as_basename -- "$0" ||
15413 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
15414 X"$0" : 'X\(//\)$' \| \
15415 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
15416 $as_echo X/"$0" |
15417 sed '/^.*\/\([^/][^/]*\)\/*$/{
15418 s//\1/
15421 /^X\/\(\/\/\)$/{
15422 s//\1/
15425 /^X\/\(\/\).*/{
15426 s//\1/
15429 s/.*/./; q'`
15431 # Avoid depending upon Character Ranges.
15432 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
15433 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
15434 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
15435 as_cr_digits='0123456789'
15436 as_cr_alnum=$as_cr_Letters$as_cr_digits
15438 ECHO_C= ECHO_N= ECHO_T=
15439 case `echo -n x` in #(((((
15440 -n*)
15441 case `echo 'xy\c'` in
15442 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
15443 xy) ECHO_C='\c';;
15444 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
15445 ECHO_T=' ';;
15446 esac;;
15448 ECHO_N='-n';;
15449 esac
15451 rm -f conf$$ conf$$.exe conf$$.file
15452 if test -d conf$$.dir; then
15453 rm -f conf$$.dir/conf$$.file
15454 else
15455 rm -f conf$$.dir
15456 mkdir conf$$.dir 2>/dev/null
15458 if (echo >conf$$.file) 2>/dev/null; then
15459 if ln -s conf$$.file conf$$ 2>/dev/null; then
15460 as_ln_s='ln -s'
15461 # ... but there are two gotchas:
15462 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
15463 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
15464 # In both cases, we have to default to `cp -pR'.
15465 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
15466 as_ln_s='cp -pR'
15467 elif ln conf$$.file conf$$ 2>/dev/null; then
15468 as_ln_s=ln
15469 else
15470 as_ln_s='cp -pR'
15472 else
15473 as_ln_s='cp -pR'
15475 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
15476 rmdir conf$$.dir 2>/dev/null
15479 # as_fn_mkdir_p
15480 # -------------
15481 # Create "$as_dir" as a directory, including parents if necessary.
15482 as_fn_mkdir_p ()
15485 case $as_dir in #(
15486 -*) as_dir=./$as_dir;;
15487 esac
15488 test -d "$as_dir" || eval $as_mkdir_p || {
15489 as_dirs=
15490 while :; do
15491 case $as_dir in #(
15492 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
15493 *) as_qdir=$as_dir;;
15494 esac
15495 as_dirs="'$as_qdir' $as_dirs"
15496 as_dir=`$as_dirname -- "$as_dir" ||
15497 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
15498 X"$as_dir" : 'X\(//\)[^/]' \| \
15499 X"$as_dir" : 'X\(//\)$' \| \
15500 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
15501 $as_echo X"$as_dir" |
15502 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
15503 s//\1/
15506 /^X\(\/\/\)[^/].*/{
15507 s//\1/
15510 /^X\(\/\/\)$/{
15511 s//\1/
15514 /^X\(\/\).*/{
15515 s//\1/
15518 s/.*/./; q'`
15519 test -d "$as_dir" && break
15520 done
15521 test -z "$as_dirs" || eval "mkdir $as_dirs"
15522 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
15525 } # as_fn_mkdir_p
15526 if mkdir -p . 2>/dev/null; then
15527 as_mkdir_p='mkdir -p "$as_dir"'
15528 else
15529 test -d ./-p && rmdir ./-p
15530 as_mkdir_p=false
15534 # as_fn_executable_p FILE
15535 # -----------------------
15536 # Test if FILE is an executable regular file.
15537 as_fn_executable_p ()
15539 test -f "$1" && test -x "$1"
15540 } # as_fn_executable_p
15541 as_test_x='test -x'
15542 as_executable_p=as_fn_executable_p
15544 # Sed expression to map a string onto a valid CPP name.
15545 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
15547 # Sed expression to map a string onto a valid variable name.
15548 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
15551 exec 6>&1
15552 ## ----------------------------------- ##
15553 ## Main body of $CONFIG_STATUS script. ##
15554 ## ----------------------------------- ##
15555 _ASEOF
15556 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
15558 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15559 # Save the log message, to keep $0 and so on meaningful, and to
15560 # report actual input values of CONFIG_FILES etc. instead of their
15561 # values after options handling.
15562 ac_log="
15563 This file was extended by $as_me, which was
15564 generated by GNU Autoconf 2.69. Invocation command line was
15566 CONFIG_FILES = $CONFIG_FILES
15567 CONFIG_HEADERS = $CONFIG_HEADERS
15568 CONFIG_LINKS = $CONFIG_LINKS
15569 CONFIG_COMMANDS = $CONFIG_COMMANDS
15570 $ $0 $@
15572 on `(hostname || uname -n) 2>/dev/null | sed 1q`
15575 _ACEOF
15577 case $ac_config_files in *"
15578 "*) set x $ac_config_files; shift; ac_config_files=$*;;
15579 esac
15581 case $ac_config_headers in *"
15582 "*) set x $ac_config_headers; shift; ac_config_headers=$*;;
15583 esac
15586 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15587 # Files that config.status was made for.
15588 config_files="$ac_config_files"
15589 config_headers="$ac_config_headers"
15591 _ACEOF
15593 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15594 ac_cs_usage="\
15595 \`$as_me' instantiates files and other configuration actions
15596 from templates according to the current configuration. Unless the files
15597 and actions are specified as TAGs, all are instantiated by default.
15599 Usage: $0 [OPTION]... [TAG]...
15601 -h, --help print this help, then exit
15602 -V, --version print version number and configuration settings, then exit
15603 --config print configuration, then exit
15604 -q, --quiet, --silent
15605 do not print progress messages
15606 -d, --debug don't remove temporary files
15607 --recheck update $as_me by reconfiguring in the same conditions
15608 --file=FILE[:TEMPLATE]
15609 instantiate the configuration file FILE
15610 --header=FILE[:TEMPLATE]
15611 instantiate the configuration header FILE
15613 Configuration files:
15614 $config_files
15616 Configuration headers:
15617 $config_headers
15619 Report bugs to the package provider."
15621 _ACEOF
15622 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15623 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
15624 ac_cs_version="\\
15625 config.status
15626 configured by $0, generated by GNU Autoconf 2.69,
15627 with options \\"\$ac_cs_config\\"
15629 Copyright (C) 2012 Free Software Foundation, Inc.
15630 This config.status script is free software; the Free Software Foundation
15631 gives unlimited permission to copy, distribute and modify it."
15633 ac_pwd='$ac_pwd'
15634 srcdir='$srcdir'
15635 test -n "\$AWK" || AWK=awk
15636 _ACEOF
15638 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15639 # The default lists apply if the user does not specify any file.
15640 ac_need_defaults=:
15641 while test $# != 0
15643 case $1 in
15644 --*=?*)
15645 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15646 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
15647 ac_shift=:
15649 --*=)
15650 ac_option=`expr "X$1" : 'X\([^=]*\)='`
15651 ac_optarg=
15652 ac_shift=:
15655 ac_option=$1
15656 ac_optarg=$2
15657 ac_shift=shift
15659 esac
15661 case $ac_option in
15662 # Handling of the options.
15663 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
15664 ac_cs_recheck=: ;;
15665 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
15666 $as_echo "$ac_cs_version"; exit ;;
15667 --config | --confi | --conf | --con | --co | --c )
15668 $as_echo "$ac_cs_config"; exit ;;
15669 --debug | --debu | --deb | --de | --d | -d )
15670 debug=: ;;
15671 --file | --fil | --fi | --f )
15672 $ac_shift
15673 case $ac_optarg in
15674 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15675 '') as_fn_error $? "missing file argument" ;;
15676 esac
15677 as_fn_append CONFIG_FILES " '$ac_optarg'"
15678 ac_need_defaults=false;;
15679 --header | --heade | --head | --hea )
15680 $ac_shift
15681 case $ac_optarg in
15682 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
15683 esac
15684 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
15685 ac_need_defaults=false;;
15686 --he | --h)
15687 # Conflict between --help and --header
15688 as_fn_error $? "ambiguous option: \`$1'
15689 Try \`$0 --help' for more information.";;
15690 --help | --hel | -h )
15691 $as_echo "$ac_cs_usage"; exit ;;
15692 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
15693 | -silent | --silent | --silen | --sile | --sil | --si | --s)
15694 ac_cs_silent=: ;;
15696 # This is an error.
15697 -*) as_fn_error $? "unrecognized option: \`$1'
15698 Try \`$0 --help' for more information." ;;
15700 *) as_fn_append ac_config_targets " $1"
15701 ac_need_defaults=false ;;
15703 esac
15704 shift
15705 done
15707 ac_configure_extra_args=
15709 if $ac_cs_silent; then
15710 exec 6>/dev/null
15711 ac_configure_extra_args="$ac_configure_extra_args --silent"
15714 _ACEOF
15715 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15716 if \$ac_cs_recheck; then
15717 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
15718 shift
15719 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
15720 CONFIG_SHELL='$SHELL'
15721 export CONFIG_SHELL
15722 exec "\$@"
15725 _ACEOF
15726 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15727 exec 5>>config.log
15729 echo
15730 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
15731 ## Running $as_me. ##
15732 _ASBOX
15733 $as_echo "$ac_log"
15734 } >&5
15736 _ACEOF
15737 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15738 _ACEOF
15740 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15742 # Handling of arguments.
15743 for ac_config_target in $ac_config_targets
15745 case $ac_config_target in
15746 "src/include/pcp/config.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pcp/config.h" ;;
15747 "src/include/pcp/configsz.h") CONFIG_HEADERS="$CONFIG_HEADERS src/include/pcp/configsz.h" ;;
15748 "src/include/pcp/platform_defs.h") CONFIG_FILES="$CONFIG_FILES src/include/pcp/platform_defs.h" ;;
15749 "src/include/builddefs") CONFIG_FILES="$CONFIG_FILES src/include/builddefs" ;;
15750 "src/include/pcp.conf") CONFIG_FILES="$CONFIG_FILES src/include/pcp.conf" ;;
15751 "pcp.lsm") CONFIG_FILES="$CONFIG_FILES pcp.lsm" ;;
15752 "debian/pcp.preinst.head") CONFIG_FILES="$CONFIG_FILES debian/pcp.preinst.head" ;;
15753 "debian/pcp.postinst.head") CONFIG_FILES="$CONFIG_FILES debian/pcp.postinst.head" ;;
15754 "build/tar/preinstall.head") CONFIG_FILES="$CONFIG_FILES build/tar/preinstall.head" ;;
15755 "build/tar/postinstall.head") CONFIG_FILES="$CONFIG_FILES build/tar/postinstall.head" ;;
15756 "build/GNUlocaldefs") CONFIG_FILES="$CONFIG_FILES build/GNUlocaldefs" ;;
15757 "build/mac/uninstall-pcp") CONFIG_FILES="$CONFIG_FILES build/mac/uninstall-pcp" ;;
15759 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
15760 esac
15761 done
15764 # If the user did not use the arguments to specify the items to instantiate,
15765 # then the envvar interface is used. Set only those that are not.
15766 # We use the long form for the default assignment because of an extremely
15767 # bizarre bug on SunOS 4.1.3.
15768 if $ac_need_defaults; then
15769 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
15770 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
15773 # Have a temporary directory for convenience. Make it in the build tree
15774 # simply because there is no reason against having it here, and in addition,
15775 # creating and moving files from /tmp can sometimes cause problems.
15776 # Hook for its removal unless debugging.
15777 # Note that there is a small window in which the directory will not be cleaned:
15778 # after its creation but before its name has been assigned to `$tmp'.
15779 $debug ||
15781 tmp= ac_tmp=
15782 trap 'exit_status=$?
15783 : "${ac_tmp:=$tmp}"
15784 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
15786 trap 'as_fn_exit 1' 1 2 13 15
15788 # Create a (secure) tmp directory for tmp files.
15791 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
15792 test -d "$tmp"
15793 } ||
15795 tmp=./conf$$-$RANDOM
15796 (umask 077 && mkdir "$tmp")
15797 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
15798 ac_tmp=$tmp
15800 # Set up the scripts for CONFIG_FILES section.
15801 # No need to generate them if there are no CONFIG_FILES.
15802 # This happens for instance with `./config.status config.h'.
15803 if test -n "$CONFIG_FILES"; then
15806 ac_cr=`echo X | tr X '\015'`
15807 # On cygwin, bash can eat \r inside `` if the user requested igncr.
15808 # But we know of no other shell where ac_cr would be empty at this
15809 # point, so we can use a bashism as a fallback.
15810 if test "x$ac_cr" = x; then
15811 eval ac_cr=\$\'\\r\'
15813 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
15814 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
15815 ac_cs_awk_cr='\\r'
15816 else
15817 ac_cs_awk_cr=$ac_cr
15820 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
15821 _ACEOF
15825 echo "cat >conf$$subs.awk <<_ACEOF" &&
15826 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
15827 echo "_ACEOF"
15828 } >conf$$subs.sh ||
15829 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15830 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
15831 ac_delim='%!_!# '
15832 for ac_last_try in false false false false false :; do
15833 . ./conf$$subs.sh ||
15834 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15836 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
15837 if test $ac_delim_n = $ac_delim_num; then
15838 break
15839 elif $ac_last_try; then
15840 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
15841 else
15842 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15844 done
15845 rm -f conf$$subs.sh
15847 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15848 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
15849 _ACEOF
15850 sed -n '
15852 s/^/S["/; s/!.*/"]=/
15855 s/^[^!]*!//
15856 :repl
15857 t repl
15858 s/'"$ac_delim"'$//
15859 t delim
15862 s/\(.\{148\}\)..*/\1/
15863 t more1
15864 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
15867 b repl
15868 :more1
15869 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15872 s/.\{148\}//
15873 t nl
15874 :delim
15876 s/\(.\{148\}\)..*/\1/
15877 t more2
15878 s/["\\]/\\&/g; s/^/"/; s/$/"/
15881 :more2
15882 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
15885 s/.\{148\}//
15886 t delim
15887 ' <conf$$subs.awk | sed '
15888 /^[^""]/{
15890 s/\n//
15892 ' >>$CONFIG_STATUS || ac_write_fail=1
15893 rm -f conf$$subs.awk
15894 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
15895 _ACAWK
15896 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
15897 for (key in S) S_is_set[key] = 1
15898 FS = "\a"
15902 line = $ 0
15903 nfields = split(line, field, "@")
15904 substed = 0
15905 len = length(field[1])
15906 for (i = 2; i < nfields; i++) {
15907 key = field[i]
15908 keylen = length(key)
15909 if (S_is_set[key]) {
15910 value = S[key]
15911 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
15912 len += length(value) + length(field[++i])
15913 substed = 1
15914 } else
15915 len += 1 + keylen
15918 print line
15921 _ACAWK
15922 _ACEOF
15923 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15924 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
15925 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
15926 else
15928 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
15929 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
15930 _ACEOF
15932 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
15933 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
15934 # trailing colons and then remove the whole line if VPATH becomes empty
15935 # (actually we leave an empty line to preserve line numbers).
15936 if test "x$srcdir" = x.; then
15937 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
15939 s///
15940 s/^/:/
15941 s/[ ]*$/:/
15942 s/:\$(srcdir):/:/g
15943 s/:\${srcdir}:/:/g
15944 s/:@srcdir@:/:/g
15945 s/^:*//
15946 s/:*$//
15948 s/\(=[ ]*\).*/\1/
15950 s/\n//
15951 s/^[^=]*=[ ]*$//
15955 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
15956 fi # test -n "$CONFIG_FILES"
15958 # Set up the scripts for CONFIG_HEADERS section.
15959 # No need to generate them if there are no CONFIG_HEADERS.
15960 # This happens for instance with `./config.status Makefile'.
15961 if test -n "$CONFIG_HEADERS"; then
15962 cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
15963 BEGIN {
15964 _ACEOF
15966 # Transform confdefs.h into an awk script `defines.awk', embedded as
15967 # here-document in config.status, that substitutes the proper values into
15968 # config.h.in to produce config.h.
15970 # Create a delimiter string that does not exist in confdefs.h, to ease
15971 # handling of long lines.
15972 ac_delim='%!_!# '
15973 for ac_last_try in false false :; do
15974 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
15975 if test -z "$ac_tt"; then
15976 break
15977 elif $ac_last_try; then
15978 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
15979 else
15980 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
15982 done
15984 # For the awk script, D is an array of macro values keyed by name,
15985 # likewise P contains macro parameters if any. Preserve backslash
15986 # newline sequences.
15988 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
15989 sed -n '
15990 s/.\{148\}/&'"$ac_delim"'/g
15991 t rset
15992 :rset
15993 s/^[ ]*#[ ]*define[ ][ ]*/ /
15994 t def
15996 :def
15997 s/\\$//
15998 t bsnl
15999 s/["\\]/\\&/g
16000 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16001 D["\1"]=" \3"/p
16002 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
16004 :bsnl
16005 s/["\\]/\\&/g
16006 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
16007 D["\1"]=" \3\\\\\\n"\\/p
16008 t cont
16009 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
16010 t cont
16012 :cont
16014 s/.\{148\}/&'"$ac_delim"'/g
16015 t clear
16016 :clear
16017 s/\\$//
16018 t bsnlc
16019 s/["\\]/\\&/g; s/^/"/; s/$/"/p
16021 :bsnlc
16022 s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
16023 b cont
16024 ' <confdefs.h | sed '
16025 s/'"$ac_delim"'/"\\\
16026 "/g' >>$CONFIG_STATUS || ac_write_fail=1
16028 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16029 for (key in D) D_is_set[key] = 1
16030 FS = "\a"
16032 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
16033 line = \$ 0
16034 split(line, arg, " ")
16035 if (arg[1] == "#") {
16036 defundef = arg[2]
16037 mac1 = arg[3]
16038 } else {
16039 defundef = substr(arg[1], 2)
16040 mac1 = arg[2]
16042 split(mac1, mac2, "(") #)
16043 macro = mac2[1]
16044 prefix = substr(line, 1, index(line, defundef) - 1)
16045 if (D_is_set[macro]) {
16046 # Preserve the white space surrounding the "#".
16047 print prefix "define", macro P[macro] D[macro]
16048 next
16049 } else {
16050 # Replace #undef with comments. This is necessary, for example,
16051 # in the case of _POSIX_SOURCE, which is predefined and required
16052 # on some systems where configure will not decide to define it.
16053 if (defundef == "undef") {
16054 print "/*", prefix defundef, macro, "*/"
16055 next
16059 { print }
16060 _ACAWK
16061 _ACEOF
16062 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16063 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
16064 fi # test -n "$CONFIG_HEADERS"
16067 eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS "
16068 shift
16069 for ac_tag
16071 case $ac_tag in
16072 :[FHLC]) ac_mode=$ac_tag; continue;;
16073 esac
16074 case $ac_mode$ac_tag in
16075 :[FHL]*:*);;
16076 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
16077 :[FH]-) ac_tag=-:-;;
16078 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
16079 esac
16080 ac_save_IFS=$IFS
16081 IFS=:
16082 set x $ac_tag
16083 IFS=$ac_save_IFS
16084 shift
16085 ac_file=$1
16086 shift
16088 case $ac_mode in
16089 :L) ac_source=$1;;
16090 :[FH])
16091 ac_file_inputs=
16092 for ac_f
16094 case $ac_f in
16095 -) ac_f="$ac_tmp/stdin";;
16096 *) # Look for the file first in the build tree, then in the source tree
16097 # (if the path is not absolute). The absolute path cannot be DOS-style,
16098 # because $ac_f cannot contain `:'.
16099 test -f "$ac_f" ||
16100 case $ac_f in
16101 [\\/$]*) false;;
16102 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
16103 esac ||
16104 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
16105 esac
16106 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
16107 as_fn_append ac_file_inputs " '$ac_f'"
16108 done
16110 # Let's still pretend it is `configure' which instantiates (i.e., don't
16111 # use $as_me), people would be surprised to read:
16112 # /* config.h. Generated by config.status. */
16113 configure_input='Generated from '`
16114 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
16115 `' by configure.'
16116 if test x"$ac_file" != x-; then
16117 configure_input="$ac_file. $configure_input"
16118 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
16119 $as_echo "$as_me: creating $ac_file" >&6;}
16121 # Neutralize special characters interpreted by sed in replacement strings.
16122 case $configure_input in #(
16123 *\&* | *\|* | *\\* )
16124 ac_sed_conf_input=`$as_echo "$configure_input" |
16125 sed 's/[\\\\&|]/\\\\&/g'`;; #(
16126 *) ac_sed_conf_input=$configure_input;;
16127 esac
16129 case $ac_tag in
16130 *:-:* | *:-) cat >"$ac_tmp/stdin" \
16131 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
16132 esac
16134 esac
16136 ac_dir=`$as_dirname -- "$ac_file" ||
16137 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
16138 X"$ac_file" : 'X\(//\)[^/]' \| \
16139 X"$ac_file" : 'X\(//\)$' \| \
16140 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
16141 $as_echo X"$ac_file" |
16142 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
16143 s//\1/
16146 /^X\(\/\/\)[^/].*/{
16147 s//\1/
16150 /^X\(\/\/\)$/{
16151 s//\1/
16154 /^X\(\/\).*/{
16155 s//\1/
16158 s/.*/./; q'`
16159 as_dir="$ac_dir"; as_fn_mkdir_p
16160 ac_builddir=.
16162 case "$ac_dir" in
16163 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
16165 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
16166 # A ".." for each directory in $ac_dir_suffix.
16167 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
16168 case $ac_top_builddir_sub in
16169 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
16170 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
16171 esac ;;
16172 esac
16173 ac_abs_top_builddir=$ac_pwd
16174 ac_abs_builddir=$ac_pwd$ac_dir_suffix
16175 # for backward compatibility:
16176 ac_top_builddir=$ac_top_build_prefix
16178 case $srcdir in
16179 .) # We are building in place.
16180 ac_srcdir=.
16181 ac_top_srcdir=$ac_top_builddir_sub
16182 ac_abs_top_srcdir=$ac_pwd ;;
16183 [\\/]* | ?:[\\/]* ) # Absolute name.
16184 ac_srcdir=$srcdir$ac_dir_suffix;
16185 ac_top_srcdir=$srcdir
16186 ac_abs_top_srcdir=$srcdir ;;
16187 *) # Relative name.
16188 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
16189 ac_top_srcdir=$ac_top_build_prefix$srcdir
16190 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
16191 esac
16192 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
16195 case $ac_mode in
16198 # CONFIG_FILE
16201 _ACEOF
16203 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16204 # If the template does not know about datarootdir, expand it.
16205 # FIXME: This hack should be removed a few years after 2.60.
16206 ac_datarootdir_hack=; ac_datarootdir_seen=
16207 ac_sed_dataroot='
16208 /datarootdir/ {
16212 /@datadir@/p
16213 /@docdir@/p
16214 /@infodir@/p
16215 /@localedir@/p
16216 /@mandir@/p'
16217 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
16218 *datarootdir*) ac_datarootdir_seen=yes;;
16219 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
16220 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
16221 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
16222 _ACEOF
16223 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16224 ac_datarootdir_hack='
16225 s&@datadir@&$datadir&g
16226 s&@docdir@&$docdir&g
16227 s&@infodir@&$infodir&g
16228 s&@localedir@&$localedir&g
16229 s&@mandir@&$mandir&g
16230 s&\\\${datarootdir}&$datarootdir&g' ;;
16231 esac
16232 _ACEOF
16234 # Neutralize VPATH when `$srcdir' = `.'.
16235 # Shell code in configure.ac might set extrasub.
16236 # FIXME: do we really want to maintain this feature?
16237 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
16238 ac_sed_extra="$ac_vpsub
16239 $extrasub
16240 _ACEOF
16241 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
16243 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
16244 s|@configure_input@|$ac_sed_conf_input|;t t
16245 s&@top_builddir@&$ac_top_builddir_sub&;t t
16246 s&@top_build_prefix@&$ac_top_build_prefix&;t t
16247 s&@srcdir@&$ac_srcdir&;t t
16248 s&@abs_srcdir@&$ac_abs_srcdir&;t t
16249 s&@top_srcdir@&$ac_top_srcdir&;t t
16250 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
16251 s&@builddir@&$ac_builddir&;t t
16252 s&@abs_builddir@&$ac_abs_builddir&;t t
16253 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
16254 $ac_datarootdir_hack
16256 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
16257 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16259 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
16260 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
16261 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
16262 "$ac_tmp/out"`; test -z "$ac_out"; } &&
16263 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16264 which seems to be undefined. Please make sure it is defined" >&5
16265 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
16266 which seems to be undefined. Please make sure it is defined" >&2;}
16268 rm -f "$ac_tmp/stdin"
16269 case $ac_file in
16270 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
16271 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
16272 esac \
16273 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16277 # CONFIG_HEADER
16279 if test x"$ac_file" != x-; then
16281 $as_echo "/* $configure_input */" \
16282 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
16283 } >"$ac_tmp/config.h" \
16284 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16285 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
16286 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
16287 $as_echo "$as_me: $ac_file is unchanged" >&6;}
16288 else
16289 rm -f "$ac_file"
16290 mv "$ac_tmp/config.h" "$ac_file" \
16291 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
16293 else
16294 $as_echo "/* $configure_input */" \
16295 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
16296 || as_fn_error $? "could not create -" "$LINENO" 5
16301 esac
16303 done # for ac_tag
16306 as_fn_exit 0
16307 _ACEOF
16308 ac_clean_files=$ac_clean_files_save
16310 test $ac_write_fail = 0 ||
16311 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
16314 # configure is writing to config.log, and then calls config.status.
16315 # config.status does its own redirection, appending to config.log.
16316 # Unfortunately, on DOS this fails, as config.log is still kept open
16317 # by configure, so config.status won't be able to write to it; its
16318 # output is simply discarded. So we exec the FD to /dev/null,
16319 # effectively closing config.log, so it can be properly (re)opened and
16320 # appended to by config.status. When coming back to configure, we
16321 # need to make the FD available again.
16322 if test "$no_create" != yes; then
16323 ac_cs_success=:
16324 ac_config_status_args=
16325 test "$silent" = yes &&
16326 ac_config_status_args="$ac_config_status_args --quiet"
16327 exec 5>/dev/null
16328 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
16329 exec 5>>config.log
16330 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
16331 # would make configure fail if this is the last instruction.
16332 $ac_cs_success || as_fn_exit 1
16334 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
16335 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
16336 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}