2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.69 for sysstat 11.1.3.
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='11.1.3'
581 PACKAGE_STRING='sysstat 11.1.3'
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
645 IGNORE_FILE_ATTRIBUTES
722 program_transform_name
735 enable_option_checking
736 with_systemdsystemunitdir
742 enable_compress_manpg
752 ac_precious_vars='build_alias
774 # Initialize some variables set by options.
776 ac_init_version=false
777 ac_unrecognized_opts=
779 # The variables have the same names as the options, with
780 # dashes changed to underlines.
788 program_transform_name=s,x,x,
796 # Installation directory options.
797 # These are left unexpanded so users can "make install exec_prefix=/foo"
798 # and all the variables that are supposed to be based on exec_prefix
799 # by default will actually change.
800 # Use braces instead of parens because sh, perl, etc. also accept them.
801 # (The list follows the same order as the GNU Coding Standards.)
802 bindir='${exec_prefix}/bin'
803 sbindir='${exec_prefix}/sbin'
804 libexecdir='${exec_prefix}/libexec'
805 datarootdir='${prefix}/share'
806 datadir='${datarootdir}'
807 sysconfdir='${prefix}/etc'
808 sharedstatedir='${prefix}/com'
809 localstatedir='${prefix}/var'
810 includedir='${prefix}/include'
811 oldincludedir='/usr/include'
812 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
813 infodir='${datarootdir}/info'
818 libdir='${exec_prefix}/lib'
819 localedir='${datarootdir}/locale'
820 mandir='${datarootdir}/man'
826 # If the previous option needs an argument, assign it.
827 if test -n "$ac_prev"; then
828 eval $ac_prev=\$ac_option
834 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
839 # Accept the important Cygnus configure options, so we can diagnose typos.
841 case $ac_dashdash$ac_option in
845 -bindir | --bindir | --bindi | --bind | --bin | --bi)
847 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
850 -build | --build | --buil | --bui | --bu)
851 ac_prev=build_alias ;;
852 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
853 build_alias=$ac_optarg ;;
855 -cache-file | --cache-file | --cache-fil | --cache-fi \
856 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
857 ac_prev=cache_file ;;
858 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
859 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
860 cache_file=$ac_optarg ;;
863 cache_file=config.cache ;;
865 -datadir | --datadir | --datadi | --datad)
867 -datadir=* | --datadir=* | --datadi=* | --datad=*)
868 datadir=$ac_optarg ;;
870 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
871 | --dataroo | --dataro | --datar)
872 ac_prev=datarootdir ;;
873 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
874 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
875 datarootdir=$ac_optarg ;;
877 -disable-* | --disable-*)
878 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
879 # Reject names that are not valid shell variable names.
880 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
881 as_fn_error $? "invalid feature name: $ac_useropt"
882 ac_useropt_orig=$ac_useropt
883 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
884 case $ac_user_opts in
888 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
889 ac_unrecognized_sep=', ';;
891 eval enable_$ac_useropt=no ;;
893 -docdir | --docdir | --docdi | --doc | --do)
895 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
898 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
900 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
903 -enable-* | --enable-*)
904 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
905 # Reject names that are not valid shell variable names.
906 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
907 as_fn_error $? "invalid feature name: $ac_useropt"
908 ac_useropt_orig=$ac_useropt
909 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
910 case $ac_user_opts in
914 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
915 ac_unrecognized_sep=', ';;
917 eval enable_$ac_useropt=\$ac_optarg ;;
919 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
920 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
921 | --exec | --exe | --ex)
922 ac_prev=exec_prefix ;;
923 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
924 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
925 | --exec=* | --exe=* | --ex=*)
926 exec_prefix=$ac_optarg ;;
928 -gas | --gas | --ga | --g)
929 # Obsolete; use --with-gas.
932 -help | --help | --hel | --he | -h)
934 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
935 ac_init_help=recursive ;;
936 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
937 ac_init_help=short ;;
939 -host | --host | --hos | --ho)
940 ac_prev=host_alias ;;
941 -host=* | --host=* | --hos=* | --ho=*)
942 host_alias=$ac_optarg ;;
944 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
946 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
948 htmldir=$ac_optarg ;;
950 -includedir | --includedir | --includedi | --included | --include \
951 | --includ | --inclu | --incl | --inc)
952 ac_prev=includedir ;;
953 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
954 | --includ=* | --inclu=* | --incl=* | --inc=*)
955 includedir=$ac_optarg ;;
957 -infodir | --infodir | --infodi | --infod | --info | --inf)
959 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
960 infodir=$ac_optarg ;;
962 -libdir | --libdir | --libdi | --libd)
964 -libdir=* | --libdir=* | --libdi=* | --libd=*)
967 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
968 | --libexe | --libex | --libe)
969 ac_prev=libexecdir ;;
970 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
971 | --libexe=* | --libex=* | --libe=*)
972 libexecdir=$ac_optarg ;;
974 -localedir | --localedir | --localedi | --localed | --locale)
976 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
977 localedir=$ac_optarg ;;
979 -localstatedir | --localstatedir | --localstatedi | --localstated \
980 | --localstate | --localstat | --localsta | --localst | --locals)
981 ac_prev=localstatedir ;;
982 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
983 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
984 localstatedir=$ac_optarg ;;
986 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
988 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
992 # Obsolete; use --without-fp.
995 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
996 | --no-cr | --no-c | -n)
999 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1000 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1003 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1004 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1005 | --oldin | --oldi | --old | --ol | --o)
1006 ac_prev=oldincludedir ;;
1007 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1008 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1009 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1010 oldincludedir=$ac_optarg ;;
1012 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1014 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1015 prefix=$ac_optarg ;;
1017 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1018 | --program-pre | --program-pr | --program-p)
1019 ac_prev=program_prefix ;;
1020 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1021 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1022 program_prefix=$ac_optarg ;;
1024 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1025 | --program-suf | --program-su | --program-s)
1026 ac_prev=program_suffix ;;
1027 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1028 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1029 program_suffix=$ac_optarg ;;
1031 -program-transform-name | --program-transform-name \
1032 | --program-transform-nam | --program-transform-na \
1033 | --program-transform-n | --program-transform- \
1034 | --program-transform | --program-transfor \
1035 | --program-transfo | --program-transf \
1036 | --program-trans | --program-tran \
1037 | --progr-tra | --program-tr | --program-t)
1038 ac_prev=program_transform_name ;;
1039 -program-transform-name=* | --program-transform-name=* \
1040 | --program-transform-nam=* | --program-transform-na=* \
1041 | --program-transform-n=* | --program-transform-=* \
1042 | --program-transform=* | --program-transfor=* \
1043 | --program-transfo=* | --program-transf=* \
1044 | --program-trans=* | --program-tran=* \
1045 | --progr-tra=* | --program-tr=* | --program-t=*)
1046 program_transform_name=$ac_optarg ;;
1048 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1050 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1051 pdfdir=$ac_optarg ;;
1053 -psdir | --psdir | --psdi | --psd | --ps)
1055 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1058 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1059 | -silent | --silent | --silen | --sile | --sil)
1062 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1064 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1066 sbindir=$ac_optarg ;;
1068 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1069 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1070 | --sharedst | --shareds | --shared | --share | --shar \
1072 ac_prev=sharedstatedir ;;
1073 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1074 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1075 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1077 sharedstatedir=$ac_optarg ;;
1079 -site | --site | --sit)
1081 -site=* | --site=* | --sit=*)
1084 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1086 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1087 srcdir=$ac_optarg ;;
1089 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1090 | --syscon | --sysco | --sysc | --sys | --sy)
1091 ac_prev=sysconfdir ;;
1092 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1093 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1094 sysconfdir=$ac_optarg ;;
1096 -target | --target | --targe | --targ | --tar | --ta | --t)
1097 ac_prev=target_alias ;;
1098 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1099 target_alias=$ac_optarg ;;
1101 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1104 -version | --version | --versio | --versi | --vers | -V)
1105 ac_init_version=: ;;
1108 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1109 # Reject names that are not valid shell variable names.
1110 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1111 as_fn_error $? "invalid package name: $ac_useropt"
1112 ac_useropt_orig=$ac_useropt
1113 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1114 case $ac_user_opts in
1118 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1119 ac_unrecognized_sep=', ';;
1121 eval with_$ac_useropt=\$ac_optarg ;;
1123 -without-* | --without-*)
1124 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1125 # Reject names that are not valid shell variable names.
1126 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1127 as_fn_error $? "invalid package name: $ac_useropt"
1128 ac_useropt_orig=$ac_useropt
1129 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1130 case $ac_user_opts in
1134 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1135 ac_unrecognized_sep=', ';;
1137 eval with_$ac_useropt=no ;;
1140 # Obsolete; use --with-x.
1143 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1144 | --x-incl | --x-inc | --x-in | --x-i)
1145 ac_prev=x_includes ;;
1146 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1147 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1148 x_includes=$ac_optarg ;;
1150 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1151 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1152 ac_prev=x_libraries ;;
1153 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1154 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1155 x_libraries=$ac_optarg ;;
1157 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1158 Try \`$0 --help' for more information"
1162 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1163 # Reject names that are not valid shell variable names.
1164 case $ac_envvar in #(
1165 '' | [0-9]* | *[!_$as_cr_alnum]* )
1166 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1168 eval $ac_envvar=\$ac_optarg
1169 export $ac_envvar ;;
1172 # FIXME: should be removed in autoconf 3.0.
1173 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1174 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1175 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1176 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1182 if test -n "$ac_prev"; then
1183 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1184 as_fn_error $? "missing argument to $ac_option"
1187 if test -n "$ac_unrecognized_opts"; then
1188 case $enable_option_checking in
1190 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1191 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1195 # Check all directory arguments for consistency.
1196 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1197 datadir sysconfdir sharedstatedir localstatedir includedir \
1198 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1199 libdir localedir mandir
1201 eval ac_val=\$$ac_var
1202 # Remove trailing slashes.
1205 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1206 eval $ac_var=\$ac_val;;
1208 # Be sure to have absolute directory names.
1210 [\\/$]* | ?:[\\/]* ) continue;;
1211 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1213 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1216 # There might be people who depend on the old broken behavior: `$host'
1217 # used to hold the argument of --host etc.
1218 # FIXME: To remove some day.
1221 target=$target_alias
1223 # FIXME: To remove some day.
1224 if test "x$host_alias" != x; then
1225 if test "x$build_alias" = x; then
1226 cross_compiling=maybe
1227 elif test "x$build_alias" != "x$host_alias"; then
1233 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1235 test "$silent" = yes && exec 6>/dev/null
1238 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1239 ac_ls_di=`ls -di .` &&
1240 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1241 as_fn_error $? "working directory cannot be determined"
1242 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1243 as_fn_error $? "pwd does not report name of working directory"
1246 # Find the source files, if location was not specified.
1247 if test -z "$srcdir"; then
1248 ac_srcdir_defaulted=yes
1249 # Try the directory containing this script, then the parent directory.
1250 ac_confdir=`$as_dirname -- "$as_myself" ||
1251 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1252 X"$as_myself" : 'X\(//\)[^/]' \| \
1253 X"$as_myself" : 'X\(//\)$' \| \
1254 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1255 $as_echo X"$as_myself" |
1256 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1274 if test ! -r "$srcdir/$ac_unique_file"; then
1278 ac_srcdir_defaulted=no
1280 if test ! -r "$srcdir/$ac_unique_file"; then
1281 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1282 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1284 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1286 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1288 # When building in place, set srcdir=.
1289 if test "$ac_abs_confdir" = "$ac_pwd"; then
1292 # Remove unnecessary trailing slashes from srcdir.
1293 # Double slashes in file names in object file debugging info
1294 # mess up M-x gdb in Emacs.
1296 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1298 for ac_var in $ac_precious_vars; do
1299 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1300 eval ac_env_${ac_var}_value=\$${ac_var}
1301 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1302 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1306 # Report the --help message.
1308 if test "$ac_init_help" = "long"; then
1309 # Omit some internal or obsolete options to make the list less imposing.
1310 # This message is too long to be a string in the A/UX 3.1 sh.
1312 \`configure' configures sysstat 11.1.3 to adapt to many kinds of systems.
1314 Usage: $0 [OPTION]... [VAR=VALUE]...
1316 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1317 VAR=VALUE. See below for descriptions of some of the useful variables.
1319 Defaults for the options are specified in brackets.
1322 -h, --help display this help and exit
1323 --help=short display options specific to this package
1324 --help=recursive display the short help of all the included packages
1325 -V, --version display version information and exit
1326 -q, --quiet, --silent do not print \`checking ...' messages
1327 --cache-file=FILE cache test results in FILE [disabled]
1328 -C, --config-cache alias for \`--cache-file=config.cache'
1329 -n, --no-create do not create output files
1330 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1332 Installation directories:
1333 --prefix=PREFIX install architecture-independent files in PREFIX
1334 [$ac_default_prefix]
1335 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1338 By default, \`make install' will install all the files in
1339 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1340 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1341 for instance \`--prefix=\$HOME'.
1343 For better control, use the options below.
1345 Fine tuning of the installation directories:
1346 --bindir=DIR user executables [EPREFIX/bin]
1347 --sbindir=DIR system admin executables [EPREFIX/sbin]
1348 --libexecdir=DIR program executables [EPREFIX/libexec]
1349 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1350 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1351 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1352 --libdir=DIR object code libraries [EPREFIX/lib]
1353 --includedir=DIR C header files [PREFIX/include]
1354 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1355 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1356 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1357 --infodir=DIR info documentation [DATAROOTDIR/info]
1358 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1359 --mandir=DIR man documentation [DATAROOTDIR/man]
1360 --docdir=DIR documentation root [DATAROOTDIR/doc/sysstat]
1361 --htmldir=DIR html documentation [DOCDIR]
1362 --dvidir=DIR dvi documentation [DOCDIR]
1363 --pdfdir=DIR pdf documentation [DOCDIR]
1364 --psdir=DIR ps documentation [DOCDIR]
1371 if test -n "$ac_init_help"; then
1372 case $ac_init_help in
1373 short | recursive ) echo "Configuration of sysstat 11.1.3:";;
1378 --disable-option-checking ignore unrecognized --enable/--with options
1379 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1380 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1381 --disable-sensors disable sensors support
1382 --disable-largefile omit support for large files
1383 --disable-nls disable National Language Support
1384 --enable-yesterday tell sa2 to use data file of the day before
1385 --disable-file-attr do not set attributes on files being installed
1386 --enable-compress-manpg compress sysstat manual pages
1387 --enable-install-isag install isag script
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 prealloc preallocation factor that will determine data files size
1420 (default value is 1)
1421 man_group group for manual pages
1422 cron_owner crontab owner
1426 options to be passed to sadc
1428 Use these variables to override the choices made by `configure' or to help
1429 it to find libraries and programs with nonstandard names/locations.
1431 Report bugs to the package provider.
1436 if test "$ac_init_help" = "recursive"; then
1437 # If there are subdirs, report their specific --help.
1438 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1439 test -d "$ac_dir" ||
1440 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1445 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1447 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1448 # A ".." for each directory in $ac_dir_suffix.
1449 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1450 case $ac_top_builddir_sub in
1451 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1452 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1455 ac_abs_top_builddir=$ac_pwd
1456 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1457 # for backward compatibility:
1458 ac_top_builddir=$ac_top_build_prefix
1461 .) # We are building in place.
1463 ac_top_srcdir=$ac_top_builddir_sub
1464 ac_abs_top_srcdir=$ac_pwd ;;
1465 [\\/]* | ?:[\\/]* ) # Absolute name.
1466 ac_srcdir=$srcdir$ac_dir_suffix;
1467 ac_top_srcdir=$srcdir
1468 ac_abs_top_srcdir=$srcdir ;;
1470 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1471 ac_top_srcdir=$ac_top_build_prefix$srcdir
1472 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1474 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1476 cd "$ac_dir" || { ac_status=$?; continue; }
1477 # Check for guested configure.
1478 if test -f "$ac_srcdir/configure.gnu"; then
1480 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1481 elif test -f "$ac_srcdir/configure"; then
1483 $SHELL "$ac_srcdir/configure" --help=recursive
1485 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1487 cd "$ac_pwd" || { ac_status=$?; break; }
1491 test -n "$ac_init_help" && exit $ac_status
1492 if $ac_init_version; then
1494 sysstat configure 11.1.3
1495 generated by GNU Autoconf 2.69
1497 Copyright (C) 2012 Free Software Foundation, Inc.
1498 This configure script is free software; the Free Software Foundation
1499 gives unlimited permission to copy, distribute and modify it.
1504 ## ------------------------ ##
1505 ## Autoconf initialization. ##
1506 ## ------------------------ ##
1508 # ac_fn_c_try_compile LINENO
1509 # --------------------------
1510 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1511 ac_fn_c_try_compile ()
1513 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1514 rm -f conftest.$ac_objext
1515 if { { ac_try="$ac_compile"
1517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1518 *) ac_try_echo=$ac_try;;
1520 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1521 $as_echo "$ac_try_echo"; } >&5
1522 (eval "$ac_compile") 2>conftest.err
1524 if test -s conftest.err; then
1525 grep -v '^ *+' conftest.err >conftest.er1
1526 cat conftest.er1 >&5
1527 mv -f conftest.er1 conftest.err
1529 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1530 test $ac_status = 0; } && {
1531 test -z "$ac_c_werror_flag" ||
1532 test ! -s conftest.err
1533 } && test -s conftest.$ac_objext; then :
1536 $as_echo "$as_me: failed program was:" >&5
1537 sed 's/^/| /' conftest.$ac_ext >&5
1541 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1542 as_fn_set_status $ac_retval
1544 } # ac_fn_c_try_compile
1546 # ac_fn_c_try_cpp LINENO
1547 # ----------------------
1548 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1551 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1552 if { { ac_try="$ac_cpp conftest.$ac_ext"
1554 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1555 *) ac_try_echo=$ac_try;;
1557 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1558 $as_echo "$ac_try_echo"; } >&5
1559 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1561 if test -s conftest.err; then
1562 grep -v '^ *+' conftest.err >conftest.er1
1563 cat conftest.er1 >&5
1564 mv -f conftest.er1 conftest.err
1566 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1567 test $ac_status = 0; } > conftest.i && {
1568 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1569 test ! -s conftest.err
1573 $as_echo "$as_me: failed program was:" >&5
1574 sed 's/^/| /' conftest.$ac_ext >&5
1578 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1579 as_fn_set_status $ac_retval
1583 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1584 # -------------------------------------------------------
1585 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1586 # the include files in INCLUDES and setting the cache variable VAR
1588 ac_fn_c_check_header_mongrel ()
1590 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1591 if eval \${$3+:} false; then :
1592 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1593 $as_echo_n "checking for $2... " >&6; }
1594 if eval \${$3+:} false; then :
1595 $as_echo_n "(cached) " >&6
1598 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1599 $as_echo "$ac_res" >&6; }
1601 # Is the header compilable?
1602 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1603 $as_echo_n "checking $2 usability... " >&6; }
1604 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1605 /* end confdefs.h. */
1609 if ac_fn_c_try_compile "$LINENO"; then :
1610 ac_header_compiler=yes
1612 ac_header_compiler=no
1614 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1615 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1616 $as_echo "$ac_header_compiler" >&6; }
1618 # Is the header present?
1619 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1620 $as_echo_n "checking $2 presence... " >&6; }
1621 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1622 /* end confdefs.h. */
1625 if ac_fn_c_try_cpp "$LINENO"; then :
1626 ac_header_preproc=yes
1628 ac_header_preproc=no
1630 rm -f conftest.err conftest.i conftest.$ac_ext
1631 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1632 $as_echo "$ac_header_preproc" >&6; }
1634 # So? What about this header?
1635 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1637 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1638 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1639 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1640 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1643 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1644 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1645 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1646 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1647 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1648 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1649 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1650 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1651 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1652 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1655 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1656 $as_echo_n "checking for $2... " >&6; }
1657 if eval \${$3+:} false; then :
1658 $as_echo_n "(cached) " >&6
1660 eval "$3=\$ac_header_compiler"
1663 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1664 $as_echo "$ac_res" >&6; }
1666 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1668 } # ac_fn_c_check_header_mongrel
1670 # ac_fn_c_try_run LINENO
1671 # ----------------------
1672 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1673 # that executables *can* be run.
1676 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1677 if { { ac_try="$ac_link"
1679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1680 *) ac_try_echo=$ac_try;;
1682 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1683 $as_echo "$ac_try_echo"; } >&5
1684 (eval "$ac_link") 2>&5
1686 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1687 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1688 { { case "(($ac_try" in
1689 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1690 *) ac_try_echo=$ac_try;;
1692 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1693 $as_echo "$ac_try_echo"; } >&5
1694 (eval "$ac_try") 2>&5
1696 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1697 test $ac_status = 0; }; }; then :
1700 $as_echo "$as_me: program exited with status $ac_status" >&5
1701 $as_echo "$as_me: failed program was:" >&5
1702 sed 's/^/| /' conftest.$ac_ext >&5
1704 ac_retval=$ac_status
1706 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1707 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1708 as_fn_set_status $ac_retval
1712 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1713 # -------------------------------------------------------
1714 # Tests whether HEADER exists and can be compiled using the include files in
1715 # INCLUDES, setting the cache variable VAR accordingly.
1716 ac_fn_c_check_header_compile ()
1718 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1719 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1720 $as_echo_n "checking for $2... " >&6; }
1721 if eval \${$3+:} false; then :
1722 $as_echo_n "(cached) " >&6
1724 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1725 /* end confdefs.h. */
1729 if ac_fn_c_try_compile "$LINENO"; then :
1734 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1737 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1738 $as_echo "$ac_res" >&6; }
1739 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1741 } # ac_fn_c_check_header_compile
1743 # ac_fn_c_try_link LINENO
1744 # -----------------------
1745 # Try to link conftest.$ac_ext, and return whether this succeeded.
1748 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1749 rm -f conftest.$ac_objext conftest$ac_exeext
1750 if { { ac_try="$ac_link"
1752 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1753 *) ac_try_echo=$ac_try;;
1755 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1756 $as_echo "$ac_try_echo"; } >&5
1757 (eval "$ac_link") 2>conftest.err
1759 if test -s conftest.err; then
1760 grep -v '^ *+' conftest.err >conftest.er1
1761 cat conftest.er1 >&5
1762 mv -f conftest.er1 conftest.err
1764 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1765 test $ac_status = 0; } && {
1766 test -z "$ac_c_werror_flag" ||
1767 test ! -s conftest.err
1768 } && test -s conftest$ac_exeext && {
1769 test "$cross_compiling" = yes ||
1770 test -x conftest$ac_exeext
1774 $as_echo "$as_me: failed program was:" >&5
1775 sed 's/^/| /' conftest.$ac_ext >&5
1779 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1780 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1781 # interfere with the next link command; also delete a directory that is
1782 # left behind by Apple's compiler. We do this before executing the actions.
1783 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1784 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1785 as_fn_set_status $ac_retval
1787 } # ac_fn_c_try_link
1789 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1790 # -------------------------------------------
1791 # Tests whether TYPE exists after having included INCLUDES, setting cache
1792 # variable VAR accordingly.
1793 ac_fn_c_check_type ()
1795 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1796 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1797 $as_echo_n "checking for $2... " >&6; }
1798 if eval \${$3+:} false; then :
1799 $as_echo_n "(cached) " >&6
1802 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1803 /* end confdefs.h. */
1814 if ac_fn_c_try_compile "$LINENO"; then :
1815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1816 /* end confdefs.h. */
1827 if ac_fn_c_try_compile "$LINENO"; then :
1832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1838 $as_echo "$ac_res" >&6; }
1839 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1841 } # ac_fn_c_check_type
1843 # ac_fn_c_check_func LINENO FUNC VAR
1844 # ----------------------------------
1845 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1846 ac_fn_c_check_func ()
1848 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1849 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1850 $as_echo_n "checking for $2... " >&6; }
1851 if eval \${$3+:} false; then :
1852 $as_echo_n "(cached) " >&6
1854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1855 /* end confdefs.h. */
1856 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1857 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1858 #define $2 innocuous_$2
1860 /* System header to define __stub macros and hopefully few prototypes,
1861 which can conflict with char $2 (); below.
1862 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1863 <limits.h> exists even on freestanding compilers. */
1866 # include <limits.h>
1868 # include <assert.h>
1873 /* Override any GCC internal prototype to avoid an error.
1874 Use char because int might match the return type of a GCC
1875 builtin and then its argument prototype would still apply. */
1880 /* The GNU C library defines this for functions which it implements
1881 to always fail with ENOSYS. Some functions are actually named
1882 something starting with __ and the normal name is an alias. */
1883 #if defined __stub_$2 || defined __stub___$2
1895 if ac_fn_c_try_link "$LINENO"; then :
1900 rm -f core conftest.err conftest.$ac_objext \
1901 conftest$ac_exeext conftest.$ac_ext
1904 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1905 $as_echo "$ac_res" >&6; }
1906 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1908 } # ac_fn_c_check_func
1909 cat >config.log <<_ACEOF
1910 This file contains any messages produced by compilers while
1911 running configure, to aid debugging if configure makes a mistake.
1913 It was created by sysstat $as_me 11.1.3, which was
1914 generated by GNU Autoconf 2.69. Invocation command line was
1926 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1927 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1928 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1929 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1930 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1932 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1933 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1935 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1936 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1937 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1938 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1939 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1940 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1941 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1949 test -z "$as_dir" && as_dir=.
1950 $as_echo "PATH: $as_dir"
1966 # Keep a trace of the command line.
1967 # Strip out --no-create and --no-recursion so they do not pile up.
1968 # Strip out --silent because we don't want to record it for future runs.
1969 # Also quote any args containing shell meta-characters.
1970 # Make two passes to allow for proper duplicate-argument suppression.
1974 ac_must_keep_next=false
1980 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1981 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1982 | -silent | --silent | --silen | --sile | --sil)
1985 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1988 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1990 as_fn_append ac_configure_args1 " '$ac_arg'"
1991 if test $ac_must_keep_next = true; then
1992 ac_must_keep_next=false # Got value, back to normal.
1995 *=* | --config-cache | -C | -disable-* | --disable-* \
1996 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1997 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1998 | -with-* | --with-* | -without-* | --without-* | --x)
1999 case "$ac_configure_args0 " in
2000 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2003 -* ) ac_must_keep_next=true ;;
2006 as_fn_append ac_configure_args " '$ac_arg'"
2011 { ac_configure_args0=; unset ac_configure_args0;}
2012 { ac_configure_args1=; unset ac_configure_args1;}
2014 # When interrupted or exit'd, cleanup temporary files, and complete
2015 # config.log. We remove comments because anyway the quotes in there
2016 # would cause problems or look ugly.
2017 # WARNING: Use '\'' to represent an apostrophe within the trap.
2018 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2019 trap 'exit_status=$?
2020 # Save into config.log some information that might help in debugging.
2024 $as_echo "## ---------------- ##
2025 ## Cache variables. ##
2026 ## ---------------- ##"
2028 # The following way of writing the cache mishandles newlines in values,
2030 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2031 eval ac_val=\$$ac_var
2035 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2036 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2039 _ | IFS | as_nl) ;; #(
2040 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2041 *) { eval $ac_var=; unset $ac_var;} ;;
2046 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2047 *${as_nl}ac_space=\ *)
2049 "s/'\''/'\''\\\\'\'''\''/g;
2050 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2053 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2060 $as_echo "## ----------------- ##
2061 ## Output variables. ##
2062 ## ----------------- ##"
2064 for ac_var in $ac_subst_vars
2066 eval ac_val=\$$ac_var
2068 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2070 $as_echo "$ac_var='\''$ac_val'\''"
2074 if test -n "$ac_subst_files"; then
2075 $as_echo "## ------------------- ##
2076 ## File substitutions. ##
2077 ## ------------------- ##"
2079 for ac_var in $ac_subst_files
2081 eval ac_val=\$$ac_var
2083 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2085 $as_echo "$ac_var='\''$ac_val'\''"
2090 if test -s confdefs.h; then
2091 $as_echo "## ----------- ##
2098 test "$ac_signal" != 0 &&
2099 $as_echo "$as_me: caught signal $ac_signal"
2100 $as_echo "$as_me: exit $exit_status"
2102 rm -f core *.core core.conftest.* &&
2103 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2106 for ac_signal in 1 2 13 15; do
2107 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2111 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2112 rm -f -r conftest* confdefs.h
2114 $as_echo "/* confdefs.h */" > confdefs.h
2116 # Predefined preprocessor variables.
2118 cat >>confdefs.h <<_ACEOF
2119 #define PACKAGE_NAME "$PACKAGE_NAME"
2122 cat >>confdefs.h <<_ACEOF
2123 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2126 cat >>confdefs.h <<_ACEOF
2127 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2130 cat >>confdefs.h <<_ACEOF
2131 #define PACKAGE_STRING "$PACKAGE_STRING"
2134 cat >>confdefs.h <<_ACEOF
2135 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2138 cat >>confdefs.h <<_ACEOF
2139 #define PACKAGE_URL "$PACKAGE_URL"
2143 # Let the site file select an alternate cache file if it wants to.
2144 # Prefer an explicitly selected file to automatically selected ones.
2147 if test -n "$CONFIG_SITE"; then
2148 # We do not want a PATH search for config.site.
2149 case $CONFIG_SITE in #((
2150 -*) ac_site_file1=./$CONFIG_SITE;;
2151 */*) ac_site_file1=$CONFIG_SITE;;
2152 *) ac_site_file1=./$CONFIG_SITE;;
2154 elif test "x$prefix" != xNONE; then
2155 ac_site_file1=$prefix/share/config.site
2156 ac_site_file2=$prefix/etc/config.site
2158 ac_site_file1=$ac_default_prefix/share/config.site
2159 ac_site_file2=$ac_default_prefix/etc/config.site
2161 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2163 test "x$ac_site_file" = xNONE && continue
2164 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2165 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2166 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2167 sed 's/^/| /' "$ac_site_file" >&5
2169 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2170 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2171 as_fn_error $? "failed to load site script $ac_site_file
2172 See \`config.log' for more details" "$LINENO" 5; }
2176 if test -r "$cache_file"; then
2177 # Some versions of bash will fail to source /dev/null (special files
2178 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2179 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2180 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2181 $as_echo "$as_me: loading cache $cache_file" >&6;}
2183 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2184 *) . "./$cache_file";;
2188 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2189 $as_echo "$as_me: creating cache $cache_file" >&6;}
2193 # Check that the precious variables saved in the cache have kept the same
2195 ac_cache_corrupted=false
2196 for ac_var in $ac_precious_vars; do
2197 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2198 eval ac_new_set=\$ac_env_${ac_var}_set
2199 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2200 eval ac_new_val=\$ac_env_${ac_var}_value
2201 case $ac_old_set,$ac_new_set in
2203 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2204 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2205 ac_cache_corrupted=: ;;
2207 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2208 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2209 ac_cache_corrupted=: ;;
2212 if test "x$ac_old_val" != "x$ac_new_val"; then
2213 # differences in whitespace do not lead to failure.
2214 ac_old_val_w=`echo x $ac_old_val`
2215 ac_new_val_w=`echo x $ac_new_val`
2216 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2217 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2218 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2219 ac_cache_corrupted=:
2221 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2222 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2223 eval $ac_var=\$ac_old_val
2225 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2226 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2227 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2228 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2231 # Pass precious variables to config.status.
2232 if test "$ac_new_set" = set; then
2234 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2235 *) ac_arg=$ac_var=$ac_new_val ;;
2237 case " $ac_configure_args " in
2238 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2239 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2243 if $ac_cache_corrupted; then
2244 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2245 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2246 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2247 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2248 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2250 ## -------------------- ##
2251 ## Main body of script. ##
2252 ## -------------------- ##
2255 ac_cpp='$CPP $CPPFLAGS'
2256 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2257 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2258 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2262 # Ensure that a recent enough version of Autoconf is being used
2265 # Check whether the configure script is in the right dir
2270 echo Check programs:
2274 ac_cpp='$CPP $CPPFLAGS'
2275 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2276 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2277 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2278 if test -n "$ac_tool_prefix"; then
2279 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2280 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2281 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2282 $as_echo_n "checking for $ac_word... " >&6; }
2283 if ${ac_cv_prog_CC+:} false; then :
2284 $as_echo_n "(cached) " >&6
2286 if test -n "$CC"; then
2287 ac_cv_prog_CC="$CC" # Let the user override the test.
2289 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2293 test -z "$as_dir" && as_dir=.
2294 for ac_exec_ext in '' $ac_executable_extensions; do
2295 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2296 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2297 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2307 if test -n "$CC"; then
2308 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2309 $as_echo "$CC" >&6; }
2311 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2312 $as_echo "no" >&6; }
2317 if test -z "$ac_cv_prog_CC"; then
2319 # Extract the first word of "gcc", so it can be a program name with args.
2320 set dummy gcc; ac_word=$2
2321 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2322 $as_echo_n "checking for $ac_word... " >&6; }
2323 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2324 $as_echo_n "(cached) " >&6
2326 if test -n "$ac_ct_CC"; then
2327 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2329 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2333 test -z "$as_dir" && as_dir=.
2334 for ac_exec_ext in '' $ac_executable_extensions; do
2335 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2336 ac_cv_prog_ac_ct_CC="gcc"
2337 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2346 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2347 if test -n "$ac_ct_CC"; then
2348 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2349 $as_echo "$ac_ct_CC" >&6; }
2351 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2352 $as_echo "no" >&6; }
2355 if test "x$ac_ct_CC" = x; then
2358 case $cross_compiling:$ac_tool_warned in
2360 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2361 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2362 ac_tool_warned=yes ;;
2370 if test -z "$CC"; then
2371 if test -n "$ac_tool_prefix"; then
2372 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2373 set dummy ${ac_tool_prefix}cc; ac_word=$2
2374 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2375 $as_echo_n "checking for $ac_word... " >&6; }
2376 if ${ac_cv_prog_CC+:} false; then :
2377 $as_echo_n "(cached) " >&6
2379 if test -n "$CC"; then
2380 ac_cv_prog_CC="$CC" # Let the user override the test.
2382 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2386 test -z "$as_dir" && as_dir=.
2387 for ac_exec_ext in '' $ac_executable_extensions; do
2388 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2389 ac_cv_prog_CC="${ac_tool_prefix}cc"
2390 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2400 if test -n "$CC"; then
2401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2402 $as_echo "$CC" >&6; }
2404 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2405 $as_echo "no" >&6; }
2411 if test -z "$CC"; then
2412 # Extract the first word of "cc", so it can be a program name with args.
2413 set dummy cc; ac_word=$2
2414 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2415 $as_echo_n "checking for $ac_word... " >&6; }
2416 if ${ac_cv_prog_CC+:} false; then :
2417 $as_echo_n "(cached) " >&6
2419 if test -n "$CC"; then
2420 ac_cv_prog_CC="$CC" # Let the user override the test.
2423 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2427 test -z "$as_dir" && as_dir=.
2428 for ac_exec_ext in '' $ac_executable_extensions; do
2429 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2430 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2431 ac_prog_rejected=yes
2435 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2442 if test $ac_prog_rejected = yes; then
2443 # We found a bogon in the path, so make sure we never use it.
2444 set dummy $ac_cv_prog_CC
2446 if test $# != 0; then
2447 # We chose a different compiler from the bogus one.
2448 # However, it has the same basename, so the bogon will be chosen
2449 # first if we set CC to just the basename; use the full file name.
2451 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2457 if test -n "$CC"; then
2458 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2459 $as_echo "$CC" >&6; }
2461 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2462 $as_echo "no" >&6; }
2467 if test -z "$CC"; then
2468 if test -n "$ac_tool_prefix"; then
2469 for ac_prog in cl.exe
2471 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2472 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2473 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2474 $as_echo_n "checking for $ac_word... " >&6; }
2475 if ${ac_cv_prog_CC+:} false; then :
2476 $as_echo_n "(cached) " >&6
2478 if test -n "$CC"; then
2479 ac_cv_prog_CC="$CC" # Let the user override the test.
2481 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2485 test -z "$as_dir" && as_dir=.
2486 for ac_exec_ext in '' $ac_executable_extensions; do
2487 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2488 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2489 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2499 if test -n "$CC"; then
2500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2501 $as_echo "$CC" >&6; }
2503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2504 $as_echo "no" >&6; }
2508 test -n "$CC" && break
2511 if test -z "$CC"; then
2513 for ac_prog in cl.exe
2515 # Extract the first word of "$ac_prog", so it can be a program name with args.
2516 set dummy $ac_prog; ac_word=$2
2517 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2518 $as_echo_n "checking for $ac_word... " >&6; }
2519 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2520 $as_echo_n "(cached) " >&6
2522 if test -n "$ac_ct_CC"; then
2523 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2525 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2529 test -z "$as_dir" && as_dir=.
2530 for ac_exec_ext in '' $ac_executable_extensions; do
2531 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2532 ac_cv_prog_ac_ct_CC="$ac_prog"
2533 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2542 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2543 if test -n "$ac_ct_CC"; then
2544 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2545 $as_echo "$ac_ct_CC" >&6; }
2547 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2548 $as_echo "no" >&6; }
2552 test -n "$ac_ct_CC" && break
2555 if test "x$ac_ct_CC" = x; then
2558 case $cross_compiling:$ac_tool_warned in
2560 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2561 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2562 ac_tool_warned=yes ;;
2571 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2572 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2573 as_fn_error $? "no acceptable C compiler found in \$PATH
2574 See \`config.log' for more details" "$LINENO" 5; }
2576 # Provide some information about the compiler.
2577 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2580 for ac_option in --version -v -V -qversion; do
2581 { { ac_try="$ac_compiler $ac_option >&5"
2583 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2584 *) ac_try_echo=$ac_try;;
2586 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2587 $as_echo "$ac_try_echo"; } >&5
2588 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2590 if test -s conftest.err; then
2592 ... rest of stderr output deleted ...
2593 10q' conftest.err >conftest.er1
2594 cat conftest.er1 >&5
2596 rm -f conftest.er1 conftest.err
2597 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2598 test $ac_status = 0; }
2601 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2602 /* end confdefs.h. */
2612 ac_clean_files_save=$ac_clean_files
2613 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2614 # Try to create an executable without -o first, disregard a.out.
2615 # It will help us diagnose broken compilers, and finding out an intuition
2617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2618 $as_echo_n "checking whether the C compiler works... " >&6; }
2619 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2621 # The possible output files:
2622 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2625 for ac_file in $ac_files
2628 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2629 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2634 if { { ac_try="$ac_link_default"
2636 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2637 *) ac_try_echo=$ac_try;;
2639 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2640 $as_echo "$ac_try_echo"; } >&5
2641 (eval "$ac_link_default") 2>&5
2643 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2644 test $ac_status = 0; }; then :
2645 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2646 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2647 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2648 # so that the user can short-circuit this test for compilers unknown to
2650 for ac_file in $ac_files ''
2652 test -f "$ac_file" || continue
2654 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2657 # We found the default executable, but exeext='' is most
2661 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2663 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2665 # We set ac_cv_exeext here because the later test for it is not
2666 # safe: cross compilers may not add the suffix if given an `-o'
2667 # argument, so we may need to know it at that point already.
2668 # Even if this section looks crufty: it has the advantage of
2675 test "$ac_cv_exeext" = no && ac_cv_exeext=
2680 if test -z "$ac_file"; then :
2681 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2682 $as_echo "no" >&6; }
2683 $as_echo "$as_me: failed program was:" >&5
2684 sed 's/^/| /' conftest.$ac_ext >&5
2686 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2687 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2688 as_fn_error 77 "C compiler cannot create executables
2689 See \`config.log' for more details" "$LINENO" 5; }
2691 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2692 $as_echo "yes" >&6; }
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2695 $as_echo_n "checking for C compiler default output file name... " >&6; }
2696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2697 $as_echo "$ac_file" >&6; }
2698 ac_exeext=$ac_cv_exeext
2700 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2701 ac_clean_files=$ac_clean_files_save
2702 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2703 $as_echo_n "checking for suffix of executables... " >&6; }
2704 if { { ac_try="$ac_link"
2706 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2707 *) ac_try_echo=$ac_try;;
2709 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2710 $as_echo "$ac_try_echo"; } >&5
2711 (eval "$ac_link") 2>&5
2713 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2714 test $ac_status = 0; }; then :
2715 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2716 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2717 # work properly (i.e., refer to `conftest.exe'), while it won't with
2719 for ac_file in conftest.exe conftest conftest.*; do
2720 test -f "$ac_file" || continue
2722 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2723 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2729 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2730 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2731 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2732 See \`config.log' for more details" "$LINENO" 5; }
2734 rm -f conftest conftest$ac_cv_exeext
2735 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2736 $as_echo "$ac_cv_exeext" >&6; }
2738 rm -f conftest.$ac_ext
2739 EXEEXT=$ac_cv_exeext
2741 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2742 /* end confdefs.h. */
2747 FILE *f = fopen ("conftest.out", "w");
2748 return ferror (f) || fclose (f) != 0;
2754 ac_clean_files="$ac_clean_files conftest.out"
2755 # Check that the compiler produces executables we can run. If not, either
2756 # the compiler is broken, or we cross compile.
2757 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2758 $as_echo_n "checking whether we are cross compiling... " >&6; }
2759 if test "$cross_compiling" != yes; then
2760 { { ac_try="$ac_link"
2762 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2763 *) ac_try_echo=$ac_try;;
2765 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2766 $as_echo "$ac_try_echo"; } >&5
2767 (eval "$ac_link") 2>&5
2769 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2770 test $ac_status = 0; }
2771 if { ac_try='./conftest$ac_cv_exeext'
2772 { { case "(($ac_try" in
2773 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2774 *) ac_try_echo=$ac_try;;
2776 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2777 $as_echo "$ac_try_echo"; } >&5
2778 (eval "$ac_try") 2>&5
2780 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2781 test $ac_status = 0; }; }; then
2784 if test "$cross_compiling" = maybe; then
2787 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2788 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2789 as_fn_error $? "cannot run C compiled programs.
2790 If you meant to cross compile, use \`--host'.
2791 See \`config.log' for more details" "$LINENO" 5; }
2795 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2796 $as_echo "$cross_compiling" >&6; }
2798 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2799 ac_clean_files=$ac_clean_files_save
2800 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2801 $as_echo_n "checking for suffix of object files... " >&6; }
2802 if ${ac_cv_objext+:} false; then :
2803 $as_echo_n "(cached) " >&6
2805 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2806 /* end confdefs.h. */
2816 rm -f conftest.o conftest.obj
2817 if { { ac_try="$ac_compile"
2819 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2820 *) ac_try_echo=$ac_try;;
2822 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2823 $as_echo "$ac_try_echo"; } >&5
2824 (eval "$ac_compile") 2>&5
2826 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2827 test $ac_status = 0; }; then :
2828 for ac_file in conftest.o conftest.obj conftest.*; do
2829 test -f "$ac_file" || continue;
2831 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2832 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2837 $as_echo "$as_me: failed program was:" >&5
2838 sed 's/^/| /' conftest.$ac_ext >&5
2840 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2841 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2842 as_fn_error $? "cannot compute suffix of object files: cannot compile
2843 See \`config.log' for more details" "$LINENO" 5; }
2845 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2848 $as_echo "$ac_cv_objext" >&6; }
2849 OBJEXT=$ac_cv_objext
2851 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2852 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2853 if ${ac_cv_c_compiler_gnu+:} false; then :
2854 $as_echo_n "(cached) " >&6
2856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2857 /* end confdefs.h. */
2870 if ac_fn_c_try_compile "$LINENO"; then :
2875 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2876 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2879 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2880 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2881 if test $ac_compiler_gnu = yes; then
2886 ac_test_CFLAGS=${CFLAGS+set}
2887 ac_save_CFLAGS=$CFLAGS
2888 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2889 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2890 if ${ac_cv_prog_cc_g+:} false; then :
2891 $as_echo_n "(cached) " >&6
2893 ac_save_c_werror_flag=$ac_c_werror_flag
2894 ac_c_werror_flag=yes
2897 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2898 /* end confdefs.h. */
2908 if ac_fn_c_try_compile "$LINENO"; then :
2912 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2913 /* end confdefs.h. */
2923 if ac_fn_c_try_compile "$LINENO"; then :
2926 ac_c_werror_flag=$ac_save_c_werror_flag
2928 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2929 /* end confdefs.h. */
2939 if ac_fn_c_try_compile "$LINENO"; then :
2942 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2944 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2946 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2947 ac_c_werror_flag=$ac_save_c_werror_flag
2949 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2950 $as_echo "$ac_cv_prog_cc_g" >&6; }
2951 if test "$ac_test_CFLAGS" = set; then
2952 CFLAGS=$ac_save_CFLAGS
2953 elif test $ac_cv_prog_cc_g = yes; then
2954 if test "$GCC" = yes; then
2960 if test "$GCC" = yes; then
2966 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2967 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2968 if ${ac_cv_prog_cc_c89+:} false; then :
2969 $as_echo_n "(cached) " >&6
2971 ac_cv_prog_cc_c89=no
2973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2974 /* end confdefs.h. */
2978 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2979 struct buf { int x; };
2980 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2981 static char *e (p, i)
2987 static char *f (char * (*g) (char **, int), char **p, ...)
2992 s = g (p, va_arg (v,int));
2997 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2998 function prototypes and stuff, but not '\xHH' hex character constants.
2999 These don't provoke an error unfortunately, instead are silently treated
3000 as 'x'. The following induces an error, until -std is added to get
3001 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3002 array size at least. It's necessary to write '\x00'==0 to get something
3003 that's true only with -std. */
3004 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3006 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3007 inside strings and character constants. */
3009 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3011 int test (int i, double x);
3012 struct s1 {int (*f) (int a);};
3013 struct s2 {int (*f) (double a);};
3014 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3020 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3025 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3026 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3028 CC="$ac_save_CC $ac_arg"
3029 if ac_fn_c_try_compile "$LINENO"; then :
3030 ac_cv_prog_cc_c89=$ac_arg
3032 rm -f core conftest.err conftest.$ac_objext
3033 test "x$ac_cv_prog_cc_c89" != "xno" && break
3035 rm -f conftest.$ac_ext
3040 case "x$ac_cv_prog_cc_c89" in
3042 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3043 $as_echo "none needed" >&6; } ;;
3045 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3046 $as_echo "unsupported" >&6; } ;;
3048 CC="$CC $ac_cv_prog_cc_c89"
3049 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3050 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3052 if test "x$ac_cv_prog_cc_c89" != xno; then :
3057 ac_cpp='$CPP $CPPFLAGS'
3058 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3059 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3060 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3064 ac_cpp='$CPP $CPPFLAGS'
3065 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3066 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3067 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3068 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3069 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3070 # On Suns, sometimes $CPP names a directory.
3071 if test -n "$CPP" && test -d "$CPP"; then
3074 if test -z "$CPP"; then
3075 if ${ac_cv_prog_CPP+:} false; then :
3076 $as_echo_n "(cached) " >&6
3078 # Double quotes because CPP needs to be expanded
3079 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3082 for ac_c_preproc_warn_flag in '' yes
3084 # Use a header file that comes with gcc, so configuring glibc
3085 # with a fresh cross-compiler works.
3086 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3087 # <limits.h> exists even on freestanding compilers.
3088 # On the NeXT, cc -E runs the code through the compiler's parser,
3089 # not just through cpp. "Syntax error" is here to catch this case.
3090 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3091 /* end confdefs.h. */
3093 # include <limits.h>
3095 # include <assert.h>
3099 if ac_fn_c_try_cpp "$LINENO"; then :
3102 # Broken: fails on valid input.
3105 rm -f conftest.err conftest.i conftest.$ac_ext
3107 # OK, works on sane cases. Now check whether nonexistent headers
3108 # can be detected and how.
3109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3110 /* end confdefs.h. */
3111 #include <ac_nonexistent.h>
3113 if ac_fn_c_try_cpp "$LINENO"; then :
3114 # Broken: success on invalid input.
3117 # Passes both tests.
3121 rm -f conftest.err conftest.i conftest.$ac_ext
3124 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3125 rm -f conftest.i conftest.err conftest.$ac_ext
3126 if $ac_preproc_ok; then :
3138 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3139 $as_echo "$CPP" >&6; }
3141 for ac_c_preproc_warn_flag in '' yes
3143 # Use a header file that comes with gcc, so configuring glibc
3144 # with a fresh cross-compiler works.
3145 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3146 # <limits.h> exists even on freestanding compilers.
3147 # On the NeXT, cc -E runs the code through the compiler's parser,
3148 # not just through cpp. "Syntax error" is here to catch this case.
3149 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3150 /* end confdefs.h. */
3152 # include <limits.h>
3154 # include <assert.h>
3158 if ac_fn_c_try_cpp "$LINENO"; then :
3161 # Broken: fails on valid input.
3164 rm -f conftest.err conftest.i conftest.$ac_ext
3166 # OK, works on sane cases. Now check whether nonexistent headers
3167 # can be detected and how.
3168 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3169 /* end confdefs.h. */
3170 #include <ac_nonexistent.h>
3172 if ac_fn_c_try_cpp "$LINENO"; then :
3173 # Broken: success on invalid input.
3176 # Passes both tests.
3180 rm -f conftest.err conftest.i conftest.$ac_ext
3183 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3184 rm -f conftest.i conftest.err conftest.$ac_ext
3185 if $ac_preproc_ok; then :
3188 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3189 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3190 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3191 See \`config.log' for more details" "$LINENO" 5; }
3195 ac_cpp='$CPP $CPPFLAGS'
3196 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3197 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3198 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3201 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3202 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3203 if ${ac_cv_path_GREP+:} false; then :
3204 $as_echo_n "(cached) " >&6
3206 if test -z "$GREP"; then
3207 ac_path_GREP_found=false
3208 # Loop through the user's path and test for each of PROGNAME-LIST
3209 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3210 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3213 test -z "$as_dir" && as_dir=.
3214 for ac_prog in grep ggrep; do
3215 for ac_exec_ext in '' $ac_executable_extensions; do
3216 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3217 as_fn_executable_p "$ac_path_GREP" || continue
3218 # Check for GNU ac_path_GREP and select it if it is found.
3219 # Check for GNU $ac_path_GREP
3220 case `"$ac_path_GREP" --version 2>&1` in
3222 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3225 $as_echo_n 0123456789 >"conftest.in"
3228 cat "conftest.in" "conftest.in" >"conftest.tmp"
3229 mv "conftest.tmp" "conftest.in"
3230 cp "conftest.in" "conftest.nl"
3231 $as_echo 'GREP' >> "conftest.nl"
3232 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3233 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3234 as_fn_arith $ac_count + 1 && ac_count=$as_val
3235 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3236 # Best one so far, save it but keep looking for a better one
3237 ac_cv_path_GREP="$ac_path_GREP"
3238 ac_path_GREP_max=$ac_count
3240 # 10*(2^10) chars as input seems more than enough
3241 test $ac_count -gt 10 && break
3243 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3246 $ac_path_GREP_found && break 3
3251 if test -z "$ac_cv_path_GREP"; then
3252 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3255 ac_cv_path_GREP=$GREP
3259 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3260 $as_echo "$ac_cv_path_GREP" >&6; }
3261 GREP="$ac_cv_path_GREP"
3264 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3265 $as_echo_n "checking for egrep... " >&6; }
3266 if ${ac_cv_path_EGREP+:} false; then :
3267 $as_echo_n "(cached) " >&6
3269 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3270 then ac_cv_path_EGREP="$GREP -E"
3272 if test -z "$EGREP"; then
3273 ac_path_EGREP_found=false
3274 # Loop through the user's path and test for each of PROGNAME-LIST
3275 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3276 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3279 test -z "$as_dir" && as_dir=.
3280 for ac_prog in egrep; do
3281 for ac_exec_ext in '' $ac_executable_extensions; do
3282 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3283 as_fn_executable_p "$ac_path_EGREP" || continue
3284 # Check for GNU ac_path_EGREP and select it if it is found.
3285 # Check for GNU $ac_path_EGREP
3286 case `"$ac_path_EGREP" --version 2>&1` in
3288 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3291 $as_echo_n 0123456789 >"conftest.in"
3294 cat "conftest.in" "conftest.in" >"conftest.tmp"
3295 mv "conftest.tmp" "conftest.in"
3296 cp "conftest.in" "conftest.nl"
3297 $as_echo 'EGREP' >> "conftest.nl"
3298 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3299 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3300 as_fn_arith $ac_count + 1 && ac_count=$as_val
3301 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3302 # Best one so far, save it but keep looking for a better one
3303 ac_cv_path_EGREP="$ac_path_EGREP"
3304 ac_path_EGREP_max=$ac_count
3306 # 10*(2^10) chars as input seems more than enough
3307 test $ac_count -gt 10 && break
3309 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3312 $ac_path_EGREP_found && break 3
3317 if test -z "$ac_cv_path_EGREP"; then
3318 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3321 ac_cv_path_EGREP=$EGREP
3326 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3327 $as_echo "$ac_cv_path_EGREP" >&6; }
3328 EGREP="$ac_cv_path_EGREP"
3331 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3332 $as_echo_n "checking for ANSI C header files... " >&6; }
3333 if ${ac_cv_header_stdc+:} false; then :
3334 $as_echo_n "(cached) " >&6
3336 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3337 /* end confdefs.h. */
3351 if ac_fn_c_try_compile "$LINENO"; then :
3352 ac_cv_header_stdc=yes
3354 ac_cv_header_stdc=no
3356 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3358 if test $ac_cv_header_stdc = yes; then
3359 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3360 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3361 /* end confdefs.h. */
3365 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3366 $EGREP "memchr" >/dev/null 2>&1; then :
3369 ac_cv_header_stdc=no
3375 if test $ac_cv_header_stdc = yes; then
3376 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3377 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3378 /* end confdefs.h. */
3382 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3383 $EGREP "free" >/dev/null 2>&1; then :
3386 ac_cv_header_stdc=no
3392 if test $ac_cv_header_stdc = yes; then
3393 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3394 if test "$cross_compiling" = yes; then :
3397 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3398 /* end confdefs.h. */
3401 #if ((' ' & 0x0FF) == 0x020)
3402 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3403 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3405 # define ISLOWER(c) \
3406 (('a' <= (c) && (c) <= 'i') \
3407 || ('j' <= (c) && (c) <= 'r') \
3408 || ('s' <= (c) && (c) <= 'z'))
3409 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3412 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3417 for (i = 0; i < 256; i++)
3418 if (XOR (islower (i), ISLOWER (i))
3419 || toupper (i) != TOUPPER (i))
3424 if ac_fn_c_try_run "$LINENO"; then :
3427 ac_cv_header_stdc=no
3429 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3430 conftest.$ac_objext conftest.beam conftest.$ac_ext
3435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3436 $as_echo "$ac_cv_header_stdc" >&6; }
3437 if test $ac_cv_header_stdc = yes; then
3439 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3443 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3444 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3445 inttypes.h stdint.h unistd.h
3447 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3448 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3450 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3451 cat >>confdefs.h <<_ACEOF
3452 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3461 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3462 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3469 if test "$MINIX" = yes; then
3471 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3474 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3477 $as_echo "#define _MINIX 1" >>confdefs.h
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3483 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3484 if ${ac_cv_safe_to_define___extensions__+:} false; then :
3485 $as_echo_n "(cached) " >&6
3487 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3488 /* end confdefs.h. */
3490 # define __EXTENSIONS__ 1
3491 $ac_includes_default
3500 if ac_fn_c_try_compile "$LINENO"; then :
3501 ac_cv_safe_to_define___extensions__=yes
3503 ac_cv_safe_to_define___extensions__=no
3505 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3507 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3508 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3509 test $ac_cv_safe_to_define___extensions__ = yes &&
3510 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3512 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3514 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3516 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3518 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3522 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3523 $as_echo_n "checking whether ln -s works... " >&6; }
3525 if test "$LN_S" = "ln -s"; then
3526 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3527 $as_echo "yes" >&6; }
3529 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3530 $as_echo "no, using $LN_S" >&6; }
3536 # Extract the first word of "chmod", so it can be a program name with args.
3537 set dummy chmod; ac_word=$2
3538 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3539 $as_echo_n "checking for $ac_word... " >&6; }
3540 if ${ac_cv_prog_CHMOD+:} false; then :
3541 $as_echo_n "(cached) " >&6
3543 if test -n "$CHMOD"; then
3544 ac_cv_prog_CHMOD="$CHMOD" # Let the user override the test.
3546 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3550 test -z "$as_dir" && as_dir=.
3551 for ac_exec_ext in '' $ac_executable_extensions; do
3552 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3553 ac_cv_prog_CHMOD="chmod"
3554 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3563 CHMOD=$ac_cv_prog_CHMOD
3564 if test -n "$CHMOD"; then
3565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
3566 $as_echo "$CHMOD" >&6; }
3568 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3569 $as_echo "no" >&6; }
3573 # Extract the first word of "chown", so it can be a program name with args.
3574 set dummy chown; ac_word=$2
3575 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3576 $as_echo_n "checking for $ac_word... " >&6; }
3577 if ${ac_cv_prog_CHOWN+:} false; then :
3578 $as_echo_n "(cached) " >&6
3580 if test -n "$CHOWN"; then
3581 ac_cv_prog_CHOWN="$CHOWN" # Let the user override the test.
3583 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3587 test -z "$as_dir" && as_dir=.
3588 for ac_exec_ext in '' $ac_executable_extensions; do
3589 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3590 ac_cv_prog_CHOWN="chown"
3591 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3600 CHOWN=$ac_cv_prog_CHOWN
3601 if test -n "$CHOWN"; then
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHOWN" >&5
3603 $as_echo "$CHOWN" >&6; }
3605 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3606 $as_echo "no" >&6; }
3610 # Extract the first word of "ar", so it can be a program name with args.
3611 set dummy ar; ac_word=$2
3612 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3613 $as_echo_n "checking for $ac_word... " >&6; }
3614 if ${ac_cv_prog_AR+:} false; then :
3615 $as_echo_n "(cached) " >&6
3617 if test -n "$AR"; then
3618 ac_cv_prog_AR="$AR" # Let the user override the test.
3620 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3624 test -z "$as_dir" && as_dir=.
3625 for ac_exec_ext in '' $ac_executable_extensions; do
3626 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3628 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3638 if test -n "$AR"; then
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3640 $as_echo "$AR" >&6; }
3642 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3643 $as_echo "no" >&6; }
3647 # Extract the first word of "install", so it can be a program name with args.
3648 set dummy install; ac_word=$2
3649 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3650 $as_echo_n "checking for $ac_word... " >&6; }
3651 if ${ac_cv_prog_INSTALL+:} false; then :
3652 $as_echo_n "(cached) " >&6
3654 if test -n "$INSTALL"; then
3655 ac_cv_prog_INSTALL="$INSTALL" # Let the user override the test.
3657 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3661 test -z "$as_dir" && as_dir=.
3662 for ac_exec_ext in '' $ac_executable_extensions; do
3663 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3664 ac_cv_prog_INSTALL="install"
3665 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3674 INSTALL=$ac_cv_prog_INSTALL
3675 if test -n "$INSTALL"; then
3676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3677 $as_echo "$INSTALL" >&6; }
3679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3680 $as_echo "no" >&6; }
3684 # Extract the first word of "msgfmt", so it can be a program name with args.
3685 set dummy msgfmt; ac_word=$2
3686 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3687 $as_echo_n "checking for $ac_word... " >&6; }
3688 if ${ac_cv_prog_MSGFMT+:} false; then :
3689 $as_echo_n "(cached) " >&6
3691 if test -n "$MSGFMT"; then
3692 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
3694 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3698 test -z "$as_dir" && as_dir=.
3699 for ac_exec_ext in '' $ac_executable_extensions; do
3700 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3701 ac_cv_prog_MSGFMT="msgfmt"
3702 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3711 MSGFMT=$ac_cv_prog_MSGFMT
3712 if test -n "$MSGFMT"; then
3713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
3714 $as_echo "$MSGFMT" >&6; }
3716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3717 $as_echo "no" >&6; }
3721 # Extract the first word of "xgettext", so it can be a program name with args.
3722 set dummy xgettext; ac_word=$2
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3724 $as_echo_n "checking for $ac_word... " >&6; }
3725 if ${ac_cv_prog_XGETTEXT+:} false; then :
3726 $as_echo_n "(cached) " >&6
3728 if test -n "$XGETTEXT"; then
3729 ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
3731 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3735 test -z "$as_dir" && as_dir=.
3736 for ac_exec_ext in '' $ac_executable_extensions; do
3737 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3738 ac_cv_prog_XGETTEXT="xgettext"
3739 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3748 XGETTEXT=$ac_cv_prog_XGETTEXT
3749 if test -n "$XGETTEXT"; then
3750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
3751 $as_echo "$XGETTEXT" >&6; }
3753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3754 $as_echo "no" >&6; }
3758 # Extract the first word of "msgmerge", so it can be a program name with args.
3759 set dummy msgmerge; ac_word=$2
3760 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3761 $as_echo_n "checking for $ac_word... " >&6; }
3762 if ${ac_cv_prog_MSGMERGE+:} false; then :
3763 $as_echo_n "(cached) " >&6
3765 if test -n "$MSGMERGE"; then
3766 ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
3768 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3772 test -z "$as_dir" && as_dir=.
3773 for ac_exec_ext in '' $ac_executable_extensions; do
3774 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3775 ac_cv_prog_MSGMERGE="msgmerge"
3776 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3785 MSGMERGE=$ac_cv_prog_MSGMERGE
3786 if test -n "$MSGMERGE"; then
3787 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
3788 $as_echo "$MSGMERGE" >&6; }
3790 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3791 $as_echo "no" >&6; }
3795 for ac_prog in xz bzip2 gzip
3797 # Extract the first word of "$ac_prog", so it can be a program name with args.
3798 set dummy $ac_prog; ac_word=$2
3799 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3800 $as_echo_n "checking for $ac_word... " >&6; }
3801 if ${ac_cv_prog_ZIP+:} false; then :
3802 $as_echo_n "(cached) " >&6
3804 if test -n "$ZIP"; then
3805 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
3807 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3808 for as_dir in /bin /etc /sbin /usr/bin /usr/etc /usr/sbin /usr/ucb /usr/local/bin /usr/local/etc /usr/local/sbin
3811 test -z "$as_dir" && as_dir=.
3812 for ac_exec_ext in '' $ac_executable_extensions; do
3813 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3814 ac_cv_prog_ZIP="$ac_prog"
3815 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3825 if test -n "$ZIP"; then
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
3827 $as_echo "$ZIP" >&6; }
3829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3830 $as_echo "no" >&6; }
3834 test -n "$ZIP" && break
3836 test -n "$ZIP" || ZIP="gzip"
3838 INSTALL_DATA="\${INSTALL} -m 644"
3840 INSTALL_BIN="\${INSTALL} -m 755"
3845 # Extract the first word of "$ac_prog", so it can be a program name with args.
3846 set dummy $ac_prog; ac_word=$2
3847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3848 $as_echo_n "checking for $ac_word... " >&6; }
3849 if ${ac_cv_path_PATH_CP+:} false; then :
3850 $as_echo_n "(cached) " >&6
3854 ac_cv_path_PATH_CP="$PATH_CP" # Let the user override the test with a path.
3857 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3858 for as_dir in /bin /etc /sbin /usr/bin /usr/etc /usr/sbin /usr/ucb /usr/local/bin /usr/local/etc /usr/local/sbin
3861 test -z "$as_dir" && as_dir=.
3862 for ac_exec_ext in '' $ac_executable_extensions; do
3863 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3864 ac_cv_path_PATH_CP="$as_dir/$ac_word$ac_exec_ext"
3865 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3875 PATH_CP=$ac_cv_path_PATH_CP
3876 if test -n "$PATH_CP"; then
3877 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_CP" >&5
3878 $as_echo "$PATH_CP" >&6; }
3880 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3881 $as_echo "no" >&6; }
3885 test -n "$PATH_CP" && break
3887 test -n "$PATH_CP" || PATH_CP="cp"
3889 for ac_prog in chkconfig
3891 # Extract the first word of "$ac_prog", so it can be a program name with args.
3892 set dummy $ac_prog; ac_word=$2
3893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3894 $as_echo_n "checking for $ac_word... " >&6; }
3895 if ${ac_cv_path_PATH_CHKCONFIG+:} false; then :
3896 $as_echo_n "(cached) " >&6
3898 case $PATH_CHKCONFIG in
3900 ac_cv_path_PATH_CHKCONFIG="$PATH_CHKCONFIG" # Let the user override the test with a path.
3903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3904 for as_dir in /bin /etc /sbin /usr/bin /usr/etc /usr/sbin /usr/ucb /usr/local/bin /usr/local/etc /usr/local/sbin
3907 test -z "$as_dir" && as_dir=.
3908 for ac_exec_ext in '' $ac_executable_extensions; do
3909 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3910 ac_cv_path_PATH_CHKCONFIG="$as_dir/$ac_word$ac_exec_ext"
3911 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3921 PATH_CHKCONFIG=$ac_cv_path_PATH_CHKCONFIG
3922 if test -n "$PATH_CHKCONFIG"; then
3923 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_CHKCONFIG" >&5
3924 $as_echo "$PATH_CHKCONFIG" >&6; }
3926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3927 $as_echo "no" >&6; }
3931 test -n "$PATH_CHKCONFIG" && break
3933 test -n "$PATH_CHKCONFIG" || PATH_CHKCONFIG="chkconfig"
3937 # Extract the first word of "pkg-config", so it can be a program name with args.
3938 set dummy pkg-config; ac_word=$2
3939 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3940 $as_echo_n "checking for $ac_word... " >&6; }
3941 if ${ac_cv_prog_PKG_CONFIG+:} false; then :
3942 $as_echo_n "(cached) " >&6
3944 if test -n "$PKG_CONFIG"; then
3945 ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
3947 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3951 test -z "$as_dir" && as_dir=.
3952 for ac_exec_ext in '' $ac_executable_extensions; do
3953 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3954 ac_cv_prog_PKG_CONFIG="pkg-config"
3955 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3964 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
3965 if test -n "$PKG_CONFIG"; then
3966 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
3967 $as_echo "$PKG_CONFIG" >&6; }
3969 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3970 $as_echo "no" >&6; }
3974 for ac_prog in systemctl
3976 # Extract the first word of "$ac_prog", so it can be a program name with args.
3977 set dummy $ac_prog; ac_word=$2
3978 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3979 $as_echo_n "checking for $ac_word... " >&6; }
3980 if ${ac_cv_path_SYSTEMCTL+:} false; then :
3981 $as_echo_n "(cached) " >&6
3985 ac_cv_path_SYSTEMCTL="$SYSTEMCTL" # Let the user override the test with a path.
3988 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3989 for as_dir in /bin /etc /sbin /usr/bin /usr/etc /usr/sbin /usr/ucb /usr/local/bin /usr/local/etc /usr/local/sbin
3992 test -z "$as_dir" && as_dir=.
3993 for ac_exec_ext in '' $ac_executable_extensions; do
3994 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3995 ac_cv_path_SYSTEMCTL="$as_dir/$ac_word$ac_exec_ext"
3996 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4006 SYSTEMCTL=$ac_cv_path_SYSTEMCTL
4007 if test -n "$SYSTEMCTL"; then
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYSTEMCTL" >&5
4009 $as_echo "$SYSTEMCTL" >&6; }
4011 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4012 $as_echo "no" >&6; }
4016 test -n "$SYSTEMCTL" && break
4018 test -n "$SYSTEMCTL" || SYSTEMCTL="systemctl"
4021 # Check whether --with-systemdsystemunitdir was given.
4022 if test "${with_systemdsystemunitdir+set}" = set; then :
4023 withval=$with_systemdsystemunitdir;
4025 with_systemdsystemunitdir=$($PKG_CONFIG --variable=systemdsystemunitdir systemd)
4028 if test -n "$with_systemdsystemunitdir" -a "x$with_systemdsystemunitdir" != xno ; then
4029 SYSTEMD_UNIT_DIR=$with_systemdsystemunitdir
4035 # Check header files
4037 echo Check header files:
4041 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4042 $as_echo_n "checking for ANSI C header files... " >&6; }
4043 if ${ac_cv_header_stdc+:} false; then :
4044 $as_echo_n "(cached) " >&6
4046 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4047 /* end confdefs.h. */
4061 if ac_fn_c_try_compile "$LINENO"; then :
4062 ac_cv_header_stdc=yes
4064 ac_cv_header_stdc=no
4066 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4068 if test $ac_cv_header_stdc = yes; then
4069 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4070 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4071 /* end confdefs.h. */
4075 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4076 $EGREP "memchr" >/dev/null 2>&1; then :
4079 ac_cv_header_stdc=no
4085 if test $ac_cv_header_stdc = yes; then
4086 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4087 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4088 /* end confdefs.h. */
4092 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4093 $EGREP "free" >/dev/null 2>&1; then :
4096 ac_cv_header_stdc=no
4102 if test $ac_cv_header_stdc = yes; then
4103 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4104 if test "$cross_compiling" = yes; then :
4107 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4108 /* end confdefs.h. */
4111 #if ((' ' & 0x0FF) == 0x020)
4112 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4113 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4115 # define ISLOWER(c) \
4116 (('a' <= (c) && (c) <= 'i') \
4117 || ('j' <= (c) && (c) <= 'r') \
4118 || ('s' <= (c) && (c) <= 'z'))
4119 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4122 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4127 for (i = 0; i < 256; i++)
4128 if (XOR (islower (i), ISLOWER (i))
4129 || toupper (i) != TOUPPER (i))
4134 if ac_fn_c_try_run "$LINENO"; then :
4137 ac_cv_header_stdc=no
4139 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4140 conftest.$ac_objext conftest.beam conftest.$ac_ext
4145 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4146 $as_echo "$ac_cv_header_stdc" >&6; }
4147 if test $ac_cv_header_stdc = yes; then
4149 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4154 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4155 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4156 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
4157 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
4158 if eval \${$as_ac_Header+:} false; then :
4159 $as_echo_n "(cached) " >&6
4161 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4162 /* end confdefs.h. */
4163 #include <sys/types.h>
4175 if ac_fn_c_try_compile "$LINENO"; then :
4176 eval "$as_ac_Header=yes"
4178 eval "$as_ac_Header=no"
4180 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4182 eval ac_res=\$$as_ac_Header
4183 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4184 $as_echo "$ac_res" >&6; }
4185 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4186 cat >>confdefs.h <<_ACEOF
4187 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4190 ac_header_dirent=$ac_hdr; break
4194 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4195 if test $ac_header_dirent = dirent.h; then
4196 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
4197 $as_echo_n "checking for library containing opendir... " >&6; }
4198 if ${ac_cv_search_opendir+:} false; then :
4199 $as_echo_n "(cached) " >&6
4201 ac_func_search_save_LIBS=$LIBS
4202 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4203 /* end confdefs.h. */
4205 /* Override any GCC internal prototype to avoid an error.
4206 Use char because int might match the return type of a GCC
4207 builtin and then its argument prototype would still apply. */
4220 for ac_lib in '' dir; do
4221 if test -z "$ac_lib"; then
4222 ac_res="none required"
4225 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4227 if ac_fn_c_try_link "$LINENO"; then :
4228 ac_cv_search_opendir=$ac_res
4230 rm -f core conftest.err conftest.$ac_objext \
4232 if ${ac_cv_search_opendir+:} false; then :
4236 if ${ac_cv_search_opendir+:} false; then :
4239 ac_cv_search_opendir=no
4242 LIBS=$ac_func_search_save_LIBS
4244 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
4245 $as_echo "$ac_cv_search_opendir" >&6; }
4246 ac_res=$ac_cv_search_opendir
4247 if test "$ac_res" != no; then :
4248 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4253 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
4254 $as_echo_n "checking for library containing opendir... " >&6; }
4255 if ${ac_cv_search_opendir+:} false; then :
4256 $as_echo_n "(cached) " >&6
4258 ac_func_search_save_LIBS=$LIBS
4259 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4260 /* end confdefs.h. */
4262 /* Override any GCC internal prototype to avoid an error.
4263 Use char because int might match the return type of a GCC
4264 builtin and then its argument prototype would still apply. */
4277 for ac_lib in '' x; do
4278 if test -z "$ac_lib"; then
4279 ac_res="none required"
4282 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4284 if ac_fn_c_try_link "$LINENO"; then :
4285 ac_cv_search_opendir=$ac_res
4287 rm -f core conftest.err conftest.$ac_objext \
4289 if ${ac_cv_search_opendir+:} false; then :
4293 if ${ac_cv_search_opendir+:} false; then :
4296 ac_cv_search_opendir=no
4299 LIBS=$ac_func_search_save_LIBS
4301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
4302 $as_echo "$ac_cv_search_opendir" >&6; }
4303 ac_res=$ac_cv_search_opendir
4304 if test "$ac_res" != no; then :
4305 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4311 for ac_header in ctype.h
4313 ac_fn_c_check_header_mongrel "$LINENO" "ctype.h" "ac_cv_header_ctype_h" "$ac_includes_default"
4314 if test "x$ac_cv_header_ctype_h" = xyes; then :
4315 cat >>confdefs.h <<_ACEOF
4316 #define HAVE_CTYPE_H 1
4323 for ac_header in errno.h
4325 ac_fn_c_check_header_mongrel "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default"
4326 if test "x$ac_cv_header_errno_h" = xyes; then :
4327 cat >>confdefs.h <<_ACEOF
4328 #define HAVE_ERRNO_H 1
4335 for ac_header in libintl.h
4337 ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
4338 if test "x$ac_cv_header_libintl_h" = xyes; then :
4339 cat >>confdefs.h <<_ACEOF
4340 #define HAVE_LIBINTL_H 1
4347 for ac_header in locale.h
4349 ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
4350 if test "x$ac_cv_header_locale_h" = xyes; then :
4351 cat >>confdefs.h <<_ACEOF
4352 #define HAVE_LOCALE_H 1
4359 for ac_header in net/if.h
4361 ac_fn_c_check_header_mongrel "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default"
4362 if test "x$ac_cv_header_net_if_h" = xyes; then :
4363 cat >>confdefs.h <<_ACEOF
4364 #define HAVE_NET_IF_H 1
4371 for ac_header in regex.h
4373 ac_fn_c_check_header_mongrel "$LINENO" "regex.h" "ac_cv_header_regex_h" "$ac_includes_default"
4374 if test "x$ac_cv_header_regex_h" = xyes; then :
4375 cat >>confdefs.h <<_ACEOF
4376 #define HAVE_REGEX_H 1
4383 for ac_header in signal.h
4385 ac_fn_c_check_header_mongrel "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
4386 if test "x$ac_cv_header_signal_h" = xyes; then :
4387 cat >>confdefs.h <<_ACEOF
4388 #define HAVE_SIGNAL_H 1
4395 for ac_header in stdio.h
4397 ac_fn_c_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
4398 if test "x$ac_cv_header_stdio_h" = xyes; then :
4399 cat >>confdefs.h <<_ACEOF
4400 #define HAVE_STDIO_H 1
4407 for ac_header in sys/file.h
4409 ac_fn_c_check_header_mongrel "$LINENO" "sys/file.h" "ac_cv_header_sys_file_h" "$ac_includes_default"
4410 if test "x$ac_cv_header_sys_file_h" = xyes; then :
4411 cat >>confdefs.h <<_ACEOF
4412 #define HAVE_SYS_FILE_H 1
4419 for ac_header in sys/ioctl.h
4421 ac_fn_c_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
4422 if test "x$ac_cv_header_sys_ioctl_h" = xyes; then :
4423 cat >>confdefs.h <<_ACEOF
4424 #define HAVE_SYS_IOCTL_H 1
4431 for ac_header in sys/stat.h
4433 ac_fn_c_check_header_mongrel "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "$ac_includes_default"
4434 if test "x$ac_cv_header_sys_stat_h" = xyes; then :
4435 cat >>confdefs.h <<_ACEOF
4436 #define HAVE_SYS_STAT_H 1
4445 echo Check typedefs, structures and compiler characteristics:
4447 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
4448 $as_echo_n "checking return type of signal handlers... " >&6; }
4449 if ${ac_cv_type_signal+:} false; then :
4450 $as_echo_n "(cached) " >&6
4452 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4453 /* end confdefs.h. */
4454 #include <sys/types.h>
4460 return *(signal (0, 0)) (0) == 1;
4465 if ac_fn_c_try_compile "$LINENO"; then :
4466 ac_cv_type_signal=int
4468 ac_cv_type_signal=void
4470 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4472 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
4473 $as_echo "$ac_cv_type_signal" >&6; }
4475 cat >>confdefs.h <<_ACEOF
4476 #define RETSIGTYPE $ac_cv_type_signal
4480 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
4481 if test "x$ac_cv_type_size_t" = xyes; then :
4485 cat >>confdefs.h <<_ACEOF
4486 #define size_t unsigned int
4491 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
4492 if test "x$ac_cv_type_off_t" = xyes; then :
4496 cat >>confdefs.h <<_ACEOF
4497 #define off_t long int
4504 echo Check library functions:
4506 for ac_func in strchr
4508 ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr"
4509 if test "x$ac_cv_func_strchr" = xyes; then :
4510 cat >>confdefs.h <<_ACEOF
4511 #define HAVE_STRCHR 1
4517 for ac_func in strcspn
4519 ac_fn_c_check_func "$LINENO" "strcspn" "ac_cv_func_strcspn"
4520 if test "x$ac_cv_func_strcspn" = xyes; then :
4521 cat >>confdefs.h <<_ACEOF
4522 #define HAVE_STRCSPN 1
4528 for ac_func in strspn
4530 ac_fn_c_check_func "$LINENO" "strspn" "ac_cv_func_strspn"
4531 if test "x$ac_cv_func_strspn" = xyes; then :
4532 cat >>confdefs.h <<_ACEOF
4533 #define HAVE_STRSPN 1
4539 for ac_func in strstr
4541 ac_fn_c_check_func "$LINENO" "strstr" "ac_cv_func_strstr"
4542 if test "x$ac_cv_func_strstr" = xyes; then :
4543 cat >>confdefs.h <<_ACEOF
4544 #define HAVE_STRSTR 1
4551 # Should we check for lm_sensors?
4552 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sensors support" >&5
4553 $as_echo_n "checking for sensors support... " >&6; }
4554 # Check whether --enable-sensors was given.
4555 if test "${enable_sensors+set}" = set; then :
4556 enableval=$enable_sensors; SENSORS=$enableval
4561 if test $SENSORS != "yes"; then
4566 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SENSORS" >&5
4567 $as_echo "$SENSORS" >&6; }
4569 # Check for lm_sensors
4573 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sensors_get_detected_chips in -lsensors" >&5
4574 $as_echo_n "checking for sensors_get_detected_chips in -lsensors... " >&6; }
4575 if ${ac_cv_lib_sensors_sensors_get_detected_chips+:} false; then :
4576 $as_echo_n "(cached) " >&6
4578 ac_check_lib_save_LIBS=$LIBS
4579 LIBS="-lsensors $LIBS"
4580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4581 /* end confdefs.h. */
4583 /* Override any GCC internal prototype to avoid an error.
4584 Use char because int might match the return type of a GCC
4585 builtin and then its argument prototype would still apply. */
4589 char sensors_get_detected_chips ();
4593 return sensors_get_detected_chips ();
4598 if ac_fn_c_try_link "$LINENO"; then :
4599 ac_cv_lib_sensors_sensors_get_detected_chips=yes
4601 ac_cv_lib_sensors_sensors_get_detected_chips=no
4603 rm -f core conftest.err conftest.$ac_objext \
4604 conftest$ac_exeext conftest.$ac_ext
4605 LIBS=$ac_check_lib_save_LIBS
4607 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sensors_sensors_get_detected_chips" >&5
4608 $as_echo "$ac_cv_lib_sensors_sensors_get_detected_chips" >&6; }
4609 if test "x$ac_cv_lib_sensors_sensors_get_detected_chips" = xyes; then :
4610 LFSENSORS="-lsensors"
4615 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sensors lib" >&5
4616 $as_echo_n "checking for sensors lib... " >&6; }
4617 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4618 /* end confdefs.h. */
4619 #include <sensors/sensors.h>
4620 #include <sensors/error.h>
4630 if ac_fn_c_try_compile "$LINENO"; then :
4631 SENSORS=yes; DFSENSORS="-DHAVE_SENSORS"
4633 HAVE_SENSORS="n"; SENSORS=no
4635 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SENSORS" >&5
4637 $as_echo "$SENSORS" >&6; }
4643 echo Check system services:
4645 # Check whether --enable-largefile was given.
4646 if test "${enable_largefile+set}" = set; then :
4647 enableval=$enable_largefile;
4650 if test "$enable_largefile" != no; then
4652 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4653 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4654 if ${ac_cv_sys_largefile_CC+:} false; then :
4655 $as_echo_n "(cached) " >&6
4657 ac_cv_sys_largefile_CC=no
4658 if test "$GCC" != yes; then
4661 # IRIX 6.2 and later do not support large files by default,
4662 # so use the C compiler's -n32 option if that helps.
4663 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4664 /* end confdefs.h. */
4665 #include <sys/types.h>
4666 /* Check that off_t can represent 2**63 - 1 correctly.
4667 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4668 since some C++ compilers masquerading as C compilers
4669 incorrectly reject 9223372036854775807. */
4670 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4671 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4672 && LARGE_OFF_T % 2147483647 == 1)
4682 if ac_fn_c_try_compile "$LINENO"; then :
4685 rm -f core conftest.err conftest.$ac_objext
4687 if ac_fn_c_try_compile "$LINENO"; then :
4688 ac_cv_sys_largefile_CC=' -n32'; break
4690 rm -f core conftest.err conftest.$ac_objext
4694 rm -f conftest.$ac_ext
4697 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4698 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4699 if test "$ac_cv_sys_largefile_CC" != no; then
4700 CC=$CC$ac_cv_sys_largefile_CC
4703 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4704 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4705 if ${ac_cv_sys_file_offset_bits+:} false; then :
4706 $as_echo_n "(cached) " >&6
4709 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4710 /* end confdefs.h. */
4711 #include <sys/types.h>
4712 /* Check that off_t can represent 2**63 - 1 correctly.
4713 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4714 since some C++ compilers masquerading as C compilers
4715 incorrectly reject 9223372036854775807. */
4716 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4717 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4718 && LARGE_OFF_T % 2147483647 == 1)
4728 if ac_fn_c_try_compile "$LINENO"; then :
4729 ac_cv_sys_file_offset_bits=no; break
4731 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4732 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4733 /* end confdefs.h. */
4734 #define _FILE_OFFSET_BITS 64
4735 #include <sys/types.h>
4736 /* Check that off_t can represent 2**63 - 1 correctly.
4737 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4738 since some C++ compilers masquerading as C compilers
4739 incorrectly reject 9223372036854775807. */
4740 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4741 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4742 && LARGE_OFF_T % 2147483647 == 1)
4752 if ac_fn_c_try_compile "$LINENO"; then :
4753 ac_cv_sys_file_offset_bits=64; break
4755 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4756 ac_cv_sys_file_offset_bits=unknown
4760 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4761 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4762 case $ac_cv_sys_file_offset_bits in #(
4765 cat >>confdefs.h <<_ACEOF
4766 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4771 if test $ac_cv_sys_file_offset_bits = unknown; then
4772 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4773 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4774 if ${ac_cv_sys_large_files+:} false; then :
4775 $as_echo_n "(cached) " >&6
4778 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4779 /* end confdefs.h. */
4780 #include <sys/types.h>
4781 /* Check that off_t can represent 2**63 - 1 correctly.
4782 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4783 since some C++ compilers masquerading as C compilers
4784 incorrectly reject 9223372036854775807. */
4785 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4786 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4787 && LARGE_OFF_T % 2147483647 == 1)
4797 if ac_fn_c_try_compile "$LINENO"; then :
4798 ac_cv_sys_large_files=no; break
4800 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4801 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4802 /* end confdefs.h. */
4803 #define _LARGE_FILES 1
4804 #include <sys/types.h>
4805 /* Check that off_t can represent 2**63 - 1 correctly.
4806 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4807 since some C++ compilers masquerading as C compilers
4808 incorrectly reject 9223372036854775807. */
4809 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4810 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4811 && LARGE_OFF_T % 2147483647 == 1)
4821 if ac_fn_c_try_compile "$LINENO"; then :
4822 ac_cv_sys_large_files=1; break
4824 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4825 ac_cv_sys_large_files=unknown
4829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4830 $as_echo "$ac_cv_sys_large_files" >&6; }
4831 case $ac_cv_sys_large_files in #(
4834 cat >>confdefs.h <<_ACEOF
4835 #define _LARGE_FILES $ac_cv_sys_large_files
4847 echo Check configuration:
4849 # Check arguments used
4851 # Optional Features:
4852 # --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
4853 # --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
4854 # --disable-largefile omit support for large files
4855 # --disable-nls disable National Language Support
4856 # --enable-yesterday tell sa2 to use "yesterday" data files
4857 # --disable-file-attr don't set attributes on files being installed
4858 # --enable-install-cron tell sysstat to install cron scripts
4859 # --collect-all tell sadc to collect all possible data
4860 # --enable-clean-sa-dir clean system activity directory
4861 # --enable-compress-manpg compress manual pages
4862 # --enable-install-isag install isag script
4863 # --enable-debuginfo enable debug output (--debuginfo option)
4864 # --disable-documentation do not install documentation (man pages...)
4865 # --disable-sensors do not link against libsensors even if available
4866 # --disable-stripping do not strip object files
4867 # --enablle-copy-only only copy files when installing sysstat
4869 # Some influential environment variables:
4870 # rcdir directory where startup scripts are installed
4871 # sa_lib_dir sadc, sa1 and sa2 directory
4872 # sa_dir system activity daily datafiles directory
4873 # conf_dir sysstat configuration directory (default is /etc/sysconfig)
4874 # history number of daily datafiles to keep (default value is 7)
4875 # compressafter number of days after which datafiles are compressed
4876 # man_group group for man pages
4877 # cron_owner crontab owner
4878 # cron_interval crontab sampling interval
4879 # sadc_options options to be passed to sadc
4881 # Fine tuning the installation directories:
4882 # --mandir=DIR man documentation directory [PREFIX/man]
4883 # --docdir=DIR other documentation directory [PREFIX/share/doc]
4885 # Installation directories:
4886 # --prefix=PREFIX install architecture-independent files in PREFIX
4888 # --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
4892 if test -d /etc/init.d && test ! -L /etc/init.d; then
4893 if test -d /etc/init.d/rc2.d; then
4900 INIT_DIR=/etc/init.d
4901 elif test -d /sbin/init.d; then
4903 INIT_DIR=/sbin/init.d
4907 INIT_DIR=/etc/rc.d/init.d
4911 { $as_echo "$as_me:${as_lineno-$LINENO}: checking run-commands directory" >&5
4912 $as_echo_n "checking run-commands directory... " >&6; }
4914 if test x$rcdir != x""; then
4915 # Override previous rc directories values
4917 INIT_DIR=$rcdir/init.d
4920 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC_DIR" >&5
4921 $as_echo "$RC_DIR" >&6; }
4922 if test ! -d $RC_DIR; then
4923 echo "INFO: Directory ${RC_DIR} doesn't exist."
4924 echo "INFO: Startup scripts won't be installed."
4931 # Set sadc directory
4932 if test $prefix != "NONE"; then
4935 AuxPrefix=/usr/local
4938 SADC_DIR=$AuxPrefix/lib
4939 if test -d $AuxPrefix/lib64; then
4940 # Verify that this OS is really 64 bit
4941 BITS=$(getconf LONG_BIT 2>/dev/null)
4942 if test $? = 0; then
4943 if test $BITS = 64; then
4944 SADC_DIR=$AuxPrefix/lib64
4947 # Fallback: look for lm (long mode) flag to know if CPU is 64 bit
4948 grep " lm " /proc/cpuinfo >/dev/null 2>&1
4949 if test $? = 0; then
4950 SADC_DIR=$AuxPrefix/lib64
4955 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sadc directory" >&5
4956 $as_echo_n "checking sadc directory... " >&6; }
4958 if test x$sa_lib_dir != x""; then
4959 SA_LIB_DIR=$sa_lib_dir
4961 SA_LIB_DIR=$SADC_DIR/sa
4963 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SA_LIB_DIR" >&5
4964 $as_echo "$SA_LIB_DIR" >&6; }
4965 if test ! -d $SA_LIB_DIR; then
4966 echo "INFO: Directory ${SA_LIB_DIR} will be created during installation stage."
4970 # Set system activity directory
4971 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system activity directory" >&5
4972 $as_echo_n "checking system activity directory... " >&6; }
4974 if test x$sa_dir != x""; then
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SA_DIR" >&5
4980 $as_echo "$SA_DIR" >&6; }
4981 if test ! -d $SA_DIR; then
4982 echo "INFO: Directory ${SA_DIR} will be created during installation stage."
4986 # Set configuration directory
4987 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sysstat configuration directory" >&5
4988 $as_echo_n "checking sysstat configuration directory... " >&6; }
4990 if test x$conf_dir != x""; then
4991 SYSCONFIG_DIR=$conf_dir
4993 SYSCONFIG_DIR=/etc/sysconfig
4995 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYSCONFIG_DIR" >&5
4996 $as_echo "$SYSCONFIG_DIR" >&6; }
4997 if test ! -d $SYSCONFIG_DIR; then
4998 echo "INFO: Directory ${SYSCONFIG_DIR} will be created during installation stage."
5002 # National Language Support
5003 { $as_echo "$as_me:${as_lineno-$LINENO}: checking National Language Support" >&5
5004 $as_echo_n "checking National Language Support... " >&6; }
5005 # Check whether --enable-nls was given.
5006 if test "${enable_nls+set}" = set; then :
5007 enableval=$enable_nls; AUX_NLS=$enableval
5012 if test $AUX_NLS != "no" && test $HAVE_LIBINTL_H && test $HAVE_LOCALE_H; then
5019 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUX_NLS" >&5
5020 $as_echo "$AUX_NLS" >&6; }
5022 if test $AUX_NLS = "yes" && test x$MSGFMT != x"msgfmt"; then
5023 echo "WARNING: msgfmt command not found!"
5025 if test $AUX_NLS = "yes" && test x$XGETTEXT != x"xgettext"; then
5026 echo "WARNING: xgettext command not found!"
5028 if test $AUX_NLS = "yes" && test x$MSGMERGE != x"msgmerge"; then
5029 echo "WARNING: msgmerge command not found!"
5032 # Check whether sa2 should process data file of the day before
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sa2 should process data file of the day before" >&5
5034 $as_echo_n "checking whether sa2 should process data file of the day before... " >&6; }
5035 # Check whether --enable-yesterday was given.
5036 if test "${enable_yesterday+set}" = set; then :
5037 enableval=$enable_yesterday; AUX_YESTERDAY=$enableval
5042 if test $AUX_YESTERDAY = "yes"; then
5043 YESTERDAY="--date=yesterday"
5044 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
5045 $as_echo "yes" >&6; }
5048 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5049 $as_echo "no" >&6; }
5053 # Data history to keep by sa2
5054 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of daily data files to keep" >&5
5055 $as_echo_n "checking number of daily data files to keep... " >&6; }
5057 if test x$history = x""; then
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HISTORY" >&5
5063 $as_echo "$HISTORY" >&6; }
5066 # Number of days after which datafiles are compressed
5067 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of days after which data files are compressed" >&5
5068 $as_echo_n "checking number of days after which data files are compressed... " >&6; }
5070 if test x$compressafter = x""; then
5073 COMPRESSAFTER=$compressafter
5075 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMPRESSAFTER" >&5
5076 $as_echo "$COMPRESSAFTER" >&6; }
5079 # Preallocation factor
5080 { $as_echo "$as_me:${as_lineno-$LINENO}: checking preallocation factor value" >&5
5081 $as_echo_n "checking preallocation factor value... " >&6; }
5083 if test x$prealloc = x""; then
5086 PREALLOC_FACTOR=$prealloc
5088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PREALLOC_FACTOR" >&5
5089 $as_echo "$PREALLOC_FACTOR" >&6; }
5093 grep ^man: /etc/group >/dev/null 2>&1
5094 if test $? = 0; then
5100 { $as_echo "$as_me:${as_lineno-$LINENO}: checking group for manual pages" >&5
5101 $as_echo_n "checking group for manual pages... " >&6; }
5103 if test x$man_group = x""; then
5105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAN_GROUP" >&5
5106 $as_echo "$MAN_GROUP" >&6; }
5108 grep ^$man_group: /etc/group >/dev/null 2>&1
5109 if test $? = 1; then
5111 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAN_GROUP" >&5
5112 $as_echo "$MAN_GROUP" >&6; }
5113 echo "WARNING: Group ${man_group} not found: Using ${GRP} instead"
5115 MAN_GROUP=$man_group
5116 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAN_GROUP" >&5
5117 $as_echo "$MAN_GROUP" >&6; }
5122 # Don't set attributes on files being installed?
5123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether attributes should not be set on files being installed" >&5
5124 $as_echo_n "checking whether attributes should not be set on files being installed... " >&6; }
5125 # Check whether --enable-file-attr was given.
5126 if test "${enable_file_attr+set}" = set; then :
5127 enableval=$enable_file_attr; AUX_IMG=$enableval
5132 if test $AUX_IMG != "no"; then
5133 IGNORE_FILE_ATTRIBUTES=n
5136 IGNORE_FILE_ATTRIBUTES=y
5139 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUX_IMG" >&5
5140 $as_echo "$AUX_IMG" >&6; }
5143 # Compress manual pages?
5144 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether manual pages should be compressed" >&5
5145 $as_echo_n "checking whether manual pages should be compressed... " >&6; }
5146 # Check whether --enable-compress-manpg was given.
5147 if test "${enable_compress_manpg+set}" = set; then :
5148 enableval=$enable_compress_manpg; AUX_MPG=$enableval
5153 if test $AUX_MPG != "yes"; then
5159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUX_MPG" >&5
5160 $as_echo "$AUX_MPG" >&6; }
5163 # Check whether isag should be installed
5164 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isag script should be installed" >&5
5165 $as_echo_n "checking whether isag script should be installed... " >&6; }
5166 # Check whether --enable-install-isag was given.
5167 if test "${enable_install_isag+set}" = set; then :
5168 enableval=$enable_install_isag; AUX_IIS=$enableval
5173 if test $AUX_IIS != "yes"; then
5179 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUX_IIS" >&5
5180 $as_echo "$AUX_IIS" >&6; }
5183 # Check whether sa directory should be cleaned
5184 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system activity directory should be cleaned" >&5
5185 $as_echo_n "checking whether system activity directory should be cleaned... " >&6; }
5186 # Check whether --enable-clean-sa-dir was given.
5187 if test "${enable_clean_sa_dir+set}" = set; then :
5188 enableval=$enable_clean_sa_dir; AUX_CSD=$enableval
5193 if test $AUX_CSD != "yes"; then
5199 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUX_CSD" >&5
5200 $as_echo "$AUX_CSD" >&6; }
5204 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cron should start sar automatically" >&5
5205 $as_echo_n "checking whether cron should start sar automatically... " >&6; }
5206 # Check whether --enable-install-cron was given.
5207 if test "${enable_install_cron+set}" = set; then :
5208 enableval=$enable_install_cron; INSTALL_CRON=$enableval
5213 if test $INSTALL_CRON != "yes"; then
5220 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUX_CRON" >&5
5221 $as_echo "$AUX_CRON" >&6; }
5226 if test $INSTALL_CRON = "y"; then
5227 { $as_echo "$as_me:${as_lineno-$LINENO}: checking crontab owner" >&5
5228 $as_echo_n "checking crontab owner... " >&6; }
5230 if test x$cron_owner = x""; then
5232 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CRON_OWNER" >&5
5233 $as_echo "$CRON_OWNER" >&6; }
5235 grep ^$cron_owner: /etc/passwd >/dev/null 2>&1
5236 if test $? = 1; then
5238 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CRON_OWNER" >&5
5239 $as_echo "$CRON_OWNER" >&6; }
5240 echo "WARNING: User ${cron_owner} not found: Using ${CUSR} instead."
5242 CRON_OWNER=$cron_owner
5243 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CRON_OWNER" >&5
5244 $as_echo "$CRON_OWNER" >&6; }
5247 echo "INFO: Crontab for ${CRON_OWNER} will be saved in current directory if necessary"
5248 if test $CRON_OWNER = "root"; then
5251 REM_CHOWN="# REM_CHOWN"
5253 SU_C_OWNER="su $CRON_OWNER -c "
5255 # " (ignore this line)
5260 { $as_echo "$as_me:${as_lineno-$LINENO}: checking crontab interval" >&5
5261 $as_echo_n "checking crontab interval... " >&6; }
5263 if test x$cron_interval = x""; then
5266 CRON_INTERVAL=$cron_interval
5268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CRON_INTERVAL" >&5
5269 $as_echo "$CRON_INTERVAL" >&6; }
5270 CRON_INTERVAL_SEC=`expr ${CRON_INTERVAL} \* 60`
5271 CRON_COUNT=`expr 60 / ${CRON_INTERVAL}`
5273 # Check whether sadc should collect all possible activities
5274 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sadc should collect all possible activities" >&5
5275 $as_echo_n "checking whether sadc should collect all possible activities... " >&6; }
5276 # Check whether --enable-collect-all was given.
5277 if test "${enable_collect_all+set}" = set; then :
5278 enableval=$enable_collect_all; COLLECT_ALL=$enableval
5283 if test $COLLECT_ALL != "yes"; then
5287 COLLECT_ALL="-S XALL"
5290 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUX_COLL" >&5
5291 $as_echo "$AUX_COLL" >&6; }
5293 { $as_echo "$as_me:${as_lineno-$LINENO}: checking options to be passed to sadc" >&5
5294 $as_echo_n "checking options to be passed to sadc... " >&6; }
5296 if test x"$sadc_options" != x""; then
5297 SADC_OPT="$sadc_options"
5301 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SADC_OPT" >&5
5302 $as_echo "$SADC_OPT" >&6; }
5305 # Check whether files should only be copied
5306 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether files should only be copied" >&5
5307 $as_echo_n "checking whether files should only be copied... " >&6; }
5308 # Check whether --enable-copy-only was given.
5309 if test "${enable_copy_only+set}" = set; then :
5310 enableval=$enable_copy_only; OCOPY=$enableval
5315 if test $OCOPY != "yes"; then
5321 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $OCOPY" >&5
5322 $as_echo "$OCOPY" >&6; }
5329 REM_CHOWN="# REM_CHOWN"
5331 CRON_INTERVAL_SEC=600
5344 # Check whether documentation should be installed
5345 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether documentation should be installed" >&5
5346 $as_echo_n "checking whether documentation should be installed... " >&6; }
5347 # Check whether --enable-documentation was given.
5348 if test "${enable_documentation+set}" = set; then :
5349 enableval=$enable_documentation; AUX_DOC=$enableval
5354 if test $AUX_DOC != "no"; then
5361 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUX_DOC" >&5
5362 $as_echo "$AUX_DOC" >&6; }
5365 # Set directory for installing manual pages (see comment in Makefile)
5368 # Check whether --debuginfo options should be allowed
5369 # Check whether --enable-debuginfo was given.
5370 if test "${enable_debuginfo+set}" = set; then :
5371 enableval=$enable_debuginfo; WITH_DEBUG=yes ; DFLAGS="$DFLAGS -DDEBUG"
5379 # Check whether object files should be stripped
5380 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether object files should be stripped" >&5
5381 $as_echo_n "checking whether object files should be stripped... " >&6; }
5382 # Check whether --enable-stripping was given.
5383 if test "${enable_stripping+set}" = set; then :
5384 enableval=$enable_stripping; AUX_STRIP=$enableval
5389 if test $AUX_STRIP != "no"; then
5396 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUX_STRIP" >&5
5397 $as_echo "$AUX_STRIP" >&6; }
5402 echo Now create files:
5404 ac_config_files="$ac_config_files sa1"
5405 # Permissions must be changed
5406 ac_config_files="$ac_config_files sa2"
5407 # Permissions must be changed
5408 ac_config_files="$ac_config_files cron/crontab:cron/crontab.sample"
5409 # File must be renamed
5410 ac_config_files="$ac_config_files sysstat.sysconfig"
5412 ac_config_files="$ac_config_files version.h:version.in"
5413 # File must be renamed
5414 ac_config_files="$ac_config_files sysconfig.h:sysconfig.in"
5415 # File must be renamed
5416 ac_config_files="$ac_config_files prealloc.h:prealloc.in"
5417 # File must be renamed
5418 ac_config_files="$ac_config_files cron/sysstat.cron.daily"
5420 ac_config_files="$ac_config_files cron/sysstat.cron.hourly"
5422 ac_config_files="$ac_config_files cron/sysstat.crond"
5424 ac_config_files="$ac_config_files cron/sysstat.crond.sample.in:cron/sysstat.crond.in"
5426 ac_config_files="$ac_config_files sysstat"
5427 # Permissions must be changed
5428 ac_config_files="$ac_config_files sysstat.service"
5430 ac_config_files="$ac_config_files cron/sysstat-collect.service"
5432 ac_config_files="$ac_config_files cron/sysstat-collect.timer"
5434 ac_config_files="$ac_config_files cron/sysstat-summary.service"
5436 ac_config_files="$ac_config_files cron/sysstat-summary.timer"
5438 ac_config_files="$ac_config_files man/sa1.8:man/sa1.in"
5439 # File must be renamed
5440 ac_config_files="$ac_config_files man/sa2.8:man/sa2.in"
5441 # File must be renamed
5442 ac_config_files="$ac_config_files man/sadc.8:man/sadc.in"
5443 # File must be renamed
5444 ac_config_files="$ac_config_files man/sadf.1:man/sadf.in"
5445 # File must be renamed
5446 ac_config_files="$ac_config_files man/sar.1:man/sar.in"
5447 # File must be renamed
5448 ac_config_files="$ac_config_files man/sysstat.5:man/sysstat.in"
5449 # File must be renamed
5450 ac_config_files="$ac_config_files man/iostat.1:man/iostat.in"
5451 # File must be renamed
5452 ac_config_files="$ac_config_files man/cifsiostat.1:man/cifsiostat.in"
5453 # File must be renamed
5454 ac_config_files="$ac_config_files man/nfsiostat-sysstat.1:man/nfsiostat-sysstat.in"
5455 # File must be renamed
5456 ac_config_files="$ac_config_files contrib/isag/isag"
5457 # Permissions must be changed
5459 ac_config_files="$ac_config_files Makefile"
5461 cat >confcache <<\_ACEOF
5462 # This file is a shell script that caches the results of configure
5463 # tests run on this system so they can be shared between configure
5464 # scripts and configure runs, see configure's option --config-cache.
5465 # It is not useful on other systems. If it contains results you don't
5466 # want to keep, you may remove or edit it.
5468 # config.status only pays attention to the cache file if you give it
5469 # the --recheck option to rerun configure.
5471 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5472 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5477 # The following way of writing the cache mishandles newlines in values,
5478 # but we know of no workaround that is simple, portable, and efficient.
5479 # So, we kill variables containing newlines.
5480 # Ultrix sh set writes to stderr and can't be redirected directly,
5481 # and sets the high bit in the cache file unless we assign to the vars.
5483 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5484 eval ac_val=\$$ac_var
5488 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5489 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5492 _ | IFS | as_nl) ;; #(
5493 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5494 *) { eval $ac_var=; unset $ac_var;} ;;
5500 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5501 *${as_nl}ac_space=\ *)
5502 # `set' does not quote correctly, so add quotes: double-quote
5503 # substitution turns \\\\ into \\, and sed turns \\ into \.
5506 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5509 # `set' quotes correctly as required by POSIX, so do not add quotes.
5510 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5519 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5521 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5523 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5524 if test -w "$cache_file"; then
5525 if test "x$cache_file" != "x/dev/null"; then
5526 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5527 $as_echo "$as_me: updating cache $cache_file" >&6;}
5528 if test ! -f "$cache_file" || test -h "$cache_file"; then
5529 cat confcache >"$cache_file"
5531 case $cache_file in #(
5533 mv -f confcache "$cache_file"$$ &&
5534 mv -f "$cache_file"$$ "$cache_file" ;; #(
5536 mv -f confcache "$cache_file" ;;
5541 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5542 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5547 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5548 # Let make expand exec_prefix.
5549 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5551 # Transform confdefs.h into DEFS.
5552 # Protect against shell expansion while executing Makefile rules.
5553 # Protect against Makefile macro expansion.
5555 # If the first sed substitution is executed (which looks for macros that
5556 # take arguments), then branch to the quote section. Otherwise,
5557 # look for a macro that doesn't take arguments.
5567 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
5569 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
5573 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
5586 DEFS=`sed -n "$ac_script" confdefs.h`
5592 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5593 # 1. Remove the extension, and $U if already installed.
5594 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5595 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5596 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5597 # will be set to the directory where LIBOBJS objects are built.
5598 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5599 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
5603 LTLIBOBJS=$ac_ltlibobjs
5607 : "${CONFIG_STATUS=./config.status}"
5609 ac_clean_files_save=$ac_clean_files
5610 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5611 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5612 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5614 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5616 # Generated by $as_me.
5617 # Run this file to recreate the current configuration.
5618 # Compiler output produced by configure, useful for debugging
5619 # configure, is in config.log if it exists.
5625 SHELL=\${CONFIG_SHELL-$SHELL}
5628 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5629 ## -------------------- ##
5630 ## M4sh Initialization. ##
5631 ## -------------------- ##
5633 # Be more Bourne compatible
5634 DUALCASE=1; export DUALCASE # for MKS sh
5635 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
5638 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5639 # is contrary to our usage. Disable this feature.
5640 alias -g '${1+"$@"}'='"$@"'
5641 setopt NO_GLOB_SUBST
5643 case `(set -o) 2>/dev/null` in #(
5655 # Printing a long string crashes Solaris 7 /usr/bin/printf.
5656 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5657 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5658 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5659 # Prefer a ksh shell builtin over an external printf program on Solaris,
5660 # but without wasting forks for bash or zsh.
5661 if test -z "$BASH_VERSION$ZSH_VERSION" \
5662 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5663 as_echo='print -r --'
5664 as_echo_n='print -rn --'
5665 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5666 as_echo='printf %s\n'
5667 as_echo_n='printf %s'
5669 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5670 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5671 as_echo_n='/usr/ucb/echo -n'
5673 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5674 as_echo_n_body='eval
5678 expr "X$arg" : "X\\(.*\\)$as_nl";
5679 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5681 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5683 export as_echo_n_body
5684 as_echo_n='sh -c $as_echo_n_body as_echo'
5687 as_echo='sh -c $as_echo_body as_echo'
5690 # The user is always right.
5691 if test "${PATH_SEPARATOR+set}" != set; then
5693 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5694 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5701 # We need space, tab and new line, in precisely that order. Quoting is
5702 # there to prevent editors from complaining about space-tab.
5703 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
5704 # splitting by setting IFS to empty value.)
5707 # Find who we are. Look in the path if we contain no directory separator.
5710 *[\\/]* ) as_myself=$0 ;;
5711 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5715 test -z "$as_dir" && as_dir=.
5716 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5722 # We did not find ourselves, most probably we were run as `sh COMMAND'
5723 # in which case we are not to be found in the path.
5724 if test "x$as_myself" = x; then
5727 if test ! -f "$as_myself"; then
5728 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5732 # Unset variables that we do not need and which cause bugs (e.g. in
5733 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
5734 # suppresses any "Segmentation fault" message there. '((' could
5735 # trigger a bug in pdksh 5.2.14.
5736 for as_var in BASH_ENV ENV MAIL MAILPATH
5737 do eval test x\${$as_var+set} = xset \
5738 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5751 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5754 # as_fn_error STATUS ERROR [LINENO LOG_FD]
5755 # ----------------------------------------
5756 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5757 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5758 # script with STATUS, using 1 if that was 0.
5761 as_status=$1; test $as_status -eq 0 && as_status=1
5763 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5764 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
5766 $as_echo "$as_me: error: $2" >&2
5767 as_fn_exit $as_status
5771 # as_fn_set_status STATUS
5772 # -----------------------
5773 # Set $? to STATUS, without forking.
5777 } # as_fn_set_status
5781 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5791 # Portably unset VAR.
5794 { eval $1=; unset $1;}
5796 as_unset=as_fn_unset
5797 # as_fn_append VAR VALUE
5798 # ----------------------
5799 # Append the text in VALUE to the end of the definition contained in VAR. Take
5800 # advantage of any shell optimizations that allow amortized linear growth over
5801 # repeated appends, instead of the typical quadratic growth present in naive
5803 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
5804 eval 'as_fn_append ()
5815 # as_fn_arith ARG...
5816 # ------------------
5817 # Perform arithmetic evaluation on the ARGs, and store the result in the
5818 # global $as_val. Take advantage of shells that can avoid forks. The arguments
5819 # must be portable across $(()) and expr.
5820 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
5821 eval 'as_fn_arith ()
5828 as_val=`expr "$@" || test $? -eq 1`
5833 if expr a : '\(a\)' >/dev/null 2>&1 &&
5834 test "X`expr 00001 : '.*\(...\)'`" = X001; then
5840 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5841 as_basename=basename
5846 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5852 as_me=`$as_basename -- "$0" ||
5853 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5854 X"$0" : 'X\(//\)$' \| \
5855 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5857 sed '/^.*\/\([^/][^/]*\)\/*$/{
5871 # Avoid depending upon Character Ranges.
5872 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5873 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5874 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5875 as_cr_digits='0123456789'
5876 as_cr_alnum=$as_cr_Letters$as_cr_digits
5878 ECHO_C= ECHO_N= ECHO_T=
5879 case `echo -n x` in #(((((
5881 case `echo 'xy\c'` in
5882 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
5884 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
5891 rm -f conf$$ conf$$.exe conf$$.file
5892 if test -d conf$$.dir; then
5893 rm -f conf$$.dir/conf$$.file
5896 mkdir conf$$.dir 2>/dev/null
5898 if (echo >conf$$.file) 2>/dev/null; then
5899 if ln -s conf$$.file conf$$ 2>/dev/null; then
5901 # ... but there are two gotchas:
5902 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5903 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5904 # In both cases, we have to default to `cp -pR'.
5905 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5907 elif ln conf$$.file conf$$ 2>/dev/null; then
5915 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5916 rmdir conf$$.dir 2>/dev/null
5921 # Create "$as_dir" as a directory, including parents if necessary.
5926 -*) as_dir=./$as_dir;;
5928 test -d "$as_dir" || eval $as_mkdir_p || {
5932 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5933 *) as_qdir=$as_dir;;
5935 as_dirs="'$as_qdir' $as_dirs"
5936 as_dir=`$as_dirname -- "$as_dir" ||
5937 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5938 X"$as_dir" : 'X\(//\)[^/]' \| \
5939 X"$as_dir" : 'X\(//\)$' \| \
5940 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5941 $as_echo X"$as_dir" |
5942 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5959 test -d "$as_dir" && break
5961 test -z "$as_dirs" || eval "mkdir $as_dirs"
5962 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5966 if mkdir -p . 2>/dev/null; then
5967 as_mkdir_p='mkdir -p "$as_dir"'
5969 test -d ./-p && rmdir ./-p
5974 # as_fn_executable_p FILE
5975 # -----------------------
5976 # Test if FILE is an executable regular file.
5977 as_fn_executable_p ()
5979 test -f "$1" && test -x "$1"
5980 } # as_fn_executable_p
5982 as_executable_p=as_fn_executable_p
5984 # Sed expression to map a string onto a valid CPP name.
5985 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5987 # Sed expression to map a string onto a valid variable name.
5988 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5992 ## ----------------------------------- ##
5993 ## Main body of $CONFIG_STATUS script. ##
5994 ## ----------------------------------- ##
5996 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
5998 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5999 # Save the log message, to keep $0 and so on meaningful, and to
6000 # report actual input values of CONFIG_FILES etc. instead of their
6001 # values after options handling.
6003 This file was extended by sysstat $as_me 11.1.3, which was
6004 generated by GNU Autoconf 2.69. Invocation command line was
6006 CONFIG_FILES = $CONFIG_FILES
6007 CONFIG_HEADERS = $CONFIG_HEADERS
6008 CONFIG_LINKS = $CONFIG_LINKS
6009 CONFIG_COMMANDS = $CONFIG_COMMANDS
6012 on `(hostname || uname -n) 2>/dev/null | sed 1q`
6017 case $ac_config_files in *"
6018 "*) set x $ac_config_files; shift; ac_config_files=$*;;
6023 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6024 # Files that config.status was made for.
6025 config_files="$ac_config_files"
6029 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6031 \`$as_me' instantiates files and other configuration actions
6032 from templates according to the current configuration. Unless the files
6033 and actions are specified as TAGs, all are instantiated by default.
6035 Usage: $0 [OPTION]... [TAG]...
6037 -h, --help print this help, then exit
6038 -V, --version print version number and configuration settings, then exit
6039 --config print configuration, then exit
6040 -q, --quiet, --silent
6041 do not print progress messages
6042 -d, --debug don't remove temporary files
6043 --recheck update $as_me by reconfiguring in the same conditions
6044 --file=FILE[:TEMPLATE]
6045 instantiate the configuration file FILE
6047 Configuration files:
6050 Report bugs to the package provider."
6053 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6054 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
6056 sysstat config.status 11.1.3
6057 configured by $0, generated by GNU Autoconf 2.69,
6058 with options \\"\$ac_cs_config\\"
6060 Copyright (C) 2012 Free Software Foundation, Inc.
6061 This config.status script is free software; the Free Software Foundation
6062 gives unlimited permission to copy, distribute and modify it."
6066 test -n "\$AWK" || AWK=awk
6069 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6070 # The default lists apply if the user does not specify any file.
6076 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6077 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6081 ac_option=`expr "X$1" : 'X\([^=]*\)='`
6093 # Handling of the options.
6094 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6096 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6097 $as_echo "$ac_cs_version"; exit ;;
6098 --config | --confi | --conf | --con | --co | --c )
6099 $as_echo "$ac_cs_config"; exit ;;
6100 --debug | --debu | --deb | --de | --d | -d )
6102 --file | --fil | --fi | --f )
6105 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6106 '') as_fn_error $? "missing file argument" ;;
6108 as_fn_append CONFIG_FILES " '$ac_optarg'"
6109 ac_need_defaults=false;;
6110 --he | --h | --help | --hel | -h )
6111 $as_echo "$ac_cs_usage"; exit ;;
6112 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6113 | -silent | --silent | --silen | --sile | --sil | --si | --s)
6117 -*) as_fn_error $? "unrecognized option: \`$1'
6118 Try \`$0 --help' for more information." ;;
6120 *) as_fn_append ac_config_targets " $1"
6121 ac_need_defaults=false ;;
6127 ac_configure_extra_args=
6129 if $ac_cs_silent; then
6131 ac_configure_extra_args="$ac_configure_extra_args --silent"
6135 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6136 if \$ac_cs_recheck; then
6137 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6139 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6140 CONFIG_SHELL='$SHELL'
6146 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6150 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6151 ## Running $as_me. ##
6157 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6160 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6162 # Handling of arguments.
6163 for ac_config_target in $ac_config_targets
6165 case $ac_config_target in
6166 "sa1") CONFIG_FILES="$CONFIG_FILES sa1" ;;
6167 "sa2") CONFIG_FILES="$CONFIG_FILES sa2" ;;
6168 "cron/crontab") CONFIG_FILES="$CONFIG_FILES cron/crontab:cron/crontab.sample" ;;
6169 "sysstat.sysconfig") CONFIG_FILES="$CONFIG_FILES sysstat.sysconfig" ;;
6170 "version.h") CONFIG_FILES="$CONFIG_FILES version.h:version.in" ;;
6171 "sysconfig.h") CONFIG_FILES="$CONFIG_FILES sysconfig.h:sysconfig.in" ;;
6172 "prealloc.h") CONFIG_FILES="$CONFIG_FILES prealloc.h:prealloc.in" ;;
6173 "cron/sysstat.cron.daily") CONFIG_FILES="$CONFIG_FILES cron/sysstat.cron.daily" ;;
6174 "cron/sysstat.cron.hourly") CONFIG_FILES="$CONFIG_FILES cron/sysstat.cron.hourly" ;;
6175 "cron/sysstat.crond") CONFIG_FILES="$CONFIG_FILES cron/sysstat.crond" ;;
6176 "cron/sysstat.crond.sample.in") CONFIG_FILES="$CONFIG_FILES cron/sysstat.crond.sample.in:cron/sysstat.crond.in" ;;
6177 "sysstat") CONFIG_FILES="$CONFIG_FILES sysstat" ;;
6178 "sysstat.service") CONFIG_FILES="$CONFIG_FILES sysstat.service" ;;
6179 "cron/sysstat-collect.service") CONFIG_FILES="$CONFIG_FILES cron/sysstat-collect.service" ;;
6180 "cron/sysstat-collect.timer") CONFIG_FILES="$CONFIG_FILES cron/sysstat-collect.timer" ;;
6181 "cron/sysstat-summary.service") CONFIG_FILES="$CONFIG_FILES cron/sysstat-summary.service" ;;
6182 "cron/sysstat-summary.timer") CONFIG_FILES="$CONFIG_FILES cron/sysstat-summary.timer" ;;
6183 "man/sa1.8") CONFIG_FILES="$CONFIG_FILES man/sa1.8:man/sa1.in" ;;
6184 "man/sa2.8") CONFIG_FILES="$CONFIG_FILES man/sa2.8:man/sa2.in" ;;
6185 "man/sadc.8") CONFIG_FILES="$CONFIG_FILES man/sadc.8:man/sadc.in" ;;
6186 "man/sadf.1") CONFIG_FILES="$CONFIG_FILES man/sadf.1:man/sadf.in" ;;
6187 "man/sar.1") CONFIG_FILES="$CONFIG_FILES man/sar.1:man/sar.in" ;;
6188 "man/sysstat.5") CONFIG_FILES="$CONFIG_FILES man/sysstat.5:man/sysstat.in" ;;
6189 "man/iostat.1") CONFIG_FILES="$CONFIG_FILES man/iostat.1:man/iostat.in" ;;
6190 "man/cifsiostat.1") CONFIG_FILES="$CONFIG_FILES man/cifsiostat.1:man/cifsiostat.in" ;;
6191 "man/nfsiostat-sysstat.1") CONFIG_FILES="$CONFIG_FILES man/nfsiostat-sysstat.1:man/nfsiostat-sysstat.in" ;;
6192 "contrib/isag/isag") CONFIG_FILES="$CONFIG_FILES contrib/isag/isag" ;;
6193 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6195 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
6200 # If the user did not use the arguments to specify the items to instantiate,
6201 # then the envvar interface is used. Set only those that are not.
6202 # We use the long form for the default assignment because of an extremely
6203 # bizarre bug on SunOS 4.1.3.
6204 if $ac_need_defaults; then
6205 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6208 # Have a temporary directory for convenience. Make it in the build tree
6209 # simply because there is no reason against having it here, and in addition,
6210 # creating and moving files from /tmp can sometimes cause problems.
6211 # Hook for its removal unless debugging.
6212 # Note that there is a small window in which the directory will not be cleaned:
6213 # after its creation but before its name has been assigned to `$tmp'.
6217 trap 'exit_status=$?
6219 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
6221 trap 'as_fn_exit 1' 1 2 13 15
6223 # Create a (secure) tmp directory for tmp files.
6226 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6230 tmp=./conf$$-$RANDOM
6231 (umask 077 && mkdir "$tmp")
6232 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
6235 # Set up the scripts for CONFIG_FILES section.
6236 # No need to generate them if there are no CONFIG_FILES.
6237 # This happens for instance with `./config.status config.h'.
6238 if test -n "$CONFIG_FILES"; then
6241 ac_cr=`echo X | tr X '\015'`
6242 # On cygwin, bash can eat \r inside `` if the user requested igncr.
6243 # But we know of no other shell where ac_cr would be empty at this
6244 # point, so we can use a bashism as a fallback.
6245 if test "x$ac_cr" = x; then
6246 eval ac_cr=\$\'\\r\'
6248 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6249 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6255 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
6260 echo "cat >conf$$subs.awk <<_ACEOF" &&
6261 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6264 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6265 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
6267 for ac_last_try in false false false false false :; do
6268 . ./conf$$subs.sh ||
6269 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6271 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6272 if test $ac_delim_n = $ac_delim_num; then
6274 elif $ac_last_try; then
6275 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6277 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6282 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6283 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
6287 s/^/S["/; s/!.*/"]=/
6297 s/\(.\{148\}\)..*/\1/
6299 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6304 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6311 s/\(.\{148\}\)..*/\1/
6313 s/["\\]/\\&/g; s/^/"/; s/$/"/
6317 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6322 ' <conf$$subs.awk | sed '
6327 ' >>$CONFIG_STATUS || ac_write_fail=1
6328 rm -f conf$$subs.awk
6329 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6331 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
6332 for (key in S) S_is_set[key] = 1
6338 nfields = split(line, field, "@")
6340 len = length(field[1])
6341 for (i = 2; i < nfields; i++) {
6343 keylen = length(key)
6344 if (S_is_set[key]) {
6346 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6347 len += length(value) + length(field[++i])
6358 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6359 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6360 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6363 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
6364 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
6367 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
6368 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
6369 # trailing colons and then remove the whole line if VPATH becomes empty
6370 # (actually we leave an empty line to preserve line numbers).
6371 if test "x$srcdir" = x.; then
6372 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
6390 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6391 fi # test -n "$CONFIG_FILES"
6394 eval set X " :F $CONFIG_FILES "
6399 :[FHLC]) ac_mode=$ac_tag; continue;;
6401 case $ac_mode$ac_tag in
6403 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
6404 :[FH]-) ac_tag=-:-;;
6405 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6422 -) ac_f="$ac_tmp/stdin";;
6423 *) # Look for the file first in the build tree, then in the source tree
6424 # (if the path is not absolute). The absolute path cannot be DOS-style,
6425 # because $ac_f cannot contain `:'.
6429 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6431 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6433 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6434 as_fn_append ac_file_inputs " '$ac_f'"
6437 # Let's still pretend it is `configure' which instantiates (i.e., don't
6438 # use $as_me), people would be surprised to read:
6439 # /* config.h. Generated by config.status. */
6440 configure_input='Generated from '`
6441 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6443 if test x"$ac_file" != x-; then
6444 configure_input="$ac_file. $configure_input"
6445 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6446 $as_echo "$as_me: creating $ac_file" >&6;}
6448 # Neutralize special characters interpreted by sed in replacement strings.
6449 case $configure_input in #(
6450 *\&* | *\|* | *\\* )
6451 ac_sed_conf_input=`$as_echo "$configure_input" |
6452 sed 's/[\\\\&|]/\\\\&/g'`;; #(
6453 *) ac_sed_conf_input=$configure_input;;
6457 *:-:* | *:-) cat >"$ac_tmp/stdin" \
6458 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
6463 ac_dir=`$as_dirname -- "$ac_file" ||
6464 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6465 X"$ac_file" : 'X\(//\)[^/]' \| \
6466 X"$ac_file" : 'X\(//\)$' \| \
6467 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6468 $as_echo X"$ac_file" |
6469 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6486 as_dir="$ac_dir"; as_fn_mkdir_p
6490 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6492 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6493 # A ".." for each directory in $ac_dir_suffix.
6494 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6495 case $ac_top_builddir_sub in
6496 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6497 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6500 ac_abs_top_builddir=$ac_pwd
6501 ac_abs_builddir=$ac_pwd$ac_dir_suffix
6502 # for backward compatibility:
6503 ac_top_builddir=$ac_top_build_prefix
6506 .) # We are building in place.
6508 ac_top_srcdir=$ac_top_builddir_sub
6509 ac_abs_top_srcdir=$ac_pwd ;;
6510 [\\/]* | ?:[\\/]* ) # Absolute name.
6511 ac_srcdir=$srcdir$ac_dir_suffix;
6512 ac_top_srcdir=$srcdir
6513 ac_abs_top_srcdir=$srcdir ;;
6515 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6516 ac_top_srcdir=$ac_top_build_prefix$srcdir
6517 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6519 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6530 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6531 # If the template does not know about datarootdir, expand it.
6532 # FIXME: This hack should be removed a few years after 2.60.
6533 ac_datarootdir_hack=; ac_datarootdir_seen=
6544 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6545 *datarootdir*) ac_datarootdir_seen=yes;;
6546 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6547 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6548 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6550 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6551 ac_datarootdir_hack='
6552 s&@datadir@&$datadir&g
6553 s&@docdir@&$docdir&g
6554 s&@infodir@&$infodir&g
6555 s&@localedir@&$localedir&g
6556 s&@mandir@&$mandir&g
6557 s&\\\${datarootdir}&$datarootdir&g' ;;
6561 # Neutralize VPATH when `$srcdir' = `.'.
6562 # Shell code in configure.ac might set extrasub.
6563 # FIXME: do we really want to maintain this feature?
6564 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6565 ac_sed_extra="$ac_vpsub
6568 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6570 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6571 s|@configure_input@|$ac_sed_conf_input|;t t
6572 s&@top_builddir@&$ac_top_builddir_sub&;t t
6573 s&@top_build_prefix@&$ac_top_build_prefix&;t t
6574 s&@srcdir@&$ac_srcdir&;t t
6575 s&@abs_srcdir@&$ac_abs_srcdir&;t t
6576 s&@top_srcdir@&$ac_top_srcdir&;t t
6577 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6578 s&@builddir@&$ac_builddir&;t t
6579 s&@abs_builddir@&$ac_abs_builddir&;t t
6580 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6581 $ac_datarootdir_hack
6583 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
6584 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6586 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6587 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
6588 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
6589 "$ac_tmp/out"`; test -z "$ac_out"; } &&
6590 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6591 which seems to be undefined. Please make sure it is defined" >&5
6592 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6593 which seems to be undefined. Please make sure it is defined" >&2;}
6595 rm -f "$ac_tmp/stdin"
6597 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
6598 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
6600 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6608 case $ac_file$ac_mode in
6609 "sa1":F) chmod +x sa1 ;;
6610 "sa2":F) chmod +x sa2 ;;
6611 "cron/sysstat.crond.sample.in":F) sed s/^/#/ cron/sysstat.crond.sample.in > cron/sysstat.crond.sample ;;
6612 "sysstat":F) chmod +x sysstat ;;
6613 "contrib/isag/isag":F) chmod +x contrib/isag/isag ;;
6621 ac_clean_files=$ac_clean_files_save
6623 test $ac_write_fail = 0 ||
6624 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
6627 # configure is writing to config.log, and then calls config.status.
6628 # config.status does its own redirection, appending to config.log.
6629 # Unfortunately, on DOS this fails, as config.log is still kept open
6630 # by configure, so config.status won't be able to write to it; its
6631 # output is simply discarded. So we exec the FD to /dev/null,
6632 # effectively closing config.log, so it can be properly (re)opened and
6633 # appended to by config.status. When coming back to configure, we
6634 # need to make the FD available again.
6635 if test "$no_create" != yes; then
6637 ac_config_status_args=
6638 test "$silent" = yes &&
6639 ac_config_status_args="$ac_config_status_args --quiet"
6641 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6643 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6644 # would make configure fail if this is the last instruction.
6645 $ac_cs_success || as_fn_exit 1
6647 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6648 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6649 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
6654 Sysstat version: $PACKAGE_VERSION
6655 Installation prefix: $prefix
6656 rc directory: ${RC_DIR}
6657 Init directory: ${INIT_DIR}
6658 Systemd unit dir: ${with_systemdsystemunitdir}
6659 Configuration directory: ${SYSCONFIG_DIR}
6660 Man pages directory: $mandir
6662 Compiler flags: $CFLAGS