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