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