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