]> granicus.if.org Git - sysstat/blob - configure
Merge pull request from GHSA-q8r6-g56f-9w7x
[sysstat] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.71 for sysstat 12.7.1.
4 #
5 #
6 # Copyright (C) 1992-1996, 1998-2017, 2020-2021 Free Software Foundation,
7 # Inc.
8 #
9 #
10 # This configure script is free software; the Free Software Foundation
11 # gives unlimited permission to copy, distribute and modify it.
12 ## -------------------- ##
13 ## M4sh Initialization. ##
14 ## -------------------- ##
15
16 # Be more Bourne compatible
17 DUALCASE=1; export DUALCASE # for MKS sh
18 as_nop=:
19 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
20 then :
21   emulate sh
22   NULLCMD=:
23   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
24   # is contrary to our usage.  Disable this feature.
25   alias -g '${1+"$@"}'='"$@"'
26   setopt NO_GLOB_SUBST
27 else $as_nop
28   case `(set -o) 2>/dev/null` in #(
29   *posix*) :
30     set -o posix ;; #(
31   *) :
32      ;;
33 esac
34 fi
35
36
37
38 # Reset variables that may have inherited troublesome values from
39 # the environment.
40
41 # IFS needs to be set, to space, tab, and newline, in precisely that order.
42 # (If _AS_PATH_WALK were called with IFS unset, it would have the
43 # side effect of setting IFS to empty, thus disabling word splitting.)
44 # Quoting is to prevent editors from complaining about space-tab.
45 as_nl='
46 '
47 export as_nl
48 IFS=" ""        $as_nl"
49
50 PS1='$ '
51 PS2='> '
52 PS4='+ '
53
54 # Ensure predictable behavior from utilities with locale-dependent output.
55 LC_ALL=C
56 export LC_ALL
57 LANGUAGE=C
58 export LANGUAGE
59
60 # We cannot yet rely on "unset" to work, but we need these variables
61 # to be unset--not just set to an empty or harmless value--now, to
62 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
63 # also avoids known problems related to "unset" and subshell syntax
64 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
65 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
66 do eval test \${$as_var+y} \
67   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
68 done
69
70 # Ensure that fds 0, 1, and 2 are open.
71 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
72 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
73 if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
74
75 # The user is always right.
76 if ${PATH_SEPARATOR+false} :; then
77   PATH_SEPARATOR=:
78   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
79     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
80       PATH_SEPARATOR=';'
81   }
82 fi
83
84
85 # Find who we are.  Look in the path if we contain no directory separator.
86 as_myself=
87 case $0 in #((
88   *[\\/]* ) as_myself=$0 ;;
89   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
90 for as_dir in $PATH
91 do
92   IFS=$as_save_IFS
93   case $as_dir in #(((
94     '') as_dir=./ ;;
95     */) ;;
96     *) as_dir=$as_dir/ ;;
97   esac
98     test -r "$as_dir$0" && as_myself=$as_dir$0 && break
99   done
100 IFS=$as_save_IFS
101
102      ;;
103 esac
104 # We did not find ourselves, most probably we were run as `sh COMMAND'
105 # in which case we are not to be found in the path.
106 if test "x$as_myself" = x; then
107   as_myself=$0
108 fi
109 if test ! -f "$as_myself"; then
110   printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
111   exit 1
112 fi
113
114
115 # Use a proper internal environment variable to ensure we don't fall
116   # into an infinite loop, continuously re-executing ourselves.
117   if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
118     _as_can_reexec=no; export _as_can_reexec;
119     # We cannot yet assume a decent shell, so we have to provide a
120 # neutralization value for shells without unset; and this also
121 # works around shells that cannot unset nonexistent variables.
122 # Preserve -v and -x to the replacement shell.
123 BASH_ENV=/dev/null
124 ENV=/dev/null
125 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
126 case $- in # ((((
127   *v*x* | *x*v* ) as_opts=-vx ;;
128   *v* ) as_opts=-v ;;
129   *x* ) as_opts=-x ;;
130   * ) as_opts= ;;
131 esac
132 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
133 # Admittedly, this is quite paranoid, since all the known shells bail
134 # out after a failed `exec'.
135 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
136 exit 255
137   fi
138   # We don't want this to propagate to other subprocesses.
139           { _as_can_reexec=; unset _as_can_reexec;}
140 if test "x$CONFIG_SHELL" = x; then
141   as_bourne_compatible="as_nop=:
142 if test \${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
143 then :
144   emulate sh
145   NULLCMD=:
146   # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
147   # is contrary to our usage.  Disable this feature.
148   alias -g '\${1+\"\$@\"}'='\"\$@\"'
149   setopt NO_GLOB_SUBST
150 else \$as_nop
151   case \`(set -o) 2>/dev/null\` in #(
152   *posix*) :
153     set -o posix ;; #(
154   *) :
155      ;;
156 esac
157 fi
158 "
159   as_required="as_fn_return () { (exit \$1); }
160 as_fn_success () { as_fn_return 0; }
161 as_fn_failure () { as_fn_return 1; }
162 as_fn_ret_success () { return 0; }
163 as_fn_ret_failure () { return 1; }
164
165 exitcode=0
166 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
167 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
168 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
169 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
170 if ( set x; as_fn_ret_success y && test x = \"\$1\" )
171 then :
172
173 else \$as_nop
174   exitcode=1; echo positional parameters were not saved.
175 fi
176 test x\$exitcode = x0 || exit 1
177 blah=\$(echo \$(echo blah))
178 test x\"\$blah\" = xblah || exit 1
179 test -x / || exit 1"
180   as_suggested="  as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
181   as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
182   eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
183   test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1"
184   if (eval "$as_required") 2>/dev/null
185 then :
186   as_have_required=yes
187 else $as_nop
188   as_have_required=no
189 fi
190   if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null
191 then :
192
193 else $as_nop
194   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
195 as_found=false
196 for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
197 do
198   IFS=$as_save_IFS
199   case $as_dir in #(((
200     '') as_dir=./ ;;
201     */) ;;
202     *) as_dir=$as_dir/ ;;
203   esac
204   as_found=:
205   case $as_dir in #(
206          /*)
207            for as_base in sh bash ksh sh5; do
208              # Try only shells that exist, to save several forks.
209              as_shell=$as_dir$as_base
210              if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
211                     as_run=a "$as_shell" -c "$as_bourne_compatible""$as_required" 2>/dev/null
212 then :
213   CONFIG_SHELL=$as_shell as_have_required=yes
214                    if as_run=a "$as_shell" -c "$as_bourne_compatible""$as_suggested" 2>/dev/null
215 then :
216   break 2
217 fi
218 fi
219            done;;
220        esac
221   as_found=false
222 done
223 IFS=$as_save_IFS
224 if $as_found
225 then :
226
227 else $as_nop
228   if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
229               as_run=a "$SHELL" -c "$as_bourne_compatible""$as_required" 2>/dev/null
230 then :
231   CONFIG_SHELL=$SHELL as_have_required=yes
232 fi
233 fi
234
235
236       if test "x$CONFIG_SHELL" != x
237 then :
238   export CONFIG_SHELL
239              # We cannot yet assume a decent shell, so we have to provide a
240 # neutralization value for shells without unset; and this also
241 # works around shells that cannot unset nonexistent variables.
242 # Preserve -v and -x to the replacement shell.
243 BASH_ENV=/dev/null
244 ENV=/dev/null
245 (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
246 case $- in # ((((
247   *v*x* | *x*v* ) as_opts=-vx ;;
248   *v* ) as_opts=-v ;;
249   *x* ) as_opts=-x ;;
250   * ) as_opts= ;;
251 esac
252 exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
253 # Admittedly, this is quite paranoid, since all the known shells bail
254 # out after a failed `exec'.
255 printf "%s\n" "$0: could not re-execute with $CONFIG_SHELL" >&2
256 exit 255
257 fi
258
259     if test x$as_have_required = xno
260 then :
261   printf "%s\n" "$0: This script requires a shell more modern than all"
262   printf "%s\n" "$0: the shells that I found on your system."
263   if test ${ZSH_VERSION+y} ; then
264     printf "%s\n" "$0: In particular, zsh $ZSH_VERSION has bugs and should"
265     printf "%s\n" "$0: be upgraded to zsh 4.3.4 or later."
266   else
267     printf "%s\n" "$0: Please tell bug-autoconf@gnu.org about your system,
268 $0: including any error possibly output before this
269 $0: message. Then install a modern shell, or manually run
270 $0: the script under such a shell if you do have one."
271   fi
272   exit 1
273 fi
274 fi
275 fi
276 SHELL=${CONFIG_SHELL-/bin/sh}
277 export SHELL
278 # Unset more variables known to interfere with behavior of common tools.
279 CLICOLOR_FORCE= GREP_OPTIONS=
280 unset CLICOLOR_FORCE GREP_OPTIONS
281
282 ## --------------------- ##
283 ## M4sh Shell Functions. ##
284 ## --------------------- ##
285 # as_fn_unset VAR
286 # ---------------
287 # Portably unset VAR.
288 as_fn_unset ()
289 {
290   { eval $1=; unset $1;}
291 }
292 as_unset=as_fn_unset
293
294
295 # as_fn_set_status STATUS
296 # -----------------------
297 # Set $? to STATUS, without forking.
298 as_fn_set_status ()
299 {
300   return $1
301 } # as_fn_set_status
302
303 # as_fn_exit STATUS
304 # -----------------
305 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
306 as_fn_exit ()
307 {
308   set +e
309   as_fn_set_status $1
310   exit $1
311 } # as_fn_exit
312 # as_fn_nop
313 # ---------
314 # Do nothing but, unlike ":", preserve the value of $?.
315 as_fn_nop ()
316 {
317   return $?
318 }
319 as_nop=as_fn_nop
320
321 # as_fn_mkdir_p
322 # -------------
323 # Create "$as_dir" as a directory, including parents if necessary.
324 as_fn_mkdir_p ()
325 {
326
327   case $as_dir in #(
328   -*) as_dir=./$as_dir;;
329   esac
330   test -d "$as_dir" || eval $as_mkdir_p || {
331     as_dirs=
332     while :; do
333       case $as_dir in #(
334       *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
335       *) as_qdir=$as_dir;;
336       esac
337       as_dirs="'$as_qdir' $as_dirs"
338       as_dir=`$as_dirname -- "$as_dir" ||
339 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
340          X"$as_dir" : 'X\(//\)[^/]' \| \
341          X"$as_dir" : 'X\(//\)$' \| \
342          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
343 printf "%s\n" X"$as_dir" |
344     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
345             s//\1/
346             q
347           }
348           /^X\(\/\/\)[^/].*/{
349             s//\1/
350             q
351           }
352           /^X\(\/\/\)$/{
353             s//\1/
354             q
355           }
356           /^X\(\/\).*/{
357             s//\1/
358             q
359           }
360           s/.*/./; q'`
361       test -d "$as_dir" && break
362     done
363     test -z "$as_dirs" || eval "mkdir $as_dirs"
364   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
365
366
367 } # as_fn_mkdir_p
368
369 # as_fn_executable_p FILE
370 # -----------------------
371 # Test if FILE is an executable regular file.
372 as_fn_executable_p ()
373 {
374   test -f "$1" && test -x "$1"
375 } # as_fn_executable_p
376 # as_fn_append VAR VALUE
377 # ----------------------
378 # Append the text in VALUE to the end of the definition contained in VAR. Take
379 # advantage of any shell optimizations that allow amortized linear growth over
380 # repeated appends, instead of the typical quadratic growth present in naive
381 # implementations.
382 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
383 then :
384   eval 'as_fn_append ()
385   {
386     eval $1+=\$2
387   }'
388 else $as_nop
389   as_fn_append ()
390   {
391     eval $1=\$$1\$2
392   }
393 fi # as_fn_append
394
395 # as_fn_arith ARG...
396 # ------------------
397 # Perform arithmetic evaluation on the ARGs, and store the result in the
398 # global $as_val. Take advantage of shells that can avoid forks. The arguments
399 # must be portable across $(()) and expr.
400 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
401 then :
402   eval 'as_fn_arith ()
403   {
404     as_val=$(( $* ))
405   }'
406 else $as_nop
407   as_fn_arith ()
408   {
409     as_val=`expr "$@" || test $? -eq 1`
410   }
411 fi # as_fn_arith
412
413 # as_fn_nop
414 # ---------
415 # Do nothing but, unlike ":", preserve the value of $?.
416 as_fn_nop ()
417 {
418   return $?
419 }
420 as_nop=as_fn_nop
421
422 # as_fn_error STATUS ERROR [LINENO LOG_FD]
423 # ----------------------------------------
424 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
425 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
426 # script with STATUS, using 1 if that was 0.
427 as_fn_error ()
428 {
429   as_status=$1; test $as_status -eq 0 && as_status=1
430   if test "$4"; then
431     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
432     printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
433   fi
434   printf "%s\n" "$as_me: error: $2" >&2
435   as_fn_exit $as_status
436 } # as_fn_error
437
438 if expr a : '\(a\)' >/dev/null 2>&1 &&
439    test "X`expr 00001 : '.*\(...\)'`" = X001; then
440   as_expr=expr
441 else
442   as_expr=false
443 fi
444
445 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
446   as_basename=basename
447 else
448   as_basename=false
449 fi
450
451 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
452   as_dirname=dirname
453 else
454   as_dirname=false
455 fi
456
457 as_me=`$as_basename -- "$0" ||
458 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
459          X"$0" : 'X\(//\)$' \| \
460          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
461 printf "%s\n" X/"$0" |
462     sed '/^.*\/\([^/][^/]*\)\/*$/{
463             s//\1/
464             q
465           }
466           /^X\/\(\/\/\)$/{
467             s//\1/
468             q
469           }
470           /^X\/\(\/\).*/{
471             s//\1/
472             q
473           }
474           s/.*/./; q'`
475
476 # Avoid depending upon Character Ranges.
477 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
478 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
479 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
480 as_cr_digits='0123456789'
481 as_cr_alnum=$as_cr_Letters$as_cr_digits
482
483
484   as_lineno_1=$LINENO as_lineno_1a=$LINENO
485   as_lineno_2=$LINENO as_lineno_2a=$LINENO
486   eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
487   test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
488   # Blame Lee E. McMahon (1931-1989) for sed's syntax.  :-)
489   sed -n '
490     p
491     /[$]LINENO/=
492   ' <$as_myself |
493     sed '
494       s/[$]LINENO.*/&-/
495       t lineno
496       b
497       :lineno
498       N
499       :loop
500       s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
501       t loop
502       s/-\n.*//
503     ' >$as_me.lineno &&
504   chmod +x "$as_me.lineno" ||
505     { printf "%s\n" "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
506
507   # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
508   # already done that, so ensure we don't try to do so again and fall
509   # in an infinite loop.  This has already happened in practice.
510   _as_can_reexec=no; export _as_can_reexec
511   # Don't try to exec as it changes $[0], causing all sort of problems
512   # (the dirname of $[0] is not the place where we might find the
513   # original and so on.  Autoconf is especially sensitive to this).
514   . "./$as_me.lineno"
515   # Exit status is that of the last command.
516   exit
517 }
518
519
520 # Determine whether it's possible to make 'echo' print without a newline.
521 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
522 # for compatibility with existing Makefiles.
523 ECHO_C= ECHO_N= ECHO_T=
524 case `echo -n x` in #(((((
525 -n*)
526   case `echo 'xy\c'` in
527   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
528   xy)  ECHO_C='\c';;
529   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
530        ECHO_T=' ';;
531   esac;;
532 *)
533   ECHO_N='-n';;
534 esac
535
536 # For backward compatibility with old third-party macros, we provide
537 # the shell variables $as_echo and $as_echo_n.  New code should use
538 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
539 as_echo='printf %s\n'
540 as_echo_n='printf %s'
541
542
543 rm -f conf$$ conf$$.exe conf$$.file
544 if test -d conf$$.dir; then
545   rm -f conf$$.dir/conf$$.file
546 else
547   rm -f conf$$.dir
548   mkdir conf$$.dir 2>/dev/null
549 fi
550 if (echo >conf$$.file) 2>/dev/null; then
551   if ln -s conf$$.file conf$$ 2>/dev/null; then
552     as_ln_s='ln -s'
553     # ... but there are two gotchas:
554     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
555     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
556     # In both cases, we have to default to `cp -pR'.
557     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
558       as_ln_s='cp -pR'
559   elif ln conf$$.file conf$$ 2>/dev/null; then
560     as_ln_s=ln
561   else
562     as_ln_s='cp -pR'
563   fi
564 else
565   as_ln_s='cp -pR'
566 fi
567 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
568 rmdir conf$$.dir 2>/dev/null
569
570 if mkdir -p . 2>/dev/null; then
571   as_mkdir_p='mkdir -p "$as_dir"'
572 else
573   test -d ./-p && rmdir ./-p
574   as_mkdir_p=false
575 fi
576
577 as_test_x='test -x'
578 as_executable_p=as_fn_executable_p
579
580 # Sed expression to map a string onto a valid CPP name.
581 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
582
583 # Sed expression to map a string onto a valid variable name.
584 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
585
586
587 test -n "$DJDIR" || exec 7<&0 </dev/null
588 exec 6>&1
589
590 # Name of the host.
591 # hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
592 # so uname gets run too.
593 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
594
595 #
596 # Initializations.
597 #
598 ac_default_prefix=/usr/local
599 ac_clean_files=
600 ac_config_libobj_dir=.
601 LIBOBJS=
602 cross_compiling=no
603 subdirs=
604 MFLAGS=
605 MAKEFLAGS=
606
607 # Identity of this package.
608 PACKAGE_NAME='sysstat'
609 PACKAGE_TARNAME='sysstat'
610 PACKAGE_VERSION='12.7.1'
611 PACKAGE_STRING='sysstat 12.7.1'
612 PACKAGE_BUGREPORT=''
613 PACKAGE_URL=''
614
615 ac_unique_file="ioconf.h"
616 # Factoring default headers for most tests.
617 ac_includes_default="\
618 #include <stddef.h>
619 #ifdef HAVE_STDIO_H
620 # include <stdio.h>
621 #endif
622 #ifdef HAVE_STDLIB_H
623 # include <stdlib.h>
624 #endif
625 #ifdef HAVE_STRING_H
626 # include <string.h>
627 #endif
628 #ifdef HAVE_INTTYPES_H
629 # include <inttypes.h>
630 #endif
631 #ifdef HAVE_STDINT_H
632 # include <stdint.h>
633 #endif
634 #ifdef HAVE_STRINGS_H
635 # include <strings.h>
636 #endif
637 #ifdef HAVE_SYS_TYPES_H
638 # include <sys/types.h>
639 #endif
640 #ifdef HAVE_SYS_STAT_H
641 # include <sys/stat.h>
642 #endif
643 #ifdef HAVE_UNISTD_H
644 # include <unistd.h>
645 #endif"
646
647 ac_header_c_list=
648 ac_subst_vars='LTLIBOBJS
649 LIBOBJS
650 STRIP
651 WITH_DEBUG
652 DFLAGS
653 INSTALL_DOC
654 COLLECT_ALL
655 REM_CHOWN
656 QUOTE
657 CRON_COUNT
658 CRON_INTERVAL_SEC
659 CRON_INTERVAL
660 SU_C_OWNER
661 CRON_OWNER
662 COPY_ONLY
663 SADC_OPT
664 sadc_options
665 cron_interval
666 USE_CROND
667 cron_owner
668 INSTALL_CRON
669 CLEAN_SA_DIR
670 COMPRESS_MANPG
671 IGNORE_FILE_ATTRIBUTES
672 MAN_GROUP
673 man_group
674 DELAY_RANGE
675 delay_range
676 COMPRESSAFTER
677 compressafter
678 HISTORY
679 history
680 LTO
681 GCC_AR
682 NLS
683 LFINTL
684 SYSCONFIG_FILE
685 conf_file
686 SYSCONFIG_DIR
687 conf_dir
688 SAR_DIR
689 sar_dir
690 SA_DIR
691 sa_dir
692 SA_LIB_DIR
693 sa_lib_dir
694 SYSPARAM
695 LINUX_SCHED
696 SYSMACROS
697 INITD_DIR
698 INIT_DIR
699 RC_DIR
700 rcdir
701 TGLIB32
702 DFSENSORS32
703 LFSENSORS32
704 HAVE_SENSORS32
705 DFSENSORS
706 LFSENSORS
707 HAVE_SENSORS
708 PCP_IMPL
709 DFPCP
710 LFPCP
711 HAVE_PCP
712 SYSTEMD_SLEEP_DIR
713 SYSTEMD_UNIT_DIR
714 SYSTEMCTL
715 PKG_CONFIG
716 PATH_CHKCONFIG
717 PATH_CP
718 INSTALL_BIN
719 INSTALL_DATA
720 ZIP
721 VER_JSON
722 VER_XML
723 MSGMERGE
724 XGETTEXT
725 MSGFMT
726 INSTALL
727 AR
728 CHOWN
729 CHMOD
730 LN_S
731 OBJEXT
732 EXEEXT
733 ac_ct_CC
734 CPPFLAGS
735 LDFLAGS
736 CFLAGS
737 CC
738 target_alias
739 host_alias
740 build_alias
741 LIBS
742 ECHO_T
743 ECHO_N
744 ECHO_C
745 DEFS
746 mandir
747 localedir
748 libdir
749 psdir
750 pdfdir
751 dvidir
752 htmldir
753 infodir
754 docdir
755 oldincludedir
756 includedir
757 runstatedir
758 localstatedir
759 sharedstatedir
760 sysconfdir
761 datadir
762 datarootdir
763 libexecdir
764 sbindir
765 bindir
766 program_transform_name
767 prefix
768 exec_prefix
769 PACKAGE_URL
770 PACKAGE_BUGREPORT
771 PACKAGE_STRING
772 PACKAGE_VERSION
773 PACKAGE_TARNAME
774 PACKAGE_NAME
775 PATH_SEPARATOR
776 SHELL'
777 ac_subst_files=''
778 ac_user_opts='
779 enable_option_checking
780 with_systemdsystemunitdir
781 with_systemdsleepdir
782 enable_pcp
783 enable_sensors
784 enable_largefile
785 enable_nls
786 enable_lto
787 enable_file_attr
788 enable_compress_manpg
789 enable_clean_sa_dir
790 enable_install_cron
791 enable_use_crond
792 enable_collect_all
793 enable_copy_only
794 enable_documentation
795 enable_debuginfo
796 enable_stripping
797 '
798       ac_precious_vars='build_alias
799 host_alias
800 target_alias
801 CC
802 CFLAGS
803 LDFLAGS
804 LIBS
805 CPPFLAGS
806 rcdir
807 sa_lib_dir
808 sa_dir
809 sar_dir
810 conf_dir
811 conf_file
812 history
813 compressafter
814 delay_range
815 man_group
816 cron_owner
817 cron_interval
818 sadc_options'
819
820
821 # Initialize some variables set by options.
822 ac_init_help=
823 ac_init_version=false
824 ac_unrecognized_opts=
825 ac_unrecognized_sep=
826 # The variables have the same names as the options, with
827 # dashes changed to underlines.
828 cache_file=/dev/null
829 exec_prefix=NONE
830 no_create=
831 no_recursion=
832 prefix=NONE
833 program_prefix=NONE
834 program_suffix=NONE
835 program_transform_name=s,x,x,
836 silent=
837 site=
838 srcdir=
839 verbose=
840 x_includes=NONE
841 x_libraries=NONE
842
843 # Installation directory options.
844 # These are left unexpanded so users can "make install exec_prefix=/foo"
845 # and all the variables that are supposed to be based on exec_prefix
846 # by default will actually change.
847 # Use braces instead of parens because sh, perl, etc. also accept them.
848 # (The list follows the same order as the GNU Coding Standards.)
849 bindir='${exec_prefix}/bin'
850 sbindir='${exec_prefix}/sbin'
851 libexecdir='${exec_prefix}/libexec'
852 datarootdir='${prefix}/share'
853 datadir='${datarootdir}'
854 sysconfdir='${prefix}/etc'
855 sharedstatedir='${prefix}/com'
856 localstatedir='${prefix}/var'
857 runstatedir='${localstatedir}/run'
858 includedir='${prefix}/include'
859 oldincludedir='/usr/include'
860 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
861 infodir='${datarootdir}/info'
862 htmldir='${docdir}'
863 dvidir='${docdir}'
864 pdfdir='${docdir}'
865 psdir='${docdir}'
866 libdir='${exec_prefix}/lib'
867 localedir='${datarootdir}/locale'
868 mandir='${datarootdir}/man'
869
870 ac_prev=
871 ac_dashdash=
872 for ac_option
873 do
874   # If the previous option needs an argument, assign it.
875   if test -n "$ac_prev"; then
876     eval $ac_prev=\$ac_option
877     ac_prev=
878     continue
879   fi
880
881   case $ac_option in
882   *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
883   *=)   ac_optarg= ;;
884   *)    ac_optarg=yes ;;
885   esac
886
887   case $ac_dashdash$ac_option in
888   --)
889     ac_dashdash=yes ;;
890
891   -bindir | --bindir | --bindi | --bind | --bin | --bi)
892     ac_prev=bindir ;;
893   -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
894     bindir=$ac_optarg ;;
895
896   -build | --build | --buil | --bui | --bu)
897     ac_prev=build_alias ;;
898   -build=* | --build=* | --buil=* | --bui=* | --bu=*)
899     build_alias=$ac_optarg ;;
900
901   -cache-file | --cache-file | --cache-fil | --cache-fi \
902   | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
903     ac_prev=cache_file ;;
904   -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
905   | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
906     cache_file=$ac_optarg ;;
907
908   --config-cache | -C)
909     cache_file=config.cache ;;
910
911   -datadir | --datadir | --datadi | --datad)
912     ac_prev=datadir ;;
913   -datadir=* | --datadir=* | --datadi=* | --datad=*)
914     datadir=$ac_optarg ;;
915
916   -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
917   | --dataroo | --dataro | --datar)
918     ac_prev=datarootdir ;;
919   -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
920   | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
921     datarootdir=$ac_optarg ;;
922
923   -disable-* | --disable-*)
924     ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
925     # Reject names that are not valid shell variable names.
926     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
927       as_fn_error $? "invalid feature name: \`$ac_useropt'"
928     ac_useropt_orig=$ac_useropt
929     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
930     case $ac_user_opts in
931       *"
932 "enable_$ac_useropt"
933 "*) ;;
934       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
935          ac_unrecognized_sep=', ';;
936     esac
937     eval enable_$ac_useropt=no ;;
938
939   -docdir | --docdir | --docdi | --doc | --do)
940     ac_prev=docdir ;;
941   -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
942     docdir=$ac_optarg ;;
943
944   -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
945     ac_prev=dvidir ;;
946   -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
947     dvidir=$ac_optarg ;;
948
949   -enable-* | --enable-*)
950     ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
951     # Reject names that are not valid shell variable names.
952     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
953       as_fn_error $? "invalid feature name: \`$ac_useropt'"
954     ac_useropt_orig=$ac_useropt
955     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
956     case $ac_user_opts in
957       *"
958 "enable_$ac_useropt"
959 "*) ;;
960       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
961          ac_unrecognized_sep=', ';;
962     esac
963     eval enable_$ac_useropt=\$ac_optarg ;;
964
965   -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
966   | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
967   | --exec | --exe | --ex)
968     ac_prev=exec_prefix ;;
969   -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
970   | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
971   | --exec=* | --exe=* | --ex=*)
972     exec_prefix=$ac_optarg ;;
973
974   -gas | --gas | --ga | --g)
975     # Obsolete; use --with-gas.
976     with_gas=yes ;;
977
978   -help | --help | --hel | --he | -h)
979     ac_init_help=long ;;
980   -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
981     ac_init_help=recursive ;;
982   -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
983     ac_init_help=short ;;
984
985   -host | --host | --hos | --ho)
986     ac_prev=host_alias ;;
987   -host=* | --host=* | --hos=* | --ho=*)
988     host_alias=$ac_optarg ;;
989
990   -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
991     ac_prev=htmldir ;;
992   -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
993   | --ht=*)
994     htmldir=$ac_optarg ;;
995
996   -includedir | --includedir | --includedi | --included | --include \
997   | --includ | --inclu | --incl | --inc)
998     ac_prev=includedir ;;
999   -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1000   | --includ=* | --inclu=* | --incl=* | --inc=*)
1001     includedir=$ac_optarg ;;
1002
1003   -infodir | --infodir | --infodi | --infod | --info | --inf)
1004     ac_prev=infodir ;;
1005   -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1006     infodir=$ac_optarg ;;
1007
1008   -libdir | --libdir | --libdi | --libd)
1009     ac_prev=libdir ;;
1010   -libdir=* | --libdir=* | --libdi=* | --libd=*)
1011     libdir=$ac_optarg ;;
1012
1013   -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1014   | --libexe | --libex | --libe)
1015     ac_prev=libexecdir ;;
1016   -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1017   | --libexe=* | --libex=* | --libe=*)
1018     libexecdir=$ac_optarg ;;
1019
1020   -localedir | --localedir | --localedi | --localed | --locale)
1021     ac_prev=localedir ;;
1022   -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1023     localedir=$ac_optarg ;;
1024
1025   -localstatedir | --localstatedir | --localstatedi | --localstated \
1026   | --localstate | --localstat | --localsta | --localst | --locals)
1027     ac_prev=localstatedir ;;
1028   -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1029   | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1030     localstatedir=$ac_optarg ;;
1031
1032   -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1033     ac_prev=mandir ;;
1034   -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1035     mandir=$ac_optarg ;;
1036
1037   -nfp | --nfp | --nf)
1038     # Obsolete; use --without-fp.
1039     with_fp=no ;;
1040
1041   -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1042   | --no-cr | --no-c | -n)
1043     no_create=yes ;;
1044
1045   -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1046   | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1047     no_recursion=yes ;;
1048
1049   -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1050   | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1051   | --oldin | --oldi | --old | --ol | --o)
1052     ac_prev=oldincludedir ;;
1053   -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1054   | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1055   | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1056     oldincludedir=$ac_optarg ;;
1057
1058   -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1059     ac_prev=prefix ;;
1060   -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1061     prefix=$ac_optarg ;;
1062
1063   -program-prefix | --program-prefix | --program-prefi | --program-pref \
1064   | --program-pre | --program-pr | --program-p)
1065     ac_prev=program_prefix ;;
1066   -program-prefix=* | --program-prefix=* | --program-prefi=* \
1067   | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1068     program_prefix=$ac_optarg ;;
1069
1070   -program-suffix | --program-suffix | --program-suffi | --program-suff \
1071   | --program-suf | --program-su | --program-s)
1072     ac_prev=program_suffix ;;
1073   -program-suffix=* | --program-suffix=* | --program-suffi=* \
1074   | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1075     program_suffix=$ac_optarg ;;
1076
1077   -program-transform-name | --program-transform-name \
1078   | --program-transform-nam | --program-transform-na \
1079   | --program-transform-n | --program-transform- \
1080   | --program-transform | --program-transfor \
1081   | --program-transfo | --program-transf \
1082   | --program-trans | --program-tran \
1083   | --progr-tra | --program-tr | --program-t)
1084     ac_prev=program_transform_name ;;
1085   -program-transform-name=* | --program-transform-name=* \
1086   | --program-transform-nam=* | --program-transform-na=* \
1087   | --program-transform-n=* | --program-transform-=* \
1088   | --program-transform=* | --program-transfor=* \
1089   | --program-transfo=* | --program-transf=* \
1090   | --program-trans=* | --program-tran=* \
1091   | --progr-tra=* | --program-tr=* | --program-t=*)
1092     program_transform_name=$ac_optarg ;;
1093
1094   -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1095     ac_prev=pdfdir ;;
1096   -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1097     pdfdir=$ac_optarg ;;
1098
1099   -psdir | --psdir | --psdi | --psd | --ps)
1100     ac_prev=psdir ;;
1101   -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1102     psdir=$ac_optarg ;;
1103
1104   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1105   | -silent | --silent | --silen | --sile | --sil)
1106     silent=yes ;;
1107
1108   -runstatedir | --runstatedir | --runstatedi | --runstated \
1109   | --runstate | --runstat | --runsta | --runst | --runs \
1110   | --run | --ru | --r)
1111     ac_prev=runstatedir ;;
1112   -runstatedir=* | --runstatedir=* | --runstatedi=* | --runstated=* \
1113   | --runstate=* | --runstat=* | --runsta=* | --runst=* | --runs=* \
1114   | --run=* | --ru=* | --r=*)
1115     runstatedir=$ac_optarg ;;
1116
1117   -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1118     ac_prev=sbindir ;;
1119   -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1120   | --sbi=* | --sb=*)
1121     sbindir=$ac_optarg ;;
1122
1123   -sharedstatedir | --sharedstatedir | --sharedstatedi \
1124   | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1125   | --sharedst | --shareds | --shared | --share | --shar \
1126   | --sha | --sh)
1127     ac_prev=sharedstatedir ;;
1128   -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1129   | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1130   | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1131   | --sha=* | --sh=*)
1132     sharedstatedir=$ac_optarg ;;
1133
1134   -site | --site | --sit)
1135     ac_prev=site ;;
1136   -site=* | --site=* | --sit=*)
1137     site=$ac_optarg ;;
1138
1139   -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1140     ac_prev=srcdir ;;
1141   -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1142     srcdir=$ac_optarg ;;
1143
1144   -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1145   | --syscon | --sysco | --sysc | --sys | --sy)
1146     ac_prev=sysconfdir ;;
1147   -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1148   | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1149     sysconfdir=$ac_optarg ;;
1150
1151   -target | --target | --targe | --targ | --tar | --ta | --t)
1152     ac_prev=target_alias ;;
1153   -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1154     target_alias=$ac_optarg ;;
1155
1156   -v | -verbose | --verbose | --verbos | --verbo | --verb)
1157     verbose=yes ;;
1158
1159   -version | --version | --versio | --versi | --vers | -V)
1160     ac_init_version=: ;;
1161
1162   -with-* | --with-*)
1163     ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1164     # Reject names that are not valid shell variable names.
1165     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1166       as_fn_error $? "invalid package name: \`$ac_useropt'"
1167     ac_useropt_orig=$ac_useropt
1168     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1169     case $ac_user_opts in
1170       *"
1171 "with_$ac_useropt"
1172 "*) ;;
1173       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1174          ac_unrecognized_sep=', ';;
1175     esac
1176     eval with_$ac_useropt=\$ac_optarg ;;
1177
1178   -without-* | --without-*)
1179     ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1180     # Reject names that are not valid shell variable names.
1181     expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1182       as_fn_error $? "invalid package name: \`$ac_useropt'"
1183     ac_useropt_orig=$ac_useropt
1184     ac_useropt=`printf "%s\n" "$ac_useropt" | sed 's/[-+.]/_/g'`
1185     case $ac_user_opts in
1186       *"
1187 "with_$ac_useropt"
1188 "*) ;;
1189       *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1190          ac_unrecognized_sep=', ';;
1191     esac
1192     eval with_$ac_useropt=no ;;
1193
1194   --x)
1195     # Obsolete; use --with-x.
1196     with_x=yes ;;
1197
1198   -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1199   | --x-incl | --x-inc | --x-in | --x-i)
1200     ac_prev=x_includes ;;
1201   -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1202   | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1203     x_includes=$ac_optarg ;;
1204
1205   -x-libraries | --x-libraries | --x-librarie | --x-librari \
1206   | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1207     ac_prev=x_libraries ;;
1208   -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1209   | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1210     x_libraries=$ac_optarg ;;
1211
1212   -*) as_fn_error $? "unrecognized option: \`$ac_option'
1213 Try \`$0 --help' for more information"
1214     ;;
1215
1216   *=*)
1217     ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1218     # Reject names that are not valid shell variable names.
1219     case $ac_envvar in #(
1220       '' | [0-9]* | *[!_$as_cr_alnum]* )
1221       as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1222     esac
1223     eval $ac_envvar=\$ac_optarg
1224     export $ac_envvar ;;
1225
1226   *)
1227     # FIXME: should be removed in autoconf 3.0.
1228     printf "%s\n" "$as_me: WARNING: you should use --build, --host, --target" >&2
1229     expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1230       printf "%s\n" "$as_me: WARNING: invalid host type: $ac_option" >&2
1231     : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1232     ;;
1233
1234   esac
1235 done
1236
1237 if test -n "$ac_prev"; then
1238   ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1239   as_fn_error $? "missing argument to $ac_option"
1240 fi
1241
1242 if test -n "$ac_unrecognized_opts"; then
1243   case $enable_option_checking in
1244     no) ;;
1245     fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1246     *)     printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1247   esac
1248 fi
1249
1250 # Check all directory arguments for consistency.
1251 for ac_var in   exec_prefix prefix bindir sbindir libexecdir datarootdir \
1252                 datadir sysconfdir sharedstatedir localstatedir includedir \
1253                 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1254                 libdir localedir mandir runstatedir
1255 do
1256   eval ac_val=\$$ac_var
1257   # Remove trailing slashes.
1258   case $ac_val in
1259     */ )
1260       ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1261       eval $ac_var=\$ac_val;;
1262   esac
1263   # Be sure to have absolute directory names.
1264   case $ac_val in
1265     [\\/$]* | ?:[\\/]* )  continue;;
1266     NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1267   esac
1268   as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1269 done
1270
1271 # There might be people who depend on the old broken behavior: `$host'
1272 # used to hold the argument of --host etc.
1273 # FIXME: To remove some day.
1274 build=$build_alias
1275 host=$host_alias
1276 target=$target_alias
1277
1278 # FIXME: To remove some day.
1279 if test "x$host_alias" != x; then
1280   if test "x$build_alias" = x; then
1281     cross_compiling=maybe
1282   elif test "x$build_alias" != "x$host_alias"; then
1283     cross_compiling=yes
1284   fi
1285 fi
1286
1287 ac_tool_prefix=
1288 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1289
1290 test "$silent" = yes && exec 6>/dev/null
1291
1292
1293 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1294 ac_ls_di=`ls -di .` &&
1295 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1296   as_fn_error $? "working directory cannot be determined"
1297 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1298   as_fn_error $? "pwd does not report name of working directory"
1299
1300
1301 # Find the source files, if location was not specified.
1302 if test -z "$srcdir"; then
1303   ac_srcdir_defaulted=yes
1304   # Try the directory containing this script, then the parent directory.
1305   ac_confdir=`$as_dirname -- "$as_myself" ||
1306 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1307          X"$as_myself" : 'X\(//\)[^/]' \| \
1308          X"$as_myself" : 'X\(//\)$' \| \
1309          X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1310 printf "%s\n" X"$as_myself" |
1311     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1312             s//\1/
1313             q
1314           }
1315           /^X\(\/\/\)[^/].*/{
1316             s//\1/
1317             q
1318           }
1319           /^X\(\/\/\)$/{
1320             s//\1/
1321             q
1322           }
1323           /^X\(\/\).*/{
1324             s//\1/
1325             q
1326           }
1327           s/.*/./; q'`
1328   srcdir=$ac_confdir
1329   if test ! -r "$srcdir/$ac_unique_file"; then
1330     srcdir=..
1331   fi
1332 else
1333   ac_srcdir_defaulted=no
1334 fi
1335 if test ! -r "$srcdir/$ac_unique_file"; then
1336   test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1337   as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1338 fi
1339 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1340 ac_abs_confdir=`(
1341         cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1342         pwd)`
1343 # When building in place, set srcdir=.
1344 if test "$ac_abs_confdir" = "$ac_pwd"; then
1345   srcdir=.
1346 fi
1347 # Remove unnecessary trailing slashes from srcdir.
1348 # Double slashes in file names in object file debugging info
1349 # mess up M-x gdb in Emacs.
1350 case $srcdir in
1351 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1352 esac
1353 for ac_var in $ac_precious_vars; do
1354   eval ac_env_${ac_var}_set=\${${ac_var}+set}
1355   eval ac_env_${ac_var}_value=\$${ac_var}
1356   eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1357   eval ac_cv_env_${ac_var}_value=\$${ac_var}
1358 done
1359
1360 #
1361 # Report the --help message.
1362 #
1363 if test "$ac_init_help" = "long"; then
1364   # Omit some internal or obsolete options to make the list less imposing.
1365   # This message is too long to be a string in the A/UX 3.1 sh.
1366   cat <<_ACEOF
1367 \`configure' configures sysstat 12.7.1 to adapt to many kinds of systems.
1368
1369 Usage: $0 [OPTION]... [VAR=VALUE]...
1370
1371 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1372 VAR=VALUE.  See below for descriptions of some of the useful variables.
1373
1374 Defaults for the options are specified in brackets.
1375
1376 Configuration:
1377   -h, --help              display this help and exit
1378       --help=short        display options specific to this package
1379       --help=recursive    display the short help of all the included packages
1380   -V, --version           display version information and exit
1381   -q, --quiet, --silent   do not print \`checking ...' messages
1382       --cache-file=FILE   cache test results in FILE [disabled]
1383   -C, --config-cache      alias for \`--cache-file=config.cache'
1384   -n, --no-create         do not create output files
1385       --srcdir=DIR        find the sources in DIR [configure dir or \`..']
1386
1387 Installation directories:
1388   --prefix=PREFIX         install architecture-independent files in PREFIX
1389                           [$ac_default_prefix]
1390   --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
1391                           [PREFIX]
1392
1393 By default, \`make install' will install all the files in
1394 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc.  You can specify
1395 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1396 for instance \`--prefix=\$HOME'.
1397
1398 For better control, use the options below.
1399
1400 Fine tuning of the installation directories:
1401   --bindir=DIR            user executables [EPREFIX/bin]
1402   --sbindir=DIR           system admin executables [EPREFIX/sbin]
1403   --libexecdir=DIR        program executables [EPREFIX/libexec]
1404   --sysconfdir=DIR        read-only single-machine data [PREFIX/etc]
1405   --sharedstatedir=DIR    modifiable architecture-independent data [PREFIX/com]
1406   --localstatedir=DIR     modifiable single-machine data [PREFIX/var]
1407   --runstatedir=DIR       modifiable per-process data [LOCALSTATEDIR/run]
1408   --libdir=DIR            object code libraries [EPREFIX/lib]
1409   --includedir=DIR        C header files [PREFIX/include]
1410   --oldincludedir=DIR     C header files for non-gcc [/usr/include]
1411   --datarootdir=DIR       read-only arch.-independent data root [PREFIX/share]
1412   --datadir=DIR           read-only architecture-independent data [DATAROOTDIR]
1413   --infodir=DIR           info documentation [DATAROOTDIR/info]
1414   --localedir=DIR         locale-dependent data [DATAROOTDIR/locale]
1415   --mandir=DIR            man documentation [DATAROOTDIR/man]
1416   --docdir=DIR            documentation root [DATAROOTDIR/doc/sysstat]
1417   --htmldir=DIR           html documentation [DOCDIR]
1418   --dvidir=DIR            dvi documentation [DOCDIR]
1419   --pdfdir=DIR            pdf documentation [DOCDIR]
1420   --psdir=DIR             ps documentation [DOCDIR]
1421 _ACEOF
1422
1423   cat <<\_ACEOF
1424 _ACEOF
1425 fi
1426
1427 if test -n "$ac_init_help"; then
1428   case $ac_init_help in
1429      short | recursive ) echo "Configuration of sysstat 12.7.1:";;
1430    esac
1431   cat <<\_ACEOF
1432
1433 Optional Features:
1434   --disable-option-checking  ignore unrecognized --enable/--with options
1435   --disable-FEATURE       do not include FEATURE (same as --enable-FEATURE=no)
1436   --enable-FEATURE[=ARG]  include FEATURE [ARG=yes]
1437   --disable-pcp           disable PCP support
1438   --disable-sensors       disable sensors support
1439   --disable-largefile     omit support for large files
1440   --disable-nls           disable National Language Support
1441   --enable-lto            enable Link Time Optimization
1442   --disable-file-attr     do not set attributes on files being installed
1443   --disable-compress-manpg
1444                           do not compress sysstat manual pages
1445   --enable-clean-sa-dir   clean system activity directory
1446   --enable-install-cron   install a crontab to start sar
1447   --enable-use-crond      use standard cron daemon
1448   --enable-collect-all    collect all possible activities
1449   --enable-copy-only      only copy files when installing
1450   --disable-documentation do not install documentation
1451   --enable-debuginfo      enable debug output (--debuginfo option)
1452   --disable-stripping     do not strip object files
1453
1454 Optional Packages:
1455   --with-PACKAGE[=ARG]    use PACKAGE [ARG=yes]
1456   --without-PACKAGE       do not use PACKAGE (same as --with-PACKAGE=no)
1457   --with-systemdsystemunitdir=DIR
1458                           Directory for systemd service files
1459   --with-systemdsleepdir=DIR
1460                           Directory for systemd suspend/resume scripts
1461
1462 Some influential environment variables:
1463   CC          C compiler command
1464   CFLAGS      C compiler flags
1465   LDFLAGS     linker flags, e.g. -L<lib dir> if you have libraries in a
1466               nonstandard directory <lib dir>
1467   LIBS        libraries to pass to the linker, e.g. -l<library>
1468   CPPFLAGS    (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1469               you have headers in a nonstandard directory <include dir>
1470   rcdir       run-commands directory
1471   sa_lib_dir  sadc directory
1472   sa_dir      system activity directory
1473   sar_dir     sar directory
1474   conf_dir    sysstat configuration directory
1475   conf_file   sysstat configuration file
1476   history     number of daily data files to keep (default value is 7)
1477   compressafter
1478               number of days after which data files are compressed (default
1479               value is 10)
1480   delay_range maximum delay (in seconds) to wait before sa2 script generates
1481               its reports
1482   man_group   group for manual pages
1483   cron_owner  crontab owner
1484   cron_interval
1485               crontab interval
1486   sadc_options
1487               options to be passed to sadc
1488
1489 Use these variables to override the choices made by `configure' or to help
1490 it to find libraries and programs with nonstandard names/locations.
1491
1492 Report bugs to the package provider.
1493 _ACEOF
1494 ac_status=$?
1495 fi
1496
1497 if test "$ac_init_help" = "recursive"; then
1498   # If there are subdirs, report their specific --help.
1499   for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1500     test -d "$ac_dir" ||
1501       { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1502       continue
1503     ac_builddir=.
1504
1505 case "$ac_dir" in
1506 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1507 *)
1508   ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
1509   # A ".." for each directory in $ac_dir_suffix.
1510   ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1511   case $ac_top_builddir_sub in
1512   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1513   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1514   esac ;;
1515 esac
1516 ac_abs_top_builddir=$ac_pwd
1517 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1518 # for backward compatibility:
1519 ac_top_builddir=$ac_top_build_prefix
1520
1521 case $srcdir in
1522   .)  # We are building in place.
1523     ac_srcdir=.
1524     ac_top_srcdir=$ac_top_builddir_sub
1525     ac_abs_top_srcdir=$ac_pwd ;;
1526   [\\/]* | ?:[\\/]* )  # Absolute name.
1527     ac_srcdir=$srcdir$ac_dir_suffix;
1528     ac_top_srcdir=$srcdir
1529     ac_abs_top_srcdir=$srcdir ;;
1530   *) # Relative name.
1531     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1532     ac_top_srcdir=$ac_top_build_prefix$srcdir
1533     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1534 esac
1535 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1536
1537     cd "$ac_dir" || { ac_status=$?; continue; }
1538     # Check for configure.gnu first; this name is used for a wrapper for
1539     # Metaconfig's "Configure" on case-insensitive file systems.
1540     if test -f "$ac_srcdir/configure.gnu"; then
1541       echo &&
1542       $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1543     elif test -f "$ac_srcdir/configure"; then
1544       echo &&
1545       $SHELL "$ac_srcdir/configure" --help=recursive
1546     else
1547       printf "%s\n" "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1548     fi || ac_status=$?
1549     cd "$ac_pwd" || { ac_status=$?; break; }
1550   done
1551 fi
1552
1553 test -n "$ac_init_help" && exit $ac_status
1554 if $ac_init_version; then
1555   cat <<\_ACEOF
1556 sysstat configure 12.7.1
1557 generated by GNU Autoconf 2.71
1558
1559 Copyright (C) 2021 Free Software Foundation, Inc.
1560 This configure script is free software; the Free Software Foundation
1561 gives unlimited permission to copy, distribute and modify it.
1562 _ACEOF
1563   exit
1564 fi
1565
1566 ## ------------------------ ##
1567 ## Autoconf initialization. ##
1568 ## ------------------------ ##
1569
1570 # ac_fn_c_try_compile LINENO
1571 # --------------------------
1572 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1573 ac_fn_c_try_compile ()
1574 {
1575   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1576   rm -f conftest.$ac_objext conftest.beam
1577   if { { ac_try="$ac_compile"
1578 case "(($ac_try" in
1579   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1580   *) ac_try_echo=$ac_try;;
1581 esac
1582 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1583 printf "%s\n" "$ac_try_echo"; } >&5
1584   (eval "$ac_compile") 2>conftest.err
1585   ac_status=$?
1586   if test -s conftest.err; then
1587     grep -v '^ *+' conftest.err >conftest.er1
1588     cat conftest.er1 >&5
1589     mv -f conftest.er1 conftest.err
1590   fi
1591   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1592   test $ac_status = 0; } && {
1593          test -z "$ac_c_werror_flag" ||
1594          test ! -s conftest.err
1595        } && test -s conftest.$ac_objext
1596 then :
1597   ac_retval=0
1598 else $as_nop
1599   printf "%s\n" "$as_me: failed program was:" >&5
1600 sed 's/^/| /' conftest.$ac_ext >&5
1601
1602         ac_retval=1
1603 fi
1604   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1605   as_fn_set_status $ac_retval
1606
1607 } # ac_fn_c_try_compile
1608
1609 # ac_fn_c_check_header_compile LINENO HEADER VAR INCLUDES
1610 # -------------------------------------------------------
1611 # Tests whether HEADER exists and can be compiled using the include files in
1612 # INCLUDES, setting the cache variable VAR accordingly.
1613 ac_fn_c_check_header_compile ()
1614 {
1615   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1616   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1617 printf %s "checking for $2... " >&6; }
1618 if eval test \${$3+y}
1619 then :
1620   printf %s "(cached) " >&6
1621 else $as_nop
1622   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1623 /* end confdefs.h.  */
1624 $4
1625 #include <$2>
1626 _ACEOF
1627 if ac_fn_c_try_compile "$LINENO"
1628 then :
1629   eval "$3=yes"
1630 else $as_nop
1631   eval "$3=no"
1632 fi
1633 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1634 fi
1635 eval ac_res=\$$3
1636                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1637 printf "%s\n" "$ac_res" >&6; }
1638   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1639
1640 } # ac_fn_c_check_header_compile
1641
1642 # ac_fn_c_check_type LINENO TYPE VAR INCLUDES
1643 # -------------------------------------------
1644 # Tests whether TYPE exists after having included INCLUDES, setting cache
1645 # variable VAR accordingly.
1646 ac_fn_c_check_type ()
1647 {
1648   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1649   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1650 printf %s "checking for $2... " >&6; }
1651 if eval test \${$3+y}
1652 then :
1653   printf %s "(cached) " >&6
1654 else $as_nop
1655   eval "$3=no"
1656   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1657 /* end confdefs.h.  */
1658 $4
1659 int
1660 main (void)
1661 {
1662 if (sizeof ($2))
1663          return 0;
1664   ;
1665   return 0;
1666 }
1667 _ACEOF
1668 if ac_fn_c_try_compile "$LINENO"
1669 then :
1670   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1671 /* end confdefs.h.  */
1672 $4
1673 int
1674 main (void)
1675 {
1676 if (sizeof (($2)))
1677             return 0;
1678   ;
1679   return 0;
1680 }
1681 _ACEOF
1682 if ac_fn_c_try_compile "$LINENO"
1683 then :
1684
1685 else $as_nop
1686   eval "$3=yes"
1687 fi
1688 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1689 fi
1690 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
1691 fi
1692 eval ac_res=\$$3
1693                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1694 printf "%s\n" "$ac_res" >&6; }
1695   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1696
1697 } # ac_fn_c_check_type
1698
1699 # ac_fn_c_try_link LINENO
1700 # -----------------------
1701 # Try to link conftest.$ac_ext, and return whether this succeeded.
1702 ac_fn_c_try_link ()
1703 {
1704   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1705   rm -f conftest.$ac_objext conftest.beam conftest$ac_exeext
1706   if { { ac_try="$ac_link"
1707 case "(($ac_try" in
1708   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1709   *) ac_try_echo=$ac_try;;
1710 esac
1711 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1712 printf "%s\n" "$ac_try_echo"; } >&5
1713   (eval "$ac_link") 2>conftest.err
1714   ac_status=$?
1715   if test -s conftest.err; then
1716     grep -v '^ *+' conftest.err >conftest.er1
1717     cat conftest.er1 >&5
1718     mv -f conftest.er1 conftest.err
1719   fi
1720   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1721   test $ac_status = 0; } && {
1722          test -z "$ac_c_werror_flag" ||
1723          test ! -s conftest.err
1724        } && test -s conftest$ac_exeext && {
1725          test "$cross_compiling" = yes ||
1726          test -x conftest$ac_exeext
1727        }
1728 then :
1729   ac_retval=0
1730 else $as_nop
1731   printf "%s\n" "$as_me: failed program was:" >&5
1732 sed 's/^/| /' conftest.$ac_ext >&5
1733
1734         ac_retval=1
1735 fi
1736   # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1737   # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1738   # interfere with the next link command; also delete a directory that is
1739   # left behind by Apple's compiler.  We do this before executing the actions.
1740   rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1741   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1742   as_fn_set_status $ac_retval
1743
1744 } # ac_fn_c_try_link
1745
1746 # ac_fn_c_check_func LINENO FUNC VAR
1747 # ----------------------------------
1748 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1749 ac_fn_c_check_func ()
1750 {
1751   as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1752   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1753 printf %s "checking for $2... " >&6; }
1754 if eval test \${$3+y}
1755 then :
1756   printf %s "(cached) " >&6
1757 else $as_nop
1758   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1759 /* end confdefs.h.  */
1760 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1761    For example, HP-UX 11i <limits.h> declares gettimeofday.  */
1762 #define $2 innocuous_$2
1763
1764 /* System header to define __stub macros and hopefully few prototypes,
1765    which can conflict with char $2 (); below.  */
1766
1767 #include <limits.h>
1768 #undef $2
1769
1770 /* Override any GCC internal prototype to avoid an error.
1771    Use char because int might match the return type of a GCC
1772    builtin and then its argument prototype would still apply.  */
1773 #ifdef __cplusplus
1774 extern "C"
1775 #endif
1776 char $2 ();
1777 /* The GNU C library defines this for functions which it implements
1778     to always fail with ENOSYS.  Some functions are actually named
1779     something starting with __ and the normal name is an alias.  */
1780 #if defined __stub_$2 || defined __stub___$2
1781 choke me
1782 #endif
1783
1784 int
1785 main (void)
1786 {
1787 return $2 ();
1788   ;
1789   return 0;
1790 }
1791 _ACEOF
1792 if ac_fn_c_try_link "$LINENO"
1793 then :
1794   eval "$3=yes"
1795 else $as_nop
1796   eval "$3=no"
1797 fi
1798 rm -f core conftest.err conftest.$ac_objext conftest.beam \
1799     conftest$ac_exeext conftest.$ac_ext
1800 fi
1801 eval ac_res=\$$3
1802                { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1803 printf "%s\n" "$ac_res" >&6; }
1804   eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1805
1806 } # ac_fn_c_check_func
1807 ac_configure_args_raw=
1808 for ac_arg
1809 do
1810   case $ac_arg in
1811   *\'*)
1812     ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1813   esac
1814   as_fn_append ac_configure_args_raw " '$ac_arg'"
1815 done
1816
1817 case $ac_configure_args_raw in
1818   *$as_nl*)
1819     ac_safe_unquote= ;;
1820   *)
1821     ac_unsafe_z='|&;<>()$`\\"*?[ ''     ' # This string ends in space, tab.
1822     ac_unsafe_a="$ac_unsafe_z#~"
1823     ac_safe_unquote="s/ '\\([^$ac_unsafe_a][^$ac_unsafe_z]*\\)'/ \\1/g"
1824     ac_configure_args_raw=`      printf "%s\n" "$ac_configure_args_raw" | sed "$ac_safe_unquote"`;;
1825 esac
1826
1827 cat >config.log <<_ACEOF
1828 This file contains any messages produced by compilers while
1829 running configure, to aid debugging if configure makes a mistake.
1830
1831 It was created by sysstat $as_me 12.7.1, which was
1832 generated by GNU Autoconf 2.71.  Invocation command line was
1833
1834   $ $0$ac_configure_args_raw
1835
1836 _ACEOF
1837 exec 5>>config.log
1838 {
1839 cat <<_ASUNAME
1840 ## --------- ##
1841 ## Platform. ##
1842 ## --------- ##
1843
1844 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1845 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1846 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1847 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1848 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1849
1850 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1851 /bin/uname -X     = `(/bin/uname -X) 2>/dev/null     || echo unknown`
1852
1853 /bin/arch              = `(/bin/arch) 2>/dev/null              || echo unknown`
1854 /usr/bin/arch -k       = `(/usr/bin/arch -k) 2>/dev/null       || echo unknown`
1855 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1856 /usr/bin/hostinfo      = `(/usr/bin/hostinfo) 2>/dev/null      || echo unknown`
1857 /bin/machine           = `(/bin/machine) 2>/dev/null           || echo unknown`
1858 /usr/bin/oslevel       = `(/usr/bin/oslevel) 2>/dev/null       || echo unknown`
1859 /bin/universe          = `(/bin/universe) 2>/dev/null          || echo unknown`
1860
1861 _ASUNAME
1862
1863 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1864 for as_dir in $PATH
1865 do
1866   IFS=$as_save_IFS
1867   case $as_dir in #(((
1868     '') as_dir=./ ;;
1869     */) ;;
1870     *) as_dir=$as_dir/ ;;
1871   esac
1872     printf "%s\n" "PATH: $as_dir"
1873   done
1874 IFS=$as_save_IFS
1875
1876 } >&5
1877
1878 cat >&5 <<_ACEOF
1879
1880
1881 ## ----------- ##
1882 ## Core tests. ##
1883 ## ----------- ##
1884
1885 _ACEOF
1886
1887
1888 # Keep a trace of the command line.
1889 # Strip out --no-create and --no-recursion so they do not pile up.
1890 # Strip out --silent because we don't want to record it for future runs.
1891 # Also quote any args containing shell meta-characters.
1892 # Make two passes to allow for proper duplicate-argument suppression.
1893 ac_configure_args=
1894 ac_configure_args0=
1895 ac_configure_args1=
1896 ac_must_keep_next=false
1897 for ac_pass in 1 2
1898 do
1899   for ac_arg
1900   do
1901     case $ac_arg in
1902     -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1903     -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1904     | -silent | --silent | --silen | --sile | --sil)
1905       continue ;;
1906     *\'*)
1907       ac_arg=`printf "%s\n" "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1908     esac
1909     case $ac_pass in
1910     1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
1911     2)
1912       as_fn_append ac_configure_args1 " '$ac_arg'"
1913       if test $ac_must_keep_next = true; then
1914         ac_must_keep_next=false # Got value, back to normal.
1915       else
1916         case $ac_arg in
1917           *=* | --config-cache | -C | -disable-* | --disable-* \
1918           | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1919           | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1920           | -with-* | --with-* | -without-* | --without-* | --x)
1921             case "$ac_configure_args0 " in
1922               "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1923             esac
1924             ;;
1925           -* ) ac_must_keep_next=true ;;
1926         esac
1927       fi
1928       as_fn_append ac_configure_args " '$ac_arg'"
1929       ;;
1930     esac
1931   done
1932 done
1933 { ac_configure_args0=; unset ac_configure_args0;}
1934 { ac_configure_args1=; unset ac_configure_args1;}
1935
1936 # When interrupted or exit'd, cleanup temporary files, and complete
1937 # config.log.  We remove comments because anyway the quotes in there
1938 # would cause problems or look ugly.
1939 # WARNING: Use '\'' to represent an apostrophe within the trap.
1940 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1941 trap 'exit_status=$?
1942   # Sanitize IFS.
1943   IFS=" ""      $as_nl"
1944   # Save into config.log some information that might help in debugging.
1945   {
1946     echo
1947
1948     printf "%s\n" "## ---------------- ##
1949 ## Cache variables. ##
1950 ## ---------------- ##"
1951     echo
1952     # The following way of writing the cache mishandles newlines in values,
1953 (
1954   for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1955     eval ac_val=\$$ac_var
1956     case $ac_val in #(
1957     *${as_nl}*)
1958       case $ac_var in #(
1959       *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
1960 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
1961       esac
1962       case $ac_var in #(
1963       _ | IFS | as_nl) ;; #(
1964       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
1965       *) { eval $ac_var=; unset $ac_var;} ;;
1966       esac ;;
1967     esac
1968   done
1969   (set) 2>&1 |
1970     case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1971     *${as_nl}ac_space=\ *)
1972       sed -n \
1973         "s/'\''/'\''\\\\'\'''\''/g;
1974           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1975       ;; #(
1976     *)
1977       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1978       ;;
1979     esac |
1980     sort
1981 )
1982     echo
1983
1984     printf "%s\n" "## ----------------- ##
1985 ## Output variables. ##
1986 ## ----------------- ##"
1987     echo
1988     for ac_var in $ac_subst_vars
1989     do
1990       eval ac_val=\$$ac_var
1991       case $ac_val in
1992       *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1993       esac
1994       printf "%s\n" "$ac_var='\''$ac_val'\''"
1995     done | sort
1996     echo
1997
1998     if test -n "$ac_subst_files"; then
1999       printf "%s\n" "## ------------------- ##
2000 ## File substitutions. ##
2001 ## ------------------- ##"
2002       echo
2003       for ac_var in $ac_subst_files
2004       do
2005         eval ac_val=\$$ac_var
2006         case $ac_val in
2007         *\'\''*) ac_val=`printf "%s\n" "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2008         esac
2009         printf "%s\n" "$ac_var='\''$ac_val'\''"
2010       done | sort
2011       echo
2012     fi
2013
2014     if test -s confdefs.h; then
2015       printf "%s\n" "## ----------- ##
2016 ## confdefs.h. ##
2017 ## ----------- ##"
2018       echo
2019       cat confdefs.h
2020       echo
2021     fi
2022     test "$ac_signal" != 0 &&
2023       printf "%s\n" "$as_me: caught signal $ac_signal"
2024     printf "%s\n" "$as_me: exit $exit_status"
2025   } >&5
2026   rm -f core *.core core.conftest.* &&
2027     rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2028     exit $exit_status
2029 ' 0
2030 for ac_signal in 1 2 13 15; do
2031   trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2032 done
2033 ac_signal=0
2034
2035 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2036 rm -f -r conftest* confdefs.h
2037
2038 printf "%s\n" "/* confdefs.h */" > confdefs.h
2039
2040 # Predefined preprocessor variables.
2041
2042 printf "%s\n" "#define PACKAGE_NAME \"$PACKAGE_NAME\"" >>confdefs.h
2043
2044 printf "%s\n" "#define PACKAGE_TARNAME \"$PACKAGE_TARNAME\"" >>confdefs.h
2045
2046 printf "%s\n" "#define PACKAGE_VERSION \"$PACKAGE_VERSION\"" >>confdefs.h
2047
2048 printf "%s\n" "#define PACKAGE_STRING \"$PACKAGE_STRING\"" >>confdefs.h
2049
2050 printf "%s\n" "#define PACKAGE_BUGREPORT \"$PACKAGE_BUGREPORT\"" >>confdefs.h
2051
2052 printf "%s\n" "#define PACKAGE_URL \"$PACKAGE_URL\"" >>confdefs.h
2053
2054
2055 # Let the site file select an alternate cache file if it wants to.
2056 # Prefer an explicitly selected file to automatically selected ones.
2057 if test -n "$CONFIG_SITE"; then
2058   ac_site_files="$CONFIG_SITE"
2059 elif test "x$prefix" != xNONE; then
2060   ac_site_files="$prefix/share/config.site $prefix/etc/config.site"
2061 else
2062   ac_site_files="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site"
2063 fi
2064
2065 for ac_site_file in $ac_site_files
2066 do
2067   case $ac_site_file in #(
2068   */*) :
2069      ;; #(
2070   *) :
2071     ac_site_file=./$ac_site_file ;;
2072 esac
2073   if test -f "$ac_site_file" && test -r "$ac_site_file"; then
2074     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2075 printf "%s\n" "$as_me: loading site script $ac_site_file" >&6;}
2076     sed 's/^/| /' "$ac_site_file" >&5
2077     . "$ac_site_file" \
2078       || { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2079 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2080 as_fn_error $? "failed to load site script $ac_site_file
2081 See \`config.log' for more details" "$LINENO" 5; }
2082   fi
2083 done
2084
2085 if test -r "$cache_file"; then
2086   # Some versions of bash will fail to source /dev/null (special files
2087   # actually), so we avoid doing that.  DJGPP emulates it as a regular file.
2088   if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2089     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2090 printf "%s\n" "$as_me: loading cache $cache_file" >&6;}
2091     case $cache_file in
2092       [\\/]* | ?:[\\/]* ) . "$cache_file";;
2093       *)                      . "./$cache_file";;
2094     esac
2095   fi
2096 else
2097   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2098 printf "%s\n" "$as_me: creating cache $cache_file" >&6;}
2099   >$cache_file
2100 fi
2101
2102 # Test code for whether the C compiler supports C89 (global declarations)
2103 ac_c_conftest_c89_globals='
2104 /* Does the compiler advertise C89 conformance?
2105    Do not test the value of __STDC__, because some compilers set it to 0
2106    while being otherwise adequately conformant. */
2107 #if !defined __STDC__
2108 # error "Compiler does not advertise C89 conformance"
2109 #endif
2110
2111 #include <stddef.h>
2112 #include <stdarg.h>
2113 struct stat;
2114 /* Most of the following tests are stolen from RCS 5.7 src/conf.sh.  */
2115 struct buf { int x; };
2116 struct buf * (*rcsopen) (struct buf *, struct stat *, int);
2117 static char *e (p, i)
2118      char **p;
2119      int i;
2120 {
2121   return p[i];
2122 }
2123 static char *f (char * (*g) (char **, int), char **p, ...)
2124 {
2125   char *s;
2126   va_list v;
2127   va_start (v,p);
2128   s = g (p, va_arg (v,int));
2129   va_end (v);
2130   return s;
2131 }
2132
2133 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default.  It has
2134    function prototypes and stuff, but not \xHH hex character constants.
2135    These do not provoke an error unfortunately, instead are silently treated
2136    as an "x".  The following induces an error, until -std is added to get
2137    proper ANSI mode.  Curiously \x00 != x always comes out true, for an
2138    array size at least.  It is necessary to write \x00 == 0 to get something
2139    that is true only with -std.  */
2140 int osf4_cc_array ['\''\x00'\'' == 0 ? 1 : -1];
2141
2142 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
2143    inside strings and character constants.  */
2144 #define FOO(x) '\''x'\''
2145 int xlc6_cc_array[FOO(a) == '\''x'\'' ? 1 : -1];
2146
2147 int test (int i, double x);
2148 struct s1 {int (*f) (int a);};
2149 struct s2 {int (*f) (double a);};
2150 int pairnames (int, char **, int *(*)(struct buf *, struct stat *, int),
2151                int, int);'
2152
2153 # Test code for whether the C compiler supports C89 (body of main).
2154 ac_c_conftest_c89_main='
2155 ok |= (argc == 0 || f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]);
2156 '
2157
2158 # Test code for whether the C compiler supports C99 (global declarations)
2159 ac_c_conftest_c99_globals='
2160 // Does the compiler advertise C99 conformance?
2161 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 199901L
2162 # error "Compiler does not advertise C99 conformance"
2163 #endif
2164
2165 #include <stdbool.h>
2166 extern int puts (const char *);
2167 extern int printf (const char *, ...);
2168 extern int dprintf (int, const char *, ...);
2169 extern void *malloc (size_t);
2170
2171 // Check varargs macros.  These examples are taken from C99 6.10.3.5.
2172 // dprintf is used instead of fprintf to avoid needing to declare
2173 // FILE and stderr.
2174 #define debug(...) dprintf (2, __VA_ARGS__)
2175 #define showlist(...) puts (#__VA_ARGS__)
2176 #define report(test,...) ((test) ? puts (#test) : printf (__VA_ARGS__))
2177 static void
2178 test_varargs_macros (void)
2179 {
2180   int x = 1234;
2181   int y = 5678;
2182   debug ("Flag");
2183   debug ("X = %d\n", x);
2184   showlist (The first, second, and third items.);
2185   report (x>y, "x is %d but y is %d", x, y);
2186 }
2187
2188 // Check long long types.
2189 #define BIG64 18446744073709551615ull
2190 #define BIG32 4294967295ul
2191 #define BIG_OK (BIG64 / BIG32 == 4294967297ull && BIG64 % BIG32 == 0)
2192 #if !BIG_OK
2193   #error "your preprocessor is broken"
2194 #endif
2195 #if BIG_OK
2196 #else
2197   #error "your preprocessor is broken"
2198 #endif
2199 static long long int bignum = -9223372036854775807LL;
2200 static unsigned long long int ubignum = BIG64;
2201
2202 struct incomplete_array
2203 {
2204   int datasize;
2205   double data[];
2206 };
2207
2208 struct named_init {
2209   int number;
2210   const wchar_t *name;
2211   double average;
2212 };
2213
2214 typedef const char *ccp;
2215
2216 static inline int
2217 test_restrict (ccp restrict text)
2218 {
2219   // See if C++-style comments work.
2220   // Iterate through items via the restricted pointer.
2221   // Also check for declarations in for loops.
2222   for (unsigned int i = 0; *(text+i) != '\''\0'\''; ++i)
2223     continue;
2224   return 0;
2225 }
2226
2227 // Check varargs and va_copy.
2228 static bool
2229 test_varargs (const char *format, ...)
2230 {
2231   va_list args;
2232   va_start (args, format);
2233   va_list args_copy;
2234   va_copy (args_copy, args);
2235
2236   const char *str = "";
2237   int number = 0;
2238   float fnumber = 0;
2239
2240   while (*format)
2241     {
2242       switch (*format++)
2243         {
2244         case '\''s'\'': // string
2245           str = va_arg (args_copy, const char *);
2246           break;
2247         case '\''d'\'': // int
2248           number = va_arg (args_copy, int);
2249           break;
2250         case '\''f'\'': // float
2251           fnumber = va_arg (args_copy, double);
2252           break;
2253         default:
2254           break;
2255         }
2256     }
2257   va_end (args_copy);
2258   va_end (args);
2259
2260   return *str && number && fnumber;
2261 }
2262 '
2263
2264 # Test code for whether the C compiler supports C99 (body of main).
2265 ac_c_conftest_c99_main='
2266   // Check bool.
2267   _Bool success = false;
2268   success |= (argc != 0);
2269
2270   // Check restrict.
2271   if (test_restrict ("String literal") == 0)
2272     success = true;
2273   char *restrict newvar = "Another string";
2274
2275   // Check varargs.
2276   success &= test_varargs ("s, d'\'' f .", "string", 65, 34.234);
2277   test_varargs_macros ();
2278
2279   // Check flexible array members.
2280   struct incomplete_array *ia =
2281     malloc (sizeof (struct incomplete_array) + (sizeof (double) * 10));
2282   ia->datasize = 10;
2283   for (int i = 0; i < ia->datasize; ++i)
2284     ia->data[i] = i * 1.234;
2285
2286   // Check named initializers.
2287   struct named_init ni = {
2288     .number = 34,
2289     .name = L"Test wide string",
2290     .average = 543.34343,
2291   };
2292
2293   ni.number = 58;
2294
2295   int dynamic_array[ni.number];
2296   dynamic_array[0] = argv[0][0];
2297   dynamic_array[ni.number - 1] = 543;
2298
2299   // work around unused variable warnings
2300   ok |= (!success || bignum == 0LL || ubignum == 0uLL || newvar[0] == '\''x'\''
2301          || dynamic_array[ni.number - 1] != 543);
2302 '
2303
2304 # Test code for whether the C compiler supports C11 (global declarations)
2305 ac_c_conftest_c11_globals='
2306 // Does the compiler advertise C11 conformance?
2307 #if !defined __STDC_VERSION__ || __STDC_VERSION__ < 201112L
2308 # error "Compiler does not advertise C11 conformance"
2309 #endif
2310
2311 // Check _Alignas.
2312 char _Alignas (double) aligned_as_double;
2313 char _Alignas (0) no_special_alignment;
2314 extern char aligned_as_int;
2315 char _Alignas (0) _Alignas (int) aligned_as_int;
2316
2317 // Check _Alignof.
2318 enum
2319 {
2320   int_alignment = _Alignof (int),
2321   int_array_alignment = _Alignof (int[100]),
2322   char_alignment = _Alignof (char)
2323 };
2324 _Static_assert (0 < -_Alignof (int), "_Alignof is signed");
2325
2326 // Check _Noreturn.
2327 int _Noreturn does_not_return (void) { for (;;) continue; }
2328
2329 // Check _Static_assert.
2330 struct test_static_assert
2331 {
2332   int x;
2333   _Static_assert (sizeof (int) <= sizeof (long int),
2334                   "_Static_assert does not work in struct");
2335   long int y;
2336 };
2337
2338 // Check UTF-8 literals.
2339 #define u8 syntax error!
2340 char const utf8_literal[] = u8"happens to be ASCII" "another string";
2341
2342 // Check duplicate typedefs.
2343 typedef long *long_ptr;
2344 typedef long int *long_ptr;
2345 typedef long_ptr long_ptr;
2346
2347 // Anonymous structures and unions -- taken from C11 6.7.2.1 Example 1.
2348 struct anonymous
2349 {
2350   union {
2351     struct { int i; int j; };
2352     struct { int k; long int l; } w;
2353   };
2354   int m;
2355 } v1;
2356 '
2357
2358 # Test code for whether the C compiler supports C11 (body of main).
2359 ac_c_conftest_c11_main='
2360   _Static_assert ((offsetof (struct anonymous, i)
2361                    == offsetof (struct anonymous, w.k)),
2362                   "Anonymous union alignment botch");
2363   v1.i = 2;
2364   v1.w.k = 5;
2365   ok |= v1.i != 5;
2366 '
2367
2368 # Test code for whether the C compiler supports C11 (complete).
2369 ac_c_conftest_c11_program="${ac_c_conftest_c89_globals}
2370 ${ac_c_conftest_c99_globals}
2371 ${ac_c_conftest_c11_globals}
2372
2373 int
2374 main (int argc, char **argv)
2375 {
2376   int ok = 0;
2377   ${ac_c_conftest_c89_main}
2378   ${ac_c_conftest_c99_main}
2379   ${ac_c_conftest_c11_main}
2380   return ok;
2381 }
2382 "
2383
2384 # Test code for whether the C compiler supports C99 (complete).
2385 ac_c_conftest_c99_program="${ac_c_conftest_c89_globals}
2386 ${ac_c_conftest_c99_globals}
2387
2388 int
2389 main (int argc, char **argv)
2390 {
2391   int ok = 0;
2392   ${ac_c_conftest_c89_main}
2393   ${ac_c_conftest_c99_main}
2394   return ok;
2395 }
2396 "
2397
2398 # Test code for whether the C compiler supports C89 (complete).
2399 ac_c_conftest_c89_program="${ac_c_conftest_c89_globals}
2400
2401 int
2402 main (int argc, char **argv)
2403 {
2404   int ok = 0;
2405   ${ac_c_conftest_c89_main}
2406   return ok;
2407 }
2408 "
2409
2410 as_fn_append ac_header_c_list " stdio.h stdio_h HAVE_STDIO_H"
2411 as_fn_append ac_header_c_list " stdlib.h stdlib_h HAVE_STDLIB_H"
2412 as_fn_append ac_header_c_list " string.h string_h HAVE_STRING_H"
2413 as_fn_append ac_header_c_list " inttypes.h inttypes_h HAVE_INTTYPES_H"
2414 as_fn_append ac_header_c_list " stdint.h stdint_h HAVE_STDINT_H"
2415 as_fn_append ac_header_c_list " strings.h strings_h HAVE_STRINGS_H"
2416 as_fn_append ac_header_c_list " sys/stat.h sys_stat_h HAVE_SYS_STAT_H"
2417 as_fn_append ac_header_c_list " sys/types.h sys_types_h HAVE_SYS_TYPES_H"
2418 as_fn_append ac_header_c_list " unistd.h unistd_h HAVE_UNISTD_H"
2419 as_fn_append ac_header_c_list " wchar.h wchar_h HAVE_WCHAR_H"
2420 as_fn_append ac_header_c_list " minix/config.h minix_config_h HAVE_MINIX_CONFIG_H"
2421 # Check that the precious variables saved in the cache have kept the same
2422 # value.
2423 ac_cache_corrupted=false
2424 for ac_var in $ac_precious_vars; do
2425   eval ac_old_set=\$ac_cv_env_${ac_var}_set
2426   eval ac_new_set=\$ac_env_${ac_var}_set
2427   eval ac_old_val=\$ac_cv_env_${ac_var}_value
2428   eval ac_new_val=\$ac_env_${ac_var}_value
2429   case $ac_old_set,$ac_new_set in
2430     set,)
2431       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2432 printf "%s\n" "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2433       ac_cache_corrupted=: ;;
2434     ,set)
2435       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2436 printf "%s\n" "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2437       ac_cache_corrupted=: ;;
2438     ,);;
2439     *)
2440       if test "x$ac_old_val" != "x$ac_new_val"; then
2441         # differences in whitespace do not lead to failure.
2442         ac_old_val_w=`echo x $ac_old_val`
2443         ac_new_val_w=`echo x $ac_new_val`
2444         if test "$ac_old_val_w" != "$ac_new_val_w"; then
2445           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2446 printf "%s\n" "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2447           ac_cache_corrupted=:
2448         else
2449           { printf "%s\n" "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2450 printf "%s\n" "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2451           eval $ac_var=\$ac_old_val
2452         fi
2453         { printf "%s\n" "$as_me:${as_lineno-$LINENO}:   former value:  \`$ac_old_val'" >&5
2454 printf "%s\n" "$as_me:   former value:  \`$ac_old_val'" >&2;}
2455         { printf "%s\n" "$as_me:${as_lineno-$LINENO}:   current value: \`$ac_new_val'" >&5
2456 printf "%s\n" "$as_me:   current value: \`$ac_new_val'" >&2;}
2457       fi;;
2458   esac
2459   # Pass precious variables to config.status.
2460   if test "$ac_new_set" = set; then
2461     case $ac_new_val in
2462     *\'*) ac_arg=$ac_var=`printf "%s\n" "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2463     *) ac_arg=$ac_var=$ac_new_val ;;
2464     esac
2465     case " $ac_configure_args " in
2466       *" '$ac_arg' "*) ;; # Avoid dups.  Use of quotes ensures accuracy.
2467       *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2468     esac
2469   fi
2470 done
2471 if $ac_cache_corrupted; then
2472   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2473 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2474   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2475 printf "%s\n" "$as_me: error: changes in the environment can compromise the build" >&2;}
2476   as_fn_error $? "run \`${MAKE-make} distclean' and/or \`rm $cache_file'
2477             and start over" "$LINENO" 5
2478 fi
2479 ## -------------------- ##
2480 ## Main body of script. ##
2481 ## -------------------- ##
2482
2483 ac_ext=c
2484 ac_cpp='$CPP $CPPFLAGS'
2485 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2486 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2487 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2488
2489
2490
2491 # Ensure that a recent enough version of Autoconf is being used
2492
2493
2494 # Check whether the configure script is in the right dir
2495
2496
2497 # Check programs
2498 echo .
2499 echo Check programs:
2500 echo .
2501
2502
2503
2504
2505
2506
2507
2508
2509
2510
2511 ac_ext=c
2512 ac_cpp='$CPP $CPPFLAGS'
2513 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2514 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2515 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2516 if test -n "$ac_tool_prefix"; then
2517   # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
2518 set dummy ${ac_tool_prefix}gcc; ac_word=$2
2519 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2520 printf %s "checking for $ac_word... " >&6; }
2521 if test ${ac_cv_prog_CC+y}
2522 then :
2523   printf %s "(cached) " >&6
2524 else $as_nop
2525   if test -n "$CC"; then
2526   ac_cv_prog_CC="$CC" # Let the user override the test.
2527 else
2528 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2529 for as_dir in $PATH
2530 do
2531   IFS=$as_save_IFS
2532   case $as_dir in #(((
2533     '') as_dir=./ ;;
2534     */) ;;
2535     *) as_dir=$as_dir/ ;;
2536   esac
2537     for ac_exec_ext in '' $ac_executable_extensions; do
2538   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2539     ac_cv_prog_CC="${ac_tool_prefix}gcc"
2540     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2541     break 2
2542   fi
2543 done
2544   done
2545 IFS=$as_save_IFS
2546
2547 fi
2548 fi
2549 CC=$ac_cv_prog_CC
2550 if test -n "$CC"; then
2551   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2552 printf "%s\n" "$CC" >&6; }
2553 else
2554   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2555 printf "%s\n" "no" >&6; }
2556 fi
2557
2558
2559 fi
2560 if test -z "$ac_cv_prog_CC"; then
2561   ac_ct_CC=$CC
2562   # Extract the first word of "gcc", so it can be a program name with args.
2563 set dummy gcc; ac_word=$2
2564 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2565 printf %s "checking for $ac_word... " >&6; }
2566 if test ${ac_cv_prog_ac_ct_CC+y}
2567 then :
2568   printf %s "(cached) " >&6
2569 else $as_nop
2570   if test -n "$ac_ct_CC"; then
2571   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2572 else
2573 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2574 for as_dir in $PATH
2575 do
2576   IFS=$as_save_IFS
2577   case $as_dir in #(((
2578     '') as_dir=./ ;;
2579     */) ;;
2580     *) as_dir=$as_dir/ ;;
2581   esac
2582     for ac_exec_ext in '' $ac_executable_extensions; do
2583   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2584     ac_cv_prog_ac_ct_CC="gcc"
2585     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2586     break 2
2587   fi
2588 done
2589   done
2590 IFS=$as_save_IFS
2591
2592 fi
2593 fi
2594 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2595 if test -n "$ac_ct_CC"; then
2596   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2597 printf "%s\n" "$ac_ct_CC" >&6; }
2598 else
2599   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2600 printf "%s\n" "no" >&6; }
2601 fi
2602
2603   if test "x$ac_ct_CC" = x; then
2604     CC=""
2605   else
2606     case $cross_compiling:$ac_tool_warned in
2607 yes:)
2608 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2609 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2610 ac_tool_warned=yes ;;
2611 esac
2612     CC=$ac_ct_CC
2613   fi
2614 else
2615   CC="$ac_cv_prog_CC"
2616 fi
2617
2618 if test -z "$CC"; then
2619           if test -n "$ac_tool_prefix"; then
2620     # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
2621 set dummy ${ac_tool_prefix}cc; ac_word=$2
2622 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2623 printf %s "checking for $ac_word... " >&6; }
2624 if test ${ac_cv_prog_CC+y}
2625 then :
2626   printf %s "(cached) " >&6
2627 else $as_nop
2628   if test -n "$CC"; then
2629   ac_cv_prog_CC="$CC" # Let the user override the test.
2630 else
2631 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2632 for as_dir in $PATH
2633 do
2634   IFS=$as_save_IFS
2635   case $as_dir in #(((
2636     '') as_dir=./ ;;
2637     */) ;;
2638     *) as_dir=$as_dir/ ;;
2639   esac
2640     for ac_exec_ext in '' $ac_executable_extensions; do
2641   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2642     ac_cv_prog_CC="${ac_tool_prefix}cc"
2643     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2644     break 2
2645   fi
2646 done
2647   done
2648 IFS=$as_save_IFS
2649
2650 fi
2651 fi
2652 CC=$ac_cv_prog_CC
2653 if test -n "$CC"; then
2654   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2655 printf "%s\n" "$CC" >&6; }
2656 else
2657   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2658 printf "%s\n" "no" >&6; }
2659 fi
2660
2661
2662   fi
2663 fi
2664 if test -z "$CC"; then
2665   # Extract the first word of "cc", so it can be a program name with args.
2666 set dummy cc; ac_word=$2
2667 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2668 printf %s "checking for $ac_word... " >&6; }
2669 if test ${ac_cv_prog_CC+y}
2670 then :
2671   printf %s "(cached) " >&6
2672 else $as_nop
2673   if test -n "$CC"; then
2674   ac_cv_prog_CC="$CC" # Let the user override the test.
2675 else
2676   ac_prog_rejected=no
2677 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2678 for as_dir in $PATH
2679 do
2680   IFS=$as_save_IFS
2681   case $as_dir in #(((
2682     '') as_dir=./ ;;
2683     */) ;;
2684     *) as_dir=$as_dir/ ;;
2685   esac
2686     for ac_exec_ext in '' $ac_executable_extensions; do
2687   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2688     if test "$as_dir$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
2689        ac_prog_rejected=yes
2690        continue
2691      fi
2692     ac_cv_prog_CC="cc"
2693     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2694     break 2
2695   fi
2696 done
2697   done
2698 IFS=$as_save_IFS
2699
2700 if test $ac_prog_rejected = yes; then
2701   # We found a bogon in the path, so make sure we never use it.
2702   set dummy $ac_cv_prog_CC
2703   shift
2704   if test $# != 0; then
2705     # We chose a different compiler from the bogus one.
2706     # However, it has the same basename, so the bogon will be chosen
2707     # first if we set CC to just the basename; use the full file name.
2708     shift
2709     ac_cv_prog_CC="$as_dir$ac_word${1+' '}$@"
2710   fi
2711 fi
2712 fi
2713 fi
2714 CC=$ac_cv_prog_CC
2715 if test -n "$CC"; then
2716   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2717 printf "%s\n" "$CC" >&6; }
2718 else
2719   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2720 printf "%s\n" "no" >&6; }
2721 fi
2722
2723
2724 fi
2725 if test -z "$CC"; then
2726   if test -n "$ac_tool_prefix"; then
2727   for ac_prog in cl.exe
2728   do
2729     # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2730 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2731 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2732 printf %s "checking for $ac_word... " >&6; }
2733 if test ${ac_cv_prog_CC+y}
2734 then :
2735   printf %s "(cached) " >&6
2736 else $as_nop
2737   if test -n "$CC"; then
2738   ac_cv_prog_CC="$CC" # Let the user override the test.
2739 else
2740 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2741 for as_dir in $PATH
2742 do
2743   IFS=$as_save_IFS
2744   case $as_dir in #(((
2745     '') as_dir=./ ;;
2746     */) ;;
2747     *) as_dir=$as_dir/ ;;
2748   esac
2749     for ac_exec_ext in '' $ac_executable_extensions; do
2750   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2751     ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
2752     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2753     break 2
2754   fi
2755 done
2756   done
2757 IFS=$as_save_IFS
2758
2759 fi
2760 fi
2761 CC=$ac_cv_prog_CC
2762 if test -n "$CC"; then
2763   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2764 printf "%s\n" "$CC" >&6; }
2765 else
2766   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2767 printf "%s\n" "no" >&6; }
2768 fi
2769
2770
2771     test -n "$CC" && break
2772   done
2773 fi
2774 if test -z "$CC"; then
2775   ac_ct_CC=$CC
2776   for ac_prog in cl.exe
2777 do
2778   # Extract the first word of "$ac_prog", so it can be a program name with args.
2779 set dummy $ac_prog; ac_word=$2
2780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2781 printf %s "checking for $ac_word... " >&6; }
2782 if test ${ac_cv_prog_ac_ct_CC+y}
2783 then :
2784   printf %s "(cached) " >&6
2785 else $as_nop
2786   if test -n "$ac_ct_CC"; then
2787   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2788 else
2789 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2790 for as_dir in $PATH
2791 do
2792   IFS=$as_save_IFS
2793   case $as_dir in #(((
2794     '') as_dir=./ ;;
2795     */) ;;
2796     *) as_dir=$as_dir/ ;;
2797   esac
2798     for ac_exec_ext in '' $ac_executable_extensions; do
2799   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2800     ac_cv_prog_ac_ct_CC="$ac_prog"
2801     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2802     break 2
2803   fi
2804 done
2805   done
2806 IFS=$as_save_IFS
2807
2808 fi
2809 fi
2810 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2811 if test -n "$ac_ct_CC"; then
2812   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2813 printf "%s\n" "$ac_ct_CC" >&6; }
2814 else
2815   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2816 printf "%s\n" "no" >&6; }
2817 fi
2818
2819
2820   test -n "$ac_ct_CC" && break
2821 done
2822
2823   if test "x$ac_ct_CC" = x; then
2824     CC=""
2825   else
2826     case $cross_compiling:$ac_tool_warned in
2827 yes:)
2828 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2829 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2830 ac_tool_warned=yes ;;
2831 esac
2832     CC=$ac_ct_CC
2833   fi
2834 fi
2835
2836 fi
2837 if test -z "$CC"; then
2838   if test -n "$ac_tool_prefix"; then
2839   # Extract the first word of "${ac_tool_prefix}clang", so it can be a program name with args.
2840 set dummy ${ac_tool_prefix}clang; ac_word=$2
2841 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2842 printf %s "checking for $ac_word... " >&6; }
2843 if test ${ac_cv_prog_CC+y}
2844 then :
2845   printf %s "(cached) " >&6
2846 else $as_nop
2847   if test -n "$CC"; then
2848   ac_cv_prog_CC="$CC" # Let the user override the test.
2849 else
2850 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2851 for as_dir in $PATH
2852 do
2853   IFS=$as_save_IFS
2854   case $as_dir in #(((
2855     '') as_dir=./ ;;
2856     */) ;;
2857     *) as_dir=$as_dir/ ;;
2858   esac
2859     for ac_exec_ext in '' $ac_executable_extensions; do
2860   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2861     ac_cv_prog_CC="${ac_tool_prefix}clang"
2862     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2863     break 2
2864   fi
2865 done
2866   done
2867 IFS=$as_save_IFS
2868
2869 fi
2870 fi
2871 CC=$ac_cv_prog_CC
2872 if test -n "$CC"; then
2873   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
2874 printf "%s\n" "$CC" >&6; }
2875 else
2876   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2877 printf "%s\n" "no" >&6; }
2878 fi
2879
2880
2881 fi
2882 if test -z "$ac_cv_prog_CC"; then
2883   ac_ct_CC=$CC
2884   # Extract the first word of "clang", so it can be a program name with args.
2885 set dummy clang; ac_word=$2
2886 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2887 printf %s "checking for $ac_word... " >&6; }
2888 if test ${ac_cv_prog_ac_ct_CC+y}
2889 then :
2890   printf %s "(cached) " >&6
2891 else $as_nop
2892   if test -n "$ac_ct_CC"; then
2893   ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
2894 else
2895 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2896 for as_dir in $PATH
2897 do
2898   IFS=$as_save_IFS
2899   case $as_dir in #(((
2900     '') as_dir=./ ;;
2901     */) ;;
2902     *) as_dir=$as_dir/ ;;
2903   esac
2904     for ac_exec_ext in '' $ac_executable_extensions; do
2905   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
2906     ac_cv_prog_ac_ct_CC="clang"
2907     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
2908     break 2
2909   fi
2910 done
2911   done
2912 IFS=$as_save_IFS
2913
2914 fi
2915 fi
2916 ac_ct_CC=$ac_cv_prog_ac_ct_CC
2917 if test -n "$ac_ct_CC"; then
2918   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
2919 printf "%s\n" "$ac_ct_CC" >&6; }
2920 else
2921   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
2922 printf "%s\n" "no" >&6; }
2923 fi
2924
2925   if test "x$ac_ct_CC" = x; then
2926     CC=""
2927   else
2928     case $cross_compiling:$ac_tool_warned in
2929 yes:)
2930 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2931 printf "%s\n" "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2932 ac_tool_warned=yes ;;
2933 esac
2934     CC=$ac_ct_CC
2935   fi
2936 else
2937   CC="$ac_cv_prog_CC"
2938 fi
2939
2940 fi
2941
2942
2943 test -z "$CC" && { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2944 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
2945 as_fn_error $? "no acceptable C compiler found in \$PATH
2946 See \`config.log' for more details" "$LINENO" 5; }
2947
2948 # Provide some information about the compiler.
2949 printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
2950 set X $ac_compile
2951 ac_compiler=$2
2952 for ac_option in --version -v -V -qversion -version; do
2953   { { ac_try="$ac_compiler $ac_option >&5"
2954 case "(($ac_try" in
2955   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2956   *) ac_try_echo=$ac_try;;
2957 esac
2958 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
2959 printf "%s\n" "$ac_try_echo"; } >&5
2960   (eval "$ac_compiler $ac_option >&5") 2>conftest.err
2961   ac_status=$?
2962   if test -s conftest.err; then
2963     sed '10a\
2964 ... rest of stderr output deleted ...
2965          10q' conftest.err >conftest.er1
2966     cat conftest.er1 >&5
2967   fi
2968   rm -f conftest.er1 conftest.err
2969   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
2970   test $ac_status = 0; }
2971 done
2972
2973 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2974 /* end confdefs.h.  */
2975
2976 int
2977 main (void)
2978 {
2979
2980   ;
2981   return 0;
2982 }
2983 _ACEOF
2984 ac_clean_files_save=$ac_clean_files
2985 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
2986 # Try to create an executable without -o first, disregard a.out.
2987 # It will help us diagnose broken compilers, and finding out an intuition
2988 # of exeext.
2989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the C compiler works" >&5
2990 printf %s "checking whether the C compiler works... " >&6; }
2991 ac_link_default=`printf "%s\n" "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2992
2993 # The possible output files:
2994 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
2995
2996 ac_rmfiles=
2997 for ac_file in $ac_files
2998 do
2999   case $ac_file in
3000     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3001     * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3002   esac
3003 done
3004 rm -f $ac_rmfiles
3005
3006 if { { ac_try="$ac_link_default"
3007 case "(($ac_try" in
3008   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3009   *) ac_try_echo=$ac_try;;
3010 esac
3011 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3012 printf "%s\n" "$ac_try_echo"; } >&5
3013   (eval "$ac_link_default") 2>&5
3014   ac_status=$?
3015   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3016   test $ac_status = 0; }
3017 then :
3018   # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3019 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3020 # in a Makefile.  We should not override ac_cv_exeext if it was cached,
3021 # so that the user can short-circuit this test for compilers unknown to
3022 # Autoconf.
3023 for ac_file in $ac_files ''
3024 do
3025   test -f "$ac_file" || continue
3026   case $ac_file in
3027     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3028         ;;
3029     [ab].out )
3030         # We found the default executable, but exeext='' is most
3031         # certainly right.
3032         break;;
3033     *.* )
3034         if test ${ac_cv_exeext+y} && test "$ac_cv_exeext" != no;
3035         then :; else
3036            ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3037         fi
3038         # We set ac_cv_exeext here because the later test for it is not
3039         # safe: cross compilers may not add the suffix if given an `-o'
3040         # argument, so we may need to know it at that point already.
3041         # Even if this section looks crufty: it has the advantage of
3042         # actually working.
3043         break;;
3044     * )
3045         break;;
3046   esac
3047 done
3048 test "$ac_cv_exeext" = no && ac_cv_exeext=
3049
3050 else $as_nop
3051   ac_file=''
3052 fi
3053 if test -z "$ac_file"
3054 then :
3055   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3056 printf "%s\n" "no" >&6; }
3057 printf "%s\n" "$as_me: failed program was:" >&5
3058 sed 's/^/| /' conftest.$ac_ext >&5
3059
3060 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3061 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3062 as_fn_error 77 "C compiler cannot create executables
3063 See \`config.log' for more details" "$LINENO" 5; }
3064 else $as_nop
3065   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3066 printf "%s\n" "yes" >&6; }
3067 fi
3068 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for C compiler default output file name" >&5
3069 printf %s "checking for C compiler default output file name... " >&6; }
3070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3071 printf "%s\n" "$ac_file" >&6; }
3072 ac_exeext=$ac_cv_exeext
3073
3074 rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3075 ac_clean_files=$ac_clean_files_save
3076 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3077 printf %s "checking for suffix of executables... " >&6; }
3078 if { { ac_try="$ac_link"
3079 case "(($ac_try" in
3080   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3081   *) ac_try_echo=$ac_try;;
3082 esac
3083 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3084 printf "%s\n" "$ac_try_echo"; } >&5
3085   (eval "$ac_link") 2>&5
3086   ac_status=$?
3087   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3088   test $ac_status = 0; }
3089 then :
3090   # If both `conftest.exe' and `conftest' are `present' (well, observable)
3091 # catch `conftest.exe'.  For instance with Cygwin, `ls conftest' will
3092 # work properly (i.e., refer to `conftest.exe'), while it won't with
3093 # `rm'.
3094 for ac_file in conftest.exe conftest conftest.*; do
3095   test -f "$ac_file" || continue
3096   case $ac_file in
3097     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3098     *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3099           break;;
3100     * ) break;;
3101   esac
3102 done
3103 else $as_nop
3104   { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3105 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3106 as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3107 See \`config.log' for more details" "$LINENO" 5; }
3108 fi
3109 rm -f conftest conftest$ac_cv_exeext
3110 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3111 printf "%s\n" "$ac_cv_exeext" >&6; }
3112
3113 rm -f conftest.$ac_ext
3114 EXEEXT=$ac_cv_exeext
3115 ac_exeext=$EXEEXT
3116 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3117 /* end confdefs.h.  */
3118 #include <stdio.h>
3119 int
3120 main (void)
3121 {
3122 FILE *f = fopen ("conftest.out", "w");
3123  return ferror (f) || fclose (f) != 0;
3124
3125   ;
3126   return 0;
3127 }
3128 _ACEOF
3129 ac_clean_files="$ac_clean_files conftest.out"
3130 # Check that the compiler produces executables we can run.  If not, either
3131 # the compiler is broken, or we cross compile.
3132 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3133 printf %s "checking whether we are cross compiling... " >&6; }
3134 if test "$cross_compiling" != yes; then
3135   { { ac_try="$ac_link"
3136 case "(($ac_try" in
3137   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3138   *) ac_try_echo=$ac_try;;
3139 esac
3140 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3141 printf "%s\n" "$ac_try_echo"; } >&5
3142   (eval "$ac_link") 2>&5
3143   ac_status=$?
3144   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3145   test $ac_status = 0; }
3146   if { ac_try='./conftest$ac_cv_exeext'
3147   { { case "(($ac_try" in
3148   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3149   *) ac_try_echo=$ac_try;;
3150 esac
3151 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3152 printf "%s\n" "$ac_try_echo"; } >&5
3153   (eval "$ac_try") 2>&5
3154   ac_status=$?
3155   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3156   test $ac_status = 0; }; }; then
3157     cross_compiling=no
3158   else
3159     if test "$cross_compiling" = maybe; then
3160         cross_compiling=yes
3161     else
3162         { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3163 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3164 as_fn_error 77 "cannot run C compiled programs.
3165 If you meant to cross compile, use \`--host'.
3166 See \`config.log' for more details" "$LINENO" 5; }
3167     fi
3168   fi
3169 fi
3170 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3171 printf "%s\n" "$cross_compiling" >&6; }
3172
3173 rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3174 ac_clean_files=$ac_clean_files_save
3175 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3176 printf %s "checking for suffix of object files... " >&6; }
3177 if test ${ac_cv_objext+y}
3178 then :
3179   printf %s "(cached) " >&6
3180 else $as_nop
3181   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3182 /* end confdefs.h.  */
3183
3184 int
3185 main (void)
3186 {
3187
3188   ;
3189   return 0;
3190 }
3191 _ACEOF
3192 rm -f conftest.o conftest.obj
3193 if { { ac_try="$ac_compile"
3194 case "(($ac_try" in
3195   *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3196   *) ac_try_echo=$ac_try;;
3197 esac
3198 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3199 printf "%s\n" "$ac_try_echo"; } >&5
3200   (eval "$ac_compile") 2>&5
3201   ac_status=$?
3202   printf "%s\n" "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3203   test $ac_status = 0; }
3204 then :
3205   for ac_file in conftest.o conftest.obj conftest.*; do
3206   test -f "$ac_file" || continue;
3207   case $ac_file in
3208     *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3209     *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3210        break;;
3211   esac
3212 done
3213 else $as_nop
3214   printf "%s\n" "$as_me: failed program was:" >&5
3215 sed 's/^/| /' conftest.$ac_ext >&5
3216
3217 { { printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3218 printf "%s\n" "$as_me: error: in \`$ac_pwd':" >&2;}
3219 as_fn_error $? "cannot compute suffix of object files: cannot compile
3220 See \`config.log' for more details" "$LINENO" 5; }
3221 fi
3222 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3223 fi
3224 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3225 printf "%s\n" "$ac_cv_objext" >&6; }
3226 OBJEXT=$ac_cv_objext
3227 ac_objext=$OBJEXT
3228 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether the compiler supports GNU C" >&5
3229 printf %s "checking whether the compiler supports GNU C... " >&6; }
3230 if test ${ac_cv_c_compiler_gnu+y}
3231 then :
3232   printf %s "(cached) " >&6
3233 else $as_nop
3234   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3235 /* end confdefs.h.  */
3236
3237 int
3238 main (void)
3239 {
3240 #ifndef __GNUC__
3241        choke me
3242 #endif
3243
3244   ;
3245   return 0;
3246 }
3247 _ACEOF
3248 if ac_fn_c_try_compile "$LINENO"
3249 then :
3250   ac_compiler_gnu=yes
3251 else $as_nop
3252   ac_compiler_gnu=no
3253 fi
3254 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3255 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3256
3257 fi
3258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3259 printf "%s\n" "$ac_cv_c_compiler_gnu" >&6; }
3260 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3261
3262 if test $ac_compiler_gnu = yes; then
3263   GCC=yes
3264 else
3265   GCC=
3266 fi
3267 ac_test_CFLAGS=${CFLAGS+y}
3268 ac_save_CFLAGS=$CFLAGS
3269 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3270 printf %s "checking whether $CC accepts -g... " >&6; }
3271 if test ${ac_cv_prog_cc_g+y}
3272 then :
3273   printf %s "(cached) " >&6
3274 else $as_nop
3275   ac_save_c_werror_flag=$ac_c_werror_flag
3276    ac_c_werror_flag=yes
3277    ac_cv_prog_cc_g=no
3278    CFLAGS="-g"
3279    cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3280 /* end confdefs.h.  */
3281
3282 int
3283 main (void)
3284 {
3285
3286   ;
3287   return 0;
3288 }
3289 _ACEOF
3290 if ac_fn_c_try_compile "$LINENO"
3291 then :
3292   ac_cv_prog_cc_g=yes
3293 else $as_nop
3294   CFLAGS=""
3295       cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3296 /* end confdefs.h.  */
3297
3298 int
3299 main (void)
3300 {
3301
3302   ;
3303   return 0;
3304 }
3305 _ACEOF
3306 if ac_fn_c_try_compile "$LINENO"
3307 then :
3308
3309 else $as_nop
3310   ac_c_werror_flag=$ac_save_c_werror_flag
3311          CFLAGS="-g"
3312          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3313 /* end confdefs.h.  */
3314
3315 int
3316 main (void)
3317 {
3318
3319   ;
3320   return 0;
3321 }
3322 _ACEOF
3323 if ac_fn_c_try_compile "$LINENO"
3324 then :
3325   ac_cv_prog_cc_g=yes
3326 fi
3327 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3328 fi
3329 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3330 fi
3331 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3332    ac_c_werror_flag=$ac_save_c_werror_flag
3333 fi
3334 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
3335 printf "%s\n" "$ac_cv_prog_cc_g" >&6; }
3336 if test $ac_test_CFLAGS; then
3337   CFLAGS=$ac_save_CFLAGS
3338 elif test $ac_cv_prog_cc_g = yes; then
3339   if test "$GCC" = yes; then
3340     CFLAGS="-g -O2"
3341   else
3342     CFLAGS="-g"
3343   fi
3344 else
3345   if test "$GCC" = yes; then
3346     CFLAGS="-O2"
3347   else
3348     CFLAGS=
3349   fi
3350 fi
3351 ac_prog_cc_stdc=no
3352 if test x$ac_prog_cc_stdc = xno
3353 then :
3354   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C11 features" >&5
3355 printf %s "checking for $CC option to enable C11 features... " >&6; }
3356 if test ${ac_cv_prog_cc_c11+y}
3357 then :
3358   printf %s "(cached) " >&6
3359 else $as_nop
3360   ac_cv_prog_cc_c11=no
3361 ac_save_CC=$CC
3362 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3363 /* end confdefs.h.  */
3364 $ac_c_conftest_c11_program
3365 _ACEOF
3366 for ac_arg in '' -std=gnu11
3367 do
3368   CC="$ac_save_CC $ac_arg"
3369   if ac_fn_c_try_compile "$LINENO"
3370 then :
3371   ac_cv_prog_cc_c11=$ac_arg
3372 fi
3373 rm -f core conftest.err conftest.$ac_objext conftest.beam
3374   test "x$ac_cv_prog_cc_c11" != "xno" && break
3375 done
3376 rm -f conftest.$ac_ext
3377 CC=$ac_save_CC
3378 fi
3379
3380 if test "x$ac_cv_prog_cc_c11" = xno
3381 then :
3382   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3383 printf "%s\n" "unsupported" >&6; }
3384 else $as_nop
3385   if test "x$ac_cv_prog_cc_c11" = x
3386 then :
3387   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3388 printf "%s\n" "none needed" >&6; }
3389 else $as_nop
3390   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c11" >&5
3391 printf "%s\n" "$ac_cv_prog_cc_c11" >&6; }
3392      CC="$CC $ac_cv_prog_cc_c11"
3393 fi
3394   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c11
3395   ac_prog_cc_stdc=c11
3396 fi
3397 fi
3398 if test x$ac_prog_cc_stdc = xno
3399 then :
3400   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C99 features" >&5
3401 printf %s "checking for $CC option to enable C99 features... " >&6; }
3402 if test ${ac_cv_prog_cc_c99+y}
3403 then :
3404   printf %s "(cached) " >&6
3405 else $as_nop
3406   ac_cv_prog_cc_c99=no
3407 ac_save_CC=$CC
3408 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3409 /* end confdefs.h.  */
3410 $ac_c_conftest_c99_program
3411 _ACEOF
3412 for ac_arg in '' -std=gnu99 -std=c99 -c99 -qlanglvl=extc1x -qlanglvl=extc99 -AC99 -D_STDC_C99=
3413 do
3414   CC="$ac_save_CC $ac_arg"
3415   if ac_fn_c_try_compile "$LINENO"
3416 then :
3417   ac_cv_prog_cc_c99=$ac_arg
3418 fi
3419 rm -f core conftest.err conftest.$ac_objext conftest.beam
3420   test "x$ac_cv_prog_cc_c99" != "xno" && break
3421 done
3422 rm -f conftest.$ac_ext
3423 CC=$ac_save_CC
3424 fi
3425
3426 if test "x$ac_cv_prog_cc_c99" = xno
3427 then :
3428   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3429 printf "%s\n" "unsupported" >&6; }
3430 else $as_nop
3431   if test "x$ac_cv_prog_cc_c99" = x
3432 then :
3433   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3434 printf "%s\n" "none needed" >&6; }
3435 else $as_nop
3436   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c99" >&5
3437 printf "%s\n" "$ac_cv_prog_cc_c99" >&6; }
3438      CC="$CC $ac_cv_prog_cc_c99"
3439 fi
3440   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c99
3441   ac_prog_cc_stdc=c99
3442 fi
3443 fi
3444 if test x$ac_prog_cc_stdc = xno
3445 then :
3446   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $CC option to enable C89 features" >&5
3447 printf %s "checking for $CC option to enable C89 features... " >&6; }
3448 if test ${ac_cv_prog_cc_c89+y}
3449 then :
3450   printf %s "(cached) " >&6
3451 else $as_nop
3452   ac_cv_prog_cc_c89=no
3453 ac_save_CC=$CC
3454 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3455 /* end confdefs.h.  */
3456 $ac_c_conftest_c89_program
3457 _ACEOF
3458 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3459 do
3460   CC="$ac_save_CC $ac_arg"
3461   if ac_fn_c_try_compile "$LINENO"
3462 then :
3463   ac_cv_prog_cc_c89=$ac_arg
3464 fi
3465 rm -f core conftest.err conftest.$ac_objext conftest.beam
3466   test "x$ac_cv_prog_cc_c89" != "xno" && break
3467 done
3468 rm -f conftest.$ac_ext
3469 CC=$ac_save_CC
3470 fi
3471
3472 if test "x$ac_cv_prog_cc_c89" = xno
3473 then :
3474   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
3475 printf "%s\n" "unsupported" >&6; }
3476 else $as_nop
3477   if test "x$ac_cv_prog_cc_c89" = x
3478 then :
3479   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
3480 printf "%s\n" "none needed" >&6; }
3481 else $as_nop
3482   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
3483 printf "%s\n" "$ac_cv_prog_cc_c89" >&6; }
3484      CC="$CC $ac_cv_prog_cc_c89"
3485 fi
3486   ac_cv_prog_cc_stdc=$ac_cv_prog_cc_c89
3487   ac_prog_cc_stdc=c89
3488 fi
3489 fi
3490
3491 ac_ext=c
3492 ac_cpp='$CPP $CPPFLAGS'
3493 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3494 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3495 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3496
3497
3498 ac_header= ac_cache=
3499 for ac_item in $ac_header_c_list
3500 do
3501   if test $ac_cache; then
3502     ac_fn_c_check_header_compile "$LINENO" $ac_header ac_cv_header_$ac_cache "$ac_includes_default"
3503     if eval test \"x\$ac_cv_header_$ac_cache\" = xyes; then
3504       printf "%s\n" "#define $ac_item 1" >> confdefs.h
3505     fi
3506     ac_header= ac_cache=
3507   elif test $ac_header; then
3508     ac_cache=$ac_item
3509   else
3510     ac_header=$ac_item
3511   fi
3512 done
3513
3514
3515
3516
3517
3518
3519
3520
3521 if test $ac_cv_header_stdlib_h = yes && test $ac_cv_header_string_h = yes
3522 then :
3523
3524 printf "%s\n" "#define STDC_HEADERS 1" >>confdefs.h
3525
3526 fi
3527
3528
3529
3530
3531
3532
3533   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether it is safe to define __EXTENSIONS__" >&5
3534 printf %s "checking whether it is safe to define __EXTENSIONS__... " >&6; }
3535 if test ${ac_cv_safe_to_define___extensions__+y}
3536 then :
3537   printf %s "(cached) " >&6
3538 else $as_nop
3539   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3540 /* end confdefs.h.  */
3541
3542 #         define __EXTENSIONS__ 1
3543           $ac_includes_default
3544 int
3545 main (void)
3546 {
3547
3548   ;
3549   return 0;
3550 }
3551 _ACEOF
3552 if ac_fn_c_try_compile "$LINENO"
3553 then :
3554   ac_cv_safe_to_define___extensions__=yes
3555 else $as_nop
3556   ac_cv_safe_to_define___extensions__=no
3557 fi
3558 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3559 fi
3560 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_safe_to_define___extensions__" >&5
3561 printf "%s\n" "$ac_cv_safe_to_define___extensions__" >&6; }
3562
3563   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether _XOPEN_SOURCE should be defined" >&5
3564 printf %s "checking whether _XOPEN_SOURCE should be defined... " >&6; }
3565 if test ${ac_cv_should_define__xopen_source+y}
3566 then :
3567   printf %s "(cached) " >&6
3568 else $as_nop
3569   ac_cv_should_define__xopen_source=no
3570     if test $ac_cv_header_wchar_h = yes
3571 then :
3572   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3573 /* end confdefs.h.  */
3574
3575           #include <wchar.h>
3576           mbstate_t x;
3577 int
3578 main (void)
3579 {
3580
3581   ;
3582   return 0;
3583 }
3584 _ACEOF
3585 if ac_fn_c_try_compile "$LINENO"
3586 then :
3587
3588 else $as_nop
3589   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3590 /* end confdefs.h.  */
3591
3592             #define _XOPEN_SOURCE 500
3593             #include <wchar.h>
3594             mbstate_t x;
3595 int
3596 main (void)
3597 {
3598
3599   ;
3600   return 0;
3601 }
3602 _ACEOF
3603 if ac_fn_c_try_compile "$LINENO"
3604 then :
3605   ac_cv_should_define__xopen_source=yes
3606 fi
3607 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3608 fi
3609 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
3610 fi
3611 fi
3612 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_should_define__xopen_source" >&5
3613 printf "%s\n" "$ac_cv_should_define__xopen_source" >&6; }
3614
3615   printf "%s\n" "#define _ALL_SOURCE 1" >>confdefs.h
3616
3617   printf "%s\n" "#define _DARWIN_C_SOURCE 1" >>confdefs.h
3618
3619   printf "%s\n" "#define _GNU_SOURCE 1" >>confdefs.h
3620
3621   printf "%s\n" "#define _HPUX_ALT_XOPEN_SOCKET_API 1" >>confdefs.h
3622
3623   printf "%s\n" "#define _NETBSD_SOURCE 1" >>confdefs.h
3624
3625   printf "%s\n" "#define _OPENBSD_SOURCE 1" >>confdefs.h
3626
3627   printf "%s\n" "#define _POSIX_PTHREAD_SEMANTICS 1" >>confdefs.h
3628
3629   printf "%s\n" "#define __STDC_WANT_IEC_60559_ATTRIBS_EXT__ 1" >>confdefs.h
3630
3631   printf "%s\n" "#define __STDC_WANT_IEC_60559_BFP_EXT__ 1" >>confdefs.h
3632
3633   printf "%s\n" "#define __STDC_WANT_IEC_60559_DFP_EXT__ 1" >>confdefs.h
3634
3635   printf "%s\n" "#define __STDC_WANT_IEC_60559_FUNCS_EXT__ 1" >>confdefs.h
3636
3637   printf "%s\n" "#define __STDC_WANT_IEC_60559_TYPES_EXT__ 1" >>confdefs.h
3638
3639   printf "%s\n" "#define __STDC_WANT_LIB_EXT2__ 1" >>confdefs.h
3640
3641   printf "%s\n" "#define __STDC_WANT_MATH_SPEC_FUNCS__ 1" >>confdefs.h
3642
3643   printf "%s\n" "#define _TANDEM_SOURCE 1" >>confdefs.h
3644
3645   if test $ac_cv_header_minix_config_h = yes
3646 then :
3647   MINIX=yes
3648     printf "%s\n" "#define _MINIX 1" >>confdefs.h
3649
3650     printf "%s\n" "#define _POSIX_SOURCE 1" >>confdefs.h
3651
3652     printf "%s\n" "#define _POSIX_1_SOURCE 2" >>confdefs.h
3653
3654 else $as_nop
3655   MINIX=
3656 fi
3657   if test $ac_cv_safe_to_define___extensions__ = yes
3658 then :
3659   printf "%s\n" "#define __EXTENSIONS__ 1" >>confdefs.h
3660
3661 fi
3662   if test $ac_cv_should_define__xopen_source = yes
3663 then :
3664   printf "%s\n" "#define _XOPEN_SOURCE 500" >>confdefs.h
3665
3666 fi
3667
3668 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether ln -s works" >&5
3669 printf %s "checking whether ln -s works... " >&6; }
3670 LN_S=$as_ln_s
3671 if test "$LN_S" = "ln -s"; then
3672   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3673 printf "%s\n" "yes" >&6; }
3674 else
3675   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no, using $LN_S" >&5
3676 printf "%s\n" "no, using $LN_S" >&6; }
3677 fi
3678
3679
3680 DFLAGS=""
3681
3682 # Extract the first word of "chmod", so it can be a program name with args.
3683 set dummy chmod; ac_word=$2
3684 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3685 printf %s "checking for $ac_word... " >&6; }
3686 if test ${ac_cv_prog_CHMOD+y}
3687 then :
3688   printf %s "(cached) " >&6
3689 else $as_nop
3690   if test -n "$CHMOD"; then
3691   ac_cv_prog_CHMOD="$CHMOD" # Let the user override the test.
3692 else
3693 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3694 for as_dir in $PATH
3695 do
3696   IFS=$as_save_IFS
3697   case $as_dir in #(((
3698     '') as_dir=./ ;;
3699     */) ;;
3700     *) as_dir=$as_dir/ ;;
3701   esac
3702     for ac_exec_ext in '' $ac_executable_extensions; do
3703   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3704     ac_cv_prog_CHMOD="chmod"
3705     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3706     break 2
3707   fi
3708 done
3709   done
3710 IFS=$as_save_IFS
3711
3712 fi
3713 fi
3714 CHMOD=$ac_cv_prog_CHMOD
3715 if test -n "$CHMOD"; then
3716   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CHMOD" >&5
3717 printf "%s\n" "$CHMOD" >&6; }
3718 else
3719   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3720 printf "%s\n" "no" >&6; }
3721 fi
3722
3723
3724 # Extract the first word of "chown", so it can be a program name with args.
3725 set dummy chown; ac_word=$2
3726 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3727 printf %s "checking for $ac_word... " >&6; }
3728 if test ${ac_cv_prog_CHOWN+y}
3729 then :
3730   printf %s "(cached) " >&6
3731 else $as_nop
3732   if test -n "$CHOWN"; then
3733   ac_cv_prog_CHOWN="$CHOWN" # Let the user override the test.
3734 else
3735 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3736 for as_dir in $PATH
3737 do
3738   IFS=$as_save_IFS
3739   case $as_dir in #(((
3740     '') as_dir=./ ;;
3741     */) ;;
3742     *) as_dir=$as_dir/ ;;
3743   esac
3744     for ac_exec_ext in '' $ac_executable_extensions; do
3745   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3746     ac_cv_prog_CHOWN="chown"
3747     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3748     break 2
3749   fi
3750 done
3751   done
3752 IFS=$as_save_IFS
3753
3754 fi
3755 fi
3756 CHOWN=$ac_cv_prog_CHOWN
3757 if test -n "$CHOWN"; then
3758   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CHOWN" >&5
3759 printf "%s\n" "$CHOWN" >&6; }
3760 else
3761   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3762 printf "%s\n" "no" >&6; }
3763 fi
3764
3765
3766 # Extract the first word of "ar", so it can be a program name with args.
3767 set dummy ar; ac_word=$2
3768 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3769 printf %s "checking for $ac_word... " >&6; }
3770 if test ${ac_cv_prog_AR+y}
3771 then :
3772   printf %s "(cached) " >&6
3773 else $as_nop
3774   if test -n "$AR"; then
3775   ac_cv_prog_AR="$AR" # Let the user override the test.
3776 else
3777 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3778 for as_dir in $PATH
3779 do
3780   IFS=$as_save_IFS
3781   case $as_dir in #(((
3782     '') as_dir=./ ;;
3783     */) ;;
3784     *) as_dir=$as_dir/ ;;
3785   esac
3786     for ac_exec_ext in '' $ac_executable_extensions; do
3787   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3788     ac_cv_prog_AR="ar"
3789     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3790     break 2
3791   fi
3792 done
3793   done
3794 IFS=$as_save_IFS
3795
3796 fi
3797 fi
3798 AR=$ac_cv_prog_AR
3799 if test -n "$AR"; then
3800   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AR" >&5
3801 printf "%s\n" "$AR" >&6; }
3802 else
3803   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3804 printf "%s\n" "no" >&6; }
3805 fi
3806
3807
3808 # Extract the first word of "install", so it can be a program name with args.
3809 set dummy install; ac_word=$2
3810 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3811 printf %s "checking for $ac_word... " >&6; }
3812 if test ${ac_cv_prog_INSTALL+y}
3813 then :
3814   printf %s "(cached) " >&6
3815 else $as_nop
3816   if test -n "$INSTALL"; then
3817   ac_cv_prog_INSTALL="$INSTALL" # Let the user override the test.
3818 else
3819 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3820 for as_dir in $PATH
3821 do
3822   IFS=$as_save_IFS
3823   case $as_dir in #(((
3824     '') as_dir=./ ;;
3825     */) ;;
3826     *) as_dir=$as_dir/ ;;
3827   esac
3828     for ac_exec_ext in '' $ac_executable_extensions; do
3829   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3830     ac_cv_prog_INSTALL="install"
3831     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3832     break 2
3833   fi
3834 done
3835   done
3836 IFS=$as_save_IFS
3837
3838 fi
3839 fi
3840 INSTALL=$ac_cv_prog_INSTALL
3841 if test -n "$INSTALL"; then
3842   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
3843 printf "%s\n" "$INSTALL" >&6; }
3844 else
3845   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3846 printf "%s\n" "no" >&6; }
3847 fi
3848
3849
3850 # Extract the first word of "msgfmt", so it can be a program name with args.
3851 set dummy msgfmt; ac_word=$2
3852 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3853 printf %s "checking for $ac_word... " >&6; }
3854 if test ${ac_cv_prog_MSGFMT+y}
3855 then :
3856   printf %s "(cached) " >&6
3857 else $as_nop
3858   if test -n "$MSGFMT"; then
3859   ac_cv_prog_MSGFMT="$MSGFMT" # Let the user override the test.
3860 else
3861 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3862 for as_dir in $PATH
3863 do
3864   IFS=$as_save_IFS
3865   case $as_dir in #(((
3866     '') as_dir=./ ;;
3867     */) ;;
3868     *) as_dir=$as_dir/ ;;
3869   esac
3870     for ac_exec_ext in '' $ac_executable_extensions; do
3871   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3872     ac_cv_prog_MSGFMT="msgfmt"
3873     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3874     break 2
3875   fi
3876 done
3877   done
3878 IFS=$as_save_IFS
3879
3880 fi
3881 fi
3882 MSGFMT=$ac_cv_prog_MSGFMT
3883 if test -n "$MSGFMT"; then
3884   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGFMT" >&5
3885 printf "%s\n" "$MSGFMT" >&6; }
3886 else
3887   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3888 printf "%s\n" "no" >&6; }
3889 fi
3890
3891
3892 # Extract the first word of "xgettext", so it can be a program name with args.
3893 set dummy xgettext; ac_word=$2
3894 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3895 printf %s "checking for $ac_word... " >&6; }
3896 if test ${ac_cv_prog_XGETTEXT+y}
3897 then :
3898   printf %s "(cached) " >&6
3899 else $as_nop
3900   if test -n "$XGETTEXT"; then
3901   ac_cv_prog_XGETTEXT="$XGETTEXT" # Let the user override the test.
3902 else
3903 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3904 for as_dir in $PATH
3905 do
3906   IFS=$as_save_IFS
3907   case $as_dir in #(((
3908     '') as_dir=./ ;;
3909     */) ;;
3910     *) as_dir=$as_dir/ ;;
3911   esac
3912     for ac_exec_ext in '' $ac_executable_extensions; do
3913   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3914     ac_cv_prog_XGETTEXT="xgettext"
3915     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3916     break 2
3917   fi
3918 done
3919   done
3920 IFS=$as_save_IFS
3921
3922 fi
3923 fi
3924 XGETTEXT=$ac_cv_prog_XGETTEXT
3925 if test -n "$XGETTEXT"; then
3926   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $XGETTEXT" >&5
3927 printf "%s\n" "$XGETTEXT" >&6; }
3928 else
3929   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3930 printf "%s\n" "no" >&6; }
3931 fi
3932
3933
3934 # Extract the first word of "msgmerge", so it can be a program name with args.
3935 set dummy msgmerge; ac_word=$2
3936 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3937 printf %s "checking for $ac_word... " >&6; }
3938 if test ${ac_cv_prog_MSGMERGE+y}
3939 then :
3940   printf %s "(cached) " >&6
3941 else $as_nop
3942   if test -n "$MSGMERGE"; then
3943   ac_cv_prog_MSGMERGE="$MSGMERGE" # Let the user override the test.
3944 else
3945 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3946 for as_dir in $PATH
3947 do
3948   IFS=$as_save_IFS
3949   case $as_dir in #(((
3950     '') as_dir=./ ;;
3951     */) ;;
3952     *) as_dir=$as_dir/ ;;
3953   esac
3954     for ac_exec_ext in '' $ac_executable_extensions; do
3955   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3956     ac_cv_prog_MSGMERGE="msgmerge"
3957     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
3958     break 2
3959   fi
3960 done
3961   done
3962 IFS=$as_save_IFS
3963
3964 fi
3965 fi
3966 MSGMERGE=$ac_cv_prog_MSGMERGE
3967 if test -n "$MSGMERGE"; then
3968   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MSGMERGE" >&5
3969 printf "%s\n" "$MSGMERGE" >&6; }
3970 else
3971   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
3972 printf "%s\n" "no" >&6; }
3973 fi
3974
3975
3976 # Extract the first word of "xmllint", so it can be a program name with args.
3977 set dummy xmllint; ac_word=$2
3978 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3979 printf %s "checking for $ac_word... " >&6; }
3980 if test ${ac_cv_prog_VER_XML+y}
3981 then :
3982   printf %s "(cached) " >&6
3983 else $as_nop
3984   if test -n "$VER_XML"; then
3985   ac_cv_prog_VER_XML="$VER_XML" # Let the user override the test.
3986 else
3987 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3988 for as_dir in $PATH
3989 do
3990   IFS=$as_save_IFS
3991   case $as_dir in #(((
3992     '') as_dir=./ ;;
3993     */) ;;
3994     *) as_dir=$as_dir/ ;;
3995   esac
3996     for ac_exec_ext in '' $ac_executable_extensions; do
3997   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
3998     ac_cv_prog_VER_XML="xmllint"
3999     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4000     break 2
4001   fi
4002 done
4003   done
4004 IFS=$as_save_IFS
4005
4006 fi
4007 fi
4008 VER_XML=$ac_cv_prog_VER_XML
4009 if test -n "$VER_XML"; then
4010   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $VER_XML" >&5
4011 printf "%s\n" "$VER_XML" >&6; }
4012 else
4013   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4014 printf "%s\n" "no" >&6; }
4015 fi
4016
4017
4018 for ac_prog in json_verify json_pp
4019 do
4020   # Extract the first word of "$ac_prog", so it can be a program name with args.
4021 set dummy $ac_prog; ac_word=$2
4022 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4023 printf %s "checking for $ac_word... " >&6; }
4024 if test ${ac_cv_prog_VER_JSON+y}
4025 then :
4026   printf %s "(cached) " >&6
4027 else $as_nop
4028   if test -n "$VER_JSON"; then
4029   ac_cv_prog_VER_JSON="$VER_JSON" # Let the user override the test.
4030 else
4031 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4032 for as_dir in $PATH
4033 do
4034   IFS=$as_save_IFS
4035   case $as_dir in #(((
4036     '') as_dir=./ ;;
4037     */) ;;
4038     *) as_dir=$as_dir/ ;;
4039   esac
4040     for ac_exec_ext in '' $ac_executable_extensions; do
4041   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4042     ac_cv_prog_VER_JSON="$ac_prog"
4043     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4044     break 2
4045   fi
4046 done
4047   done
4048 IFS=$as_save_IFS
4049
4050 fi
4051 fi
4052 VER_JSON=$ac_cv_prog_VER_JSON
4053 if test -n "$VER_JSON"; then
4054   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $VER_JSON" >&5
4055 printf "%s\n" "$VER_JSON" >&6; }
4056 else
4057   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4058 printf "%s\n" "no" >&6; }
4059 fi
4060
4061
4062   test -n "$VER_JSON" && break
4063 done
4064 test -n "$VER_JSON" || VER_JSON="true"
4065
4066 for ac_prog in xz bzip2 gzip
4067 do
4068   # Extract the first word of "$ac_prog", so it can be a program name with args.
4069 set dummy $ac_prog; ac_word=$2
4070 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4071 printf %s "checking for $ac_word... " >&6; }
4072 if test ${ac_cv_prog_ZIP+y}
4073 then :
4074   printf %s "(cached) " >&6
4075 else $as_nop
4076   if test -n "$ZIP"; then
4077   ac_cv_prog_ZIP="$ZIP" # Let the user override the test.
4078 else
4079 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4080 for as_dir in $PATH
4081 do
4082   IFS=$as_save_IFS
4083   case $as_dir in #(((
4084     '') as_dir=./ ;;
4085     */) ;;
4086     *) as_dir=$as_dir/ ;;
4087   esac
4088     for ac_exec_ext in '' $ac_executable_extensions; do
4089   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4090     ac_cv_prog_ZIP="$ac_prog"
4091     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4092     break 2
4093   fi
4094 done
4095   done
4096 IFS=$as_save_IFS
4097
4098 fi
4099 fi
4100 ZIP=$ac_cv_prog_ZIP
4101 if test -n "$ZIP"; then
4102   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ZIP" >&5
4103 printf "%s\n" "$ZIP" >&6; }
4104 else
4105   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4106 printf "%s\n" "no" >&6; }
4107 fi
4108
4109
4110   test -n "$ZIP" && break
4111 done
4112 test -n "$ZIP" || ZIP="gzip"
4113
4114 INSTALL_DATA="\${INSTALL} -m 644"
4115
4116 INSTALL_BIN="\${INSTALL} -m 755"
4117
4118
4119
4120
4121
4122 # Extract the first word of "cp", so it can be a program name with args.
4123 set dummy cp; ac_word=$2
4124 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4125 printf %s "checking for $ac_word... " >&6; }
4126 if test ${ac_cv_path_PATH_CP+y}
4127 then :
4128   printf %s "(cached) " >&6
4129 else $as_nop
4130   case $PATH_CP in
4131   [\\/]* | ?:[\\/]*)
4132   ac_cv_path_PATH_CP="$PATH_CP" # Let the user override the test with a path.
4133   ;;
4134   *)
4135   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4136 for as_dir in $PATH
4137 do
4138   IFS=$as_save_IFS
4139   case $as_dir in #(((
4140     '') as_dir=./ ;;
4141     */) ;;
4142     *) as_dir=$as_dir/ ;;
4143   esac
4144     for ac_exec_ext in '' $ac_executable_extensions; do
4145   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4146     ac_cv_path_PATH_CP="$as_dir$ac_word$ac_exec_ext"
4147     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4148     break 2
4149   fi
4150 done
4151   done
4152 IFS=$as_save_IFS
4153
4154   ;;
4155 esac
4156 fi
4157 PATH_CP=$ac_cv_path_PATH_CP
4158 if test -n "$PATH_CP"; then
4159   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PATH_CP" >&5
4160 printf "%s\n" "$PATH_CP" >&6; }
4161 else
4162   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4163 printf "%s\n" "no" >&6; }
4164 fi
4165
4166
4167 # Extract the first word of "chkconfig", so it can be a program name with args.
4168 set dummy chkconfig; ac_word=$2
4169 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4170 printf %s "checking for $ac_word... " >&6; }
4171 if test ${ac_cv_path_PATH_CHKCONFIG+y}
4172 then :
4173   printf %s "(cached) " >&6
4174 else $as_nop
4175   case $PATH_CHKCONFIG in
4176   [\\/]* | ?:[\\/]*)
4177   ac_cv_path_PATH_CHKCONFIG="$PATH_CHKCONFIG" # Let the user override the test with a path.
4178   ;;
4179   *)
4180   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4181 for as_dir in $PATH
4182 do
4183   IFS=$as_save_IFS
4184   case $as_dir in #(((
4185     '') as_dir=./ ;;
4186     */) ;;
4187     *) as_dir=$as_dir/ ;;
4188   esac
4189     for ac_exec_ext in '' $ac_executable_extensions; do
4190   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4191     ac_cv_path_PATH_CHKCONFIG="$as_dir$ac_word$ac_exec_ext"
4192     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4193     break 2
4194   fi
4195 done
4196   done
4197 IFS=$as_save_IFS
4198
4199   ;;
4200 esac
4201 fi
4202 PATH_CHKCONFIG=$ac_cv_path_PATH_CHKCONFIG
4203 if test -n "$PATH_CHKCONFIG"; then
4204   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PATH_CHKCONFIG" >&5
4205 printf "%s\n" "$PATH_CHKCONFIG" >&6; }
4206 else
4207   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4208 printf "%s\n" "no" >&6; }
4209 fi
4210
4211
4212
4213 # Check for systemd
4214 # Extract the first word of "pkg-config", so it can be a program name with args.
4215 set dummy pkg-config; ac_word=$2
4216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4217 printf %s "checking for $ac_word... " >&6; }
4218 if test ${ac_cv_prog_PKG_CONFIG+y}
4219 then :
4220   printf %s "(cached) " >&6
4221 else $as_nop
4222   if test -n "$PKG_CONFIG"; then
4223   ac_cv_prog_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test.
4224 else
4225 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4226 for as_dir in $PATH
4227 do
4228   IFS=$as_save_IFS
4229   case $as_dir in #(((
4230     '') as_dir=./ ;;
4231     */) ;;
4232     *) as_dir=$as_dir/ ;;
4233   esac
4234     for ac_exec_ext in '' $ac_executable_extensions; do
4235   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4236     ac_cv_prog_PKG_CONFIG="pkg-config"
4237     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4238     break 2
4239   fi
4240 done
4241   done
4242 IFS=$as_save_IFS
4243
4244 fi
4245 fi
4246 PKG_CONFIG=$ac_cv_prog_PKG_CONFIG
4247 if test -n "$PKG_CONFIG"; then
4248   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4249 printf "%s\n" "$PKG_CONFIG" >&6; }
4250 else
4251   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4252 printf "%s\n" "no" >&6; }
4253 fi
4254
4255
4256 # Extract the first word of "systemctl", so it can be a program name with args.
4257 set dummy systemctl; ac_word=$2
4258 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4259 printf %s "checking for $ac_word... " >&6; }
4260 if test ${ac_cv_path_SYSTEMCTL+y}
4261 then :
4262   printf %s "(cached) " >&6
4263 else $as_nop
4264   case $SYSTEMCTL in
4265   [\\/]* | ?:[\\/]*)
4266   ac_cv_path_SYSTEMCTL="$SYSTEMCTL" # Let the user override the test with a path.
4267   ;;
4268   *)
4269   as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4270 for as_dir in $PATH
4271 do
4272   IFS=$as_save_IFS
4273   case $as_dir in #(((
4274     '') as_dir=./ ;;
4275     */) ;;
4276     *) as_dir=$as_dir/ ;;
4277   esac
4278     for ac_exec_ext in '' $ac_executable_extensions; do
4279   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
4280     ac_cv_path_SYSTEMCTL="$as_dir$ac_word$ac_exec_ext"
4281     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
4282     break 2
4283   fi
4284 done
4285   done
4286 IFS=$as_save_IFS
4287
4288   ;;
4289 esac
4290 fi
4291 SYSTEMCTL=$ac_cv_path_SYSTEMCTL
4292 if test -n "$SYSTEMCTL"; then
4293   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SYSTEMCTL" >&5
4294 printf "%s\n" "$SYSTEMCTL" >&6; }
4295 else
4296   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
4297 printf "%s\n" "no" >&6; }
4298 fi
4299
4300
4301
4302 # Check whether --with-systemdsystemunitdir was given.
4303 if test ${with_systemdsystemunitdir+y}
4304 then :
4305   withval=$with_systemdsystemunitdir;
4306 else $as_nop
4307   with_systemdsystemunitdir=$($PKG_CONFIG --variable=systemdsystemunitdir systemd)
4308 fi
4309
4310 if test -n "$with_systemdsystemunitdir" -a "x$with_systemdsystemunitdir" != xno ; then
4311     SYSTEMD_UNIT_DIR=$with_systemdsystemunitdir
4312
4313 fi
4314
4315 # Check whether --with-systemdsleepdir was given.
4316 if test ${with_systemdsleepdir+y}
4317 then :
4318   withval=$with_systemdsleepdir;
4319 else $as_nop
4320   with_systemdsleepdir=$($PKG_CONFIG --variable=systemdsleepdir systemd)
4321 fi
4322
4323 if test -n "$with_systemdsleepdir" -a "x$with_systemdsleepdir" != xno ; then
4324     SYSTEMD_SLEEP_DIR=$with_systemdsleepdir
4325
4326 fi
4327
4328 # Check libraries
4329
4330 # Check header files
4331 echo .
4332 echo Check header files:
4333 echo .
4334 HAVE_LIBINTL_H=
4335 HAVE_LOCALE_H=
4336 HAVE_SYS_SYSMACROS_H=
4337 HAVE_SYS_PARAM_H=
4338 ac_fn_c_check_header_compile "$LINENO" "ctype.h" "ac_cv_header_ctype_h" "$ac_includes_default"
4339 if test "x$ac_cv_header_ctype_h" = xyes
4340 then :
4341   printf "%s\n" "#define HAVE_CTYPE_H 1" >>confdefs.h
4342
4343 fi
4344
4345 ac_fn_c_check_header_compile "$LINENO" "errno.h" "ac_cv_header_errno_h" "$ac_includes_default"
4346 if test "x$ac_cv_header_errno_h" = xyes
4347 then :
4348   printf "%s\n" "#define HAVE_ERRNO_H 1" >>confdefs.h
4349
4350 fi
4351
4352        for ac_header in libintl.h
4353 do :
4354   ac_fn_c_check_header_compile "$LINENO" "libintl.h" "ac_cv_header_libintl_h" "$ac_includes_default"
4355 if test "x$ac_cv_header_libintl_h" = xyes
4356 then :
4357   printf "%s\n" "#define HAVE_LIBINTL_H 1" >>confdefs.h
4358  HAVE_LIBINTL_H=1
4359 fi
4360
4361 done
4362        for ac_header in locale.h
4363 do :
4364   ac_fn_c_check_header_compile "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
4365 if test "x$ac_cv_header_locale_h" = xyes
4366 then :
4367   printf "%s\n" "#define HAVE_LOCALE_H 1" >>confdefs.h
4368  HAVE_LOCALE_H=1
4369 fi
4370
4371 done
4372        for ac_header in linux/sched.h
4373 do :
4374   ac_fn_c_check_header_compile "$LINENO" "linux/sched.h" "ac_cv_header_linux_sched_h" "$ac_includes_default"
4375 if test "x$ac_cv_header_linux_sched_h" = xyes
4376 then :
4377   printf "%s\n" "#define HAVE_LINUX_SCHED_H 1" >>confdefs.h
4378  HAVE_LINUX_SCHED_H=1
4379 fi
4380
4381 done
4382 ac_fn_c_check_header_compile "$LINENO" "net/if.h" "ac_cv_header_net_if_h" "$ac_includes_default"
4383 if test "x$ac_cv_header_net_if_h" = xyes
4384 then :
4385   printf "%s\n" "#define HAVE_NET_IF_H 1" >>confdefs.h
4386
4387 fi
4388
4389 ac_fn_c_check_header_compile "$LINENO" "regex.h" "ac_cv_header_regex_h" "$ac_includes_default"
4390 if test "x$ac_cv_header_regex_h" = xyes
4391 then :
4392   printf "%s\n" "#define HAVE_REGEX_H 1" >>confdefs.h
4393
4394 fi
4395
4396 ac_fn_c_check_header_compile "$LINENO" "signal.h" "ac_cv_header_signal_h" "$ac_includes_default"
4397 if test "x$ac_cv_header_signal_h" = xyes
4398 then :
4399   printf "%s\n" "#define HAVE_SIGNAL_H 1" >>confdefs.h
4400
4401 fi
4402
4403 ac_fn_c_check_header_compile "$LINENO" "stdio.h" "ac_cv_header_stdio_h" "$ac_includes_default"
4404 if test "x$ac_cv_header_stdio_h" = xyes
4405 then :
4406   printf "%s\n" "#define HAVE_STDIO_H 1" >>confdefs.h
4407
4408 fi
4409
4410 ac_fn_c_check_header_compile "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
4411 if test "x$ac_cv_header_stdint_h" = xyes
4412 then :
4413   printf "%s\n" "#define HAVE_STDINT_H 1" >>confdefs.h
4414
4415 fi
4416
4417 ac_fn_c_check_header_compile "$LINENO" "fcntl.h" "ac_cv_header_fcntl_h" "$ac_includes_default"
4418 if test "x$ac_cv_header_fcntl_h" = xyes
4419 then :
4420   printf "%s\n" "#define HAVE_FCNTL_H 1" >>confdefs.h
4421
4422 fi
4423
4424 ac_fn_c_check_header_compile "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
4425 if test "x$ac_cv_header_inttypes_h" = xyes
4426 then :
4427   printf "%s\n" "#define HAVE_INTTYPES_H 1" >>confdefs.h
4428
4429 fi
4430
4431 ac_fn_c_check_header_compile "$LINENO" "libgen.h" "ac_cv_header_libgen_h" "$ac_includes_default"
4432 if test "x$ac_cv_header_libgen_h" = xyes
4433 then :
4434   printf "%s\n" "#define HAVE_LIBGEN_H 1" >>confdefs.h
4435
4436 fi
4437
4438 ac_fn_c_check_header_compile "$LINENO" "pwd.h" "ac_cv_header_pwd_h" "$ac_includes_default"
4439 if test "x$ac_cv_header_pwd_h" = xyes
4440 then :
4441   printf "%s\n" "#define HAVE_PWD_H 1" >>confdefs.h
4442
4443 fi
4444
4445 ac_fn_c_check_header_compile "$LINENO" "time.h" "ac_cv_header_time_h" "$ac_includes_default"
4446 if test "x$ac_cv_header_time_h" = xyes
4447 then :
4448   printf "%s\n" "#define HAVE_TIME_H 1" >>confdefs.h
4449
4450 fi
4451
4452 ac_fn_c_check_header_compile "$LINENO" "unistd.h" "ac_cv_header_unistd_h" "$ac_includes_default"
4453 if test "x$ac_cv_header_unistd_h" = xyes
4454 then :
4455   printf "%s\n" "#define HAVE_UNISTD_H 1" >>confdefs.h
4456
4457 fi
4458
4459        for ac_header in pcp/pmapi.h
4460 do :
4461   ac_fn_c_check_header_compile "$LINENO" "pcp/pmapi.h" "ac_cv_header_pcp_pmapi_h" "$ac_includes_default"
4462 if test "x$ac_cv_header_pcp_pmapi_h" = xyes
4463 then :
4464   printf "%s\n" "#define HAVE_PCP_PMAPI_H 1" >>confdefs.h
4465  HAVE_PCP_PMAPI_H=1
4466 fi
4467
4468 done
4469        for ac_header in pcp/impl.h
4470 do :
4471   ac_fn_c_check_header_compile "$LINENO" "pcp/impl.h" "ac_cv_header_pcp_impl_h" "$ac_includes_default"
4472 if test "x$ac_cv_header_pcp_impl_h" = xyes
4473 then :
4474   printf "%s\n" "#define HAVE_PCP_IMPL_H 1" >>confdefs.h
4475  HAVE_PCP_IMPL_H=1
4476 fi
4477
4478 done
4479 ac_fn_c_check_header_compile "$LINENO" "sys/time.h" "ac_cv_header_sys_time_h" "$ac_includes_default"
4480 if test "x$ac_cv_header_sys_time_h" = xyes
4481 then :
4482   printf "%s\n" "#define HAVE_SYS_TIME_H 1" >>confdefs.h
4483
4484 fi
4485
4486 ac_fn_c_check_header_compile "$LINENO" "sys/statvfs.h" "ac_cv_header_sys_statvfs_h" "$ac_includes_default"
4487 if test "x$ac_cv_header_sys_statvfs_h" = xyes
4488 then :
4489   printf "%s\n" "#define HAVE_SYS_STATVFS_H 1" >>confdefs.h
4490
4491 fi
4492
4493 ac_fn_c_check_header_compile "$LINENO" "sys/types.h" "ac_cv_header_sys_types_h" "$ac_includes_default"
4494 if test "x$ac_cv_header_sys_types_h" = xyes
4495 then :
4496   printf "%s\n" "#define HAVE_SYS_TYPES_H 1" >>confdefs.h
4497
4498 fi
4499
4500 ac_fn_c_check_header_compile "$LINENO" "sys/file.h" "ac_cv_header_sys_file_h" "$ac_includes_default"
4501 if test "x$ac_cv_header_sys_file_h" = xyes
4502 then :
4503   printf "%s\n" "#define HAVE_SYS_FILE_H 1" >>confdefs.h
4504
4505 fi
4506
4507 ac_fn_c_check_header_compile "$LINENO" "sys/ioctl.h" "ac_cv_header_sys_ioctl_h" "$ac_includes_default"
4508 if test "x$ac_cv_header_sys_ioctl_h" = xyes
4509 then :
4510   printf "%s\n" "#define HAVE_SYS_IOCTL_H 1" >>confdefs.h
4511
4512 fi
4513
4514        for ac_header in sys/param.h
4515 do :
4516   ac_fn_c_check_header_compile "$LINENO" "sys/param.h" "ac_cv_header_sys_param_h" "$ac_includes_default"
4517 if test "x$ac_cv_header_sys_param_h" = xyes
4518 then :
4519   printf "%s\n" "#define HAVE_SYS_PARAM_H 1" >>confdefs.h
4520  HAVE_SYS_PARAM_H=1
4521 fi
4522
4523 done
4524 ac_fn_c_check_header_compile "$LINENO" "sys/stat.h" "ac_cv_header_sys_stat_h" "$ac_includes_default"
4525 if test "x$ac_cv_header_sys_stat_h" = xyes
4526 then :
4527   printf "%s\n" "#define HAVE_SYS_STAT_H 1" >>confdefs.h
4528
4529 fi
4530
4531        for ac_header in sys/sysmacros.h
4532 do :
4533   ac_fn_c_check_header_compile "$LINENO" "sys/sysmacros.h" "ac_cv_header_sys_sysmacros_h" "$ac_includes_default"
4534 if test "x$ac_cv_header_sys_sysmacros_h" = xyes
4535 then :
4536   printf "%s\n" "#define HAVE_SYS_SYSMACROS_H 1" >>confdefs.h
4537  HAVE_SYS_SYSMACROS_H=1
4538 fi
4539
4540 done
4541 ac_fn_c_check_header_compile "$LINENO" "sys/utsname.h" "ac_cv_header_sys_utsname_h" "$ac_includes_default"
4542 if test "x$ac_cv_header_sys_utsname_h" = xyes
4543 then :
4544   printf "%s\n" "#define HAVE_SYS_UTSNAME_H 1" >>confdefs.h
4545
4546 fi
4547
4548 ac_fn_c_check_header_compile "$LINENO" "sys/wait.h" "ac_cv_header_sys_wait_h" "$ac_includes_default"
4549 if test "x$ac_cv_header_sys_wait_h" = xyes
4550 then :
4551   printf "%s\n" "#define HAVE_SYS_WAIT_H 1" >>confdefs.h
4552
4553 fi
4554
4555
4556 echo .
4557 echo Check typedefs, structures and compiler characteristics:
4558 echo .
4559
4560 printf "%s\n" "#define RETSIGTYPE $ac_cv_type_signal" >>confdefs.h
4561
4562
4563 ac_fn_c_check_type "$LINENO" "size_t" "ac_cv_type_size_t" "$ac_includes_default"
4564 if test "x$ac_cv_type_size_t" = xyes
4565 then :
4566
4567 else $as_nop
4568
4569 printf "%s\n" "#define size_t unsigned int" >>confdefs.h
4570
4571 fi
4572
4573 ac_fn_c_check_type "$LINENO" "off_t" "ac_cv_type_off_t" "$ac_includes_default"
4574 if test "x$ac_cv_type_off_t" = xyes
4575 then :
4576
4577 else $as_nop
4578
4579 printf "%s\n" "#define off_t long int" >>confdefs.h
4580
4581 fi
4582
4583
4584 echo .
4585 echo Check library functions:
4586 echo .
4587 ac_fn_c_check_func "$LINENO" "strchr" "ac_cv_func_strchr"
4588 if test "x$ac_cv_func_strchr" = xyes
4589 then :
4590   printf "%s\n" "#define HAVE_STRCHR 1" >>confdefs.h
4591
4592 fi
4593
4594 ac_fn_c_check_func "$LINENO" "strcspn" "ac_cv_func_strcspn"
4595 if test "x$ac_cv_func_strcspn" = xyes
4596 then :
4597   printf "%s\n" "#define HAVE_STRCSPN 1" >>confdefs.h
4598
4599 fi
4600
4601 ac_fn_c_check_func "$LINENO" "strspn" "ac_cv_func_strspn"
4602 if test "x$ac_cv_func_strspn" = xyes
4603 then :
4604   printf "%s\n" "#define HAVE_STRSPN 1" >>confdefs.h
4605
4606 fi
4607
4608 ac_fn_c_check_func "$LINENO" "strstr" "ac_cv_func_strstr"
4609 if test "x$ac_cv_func_strstr" = xyes
4610 then :
4611   printf "%s\n" "#define HAVE_STRSTR 1" >>confdefs.h
4612
4613 fi
4614
4615
4616 # Should we check for PCP support?
4617 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PCP support" >&5
4618 printf %s "checking for PCP support... " >&6; }
4619 # Check whether --enable-pcp was given.
4620 if test ${enable_pcp+y}
4621 then :
4622   enableval=$enable_pcp; PCP=$enableval
4623 else $as_nop
4624   PCP=yes
4625 fi
4626
4627 if test $PCP != "yes"; then
4628         HAVE_PCP="n"
4629 else
4630         HAVE_PCP="y"
4631 fi
4632
4633 if test ! $HAVE_PCP_PMAPI_H; then
4634         HAVE_PCP="n"
4635         PCP=no
4636 fi
4637 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PCP" >&5
4638 printf "%s\n" "$PCP" >&6; }
4639
4640 # Check for PCP libraries
4641 LFPCP=""
4642 DFPCP=""
4643 if test $HAVE_PCP = "y"; then
4644         PCP=no
4645         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for pmGetVersion in -lpcp" >&5
4646 printf %s "checking for pmGetVersion in -lpcp... " >&6; }
4647 if test ${ac_cv_lib_pcp_pmGetVersion+y}
4648 then :
4649   printf %s "(cached) " >&6
4650 else $as_nop
4651   ac_check_lib_save_LIBS=$LIBS
4652 LIBS="-lpcp  $LIBS"
4653 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4654 /* end confdefs.h.  */
4655
4656 /* Override any GCC internal prototype to avoid an error.
4657    Use char because int might match the return type of a GCC
4658    builtin and then its argument prototype would still apply.  */
4659 char pmGetVersion ();
4660 int
4661 main (void)
4662 {
4663 return pmGetVersion ();
4664   ;
4665   return 0;
4666 }
4667 _ACEOF
4668 if ac_fn_c_try_link "$LINENO"
4669 then :
4670   ac_cv_lib_pcp_pmGetVersion=yes
4671 else $as_nop
4672   ac_cv_lib_pcp_pmGetVersion=no
4673 fi
4674 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4675     conftest$ac_exeext conftest.$ac_ext
4676 LIBS=$ac_check_lib_save_LIBS
4677 fi
4678 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_pcp_pmGetVersion" >&5
4679 printf "%s\n" "$ac_cv_lib_pcp_pmGetVersion" >&6; }
4680 if test "x$ac_cv_lib_pcp_pmGetVersion" = xyes
4681 then :
4682   LFPCP="-lpcp -lpcp_import"
4683 else $as_nop
4684   HAVE_PCP="n"
4685 fi
4686
4687         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for PCP libraries" >&5
4688 printf %s "checking for PCP libraries... " >&6; }
4689         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4690 /* end confdefs.h.  */
4691 #include <pcp/pmapi.h>
4692                                              #include <pcp/import.h>
4693 int
4694 main (void)
4695 {
4696 pmiEnd();
4697   ;
4698   return 0;
4699 }
4700 _ACEOF
4701 if ac_fn_c_try_compile "$LINENO"
4702 then :
4703   PCP=yes; DFPCP="-DHAVE_PCP"
4704 else $as_nop
4705   HAVE_PCP="n"; PCP=no
4706 fi
4707 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4708         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $PCP" >&5
4709 printf "%s\n" "$PCP" >&6; }
4710 fi
4711
4712
4713
4714
4715 if test $HAVE_PCP_IMPL_H; then
4716    PCP_IMPL="y"
4717 else
4718    PCP_IMPL="n"
4719 fi
4720
4721
4722 # Should we check for lm_sensors?
4723 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sensors support" >&5
4724 printf %s "checking for sensors support... " >&6; }
4725 # Check whether --enable-sensors was given.
4726 if test ${enable_sensors+y}
4727 then :
4728   enableval=$enable_sensors; SENSORS=$enableval
4729 else $as_nop
4730   SENSORS=yes
4731 fi
4732
4733 if test $SENSORS != "yes"; then
4734         SENSORS_SUPPORT="n"
4735 else
4736         SENSORS_SUPPORT="y"
4737 fi
4738 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SENSORS" >&5
4739 printf "%s\n" "$SENSORS" >&6; }
4740
4741 # Check for lm_sensors library
4742 LFSENSORS=""
4743 DFSENSORS=""
4744 HAVE_SENSORS="n"
4745 if test $SENSORS_SUPPORT = "y"; then
4746         SENSORS=no
4747         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sensors_get_detected_chips in -lsensors" >&5
4748 printf %s "checking for sensors_get_detected_chips in -lsensors... " >&6; }
4749 if test ${ac_cv_lib_sensors_sensors_get_detected_chips+y}
4750 then :
4751   printf %s "(cached) " >&6
4752 else $as_nop
4753   ac_check_lib_save_LIBS=$LIBS
4754 LIBS="-lsensors  $LIBS"
4755 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4756 /* end confdefs.h.  */
4757
4758 /* Override any GCC internal prototype to avoid an error.
4759    Use char because int might match the return type of a GCC
4760    builtin and then its argument prototype would still apply.  */
4761 char sensors_get_detected_chips ();
4762 int
4763 main (void)
4764 {
4765 return sensors_get_detected_chips ();
4766   ;
4767   return 0;
4768 }
4769 _ACEOF
4770 if ac_fn_c_try_link "$LINENO"
4771 then :
4772   ac_cv_lib_sensors_sensors_get_detected_chips=yes
4773 else $as_nop
4774   ac_cv_lib_sensors_sensors_get_detected_chips=no
4775 fi
4776 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4777     conftest$ac_exeext conftest.$ac_ext
4778 LIBS=$ac_check_lib_save_LIBS
4779 fi
4780 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sensors_sensors_get_detected_chips" >&5
4781 printf "%s\n" "$ac_cv_lib_sensors_sensors_get_detected_chips" >&6; }
4782 if test "x$ac_cv_lib_sensors_sensors_get_detected_chips" = xyes
4783 then :
4784   LFSENSORS="-lsensors"
4785 else $as_nop
4786   HAVE_SENSORS="n"
4787 fi
4788
4789         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sensors library" >&5
4790 printf %s "checking for sensors library... " >&6; }
4791         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4792 /* end confdefs.h.  */
4793 #include <sensors/sensors.h>
4794                                              #include <sensors/error.h>
4795 int
4796 main (void)
4797 {
4798 sensors_cleanup();
4799   ;
4800   return 0;
4801 }
4802 _ACEOF
4803 if ac_fn_c_try_compile "$LINENO"
4804 then :
4805   SENSORS=yes; HAVE_SENSORS="y"; DFSENSORS="-DHAVE_SENSORS"
4806 else $as_nop
4807   HAVE_SENSORS="n"; SENSORS=no
4808 fi
4809 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4810         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SENSORS" >&5
4811 printf "%s\n" "$SENSORS" >&6; }
4812 fi
4813
4814
4815
4816
4817 # Check for 32-bit version of lm_sensors library
4818 LFSENSORS32=""
4819 DFSENSORS32=""
4820 HAVE_SENSORS32="n"
4821 if test $SENSORS_SUPPORT = "y"; then
4822         CFLAGS_SAVE=$CFLAGS
4823         CFLAGS+=" -m32"
4824         LDFLAGS_SAVE=$LDFLAGS
4825         LDFLAGS+=" -lsensors"
4826         SENSORS=no
4827 #       Check for another function to avoid using cached result
4828         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sensors_cleanup in -lsensors" >&5
4829 printf %s "checking for sensors_cleanup in -lsensors... " >&6; }
4830 if test ${ac_cv_lib_sensors_sensors_cleanup+y}
4831 then :
4832   printf %s "(cached) " >&6
4833 else $as_nop
4834   ac_check_lib_save_LIBS=$LIBS
4835 LIBS="-lsensors  $LIBS"
4836 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4837 /* end confdefs.h.  */
4838
4839 /* Override any GCC internal prototype to avoid an error.
4840    Use char because int might match the return type of a GCC
4841    builtin and then its argument prototype would still apply.  */
4842 char sensors_cleanup ();
4843 int
4844 main (void)
4845 {
4846 return sensors_cleanup ();
4847   ;
4848   return 0;
4849 }
4850 _ACEOF
4851 if ac_fn_c_try_link "$LINENO"
4852 then :
4853   ac_cv_lib_sensors_sensors_cleanup=yes
4854 else $as_nop
4855   ac_cv_lib_sensors_sensors_cleanup=no
4856 fi
4857 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4858     conftest$ac_exeext conftest.$ac_ext
4859 LIBS=$ac_check_lib_save_LIBS
4860 fi
4861 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_sensors_sensors_cleanup" >&5
4862 printf "%s\n" "$ac_cv_lib_sensors_sensors_cleanup" >&6; }
4863 if test "x$ac_cv_lib_sensors_sensors_cleanup" = xyes
4864 then :
4865   LFSENSORS32="-lsensors"
4866 else $as_nop
4867   HAVE_SENSORS32="n"
4868 fi
4869
4870         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for sensors 32-bit library" >&5
4871 printf %s "checking for sensors 32-bit library... " >&6; }
4872         cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4873 /* end confdefs.h.  */
4874 #include <sensors/sensors.h>
4875                                           #include <sensors/error.h>
4876 int
4877 main (void)
4878 {
4879 sensors_cleanup();
4880   ;
4881   return 0;
4882 }
4883 _ACEOF
4884 if ac_fn_c_try_link "$LINENO"
4885 then :
4886   SENSORS=yes; HAVE_SENSORS32="y"; DFSENSORS32="-DHAVE_SENSORS32"
4887 else $as_nop
4888   HAVE_SENSORS32="n"; SENSORS=no
4889 fi
4890 rm -f core conftest.err conftest.$ac_objext conftest.beam \
4891     conftest$ac_exeext conftest.$ac_ext
4892         { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SENSORS" >&5
4893 printf "%s\n" "$SENSORS" >&6; }
4894         CFLAGS=$CFLAGS_SAVE
4895         LDFLAGS=$LDFLAGS_SAVE
4896 fi
4897
4898
4899
4900
4901 # Check for 32-bit system libraries
4902 TGLIB32=no
4903 CFLAGS_SAVE=$CFLAGS
4904 CFLAGS+=" -m32"
4905 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for 32-bit system libraries" >&5
4906 printf %s "checking for 32-bit system libraries... " >&6; }
4907 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4908 /* end confdefs.h.  */
4909 #include <stdio.h>
4910 int
4911 main (void)
4912 {
4913 printf("%d\n", sizeof(long));
4914   ;
4915   return 0;
4916 }
4917 _ACEOF
4918 if ac_fn_c_try_compile "$LINENO"
4919 then :
4920   TGLIB32=yes
4921 else $as_nop
4922   TGLIB32=no
4923 fi
4924 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
4925 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $TGLIB32" >&5
4926 printf "%s\n" "$TGLIB32" >&6; }
4927 CFLAGS=$CFLAGS_SAVE
4928
4929
4930 echo .
4931 echo Check system services:
4932 echo .
4933 # Check whether --enable-largefile was given.
4934 if test ${enable_largefile+y}
4935 then :
4936   enableval=$enable_largefile;
4937 fi
4938
4939 if test "$enable_largefile" != no; then
4940
4941   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for special C compiler options needed for large files" >&5
4942 printf %s "checking for special C compiler options needed for large files... " >&6; }
4943 if test ${ac_cv_sys_largefile_CC+y}
4944 then :
4945   printf %s "(cached) " >&6
4946 else $as_nop
4947   ac_cv_sys_largefile_CC=no
4948      if test "$GCC" != yes; then
4949        ac_save_CC=$CC
4950        while :; do
4951          # IRIX 6.2 and later do not support large files by default,
4952          # so use the C compiler's -n32 option if that helps.
4953          cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4954 /* end confdefs.h.  */
4955 #include <sys/types.h>
4956  /* Check that off_t can represent 2**63 - 1 correctly.
4957     We can't simply define LARGE_OFF_T to be 9223372036854775807,
4958     since some C++ compilers masquerading as C compilers
4959     incorrectly reject 9223372036854775807.  */
4960 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
4961   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
4962                        && LARGE_OFF_T % 2147483647 == 1)
4963                       ? 1 : -1];
4964 int
4965 main (void)
4966 {
4967
4968   ;
4969   return 0;
4970 }
4971 _ACEOF
4972          if ac_fn_c_try_compile "$LINENO"
4973 then :
4974   break
4975 fi
4976 rm -f core conftest.err conftest.$ac_objext conftest.beam
4977          CC="$CC -n32"
4978          if ac_fn_c_try_compile "$LINENO"
4979 then :
4980   ac_cv_sys_largefile_CC=' -n32'; break
4981 fi
4982 rm -f core conftest.err conftest.$ac_objext conftest.beam
4983          break
4984        done
4985        CC=$ac_save_CC
4986        rm -f conftest.$ac_ext
4987     fi
4988 fi
4989 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_largefile_CC" >&5
4990 printf "%s\n" "$ac_cv_sys_largefile_CC" >&6; }
4991   if test "$ac_cv_sys_largefile_CC" != no; then
4992     CC=$CC$ac_cv_sys_largefile_CC
4993   fi
4994
4995   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _FILE_OFFSET_BITS value needed for large files" >&5
4996 printf %s "checking for _FILE_OFFSET_BITS value needed for large files... " >&6; }
4997 if test ${ac_cv_sys_file_offset_bits+y}
4998 then :
4999   printf %s "(cached) " >&6
5000 else $as_nop
5001   while :; do
5002   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5003 /* end confdefs.h.  */
5004 #include <sys/types.h>
5005  /* Check that off_t can represent 2**63 - 1 correctly.
5006     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5007     since some C++ compilers masquerading as C compilers
5008     incorrectly reject 9223372036854775807.  */
5009 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
5010   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5011                        && LARGE_OFF_T % 2147483647 == 1)
5012                       ? 1 : -1];
5013 int
5014 main (void)
5015 {
5016
5017   ;
5018   return 0;
5019 }
5020 _ACEOF
5021 if ac_fn_c_try_compile "$LINENO"
5022 then :
5023   ac_cv_sys_file_offset_bits=no; break
5024 fi
5025 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5026   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5027 /* end confdefs.h.  */
5028 #define _FILE_OFFSET_BITS 64
5029 #include <sys/types.h>
5030  /* Check that off_t can represent 2**63 - 1 correctly.
5031     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5032     since some C++ compilers masquerading as C compilers
5033     incorrectly reject 9223372036854775807.  */
5034 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
5035   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5036                        && LARGE_OFF_T % 2147483647 == 1)
5037                       ? 1 : -1];
5038 int
5039 main (void)
5040 {
5041
5042   ;
5043   return 0;
5044 }
5045 _ACEOF
5046 if ac_fn_c_try_compile "$LINENO"
5047 then :
5048   ac_cv_sys_file_offset_bits=64; break
5049 fi
5050 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5051   ac_cv_sys_file_offset_bits=unknown
5052   break
5053 done
5054 fi
5055 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_file_offset_bits" >&5
5056 printf "%s\n" "$ac_cv_sys_file_offset_bits" >&6; }
5057 case $ac_cv_sys_file_offset_bits in #(
5058   no | unknown) ;;
5059   *)
5060 printf "%s\n" "#define _FILE_OFFSET_BITS $ac_cv_sys_file_offset_bits" >>confdefs.h
5061 ;;
5062 esac
5063 rm -rf conftest*
5064   if test $ac_cv_sys_file_offset_bits = unknown; then
5065     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for _LARGE_FILES value needed for large files" >&5
5066 printf %s "checking for _LARGE_FILES value needed for large files... " >&6; }
5067 if test ${ac_cv_sys_large_files+y}
5068 then :
5069   printf %s "(cached) " >&6
5070 else $as_nop
5071   while :; do
5072   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5073 /* end confdefs.h.  */
5074 #include <sys/types.h>
5075  /* Check that off_t can represent 2**63 - 1 correctly.
5076     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5077     since some C++ compilers masquerading as C compilers
5078     incorrectly reject 9223372036854775807.  */
5079 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
5080   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5081                        && LARGE_OFF_T % 2147483647 == 1)
5082                       ? 1 : -1];
5083 int
5084 main (void)
5085 {
5086
5087   ;
5088   return 0;
5089 }
5090 _ACEOF
5091 if ac_fn_c_try_compile "$LINENO"
5092 then :
5093   ac_cv_sys_large_files=no; break
5094 fi
5095 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5096   cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5097 /* end confdefs.h.  */
5098 #define _LARGE_FILES 1
5099 #include <sys/types.h>
5100  /* Check that off_t can represent 2**63 - 1 correctly.
5101     We can't simply define LARGE_OFF_T to be 9223372036854775807,
5102     since some C++ compilers masquerading as C compilers
5103     incorrectly reject 9223372036854775807.  */
5104 #define LARGE_OFF_T (((off_t) 1 << 31 << 31) - 1 + ((off_t) 1 << 31 << 31))
5105   int off_t_is_large[(LARGE_OFF_T % 2147483629 == 721
5106                        && LARGE_OFF_T % 2147483647 == 1)
5107                       ? 1 : -1];
5108 int
5109 main (void)
5110 {
5111
5112   ;
5113   return 0;
5114 }
5115 _ACEOF
5116 if ac_fn_c_try_compile "$LINENO"
5117 then :
5118   ac_cv_sys_large_files=1; break
5119 fi
5120 rm -f core conftest.err conftest.$ac_objext conftest.beam conftest.$ac_ext
5121   ac_cv_sys_large_files=unknown
5122   break
5123 done
5124 fi
5125 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_sys_large_files" >&5
5126 printf "%s\n" "$ac_cv_sys_large_files" >&6; }
5127 case $ac_cv_sys_large_files in #(
5128   no | unknown) ;;
5129   *)
5130 printf "%s\n" "#define _LARGE_FILES $ac_cv_sys_large_files" >>confdefs.h
5131 ;;
5132 esac
5133 rm -rf conftest*
5134   fi
5135 fi
5136
5137
5138 echo .
5139 echo Check configuration:
5140 echo .
5141 # Check arguments used
5142 #
5143 # Optional Features:
5144 #  --disable-FEATURE        do not include FEATURE (same as --enable-FEATURE=no)
5145 #  --enable-FEATURE[=ARG]   include FEATURE [ARG=yes]
5146 #  --disable-largefile      omit support for large files
5147 #  --disable-nls            disable National Language Support
5148 #  --disable-file-attr      don't set attributes on files being installed
5149 #  --enable-install-cron    tell sysstat to install cron scripts
5150 #  --collect-all            tell sadc to collect all possible data
5151 #  --enable-clean-sa-dir    clean system activity directory
5152 #  --disable-compress-manpg do not compress manual pages when installed
5153 #  --enable-debuginfo       enable debug output (--debuginfo option)
5154 #  --disable-documentation  do not install documentation (man pages...)
5155 #  --disable-sensors        do not link against libsensors even if available
5156 #  --disable-pcp            do not link against PCP libraries even if available
5157 #  --disable-stripping      do not strip object files
5158 #  --enable-copy-only       only copy files when installing sysstat
5159 #  --enable-use-crond       use standard cron daemon
5160 #  --enable-lto             compile with Link Time Optimizations
5161 #
5162 # Some influential environment variables:
5163 #  rcdir         directory where startup scripts are installed
5164 #  sa_lib_dir    sadc, sa1 and sa2 directory
5165 #  sa_dir        system activity daily datafiles directory
5166 #  sar_dir       sar binary location. Used only in sa2 shell script
5167 #  conf_dir      sysstat configuration directory (default is /etc/sysconfig)
5168 #  conf_file     sysstat configuration file (default is sysstat)
5169 #  history       number of daily datafiles to keep (default value is 7)
5170 #  delay_range   maximum delay (in seconds) to wait before sa2 script generates its reports
5171 #  compressafter number of days after which datafiles are compressed
5172 #  man_group     group for man pages
5173 #  cron_owner    crontab owner
5174 #  cron_interval crontab sampling interval
5175 #  sadc_options  options to be passed to sadc
5176 #
5177 # Fine tuning the installation directories:
5178 #  --mandir=DIR           man documentation directory [PREFIX/man]
5179 #  --docdir=DIR           other documentation directory [PREFIX/share/doc]
5180 #
5181 # Installation directories:
5182 #  --prefix=PREFIX         install architecture-independent files in PREFIX
5183 #                            [/usr/local]
5184 #  --exec-prefix=EPREFIX   install architecture-dependent files in EPREFIX
5185 #                            [PREFIX]
5186
5187 # Set directories
5188 if test -d /etc/init.d && test ! -L /etc/init.d; then
5189    if test -d /etc/init.d/rc2.d; then
5190       RC_DIR=/etc/init.d
5191       INITD_DIR=.
5192    else
5193       RC_DIR=/etc
5194       INITD_DIR=init.d
5195    fi
5196    INIT_DIR=/etc/init.d
5197 elif test -d /sbin/init.d; then
5198    RC_DIR=/sbin/init.d
5199    INIT_DIR=/sbin/init.d
5200    INITD_DIR=.
5201 else
5202    RC_DIR=/etc/rc.d
5203    INIT_DIR=/etc/rc.d/init.d
5204    INITD_DIR=init.d
5205 fi
5206
5207 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking run-commands directory" >&5
5208 printf %s "checking run-commands directory... " >&6; }
5209
5210 if test x$rcdir != x""; then
5211         # Override previous rc directories values
5212         RC_DIR=$rcdir
5213         INIT_DIR=$rcdir/init.d
5214         INITD_DIR=init.d
5215 fi
5216 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $RC_DIR" >&5
5217 printf "%s\n" "$RC_DIR" >&6; }
5218 if test ! -d $RC_DIR; then
5219         echo "INFO: Directory ${RC_DIR} doesn't exist."
5220         echo "INFO: Startup scripts won't be installed."
5221 fi
5222
5223
5224
5225
5226
5227 if test $HAVE_SYS_SYSMACROS_H; then
5228    SYSMACROS="y"
5229 else
5230    SYSMACROS="n"
5231 fi
5232
5233
5234 if test $HAVE_LINUX_SCHED_H; then
5235    LINUX_SCHED="y"
5236 else
5237    LINUX_SCHED="n"
5238 fi
5239
5240
5241 if test $HAVE_SYS_PARAM_H; then
5242    SYSPARAM="y"
5243 else
5244    SYSPARAM="n"
5245 fi
5246
5247
5248 # Set sadc directory
5249 if test $prefix != "NONE"; then
5250    AuxPrefix=$prefix
5251 else
5252    AuxPrefix=/usr/local
5253 fi
5254
5255 SADC_DIR=$AuxPrefix/lib
5256 if test -d $AuxPrefix/lib64; then
5257     # Verify that this OS is really 64 bit
5258     BITS=$(getconf LONG_BIT 2>/dev/null)
5259     if test $? = 0; then
5260         if test $BITS = 64; then
5261             SADC_DIR=$AuxPrefix/lib64
5262         fi
5263     else
5264         # Fallback: look for lm (long mode) flag to know if CPU is 64 bit
5265         grep " lm " /proc/cpuinfo >/dev/null 2>&1
5266         if test $? = 0; then
5267             SADC_DIR=$AuxPrefix/lib64
5268         fi
5269     fi
5270 fi
5271
5272 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking sadc directory" >&5
5273 printf %s "checking sadc directory... " >&6; }
5274
5275 if test x$sa_lib_dir != x""; then
5276    SA_LIB_DIR=$sa_lib_dir
5277 else
5278    SA_LIB_DIR=$SADC_DIR/sa
5279 fi
5280 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SA_LIB_DIR" >&5
5281 printf "%s\n" "$SA_LIB_DIR" >&6; }
5282 if test ! -d $SA_LIB_DIR; then
5283    echo "INFO: Directory ${SA_LIB_DIR} will be created during installation stage."
5284 fi
5285
5286
5287 # Set system activity directory
5288 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking system activity directory" >&5
5289 printf %s "checking system activity directory... " >&6; }
5290
5291 if test x$sa_dir != x""; then
5292    SA_DIR=$sa_dir
5293 else
5294    SA_DIR=/var/log/sa
5295 fi
5296 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SA_DIR" >&5
5297 printf "%s\n" "$SA_DIR" >&6; }
5298 if test ! -d $SA_DIR; then
5299    echo "INFO: Directory ${SA_DIR} will be created during installation stage."
5300 fi
5301
5302
5303 # sar binary location. Used only in sa2 shell script
5304 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking sar directory" >&5
5305 printf %s "checking sar directory... " >&6; }
5306
5307 if test x$sar_dir != x""; then
5308    SAR_DIR=$sar_dir
5309 else
5310    SAR_DIR=
5311 fi
5312 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SAR_DIR" >&5
5313 printf "%s\n" "$SAR_DIR" >&6; }
5314
5315
5316 # Set configuration directory
5317 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking sysstat configuration directory" >&5
5318 printf %s "checking sysstat configuration directory... " >&6; }
5319
5320 if test x$conf_dir != x""; then
5321    SYSCONFIG_DIR=$conf_dir
5322 else
5323    SYSCONFIG_DIR=/etc/sysconfig
5324 fi
5325 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SYSCONFIG_DIR" >&5
5326 printf "%s\n" "$SYSCONFIG_DIR" >&6; }
5327 if test ! -d $SYSCONFIG_DIR; then
5328    echo "INFO: Directory ${SYSCONFIG_DIR} will be created during installation stage."
5329 fi
5330
5331
5332 # Set configuration directory
5333 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking sysstat configuration file" >&5
5334 printf %s "checking sysstat configuration file... " >&6; }
5335
5336 if test x$conf_file != x""; then
5337    SYSCONFIG_FILE=$conf_file
5338 else
5339    SYSCONFIG_FILE=sysstat
5340 fi
5341 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SYSCONFIG_FILE" >&5
5342 printf "%s\n" "$SYSCONFIG_FILE" >&6; }
5343
5344
5345 # National Language Support
5346 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking National Language Support" >&5
5347 printf %s "checking National Language Support... " >&6; }
5348 # Check whether --enable-nls was given.
5349 if test ${enable_nls+y}
5350 then :
5351   enableval=$enable_nls; AUX_NLS=$enableval
5352 else $as_nop
5353   AUX_NLS=yes
5354 fi
5355
5356 if test $AUX_NLS != "no" && test $HAVE_LIBINTL_H && test $HAVE_LOCALE_H; then
5357    AUX_NLS="yes"
5358    NLS="y"
5359 else
5360    AUX_NLS="no"
5361    NLS="n"
5362 fi
5363 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AUX_NLS" >&5
5364 printf "%s\n" "$AUX_NLS" >&6; }
5365 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for gettext in -lintl" >&5
5366 printf %s "checking for gettext in -lintl... " >&6; }
5367 if test ${ac_cv_lib_intl_gettext+y}
5368 then :
5369   printf %s "(cached) " >&6
5370 else $as_nop
5371   ac_check_lib_save_LIBS=$LIBS
5372 LIBS="-lintl  $LIBS"
5373 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5374 /* end confdefs.h.  */
5375
5376 /* Override any GCC internal prototype to avoid an error.
5377    Use char because int might match the return type of a GCC
5378    builtin and then its argument prototype would still apply.  */
5379 char gettext ();
5380 int
5381 main (void)
5382 {
5383 return gettext ();
5384   ;
5385   return 0;
5386 }
5387 _ACEOF
5388 if ac_fn_c_try_link "$LINENO"
5389 then :
5390   ac_cv_lib_intl_gettext=yes
5391 else $as_nop
5392   ac_cv_lib_intl_gettext=no
5393 fi
5394 rm -f core conftest.err conftest.$ac_objext conftest.beam \
5395     conftest$ac_exeext conftest.$ac_ext
5396 LIBS=$ac_check_lib_save_LIBS
5397 fi
5398 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_intl_gettext" >&5
5399 printf "%s\n" "$ac_cv_lib_intl_gettext" >&6; }
5400 if test "x$ac_cv_lib_intl_gettext" = xyes
5401 then :
5402   LFINTL="-lintl"
5403 fi
5404
5405
5406 LACKING_GETTEXT="n"
5407 if test $AUX_NLS = "yes" &&  test x$MSGFMT != x"msgfmt"; then
5408    echo "WARNING: msgfmt command not found!"
5409    LACKING_GETTEXT="y"
5410 fi
5411 if test $AUX_NLS = "yes" &&  test x$XGETTEXT != x"xgettext"; then
5412    echo "WARNING: xgettext command not found!"
5413    LACKING_GETTEXT="y"
5414 fi
5415 if test $AUX_NLS = "yes" &&  test x$MSGMERGE != x"msgmerge"; then
5416    echo "WARNING: msgmerge command not found!"
5417    LACKING_GETTEXT="y"
5418 fi
5419 if test $NLS = "y" && test $LACKING_GETTEXT = "y"; then
5420    echo "WARNING: Disabling NLS"
5421    NLS="n"
5422 fi
5423
5424
5425 # Link Time Optimization
5426 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking Link Time Optimization support" >&5
5427 printf %s "checking Link Time Optimization support... " >&6; }
5428 # Check whether --enable-lto was given.
5429 if test ${enable_lto+y}
5430 then :
5431   enableval=$enable_lto; AUX_LTO=$enableval
5432 else $as_nop
5433   AUX_LTO=no
5434 fi
5435
5436 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AUX_LTO" >&5
5437 printf "%s\n" "$AUX_LTO" >&6; }
5438 LTO="n"
5439 if test $AUX_LTO = "yes"; then
5440         # Extract the first word of "gcc-ar", so it can be a program name with args.
5441 set dummy gcc-ar; ac_word=$2
5442 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5443 printf %s "checking for $ac_word... " >&6; }
5444 if test ${ac_cv_prog_GCC_AR+y}
5445 then :
5446   printf %s "(cached) " >&6
5447 else $as_nop
5448   if test -n "$GCC_AR"; then
5449   ac_cv_prog_GCC_AR="$GCC_AR" # Let the user override the test.
5450 else
5451 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5452 for as_dir in $PATH
5453 do
5454   IFS=$as_save_IFS
5455   case $as_dir in #(((
5456     '') as_dir=./ ;;
5457     */) ;;
5458     *) as_dir=$as_dir/ ;;
5459   esac
5460     for ac_exec_ext in '' $ac_executable_extensions; do
5461   if as_fn_executable_p "$as_dir$ac_word$ac_exec_ext"; then
5462     ac_cv_prog_GCC_AR="gcc-ar"
5463     printf "%s\n" "$as_me:${as_lineno-$LINENO}: found $as_dir$ac_word$ac_exec_ext" >&5
5464     break 2
5465   fi
5466 done
5467   done
5468 IFS=$as_save_IFS
5469
5470 fi
5471 fi
5472 GCC_AR=$ac_cv_prog_GCC_AR
5473 if test -n "$GCC_AR"; then
5474   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $GCC_AR" >&5
5475 printf "%s\n" "$GCC_AR" >&6; }
5476 else
5477   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: no" >&5
5478 printf "%s\n" "no" >&6; }
5479 fi
5480
5481
5482         if test x$GCC_AR != x"gcc-ar"; then
5483                 echo "WARNING: gcc-ar command not found! Disabling LTO support"
5484                 AUX_LTO="no"
5485         else
5486                 LTO="y"
5487         fi
5488 fi
5489
5490
5491 # Data history to keep by sa2
5492 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking number of daily data files to keep" >&5
5493 printf %s "checking number of daily data files to keep... " >&6; }
5494
5495 if test x$history = x""; then
5496    HISTORY=7
5497 else
5498    HISTORY=$history
5499 fi
5500 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $HISTORY" >&5
5501 printf "%s\n" "$HISTORY" >&6; }
5502
5503
5504 # Number of days after which datafiles are compressed
5505 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking number of days after which data files are compressed" >&5
5506 printf %s "checking number of days after which data files are compressed... " >&6; }
5507
5508 if test x$compressafter = x""; then
5509    COMPRESSAFTER=10
5510 else
5511    COMPRESSAFTER=$compressafter
5512 fi
5513 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $COMPRESSAFTER" >&5
5514 printf "%s\n" "$COMPRESSAFTER" >&6; }
5515
5516
5517 # Random delay to wait before sa2 script runs
5518 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking random delay to wait before sa2 script runs" >&5
5519 printf %s "checking random delay to wait before sa2 script runs... " >&6; }
5520
5521 if test x$delay_range = x""; then
5522    DELAY_RANGE=0
5523 else
5524    DELAY_RANGE=$delay_range
5525 fi
5526 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $DELAY_RANGE" >&5
5527 printf "%s\n" "$DELAY_RANGE" >&6; }
5528
5529
5530 # Manual page group
5531 grep ^man: /etc/group >/dev/null 2>&1
5532 if test $? = 0; then
5533    GRP=man
5534 else
5535    GRP=root
5536 fi
5537
5538 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking group for manual pages" >&5
5539 printf %s "checking group for manual pages... " >&6; }
5540
5541 if test x$man_group = x""; then
5542    MAN_GROUP=$GRP
5543    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAN_GROUP" >&5
5544 printf "%s\n" "$MAN_GROUP" >&6; }
5545 else
5546    grep ^$man_group: /etc/group >/dev/null 2>&1
5547    if test $? = 1; then
5548       MAN_GROUP=$GRP
5549       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAN_GROUP" >&5
5550 printf "%s\n" "$MAN_GROUP" >&6; }
5551       echo "WARNING: Group ${man_group} not found: Using ${GRP} instead"
5552    else
5553       MAN_GROUP=$man_group
5554       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $MAN_GROUP" >&5
5555 printf "%s\n" "$MAN_GROUP" >&6; }
5556    fi
5557 fi
5558
5559
5560 # Don't set attributes on files being installed?
5561 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether attributes should not be set on files being installed" >&5
5562 printf %s "checking whether attributes should not be set on files being installed... " >&6; }
5563 # Check whether --enable-file-attr was given.
5564 if test ${enable_file_attr+y}
5565 then :
5566   enableval=$enable_file_attr; AUX_IMG=$enableval
5567 else $as_nop
5568   AUX_IMG=yes
5569 fi
5570
5571 if test $AUX_IMG != "no"; then
5572    IGNORE_FILE_ATTRIBUTES=n
5573    AUX_IMG=no
5574 else
5575    IGNORE_FILE_ATTRIBUTES=y
5576    AUX_IMG=yes
5577 fi
5578 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AUX_IMG" >&5
5579 printf "%s\n" "$AUX_IMG" >&6; }
5580
5581
5582 # Compress manual pages?
5583 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether manual pages should be compressed" >&5
5584 printf %s "checking whether manual pages should be compressed... " >&6; }
5585 # Check whether --enable-compress-manpg was given.
5586 if test ${enable_compress_manpg+y}
5587 then :
5588   enableval=$enable_compress_manpg; AUX_MPG=$enableval
5589 else $as_nop
5590   AUX_MPG=yes
5591 fi
5592
5593 if test $AUX_MPG != "yes"; then
5594    COMPRESS_MANPG=n
5595 else
5596    COMPRESS_MANPG=y
5597 fi
5598 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AUX_MPG" >&5
5599 printf "%s\n" "$AUX_MPG" >&6; }
5600
5601
5602 # Check whether sa directory should be cleaned
5603 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether system activity directory should be cleaned" >&5
5604 printf %s "checking whether system activity directory should be cleaned... " >&6; }
5605 # Check whether --enable-clean-sa-dir was given.
5606 if test ${enable_clean_sa_dir+y}
5607 then :
5608   enableval=$enable_clean_sa_dir; AUX_CSD=$enableval
5609 else $as_nop
5610   AUX_CSD=no
5611 fi
5612
5613 if test $AUX_CSD != "yes"; then
5614    CLEAN_SA_DIR=n
5615    AUX_CSD=no
5616 else
5617    CLEAN_SA_DIR=y
5618 fi
5619 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AUX_CSD" >&5
5620 printf "%s\n" "$AUX_CSD" >&6; }
5621
5622
5623 # Start crontab
5624 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether cron should start sar automatically" >&5
5625 printf %s "checking whether cron should start sar automatically... " >&6; }
5626 # Check whether --enable-install-cron was given.
5627 if test ${enable_install_cron+y}
5628 then :
5629   enableval=$enable_install_cron; INSTALL_CRON=$enableval
5630 else $as_nop
5631   INSTALL_CRON=n
5632 fi
5633
5634 if test $INSTALL_CRON != "yes"; then
5635    INSTALL_CRON=n
5636    AUX_CRON=no
5637 else
5638    INSTALL_CRON=y
5639    AUX_CRON=yes
5640 fi
5641 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AUX_CRON" >&5
5642 printf "%s\n" "$AUX_CRON" >&6; }
5643
5644
5645 # Crontab owner
5646 CUSR="root"
5647 if test $INSTALL_CRON = "y"; then
5648    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking crontab owner" >&5
5649 printf %s "checking crontab owner... " >&6; }
5650
5651    if test x$cron_owner = x""; then
5652       CRON_OWNER=$CUSR
5653       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CRON_OWNER" >&5
5654 printf "%s\n" "$CRON_OWNER" >&6; }
5655    else
5656       grep ^$cron_owner: /etc/passwd >/dev/null 2>&1
5657       if test $? = 1; then
5658          CRON_OWNER=$CUSR;
5659          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CRON_OWNER" >&5
5660 printf "%s\n" "$CRON_OWNER" >&6; }
5661          echo "WARNING: User ${cron_owner} not found: Using ${CUSR} instead."
5662       else
5663          CRON_OWNER=$cron_owner
5664          { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CRON_OWNER" >&5
5665 printf "%s\n" "$CRON_OWNER" >&6; }
5666       fi
5667    fi
5668    echo "INFO: Crontab for ${CRON_OWNER} will be saved in current directory if necessary"
5669    if test $CRON_OWNER = "root"; then
5670       SU_C_OWNER=""
5671       QUOTE=""
5672       REM_CHOWN="# REM_CHOWN"
5673    else
5674       SU_C_OWNER="su $CRON_OWNER -c "
5675       QUOTE=\"
5676       # " (ignore this line)
5677       REM_CHOWN=$CHOWN
5678    fi
5679
5680 #  Check whether we should use the standard cron daemon
5681    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether we should use the standard cron daemon" >&5
5682 printf %s "checking whether we should use the standard cron daemon... " >&6; }
5683    # Check whether --enable-use-crond was given.
5684 if test ${enable_use_crond+y}
5685 then :
5686   enableval=$enable_use_crond; UCROND=$enableval
5687 else $as_nop
5688   UCROND=no
5689 fi
5690
5691    if test $UCROND != "yes"; then
5692       USE_CROND=n
5693       UCROND=no
5694    else
5695       USE_CROND=y
5696    fi
5697    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $UCROND" >&5
5698 printf "%s\n" "$UCROND" >&6; }
5699
5700
5701 #  Crontab interval
5702    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking crontab interval" >&5
5703 printf %s "checking crontab interval... " >&6; }
5704
5705    if test x$cron_interval = x""; then
5706       CRON_INTERVAL=10
5707    else
5708       CRON_INTERVAL=$cron_interval
5709    fi
5710    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $CRON_INTERVAL" >&5
5711 printf "%s\n" "$CRON_INTERVAL" >&6; }
5712    CRON_INTERVAL_SEC=`expr ${CRON_INTERVAL} \* 60`
5713    CRON_COUNT=`expr 60 / ${CRON_INTERVAL}`
5714
5715 #  Check whether sadc should collect all possible activities
5716    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether sadc should collect all possible activities" >&5
5717 printf %s "checking whether sadc should collect all possible activities... " >&6; }
5718    # Check whether --enable-collect-all was given.
5719 if test ${enable_collect_all+y}
5720 then :
5721   enableval=$enable_collect_all; COLLECT_ALL=$enableval
5722 else $as_nop
5723   COLLECT_ALL=n
5724 fi
5725
5726    if test $COLLECT_ALL != "yes"; then
5727       COLLECT_ALL=""
5728       AUX_COLL=no
5729    else
5730       COLLECT_ALL="-S XALL"
5731       AUX_COLL=yes
5732    fi
5733    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AUX_COLL" >&5
5734 printf "%s\n" "$AUX_COLL" >&6; }
5735
5736    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking options to be passed to sadc" >&5
5737 printf %s "checking options to be passed to sadc... " >&6; }
5738
5739    if test x"$sadc_options" != x""; then
5740         SADC_OPT="$sadc_options"
5741    else
5742         SADC_OPT=
5743    fi
5744    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $SADC_OPT" >&5
5745 printf "%s\n" "$SADC_OPT" >&6; }
5746
5747
5748 #  Check whether files should only be copied
5749    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether files should only be copied" >&5
5750 printf %s "checking whether files should only be copied... " >&6; }
5751    # Check whether --enable-copy-only was given.
5752 if test ${enable_copy_only+y}
5753 then :
5754   enableval=$enable_copy_only; OCOPY=$enableval
5755 else $as_nop
5756   OCOPY=no
5757 fi
5758
5759    if test $OCOPY != "yes"; then
5760       COPY_ONLY=n
5761       OCOPY=no
5762    else
5763       COPY_ONLY=y
5764    fi
5765    { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $OCOPY" >&5
5766 printf "%s\n" "$OCOPY" >&6; }
5767
5768
5769 else
5770    CRON_OWNER="root"
5771    SU_C_OWNER=""
5772    QUOTE=""
5773    REM_CHOWN="# REM_CHOWN"
5774    CRON_INTERVAL=10
5775    CRON_INTERVAL_SEC=600
5776    CRON_COUNT=6
5777    COLLECT_ALL=""
5778 fi
5779
5780
5781
5782
5783
5784
5785
5786
5787
5788 # Check whether documentation should be installed
5789 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether documentation should be installed" >&5
5790 printf %s "checking whether documentation should be installed... " >&6; }
5791 # Check whether --enable-documentation was given.
5792 if test ${enable_documentation+y}
5793 then :
5794   enableval=$enable_documentation; AUX_DOC=$enableval
5795 else $as_nop
5796   AUX_DOC=yes
5797 fi
5798
5799 if test $AUX_DOC != "no"; then
5800    AUX_DOC="yes"
5801    INSTALL_DOC="y"
5802 else
5803    AUX_DOC="no"
5804    INSTALL_DOC="n"
5805 fi
5806 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AUX_DOC" >&5
5807 printf "%s\n" "$AUX_DOC" >&6; }
5808
5809
5810 # Set directory for installing manual pages (see comment in Makefile)
5811
5812
5813 # Check whether debug mode should be activated
5814 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether debug mode should be activated" >&5
5815 printf %s "checking whether debug mode should be activated... " >&6; }
5816 # Check whether --enable-debuginfo was given.
5817 if test ${enable_debuginfo+y}
5818 then :
5819   enableval=$enable_debuginfo; WITH_DEBUG=yes ; DFLAGS="$DFLAGS -DDEBUG"
5820 else $as_nop
5821   WITH_DEBUG=no
5822 fi
5823
5824 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $WITH_DEBUG" >&5
5825 printf "%s\n" "$WITH_DEBUG" >&6; }
5826
5827
5828
5829 # Check whether object files should be stripped
5830 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: checking whether object files should be stripped" >&5
5831 printf %s "checking whether object files should be stripped... " >&6; }
5832 # Check whether --enable-stripping was given.
5833 if test ${enable_stripping+y}
5834 then :
5835   enableval=$enable_stripping; AUX_STRIP=$enableval
5836 else $as_nop
5837   AUX_STRIP=yes
5838 fi
5839
5840 if test $AUX_STRIP != "no"; then
5841    AUX_STRIP="yes"
5842    STRIP="-s"
5843 else
5844    AUX_STRIP="no"
5845    STRIP=
5846 fi
5847 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: result: $AUX_STRIP" >&5
5848 printf "%s\n" "$AUX_STRIP" >&6; }
5849
5850
5851 # Create files
5852 echo .
5853 echo Now create files:
5854 echo .
5855 ac_config_files="$ac_config_files sa1"
5856         # Permissions must be changed
5857 ac_config_files="$ac_config_files sa2"
5858                 # Permissions must be changed
5859 ac_config_files="$ac_config_files cron/crontab:cron/crontab.sample"
5860         # File must be renamed
5861 ac_config_files="$ac_config_files sysstat.sysconfig"
5862
5863 ac_config_files="$ac_config_files version.h:version.in"
5864                 # File must be renamed
5865 ac_config_files="$ac_config_files sysconfig.h:sysconfig.in"
5866         # File must be renamed
5867 ac_config_files="$ac_config_files cron/sysstat.cron.daily"
5868
5869 ac_config_files="$ac_config_files cron/sysstat.cron.hourly"
5870
5871 ac_config_files="$ac_config_files cron/sysstat.crond"
5872
5873 ac_config_files="$ac_config_files cron/sysstat.crond.sample.in:cron/sysstat.crond.in"
5874
5875 ac_config_files="$ac_config_files sysstat"
5876         # Permissions must be changed
5877 ac_config_files="$ac_config_files sysstat.service"
5878
5879 ac_config_files="$ac_config_files cron/sysstat-collect.service"
5880
5881 ac_config_files="$ac_config_files cron/sysstat-collect.timer"
5882
5883 ac_config_files="$ac_config_files cron/sysstat-summary.service"
5884
5885 ac_config_files="$ac_config_files cron/sysstat-summary.timer"
5886
5887 ac_config_files="$ac_config_files cron/sysstat.sleep"
5888         # Permissions must be changed
5889 ac_config_files="$ac_config_files man/sa1.8:man/sa1.in"
5890                 # File must be renamed
5891 ac_config_files="$ac_config_files man/sa2.8:man/sa2.in"
5892                 # File must be renamed
5893 ac_config_files="$ac_config_files man/sadc.8:man/sadc.in"
5894         # File must be renamed
5895 ac_config_files="$ac_config_files man/sadf.1:man/sadf.in"
5896         # File must be renamed
5897 ac_config_files="$ac_config_files man/sar.1:man/sar.in"
5898                 # File must be renamed
5899 ac_config_files="$ac_config_files man/sysstat.5:man/sysstat.in"
5900         # File must be renamed
5901 ac_config_files="$ac_config_files man/iostat.1:man/iostat.in"
5902         # File must be renamed
5903 ac_config_files="$ac_config_files man/cifsiostat.1:man/cifsiostat.in"
5904         # File must be renamed
5905 ac_config_files="$ac_config_files tests/variables"
5906
5907
5908 ac_config_files="$ac_config_files Makefile"
5909
5910 cat >confcache <<\_ACEOF
5911 # This file is a shell script that caches the results of configure
5912 # tests run on this system so they can be shared between configure
5913 # scripts and configure runs, see configure's option --config-cache.
5914 # It is not useful on other systems.  If it contains results you don't
5915 # want to keep, you may remove or edit it.
5916 #
5917 # config.status only pays attention to the cache file if you give it
5918 # the --recheck option to rerun configure.
5919 #
5920 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5921 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5922 # following values.
5923
5924 _ACEOF
5925
5926 # The following way of writing the cache mishandles newlines in values,
5927 # but we know of no workaround that is simple, portable, and efficient.
5928 # So, we kill variables containing newlines.
5929 # Ultrix sh set writes to stderr and can't be redirected directly,
5930 # and sets the high bit in the cache file unless we assign to the vars.
5931 (
5932   for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
5933     eval ac_val=\$$ac_var
5934     case $ac_val in #(
5935     *${as_nl}*)
5936       case $ac_var in #(
5937       *_cv_*) { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
5938 printf "%s\n" "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
5939       esac
5940       case $ac_var in #(
5941       _ | IFS | as_nl) ;; #(
5942       BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
5943       *) { eval $ac_var=; unset $ac_var;} ;;
5944       esac ;;
5945     esac
5946   done
5947
5948   (set) 2>&1 |
5949     case $as_nl`(ac_space=' '; set) 2>&1` in #(
5950     *${as_nl}ac_space=\ *)
5951       # `set' does not quote correctly, so add quotes: double-quote
5952       # substitution turns \\\\ into \\, and sed turns \\ into \.
5953       sed -n \
5954         "s/'/'\\\\''/g;
5955           s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
5956       ;; #(
5957     *)
5958       # `set' quotes correctly as required by POSIX, so do not add quotes.
5959       sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
5960       ;;
5961     esac |
5962     sort
5963 ) |
5964   sed '
5965      /^ac_cv_env_/b end
5966      t clear
5967      :clear
5968      s/^\([^=]*\)=\(.*[{}].*\)$/test ${\1+y} || &/
5969      t end
5970      s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
5971      :end' >>confcache
5972 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
5973   if test -w "$cache_file"; then
5974     if test "x$cache_file" != "x/dev/null"; then
5975       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
5976 printf "%s\n" "$as_me: updating cache $cache_file" >&6;}
5977       if test ! -f "$cache_file" || test -h "$cache_file"; then
5978         cat confcache >"$cache_file"
5979       else
5980         case $cache_file in #(
5981         */* | ?:*)
5982           mv -f confcache "$cache_file"$$ &&
5983           mv -f "$cache_file"$$ "$cache_file" ;; #(
5984         *)
5985           mv -f confcache "$cache_file" ;;
5986         esac
5987       fi
5988     fi
5989   else
5990     { printf "%s\n" "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
5991 printf "%s\n" "$as_me: not updating unwritable cache $cache_file" >&6;}
5992   fi
5993 fi
5994 rm -f confcache
5995
5996 test "x$prefix" = xNONE && prefix=$ac_default_prefix
5997 # Let make expand exec_prefix.
5998 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
5999
6000 # Transform confdefs.h into DEFS.
6001 # Protect against shell expansion while executing Makefile rules.
6002 # Protect against Makefile macro expansion.
6003 #
6004 # If the first sed substitution is executed (which looks for macros that
6005 # take arguments), then branch to the quote section.  Otherwise,
6006 # look for a macro that doesn't take arguments.
6007 ac_script='
6008 :mline
6009 /\\$/{
6010  N
6011  s,\\\n,,
6012  b mline
6013 }
6014 t clear
6015 :clear
6016 s/^[     ]*#[    ]*define[       ][      ]*\([^  (][^    (]*([^)]*)\)[   ]*\(.*\)/-D\1=\2/g
6017 t quote
6018 s/^[     ]*#[    ]*define[       ][      ]*\([^  ][^     ]*\)[   ]*\(.*\)/-D\1=\2/g
6019 t quote
6020 b any
6021 :quote
6022 s/[      `~#$^&*(){}\\|;'\''"<>?]/\\&/g
6023 s/\[/\\&/g
6024 s/\]/\\&/g
6025 s/\$/$$/g
6026 H
6027 :any
6028 ${
6029         g
6030         s/^\n//
6031         s/\n/ /g
6032         p
6033 }
6034 '
6035 DEFS=`sed -n "$ac_script" confdefs.h`
6036
6037
6038 ac_libobjs=
6039 ac_ltlibobjs=
6040 U=
6041 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
6042   # 1. Remove the extension, and $U if already installed.
6043   ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
6044   ac_i=`printf "%s\n" "$ac_i" | sed "$ac_script"`
6045   # 2. Prepend LIBOBJDIR.  When used with automake>=1.10 LIBOBJDIR
6046   #    will be set to the directory where LIBOBJS objects are built.
6047   as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6048   as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
6049 done
6050 LIBOBJS=$ac_libobjs
6051
6052 LTLIBOBJS=$ac_ltlibobjs
6053
6054
6055
6056 : "${CONFIG_STATUS=./config.status}"
6057 ac_write_fail=0
6058 ac_clean_files_save=$ac_clean_files
6059 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
6060 { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6061 printf "%s\n" "$as_me: creating $CONFIG_STATUS" >&6;}
6062 as_write_fail=0
6063 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
6064 #! $SHELL
6065 # Generated by $as_me.
6066 # Run this file to recreate the current configuration.
6067 # Compiler output produced by configure, useful for debugging
6068 # configure, is in config.log if it exists.
6069
6070 debug=false
6071 ac_cs_recheck=false
6072 ac_cs_silent=false
6073
6074 SHELL=\${CONFIG_SHELL-$SHELL}
6075 export SHELL
6076 _ASEOF
6077 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
6078 ## -------------------- ##
6079 ## M4sh Initialization. ##
6080 ## -------------------- ##
6081
6082 # Be more Bourne compatible
6083 DUALCASE=1; export DUALCASE # for MKS sh
6084 as_nop=:
6085 if test ${ZSH_VERSION+y} && (emulate sh) >/dev/null 2>&1
6086 then :
6087   emulate sh
6088   NULLCMD=:
6089   # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6090   # is contrary to our usage.  Disable this feature.
6091   alias -g '${1+"$@"}'='"$@"'
6092   setopt NO_GLOB_SUBST
6093 else $as_nop
6094   case `(set -o) 2>/dev/null` in #(
6095   *posix*) :
6096     set -o posix ;; #(
6097   *) :
6098      ;;
6099 esac
6100 fi
6101
6102
6103
6104 # Reset variables that may have inherited troublesome values from
6105 # the environment.
6106
6107 # IFS needs to be set, to space, tab, and newline, in precisely that order.
6108 # (If _AS_PATH_WALK were called with IFS unset, it would have the
6109 # side effect of setting IFS to empty, thus disabling word splitting.)
6110 # Quoting is to prevent editors from complaining about space-tab.
6111 as_nl='
6112 '
6113 export as_nl
6114 IFS=" ""        $as_nl"
6115
6116 PS1='$ '
6117 PS2='> '
6118 PS4='+ '
6119
6120 # Ensure predictable behavior from utilities with locale-dependent output.
6121 LC_ALL=C
6122 export LC_ALL
6123 LANGUAGE=C
6124 export LANGUAGE
6125
6126 # We cannot yet rely on "unset" to work, but we need these variables
6127 # to be unset--not just set to an empty or harmless value--now, to
6128 # avoid bugs in old shells (e.g. pre-3.0 UWIN ksh).  This construct
6129 # also avoids known problems related to "unset" and subshell syntax
6130 # in other old shells (e.g. bash 2.01 and pdksh 5.2.14).
6131 for as_var in BASH_ENV ENV MAIL MAILPATH CDPATH
6132 do eval test \${$as_var+y} \
6133   && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
6134 done
6135
6136 # Ensure that fds 0, 1, and 2 are open.
6137 if (exec 3>&0) 2>/dev/null; then :; else exec 0</dev/null; fi
6138 if (exec 3>&1) 2>/dev/null; then :; else exec 1>/dev/null; fi
6139 if (exec 3>&2)            ; then :; else exec 2>/dev/null; fi
6140
6141 # The user is always right.
6142 if ${PATH_SEPARATOR+false} :; then
6143   PATH_SEPARATOR=:
6144   (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6145     (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6146       PATH_SEPARATOR=';'
6147   }
6148 fi
6149
6150
6151 # Find who we are.  Look in the path if we contain no directory separator.
6152 as_myself=
6153 case $0 in #((
6154   *[\\/]* ) as_myself=$0 ;;
6155   *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6156 for as_dir in $PATH
6157 do
6158   IFS=$as_save_IFS
6159   case $as_dir in #(((
6160     '') as_dir=./ ;;
6161     */) ;;
6162     *) as_dir=$as_dir/ ;;
6163   esac
6164     test -r "$as_dir$0" && as_myself=$as_dir$0 && break
6165   done
6166 IFS=$as_save_IFS
6167
6168      ;;
6169 esac
6170 # We did not find ourselves, most probably we were run as `sh COMMAND'
6171 # in which case we are not to be found in the path.
6172 if test "x$as_myself" = x; then
6173   as_myself=$0
6174 fi
6175 if test ! -f "$as_myself"; then
6176   printf "%s\n" "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6177   exit 1
6178 fi
6179
6180
6181
6182 # as_fn_error STATUS ERROR [LINENO LOG_FD]
6183 # ----------------------------------------
6184 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
6185 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
6186 # script with STATUS, using 1 if that was 0.
6187 as_fn_error ()
6188 {
6189   as_status=$1; test $as_status -eq 0 && as_status=1
6190   if test "$4"; then
6191     as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
6192     printf "%s\n" "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
6193   fi
6194   printf "%s\n" "$as_me: error: $2" >&2
6195   as_fn_exit $as_status
6196 } # as_fn_error
6197
6198
6199
6200 # as_fn_set_status STATUS
6201 # -----------------------
6202 # Set $? to STATUS, without forking.
6203 as_fn_set_status ()
6204 {
6205   return $1
6206 } # as_fn_set_status
6207
6208 # as_fn_exit STATUS
6209 # -----------------
6210 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
6211 as_fn_exit ()
6212 {
6213   set +e
6214   as_fn_set_status $1
6215   exit $1
6216 } # as_fn_exit
6217
6218 # as_fn_unset VAR
6219 # ---------------
6220 # Portably unset VAR.
6221 as_fn_unset ()
6222 {
6223   { eval $1=; unset $1;}
6224 }
6225 as_unset=as_fn_unset
6226
6227 # as_fn_append VAR VALUE
6228 # ----------------------
6229 # Append the text in VALUE to the end of the definition contained in VAR. Take
6230 # advantage of any shell optimizations that allow amortized linear growth over
6231 # repeated appends, instead of the typical quadratic growth present in naive
6232 # implementations.
6233 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null
6234 then :
6235   eval 'as_fn_append ()
6236   {
6237     eval $1+=\$2
6238   }'
6239 else $as_nop
6240   as_fn_append ()
6241   {
6242     eval $1=\$$1\$2
6243   }
6244 fi # as_fn_append
6245
6246 # as_fn_arith ARG...
6247 # ------------------
6248 # Perform arithmetic evaluation on the ARGs, and store the result in the
6249 # global $as_val. Take advantage of shells that can avoid forks. The arguments
6250 # must be portable across $(()) and expr.
6251 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null
6252 then :
6253   eval 'as_fn_arith ()
6254   {
6255     as_val=$(( $* ))
6256   }'
6257 else $as_nop
6258   as_fn_arith ()
6259   {
6260     as_val=`expr "$@" || test $? -eq 1`
6261   }
6262 fi # as_fn_arith
6263
6264
6265 if expr a : '\(a\)' >/dev/null 2>&1 &&
6266    test "X`expr 00001 : '.*\(...\)'`" = X001; then
6267   as_expr=expr
6268 else
6269   as_expr=false
6270 fi
6271
6272 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6273   as_basename=basename
6274 else
6275   as_basename=false
6276 fi
6277
6278 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
6279   as_dirname=dirname
6280 else
6281   as_dirname=false
6282 fi
6283
6284 as_me=`$as_basename -- "$0" ||
6285 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6286          X"$0" : 'X\(//\)$' \| \
6287          X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6288 printf "%s\n" X/"$0" |
6289     sed '/^.*\/\([^/][^/]*\)\/*$/{
6290             s//\1/
6291             q
6292           }
6293           /^X\/\(\/\/\)$/{
6294             s//\1/
6295             q
6296           }
6297           /^X\/\(\/\).*/{
6298             s//\1/
6299             q
6300           }
6301           s/.*/./; q'`
6302
6303 # Avoid depending upon Character Ranges.
6304 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
6305 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6306 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
6307 as_cr_digits='0123456789'
6308 as_cr_alnum=$as_cr_Letters$as_cr_digits
6309
6310
6311 # Determine whether it's possible to make 'echo' print without a newline.
6312 # These variables are no longer used directly by Autoconf, but are AC_SUBSTed
6313 # for compatibility with existing Makefiles.
6314 ECHO_C= ECHO_N= ECHO_T=
6315 case `echo -n x` in #(((((
6316 -n*)
6317   case `echo 'xy\c'` in
6318   *c*) ECHO_T=' ';;     # ECHO_T is single tab character.
6319   xy)  ECHO_C='\c';;
6320   *)   echo `echo ksh88 bug on AIX 6.1` > /dev/null
6321        ECHO_T=' ';;
6322   esac;;
6323 *)
6324   ECHO_N='-n';;
6325 esac
6326
6327 # For backward compatibility with old third-party macros, we provide
6328 # the shell variables $as_echo and $as_echo_n.  New code should use
6329 # AS_ECHO(["message"]) and AS_ECHO_N(["message"]), respectively.
6330 as_echo='printf %s\n'
6331 as_echo_n='printf %s'
6332
6333 rm -f conf$$ conf$$.exe conf$$.file
6334 if test -d conf$$.dir; then
6335   rm -f conf$$.dir/conf$$.file
6336 else
6337   rm -f conf$$.dir
6338   mkdir conf$$.dir 2>/dev/null
6339 fi
6340 if (echo >conf$$.file) 2>/dev/null; then
6341   if ln -s conf$$.file conf$$ 2>/dev/null; then
6342     as_ln_s='ln -s'
6343     # ... but there are two gotchas:
6344     # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6345     # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6346     # In both cases, we have to default to `cp -pR'.
6347     ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
6348       as_ln_s='cp -pR'
6349   elif ln conf$$.file conf$$ 2>/dev/null; then
6350     as_ln_s=ln
6351   else
6352     as_ln_s='cp -pR'
6353   fi
6354 else
6355   as_ln_s='cp -pR'
6356 fi
6357 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
6358 rmdir conf$$.dir 2>/dev/null
6359
6360
6361 # as_fn_mkdir_p
6362 # -------------
6363 # Create "$as_dir" as a directory, including parents if necessary.
6364 as_fn_mkdir_p ()
6365 {
6366
6367   case $as_dir in #(
6368   -*) as_dir=./$as_dir;;
6369   esac
6370   test -d "$as_dir" || eval $as_mkdir_p || {
6371     as_dirs=
6372     while :; do
6373       case $as_dir in #(
6374       *\'*) as_qdir=`printf "%s\n" "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6375       *) as_qdir=$as_dir;;
6376       esac
6377       as_dirs="'$as_qdir' $as_dirs"
6378       as_dir=`$as_dirname -- "$as_dir" ||
6379 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6380          X"$as_dir" : 'X\(//\)[^/]' \| \
6381          X"$as_dir" : 'X\(//\)$' \| \
6382          X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6383 printf "%s\n" X"$as_dir" |
6384     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6385             s//\1/
6386             q
6387           }
6388           /^X\(\/\/\)[^/].*/{
6389             s//\1/
6390             q
6391           }
6392           /^X\(\/\/\)$/{
6393             s//\1/
6394             q
6395           }
6396           /^X\(\/\).*/{
6397             s//\1/
6398             q
6399           }
6400           s/.*/./; q'`
6401       test -d "$as_dir" && break
6402     done
6403     test -z "$as_dirs" || eval "mkdir $as_dirs"
6404   } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
6405
6406
6407 } # as_fn_mkdir_p
6408 if mkdir -p . 2>/dev/null; then
6409   as_mkdir_p='mkdir -p "$as_dir"'
6410 else
6411   test -d ./-p && rmdir ./-p
6412   as_mkdir_p=false
6413 fi
6414
6415
6416 # as_fn_executable_p FILE
6417 # -----------------------
6418 # Test if FILE is an executable regular file.
6419 as_fn_executable_p ()
6420 {
6421   test -f "$1" && test -x "$1"
6422 } # as_fn_executable_p
6423 as_test_x='test -x'
6424 as_executable_p=as_fn_executable_p
6425
6426 # Sed expression to map a string onto a valid CPP name.
6427 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6428
6429 # Sed expression to map a string onto a valid variable name.
6430 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6431
6432
6433 exec 6>&1
6434 ## ----------------------------------- ##
6435 ## Main body of $CONFIG_STATUS script. ##
6436 ## ----------------------------------- ##
6437 _ASEOF
6438 test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
6439
6440 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6441 # Save the log message, to keep $0 and so on meaningful, and to
6442 # report actual input values of CONFIG_FILES etc. instead of their
6443 # values after options handling.
6444 ac_log="
6445 This file was extended by sysstat $as_me 12.7.1, which was
6446 generated by GNU Autoconf 2.71.  Invocation command line was
6447
6448   CONFIG_FILES    = $CONFIG_FILES
6449   CONFIG_HEADERS  = $CONFIG_HEADERS
6450   CONFIG_LINKS    = $CONFIG_LINKS
6451   CONFIG_COMMANDS = $CONFIG_COMMANDS
6452   $ $0 $@
6453
6454 on `(hostname || uname -n) 2>/dev/null | sed 1q`
6455 "
6456
6457 _ACEOF
6458
6459 case $ac_config_files in *"
6460 "*) set x $ac_config_files; shift; ac_config_files=$*;;
6461 esac
6462
6463
6464
6465 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6466 # Files that config.status was made for.
6467 config_files="$ac_config_files"
6468
6469 _ACEOF
6470
6471 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6472 ac_cs_usage="\
6473 \`$as_me' instantiates files and other configuration actions
6474 from templates according to the current configuration.  Unless the files
6475 and actions are specified as TAGs, all are instantiated by default.
6476
6477 Usage: $0 [OPTION]... [TAG]...
6478
6479   -h, --help       print this help, then exit
6480   -V, --version    print version number and configuration settings, then exit
6481       --config     print configuration, then exit
6482   -q, --quiet, --silent
6483                    do not print progress messages
6484   -d, --debug      don't remove temporary files
6485       --recheck    update $as_me by reconfiguring in the same conditions
6486       --file=FILE[:TEMPLATE]
6487                    instantiate the configuration file FILE
6488
6489 Configuration files:
6490 $config_files
6491
6492 Report bugs to the package provider."
6493
6494 _ACEOF
6495 ac_cs_config=`printf "%s\n" "$ac_configure_args" | sed "$ac_safe_unquote"`
6496 ac_cs_config_escaped=`printf "%s\n" "$ac_cs_config" | sed "s/^ //; s/'/'\\\\\\\\''/g"`
6497 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6498 ac_cs_config='$ac_cs_config_escaped'
6499 ac_cs_version="\\
6500 sysstat config.status 12.7.1
6501 configured by $0, generated by GNU Autoconf 2.71,
6502   with options \\"\$ac_cs_config\\"
6503
6504 Copyright (C) 2021 Free Software Foundation, Inc.
6505 This config.status script is free software; the Free Software Foundation
6506 gives unlimited permission to copy, distribute and modify it."
6507
6508 ac_pwd='$ac_pwd'
6509 srcdir='$srcdir'
6510 test -n "\$AWK" || AWK=awk
6511 _ACEOF
6512
6513 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6514 # The default lists apply if the user does not specify any file.
6515 ac_need_defaults=:
6516 while test $# != 0
6517 do
6518   case $1 in
6519   --*=?*)
6520     ac_option=`expr "X$1" : 'X\([^=]*\)='`
6521     ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
6522     ac_shift=:
6523     ;;
6524   --*=)
6525     ac_option=`expr "X$1" : 'X\([^=]*\)='`
6526     ac_optarg=
6527     ac_shift=:
6528     ;;
6529   *)
6530     ac_option=$1
6531     ac_optarg=$2
6532     ac_shift=shift
6533     ;;
6534   esac
6535
6536   case $ac_option in
6537   # Handling of the options.
6538   -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
6539     ac_cs_recheck=: ;;
6540   --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
6541     printf "%s\n" "$ac_cs_version"; exit ;;
6542   --config | --confi | --conf | --con | --co | --c )
6543     printf "%s\n" "$ac_cs_config"; exit ;;
6544   --debug | --debu | --deb | --de | --d | -d )
6545     debug=: ;;
6546   --file | --fil | --fi | --f )
6547     $ac_shift
6548     case $ac_optarg in
6549     *\'*) ac_optarg=`printf "%s\n" "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6550     '') as_fn_error $? "missing file argument" ;;
6551     esac
6552     as_fn_append CONFIG_FILES " '$ac_optarg'"
6553     ac_need_defaults=false;;
6554   --he | --h |  --help | --hel | -h )
6555     printf "%s\n" "$ac_cs_usage"; exit ;;
6556   -q | -quiet | --quiet | --quie | --qui | --qu | --q \
6557   | -silent | --silent | --silen | --sile | --sil | --si | --s)
6558     ac_cs_silent=: ;;
6559
6560   # This is an error.
6561   -*) as_fn_error $? "unrecognized option: \`$1'
6562 Try \`$0 --help' for more information." ;;
6563
6564   *) as_fn_append ac_config_targets " $1"
6565      ac_need_defaults=false ;;
6566
6567   esac
6568   shift
6569 done
6570
6571 ac_configure_extra_args=
6572
6573 if $ac_cs_silent; then
6574   exec 6>/dev/null
6575   ac_configure_extra_args="$ac_configure_extra_args --silent"
6576 fi
6577
6578 _ACEOF
6579 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6580 if \$ac_cs_recheck; then
6581   set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6582   shift
6583   \printf "%s\n" "running CONFIG_SHELL=$SHELL \$*" >&6
6584   CONFIG_SHELL='$SHELL'
6585   export CONFIG_SHELL
6586   exec "\$@"
6587 fi
6588
6589 _ACEOF
6590 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6591 exec 5>>config.log
6592 {
6593   echo
6594   sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6595 ## Running $as_me. ##
6596 _ASBOX
6597   printf "%s\n" "$ac_log"
6598 } >&5
6599
6600 _ACEOF
6601 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6602 _ACEOF
6603
6604 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6605
6606 # Handling of arguments.
6607 for ac_config_target in $ac_config_targets
6608 do
6609   case $ac_config_target in
6610     "sa1") CONFIG_FILES="$CONFIG_FILES sa1" ;;
6611     "sa2") CONFIG_FILES="$CONFIG_FILES sa2" ;;
6612     "cron/crontab") CONFIG_FILES="$CONFIG_FILES cron/crontab:cron/crontab.sample" ;;
6613     "sysstat.sysconfig") CONFIG_FILES="$CONFIG_FILES sysstat.sysconfig" ;;
6614     "version.h") CONFIG_FILES="$CONFIG_FILES version.h:version.in" ;;
6615     "sysconfig.h") CONFIG_FILES="$CONFIG_FILES sysconfig.h:sysconfig.in" ;;
6616     "cron/sysstat.cron.daily") CONFIG_FILES="$CONFIG_FILES cron/sysstat.cron.daily" ;;
6617     "cron/sysstat.cron.hourly") CONFIG_FILES="$CONFIG_FILES cron/sysstat.cron.hourly" ;;
6618     "cron/sysstat.crond") CONFIG_FILES="$CONFIG_FILES cron/sysstat.crond" ;;
6619     "cron/sysstat.crond.sample.in") CONFIG_FILES="$CONFIG_FILES cron/sysstat.crond.sample.in:cron/sysstat.crond.in" ;;
6620     "sysstat") CONFIG_FILES="$CONFIG_FILES sysstat" ;;
6621     "sysstat.service") CONFIG_FILES="$CONFIG_FILES sysstat.service" ;;
6622     "cron/sysstat-collect.service") CONFIG_FILES="$CONFIG_FILES cron/sysstat-collect.service" ;;
6623     "cron/sysstat-collect.timer") CONFIG_FILES="$CONFIG_FILES cron/sysstat-collect.timer" ;;
6624     "cron/sysstat-summary.service") CONFIG_FILES="$CONFIG_FILES cron/sysstat-summary.service" ;;
6625     "cron/sysstat-summary.timer") CONFIG_FILES="$CONFIG_FILES cron/sysstat-summary.timer" ;;
6626     "cron/sysstat.sleep") CONFIG_FILES="$CONFIG_FILES cron/sysstat.sleep" ;;
6627     "man/sa1.8") CONFIG_FILES="$CONFIG_FILES man/sa1.8:man/sa1.in" ;;
6628     "man/sa2.8") CONFIG_FILES="$CONFIG_FILES man/sa2.8:man/sa2.in" ;;
6629     "man/sadc.8") CONFIG_FILES="$CONFIG_FILES man/sadc.8:man/sadc.in" ;;
6630     "man/sadf.1") CONFIG_FILES="$CONFIG_FILES man/sadf.1:man/sadf.in" ;;
6631     "man/sar.1") CONFIG_FILES="$CONFIG_FILES man/sar.1:man/sar.in" ;;
6632     "man/sysstat.5") CONFIG_FILES="$CONFIG_FILES man/sysstat.5:man/sysstat.in" ;;
6633     "man/iostat.1") CONFIG_FILES="$CONFIG_FILES man/iostat.1:man/iostat.in" ;;
6634     "man/cifsiostat.1") CONFIG_FILES="$CONFIG_FILES man/cifsiostat.1:man/cifsiostat.in" ;;
6635     "tests/variables") CONFIG_FILES="$CONFIG_FILES tests/variables" ;;
6636     "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
6637
6638   *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
6639   esac
6640 done
6641
6642
6643 # If the user did not use the arguments to specify the items to instantiate,
6644 # then the envvar interface is used.  Set only those that are not.
6645 # We use the long form for the default assignment because of an extremely
6646 # bizarre bug on SunOS 4.1.3.
6647 if $ac_need_defaults; then
6648   test ${CONFIG_FILES+y} || CONFIG_FILES=$config_files
6649 fi
6650
6651 # Have a temporary directory for convenience.  Make it in the build tree
6652 # simply because there is no reason against having it here, and in addition,
6653 # creating and moving files from /tmp can sometimes cause problems.
6654 # Hook for its removal unless debugging.
6655 # Note that there is a small window in which the directory will not be cleaned:
6656 # after its creation but before its name has been assigned to `$tmp'.
6657 $debug ||
6658 {
6659   tmp= ac_tmp=
6660   trap 'exit_status=$?
6661   : "${ac_tmp:=$tmp}"
6662   { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
6663 ' 0
6664   trap 'as_fn_exit 1' 1 2 13 15
6665 }
6666 # Create a (secure) tmp directory for tmp files.
6667
6668 {
6669   tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6670   test -d "$tmp"
6671 }  ||
6672 {
6673   tmp=./conf$$-$RANDOM
6674   (umask 077 && mkdir "$tmp")
6675 } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
6676 ac_tmp=$tmp
6677
6678 # Set up the scripts for CONFIG_FILES section.
6679 # No need to generate them if there are no CONFIG_FILES.
6680 # This happens for instance with `./config.status config.h'.
6681 if test -n "$CONFIG_FILES"; then
6682
6683
6684 ac_cr=`echo X | tr X '\015'`
6685 # On cygwin, bash can eat \r inside `` if the user requested igncr.
6686 # But we know of no other shell where ac_cr would be empty at this
6687 # point, so we can use a bashism as a fallback.
6688 if test "x$ac_cr" = x; then
6689   eval ac_cr=\$\'\\r\'
6690 fi
6691 ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6692 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6693   ac_cs_awk_cr='\\r'
6694 else
6695   ac_cs_awk_cr=$ac_cr
6696 fi
6697
6698 echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
6699 _ACEOF
6700
6701
6702 {
6703   echo "cat >conf$$subs.awk <<_ACEOF" &&
6704   echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6705   echo "_ACEOF"
6706 } >conf$$subs.sh ||
6707   as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6708 ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
6709 ac_delim='%!_!# '
6710 for ac_last_try in false false false false false :; do
6711   . ./conf$$subs.sh ||
6712     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6713
6714   ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
6715   if test $ac_delim_n = $ac_delim_num; then
6716     break
6717   elif $ac_last_try; then
6718     as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
6719   else
6720     ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
6721   fi
6722 done
6723 rm -f conf$$subs.sh
6724
6725 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6726 cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
6727 _ACEOF
6728 sed -n '
6729 h
6730 s/^/S["/; s/!.*/"]=/
6731 p
6732 g
6733 s/^[^!]*!//
6734 :repl
6735 t repl
6736 s/'"$ac_delim"'$//
6737 t delim
6738 :nl
6739 h
6740 s/\(.\{148\}\)..*/\1/
6741 t more1
6742 s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
6743 p
6744 n
6745 b repl
6746 :more1
6747 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6748 p
6749 g
6750 s/.\{148\}//
6751 t nl
6752 :delim
6753 h
6754 s/\(.\{148\}\)..*/\1/
6755 t more2
6756 s/["\\]/\\&/g; s/^/"/; s/$/"/
6757 p
6758 b
6759 :more2
6760 s/["\\]/\\&/g; s/^/"/; s/$/"\\/
6761 p
6762 g
6763 s/.\{148\}//
6764 t delim
6765 ' <conf$$subs.awk | sed '
6766 /^[^""]/{
6767   N
6768   s/\n//
6769 }
6770 ' >>$CONFIG_STATUS || ac_write_fail=1
6771 rm -f conf$$subs.awk
6772 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6773 _ACAWK
6774 cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
6775   for (key in S) S_is_set[key] = 1
6776   FS = "\a"
6777
6778 }
6779 {
6780   line = $ 0
6781   nfields = split(line, field, "@")
6782   substed = 0
6783   len = length(field[1])
6784   for (i = 2; i < nfields; i++) {
6785     key = field[i]
6786     keylen = length(key)
6787     if (S_is_set[key]) {
6788       value = S[key]
6789       line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6790       len += length(value) + length(field[++i])
6791       substed = 1
6792     } else
6793       len += 1 + keylen
6794   }
6795
6796   print line
6797 }
6798
6799 _ACAWK
6800 _ACEOF
6801 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6802 if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6803   sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
6804 else
6805   cat
6806 fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
6807   || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
6808 _ACEOF
6809
6810 # VPATH may cause trouble with some makes, so we remove sole $(srcdir),
6811 # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
6812 # trailing colons and then remove the whole line if VPATH becomes empty
6813 # (actually we leave an empty line to preserve line numbers).
6814 if test "x$srcdir" = x.; then
6815   ac_vpsub='/^[  ]*VPATH[        ]*=[    ]*/{
6816 h
6817 s///
6818 s/^/:/
6819 s/[      ]*$/:/
6820 s/:\$(srcdir):/:/g
6821 s/:\${srcdir}:/:/g
6822 s/:@srcdir@:/:/g
6823 s/^:*//
6824 s/:*$//
6825 x
6826 s/\(=[   ]*\).*/\1/
6827 G
6828 s/\n//
6829 s/^[^=]*=[       ]*$//
6830 }'
6831 fi
6832
6833 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6834 fi # test -n "$CONFIG_FILES"
6835
6836
6837 eval set X "  :F $CONFIG_FILES      "
6838 shift
6839 for ac_tag
6840 do
6841   case $ac_tag in
6842   :[FHLC]) ac_mode=$ac_tag; continue;;
6843   esac
6844   case $ac_mode$ac_tag in
6845   :[FHL]*:*);;
6846   :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
6847   :[FH]-) ac_tag=-:-;;
6848   :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
6849   esac
6850   ac_save_IFS=$IFS
6851   IFS=:
6852   set x $ac_tag
6853   IFS=$ac_save_IFS
6854   shift
6855   ac_file=$1
6856   shift
6857
6858   case $ac_mode in
6859   :L) ac_source=$1;;
6860   :[FH])
6861     ac_file_inputs=
6862     for ac_f
6863     do
6864       case $ac_f in
6865       -) ac_f="$ac_tmp/stdin";;
6866       *) # Look for the file first in the build tree, then in the source tree
6867          # (if the path is not absolute).  The absolute path cannot be DOS-style,
6868          # because $ac_f cannot contain `:'.
6869          test -f "$ac_f" ||
6870            case $ac_f in
6871            [\\/$]*) false;;
6872            *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
6873            esac ||
6874            as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
6875       esac
6876       case $ac_f in *\'*) ac_f=`printf "%s\n" "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
6877       as_fn_append ac_file_inputs " '$ac_f'"
6878     done
6879
6880     # Let's still pretend it is `configure' which instantiates (i.e., don't
6881     # use $as_me), people would be surprised to read:
6882     #    /* config.h.  Generated by config.status.  */
6883     configure_input='Generated from '`
6884           printf "%s\n" "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
6885         `' by configure.'
6886     if test x"$ac_file" != x-; then
6887       configure_input="$ac_file.  $configure_input"
6888       { printf "%s\n" "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
6889 printf "%s\n" "$as_me: creating $ac_file" >&6;}
6890     fi
6891     # Neutralize special characters interpreted by sed in replacement strings.
6892     case $configure_input in #(
6893     *\&* | *\|* | *\\* )
6894        ac_sed_conf_input=`printf "%s\n" "$configure_input" |
6895        sed 's/[\\\\&|]/\\\\&/g'`;; #(
6896     *) ac_sed_conf_input=$configure_input;;
6897     esac
6898
6899     case $ac_tag in
6900     *:-:* | *:-) cat >"$ac_tmp/stdin" \
6901       || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
6902     esac
6903     ;;
6904   esac
6905
6906   ac_dir=`$as_dirname -- "$ac_file" ||
6907 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6908          X"$ac_file" : 'X\(//\)[^/]' \| \
6909          X"$ac_file" : 'X\(//\)$' \| \
6910          X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
6911 printf "%s\n" X"$ac_file" |
6912     sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6913             s//\1/
6914             q
6915           }
6916           /^X\(\/\/\)[^/].*/{
6917             s//\1/
6918             q
6919           }
6920           /^X\(\/\/\)$/{
6921             s//\1/
6922             q
6923           }
6924           /^X\(\/\).*/{
6925             s//\1/
6926             q
6927           }
6928           s/.*/./; q'`
6929   as_dir="$ac_dir"; as_fn_mkdir_p
6930   ac_builddir=.
6931
6932 case "$ac_dir" in
6933 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
6934 *)
6935   ac_dir_suffix=/`printf "%s\n" "$ac_dir" | sed 's|^\.[\\/]||'`
6936   # A ".." for each directory in $ac_dir_suffix.
6937   ac_top_builddir_sub=`printf "%s\n" "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
6938   case $ac_top_builddir_sub in
6939   "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
6940   *)  ac_top_build_prefix=$ac_top_builddir_sub/ ;;
6941   esac ;;
6942 esac
6943 ac_abs_top_builddir=$ac_pwd
6944 ac_abs_builddir=$ac_pwd$ac_dir_suffix
6945 # for backward compatibility:
6946 ac_top_builddir=$ac_top_build_prefix
6947
6948 case $srcdir in
6949   .)  # We are building in place.
6950     ac_srcdir=.
6951     ac_top_srcdir=$ac_top_builddir_sub
6952     ac_abs_top_srcdir=$ac_pwd ;;
6953   [\\/]* | ?:[\\/]* )  # Absolute name.
6954     ac_srcdir=$srcdir$ac_dir_suffix;
6955     ac_top_srcdir=$srcdir
6956     ac_abs_top_srcdir=$srcdir ;;
6957   *) # Relative name.
6958     ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
6959     ac_top_srcdir=$ac_top_build_prefix$srcdir
6960     ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
6961 esac
6962 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
6963
6964
6965   case $ac_mode in
6966   :F)
6967   #
6968   # CONFIG_FILE
6969   #
6970
6971 _ACEOF
6972
6973 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6974 # If the template does not know about datarootdir, expand it.
6975 # FIXME: This hack should be removed a few years after 2.60.
6976 ac_datarootdir_hack=; ac_datarootdir_seen=
6977 ac_sed_dataroot='
6978 /datarootdir/ {
6979   p
6980   q
6981 }
6982 /@datadir@/p
6983 /@docdir@/p
6984 /@infodir@/p
6985 /@localedir@/p
6986 /@mandir@/p'
6987 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
6988 *datarootdir*) ac_datarootdir_seen=yes;;
6989 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
6990   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
6991 printf "%s\n" "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
6992 _ACEOF
6993 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6994   ac_datarootdir_hack='
6995   s&@datadir@&$datadir&g
6996   s&@docdir@&$docdir&g
6997   s&@infodir@&$infodir&g
6998   s&@localedir@&$localedir&g
6999   s&@mandir@&$mandir&g
7000   s&\\\${datarootdir}&$datarootdir&g' ;;
7001 esac
7002 _ACEOF
7003
7004 # Neutralize VPATH when `$srcdir' = `.'.
7005 # Shell code in configure.ac might set extrasub.
7006 # FIXME: do we really want to maintain this feature?
7007 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7008 ac_sed_extra="$ac_vpsub
7009 $extrasub
7010 _ACEOF
7011 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7012 :t
7013 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
7014 s|@configure_input@|$ac_sed_conf_input|;t t
7015 s&@top_builddir@&$ac_top_builddir_sub&;t t
7016 s&@top_build_prefix@&$ac_top_build_prefix&;t t
7017 s&@srcdir@&$ac_srcdir&;t t
7018 s&@abs_srcdir@&$ac_abs_srcdir&;t t
7019 s&@top_srcdir@&$ac_top_srcdir&;t t
7020 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
7021 s&@builddir@&$ac_builddir&;t t
7022 s&@abs_builddir@&$ac_abs_builddir&;t t
7023 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
7024 $ac_datarootdir_hack
7025 "
7026 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
7027   >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7028
7029 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7030   { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
7031   { ac_out=`sed -n '/^[  ]*datarootdir[  ]*:*=/p' \
7032       "$ac_tmp/out"`; test -z "$ac_out"; } &&
7033   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7034 which seems to be undefined.  Please make sure it is defined" >&5
7035 printf "%s\n" "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
7036 which seems to be undefined.  Please make sure it is defined" >&2;}
7037
7038   rm -f "$ac_tmp/stdin"
7039   case $ac_file in
7040   -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
7041   *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
7042   esac \
7043   || as_fn_error $? "could not create $ac_file" "$LINENO" 5
7044  ;;
7045
7046
7047
7048   esac
7049
7050
7051   case $ac_file$ac_mode in
7052     "sa1":F) chmod +x sa1 ;;
7053     "sa2":F) chmod +x sa2 ;;
7054     "cron/sysstat.crond.sample.in":F) sed s/^/#/ cron/sysstat.crond.sample.in > cron/sysstat.crond.sample ;;
7055     "sysstat":F) chmod +x sysstat ;;
7056     "cron/sysstat.sleep":F) chmod +x cron/sysstat.sleep ;;
7057
7058   esac
7059 done # for ac_tag
7060
7061
7062 as_fn_exit 0
7063 _ACEOF
7064 ac_clean_files=$ac_clean_files_save
7065
7066 test $ac_write_fail = 0 ||
7067   as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
7068
7069
7070 # configure is writing to config.log, and then calls config.status.
7071 # config.status does its own redirection, appending to config.log.
7072 # Unfortunately, on DOS this fails, as config.log is still kept open
7073 # by configure, so config.status won't be able to write to it; its
7074 # output is simply discarded.  So we exec the FD to /dev/null,
7075 # effectively closing config.log, so it can be properly (re)opened and
7076 # appended to by config.status.  When coming back to configure, we
7077 # need to make the FD available again.
7078 if test "$no_create" != yes; then
7079   ac_cs_success=:
7080   ac_config_status_args=
7081   test "$silent" = yes &&
7082     ac_config_status_args="$ac_config_status_args --quiet"
7083   exec 5>/dev/null
7084   $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
7085   exec 5>>config.log
7086   # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7087   # would make configure fail if this is the last instruction.
7088   $ac_cs_success || as_fn_exit 1
7089 fi
7090 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
7091   { printf "%s\n" "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7092 printf "%s\n" "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
7093 fi
7094
7095
7096 echo "
7097    Sysstat version:             $PACKAGE_VERSION
7098    Installation prefix:         $prefix
7099    rc directory:                ${RC_DIR}
7100    Init directory:              ${INIT_DIR}"
7101 if test "$UCROND" != "yes"; then
7102    echo "   Systemd unit dir:           ${with_systemdsystemunitdir}"
7103    echo "   Systemd sleep dir:          ${with_systemdsleepdir}"
7104 else
7105    echo "   Use standard cron daemon"
7106 fi
7107 echo "   Configuration file:            ${SYSCONFIG_DIR}/${SYSCONFIG_FILE}
7108    Man pages directory:         $mandir
7109    Compiler:                    $CC
7110    Compiler flags:              $CFLAGS
7111    Linker flags:                $LDFLAGS
7112 "
7113