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