2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.68 for sysstat 10.1.2.
6 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
7 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009, 2010 Free Software
11 # This configure script is free software; the Free Software Foundation
12 # gives unlimited permission to copy, distribute and modify it.
13 ## -------------------- ##
14 ## M4sh Initialization. ##
15 ## -------------------- ##
17 # Be more Bourne compatible
18 DUALCASE=1; export DUALCASE # for MKS sh
19 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
27 case `(set -o) 2>/dev/null` in #(
39 # Printing a long string crashes Solaris 7 /usr/bin/printf.
40 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43 # Prefer a ksh shell builtin over an external printf program on Solaris,
44 # but without wasting forks for bash or zsh.
45 if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
48 as_echo_n='print -rn --'
49 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
68 as_echo_n='sh -c $as_echo_n_body as_echo'
71 as_echo='sh -c $as_echo_body as_echo'
74 # The user is always right.
75 if test "${PATH_SEPARATOR+set}" != set; then
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
85 # We need space, tab and new line, in precisely that order. Quoting is
86 # there to prevent editors from complaining about space-tab.
87 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
88 # splitting by setting IFS to empty value.)
91 # Find who we are. Look in the path if we contain no directory separator.
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
106 # We did not find ourselves, most probably we were run as `sh COMMAND'
107 # in which case we are not to be found in the path.
108 if test "x$as_myself" = x; then
111 if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
116 # Unset variables that we do not need and which cause bugs (e.g. in
117 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118 # suppresses any "Segmentation fault" message there. '((' could
119 # trigger a bug in pdksh 5.2.14.
120 for as_var in BASH_ENV ENV MAIL MAILPATH
121 do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
135 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
137 if test "x$CONFIG_SHELL" = x; then
138 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
141 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
142 # is contrary to our usage. Disable this feature.
143 alias -g '\${1+\"\$@\"}'='\"\$@\"'
146 case \`(set -o) 2>/dev/null\` in #(
154 as_required="as_fn_return () { (exit \$1); }
155 as_fn_success () { as_fn_return 0; }
156 as_fn_failure () { as_fn_return 1; }
157 as_fn_ret_success () { return 0; }
158 as_fn_ret_failure () { return 1; }
161 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
162 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
163 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
164 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
165 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
168 exitcode=1; echo positional parameters were not saved.
170 test x\$exitcode = x0 || exit 1"
171 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
172 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
173 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
174 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
175 test \$(( 1 + 1 )) = 2 || exit 1"
176 if (eval "$as_required") 2>/dev/null; then :
181 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
184 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
186 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
189 test -z "$as_dir" && as_dir=.
193 for as_base in sh bash ksh sh5; do
194 # Try only shells that exist, to save several forks.
195 as_shell=$as_dir/$as_base
196 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
197 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
198 CONFIG_SHELL=$as_shell as_have_required=yes
199 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
207 $as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
208 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
209 CONFIG_SHELL=$SHELL as_have_required=yes
214 if test "x$CONFIG_SHELL" != x; then :
215 # We cannot yet assume a decent shell, so we have to provide a
216 # neutralization value for shells without unset; and this also
217 # works around shells that cannot unset nonexistent variables.
218 # Preserve -v and -x to the replacement shell.
221 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
224 *v*x* | *x*v* ) as_opts=-vx ;;
229 exec "$CONFIG_SHELL" $as_opts "$as_myself" ${1+"$@"}
232 if test x$as_have_required = xno; then :
233 $as_echo "$0: This script requires a shell more modern than all"
234 $as_echo "$0: the shells that I found on your system."
235 if test x${ZSH_VERSION+set} = xset ; then
236 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
237 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
239 $as_echo "$0: Please tell bug-autoconf@gnu.org about your system,
240 $0: including any error possibly output before this
241 $0: message. Then install a modern shell, or manually run
242 $0: the script under such a shell if you do have one."
248 SHELL=${CONFIG_SHELL-/bin/sh}
250 # Unset more variables known to interfere with behavior of common tools.
251 CLICOLOR_FORCE= GREP_OPTIONS=
252 unset CLICOLOR_FORCE GREP_OPTIONS
254 ## --------------------- ##
255 ## M4sh Shell Functions. ##
256 ## --------------------- ##
259 # Portably unset VAR.
262 { eval $1=; unset $1;}
266 # as_fn_set_status STATUS
267 # -----------------------
268 # Set $? to STATUS, without forking.
276 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
286 # Create "$as_dir" as a directory, including parents if necessary.
291 -*) as_dir=./$as_dir;;
293 test -d "$as_dir" || eval $as_mkdir_p || {
297 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
300 as_dirs="'$as_qdir' $as_dirs"
301 as_dir=`$as_dirname -- "$as_dir" ||
302 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
303 X"$as_dir" : 'X\(//\)[^/]' \| \
304 X"$as_dir" : 'X\(//\)$' \| \
305 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
306 $as_echo X"$as_dir" |
307 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
324 test -d "$as_dir" && break
326 test -z "$as_dirs" || eval "mkdir $as_dirs"
327 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
331 # as_fn_append VAR VALUE
332 # ----------------------
333 # Append the text in VALUE to the end of the definition contained in VAR. Take
334 # advantage of any shell optimizations that allow amortized linear growth over
335 # repeated appends, instead of the typical quadratic growth present in naive
337 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
338 eval 'as_fn_append ()
351 # Perform arithmetic evaluation on the ARGs, and store the result in the
352 # global $as_val. Take advantage of shells that can avoid forks. The arguments
353 # must be portable across $(()) and expr.
354 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
362 as_val=`expr "$@" || test $? -eq 1`
367 # as_fn_error STATUS ERROR [LINENO LOG_FD]
368 # ----------------------------------------
369 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
370 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
371 # script with STATUS, using 1 if that was 0.
374 as_status=$1; test $as_status -eq 0 && as_status=1
376 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
377 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
379 $as_echo "$as_me: error: $2" >&2
380 as_fn_exit $as_status
383 if expr a : '\(a\)' >/dev/null 2>&1 &&
384 test "X`expr 00001 : '.*\(...\)'`" = X001; then
390 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
396 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
402 as_me=`$as_basename -- "$0" ||
403 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
404 X"$0" : 'X\(//\)$' \| \
405 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
407 sed '/^.*\/\([^/][^/]*\)\/*$/{
421 # Avoid depending upon Character Ranges.
422 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
423 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
424 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
425 as_cr_digits='0123456789'
426 as_cr_alnum=$as_cr_Letters$as_cr_digits
429 as_lineno_1=$LINENO as_lineno_1a=$LINENO
430 as_lineno_2=$LINENO as_lineno_2a=$LINENO
431 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
432 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
433 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
449 chmod +x "$as_me.lineno" ||
450 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
452 # Don't try to exec as it changes $[0], causing all sort of problems
453 # (the dirname of $[0] is not the place where we might find the
454 # original and so on. Autoconf is especially sensitive to this).
456 # Exit status is that of the last command.
460 ECHO_C= ECHO_N= ECHO_T=
461 case `echo -n x` in #(((((
463 case `echo 'xy\c'` in
464 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
466 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
473 rm -f conf$$ conf$$.exe conf$$.file
474 if test -d conf$$.dir; then
475 rm -f conf$$.dir/conf$$.file
478 mkdir conf$$.dir 2>/dev/null
480 if (echo >conf$$.file) 2>/dev/null; then
481 if ln -s conf$$.file conf$$ 2>/dev/null; then
483 # ... but there are two gotchas:
484 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
485 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
486 # In both cases, we have to default to `cp -p'.
487 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
489 elif ln conf$$.file conf$$ 2>/dev/null; then
497 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
498 rmdir conf$$.dir 2>/dev/null
500 if mkdir -p . 2>/dev/null; then
501 as_mkdir_p='mkdir -p "$as_dir"'
503 test -d ./-p && rmdir ./-p
507 if test -x / >/dev/null 2>&1; then
510 if ls -dL / >/dev/null 2>&1; then
517 if test -d "$1"; then
523 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
524 ???[sx]*):;;*)false;;esac;fi
528 as_executable_p=$as_test_x
530 # Sed expression to map a string onto a valid CPP name.
531 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
533 # Sed expression to map a string onto a valid variable name.
534 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
537 test -n "$DJDIR" || exec 7<&0 </dev/null
541 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
542 # so uname gets run too.
543 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
548 ac_default_prefix=/usr/local
550 ac_config_libobj_dir=.
557 # Identity of this package.
558 PACKAGE_NAME='sysstat'
559 PACKAGE_TARNAME='sysstat'
560 PACKAGE_VERSION='10.1.2'
561 PACKAGE_STRING='sysstat 10.1.2'
565 ac_unique_file="ioconf.h"
566 # Factoring default headers for most tests.
567 ac_includes_default="\
569 #ifdef HAVE_SYS_TYPES_H
570 # include <sys/types.h>
572 #ifdef HAVE_SYS_STAT_H
573 # include <sys/stat.h>
579 # ifdef HAVE_STDLIB_H
584 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
589 #ifdef HAVE_STRINGS_H
590 # include <strings.h>
592 #ifdef HAVE_INTTYPES_H
593 # include <inttypes.h>
602 ac_subst_vars='LTLIBOBJS
694 program_transform_name
707 enable_option_checking
713 enable_compress_manpg
722 ac_precious_vars='build_alias
742 # Initialize some variables set by options.
744 ac_init_version=false
745 ac_unrecognized_opts=
747 # The variables have the same names as the options, with
748 # dashes changed to underlines.
756 program_transform_name=s,x,x,
764 # Installation directory options.
765 # These are left unexpanded so users can "make install exec_prefix=/foo"
766 # and all the variables that are supposed to be based on exec_prefix
767 # by default will actually change.
768 # Use braces instead of parens because sh, perl, etc. also accept them.
769 # (The list follows the same order as the GNU Coding Standards.)
770 bindir='${exec_prefix}/bin'
771 sbindir='${exec_prefix}/sbin'
772 libexecdir='${exec_prefix}/libexec'
773 datarootdir='${prefix}/share'
774 datadir='${datarootdir}'
775 sysconfdir='${prefix}/etc'
776 sharedstatedir='${prefix}/com'
777 localstatedir='${prefix}/var'
778 includedir='${prefix}/include'
779 oldincludedir='/usr/include'
780 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
781 infodir='${datarootdir}/info'
786 libdir='${exec_prefix}/lib'
787 localedir='${datarootdir}/locale'
788 mandir='${datarootdir}/man'
794 # If the previous option needs an argument, assign it.
795 if test -n "$ac_prev"; then
796 eval $ac_prev=\$ac_option
802 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
807 # Accept the important Cygnus configure options, so we can diagnose typos.
809 case $ac_dashdash$ac_option in
813 -bindir | --bindir | --bindi | --bind | --bin | --bi)
815 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
818 -build | --build | --buil | --bui | --bu)
819 ac_prev=build_alias ;;
820 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
821 build_alias=$ac_optarg ;;
823 -cache-file | --cache-file | --cache-fil | --cache-fi \
824 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
825 ac_prev=cache_file ;;
826 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
827 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
828 cache_file=$ac_optarg ;;
831 cache_file=config.cache ;;
833 -datadir | --datadir | --datadi | --datad)
835 -datadir=* | --datadir=* | --datadi=* | --datad=*)
836 datadir=$ac_optarg ;;
838 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
839 | --dataroo | --dataro | --datar)
840 ac_prev=datarootdir ;;
841 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
842 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
843 datarootdir=$ac_optarg ;;
845 -disable-* | --disable-*)
846 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
847 # Reject names that are not valid shell variable names.
848 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
849 as_fn_error $? "invalid feature name: $ac_useropt"
850 ac_useropt_orig=$ac_useropt
851 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
852 case $ac_user_opts in
856 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
857 ac_unrecognized_sep=', ';;
859 eval enable_$ac_useropt=no ;;
861 -docdir | --docdir | --docdi | --doc | --do)
863 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
866 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
868 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
871 -enable-* | --enable-*)
872 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
873 # Reject names that are not valid shell variable names.
874 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
875 as_fn_error $? "invalid feature name: $ac_useropt"
876 ac_useropt_orig=$ac_useropt
877 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
878 case $ac_user_opts in
882 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
883 ac_unrecognized_sep=', ';;
885 eval enable_$ac_useropt=\$ac_optarg ;;
887 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
888 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
889 | --exec | --exe | --ex)
890 ac_prev=exec_prefix ;;
891 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
892 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
893 | --exec=* | --exe=* | --ex=*)
894 exec_prefix=$ac_optarg ;;
896 -gas | --gas | --ga | --g)
897 # Obsolete; use --with-gas.
900 -help | --help | --hel | --he | -h)
902 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
903 ac_init_help=recursive ;;
904 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
905 ac_init_help=short ;;
907 -host | --host | --hos | --ho)
908 ac_prev=host_alias ;;
909 -host=* | --host=* | --hos=* | --ho=*)
910 host_alias=$ac_optarg ;;
912 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
914 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
916 htmldir=$ac_optarg ;;
918 -includedir | --includedir | --includedi | --included | --include \
919 | --includ | --inclu | --incl | --inc)
920 ac_prev=includedir ;;
921 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
922 | --includ=* | --inclu=* | --incl=* | --inc=*)
923 includedir=$ac_optarg ;;
925 -infodir | --infodir | --infodi | --infod | --info | --inf)
927 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
928 infodir=$ac_optarg ;;
930 -libdir | --libdir | --libdi | --libd)
932 -libdir=* | --libdir=* | --libdi=* | --libd=*)
935 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
936 | --libexe | --libex | --libe)
937 ac_prev=libexecdir ;;
938 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
939 | --libexe=* | --libex=* | --libe=*)
940 libexecdir=$ac_optarg ;;
942 -localedir | --localedir | --localedi | --localed | --locale)
944 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
945 localedir=$ac_optarg ;;
947 -localstatedir | --localstatedir | --localstatedi | --localstated \
948 | --localstate | --localstat | --localsta | --localst | --locals)
949 ac_prev=localstatedir ;;
950 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
951 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
952 localstatedir=$ac_optarg ;;
954 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
956 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
960 # Obsolete; use --without-fp.
963 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
964 | --no-cr | --no-c | -n)
967 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
968 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
971 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
972 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
973 | --oldin | --oldi | --old | --ol | --o)
974 ac_prev=oldincludedir ;;
975 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
976 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
977 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
978 oldincludedir=$ac_optarg ;;
980 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
982 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
985 -program-prefix | --program-prefix | --program-prefi | --program-pref \
986 | --program-pre | --program-pr | --program-p)
987 ac_prev=program_prefix ;;
988 -program-prefix=* | --program-prefix=* | --program-prefi=* \
989 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
990 program_prefix=$ac_optarg ;;
992 -program-suffix | --program-suffix | --program-suffi | --program-suff \
993 | --program-suf | --program-su | --program-s)
994 ac_prev=program_suffix ;;
995 -program-suffix=* | --program-suffix=* | --program-suffi=* \
996 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
997 program_suffix=$ac_optarg ;;
999 -program-transform-name | --program-transform-name \
1000 | --program-transform-nam | --program-transform-na \
1001 | --program-transform-n | --program-transform- \
1002 | --program-transform | --program-transfor \
1003 | --program-transfo | --program-transf \
1004 | --program-trans | --program-tran \
1005 | --progr-tra | --program-tr | --program-t)
1006 ac_prev=program_transform_name ;;
1007 -program-transform-name=* | --program-transform-name=* \
1008 | --program-transform-nam=* | --program-transform-na=* \
1009 | --program-transform-n=* | --program-transform-=* \
1010 | --program-transform=* | --program-transfor=* \
1011 | --program-transfo=* | --program-transf=* \
1012 | --program-trans=* | --program-tran=* \
1013 | --progr-tra=* | --program-tr=* | --program-t=*)
1014 program_transform_name=$ac_optarg ;;
1016 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1018 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1019 pdfdir=$ac_optarg ;;
1021 -psdir | --psdir | --psdi | --psd | --ps)
1023 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1026 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1027 | -silent | --silent | --silen | --sile | --sil)
1030 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1032 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1034 sbindir=$ac_optarg ;;
1036 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1037 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1038 | --sharedst | --shareds | --shared | --share | --shar \
1040 ac_prev=sharedstatedir ;;
1041 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1042 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1043 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1045 sharedstatedir=$ac_optarg ;;
1047 -site | --site | --sit)
1049 -site=* | --site=* | --sit=*)
1052 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1054 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1055 srcdir=$ac_optarg ;;
1057 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1058 | --syscon | --sysco | --sysc | --sys | --sy)
1059 ac_prev=sysconfdir ;;
1060 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1061 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1062 sysconfdir=$ac_optarg ;;
1064 -target | --target | --targe | --targ | --tar | --ta | --t)
1065 ac_prev=target_alias ;;
1066 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1067 target_alias=$ac_optarg ;;
1069 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1072 -version | --version | --versio | --versi | --vers | -V)
1073 ac_init_version=: ;;
1076 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1077 # Reject names that are not valid shell variable names.
1078 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1079 as_fn_error $? "invalid package name: $ac_useropt"
1080 ac_useropt_orig=$ac_useropt
1081 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1082 case $ac_user_opts in
1086 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1087 ac_unrecognized_sep=', ';;
1089 eval with_$ac_useropt=\$ac_optarg ;;
1091 -without-* | --without-*)
1092 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1093 # Reject names that are not valid shell variable names.
1094 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1095 as_fn_error $? "invalid package name: $ac_useropt"
1096 ac_useropt_orig=$ac_useropt
1097 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1098 case $ac_user_opts in
1102 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1103 ac_unrecognized_sep=', ';;
1105 eval with_$ac_useropt=no ;;
1108 # Obsolete; use --with-x.
1111 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1112 | --x-incl | --x-inc | --x-in | --x-i)
1113 ac_prev=x_includes ;;
1114 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1115 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1116 x_includes=$ac_optarg ;;
1118 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1119 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1120 ac_prev=x_libraries ;;
1121 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1122 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1123 x_libraries=$ac_optarg ;;
1125 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1126 Try \`$0 --help' for more information"
1130 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1131 # Reject names that are not valid shell variable names.
1132 case $ac_envvar in #(
1133 '' | [0-9]* | *[!_$as_cr_alnum]* )
1134 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1136 eval $ac_envvar=\$ac_optarg
1137 export $ac_envvar ;;
1140 # FIXME: should be removed in autoconf 3.0.
1141 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1142 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1143 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1144 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1150 if test -n "$ac_prev"; then
1151 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1152 as_fn_error $? "missing argument to $ac_option"
1155 if test -n "$ac_unrecognized_opts"; then
1156 case $enable_option_checking in
1158 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1159 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1163 # Check all directory arguments for consistency.
1164 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1165 datadir sysconfdir sharedstatedir localstatedir includedir \
1166 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1167 libdir localedir mandir
1169 eval ac_val=\$$ac_var
1170 # Remove trailing slashes.
1173 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1174 eval $ac_var=\$ac_val;;
1176 # Be sure to have absolute directory names.
1178 [\\/$]* | ?:[\\/]* ) continue;;
1179 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1181 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1184 # There might be people who depend on the old broken behavior: `$host'
1185 # used to hold the argument of --host etc.
1186 # FIXME: To remove some day.
1189 target=$target_alias
1191 # FIXME: To remove some day.
1192 if test "x$host_alias" != x; then
1193 if test "x$build_alias" = x; then
1194 cross_compiling=maybe
1195 $as_echo "$as_me: WARNING: if you wanted to set the --build type, don't use --host.
1196 If a cross compiler is detected then cross compile mode will be used" >&2
1197 elif test "x$build_alias" != "x$host_alias"; then
1203 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1205 test "$silent" = yes && exec 6>/dev/null
1208 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1209 ac_ls_di=`ls -di .` &&
1210 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1211 as_fn_error $? "working directory cannot be determined"
1212 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1213 as_fn_error $? "pwd does not report name of working directory"
1216 # Find the source files, if location was not specified.
1217 if test -z "$srcdir"; then
1218 ac_srcdir_defaulted=yes
1219 # Try the directory containing this script, then the parent directory.
1220 ac_confdir=`$as_dirname -- "$as_myself" ||
1221 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1222 X"$as_myself" : 'X\(//\)[^/]' \| \
1223 X"$as_myself" : 'X\(//\)$' \| \
1224 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1225 $as_echo X"$as_myself" |
1226 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1244 if test ! -r "$srcdir/$ac_unique_file"; then
1248 ac_srcdir_defaulted=no
1250 if test ! -r "$srcdir/$ac_unique_file"; then
1251 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1252 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1254 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1256 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1258 # When building in place, set srcdir=.
1259 if test "$ac_abs_confdir" = "$ac_pwd"; then
1262 # Remove unnecessary trailing slashes from srcdir.
1263 # Double slashes in file names in object file debugging info
1264 # mess up M-x gdb in Emacs.
1266 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1268 for ac_var in $ac_precious_vars; do
1269 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1270 eval ac_env_${ac_var}_value=\$${ac_var}
1271 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1272 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1276 # Report the --help message.
1278 if test "$ac_init_help" = "long"; then
1279 # Omit some internal or obsolete options to make the list less imposing.
1280 # This message is too long to be a string in the A/UX 3.1 sh.
1282 \`configure' configures sysstat 10.1.2 to adapt to many kinds of systems.
1284 Usage: $0 [OPTION]... [VAR=VALUE]...
1286 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1287 VAR=VALUE. See below for descriptions of some of the useful variables.
1289 Defaults for the options are specified in brackets.
1292 -h, --help display this help and exit
1293 --help=short display options specific to this package
1294 --help=recursive display the short help of all the included packages
1295 -V, --version display version information and exit
1296 -q, --quiet, --silent do not print \`checking ...' messages
1297 --cache-file=FILE cache test results in FILE [disabled]
1298 -C, --config-cache alias for \`--cache-file=config.cache'
1299 -n, --no-create do not create output files
1300 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1302 Installation directories:
1303 --prefix=PREFIX install architecture-independent files in PREFIX
1304 [$ac_default_prefix]
1305 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1308 By default, \`make install' will install all the files in
1309 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1310 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1311 for instance \`--prefix=\$HOME'.
1313 For better control, use the options below.
1315 Fine tuning of the installation directories:
1316 --bindir=DIR user executables [EPREFIX/bin]
1317 --sbindir=DIR system admin executables [EPREFIX/sbin]
1318 --libexecdir=DIR program executables [EPREFIX/libexec]
1319 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1320 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1321 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1322 --libdir=DIR object code libraries [EPREFIX/lib]
1323 --includedir=DIR C header files [PREFIX/include]
1324 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1325 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1326 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1327 --infodir=DIR info documentation [DATAROOTDIR/info]
1328 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1329 --mandir=DIR man documentation [DATAROOTDIR/man]
1330 --docdir=DIR documentation root [DATAROOTDIR/doc/sysstat]
1331 --htmldir=DIR html documentation [DOCDIR]
1332 --dvidir=DIR dvi documentation [DOCDIR]
1333 --pdfdir=DIR pdf documentation [DOCDIR]
1334 --psdir=DIR ps documentation [DOCDIR]
1341 if test -n "$ac_init_help"; then
1342 case $ac_init_help in
1343 short | recursive ) echo "Configuration of sysstat 10.1.2:";;
1348 --disable-option-checking ignore unrecognized --enable/--with options
1349 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1350 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1351 --disable-sensors disable sensors support
1352 --disable-largefile omit support for large files
1353 --disable-nls disable National Language Support
1354 --enable-yesterday tell sa2 to use data file of the day before
1355 --disable-man-group ignore man_group variable value
1356 --enable-compress-manpg compress sysstat manual pages
1357 --enable-install-isag install isag script
1358 --enable-clean-sa-dir clean system activity directory
1359 --enable-install-cron install a crontab to start sar
1360 --enable-collect-all collect all possible activities
1361 --disable-documentation do not install documentation
1362 --enable-debuginfo enable debug output (--debuginfo option)
1363 --disable-stripping do not strip object files
1365 Some influential environment variables:
1366 CC C compiler command
1367 CFLAGS C compiler flags
1368 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1369 nonstandard directory <lib dir>
1370 LIBS libraries to pass to the linker, e.g. -l<library>
1371 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1372 you have headers in a nonstandard directory <include dir>
1374 rcdir run-commands directory
1375 sa_lib_dir sadc directory
1376 sa_dir system activity directory
1377 conf_dir sysstat configuration directory
1378 history number of daily data files to keep (default value is 7)
1380 number of days after which data files are compressed (default
1382 man_group group for manual pages
1383 cron_owner crontab owner
1387 Use these variables to override the choices made by `configure' or to help
1388 it to find libraries and programs with nonstandard names/locations.
1390 Report bugs to the package provider.
1395 if test "$ac_init_help" = "recursive"; then
1396 # If there are subdirs, report their specific --help.
1397 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1398 test -d "$ac_dir" ||
1399 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1404 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1406 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1407 # A ".." for each directory in $ac_dir_suffix.
1408 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1409 case $ac_top_builddir_sub in
1410 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1411 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1414 ac_abs_top_builddir=$ac_pwd
1415 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1416 # for backward compatibility:
1417 ac_top_builddir=$ac_top_build_prefix
1420 .) # We are building in place.
1422 ac_top_srcdir=$ac_top_builddir_sub
1423 ac_abs_top_srcdir=$ac_pwd ;;
1424 [\\/]* | ?:[\\/]* ) # Absolute name.
1425 ac_srcdir=$srcdir$ac_dir_suffix;
1426 ac_top_srcdir=$srcdir
1427 ac_abs_top_srcdir=$srcdir ;;
1429 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1430 ac_top_srcdir=$ac_top_build_prefix$srcdir
1431 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1433 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1435 cd "$ac_dir" || { ac_status=$?; continue; }
1436 # Check for guested configure.
1437 if test -f "$ac_srcdir/configure.gnu"; then
1439 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1440 elif test -f "$ac_srcdir/configure"; then
1442 $SHELL "$ac_srcdir/configure" --help=recursive
1444 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1446 cd "$ac_pwd" || { ac_status=$?; break; }
1450 test -n "$ac_init_help" && exit $ac_status
1451 if $ac_init_version; then
1453 sysstat configure 10.1.2
1454 generated by GNU Autoconf 2.68
1456 Copyright (C) 2010 Free Software Foundation, Inc.
1457 This configure script is free software; the Free Software Foundation
1458 gives unlimited permission to copy, distribute and modify it.
1463 ## ------------------------ ##
1464 ## Autoconf initialization. ##
1465 ## ------------------------ ##
1467 # ac_fn_c_try_compile LINENO
1468 # --------------------------
1469 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1470 ac_fn_c_try_compile ()
1472 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1473 rm -f conftest.$ac_objext
1474 if { { ac_try="$ac_compile"
1476 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1477 *) ac_try_echo=$ac_try;;
1479 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1480 $as_echo "$ac_try_echo"; } >&5
1481 (eval "$ac_compile") 2>conftest.err
1483 if test -s conftest.err; then
1484 grep -v '^ *+' conftest.err >conftest.er1
1485 cat conftest.er1 >&5
1486 mv -f conftest.er1 conftest.err
1488 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1489 test $ac_status = 0; } && {
1490 test -z "$ac_c_werror_flag" ||
1491 test ! -s conftest.err
1492 } && test -s conftest.$ac_objext; then :
1495 $as_echo "$as_me: failed program was:" >&5
1496 sed 's/^/| /' conftest.$ac_ext >&5
1500 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1501 as_fn_set_status $ac_retval
1503 } # ac_fn_c_try_compile
1505 # ac_fn_c_try_cpp LINENO
1506 # ----------------------
1507 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1510 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1511 if { { ac_try="$ac_cpp conftest.$ac_ext"
1513 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1514 *) ac_try_echo=$ac_try;;
1516 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1517 $as_echo "$ac_try_echo"; } >&5
1518 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1520 if test -s conftest.err; then
1521 grep -v '^ *+' conftest.err >conftest.er1
1522 cat conftest.er1 >&5
1523 mv -f conftest.er1 conftest.err
1525 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1526 test $ac_status = 0; } > conftest.i && {
1527 test -z "$ac_c_preproc_warn_flag$ac_c_werror_flag" ||
1528 test ! -s conftest.err
1532 $as_echo "$as_me: failed program was:" >&5
1533 sed 's/^/| /' conftest.$ac_ext >&5
1537 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1538 as_fn_set_status $ac_retval
1542 # ac_fn_c_check_header_mongrel LINENO HEADER VAR INCLUDES
1543 # -------------------------------------------------------
1544 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1545 # the include files in INCLUDES and setting the cache variable VAR
1547 ac_fn_c_check_header_mongrel ()
1549 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1550 if eval \${$3+:} false; then :
1551 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1552 $as_echo_n "checking for $2... " >&6; }
1553 if eval \${$3+:} false; then :
1554 $as_echo_n "(cached) " >&6
1557 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1558 $as_echo "$ac_res" >&6; }
1560 # Is the header compilable?
1561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1562 $as_echo_n "checking $2 usability... " >&6; }
1563 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1564 /* end confdefs.h. */
1568 if ac_fn_c_try_compile "$LINENO"; then :
1569 ac_header_compiler=yes
1571 ac_header_compiler=no
1573 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1574 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1575 $as_echo "$ac_header_compiler" >&6; }
1577 # Is the header present?
1578 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1579 $as_echo_n "checking $2 presence... " >&6; }
1580 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1581 /* end confdefs.h. */
1584 if ac_fn_c_try_cpp "$LINENO"; then :
1585 ac_header_preproc=yes
1587 ac_header_preproc=no
1589 rm -f conftest.err conftest.i conftest.$ac_ext
1590 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1591 $as_echo "$ac_header_preproc" >&6; }
1593 # So? What about this header?
1594 case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in #((
1596 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1597 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1598 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1599 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1602 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1603 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1604 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1605 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1606 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1607 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1608 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1609 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1610 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1611 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1614 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1615 $as_echo_n "checking for $2... " >&6; }
1616 if eval \${$3+:} false; then :
1617 $as_echo_n "(cached) " >&6
1619 eval "$3=\$ac_header_compiler"
1622 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1623 $as_echo "$ac_res" >&6; }
1625 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1627 } # ac_fn_c_check_header_mongrel
1629 # ac_fn_c_try_run LINENO
1630 # ----------------------
1631 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1632 # that executables *can* be run.
1635 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1636 if { { ac_try="$ac_link"
1638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1639 *) ac_try_echo=$ac_try;;
1641 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1642 $as_echo "$ac_try_echo"; } >&5
1643 (eval "$ac_link") 2>&5
1645 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1646 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1647 { { case "(($ac_try" in
1648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1649 *) ac_try_echo=$ac_try;;
1651 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1652 $as_echo "$ac_try_echo"; } >&5
1653 (eval "$ac_try") 2>&5
1655 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1656 test $ac_status = 0; }; }; then :
1659 $as_echo "$as_me: program exited with status $ac_status" >&5
1660 $as_echo "$as_me: failed program was:" >&5
1661 sed 's/^/| /' conftest.$ac_ext >&5
1663 ac_retval=$ac_status
1665 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1666 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1667 as_fn_set_status $ac_retval
1671 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1672 # -------------------------------------------------------
1673 # Tests whether HEADER exists and can be compiled using the include files in
1674 # INCLUDES, setting the cache variable VAR accordingly.
1675 ac_fn_c_check_header_compile ()
1677 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1678 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1679 $as_echo_n "checking for $2... " >&6; }
1680 if eval \${$3+:} false; then :
1681 $as_echo_n "(cached) " >&6
1683 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1684 /* end confdefs.h. */
1688 if ac_fn_c_try_compile "$LINENO"; then :
1693 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1696 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1697 $as_echo "$ac_res" >&6; }
1698 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1700 } # ac_fn_c_check_header_compile
1702 # ac_fn_c_try_link LINENO
1703 # -----------------------
1704 # Try to link conftest.$ac_ext, and return whether this succeeded.
1707 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1708 rm -f conftest.$ac_objext conftest$ac_exeext
1709 if { { ac_try="$ac_link"
1711 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1712 *) ac_try_echo=$ac_try;;
1714 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1715 $as_echo "$ac_try_echo"; } >&5
1716 (eval "$ac_link") 2>conftest.err
1718 if test -s conftest.err; then
1719 grep -v '^ *+' conftest.err >conftest.er1
1720 cat conftest.er1 >&5
1721 mv -f conftest.er1 conftest.err
1723 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1724 test $ac_status = 0; } && {
1725 test -z "$ac_c_werror_flag" ||
1726 test ! -s conftest.err
1727 } && test -s conftest$ac_exeext && {
1728 test "$cross_compiling" = yes ||
1729 $as_test_x conftest$ac_exeext
1733 $as_echo "$as_me: failed program was:" >&5
1734 sed 's/^/| /' conftest.$ac_ext >&5
1738 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1739 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1740 # interfere with the next link command; also delete a directory that is
1741 # left behind by Apple's compiler. We do this before executing the actions.
1742 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1743 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1744 as_fn_set_status $ac_retval
1746 } # ac_fn_c_try_link
1748 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1749 # -------------------------------------------
1750 # Tests whether TYPE exists after having included INCLUDES, setting cache
1751 # variable VAR accordingly.
1752 ac_fn_c_check_type ()
1754 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1755 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1756 $as_echo_n "checking for $2... " >&6; }
1757 if eval \${$3+:} false; then :
1758 $as_echo_n "(cached) " >&6
1761 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1762 /* end confdefs.h. */
1773 if ac_fn_c_try_compile "$LINENO"; then :
1774 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1775 /* end confdefs.h. */
1786 if ac_fn_c_try_compile "$LINENO"; then :
1791 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1793 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1796 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1797 $as_echo "$ac_res" >&6; }
1798 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1800 } # ac_fn_c_check_type
1802 # ac_fn_c_check_func LINENO FUNC VAR
1803 # ----------------------------------
1804 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1805 ac_fn_c_check_func ()
1807 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1808 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1809 $as_echo_n "checking for $2... " >&6; }
1810 if eval \${$3+:} false; then :
1811 $as_echo_n "(cached) " >&6
1813 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1814 /* end confdefs.h. */
1815 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1816 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1817 #define $2 innocuous_$2
1819 /* System header to define __stub macros and hopefully few prototypes,
1820 which can conflict with char $2 (); below.
1821 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1822 <limits.h> exists even on freestanding compilers. */
1825 # include <limits.h>
1827 # include <assert.h>
1832 /* Override any GCC internal prototype to avoid an error.
1833 Use char because int might match the return type of a GCC
1834 builtin and then its argument prototype would still apply. */
1839 /* The GNU C library defines this for functions which it implements
1840 to always fail with ENOSYS. Some functions are actually named
1841 something starting with __ and the normal name is an alias. */
1842 #if defined __stub_$2 || defined __stub___$2
1854 if ac_fn_c_try_link "$LINENO"; then :
1859 rm -f core conftest.err conftest.$ac_objext \
1860 conftest$ac_exeext conftest.$ac_ext
1863 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1864 $as_echo "$ac_res" >&6; }
1865 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1867 } # ac_fn_c_check_func
1868 cat >config.log <<_ACEOF
1869 This file contains any messages produced by compilers while
1870 running configure, to aid debugging if configure makes a mistake.
1872 It was created by sysstat $as_me 10.1.2, which was
1873 generated by GNU Autoconf 2.68. Invocation command line was
1885 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1886 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1887 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1888 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1889 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1891 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1892 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1894 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1895 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1896 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1897 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1898 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1899 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1900 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1904 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1908 test -z "$as_dir" && as_dir=.
1909 $as_echo "PATH: $as_dir"
1925 # Keep a trace of the command line.
1926 # Strip out --no-create and --no-recursion so they do not pile up.
1927 # Strip out --silent because we don't want to record it for future runs.
1928 # Also quote any args containing shell meta-characters.
1929 # Make two passes to allow for proper duplicate-argument suppression.
1933 ac_must_keep_next=false
1939 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1940 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1941 | -silent | --silent | --silen | --sile | --sil)
1944 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1947 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1949 as_fn_append ac_configure_args1 " '$ac_arg'"
1950 if test $ac_must_keep_next = true; then
1951 ac_must_keep_next=false # Got value, back to normal.
1954 *=* | --config-cache | -C | -disable-* | --disable-* \
1955 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1956 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1957 | -with-* | --with-* | -without-* | --without-* | --x)
1958 case "$ac_configure_args0 " in
1959 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1962 -* ) ac_must_keep_next=true ;;
1965 as_fn_append ac_configure_args " '$ac_arg'"
1970 { ac_configure_args0=; unset ac_configure_args0;}
1971 { ac_configure_args1=; unset ac_configure_args1;}
1973 # When interrupted or exit'd, cleanup temporary files, and complete
1974 # config.log. We remove comments because anyway the quotes in there
1975 # would cause problems or look ugly.
1976 # WARNING: Use '\'' to represent an apostrophe within the trap.
1977 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1978 trap 'exit_status=$?
1979 # Save into config.log some information that might help in debugging.
1983 $as_echo "## ---------------- ##
1984 ## Cache variables. ##
1985 ## ---------------- ##"
1987 # The following way of writing the cache mishandles newlines in values,
1989 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1990 eval ac_val=\$$ac_var
1994 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1995 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1998 _ | IFS | as_nl) ;; #(
1999 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2000 *) { eval $ac_var=; unset $ac_var;} ;;
2005 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2006 *${as_nl}ac_space=\ *)
2008 "s/'\''/'\''\\\\'\'''\''/g;
2009 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2012 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2019 $as_echo "## ----------------- ##
2020 ## Output variables. ##
2021 ## ----------------- ##"
2023 for ac_var in $ac_subst_vars
2025 eval ac_val=\$$ac_var
2027 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2029 $as_echo "$ac_var='\''$ac_val'\''"
2033 if test -n "$ac_subst_files"; then
2034 $as_echo "## ------------------- ##
2035 ## File substitutions. ##
2036 ## ------------------- ##"
2038 for ac_var in $ac_subst_files
2040 eval ac_val=\$$ac_var
2042 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2044 $as_echo "$ac_var='\''$ac_val'\''"
2049 if test -s confdefs.h; then
2050 $as_echo "## ----------- ##
2057 test "$ac_signal" != 0 &&
2058 $as_echo "$as_me: caught signal $ac_signal"
2059 $as_echo "$as_me: exit $exit_status"
2061 rm -f core *.core core.conftest.* &&
2062 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2065 for ac_signal in 1 2 13 15; do
2066 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2070 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2071 rm -f -r conftest* confdefs.h
2073 $as_echo "/* confdefs.h */" > confdefs.h
2075 # Predefined preprocessor variables.
2077 cat >>confdefs.h <<_ACEOF
2078 #define PACKAGE_NAME "$PACKAGE_NAME"
2081 cat >>confdefs.h <<_ACEOF
2082 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2085 cat >>confdefs.h <<_ACEOF
2086 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2089 cat >>confdefs.h <<_ACEOF
2090 #define PACKAGE_STRING "$PACKAGE_STRING"
2093 cat >>confdefs.h <<_ACEOF
2094 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2097 cat >>confdefs.h <<_ACEOF
2098 #define PACKAGE_URL "$PACKAGE_URL"
2102 # Let the site file select an alternate cache file if it wants to.
2103 # Prefer an explicitly selected file to automatically selected ones.
2106 if test -n "$CONFIG_SITE"; then
2107 # We do not want a PATH search for config.site.
2108 case $CONFIG_SITE in #((
2109 -*) ac_site_file1=./$CONFIG_SITE;;
2110 */*) ac_site_file1=$CONFIG_SITE;;
2111 *) ac_site_file1=./$CONFIG_SITE;;
2113 elif test "x$prefix" != xNONE; then
2114 ac_site_file1=$prefix/share/config.site
2115 ac_site_file2=$prefix/etc/config.site
2117 ac_site_file1=$ac_default_prefix/share/config.site
2118 ac_site_file2=$ac_default_prefix/etc/config.site
2120 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2122 test "x$ac_site_file" = xNONE && continue
2123 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2124 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2125 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2126 sed 's/^/| /' "$ac_site_file" >&5
2128 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2129 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2130 as_fn_error $? "failed to load site script $ac_site_file
2131 See \`config.log' for more details" "$LINENO" 5; }
2135 if test -r "$cache_file"; then
2136 # Some versions of bash will fail to source /dev/null (special files
2137 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2138 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2139 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2140 $as_echo "$as_me: loading cache $cache_file" >&6;}
2142 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2143 *) . "./$cache_file";;
2147 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2148 $as_echo "$as_me: creating cache $cache_file" >&6;}
2152 # Check that the precious variables saved in the cache have kept the same
2154 ac_cache_corrupted=false
2155 for ac_var in $ac_precious_vars; do
2156 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2157 eval ac_new_set=\$ac_env_${ac_var}_set
2158 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2159 eval ac_new_val=\$ac_env_${ac_var}_value
2160 case $ac_old_set,$ac_new_set in
2162 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2163 $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2164 ac_cache_corrupted=: ;;
2166 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2167 $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2168 ac_cache_corrupted=: ;;
2171 if test "x$ac_old_val" != "x$ac_new_val"; then
2172 # differences in whitespace do not lead to failure.
2173 ac_old_val_w=`echo x $ac_old_val`
2174 ac_new_val_w=`echo x $ac_new_val`
2175 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2176 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2177 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2178 ac_cache_corrupted=:
2180 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2181 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2182 eval $ac_var=\$ac_old_val
2184 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2185 $as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2186 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2187 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2190 # Pass precious variables to config.status.
2191 if test "$ac_new_set" = set; then
2193 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2194 *) ac_arg=$ac_var=$ac_new_val ;;
2196 case " $ac_configure_args " in
2197 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2198 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2202 if $ac_cache_corrupted; then
2203 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2204 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2205 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2206 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2207 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2209 ## -------------------- ##
2210 ## Main body of script. ##
2211 ## -------------------- ##
2214 ac_cpp='$CPP $CPPFLAGS'
2215 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2216 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2217 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2221 # Ensure that a recent enough version of Autoconf is being used
2224 # Check whether the configure script is in the right dir
2229 echo Check programs:
2233 ac_cpp='$CPP $CPPFLAGS'
2234 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2235 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2236 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2237 if test -n "$ac_tool_prefix"; then
2238 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2239 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2240 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2241 $as_echo_n "checking for $ac_word... " >&6; }
2242 if ${ac_cv_prog_CC+:} false; then :
2243 $as_echo_n "(cached) " >&6
2245 if test -n "$CC"; then
2246 ac_cv_prog_CC="$CC" # Let the user override the test.
2248 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2252 test -z "$as_dir" && as_dir=.
2253 for ac_exec_ext in '' $ac_executable_extensions; do
2254 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2255 ac_cv_prog_CC="${ac_tool_prefix}gcc"
2256 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2266 if test -n "$CC"; then
2267 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2268 $as_echo "$CC" >&6; }
2270 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2271 $as_echo "no" >&6; }
2276 if test -z "$ac_cv_prog_CC"; then
2278 # Extract the first word of "gcc", so it can be a program name with args.
2279 set dummy gcc; ac_word=$2
2280 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2281 $as_echo_n "checking for $ac_word... " >&6; }
2282 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2283 $as_echo_n "(cached) " >&6
2285 if test -n "$ac_ct_CC"; then
2286 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2288 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2292 test -z "$as_dir" && as_dir=.
2293 for ac_exec_ext in '' $ac_executable_extensions; do
2294 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2295 ac_cv_prog_ac_ct_CC="gcc"
2296 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2305 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2306 if test -n "$ac_ct_CC"; then
2307 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2308 $as_echo "$ac_ct_CC" >&6; }
2310 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2311 $as_echo "no" >&6; }
2314 if test "x$ac_ct_CC" = x; then
2317 case $cross_compiling:$ac_tool_warned in
2319 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2320 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2321 ac_tool_warned=yes ;;
2329 if test -z "$CC"; then
2330 if test -n "$ac_tool_prefix"; then
2331 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2332 set dummy ${ac_tool_prefix}cc; ac_word=$2
2333 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2334 $as_echo_n "checking for $ac_word... " >&6; }
2335 if ${ac_cv_prog_CC+:} false; then :
2336 $as_echo_n "(cached) " >&6
2338 if test -n "$CC"; then
2339 ac_cv_prog_CC="$CC" # Let the user override the test.
2341 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2345 test -z "$as_dir" && as_dir=.
2346 for ac_exec_ext in '' $ac_executable_extensions; do
2347 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2348 ac_cv_prog_CC="${ac_tool_prefix}cc"
2349 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2359 if test -n "$CC"; then
2360 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2361 $as_echo "$CC" >&6; }
2363 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2364 $as_echo "no" >&6; }
2370 if test -z "$CC"; then
2371 # Extract the first word of "cc", so it can be a program name with args.
2372 set dummy cc; ac_word=$2
2373 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2374 $as_echo_n "checking for $ac_word... " >&6; }
2375 if ${ac_cv_prog_CC+:} false; then :
2376 $as_echo_n "(cached) " >&6
2378 if test -n "$CC"; then
2379 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 { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2389 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2390 ac_prog_rejected=yes
2394 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2401 if test $ac_prog_rejected = yes; then
2402 # We found a bogon in the path, so make sure we never use it.
2403 set dummy $ac_cv_prog_CC
2405 if test $# != 0; then
2406 # We chose a different compiler from the bogus one.
2407 # However, it has the same basename, so the bogon will be chosen
2408 # first if we set CC to just the basename; use the full file name.
2410 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
2416 if test -n "$CC"; then
2417 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2418 $as_echo "$CC" >&6; }
2420 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2421 $as_echo "no" >&6; }
2426 if test -z "$CC"; then
2427 if test -n "$ac_tool_prefix"; then
2428 for ac_prog in cl.exe
2430 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2431 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2432 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2433 $as_echo_n "checking for $ac_word... " >&6; }
2434 if ${ac_cv_prog_CC+:} false; then :
2435 $as_echo_n "(cached) " >&6
2437 if test -n "$CC"; then
2438 ac_cv_prog_CC="$CC" # Let the user override the test.
2440 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2444 test -z "$as_dir" && as_dir=.
2445 for ac_exec_ext in '' $ac_executable_extensions; do
2446 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2447 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2448 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2458 if test -n "$CC"; then
2459 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2460 $as_echo "$CC" >&6; }
2462 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2463 $as_echo "no" >&6; }
2467 test -n "$CC" && break
2470 if test -z "$CC"; then
2472 for ac_prog in cl.exe
2474 # Extract the first word of "$ac_prog", so it can be a program name with args.
2475 set dummy $ac_prog; ac_word=$2
2476 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2477 $as_echo_n "checking for $ac_word... " >&6; }
2478 if ${ac_cv_prog_ac_ct_CC+:} false; then :
2479 $as_echo_n "(cached) " >&6
2481 if test -n "$ac_ct_CC"; then
2482 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2484 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2488 test -z "$as_dir" && as_dir=.
2489 for ac_exec_ext in '' $ac_executable_extensions; do
2490 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2491 ac_cv_prog_ac_ct_CC="$ac_prog"
2492 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2501 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2502 if test -n "$ac_ct_CC"; then
2503 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2504 $as_echo "$ac_ct_CC" >&6; }
2506 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2507 $as_echo "no" >&6; }
2511 test -n "$ac_ct_CC" && break
2514 if test "x$ac_ct_CC" = x; then
2517 case $cross_compiling:$ac_tool_warned in
2519 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2520 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2521 ac_tool_warned=yes ;;
2530 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2531 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2532 as_fn_error $? "no acceptable C compiler found in \$PATH
2533 See \`config.log' for more details" "$LINENO" 5; }
2535 # Provide some information about the compiler.
2536 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2539 for ac_option in --version -v -V -qversion; do
2540 { { ac_try="$ac_compiler $ac_option >&5"
2542 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2543 *) ac_try_echo=$ac_try;;
2545 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2546 $as_echo "$ac_try_echo"; } >&5
2547 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2549 if test -s conftest.err; then
2551 ... rest of stderr output deleted ...
2552 10q' conftest.err >conftest.er1
2553 cat conftest.er1 >&5
2555 rm -f conftest.er1 conftest.err
2556 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2557 test $ac_status = 0; }
2560 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2561 /* end confdefs.h. */
2571 ac_clean_files_save=$ac_clean_files
2572 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2573 # Try to create an executable without -o first, disregard a.out.
2574 # It will help us diagnose broken compilers, and finding out an intuition
2576 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2577 $as_echo_n "checking whether the C compiler works... " >&6; }
2578 ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2580 # The possible output files:
2581 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2584 for ac_file in $ac_files
2587 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2588 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2593 if { { ac_try="$ac_link_default"
2595 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2596 *) ac_try_echo=$ac_try;;
2598 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2599 $as_echo "$ac_try_echo"; } >&5
2600 (eval "$ac_link_default") 2>&5
2602 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2603 test $ac_status = 0; }; then :
2604 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2605 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2606 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2607 # so that the user can short-circuit this test for compilers unknown to
2609 for ac_file in $ac_files ''
2611 test -f "$ac_file" || continue
2613 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
2616 # We found the default executable, but exeext='' is most
2620 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2622 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2624 # We set ac_cv_exeext here because the later test for it is not
2625 # safe: cross compilers may not add the suffix if given an `-o'
2626 # argument, so we may need to know it at that point already.
2627 # Even if this section looks crufty: it has the advantage of
2634 test "$ac_cv_exeext" = no && ac_cv_exeext=
2639 if test -z "$ac_file"; then :
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2641 $as_echo "no" >&6; }
2642 $as_echo "$as_me: failed program was:" >&5
2643 sed 's/^/| /' conftest.$ac_ext >&5
2645 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2646 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2647 as_fn_error 77 "C compiler cannot create executables
2648 See \`config.log' for more details" "$LINENO" 5; }
2650 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2651 $as_echo "yes" >&6; }
2653 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
2654 $as_echo_n "checking for C compiler default output file name... " >&6; }
2655 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
2656 $as_echo "$ac_file" >&6; }
2657 ac_exeext=$ac_cv_exeext
2659 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
2660 ac_clean_files=$ac_clean_files_save
2661 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
2662 $as_echo_n "checking for suffix of executables... " >&6; }
2663 if { { ac_try="$ac_link"
2665 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2666 *) ac_try_echo=$ac_try;;
2668 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2669 $as_echo "$ac_try_echo"; } >&5
2670 (eval "$ac_link") 2>&5
2672 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2673 test $ac_status = 0; }; then :
2674 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2675 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2676 # work properly (i.e., refer to `conftest.exe'), while it won't with
2678 for ac_file in conftest.exe conftest conftest.*; do
2679 test -f "$ac_file" || continue
2681 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
2682 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2688 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2689 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2690 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
2691 See \`config.log' for more details" "$LINENO" 5; }
2693 rm -f conftest conftest$ac_cv_exeext
2694 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
2695 $as_echo "$ac_cv_exeext" >&6; }
2697 rm -f conftest.$ac_ext
2698 EXEEXT=$ac_cv_exeext
2700 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2701 /* end confdefs.h. */
2706 FILE *f = fopen ("conftest.out", "w");
2707 return ferror (f) || fclose (f) != 0;
2713 ac_clean_files="$ac_clean_files conftest.out"
2714 # Check that the compiler produces executables we can run. If not, either
2715 # the compiler is broken, or we cross compile.
2716 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
2717 $as_echo_n "checking whether we are cross compiling... " >&6; }
2718 if test "$cross_compiling" != yes; then
2719 { { ac_try="$ac_link"
2721 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2722 *) ac_try_echo=$ac_try;;
2724 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2725 $as_echo "$ac_try_echo"; } >&5
2726 (eval "$ac_link") 2>&5
2728 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2729 test $ac_status = 0; }
2730 if { ac_try='./conftest$ac_cv_exeext'
2731 { { case "(($ac_try" in
2732 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2733 *) ac_try_echo=$ac_try;;
2735 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2736 $as_echo "$ac_try_echo"; } >&5
2737 (eval "$ac_try") 2>&5
2739 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2740 test $ac_status = 0; }; }; then
2743 if test "$cross_compiling" = maybe; then
2746 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2747 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2748 as_fn_error $? "cannot run C compiled programs.
2749 If you meant to cross compile, use \`--host'.
2750 See \`config.log' for more details" "$LINENO" 5; }
2754 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
2755 $as_echo "$cross_compiling" >&6; }
2757 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
2758 ac_clean_files=$ac_clean_files_save
2759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
2760 $as_echo_n "checking for suffix of object files... " >&6; }
2761 if ${ac_cv_objext+:} false; then :
2762 $as_echo_n "(cached) " >&6
2764 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2765 /* end confdefs.h. */
2775 rm -f conftest.o conftest.obj
2776 if { { ac_try="$ac_compile"
2778 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2779 *) ac_try_echo=$ac_try;;
2781 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2782 $as_echo "$ac_try_echo"; } >&5
2783 (eval "$ac_compile") 2>&5
2785 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2786 test $ac_status = 0; }; then :
2787 for ac_file in conftest.o conftest.obj conftest.*; do
2788 test -f "$ac_file" || continue;
2790 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
2791 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2796 $as_echo "$as_me: failed program was:" >&5
2797 sed 's/^/| /' conftest.$ac_ext >&5
2799 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2800 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2801 as_fn_error $? "cannot compute suffix of object files: cannot compile
2802 See \`config.log' for more details" "$LINENO" 5; }
2804 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2806 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
2807 $as_echo "$ac_cv_objext" >&6; }
2808 OBJEXT=$ac_cv_objext
2810 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
2811 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
2812 if ${ac_cv_c_compiler_gnu+:} false; then :
2813 $as_echo_n "(cached) " >&6
2815 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2816 /* end confdefs.h. */
2829 if ac_fn_c_try_compile "$LINENO"; then :
2834 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2835 ac_cv_c_compiler_gnu=$ac_compiler_gnu
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
2839 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
2840 if test $ac_compiler_gnu = yes; then
2845 ac_test_CFLAGS=${CFLAGS+set}
2846 ac_save_CFLAGS=$CFLAGS
2847 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
2848 $as_echo_n "checking whether $CC accepts -g... " >&6; }
2849 if ${ac_cv_prog_cc_g+:} false; then :
2850 $as_echo_n "(cached) " >&6
2852 ac_save_c_werror_flag=$ac_c_werror_flag
2853 ac_c_werror_flag=yes
2856 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2857 /* end confdefs.h. */
2867 if ac_fn_c_try_compile "$LINENO"; then :
2871 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2872 /* end confdefs.h. */
2882 if ac_fn_c_try_compile "$LINENO"; then :
2885 ac_c_werror_flag=$ac_save_c_werror_flag
2887 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2888 /* end confdefs.h. */
2898 if ac_fn_c_try_compile "$LINENO"; then :
2901 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2903 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2905 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2906 ac_c_werror_flag=$ac_save_c_werror_flag
2908 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
2909 $as_echo "$ac_cv_prog_cc_g" >&6; }
2910 if test "$ac_test_CFLAGS" = set; then
2911 CFLAGS=$ac_save_CFLAGS
2912 elif test $ac_cv_prog_cc_g = yes; then
2913 if test "$GCC" = yes; then
2919 if test "$GCC" = yes; then
2925 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
2926 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
2927 if ${ac_cv_prog_cc_c89+:} false; then :
2928 $as_echo_n "(cached) " >&6
2930 ac_cv_prog_cc_c89=no
2932 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2933 /* end confdefs.h. */
2936 #include <sys/types.h>
2937 #include <sys/stat.h>
2938 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
2939 struct buf { int x; };
2940 FILE * (*rcsopen) (struct buf *, struct stat *, int);
2941 static char *e (p, i)
2947 static char *f (char * (*g) (char **, int), char **p, ...)
2952 s = g (p, va_arg (v,int));
2957 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
2958 function prototypes and stuff, but not '\xHH' hex character constants.
2959 These don't provoke an error unfortunately, instead are silently treated
2960 as 'x'. The following induces an error, until -std is added to get
2961 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
2962 array size at least. It's necessary to write '\x00'==0 to get something
2963 that's true only with -std. */
2964 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
2966 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2967 inside strings and character constants. */
2969 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
2971 int test (int i, double x);
2972 struct s1 {int (*f) (int a);};
2973 struct s2 {int (*f) (double a);};
2974 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
2980 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
2985 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
2986 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
2988 CC="$ac_save_CC $ac_arg"
2989 if ac_fn_c_try_compile "$LINENO"; then :
2990 ac_cv_prog_cc_c89=$ac_arg
2992 rm -f core conftest.err conftest.$ac_objext
2993 test "x$ac_cv_prog_cc_c89" != "xno" && break
2995 rm -f conftest.$ac_ext
3000 case "x$ac_cv_prog_cc_c89" in
3002 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3003 $as_echo "none needed" >&6; } ;;
3005 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3006 $as_echo "unsupported" >&6; } ;;
3008 CC="$CC $ac_cv_prog_cc_c89"
3009 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3010 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
3012 if test "x$ac_cv_prog_cc_c89" != xno; then :
3017 ac_cpp='$CPP $CPPFLAGS'
3018 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3019 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3020 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3024 ac_cpp='$CPP $CPPFLAGS'
3025 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3026 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3027 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3028 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C preprocessor" >&5
3029 $as_echo_n "checking how to run the C preprocessor... " >&6; }
3030 # On Suns, sometimes $CPP names a directory.
3031 if test -n "$CPP" && test -d "$CPP"; then
3034 if test -z "$CPP"; then
3035 if ${ac_cv_prog_CPP+:} false; then :
3036 $as_echo_n "(cached) " >&6
3038 # Double quotes because CPP needs to be expanded
3039 for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp"
3042 for ac_c_preproc_warn_flag in '' yes
3044 # Use a header file that comes with gcc, so configuring glibc
3045 # with a fresh cross-compiler works.
3046 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3047 # <limits.h> exists even on freestanding compilers.
3048 # On the NeXT, cc -E runs the code through the compiler's parser,
3049 # not just through cpp. "Syntax error" is here to catch this case.
3050 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3051 /* end confdefs.h. */
3053 # include <limits.h>
3055 # include <assert.h>
3059 if ac_fn_c_try_cpp "$LINENO"; then :
3062 # Broken: fails on valid input.
3065 rm -f conftest.err conftest.i conftest.$ac_ext
3067 # OK, works on sane cases. Now check whether nonexistent headers
3068 # can be detected and how.
3069 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3070 /* end confdefs.h. */
3071 #include <ac_nonexistent.h>
3073 if ac_fn_c_try_cpp "$LINENO"; then :
3074 # Broken: success on invalid input.
3077 # Passes both tests.
3081 rm -f conftest.err conftest.i conftest.$ac_ext
3084 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3085 rm -f conftest.i conftest.err conftest.$ac_ext
3086 if $ac_preproc_ok; then :
3098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CPP" >&5
3099 $as_echo "$CPP" >&6; }
3101 for ac_c_preproc_warn_flag in '' yes
3103 # Use a header file that comes with gcc, so configuring glibc
3104 # with a fresh cross-compiler works.
3105 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
3106 # <limits.h> exists even on freestanding compilers.
3107 # On the NeXT, cc -E runs the code through the compiler's parser,
3108 # not just through cpp. "Syntax error" is here to catch this case.
3109 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3110 /* end confdefs.h. */
3112 # include <limits.h>
3114 # include <assert.h>
3118 if ac_fn_c_try_cpp "$LINENO"; then :
3121 # Broken: fails on valid input.
3124 rm -f conftest.err conftest.i conftest.$ac_ext
3126 # OK, works on sane cases. Now check whether nonexistent headers
3127 # can be detected and how.
3128 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3129 /* end confdefs.h. */
3130 #include <ac_nonexistent.h>
3132 if ac_fn_c_try_cpp "$LINENO"; then :
3133 # Broken: success on invalid input.
3136 # Passes both tests.
3140 rm -f conftest.err conftest.i conftest.$ac_ext
3143 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
3144 rm -f conftest.i conftest.err conftest.$ac_ext
3145 if $ac_preproc_ok; then :
3148 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3149 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3150 as_fn_error $? "C preprocessor \"$CPP\" fails sanity check
3151 See \`config.log' for more details" "$LINENO" 5; }
3155 ac_cpp='$CPP $CPPFLAGS'
3156 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3157 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3158 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3161 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
3162 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
3163 if ${ac_cv_path_GREP+:} false; then :
3164 $as_echo_n "(cached) " >&6
3166 if test -z "$GREP"; then
3167 ac_path_GREP_found=false
3168 # Loop through the user's path and test for each of PROGNAME-LIST
3169 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3170 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3173 test -z "$as_dir" && as_dir=.
3174 for ac_prog in grep ggrep; do
3175 for ac_exec_ext in '' $ac_executable_extensions; do
3176 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
3177 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } || continue
3178 # Check for GNU ac_path_GREP and select it if it is found.
3179 # Check for GNU $ac_path_GREP
3180 case `"$ac_path_GREP" --version 2>&1` in
3182 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
3185 $as_echo_n 0123456789 >"conftest.in"
3188 cat "conftest.in" "conftest.in" >"conftest.tmp"
3189 mv "conftest.tmp" "conftest.in"
3190 cp "conftest.in" "conftest.nl"
3191 $as_echo 'GREP' >> "conftest.nl"
3192 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3193 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3194 as_fn_arith $ac_count + 1 && ac_count=$as_val
3195 if test $ac_count -gt ${ac_path_GREP_max-0}; then
3196 # Best one so far, save it but keep looking for a better one
3197 ac_cv_path_GREP="$ac_path_GREP"
3198 ac_path_GREP_max=$ac_count
3200 # 10*(2^10) chars as input seems more than enough
3201 test $ac_count -gt 10 && break
3203 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3206 $ac_path_GREP_found && break 3
3211 if test -z "$ac_cv_path_GREP"; then
3212 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3215 ac_cv_path_GREP=$GREP
3219 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
3220 $as_echo "$ac_cv_path_GREP" >&6; }
3221 GREP="$ac_cv_path_GREP"
3224 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
3225 $as_echo_n "checking for egrep... " >&6; }
3226 if ${ac_cv_path_EGREP+:} false; then :
3227 $as_echo_n "(cached) " >&6
3229 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
3230 then ac_cv_path_EGREP="$GREP -E"
3232 if test -z "$EGREP"; then
3233 ac_path_EGREP_found=false
3234 # Loop through the user's path and test for each of PROGNAME-LIST
3235 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3236 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
3239 test -z "$as_dir" && as_dir=.
3240 for ac_prog in egrep; do
3241 for ac_exec_ext in '' $ac_executable_extensions; do
3242 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
3243 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } || continue
3244 # Check for GNU ac_path_EGREP and select it if it is found.
3245 # Check for GNU $ac_path_EGREP
3246 case `"$ac_path_EGREP" --version 2>&1` in
3248 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
3251 $as_echo_n 0123456789 >"conftest.in"
3254 cat "conftest.in" "conftest.in" >"conftest.tmp"
3255 mv "conftest.tmp" "conftest.in"
3256 cp "conftest.in" "conftest.nl"
3257 $as_echo 'EGREP' >> "conftest.nl"
3258 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
3259 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
3260 as_fn_arith $ac_count + 1 && ac_count=$as_val
3261 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
3262 # Best one so far, save it but keep looking for a better one
3263 ac_cv_path_EGREP="$ac_path_EGREP"
3264 ac_path_EGREP_max=$ac_count
3266 # 10*(2^10) chars as input seems more than enough
3267 test $ac_count -gt 10 && break
3269 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
3272 $ac_path_EGREP_found && break 3
3277 if test -z "$ac_cv_path_EGREP"; then
3278 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
3281 ac_cv_path_EGREP=$EGREP
3286 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
3287 $as_echo "$ac_cv_path_EGREP" >&6; }
3288 EGREP="$ac_cv_path_EGREP"
3291 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3292 $as_echo_n "checking for ANSI C header files... " >&6; }
3293 if ${ac_cv_header_stdc+:} false; then :
3294 $as_echo_n "(cached) " >&6
3296 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3297 /* end confdefs.h. */
3311 if ac_fn_c_try_compile "$LINENO"; then :
3312 ac_cv_header_stdc=yes
3314 ac_cv_header_stdc=no
3316 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3318 if test $ac_cv_header_stdc = yes; then
3319 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3320 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3321 /* end confdefs.h. */
3325 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3326 $EGREP "memchr" >/dev/null 2>&1; then :
3329 ac_cv_header_stdc=no
3335 if test $ac_cv_header_stdc = yes; then
3336 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3337 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3338 /* end confdefs.h. */
3342 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3343 $EGREP "free" >/dev/null 2>&1; then :
3346 ac_cv_header_stdc=no
3352 if test $ac_cv_header_stdc = yes; then
3353 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3354 if test "$cross_compiling" = yes; then :
3357 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3358 /* end confdefs.h. */
3361 #if ((' ' & 0x0FF) == 0x020)
3362 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3363 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3365 # define ISLOWER(c) \
3366 (('a' <= (c) && (c) <= 'i') \
3367 || ('j' <= (c) && (c) <= 'r') \
3368 || ('s' <= (c) && (c) <= 'z'))
3369 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3372 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3377 for (i = 0; i < 256; i++)
3378 if (XOR (islower (i), ISLOWER (i))
3379 || toupper (i) != TOUPPER (i))
3384 if ac_fn_c_try_run "$LINENO"; then :
3387 ac_cv_header_stdc=no
3389 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
3390 conftest.$ac_objext conftest.beam conftest.$ac_ext
3395 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
3396 $as_echo "$ac_cv_header_stdc" >&6; }
3397 if test $ac_cv_header_stdc = yes; then
3399 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
3403 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
3404 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
3405 inttypes.h stdint.h unistd.h
3407 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
3408 ac_fn_c_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
3410 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
3411 cat >>confdefs.h <<_ACEOF
3412 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
3421 ac_fn_c_check_header_mongrel "$LINENO" "minix/config.h" "ac_cv_header_minix_config_h" "$ac_includes_default"
3422 if test "x$ac_cv_header_minix_config_h" = xyes; then :
3429 if test "$MINIX" = yes; then
3431 $as_echo "#define _POSIX_SOURCE 1" >>confdefs.h
3434 $as_echo "#define _POSIX_1_SOURCE 2" >>confdefs.h
3437 $as_echo "#define _MINIX 1" >>confdefs.h
3442 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3443 $as_echo_n "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3444 if ${ac_cv_safe_to_define___extensions__+:} false; then :
3445 $as_echo_n "(cached) " >&6
3447 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3448 /* end confdefs.h. */
3450 # define __EXTENSIONS__ 1
3451 $ac_includes_default
3460 if ac_fn_c_try_compile "$LINENO"; then :
3461 ac_cv_safe_to_define___extensions__=yes
3463 ac_cv_safe_to_define___extensions__=no
3465 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3468 $as_echo "$ac_cv_safe_to_define___extensions__" >&6; }
3469 test $ac_cv_safe_to_define___extensions__ = yes &&
3470 $as_echo "#define __EXTENSIONS__ 1" >>confdefs.h
3472 $as_echo "#define _ALL_SOURCE 1" >>confdefs.h
3474 $as_echo "#define _GNU_SOURCE 1" >>confdefs.h
3476 $as_echo "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3478 $as_echo "#define _TANDEM_SOURCE 1" >>confdefs.h
3482 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3483 $as_echo_n "checking whether ln -s works... " >&6; }
3485 if test "$LN_S" = "ln -s"; then
3486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3487 $as_echo "yes" >&6; }
3489 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3490 $as_echo "no, using $LN_S" >&6; }
3496 # Extract the first word of "chmod", so it can be a program name with args.
3497 set dummy chmod; ac_word=$2
3498 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3499 $as_echo_n "checking for $ac_word... " >&6; }
3500 if ${ac_cv_prog_CHMOD+:} false; then :
3501 $as_echo_n "(cached) " >&6
3503 if test -n "$CHMOD"; then
3504 ac_cv_prog_CHMOD="$CHMOD" # Let the user override the test.
3506 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3510 test -z "$as_dir" && as_dir=.
3511 for ac_exec_ext in '' $ac_executable_extensions; do
3512 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3513 ac_cv_prog_CHMOD="chmod"
3514 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3523 CHMOD=$ac_cv_prog_CHMOD
3524 if test -n "$CHMOD"; then
3525 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
3526 $as_echo "$CHMOD" >&6; }
3528 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3529 $as_echo "no" >&6; }
3533 # Extract the first word of "chown", so it can be a program name with args.
3534 set dummy chown; ac_word=$2
3535 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3536 $as_echo_n "checking for $ac_word... " >&6; }
3537 if ${ac_cv_prog_CHOWN+:} false; then :
3538 $as_echo_n "(cached) " >&6
3540 if test -n "$CHOWN"; then
3541 ac_cv_prog_CHOWN="$CHOWN" # Let the user override the test.
3543 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3547 test -z "$as_dir" && as_dir=.
3548 for ac_exec_ext in '' $ac_executable_extensions; do
3549 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3550 ac_cv_prog_CHOWN="chown"
3551 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3560 CHOWN=$ac_cv_prog_CHOWN
3561 if test -n "$CHOWN"; then
3562 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CHOWN" >&5
3563 $as_echo "$CHOWN" >&6; }
3565 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3566 $as_echo "no" >&6; }
3570 # Extract the first word of "ar", so it can be a program name with args.
3571 set dummy ar; ac_word=$2
3572 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3573 $as_echo_n "checking for $ac_word... " >&6; }
3574 if ${ac_cv_prog_AR+:} false; then :
3575 $as_echo_n "(cached) " >&6
3577 if test -n "$AR"; then
3578 ac_cv_prog_AR="$AR" # Let the user override the test.
3580 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3584 test -z "$as_dir" && as_dir=.
3585 for ac_exec_ext in '' $ac_executable_extensions; do
3586 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3588 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3598 if test -n "$AR"; then
3599 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3600 $as_echo "$AR" >&6; }
3602 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3603 $as_echo "no" >&6; }
3607 # Extract the first word of "install", so it can be a program name with args.
3608 set dummy install; ac_word=$2
3609 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3610 $as_echo_n "checking for $ac_word... " >&6; }
3611 if ${ac_cv_prog_INSTALL+:} false; then :
3612 $as_echo_n "(cached) " >&6
3614 if test -n "$INSTALL"; then
3615 ac_cv_prog_INSTALL="$INSTALL" # Let the user override the test.
3617 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3621 test -z "$as_dir" && as_dir=.
3622 for ac_exec_ext in '' $ac_executable_extensions; do
3623 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3624 ac_cv_prog_INSTALL="install"
3625 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3634 INSTALL=$ac_cv_prog_INSTALL
3635 if test -n "$INSTALL"; then
3636 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3637 $as_echo "$INSTALL" >&6; }
3639 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3640 $as_echo "no" >&6; }
3644 # Extract the first word of "msgfmt", so it can be a program name with args.
3645 set dummy msgfmt; ac_word=$2
3646 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3647 $as_echo_n "checking for $ac_word... " >&6; }
3648 if ${ac_cv_prog_MSGFMT+:} false; then :
3649 $as_echo_n "(cached) " >&6
3651 if test -n "$MSGFMT"; then
3652 ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
3654 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3658 test -z "$as_dir" && as_dir=.
3659 for ac_exec_ext in '' $ac_executable_extensions; do
3660 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3661 ac_cv_prog_MSGFMT="msgfmt"
3662 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3671 MSGFMT=$ac_cv_prog_MSGFMT
3672 if test -n "$MSGFMT"; then
3673 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
3674 $as_echo "$MSGFMT" >&6; }
3676 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3677 $as_echo "no" >&6; }
3681 # Extract the first word of "xgettext", so it can be a program name with args.
3682 set dummy xgettext; ac_word=$2
3683 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3684 $as_echo_n "checking for $ac_word... " >&6; }
3685 if ${ac_cv_prog_XGETTEXT+:} false; then :
3686 $as_echo_n "(cached) " >&6
3688 if test -n "$XGETTEXT"; then
3689 ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
3691 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3695 test -z "$as_dir" && as_dir=.
3696 for ac_exec_ext in '' $ac_executable_extensions; do
3697 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3698 ac_cv_prog_XGETTEXT="xgettext"
3699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3708 XGETTEXT=$ac_cv_prog_XGETTEXT
3709 if test -n "$XGETTEXT"; then
3710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
3711 $as_echo "$XGETTEXT" >&6; }
3713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3714 $as_echo "no" >&6; }
3718 # Extract the first word of "msgmerge", so it can be a program name with args.
3719 set dummy msgmerge; ac_word=$2
3720 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3721 $as_echo_n "checking for $ac_word... " >&6; }
3722 if ${ac_cv_prog_MSGMERGE+:} false; then :
3723 $as_echo_n "(cached) " >&6
3725 if test -n "$MSGMERGE"; then
3726 ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
3728 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3732 test -z "$as_dir" && as_dir=.
3733 for ac_exec_ext in '' $ac_executable_extensions; do
3734 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3735 ac_cv_prog_MSGMERGE="msgmerge"
3736 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3745 MSGMERGE=$ac_cv_prog_MSGMERGE
3746 if test -n "$MSGMERGE"; then
3747 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
3748 $as_echo "$MSGMERGE" >&6; }
3750 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3751 $as_echo "no" >&6; }
3755 for ac_prog in bzip2 gzip
3757 # Extract the first word of "$ac_prog", so it can be a program name with args.
3758 set dummy $ac_prog; ac_word=$2
3759 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3760 $as_echo_n "checking for $ac_word... " >&6; }
3761 if ${ac_cv_prog_ZIP+:} false; then :
3762 $as_echo_n "(cached) " >&6
3764 if test -n "$ZIP"; then
3765 ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
3767 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3768 for as_dir in /bin /etc /sbin /usr/bin /usr/etc /usr/sbin /usr/ucb /usr/local/bin /usr/local/etc /usr/local/sbin
3771 test -z "$as_dir" && as_dir=.
3772 for ac_exec_ext in '' $ac_executable_extensions; do
3773 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3774 ac_cv_prog_ZIP="$ac_prog"
3775 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3785 if test -n "$ZIP"; then
3786 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
3787 $as_echo "$ZIP" >&6; }
3789 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3790 $as_echo "no" >&6; }
3794 test -n "$ZIP" && break
3796 test -n "$ZIP" || ZIP="gzip"
3798 INSTALL_DATA="\${INSTALL} -m 644"
3800 INSTALL_BIN="\${INSTALL} -m 755"
3805 # Extract the first word of "$ac_prog", so it can be a program name with args.
3806 set dummy $ac_prog; ac_word=$2
3807 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3808 $as_echo_n "checking for $ac_word... " >&6; }
3809 if ${ac_cv_path_PATH_CP+:} false; then :
3810 $as_echo_n "(cached) " >&6
3814 ac_cv_path_PATH_CP="$PATH_CP" # Let the user override the test with a path.
3817 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3818 for as_dir in /bin /etc /sbin /usr/bin /usr/etc /usr/sbin /usr/ucb /usr/local/bin /usr/local/etc /usr/local/sbin
3821 test -z "$as_dir" && as_dir=.
3822 for ac_exec_ext in '' $ac_executable_extensions; do
3823 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3824 ac_cv_path_PATH_CP="$as_dir/$ac_word$ac_exec_ext"
3825 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3835 PATH_CP=$ac_cv_path_PATH_CP
3836 if test -n "$PATH_CP"; then
3837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_CP" >&5
3838 $as_echo "$PATH_CP" >&6; }
3840 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3841 $as_echo "no" >&6; }
3845 test -n "$PATH_CP" && break
3847 test -n "$PATH_CP" || PATH_CP="cp"
3849 for ac_prog in chkconfig
3851 # Extract the first word of "$ac_prog", so it can be a program name with args.
3852 set dummy $ac_prog; ac_word=$2
3853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3854 $as_echo_n "checking for $ac_word... " >&6; }
3855 if ${ac_cv_path_PATH_CHKCONFIG+:} false; then :
3856 $as_echo_n "(cached) " >&6
3858 case $PATH_CHKCONFIG in
3860 ac_cv_path_PATH_CHKCONFIG="$PATH_CHKCONFIG" # Let the user override the test with a path.
3863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3864 for as_dir in /bin /etc /sbin /usr/bin /usr/etc /usr/sbin /usr/ucb /usr/local/bin /usr/local/etc /usr/local/sbin
3867 test -z "$as_dir" && as_dir=.
3868 for ac_exec_ext in '' $ac_executable_extensions; do
3869 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3870 ac_cv_path_PATH_CHKCONFIG="$as_dir/$ac_word$ac_exec_ext"
3871 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3881 PATH_CHKCONFIG=$ac_cv_path_PATH_CHKCONFIG
3882 if test -n "$PATH_CHKCONFIG"; then
3883 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PATH_CHKCONFIG" >&5
3884 $as_echo "$PATH_CHKCONFIG" >&6; }
3886 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3887 $as_echo "no" >&6; }
3891 test -n "$PATH_CHKCONFIG" && break
3893 test -n "$PATH_CHKCONFIG" || PATH_CHKCONFIG="chkconfig"
3898 # Check header files
3900 echo Check header files:
3904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
3905 $as_echo_n "checking for ANSI C header files... " >&6; }
3906 if ${ac_cv_header_stdc+:} false; then :
3907 $as_echo_n "(cached) " >&6
3909 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3910 /* end confdefs.h. */
3924 if ac_fn_c_try_compile "$LINENO"; then :
3925 ac_cv_header_stdc=yes
3927 ac_cv_header_stdc=no
3929 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3931 if test $ac_cv_header_stdc = yes; then
3932 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
3933 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3934 /* end confdefs.h. */
3938 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3939 $EGREP "memchr" >/dev/null 2>&1; then :
3942 ac_cv_header_stdc=no
3948 if test $ac_cv_header_stdc = yes; then
3949 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
3950 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3951 /* end confdefs.h. */
3955 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
3956 $EGREP "free" >/dev/null 2>&1; then :
3959 ac_cv_header_stdc=no
3965 if test $ac_cv_header_stdc = yes; then
3966 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
3967 if test "$cross_compiling" = yes; then :
3970 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3971 /* end confdefs.h. */
3974 #if ((' ' & 0x0FF) == 0x020)
3975 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
3976 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
3978 # define ISLOWER(c) \
3979 (('a' <= (c) && (c) <= 'i') \
3980 || ('j' <= (c) && (c) <= 'r') \
3981 || ('s' <= (c) && (c) <= 'z'))
3982 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
3985 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
3990 for (i = 0; i < 256; i++)
3991 if (XOR (islower (i), ISLOWER (i))
3992 || toupper (i) != TOUPPER (i))
3997 if ac_fn_c_try_run "$LINENO"; then :
4000 ac_cv_header_stdc=no
4002 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
4003 conftest.$ac_objext conftest.beam conftest.$ac_ext
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
4009 $as_echo "$ac_cv_header_stdc" >&6; }
4010 if test $ac_cv_header_stdc = yes; then
4012 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
4017 for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do
4018 as_ac_Header=`$as_echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh`
4019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_hdr that defines DIR" >&5
4020 $as_echo_n "checking for $ac_hdr that defines DIR... " >&6; }
4021 if eval \${$as_ac_Header+:} false; then :
4022 $as_echo_n "(cached) " >&6
4024 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4025 /* end confdefs.h. */
4026 #include <sys/types.h>
4038 if ac_fn_c_try_compile "$LINENO"; then :
4039 eval "$as_ac_Header=yes"
4041 eval "$as_ac_Header=no"
4043 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4045 eval ac_res=\$$as_ac_Header
4046 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
4047 $as_echo "$ac_res" >&6; }
4048 if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
4049 cat >>confdefs.h <<_ACEOF
4050 #define `$as_echo "HAVE_$ac_hdr" | $as_tr_cpp` 1
4053 ac_header_dirent=$ac_hdr; break
4057 # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix.
4058 if test $ac_header_dirent = dirent.h; then
4059 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
4060 $as_echo_n "checking for library containing opendir... " >&6; }
4061 if ${ac_cv_search_opendir+:} false; then :
4062 $as_echo_n "(cached) " >&6
4064 ac_func_search_save_LIBS=$LIBS
4065 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4066 /* end confdefs.h. */
4068 /* Override any GCC internal prototype to avoid an error.
4069 Use char because int might match the return type of a GCC
4070 builtin and then its argument prototype would still apply. */
4083 for ac_lib in '' dir; do
4084 if test -z "$ac_lib"; then
4085 ac_res="none required"
4088 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4090 if ac_fn_c_try_link "$LINENO"; then :
4091 ac_cv_search_opendir=$ac_res
4093 rm -f core conftest.err conftest.$ac_objext \
4095 if ${ac_cv_search_opendir+:} false; then :
4099 if ${ac_cv_search_opendir+:} false; then :
4102 ac_cv_search_opendir=no
4105 LIBS=$ac_func_search_save_LIBS
4107 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
4108 $as_echo "$ac_cv_search_opendir" >&6; }
4109 ac_res=$ac_cv_search_opendir
4110 if test "$ac_res" != no; then :
4111 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4116 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing opendir" >&5
4117 $as_echo_n "checking for library containing opendir... " >&6; }
4118 if ${ac_cv_search_opendir+:} false; then :
4119 $as_echo_n "(cached) " >&6
4121 ac_func_search_save_LIBS=$LIBS
4122 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4123 /* end confdefs.h. */
4125 /* Override any GCC internal prototype to avoid an error.
4126 Use char because int might match the return type of a GCC
4127 builtin and then its argument prototype would still apply. */
4140 for ac_lib in '' x; do
4141 if test -z "$ac_lib"; then
4142 ac_res="none required"
4145 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4147 if ac_fn_c_try_link "$LINENO"; then :
4148 ac_cv_search_opendir=$ac_res
4150 rm -f core conftest.err conftest.$ac_objext \
4152 if ${ac_cv_search_opendir+:} false; then :
4156 if ${ac_cv_search_opendir+:} false; then :
4159 ac_cv_search_opendir=no
4162 LIBS=$ac_func_search_save_LIBS
4164 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_opendir" >&5
4165 $as_echo "$ac_cv_search_opendir" >&6; }
4166 ac_res=$ac_cv_search_opendir
4167 if test "$ac_res" != no; then :
4168 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4174 for ac_header in ctype.h
4176 ac_fn_c_check_header_mongrel "$LINENO" "ctype.h" "ac_cv_header_ctype_h" "$ac_includes_default"
4177 if test "x$ac_cv_header_ctype_h" = xyes; then :
4178 cat >>confdefs.h <<_ACEOF
4179 #define HAVE_CTYPE_H 1
4186 for ac_header in errno.h
4188 ac_fn_c_check_header_mongrel "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default"
4189 if test "x$ac_cv_header_errno_h" = xyes; then :
4190 cat >>confdefs.h <<_ACEOF
4191 #define HAVE_ERRNO_H 1
4198 for ac_header in libintl.h
4200 ac_fn_c_check_header_mongrel "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
4201 if test "x$ac_cv_header_libintl_h" = xyes; then :
4202 cat >>confdefs.h <<_ACEOF
4203 #define HAVE_LIBINTL_H 1
4210 for ac_header in locale.h
4212 ac_fn_c_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
4213 if test "x$ac_cv_header_locale_h" = xyes; then :
4214 cat >>confdefs.h <<_ACEOF
4215 #define HAVE_LOCALE_H 1
4222 for ac_header in net/if.h
4224 ac_fn_c_check_header_mongrel "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default"
4225 if test "x$ac_cv_header_net_if_h" = xyes; then :
4226 cat >>confdefs.h <<_ACEOF
4227 #define HAVE_NET_IF_H 1
4234 for ac_header in regex.h
4236 ac_fn_c_check_header_mongrel "$LINENO" "regex.h" "ac_cv_header_regex_h" "$ac_includes_default"
4237 if test "x$ac_cv_header_regex_h" = xyes; then :
4238 cat >>confdefs.h <<_ACEOF
4239 #define HAVE_REGEX_H 1
4246 for ac_header in signal.h
4248 ac_fn_c_check_header_mongrel "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
4249 if test "x$ac_cv_header_signal_h" = xyes; then :
4250 cat >>confdefs.h <<_ACEOF
4251 #define HAVE_SIGNAL_H 1
4258 for ac_header in stdio.h
4260 ac_fn_c_check_header_mongrel "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
4261 if test "x$ac_cv_header_stdio_h" = xyes; then :
4262 cat >>confdefs.h <<_ACEOF
4263 #define HAVE_STDIO_H 1
4270 for ac_header in sys/file.h
4272 ac_fn_c_check_header_mongrel "$LINENO" "sys/file.h" "ac_cv_header_sys_file_h" "$ac_includes_default"
4273 if test "x$ac_cv_header_sys_file_h" = xyes; then :
4274 cat >>confdefs.h <<_ACEOF
4275 #define HAVE_SYS_FILE_H 1
4282 for ac_header in sys/ioctl.h
4284 ac_fn_c_check_header_mongrel "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
4285 if test "x$ac_cv_header_sys_ioctl_h" = xyes; then :
4286 cat >>confdefs.h <<_ACEOF
4287 #define HAVE_SYS_IOCTL_H 1
4294 for ac_header in sys/stat.h
4296 ac_fn_c_check_header_mongrel "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "$ac_includes_default"
4297 if test "x$ac_cv_header_sys_stat_h" = xyes; then :
4298 cat >>confdefs.h <<_ACEOF
4299 #define HAVE_SYS_STAT_H 1
4308 echo Check typedefs, structures and compiler characteristics:
4310 { $as_echo "$as_me:${as_lineno-$LINENO}: checking return type of signal handlers" >&5
4311 $as_echo_n "checking return type of signal handlers... " >&6; }
4312 if ${ac_cv_type_signal+:} false; then :
4313 $as_echo_n "(cached) " >&6
4315 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4316 /* end confdefs.h. */
4317 #include <sys/types.h>
4323 return *(signal (0, 0)) (0) == 1;
4328 if ac_fn_c_try_compile "$LINENO"; then :
4329 ac_cv_type_signal=int
4331 ac_cv_type_signal=void
4333 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4335 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_signal" >&5
4336 $as_echo "$ac_cv_type_signal" >&6; }
4338 cat >>confdefs.h <<_ACEOF
4339 #define RETSIGTYPE $ac_cv_type_signal
4343 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
4344 if test "x$ac_cv_type_size_t" = xyes; then :
4348 cat >>confdefs.h <<_ACEOF
4349 #define size_t unsigned int
4354 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
4355 if test "x$ac_cv_type_off_t" = xyes; then :
4359 cat >>confdefs.h <<_ACEOF
4360 #define off_t long int
4367 echo Check library functions:
4369 for ac_func in strchr
4371 ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr"
4372 if test "x$ac_cv_func_strchr" = xyes; then :
4373 cat >>confdefs.h <<_ACEOF
4374 #define HAVE_STRCHR 1
4380 for ac_func in strcspn
4382 ac_fn_c_check_func "$LINENO" "strcspn" "ac_cv_func_strcspn"
4383 if test "x$ac_cv_func_strcspn" = xyes; then :
4384 cat >>confdefs.h <<_ACEOF
4385 #define HAVE_STRCSPN 1
4391 for ac_func in strspn
4393 ac_fn_c_check_func "$LINENO" "strspn" "ac_cv_func_strspn"
4394 if test "x$ac_cv_func_strspn" = xyes; then :
4395 cat >>confdefs.h <<_ACEOF
4396 #define HAVE_STRSPN 1
4402 for ac_func in strstr
4404 ac_fn_c_check_func "$LINENO" "strstr" "ac_cv_func_strstr"
4405 if test "x$ac_cv_func_strstr" = xyes; then :
4406 cat >>confdefs.h <<_ACEOF
4407 #define HAVE_STRSTR 1
4414 # Should we check for lm_sensors?
4415 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sensors support" >&5
4416 $as_echo_n "checking for sensors support... " >&6; }
4417 # Check whether --enable-sensors was given.
4418 if test "${enable_sensors+set}" = set; then :
4419 enableval=$enable_sensors; SENSORS=$enableval
4424 if test $SENSORS != "yes"; then
4429 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SENSORS" >&5
4430 $as_echo "$SENSORS" >&6; }
4432 # Check for lm_sensors
4436 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sensors_get_detected_chips in -lsensors" >&5
4437 $as_echo_n "checking for sensors_get_detected_chips in -lsensors... " >&6; }
4438 if ${ac_cv_lib_sensors_sensors_get_detected_chips+:} false; then :
4439 $as_echo_n "(cached) " >&6
4441 ac_check_lib_save_LIBS=$LIBS
4442 LIBS="-lsensors $LIBS"
4443 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4444 /* end confdefs.h. */
4446 /* Override any GCC internal prototype to avoid an error.
4447 Use char because int might match the return type of a GCC
4448 builtin and then its argument prototype would still apply. */
4452 char sensors_get_detected_chips ();
4456 return sensors_get_detected_chips ();
4461 if ac_fn_c_try_link "$LINENO"; then :
4462 ac_cv_lib_sensors_sensors_get_detected_chips=yes
4464 ac_cv_lib_sensors_sensors_get_detected_chips=no
4466 rm -f core conftest.err conftest.$ac_objext \
4467 conftest$ac_exeext conftest.$ac_ext
4468 LIBS=$ac_check_lib_save_LIBS
4470 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sensors_sensors_get_detected_chips" >&5
4471 $as_echo "$ac_cv_lib_sensors_sensors_get_detected_chips" >&6; }
4472 if test "x$ac_cv_lib_sensors_sensors_get_detected_chips" = xyes; then :
4473 LFSENSORS="-lsensors"
4478 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sensors lib" >&5
4479 $as_echo_n "checking for sensors lib... " >&6; }
4480 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4481 /* end confdefs.h. */
4482 #include <sensors/sensors.h>
4483 #include <sensors/error.h>
4493 if ac_fn_c_try_compile "$LINENO"; then :
4494 SENSORS=yes; DFSENSORS="-DHAVE_SENSORS"
4496 HAVE_SENSORS="n"; SENSORS=no
4498 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4499 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SENSORS" >&5
4500 $as_echo "$SENSORS" >&6; }
4506 echo Check system services:
4508 # Check whether --enable-largefile was given.
4509 if test "${enable_largefile+set}" = set; then :
4510 enableval=$enable_largefile;
4513 if test "$enable_largefile" != no; then
4515 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4516 $as_echo_n "checking for special C compiler options needed for large files... " >&6; }
4517 if ${ac_cv_sys_largefile_CC+:} false; then :
4518 $as_echo_n "(cached) " >&6
4520 ac_cv_sys_largefile_CC=no
4521 if test "$GCC" != yes; then
4524 # IRIX 6.2 and later do not support large files by default,
4525 # so use the C compiler's -n32 option if that helps.
4526 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4527 /* end confdefs.h. */
4528 #include <sys/types.h>
4529 /* Check that off_t can represent 2**63 - 1 correctly.
4530 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4531 since some C++ compilers masquerading as C compilers
4532 incorrectly reject 9223372036854775807. */
4533 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4534 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4535 && LARGE_OFF_T % 2147483647 == 1)
4545 if ac_fn_c_try_compile "$LINENO"; then :
4548 rm -f core conftest.err conftest.$ac_objext
4550 if ac_fn_c_try_compile "$LINENO"; then :
4551 ac_cv_sys_largefile_CC=' -n32'; break
4553 rm -f core conftest.err conftest.$ac_objext
4557 rm -f conftest.$ac_ext
4560 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4561 $as_echo "$ac_cv_sys_largefile_CC" >&6; }
4562 if test "$ac_cv_sys_largefile_CC" != no; then
4563 CC=$CC$ac_cv_sys_largefile_CC
4566 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4567 $as_echo_n "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4568 if ${ac_cv_sys_file_offset_bits+:} false; then :
4569 $as_echo_n "(cached) " >&6
4572 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4573 /* end confdefs.h. */
4574 #include <sys/types.h>
4575 /* Check that off_t can represent 2**63 - 1 correctly.
4576 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4577 since some C++ compilers masquerading as C compilers
4578 incorrectly reject 9223372036854775807. */
4579 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4580 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4581 && LARGE_OFF_T % 2147483647 == 1)
4591 if ac_fn_c_try_compile "$LINENO"; then :
4592 ac_cv_sys_file_offset_bits=no; break
4594 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4595 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4596 /* end confdefs.h. */
4597 #define _FILE_OFFSET_BITS 64
4598 #include <sys/types.h>
4599 /* Check that off_t can represent 2**63 - 1 correctly.
4600 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4601 since some C++ compilers masquerading as C compilers
4602 incorrectly reject 9223372036854775807. */
4603 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4604 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4605 && LARGE_OFF_T % 2147483647 == 1)
4615 if ac_fn_c_try_compile "$LINENO"; then :
4616 ac_cv_sys_file_offset_bits=64; break
4618 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4619 ac_cv_sys_file_offset_bits=unknown
4623 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
4624 $as_echo "$ac_cv_sys_file_offset_bits" >&6; }
4625 case $ac_cv_sys_file_offset_bits in #(
4628 cat >>confdefs.h <<_ACEOF
4629 #define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits
4634 if test $ac_cv_sys_file_offset_bits = unknown; then
4635 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
4636 $as_echo_n "checking for _LARGE_FILES value needed for large files... " >&6; }
4637 if ${ac_cv_sys_large_files+:} false; then :
4638 $as_echo_n "(cached) " >&6
4641 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4642 /* end confdefs.h. */
4643 #include <sys/types.h>
4644 /* Check that off_t can represent 2**63 - 1 correctly.
4645 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4646 since some C++ compilers masquerading as C compilers
4647 incorrectly reject 9223372036854775807. */
4648 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4649 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4650 && LARGE_OFF_T % 2147483647 == 1)
4660 if ac_fn_c_try_compile "$LINENO"; then :
4661 ac_cv_sys_large_files=no; break
4663 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4664 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4665 /* end confdefs.h. */
4666 #define _LARGE_FILES 1
4667 #include <sys/types.h>
4668 /* Check that off_t can represent 2**63 - 1 correctly.
4669 We can't simply define LARGE_OFF_T to be 9223372036854775807,
4670 since some C++ compilers masquerading as C compilers
4671 incorrectly reject 9223372036854775807. */
4672 #define LARGE_OFF_T (((off_t) 1 << 62) - 1 + ((off_t) 1 << 62))
4673 int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4674 && LARGE_OFF_T % 2147483647 == 1)
4684 if ac_fn_c_try_compile "$LINENO"; then :
4685 ac_cv_sys_large_files=1; break
4687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4688 ac_cv_sys_large_files=unknown
4692 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
4693 $as_echo "$ac_cv_sys_large_files" >&6; }
4694 case $ac_cv_sys_large_files in #(
4697 cat >>confdefs.h <<_ACEOF
4698 #define _LARGE_FILES $ac_cv_sys_large_files
4708 echo Check configuration:
4710 # Check arguments used
4712 # Optional Features:
4713 # --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
4714 # --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
4715 # --disable-largefile omit support for large files
4716 # --disable-nls disable National Language Support
4717 # --enable-yesterday tell sa2 to use "yesterday" data files
4718 # --disable-man-group ignore man_group variable value
4719 # --enable-install-cron tell sysstat to install cron scripts
4720 # --collect-all tell sadc to collect all possible data
4721 # --enable-clean-sa-dir clean system activity directory
4722 # --enable-compress-manpg compress manual pages
4723 # --enable-install-isag install isag script
4724 # --enable-debuginfo enable debug output (--debuginfo option)
4725 # --disable-documentation do not install documentation (man pages...)
4726 # --disable-sensors do not link against libsensors even if available
4727 # --disable-stripping do not strip object files
4729 # Some influential environment variables:
4730 # rcdir directory where startup scripts are installed
4731 # sa_lib_dir sadc, sa1 and sa2 directory
4732 # sa_dir system activity daily datafiles directory
4733 # conf_dir sysstat configuration directory (default is /etc/sysconfig)
4734 # history number of daily datafiles to keep (default value is 7)
4735 # compressafter number of days after which datafiles are compressed
4736 # man_group group for man pages
4737 # cron_owner crontab owner
4738 # cron_interval crontab sampling interval
4740 # Fine tuning the installation directories:
4741 # --mandir=DIR man documentation directory [PREFIX/man]
4742 # --docdir=DIR other documentation directory [PREFIX/share/doc]
4744 # Installation directories:
4745 # --prefix=PREFIX install architecture-independent files in PREFIX
4747 # --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
4751 if test -d /etc/init.d && test ! -L /etc/init.d; then
4752 if test -d /etc/init.d/rc2.d; then
4759 INIT_DIR=/etc/init.d
4760 elif test -d /sbin/init.d; then
4762 INIT_DIR=/sbin/init.d
4766 INIT_DIR=/etc/rc.d/init.d
4770 { $as_echo "$as_me:${as_lineno-$LINENO}: checking run-commands directory" >&5
4771 $as_echo_n "checking run-commands directory... " >&6; }
4773 if test x$rcdir != x""; then
4774 # Override previous rc directories values
4776 INIT_DIR=$rcdir/init.d
4779 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $RC_DIR" >&5
4780 $as_echo "$RC_DIR" >&6; }
4781 if test ! -d $RC_DIR; then
4782 echo "INFO: Directory ${RC_DIR} doesn't exist."
4783 echo "INFO: Startup scripts won't be installed."
4790 # Set sadc directory
4791 if test $prefix != "NONE"; then
4794 AuxPrefix=/usr/local
4797 if test -d $AuxPrefix/lib; then
4798 SADC_DIR=$AuxPrefix/lib
4799 elif test -d $AuxPrefix/lib64; then
4800 SADC_DIR=$AuxPrefix/lib64
4802 SADC_DIR=$AuxPrefix/lib
4805 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sadc directory" >&5
4806 $as_echo_n "checking sadc directory... " >&6; }
4808 if test x$sa_lib_dir != x""; then
4809 SA_LIB_DIR=$sa_lib_dir
4811 SA_LIB_DIR=$SADC_DIR/sa
4813 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SA_LIB_DIR" >&5
4814 $as_echo "$SA_LIB_DIR" >&6; }
4815 if test ! -d $SA_LIB_DIR; then
4816 echo "INFO: Directory ${SA_LIB_DIR} will be created during installation stage."
4820 # Set system activity directory
4821 { $as_echo "$as_me:${as_lineno-$LINENO}: checking system activity directory" >&5
4822 $as_echo_n "checking system activity directory... " >&6; }
4824 if test x$sa_dir != x""; then
4829 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SA_DIR" >&5
4830 $as_echo "$SA_DIR" >&6; }
4831 if test ! -d $SA_DIR; then
4832 echo "INFO: Directory ${SA_DIR} will be created during installation stage."
4836 # Set configuration directory
4837 { $as_echo "$as_me:${as_lineno-$LINENO}: checking sysstat configuration directory" >&5
4838 $as_echo_n "checking sysstat configuration directory... " >&6; }
4840 if test x$conf_dir != x""; then
4841 SYSCONFIG_DIR=$conf_dir
4843 SYSCONFIG_DIR=/etc/sysconfig
4845 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $SYSCONFIG_DIR" >&5
4846 $as_echo "$SYSCONFIG_DIR" >&6; }
4847 if test ! -d $SYSCONFIG_DIR; then
4848 echo "INFO: Directory ${SYSCONFIG_DIR} will be created during installation stage."
4852 # National Language Support
4853 { $as_echo "$as_me:${as_lineno-$LINENO}: checking National Language Support" >&5
4854 $as_echo_n "checking National Language Support... " >&6; }
4855 # Check whether --enable-nls was given.
4856 if test "${enable_nls+set}" = set; then :
4857 enableval=$enable_nls; AUX_NLS=$enableval
4862 if test $AUX_NLS != "no" && test $HAVE_LIBINTL_H && test $HAVE_LOCALE_H; then
4869 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUX_NLS" >&5
4870 $as_echo "$AUX_NLS" >&6; }
4872 if test $AUX_NLS = "yes" && test x$MSGFMT != x"msgfmt"; then
4873 echo "WARNING: msgfmt command not found!"
4875 if test $AUX_NLS = "yes" && test x$XGETTEXT != x"xgettext"; then
4876 echo "WARNING: xgettext command not found!"
4878 if test $AUX_NLS = "yes" && test x$MSGMERGE != x"msgmerge"; then
4879 echo "WARNING: msgmerge command not found!"
4882 # Check whether sa2 should process data file of the day before
4883 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sa2 should process data file of the day before" >&5
4884 $as_echo_n "checking whether sa2 should process data file of the day before... " >&6; }
4885 # Check whether --enable-yesterday was given.
4886 if test "${enable_yesterday+set}" = set; then :
4887 enableval=$enable_yesterday; AUX_YESTERDAY=$enableval
4892 if test $AUX_YESTERDAY = "yes"; then
4893 YESTERDAY="--date=yesterday"
4894 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4895 $as_echo "yes" >&6; }
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4899 $as_echo "no" >&6; }
4903 # Data history to keep by sa2
4904 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of daily data files to keep" >&5
4905 $as_echo_n "checking number of daily data files to keep... " >&6; }
4907 if test x$history = x""; then
4912 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $HISTORY" >&5
4913 $as_echo "$HISTORY" >&6; }
4916 # Number of days after which datafiles are compressed
4917 { $as_echo "$as_me:${as_lineno-$LINENO}: checking number of days after which data files are compressed" >&5
4918 $as_echo_n "checking number of days after which data files are compressed... " >&6; }
4920 if test x$compressafter = x""; then
4923 COMPRESSAFTER=$compressafter
4925 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $COMPRESSAFTER" >&5
4926 $as_echo "$COMPRESSAFTER" >&6; }
4930 if `grep ^man: /etc/group >/dev/null 2>&1`; then
4936 { $as_echo "$as_me:${as_lineno-$LINENO}: checking group for manual pages" >&5
4937 $as_echo_n "checking group for manual pages... " >&6; }
4939 if test x$man_group = x""; then
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAN_GROUP" >&5
4942 $as_echo "$MAN_GROUP" >&6; }
4944 if !(`grep ^$man_group: /etc/group >/dev/null 2>&1`); then
4946 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAN_GROUP" >&5
4947 $as_echo "$MAN_GROUP" >&6; }
4948 echo "WARNING: Group ${man_group} not found: Using ${GRP} instead"
4950 MAN_GROUP=$man_group
4951 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MAN_GROUP" >&5
4952 $as_echo "$MAN_GROUP" >&6; }
4957 # Ignore manual pages group?
4958 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether man_group variable should be ignored" >&5
4959 $as_echo_n "checking whether man_group variable should be ignored... " >&6; }
4960 # Check whether --enable-man-group was given.
4961 if test "${enable_man_group+set}" = set; then :
4962 enableval=$enable_man_group; AUX_IMG=$enableval
4967 if test $AUX_IMG != "no"; then
4974 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUX_IMG" >&5
4975 $as_echo "$AUX_IMG" >&6; }
4978 # Compress manual pages?
4979 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether manual pages should be compressed" >&5
4980 $as_echo_n "checking whether manual pages should be compressed... " >&6; }
4981 # Check whether --enable-compress-manpg was given.
4982 if test "${enable_compress_manpg+set}" = set; then :
4983 enableval=$enable_compress_manpg; AUX_MPG=$enableval
4988 if test $AUX_MPG != "yes"; then
4994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUX_MPG" >&5
4995 $as_echo "$AUX_MPG" >&6; }
4998 # Check whether isag should be installed
4999 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether isag script should be installed" >&5
5000 $as_echo_n "checking whether isag script should be installed... " >&6; }
5001 # Check whether --enable-install-isag was given.
5002 if test "${enable_install_isag+set}" = set; then :
5003 enableval=$enable_install_isag; AUX_IIS=$enableval
5008 if test $AUX_IIS != "yes"; then
5014 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUX_IIS" >&5
5015 $as_echo "$AUX_IIS" >&6; }
5018 # Check whether sa directory should be cleaned
5019 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether system activity directory should be cleaned" >&5
5020 $as_echo_n "checking whether system activity directory should be cleaned... " >&6; }
5021 # Check whether --enable-clean-sa-dir was given.
5022 if test "${enable_clean_sa_dir+set}" = set; then :
5023 enableval=$enable_clean_sa_dir; AUX_CSD=$enableval
5028 if test $AUX_CSD != "yes"; then
5034 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUX_CSD" >&5
5035 $as_echo "$AUX_CSD" >&6; }
5039 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether cron should start sar automatically" >&5
5040 $as_echo_n "checking whether cron should start sar automatically... " >&6; }
5041 # Check whether --enable-install-cron was given.
5042 if test "${enable_install_cron+set}" = set; then :
5043 enableval=$enable_install_cron; INSTALL_CRON=$enableval
5048 if test $INSTALL_CRON != "yes"; then
5055 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUX_CRON" >&5
5056 $as_echo "$AUX_CRON" >&6; }
5061 if test $INSTALL_CRON = "y"; then
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: checking crontab owner" >&5
5063 $as_echo_n "checking crontab owner... " >&6; }
5065 if test x$cron_owner = x""; then
5067 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CRON_OWNER" >&5
5068 $as_echo "$CRON_OWNER" >&6; }
5070 if !(`grep ^$cron_owner: /etc/passwd >/dev/null 2>&1`); then
5072 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CRON_OWNER" >&5
5073 $as_echo "$CRON_OWNER" >&6; }
5074 echo "WARNING: User ${cron_owner} not found: Using ${CUSR} instead."
5076 CRON_OWNER=$cron_owner
5077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CRON_OWNER" >&5
5078 $as_echo "$CRON_OWNER" >&6; }
5081 echo "INFO: Crontab for ${CRON_OWNER} will be saved in current directory if necessary"
5082 if test $CRON_OWNER = "root"; then
5085 REM_CHOWN="# REM_CHOWN"
5087 SU_C_OWNER="su $CRON_OWNER -c "
5089 # " (ignore this line)
5094 { $as_echo "$as_me:${as_lineno-$LINENO}: checking crontab interval" >&5
5095 $as_echo_n "checking crontab interval... " >&6; }
5097 if test x$cron_interval = x""; then
5100 CRON_INTERVAL=$cron_interval
5102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CRON_INTERVAL" >&5
5103 $as_echo "$CRON_INTERVAL" >&6; }
5104 CRON_INTERVAL_SEC=`expr ${CRON_INTERVAL} \* 60`
5105 CRON_COUNT=`expr 60 / ${CRON_INTERVAL}`
5107 # Check whether sadc should collect all possible activities
5108 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether sadc should collect all possible activities" >&5
5109 $as_echo_n "checking whether sadc should collect all possible activities... " >&6; }
5110 # Check whether --enable-collect-all was given.
5111 if test "${enable_collect_all+set}" = set; then :
5112 enableval=$enable_collect_all; COLLECT_ALL=$enableval
5117 if test $COLLECT_ALL != "yes"; then
5121 COLLECT_ALL="-S XALL"
5124 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUX_COLL" >&5
5125 $as_echo "$AUX_COLL" >&6; }
5131 REM_CHOWN="# REM_CHOWN"
5133 CRON_INTERVAL_SEC=600
5146 # Check whether documentation should be installed
5147 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether documentation should be installed" >&5
5148 $as_echo_n "checking whether documentation should be installed... " >&6; }
5149 # Check whether --enable-documentation was given.
5150 if test "${enable_documentation+set}" = set; then :
5151 enableval=$enable_documentation; AUX_DOC=$enableval
5156 if test $AUX_DOC != "no"; then
5163 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUX_DOC" >&5
5164 $as_echo "$AUX_DOC" >&6; }
5167 # Set directory for installing manual pages (see comment in Makefile)
5170 # Check whether --debuginfo options should be allowed
5171 # Check whether --enable-debuginfo was given.
5172 if test "${enable_debuginfo+set}" = set; then :
5173 enableval=$enable_debuginfo; WITH_DEBUG=yes ; DFLAGS="$DFLAGS -DDEBUG"
5181 # Check whether object files should be stripped
5182 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether object files should be stripped" >&5
5183 $as_echo_n "checking whether object files should be stripped... " >&6; }
5184 # Check whether --enable-stripping was given.
5185 if test "${enable_stripping+set}" = set; then :
5186 enableval=$enable_stripping; AUX_STRIP=$enableval
5191 if test $AUX_STRIP != "no"; then
5198 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AUX_STRIP" >&5
5199 $as_echo "$AUX_STRIP" >&6; }
5201 # National Language Support
5202 #AC_MSG_CHECKING(National Language Support)
5204 # AC_HELP_STRING([--disable-nls],
5205 # [disable National Language Support]),
5206 # AUX_NLS=$enableval,AUX_NLS=yes)
5207 #if test $AUX_NLS != "no" && test $HAVE_LIBINTL_H && test $HAVE_LOCALE_H; then
5214 #AC_MSG_RESULT($AUX_NLS)
5219 echo Now create files:
5221 ac_config_files="$ac_config_files sa1"
5222 # Permissions must be changed
5223 ac_config_files="$ac_config_files sa2"
5224 # Permissions must be changed
5225 ac_config_files="$ac_config_files cron/crontab:cron/crontab.sample"
5226 # File must be renamed
5227 ac_config_files="$ac_config_files sysstat.sysconfig"
5229 ac_config_files="$ac_config_files version.h:version.in"
5230 # File must be renamed
5231 ac_config_files="$ac_config_files sysconfig.h:sysconfig.in"
5232 # File must be renamed
5233 ac_config_files="$ac_config_files cron/sysstat.cron.daily"
5235 ac_config_files="$ac_config_files cron/sysstat.cron.hourly"
5237 ac_config_files="$ac_config_files cron/sysstat.crond"
5239 ac_config_files="$ac_config_files cron/sysstat.crond.sample.in:cron/sysstat.crond.in"
5241 ac_config_files="$ac_config_files sysstat"
5242 # Permissions must be changed
5243 ac_config_files="$ac_config_files man/sa1.8:man/sa1.in"
5244 # File must be renamed
5245 ac_config_files="$ac_config_files man/sa2.8:man/sa2.in"
5246 # File must be renamed
5247 ac_config_files="$ac_config_files man/sadc.8:man/sadc.in"
5248 # File must be renamed
5249 ac_config_files="$ac_config_files man/sadf.1:man/sadf.in"
5250 # File must be renamed
5251 ac_config_files="$ac_config_files man/sar.1:man/sar.in"
5252 # File must be renamed
5253 ac_config_files="$ac_config_files man/sysstat.5:man/sysstat.in"
5254 # File must be renamed
5255 ac_config_files="$ac_config_files man/iostat.1:man/iostat.in"
5256 # File must be renamed
5257 ac_config_files="$ac_config_files man/cifsiostat.1:man/cifsiostat.in"
5258 # File must be renamed
5259 ac_config_files="$ac_config_files man/nfsiostat.1:man/nfsiostat.in"
5260 # File must be renamed
5261 ac_config_files="$ac_config_files contrib/isag/isag"
5262 # Permissions must be changed
5264 ac_config_files="$ac_config_files Makefile"
5266 cat >confcache <<\_ACEOF
5267 # This file is a shell script that caches the results of configure
5268 # tests run on this system so they can be shared between configure
5269 # scripts and configure runs, see configure's option --config-cache.
5270 # It is not useful on other systems. If it contains results you don't
5271 # want to keep, you may remove or edit it.
5273 # config.status only pays attention to the cache file if you give it
5274 # the --recheck option to rerun configure.
5276 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5277 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5282 # The following way of writing the cache mishandles newlines in values,
5283 # but we know of no workaround that is simple, portable, and efficient.
5284 # So, we kill variables containing newlines.
5285 # Ultrix sh set writes to stderr and can't be redirected directly,
5286 # and sets the high bit in the cache file unless we assign to the vars.
5288 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5289 eval ac_val=\$$ac_var
5293 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5294 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5297 _ | IFS | as_nl) ;; #(
5298 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5299 *) { eval $ac_var=; unset $ac_var;} ;;
5305 case $as_nl`(ac_space=' '; set) 2>&1` in #(
5306 *${as_nl}ac_space=\ *)
5307 # `set' does not quote correctly, so add quotes: double-quote
5308 # substitution turns \\\\ into \\, and sed turns \\ into \.
5311 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5314 # `set' quotes correctly as required by POSIX, so do not add quotes.
5315 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5324 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
5326 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5328 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5329 if test -w "$cache_file"; then
5330 if test "x$cache_file" != "x/dev/null"; then
5331 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5332 $as_echo "$as_me: updating cache $cache_file" >&6;}
5333 if test ! -f "$cache_file" || test -h "$cache_file"; then
5334 cat confcache >"$cache_file"
5336 case $cache_file in #(
5338 mv -f confcache "$cache_file"$$ &&
5339 mv -f "$cache_file"$$ "$cache_file" ;; #(
5341 mv -f confcache "$cache_file" ;;
5346 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5347 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
5352 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5353 # Let make expand exec_prefix.
5354 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5356 # Transform confdefs.h into DEFS.
5357 # Protect against shell expansion while executing Makefile rules.
5358 # Protect against Makefile macro expansion.
5360 # If the first sed substitution is executed (which looks for macros that
5361 # take arguments), then branch to the quote section. Otherwise,
5362 # look for a macro that doesn't take arguments.
5372 s/^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*([^)]*)\)[ ]*\(.*\)/-D\1=\2/g
5374 s/^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)/-D\1=\2/g
5378 s/[ `~#$^&*(){}\\|;'\''"<>?]/\\&/g
5391 DEFS=`sed -n "$ac_script" confdefs.h`
5397 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
5398 # 1. Remove the extension, and $U if already installed.
5399 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
5400 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
5401 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
5402 # will be set to the directory where LIBOBJS objects are built.
5403 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
5404 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
5408 LTLIBOBJS=$ac_ltlibobjs
5412 : "${CONFIG_STATUS=./config.status}"
5414 ac_clean_files_save=$ac_clean_files
5415 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
5416 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
5417 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
5419 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
5421 # Generated by $as_me.
5422 # Run this file to recreate the current configuration.
5423 # Compiler output produced by configure, useful for debugging
5424 # configure, is in config.log if it exists.
5430 SHELL=\${CONFIG_SHELL-$SHELL}
5433 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
5434 ## -------------------- ##
5435 ## M4sh Initialization. ##
5436 ## -------------------- ##
5438 # Be more Bourne compatible
5439 DUALCASE=1; export DUALCASE # for MKS sh
5440 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
5443 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
5444 # is contrary to our usage. Disable this feature.
5445 alias -g '${1+"$@"}'='"$@"'
5446 setopt NO_GLOB_SUBST
5448 case `(set -o) 2>/dev/null` in #(
5460 # Printing a long string crashes Solaris 7 /usr/bin/printf.
5461 as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
5462 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
5463 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
5464 # Prefer a ksh shell builtin over an external printf program on Solaris,
5465 # but without wasting forks for bash or zsh.
5466 if test -z "$BASH_VERSION$ZSH_VERSION" \
5467 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
5468 as_echo='print -r --'
5469 as_echo_n='print -rn --'
5470 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
5471 as_echo='printf %s\n'
5472 as_echo_n='printf %s'
5474 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
5475 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
5476 as_echo_n='/usr/ucb/echo -n'
5478 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
5479 as_echo_n_body='eval
5483 expr "X$arg" : "X\\(.*\\)$as_nl";
5484 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
5486 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
5488 export as_echo_n_body
5489 as_echo_n='sh -c $as_echo_n_body as_echo'
5492 as_echo='sh -c $as_echo_body as_echo'
5495 # The user is always right.
5496 if test "${PATH_SEPARATOR+set}" != set; then
5498 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
5499 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
5506 # We need space, tab and new line, in precisely that order. Quoting is
5507 # there to prevent editors from complaining about space-tab.
5508 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
5509 # splitting by setting IFS to empty value.)
5512 # Find who we are. Look in the path if we contain no directory separator.
5515 *[\\/]* ) as_myself=$0 ;;
5516 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5520 test -z "$as_dir" && as_dir=.
5521 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
5527 # We did not find ourselves, most probably we were run as `sh COMMAND'
5528 # in which case we are not to be found in the path.
5529 if test "x$as_myself" = x; then
5532 if test ! -f "$as_myself"; then
5533 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
5537 # Unset variables that we do not need and which cause bugs (e.g. in
5538 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
5539 # suppresses any "Segmentation fault" message there. '((' could
5540 # trigger a bug in pdksh 5.2.14.
5541 for as_var in BASH_ENV ENV MAIL MAILPATH
5542 do eval test x\${$as_var+set} = xset \
5543 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
5556 (unset CDPATH) >/dev/null 2>&1 && unset CDPATH
5559 # as_fn_error STATUS ERROR [LINENO LOG_FD]
5560 # ----------------------------------------
5561 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
5562 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
5563 # script with STATUS, using 1 if that was 0.
5566 as_status=$1; test $as_status -eq 0 && as_status=1
5568 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
5569 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
5571 $as_echo "$as_me: error: $2" >&2
5572 as_fn_exit $as_status
5576 # as_fn_set_status STATUS
5577 # -----------------------
5578 # Set $? to STATUS, without forking.
5582 } # as_fn_set_status
5586 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
5596 # Portably unset VAR.
5599 { eval $1=; unset $1;}
5601 as_unset=as_fn_unset
5602 # as_fn_append VAR VALUE
5603 # ----------------------
5604 # Append the text in VALUE to the end of the definition contained in VAR. Take
5605 # advantage of any shell optimizations that allow amortized linear growth over
5606 # repeated appends, instead of the typical quadratic growth present in naive
5608 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
5609 eval 'as_fn_append ()
5620 # as_fn_arith ARG...
5621 # ------------------
5622 # Perform arithmetic evaluation on the ARGs, and store the result in the
5623 # global $as_val. Take advantage of shells that can avoid forks. The arguments
5624 # must be portable across $(()) and expr.
5625 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
5626 eval 'as_fn_arith ()
5633 as_val=`expr "$@" || test $? -eq 1`
5638 if expr a : '\(a\)' >/dev/null 2>&1 &&
5639 test "X`expr 00001 : '.*\(...\)'`" = X001; then
5645 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
5646 as_basename=basename
5651 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
5657 as_me=`$as_basename -- "$0" ||
5658 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
5659 X"$0" : 'X\(//\)$' \| \
5660 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
5662 sed '/^.*\/\([^/][^/]*\)\/*$/{
5676 # Avoid depending upon Character Ranges.
5677 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
5678 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
5679 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
5680 as_cr_digits='0123456789'
5681 as_cr_alnum=$as_cr_Letters$as_cr_digits
5683 ECHO_C= ECHO_N= ECHO_T=
5684 case `echo -n x` in #(((((
5686 case `echo 'xy\c'` in
5687 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
5689 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
5696 rm -f conf$$ conf$$.exe conf$$.file
5697 if test -d conf$$.dir; then
5698 rm -f conf$$.dir/conf$$.file
5701 mkdir conf$$.dir 2>/dev/null
5703 if (echo >conf$$.file) 2>/dev/null; then
5704 if ln -s conf$$.file conf$$ 2>/dev/null; then
5706 # ... but there are two gotchas:
5707 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
5708 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
5709 # In both cases, we have to default to `cp -p'.
5710 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
5712 elif ln conf$$.file conf$$ 2>/dev/null; then
5720 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
5721 rmdir conf$$.dir 2>/dev/null
5726 # Create "$as_dir" as a directory, including parents if necessary.
5731 -*) as_dir=./$as_dir;;
5733 test -d "$as_dir" || eval $as_mkdir_p || {
5737 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
5738 *) as_qdir=$as_dir;;
5740 as_dirs="'$as_qdir' $as_dirs"
5741 as_dir=`$as_dirname -- "$as_dir" ||
5742 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
5743 X"$as_dir" : 'X\(//\)[^/]' \| \
5744 X"$as_dir" : 'X\(//\)$' \| \
5745 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
5746 $as_echo X"$as_dir" |
5747 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
5764 test -d "$as_dir" && break
5766 test -z "$as_dirs" || eval "mkdir $as_dirs"
5767 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
5771 if mkdir -p . 2>/dev/null; then
5772 as_mkdir_p='mkdir -p "$as_dir"'
5774 test -d ./-p && rmdir ./-p
5778 if test -x / >/dev/null 2>&1; then
5781 if ls -dL / >/dev/null 2>&1; then
5788 if test -d "$1"; then
5794 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
5795 ???[sx]*):;;*)false;;esac;fi
5799 as_executable_p=$as_test_x
5801 # Sed expression to map a string onto a valid CPP name.
5802 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
5804 # Sed expression to map a string onto a valid variable name.
5805 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
5809 ## ----------------------------------- ##
5810 ## Main body of $CONFIG_STATUS script. ##
5811 ## ----------------------------------- ##
5813 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
5815 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5816 # Save the log message, to keep $0 and so on meaningful, and to
5817 # report actual input values of CONFIG_FILES etc. instead of their
5818 # values after options handling.
5820 This file was extended by sysstat $as_me 10.1.2, which was
5821 generated by GNU Autoconf 2.68. Invocation command line was
5823 CONFIG_FILES = $CONFIG_FILES
5824 CONFIG_HEADERS = $CONFIG_HEADERS
5825 CONFIG_LINKS = $CONFIG_LINKS
5826 CONFIG_COMMANDS = $CONFIG_COMMANDS
5829 on `(hostname || uname -n) 2>/dev/null | sed 1q`
5834 case $ac_config_files in *"
5835 "*) set x $ac_config_files; shift; ac_config_files=$*;;
5840 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5841 # Files that config.status was made for.
5842 config_files="$ac_config_files"
5846 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5848 \`$as_me' instantiates files and other configuration actions
5849 from templates according to the current configuration. Unless the files
5850 and actions are specified as TAGs, all are instantiated by default.
5852 Usage: $0 [OPTION]... [TAG]...
5854 -h, --help print this help, then exit
5855 -V, --version print version number and configuration settings, then exit
5856 --config print configuration, then exit
5857 -q, --quiet, --silent
5858 do not print progress messages
5859 -d, --debug don't remove temporary files
5860 --recheck update $as_me by reconfiguring in the same conditions
5861 --file=FILE[:TEMPLATE]
5862 instantiate the configuration file FILE
5864 Configuration files:
5867 Report bugs to the package provider."
5870 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5871 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
5873 sysstat config.status 10.1.2
5874 configured by $0, generated by GNU Autoconf 2.68,
5875 with options \\"\$ac_cs_config\\"
5877 Copyright (C) 2010 Free Software Foundation, Inc.
5878 This config.status script is free software; the Free Software Foundation
5879 gives unlimited permission to copy, distribute and modify it."
5883 test -n "\$AWK" || AWK=awk
5886 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5887 # The default lists apply if the user does not specify any file.
5893 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5894 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
5898 ac_option=`expr "X$1" : 'X\([^=]*\)='`
5910 # Handling of the options.
5911 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
5913 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
5914 $as_echo "$ac_cs_version"; exit ;;
5915 --config | --confi | --conf | --con | --co | --c )
5916 $as_echo "$ac_cs_config"; exit ;;
5917 --debug | --debu | --deb | --de | --d | -d )
5919 --file | --fil | --fi | --f )
5922 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
5923 '') as_fn_error $? "missing file argument" ;;
5925 as_fn_append CONFIG_FILES " '$ac_optarg'"
5926 ac_need_defaults=false;;
5927 --he | --h | --help | --hel | -h )
5928 $as_echo "$ac_cs_usage"; exit ;;
5929 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
5930 | -silent | --silent | --silen | --sile | --sil | --si | --s)
5934 -*) as_fn_error $? "unrecognized option: \`$1'
5935 Try \`$0 --help' for more information." ;;
5937 *) as_fn_append ac_config_targets " $1"
5938 ac_need_defaults=false ;;
5944 ac_configure_extra_args=
5946 if $ac_cs_silent; then
5948 ac_configure_extra_args="$ac_configure_extra_args --silent"
5952 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5953 if \$ac_cs_recheck; then
5954 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
5956 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
5957 CONFIG_SHELL='$SHELL'
5963 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5967 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
5968 ## Running $as_me. ##
5974 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
5977 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
5979 # Handling of arguments.
5980 for ac_config_target in $ac_config_targets
5982 case $ac_config_target in
5983 "sa1") CONFIG_FILES="$CONFIG_FILES sa1" ;;
5984 "sa2") CONFIG_FILES="$CONFIG_FILES sa2" ;;
5985 "cron/crontab") CONFIG_FILES="$CONFIG_FILES cron/crontab:cron/crontab.sample" ;;
5986 "sysstat.sysconfig") CONFIG_FILES="$CONFIG_FILES sysstat.sysconfig" ;;
5987 "version.h") CONFIG_FILES="$CONFIG_FILES version.h:version.in" ;;
5988 "sysconfig.h") CONFIG_FILES="$CONFIG_FILES sysconfig.h:sysconfig.in" ;;
5989 "cron/sysstat.cron.daily") CONFIG_FILES="$CONFIG_FILES cron/sysstat.cron.daily" ;;
5990 "cron/sysstat.cron.hourly") CONFIG_FILES="$CONFIG_FILES cron/sysstat.cron.hourly" ;;
5991 "cron/sysstat.crond") CONFIG_FILES="$CONFIG_FILES cron/sysstat.crond" ;;
5992 "cron/sysstat.crond.sample.in") CONFIG_FILES="$CONFIG_FILES cron/sysstat.crond.sample.in:cron/sysstat.crond.in" ;;
5993 "sysstat") CONFIG_FILES="$CONFIG_FILES sysstat" ;;
5994 "man/sa1.8") CONFIG_FILES="$CONFIG_FILES man/sa1.8:man/sa1.in" ;;
5995 "man/sa2.8") CONFIG_FILES="$CONFIG_FILES man/sa2.8:man/sa2.in" ;;
5996 "man/sadc.8") CONFIG_FILES="$CONFIG_FILES man/sadc.8:man/sadc.in" ;;
5997 "man/sadf.1") CONFIG_FILES="$CONFIG_FILES man/sadf.1:man/sadf.in" ;;
5998 "man/sar.1") CONFIG_FILES="$CONFIG_FILES man/sar.1:man/sar.in" ;;
5999 "man/sysstat.5") CONFIG_FILES="$CONFIG_FILES man/sysstat.5:man/sysstat.in" ;;
6000 "man/iostat.1") CONFIG_FILES="$CONFIG_FILES man/iostat.1:man/iostat.in" ;;
6001 "man/cifsiostat.1") CONFIG_FILES="$CONFIG_FILES man/cifsiostat.1:man/cifsiostat.in" ;;
6002 "man/nfsiostat.1") CONFIG_FILES="$CONFIG_FILES man/nfsiostat.1:man/nfsiostat.in" ;;
6003 "contrib/isag/isag") CONFIG_FILES="$CONFIG_FILES contrib/isag/isag" ;;
6004 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6006 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
6011 # If the user did not use the arguments to specify the items to instantiate,
6012 # then the envvar interface is used. Set only those that are not.
6013 # We use the long form for the default assignment because of an extremely
6014 # bizarre bug on SunOS 4.1.3.
6015 if $ac_need_defaults; then
6016 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
6019 # Have a temporary directory for convenience. Make it in the build tree
6020 # simply because there is no reason against having it here, and in addition,
6021 # creating and moving files from /tmp can sometimes cause problems.
6022 # Hook for its removal unless debugging.
6023 # Note that there is a small window in which the directory will not be cleaned:
6024 # after its creation but before its name has been assigned to `$tmp'.
6028 trap 'exit_status=$?
6030 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
6032 trap 'as_fn_exit 1' 1 2 13 15
6034 # Create a (secure) tmp directory for tmp files.
6037 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6041 tmp=./conf$$-$RANDOM
6042 (umask 077 && mkdir "$tmp")
6043 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
6046 # Set up the scripts for CONFIG_FILES section.
6047 # No need to generate them if there are no CONFIG_FILES.
6048 # This happens for instance with `./config.status config.h'.
6049 if test -n "$CONFIG_FILES"; then
6052 ac_cr=`echo X | tr X '\015'`
6053 # On cygwin, bash can eat \r inside `` if the user requested igncr.
6054 # But we know of no other shell where ac_cr would be empty at this
6055 # point, so we can use a bashism as a fallback.
6056 if test "x$ac_cr" = x; then
6057 eval ac_cr=\$\'\\r\'
6059 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6060 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6066 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
6071 echo "cat >conf$$subs.awk <<_ACEOF" &&
6072 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6075 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6076 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
6078 for ac_last_try in false false false false false :; do
6079 . ./conf$$subs.sh ||
6080 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6082 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6083 if test $ac_delim_n = $ac_delim_num; then
6085 elif $ac_last_try; then
6086 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6088 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6093 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6094 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
6098 s/^/S["/; s/!.*/"]=/
6108 s/\(.\{148\}\)..*/\1/
6110 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6115 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6122 s/\(.\{148\}\)..*/\1/
6124 s/["\\]/\\&/g; s/^/"/; s/$/"/
6128 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6133 ' <conf$$subs.awk | sed '
6138 ' >>$CONFIG_STATUS || ac_write_fail=1
6139 rm -f conf$$subs.awk
6140 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6142 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
6143 for (key in S) S_is_set[key] = 1
6149 nfields = split(line, field, "@")
6151 len = length(field[1])
6152 for (i = 2; i < nfields; i++) {
6154 keylen = length(key)
6155 if (S_is_set[key]) {
6157 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6158 len += length(value) + length(field[++i])
6169 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6170 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6171 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6174 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
6175 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
6178 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
6179 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
6180 # trailing colons and then remove the whole line if VPATH becomes empty
6181 # (actually we leave an empty line to preserve line numbers).
6182 if test "x$srcdir" = x.; then
6183 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
6201 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6202 fi # test -n "$CONFIG_FILES"
6205 eval set X " :F $CONFIG_FILES "
6210 :[FHLC]) ac_mode=$ac_tag; continue;;
6212 case $ac_mode$ac_tag in
6214 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
6215 :[FH]-) ac_tag=-:-;;
6216 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6233 -) ac_f="$ac_tmp/stdin";;
6234 *) # Look for the file first in the build tree, then in the source tree
6235 # (if the path is not absolute). The absolute path cannot be DOS-style,
6236 # because $ac_f cannot contain `:'.
6240 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6242 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6244 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6245 as_fn_append ac_file_inputs " '$ac_f'"
6248 # Let's still pretend it is `configure' which instantiates (i.e., don't
6249 # use $as_me), people would be surprised to read:
6250 # /* config.h. Generated by config.status. */
6251 configure_input='Generated from '`
6252 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6254 if test x"$ac_file" != x-; then
6255 configure_input="$ac_file. $configure_input"
6256 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6257 $as_echo "$as_me: creating $ac_file" >&6;}
6259 # Neutralize special characters interpreted by sed in replacement strings.
6260 case $configure_input in #(
6261 *\&* | *\|* | *\\* )
6262 ac_sed_conf_input=`$as_echo "$configure_input" |
6263 sed 's/[\\\\&|]/\\\\&/g'`;; #(
6264 *) ac_sed_conf_input=$configure_input;;
6268 *:-:* | *:-) cat >"$ac_tmp/stdin" \
6269 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
6274 ac_dir=`$as_dirname -- "$ac_file" ||
6275 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6276 X"$ac_file" : 'X\(//\)[^/]' \| \
6277 X"$ac_file" : 'X\(//\)$' \| \
6278 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6279 $as_echo X"$ac_file" |
6280 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6297 as_dir="$ac_dir"; as_fn_mkdir_p
6301 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6303 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
6304 # A ".." for each directory in $ac_dir_suffix.
6305 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6306 case $ac_top_builddir_sub in
6307 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6308 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6311 ac_abs_top_builddir=$ac_pwd
6312 ac_abs_builddir=$ac_pwd$ac_dir_suffix
6313 # for backward compatibility:
6314 ac_top_builddir=$ac_top_build_prefix
6317 .) # We are building in place.
6319 ac_top_srcdir=$ac_top_builddir_sub
6320 ac_abs_top_srcdir=$ac_pwd ;;
6321 [\\/]* | ?:[\\/]* ) # Absolute name.
6322 ac_srcdir=$srcdir$ac_dir_suffix;
6323 ac_top_srcdir=$srcdir
6324 ac_abs_top_srcdir=$srcdir ;;
6326 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6327 ac_top_srcdir=$ac_top_build_prefix$srcdir
6328 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6330 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6341 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6342 # If the template does not know about datarootdir, expand it.
6343 # FIXME: This hack should be removed a few years after 2.60.
6344 ac_datarootdir_hack=; ac_datarootdir_seen=
6355 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6356 *datarootdir*) ac_datarootdir_seen=yes;;
6357 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6358 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6359 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6361 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6362 ac_datarootdir_hack='
6363 s&@datadir@&$datadir&g
6364 s&@docdir@&$docdir&g
6365 s&@infodir@&$infodir&g
6366 s&@localedir@&$localedir&g
6367 s&@mandir@&$mandir&g
6368 s&\\\${datarootdir}&$datarootdir&g' ;;
6372 # Neutralize VPATH when `$srcdir' = `.'.
6373 # Shell code in configure.ac might set extrasub.
6374 # FIXME: do we really want to maintain this feature?
6375 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6376 ac_sed_extra="$ac_vpsub
6379 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6381 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
6382 s|@configure_input@|$ac_sed_conf_input|;t t
6383 s&@top_builddir@&$ac_top_builddir_sub&;t t
6384 s&@top_build_prefix@&$ac_top_build_prefix&;t t
6385 s&@srcdir@&$ac_srcdir&;t t
6386 s&@abs_srcdir@&$ac_abs_srcdir&;t t
6387 s&@top_srcdir@&$ac_top_srcdir&;t t
6388 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
6389 s&@builddir@&$ac_builddir&;t t
6390 s&@abs_builddir@&$ac_abs_builddir&;t t
6391 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
6392 $ac_datarootdir_hack
6394 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
6395 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6397 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
6398 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
6399 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
6400 "$ac_tmp/out"`; test -z "$ac_out"; } &&
6401 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6402 which seems to be undefined. Please make sure it is defined" >&5
6403 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
6404 which seems to be undefined. Please make sure it is defined" >&2;}
6406 rm -f "$ac_tmp/stdin"
6408 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
6409 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
6411 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
6419 case $ac_file$ac_mode in
6420 "sa1":F) chmod +x sa1 ;;
6421 "sa2":F) chmod +x sa2 ;;
6422 "cron/sysstat.crond.sample.in":F) sed s/^/#/ cron/sysstat.crond.sample.in > cron/sysstat.crond.sample ;;
6423 "sysstat":F) chmod +x sysstat ;;
6424 "contrib/isag/isag":F) chmod +x contrib/isag/isag ;;
6432 ac_clean_files=$ac_clean_files_save
6434 test $ac_write_fail = 0 ||
6435 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
6438 # configure is writing to config.log, and then calls config.status.
6439 # config.status does its own redirection, appending to config.log.
6440 # Unfortunately, on DOS this fails, as config.log is still kept open
6441 # by configure, so config.status won't be able to write to it; its
6442 # output is simply discarded. So we exec the FD to /dev/null,
6443 # effectively closing config.log, so it can be properly (re)opened and
6444 # appended to by config.status. When coming back to configure, we
6445 # need to make the FD available again.
6446 if test "$no_create" != yes; then
6448 ac_config_status_args=
6449 test "$silent" = yes &&
6450 ac_config_status_args="$ac_config_status_args --quiet"
6452 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
6454 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
6455 # would make configure fail if this is the last instruction.
6456 $ac_cs_success || as_fn_exit 1
6458 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
6459 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
6460 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
6465 Sysstat version: $PACKAGE_VERSION
6466 Installation prefix: $prefix
6467 rc directory: ${RC_DIR}
6468 Init directory: ${INIT_DIR}
6469 Configuration directory: ${SYSCONFIG_DIR}
6470 Man pages directory: $mandir
6472 Compiler flags: $CFLAGS