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