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