2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.65 for smartmontools 5.39.1.
5 # Report bugs to <smartmontools-support@lists.sourceforge.net>.
8 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
9 # 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation,
13 # This configure script is free software; the Free Software Foundation
14 # gives unlimited permission to copy, distribute and modify it.
15 ## -------------------- ##
16 ## M4sh Initialization. ##
17 ## -------------------- ##
19 # Be more Bourne compatible
20 DUALCASE
=1; export DUALCASE
# for MKS sh
21 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
24 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
25 # is contrary to our usage. Disable this feature.
26 alias -g '${1+"$@"}'='"$@"'
29 case `(set -o) 2>/dev/null` in #(
41 # Printing a long string crashes Solaris 7 /usr/bin/printf.
42 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
43 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
44 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
45 # Prefer a ksh shell builtin over an external printf program on Solaris,
46 # but without wasting forks for bash or zsh.
47 if test -z "$BASH_VERSION$ZSH_VERSION" \
48 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo_n='print
-rn --'
51 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
55 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
56 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
57 as_echo_n='/usr
/ucb
/echo -n'
59 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
64 expr "X$arg" : "X\\(.*\\)$as_nl";
65 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
67 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
70 as_echo_n='sh
-c $as_echo_n_body as_echo
'
73 as_echo='sh
-c $as_echo_body as_echo
'
76 # The user is always right.
77 if test "${PATH_SEPARATOR+set}" != set; then
79 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
80 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
87 # We need space, tab and new line, in precisely that order. Quoting is
88 # there to prevent editors from complaining about space-tab.
89 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
90 # splitting by setting IFS to empty value.)
93 # Find who we are. Look in the path if we contain no directory separator.
95 *[\\/]* ) as_myself=$0 ;;
96 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
100 test -z "$as_dir" && as_dir=.
101 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
107 # We did not find ourselves, most probably we were run as `sh COMMAND'
108 # in which case we are not to be found in the path.
109 if test "x$as_myself" = x
; then
112 if test ! -f "$as_myself"; then
113 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
117 # Unset variables that we do not need and which cause bugs (e.g. in
118 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
119 # suppresses any "Segmentation fault" message there. '((' could
120 # trigger a bug in pdksh 5.2.14.
121 for as_var
in BASH_ENV ENV MAIL MAILPATH
122 do eval test x\
${$as_var+set} = xset \
123 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
136 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
138 if test "x$CONFIG_SHELL" = x
; then
139 as_bourne_compatible
="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
142 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
143 # is contrary to our usage. Disable this feature.
144 alias -g '\${1+\"\$@\"}'='\"\$@\"'
147 case \`(set -o) 2>/dev/null\` in #(
155 as_required
="as_fn_return () { (exit \$1); }
156 as_fn_success () { as_fn_return 0; }
157 as_fn_failure () { as_fn_return 1; }
158 as_fn_ret_success () { return 0; }
159 as_fn_ret_failure () { return 1; }
162 as_fn_success || { exitcode=1; echo as_fn_success failed.; }
163 as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
164 as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
165 as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
166 if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
169 exitcode=1; echo positional parameters were not saved.
171 test x\$exitcode = x0 || exit 1"
172 as_suggested
=" as_lineno_1=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_1a=\$LINENO
173 as_lineno_2=";as_suggested
=$as_suggested$LINENO;as_suggested
=$as_suggested" as_lineno_2a=\$LINENO
174 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
175 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
176 test \$(( 1 + 1 )) = 2 || exit 1"
177 if (eval "$as_required") 2>/dev
/null
; then :
182 if test x
$as_have_required = xyes
&& (eval "$as_suggested") 2>/dev
/null
; then :
185 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
187 for as_dir
in /bin
$PATH_SEPARATOR/usr
/bin
$PATH_SEPARATOR$PATH
190 test -z "$as_dir" && as_dir
=.
194 for as_base
in sh bash ksh sh5
; do
195 # Try only shells that exist, to save several forks.
196 as_shell
=$as_dir/$as_base
197 if { test -f "$as_shell" ||
test -f "$as_shell.exe"; } &&
198 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
199 CONFIG_SHELL
=$as_shell as_have_required
=yes
200 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run
=a
"$as_shell"; } 2>/dev
/null
; then :
208 $as_found ||
{ if { test -f "$SHELL" ||
test -f "$SHELL.exe"; } &&
209 { $as_echo "$as_bourne_compatible""$as_required" | as_run
=a
"$SHELL"; } 2>/dev
/null
; then :
210 CONFIG_SHELL
=$SHELL as_have_required
=yes
215 if test "x$CONFIG_SHELL" != x
; then :
216 # We cannot yet assume a decent shell, so we have to provide a
217 # neutralization value for shells without unset; and this also
218 # works around shells that cannot unset nonexistent variables.
221 (unset BASH_ENV
) >/dev
/null
2>&1 && unset BASH_ENV ENV
223 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
226 if test x
$as_have_required = xno
; then :
227 $as_echo "$0: This script requires a shell more modern than all"
228 $as_echo "$0: the shells that I found on your system."
229 if test x
${ZSH_VERSION+set} = xset
; then
230 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
231 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
233 $as_echo "$0: Please tell bug-autoconf@gnu.org and
234 $0: smartmontools-support@lists.sourceforge.net about your
235 $0: system, including any error possibly output before this
236 $0: message. Then install a modern shell, or manually run
237 $0: the script under such a shell if you do have one."
243 SHELL
=${CONFIG_SHELL-/bin/sh}
245 # Unset more variables known to interfere with behavior of common tools.
246 CLICOLOR_FORCE
= GREP_OPTIONS
=
247 unset CLICOLOR_FORCE GREP_OPTIONS
249 ## --------------------- ##
250 ## M4sh Shell Functions. ##
251 ## --------------------- ##
254 # Portably unset VAR.
257 { eval $1=; unset $1;}
261 # as_fn_set_status STATUS
262 # -----------------------
263 # Set $? to STATUS, without forking.
271 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
281 # Create "$as_dir" as a directory, including parents if necessary.
286 -*) as_dir
=.
/$as_dir;;
288 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
292 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
295 as_dirs
="'$as_qdir' $as_dirs"
296 as_dir
=`$as_dirname -- "$as_dir" ||
297 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
298 X"$as_dir" : 'X\(//\)[^/]' \| \
299 X"$as_dir" : 'X\(//\)$' \| \
300 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
301 $as_echo X"$as_dir" |
302 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
319 test -d "$as_dir" && break
321 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
322 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
326 # as_fn_append VAR VALUE
327 # ----------------------
328 # Append the text in VALUE to the end of the definition contained in VAR. Take
329 # advantage of any shell optimizations that allow amortized linear growth over
330 # repeated appends, instead of the typical quadratic growth present in naive
332 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
333 eval 'as_fn_append ()
346 # Perform arithmetic evaluation on the ARGs, and store the result in the
347 # global $as_val. Take advantage of shells that can avoid forks. The arguments
348 # must be portable across $(()) and expr.
349 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
357 as_val
=`expr "$@" || test $? -eq 1`
362 # as_fn_error ERROR [LINENO LOG_FD]
363 # ---------------------------------
364 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
365 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
366 # script with status $?, using 1 if that was 0.
369 as_status
=$?
; test $as_status -eq 0 && as_status
=1
371 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
372 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
374 $as_echo "$as_me: error: $1" >&2
375 as_fn_exit
$as_status
378 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
379 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
385 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
391 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
397 as_me
=`$as_basename -- "$0" ||
398 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
399 X"$0" : 'X\(//\)$' \| \
400 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
402 sed '/^.*\/\([^/][^/]*\)\/*$/{
416 # Avoid depending upon Character Ranges.
417 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
418 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
419 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
420 as_cr_digits
='0123456789'
421 as_cr_alnum
=$as_cr_Letters$as_cr_digits
424 as_lineno_1
=$LINENO as_lineno_1a
=$LINENO
425 as_lineno_2
=$LINENO as_lineno_2a
=$LINENO
426 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
427 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' ||
{
428 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
440 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
444 chmod +x
"$as_me.lineno" ||
445 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit
1; }
447 # Don't try to exec as it changes $[0], causing all sort of problems
448 # (the dirname of $[0] is not the place where we might find the
449 # original and so on. Autoconf is especially sensitive to this).
451 # Exit status is that of the last command.
455 ECHO_C
= ECHO_N
= ECHO_T
=
456 case `echo -n x` in #(((((
458 case `echo 'xy\c'` in
459 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
461 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
468 rm -f conf$$ conf$$.exe conf$$.
file
469 if test -d conf$$.dir
; then
470 rm -f conf$$.dir
/conf$$.
file
473 mkdir conf$$.dir
2>/dev
/null
475 if (echo >conf$$.
file) 2>/dev
/null
; then
476 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
478 # ... but there are two gotchas:
479 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
480 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
481 # In both cases, we have to default to `cp -p'.
482 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
484 elif ln conf$$.
file conf$$
2>/dev
/null
; then
492 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
493 rmdir conf$$.dir
2>/dev
/null
495 if mkdir
-p .
2>/dev
/null
; then
496 as_mkdir_p
='mkdir -p "$as_dir"'
498 test -d .
/-p && rmdir .
/-p
502 if test -x / >/dev
/null
2>&1; then
505 if ls -dL / >/dev
/null
2>&1; then
512 if test -d "$1"; then
518 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
519 ???[sx]*):;;*)false;;esac;fi
523 as_executable_p
=$as_test_x
525 # Sed expression to map a string onto a valid CPP name.
526 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
528 # Sed expression to map a string onto a valid variable name.
529 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
532 test -n "$DJDIR" ||
exec 7<&0 </dev
/null
536 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
537 # so uname gets run too.
538 ac_hostname
=`(hostname || uname -n) 2>/dev/null | sed 1q`
543 ac_default_prefix
=/usr
/local
545 ac_config_libobj_dir
=.
552 # Identity of this package.
553 PACKAGE_NAME
='smartmontools'
554 PACKAGE_TARNAME
='smartmontools'
555 PACKAGE_VERSION
='5.39.1'
556 PACKAGE_STRING
='smartmontools 5.39.1'
557 PACKAGE_BUGREPORT
='smartmontools-support@lists.sourceforge.net'
560 ac_unique_file
="smartctl.cpp"
561 # Factoring default headers for most tests.
562 ac_includes_default
="\
564 #ifdef HAVE_SYS_TYPES_H
565 # include <sys/types.h>
567 #ifdef HAVE_SYS_STAT_H
568 # include <sys/stat.h>
574 # ifdef HAVE_STDLIB_H
579 # if !defined STDC_HEADERS && defined HAVE_MEMORY_H
584 #ifdef HAVE_STRINGS_H
585 # include <strings.h>
587 #ifdef HAVE_INTTYPES_H
588 # include <inttypes.h>
597 ac_subst_vars
='am__EXEEXT_FALSE
611 smartmontools_release_time
612 smartmontools_release_date
618 ENABLE_ATTRIBUTELOG_FALSE
619 ENABLE_ATTRIBUTELOG_TRUE
622 ENABLE_SAVESTATES_FALSE
623 ENABLE_SAVESTATES_TRUE
629 INSTALL_INITSCRIPT_FALSE
630 INSTALL_INITSCRIPT_TRUE
635 libc_have_working_snprintf
649 am__fastdepCCAS_FALSE
677 MAINTAINER_MODE_FALSE
687 INSTALL_STRIP_PROGRAM
729 program_transform_name
742 enable_option_checking
743 enable_maintainer_mode
744 enable_dependency_tracking
757 ac_precious_vars
='build_alias
773 # Initialize some variables set by options.
775 ac_init_version
=false
776 ac_unrecognized_opts
=
778 # The variables have the same names as the options, with
779 # dashes changed to underlines.
787 program_transform_name
=s
,x
,x
,
795 # Installation directory options.
796 # These are left unexpanded so users can "make install exec_prefix=/foo"
797 # and all the variables that are supposed to be based on exec_prefix
798 # by default will actually change.
799 # Use braces instead of parens because sh, perl, etc. also accept them.
800 # (The list follows the same order as the GNU Coding Standards.)
801 bindir
='${exec_prefix}/bin'
802 sbindir
='${exec_prefix}/sbin'
803 libexecdir
='${exec_prefix}/libexec'
804 datarootdir
='${prefix}/share'
805 datadir
='${datarootdir}'
806 sysconfdir
='${prefix}/etc'
807 sharedstatedir
='${prefix}/com'
808 localstatedir
='${prefix}/var'
809 includedir
='${prefix}/include'
810 oldincludedir
='/usr/include'
811 docdir
='${datarootdir}/doc/${PACKAGE_TARNAME}'
812 infodir
='${datarootdir}/info'
817 libdir
='${exec_prefix}/lib'
818 localedir
='${datarootdir}/locale'
819 mandir
='${datarootdir}/man'
825 # If the previous option needs an argument, assign it.
826 if test -n "$ac_prev"; then
827 eval $ac_prev=\
$ac_option
833 *=*) ac_optarg
=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
837 # Accept the important Cygnus configure options, so we can diagnose typos.
839 case $ac_dashdash$ac_option in
843 -bindir |
--bindir |
--bindi |
--bind |
--bin |
--bi)
845 -bindir=* |
--bindir=* |
--bindi=* |
--bind=* |
--bin=* |
--bi=*)
848 -build |
--build |
--buil |
--bui |
--bu)
849 ac_prev
=build_alias
;;
850 -build=* |
--build=* |
--buil=* |
--bui=* |
--bu=*)
851 build_alias
=$ac_optarg ;;
853 -cache-file |
--cache-file |
--cache-fil |
--cache-fi \
854 |
--cache-f |
--cache- |
--cache |
--cach |
--cac |
--ca |
--c)
855 ac_prev
=cache_file
;;
856 -cache-file=* |
--cache-file=* |
--cache-fil=* |
--cache-fi=* \
857 |
--cache-f=* |
--cache-=* |
--cache=* |
--cach=* |
--cac=* |
--ca=* |
--c=*)
858 cache_file
=$ac_optarg ;;
861 cache_file
=config.cache
;;
863 -datadir |
--datadir |
--datadi |
--datad)
865 -datadir=* |
--datadir=* |
--datadi=* |
--datad=*)
866 datadir
=$ac_optarg ;;
868 -datarootdir |
--datarootdir |
--datarootdi |
--datarootd |
--dataroot \
869 |
--dataroo |
--dataro |
--datar)
870 ac_prev
=datarootdir
;;
871 -datarootdir=* |
--datarootdir=* |
--datarootdi=* |
--datarootd=* \
872 |
--dataroot=* |
--dataroo=* |
--dataro=* |
--datar=*)
873 datarootdir
=$ac_optarg ;;
875 -disable-* |
--disable-*)
876 ac_useropt
=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
877 # Reject names that are not valid shell variable names.
878 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
879 as_fn_error
"invalid feature name: $ac_useropt"
880 ac_useropt_orig
=$ac_useropt
881 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
882 case $ac_user_opts in
886 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
887 ac_unrecognized_sep
=', ';;
889 eval enable_
$ac_useropt=no
;;
891 -docdir |
--docdir |
--docdi |
--doc |
--do)
893 -docdir=* |
--docdir=* |
--docdi=* |
--doc=* |
--do=*)
896 -dvidir |
--dvidir |
--dvidi |
--dvid |
--dvi |
--dv)
898 -dvidir=* |
--dvidir=* |
--dvidi=* |
--dvid=* |
--dvi=* |
--dv=*)
901 -enable-* |
--enable-*)
902 ac_useropt
=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
903 # Reject names that are not valid shell variable names.
904 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
905 as_fn_error
"invalid feature name: $ac_useropt"
906 ac_useropt_orig
=$ac_useropt
907 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
908 case $ac_user_opts in
912 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
913 ac_unrecognized_sep
=', ';;
915 eval enable_
$ac_useropt=\
$ac_optarg ;;
917 -exec-prefix |
--exec_prefix |
--exec-prefix |
--exec-prefi \
918 |
--exec-pref |
--exec-pre |
--exec-pr |
--exec-p |
--exec- \
919 |
--exec |
--exe |
--ex)
920 ac_prev
=exec_prefix
;;
921 -exec-prefix=* |
--exec_prefix=* |
--exec-prefix=* |
--exec-prefi=* \
922 |
--exec-pref=* |
--exec-pre=* |
--exec-pr=* |
--exec-p=* |
--exec-=* \
923 |
--exec=* |
--exe=* |
--ex=*)
924 exec_prefix
=$ac_optarg ;;
926 -gas |
--gas |
--ga |
--g)
927 # Obsolete; use --with-gas.
930 -help |
--help |
--hel |
--he |
-h)
932 -help=r
* |
--help=r
* |
--hel=r
* |
--he=r
* |
-hr*)
933 ac_init_help
=recursive
;;
934 -help=s
* |
--help=s
* |
--hel=s
* |
--he=s
* |
-hs*)
935 ac_init_help
=short
;;
937 -host |
--host |
--hos |
--ho)
938 ac_prev
=host_alias
;;
939 -host=* |
--host=* |
--hos=* |
--ho=*)
940 host_alias
=$ac_optarg ;;
942 -htmldir |
--htmldir |
--htmldi |
--htmld |
--html |
--htm |
--ht)
944 -htmldir=* |
--htmldir=* |
--htmldi=* |
--htmld=* |
--html=* |
--htm=* \
946 htmldir
=$ac_optarg ;;
948 -includedir |
--includedir |
--includedi |
--included |
--include \
949 |
--includ |
--inclu |
--incl |
--inc)
950 ac_prev
=includedir
;;
951 -includedir=* |
--includedir=* |
--includedi=* |
--included=* |
--include=* \
952 |
--includ=* |
--inclu=* |
--incl=* |
--inc=*)
953 includedir
=$ac_optarg ;;
955 -infodir |
--infodir |
--infodi |
--infod |
--info |
--inf)
957 -infodir=* |
--infodir=* |
--infodi=* |
--infod=* |
--info=* |
--inf=*)
958 infodir
=$ac_optarg ;;
960 -libdir |
--libdir |
--libdi |
--libd)
962 -libdir=* |
--libdir=* |
--libdi=* |
--libd=*)
965 -libexecdir |
--libexecdir |
--libexecdi |
--libexecd |
--libexec \
966 |
--libexe |
--libex |
--libe)
967 ac_prev
=libexecdir
;;
968 -libexecdir=* |
--libexecdir=* |
--libexecdi=* |
--libexecd=* |
--libexec=* \
969 |
--libexe=* |
--libex=* |
--libe=*)
970 libexecdir
=$ac_optarg ;;
972 -localedir |
--localedir |
--localedi |
--localed |
--locale)
974 -localedir=* |
--localedir=* |
--localedi=* |
--localed=* |
--locale=*)
975 localedir
=$ac_optarg ;;
977 -localstatedir |
--localstatedir |
--localstatedi |
--localstated \
978 |
--localstate |
--localstat |
--localsta |
--localst |
--locals)
979 ac_prev
=localstatedir
;;
980 -localstatedir=* |
--localstatedir=* |
--localstatedi=* |
--localstated=* \
981 |
--localstate=* |
--localstat=* |
--localsta=* |
--localst=* |
--locals=*)
982 localstatedir
=$ac_optarg ;;
984 -mandir |
--mandir |
--mandi |
--mand |
--man |
--ma |
--m)
986 -mandir=* |
--mandir=* |
--mandi=* |
--mand=* |
--man=* |
--ma=* |
--m=*)
990 # Obsolete; use --without-fp.
993 -no-create |
--no-create |
--no-creat |
--no-crea |
--no-cre \
994 |
--no-cr |
--no-c |
-n)
997 -no-recursion |
--no-recursion |
--no-recursio |
--no-recursi \
998 |
--no-recurs |
--no-recur |
--no-recu |
--no-rec |
--no-re |
--no-r)
1001 -oldincludedir |
--oldincludedir |
--oldincludedi |
--oldincluded \
1002 |
--oldinclude |
--oldinclud |
--oldinclu |
--oldincl |
--oldinc \
1003 |
--oldin |
--oldi |
--old |
--ol |
--o)
1004 ac_prev
=oldincludedir
;;
1005 -oldincludedir=* |
--oldincludedir=* |
--oldincludedi=* |
--oldincluded=* \
1006 |
--oldinclude=* |
--oldinclud=* |
--oldinclu=* |
--oldincl=* |
--oldinc=* \
1007 |
--oldin=* |
--oldi=* |
--old=* |
--ol=* |
--o=*)
1008 oldincludedir
=$ac_optarg ;;
1010 -prefix |
--prefix |
--prefi |
--pref |
--pre |
--pr |
--p)
1012 -prefix=* |
--prefix=* |
--prefi=* |
--pref=* |
--pre=* |
--pr=* |
--p=*)
1013 prefix
=$ac_optarg ;;
1015 -program-prefix |
--program-prefix |
--program-prefi |
--program-pref \
1016 |
--program-pre |
--program-pr |
--program-p)
1017 ac_prev
=program_prefix
;;
1018 -program-prefix=* |
--program-prefix=* |
--program-prefi=* \
1019 |
--program-pref=* |
--program-pre=* |
--program-pr=* |
--program-p=*)
1020 program_prefix
=$ac_optarg ;;
1022 -program-suffix |
--program-suffix |
--program-suffi |
--program-suff \
1023 |
--program-suf |
--program-su |
--program-s)
1024 ac_prev
=program_suffix
;;
1025 -program-suffix=* |
--program-suffix=* |
--program-suffi=* \
1026 |
--program-suff=* |
--program-suf=* |
--program-su=* |
--program-s=*)
1027 program_suffix
=$ac_optarg ;;
1029 -program-transform-name |
--program-transform-name \
1030 |
--program-transform-nam |
--program-transform-na \
1031 |
--program-transform-n |
--program-transform- \
1032 |
--program-transform |
--program-transfor \
1033 |
--program-transfo |
--program-transf \
1034 |
--program-trans |
--program-tran \
1035 |
--progr-tra |
--program-tr |
--program-t)
1036 ac_prev
=program_transform_name
;;
1037 -program-transform-name=* |
--program-transform-name=* \
1038 |
--program-transform-nam=* |
--program-transform-na=* \
1039 |
--program-transform-n=* |
--program-transform-=* \
1040 |
--program-transform=* |
--program-transfor=* \
1041 |
--program-transfo=* |
--program-transf=* \
1042 |
--program-trans=* |
--program-tran=* \
1043 |
--progr-tra=* |
--program-tr=* |
--program-t=*)
1044 program_transform_name
=$ac_optarg ;;
1046 -pdfdir |
--pdfdir |
--pdfdi |
--pdfd |
--pdf |
--pd)
1048 -pdfdir=* |
--pdfdir=* |
--pdfdi=* |
--pdfd=* |
--pdf=* |
--pd=*)
1049 pdfdir
=$ac_optarg ;;
1051 -psdir |
--psdir |
--psdi |
--psd |
--ps)
1053 -psdir=* |
--psdir=* |
--psdi=* |
--psd=* |
--ps=*)
1056 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
1057 |
-silent |
--silent |
--silen |
--sile |
--sil)
1060 -sbindir |
--sbindir |
--sbindi |
--sbind |
--sbin |
--sbi |
--sb)
1062 -sbindir=* |
--sbindir=* |
--sbindi=* |
--sbind=* |
--sbin=* \
1064 sbindir
=$ac_optarg ;;
1066 -sharedstatedir |
--sharedstatedir |
--sharedstatedi \
1067 |
--sharedstated |
--sharedstate |
--sharedstat |
--sharedsta \
1068 |
--sharedst |
--shareds |
--shared |
--share |
--shar \
1070 ac_prev
=sharedstatedir
;;
1071 -sharedstatedir=* |
--sharedstatedir=* |
--sharedstatedi=* \
1072 |
--sharedstated=* |
--sharedstate=* |
--sharedstat=* |
--sharedsta=* \
1073 |
--sharedst=* |
--shareds=* |
--shared=* |
--share=* |
--shar=* \
1075 sharedstatedir
=$ac_optarg ;;
1077 -site |
--site |
--sit)
1079 -site=* |
--site=* |
--sit=*)
1082 -srcdir |
--srcdir |
--srcdi |
--srcd |
--src |
--sr)
1084 -srcdir=* |
--srcdir=* |
--srcdi=* |
--srcd=* |
--src=* |
--sr=*)
1085 srcdir
=$ac_optarg ;;
1087 -sysconfdir |
--sysconfdir |
--sysconfdi |
--sysconfd |
--sysconf \
1088 |
--syscon |
--sysco |
--sysc |
--sys |
--sy)
1089 ac_prev
=sysconfdir
;;
1090 -sysconfdir=* |
--sysconfdir=* |
--sysconfdi=* |
--sysconfd=* |
--sysconf=* \
1091 |
--syscon=* |
--sysco=* |
--sysc=* |
--sys=* |
--sy=*)
1092 sysconfdir
=$ac_optarg ;;
1094 -target |
--target |
--targe |
--targ |
--tar |
--ta |
--t)
1095 ac_prev
=target_alias
;;
1096 -target=* |
--target=* |
--targe=* |
--targ=* |
--tar=* |
--ta=* |
--t=*)
1097 target_alias
=$ac_optarg ;;
1099 -v |
-verbose |
--verbose |
--verbos |
--verbo |
--verb)
1102 -version |
--version |
--versio |
--versi |
--vers |
-V)
1103 ac_init_version
=: ;;
1106 ac_useropt
=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1107 # Reject names that are not valid shell variable names.
1108 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1109 as_fn_error
"invalid package name: $ac_useropt"
1110 ac_useropt_orig
=$ac_useropt
1111 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1112 case $ac_user_opts in
1116 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1117 ac_unrecognized_sep
=', ';;
1119 eval with_
$ac_useropt=\
$ac_optarg ;;
1121 -without-* |
--without-*)
1122 ac_useropt
=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1123 # Reject names that are not valid shell variable names.
1124 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev
/null
&&
1125 as_fn_error
"invalid package name: $ac_useropt"
1126 ac_useropt_orig
=$ac_useropt
1127 ac_useropt
=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1128 case $ac_user_opts in
1132 *) ac_unrecognized_opts
="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1133 ac_unrecognized_sep
=', ';;
1135 eval with_
$ac_useropt=no
;;
1138 # Obsolete; use --with-x.
1141 -x-includes |
--x-includes |
--x-include |
--x-includ |
--x-inclu \
1142 |
--x-incl |
--x-inc |
--x-in |
--x-i)
1143 ac_prev
=x_includes
;;
1144 -x-includes=* |
--x-includes=* |
--x-include=* |
--x-includ=* |
--x-inclu=* \
1145 |
--x-incl=* |
--x-inc=* |
--x-in=* |
--x-i=*)
1146 x_includes
=$ac_optarg ;;
1148 -x-libraries |
--x-libraries |
--x-librarie |
--x-librari \
1149 |
--x-librar |
--x-libra |
--x-libr |
--x-lib |
--x-li |
--x-l)
1150 ac_prev
=x_libraries
;;
1151 -x-libraries=* |
--x-libraries=* |
--x-librarie=* |
--x-librari=* \
1152 |
--x-librar=* |
--x-libra=* |
--x-libr=* |
--x-lib=* |
--x-li=* |
--x-l=*)
1153 x_libraries
=$ac_optarg ;;
1155 -*) as_fn_error
"unrecognized option: \`$ac_option'
1156 Try \`$0 --help' for more information."
1160 ac_envvar
=`expr "x$ac_option" : 'x\([^=]*\)='`
1161 # Reject names that are not valid shell variable names.
1162 case $ac_envvar in #(
1163 '' |
[0-9]* |
*[!_
$as_cr_alnum]* )
1164 as_fn_error
"invalid variable name: \`$ac_envvar'" ;;
1166 eval $ac_envvar=\
$ac_optarg
1167 export $ac_envvar ;;
1170 # FIXME: should be removed in autoconf 3.0.
1171 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1172 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev
/null
&&
1173 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1174 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1180 if test -n "$ac_prev"; then
1181 ac_option
=--`echo $ac_prev | sed 's/_/-/g'`
1182 as_fn_error
"missing argument to $ac_option"
1185 if test -n "$ac_unrecognized_opts"; then
1186 case $enable_option_checking in
1188 fatal
) as_fn_error
"unrecognized options: $ac_unrecognized_opts" ;;
1189 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1193 # Check all directory arguments for consistency.
1194 for ac_var
in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1195 datadir sysconfdir sharedstatedir localstatedir includedir \
1196 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1197 libdir localedir mandir
1199 eval ac_val
=\$
$ac_var
1200 # Remove trailing slashes.
1203 ac_val
=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1204 eval $ac_var=\
$ac_val;;
1206 # Be sure to have absolute directory names.
1208 [\\/$
]* | ?
:[\\/]* ) continue;;
1209 NONE |
'' ) case $ac_var in *prefix
) continue;; esac;;
1211 as_fn_error
"expected an absolute directory name for --$ac_var: $ac_val"
1214 # There might be people who depend on the old broken behavior: `$host'
1215 # used to hold the argument of --host etc.
1216 # FIXME: To remove some day.
1219 target
=$target_alias
1221 # FIXME: To remove some day.
1222 if test "x$host_alias" != x
; then
1223 if test "x$build_alias" = x
; then
1224 cross_compiling
=maybe
1225 $as_echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1226 If a cross compiler is detected then cross compile mode will be used." >&2
1227 elif test "x$build_alias" != "x$host_alias"; then
1233 test -n "$host_alias" && ac_tool_prefix
=$host_alias-
1235 test "$silent" = yes && exec 6>/dev
/null
1238 ac_pwd
=`pwd` && test -n "$ac_pwd" &&
1239 ac_ls_di
=`ls -di .` &&
1240 ac_pwd_ls_di
=`cd "$ac_pwd" && ls -di .` ||
1241 as_fn_error
"working directory cannot be determined"
1242 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1243 as_fn_error
"pwd does not report name of working directory"
1246 # Find the source files, if location was not specified.
1247 if test -z "$srcdir"; then
1248 ac_srcdir_defaulted
=yes
1249 # Try the directory containing this script, then the parent directory.
1250 ac_confdir
=`$as_dirname -- "$as_myself" ||
1251 $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1252 X"$as_myself" : 'X\(//\)[^/]' \| \
1253 X"$as_myself" : 'X\(//\)$' \| \
1254 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1255 $as_echo X"$as_myself" |
1256 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1274 if test ! -r "$srcdir/$ac_unique_file"; then
1278 ac_srcdir_defaulted
=no
1280 if test ! -r "$srcdir/$ac_unique_file"; then
1281 test "$ac_srcdir_defaulted" = yes && srcdir
="$ac_confdir or .."
1282 as_fn_error
"cannot find sources ($ac_unique_file) in $srcdir"
1284 ac_msg
="sources are in $srcdir, but \`cd $srcdir' does not work"
1286 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error "$ac_msg"
1288 # When building in place, set srcdir=.
1289 if test "$ac_abs_confdir" = "$ac_pwd"; then
1292 # Remove unnecessary trailing slashes from srcdir.
1293 # Double slashes in file names in object file debugging info
1294 # mess up M-x gdb in Emacs.
1296 */) srcdir
=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1298 for ac_var
in $ac_precious_vars; do
1299 eval ac_env_
${ac_var}_set=\${${ac_var}+set}
1300 eval ac_env_
${ac_var}_value
=\$
${ac_var}
1301 eval ac_cv_env_
${ac_var}_set=\${${ac_var}+set}
1302 eval ac_cv_env_
${ac_var}_value
=\$
${ac_var}
1306 # Report the --help message.
1308 if test "$ac_init_help" = "long"; then
1309 # Omit some internal or obsolete options to make the list less imposing.
1310 # This message is too long to be a string in the A/UX 3.1 sh.
1312 \`configure' configures smartmontools 5.39.1 to adapt to many kinds of systems.
1314 Usage: $0 [OPTION]... [VAR=VALUE]...
1316 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1317 VAR=VALUE. See below for descriptions of some of the useful variables.
1319 Defaults for the options are specified in brackets.
1322 -h, --help display this help and exit
1323 --help=short display options specific to this package
1324 --help=recursive display the short help of all the included packages
1325 -V, --version display version information and exit
1326 -q, --quiet, --silent do not print \`checking...' messages
1327 --cache-file=FILE cache test results in FILE [disabled]
1328 -C, --config-cache alias for \`--cache-file=config.cache'
1329 -n, --no-create do not create output files
1330 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1332 Installation directories:
1333 --prefix=PREFIX install architecture-independent files in PREFIX
1334 [$ac_default_prefix]
1335 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1338 By default, \`make install' will install all the files in
1339 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1340 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1341 for instance \`--prefix=\$HOME'.
1343 For better control, use the options below.
1345 Fine tuning of the installation directories:
1346 --bindir=DIR user executables [EPREFIX/bin]
1347 --sbindir=DIR system admin executables [EPREFIX/sbin]
1348 --libexecdir=DIR program executables [EPREFIX/libexec]
1349 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1350 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1351 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1352 --libdir=DIR object code libraries [EPREFIX/lib]
1353 --includedir=DIR C header files [PREFIX/include]
1354 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1355 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1356 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1357 --infodir=DIR info documentation [DATAROOTDIR/info]
1358 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1359 --mandir=DIR man documentation [DATAROOTDIR/man]
1360 --docdir=DIR documentation root [DATAROOTDIR/doc/smartmontools]
1361 --htmldir=DIR html documentation [DOCDIR]
1362 --dvidir=DIR dvi documentation [DOCDIR]
1363 --pdfdir=DIR pdf documentation [DOCDIR]
1364 --psdir=DIR ps documentation [DOCDIR]
1370 --program-prefix=PREFIX prepend PREFIX to installed program names
1371 --program-suffix=SUFFIX append SUFFIX to installed program names
1372 --program-transform-name=PROGRAM run
sed PROGRAM on installed program names
1375 --build=BUILD configure
for building on BUILD
[guessed
]
1376 --host=HOST cross-compile to build programs to run on HOST
[BUILD
]
1380 if test -n "$ac_init_help"; then
1381 case $ac_init_help in
1382 short | recursive
) echo "Configuration of smartmontools 5.39.1:";;
1387 --disable-option-checking ignore unrecognized
--enable/--with options
1388 --disable-FEATURE do not include FEATURE
(same as
--enable-FEATURE=no
)
1389 --enable-FEATURE[=ARG
] include FEATURE
[ARG
=yes]
1390 --enable-maintainer-mode enable make rules and dependencies not useful
1391 (and sometimes confusing
) to the casual installer
1392 --disable-dependency-tracking speeds up one-time build
1393 --enable-dependency-tracking do not reject slow dependency extractors
1394 --enable-drivedb Enables drive database
file
1395 --enable-savestates Enables default smartd state files
1396 --enable-attributelog Enables default smartd attribute log files
1397 --enable-sample Enables appending .sample to the installed smartd rc
1398 script and configuration
file
1401 --with-PACKAGE[=ARG
] use PACKAGE
[ARG
=yes]
1402 --without-PACKAGE do not use PACKAGE
(same as
--with-PACKAGE=no
)
1403 --with-initscriptdir=dir
1404 Location of init scripts
(default is
1405 ${sysconfdir}/rc.d
/init.d
)
1406 --with-docdir=dir Location of documentation
(default is
1407 ${prefix}/share
/doc
/smartmontools-5.X
)
1408 --with-drivedbdir=DIR Location of drive database
file (implies
1409 --enable-drivedb) [DATADIR
/smartmontools
]
1410 --with-savestates=PREFIX
1411 Prefix
for default smartd state files
(implies
1412 --enable-savestates)
1413 [LOCALSTATEDIR
/lib
/smartmontools
/smartd.
]
1414 --with-attributelog=PREFIX
1415 Prefix
for default smartd attribute log files
1416 (implies
--enable-attributelog)
1417 [LOCALSTATEDIR
/lib
/smartmontools
/attrlog.
]
1418 --with-os-deps='os_module.o ...'
1419 Specify OS dependent module
(s
) [guessed
]
1420 --with-selinux Enables SELinux support
1422 Some influential environment variables
:
1423 CXX C
++ compiler
command
1424 CXXFLAGS C
++ compiler flags
1425 LDFLAGS linker flags
, e.g.
-L<lib dir
> if you have libraries
in a
1426 nonstandard directory
<lib dir
>
1427 LIBS libraries to pass to the linker
, e.g.
-l<library
>
1428 CPPFLAGS
(Objective
) C
/C
++ preprocessor flags
, e.g.
-I<include dir
> if
1429 you have headers
in a nonstandard directory
<include dir
>
1430 CC C compiler
command
1431 CFLAGS C compiler flags
1432 CCAS assembler compiler
command (defaults to CC
)
1433 CCASFLAGS assembler compiler flags
(defaults to CFLAGS
)
1434 CXXCPP C
++ preprocessor
1436 Use these variables to override the choices made by
`configure' or to help
1437 it to find libraries and programs with nonstandard names/locations.
1439 Report bugs to <smartmontools-support@lists.sourceforge.net>.
1444 if test "$ac_init_help" = "recursive"; then
1445 # If there are subdirs, report their specific --help.
1446 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1447 test -d "$ac_dir" ||
1448 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1453 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1455 ac_dir_suffix=/`$as_echo "$ac_dir" |
sed 's|^\.[\\/]||'`
1456 # A ".." for each directory in $ac_dir_suffix.
1457 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" |
sed 's|/[^\\/]*|/..|g;s|/||'`
1458 case $ac_top_builddir_sub in
1459 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1460 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1463 ac_abs_top_builddir=$ac_pwd
1464 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1465 # for backward compatibility:
1466 ac_top_builddir=$ac_top_build_prefix
1469 .) # We are building in place.
1471 ac_top_srcdir=$ac_top_builddir_sub
1472 ac_abs_top_srcdir=$ac_pwd ;;
1473 [\\/]* | ?:[\\/]* ) # Absolute name.
1474 ac_srcdir=$srcdir$ac_dir_suffix;
1475 ac_top_srcdir=$srcdir
1476 ac_abs_top_srcdir=$srcdir ;;
1478 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1479 ac_top_srcdir=$ac_top_build_prefix$srcdir
1480 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1482 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1484 cd "$ac_dir" || { ac_status=$?; continue; }
1485 # Check for guested configure.
1486 if test -f "$ac_srcdir/configure.gnu"; then
1488 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1489 elif test -f "$ac_srcdir/configure"; then
1491 $SHELL "$ac_srcdir/configure" --help=recursive
1493 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1495 cd "$ac_pwd" || { ac_status=$?; break; }
1499 test -n "$ac_init_help" && exit $ac_status
1500 if $ac_init_version; then
1502 smartmontools configure 5.39.1
1503 generated by GNU Autoconf 2.65
1505 Copyright (C) 2009 Free Software Foundation, Inc.
1506 This configure script is free software; the Free Software Foundation
1507 gives unlimited permission to copy, distribute and modify it.
1512 ## ------------------------ ##
1513 ## Autoconf initialization. ##
1514 ## ------------------------ ##
1516 # ac_fn_cxx_try_compile LINENO
1517 # ----------------------------
1518 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1519 ac_fn_cxx_try_compile ()
1521 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1522 rm -f conftest.$ac_objext
1523 if { { ac_try="$ac_compile"
1525 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1526 *) ac_try_echo
=$ac_try;;
1528 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1529 $as_echo "$ac_try_echo"; } >&5
1530 (eval "$ac_compile") 2>conftest.err
1532 if test -s conftest.err
; then
1533 grep -v '^ *+' conftest.err
>conftest.er1
1534 cat conftest.er1
>&5
1535 mv -f conftest.er1 conftest.err
1537 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1538 test $ac_status = 0; } && {
1539 test -z "$ac_cxx_werror_flag" ||
1540 test ! -s conftest.err
1541 } && test -s conftest.
$ac_objext; then :
1544 $as_echo "$as_me: failed program was:" >&5
1545 sed 's/^/| /' conftest.
$ac_ext >&5
1549 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1550 as_fn_set_status
$ac_retval
1552 } # ac_fn_cxx_try_compile
1554 # ac_fn_c_try_compile LINENO
1555 # --------------------------
1556 # Try to compile conftest.$ac_ext, and return whether this succeeded.
1557 ac_fn_c_try_compile
()
1559 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1560 rm -f conftest.
$ac_objext
1561 if { { ac_try
="$ac_compile"
1563 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1564 *) ac_try_echo=$ac_try;;
1566 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1567 $as_echo "$ac_try_echo"; } >&5
1568 (eval "$ac_compile") 2>conftest.err
1570 if test -s conftest.err; then
1571 grep -v '^ *+' conftest.err >conftest.er1
1572 cat conftest.er1 >&5
1573 mv -f conftest.er1 conftest.err
1575 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1576 test $ac_status = 0; } && {
1577 test -z "$ac_c_werror_flag" ||
1578 test ! -s conftest.err
1579 } && test -s conftest.$ac_objext; then :
1582 $as_echo "$as_me: failed program was:" >&5
1583 sed 's/^/| /' conftest.$ac_ext >&5
1587 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1588 as_fn_set_status $ac_retval
1590 } # ac_fn_c_try_compile
1592 # ac_fn_cxx_try_link LINENO
1593 # -------------------------
1594 # Try to link conftest.$ac_ext, and return whether this succeeded.
1595 ac_fn_cxx_try_link ()
1597 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1598 rm -f conftest.$ac_objext conftest$ac_exeext
1599 if { { ac_try="$ac_link"
1601 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1602 *) ac_try_echo
=$ac_try;;
1604 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1605 $as_echo "$ac_try_echo"; } >&5
1606 (eval "$ac_link") 2>conftest.err
1608 if test -s conftest.err
; then
1609 grep -v '^ *+' conftest.err
>conftest.er1
1610 cat conftest.er1
>&5
1611 mv -f conftest.er1 conftest.err
1613 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1614 test $ac_status = 0; } && {
1615 test -z "$ac_cxx_werror_flag" ||
1616 test ! -s conftest.err
1617 } && test -s conftest
$ac_exeext && {
1618 test "$cross_compiling" = yes ||
1619 $as_test_x conftest
$ac_exeext
1623 $as_echo "$as_me: failed program was:" >&5
1624 sed 's/^/| /' conftest.
$ac_ext >&5
1628 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
1629 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
1630 # interfere with the next link command; also delete a directory that is
1631 # left behind by Apple's compiler. We do this before executing the actions.
1632 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1633 eval $as_lineno_stack; test "x$as_lineno_stack" = x
&& { as_lineno
=; unset as_lineno
;}
1634 as_fn_set_status
$ac_retval
1636 } # ac_fn_cxx_try_link
1638 # ac_fn_cxx_try_cpp LINENO
1639 # ------------------------
1640 # Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1641 ac_fn_cxx_try_cpp
()
1643 as_lineno
=${as_lineno-"$1"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
1644 if { { ac_try
="$ac_cpp conftest.$ac_ext"
1646 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1647 *) ac_try_echo=$ac_try;;
1649 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1650 $as_echo "$ac_try_echo"; } >&5
1651 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1653 if test -s conftest.err; then
1654 grep -v '^ *+' conftest.err >conftest.er1
1655 cat conftest.er1 >&5
1656 mv -f conftest.er1 conftest.err
1658 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1659 test $ac_status = 0; } >/dev/null && {
1660 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1661 test ! -s conftest.err
1665 $as_echo "$as_me: failed program was:" >&5
1666 sed 's/^/| /' conftest.$ac_ext >&5
1670 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1671 as_fn_set_status $ac_retval
1673 } # ac_fn_cxx_try_cpp
1675 # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1676 # ---------------------------------------------------------
1677 # Tests whether HEADER exists, giving a warning if it cannot be compiled using
1678 # the include files in INCLUDES and setting the cache variable VAR
1680 ac_fn_cxx_check_header_mongrel ()
1682 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1683 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1684 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1685 $as_echo_n "checking for $2... " >&6; }
1686 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1687 $as_echo_n "(cached) " >&6
1690 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1691 $as_echo "$ac_res" >&6; }
1693 # Is the header compilable?
1694 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1695 $as_echo_n "checking $2 usability... " >&6; }
1696 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1697 /* end confdefs.h. */
1701 if ac_fn_cxx_try_compile "$LINENO"; then :
1702 ac_header_compiler=yes
1704 ac_header_compiler=no
1706 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1707 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1708 $as_echo "$ac_header_compiler" >&6; }
1710 # Is the header present?
1711 { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1712 $as_echo_n "checking $2 presence... " >&6; }
1713 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1714 /* end confdefs.h. */
1717 if ac_fn_cxx_try_cpp "$LINENO"; then :
1718 ac_header_preproc=yes
1720 ac_header_preproc=no
1722 rm -f conftest.err conftest.$ac_ext
1723 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1724 $as_echo "$ac_header_preproc" >&6; }
1726 # So? What about this header?
1727 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
1729 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1730 $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1731 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1732 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1735 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1736 $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1737 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1738 $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1739 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1740 $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1741 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1742 $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1743 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1744 $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1746 ## ---------------------------------------------------------- ##
1747 ## Report this to smartmontools-support@lists.sourceforge.net ##
1748 ## ---------------------------------------------------------- ##
1750 ) | sed "s/^/$as_me: WARNING: /" >&2
1753 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1754 $as_echo_n "checking for $2... " >&6; }
1755 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1756 $as_echo_n "(cached) " >&6
1758 eval "$3=\$ac_header_compiler"
1761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1762 $as_echo "$ac_res" >&6; }
1764 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1766 } # ac_fn_cxx_check_header_mongrel
1768 # ac_fn_cxx_try_run LINENO
1769 # ------------------------
1770 # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1771 # that executables *can* be run.
1772 ac_fn_cxx_try_run ()
1774 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1775 if { { ac_try="$ac_link"
1777 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
1778 *) ac_try_echo
=$ac_try;;
1780 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1781 $as_echo "$ac_try_echo"; } >&5
1782 (eval "$ac_link") 2>&5
1784 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1785 test $ac_status = 0; } && { ac_try
='./conftest$ac_exeext'
1786 { { case "(($ac_try" in
1787 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
1788 *) ac_try_echo=$ac_try;;
1790 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1791 $as_echo "$ac_try_echo"; } >&5
1792 (eval "$ac_try") 2>&5
1794 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1795 test $ac_status = 0; }; }; then :
1798 $as_echo "$as_me: program exited with status $ac_status" >&5
1799 $as_echo "$as_me: failed program was:" >&5
1800 sed 's/^/| /' conftest.$ac_ext >&5
1802 ac_retval=$ac_status
1804 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1805 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1806 as_fn_set_status $ac_retval
1808 } # ac_fn_cxx_try_run
1810 # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
1811 # ---------------------------------------------------------
1812 # Tests whether HEADER exists and can be compiled using the include files in
1813 # INCLUDES, setting the cache variable VAR accordingly.
1814 ac_fn_cxx_check_header_compile ()
1816 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1817 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1818 $as_echo_n "checking for $2... " >&6; }
1819 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1820 $as_echo_n "(cached) " >&6
1822 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1823 /* end confdefs.h. */
1827 if ac_fn_cxx_try_compile "$LINENO"; then :
1832 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1835 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1836 $as_echo "$ac_res" >&6; }
1837 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1839 } # ac_fn_cxx_check_header_compile
1841 # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
1842 # ---------------------------------------------
1843 # Tests whether TYPE exists after having included INCLUDES, setting cache
1844 # variable VAR accordingly.
1845 ac_fn_cxx_check_type ()
1847 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1848 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1849 $as_echo_n "checking for $2... " >&6; }
1850 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1851 $as_echo_n "(cached) " >&6
1854 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1855 /* end confdefs.h. */
1866 if ac_fn_cxx_try_compile "$LINENO"; then :
1867 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1868 /* end confdefs.h. */
1879 if ac_fn_cxx_try_compile "$LINENO"; then :
1884 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1886 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1889 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1890 $as_echo "$ac_res" >&6; }
1891 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1893 } # ac_fn_cxx_check_type
1895 # ac_fn_cxx_check_func LINENO FUNC VAR
1896 # ------------------------------------
1897 # Tests whether FUNC exists, setting the cache variable VAR accordingly
1898 ac_fn_cxx_check_func ()
1900 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1901 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1902 $as_echo_n "checking for $2... " >&6; }
1903 if { as_var=$3; eval "test \"\${$as_var+set}\" = set"; }; then :
1904 $as_echo_n "(cached) " >&6
1906 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1907 /* end confdefs.h. */
1908 /* Define $2 to an innocuous variant, in case <limits.h> declares $2.
1909 For example, HP-UX 11i <limits.h> declares gettimeofday. */
1910 #define $2 innocuous_$2
1912 /* System header to define __stub macros and hopefully few prototypes,
1913 which can conflict with char $2 (); below.
1914 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
1915 <limits.h> exists even on freestanding compilers. */
1918 # include <limits.h>
1920 # include <assert.h>
1925 /* Override any GCC internal prototype to avoid an error.
1926 Use char because int might match the return type of a GCC
1927 builtin and then its argument prototype would still apply. */
1932 /* The GNU C library defines this for functions which it implements
1933 to always fail with ENOSYS. Some functions are actually named
1934 something starting with __ and the normal name is an alias. */
1935 #if defined __stub_$2 || defined __stub___$2
1947 if ac_fn_cxx_try_link "$LINENO"; then :
1952 rm -f core conftest.err conftest.$ac_objext \
1953 conftest$ac_exeext conftest.$ac_ext
1956 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1957 $as_echo "$ac_res" >&6; }
1958 eval $as_lineno_stack; test "x$as_lineno_stack" = x && { as_lineno=; unset as_lineno;}
1960 } # ac_fn_cxx_check_func
1961 cat >config.log <<_ACEOF
1962 This file contains any messages produced by compilers while
1963 running configure, to aid debugging if configure makes a mistake.
1965 It was created by smartmontools $as_me 5.39.1, which was
1966 generated by GNU Autoconf 2.65. Invocation command line was
1978 hostname = `(hostname || uname
-n) 2>/dev
/null |
sed 1q
`
1979 uname -m = `(uname
-m) 2>/dev
/null ||
echo unknown
`
1980 uname -r = `(uname
-r) 2>/dev
/null ||
echo unknown
`
1981 uname -s = `(uname
-s) 2>/dev
/null ||
echo unknown
`
1982 uname -v = `(uname
-v) 2>/dev
/null ||
echo unknown
`
1984 /usr/bin/uname -p = `(/usr
/bin
/uname
-p) 2>/dev
/null ||
echo unknown
`
1985 /bin/uname -X = `(/bin
/uname
-X) 2>/dev
/null ||
echo unknown
`
1987 /bin/arch = `(/bin
/arch
) 2>/dev
/null ||
echo unknown
`
1988 /usr/bin/arch -k = `(/usr
/bin
/arch
-k) 2>/dev
/null ||
echo unknown
`
1989 /usr/convex/getsysinfo = `(/usr
/convex
/getsysinfo
) 2>/dev
/null ||
echo unknown
`
1990 /usr/bin/hostinfo = `(/usr
/bin
/hostinfo
) 2>/dev
/null ||
echo unknown
`
1991 /bin/machine = `(/bin
/machine
) 2>/dev
/null ||
echo unknown
`
1992 /usr/bin/oslevel = `(/usr
/bin
/oslevel
) 2>/dev
/null ||
echo unknown
`
1993 /bin/universe = `(/bin
/universe
) 2>/dev
/null ||
echo unknown
`
1997 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2001 test -z "$as_dir" && as_dir=.
2002 $as_echo "PATH: $as_dir"
2018 # Keep a trace of the command line.
2019 # Strip out --no-create and --no-recursion so they do not pile up.
2020 # Strip out --silent because we don't want to record it for future runs.
2021 # Also quote any args containing shell meta-characters.
2022 # Make two passes to allow for proper duplicate-argument suppression.
2026 ac_must_keep_next=false
2032 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2033 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2034 | -silent | --silent | --silen | --sile | --sil)
2037 ac_arg=`$as_echo "$ac_arg" |
sed "s/'/'\\\\\\\\''/g"` ;;
2040 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2042 as_fn_append ac_configure_args1 " '$ac_arg'"
2043 if test $ac_must_keep_next = true; then
2044 ac_must_keep_next=false # Got value, back to normal.
2047 *=* | --config-cache | -C | -disable-* | --disable-* \
2048 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2049 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2050 | -with-* | --with-* | -without-* | --without-* | --x)
2051 case "$ac_configure_args0 " in
2052 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2055 -* ) ac_must_keep_next=true ;;
2058 as_fn_append ac_configure_args " '$ac_arg'"
2063 { ac_configure_args0=; unset ac_configure_args0;}
2064 { ac_configure_args1=; unset ac_configure_args1;}
2066 # When interrupted or exit'd, cleanup temporary files, and complete
2067 # config.log. We remove comments because anyway the quotes in there
2068 # would cause problems or look ugly.
2069 # WARNING: Use '\'' to represent an apostrophe within the trap.
2070 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2071 trap 'exit_status=$?
2072 # Save into config.log some information that might help in debugging.
2077 ## ---------------- ##
2078 ## Cache variables. ##
2079 ## ---------------- ##
2082 # The following way of writing the cache mishandles newlines in values,
2084 for ac_var in `(set) 2>&1 |
sed -n '\''s
/^\
([a-zA-Z_
][a-zA-Z0-9_
]*\
)=.
*/\
1/p
'\''`; do
2085 eval ac_val=\$$ac_var
2089 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2090 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2093 _ | IFS | as_nl) ;; #(
2094 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2095 *) { eval $ac_var=; unset $ac_var;} ;;
2100 case $as_nl`(ac_space
='\'' '\''; set) 2>&1` in #(
2101 *${as_nl}ac_space=\ *)
2103 "s/'\''/'\''\\\\'\'''\''/g;
2104 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2107 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2115 ## ----------------- ##
2116 ## Output variables. ##
2117 ## ----------------- ##
2120 for ac_var in $ac_subst_vars
2122 eval ac_val=\$$ac_var
2124 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2126 $as_echo "$ac_var='\''$ac_val'\''"
2130 if test -n "$ac_subst_files"; then
2132 ## ------------------- ##
2133 ## File substitutions. ##
2134 ## ------------------- ##
2137 for ac_var in $ac_subst_files
2139 eval ac_val=\$$ac_var
2141 *\'\''*) ac_val=`$as_echo "$ac_val" |
sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2143 $as_echo "$ac_var='\''$ac_val'\''"
2148 if test -s confdefs.h; then
2158 test "$ac_signal" != 0 &&
2159 $as_echo "$as_me: caught signal $ac_signal"
2160 $as_echo "$as_me: exit $exit_status"
2162 rm -f core *.core core.conftest.* &&
2163 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2166 for ac_signal in 1 2 13 15; do
2167 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2171 # confdefs.h avoids OS command line length limits that DEFS can exceed.
2172 rm -f -r conftest* confdefs.h
2174 $as_echo "/* confdefs.h */" > confdefs.h
2176 # Predefined preprocessor variables.
2178 cat >>confdefs.h <<_ACEOF
2179 #define PACKAGE_NAME "$PACKAGE_NAME"
2182 cat >>confdefs.h <<_ACEOF
2183 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2186 cat >>confdefs.h <<_ACEOF
2187 #define PACKAGE_VERSION "$PACKAGE_VERSION"
2190 cat >>confdefs.h <<_ACEOF
2191 #define PACKAGE_STRING "$PACKAGE_STRING"
2194 cat >>confdefs.h <<_ACEOF
2195 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2198 cat >>confdefs.h <<_ACEOF
2199 #define PACKAGE_URL "$PACKAGE_URL"
2203 # Let the site file select an alternate cache file if it wants to.
2204 # Prefer an explicitly selected file to automatically selected ones.
2207 if test -n "$CONFIG_SITE"; then
2208 ac_site_file1=$CONFIG_SITE
2209 elif test "x$prefix" != xNONE; then
2210 ac_site_file1=$prefix/share/config.site
2211 ac_site_file2=$prefix/etc/config.site
2213 ac_site_file1=$ac_default_prefix/share/config.site
2214 ac_site_file2=$ac_default_prefix/etc/config.site
2216 for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2218 test "x$ac_site_file" = xNONE && continue
2219 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2220 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2221 $as_echo "$as_me: loading site script $ac_site_file" >&6;}
2222 sed 's/^/| /' "$ac_site_file" >&5
2227 if test -r "$cache_file"; then
2228 # Some versions of bash will fail to source /dev/null (special files
2229 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2230 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2231 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2232 $as_echo "$as_me: loading cache $cache_file" >&6;}
2234 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2235 *) . "./$cache_file";;
2239 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2240 $as_echo "$as_me: creating cache $cache_file" >&6;}
2244 # Check that the precious variables saved in the cache have kept the same
2246 ac_cache_corrupted=false
2247 for ac_var in $ac_precious_vars; do
2248 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2249 eval ac_new_set=\$ac_env_${ac_var}_set
2250 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2251 eval ac_new_val=\$ac_env_${ac_var}_value
2252 case $ac_old_set,$ac_new_set in
2254 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run
" >&5
2255 $as_echo "$as_me: error
: \
`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2256 ac_cache_corrupted=: ;;
2258 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not
set in the previous run
" >&5
2259 $as_echo "$as_me: error
: \
`$ac_var' was not set in the previous run" >&2;}
2260 ac_cache_corrupted=: ;;
2263 if test "x$ac_old_val" != "x$ac_new_val"; then
2264 # differences in whitespace do not lead to failure.
2265 ac_old_val_w=`echo x
$ac_old_val`
2266 ac_new_val_w=`echo x
$ac_new_val`
2267 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2268 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2269 $as_echo "$as_me: error: \`$ac_var' has changed since the previous run
:" >&2;}
2270 ac_cache_corrupted=:
2272 { $as_echo "$as_me:${as_lineno-$LINENO}: warning
: ignoring whitespace changes
in \
`$ac_var' since the previous run:" >&5
2273 $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2274 eval $ac_var=\$ac_old_val
2276 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2277 $as_echo "$as_me: former value
: \
`$ac_old_val'" >&2;}
2278 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2279 $as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2282 # Pass precious variables to config.status.
2283 if test "$ac_new_set" = set; then
2285 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s
/'/'\\\\\\\\''/g
"` ;;
2286 *) ac_arg=$ac_var=$ac_new_val ;;
2288 case " $ac_configure_args " in
2289 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2290 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2294 if $ac_cache_corrupted; then
2295 { $as_echo "$as_me:${as_lineno-$LINENO}: error
: in \
`$ac_pwd':" >&5
2296 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2297 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2298 $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2299 as_fn_error "run \`make distclean' and
/or \
`rm $cache_file' and start over" "$LINENO" 5
2301 ## -------------------- ##
2302 ## Main body of script. ##
2303 ## -------------------- ##
2306 ac_cpp='$CPP $CPPFLAGS'
2307 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2308 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2309 ac_compiler_gnu=$ac_cv_c_compiler_gnu
2314 smartmontools_configure_date=`date -u +'%Y-%m-%d %T %Z'`
2315 smartmontools_cvs_tag=`echo '$Id: configure.in 3054 2010-01-28 20:48:28Z chrfranke $'`
2316 smartmontools_release_date=2010-01-28
2317 smartmontools_release_time="20:46:44 UTC"
2320 cat >>confdefs.h <<_ACEOF
2321 #define SMARTMONTOOLS_CONFIGURE_ARGS "$ac_configure_args"
2325 cat >>confdefs.h <<_ACEOF
2326 #define SMARTMONTOOLS_CONFIGURE_DATE "$smartmontools_configure_date"
2330 cat >>confdefs.h <<_ACEOF
2331 #define SMARTMONTOOLS_RELEASE_DATE "$smartmontools_release_date"
2335 cat >>confdefs.h <<_ACEOF
2336 #define SMARTMONTOOLS_RELEASE_TIME "$smartmontools_release_time"
2340 cat >>confdefs.h <<_ACEOF
2341 #define CONFIG_H_CVSID "$smartmontools_cvs_tag"
2345 cat >>confdefs.h <<_ACEOF
2346 #define PACKAGE_HOMEPAGE "http://smartmontools.sourceforge.net/"
2350 ac_config_headers="$ac_config_headers config.h"
2353 am__api_version='1.11'
2356 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2357 for ac_t in install-sh install.sh shtool; do
2358 if test -f "$ac_dir/$ac_t"; then
2360 ac_install_sh="$ac_aux_dir/$ac_t -c"
2365 if test -z "$ac_aux_dir"; then
2366 as_fn_error "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2369 # These three variables are undocumented and unsupported,
2370 # and are intended to be withdrawn in a future Autoconf release.
2371 # They can cause serious problems if a builder's source tree is in a directory
2372 # whose full name contains unusual characters.
2373 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2374 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2375 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2378 # Find a good install program. We prefer a C program (faster),
2379 # so one script is as good as another. But avoid the broken or
2380 # incompatible versions:
2381 # SysV /etc/install, /usr/sbin/install
2382 # SunOS /usr/etc/install
2383 # IRIX /sbin/install
2385 # AmigaOS /C/install, which installs bootblocks on floppy discs
2386 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2387 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
2388 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2389 # OS/2's system install, which has a completely different semantic
2390 # ./install, which can be erroneously created by make from ./install.sh.
2391 # Reject install programs that cannot install multiple files.
2392 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2393 $as_echo_n "checking for a BSD-compatible install... " >&6; }
2394 if test -z "$INSTALL"; then
2395 if test "${ac_cv_path_install+set}" = set; then :
2396 $as_echo_n "(cached) " >&6
2398 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2402 test -z "$as_dir" && as_dir=.
2403 # Account for people who put trailing slashes in PATH elements.
2404 case $as_dir/ in #((
2405 ./ | .// | /[cC]/* | \
2406 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2407 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2410 # OSF1 and SCO ODT 3.0 have their own names for install.
2411 # Don't use installbsd from OSF since it installs stuff as root
2413 for ac_prog in ginstall scoinst install; do
2414 for ac_exec_ext in '' $ac_executable_extensions; do
2415 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; }; then
2416 if test $ac_prog = install &&
2417 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2418 # AIX install. It has an incompatible calling convention.
2420 elif test $ac_prog = install &&
2421 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2422 # program-specific install script used by HP pwplus--don't use.
2425 rm -rf conftest.one conftest.two conftest.dir
2426 echo one > conftest.one
2427 echo two > conftest.two
2429 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2430 test -s conftest.one && test -s conftest.two &&
2431 test -s conftest.dir/conftest.one &&
2432 test -s conftest.dir/conftest.two
2434 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2447 rm -rf conftest.one conftest.two conftest.dir
2450 if test "${ac_cv_path_install+set}" = set; then
2451 INSTALL=$ac_cv_path_install
2453 # As a last resort, use the slow shell script. Don't cache a
2454 # value for INSTALL within a source directory, because that will
2455 # break other packages using the cache if that directory is
2456 # removed, or if the value is a relative name.
2457 INSTALL=$ac_install_sh
2460 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2461 $as_echo "$INSTALL" >&6; }
2463 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2464 # It thinks the first close brace ends the variable substitution.
2465 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2467 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2469 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2471 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2472 $as_echo_n "checking whether build environment is sane... " >&6; }
2475 echo timestamp > conftest.file
2476 # Reject unsafe characters in $srcdir or the absolute working directory
2477 # name. Accept space and tab only in the latter.
2481 *[\\\"\#\$\&\'\`$am_lf]*)
2482 as_fn_error
"unsafe absolute working directory name" "$LINENO" 5;;
2485 *[\\\"\
#\$\&\'\`$am_lf\ \ ]*)
2486 as_fn_error
"unsafe srcdir value: \`$srcdir'" "$LINENO" 5;;
2489 # Do `set' in a subshell so we don't clobber the current shell's
2490 # arguments. Must try -L first in case configure is actually a
2491 # symlink; some systems play weird games with the mod time of symlinks
2492 # (eg FreeBSD returns the mod time of the symlink's containing
2495 set X
`ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2496 if test "$*" = "X"; then
2498 set X
`ls -t "$srcdir/configure" conftest.file`
2501 if test "$*" != "X $srcdir/configure conftest.file" \
2502 && test "$*" != "X conftest.file $srcdir/configure"; then
2504 # If neither matched, then we have a broken ls. This can happen
2505 # if, for instance, CONFIG_SHELL is bash and it inherits a
2506 # broken ls alias from the environment. This has actually
2507 # happened. Such a system could not be considered "sane".
2508 as_fn_error
"ls -t appears to fail. Make sure there is not a broken
2509 alias in your environment" "$LINENO" 5
2512 test "$2" = conftest.
file
2518 as_fn_error
"newly created file is older than distributed files!
2519 Check your system clock" "$LINENO" 5
2521 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2522 $as_echo "yes" >&6; }
2523 test "$program_prefix" != NONE
&&
2524 program_transform_name
="s&^&$program_prefix&;$program_transform_name"
2525 # Use a double $ so make ignores it.
2526 test "$program_suffix" != NONE
&&
2527 program_transform_name
="s&\$&$program_suffix&;$program_transform_name"
2528 # Double any \ or $.
2529 # By default was `s,x,x', remove it if useless.
2530 ac_script
='s/[\\$]/&&/g;s/;s,x,x,$//'
2531 program_transform_name
=`$as_echo "$program_transform_name" | sed "$ac_script"`
2533 # expand $ac_aux_dir to an absolute path
2534 am_aux_dir
=`cd $ac_aux_dir && pwd`
2536 if test x
"${MISSING+set}" != xset
; then
2539 MISSING
="\${SHELL} \"$am_aux_dir/missing\"" ;;
2541 MISSING
="\${SHELL} $am_aux_dir/missing" ;;
2544 # Use eval to expand $SHELL
2545 if eval "$MISSING --run true"; then
2546 am_missing_run
="$MISSING --run "
2549 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: \`missing' script is too old or missing" >&5
2550 $as_echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
2553 if test x
"${install_sh}" != xset
; then
2556 install_sh
="\${SHELL} '$am_aux_dir/install-sh'" ;;
2558 install_sh
="\${SHELL} $am_aux_dir/install-sh"
2562 # Installed binaries are usually stripped using `strip' when the user
2563 # run `make install-strip'. However `strip' might not be the right
2564 # tool to use in cross-compilation environments, therefore Automake
2565 # will honor the `STRIP' environment variable to overrule this program.
2566 if test "$cross_compiling" != no
; then
2567 if test -n "$ac_tool_prefix"; then
2568 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2569 set dummy
${ac_tool_prefix}strip
; ac_word
=$2
2570 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2571 $as_echo_n "checking for $ac_word... " >&6; }
2572 if test "${ac_cv_prog_STRIP+set}" = set; then :
2573 $as_echo_n "(cached) " >&6
2575 if test -n "$STRIP"; then
2576 ac_cv_prog_STRIP
="$STRIP" # Let the user override the test.
2578 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2582 test -z "$as_dir" && as_dir
=.
2583 for ac_exec_ext
in '' $ac_executable_extensions; do
2584 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2585 ac_cv_prog_STRIP
="${ac_tool_prefix}strip"
2586 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2595 STRIP
=$ac_cv_prog_STRIP
2596 if test -n "$STRIP"; then
2597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2598 $as_echo "$STRIP" >&6; }
2600 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2601 $as_echo "no" >&6; }
2606 if test -z "$ac_cv_prog_STRIP"; then
2608 # Extract the first word of "strip", so it can be a program name with args.
2609 set dummy strip
; ac_word
=$2
2610 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2611 $as_echo_n "checking for $ac_word... " >&6; }
2612 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then :
2613 $as_echo_n "(cached) " >&6
2615 if test -n "$ac_ct_STRIP"; then
2616 ac_cv_prog_ac_ct_STRIP
="$ac_ct_STRIP" # Let the user override the test.
2618 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2622 test -z "$as_dir" && as_dir
=.
2623 for ac_exec_ext
in '' $ac_executable_extensions; do
2624 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2625 ac_cv_prog_ac_ct_STRIP
="strip"
2626 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2635 ac_ct_STRIP
=$ac_cv_prog_ac_ct_STRIP
2636 if test -n "$ac_ct_STRIP"; then
2637 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2638 $as_echo "$ac_ct_STRIP" >&6; }
2640 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2641 $as_echo "no" >&6; }
2644 if test "x$ac_ct_STRIP" = x
; then
2647 case $cross_compiling:$ac_tool_warned in
2649 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2650 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2651 ac_tool_warned
=yes ;;
2656 STRIP
="$ac_cv_prog_STRIP"
2660 INSTALL_STRIP_PROGRAM
="\$(install_sh) -c -s"
2662 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2663 $as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2664 if test -z "$MKDIR_P"; then
2665 if test "${ac_cv_path_mkdir+set}" = set; then :
2666 $as_echo_n "(cached) " >&6
2668 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2669 for as_dir
in $PATH$PATH_SEPARATOR/opt
/sfw
/bin
2672 test -z "$as_dir" && as_dir
=.
2673 for ac_prog
in mkdir gmkdir
; do
2674 for ac_exec_ext
in '' $ac_executable_extensions; do
2675 { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_test_x "$as_dir/$ac_prog$ac_exec_ext"; } ||
continue
2676 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2677 'mkdir (GNU coreutils) '* | \
2678 'mkdir (coreutils) '* | \
2679 'mkdir (fileutils) '4.1*)
2680 ac_cv_path_mkdir
=$as_dir/$ac_prog$ac_exec_ext
2690 test -d .
/--version && rmdir .
/--version
2691 if test "${ac_cv_path_mkdir+set}" = set; then
2692 MKDIR_P
="$ac_cv_path_mkdir -p"
2694 # As a last resort, use the slow shell script. Don't cache a
2695 # value for MKDIR_P within a source directory, because that will
2696 # break other packages using the cache if that directory is
2697 # removed, or if the value is a relative name.
2698 MKDIR_P
="$ac_install_sh -d"
2701 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2702 $as_echo "$MKDIR_P" >&6; }
2706 [\\/$
]* | ?
:[\\/]*) ;;
2707 */*) mkdir_p
="\$(top_builddir)/$mkdir_p" ;;
2710 for ac_prog
in gawk mawk nawk
awk
2712 # Extract the first word of "$ac_prog", so it can be a program name with args.
2713 set dummy
$ac_prog; ac_word
=$2
2714 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2715 $as_echo_n "checking for $ac_word... " >&6; }
2716 if test "${ac_cv_prog_AWK+set}" = set; then :
2717 $as_echo_n "(cached) " >&6
2719 if test -n "$AWK"; then
2720 ac_cv_prog_AWK
="$AWK" # Let the user override the test.
2722 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2726 test -z "$as_dir" && as_dir
=.
2727 for ac_exec_ext
in '' $ac_executable_extensions; do
2728 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2729 ac_cv_prog_AWK
="$ac_prog"
2730 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2740 if test -n "$AWK"; then
2741 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2742 $as_echo "$AWK" >&6; }
2744 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2745 $as_echo "no" >&6; }
2749 test -n "$AWK" && break
2752 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2753 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2755 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2756 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
2757 $as_echo_n "(cached) " >&6
2759 cat >conftest.
make <<\_ACEOF
2762 @
echo '@@@%%%=$(MAKE)=@@@%%%'
2764 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2765 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2767 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
2769 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
2773 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
2774 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2775 $as_echo "yes" >&6; }
2778 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2779 $as_echo "no" >&6; }
2780 SET_MAKE
="MAKE=${MAKE-make}"
2783 rm -rf .tst
2>/dev
/null
2784 mkdir .tst
2>/dev
/null
2785 if test -d .tst
; then
2790 rmdir .tst
2>/dev
/null
2792 if test "`cd $srcdir && pwd`" != "`pwd`"; then
2793 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2794 # is not polluted with repeated "-I."
2795 am__isrc
=' -I$(srcdir)'
2796 # test to see if srcdir already configured
2797 if test -f $srcdir/config.status
; then
2798 as_fn_error
"source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2802 # test whether we have cygpath
2803 if test -z "$CYGPATH_W"; then
2804 if (cygpath
--version) >/dev
/null
2>/dev
/null
; then
2805 CYGPATH_W
='cygpath -w'
2812 # Define the identity of the package.
2813 PACKAGE
='smartmontools'
2817 cat >>confdefs.h
<<_ACEOF
2818 #define PACKAGE "$PACKAGE"
2822 cat >>confdefs.h
<<_ACEOF
2823 #define VERSION "$VERSION"
2826 # Some tools Automake needs.
2828 ACLOCAL
=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2831 AUTOCONF
=${AUTOCONF-"${am_missing_run}autoconf"}
2834 AUTOMAKE
=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2837 AUTOHEADER
=${AUTOHEADER-"${am_missing_run}autoheader"}
2840 MAKEINFO
=${MAKEINFO-"${am_missing_run}makeinfo"}
2842 # We need awk for the "check" target. The system "awk" is bad on
2844 # Always define AMTAR for backward compatibility.
2846 AMTAR
=${AMTAR-"${am_missing_run}tar"}
2848 am__tar
='${AMTAR} chof - "$$tardir"'; am__untar
='${AMTAR} xf -'
2856 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
2857 $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
2858 # Check whether --enable-maintainer-mode was given.
2859 if test "${enable_maintainer_mode+set}" = set; then :
2860 enableval
=$enable_maintainer_mode; USE_MAINTAINER_MODE
=$enableval
2862 USE_MAINTAINER_MODE
=no
2865 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
2866 $as_echo "$USE_MAINTAINER_MODE" >&6; }
2867 if test $USE_MAINTAINER_MODE = yes; then
2868 MAINTAINER_MODE_TRUE
=
2869 MAINTAINER_MODE_FALSE
='#'
2871 MAINTAINER_MODE_TRUE
='#'
2872 MAINTAINER_MODE_FALSE
=
2875 MAINT
=$MAINTAINER_MODE_TRUE
2880 ac_cpp
='$CXXCPP $CPPFLAGS'
2881 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2882 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2883 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
2886 ac_cpp
='$CXXCPP $CPPFLAGS'
2887 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2888 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2889 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
2890 if test -z "$CXX"; then
2891 if test -n "$CCC"; then
2894 if test -n "$ac_tool_prefix"; then
2895 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
2897 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2898 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
2899 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2900 $as_echo_n "checking for $ac_word... " >&6; }
2901 if test "${ac_cv_prog_CXX+set}" = set; then :
2902 $as_echo_n "(cached) " >&6
2904 if test -n "$CXX"; then
2905 ac_cv_prog_CXX
="$CXX" # Let the user override the test.
2907 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2911 test -z "$as_dir" && as_dir
=.
2912 for ac_exec_ext
in '' $ac_executable_extensions; do
2913 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2914 ac_cv_prog_CXX
="$ac_tool_prefix$ac_prog"
2915 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2925 if test -n "$CXX"; then
2926 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
2927 $as_echo "$CXX" >&6; }
2929 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2930 $as_echo "no" >&6; }
2934 test -n "$CXX" && break
2937 if test -z "$CXX"; then
2939 for ac_prog
in g
++ c
++ gpp aCC CC cxx cc
++ cl.exe FCC KCC RCC xlC_r xlC
2941 # Extract the first word of "$ac_prog", so it can be a program name with args.
2942 set dummy
$ac_prog; ac_word
=$2
2943 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2944 $as_echo_n "checking for $ac_word... " >&6; }
2945 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then :
2946 $as_echo_n "(cached) " >&6
2948 if test -n "$ac_ct_CXX"; then
2949 ac_cv_prog_ac_ct_CXX
="$ac_ct_CXX" # Let the user override the test.
2951 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
2955 test -z "$as_dir" && as_dir
=.
2956 for ac_exec_ext
in '' $ac_executable_extensions; do
2957 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
2958 ac_cv_prog_ac_ct_CXX
="$ac_prog"
2959 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2968 ac_ct_CXX
=$ac_cv_prog_ac_ct_CXX
2969 if test -n "$ac_ct_CXX"; then
2970 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
2971 $as_echo "$ac_ct_CXX" >&6; }
2973 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2974 $as_echo "no" >&6; }
2978 test -n "$ac_ct_CXX" && break
2981 if test "x$ac_ct_CXX" = x
; then
2984 case $cross_compiling:$ac_tool_warned in
2986 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2987 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2988 ac_tool_warned
=yes ;;
2996 # Provide some information about the compiler.
2997 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3000 for ac_option
in --version -v -V -qversion; do
3001 { { ac_try
="$ac_compiler $ac_option >&5"
3003 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3004 *) ac_try_echo=$ac_try;;
3006 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3007 $as_echo "$ac_try_echo"; } >&5
3008 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3010 if test -s conftest.err; then
3012 ... rest of stderr output deleted ...
3013 10q' conftest.err >conftest.er1
3014 cat conftest.er1 >&5
3016 rm -f conftest.er1 conftest.err
3017 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3018 test $ac_status = 0; }
3021 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3022 /* end confdefs.h. */
3032 ac_clean_files_save=$ac_clean_files
3033 ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3034 # Try to create an executable without -o first, disregard a.out.
3035 # It will help us diagnose broken compilers, and finding out an intuition
3037 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3038 $as_echo_n "checking whether the C++ compiler works... " >&6; }
3039 ac_link_default=`$as_echo "$ac_link" |
sed 's/ -o *conftest[^ ]*//'`
3041 # The possible output files:
3042 ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3045 for ac_file in $ac_files
3048 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3049 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3054 if { { ac_try="$ac_link_default"
3056 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3057 *) ac_try_echo
=$ac_try;;
3059 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3060 $as_echo "$ac_try_echo"; } >&5
3061 (eval "$ac_link_default") 2>&5
3063 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3064 test $ac_status = 0; }; then :
3065 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3066 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3067 # in a Makefile. We should not override ac_cv_exeext if it was cached,
3068 # so that the user can short-circuit this test for compilers unknown to
3070 for ac_file
in $ac_files ''
3072 test -f "$ac_file" ||
continue
3074 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
)
3077 # We found the default executable, but exeext='' is most
3081 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no
;
3083 ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3085 # We set ac_cv_exeext here because the later test for it is not
3086 # safe: cross compilers may not add the suffix if given an `-o'
3087 # argument, so we may need to know it at that point already.
3088 # Even if this section looks crufty: it has the advantage of
3095 test "$ac_cv_exeext" = no
&& ac_cv_exeext
=
3100 if test -z "$ac_file"; then :
3101 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3102 $as_echo "no" >&6; }
3103 $as_echo "$as_me: failed program was:" >&5
3104 sed 's/^/| /' conftest.
$ac_ext >&5
3106 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3107 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3108 { as_fn_set_status
77
3109 as_fn_error
"C++ compiler cannot create executables
3110 See \`config.log' for more details." "$LINENO" 5; }; }
3112 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3113 $as_echo "yes" >&6; }
3115 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3116 $as_echo_n "checking for C++ compiler default output file name... " >&6; }
3117 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3118 $as_echo "$ac_file" >&6; }
3119 ac_exeext
=$ac_cv_exeext
3121 rm -f -r a.out a.out.dSYM a.exe conftest
$ac_cv_exeext b.out
3122 ac_clean_files
=$ac_clean_files_save
3123 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3124 $as_echo_n "checking for suffix of executables... " >&6; }
3125 if { { ac_try
="$ac_link"
3127 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3128 *) ac_try_echo=$ac_try;;
3130 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3131 $as_echo "$ac_try_echo"; } >&5
3132 (eval "$ac_link") 2>&5
3134 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3135 test $ac_status = 0; }; then :
3136 # If both `conftest.exe
' and `conftest' are
`present' (well, observable)
3137 # catch `conftest.exe
'. For instance with Cygwin, `ls conftest' will
3138 # work properly (i.e., refer to `conftest.exe'), while it won't with
3140 for ac_file
in conftest.exe conftest conftest.
*; do
3141 test -f "$ac_file" ||
continue
3143 *.
$ac_ext |
*.xcoff |
*.tds |
*.d |
*.pdb |
*.xSYM |
*.bb |
*.bbg |
*.map |
*.inf |
*.dSYM |
*.o |
*.obj
) ;;
3144 *.
* ) ac_cv_exeext
=`expr "$ac_file" : '[^.]*\(\..*\)'`
3150 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3151 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3152 as_fn_error
"cannot compute suffix of executables: cannot compile and link
3153 See \`config.log' for more details." "$LINENO" 5; }
3155 rm -f conftest conftest
$ac_cv_exeext
3156 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3157 $as_echo "$ac_cv_exeext" >&6; }
3159 rm -f conftest.
$ac_ext
3160 EXEEXT
=$ac_cv_exeext
3162 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3163 /* end confdefs.h. */
3168 FILE *f = fopen ("conftest.out", "w");
3169 return ferror (f) || fclose (f) != 0;
3175 ac_clean_files
="$ac_clean_files conftest.out"
3176 # Check that the compiler produces executables we can run. If not, either
3177 # the compiler is broken, or we cross compile.
3178 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3179 $as_echo_n "checking whether we are cross compiling... " >&6; }
3180 if test "$cross_compiling" != yes; then
3181 { { ac_try
="$ac_link"
3183 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3184 *) ac_try_echo=$ac_try;;
3186 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3187 $as_echo "$ac_try_echo"; } >&5
3188 (eval "$ac_link") 2>&5
3190 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3191 test $ac_status = 0; }
3192 if { ac_try='./conftest$ac_cv_exeext'
3193 { { case "(($ac_try" in
3194 *\"* | *\`* |
*\\*) ac_try_echo
=\
$ac_try;;
3195 *) ac_try_echo
=$ac_try;;
3197 eval ac_try_echo
="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3198 $as_echo "$ac_try_echo"; } >&5
3199 (eval "$ac_try") 2>&5
3201 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3202 test $ac_status = 0; }; }; then
3205 if test "$cross_compiling" = maybe
; then
3208 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3209 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3210 as_fn_error
"cannot run C++ compiled programs.
3211 If you meant to cross compile, use \`--host'.
3212 See \`config.log' for more details." "$LINENO" 5; }
3216 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3217 $as_echo "$cross_compiling" >&6; }
3219 rm -f conftest.
$ac_ext conftest
$ac_cv_exeext conftest.out
3220 ac_clean_files
=$ac_clean_files_save
3221 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3222 $as_echo_n "checking for suffix of object files... " >&6; }
3223 if test "${ac_cv_objext+set}" = set; then :
3224 $as_echo_n "(cached) " >&6
3226 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
3227 /* end confdefs.h. */
3237 rm -f conftest.o conftest.obj
3238 if { { ac_try
="$ac_compile"
3240 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3241 *) ac_try_echo=$ac_try;;
3243 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3244 $as_echo "$ac_try_echo"; } >&5
3245 (eval "$ac_compile") 2>&5
3247 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3248 test $ac_status = 0; }; then :
3249 for ac_file in conftest.o conftest.obj conftest.*; do
3250 test -f "$ac_file" || continue;
3252 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3253 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3258 $as_echo "$as_me: failed program was:" >&5
3259 sed 's/^/| /' conftest.$ac_ext >&5
3261 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3262 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3263 as_fn_error "cannot compute suffix of object files
: cannot compile
3264 See \
`config.log' for more details." "$LINENO" 5; }
3266 rm -f conftest.$ac_cv_objext conftest.$ac_ext
3268 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3269 $as_echo "$ac_cv_objext" >&6; }
3270 OBJEXT=$ac_cv_objext
3272 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3273 $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3274 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then :
3275 $as_echo_n "(cached) " >&6
3277 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3278 /* end confdefs.h. */
3291 if ac_fn_cxx_try_compile "$LINENO"; then :
3296 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3297 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3300 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3301 $as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3302 if test $ac_compiler_gnu = yes; then
3307 ac_test_CXXFLAGS=${CXXFLAGS+set}
3308 ac_save_CXXFLAGS=$CXXFLAGS
3309 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3310 $as_echo_n "checking whether $CXX accepts -g... " >&6; }
3311 if test "${ac_cv_prog_cxx_g+set}" = set; then :
3312 $as_echo_n "(cached) " >&6
3314 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3315 ac_cxx_werror_flag=yes
3318 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3319 /* end confdefs.h. */
3329 if ac_fn_cxx_try_compile "$LINENO"; then :
3330 ac_cv_prog_cxx_g=yes
3333 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3334 /* end confdefs.h. */
3344 if ac_fn_cxx_try_compile "$LINENO"; then :
3347 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3349 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3350 /* end confdefs.h. */
3360 if ac_fn_cxx_try_compile "$LINENO"; then :
3361 ac_cv_prog_cxx_g=yes
3363 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3365 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3367 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3368 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3370 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3371 $as_echo "$ac_cv_prog_cxx_g" >&6; }
3372 if test "$ac_test_CXXFLAGS" = set; then
3373 CXXFLAGS=$ac_save_CXXFLAGS
3374 elif test $ac_cv_prog_cxx_g = yes; then
3375 if test "$GXX" = yes; then
3381 if test "$GXX" = yes; then
3388 ac_cpp='$CXXCPP $CPPFLAGS'
3389 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3390 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3391 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3392 DEPDIR="${am__leading_dot}deps"
3394 ac_config_commands="$ac_config_commands depfiles"
3397 am_make=${MAKE-make}
3398 cat > confinc << 'END'
3400 @echo this is the am__doit target
3403 # If we don't find an include directive, just comment out the code.
3404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3405 $as_echo_n "checking for style of include used by $am_make... " >&6; }
3409 # First try GNU make style include.
3410 echo "include confinc" > confmf
3411 # Ignore all kinds of additional output from `make'.
3412 case `$am_make -s -f confmf 2> /dev/null` in #(
3413 *the\ am__doit\ target*)
3419 # Now try BSD make style include.
3420 if test "$am__include" = "#"; then
3421 echo '.include
"confinc"' > confmf
3422 case `$am_make -s -f confmf 2> /dev/null` in #(
3423 *the\ am__doit\ target*)
3424 am__include=.include
3432 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3433 $as_echo "$_am_result" >&6; }
3434 rm -f confinc confmf
3436 # Check whether --enable-dependency-tracking was given.
3437 if test "${enable_dependency_tracking+set}" = set; then :
3438 enableval=$enable_dependency_tracking;
3441 if test "x$enable_dependency_tracking" != xno; then
3442 am_depcomp="$ac_aux_dir/depcomp"
3445 if test "x$enable_dependency_tracking" != xno
; then
3455 depcc
="$CXX" am_compiler_list
=
3457 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3458 $as_echo_n "checking dependency style of $depcc... " >&6; }
3459 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then :
3460 $as_echo_n "(cached) " >&6
3462 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3463 # We make a subdir and do the tests there. Otherwise we can end up
3464 # making bogus files that we don't know about and never remove. For
3465 # instance it was reported that on HP-UX the gcc test will end up
3466 # making a dummy file named `D' -- because `-MD' means `put the output
3469 # Copy depcomp to subdir because otherwise we won't find it if we're
3470 # using a relative directory.
3471 cp "$am_depcomp" conftest.dir
3473 # We will build objects and dependencies in a subdirectory because
3474 # it helps to detect inapplicable dependency modes. For instance
3475 # both Tru64's cc and ICC support -MD to output dependencies as a
3476 # side effect of compilation, but ICC will put the dependencies in
3477 # the current directory while Tru64 will put them in the object
3481 am_cv_CXX_dependencies_compiler_type
=none
3482 if test "$am_compiler_list" = ""; then
3483 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3486 case " $depcc " in #(
3487 *\
-arch\
*\
-arch\
*) am__universal
=true
;;
3490 for depmode
in $am_compiler_list; do
3491 # Setup a source with many dependencies, because some compilers
3492 # like to wrap large dependency lists on column 80 (with \), and
3493 # we should not choose a depcomp mode which is confused by this.
3495 # We need to recreate these files for each test, as the compiler may
3496 # overwrite some of them when testing with obscure command lines.
3497 # This happens at least with the AIX C compiler.
3499 for i
in 1 2 3 4 5 6; do
3500 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
3501 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3502 # Solaris 8's {/usr,}/bin/sh.
3503 touch sub
/conftst
$i.h
3505 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3507 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3508 # mode. It turns out that the SunPro C++ compiler does not properly
3509 # handle `-M -o', and we need to detect this. Also, some Intel
3510 # versions had trouble with output in subdirs
3511 am__obj
=sub
/conftest.
${OBJEXT-o}
3512 am__minus_obj
="-o $am__obj"
3515 # This depmode causes a compiler race in universal mode.
3516 test "$am__universal" = false ||
continue
3519 # after this tag, mechanisms are not by side-effect, so they'll
3520 # only be used when explicitly requested
3521 if test "x$enable_dependency_tracking" = xyes
; then
3527 msvisualcpp | msvcmsys
)
3528 # This compiler won't grok `-c -o', but also, the minuso test has
3529 # not run yet. These depmodes are late enough in the game, and
3530 # so weak that their functioning should not be impacted.
3531 am__obj
=conftest.
${OBJEXT-o}
3536 if depmode
=$depmode \
3537 source=sub
/conftest.c object
=$am__obj \
3538 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
3539 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
3540 >/dev
/null
2>conftest.err
&&
3541 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
3542 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
3543 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
3544 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
3545 # icc doesn't choke on unknown options, it will just issue warnings
3546 # or remarks (even with -Werror). So we grep stderr for any message
3547 # that says an option was ignored or not supported.
3548 # When given -MP, icc 7.0 and 7.1 complain thusly:
3549 # icc: Command line warning: ignoring option '-M'; no argument required
3550 # The diagnosis changed in icc 8.0:
3551 # icc: Command line remark: option '-MP' not supported
3552 if (grep 'ignoring option' conftest.err ||
3553 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
3554 am_cv_CXX_dependencies_compiler_type
=$depmode
3563 am_cv_CXX_dependencies_compiler_type
=none
3567 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
3568 $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
3569 CXXDEPMODE
=depmode
=$am_cv_CXX_dependencies_compiler_type
3572 test "x$enable_dependency_tracking" != xno \
3573 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3
; then
3574 am__fastdepCXX_TRUE
=
3575 am__fastdepCXX_FALSE
='#'
3577 am__fastdepCXX_TRUE
='#'
3578 am__fastdepCXX_FALSE
=
3583 ac_cpp
='$CPP $CPPFLAGS'
3584 ac_compile
='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3585 ac_link
='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3586 ac_compiler_gnu
=$ac_cv_c_compiler_gnu
3587 if test -n "$ac_tool_prefix"; then
3588 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3589 set dummy
${ac_tool_prefix}gcc
; ac_word
=$2
3590 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3591 $as_echo_n "checking for $ac_word... " >&6; }
3592 if test "${ac_cv_prog_CC+set}" = set; then :
3593 $as_echo_n "(cached) " >&6
3595 if test -n "$CC"; then
3596 ac_cv_prog_CC
="$CC" # Let the user override the test.
3598 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3602 test -z "$as_dir" && as_dir
=.
3603 for ac_exec_ext
in '' $ac_executable_extensions; do
3604 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3605 ac_cv_prog_CC
="${ac_tool_prefix}gcc"
3606 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3616 if test -n "$CC"; then
3617 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3618 $as_echo "$CC" >&6; }
3620 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3621 $as_echo "no" >&6; }
3626 if test -z "$ac_cv_prog_CC"; then
3628 # Extract the first word of "gcc", so it can be a program name with args.
3629 set dummy gcc
; ac_word
=$2
3630 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3631 $as_echo_n "checking for $ac_word... " >&6; }
3632 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3633 $as_echo_n "(cached) " >&6
3635 if test -n "$ac_ct_CC"; then
3636 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3638 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3642 test -z "$as_dir" && as_dir
=.
3643 for ac_exec_ext
in '' $ac_executable_extensions; do
3644 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3645 ac_cv_prog_ac_ct_CC
="gcc"
3646 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3655 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3656 if test -n "$ac_ct_CC"; then
3657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3658 $as_echo "$ac_ct_CC" >&6; }
3660 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3661 $as_echo "no" >&6; }
3664 if test "x$ac_ct_CC" = x
; then
3667 case $cross_compiling:$ac_tool_warned in
3669 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3670 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3671 ac_tool_warned
=yes ;;
3679 if test -z "$CC"; then
3680 if test -n "$ac_tool_prefix"; then
3681 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3682 set dummy
${ac_tool_prefix}cc
; 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 test "${ac_cv_prog_CC+set}" = set; then :
3686 $as_echo_n "(cached) " >&6
3688 if test -n "$CC"; then
3689 ac_cv_prog_CC
="$CC" # Let the user override the test.
3691 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
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_CC
="${ac_tool_prefix}cc"
3699 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3709 if test -n "$CC"; then
3710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3711 $as_echo "$CC" >&6; }
3713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3714 $as_echo "no" >&6; }
3720 if test -z "$CC"; then
3721 # Extract the first word of "cc", so it can be a program name with args.
3722 set dummy cc
; ac_word
=$2
3723 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3724 $as_echo_n "checking for $ac_word... " >&6; }
3725 if test "${ac_cv_prog_CC+set}" = set; then :
3726 $as_echo_n "(cached) " >&6
3728 if test -n "$CC"; then
3729 ac_cv_prog_CC
="$CC" # Let the user override the test.
3732 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3736 test -z "$as_dir" && as_dir
=.
3737 for ac_exec_ext
in '' $ac_executable_extensions; do
3738 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3739 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3740 ac_prog_rejected
=yes
3744 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3751 if test $ac_prog_rejected = yes; then
3752 # We found a bogon in the path, so make sure we never use it.
3753 set dummy
$ac_cv_prog_CC
3755 if test $# != 0; then
3756 # We chose a different compiler from the bogus one.
3757 # However, it has the same basename, so the bogon will be chosen
3758 # first if we set CC to just the basename; use the full file name.
3760 ac_cv_prog_CC
="$as_dir/$ac_word${1+' '}$@"
3766 if test -n "$CC"; then
3767 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3768 $as_echo "$CC" >&6; }
3770 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3771 $as_echo "no" >&6; }
3776 if test -z "$CC"; then
3777 if test -n "$ac_tool_prefix"; then
3778 for ac_prog
in cl.exe
3780 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3781 set dummy
$ac_tool_prefix$ac_prog; ac_word
=$2
3782 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3783 $as_echo_n "checking for $ac_word... " >&6; }
3784 if test "${ac_cv_prog_CC+set}" = set; then :
3785 $as_echo_n "(cached) " >&6
3787 if test -n "$CC"; then
3788 ac_cv_prog_CC
="$CC" # Let the user override the test.
3790 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3794 test -z "$as_dir" && as_dir
=.
3795 for ac_exec_ext
in '' $ac_executable_extensions; do
3796 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3797 ac_cv_prog_CC
="$ac_tool_prefix$ac_prog"
3798 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3808 if test -n "$CC"; then
3809 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3810 $as_echo "$CC" >&6; }
3812 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3813 $as_echo "no" >&6; }
3817 test -n "$CC" && break
3820 if test -z "$CC"; then
3822 for ac_prog
in cl.exe
3824 # Extract the first word of "$ac_prog", so it can be a program name with args.
3825 set dummy
$ac_prog; ac_word
=$2
3826 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3827 $as_echo_n "checking for $ac_word... " >&6; }
3828 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then :
3829 $as_echo_n "(cached) " >&6
3831 if test -n "$ac_ct_CC"; then
3832 ac_cv_prog_ac_ct_CC
="$ac_ct_CC" # Let the user override the test.
3834 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
3838 test -z "$as_dir" && as_dir
=.
3839 for ac_exec_ext
in '' $ac_executable_extensions; do
3840 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_test_x "$as_dir/$ac_word$ac_exec_ext"; }; then
3841 ac_cv_prog_ac_ct_CC
="$ac_prog"
3842 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3851 ac_ct_CC
=$ac_cv_prog_ac_ct_CC
3852 if test -n "$ac_ct_CC"; then
3853 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3854 $as_echo "$ac_ct_CC" >&6; }
3856 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3857 $as_echo "no" >&6; }
3861 test -n "$ac_ct_CC" && break
3864 if test "x$ac_ct_CC" = x
; then
3867 case $cross_compiling:$ac_tool_warned in
3869 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3870 $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3871 ac_tool_warned
=yes ;;
3880 test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3881 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3882 as_fn_error
"no acceptable C compiler found in \$PATH
3883 See \`config.log' for more details." "$LINENO" 5; }
3885 # Provide some information about the compiler.
3886 $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
3889 for ac_option
in --version -v -V -qversion; do
3890 { { ac_try
="$ac_compiler $ac_option >&5"
3892 *\"* |
*\
`* | *\\*) ac_try_echo=\$ac_try;;
3893 *) ac_try_echo=$ac_try;;
3895 eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3896 $as_echo "$ac_try_echo"; } >&5
3897 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3899 if test -s conftest.err; then
3901 ... rest of stderr output deleted ...
3902 10q' conftest.err >conftest.er1
3903 cat conftest.er1 >&5
3905 rm -f conftest.er1 conftest.err
3906 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3907 test $ac_status = 0; }
3910 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
3911 $as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
3912 if test "${ac_cv_c_compiler_gnu+set}" = set; then :
3913 $as_echo_n "(cached) " >&6
3915 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3916 /* end confdefs.h. */
3929 if ac_fn_c_try_compile "$LINENO"; then :
3934 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3935 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
3939 $as_echo "$ac_cv_c_compiler_gnu" >&6; }
3940 if test $ac_compiler_gnu = yes; then
3945 ac_test_CFLAGS=${CFLAGS+set}
3946 ac_save_CFLAGS=$CFLAGS
3947 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
3948 $as_echo_n "checking whether $CC accepts -g... " >&6; }
3949 if test "${ac_cv_prog_cc_g+set}" = set; then :
3950 $as_echo_n "(cached) " >&6
3952 ac_save_c_werror_flag=$ac_c_werror_flag
3953 ac_c_werror_flag=yes
3956 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3957 /* end confdefs.h. */
3967 if ac_fn_c_try_compile "$LINENO"; then :
3971 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3972 /* end confdefs.h. */
3982 if ac_fn_c_try_compile "$LINENO"; then :
3985 ac_c_werror_flag=$ac_save_c_werror_flag
3987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3988 /* end confdefs.h. */
3998 if ac_fn_c_try_compile "$LINENO"; then :
4001 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4003 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4005 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4006 ac_c_werror_flag=$ac_save_c_werror_flag
4008 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4009 $as_echo "$ac_cv_prog_cc_g" >&6; }
4010 if test "$ac_test_CFLAGS" = set; then
4011 CFLAGS=$ac_save_CFLAGS
4012 elif test $ac_cv_prog_cc_g = yes; then
4013 if test "$GCC" = yes; then
4019 if test "$GCC" = yes; then
4025 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4026 $as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4027 if test "${ac_cv_prog_cc_c89+set}" = set; then :
4028 $as_echo_n "(cached) " >&6
4030 ac_cv_prog_cc_c89=no
4032 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4033 /* end confdefs.h. */
4036 #include <sys/types.h>
4037 #include <sys/stat.h>
4038 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4039 struct buf { int x; };
4040 FILE * (*rcsopen) (struct buf *, struct stat *, int);
4041 static char *e (p, i)
4047 static char *f (char * (*g) (char **, int), char **p, ...)
4052 s = g (p, va_arg (v,int));
4057 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4058 function prototypes and stuff, but not '\xHH' hex character constants.
4059 These don't provoke an error unfortunately, instead are silently treated
4060 as 'x'. The following induces an error, until -std is added to get
4061 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4062 array size at least. It's necessary to write '\x00'==0 to get something
4063 that's true only with -std. */
4064 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4066 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4067 inside strings and character constants. */
4069 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4071 int test (int i, double x);
4072 struct s1 {int (*f) (int a);};
4073 struct s2 {int (*f) (double a);};
4074 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4080 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4085 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4086 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4088 CC="$ac_save_CC $ac_arg"
4089 if ac_fn_c_try_compile "$LINENO"; then :
4090 ac_cv_prog_cc_c89=$ac_arg
4092 rm -f core conftest.err conftest.$ac_objext
4093 test "x$ac_cv_prog_cc_c89" != "xno" && break
4095 rm -f conftest.$ac_ext
4100 case "x$ac_cv_prog_cc_c89" in
4102 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4103 $as_echo "none needed" >&6; } ;;
4105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4106 $as_echo "unsupported" >&6; } ;;
4108 CC="$CC $ac_cv_prog_cc_c89"
4109 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4110 $as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4112 if test "x$ac_cv_prog_cc_c89" != xno; then :
4117 ac_cpp='$CXXCPP $CPPFLAGS'
4118 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4119 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4120 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4122 depcc="$CC" am_compiler_list=
4124 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4125 $as_echo_n "checking dependency style of $depcc... " >&6; }
4126 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then :
4127 $as_echo_n "(cached) " >&6
4129 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4130 # We make a subdir and do the tests there. Otherwise we can end up
4131 # making bogus files that we don't know about and never remove. For
4132 # instance it was reported that on HP-UX the gcc test will end up
4133 # making a dummy file named `D
' -- because `-MD' means
`put the output
4136 # Copy depcomp to subdir because otherwise we won't find it if we're
4137 # using a relative directory.
4138 cp "$am_depcomp" conftest.dir
4140 # We will build objects and dependencies in a subdirectory because
4141 # it helps to detect inapplicable dependency modes. For instance
4142 # both Tru64's cc and ICC support -MD to output dependencies as a
4143 # side effect of compilation, but ICC will put the dependencies in
4144 # the current directory while Tru64 will put them in the object
4148 am_cv_CC_dependencies_compiler_type=none
4149 if test "$am_compiler_list" = ""; then
4150 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < .
/depcomp
`
4153 case " $depcc " in #(
4154 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4157 for depmode in $am_compiler_list; do
4158 # Setup a source with many dependencies, because some compilers
4159 # like to wrap large dependency lists on column 80 (with \), and
4160 # we should not choose a depcomp mode which is confused by this.
4162 # We need to recreate these files for each test, as the compiler may
4163 # overwrite some of them when testing with obscure command lines.
4164 # This happens at least with the AIX C compiler.
4166 for i in 1 2 3 4 5 6; do
4167 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4168 # Using `: > sub
/conftst
$i.h
' creates only sub/conftst1.h with
4169 # Solaris 8's
{/usr
,}/bin
/sh.
4170 touch sub
/conftst
$i.h
4172 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4174 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4175 # mode. It turns out that the SunPro C++ compiler does not properly
4176 # handle `-M -o', and we need to detect this. Also, some Intel
4177 # versions had trouble with output in subdirs
4178 am__obj
=sub
/conftest.
${OBJEXT-o}
4179 am__minus_obj
="-o $am__obj"
4182 # This depmode causes a compiler race in universal mode.
4183 test "$am__universal" = false ||
continue
4186 # after this tag, mechanisms are not by side-effect, so they'll
4187 # only be used when explicitly requested
4188 if test "x$enable_dependency_tracking" = xyes
; then
4194 msvisualcpp | msvcmsys
)
4195 # This compiler won't grok `-c -o', but also, the minuso test has
4196 # not run yet. These depmodes are late enough in the game, and
4197 # so weak that their functioning should not be impacted.
4198 am__obj
=conftest.
${OBJEXT-o}
4203 if depmode
=$depmode \
4204 source=sub
/conftest.c object
=$am__obj \
4205 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
4206 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
4207 >/dev
/null
2>conftest.err
&&
4208 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4209 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4210 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
4211 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
4212 # icc doesn't choke on unknown options, it will just issue warnings
4213 # or remarks (even with -Werror). So we grep stderr for any message
4214 # that says an option was ignored or not supported.
4215 # When given -MP, icc 7.0 and 7.1 complain thusly:
4216 # icc: Command line warning: ignoring option '-M'; no argument required
4217 # The diagnosis changed in icc 8.0:
4218 # icc: Command line remark: option '-MP' not supported
4219 if (grep 'ignoring option' conftest.err ||
4220 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
4221 am_cv_CC_dependencies_compiler_type
=$depmode
4230 am_cv_CC_dependencies_compiler_type
=none
4234 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4235 $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4236 CCDEPMODE
=depmode
=$am_cv_CC_dependencies_compiler_type
4239 test "x$enable_dependency_tracking" != xno \
4240 && test "$am_cv_CC_dependencies_compiler_type" = gcc3
; then
4242 am__fastdepCC_FALSE
='#'
4244 am__fastdepCC_TRUE
='#'
4245 am__fastdepCC_FALSE
=
4249 # By default we simply use the C compiler to build assembly code.
4251 test "${CCAS+set}" = set || CCAS
=$CC
4252 test "${CCASFLAGS+set}" = set || CCASFLAGS
=$CFLAGS
4256 depcc
="$CCAS" am_compiler_list
=
4258 { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4259 $as_echo_n "checking dependency style of $depcc... " >&6; }
4260 if test "${am_cv_CCAS_dependencies_compiler_type+set}" = set; then :
4261 $as_echo_n "(cached) " >&6
4263 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4264 # We make a subdir and do the tests there. Otherwise we can end up
4265 # making bogus files that we don't know about and never remove. For
4266 # instance it was reported that on HP-UX the gcc test will end up
4267 # making a dummy file named `D' -- because `-MD' means `put the output
4270 # Copy depcomp to subdir because otherwise we won't find it if we're
4271 # using a relative directory.
4272 cp "$am_depcomp" conftest.dir
4274 # We will build objects and dependencies in a subdirectory because
4275 # it helps to detect inapplicable dependency modes. For instance
4276 # both Tru64's cc and ICC support -MD to output dependencies as a
4277 # side effect of compilation, but ICC will put the dependencies in
4278 # the current directory while Tru64 will put them in the object
4282 am_cv_CCAS_dependencies_compiler_type
=none
4283 if test "$am_compiler_list" = ""; then
4284 am_compiler_list
=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4289 for depmode
in $am_compiler_list; do
4290 # Setup a source with many dependencies, because some compilers
4291 # like to wrap large dependency lists on column 80 (with \), and
4292 # we should not choose a depcomp mode which is confused by this.
4294 # We need to recreate these files for each test, as the compiler may
4295 # overwrite some of them when testing with obscure command lines.
4296 # This happens at least with the AIX C compiler.
4298 for i
in 1 2 3 4 5 6; do
4299 echo '#include "conftst'$i'.h"' >> sub
/conftest.c
4300 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
4301 # Solaris 8's {/usr,}/bin/sh.
4302 touch sub
/conftst
$i.h
4304 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4306 # We check with `-c' and `-o' for the sake of the "dashmstdout"
4307 # mode. It turns out that the SunPro C++ compiler does not properly
4308 # handle `-M -o', and we need to detect this. Also, some Intel
4309 # versions had trouble with output in subdirs
4310 am__obj
=sub
/conftest.
${OBJEXT-o}
4311 am__minus_obj
="-o $am__obj"
4314 # This depmode causes a compiler race in universal mode.
4315 test "$am__universal" = false ||
continue
4318 # after this tag, mechanisms are not by side-effect, so they'll
4319 # only be used when explicitly requested
4320 if test "x$enable_dependency_tracking" = xyes
; then
4326 msvisualcpp | msvcmsys
)
4327 # This compiler won't grok `-c -o', but also, the minuso test has
4328 # not run yet. These depmodes are late enough in the game, and
4329 # so weak that their functioning should not be impacted.
4330 am__obj
=conftest.
${OBJEXT-o}
4335 if depmode
=$depmode \
4336 source=sub
/conftest.c object
=$am__obj \
4337 depfile
=sub
/conftest.Po tmpdepfile
=sub
/conftest.TPo \
4338 $SHELL .
/depcomp
$depcc -c $am__minus_obj sub
/conftest.c \
4339 >/dev
/null
2>conftest.err
&&
4340 grep sub
/conftst1.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4341 grep sub
/conftst6.h sub
/conftest.Po
> /dev
/null
2>&1 &&
4342 grep $am__obj sub
/conftest.Po
> /dev
/null
2>&1 &&
4343 ${MAKE-make} -s -f confmf
> /dev
/null
2>&1; then
4344 # icc doesn't choke on unknown options, it will just issue warnings
4345 # or remarks (even with -Werror). So we grep stderr for any message
4346 # that says an option was ignored or not supported.
4347 # When given -MP, icc 7.0 and 7.1 complain thusly:
4348 # icc: Command line warning: ignoring option '-M'; no argument required
4349 # The diagnosis changed in icc 8.0:
4350 # icc: Command line remark: option '-MP' not supported
4351 if (grep 'ignoring option' conftest.err ||
4352 grep 'not supported' conftest.err
) >/dev
/null
2>&1; then :; else
4353 am_cv_CCAS_dependencies_compiler_type
=$depmode
4362 am_cv_CCAS_dependencies_compiler_type
=none
4366 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
4367 $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
4368 CCASDEPMODE
=depmode
=$am_cv_CCAS_dependencies_compiler_type
4371 test "x$enable_dependency_tracking" != xno \
4372 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3
; then
4373 am__fastdepCCAS_TRUE
=
4374 am__fastdepCCAS_FALSE
='#'
4376 am__fastdepCCAS_TRUE
='#'
4377 am__fastdepCCAS_FALSE
=
4383 # Make sure we can run config.sub.
4384 $SHELL "$ac_aux_dir/config.sub" sun4
>/dev
/null
2>&1 ||
4385 as_fn_error
"cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4387 { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4388 $as_echo_n "checking build system type... " >&6; }
4389 if test "${ac_cv_build+set}" = set; then :
4390 $as_echo_n "(cached) " >&6
4392 ac_build_alias
=$build_alias
4393 test "x$ac_build_alias" = x
&&
4394 ac_build_alias
=`$SHELL "$ac_aux_dir/config.guess"`
4395 test "x$ac_build_alias" = x
&&
4396 as_fn_error
"cannot guess build type; you must specify one" "$LINENO" 5
4397 ac_cv_build
=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4398 as_fn_error
"$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4401 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4402 $as_echo "$ac_cv_build" >&6; }
4403 case $ac_cv_build in
4405 *) as_fn_error
"invalid value of canonical build" "$LINENO" 5;;
4408 ac_save_IFS
=$IFS; IFS
='-'
4414 # Remember, the first character of IFS is used to create $*,
4415 # except with old shells:
4418 case $build_os in *\
*) build_os
=`echo "$build_os" | sed 's/ /-/g'`;; esac
4421 { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4422 $as_echo_n "checking host system type... " >&6; }
4423 if test "${ac_cv_host+set}" = set; then :
4424 $as_echo_n "(cached) " >&6
4426 if test "x$host_alias" = x
; then
4427 ac_cv_host
=$ac_cv_build
4429 ac_cv_host
=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4430 as_fn_error
"$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4434 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4435 $as_echo "$ac_cv_host" >&6; }
4438 *) as_fn_error
"invalid value of canonical host" "$LINENO" 5;;
4441 ac_save_IFS
=$IFS; IFS
='-'
4447 # Remember, the first character of IFS is used to create $*,
4448 # except with old shells:
4451 case $host_os in *\
*) host_os
=`echo "$host_os" | sed 's/ /-/g'`;; esac
4456 # If building on Cygwin and not cross-compiling add '-mno-cygwin'
4457 # to select MinGW gcc. This does no longer work for gcc 4.x.
4458 if test "${build}" = "${host}" && test -x /usr
/bin
/uname
&& \
4459 /usr
/bin
/uname |
grep -i '^CYGWIN' >/dev
/null
; then
4460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C and C++ compiler support -mno-cygwin" >&5
4461 $as_echo_n "checking whether C and C++ compiler support -mno-cygwin... " >&6; }
4462 gcc_support_m_no_cygwin
=no
4463 if $CC -v -mno-cygwin >/dev
/null
2>&1 && \
4464 $CXX -v -mno-cygwin >/dev
/null
2>&1; then
4465 gcc_support_m_no_cygwin
=yes
4467 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_support_m_no_cygwin" >&5
4468 $as_echo "$gcc_support_m_no_cygwin" >&6; }
4469 if test "$gcc_support_m_no_cygwin" != "yes"; then
4470 as_fn_error
"$CC and $CXX do not support -mno-cygwin, see INSTALL file for details." "$LINENO" 5
4472 CPPFLAGS
="$CPPFLAGS -mno-cygwin"
4473 LDFLAGS
="$LDFLAGS -mno-cygwin"
4475 CPPFLAGS
="$CPPFLAGS -idirafter ${srcdir}/posix -idirafter ${srcdir}/os_win32"
4478 CPPFLAGS
="$CPPFLAGS -I/usr/src/sys"
4483 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether this is a build from SVN" >&5
4484 $as_echo_n "checking whether this is a build from SVN... " >&6; }
4486 if test -f "$srcdir/.svn/entries"; then
4487 is_svn_build
=unknown
4488 if (cd "$srcdir" && svn
--version && svnversion
&& svn info
) >/dev
/null
2>&1; then
4492 if test "$is_svn_build" = "yes"; then
4494 IS_SVN_BUILD_FALSE
='#'
4496 IS_SVN_BUILD_TRUE
='#'
4500 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $is_svn_build" >&5
4501 $as_echo "$is_svn_build" >&6; }
4503 # AC_SEARCH_LIBS (FUNCTION, SEARCH-LIBS, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND], [OTHER-LIBRARIES])
4505 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing socket" >&5
4506 $as_echo_n "checking for library containing socket... " >&6; }
4507 if test "${ac_cv_search_socket+set}" = set; then :
4508 $as_echo_n "(cached) " >&6
4510 ac_func_search_save_LIBS
=$LIBS
4511 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4512 /* end confdefs.h. */
4514 /* Override any GCC internal prototype to avoid an error.
4515 Use char because int might match the return type of a GCC
4516 builtin and then its argument prototype would still apply. */
4529 for ac_lib
in '' socket
; do
4530 if test -z "$ac_lib"; then
4531 ac_res
="none required"
4534 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4536 if ac_fn_cxx_try_link
"$LINENO"; then :
4537 ac_cv_search_socket
=$ac_res
4539 rm -f core conftest.err conftest.
$ac_objext \
4541 if test "${ac_cv_search_socket+set}" = set; then :
4545 if test "${ac_cv_search_socket+set}" = set; then :
4548 ac_cv_search_socket
=no
4551 LIBS
=$ac_func_search_save_LIBS
4553 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_socket" >&5
4554 $as_echo "$ac_cv_search_socket" >&6; }
4555 ac_res
=$ac_cv_search_socket
4556 if test "$ac_res" != no
; then :
4557 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
4561 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing gethostbyname" >&5
4562 $as_echo_n "checking for library containing gethostbyname... " >&6; }
4563 if test "${ac_cv_search_gethostbyname+set}" = set; then :
4564 $as_echo_n "(cached) " >&6
4566 ac_func_search_save_LIBS
=$LIBS
4567 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4568 /* end confdefs.h. */
4570 /* Override any GCC internal prototype to avoid an error.
4571 Use char because int might match the return type of a GCC
4572 builtin and then its argument prototype would still apply. */
4576 char gethostbyname ();
4580 return gethostbyname ();
4585 for ac_lib
in '' nsl
; do
4586 if test -z "$ac_lib"; then
4587 ac_res
="none required"
4590 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4592 if ac_fn_cxx_try_link
"$LINENO"; then :
4593 ac_cv_search_gethostbyname
=$ac_res
4595 rm -f core conftest.err conftest.
$ac_objext \
4597 if test "${ac_cv_search_gethostbyname+set}" = set; then :
4601 if test "${ac_cv_search_gethostbyname+set}" = set; then :
4604 ac_cv_search_gethostbyname
=no
4607 LIBS
=$ac_func_search_save_LIBS
4609 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_gethostbyname" >&5
4610 $as_echo "$ac_cv_search_gethostbyname" >&6; }
4611 ac_res
=$ac_cv_search_gethostbyname
4612 if test "$ac_res" != no
; then :
4613 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
4617 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getaddrinfo" >&5
4618 $as_echo_n "checking for library containing getaddrinfo... " >&6; }
4619 if test "${ac_cv_search_getaddrinfo+set}" = set; then :
4620 $as_echo_n "(cached) " >&6
4622 ac_func_search_save_LIBS
=$LIBS
4623 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4624 /* end confdefs.h. */
4626 /* Override any GCC internal prototype to avoid an error.
4627 Use char because int might match the return type of a GCC
4628 builtin and then its argument prototype would still apply. */
4632 char getaddrinfo ();
4636 return getaddrinfo ();
4641 for ac_lib
in '' nsl
; do
4642 if test -z "$ac_lib"; then
4643 ac_res
="none required"
4646 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4648 if ac_fn_cxx_try_link
"$LINENO"; then :
4649 ac_cv_search_getaddrinfo
=$ac_res
4651 rm -f core conftest.err conftest.
$ac_objext \
4653 if test "${ac_cv_search_getaddrinfo+set}" = set; then :
4657 if test "${ac_cv_search_getaddrinfo+set}" = set; then :
4660 ac_cv_search_getaddrinfo
=no
4663 LIBS
=$ac_func_search_save_LIBS
4665 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getaddrinfo" >&5
4666 $as_echo "$ac_cv_search_getaddrinfo" >&6; }
4667 ac_res
=$ac_cv_search_getaddrinfo
4668 if test "$ac_res" != no
; then :
4669 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
4673 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for library containing getdomainname" >&5
4674 $as_echo_n "checking for library containing getdomainname... " >&6; }
4675 if test "${ac_cv_search_getdomainname+set}" = set; then :
4676 $as_echo_n "(cached) " >&6
4678 ac_func_search_save_LIBS
=$LIBS
4679 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4680 /* end confdefs.h. */
4682 /* Override any GCC internal prototype to avoid an error.
4683 Use char because int might match the return type of a GCC
4684 builtin and then its argument prototype would still apply. */
4688 char getdomainname ();
4692 return getdomainname ();
4697 for ac_lib
in '' nsl
; do
4698 if test -z "$ac_lib"; then
4699 ac_res
="none required"
4702 LIBS
="-l$ac_lib $ac_func_search_save_LIBS"
4704 if ac_fn_cxx_try_link
"$LINENO"; then :
4705 ac_cv_search_getdomainname
=$ac_res
4707 rm -f core conftest.err conftest.
$ac_objext \
4709 if test "${ac_cv_search_getdomainname+set}" = set; then :
4713 if test "${ac_cv_search_getdomainname+set}" = set; then :
4716 ac_cv_search_getdomainname
=no
4719 LIBS
=$ac_func_search_save_LIBS
4721 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_search_getdomainname" >&5
4722 $as_echo "$ac_cv_search_getdomainname" >&6; }
4723 ac_res
=$ac_cv_search_getdomainname
4724 if test "$ac_res" != no
; then :
4725 test "$ac_res" = "none required" || LIBS
="$ac_res $LIBS"
4731 ac_cpp
='$CXXCPP $CPPFLAGS'
4732 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4733 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4734 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4735 { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
4736 $as_echo_n "checking how to run the C++ preprocessor... " >&6; }
4737 if test -z "$CXXCPP"; then
4738 if test "${ac_cv_prog_CXXCPP+set}" = set; then :
4739 $as_echo_n "(cached) " >&6
4741 # Double quotes because CXXCPP needs to be expanded
4742 for CXXCPP
in "$CXX -E" "/lib/cpp"
4745 for ac_cxx_preproc_warn_flag
in '' yes
4747 # Use a header file that comes with gcc, so configuring glibc
4748 # with a fresh cross-compiler works.
4749 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4750 # <limits.h> exists even on freestanding compilers.
4751 # On the NeXT, cc -E runs the code through the compiler's parser,
4752 # not just through cpp. "Syntax error" is here to catch this case.
4753 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4754 /* end confdefs.h. */
4756 # include <limits.h>
4758 # include <assert.h>
4762 if ac_fn_cxx_try_cpp
"$LINENO"; then :
4765 # Broken: fails on valid input.
4768 rm -f conftest.err conftest.
$ac_ext
4770 # OK, works on sane cases. Now check whether nonexistent headers
4771 # can be detected and how.
4772 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4773 /* end confdefs.h. */
4774 #include <ac_nonexistent.h>
4776 if ac_fn_cxx_try_cpp
"$LINENO"; then :
4777 # Broken: success on invalid input.
4780 # Passes both tests.
4784 rm -f conftest.err conftest.
$ac_ext
4787 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4788 rm -f conftest.err conftest.
$ac_ext
4789 if $ac_preproc_ok; then :
4794 ac_cv_prog_CXXCPP
=$CXXCPP
4797 CXXCPP
=$ac_cv_prog_CXXCPP
4799 ac_cv_prog_CXXCPP
=$CXXCPP
4801 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
4802 $as_echo "$CXXCPP" >&6; }
4804 for ac_cxx_preproc_warn_flag
in '' yes
4806 # Use a header file that comes with gcc, so configuring glibc
4807 # with a fresh cross-compiler works.
4808 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4809 # <limits.h> exists even on freestanding compilers.
4810 # On the NeXT, cc -E runs the code through the compiler's parser,
4811 # not just through cpp. "Syntax error" is here to catch this case.
4812 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4813 /* end confdefs.h. */
4815 # include <limits.h>
4817 # include <assert.h>
4821 if ac_fn_cxx_try_cpp
"$LINENO"; then :
4824 # Broken: fails on valid input.
4827 rm -f conftest.err conftest.
$ac_ext
4829 # OK, works on sane cases. Now check whether nonexistent headers
4830 # can be detected and how.
4831 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
4832 /* end confdefs.h. */
4833 #include <ac_nonexistent.h>
4835 if ac_fn_cxx_try_cpp
"$LINENO"; then :
4836 # Broken: success on invalid input.
4839 # Passes both tests.
4843 rm -f conftest.err conftest.
$ac_ext
4846 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4847 rm -f conftest.err conftest.
$ac_ext
4848 if $ac_preproc_ok; then :
4851 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4852 $as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4853 as_fn_error
"C++ preprocessor \"$CXXCPP\" fails sanity check
4854 See \`config.log' for more details." "$LINENO" 5; }
4858 ac_cpp
='$CXXCPP $CPPFLAGS'
4859 ac_compile
='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4860 ac_link
='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4861 ac_compiler_gnu
=$ac_cv_cxx_compiler_gnu
4864 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
4865 $as_echo_n "checking for grep that handles long lines and -e... " >&6; }
4866 if test "${ac_cv_path_GREP+set}" = set; then :
4867 $as_echo_n "(cached) " >&6
4869 if test -z "$GREP"; then
4870 ac_path_GREP_found
=false
4871 # Loop through the user's path and test for each of PROGNAME-LIST
4872 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4873 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4876 test -z "$as_dir" && as_dir
=.
4877 for ac_prog
in grep ggrep
; do
4878 for ac_exec_ext
in '' $ac_executable_extensions; do
4879 ac_path_GREP
="$as_dir/$ac_prog$ac_exec_ext"
4880 { test -f "$ac_path_GREP" && $as_test_x "$ac_path_GREP"; } ||
continue
4881 # Check for GNU ac_path_GREP and select it if it is found.
4882 # Check for GNU $ac_path_GREP
4883 case `"$ac_path_GREP" --version 2>&1` in
4885 ac_cv_path_GREP
="$ac_path_GREP" ac_path_GREP_found
=:;;
4888 $as_echo_n 0123456789 >"conftest.in"
4891 cat "conftest.in" "conftest.in" >"conftest.tmp"
4892 mv "conftest.tmp" "conftest.in"
4893 cp "conftest.in" "conftest.nl"
4894 $as_echo 'GREP' >> "conftest.nl"
4895 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4896 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4897 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4898 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4899 # Best one so far, save it but keep looking for a better one
4900 ac_cv_path_GREP
="$ac_path_GREP"
4901 ac_path_GREP_max
=$ac_count
4903 # 10*(2^10) chars as input seems more than enough
4904 test $ac_count -gt 10 && break
4906 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4909 $ac_path_GREP_found && break 3
4914 if test -z "$ac_cv_path_GREP"; then
4915 as_fn_error
"no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4918 ac_cv_path_GREP
=$GREP
4922 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
4923 $as_echo "$ac_cv_path_GREP" >&6; }
4924 GREP
="$ac_cv_path_GREP"
4927 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
4928 $as_echo_n "checking for egrep... " >&6; }
4929 if test "${ac_cv_path_EGREP+set}" = set; then :
4930 $as_echo_n "(cached) " >&6
4932 if echo a |
$GREP -E '(a|b)' >/dev
/null
2>&1
4933 then ac_cv_path_EGREP
="$GREP -E"
4935 if test -z "$EGREP"; then
4936 ac_path_EGREP_found
=false
4937 # Loop through the user's path and test for each of PROGNAME-LIST
4938 as_save_IFS
=$IFS; IFS
=$PATH_SEPARATOR
4939 for as_dir
in $PATH$PATH_SEPARATOR/usr
/xpg
4/bin
4942 test -z "$as_dir" && as_dir
=.
4943 for ac_prog
in egrep; do
4944 for ac_exec_ext
in '' $ac_executable_extensions; do
4945 ac_path_EGREP
="$as_dir/$ac_prog$ac_exec_ext"
4946 { test -f "$ac_path_EGREP" && $as_test_x "$ac_path_EGREP"; } ||
continue
4947 # Check for GNU ac_path_EGREP and select it if it is found.
4948 # Check for GNU $ac_path_EGREP
4949 case `"$ac_path_EGREP" --version 2>&1` in
4951 ac_cv_path_EGREP
="$ac_path_EGREP" ac_path_EGREP_found
=:;;
4954 $as_echo_n 0123456789 >"conftest.in"
4957 cat "conftest.in" "conftest.in" >"conftest.tmp"
4958 mv "conftest.tmp" "conftest.in"
4959 cp "conftest.in" "conftest.nl"
4960 $as_echo 'EGREP' >> "conftest.nl"
4961 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev
/null ||
break
4962 diff "conftest.out" "conftest.nl" >/dev
/null
2>&1 ||
break
4963 as_fn_arith
$ac_count + 1 && ac_count
=$as_val
4964 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4965 # Best one so far, save it but keep looking for a better one
4966 ac_cv_path_EGREP
="$ac_path_EGREP"
4967 ac_path_EGREP_max
=$ac_count
4969 # 10*(2^10) chars as input seems more than enough
4970 test $ac_count -gt 10 && break
4972 rm -f conftest.
in conftest.tmp conftest.
nl conftest.out
;;
4975 $ac_path_EGREP_found && break 3
4980 if test -z "$ac_cv_path_EGREP"; then
4981 as_fn_error
"no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
4984 ac_cv_path_EGREP
=$EGREP
4989 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
4990 $as_echo "$ac_cv_path_EGREP" >&6; }
4991 EGREP
="$ac_cv_path_EGREP"
4994 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
4995 $as_echo_n "checking for ANSI C header files... " >&6; }
4996 if test "${ac_cv_header_stdc+set}" = set; then :
4997 $as_echo_n "(cached) " >&6
4999 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5000 /* end confdefs.h. */
5014 if ac_fn_cxx_try_compile
"$LINENO"; then :
5015 ac_cv_header_stdc
=yes
5017 ac_cv_header_stdc
=no
5019 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5021 if test $ac_cv_header_stdc = yes; then
5022 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5023 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5024 /* end confdefs.h. */
5028 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5029 $EGREP "memchr" >/dev
/null
2>&1; then :
5032 ac_cv_header_stdc
=no
5038 if test $ac_cv_header_stdc = yes; then
5039 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5040 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5041 /* end confdefs.h. */
5045 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5046 $EGREP "free" >/dev
/null
2>&1; then :
5049 ac_cv_header_stdc
=no
5055 if test $ac_cv_header_stdc = yes; then
5056 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5057 if test "$cross_compiling" = yes; then :
5060 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5061 /* end confdefs.h. */
5064 #if ((' ' & 0x0FF) == 0x020)
5065 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5066 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5068 # define ISLOWER(c) \
5069 (('a' <= (c) && (c) <= 'i') \
5070 || ('j' <= (c) && (c) <= 'r') \
5071 || ('s' <= (c) && (c) <= 'z'))
5072 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5075 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5080 for (i = 0; i < 256; i++)
5081 if (XOR (islower (i), ISLOWER (i))
5082 || toupper (i) != TOUPPER (i))
5087 if ac_fn_cxx_try_run
"$LINENO"; then :
5090 ac_cv_header_stdc
=no
5092 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5093 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5098 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5099 $as_echo "$ac_cv_header_stdc" >&6; }
5100 if test $ac_cv_header_stdc = yes; then
5102 $as_echo "#define STDC_HEADERS 1" >>confdefs.h
5106 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5107 for ac_header
in sys
/types.h sys
/stat.h stdlib.h string.h memory.h
strings.h \
5108 inttypes.h stdint.h unistd.h
5110 as_ac_Header
=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5111 ac_fn_cxx_check_header_compile
"$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5113 eval as_val
=\$
$as_ac_Header
5114 if test "x$as_val" = x
""yes; then :
5115 cat >>confdefs.h
<<_ACEOF
5116 #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5124 for ac_header
in locale.h
5126 ac_fn_cxx_check_header_mongrel
"$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
5127 if test "x$ac_cv_header_locale_h" = x
""yes; then :
5128 cat >>confdefs.h
<<_ACEOF
5129 #define HAVE_LOCALE_H 1
5136 for ac_header
in dev
/ata
/atavar.h
5138 ac_fn_cxx_check_header_mongrel
"$LINENO" "dev/ata/atavar.h" "ac_cv_header_dev_ata_atavar_h" "$ac_includes_default"
5139 if test "x$ac_cv_header_dev_ata_atavar_h" = x
""yes; then :
5140 cat >>confdefs.h
<<_ACEOF
5141 #define HAVE_DEV_ATA_ATAVAR_H 1
5148 for ac_header
in netdb.h
5150 ac_fn_cxx_check_header_mongrel
"$LINENO" "netdb.h" "ac_cv_header_netdb_h" "$ac_includes_default"
5151 if test "x$ac_cv_header_netdb_h" = x
""yes; then :
5152 cat >>confdefs.h
<<_ACEOF
5153 #define HAVE_NETDB_H 1
5160 for ac_header
in inttypes.h
5162 ac_fn_cxx_check_header_mongrel
"$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
5163 if test "x$ac_cv_header_inttypes_h" = x
""yes; then :
5164 cat >>confdefs.h
<<_ACEOF
5165 #define HAVE_INTTYPES_H 1
5171 for ac_header
in stdint.h
5173 ac_fn_cxx_check_header_mongrel
"$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
5174 if test "x$ac_cv_header_stdint_h" = x
""yes; then :
5175 cat >>confdefs.h
<<_ACEOF
5176 #define HAVE_STDINT_H 1
5182 for ac_header
in sys
/inttypes.h
5184 ac_fn_cxx_check_header_mongrel
"$LINENO" "sys/inttypes.h" "ac_cv_header_sys_inttypes_h" "$ac_includes_default"
5185 if test "x$ac_cv_header_sys_inttypes_h" = x
""yes; then :
5186 cat >>confdefs.h
<<_ACEOF
5187 #define HAVE_SYS_INTTYPES_H 1
5193 for ac_header
in sys
/int_types.h
5195 ac_fn_cxx_check_header_mongrel
"$LINENO" "sys/int_types.h" "ac_cv_header_sys_int_types_h" "$ac_includes_default"
5196 if test "x$ac_cv_header_sys_int_types_h" = x
""yes; then :
5197 cat >>confdefs.h
<<_ACEOF
5198 #define HAVE_SYS_INT_TYPES_H 1
5204 for ac_header
in sys
/tweio.h
5206 ac_fn_cxx_check_header_mongrel
"$LINENO" "sys/tweio.h" "ac_cv_header_sys_tweio_h" "$ac_includes_default"
5207 if test "x$ac_cv_header_sys_tweio_h" = x
""yes; then :
5208 cat >>confdefs.h
<<_ACEOF
5209 #define HAVE_SYS_TWEIO_H 1
5216 for ac_header
in sys
/twereg.h
5218 ac_fn_cxx_check_header_mongrel
"$LINENO" "sys/twereg.h" "ac_cv_header_sys_twereg_h" "$ac_includes_default"
5219 if test "x$ac_cv_header_sys_twereg_h" = x
""yes; then :
5220 cat >>confdefs.h
<<_ACEOF
5221 #define HAVE_SYS_TWEREG_H 1
5228 for ac_header
in sys
/tw_osl_ioctl.h
5230 ac_fn_cxx_check_header_mongrel
"$LINENO" "sys/tw_osl_ioctl.h" "ac_cv_header_sys_tw_osl_ioctl_h" "$ac_includes_default"
5231 if test "x$ac_cv_header_sys_tw_osl_ioctl_h" = x
""yes; then :
5232 cat >>confdefs.h
<<_ACEOF
5233 #define HAVE_SYS_TW_OSL_IOCTL_H 1
5240 for ac_header
in dev
/ciss
/cissio.h
5242 ac_fn_cxx_check_header_mongrel
"$LINENO" "dev/ciss/cissio.h" "ac_cv_header_dev_ciss_cissio_h" "$ac_includes_default"
5243 if test "x$ac_cv_header_dev_ciss_cissio_h" = x
""yes; then :
5244 cat >>confdefs.h
<<_ACEOF
5245 #define HAVE_DEV_CISS_CISSIO_H 1
5252 for ac_header
in linux
/compiler.h
5254 ac_fn_cxx_check_header_mongrel
"$LINENO" "linux/compiler.h" "ac_cv_header_linux_compiler_h" "$ac_includes_default"
5255 if test "x$ac_cv_header_linux_compiler_h" = x
""yes; then :
5256 cat >>confdefs.h
<<_ACEOF
5257 #define HAVE_LINUX_COMPILER_H 1
5264 for ac_header
in linux
/cciss_ioctl.h
5266 ac_fn_cxx_check_header_compile
"$LINENO" "linux/cciss_ioctl.h" "ac_cv_header_linux_cciss_ioctl_h" "$ac_includes_default
5267 #ifdef HAVE_LINUX_COMPILER_H
5268 # include <linux/compiler.h>
5272 if test "x$ac_cv_header_linux_cciss_ioctl_h" = x
""yes; then :
5273 cat >>confdefs.h
<<_ACEOF
5274 #define HAVE_LINUX_CCISS_IOCTL_H 1
5282 ac_fn_cxx_check_type
"$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
5283 if test "x$ac_cv_type_int64_t" = x
""yes; then :
5285 cat >>confdefs.h
<<_ACEOF
5286 #define HAVE_INT64_T 1
5291 ac_fn_cxx_check_type
"$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
5292 if test "x$ac_cv_type_uint64_t" = x
""yes; then :
5294 cat >>confdefs.h
<<_ACEOF
5295 #define HAVE_UINT64_T 1
5302 for ac_func
in getopt_long
5304 ac_fn_cxx_check_func
"$LINENO" "getopt_long" "ac_cv_func_getopt_long"
5305 if test "x$ac_cv_func_getopt_long" = x
""yes; then :
5306 cat >>confdefs.h
<<_ACEOF
5307 #define HAVE_GETOPT_LONG 1
5312 { $as_echo "$as_me:${as_lineno-$LINENO}: smartmontools does no longer support platforms without getopt_long()." >&5
5313 $as_echo "$as_me: smartmontools does no longer support platforms without getopt_long()." >&6;}
5314 { $as_echo "$as_me:${as_lineno-$LINENO}: Please inform ${PACKAGE_BUGREPORT}," >&5
5315 $as_echo "$as_me: Please inform ${PACKAGE_BUGREPORT}," >&6;}
5316 { $as_echo "$as_me:${as_lineno-$LINENO}: including details about your build environment." >&5
5317 $as_echo "$as_me: including details about your build environment." >&6;}
5318 as_fn_error
"function getopt_long() not found" "$LINENO" 5
5324 for ac_func
in getdomainname
5326 ac_fn_cxx_check_func
"$LINENO" "getdomainname" "ac_cv_func_getdomainname"
5327 if test "x$ac_cv_func_getdomainname" = x
""yes; then :
5328 cat >>confdefs.h
<<_ACEOF
5329 #define HAVE_GETDOMAINNAME 1
5335 for ac_func
in gethostname
5337 ac_fn_cxx_check_func
"$LINENO" "gethostname" "ac_cv_func_gethostname"
5338 if test "x$ac_cv_func_gethostname" = x
""yes; then :
5339 cat >>confdefs.h
<<_ACEOF
5340 #define HAVE_GETHOSTNAME 1
5346 for ac_func
in getaddrinfo
5348 ac_fn_cxx_check_func
"$LINENO" "getaddrinfo" "ac_cv_func_getaddrinfo"
5349 if test "x$ac_cv_func_getaddrinfo" = x
""yes; then :
5350 cat >>confdefs.h
<<_ACEOF
5351 #define HAVE_GETADDRINFO 1
5357 for ac_func
in gethostbyname
5359 ac_fn_cxx_check_func
"$LINENO" "gethostbyname" "ac_cv_func_gethostbyname"
5360 if test "x$ac_cv_func_gethostbyname" = x
""yes; then :
5361 cat >>confdefs.h
<<_ACEOF
5362 #define HAVE_GETHOSTBYNAME 1
5368 for ac_func
in sigset
5370 ac_fn_cxx_check_func
"$LINENO" "sigset" "ac_cv_func_sigset"
5371 if test "x$ac_cv_func_sigset" = x
""yes; then :
5372 cat >>confdefs.h
<<_ACEOF
5373 #define HAVE_SIGSET 1
5379 for ac_func
in strtoull
5381 ac_fn_cxx_check_func
"$LINENO" "strtoull" "ac_cv_func_strtoull"
5382 if test "x$ac_cv_func_strtoull" = x
""yes; then :
5383 cat >>confdefs.h
<<_ACEOF
5384 #define HAVE_STRTOULL 1
5390 for ac_func
in uname
5392 ac_fn_cxx_check_func
"$LINENO" "uname" "ac_cv_func_uname"
5393 if test "x$ac_cv_func_uname" = x
""yes; then :
5394 cat >>confdefs.h
<<_ACEOF
5395 #define HAVE_UNAME 1
5402 # Check whether snprintf appends null char and returns expected length on overflow
5404 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for working snprintf" >&5
5405 $as_echo_n "checking for working snprintf... " >&6; }
5406 if test "$cross_compiling" = yes; then :
5407 libc_have_working_snprintf
=no
5409 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5410 /* end confdefs.h. */
5415 char buf[]="ABCDEFGHI";
5416 int i=snprintf(buf,8,"12345678"); return !(!buf[7] && i==8);
5421 if ac_fn_cxx_try_run
"$LINENO"; then :
5422 libc_have_working_snprintf
=yes
5424 libc_have_working_snprintf
=no
5426 rm -f core
*.core core.conftest.
* gmon.out bb.out conftest
$ac_exeext \
5427 conftest.
$ac_objext conftest.beam conftest.
$ac_ext
5431 if test "$libc_have_working_snprintf" = "yes"; then
5432 $as_echo "#define HAVE_WORKING_SNPRINTF 1" >>confdefs.h
5435 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_have_working_snprintf" >&5
5436 $as_echo "$libc_have_working_snprintf" >&6; }
5438 # check for __attribute__((packed))
5440 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether C++ compiler supports __attribute__((packed))" >&5
5441 $as_echo_n "checking whether C++ compiler supports __attribute__((packed))... " >&6; }
5442 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5443 /* end confdefs.h. */
5448 struct a { int b; } __attribute__((packed));
5453 if ac_fn_cxx_try_compile
"$LINENO"; then :
5454 gcc_have_attr_packed
=yes
5456 gcc_have_attr_packed
=no
5458 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5459 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5460 /* end confdefs.h. */
5465 #if defined(__SUNPRO_C) || defined(__SUNPRO_CC)
5466 #error "Sun's compiler cannot handle __attribute__((packed))!"
5472 if ac_fn_cxx_try_compile
"$LINENO"; then :
5475 gcc_have_attr_packed
=no
5477 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5479 if test "$gcc_have_attr_packed" = "yes"; then
5480 $as_echo "#define HAVE_ATTR_PACKED 1" >>confdefs.h
5483 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_have_attr_packed" >&5
5484 $as_echo "$gcc_have_attr_packed" >&6; }
5490 exampledir
='${docdir}/examplescripts'
5494 # Check whether --with-initscriptdir was given.
5495 if test "${with_initscriptdir+set}" = set; then :
5496 withval
=$with_initscriptdir; initddir
="$withval"
5498 initddir
='${sysconfdir}/rc.d/init.d'
5502 if test "$with_initscriptdir" != "no"; then
5503 INSTALL_INITSCRIPT_TRUE
=
5504 INSTALL_INITSCRIPT_FALSE
='#'
5506 INSTALL_INITSCRIPT_TRUE
='#'
5507 INSTALL_INITSCRIPT_FALSE
=
5512 # Check whether --with-docdir was given.
5513 if test "${with_docdir+set}" = set; then :
5514 withval
=$with_docdir; docdir
="$withval"
5516 docdir
='${prefix}/share/doc/${PACKAGE}-${VERSION}'
5521 # Check whether --enable-drivedb was given.
5522 if test "${enable_drivedb+set}" = set; then :
5523 enableval
=$enable_drivedb;
5528 # Check whether --with-drivedbdir was given.
5529 if test "${with_drivedbdir+set}" = set; then :
5530 withval
=$with_drivedbdir; drivedbdir
="$withval"; enable_drivedb
="yes"
5532 drivedbdir
=; test "$enable_drivedb" = "yes" && drivedbdir
='${datadir}/${PACKAGE}'
5536 if test "$enable_drivedb" = "yes"; then
5537 ENABLE_DRIVEDB_TRUE
=
5538 ENABLE_DRIVEDB_FALSE
='#'
5540 ENABLE_DRIVEDB_TRUE
='#'
5541 ENABLE_DRIVEDB_FALSE
=
5545 # Check whether --enable-savestates was given.
5546 if test "${enable_savestates+set}" = set; then :
5547 enableval
=$enable_savestates;
5552 # Check whether --with-savestates was given.
5553 if test "${with_savestates+set}" = set; then :
5554 withval
=$with_savestates; savestates
="$withval"; enable_savestates
="yes"
5556 savestates
=; test "$enable_savestates" = "yes" && savestates
='${localstatedir}/lib/${PACKAGE}/smartd.'
5559 savestatesdir
="${savestates%/*}"
5562 if test "$enable_savestates" = "yes"; then
5563 ENABLE_SAVESTATES_TRUE
=
5564 ENABLE_SAVESTATES_FALSE
='#'
5566 ENABLE_SAVESTATES_TRUE
='#'
5567 ENABLE_SAVESTATES_FALSE
=
5571 # Check whether --enable-attributelog was given.
5572 if test "${enable_attributelog+set}" = set; then :
5573 enableval
=$enable_attributelog;
5578 # Check whether --with-attributelog was given.
5579 if test "${with_attributelog+set}" = set; then :
5580 withval
=$with_attributelog; attributelog
="$withval"; enable_attributelog
="yes"
5582 attributelog
=; test "$enable_attributelog" = "yes" && attributelog
='${localstatedir}/lib/${PACKAGE}/attrlog.'
5585 attributelogdir
="${attributelog%/*}"
5588 if test "$enable_attributelog" = "yes"; then
5589 ENABLE_ATTRIBUTELOG_TRUE
=
5590 ENABLE_ATTRIBUTELOG_FALSE
='#'
5592 ENABLE_ATTRIBUTELOG_TRUE
='#'
5593 ENABLE_ATTRIBUTELOG_FALSE
=
5597 # Check whether --enable-sample was given.
5598 if test "${enable_sample+set}" = set; then :
5599 enableval
=$enable_sample; smartd_suffix
='.sample'
5605 if test $smartd_suffix; then
5607 SMARTD_SUFFIX_FALSE
='#'
5609 SMARTD_SUFFIX_TRUE
='#'
5610 SMARTD_SUFFIX_FALSE
=
5615 # Check whether --with-os-deps was given.
5616 if test "${with_os_deps+set}" = set; then :
5617 withval
=$with_os_deps; for x
in $with_os_deps; do
5620 *) as_fn_error
"non-object file specified by --with-os-deps" "$LINENO" 5 ;;
5628 # Check whether --with-selinux was given.
5629 if test "${with_selinux+set}" = set; then :
5630 withval
=$with_selinux;
5631 for ac_header
in selinux
/selinux.h
5633 ac_fn_cxx_check_header_mongrel
"$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default"
5634 if test "x$ac_cv_header_selinux_selinux_h" = x
""yes; then :
5635 cat >>confdefs.h
<<_ACEOF
5636 #define HAVE_SELINUX_SELINUX_H 1
5640 echo "*** Error: Missing SELinux header files";exit 1
5645 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for matchpathcon in -lselinux" >&5
5646 $as_echo_n "checking for matchpathcon in -lselinux... " >&6; }
5647 if test "${ac_cv_lib_selinux_matchpathcon+set}" = set; then :
5648 $as_echo_n "(cached) " >&6
5650 ac_check_lib_save_LIBS
=$LIBS
5651 LIBS
="-lselinux $LIBS"
5652 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5653 /* end confdefs.h. */
5655 /* Override any GCC internal prototype to avoid an error.
5656 Use char because int might match the return type of a GCC
5657 builtin and then its argument prototype would still apply. */
5661 char matchpathcon ();
5665 return matchpathcon ();
5670 if ac_fn_cxx_try_link
"$LINENO"; then :
5671 ac_cv_lib_selinux_matchpathcon
=yes
5673 ac_cv_lib_selinux_matchpathcon
=no
5675 rm -f core conftest.err conftest.
$ac_objext \
5676 conftest
$ac_exeext conftest.
$ac_ext
5677 LIBS
=$ac_check_lib_save_LIBS
5679 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_matchpathcon" >&5
5680 $as_echo "$ac_cv_lib_selinux_matchpathcon" >&6; }
5681 if test "x$ac_cv_lib_selinux_matchpathcon" = x
""yes; then :
5684 echo "*** Error: Missing or incorrect SELinux library files"; exit 1
5691 if test "$with_selinux" = "yes"; then
5693 $as_echo "#define WITH_SELINUX 1" >>confdefs.h
5697 if test "$prefix" = "NONE"; then
5698 if test "$mandir" = '${prefix}/man'; then
5699 mandir
='${prefix}/share/man'
5704 releaseversion
='${PACKAGE}-${VERSION}'
5709 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for OS dependent modules and libraries" >&5
5710 $as_echo_n "checking for OS dependent modules and libraries... " >&6; }
5713 os_deps
='os_linux.o cciss.o'
5715 if test "$with_selinux" = "yes"; then
5722 *-*-freebsd*|
*-*-dragonfly*|
*-*-kfreebsd*-gnu*)
5723 os_deps
='os_freebsd.o cciss.o'
5727 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libusb20_dev_get_device_desc in -lusb" >&5
5728 $as_echo_n "checking for libusb20_dev_get_device_desc in -lusb... " >&6; }
5729 if test "${ac_cv_lib_usb_libusb20_dev_get_device_desc+set}" = set; then :
5730 $as_echo_n "(cached) " >&6
5732 ac_check_lib_save_LIBS
=$LIBS
5734 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5735 /* end confdefs.h. */
5737 /* Override any GCC internal prototype to avoid an error.
5738 Use char because int might match the return type of a GCC
5739 builtin and then its argument prototype would still apply. */
5743 char libusb20_dev_get_device_desc ();
5747 return libusb20_dev_get_device_desc ();
5752 if ac_fn_cxx_try_link
"$LINENO"; then :
5753 ac_cv_lib_usb_libusb20_dev_get_device_desc
=yes
5755 ac_cv_lib_usb_libusb20_dev_get_device_desc
=no
5757 rm -f core conftest.err conftest.
$ac_objext \
5758 conftest
$ac_exeext conftest.
$ac_ext
5759 LIBS
=$ac_check_lib_save_LIBS
5761 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_libusb20_dev_get_device_desc" >&5
5762 $as_echo "$ac_cv_lib_usb_libusb20_dev_get_device_desc" >&6; }
5763 if test "x$ac_cv_lib_usb_libusb20_dev_get_device_desc" = x
""yes; then :
5764 cat >>confdefs.h
<<_ACEOF
5765 #define HAVE_LIBUSB 1
5775 cat >>confdefs.h
<<_ACEOF
5776 #define DEFAULT_MAILER "mailx"
5780 cat >>confdefs.h
<<_ACEOF
5781 #define NEED_SOLARIS_ATA_CODE "os_solaris_ata.s"
5784 os_deps
='os_solaris.o os_solaris_ata.o'
5790 cat >>confdefs.h
<<_ACEOF
5791 #define DEFAULT_MAILER "mailx"
5794 os_deps
='os_solaris.o'
5799 os_deps
='os_netbsd.o'
5804 os_deps
='os_openbsd.o'
5809 os_deps
='os_win32.o'
5814 os_deps
='os_win32.o'
5819 os_deps
='os_darwin.o'
5821 os_libs
='-framework CoreFoundation -framework IOKit'
5824 os_deps
='os_qnxnto.o'
5830 os_deps
='os_generic.o'
5836 # Replace if '--with-os-deps' was specified
5837 test -z "$with_os_deps" || os_deps
="$with_os_deps"
5838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $os_deps $os_libs" >&5
5839 $as_echo "$os_deps $os_libs" >&6; }
5841 # Define symbols for optional functions in OS specific module
5842 case "${os_deps}" in
5845 $as_echo "#define HAVE_ATA_IDENTIFY_IS_CACHED 1" >>confdefs.h
5848 case "${os_deps}" in
5851 $as_echo "#define HAVE_GET_OS_VERSION_STR 1" >>confdefs.h
5855 # Check if we need adapter to old interface (dev_legacy.cpp)
5856 os_src
=`echo "${os_deps}"|sed -n 's,^\([^ .]*\)\.o.*$,\1.cpp,p'`
5857 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${os_src} uses new interface" >&5
5858 $as_echo_n "checking whether ${os_src} uses new interface... " >&6; }
5859 if grep "smart_interface" "${srcdir}/${os_src}" >/dev
/null
2>&1; then
5860 os_new_interface
=yes
5863 os_deps
="${os_deps} dev_legacy.o"
5865 $as_echo "#define OLD_INTERFACE 1" >>confdefs.h
5868 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $os_new_interface" >&5
5869 $as_echo "$os_new_interface" >&6; }
5871 if echo $host_os |
grep '^darwin' > /dev
/null
; then
5879 if echo $host_os |
grep '^solaris' > /dev
/null
; then
5881 OS_SOLARIS_FALSE
='#'
5887 if echo $host_os |
grep '^mingw' > /dev
/null
; then
5888 OS_WIN32_MINGW_TRUE
=
5889 OS_WIN32_MINGW_FALSE
='#'
5891 OS_WIN32_MINGW_TRUE
='#'
5892 OS_WIN32_MINGW_FALSE
=
5895 if echo $host_os |
grep '^freebsd' > /dev
/null
; then
5897 OS_FREEBSD_FALSE
='#'
5904 if test "$GXX" = "yes"; then
5905 if test -z "`echo "$CXXFLAGS" | grep "\
-Wall" 2> /dev/null`" ; then
5906 CXXFLAGS
="$CXXFLAGS -Wall"
5908 # In the next line, do NOT delete the 2 spaces inside double quotes.
5909 if test -z "`echo "$CXXFLAGS " | grep "\
-W " 2> /dev/null`" ; then
5910 CXXFLAGS
="$CXXFLAGS -W"
5914 # MinGW uses MSVCRT.DLL which uses printf format "%I64d" and not "%lld" for int64_t
5915 CXXFLAGS
="$CXXFLAGS -Wno-format";;
5918 # Disable strict aliasing rules by default (see ticket #23).
5919 if test -z "`echo "$CXXFLAGS" | grep "\
-f[no-
]*strict-aliasing
" 2> /dev/null`" ; then
5920 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether g++ supports -fno-strict-aliasing" >&5
5921 $as_echo_n "checking whether g++ supports -fno-strict-aliasing... " >&6; }
5922 ac_save_CXXFLAGS
="$CXXFLAGS"
5923 CXXFLAGS
="-fno-strict-aliasing"
5924 cat confdefs.h
- <<_ACEOF >conftest.$ac_ext
5925 /* end confdefs.h. */
5935 if ac_fn_cxx_try_compile
"$LINENO"; then :
5936 gcc_have_fno_strict_aliasing
=yes
5938 gcc_have_fno_strict_aliasing
=no
5940 rm -f core conftest.err conftest.
$ac_objext conftest.
$ac_ext
5941 CXXFLAGS
="$ac_save_CXXFLAGS"
5942 if test "$gcc_have_fno_strict_aliasing" = "yes"; then
5943 CXXFLAGS
="$CXXFLAGS -fno-strict-aliasing"
5945 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_have_fno_strict_aliasing" >&5
5946 $as_echo "$gcc_have_fno_strict_aliasing" >&6; }
5952 if test -z "`echo "$CXXFLAGS" | grep "\
-xmemalign" 2> /dev/null`" ; then
5953 CXXFLAGS
="-xmemalign=1i $CXXFLAGS"
5958 if test -z "`echo "$CXXFLAGS" | grep "\
-xO" 2> /dev/null`" ; then
5959 CXXFLAGS
="-xO2 $CXXFLAGS"
5961 if test -z "`echo "$CXXFLAGS" | grep "\
-erroff" 2> /dev/null`" ; then
5962 CXXFLAGS
="-erroff=%none,wbadinitl,wbadasgl,badargtypel2w,badargtype2w $CXXFLAGS"
5968 cat >>confdefs.h
<<_ACEOF
5969 #define SMARTMONTOOLS_BUILD_HOST "${host}"
5975 ac_config_files
="$ac_config_files Makefile examplescripts/Makefile"
5977 cat >confcache
<<\_ACEOF
5978 # This file is a shell script that caches the results of configure
5979 # tests run on this system so they can be shared between configure
5980 # scripts and configure runs, see configure's option --config-cache.
5981 # It is not useful on other systems. If it contains results you don't
5982 # want to keep, you may remove or edit it.
5984 # config.status only pays attention to the cache file if you give it
5985 # the --recheck option to rerun configure.
5987 # `ac_cv_env_foo' variables (set or unset) will be overridden when
5988 # loading this file, other *unset* `ac_cv_foo' will be assigned the
5993 # The following way of writing the cache mishandles newlines in values,
5994 # but we know of no workaround that is simple, portable, and efficient.
5995 # So, we kill variables containing newlines.
5996 # Ultrix sh set writes to stderr and can't be redirected directly,
5997 # and sets the high bit in the cache file unless we assign to the vars.
5999 for ac_var
in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
6000 eval ac_val
=\$
$ac_var
6004 *_cv_
*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
6005 $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
6008 _ | IFS | as_nl
) ;; #(
6009 BASH_ARGV | BASH_SOURCE
) eval $ac_var= ;; #(
6010 *) { eval $ac_var=; unset $ac_var;} ;;
6016 case $as_nl`(ac_space=' '; set) 2>&1` in #(
6017 *${as_nl}ac_space
=\
*)
6018 # `set' does not quote correctly, so add quotes: double-quote
6019 # substitution turns \\\\ into \\, and sed turns \\ into \.
6022 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
6025 # `set' quotes correctly as required by POSIX, so do not add quotes.
6026 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
6035 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
6037 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
6039 if diff "$cache_file" confcache
>/dev
/null
2>&1; then :; else
6040 if test -w "$cache_file"; then
6041 test "x$cache_file" != "x/dev/null" &&
6042 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
6043 $as_echo "$as_me: updating cache $cache_file" >&6;}
6044 cat confcache
>$cache_file
6046 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
6047 $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
6052 test "x$prefix" = xNONE
&& prefix
=$ac_default_prefix
6053 # Let make expand exec_prefix.
6054 test "x$exec_prefix" = xNONE
&& exec_prefix
='${prefix}'
6056 DEFS
=-DHAVE_CONFIG_H
6060 for ac_i
in : $LIBOBJS; do test "x$ac_i" = x
: && continue
6061 # 1. Remove the extension, and $U if already installed.
6062 ac_script
='s/\$U\././;s/\.o$//;s/\.obj$//'
6063 ac_i
=`$as_echo "$ac_i" | sed "$ac_script"`
6064 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
6065 # will be set to the directory where LIBOBJS objects are built.
6066 as_fn_append ac_libobjs
" \${LIBOBJDIR}$ac_i\$U.$ac_objext"
6067 as_fn_append ac_ltlibobjs
" \${LIBOBJDIR}$ac_i"'$U.lo'
6071 LTLIBOBJS
=$ac_ltlibobjs
6074 if test -n "$EXEEXT"; then
6076 am__EXEEXT_FALSE
='#'
6082 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
6083 as_fn_error
"conditional \"MAINTAINER_MODE\" was never defined.
6084 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6086 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
6087 as_fn_error
"conditional \"AMDEP\" was never defined.
6088 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6090 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
6091 as_fn_error
"conditional \"am__fastdepCXX\" was never defined.
6092 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6094 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
6095 as_fn_error
"conditional \"am__fastdepCC\" was never defined.
6096 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6098 if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
6099 as_fn_error
"conditional \"am__fastdepCCAS\" was never defined.
6100 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6102 if test -z "${IS_SVN_BUILD_TRUE}" && test -z "${IS_SVN_BUILD_FALSE}"; then
6103 as_fn_error
"conditional \"IS_SVN_BUILD\" was never defined.
6104 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6106 if test -z "${INSTALL_INITSCRIPT_TRUE}" && test -z "${INSTALL_INITSCRIPT_FALSE}"; then
6107 as_fn_error
"conditional \"INSTALL_INITSCRIPT\" was never defined.
6108 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6110 if test -z "${ENABLE_DRIVEDB_TRUE}" && test -z "${ENABLE_DRIVEDB_FALSE}"; then
6111 as_fn_error
"conditional \"ENABLE_DRIVEDB\" was never defined.
6112 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6114 if test -z "${ENABLE_SAVESTATES_TRUE}" && test -z "${ENABLE_SAVESTATES_FALSE}"; then
6115 as_fn_error
"conditional \"ENABLE_SAVESTATES\" was never defined.
6116 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6118 if test -z "${ENABLE_ATTRIBUTELOG_TRUE}" && test -z "${ENABLE_ATTRIBUTELOG_FALSE}"; then
6119 as_fn_error
"conditional \"ENABLE_ATTRIBUTELOG\" was never defined.
6120 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6122 if test -z "${SMARTD_SUFFIX_TRUE}" && test -z "${SMARTD_SUFFIX_FALSE}"; then
6123 as_fn_error
"conditional \"SMARTD_SUFFIX\" was never defined.
6124 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6126 if test -z "${OS_DARWIN_TRUE}" && test -z "${OS_DARWIN_FALSE}"; then
6127 as_fn_error
"conditional \"OS_DARWIN\" was never defined.
6128 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6130 if test -z "${OS_SOLARIS_TRUE}" && test -z "${OS_SOLARIS_FALSE}"; then
6131 as_fn_error
"conditional \"OS_SOLARIS\" was never defined.
6132 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6134 if test -z "${OS_WIN32_MINGW_TRUE}" && test -z "${OS_WIN32_MINGW_FALSE}"; then
6135 as_fn_error
"conditional \"OS_WIN32_MINGW\" was never defined.
6136 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6138 if test -z "${OS_FREEBSD_TRUE}" && test -z "${OS_FREEBSD_FALSE}"; then
6139 as_fn_error
"conditional \"OS_FREEBSD\" was never defined.
6140 Usually this means the macro was only invoked conditionally." "$LINENO" 5
6143 : ${CONFIG_STATUS=./config.status}
6145 ac_clean_files_save
=$ac_clean_files
6146 ac_clean_files
="$ac_clean_files $CONFIG_STATUS"
6147 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
6148 $as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
6150 cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
6152 # Generated by $as_me.
6153 # Run this file to recreate the current configuration.
6154 # Compiler output produced by configure, useful for debugging
6155 # configure, is in config.log if it exists.
6161 SHELL=\${CONFIG_SHELL-$SHELL}
6164 cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail
=1
6165 ## -------------------- ##
6166 ## M4sh Initialization. ##
6167 ## -------------------- ##
6169 # Be more Bourne compatible
6170 DUALCASE
=1; export DUALCASE
# for MKS sh
6171 if test -n "${ZSH_VERSION+set}" && (emulate sh
) >/dev
/null
2>&1; then :
6174 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
6175 # is contrary to our usage. Disable this feature.
6176 alias -g '${1+"$@"}'='"$@"'
6177 setopt NO_GLOB_SUBST
6179 case `(set -o) 2>/dev/null` in #(
6191 # Printing a long string crashes Solaris 7 /usr/bin/printf.
6192 as_echo
='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
6193 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
6194 as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
6195 # Prefer a ksh shell builtin over an external printf program on Solaris,
6196 # but without wasting forks for bash or zsh.
6197 if test -z "$BASH_VERSION$ZSH_VERSION" \
6198 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
6199 as_echo='print
-r --'
6200 as_echo_n='print
-rn --'
6201 elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
6202 as_echo='printf %s
\n'
6203 as_echo_n='printf %s
'
6205 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
6206 as_echo_body='eval /usr
/ucb
/echo -n "$1$as_nl"'
6207 as_echo_n='/usr
/ucb
/echo -n'
6209 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
6210 as_echo_n_body='eval
6214 expr "X$arg" : "X\\(.*\\)$as_nl";
6215 arg
=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
6217 expr "X$arg" : "X\\(.*\\)" |
tr -d "$as_nl"
6219 export as_echo_n_body
6220 as_echo_n='sh
-c $as_echo_n_body as_echo
'
6223 as_echo='sh
-c $as_echo_body as_echo
'
6226 # The user is always right.
6227 if test "${PATH_SEPARATOR+set}" != set; then
6229 (PATH='/bin
;/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
6230 (PATH='/bin
:/bin
'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
6237 # We need space, tab and new line, in precisely that order. Quoting is
6238 # there to prevent editors from complaining about space-tab.
6239 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
6240 # splitting by setting IFS to empty value.)
6243 # Find who we are. Look in the path if we contain no directory separator.
6245 *[\\/]* ) as_myself=$0 ;;
6246 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
6250 test -z "$as_dir" && as_dir=.
6251 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
6257 # We did not find ourselves, most probably we were run as `sh COMMAND'
6258 # in which case we are not to be found in the path.
6259 if test "x$as_myself" = x
; then
6262 if test ! -f "$as_myself"; then
6263 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
6267 # Unset variables that we do not need and which cause bugs (e.g. in
6268 # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
6269 # suppresses any "Segmentation fault" message there. '((' could
6270 # trigger a bug in pdksh 5.2.14.
6271 for as_var
in BASH_ENV ENV MAIL MAILPATH
6272 do eval test x\
${$as_var+set} = xset \
6273 && ( (unset $as_var) ||
exit 1) >/dev
/null
2>&1 && unset $as_var ||
:
6286 (unset CDPATH
) >/dev
/null
2>&1 && unset CDPATH
6289 # as_fn_error ERROR [LINENO LOG_FD]
6290 # ---------------------------------
6291 # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
6292 # provided, also output the error to LOG_FD, referencing LINENO. Then exit the
6293 # script with status $?, using 1 if that was 0.
6296 as_status
=$?
; test $as_status -eq 0 && as_status
=1
6298 as_lineno
=${as_lineno-"$2"} as_lineno_stack
=as_lineno_stack
=$as_lineno_stack
6299 $as_echo "$as_me:${as_lineno-$LINENO}: error: $1" >&$3
6301 $as_echo "$as_me: error: $1" >&2
6302 as_fn_exit
$as_status
6306 # as_fn_set_status STATUS
6307 # -----------------------
6308 # Set $? to STATUS, without forking.
6312 } # as_fn_set_status
6316 # Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
6326 # Portably unset VAR.
6329 { eval $1=; unset $1;}
6331 as_unset
=as_fn_unset
6332 # as_fn_append VAR VALUE
6333 # ----------------------
6334 # Append the text in VALUE to the end of the definition contained in VAR. Take
6335 # advantage of any shell optimizations that allow amortized linear growth over
6336 # repeated appends, instead of the typical quadratic growth present in naive
6338 if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev
/null
; then :
6339 eval 'as_fn_append ()
6350 # as_fn_arith ARG...
6351 # ------------------
6352 # Perform arithmetic evaluation on the ARGs, and store the result in the
6353 # global $as_val. Take advantage of shells that can avoid forks. The arguments
6354 # must be portable across $(()) and expr.
6355 if (eval "test \$(( 1 + 1 )) = 2") 2>/dev
/null
; then :
6356 eval 'as_fn_arith ()
6363 as_val
=`expr "$@" || test $? -eq 1`
6368 if expr a
: '\(a\)' >/dev
/null
2>&1 &&
6369 test "X`expr 00001 : '.*\(...\)'`" = X001
; then
6375 if (basename -- /) >/dev
/null
2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
6376 as_basename
=basename
6381 if (as_dir
=`dirname -- /` && test "X$as_dir" = X
/) >/dev
/null
2>&1; then
6387 as_me
=`$as_basename -- "$0" ||
6388 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
6389 X"$0" : 'X\(//\)$' \| \
6390 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
6392 sed '/^.*\/\([^/][^/]*\)\/*$/{
6406 # Avoid depending upon Character Ranges.
6407 as_cr_letters
='abcdefghijklmnopqrstuvwxyz'
6408 as_cr_LETTERS
='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
6409 as_cr_Letters
=$as_cr_letters$as_cr_LETTERS
6410 as_cr_digits
='0123456789'
6411 as_cr_alnum
=$as_cr_Letters$as_cr_digits
6413 ECHO_C
= ECHO_N
= ECHO_T
=
6414 case `echo -n x` in #(((((
6416 case `echo 'xy\c'` in
6417 *c
*) ECHO_T
=' ';; # ECHO_T is single tab character.
6419 *) echo `echo ksh88 bug on AIX 6.1` > /dev
/null
6426 rm -f conf$$ conf$$.exe conf$$.
file
6427 if test -d conf$$.dir
; then
6428 rm -f conf$$.dir
/conf$$.
file
6431 mkdir conf$$.dir
2>/dev
/null
6433 if (echo >conf$$.
file) 2>/dev
/null
; then
6434 if ln -s conf$$.
file conf$$
2>/dev
/null
; then
6436 # ... but there are two gotchas:
6437 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
6438 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
6439 # In both cases, we have to default to `cp -p'.
6440 ln -s conf$$.
file conf$$.dir
2>/dev
/null
&& test ! -f conf$$.exe ||
6442 elif ln conf$$.
file conf$$
2>/dev
/null
; then
6450 rm -f conf$$ conf$$.exe conf$$.dir
/conf$$.
file conf$$.
file
6451 rmdir conf$$.dir
2>/dev
/null
6456 # Create "$as_dir" as a directory, including parents if necessary.
6461 -*) as_dir
=.
/$as_dir;;
6463 test -d "$as_dir" ||
eval $as_mkdir_p ||
{
6467 *\'*) as_qdir
=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
6468 *) as_qdir
=$as_dir;;
6470 as_dirs
="'$as_qdir' $as_dirs"
6471 as_dir
=`$as_dirname -- "$as_dir" ||
6472 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
6473 X"$as_dir" : 'X\(//\)[^/]' \| \
6474 X"$as_dir" : 'X\(//\)$' \| \
6475 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
6476 $as_echo X"$as_dir" |
6477 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
6494 test -d "$as_dir" && break
6496 test -z "$as_dirs" ||
eval "mkdir $as_dirs"
6497 } ||
test -d "$as_dir" || as_fn_error
"cannot create directory $as_dir"
6501 if mkdir
-p .
2>/dev
/null
; then
6502 as_mkdir_p
='mkdir -p "$as_dir"'
6504 test -d .
/-p && rmdir .
/-p
6508 if test -x / >/dev
/null
2>&1; then
6511 if ls -dL / >/dev
/null
2>&1; then
6518 if test -d "$1"; then
6524 case `ls -ld'$as_ls_L_option' "$1" 2>/dev/null` in #((
6525 ???[sx]*):;;*)false;;esac;fi
6529 as_executable_p
=$as_test_x
6531 # Sed expression to map a string onto a valid CPP name.
6532 as_tr_cpp
="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
6534 # Sed expression to map a string onto a valid variable name.
6535 as_tr_sh
="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
6539 ## ----------------------------------- ##
6540 ## Main body of $CONFIG_STATUS script. ##
6541 ## ----------------------------------- ##
6543 test $as_write_fail = 0 && chmod +x
$CONFIG_STATUS || ac_write_fail
=1
6545 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6546 # Save the log message, to keep $0 and so on meaningful, and to
6547 # report actual input values of CONFIG_FILES etc. instead of their
6548 # values after options handling.
6550 This file was extended by smartmontools $as_me 5.39.1, which was
6551 generated by GNU Autoconf 2.65. Invocation command line was
6553 CONFIG_FILES = $CONFIG_FILES
6554 CONFIG_HEADERS = $CONFIG_HEADERS
6555 CONFIG_LINKS = $CONFIG_LINKS
6556 CONFIG_COMMANDS = $CONFIG_COMMANDS
6559 on `(hostname || uname -n) 2>/dev/null | sed 1q`
6564 case $ac_config_files in *"
6565 "*) set x
$ac_config_files; shift; ac_config_files
=$
*;;
6568 case $ac_config_headers in *"
6569 "*) set x
$ac_config_headers; shift; ac_config_headers
=$
*;;
6573 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6574 # Files that config.status was made for.
6575 config_files="$ac_config_files"
6576 config_headers="$ac_config_headers"
6577 config_commands="$ac_config_commands"
6581 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6583 \`$as_me' instantiates files and other configuration actions
6584 from templates according to the current configuration. Unless the files
6585 and actions are specified as TAGs, all are instantiated by default.
6587 Usage: $0 [OPTION]... [TAG]...
6589 -h, --help print this help, then exit
6590 -V, --version print version number and configuration settings, then exit
6591 --config print configuration, then exit
6592 -q, --quiet, --silent
6593 do not print progress messages
6594 -d, --debug don't remove temporary files
6595 --recheck update $as_me by reconfiguring in the same conditions
6596 --file=FILE[:TEMPLATE]
6597 instantiate the configuration file FILE
6598 --header=FILE[:TEMPLATE]
6599 instantiate the configuration header FILE
6601 Configuration files:
6604 Configuration headers:
6607 Configuration commands:
6610 Report bugs to <smartmontools-support@lists.sourceforge.net>."
6613 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6614 ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
6616 smartmontools config.status 5.39.1
6617 configured by $0, generated by GNU Autoconf 2.65,
6618 with options \\"\$ac_cs_config\\"
6620 Copyright (C) 2009 Free Software Foundation, Inc.
6621 This config.status script is free software; the Free Software Foundation
6622 gives unlimited permission to copy, distribute and modify it."
6629 test -n "\$AWK" || AWK=awk
6632 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6633 # The default lists apply if the user does not specify any file.
6639 ac_option
=`expr "X$1" : 'X\([^=]*\)='`
6640 ac_optarg
=`expr "X$1" : 'X[^=]*=\(.*\)'`
6651 # Handling of the options.
6652 -recheck |
--recheck |
--rechec |
--reche |
--rech |
--rec |
--re |
--r)
6654 --version |
--versio |
--versi |
--vers |
--ver |
--ve |
--v |
-V )
6655 $as_echo "$ac_cs_version"; exit ;;
6656 --config |
--confi |
--conf |
--con |
--co |
--c )
6657 $as_echo "$ac_cs_config"; exit ;;
6658 --debug |
--debu |
--deb |
--de |
--d |
-d )
6660 --file |
--fil |
--fi |
--f )
6663 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6665 as_fn_append CONFIG_FILES
" '$ac_optarg'"
6666 ac_need_defaults
=false
;;
6667 --header |
--heade |
--head |
--hea )
6670 *\'*) ac_optarg
=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
6672 as_fn_append CONFIG_HEADERS
" '$ac_optarg'"
6673 ac_need_defaults
=false
;;
6675 # Conflict between --help and --header
6676 as_fn_error
"ambiguous option: \`$1'
6677 Try \`$0 --help' for more information.";;
6678 --help |
--hel |
-h )
6679 $as_echo "$ac_cs_usage"; exit ;;
6680 -q |
-quiet |
--quiet |
--quie |
--qui |
--qu |
--q \
6681 |
-silent |
--silent |
--silen |
--sile |
--sil |
--si |
--s)
6685 -*) as_fn_error
"unrecognized option: \`$1'
6686 Try \`$0 --help' for more information." ;;
6688 *) as_fn_append ac_config_targets
" $1"
6689 ac_need_defaults
=false
;;
6695 ac_configure_extra_args
=
6697 if $ac_cs_silent; then
6699 ac_configure_extra_args
="$ac_configure_extra_args --silent"
6703 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6704 if \$ac_cs_recheck; then
6705 set X '$SHELL' '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
6707 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
6708 CONFIG_SHELL='$SHELL'
6714 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6718 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
6719 ## Running $as_me. ##
6725 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6729 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
6733 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
6735 # Handling of arguments.
6736 for ac_config_target
in $ac_config_targets
6738 case $ac_config_target in
6739 "config.h") CONFIG_HEADERS
="$CONFIG_HEADERS config.h" ;;
6740 "depfiles") CONFIG_COMMANDS
="$CONFIG_COMMANDS depfiles" ;;
6741 "Makefile") CONFIG_FILES
="$CONFIG_FILES Makefile" ;;
6742 "examplescripts/Makefile") CONFIG_FILES
="$CONFIG_FILES examplescripts/Makefile" ;;
6744 *) as_fn_error
"invalid argument: \`$ac_config_target'" "$LINENO" 5;;
6749 # If the user did not use the arguments to specify the items to instantiate,
6750 # then the envvar interface is used. Set only those that are not.
6751 # We use the long form for the default assignment because of an extremely
6752 # bizarre bug on SunOS 4.1.3.
6753 if $ac_need_defaults; then
6754 test "${CONFIG_FILES+set}" = set || CONFIG_FILES
=$config_files
6755 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS
=$config_headers
6756 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS
=$config_commands
6759 # Have a temporary directory for convenience. Make it in the build tree
6760 # simply because there is no reason against having it here, and in addition,
6761 # creating and moving files from /tmp can sometimes cause problems.
6762 # Hook for its removal unless debugging.
6763 # Note that there is a small window in which the directory will not be cleaned:
6764 # after its creation but before its name has been assigned to `$tmp'.
6768 trap 'exit_status=$?
6769 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
6771 trap 'as_fn_exit 1' 1 2 13 15
6773 # Create a (secure) tmp directory for tmp files.
6776 tmp
=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
6777 test -n "$tmp" && test -d "$tmp"
6780 tmp
=.
/conf$$
-$RANDOM
6781 (umask 077 && mkdir
"$tmp")
6782 } || as_fn_error
"cannot create a temporary directory in ." "$LINENO" 5
6784 # Set up the scripts for CONFIG_FILES section.
6785 # No need to generate them if there are no CONFIG_FILES.
6786 # This happens for instance with `./config.status config.h'.
6787 if test -n "$CONFIG_FILES"; then
6790 ac_cr
=`echo X | tr X '\015'`
6791 # On cygwin, bash can eat \r inside `` if the user requested igncr.
6792 # But we know of no other shell where ac_cr would be empty at this
6793 # point, so we can use a bashism as a fallback.
6794 if test "x$ac_cr" = x
; then
6795 eval ac_cr
=\$
\'\\r
\'
6797 ac_cs_awk_cr
=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
6798 if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
6804 echo 'BEGIN {' >"$tmp/subs1.awk" &&
6809 echo "cat >conf$$subs.awk <<_ACEOF" &&
6810 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
6813 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
6814 ac_delim_num=`echo "$ac_subst_vars" | grep -c '$'`
6816 for ac_last_try in false false false false false :; do
6817 . ./conf$$subs.sh ||
6818 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
6820 ac_delim_n=`sed -n "s
/.
*$ac_delim\$
/X
/p
" conf$$subs.awk | grep -c X`
6821 if test $ac_delim_n = $ac_delim_num; then
6823 elif $ac_last_try; then
6824 as_fn_error "could not
make $CONFIG_STATUS" "$LINENO" 5
6826 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
6831 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6832 cat >>"\
$tmp/subs1.
awk" <<\\_ACAWK &&
6836 s/^/S["/; s
/!.
*/"]=/
6846 s/\(.\{148\}\)..*/\1/
6848 s/["\\]/\\&/g
; s
/^
/"/; s/$/\\n"\\/
6853 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
6860 s/\(.\{148\}\)..*/\1/
6862 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/
6866 s
/["\\]/\\&/g; s/^/"/; s
/$
/"\\/
6871 ' <conf$$subs.awk | sed '
6876 ' >>$CONFIG_STATUS || ac_write_fail=1
6877 rm -f conf$$subs.awk
6878 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
6880 cat >>"\
$tmp/subs1.
awk" <<_ACAWK &&
6881 for (key in S) S_is_set[key] = 1
6887 nfields = split(line, field, "@
")
6889 len = length(field[1])
6890 for (i = 2; i < nfields; i++) {
6892 keylen = length(key)
6893 if (S_is_set[key]) {
6895 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
6896 len += length(value) + length(field[++i])
6907 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6908 if sed "s
/$ac_cr//" < /dev/null > /dev/null 2>&1; then
6909 sed "s
/$ac_cr\$
//; s
/$ac_cr/$ac_cs_awk_cr/g
"
6912 fi < "$tmp/subs1.
awk" > "$tmp/subs.
awk" \
6913 || as_fn_error "could not setup config files machinery
" "$LINENO" 5
6916 # VPATH may cause trouble with some makes, so we remove $(srcdir),
6917 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".
", strip leading and
6918 # trailing colons and then remove the whole line if VPATH becomes empty
6919 # (actually we leave an empty line to preserve line numbers).
6920 if test "x
$srcdir" = x.; then
6921 ac_vpsub='/^[ ]*VPATH[ ]*=/{
6925 s/^\([^=]*=[ ]*\):*/\1/
6931 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
6932 fi # test -n "$CONFIG_FILES"
6934 # Set up the scripts for CONFIG_HEADERS section.
6935 # No need to generate them if there are no CONFIG_HEADERS.
6936 # This happens for instance with `./config.status Makefile'.
6937 if test -n "$CONFIG_HEADERS"; then
6938 cat >"$tmp/defines.
awk" <<\_ACAWK ||
6942 # Transform confdefs.h into an awk script `defines.awk', embedded as
6943 # here-document in config.status, that substitutes the proper values into
6944 # config.h.in to produce config.h.
6946 # Create a delimiter string that does not exist in confdefs.h, to ease
6947 # handling of long lines.
6949 for ac_last_try in false false :; do
6950 ac_t=`sed -n "/$ac_delim/p
" confdefs.h`
6951 if test -z "$ac_t"; then
6953 elif $ac_last_try; then
6954 as_fn_error "could not
make $CONFIG_HEADERS" "$LINENO" 5
6956 ac_delim="$ac_delim!$ac_delim _
$ac_delim!! "
6960 # For the awk script, D is an array of macro values keyed by name,
6961 # likewise P contains macro parameters if any. Preserve backslash
6962 # newline sequences.
6964 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
6966 s/.\{148\}/&'"$ac_delim"'/g
6969 s/^[ ]*#[ ]*define[ ][ ]*/ /
6976 s
/^ \
('"$ac_word_re"'\
)\
(([^
()]*)\
)[ ]*\
(.
*\
)/P
["\1"]="\2"\
6978 s
/^ \
('"$ac_word_re"'\
)[ ]*\
(.
*\
)/D
["\1"]=" \2"/p
6982 s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\
1"]="\
2"\
6983 D["\
1"]=" \
3\\\\\\n
"\\/p
6985 s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\
1"]=" \
2\\\\\\n
"\\/p
6990 s/.\{148\}/&'"$ac_delim"'/g
6995 s/["\\]/\\&/g
; s
/^
/"/; s/$/"/p
6998 s
/["\\]/\\&/g; s/^/"/; s
/$
/\\\\\\n
"\\/p
7000 ' <confdefs.h | sed '
7001 s/'"$ac_delim"'/"\\\
7002 "/g' >>$CONFIG_STATUS || ac_write_fail=1
7004 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7005 for (key in D) D_is_set[key] = 1
7008 /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
7010 split(line, arg, " ")
7011 if (arg[1] == "#") {
7015 defundef
= substr
(arg
[1], 2)
7018 split(mac1
, mac2
, "(") #)
7020 prefix
= substr
(line
, 1, index
(line
, defundef
) - 1)
7021 if (D_is_set
[macro
]) {
7022 # Preserve the white space surrounding the "#".
7023 print prefix
"define", macro P
[macro
] D
[macro
]
7026 # Replace #undef with comments. This is necessary, for example,
7027 # in the case of _POSIX_SOURCE, which is predefined and required
7028 # on some systems where configure will not decide to define it.
7029 if (defundef
== "undef") {
7030 print
"/*", prefix defundef
, macro
, "*/"
7038 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7039 as_fn_error
"could not setup config headers machinery" "$LINENO" 5
7040 fi # test -n "$CONFIG_HEADERS"
7043 eval set X
" :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
7048 :[FHLC
]) ac_mode
=$ac_tag; continue;;
7050 case $ac_mode$ac_tag in
7052 :L
* |
:C
*:*) as_fn_error
"invalid tag \`$ac_tag'" "$LINENO" 5;;
7053 :[FH
]-) ac_tag
=-:-;;
7054 :[FH
]*) ac_tag
=$ac_tag:$ac_tag.
in;;
7071 -) ac_f
="$tmp/stdin";;
7072 *) # Look for the file first in the build tree, then in the source tree
7073 # (if the path is not absolute). The absolute path cannot be DOS-style,
7074 # because $ac_f cannot contain `:'.
7078 *) test -f "$srcdir/$ac_f" && ac_f
="$srcdir/$ac_f";;
7080 as_fn_error
"cannot find input file: \`$ac_f'" "$LINENO" 5;;
7082 case $ac_f in *\'*) ac_f
=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
7083 as_fn_append ac_file_inputs
" '$ac_f'"
7086 # Let's still pretend it is `configure' which instantiates (i.e., don't
7087 # use $as_me), people would be surprised to read:
7088 # /* config.h. Generated by config.status. */
7089 configure_input
='Generated from '`
7090 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
7092 if test x
"$ac_file" != x-
; then
7093 configure_input
="$ac_file. $configure_input"
7094 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
7095 $as_echo "$as_me: creating $ac_file" >&6;}
7097 # Neutralize special characters interpreted by sed in replacement strings.
7098 case $configure_input in #(
7099 *\
&* |
*\|
* |
*\\* )
7100 ac_sed_conf_input
=`$as_echo "$configure_input" |
7101 sed 's/[\\\\&|]/\\\\&/g'`;; #(
7102 *) ac_sed_conf_input
=$configure_input;;
7106 *:-:* |
*:-) cat >"$tmp/stdin" \
7107 || as_fn_error
"could not create $ac_file" "$LINENO" 5 ;;
7112 ac_dir
=`$as_dirname -- "$ac_file" ||
7113 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7114 X"$ac_file" : 'X\(//\)[^/]' \| \
7115 X"$ac_file" : 'X\(//\)$' \| \
7116 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
7117 $as_echo X"$ac_file" |
7118 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7135 as_dir
="$ac_dir"; as_fn_mkdir_p
7139 .
) ac_dir_suffix
= ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
7141 ac_dir_suffix
=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
7142 # A ".." for each directory in $ac_dir_suffix.
7143 ac_top_builddir_sub
=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
7144 case $ac_top_builddir_sub in
7145 "") ac_top_builddir_sub
=. ac_top_build_prefix
= ;;
7146 *) ac_top_build_prefix
=$ac_top_builddir_sub/ ;;
7149 ac_abs_top_builddir
=$ac_pwd
7150 ac_abs_builddir
=$ac_pwd$ac_dir_suffix
7151 # for backward compatibility:
7152 ac_top_builddir
=$ac_top_build_prefix
7155 .
) # We are building in place.
7157 ac_top_srcdir
=$ac_top_builddir_sub
7158 ac_abs_top_srcdir
=$ac_pwd ;;
7159 [\\/]* | ?
:[\\/]* ) # Absolute name.
7160 ac_srcdir
=$srcdir$ac_dir_suffix;
7161 ac_top_srcdir
=$srcdir
7162 ac_abs_top_srcdir
=$srcdir ;;
7164 ac_srcdir
=$ac_top_build_prefix$srcdir$ac_dir_suffix
7165 ac_top_srcdir
=$ac_top_build_prefix$srcdir
7166 ac_abs_top_srcdir
=$ac_pwd/$srcdir ;;
7168 ac_abs_srcdir
=$ac_abs_top_srcdir$ac_dir_suffix
7178 [\\/$
]* | ?
:[\\/]* ) ac_INSTALL
=$INSTALL ;;
7179 *) ac_INSTALL
=$ac_top_build_prefix$INSTALL ;;
7183 [\\/$
]* | ?
:[\\/]* ) ;;
7184 */*) ac_MKDIR_P
=$ac_top_build_prefix$MKDIR_P ;;
7188 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7189 # If the template does not know about datarootdir, expand it.
7190 # FIXME: This hack should be removed a few years after 2.60.
7191 ac_datarootdir_hack
=; ac_datarootdir_seen
=
7202 case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
7203 *datarootdir
*) ac_datarootdir_seen
=yes;;
7204 *@datadir@
*|
*@docdir@
*|
*@infodir@
*|
*@localedir@
*|
*@mandir@
*)
7205 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
7206 $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
7208 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7209 ac_datarootdir_hack='
7210 s&@datadir@&$datadir&g
7211 s&@docdir@&$docdir&g
7212 s&@infodir@&$infodir&g
7213 s&@localedir@&$localedir&g
7214 s&@mandir@&$mandir&g
7215 s&\\\${datarootdir}&$datarootdir&g' ;;
7219 # Neutralize VPATH when `$srcdir' = `.'.
7220 # Shell code in configure.ac might set extrasub.
7221 # FIXME: do we really want to maintain this feature?
7222 cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7223 ac_sed_extra="$ac_vpsub
7226 cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail
=1
7228 /@
[a-zA-Z_
][a-zA-Z_0-9
]*@
/!b
7229 s|@configure_input@|
$ac_sed_conf_input|
;t t
7230 s
&@top_builddir@
&$ac_top_builddir_sub&;t t
7231 s
&@top_build_prefix@
&$ac_top_build_prefix&;t t
7232 s
&@srcdir@
&$ac_srcdir&;t t
7233 s
&@abs_srcdir@
&$ac_abs_srcdir&;t t
7234 s
&@top_srcdir@
&$ac_top_srcdir&;t t
7235 s
&@abs_top_srcdir@
&$ac_abs_top_srcdir&;t t
7236 s
&@builddir@
&$ac_builddir&;t t
7237 s
&@abs_builddir@
&$ac_abs_builddir&;t t
7238 s
&@abs_top_builddir@
&$ac_abs_top_builddir&;t t
7239 s
&@INSTALL@
&$ac_INSTALL&;t t
7240 s
&@MKDIR_P@
&$ac_MKDIR_P&;t t
7241 $ac_datarootdir_hack
7243 eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$tmp/subs.
awk" >$tmp/out \
7244 || as_fn_error "could not create
$ac_file" "$LINENO" 5
7246 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
7247 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out
"`; test -n "$ac_out"; } &&
7248 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out
"`; test -z "$ac_out"; } &&
7249 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING
: $ac_file contains a reference to the variable \
`datarootdir'
7250 which seems to be undefined. Please make sure it is defined." >&5
7251 $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir
'
7252 which seems to be undefined. Please make sure it is defined." >&2;}
7256 -) cat "$tmp/out" && rm -f "$tmp/out";;
7257 *) rm -f "$ac_file" && mv "$tmp/out" "$ac_file";;
7259 || as_fn_error "could not create $ac_file" "$LINENO" 5
7265 if test x"$ac_file" != x-; then
7267 $as_echo "/* $configure_input */" \
7268 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs"
7269 } >"$tmp/config.h" \
7270 || as_fn_error "could not create $ac_file" "$LINENO" 5
7271 if diff "$ac_file" "$tmp/config.h" >/dev/null 2>&1; then
7272 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
7273 $as_echo "$as_me: $ac_file is unchanged" >&6;}
7276 mv "$tmp/config.h" "$ac_file" \
7277 || as_fn_error "could not create $ac_file" "$LINENO" 5
7280 $as_echo "/* $configure_input */" \
7281 && eval '$AWK -f "$tmp/defines.awk"' "$ac_file_inputs" \
7282 || as_fn_error "could not create -" "$LINENO" 5
7284 # Compute "$ac_file"'s index
in $config_headers.
7287 for _am_header
in $config_headers :; do
7289 $_am_arg |
$_am_arg:* )
7292 _am_stamp_count
=`expr $_am_stamp_count + 1` ;;
7295 echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
7296 $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7297 X"$_am_arg" : 'X\(//\)[^/]' \| \
7298 X"$_am_arg" : 'X\(//\)$' \| \
7299 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
7300 $as_echo X"$_am_arg" |
7301 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7317 s/.*/./; q'`/stamp-h
$_am_stamp_count
7320 :C
) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
7321 $as_echo "$as_me: executing $ac_file commands" >&6;}
7326 case $ac_file$ac_mode in
7327 "depfiles":C
) test x
"$AMDEP_TRUE" != x
"" ||
{
7328 # Autoconf 2.62 quotes --file arguments for eval, but not when files
7329 # are listed without --file. Let's play safe and only enable the eval
7330 # if we detect the quoting.
7331 case $CONFIG_FILES in
7332 *\'*) eval set x
"$CONFIG_FILES" ;;
7333 *) set x
$CONFIG_FILES ;;
7338 # Strip MF so we end up with the name of the file.
7339 mf
=`echo "$mf" | sed -e 's/:.*$//'`
7340 # Check whether this is an Automake generated Makefile or not.
7341 # We used to match only the files named `Makefile.in', but
7342 # some people rename them; so instead we look at the file content.
7343 # Grep'ing the first line is not enough: some people post-process
7344 # each Makefile.in and add a new line on top of each file to say so.
7345 # Grep'ing the whole file is not good either: AIX grep has a line
7346 # limit of 2048, but all sed's we know have understand at least 4000.
7347 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" |
grep X
>/dev
/null
2>&1; then
7348 dirpart
=`$as_dirname -- "$mf" ||
7349 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7350 X"$mf" : 'X\(//\)[^/]' \| \
7351 X"$mf" : 'X\(//\)$' \| \
7352 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
7354 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7374 # Extract the definition of DEPDIR, am__include, and am__quote
7375 # from the Makefile without running `make'.
7376 DEPDIR
=`sed -n 's/^DEPDIR = //p' < "$mf"`
7377 test -z "$DEPDIR" && continue
7378 am__include
=`sed -n 's/^am__include = //p' < "$mf"`
7379 test -z "am__include" && continue
7380 am__quote
=`sed -n 's/^am__quote = //p' < "$mf"`
7381 # When using ansi2knr, U may be empty or an underscore; expand it
7382 U
=`sed -n 's/^U = //p' < "$mf"`
7383 # Find all dependency output files, they are included files with
7384 # $(DEPDIR) in their names. We invoke sed twice because it is the
7385 # simplest approach to changing $(DEPDIR) to its actual value in the
7387 for file in `sed -n "
7388 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
7389 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
7390 # Make sure the directory exists.
7391 test -f "$dirpart/$file" && continue
7392 fdir
=`$as_dirname -- "$file" ||
7393 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7394 X"$file" : 'X\(//\)[^/]' \| \
7395 X"$file" : 'X\(//\)$' \| \
7396 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
7398 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7415 as_dir
=$dirpart/$fdir; as_fn_mkdir_p
7416 # echo "creating $dirpart/$file"
7417 echo '# dummy' > "$dirpart/$file"
7429 ac_clean_files
=$ac_clean_files_save
7431 test $ac_write_fail = 0 ||
7432 as_fn_error
"write failure creating $CONFIG_STATUS" "$LINENO" 5
7435 # configure is writing to config.log, and then calls config.status.
7436 # config.status does its own redirection, appending to config.log.
7437 # Unfortunately, on DOS this fails, as config.log is still kept open
7438 # by configure, so config.status won't be able to write to it; its
7439 # output is simply discarded. So we exec the FD to /dev/null,
7440 # effectively closing config.log, so it can be properly (re)opened and
7441 # appended to by config.status. When coming back to configure, we
7442 # need to make the FD available again.
7443 if test "$no_create" != yes; then
7445 ac_config_status_args
=
7446 test "$silent" = yes &&
7447 ac_config_status_args
="$ac_config_status_args --quiet"
7449 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success
=false
7451 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
7452 # would make configure fail if this is the last instruction.
7453 $ac_cs_success || as_fn_exit $?
7455 if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no
; then
7456 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
7457 $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
7460 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
7461 $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
7463 ac_make
=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
7464 if { as_var
=ac_cv_prog_make_
${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then :
7465 $as_echo_n "(cached) " >&6
7467 cat >conftest.
make <<\_ACEOF
7470 @
echo '@@@%%%=$(MAKE)=@@@%%%'
7472 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
7473 case `${MAKE-make} -f conftest.make 2>/dev/null` in
7475 eval ac_cv_prog_make_
${ac_make}_set
=yes;;
7477 eval ac_cv_prog_make_
${ac_make}_set
=no
;;
7481 if eval test \
$ac_cv_prog_make_${ac_make}_set
= yes; then
7482 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
7483 $as_echo "yes" >&6; }
7486 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
7487 $as_echo "no" >&6; }
7488 SET_MAKE
="MAKE=${MAKE-make}"