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