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