2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for sysstat 12.1.5.
6 # Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## -------------------- ##
12 ## M4sh Initialization. ##
13 ## -------------------- ##
15 # Be more Bourne compatible
16 DUALCASE=1; export DUALCASE # for MKS sh
17 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
21 # is contrary to our usage. Disable this feature.
22 alias -g '${1+"$@"}'='"$@"'
25 case `(set -o) 2>/dev/null` in #(
37 # Printing a long string crashes Solaris 7 /usr/bin/printf.
38 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
39 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
40 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
41 # Prefer a ksh shell builtin over an external printf program on Solaris,
42 # but without wasting forks for bash or zsh.
43 if test -z "$BASH_VERSION$ZSH_VERSION" \
44 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
46 as_echo_n='print -rn --'
47 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
51 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
52 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
53 as_echo_n='/usr/ucb/echo -n'
55 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
60 expr "X$arg" : "X\\(.*\\)$as_nl";
61 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
63 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 as_echo_n='sh -c $as_echo_n_body as_echo'
69 as_echo='sh -c $as_echo_body as_echo'
72 # The user is always right.
73 if test "${PATH_SEPARATOR+set}" != set; then
75 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
76 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
83 # We need space, tab and new line, in precisely that order. Quoting is
84 # there to prevent editors from complaining about space-tab.
85 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
86 # splitting by setting IFS to empty value.)
89 # Find who we are. Look in the path if we contain no directory separator.
92 *[\\/]* ) as_myself=$0 ;;
93 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
97 test -z "$as_dir" && as_dir=.
98 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
109 if test ! -f "$as_myself"; then
110 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
114 # Unset variables that we do not need and which cause bugs (e.g. in
115 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
116 # suppresses any "Segmentation fault" message there. '((' could
117 # trigger a bug in pdksh 5.2.14.
118 for as_var in BASH_ENV ENV MAIL MAILPATH
119 do eval test x\${$as_var+set} = xset \
120 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
133 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
135 # Use a proper internal environment variable to ensure we don't fall
136 # into an infinite loop, continuously re-executing ourselves.
137 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
138 _as_can_reexec=no; export _as_can_reexec;
139 # We cannot yet assume a decent shell, so we have to provide a
140 # neutralization value for shells without unset; and this also
141 # works around shells that cannot unset nonexistent variables.
142 # Preserve -v and -x to the replacement shell.
145 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
147 *v*x* | *x*v* ) as_opts=-vx ;;
152 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
153 # Admittedly, this is quite paranoid, since all the known shells bail
154 # out after a failed `exec'.
155 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158 # We don't want this to propagate to other subprocesses.
159 { _as_can_reexec=; unset _as_can_reexec;}
160 if test "x$CONFIG_SHELL" = x; then
161 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
165 # is contrary to our usage. Disable this feature.
166 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 case \`(set -o) 2>/dev/null\` in #(
177 as_required="as_fn_return () { (exit \$1); }
178 as_fn_success () { as_fn_return 0; }
179 as_fn_failure () { as_fn_return 1; }
180 as_fn_ret_success () { return 0; }
181 as_fn_ret_failure () { return 1; }
184 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
185 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
186 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
187 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
188 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191 exitcode=1; echo positional parameters were not saved.
193 test x\$exitcode = x0 || exit 1
195 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
196 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
197 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
198 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
199 test \$(( 1 + 1 )) = 2 || exit 1"
200 if (eval "$as_required") 2>/dev/null; then :
205 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
210 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213 test -z "$as_dir" && as_dir=.
217 for as_base in sh bash ksh sh5; do
218 # Try only shells that exist, to save several forks.
219 as_shell=$as_dir/$as_base
220 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
221 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
222 CONFIG_SHELL=$as_shell as_have_required=yes
223 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
231 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
232 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
233 CONFIG_SHELL=$SHELL as_have_required=yes
238 if test "x$CONFIG_SHELL" != x; then :
240 # We cannot yet assume a decent shell, so we have to provide a
241 # neutralization value for shells without unset; and this also
242 # works around shells that cannot unset nonexistent variables.
243 # Preserve -v and -x to the replacement shell.
246 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
248 *v*x* | *x*v* ) as_opts=-vx ;;
253 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
254 # Admittedly, this is quite paranoid, since all the known shells bail
255 # out after a failed `exec'.
256 $as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
260 if test x$as_have_required = xno; then :
261 $as_echo "$0: This script requires a shell more modern than all"
262 $as_echo "$0: the shells that I found on your system."
263 if test x${ZSH_VERSION+set} = xset ; then
264 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
267 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
276 SHELL=${CONFIG_SHELL-/bin/sh}
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
287 # Portably unset VAR.
290 { eval $1=; unset $1;}
294 # as_fn_set_status STATUS
295 # -----------------------
296 # Set $? to STATUS, without forking.
304 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
314 # Create "$as_dir" as a directory, including parents if necessary.
319 -*) as_dir=./$as_dir;;
321 test -d "$as_dir" || eval $as_mkdir_p || {
325 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
328 as_dirs="'$as_qdir' $as_dirs"
329 as_dir=`$as_dirname -- "$as_dir" ||
330 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
331 X"$as_dir" : 'X\(//\)[^/]' \| \
332 X"$as_dir" : 'X\(//\)$' \| \
333 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
334 $as_echo X"$as_dir" |
335 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
352 test -d "$as_dir" && break
354 test -z "$as_dirs" || eval "mkdir $as_dirs"
355 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
360 # as_fn_executable_p FILE
361 # -----------------------
362 # Test if FILE is an executable regular file.
363 as_fn_executable_p ()
365 test -f "$1" && test -x "$1"
366 } # as_fn_executable_p
367 # as_fn_append VAR VALUE
368 # ----------------------
369 # Append the text in VALUE to the end of the definition contained in VAR. Take
370 # advantage of any shell optimizations that allow amortized linear growth over
371 # repeated appends, instead of the typical quadratic growth present in naive
373 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
374 eval 'as_fn_append ()
387 # Perform arithmetic evaluation on the ARGs, and store the result in the
388 # global $as_val. Take advantage of shells that can avoid forks. The arguments
389 # must be portable across $(()) and expr.
390 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
398 as_val=`expr "$@" || test $? -eq 1`
403 # as_fn_error STATUS ERROR [LINENO LOG_FD]
404 # ----------------------------------------
405 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
406 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
407 # script with STATUS, using 1 if that was 0.
410 as_status=$1; test $as_status -eq 0 && as_status=1
412 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
413 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
415 $as_echo "$as_me: error: $2" >&2
416 as_fn_exit $as_status
419 if expr a : '\(a\)' >/dev/null 2>&1 &&
420 test "X`expr 00001 : '.*\(...\)'`" = X001; then
426 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
432 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
438 as_me=`$as_basename -- "$0" ||
439 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
440 X"$0" : 'X\(//\)$' \| \
441 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
443 sed '/^.*\/\([^/][^/]*\)\/*$/{
457 # Avoid depending upon Character Ranges.
458 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
459 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
460 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
461 as_cr_digits='0123456789'
462 as_cr_alnum=$as_cr_Letters$as_cr_digits
465 as_lineno_1=$LINENO as_lineno_1a=$LINENO
466 as_lineno_2=$LINENO as_lineno_2a=$LINENO
467 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
468 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
469 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
481 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485 chmod +x "$as_me.lineno" ||
486 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
488 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
489 # already done that, so ensure we don't try to do so again and fall
490 # in an infinite loop. This has already happened in practice.
491 _as_can_reexec=no; export _as_can_reexec
492 # Don't try to exec as it changes $[0], causing all sort of problems
493 # (the dirname of $[0] is not the place where we might find the
494 # original and so on. Autoconf is especially sensitive to this).
496 # Exit status is that of the last command.
500 ECHO_C= ECHO_N= ECHO_T=
501 case `echo -n x` in #(((((
503 case `echo 'xy\c'` in
504 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
506 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
513 rm -f conf$$ conf$$.exe conf$$.file
514 if test -d conf$$.dir; then
515 rm -f conf$$.dir/conf$$.file
518 mkdir conf$$.dir 2>/dev/null
520 if (echo >conf$$.file) 2>/dev/null; then
521 if ln -s conf$$.file conf$$ 2>/dev/null; then
523 # ... but there are two gotchas:
524 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
525 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
526 # In both cases, we have to default to `cp -pR'.
527 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
529 elif ln conf$$.file conf$$ 2>/dev/null; then
537 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
538 rmdir conf$$.dir 2>/dev/null
540 if mkdir -p . 2>/dev/null; then
541 as_mkdir_p='mkdir -p "$as_dir"'
543 test -d ./-p && rmdir ./-p
548 as_executable_p=as_fn_executable_p
550 # Sed expression to map a string onto a valid CPP name.
551 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
553 # Sed expression to map a string onto a valid variable name.
554 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
557 test -n "$DJDIR" || exec 7<&0 </dev/null
561 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
562 # so uname gets run too.
563 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
568 ac_default_prefix=/usr/local
570 ac_config_libobj_dir=.
577 # Identity of this package.
578 PACKAGE_NAME='sysstat'
579 PACKAGE_TARNAME='sysstat'
580 PACKAGE_VERSION='12.1.5'
581 PACKAGE_STRING='sysstat 12.1.5'
585 ac_unique_file="ioconf.h"
586 # Factoring default headers for most tests.
587 ac_includes_default="\
589 #ifdef HAVE_SYS_TYPES_H
590 # include <sys/types.h>
592 #ifdef HAVE_SYS_STAT_H
593 # include <sys/stat.h>
599 # ifdef HAVE_STDLIB_H
604 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
609 #ifdef HAVE_STRINGS_H
610 # include <strings.h>
612 #ifdef HAVE_INTTYPES_H
613 # include <inttypes.h>
622 ac_subst_vars='LTLIBOBJS
644 IGNORE_FILE_ATTRIBUTES
725 program_transform_name
738 enable_option_checking
739 with_systemdsystemunitdir
745 enable_compress_manpg
754 ac_precious_vars='build_alias
775 # Initialize some variables set by options.
777 ac_init_version=false
778 ac_unrecognized_opts=
780 # The variables have the same names as the options, with
781 # dashes changed to underlines.
789 program_transform_name=s,x,x,
797 # Installation directory options.
798 # These are left unexpanded so users can "make install exec_prefix=/foo"
799 # and all the variables that are supposed to be based on exec_prefix
800 # by default will actually change.
801 # Use braces instead of parens because sh, perl, etc. also accept them.
802 # (The list follows the same order as the GNU Coding Standards.)
803 bindir='${exec_prefix}/bin'
804 sbindir='${exec_prefix}/sbin'
805 libexecdir='${exec_prefix}/libexec'
806 datarootdir='${prefix}/share'
807 datadir='${datarootdir}'
808 sysconfdir='${prefix}/etc'
809 sharedstatedir='${prefix}/com'
810 localstatedir='${prefix}/var'
811 includedir='${prefix}/include'
812 oldincludedir='/usr/include'
813 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
814 infodir='${datarootdir}/info'
819 libdir='${exec_prefix}/lib'
820 localedir='${datarootdir}/locale'
821 mandir='${datarootdir}/man'
827 # If the previous option needs an argument, assign it.
828 if test -n "$ac_prev"; then
829 eval $ac_prev=\$ac_option
835 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
840 # Accept the important Cygnus configure options, so we can diagnose typos.
842 case $ac_dashdash$ac_option in
846 -bindir | --bindir | --bindi | --bind | --bin | --bi)
848 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
851 -build | --build | --buil | --bui | --bu)
852 ac_prev=build_alias ;;
853 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
854 build_alias=$ac_optarg ;;
856 -cache-file | --cache-file | --cache-fil | --cache-fi \
857 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
858 ac_prev=cache_file ;;
859 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
860 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
861 cache_file=$ac_optarg ;;
864 cache_file=config.cache ;;
866 -datadir | --datadir | --datadi | --datad)
868 -datadir=* | --datadir=* | --datadi=* | --datad=*)
869 datadir=$ac_optarg ;;
871 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
872 | --dataroo | --dataro | --datar)
873 ac_prev=datarootdir ;;
874 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
875 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
876 datarootdir=$ac_optarg ;;
878 -disable-* | --disable-*)
879 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
880 # Reject names that are not valid shell variable names.
881 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
882 as_fn_error $? "invalid feature name: $ac_useropt"
883 ac_useropt_orig=$ac_useropt
884 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
885 case $ac_user_opts in
889 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
890 ac_unrecognized_sep=', ';;
892 eval enable_$ac_useropt=no ;;
894 -docdir | --docdir | --docdi | --doc | --do)
896 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
899 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
901 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
904 -enable-* | --enable-*)
905 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
906 # Reject names that are not valid shell variable names.
907 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
908 as_fn_error $? "invalid feature name: $ac_useropt"
909 ac_useropt_orig=$ac_useropt
910 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
911 case $ac_user_opts in
915 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
916 ac_unrecognized_sep=', ';;
918 eval enable_$ac_useropt=\$ac_optarg ;;
920 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
921 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
922 | --exec | --exe | --ex)
923 ac_prev=exec_prefix ;;
924 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
925 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
926 | --exec=* | --exe=* | --ex=*)
927 exec_prefix=$ac_optarg ;;
929 -gas | --gas | --ga | --g)
930 # Obsolete; use --with-gas.
933 -help | --help | --hel | --he | -h)
935 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
936 ac_init_help=recursive ;;
937 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
938 ac_init_help=short ;;
940 -host | --host | --hos | --ho)
941 ac_prev=host_alias ;;
942 -host=* | --host=* | --hos=* | --ho=*)
943 host_alias=$ac_optarg ;;
945 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
947 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
949 htmldir=$ac_optarg ;;
951 -includedir | --includedir | --includedi | --included | --include \
952 | --includ | --inclu | --incl | --inc)
953 ac_prev=includedir ;;
954 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
955 | --includ=* | --inclu=* | --incl=* | --inc=*)
956 includedir=$ac_optarg ;;
958 -infodir | --infodir | --infodi | --infod | --info | --inf)
960 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
961 infodir=$ac_optarg ;;
963 -libdir | --libdir | --libdi | --libd)
965 -libdir=* | --libdir=* | --libdi=* | --libd=*)
968 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
969 | --libexe | --libex | --libe)
970 ac_prev=libexecdir ;;
971 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
972 | --libexe=* | --libex=* | --libe=*)
973 libexecdir=$ac_optarg ;;
975 -localedir | --localedir | --localedi | --localed | --locale)
977 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
978 localedir=$ac_optarg ;;
980 -localstatedir | --localstatedir | --localstatedi | --localstated \
981 | --localstate | --localstat | --localsta | --localst | --locals)
982 ac_prev=localstatedir ;;
983 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
984 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
985 localstatedir=$ac_optarg ;;
987 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
989 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
993 # Obsolete; use --without-fp.
996 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
997 | --no-cr | --no-c | -n)
1000 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1001 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1004 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1005 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1006 | --oldin | --oldi | --old | --ol | --o)
1007 ac_prev=oldincludedir ;;
1008 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1009 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1010 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1011 oldincludedir=$ac_optarg ;;
1013 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1015 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1016 prefix=$ac_optarg ;;
1018 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1019 | --program-pre | --program-pr | --program-p)
1020 ac_prev=program_prefix ;;
1021 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1022 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1023 program_prefix=$ac_optarg ;;
1025 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1026 | --program-suf | --program-su | --program-s)
1027 ac_prev=program_suffix ;;
1028 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1029 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1030 program_suffix=$ac_optarg ;;
1032 -program-transform-name | --program-transform-name \
1033 | --program-transform-nam | --program-transform-na \
1034 | --program-transform-n | --program-transform- \
1035 | --program-transform | --program-transfor \
1036 | --program-transfo | --program-transf \
1037 | --program-trans | --program-tran \
1038 | --progr-tra | --program-tr | --program-t)
1039 ac_prev=program_transform_name ;;
1040 -program-transform-name=* | --program-transform-name=* \
1041 | --program-transform-nam=* | --program-transform-na=* \
1042 | --program-transform-n=* | --program-transform-=* \
1043 | --program-transform=* | --program-transfor=* \
1044 | --program-transfo=* | --program-transf=* \
1045 | --program-trans=* | --program-tran=* \
1046 | --progr-tra=* | --program-tr=* | --program-t=*)
1047 program_transform_name=$ac_optarg ;;
1049 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1051 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1052 pdfdir=$ac_optarg ;;
1054 -psdir | --psdir | --psdi | --psd | --ps)
1056 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1059 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1060 | -silent | --silent | --silen | --sile | --sil)
1063 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1065 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1067 sbindir=$ac_optarg ;;
1069 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1070 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1071 | --sharedst | --shareds | --shared | --share | --shar \
1073 ac_prev=sharedstatedir ;;
1074 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1075 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1076 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1078 sharedstatedir=$ac_optarg ;;
1080 -site | --site | --sit)
1082 -site=* | --site=* | --sit=*)
1085 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1087 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1088 srcdir=$ac_optarg ;;
1090 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1091 | --syscon | --sysco | --sysc | --sys | --sy)
1092 ac_prev=sysconfdir ;;
1093 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1094 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1095 sysconfdir=$ac_optarg ;;
1097 -target | --target | --targe | --targ | --tar | --ta | --t)
1098 ac_prev=target_alias ;;
1099 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1100 target_alias=$ac_optarg ;;
1102 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1105 -version | --version | --versio | --versi | --vers | -V)
1106 ac_init_version=: ;;
1109 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1110 # Reject names that are not valid shell variable names.
1111 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1112 as_fn_error $? "invalid package name: $ac_useropt"
1113 ac_useropt_orig=$ac_useropt
1114 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1115 case $ac_user_opts in
1119 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1120 ac_unrecognized_sep=', ';;
1122 eval with_$ac_useropt=\$ac_optarg ;;
1124 -without-* | --without-*)
1125 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1126 # Reject names that are not valid shell variable names.
1127 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1128 as_fn_error $? "invalid package name: $ac_useropt"
1129 ac_useropt_orig=$ac_useropt
1130 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1131 case $ac_user_opts in
1135 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1136 ac_unrecognized_sep=', ';;
1138 eval with_$ac_useropt=no ;;
1141 # Obsolete; use --with-x.
1144 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1145 | --x-incl | --x-inc | --x-in | --x-i)
1146 ac_prev=x_includes ;;
1147 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1148 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1149 x_includes=$ac_optarg ;;
1151 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1152 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1153 ac_prev=x_libraries ;;
1154 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1155 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1156 x_libraries=$ac_optarg ;;
1158 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1159 Try \`$0 --help' for more information"
1163 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1164 # Reject names that are not valid shell variable names.
1165 case $ac_envvar in #(
1166 '' | [0-9]* | *[!_$as_cr_alnum]* )
1167 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1169 eval $ac_envvar=\$ac_optarg
1170 export $ac_envvar ;;
1173 # FIXME: should be removed in autoconf 3.0.
1174 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1175 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1176 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1177 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1183 if test -n "$ac_prev"; then
1184 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1185 as_fn_error $? "missing argument to $ac_option"
1188 if test -n "$ac_unrecognized_opts"; then
1189 case $enable_option_checking in
1191 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1192 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1196 # Check all directory arguments for consistency.
1197 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1198 datadir sysconfdir sharedstatedir localstatedir includedir \
1199 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1200 libdir localedir mandir
1202 eval ac_val=\$$ac_var
1203 # Remove trailing slashes.
1206 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1207 eval $ac_var=\$ac_val;;
1209 # Be sure to have absolute directory names.
1211 [\\/$]* | ?:[\\/]* ) continue;;
1212 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1214 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1217 # There might be people who depend on the old broken behavior: `$host'
1218 # used to hold the argument of --host etc.
1219 # FIXME: To remove some day.
1222 target=$target_alias
1224 # FIXME: To remove some day.
1225 if test "x$host_alias" != x; then
1226 if test "x$build_alias" = x; then
1227 cross_compiling=maybe
1228 elif test "x$build_alias" != "x$host_alias"; then
1234 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1236 test "$silent" = yes && exec 6>/dev/null
1239 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1240 ac_ls_di=`ls -di .` &&
1241 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1242 as_fn_error $? "working directory cannot be determined"
1243 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1244 as_fn_error $? "pwd does not report name of working directory"
1247 # Find the source files, if location was not specified.
1248 if test -z "$srcdir"; then
1249 ac_srcdir_defaulted=yes
1250 # Try the directory containing this script, then the parent directory.
1251 ac_confdir=`$as_dirname -- "$as_myself" ||
1252 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1253 X"$as_myself" : 'X\(//\)[^/]' \| \
1254 X"$as_myself" : 'X\(//\)$' \| \
1255 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1256 $as_echo X"$as_myself" |
1257 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1275 if test ! -r "$srcdir/$ac_unique_file"; then
1279 ac_srcdir_defaulted=no
1281 if test ! -r "$srcdir/$ac_unique_file"; then
1282 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1283 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1285 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1287 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1289 # When building in place, set srcdir=.
1290 if test "$ac_abs_confdir" = "$ac_pwd"; then
1293 # Remove unnecessary trailing slashes from srcdir.
1294 # Double slashes in file names in object file debugging info
1295 # mess up M-x gdb in Emacs.
1297 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1299 for ac_var in $ac_precious_vars; do
1300 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1301 eval ac_env_${ac_var}_value=\$${ac_var}
1302 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1303 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1307 # Report the --help message.
1309 if test "$ac_init_help" = "long"; then
1310 # Omit some internal or obsolete options to make the list less imposing.
1311 # This message is too long to be a string in the A/UX 3.1 sh.
1313 \`configure' configures sysstat 12.1.5 to adapt to many kinds of systems.
1315 Usage: $0 [OPTION]... [VAR=VALUE]...
1317 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1318 VAR=VALUE. See below for descriptions of some of the useful variables.
1320 Defaults for the options are specified in brackets.
1323 -h, --help display this help and exit
1324 --help=short display options specific to this package
1325 --help=recursive display the short help of all the included packages
1326 -V, --version display version information and exit
1327 -q, --quiet, --silent do not print \`checking ...' messages
1328 --cache-file=FILE cache test results in FILE [disabled]
1329 -C, --config-cache alias for \`--cache-file=config.cache'
1330 -n, --no-create do not create output files
1331 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1333 Installation directories:
1334 --prefix=PREFIX install architecture-independent files in PREFIX
1335 [$ac_default_prefix]
1336 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1339 By default, \`make install' will install all the files in
1340 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1341 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1342 for instance \`--prefix=\$HOME'.
1344 For better control, use the options below.
1346 Fine tuning of the installation directories:
1347 --bindir=DIR user executables [EPREFIX/bin]
1348 --sbindir=DIR system admin executables [EPREFIX/sbin]
1349 --libexecdir=DIR program executables [EPREFIX/libexec]
1350 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1351 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1352 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1353 --libdir=DIR object code libraries [EPREFIX/lib]
1354 --includedir=DIR C header files [PREFIX/include]
1355 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1356 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1357 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1358 --infodir=DIR info documentation [DATAROOTDIR/info]
1359 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1360 --mandir=DIR man documentation [DATAROOTDIR/man]
1361 --docdir=DIR documentation root [DATAROOTDIR/doc/sysstat]
1362 --htmldir=DIR html documentation [DOCDIR]
1363 --dvidir=DIR dvi documentation [DOCDIR]
1364 --pdfdir=DIR pdf documentation [DOCDIR]
1365 --psdir=DIR ps documentation [DOCDIR]
1372 if test -n "$ac_init_help"; then
1373 case $ac_init_help in
1374 short | recursive ) echo "Configuration of sysstat 12.1.5:";;
1379 --disable-option-checking ignore unrecognized --enable/--with options
1380 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1381 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1382 --disable-sensors disable sensors support
1383 --disable-pcp disable PCP support
1384 --disable-largefile omit support for large files
1385 --disable-nls disable National Language Support
1386 --disable-file-attr do not set attributes on files being installed
1387 --enable-compress-manpg compress sysstat manual pages
1388 --enable-clean-sa-dir clean system activity directory
1389 --enable-install-cron install a crontab to start sar
1390 --enable-collect-all collect all possible activities
1391 --enable-copy-only only copy files when installing
1392 --disable-documentation do not install documentation
1393 --enable-debuginfo enable debug output (--debuginfo option)
1394 --disable-stripping do not strip object files
1397 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1398 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1399 --with-systemdsystemunitdir=DIR
1400 Directory for systemd service files
1402 Some influential environment variables:
1403 CC C compiler command
1404 CFLAGS C compiler flags
1405 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1406 nonstandard directory <lib dir>
1407 LIBS libraries to pass to the linker, e.g. -l<library>
1408 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1409 you have headers in a nonstandard directory <include dir>
1411 rcdir run-commands directory
1412 sa_lib_dir sadc directory
1413 sa_dir system activity directory
1414 conf_dir sysstat configuration directory
1415 history number of daily data files to keep (default value is 7)
1417 number of days after which data files are compressed (default
1419 man_group group for manual pages
1420 cron_owner crontab owner
1424 options to be passed to sadc
1426 Use these variables to override the choices made by `configure' or to help
1427 it to find libraries and programs with nonstandard names/locations.
1429 Report bugs to the package provider.
1434 if test "$ac_init_help" = "recursive"; then
1435 # If there are subdirs, report their specific --help.
1436 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1437 test -d "$ac_dir" ||
1438 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1443 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1445 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1446 # A ".." for each directory in $ac_dir_suffix.
1447 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1448 case $ac_top_builddir_sub in
1449 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1450 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1453 ac_abs_top_builddir=$ac_pwd
1454 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1455 # for backward compatibility:
1456 ac_top_builddir=$ac_top_build_prefix
1459 .) # We are building in place.
1461 ac_top_srcdir=$ac_top_builddir_sub
1462 ac_abs_top_srcdir=$ac_pwd ;;
1463 [\\/]* | ?:[\\/]* ) # Absolute name.
1464 ac_srcdir=$srcdir$ac_dir_suffix;
1465 ac_top_srcdir=$srcdir
1466 ac_abs_top_srcdir=$srcdir ;;
1468 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1469 ac_top_srcdir=$ac_top_build_prefix$srcdir
1470 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1472 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1474 cd "$ac_dir" || { ac_status=$?; continue; }
1475 # Check for guested configure.
1476 if test -f "$ac_srcdir/configure.gnu"; then
1478 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1479 elif test -f "$ac_srcdir/configure"; then
1481 $SHELL "$ac_srcdir/configure" --help=recursive
1483 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1485 cd "$ac_pwd" || { ac_status=$?; break; }
1489 test -n "$ac_init_help" && exit $ac_status
1490 if $ac_init_version; then
1492 sysstat configure 12.1.5
1493 generated by GNU Autoconf 2.69
1495 Copyright (C) 2012 Free Software Foundation, Inc.
1496 This configure script is free software; the Free Software Foundation
1497 gives unlimited permission to copy, distribute and modify it.
1502 ## ------------------------ ##
1503 ## Autoconf initialization. ##
1504 ## ------------------------ ##
1506 # ac_fn_c_try_compile LINENO
1507 # --------------------------
1508 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1509 ac_fn_c_try_compile ()
1511 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1512 rm -f conftest.$ac_objext
1513 if { { ac_try="$ac_compile"
1515 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1516 *) ac_try_echo=$ac_try;;
1518 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1519 $as_echo "$ac_try_echo"; } >&5
1520 (eval "$ac_compile") 2>conftest.err
1522 if test -s conftest.err; then
1523 grep -v '^ *+' conftest.err >conftest.er1
1524 cat conftest.er1 >&5
1525 mv -f conftest.er1 conftest.err
1527 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1528 test $ac_status = 0; } && {
1529 test -z "$ac_c_werror_flag" ||
1530 test ! -s conftest.err
1531 } && test -s conftest.$ac_objext; then :
1534 $as_echo "$as_me: failed program was:" >&5
1535 sed 's/^/| /' conftest.$ac_ext >&5
1539 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1540 as_fn_set_status $ac_retval
1542 } # ac_fn_c_try_compile
1544 # ac_fn_c_try_cpp LINENO
1545 # ----------------------
1546 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1549 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1550 if { { ac_try="$ac_cpp conftest.$ac_ext"
1552 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1553 *) ac_try_echo=$ac_try;;
1555 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1556 $as_echo "$ac_try_echo"; } >&5
1557 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1559 if test -s conftest.err; then
1560 grep -v '^ *+' conftest.err >conftest.er1
1561 cat conftest.er1 >&5
1562 mv -f conftest.er1 conftest.err
1564 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1565 test $ac_status = 0; } > conftest.i && {
1566 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1567 test ! -s conftest.err
1571 $as_echo "$as_me: failed program was:" >&5
1572 sed 's/^/| /' conftest.$ac_ext >&5
1576 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1577 as_fn_set_status $ac_retval
1581 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1582 # -------------------------------------------------------
1583 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1584 # the include files in INCLUDES and setting the cache variable VAR
1586 ac_fn_c_check_header_mongrel ()
1588 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1589 if eval \${$3+:} false; then :
1590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1591 $as_echo_n "checking for $2... " >&6; }
1592 if eval \${$3+:} false; then :
1593 $as_echo_n "(cached) " >&6
1596 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1597 $as_echo "$ac_res" >&6; }
1599 # Is the header compilable?
1600 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1601 $as_echo_n "checking $2 usability... " >&6; }
1602 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1603 /* end confdefs.h. */
1607 if ac_fn_c_try_compile "$LINENO"; then :
1608 ac_header_compiler=yes
1610 ac_header_compiler=no
1612 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1613 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1614 $as_echo "$ac_header_compiler" >&6; }
1616 # Is the header present?
1617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1618 $as_echo_n "checking $2 presence... " >&6; }
1619 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1620 /* end confdefs.h. */
1623 if ac_fn_c_try_cpp "$LINENO"; then :
1624 ac_header_preproc=yes
1626 ac_header_preproc=no
1628 rm -f conftest.err conftest.i conftest.$ac_ext
1629 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1630 $as_echo "$ac_header_preproc" >&6; }
1632 # So? What about this header?
1633 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1635 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1636 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1637 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1638 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1641 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1642 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1643 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1644 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1646 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1647 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1648 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1649 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1650 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1654 $as_echo_n "checking for $2... " >&6; }
1655 if eval \${$3+:} false; then :
1656 $as_echo_n "(cached) " >&6
1658 eval "$3=\$ac_header_compiler"
1661 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1662 $as_echo "$ac_res" >&6; }
1664 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1666 } # ac_fn_c_check_header_mongrel
1668 # ac_fn_c_try_run LINENO
1669 # ----------------------
1670 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1671 # that executables *can* be run.
1674 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1675 if { { ac_try="$ac_link"
1677 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1678 *) ac_try_echo=$ac_try;;
1680 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1681 $as_echo "$ac_try_echo"; } >&5
1682 (eval "$ac_link") 2>&5
1684 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1685 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1686 { { case "(($ac_try" in
1687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1688 *) ac_try_echo=$ac_try;;
1690 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1691 $as_echo "$ac_try_echo"; } >&5
1692 (eval "$ac_try") 2>&5
1694 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1695 test $ac_status = 0; }; }; then :
1698 $as_echo "$as_me: program exited with status $ac_status" >&5
1699 $as_echo "$as_me: failed program was:" >&5
1700 sed 's/^/| /' conftest.$ac_ext >&5
1702 ac_retval=$ac_status
1704 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1705 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1706 as_fn_set_status $ac_retval
1710 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1711 # -------------------------------------------------------
1712 # Tests whether HEADER exists and can be compiled using the include files in
1713 # INCLUDES, setting the cache variable VAR accordingly.
1714 ac_fn_c_check_header_compile ()
1716 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1717 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1718 $as_echo_n "checking for $2... " >&6; }
1719 if eval \${$3+:} false; then :
1720 $as_echo_n "(cached) " >&6
1722 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1723 /* end confdefs.h. */
1727 if ac_fn_c_try_compile "$LINENO"; then :
1732 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1736 $as_echo "$ac_res" >&6; }
1737 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1739 } # ac_fn_c_check_header_compile
1741 # ac_fn_c_try_link LINENO
1742 # -----------------------
1743 # Try to link conftest.$ac_ext, and return whether this succeeded.
1746 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1747 rm -f conftest.$ac_objext conftest$ac_exeext
1748 if { { ac_try="$ac_link"
1750 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1751 *) ac_try_echo=$ac_try;;
1753 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1754 $as_echo "$ac_try_echo"; } >&5
1755 (eval "$ac_link") 2>conftest.err
1757 if test -s conftest.err; then
1758 grep -v '^ *+' conftest.err >conftest.er1
1759 cat conftest.er1 >&5
1760 mv -f conftest.er1 conftest.err
1762 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1763 test $ac_status = 0; } && {
1764 test -z "$ac_c_werror_flag" ||
1765 test ! -s conftest.err
1766 } && test -s conftest$ac_exeext && {
1767 test "$cross_compiling" = yes ||
1768 test -x conftest$ac_exeext
1772 $as_echo "$as_me: failed program was:" >&5
1773 sed 's/^/| /' conftest.$ac_ext >&5
1777 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1778 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1779 # interfere with the next link command; also delete a directory that is
1780 # left behind by Apple's compiler. We do this before executing the actions.
1781 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1782 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1783 as_fn_set_status $ac_retval
1785 } # ac_fn_c_try_link
1787 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1788 # -------------------------------------------
1789 # Tests whether TYPE exists after having included INCLUDES, setting cache
1790 # variable VAR accordingly.
1791 ac_fn_c_check_type ()
1793 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1794 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1795 $as_echo_n "checking for $2... " >&6; }
1796 if eval \${$3+:} false; then :
1797 $as_echo_n "(cached) " >&6
1800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1801 /* end confdefs.h. */
1812 if ac_fn_c_try_compile "$LINENO"; then :
1813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1814 /* end confdefs.h. */
1825 if ac_fn_c_try_compile "$LINENO"; then :
1830 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1836 $as_echo "$ac_res" >&6; }
1837 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1839 } # ac_fn_c_check_type
1841 # ac_fn_c_check_func LINENO FUNC VAR
1842 # ----------------------------------
1843 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1844 ac_fn_c_check_func ()
1846 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1848 $as_echo_n "checking for $2... " >&6; }
1849 if eval \${$3+:} false; then :
1850 $as_echo_n "(cached) " >&6
1852 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1853 /* end confdefs.h. */
1854 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1855 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1856 #define $2 innocuous_$2
1858 /* System header to define __stub macros and hopefully few prototypes,
1859 which can conflict with char $2 (); below.
1860 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1861 <limits.h> exists even on freestanding compilers. */
1864 # include <limits.h>
1866 # include <assert.h>
1871 /* Override any GCC internal prototype to avoid an error.
1872 Use char because int might match the return type of a GCC
1873 builtin and then its argument prototype would still apply. */
1878 /* The GNU C library defines this for functions which it implements
1879 to always fail with ENOSYS. Some functions are actually named
1880 something starting with __ and the normal name is an alias. */
1881 #if defined __stub_$2 || defined __stub___$2
1893 if ac_fn_c_try_link "$LINENO"; then :
1898 rm -f core conftest.err conftest.$ac_objext \
1899 conftest$ac_exeext conftest.$ac_ext
1902 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1903 $as_echo "$ac_res" >&6; }
1904 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1906 } # ac_fn_c_check_func
1907 cat >config.log <<_ACEOF
1908 This file contains any messages produced by compilers while
1909 running configure, to aid debugging if configure makes a mistake.
1911 It was created by sysstat $as_me 12.1.5, which was
1912 generated by GNU Autoconf 2.69. Invocation command line was
1924 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1925 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1926 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1927 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1928 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1930 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1931 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1933 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1934 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1935 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1936 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1937 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1938 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1939 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1943 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1947 test -z "$as_dir" && as_dir=.
1948 $as_echo "PATH: $as_dir"
1964 # Keep a trace of the command line.
1965 # Strip out --no-create and --no-recursion so they do not pile up.
1966 # Strip out --silent because we don't want to record it for future runs.
1967 # Also quote any args containing shell meta-characters.
1968 # Make two passes to allow for proper duplicate-argument suppression.
1972 ac_must_keep_next=false
1978 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1979 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1980 | -silent | --silent | --silen | --sile | --sil)
1983 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1986 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1988 as_fn_append ac_configure_args1 " '$ac_arg'"
1989 if test $ac_must_keep_next = true; then
1990 ac_must_keep_next=false # Got value, back to normal.
1993 *=* | --config-cache | -C | -disable-* | --disable-* \
1994 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1995 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1996 | -with-* | --with-* | -without-* | --without-* | --x)
1997 case "$ac_configure_args0 " in
1998 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2001 -* ) ac_must_keep_next=true ;;
2004 as_fn_append ac_configure_args " '$ac_arg'"
2009 { ac_configure_args0=; unset ac_configure_args0;}
2010 { ac_configure_args1=; unset ac_configure_args1;}
2012 # When interrupted or exit'd, cleanup temporary files, and complete
2013 # config.log. We remove comments because anyway the quotes in there
2014 # would cause problems or look ugly.
2015 # WARNING: Use '\'' to represent an apostrophe within the trap.
2016 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2017 trap 'exit_status=$?
2018 # Save into config.log some information that might help in debugging.
2022 $as_echo "## ---------------- ##
2023 ## Cache variables. ##
2024 ## ---------------- ##"
2026 # The following way of writing the cache mishandles newlines in values,
2028 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2029 eval ac_val=\$$ac_var
2033 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2034 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2037 _ | IFS | as_nl) ;; #(
2038 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2039 *) { eval $ac_var=; unset $ac_var;} ;;
2044 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2045 *${as_nl}ac_space=\ *)
2047 "s/'\''/'\''\\\\'\'''\''/g;
2048 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2051 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2058 $as_echo "## ----------------- ##
2059 ## Output variables. ##
2060 ## ----------------- ##"
2062 for ac_var in $ac_subst_vars
2064 eval ac_val=\$$ac_var
2066 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2068 $as_echo "$ac_var='\''$ac_val'\''"
2072 if test -n "$ac_subst_files"; then
2073 $as_echo "## ------------------- ##
2074 ## File substitutions. ##
2075 ## ------------------- ##"
2077 for ac_var in $ac_subst_files
2079 eval ac_val=\$$ac_var
2081 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2083 $as_echo "$ac_var='\''$ac_val'\''"
2088 if test -s confdefs.h; then
2089 $as_echo "## ----------- ##
2096 test "$ac_signal" != 0 &&
2097 $as_echo "$as_me: caught signal $ac_signal"
2098 $as_echo "$as_me: exit $exit_status"
2100 rm -f core *.core core.conftest.* &&
2101 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2104 for ac_signal in 1 2 13 15; do
2105 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2109 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2110 rm -f -r conftest* confdefs.h
2112 $as_echo "/* confdefs.h */" > confdefs.h
2114 # Predefined preprocessor variables.
2116 cat >>confdefs.h <<_ACEOF
2117 #define PACKAGE_NAME "$PACKAGE_NAME"
2120 cat >>confdefs.h <<_ACEOF
2121 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2124 cat >>confdefs.h <<_ACEOF
2125 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2128 cat >>confdefs.h <<_ACEOF
2129 #define PACKAGE_STRING "$PACKAGE_STRING"
2132 cat >>confdefs.h <<_ACEOF
2133 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2136 cat >>confdefs.h <<_ACEOF
2137 #define PACKAGE_URL "$PACKAGE_URL"
2141 # Let the site file select an alternate cache file if it wants to.
2142 # Prefer an explicitly selected file to automatically selected ones.
2145 if test -n "$CONFIG_SITE"; then
2146 # We do not want a PATH search for config.site.
2147 case $CONFIG_SITE in #((
2148 -*) ac_site_file1=./$CONFIG_SITE;;
2149 */*) ac_site_file1=$CONFIG_SITE;;
2150 *) ac_site_file1=./$CONFIG_SITE;;
2152 elif test "x$prefix" != xNONE; then
2153 ac_site_file1=$prefix/share/config.site
2154 ac_site_file2=$prefix/etc/config.site
2156 ac_site_file1=$ac_default_prefix/share/config.site
2157 ac_site_file2=$ac_default_prefix/etc/config.site
2159 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2161 test "x$ac_site_file" = xNONE && continue
2162 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2163 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2164 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2165 sed 's/^/| /' "$ac_site_file" >&5
2167 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2168 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2169 as_fn_error $? "failed to load site script $ac_site_file
2170 See \`config.log' for more details" "$LINENO" 5; }
2174 if test -r "$cache_file"; then
2175 # Some versions of bash will fail to source /dev/null (special files
2176 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2177 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2178 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2179 $as_echo "$as_me: loading cache $cache_file" >&6;}
2181 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2182 *) . "./$cache_file";;
2186 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2187 $as_echo "$as_me: creating cache $cache_file" >&6;}
2191 # Check that the precious variables saved in the cache have kept the same
2193 ac_cache_corrupted=false
2194 for ac_var in $ac_precious_vars; do
2195 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2196 eval ac_new_set=\$ac_env_${ac_var}_set
2197 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2198 eval ac_new_val=\$ac_env_${ac_var}_value
2199 case $ac_old_set,$ac_new_set in
2201 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2202 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2203 ac_cache_corrupted=: ;;
2205 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2206 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2207 ac_cache_corrupted=: ;;
2210 if test "x$ac_old_val" != "x$ac_new_val"; then
2211 # differences in whitespace do not lead to failure.
2212 ac_old_val_w=`echo x $ac_old_val`
2213 ac_new_val_w=`echo x $ac_new_val`
2214 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2215 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2216 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2217 ac_cache_corrupted=:
2219 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2220 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2221 eval $ac_var=\$ac_old_val
2223 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2224 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2225 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2226 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2229 # Pass precious variables to config.status.
2230 if test "$ac_new_set" = set; then
2232 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2233 *) ac_arg=$ac_var=$ac_new_val ;;
2235 case " $ac_configure_args " in
2236 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2237 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2241 if $ac_cache_corrupted; then
2242 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2243 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2244 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2245 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2246 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2248 ## -------------------- ##
2249 ## Main body of script. ##
2250 ## -------------------- ##
2253 ac_cpp='$CPP $CPPFLAGS'
2254 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2255 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2256 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2260 # Ensure that a recent enough version of Autoconf is being used
2263 # Check whether the configure script is in the right dir
2268 echo Check programs:
2272 ac_cpp='$CPP $CPPFLAGS'
2273 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2274 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2275 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2276 if test -n "$ac_tool_prefix"; then
2277 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2278 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2279 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2280 $as_echo_n "checking for $ac_word... " >&6; }
2281 if ${ac_cv_prog_CC+:} false; then :
2282 $as_echo_n "(cached) " >&6
2284 if test -n "$CC"; then
2285 ac_cv_prog_CC="$CC" # Let the user override the test.
2287 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2291 test -z "$as_dir" && as_dir=.
2292 for ac_exec_ext in '' $ac_executable_extensions; do
2293 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2294 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2295 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2305 if test -n "$CC"; then
2306 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2307 $as_echo "$CC" >&6; }
2309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2310 $as_echo "no" >&6; }
2315 if test -z "$ac_cv_prog_CC"; then
2317 # Extract the first word of "gcc", so it can be a program name with args.
2318 set dummy gcc; ac_word=$2
2319 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2320 $as_echo_n "checking for $ac_word... " >&6; }
2321 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2322 $as_echo_n "(cached) " >&6
2324 if test -n "$ac_ct_CC"; then
2325 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2327 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2331 test -z "$as_dir" && as_dir=.
2332 for ac_exec_ext in '' $ac_executable_extensions; do
2333 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2334 ac_cv_prog_ac_ct_CC="gcc"
2335 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2344 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2345 if test -n "$ac_ct_CC"; then
2346 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2347 $as_echo "$ac_ct_CC" >&6; }
2349 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2350 $as_echo "no" >&6; }
2353 if test "x$ac_ct_CC" = x; then
2356 case $cross_compiling:$ac_tool_warned in
2358 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2359 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2360 ac_tool_warned=yes ;;
2368 if test -z "$CC"; then
2369 if test -n "$ac_tool_prefix"; then
2370 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2371 set dummy ${ac_tool_prefix}cc; ac_word=$2
2372 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2373 $as_echo_n "checking for $ac_word... " >&6; }
2374 if ${ac_cv_prog_CC+:} false; then :
2375 $as_echo_n "(cached) " >&6
2377 if test -n "$CC"; then
2378 ac_cv_prog_CC="$CC" # Let the user override the test.
2380 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2384 test -z "$as_dir" && as_dir=.
2385 for ac_exec_ext in '' $ac_executable_extensions; do
2386 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2387 ac_cv_prog_CC="${ac_tool_prefix}cc"
2388 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2398 if test -n "$CC"; then
2399 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2400 $as_echo "$CC" >&6; }
2402 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2403 $as_echo "no" >&6; }
2409 if test -z "$CC"; then
2410 # Extract the first word of "cc", so it can be a program name with args.
2411 set dummy cc; ac_word=$2
2412 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2413 $as_echo_n "checking for $ac_word... " >&6; }
2414 if ${ac_cv_prog_CC+:} false; then :
2415 $as_echo_n "(cached) " >&6
2417 if test -n "$CC"; then
2418 ac_cv_prog_CC="$CC" # Let the user override the test.
2421 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2425 test -z "$as_dir" && as_dir=.
2426 for ac_exec_ext in '' $ac_executable_extensions; do
2427 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2428 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2429 ac_prog_rejected=yes
2433 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2440 if test $ac_prog_rejected = yes; then
2441 # We found a bogon in the path, so make sure we never use it.
2442 set dummy $ac_cv_prog_CC
2444 if test $# != 0; then
2445 # We chose a different compiler from the bogus one.
2446 # However, it has the same basename, so the bogon will be chosen
2447 # first if we set CC to just the basename; use the full file name.
2449 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2455 if test -n "$CC"; then
2456 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2457 $as_echo "$CC" >&6; }
2459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2460 $as_echo "no" >&6; }
2465 if test -z "$CC"; then
2466 if test -n "$ac_tool_prefix"; then
2467 for ac_prog in cl.exe
2469 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2470 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2472 $as_echo_n "checking for $ac_word... " >&6; }
2473 if ${ac_cv_prog_CC+:} false; then :
2474 $as_echo_n "(cached) " >&6
2476 if test -n "$CC"; then
2477 ac_cv_prog_CC="$CC" # Let the user override the test.
2479 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2483 test -z "$as_dir" && as_dir=.
2484 for ac_exec_ext in '' $ac_executable_extensions; do
2485 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2486 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2487 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2497 if test -n "$CC"; then
2498 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2499 $as_echo "$CC" >&6; }
2501 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2502 $as_echo "no" >&6; }
2506 test -n "$CC" && break
2509 if test -z "$CC"; then
2511 for ac_prog in cl.exe
2513 # Extract the first word of "$ac_prog", so it can be a program name with args.
2514 set dummy $ac_prog; ac_word=$2
2515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2516 $as_echo_n "checking for $ac_word... " >&6; }
2517 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2518 $as_echo_n "(cached) " >&6
2520 if test -n "$ac_ct_CC"; then
2521 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2523 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2527 test -z "$as_dir" && as_dir=.
2528 for ac_exec_ext in '' $ac_executable_extensions; do
2529 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2530 ac_cv_prog_ac_ct_CC="$ac_prog"
2531 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2540 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2541 if test -n "$ac_ct_CC"; then
2542 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2543 $as_echo "$ac_ct_CC" >&6; }
2545 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2546 $as_echo "no" >&6; }
2550 test -n "$ac_ct_CC" && break
2553 if test "x$ac_ct_CC" = x; then
2556 case $cross_compiling:$ac_tool_warned in
2558 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2559 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2560 ac_tool_warned=yes ;;
2569 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2570 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2571 as_fn_error $? "no acceptable C compiler found in \$PATH
2572 See \`config.log' for more details" "$LINENO" 5; }
2574 # Provide some information about the compiler.
2575 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2578 for ac_option in --version -v -V -qversion; do
2579 { { ac_try="$ac_compiler $ac_option >&5"
2581 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2582 *) ac_try_echo=$ac_try;;
2584 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2585 $as_echo "$ac_try_echo"; } >&5
2586 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2588 if test -s conftest.err; then
2590 ... rest of stderr output deleted ...
2591 10q' conftest.err >conftest.er1
2592 cat conftest.er1 >&5
2594 rm -f conftest.er1 conftest.err
2595 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2596 test $ac_status = 0; }
2599 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2600 /* end confdefs.h. */
2610 ac_clean_files_save=$ac_clean_files
2611 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2612 # Try to create an executable without -o first, disregard a.out.
2613 # It will help us diagnose broken compilers, and finding out an intuition
2615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2616 $as_echo_n "checking whether the C compiler works... " >&6; }
2617 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2619 # The possible output files:
2620 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2623 for ac_file in $ac_files
2626 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2627 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2632 if { { ac_try="$ac_link_default"
2634 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2635 *) ac_try_echo=$ac_try;;
2637 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2638 $as_echo "$ac_try_echo"; } >&5
2639 (eval "$ac_link_default") 2>&5
2641 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2642 test $ac_status = 0; }; then :
2643 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2644 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2645 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2646 # so that the user can short-circuit this test for compilers unknown to
2648 for ac_file in $ac_files ''
2650 test -f "$ac_file" || continue
2652 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2655 # We found the default executable, but exeext='' is most
2659 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2661 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2663 # We set ac_cv_exeext here because the later test for it is not
2664 # safe: cross compilers may not add the suffix if given an `-o'
2665 # argument, so we may need to know it at that point already.
2666 # Even if this section looks crufty: it has the advantage of
2673 test "$ac_cv_exeext" = no && ac_cv_exeext=
2678 if test -z "$ac_file"; then :
2679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2680 $as_echo "no" >&6; }
2681 $as_echo "$as_me: failed program was:" >&5
2682 sed 's/^/| /' conftest.$ac_ext >&5
2684 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2685 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2686 as_fn_error 77 "C compiler cannot create executables
2687 See \`config.log' for more details" "$LINENO" 5; }
2689 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2690 $as_echo "yes" >&6; }
2692 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2693 $as_echo_n "checking for C compiler default output file name... " >&6; }
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2695 $as_echo "$ac_file" >&6; }
2696 ac_exeext=$ac_cv_exeext
2698 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2699 ac_clean_files=$ac_clean_files_save
2700 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2701 $as_echo_n "checking for suffix of executables... " >&6; }
2702 if { { ac_try="$ac_link"
2704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2705 *) ac_try_echo=$ac_try;;
2707 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2708 $as_echo "$ac_try_echo"; } >&5
2709 (eval "$ac_link") 2>&5
2711 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2712 test $ac_status = 0; }; then :
2713 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2714 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2715 # work properly (i.e., refer to `conftest.exe'), while it won't with
2717 for ac_file in conftest.exe conftest conftest.*; do
2718 test -f "$ac_file" || continue
2720 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2721 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2727 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2728 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2729 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2730 See \`config.log' for more details" "$LINENO" 5; }
2732 rm -f conftest conftest$ac_cv_exeext
2733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2734 $as_echo "$ac_cv_exeext" >&6; }
2736 rm -f conftest.$ac_ext
2737 EXEEXT=$ac_cv_exeext
2739 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2740 /* end confdefs.h. */
2745 FILE *f = fopen ("conftest.out", "w");
2746 return ferror (f) || fclose (f) != 0;
2752 ac_clean_files="$ac_clean_files conftest.out"
2753 # Check that the compiler produces executables we can run. If not, either
2754 # the compiler is broken, or we cross compile.
2755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2756 $as_echo_n "checking whether we are cross compiling... " >&6; }
2757 if test "$cross_compiling" != yes; then
2758 { { ac_try="$ac_link"
2760 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2761 *) ac_try_echo=$ac_try;;
2763 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2764 $as_echo "$ac_try_echo"; } >&5
2765 (eval "$ac_link") 2>&5
2767 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2768 test $ac_status = 0; }
2769 if { ac_try='./conftest$ac_cv_exeext'
2770 { { case "(($ac_try" in
2771 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2772 *) ac_try_echo=$ac_try;;
2774 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2775 $as_echo "$ac_try_echo"; } >&5
2776 (eval "$ac_try") 2>&5
2778 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2779 test $ac_status = 0; }; }; then
2782 if test "$cross_compiling" = maybe; then
2785 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2786 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2787 as_fn_error $? "cannot run C compiled programs.
2788 If you meant to cross compile, use \`--host'.
2789 See \`config.log' for more details" "$LINENO" 5; }
2793 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2794 $as_echo "$cross_compiling" >&6; }
2796 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2797 ac_clean_files=$ac_clean_files_save
2798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2799 $as_echo_n "checking for suffix of object files... " >&6; }
2800 if ${ac_cv_objext+:} false; then :
2801 $as_echo_n "(cached) " >&6
2803 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2804 /* end confdefs.h. */
2814 rm -f conftest.o conftest.obj
2815 if { { ac_try="$ac_compile"
2817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2818 *) ac_try_echo=$ac_try;;
2820 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2821 $as_echo "$ac_try_echo"; } >&5
2822 (eval "$ac_compile") 2>&5
2824 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2825 test $ac_status = 0; }; then :
2826 for ac_file in conftest.o conftest.obj conftest.*; do
2827 test -f "$ac_file" || continue;
2829 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2830 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2835 $as_echo "$as_me: failed program was:" >&5
2836 sed 's/^/| /' conftest.$ac_ext >&5
2838 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2839 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2840 as_fn_error $? "cannot compute suffix of object files: cannot compile
2841 See \`config.log' for more details" "$LINENO" 5; }
2843 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2846 $as_echo "$ac_cv_objext" >&6; }
2847 OBJEXT=$ac_cv_objext
2849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2850 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2851 if ${ac_cv_c_compiler_gnu+:} false; then :
2852 $as_echo_n "(cached) " >&6
2854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2855 /* end confdefs.h. */
2868 if ac_fn_c_try_compile "$LINENO"; then :
2873 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2874 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2878 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2879 if test $ac_compiler_gnu = yes; then
2884 ac_test_CFLAGS=${CFLAGS+set}
2885 ac_save_CFLAGS=$CFLAGS
2886 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2887 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2888 if ${ac_cv_prog_cc_g+:} false; then :
2889 $as_echo_n "(cached) " >&6
2891 ac_save_c_werror_flag=$ac_c_werror_flag
2892 ac_c_werror_flag=yes
2895 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2896 /* end confdefs.h. */
2906 if ac_fn_c_try_compile "$LINENO"; then :
2910 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2911 /* end confdefs.h. */
2921 if ac_fn_c_try_compile "$LINENO"; then :
2924 ac_c_werror_flag=$ac_save_c_werror_flag
2926 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2927 /* end confdefs.h. */
2937 if ac_fn_c_try_compile "$LINENO"; then :
2940 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2945 ac_c_werror_flag=$ac_save_c_werror_flag
2947 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2948 $as_echo "$ac_cv_prog_cc_g" >&6; }
2949 if test "$ac_test_CFLAGS" = set; then
2950 CFLAGS=$ac_save_CFLAGS
2951 elif test $ac_cv_prog_cc_g = yes; then
2952 if test "$GCC" = yes; then
2958 if test "$GCC" = yes; then
2964 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2965 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2966 if ${ac_cv_prog_cc_c89+:} false; then :
2967 $as_echo_n "(cached) " >&6
2969 ac_cv_prog_cc_c89=no
2971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2972 /* end confdefs.h. */
2976 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2977 struct buf { int x; };
2978 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2979 static char *e (p, i)
2985 static char *f (char * (*g) (char **, int), char **p, ...)
2990 s = g (p, va_arg (v,int));
2995 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2996 function prototypes and stuff, but not '\xHH' hex character constants.
2997 These don't provoke an error unfortunately, instead are silently treated
2998 as 'x'. The following induces an error, until -std is added to get
2999 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3000 array size at least. It's necessary to write '\x00'==0 to get something
3001 that's true only with -std. */
3002 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3004 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3005 inside strings and character constants. */
3007 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3009 int test (int i, double x);
3010 struct s1 {int (*f) (int a);};
3011 struct s2 {int (*f) (double a);};
3012 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3018 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3023 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3024 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3026 CC="$ac_save_CC $ac_arg"
3027 if ac_fn_c_try_compile "$LINENO"; then :
3028 ac_cv_prog_cc_c89=$ac_arg
3030 rm -f core conftest.err conftest.$ac_objext
3031 test "x$ac_cv_prog_cc_c89" != "xno" && break
3033 rm -f conftest.$ac_ext
3038 case "x$ac_cv_prog_cc_c89" in
3040 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3041 $as_echo "none needed" >&6; } ;;
3043 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3044 $as_echo "unsupported" >&6; } ;;
3046 CC="$CC $ac_cv_prog_cc_c89"
3047 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3048 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3050 if test "x$ac_cv_prog_cc_c89" != xno; then :
3055 ac_cpp='$CPP $CPPFLAGS'
3056 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3057 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3058 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3062 ac_cpp='$CPP $CPPFLAGS'
3063 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3064 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3065 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3066 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3067 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3068 # On Suns, sometimes $CPP names a directory.
3069 if test -n "$CPP" && test -d "$CPP"; then
3072 if test -z "$CPP"; then
3073 if ${ac_cv_prog_CPP+:} false; then :
3074 $as_echo_n "(cached) " >&6
3076 # Double quotes because CPP needs to be expanded
3077 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3080 for ac_c_preproc_warn_flag in '' yes
3082 # Use a header file that comes with gcc, so configuring glibc
3083 # with a fresh cross-compiler works.
3084 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3085 # <limits.h> exists even on freestanding compilers.
3086 # On the NeXT, cc -E runs the code through the compiler's parser,
3087 # not just through cpp. "Syntax error" is here to catch this case.
3088 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3089 /* end confdefs.h. */
3091 # include <limits.h>
3093 # include <assert.h>
3097 if ac_fn_c_try_cpp "$LINENO"; then :
3100 # Broken: fails on valid input.
3103 rm -f conftest.err conftest.i conftest.$ac_ext
3105 # OK, works on sane cases. Now check whether nonexistent headers
3106 # can be detected and how.
3107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3108 /* end confdefs.h. */
3109 #include <ac_nonexistent.h>
3111 if ac_fn_c_try_cpp "$LINENO"; then :
3112 # Broken: success on invalid input.
3115 # Passes both tests.
3119 rm -f conftest.err conftest.i conftest.$ac_ext
3122 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3123 rm -f conftest.i conftest.err conftest.$ac_ext
3124 if $ac_preproc_ok; then :
3136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3137 $as_echo "$CPP" >&6; }
3139 for ac_c_preproc_warn_flag in '' yes
3141 # Use a header file that comes with gcc, so configuring glibc
3142 # with a fresh cross-compiler works.
3143 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3144 # <limits.h> exists even on freestanding compilers.
3145 # On the NeXT, cc -E runs the code through the compiler's parser,
3146 # not just through cpp. "Syntax error" is here to catch this case.
3147 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3148 /* end confdefs.h. */
3150 # include <limits.h>
3152 # include <assert.h>
3156 if ac_fn_c_try_cpp "$LINENO"; then :
3159 # Broken: fails on valid input.
3162 rm -f conftest.err conftest.i conftest.$ac_ext
3164 # OK, works on sane cases. Now check whether nonexistent headers
3165 # can be detected and how.
3166 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3167 /* end confdefs.h. */
3168 #include <ac_nonexistent.h>
3170 if ac_fn_c_try_cpp "$LINENO"; then :
3171 # Broken: success on invalid input.
3174 # Passes both tests.
3178 rm -f conftest.err conftest.i conftest.$ac_ext
3181 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3182 rm -f conftest.i conftest.err conftest.$ac_ext
3183 if $ac_preproc_ok; then :
3186 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3187 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3188 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3189 See \`config.log' for more details" "$LINENO" 5; }
3193 ac_cpp='$CPP $CPPFLAGS'
3194 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3195 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3196 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3199 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3200 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3201 if ${ac_cv_path_GREP+:} false; then :
3202 $as_echo_n "(cached) " >&6
3204 if test -z "$GREP"; then
3205 ac_path_GREP_found=false
3206 # Loop through the user's path and test for each of PROGNAME-LIST
3207 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3208 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3211 test -z "$as_dir" && as_dir=.
3212 for ac_prog in grep ggrep; do
3213 for ac_exec_ext in '' $ac_executable_extensions; do
3214 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3215 as_fn_executable_p "$ac_path_GREP" || continue
3216 # Check for GNU ac_path_GREP and select it if it is found.
3217 # Check for GNU $ac_path_GREP
3218 case `"$ac_path_GREP" --version 2>&1` in
3220 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3223 $as_echo_n 0123456789 >"conftest.in"
3226 cat "conftest.in" "conftest.in" >"conftest.tmp"
3227 mv "conftest.tmp" "conftest.in"
3228 cp "conftest.in" "conftest.nl"
3229 $as_echo 'GREP' >> "conftest.nl"
3230 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3231 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3232 as_fn_arith $ac_count + 1 && ac_count=$as_val
3233 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3234 # Best one so far, save it but keep looking for a better one
3235 ac_cv_path_GREP="$ac_path_GREP"
3236 ac_path_GREP_max=$ac_count
3238 # 10*(2^10) chars as input seems more than enough
3239 test $ac_count -gt 10 && break
3241 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3244 $ac_path_GREP_found && break 3
3249 if test -z "$ac_cv_path_GREP"; then
3250 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3253 ac_cv_path_GREP=$GREP
3257 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3258 $as_echo "$ac_cv_path_GREP" >&6; }
3259 GREP="$ac_cv_path_GREP"
3262 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3263 $as_echo_n "checking for egrep... " >&6; }
3264 if ${ac_cv_path_EGREP+:} false; then :
3265 $as_echo_n "(cached) " >&6
3267 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3268 then ac_cv_path_EGREP="$GREP -E"
3270 if test -z "$EGREP"; then
3271 ac_path_EGREP_found=false
3272 # Loop through the user's path and test for each of PROGNAME-LIST
3273 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3274 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3277 test -z "$as_dir" && as_dir=.
3278 for ac_prog in egrep; do
3279 for ac_exec_ext in '' $ac_executable_extensions; do
3280 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3281 as_fn_executable_p "$ac_path_EGREP" || continue
3282 # Check for GNU ac_path_EGREP and select it if it is found.
3283 # Check for GNU $ac_path_EGREP
3284 case `"$ac_path_EGREP" --version 2>&1` in
3286 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3289 $as_echo_n 0123456789 >"conftest.in"
3292 cat "conftest.in" "conftest.in" >"conftest.tmp"
3293 mv "conftest.tmp" "conftest.in"
3294 cp "conftest.in" "conftest.nl"
3295 $as_echo 'EGREP' >> "conftest.nl"
3296 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3297 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3298 as_fn_arith $ac_count + 1 && ac_count=$as_val
3299 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3300 # Best one so far, save it but keep looking for a better one
3301 ac_cv_path_EGREP="$ac_path_EGREP"
3302 ac_path_EGREP_max=$ac_count
3304 # 10*(2^10) chars as input seems more than enough
3305 test $ac_count -gt 10 && break
3307 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3310 $ac_path_EGREP_found && break 3
3315 if test -z "$ac_cv_path_EGREP"; then
3316 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3319 ac_cv_path_EGREP=$EGREP
3324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3325 $as_echo "$ac_cv_path_EGREP" >&6; }
3326 EGREP="$ac_cv_path_EGREP"
3329 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3330 $as_echo_n "checking for ANSI C header files... " >&6; }
3331 if ${ac_cv_header_stdc+:} false; then :
3332 $as_echo_n "(cached) " >&6
3334 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3335 /* end confdefs.h. */
3349 if ac_fn_c_try_compile "$LINENO"; then :
3350 ac_cv_header_stdc=yes
3352 ac_cv_header_stdc=no
3354 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3356 if test $ac_cv_header_stdc = yes; then
3357 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3358 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3359 /* end confdefs.h. */
3363 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3364 $EGREP "memchr" >/dev/null 2>&1; then :
3367 ac_cv_header_stdc=no
3373 if test $ac_cv_header_stdc = yes; then
3374 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3375 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3376 /* end confdefs.h. */
3380 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3381 $EGREP "free" >/dev/null 2>&1; then :
3384 ac_cv_header_stdc=no
3390 if test $ac_cv_header_stdc = yes; then
3391 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3392 if test "$cross_compiling" = yes; then :
3395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3396 /* end confdefs.h. */
3399 #if ((' ' & 0x0FF) == 0x020)
3400 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3401 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3403 # define ISLOWER(c) \
3404 (('a' <= (c) && (c) <= 'i') \
3405 || ('j' <= (c) && (c) <= 'r') \
3406 || ('s' <= (c) && (c) <= 'z'))
3407 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3410 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3415 for (i = 0; i < 256; i++)
3416 if (XOR (islower (i), ISLOWER (i))
3417 || toupper (i) != TOUPPER (i))
3422 if ac_fn_c_try_run "$LINENO"; then :
3425 ac_cv_header_stdc=no
3427 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3428 conftest.$ac_objext conftest.beam conftest.$ac_ext
3433 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3434 $as_echo "$ac_cv_header_stdc" >&6; }
3435 if test $ac_cv_header_stdc = yes; then
3437 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3441 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3442 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3443 inttypes.h stdint.h unistd.h
3445 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3446 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3448 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3449 cat >>confdefs.h <<_ACEOF
3450 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3459 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3460 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3467 if test "$MINIX" = yes; then
3469 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3472 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3475 $as_echo "#define _MINIX 1" >>confdefs.h
3480 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3481 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3482 if ${ac_cv_safe_to_define___extensions__+:} false; then :
3483 $as_echo_n "(cached) " >&6
3485 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3486 /* end confdefs.h. */
3488 # define __EXTENSIONS__ 1
3489 $ac_includes_default
3498 if ac_fn_c_try_compile "$LINENO"; then :
3499 ac_cv_safe_to_define___extensions__=yes
3501 ac_cv_safe_to_define___extensions__=no
3503 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3505 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3506 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3507 test $ac_cv_safe_to_define___extensions__ = yes &&
3508 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3510 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3512 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3514 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3516 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3520 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3521 $as_echo_n "checking whether ln -s works... " >&6; }
3523 if test "$LN_S" = "ln -s"; then
3524 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3525 $as_echo "yes" >&6; }
3527 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3528 $as_echo "no, using $LN_S" >&6; }
3534 # Extract the first word of "chmod", so it can be a program name with args.
3535 set dummy chmod; ac_word=$2
3536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3537 $as_echo_n "checking for $ac_word... " >&6; }
3538 if ${ac_cv_prog_CHMOD+:} false; then :
3539 $as_echo_n "(cached) " >&6
3541 if test -n "$CHMOD"; then
3542 ac_cv_prog_CHMOD="$CHMOD" # Let the user override the test.
3544 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3548 test -z "$as_dir" && as_dir=.
3549 for ac_exec_ext in '' $ac_executable_extensions; do
3550 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3551 ac_cv_prog_CHMOD="chmod"
3552 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3561 CHMOD=$ac_cv_prog_CHMOD
3562 if test -n "$CHMOD"; then
3563 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
3564 $as_echo "$CHMOD" >&6; }
3566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3567 $as_echo "no" >&6; }
3571 # Extract the first word of "chown", so it can be a program name with args.
3572 set dummy chown; ac_word=$2
3573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3574 $as_echo_n "checking for $ac_word... " >&6; }
3575 if ${ac_cv_prog_CHOWN+:} false; then :
3576 $as_echo_n "(cached) " >&6
3578 if test -n "$CHOWN"; then
3579 ac_cv_prog_CHOWN="$CHOWN" # Let the user override the test.
3581 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3585 test -z "$as_dir" && as_dir=.
3586 for ac_exec_ext in '' $ac_executable_extensions; do
3587 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3588 ac_cv_prog_CHOWN="chown"
3589 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3598 CHOWN=$ac_cv_prog_CHOWN
3599 if test -n "$CHOWN"; then
3600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHOWN" >&5
3601 $as_echo "$CHOWN" >&6; }
3603 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3604 $as_echo "no" >&6; }
3608 # Extract the first word of "ar", so it can be a program name with args.
3609 set dummy ar; ac_word=$2
3610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3611 $as_echo_n "checking for $ac_word... " >&6; }
3612 if ${ac_cv_prog_AR+:} false; then :
3613 $as_echo_n "(cached) " >&6
3615 if test -n "$AR"; then
3616 ac_cv_prog_AR="$AR" # Let the user override the test.
3618 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3622 test -z "$as_dir" && as_dir=.
3623 for ac_exec_ext in '' $ac_executable_extensions; do
3624 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3636 if test -n "$AR"; then
3637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3638 $as_echo "$AR" >&6; }
3640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3641 $as_echo "no" >&6; }
3645 # Extract the first word of "install", so it can be a program name with args.
3646 set dummy install; ac_word=$2
3647 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3648 $as_echo_n "checking for $ac_word... " >&6; }
3649 if ${ac_cv_prog_INSTALL+:} false; then :
3650 $as_echo_n "(cached) " >&6
3652 if test -n "$INSTALL"; then
3653 ac_cv_prog_INSTALL="$INSTALL" # Let the user override the test.
3655 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3659 test -z "$as_dir" && as_dir=.
3660 for ac_exec_ext in '' $ac_executable_extensions; do
3661 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3662 ac_cv_prog_INSTALL="install"
3663 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3672 INSTALL=$ac_cv_prog_INSTALL
3673 if test -n "$INSTALL"; then
3674 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3675 $as_echo "$INSTALL" >&6; }
3677 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3678 $as_echo "no" >&6; }
3682 # Extract the first word of "msgfmt", so it can be a program name with args.
3683 set dummy msgfmt; ac_word=$2
3684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3685 $as_echo_n "checking for $ac_word... " >&6; }
3686 if ${ac_cv_prog_MSGFMT+:} false; then :
3687 $as_echo_n "(cached) " >&6
3689 if test -n "$MSGFMT"; then
3690 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
3692 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3696 test -z "$as_dir" && as_dir=.
3697 for ac_exec_ext in '' $ac_executable_extensions; do
3698 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3699 ac_cv_prog_MSGFMT="msgfmt"
3700 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3709 MSGFMT=$ac_cv_prog_MSGFMT
3710 if test -n "$MSGFMT"; then
3711 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
3712 $as_echo "$MSGFMT" >&6; }
3714 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3715 $as_echo "no" >&6; }
3719 # Extract the first word of "xgettext", so it can be a program name with args.
3720 set dummy xgettext; ac_word=$2
3721 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3722 $as_echo_n "checking for $ac_word... " >&6; }
3723 if ${ac_cv_prog_XGETTEXT+:} false; then :
3724 $as_echo_n "(cached) " >&6
3726 if test -n "$XGETTEXT"; then
3727 ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
3729 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3733 test -z "$as_dir" && as_dir=.
3734 for ac_exec_ext in '' $ac_executable_extensions; do
3735 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3736 ac_cv_prog_XGETTEXT="xgettext"
3737 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3746 XGETTEXT=$ac_cv_prog_XGETTEXT
3747 if test -n "$XGETTEXT"; then
3748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
3749 $as_echo "$XGETTEXT" >&6; }
3751 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3752 $as_echo "no" >&6; }
3756 # Extract the first word of "msgmerge", so it can be a program name with args.
3757 set dummy msgmerge; ac_word=$2
3758 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3759 $as_echo_n "checking for $ac_word... " >&6; }
3760 if ${ac_cv_prog_MSGMERGE+:} false; then :
3761 $as_echo_n "(cached) " >&6
3763 if test -n "$MSGMERGE"; then
3764 ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
3766 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3770 test -z "$as_dir" && as_dir=.
3771 for ac_exec_ext in '' $ac_executable_extensions; do
3772 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3773 ac_cv_prog_MSGMERGE="msgmerge"
3774 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3783 MSGMERGE=$ac_cv_prog_MSGMERGE
3784 if test -n "$MSGMERGE"; then
3785 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
3786 $as_echo "$MSGMERGE" >&6; }
3788 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3789 $as_echo "no" >&6; }
3793 # Extract the first word of "xmllint", so it can be a program name with args.
3794 set dummy xmllint; ac_word=$2
3795 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3796 $as_echo_n "checking for $ac_word... " >&6; }
3797 if ${ac_cv_prog_VER_XML+:} false; then :
3798 $as_echo_n "(cached) " >&6
3800 if test -n "$VER_XML"; then
3801 ac_cv_prog_VER_XML="$VER_XML" # Let the user override the test.
3803 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3807 test -z "$as_dir" && as_dir=.
3808 for ac_exec_ext in '' $ac_executable_extensions; do
3809 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3810 ac_cv_prog_VER_XML="xmllint"
3811 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3820 VER_XML=$ac_cv_prog_VER_XML
3821 if test -n "$VER_XML"; then
3822 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VER_XML" >&5
3823 $as_echo "$VER_XML" >&6; }
3825 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3826 $as_echo "no" >&6; }
3830 for ac_prog in json_verify json_pp
3832 # Extract the first word of "$ac_prog", so it can be a program name with args.
3833 set dummy $ac_prog; ac_word=$2
3834 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3835 $as_echo_n "checking for $ac_word... " >&6; }
3836 if ${ac_cv_prog_VER_JSON+:} false; then :
3837 $as_echo_n "(cached) " >&6
3839 if test -n "$VER_JSON"; then
3840 ac_cv_prog_VER_JSON="$VER_JSON" # Let the user override the test.
3842 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3846 test -z "$as_dir" && as_dir=.
3847 for ac_exec_ext in '' $ac_executable_extensions; do
3848 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3849 ac_cv_prog_VER_JSON="$ac_prog"
3850 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3859 VER_JSON=$ac_cv_prog_VER_JSON
3860 if test -n "$VER_JSON"; then
3861 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $VER_JSON" >&5
3862 $as_echo "$VER_JSON" >&6; }
3864 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3865 $as_echo "no" >&6; }
3869 test -n "$VER_JSON" && break
3871 test -n "$VER_JSON" || VER_JSON="true"
3873 for ac_prog in xz bzip2 gzip
3875 # Extract the first word of "$ac_prog", so it can be a program name with args.
3876 set dummy $ac_prog; ac_word=$2
3877 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3878 $as_echo_n "checking for $ac_word... " >&6; }
3879 if ${ac_cv_prog_ZIP+:} false; then :
3880 $as_echo_n "(cached) " >&6
3882 if test -n "$ZIP"; then
3883 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
3885 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3889 test -z "$as_dir" && as_dir=.
3890 for ac_exec_ext in '' $ac_executable_extensions; do
3891 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3892 ac_cv_prog_ZIP="$ac_prog"
3893 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3903 if test -n "$ZIP"; then
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
3905 $as_echo "$ZIP" >&6; }
3907 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3908 $as_echo "no" >&6; }
3912 test -n "$ZIP" && break
3914 test -n "$ZIP" || ZIP="gzip"
3916 INSTALL_DATA="\${INSTALL} -m 644"
3918 INSTALL_BIN="\${INSTALL} -m 755"
3924 # Extract the first word of "cp", so it can be a program name with args.
3925 set dummy cp; ac_word=$2
3926 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3927 $as_echo_n "checking for $ac_word... " >&6; }
3928 if ${ac_cv_path_PATH_CP+:} false; then :
3929 $as_echo_n "(cached) " >&6
3933 ac_cv_path_PATH_CP="$PATH_CP" # Let the user override the test with a path.
3936 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3940 test -z "$as_dir" && as_dir=.
3941 for ac_exec_ext in '' $ac_executable_extensions; do
3942 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3943 ac_cv_path_PATH_CP="$as_dir/$ac_word$ac_exec_ext"
3944 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3954 PATH_CP=$ac_cv_path_PATH_CP
3955 if test -n "$PATH_CP"; then
3956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_CP" >&5
3957 $as_echo "$PATH_CP" >&6; }
3959 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3960 $as_echo "no" >&6; }
3964 # Extract the first word of "chkconfig", so it can be a program name with args.
3965 set dummy chkconfig; ac_word=$2
3966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3967 $as_echo_n "checking for $ac_word... " >&6; }
3968 if ${ac_cv_path_PATH_CHKCONFIG+:} false; then :
3969 $as_echo_n "(cached) " >&6
3971 case $PATH_CHKCONFIG in
3973 ac_cv_path_PATH_CHKCONFIG="$PATH_CHKCONFIG" # Let the user override the test with a path.
3976 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3980 test -z "$as_dir" && as_dir=.
3981 for ac_exec_ext in '' $ac_executable_extensions; do
3982 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3983 ac_cv_path_PATH_CHKCONFIG="$as_dir/$ac_word$ac_exec_ext"
3984 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3994 PATH_CHKCONFIG=$ac_cv_path_PATH_CHKCONFIG
3995 if test -n "$PATH_CHKCONFIG"; then
3996 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_CHKCONFIG" >&5
3997 $as_echo "$PATH_CHKCONFIG" >&6; }
3999 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4000 $as_echo "no" >&6; }
4006 # Extract the first word of "pkg-config", so it can be a program name with args.
4007 set dummy pkg-config; ac_word=$2
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4009 $as_echo_n "checking for $ac_word... " >&6; }
4010 if ${ac_cv_prog_PKG_CONFIG+:} false; then :
4011 $as_echo_n "(cached) " >&6
4013 if test -n "$PKG_CONFIG"; then
4014 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
4016 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4020 test -z "$as_dir" && as_dir=.
4021 for ac_exec_ext in '' $ac_executable_extensions; do
4022 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4023 ac_cv_prog_PKG_CONFIG="pkg-config"
4024 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4033 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
4034 if test -n "$PKG_CONFIG"; then
4035 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4036 $as_echo "$PKG_CONFIG" >&6; }
4038 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4039 $as_echo "no" >&6; }
4043 # Extract the first word of "systemctl", so it can be a program name with args.
4044 set dummy systemctl; ac_word=$2
4045 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4046 $as_echo_n "checking for $ac_word... " >&6; }
4047 if ${ac_cv_path_SYSTEMCTL+:} false; then :
4048 $as_echo_n "(cached) " >&6
4052 ac_cv_path_SYSTEMCTL="$SYSTEMCTL" # Let the user override the test with a path.
4055 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4059 test -z "$as_dir" && as_dir=.
4060 for ac_exec_ext in '' $ac_executable_extensions; do
4061 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4062 ac_cv_path_SYSTEMCTL="$as_dir/$ac_word$ac_exec_ext"
4063 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4073 SYSTEMCTL=$ac_cv_path_SYSTEMCTL
4074 if test -n "$SYSTEMCTL"; then
4075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYSTEMCTL" >&5
4076 $as_echo "$SYSTEMCTL" >&6; }
4078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4079 $as_echo "no" >&6; }
4084 # Check whether --with-systemdsystemunitdir was given.
4085 if test "${with_systemdsystemunitdir+set}" = set; then :
4086 withval=$with_systemdsystemunitdir;
4088 with_systemdsystemunitdir=$($PKG_CONFIG --variable=systemdsystemunitdir systemd)
4091 if test -n "$with_systemdsystemunitdir" -a "x$with_systemdsystemunitdir" != xno ; then
4092 SYSTEMD_UNIT_DIR=$with_systemdsystemunitdir
4098 # Check header files
4100 echo Check header files:
4104 HAVE_SYS_SYSMACROS_H=
4106 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4107 $as_echo_n "checking for ANSI C header files... " >&6; }
4108 if ${ac_cv_header_stdc+:} false; then :
4109 $as_echo_n "(cached) " >&6
4111 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4112 /* end confdefs.h. */
4126 if ac_fn_c_try_compile "$LINENO"; then :
4127 ac_cv_header_stdc=yes
4129 ac_cv_header_stdc=no
4131 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4133 if test $ac_cv_header_stdc = yes; then
4134 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4135 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4136 /* end confdefs.h. */
4140 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4141 $EGREP "memchr" >/dev/null 2>&1; then :
4144 ac_cv_header_stdc=no
4150 if test $ac_cv_header_stdc = yes; then
4151 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4152 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4153 /* end confdefs.h. */
4157 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4158 $EGREP "free" >/dev/null 2>&1; then :
4161 ac_cv_header_stdc=no
4167 if test $ac_cv_header_stdc = yes; then
4168 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4169 if test "$cross_compiling" = yes; then :
4172 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4173 /* end confdefs.h. */
4176 #if ((' ' & 0x0FF) == 0x020)
4177 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4178 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4180 # define ISLOWER(c) \
4181 (('a' <= (c) && (c) <= 'i') \
4182 || ('j' <= (c) && (c) <= 'r') \
4183 || ('s' <= (c) && (c) <= 'z'))
4184 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4187 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4192 for (i = 0; i < 256; i++)
4193 if (XOR (islower (i), ISLOWER (i))
4194 || toupper (i) != TOUPPER (i))
4199 if ac_fn_c_try_run "$LINENO"; then :
4202 ac_cv_header_stdc=no
4204 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4205 conftest.$ac_objext conftest.beam conftest.$ac_ext
4210 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4211 $as_echo "$ac_cv_header_stdc" >&6; }
4212 if test $ac_cv_header_stdc = yes; then
4214 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4219 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4220 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
4222 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
4223 if eval \${$as_ac_Header+:} false; then :
4224 $as_echo_n "(cached) " >&6
4226 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4227 /* end confdefs.h. */
4228 #include <sys/types.h>
4240 if ac_fn_c_try_compile "$LINENO"; then :
4241 eval "$as_ac_Header=yes"
4243 eval "$as_ac_Header=no"
4245 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4247 eval ac_res=\$$as_ac_Header
4248 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4249 $as_echo "$ac_res" >&6; }
4250 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4251 cat >>confdefs.h <<_ACEOF
4252 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4255 ac_header_dirent=$ac_hdr; break
4259 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4260 if test $ac_header_dirent = dirent.h; then
4261 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
4262 $as_echo_n "checking for library containing opendir... " >&6; }
4263 if ${ac_cv_search_opendir+:} false; then :
4264 $as_echo_n "(cached) " >&6
4266 ac_func_search_save_LIBS=$LIBS
4267 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4268 /* end confdefs.h. */
4270 /* Override any GCC internal prototype to avoid an error.
4271 Use char because int might match the return type of a GCC
4272 builtin and then its argument prototype would still apply. */
4285 for ac_lib in '' dir; do
4286 if test -z "$ac_lib"; then
4287 ac_res="none required"
4290 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4292 if ac_fn_c_try_link "$LINENO"; then :
4293 ac_cv_search_opendir=$ac_res
4295 rm -f core conftest.err conftest.$ac_objext \
4297 if ${ac_cv_search_opendir+:} false; then :
4301 if ${ac_cv_search_opendir+:} false; then :
4304 ac_cv_search_opendir=no
4307 LIBS=$ac_func_search_save_LIBS
4309 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
4310 $as_echo "$ac_cv_search_opendir" >&6; }
4311 ac_res=$ac_cv_search_opendir
4312 if test "$ac_res" != no; then :
4313 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4318 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
4319 $as_echo_n "checking for library containing opendir... " >&6; }
4320 if ${ac_cv_search_opendir+:} false; then :
4321 $as_echo_n "(cached) " >&6
4323 ac_func_search_save_LIBS=$LIBS
4324 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4325 /* end confdefs.h. */
4327 /* Override any GCC internal prototype to avoid an error.
4328 Use char because int might match the return type of a GCC
4329 builtin and then its argument prototype would still apply. */
4342 for ac_lib in '' x; do
4343 if test -z "$ac_lib"; then
4344 ac_res="none required"
4347 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4349 if ac_fn_c_try_link "$LINENO"; then :
4350 ac_cv_search_opendir=$ac_res
4352 rm -f core conftest.err conftest.$ac_objext \
4354 if ${ac_cv_search_opendir+:} false; then :
4358 if ${ac_cv_search_opendir+:} false; then :
4361 ac_cv_search_opendir=no
4364 LIBS=$ac_func_search_save_LIBS
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
4367 $as_echo "$ac_cv_search_opendir" >&6; }
4368 ac_res=$ac_cv_search_opendir
4369 if test "$ac_res" != no; then :
4370 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4376 for ac_header in ctype.h
4378 ac_fn_c_check_header_mongrel "$LINENO" "ctype.h" "ac_cv_header_ctype_h" "$ac_includes_default"
4379 if test "x$ac_cv_header_ctype_h" = xyes; then :
4380 cat >>confdefs.h <<_ACEOF
4381 #define HAVE_CTYPE_H 1
4388 for ac_header in errno.h
4390 ac_fn_c_check_header_mongrel "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default"
4391 if test "x$ac_cv_header_errno_h" = xyes; then :
4392 cat >>confdefs.h <<_ACEOF
4393 #define HAVE_ERRNO_H 1
4400 for ac_header in libintl.h
4402 ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
4403 if test "x$ac_cv_header_libintl_h" = xyes; then :
4404 cat >>confdefs.h <<_ACEOF
4405 #define HAVE_LIBINTL_H 1
4412 for ac_header in locale.h
4414 ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
4415 if test "x$ac_cv_header_locale_h" = xyes; then :
4416 cat >>confdefs.h <<_ACEOF
4417 #define HAVE_LOCALE_H 1
4424 for ac_header in net/if.h
4426 ac_fn_c_check_header_mongrel "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default"
4427 if test "x$ac_cv_header_net_if_h" = xyes; then :
4428 cat >>confdefs.h <<_ACEOF
4429 #define HAVE_NET_IF_H 1
4436 for ac_header in regex.h
4438 ac_fn_c_check_header_mongrel "$LINENO" "regex.h" "ac_cv_header_regex_h" "$ac_includes_default"
4439 if test "x$ac_cv_header_regex_h" = xyes; then :
4440 cat >>confdefs.h <<_ACEOF
4441 #define HAVE_REGEX_H 1
4448 for ac_header in signal.h
4450 ac_fn_c_check_header_mongrel "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
4451 if test "x$ac_cv_header_signal_h" = xyes; then :
4452 cat >>confdefs.h <<_ACEOF
4453 #define HAVE_SIGNAL_H 1
4460 for ac_header in stdio.h
4462 ac_fn_c_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
4463 if test "x$ac_cv_header_stdio_h" = xyes; then :
4464 cat >>confdefs.h <<_ACEOF
4465 #define HAVE_STDIO_H 1
4472 for ac_header in sys/file.h
4474 ac_fn_c_check_header_mongrel "$LINENO" "sys/file.h" "ac_cv_header_sys_file_h" "$ac_includes_default"
4475 if test "x$ac_cv_header_sys_file_h" = xyes; then :
4476 cat >>confdefs.h <<_ACEOF
4477 #define HAVE_SYS_FILE_H 1
4484 for ac_header in sys/ioctl.h
4486 ac_fn_c_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
4487 if test "x$ac_cv_header_sys_ioctl_h" = xyes; then :
4488 cat >>confdefs.h <<_ACEOF
4489 #define HAVE_SYS_IOCTL_H 1
4496 for ac_header in sys/param.h
4498 ac_fn_c_check_header_mongrel "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
4499 if test "x$ac_cv_header_sys_param_h" = xyes; then :
4500 cat >>confdefs.h <<_ACEOF
4501 #define HAVE_SYS_PARAM_H 1
4508 for ac_header in sys/stat.h
4510 ac_fn_c_check_header_mongrel "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "$ac_includes_default"
4511 if test "x$ac_cv_header_sys_stat_h" = xyes; then :
4512 cat >>confdefs.h <<_ACEOF
4513 #define HAVE_SYS_STAT_H 1
4520 for ac_header in sys/sysmacros.h
4522 ac_fn_c_check_header_mongrel "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
4523 if test "x$ac_cv_header_sys_sysmacros_h" = xyes; then :
4524 cat >>confdefs.h <<_ACEOF
4525 #define HAVE_SYS_SYSMACROS_H 1
4527 HAVE_SYS_SYSMACROS_H=1
4534 echo Check typedefs, structures and compiler characteristics:
4536 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
4537 $as_echo_n "checking return type of signal handlers... " >&6; }
4538 if ${ac_cv_type_signal+:} false; then :
4539 $as_echo_n "(cached) " >&6
4541 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4542 /* end confdefs.h. */
4543 #include <sys/types.h>
4549 return *(signal (0, 0)) (0) == 1;
4554 if ac_fn_c_try_compile "$LINENO"; then :
4555 ac_cv_type_signal=int
4557 ac_cv_type_signal=void
4559 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
4562 $as_echo "$ac_cv_type_signal" >&6; }
4564 cat >>confdefs.h <<_ACEOF
4565 #define RETSIGTYPE $ac_cv_type_signal
4569 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
4570 if test "x$ac_cv_type_size_t" = xyes; then :
4574 cat >>confdefs.h <<_ACEOF
4575 #define size_t unsigned int
4580 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
4581 if test "x$ac_cv_type_off_t" = xyes; then :
4585 cat >>confdefs.h <<_ACEOF
4586 #define off_t long int
4593 echo Check library functions:
4595 for ac_func in strchr
4597 ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr"
4598 if test "x$ac_cv_func_strchr" = xyes; then :
4599 cat >>confdefs.h <<_ACEOF
4600 #define HAVE_STRCHR 1
4606 for ac_func in strcspn
4608 ac_fn_c_check_func "$LINENO" "strcspn" "ac_cv_func_strcspn"
4609 if test "x$ac_cv_func_strcspn" = xyes; then :
4610 cat >>confdefs.h <<_ACEOF
4611 #define HAVE_STRCSPN 1
4617 for ac_func in strspn
4619 ac_fn_c_check_func "$LINENO" "strspn" "ac_cv_func_strspn"
4620 if test "x$ac_cv_func_strspn" = xyes; then :
4621 cat >>confdefs.h <<_ACEOF
4622 #define HAVE_STRSPN 1
4628 for ac_func in strstr
4630 ac_fn_c_check_func "$LINENO" "strstr" "ac_cv_func_strstr"
4631 if test "x$ac_cv_func_strstr" = xyes; then :
4632 cat >>confdefs.h <<_ACEOF
4633 #define HAVE_STRSTR 1
4640 # Should we check for lm_sensors?
4641 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sensors support" >&5
4642 $as_echo_n "checking for sensors support... " >&6; }
4643 # Check whether --enable-sensors was given.
4644 if test "${enable_sensors+set}" = set; then :
4645 enableval=$enable_sensors; SENSORS=$enableval
4650 if test $SENSORS != "yes"; then
4655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SENSORS" >&5
4656 $as_echo "$SENSORS" >&6; }
4658 # Check for lm_sensors
4661 if test $HAVE_SENSORS = "y"; then
4663 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sensors_get_detected_chips in -lsensors" >&5
4664 $as_echo_n "checking for sensors_get_detected_chips in -lsensors... " >&6; }
4665 if ${ac_cv_lib_sensors_sensors_get_detected_chips+:} false; then :
4666 $as_echo_n "(cached) " >&6
4668 ac_check_lib_save_LIBS=$LIBS
4669 LIBS="-lsensors $LIBS"
4670 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4671 /* end confdefs.h. */
4673 /* Override any GCC internal prototype to avoid an error.
4674 Use char because int might match the return type of a GCC
4675 builtin and then its argument prototype would still apply. */
4679 char sensors_get_detected_chips ();
4683 return sensors_get_detected_chips ();
4688 if ac_fn_c_try_link "$LINENO"; then :
4689 ac_cv_lib_sensors_sensors_get_detected_chips=yes
4691 ac_cv_lib_sensors_sensors_get_detected_chips=no
4693 rm -f core conftest.err conftest.$ac_objext \
4694 conftest$ac_exeext conftest.$ac_ext
4695 LIBS=$ac_check_lib_save_LIBS
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sensors_sensors_get_detected_chips" >&5
4698 $as_echo "$ac_cv_lib_sensors_sensors_get_detected_chips" >&6; }
4699 if test "x$ac_cv_lib_sensors_sensors_get_detected_chips" = xyes; then :
4700 LFSENSORS="-lsensors"
4705 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sensors lib" >&5
4706 $as_echo_n "checking for sensors lib... " >&6; }
4707 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4708 /* end confdefs.h. */
4709 #include <sensors/sensors.h>
4710 #include <sensors/error.h>
4720 if ac_fn_c_try_compile "$LINENO"; then :
4721 SENSORS=yes; DFSENSORS="-DHAVE_SENSORS"
4723 HAVE_SENSORS="n"; SENSORS=no
4725 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4726 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SENSORS" >&5
4727 $as_echo "$SENSORS" >&6; }
4733 # Should we check for PCP support?
4734 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCP support" >&5
4735 $as_echo_n "checking for PCP support... " >&6; }
4736 # Check whether --enable-pcp was given.
4737 if test "${enable_pcp+set}" = set; then :
4738 enableval=$enable_pcp; PCP=$enableval
4743 if test $PCP != "yes"; then
4748 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCP" >&5
4749 $as_echo "$PCP" >&6; }
4751 # Check for PCP libraries
4754 if test $HAVE_PCP = "y"; then
4756 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for pmGetVersion in -lpcp" >&5
4757 $as_echo_n "checking for pmGetVersion in -lpcp... " >&6; }
4758 if ${ac_cv_lib_pcp_pmGetVersion+:} false; then :
4759 $as_echo_n "(cached) " >&6
4761 ac_check_lib_save_LIBS=$LIBS
4763 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4764 /* end confdefs.h. */
4766 /* Override any GCC internal prototype to avoid an error.
4767 Use char because int might match the return type of a GCC
4768 builtin and then its argument prototype would still apply. */
4772 char pmGetVersion ();
4776 return pmGetVersion ();
4781 if ac_fn_c_try_link "$LINENO"; then :
4782 ac_cv_lib_pcp_pmGetVersion=yes
4784 ac_cv_lib_pcp_pmGetVersion=no
4786 rm -f core conftest.err conftest.$ac_objext \
4787 conftest$ac_exeext conftest.$ac_ext
4788 LIBS=$ac_check_lib_save_LIBS
4790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcp_pmGetVersion" >&5
4791 $as_echo "$ac_cv_lib_pcp_pmGetVersion" >&6; }
4792 if test "x$ac_cv_lib_pcp_pmGetVersion" = xyes; then :
4793 LFPCP="-lpcp -lpcp_import"
4798 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for PCP libraries" >&5
4799 $as_echo_n "checking for PCP libraries... " >&6; }
4800 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4801 /* end confdefs.h. */
4802 #include <pcp/pmapi.h>
4803 #include <pcp/import.h>
4813 if ac_fn_c_try_compile "$LINENO"; then :
4814 PCP=yes; DFPCP="-DHAVE_PCP"
4816 HAVE_PCP="n"; PCP=no
4818 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4819 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PCP" >&5
4820 $as_echo "$PCP" >&6; }
4827 echo Check system services:
4829 # Check whether --enable-largefile was given.
4830 if test "${enable_largefile+set}" = set; then :
4831 enableval=$enable_largefile;
4834 if test "$enable_largefile" != no; then
4836 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4837 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4838 if ${ac_cv_sys_largefile_CC+:} false; then :
4839 $as_echo_n "(cached) " >&6
4841 ac_cv_sys_largefile_CC=no
4842 if test "$GCC" != yes; then
4845 # IRIX 6.2 and later do not support large files by default,
4846 # so use the C compiler's -n32 option if that helps.
4847 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4848 /* end confdefs.h. */
4849 #include <sys/types.h>
4850 /* Check that off_t can represent 2**63 - 1 correctly.
4851 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4852 since some C++ compilers masquerading as C compilers
4853 incorrectly reject 9223372036854775807. */
4854 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4855 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4856 && LARGE_OFF_T % 2147483647 == 1)
4866 if ac_fn_c_try_compile "$LINENO"; then :
4869 rm -f core conftest.err conftest.$ac_objext
4871 if ac_fn_c_try_compile "$LINENO"; then :
4872 ac_cv_sys_largefile_CC=' -n32'; break
4874 rm -f core conftest.err conftest.$ac_objext
4878 rm -f conftest.$ac_ext
4881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4882 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4883 if test "$ac_cv_sys_largefile_CC" != no; then
4884 CC=$CC$ac_cv_sys_largefile_CC
4887 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4888 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4889 if ${ac_cv_sys_file_offset_bits+:} false; then :
4890 $as_echo_n "(cached) " >&6
4893 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4894 /* end confdefs.h. */
4895 #include <sys/types.h>
4896 /* Check that off_t can represent 2**63 - 1 correctly.
4897 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4898 since some C++ compilers masquerading as C compilers
4899 incorrectly reject 9223372036854775807. */
4900 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4901 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4902 && LARGE_OFF_T % 2147483647 == 1)
4912 if ac_fn_c_try_compile "$LINENO"; then :
4913 ac_cv_sys_file_offset_bits=no; break
4915 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4916 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4917 /* end confdefs.h. */
4918 #define _FILE_OFFSET_BITS 64
4919 #include <sys/types.h>
4920 /* Check that off_t can represent 2**63 - 1 correctly.
4921 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4922 since some C++ compilers masquerading as C compilers
4923 incorrectly reject 9223372036854775807. */
4924 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4925 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4926 && LARGE_OFF_T % 2147483647 == 1)
4936 if ac_fn_c_try_compile "$LINENO"; then :
4937 ac_cv_sys_file_offset_bits=64; break
4939 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4940 ac_cv_sys_file_offset_bits=unknown
4944 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4945 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4946 case $ac_cv_sys_file_offset_bits in #(
4949 cat >>confdefs.h <<_ACEOF
4950 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4955 if test $ac_cv_sys_file_offset_bits = unknown; then
4956 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4957 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4958 if ${ac_cv_sys_large_files+:} false; then :
4959 $as_echo_n "(cached) " >&6
4962 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4963 /* end confdefs.h. */
4964 #include <sys/types.h>
4965 /* Check that off_t can represent 2**63 - 1 correctly.
4966 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4967 since some C++ compilers masquerading as C compilers
4968 incorrectly reject 9223372036854775807. */
4969 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4970 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4971 && LARGE_OFF_T % 2147483647 == 1)
4981 if ac_fn_c_try_compile "$LINENO"; then :
4982 ac_cv_sys_large_files=no; break
4984 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4985 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4986 /* end confdefs.h. */
4987 #define _LARGE_FILES 1
4988 #include <sys/types.h>
4989 /* Check that off_t can represent 2**63 - 1 correctly.
4990 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4991 since some C++ compilers masquerading as C compilers
4992 incorrectly reject 9223372036854775807. */
4993 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4994 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4995 && LARGE_OFF_T % 2147483647 == 1)
5005 if ac_fn_c_try_compile "$LINENO"; then :
5006 ac_cv_sys_large_files=1; break
5008 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5009 ac_cv_sys_large_files=unknown
5013 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5014 $as_echo "$ac_cv_sys_large_files" >&6; }
5015 case $ac_cv_sys_large_files in #(
5018 cat >>confdefs.h <<_ACEOF
5019 #define _LARGE_FILES $ac_cv_sys_large_files
5031 echo Check configuration:
5033 # Check arguments used
5035 # Optional Features:
5036 # --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
5037 # --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
5038 # --disable-largefile omit support for large files
5039 # --disable-nls disable National Language Support
5040 # --disable-file-attr don't set attributes on files being installed
5041 # --enable-install-cron tell sysstat to install cron scripts
5042 # --collect-all tell sadc to collect all possible data
5043 # --enable-clean-sa-dir clean system activity directory
5044 # --enable-compress-manpg compress manual pages
5045 # --enable-debuginfo enable debug output (--debuginfo option)
5046 # --disable-documentation do not install documentation (man pages...)
5047 # --disable-sensors do not link against libsensors even if available
5048 # --disable-pcp do not link against PCP libraries even if available
5049 # --disable-stripping do not strip object files
5050 # --enable-copy-only only copy files when installing sysstat
5052 # Some influential environment variables:
5053 # rcdir directory where startup scripts are installed
5054 # sa_lib_dir sadc, sa1 and sa2 directory
5055 # sa_dir system activity daily datafiles directory
5056 # conf_dir sysstat configuration directory (default is /etc/sysconfig)
5057 # history number of daily datafiles to keep (default value is 7)
5058 # compressafter number of days after which datafiles are compressed
5059 # man_group group for man pages
5060 # cron_owner crontab owner
5061 # cron_interval crontab sampling interval
5062 # sadc_options options to be passed to sadc
5064 # Fine tuning the installation directories:
5065 # --mandir=DIR man documentation directory [PREFIX/man]
5066 # --docdir=DIR other documentation directory [PREFIX/share/doc]
5068 # Installation directories:
5069 # --prefix=PREFIX install architecture-independent files in PREFIX
5071 # --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
5075 if test -d /etc/init.d && test ! -L /etc/init.d; then
5076 if test -d /etc/init.d/rc2.d; then
5083 INIT_DIR=/etc/init.d
5084 elif test -d /sbin/init.d; then
5086 INIT_DIR=/sbin/init.d
5090 INIT_DIR=/etc/rc.d/init.d
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking run-commands directory" >&5
5095 $as_echo_n "checking run-commands directory... " >&6; }
5097 if test x$rcdir != x""; then
5098 # Override previous rc directories values
5100 INIT_DIR=$rcdir/init.d
5103 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC_DIR" >&5
5104 $as_echo "$RC_DIR" >&6; }
5105 if test ! -d $RC_DIR; then
5106 echo "INFO: Directory ${RC_DIR} doesn't exist."
5107 echo "INFO: Startup scripts won't be installed."
5114 if test $HAVE_SYS_SYSMACROS_H; then
5121 if test $HAVE_SYS_PARAM_H; then
5128 # Set sadc directory
5129 if test $prefix != "NONE"; then
5132 AuxPrefix=/usr/local
5135 SADC_DIR=$AuxPrefix/lib
5136 if test -d $AuxPrefix/lib64; then
5137 # Verify that this OS is really 64 bit
5138 BITS=$(getconf LONG_BIT 2>/dev/null)
5139 if test $? = 0; then
5140 if test $BITS = 64; then
5141 SADC_DIR=$AuxPrefix/lib64
5144 # Fallback: look for lm (long mode) flag to know if CPU is 64 bit
5145 grep " lm " /proc/cpuinfo >/dev/null 2>&1
5146 if test $? = 0; then
5147 SADC_DIR=$AuxPrefix/lib64
5152 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sadc directory" >&5
5153 $as_echo_n "checking sadc directory... " >&6; }
5155 if test x$sa_lib_dir != x""; then
5156 SA_LIB_DIR=$sa_lib_dir
5158 SA_LIB_DIR=$SADC_DIR/sa
5160 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SA_LIB_DIR" >&5
5161 $as_echo "$SA_LIB_DIR" >&6; }
5162 if test ! -d $SA_LIB_DIR; then
5163 echo "INFO: Directory ${SA_LIB_DIR} will be created during installation stage."
5167 # Set system activity directory
5168 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system activity directory" >&5
5169 $as_echo_n "checking system activity directory... " >&6; }
5171 if test x$sa_dir != x""; then
5176 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SA_DIR" >&5
5177 $as_echo "$SA_DIR" >&6; }
5178 if test ! -d $SA_DIR; then
5179 echo "INFO: Directory ${SA_DIR} will be created during installation stage."
5183 # Set configuration directory
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sysstat configuration directory" >&5
5185 $as_echo_n "checking sysstat configuration directory... " >&6; }
5187 if test x$conf_dir != x""; then
5188 SYSCONFIG_DIR=$conf_dir
5190 SYSCONFIG_DIR=/etc/sysconfig
5192 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYSCONFIG_DIR" >&5
5193 $as_echo "$SYSCONFIG_DIR" >&6; }
5194 if test ! -d $SYSCONFIG_DIR; then
5195 echo "INFO: Directory ${SYSCONFIG_DIR} will be created during installation stage."
5199 # National Language Support
5200 { $as_echo "$as_me:${as_lineno-$LINENO}: checking National Language Support" >&5
5201 $as_echo_n "checking National Language Support... " >&6; }
5202 # Check whether --enable-nls was given.
5203 if test "${enable_nls+set}" = set; then :
5204 enableval=$enable_nls; AUX_NLS=$enableval
5209 if test $AUX_NLS != "no" && test $HAVE_LIBINTL_H && test $HAVE_LOCALE_H; then
5216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUX_NLS" >&5
5217 $as_echo "$AUX_NLS" >&6; }
5219 if test $AUX_NLS = "yes" && test x$MSGFMT != x"msgfmt"; then
5220 echo "WARNING: msgfmt command not found!"
5223 if test $AUX_NLS = "yes" && test x$XGETTEXT != x"xgettext"; then
5224 echo "WARNING: xgettext command not found!"
5227 if test $AUX_NLS = "yes" && test x$MSGMERGE != x"msgmerge"; then
5228 echo "WARNING: msgmerge command not found!"
5231 if test $NLS = "y" && test $LACKING_GETTEXT = "y"; then
5232 echo "WARNING: Disabling NLS"
5237 # Data history to keep by sa2
5238 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of daily data files to keep" >&5
5239 $as_echo_n "checking number of daily data files to keep... " >&6; }
5241 if test x$history = x""; then
5246 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HISTORY" >&5
5247 $as_echo "$HISTORY" >&6; }
5250 # Number of days after which datafiles are compressed
5251 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of days after which data files are compressed" >&5
5252 $as_echo_n "checking number of days after which data files are compressed... " >&6; }
5254 if test x$compressafter = x""; then
5257 COMPRESSAFTER=$compressafter
5259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMPRESSAFTER" >&5
5260 $as_echo "$COMPRESSAFTER" >&6; }
5264 grep ^man: /etc/group >/dev/null 2>&1
5265 if test $? = 0; then
5271 { $as_echo "$as_me:${as_lineno-$LINENO}: checking group for manual pages" >&5
5272 $as_echo_n "checking group for manual pages... " >&6; }
5274 if test x$man_group = x""; then
5276 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAN_GROUP" >&5
5277 $as_echo "$MAN_GROUP" >&6; }
5279 grep ^$man_group: /etc/group >/dev/null 2>&1
5280 if test $? = 1; then
5282 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAN_GROUP" >&5
5283 $as_echo "$MAN_GROUP" >&6; }
5284 echo "WARNING: Group ${man_group} not found: Using ${GRP} instead"
5286 MAN_GROUP=$man_group
5287 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAN_GROUP" >&5
5288 $as_echo "$MAN_GROUP" >&6; }
5293 # Don't set attributes on files being installed?
5294 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether attributes should not be set on files being installed" >&5
5295 $as_echo_n "checking whether attributes should not be set on files being installed... " >&6; }
5296 # Check whether --enable-file-attr was given.
5297 if test "${enable_file_attr+set}" = set; then :
5298 enableval=$enable_file_attr; AUX_IMG=$enableval
5303 if test $AUX_IMG != "no"; then
5304 IGNORE_FILE_ATTRIBUTES=n
5307 IGNORE_FILE_ATTRIBUTES=y
5310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUX_IMG" >&5
5311 $as_echo "$AUX_IMG" >&6; }
5314 # Compress manual pages?
5315 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether manual pages should be compressed" >&5
5316 $as_echo_n "checking whether manual pages should be compressed... " >&6; }
5317 # Check whether --enable-compress-manpg was given.
5318 if test "${enable_compress_manpg+set}" = set; then :
5319 enableval=$enable_compress_manpg; AUX_MPG=$enableval
5324 if test $AUX_MPG != "yes"; then
5330 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUX_MPG" >&5
5331 $as_echo "$AUX_MPG" >&6; }
5334 # Check whether sa directory should be cleaned
5335 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system activity directory should be cleaned" >&5
5336 $as_echo_n "checking whether system activity directory should be cleaned... " >&6; }
5337 # Check whether --enable-clean-sa-dir was given.
5338 if test "${enable_clean_sa_dir+set}" = set; then :
5339 enableval=$enable_clean_sa_dir; AUX_CSD=$enableval
5344 if test $AUX_CSD != "yes"; then
5350 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUX_CSD" >&5
5351 $as_echo "$AUX_CSD" >&6; }
5355 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cron should start sar automatically" >&5
5356 $as_echo_n "checking whether cron should start sar automatically... " >&6; }
5357 # Check whether --enable-install-cron was given.
5358 if test "${enable_install_cron+set}" = set; then :
5359 enableval=$enable_install_cron; INSTALL_CRON=$enableval
5364 if test $INSTALL_CRON != "yes"; then
5371 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUX_CRON" >&5
5372 $as_echo "$AUX_CRON" >&6; }
5377 if test $INSTALL_CRON = "y"; then
5378 { $as_echo "$as_me:${as_lineno-$LINENO}: checking crontab owner" >&5
5379 $as_echo_n "checking crontab owner... " >&6; }
5381 if test x$cron_owner = x""; then
5383 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CRON_OWNER" >&5
5384 $as_echo "$CRON_OWNER" >&6; }
5386 grep ^$cron_owner: /etc/passwd >/dev/null 2>&1
5387 if test $? = 1; then
5389 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CRON_OWNER" >&5
5390 $as_echo "$CRON_OWNER" >&6; }
5391 echo "WARNING: User ${cron_owner} not found: Using ${CUSR} instead."
5393 CRON_OWNER=$cron_owner
5394 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CRON_OWNER" >&5
5395 $as_echo "$CRON_OWNER" >&6; }
5398 echo "INFO: Crontab for ${CRON_OWNER} will be saved in current directory if necessary"
5399 if test $CRON_OWNER = "root"; then
5402 REM_CHOWN="# REM_CHOWN"
5404 SU_C_OWNER="su $CRON_OWNER -c "
5406 # " (ignore this line)
5411 { $as_echo "$as_me:${as_lineno-$LINENO}: checking crontab interval" >&5
5412 $as_echo_n "checking crontab interval... " >&6; }
5414 if test x$cron_interval = x""; then
5417 CRON_INTERVAL=$cron_interval
5419 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CRON_INTERVAL" >&5
5420 $as_echo "$CRON_INTERVAL" >&6; }
5421 CRON_INTERVAL_SEC=`expr ${CRON_INTERVAL} \* 60`
5422 CRON_COUNT=`expr 60 / ${CRON_INTERVAL}`
5424 # Check whether sadc should collect all possible activities
5425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sadc should collect all possible activities" >&5
5426 $as_echo_n "checking whether sadc should collect all possible activities... " >&6; }
5427 # Check whether --enable-collect-all was given.
5428 if test "${enable_collect_all+set}" = set; then :
5429 enableval=$enable_collect_all; COLLECT_ALL=$enableval
5434 if test $COLLECT_ALL != "yes"; then
5438 COLLECT_ALL="-S XALL"
5441 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUX_COLL" >&5
5442 $as_echo "$AUX_COLL" >&6; }
5444 { $as_echo "$as_me:${as_lineno-$LINENO}: checking options to be passed to sadc" >&5
5445 $as_echo_n "checking options to be passed to sadc... " >&6; }
5447 if test x"$sadc_options" != x""; then
5448 SADC_OPT="$sadc_options"
5452 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SADC_OPT" >&5
5453 $as_echo "$SADC_OPT" >&6; }
5456 # Check whether files should only be copied
5457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether files should only be copied" >&5
5458 $as_echo_n "checking whether files should only be copied... " >&6; }
5459 # Check whether --enable-copy-only was given.
5460 if test "${enable_copy_only+set}" = set; then :
5461 enableval=$enable_copy_only; OCOPY=$enableval
5466 if test $OCOPY != "yes"; then
5472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCOPY" >&5
5473 $as_echo "$OCOPY" >&6; }
5480 REM_CHOWN="# REM_CHOWN"
5482 CRON_INTERVAL_SEC=600
5495 # Check whether documentation should be installed
5496 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether documentation should be installed" >&5
5497 $as_echo_n "checking whether documentation should be installed... " >&6; }
5498 # Check whether --enable-documentation was given.
5499 if test "${enable_documentation+set}" = set; then :
5500 enableval=$enable_documentation; AUX_DOC=$enableval
5505 if test $AUX_DOC != "no"; then
5512 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUX_DOC" >&5
5513 $as_echo "$AUX_DOC" >&6; }
5516 # Set directory for installing manual pages (see comment in Makefile)
5519 # Check whether --debuginfo options should be allowed
5520 # Check whether --enable-debuginfo was given.
5521 if test "${enable_debuginfo+set}" = set; then :
5522 enableval=$enable_debuginfo; WITH_DEBUG=yes ; DFLAGS="$DFLAGS -DDEBUG"
5530 # Check whether object files should be stripped
5531 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether object files should be stripped" >&5
5532 $as_echo_n "checking whether object files should be stripped... " >&6; }
5533 # Check whether --enable-stripping was given.
5534 if test "${enable_stripping+set}" = set; then :
5535 enableval=$enable_stripping; AUX_STRIP=$enableval
5540 if test $AUX_STRIP != "no"; then
5547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUX_STRIP" >&5
5548 $as_echo "$AUX_STRIP" >&6; }
5553 echo Now create files:
5555 ac_config_files="$ac_config_files sa1"
5556 # Permissions must be changed
5557 ac_config_files="$ac_config_files sa2"
5558 # Permissions must be changed
5559 ac_config_files="$ac_config_files cron/crontab:cron/crontab.sample"
5560 # File must be renamed
5561 ac_config_files="$ac_config_files sysstat.sysconfig"
5563 ac_config_files="$ac_config_files version.h:version.in"
5564 # File must be renamed
5565 ac_config_files="$ac_config_files sysconfig.h:sysconfig.in"
5566 # File must be renamed
5567 ac_config_files="$ac_config_files cron/sysstat.cron.daily"
5569 ac_config_files="$ac_config_files cron/sysstat.cron.hourly"
5571 ac_config_files="$ac_config_files cron/sysstat.crond"
5573 ac_config_files="$ac_config_files cron/sysstat.crond.sample.in:cron/sysstat.crond.in"
5575 ac_config_files="$ac_config_files sysstat"
5576 # Permissions must be changed
5577 ac_config_files="$ac_config_files sysstat.service"
5579 ac_config_files="$ac_config_files cron/sysstat-collect.service"
5581 ac_config_files="$ac_config_files cron/sysstat-collect.timer"
5583 ac_config_files="$ac_config_files cron/sysstat-summary.service"
5585 ac_config_files="$ac_config_files cron/sysstat-summary.timer"
5587 ac_config_files="$ac_config_files man/sa1.8:man/sa1.in"
5588 # File must be renamed
5589 ac_config_files="$ac_config_files man/sa2.8:man/sa2.in"
5590 # File must be renamed
5591 ac_config_files="$ac_config_files man/sadc.8:man/sadc.in"
5592 # File must be renamed
5593 ac_config_files="$ac_config_files man/sadf.1:man/sadf.in"
5594 # File must be renamed
5595 ac_config_files="$ac_config_files man/sar.1:man/sar.in"
5596 # File must be renamed
5597 ac_config_files="$ac_config_files man/sysstat.5:man/sysstat.in"
5598 # File must be renamed
5599 ac_config_files="$ac_config_files man/iostat.1:man/iostat.in"
5600 # File must be renamed
5601 ac_config_files="$ac_config_files man/cifsiostat.1:man/cifsiostat.in"
5602 # File must be renamed
5603 ac_config_files="$ac_config_files tests/0230"
5605 ac_config_files="$ac_config_files tests/0231"
5607 ac_config_files="$ac_config_files tests/0232"
5609 ac_config_files="$ac_config_files tests/0240"
5611 ac_config_files="$ac_config_files tests/0250"
5614 ac_config_files="$ac_config_files Makefile"
5616 cat >confcache <<\_ACEOF
5617 # This file is a shell script that caches the results of configure
5618 # tests run on this system so they can be shared between configure
5619 # scripts and configure runs, see configure's option --config-cache.
5620 # It is not useful on other systems. If it contains results you don't
5621 # want to keep, you may remove or edit it.
5623 # config.status only pays attention to the cache file if you give it
5624 # the --recheck option to rerun configure.
5626 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5627 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5632 # The following way of writing the cache mishandles newlines in values,
5633 # but we know of no workaround that is simple, portable, and efficient.
5634 # So, we kill variables containing newlines.
5635 # Ultrix sh set writes to stderr and can't be redirected directly,
5636 # and sets the high bit in the cache file unless we assign to the vars.
5638 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5639 eval ac_val=\$$ac_var
5643 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5644 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5647 _ | IFS | as_nl) ;; #(
5648 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5649 *) { eval $ac_var=; unset $ac_var;} ;;
5655 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5656 *${as_nl}ac_space=\ *)
5657 # `set' does not quote correctly, so add quotes: double-quote
5658 # substitution turns \\\\ into \\, and sed turns \\ into \.
5661 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5664 # `set' quotes correctly as required by POSIX, so do not add quotes.
5665 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5674 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5676 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5678 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5679 if test -w "$cache_file"; then
5680 if test "x$cache_file" != "x/dev/null"; then
5681 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5682 $as_echo "$as_me: updating cache $cache_file" >&6;}
5683 if test ! -f "$cache_file" || test -h "$cache_file"; then
5684 cat confcache >"$cache_file"
5686 case $cache_file in #(
5688 mv -f confcache "$cache_file"$$ &&
5689 mv -f "$cache_file"$$ "$cache_file" ;; #(
5691 mv -f confcache "$cache_file" ;;
5696 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5697 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5702 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5703 # Let make expand exec_prefix.
5704 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5706 # Transform confdefs.h into DEFS.
5707 # Protect against shell expansion while executing Makefile rules.
5708 # Protect against Makefile macro expansion.
5710 # If the first sed substitution is executed (which looks for macros that
5711 # take arguments), then branch to the quote section. Otherwise,
5712 # look for a macro that doesn't take arguments.
5722 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
5724 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
5728 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
5741 DEFS=`sed -n "$ac_script" confdefs.h`
5747 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5748 # 1. Remove the extension, and $U if already installed.
5749 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5750 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5751 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5752 # will be set to the directory where LIBOBJS objects are built.
5753 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5754 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
5758 LTLIBOBJS=$ac_ltlibobjs
5762 : "${CONFIG_STATUS=./config.status}"
5764 ac_clean_files_save=$ac_clean_files
5765 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5766 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5767 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5769 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5771 # Generated by $as_me.
5772 # Run this file to recreate the current configuration.
5773 # Compiler output produced by configure, useful for debugging
5774 # configure, is in config.log if it exists.
5780 SHELL=\${CONFIG_SHELL-$SHELL}
5783 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5784 ## -------------------- ##
5785 ## M4sh Initialization. ##
5786 ## -------------------- ##
5788 # Be more Bourne compatible
5789 DUALCASE=1; export DUALCASE # for MKS sh
5790 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
5793 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5794 # is contrary to our usage. Disable this feature.
5795 alias -g '${1+"$@"}'='"$@"'
5796 setopt NO_GLOB_SUBST
5798 case `(set -o) 2>/dev/null` in #(
5810 # Printing a long string crashes Solaris 7 /usr/bin/printf.
5811 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5812 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5813 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5814 # Prefer a ksh shell builtin over an external printf program on Solaris,
5815 # but without wasting forks for bash or zsh.
5816 if test -z "$BASH_VERSION$ZSH_VERSION" \
5817 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5818 as_echo='print -r --'
5819 as_echo_n='print -rn --'
5820 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5821 as_echo='printf %s\n'
5822 as_echo_n='printf %s'
5824 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5825 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5826 as_echo_n='/usr/ucb/echo -n'
5828 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5829 as_echo_n_body='eval
5833 expr "X$arg" : "X\\(.*\\)$as_nl";
5834 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5836 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5838 export as_echo_n_body
5839 as_echo_n='sh -c $as_echo_n_body as_echo'
5842 as_echo='sh -c $as_echo_body as_echo'
5845 # The user is always right.
5846 if test "${PATH_SEPARATOR+set}" != set; then
5848 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5849 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5856 # We need space, tab and new line, in precisely that order. Quoting is
5857 # there to prevent editors from complaining about space-tab.
5858 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
5859 # splitting by setting IFS to empty value.)
5862 # Find who we are. Look in the path if we contain no directory separator.
5865 *[\\/]* ) as_myself=$0 ;;
5866 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5870 test -z "$as_dir" && as_dir=.
5871 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5877 # We did not find ourselves, most probably we were run as `sh COMMAND'
5878 # in which case we are not to be found in the path.
5879 if test "x$as_myself" = x; then
5882 if test ! -f "$as_myself"; then
5883 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5887 # Unset variables that we do not need and which cause bugs (e.g. in
5888 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
5889 # suppresses any "Segmentation fault" message there. '((' could
5890 # trigger a bug in pdksh 5.2.14.
5891 for as_var in BASH_ENV ENV MAIL MAILPATH
5892 do eval test x\${$as_var+set} = xset \
5893 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5906 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5909 # as_fn_error STATUS ERROR [LINENO LOG_FD]
5910 # ----------------------------------------
5911 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5912 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5913 # script with STATUS, using 1 if that was 0.
5916 as_status=$1; test $as_status -eq 0 && as_status=1
5918 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5919 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
5921 $as_echo "$as_me: error: $2" >&2
5922 as_fn_exit $as_status
5926 # as_fn_set_status STATUS
5927 # -----------------------
5928 # Set $? to STATUS, without forking.
5932 } # as_fn_set_status
5936 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5946 # Portably unset VAR.
5949 { eval $1=; unset $1;}
5951 as_unset=as_fn_unset
5952 # as_fn_append VAR VALUE
5953 # ----------------------
5954 # Append the text in VALUE to the end of the definition contained in VAR. Take
5955 # advantage of any shell optimizations that allow amortized linear growth over
5956 # repeated appends, instead of the typical quadratic growth present in naive
5958 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
5959 eval 'as_fn_append ()
5970 # as_fn_arith ARG...
5971 # ------------------
5972 # Perform arithmetic evaluation on the ARGs, and store the result in the
5973 # global $as_val. Take advantage of shells that can avoid forks. The arguments
5974 # must be portable across $(()) and expr.
5975 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
5976 eval 'as_fn_arith ()
5983 as_val=`expr "$@" || test $? -eq 1`
5988 if expr a : '\(a\)' >/dev/null 2>&1 &&
5989 test "X`expr 00001 : '.*\(...\)'`" = X001; then
5995 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5996 as_basename=basename
6001 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6007 as_me=`$as_basename -- "$0" ||
6008 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6009 X"$0" : 'X\(//\)$' \| \
6010 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6012 sed '/^.*\/\([^/][^/]*\)\/*$/{
6026 # Avoid depending upon Character Ranges.
6027 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6028 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6029 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6030 as_cr_digits='0123456789'
6031 as_cr_alnum=$as_cr_Letters$as_cr_digits
6033 ECHO_C= ECHO_N= ECHO_T=
6034 case `echo -n x` in #(((((
6036 case `echo 'xy\c'` in
6037 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
6039 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
6046 rm -f conf$$ conf$$.exe conf$$.file
6047 if test -d conf$$.dir; then
6048 rm -f conf$$.dir/conf$$.file
6051 mkdir conf$$.dir 2>/dev/null
6053 if (echo >conf$$.file) 2>/dev/null; then
6054 if ln -s conf$$.file conf$$ 2>/dev/null; then
6056 # ... but there are two gotchas:
6057 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6058 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6059 # In both cases, we have to default to `cp -pR'.
6060 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6062 elif ln conf$$.file conf$$ 2>/dev/null; then
6070 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6071 rmdir conf$$.dir 2>/dev/null
6076 # Create "$as_dir" as a directory, including parents if necessary.
6081 -*) as_dir=./$as_dir;;
6083 test -d "$as_dir" || eval $as_mkdir_p || {
6087 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6088 *) as_qdir=$as_dir;;
6090 as_dirs="'$as_qdir' $as_dirs"
6091 as_dir=`$as_dirname -- "$as_dir" ||
6092 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6093 X"$as_dir" : 'X\(//\)[^/]' \| \
6094 X"$as_dir" : 'X\(//\)$' \| \
6095 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6096 $as_echo X"$as_dir" |
6097 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6114 test -d "$as_dir" && break
6116 test -z "$as_dirs" || eval "mkdir $as_dirs"
6117 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
6121 if mkdir -p . 2>/dev/null; then
6122 as_mkdir_p='mkdir -p "$as_dir"'
6124 test -d ./-p && rmdir ./-p
6129 # as_fn_executable_p FILE
6130 # -----------------------
6131 # Test if FILE is an executable regular file.
6132 as_fn_executable_p ()
6134 test -f "$1" && test -x "$1"
6135 } # as_fn_executable_p
6137 as_executable_p=as_fn_executable_p
6139 # Sed expression to map a string onto a valid CPP name.
6140 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6142 # Sed expression to map a string onto a valid variable name.
6143 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6147 ## ----------------------------------- ##
6148 ## Main body of $CONFIG_STATUS script. ##
6149 ## ----------------------------------- ##
6151 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
6153 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6154 # Save the log message, to keep $0 and so on meaningful, and to
6155 # report actual input values of CONFIG_FILES etc. instead of their
6156 # values after options handling.
6158 This file was extended by sysstat $as_me 12.1.5, which was
6159 generated by GNU Autoconf 2.69. Invocation command line was
6161 CONFIG_FILES = $CONFIG_FILES
6162 CONFIG_HEADERS = $CONFIG_HEADERS
6163 CONFIG_LINKS = $CONFIG_LINKS
6164 CONFIG_COMMANDS = $CONFIG_COMMANDS
6167 on `(hostname || uname -n) 2>/dev/null | sed 1q`
6172 case $ac_config_files in *"
6173 "*) set x $ac_config_files; shift; ac_config_files=$*;;
6178 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6179 # Files that config.status was made for.
6180 config_files="$ac_config_files"
6184 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6186 \`$as_me' instantiates files and other configuration actions
6187 from templates according to the current configuration. Unless the files
6188 and actions are specified as TAGs, all are instantiated by default.
6190 Usage: $0 [OPTION]... [TAG]...
6192 -h, --help print this help, then exit
6193 -V, --version print version number and configuration settings, then exit
6194 --config print configuration, then exit
6195 -q, --quiet, --silent
6196 do not print progress messages
6197 -d, --debug don't remove temporary files
6198 --recheck update $as_me by reconfiguring in the same conditions
6199 --file=FILE[:TEMPLATE]
6200 instantiate the configuration file FILE
6202 Configuration files:
6205 Report bugs to the package provider."
6208 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6209 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
6211 sysstat config.status 12.1.5
6212 configured by $0, generated by GNU Autoconf 2.69,
6213 with options \\"\$ac_cs_config\\"
6215 Copyright (C) 2012 Free Software Foundation, Inc.
6216 This config.status script is free software; the Free Software Foundation
6217 gives unlimited permission to copy, distribute and modify it."
6221 test -n "\$AWK" || AWK=awk
6224 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6225 # The default lists apply if the user does not specify any file.
6231 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6232 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6236 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6248 # Handling of the options.
6249 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6251 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6252 $as_echo "$ac_cs_version"; exit ;;
6253 --config | --confi | --conf | --con | --co | --c )
6254 $as_echo "$ac_cs_config"; exit ;;
6255 --debug | --debu | --deb | --de | --d | -d )
6257 --file | --fil | --fi | --f )
6260 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6261 '') as_fn_error $? "missing file argument" ;;
6263 as_fn_append CONFIG_FILES " '$ac_optarg'"
6264 ac_need_defaults=false;;
6265 --he | --h | --help | --hel | -h )
6266 $as_echo "$ac_cs_usage"; exit ;;
6267 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6268 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6272 -*) as_fn_error $? "unrecognized option: \`$1'
6273 Try \`$0 --help' for more information." ;;
6275 *) as_fn_append ac_config_targets " $1"
6276 ac_need_defaults=false ;;
6282 ac_configure_extra_args=
6284 if $ac_cs_silent; then
6286 ac_configure_extra_args="$ac_configure_extra_args --silent"
6290 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6291 if \$ac_cs_recheck; then
6292 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6294 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6295 CONFIG_SHELL='$SHELL'
6301 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6305 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6306 ## Running $as_me. ##
6312 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6315 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6317 # Handling of arguments.
6318 for ac_config_target in $ac_config_targets
6320 case $ac_config_target in
6321 "sa1") CONFIG_FILES="$CONFIG_FILES sa1" ;;
6322 "sa2") CONFIG_FILES="$CONFIG_FILES sa2" ;;
6323 "cron/crontab") CONFIG_FILES="$CONFIG_FILES cron/crontab:cron/crontab.sample" ;;
6324 "sysstat.sysconfig") CONFIG_FILES="$CONFIG_FILES sysstat.sysconfig" ;;
6325 "version.h") CONFIG_FILES="$CONFIG_FILES version.h:version.in" ;;
6326 "sysconfig.h") CONFIG_FILES="$CONFIG_FILES sysconfig.h:sysconfig.in" ;;
6327 "cron/sysstat.cron.daily") CONFIG_FILES="$CONFIG_FILES cron/sysstat.cron.daily" ;;
6328 "cron/sysstat.cron.hourly") CONFIG_FILES="$CONFIG_FILES cron/sysstat.cron.hourly" ;;
6329 "cron/sysstat.crond") CONFIG_FILES="$CONFIG_FILES cron/sysstat.crond" ;;
6330 "cron/sysstat.crond.sample.in") CONFIG_FILES="$CONFIG_FILES cron/sysstat.crond.sample.in:cron/sysstat.crond.in" ;;
6331 "sysstat") CONFIG_FILES="$CONFIG_FILES sysstat" ;;
6332 "sysstat.service") CONFIG_FILES="$CONFIG_FILES sysstat.service" ;;
6333 "cron/sysstat-collect.service") CONFIG_FILES="$CONFIG_FILES cron/sysstat-collect.service" ;;
6334 "cron/sysstat-collect.timer") CONFIG_FILES="$CONFIG_FILES cron/sysstat-collect.timer" ;;
6335 "cron/sysstat-summary.service") CONFIG_FILES="$CONFIG_FILES cron/sysstat-summary.service" ;;
6336 "cron/sysstat-summary.timer") CONFIG_FILES="$CONFIG_FILES cron/sysstat-summary.timer" ;;
6337 "man/sa1.8") CONFIG_FILES="$CONFIG_FILES man/sa1.8:man/sa1.in" ;;
6338 "man/sa2.8") CONFIG_FILES="$CONFIG_FILES man/sa2.8:man/sa2.in" ;;
6339 "man/sadc.8") CONFIG_FILES="$CONFIG_FILES man/sadc.8:man/sadc.in" ;;
6340 "man/sadf.1") CONFIG_FILES="$CONFIG_FILES man/sadf.1:man/sadf.in" ;;
6341 "man/sar.1") CONFIG_FILES="$CONFIG_FILES man/sar.1:man/sar.in" ;;
6342 "man/sysstat.5") CONFIG_FILES="$CONFIG_FILES man/sysstat.5:man/sysstat.in" ;;
6343 "man/iostat.1") CONFIG_FILES="$CONFIG_FILES man/iostat.1:man/iostat.in" ;;
6344 "man/cifsiostat.1") CONFIG_FILES="$CONFIG_FILES man/cifsiostat.1:man/cifsiostat.in" ;;
6345 "tests/0230") CONFIG_FILES="$CONFIG_FILES tests/0230" ;;
6346 "tests/0231") CONFIG_FILES="$CONFIG_FILES tests/0231" ;;
6347 "tests/0232") CONFIG_FILES="$CONFIG_FILES tests/0232" ;;
6348 "tests/0240") CONFIG_FILES="$CONFIG_FILES tests/0240" ;;
6349 "tests/0250") CONFIG_FILES="$CONFIG_FILES tests/0250" ;;
6350 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6352 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
6357 # If the user did not use the arguments to specify the items to instantiate,
6358 # then the envvar interface is used. Set only those that are not.
6359 # We use the long form for the default assignment because of an extremely
6360 # bizarre bug on SunOS 4.1.3.
6361 if $ac_need_defaults; then
6362 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6365 # Have a temporary directory for convenience. Make it in the build tree
6366 # simply because there is no reason against having it here, and in addition,
6367 # creating and moving files from /tmp can sometimes cause problems.
6368 # Hook for its removal unless debugging.
6369 # Note that there is a small window in which the directory will not be cleaned:
6370 # after its creation but before its name has been assigned to `$tmp'.
6374 trap 'exit_status=$?
6376 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
6378 trap 'as_fn_exit 1' 1 2 13 15
6380 # Create a (secure) tmp directory for tmp files.
6383 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6387 tmp=./conf$$-$RANDOM
6388 (umask 077 && mkdir "$tmp")
6389 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
6392 # Set up the scripts for CONFIG_FILES section.
6393 # No need to generate them if there are no CONFIG_FILES.
6394 # This happens for instance with `./config.status config.h'.
6395 if test -n "$CONFIG_FILES"; then
6398 ac_cr=`echo X | tr X '\015'`
6399 # On cygwin, bash can eat \r inside `` if the user requested igncr.
6400 # But we know of no other shell where ac_cr would be empty at this
6401 # point, so we can use a bashism as a fallback.
6402 if test "x$ac_cr" = x; then
6403 eval ac_cr=\$\'\\r\'
6405 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6406 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6412 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
6417 echo "cat >conf$$subs.awk <<_ACEOF" &&
6418 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6421 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6422 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
6424 for ac_last_try in false false false false false :; do
6425 . ./conf$$subs.sh ||
6426 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6428 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6429 if test $ac_delim_n = $ac_delim_num; then
6431 elif $ac_last_try; then
6432 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6434 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6439 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6440 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
6444 s/^/S["/; s/!.*/"]=/
6454 s/\(.\{148\}\)..*/\1/
6456 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6461 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6468 s/\(.\{148\}\)..*/\1/
6470 s/["\\]/\\&/g; s/^/"/; s/$/"/
6474 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6479 ' <conf$$subs.awk | sed '
6484 ' >>$CONFIG_STATUS || ac_write_fail=1
6485 rm -f conf$$subs.awk
6486 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6488 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
6489 for (key in S) S_is_set[key] = 1
6495 nfields = split(line, field, "@")
6497 len = length(field[1])
6498 for (i = 2; i < nfields; i++) {
6500 keylen = length(key)
6501 if (S_is_set[key]) {
6503 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6504 len += length(value) + length(field[++i])
6515 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6516 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6517 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6520 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
6521 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
6524 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
6525 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
6526 # trailing colons and then remove the whole line if VPATH becomes empty
6527 # (actually we leave an empty line to preserve line numbers).
6528 if test "x$srcdir" = x.; then
6529 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
6547 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6548 fi # test -n "$CONFIG_FILES"
6551 eval set X " :F $CONFIG_FILES "
6556 :[FHLC]) ac_mode=$ac_tag; continue;;
6558 case $ac_mode$ac_tag in
6560 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
6561 :[FH]-) ac_tag=-:-;;
6562 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6579 -) ac_f="$ac_tmp/stdin";;
6580 *) # Look for the file first in the build tree, then in the source tree
6581 # (if the path is not absolute). The absolute path cannot be DOS-style,
6582 # because $ac_f cannot contain `:'.
6586 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6588 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6590 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6591 as_fn_append ac_file_inputs " '$ac_f'"
6594 # Let's still pretend it is `configure' which instantiates (i.e., don't
6595 # use $as_me), people would be surprised to read:
6596 # /* config.h. Generated by config.status. */
6597 configure_input='Generated from '`
6598 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6600 if test x"$ac_file" != x-; then
6601 configure_input="$ac_file. $configure_input"
6602 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6603 $as_echo "$as_me: creating $ac_file" >&6;}
6605 # Neutralize special characters interpreted by sed in replacement strings.
6606 case $configure_input in #(
6607 *\&* | *\|* | *\\* )
6608 ac_sed_conf_input=`$as_echo "$configure_input" |
6609 sed 's/[\\\\&|]/\\\\&/g'`;; #(
6610 *) ac_sed_conf_input=$configure_input;;
6614 *:-:* | *:-) cat >"$ac_tmp/stdin" \
6615 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
6620 ac_dir=`$as_dirname -- "$ac_file" ||
6621 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6622 X"$ac_file" : 'X\(//\)[^/]' \| \
6623 X"$ac_file" : 'X\(//\)$' \| \
6624 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6625 $as_echo X"$ac_file" |
6626 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6643 as_dir="$ac_dir"; as_fn_mkdir_p
6647 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6649 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6650 # A ".." for each directory in $ac_dir_suffix.
6651 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6652 case $ac_top_builddir_sub in
6653 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6654 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6657 ac_abs_top_builddir=$ac_pwd
6658 ac_abs_builddir=$ac_pwd$ac_dir_suffix
6659 # for backward compatibility:
6660 ac_top_builddir=$ac_top_build_prefix
6663 .) # We are building in place.
6665 ac_top_srcdir=$ac_top_builddir_sub
6666 ac_abs_top_srcdir=$ac_pwd ;;
6667 [\\/]* | ?:[\\/]* ) # Absolute name.
6668 ac_srcdir=$srcdir$ac_dir_suffix;
6669 ac_top_srcdir=$srcdir
6670 ac_abs_top_srcdir=$srcdir ;;
6672 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6673 ac_top_srcdir=$ac_top_build_prefix$srcdir
6674 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6676 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6687 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6688 # If the template does not know about datarootdir, expand it.
6689 # FIXME: This hack should be removed a few years after 2.60.
6690 ac_datarootdir_hack=; ac_datarootdir_seen=
6701 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6702 *datarootdir*) ac_datarootdir_seen=yes;;
6703 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6704 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6705 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6707 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6708 ac_datarootdir_hack='
6709 s&@datadir@&$datadir&g
6710 s&@docdir@&$docdir&g
6711 s&@infodir@&$infodir&g
6712 s&@localedir@&$localedir&g
6713 s&@mandir@&$mandir&g
6714 s&\\\${datarootdir}&$datarootdir&g' ;;
6718 # Neutralize VPATH when `$srcdir' = `.'.
6719 # Shell code in configure.ac might set extrasub.
6720 # FIXME: do we really want to maintain this feature?
6721 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6722 ac_sed_extra="$ac_vpsub
6725 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6727 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6728 s|@configure_input@|$ac_sed_conf_input|;t t
6729 s&@top_builddir@&$ac_top_builddir_sub&;t t
6730 s&@top_build_prefix@&$ac_top_build_prefix&;t t
6731 s&@srcdir@&$ac_srcdir&;t t
6732 s&@abs_srcdir@&$ac_abs_srcdir&;t t
6733 s&@top_srcdir@&$ac_top_srcdir&;t t
6734 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6735 s&@builddir@&$ac_builddir&;t t
6736 s&@abs_builddir@&$ac_abs_builddir&;t t
6737 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6738 $ac_datarootdir_hack
6740 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
6741 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6743 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6744 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
6745 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
6746 "$ac_tmp/out"`; test -z "$ac_out"; } &&
6747 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6748 which seems to be undefined. Please make sure it is defined" >&5
6749 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6750 which seems to be undefined. Please make sure it is defined" >&2;}
6752 rm -f "$ac_tmp/stdin"
6754 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
6755 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
6757 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6765 case $ac_file$ac_mode in
6766 "sa1":F) chmod +x sa1 ;;
6767 "sa2":F) chmod +x sa2 ;;
6768 "cron/sysstat.crond.sample.in":F) sed s/^/#/ cron/sysstat.crond.sample.in > cron/sysstat.crond.sample ;;
6769 "sysstat":F) chmod +x sysstat ;;
6777 ac_clean_files=$ac_clean_files_save
6779 test $ac_write_fail = 0 ||
6780 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
6783 # configure is writing to config.log, and then calls config.status.
6784 # config.status does its own redirection, appending to config.log.
6785 # Unfortunately, on DOS this fails, as config.log is still kept open
6786 # by configure, so config.status won't be able to write to it; its
6787 # output is simply discarded. So we exec the FD to /dev/null,
6788 # effectively closing config.log, so it can be properly (re)opened and
6789 # appended to by config.status. When coming back to configure, we
6790 # need to make the FD available again.
6791 if test "$no_create" != yes; then
6793 ac_config_status_args=
6794 test "$silent" = yes &&
6795 ac_config_status_args="$ac_config_status_args --quiet"
6797 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6799 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6800 # would make configure fail if this is the last instruction.
6801 $ac_cs_success || as_fn_exit 1
6803 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6804 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6805 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
6810 Sysstat version: $PACKAGE_VERSION
6811 Installation prefix: $prefix
6812 rc directory: ${RC_DIR}
6813 Init directory: ${INIT_DIR}
6814 Systemd unit dir: ${with_systemdsystemunitdir}
6815 Configuration directory: ${SYSCONFIG_DIR}
6816 Man pages directory: $mandir
6818 Compiler flags: $CFLAGS