]> git.proxmox.com Git - mirror_smartmontools-debian.git/blame - configure
New upstream version 6.6
[mirror_smartmontools-debian.git] / configure
CommitLineData
f9e10201
JD
1#! /bin/sh
2# Guess values for system-dependent variables and create Makefiles.
3# Generated by GNU Autoconf 2.69 for smartmontools 6.6.
4#
5# Report bugs to <smartmontools-support@listi.jpberlin.de>.
6#
7#
8# Copyright (C) 1992-1996, 1998-2012 Free Software Foundation, Inc.
9#
10#
11# This configure script is free software; the Free Software Foundation
12# gives unlimited permission to copy, distribute and modify it.
13## -------------------- ##
14## M4sh Initialization. ##
15## -------------------- ##
16
17# Be more Bourne compatible
18DUALCASE=1; export DUALCASE # for MKS sh
19if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
20 emulate sh
21 NULLCMD=:
22 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
23 # is contrary to our usage. Disable this feature.
24 alias -g '${1+"$@"}'='"$@"'
25 setopt NO_GLOB_SUBST
26else
27 case `(set -o) 2>/dev/null` in #(
28 *posix*) :
29 set -o posix ;; #(
30 *) :
31 ;;
32esac
33fi
34
35
36as_nl='
37'
38export as_nl
39# Printing a long string crashes Solaris 7 /usr/bin/printf.
40as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
41as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
42as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
43# Prefer a ksh shell builtin over an external printf program on Solaris,
44# but without wasting forks for bash or zsh.
45if test -z "$BASH_VERSION$ZSH_VERSION" \
46 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
47 as_echo='print -r --'
48 as_echo_n='print -rn --'
49elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
50 as_echo='printf %s\n'
51 as_echo_n='printf %s'
52else
53 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
54 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
55 as_echo_n='/usr/ucb/echo -n'
56 else
57 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
58 as_echo_n_body='eval
59 arg=$1;
60 case $arg in #(
61 *"$as_nl"*)
62 expr "X$arg" : "X\\(.*\\)$as_nl";
63 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
64 esac;
65 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
66 '
67 export as_echo_n_body
68 as_echo_n='sh -c $as_echo_n_body as_echo'
69 fi
70 export as_echo_body
71 as_echo='sh -c $as_echo_body as_echo'
72fi
73
74# The user is always right.
75if test "${PATH_SEPARATOR+set}" != set; then
76 PATH_SEPARATOR=:
77 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
78 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
79 PATH_SEPARATOR=';'
80 }
81fi
82
83
84# IFS
85# We need space, tab and new line, in precisely that order. Quoting is
86# there to prevent editors from complaining about space-tab.
87# (If _AS_PATH_WALK were called with IFS unset, it would disable word
88# splitting by setting IFS to empty value.)
89IFS=" "" $as_nl"
90
91# Find who we are. Look in the path if we contain no directory separator.
92as_myself=
93case $0 in #((
94 *[\\/]* ) as_myself=$0 ;;
95 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
96for as_dir in $PATH
97do
98 IFS=$as_save_IFS
99 test -z "$as_dir" && as_dir=.
100 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
101 done
102IFS=$as_save_IFS
103
104 ;;
105esac
106# We did not find ourselves, most probably we were run as `sh COMMAND'
107# in which case we are not to be found in the path.
108if test "x$as_myself" = x; then
109 as_myself=$0
110fi
111if test ! -f "$as_myself"; then
112 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
113 exit 1
114fi
115
116# Unset variables that we do not need and which cause bugs (e.g. in
117# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
118# suppresses any "Segmentation fault" message there. '((' could
119# trigger a bug in pdksh 5.2.14.
120for as_var in BASH_ENV ENV MAIL MAILPATH
121do eval test x\${$as_var+set} = xset \
122 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
123done
124PS1='$ '
125PS2='> '
126PS4='+ '
127
128# NLS nuisances.
129LC_ALL=C
130export LC_ALL
131LANGUAGE=C
132export LANGUAGE
133
134# CDPATH.
135(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
136
137# Use a proper internal environment variable to ensure we don't fall
138 # into an infinite loop, continuously re-executing ourselves.
139 if test x"${_as_can_reexec}" != xno && test "x$CONFIG_SHELL" != x; then
140 _as_can_reexec=no; export _as_can_reexec;
141 # We cannot yet assume a decent shell, so we have to provide a
142# neutralization value for shells without unset; and this also
143# works around shells that cannot unset nonexistent variables.
144# Preserve -v and -x to the replacement shell.
145BASH_ENV=/dev/null
146ENV=/dev/null
147(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
148case $- in # ((((
149 *v*x* | *x*v* ) as_opts=-vx ;;
150 *v* ) as_opts=-v ;;
151 *x* ) as_opts=-x ;;
152 * ) as_opts= ;;
153esac
154exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
155# Admittedly, this is quite paranoid, since all the known shells bail
156# out after a failed `exec'.
157$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
158as_fn_exit 255
159 fi
160 # We don't want this to propagate to other subprocesses.
161 { _as_can_reexec=; unset _as_can_reexec;}
162if test "x$CONFIG_SHELL" = x; then
163 as_bourne_compatible="if test -n \"\${ZSH_VERSION+set}\" && (emulate sh) >/dev/null 2>&1; then :
164 emulate sh
165 NULLCMD=:
166 # Pre-4.2 versions of Zsh do word splitting on \${1+\"\$@\"}, which
167 # is contrary to our usage. Disable this feature.
168 alias -g '\${1+\"\$@\"}'='\"\$@\"'
169 setopt NO_GLOB_SUBST
170else
171 case \`(set -o) 2>/dev/null\` in #(
172 *posix*) :
173 set -o posix ;; #(
174 *) :
175 ;;
176esac
177fi
178"
179 as_required="as_fn_return () { (exit \$1); }
180as_fn_success () { as_fn_return 0; }
181as_fn_failure () { as_fn_return 1; }
182as_fn_ret_success () { return 0; }
183as_fn_ret_failure () { return 1; }
184
185exitcode=0
186as_fn_success || { exitcode=1; echo as_fn_success failed.; }
187as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; }
188as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; }
189as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; }
190if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then :
191
192else
193 exitcode=1; echo positional parameters were not saved.
194fi
195test x\$exitcode = x0 || exit 1
196test -x / || exit 1"
197 as_suggested=" as_lineno_1=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_1a=\$LINENO
198 as_lineno_2=";as_suggested=$as_suggested$LINENO;as_suggested=$as_suggested" as_lineno_2a=\$LINENO
199 eval 'test \"x\$as_lineno_1'\$as_run'\" != \"x\$as_lineno_2'\$as_run'\" &&
200 test \"x\`expr \$as_lineno_1'\$as_run' + 1\`\" = \"x\$as_lineno_2'\$as_run'\"' || exit 1
201test \$(( 1 + 1 )) = 2 || exit 1"
202 if (eval "$as_required") 2>/dev/null; then :
203 as_have_required=yes
204else
205 as_have_required=no
206fi
207 if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then :
208
209else
210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
211as_found=false
212for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
213do
214 IFS=$as_save_IFS
215 test -z "$as_dir" && as_dir=.
216 as_found=:
217 case $as_dir in #(
218 /*)
219 for as_base in sh bash ksh sh5; do
220 # Try only shells that exist, to save several forks.
221 as_shell=$as_dir/$as_base
222 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
223 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$as_shell"; } 2>/dev/null; then :
224 CONFIG_SHELL=$as_shell as_have_required=yes
225 if { $as_echo "$as_bourne_compatible""$as_suggested" | as_run=a "$as_shell"; } 2>/dev/null; then :
226 break 2
227fi
228fi
229 done;;
230 esac
231 as_found=false
232done
233$as_found || { if { test -f "$SHELL" || test -f "$SHELL.exe"; } &&
234 { $as_echo "$as_bourne_compatible""$as_required" | as_run=a "$SHELL"; } 2>/dev/null; then :
235 CONFIG_SHELL=$SHELL as_have_required=yes
236fi; }
237IFS=$as_save_IFS
238
239
240 if test "x$CONFIG_SHELL" != x; then :
241 export CONFIG_SHELL
242 # We cannot yet assume a decent shell, so we have to provide a
243# neutralization value for shells without unset; and this also
244# works around shells that cannot unset nonexistent variables.
245# Preserve -v and -x to the replacement shell.
246BASH_ENV=/dev/null
247ENV=/dev/null
248(unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV
249case $- in # ((((
250 *v*x* | *x*v* ) as_opts=-vx ;;
251 *v* ) as_opts=-v ;;
252 *x* ) as_opts=-x ;;
253 * ) as_opts= ;;
254esac
255exec $CONFIG_SHELL $as_opts "$as_myself" ${1+"$@"}
256# Admittedly, this is quite paranoid, since all the known shells bail
257# out after a failed `exec'.
258$as_echo "$0: could not re-execute with $CONFIG_SHELL" >&2
259exit 255
260fi
261
262 if test x$as_have_required = xno; then :
263 $as_echo "$0: This script requires a shell more modern than all"
264 $as_echo "$0: the shells that I found on your system."
265 if test x${ZSH_VERSION+set} = xset ; then
266 $as_echo "$0: In particular, zsh $ZSH_VERSION has bugs and should"
267 $as_echo "$0: be upgraded to zsh 4.3.4 or later."
268 else
269 $as_echo "$0: Please tell bug-autoconf@gnu.org and
270$0: smartmontools-support@listi.jpberlin.de about your
271$0: system, including any error possibly output before this
272$0: message. Then install a modern shell, or manually run
273$0: the script under such a shell if you do have one."
274 fi
275 exit 1
276fi
277fi
278fi
279SHELL=${CONFIG_SHELL-/bin/sh}
280export SHELL
281# Unset more variables known to interfere with behavior of common tools.
282CLICOLOR_FORCE= GREP_OPTIONS=
283unset CLICOLOR_FORCE GREP_OPTIONS
284
285## --------------------- ##
286## M4sh Shell Functions. ##
287## --------------------- ##
288# as_fn_unset VAR
289# ---------------
290# Portably unset VAR.
291as_fn_unset ()
292{
293 { eval $1=; unset $1;}
294}
295as_unset=as_fn_unset
296
297# as_fn_set_status STATUS
298# -----------------------
299# Set $? to STATUS, without forking.
300as_fn_set_status ()
301{
302 return $1
303} # as_fn_set_status
304
305# as_fn_exit STATUS
306# -----------------
307# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
308as_fn_exit ()
309{
310 set +e
311 as_fn_set_status $1
312 exit $1
313} # as_fn_exit
314
315# as_fn_mkdir_p
316# -------------
317# Create "$as_dir" as a directory, including parents if necessary.
318as_fn_mkdir_p ()
319{
320
321 case $as_dir in #(
322 -*) as_dir=./$as_dir;;
323 esac
324 test -d "$as_dir" || eval $as_mkdir_p || {
325 as_dirs=
326 while :; do
327 case $as_dir in #(
328 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
329 *) as_qdir=$as_dir;;
330 esac
331 as_dirs="'$as_qdir' $as_dirs"
332 as_dir=`$as_dirname -- "$as_dir" ||
333$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
334 X"$as_dir" : 'X\(//\)[^/]' \| \
335 X"$as_dir" : 'X\(//\)$' \| \
336 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
337$as_echo X"$as_dir" |
338 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
339 s//\1/
340 q
341 }
342 /^X\(\/\/\)[^/].*/{
343 s//\1/
344 q
345 }
346 /^X\(\/\/\)$/{
347 s//\1/
348 q
349 }
350 /^X\(\/\).*/{
351 s//\1/
352 q
353 }
354 s/.*/./; q'`
355 test -d "$as_dir" && break
356 done
357 test -z "$as_dirs" || eval "mkdir $as_dirs"
358 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
359
360
361} # as_fn_mkdir_p
362
363# as_fn_executable_p FILE
364# -----------------------
365# Test if FILE is an executable regular file.
366as_fn_executable_p ()
367{
368 test -f "$1" && test -x "$1"
369} # as_fn_executable_p
370# as_fn_append VAR VALUE
371# ----------------------
372# Append the text in VALUE to the end of the definition contained in VAR. Take
373# advantage of any shell optimizations that allow amortized linear growth over
374# repeated appends, instead of the typical quadratic growth present in naive
375# implementations.
376if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
377 eval 'as_fn_append ()
378 {
379 eval $1+=\$2
380 }'
381else
382 as_fn_append ()
383 {
384 eval $1=\$$1\$2
385 }
386fi # as_fn_append
387
388# as_fn_arith ARG...
389# ------------------
390# Perform arithmetic evaluation on the ARGs, and store the result in the
391# global $as_val. Take advantage of shells that can avoid forks. The arguments
392# must be portable across $(()) and expr.
393if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
394 eval 'as_fn_arith ()
395 {
396 as_val=$(( $* ))
397 }'
398else
399 as_fn_arith ()
400 {
401 as_val=`expr "$@" || test $? -eq 1`
402 }
403fi # as_fn_arith
404
405
406# as_fn_error STATUS ERROR [LINENO LOG_FD]
407# ----------------------------------------
408# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
409# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
410# script with STATUS, using 1 if that was 0.
411as_fn_error ()
412{
413 as_status=$1; test $as_status -eq 0 && as_status=1
414 if test "$4"; then
415 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
416 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
417 fi
418 $as_echo "$as_me: error: $2" >&2
419 as_fn_exit $as_status
420} # as_fn_error
421
422if expr a : '\(a\)' >/dev/null 2>&1 &&
423 test "X`expr 00001 : '.*\(...\)'`" = X001; then
424 as_expr=expr
425else
426 as_expr=false
427fi
428
429if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
430 as_basename=basename
431else
432 as_basename=false
433fi
434
435if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
436 as_dirname=dirname
437else
438 as_dirname=false
439fi
440
441as_me=`$as_basename -- "$0" ||
442$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
443 X"$0" : 'X\(//\)$' \| \
444 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
445$as_echo X/"$0" |
446 sed '/^.*\/\([^/][^/]*\)\/*$/{
447 s//\1/
448 q
449 }
450 /^X\/\(\/\/\)$/{
451 s//\1/
452 q
453 }
454 /^X\/\(\/\).*/{
455 s//\1/
456 q
457 }
458 s/.*/./; q'`
459
460# Avoid depending upon Character Ranges.
461as_cr_letters='abcdefghijklmnopqrstuvwxyz'
462as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
463as_cr_Letters=$as_cr_letters$as_cr_LETTERS
464as_cr_digits='0123456789'
465as_cr_alnum=$as_cr_Letters$as_cr_digits
466
467
468 as_lineno_1=$LINENO as_lineno_1a=$LINENO
469 as_lineno_2=$LINENO as_lineno_2a=$LINENO
470 eval 'test "x$as_lineno_1'$as_run'" != "x$as_lineno_2'$as_run'" &&
471 test "x`expr $as_lineno_1'$as_run' + 1`" = "x$as_lineno_2'$as_run'"' || {
472 # Blame Lee E. McMahon (1931-1989) for sed's syntax. :-)
473 sed -n '
474 p
475 /[$]LINENO/=
476 ' <$as_myself |
477 sed '
478 s/[$]LINENO.*/&-/
479 t lineno
480 b
481 :lineno
482 N
483 :loop
484 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
485 t loop
486 s/-\n.*//
487 ' >$as_me.lineno &&
488 chmod +x "$as_me.lineno" ||
489 { $as_echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2; as_fn_exit 1; }
490
491 # If we had to re-execute with $CONFIG_SHELL, we're ensured to have
492 # already done that, so ensure we don't try to do so again and fall
493 # in an infinite loop. This has already happened in practice.
494 _as_can_reexec=no; export _as_can_reexec
495 # Don't try to exec as it changes $[0], causing all sort of problems
496 # (the dirname of $[0] is not the place where we might find the
497 # original and so on. Autoconf is especially sensitive to this).
498 . "./$as_me.lineno"
499 # Exit status is that of the last command.
500 exit
501}
502
503ECHO_C= ECHO_N= ECHO_T=
504case `echo -n x` in #(((((
505-n*)
506 case `echo 'xy\c'` in
507 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
508 xy) ECHO_C='\c';;
509 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
510 ECHO_T=' ';;
511 esac;;
512*)
513 ECHO_N='-n';;
514esac
515
516rm -f conf$$ conf$$.exe conf$$.file
517if test -d conf$$.dir; then
518 rm -f conf$$.dir/conf$$.file
519else
520 rm -f conf$$.dir
521 mkdir conf$$.dir 2>/dev/null
522fi
523if (echo >conf$$.file) 2>/dev/null; then
524 if ln -s conf$$.file conf$$ 2>/dev/null; then
525 as_ln_s='ln -s'
526 # ... but there are two gotchas:
527 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
528 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
529 # In both cases, we have to default to `cp -pR'.
530 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
531 as_ln_s='cp -pR'
532 elif ln conf$$.file conf$$ 2>/dev/null; then
533 as_ln_s=ln
534 else
535 as_ln_s='cp -pR'
536 fi
537else
538 as_ln_s='cp -pR'
539fi
540rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
541rmdir conf$$.dir 2>/dev/null
542
543if mkdir -p . 2>/dev/null; then
544 as_mkdir_p='mkdir -p "$as_dir"'
545else
546 test -d ./-p && rmdir ./-p
547 as_mkdir_p=false
548fi
549
550as_test_x='test -x'
551as_executable_p=as_fn_executable_p
552
553# Sed expression to map a string onto a valid CPP name.
554as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
555
556# Sed expression to map a string onto a valid variable name.
557as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
558
559
560test -n "$DJDIR" || exec 7<&0 </dev/null
561exec 6>&1
562
563# Name of the host.
564# hostname on some systems (SVR3.2, old GNU/Linux) returns a bogus exit status,
565# so uname gets run too.
566ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
567
568#
569# Initializations.
570#
571ac_default_prefix=/usr/local
572ac_clean_files=
573ac_config_libobj_dir=.
574LIBOBJS=
575cross_compiling=no
576subdirs=
577MFLAGS=
578MAKEFLAGS=
579
580# Identity of this package.
581PACKAGE_NAME='smartmontools'
582PACKAGE_TARNAME='smartmontools'
583PACKAGE_VERSION='6.6'
584PACKAGE_STRING='smartmontools 6.6'
585PACKAGE_BUGREPORT='smartmontools-support@listi.jpberlin.de'
586PACKAGE_URL=''
587
588ac_unique_file="smartctl.cpp"
589# Factoring default headers for most tests.
590ac_includes_default="\
591#include <stdio.h>
592#ifdef HAVE_SYS_TYPES_H
593# include <sys/types.h>
594#endif
595#ifdef HAVE_SYS_STAT_H
596# include <sys/stat.h>
597#endif
598#ifdef STDC_HEADERS
599# include <stdlib.h>
600# include <stddef.h>
601#else
602# ifdef HAVE_STDLIB_H
603# include <stdlib.h>
604# endif
605#endif
606#ifdef HAVE_STRING_H
607# if !defined STDC_HEADERS && defined HAVE_MEMORY_H
608# include <memory.h>
609# endif
610# include <string.h>
611#endif
612#ifdef HAVE_STRINGS_H
613# include <strings.h>
614#endif
615#ifdef HAVE_INTTYPES_H
616# include <inttypes.h>
617#endif
618#ifdef HAVE_STDINT_H
619# include <stdint.h>
620#endif
621#ifdef HAVE_UNISTD_H
622# include <unistd.h>
623#endif"
624
625ac_subst_vars='am__EXEEXT_FALSE
626am__EXEEXT_TRUE
627LTLIBOBJS
628LIBOBJS
629OS_WIN64_FALSE
630OS_WIN64_TRUE
631OS_WIN32_NSIS_FALSE
632OS_WIN32_NSIS_TRUE
633OS_WIN32_MINGW_FALSE
634OS_WIN32_MINGW_TRUE
635OS_WIN32_FALSE
636OS_WIN32_TRUE
637OS_SOLARIS_FALSE
638OS_SOLARIS_TRUE
639OS_DARWIN_FALSE
640OS_DARWIN_TRUE
641DRIVEDB_BRANCH
642os_win32_manifest
643os_man_filter
644os_nisdomainname
645os_dnsdomainname
646os_hostname
647os_mailer
648os_dltools
649os_libs
650os_deps
651smartmontools_release_time
652smartmontools_release_date
653releaseversion
654with_nvme_devicescan
655CAPNG_LDADD
656with_selinux
657smartd_suffix
658ENABLE_ATTRIBUTELOG_FALSE
659ENABLE_ATTRIBUTELOG_TRUE
660attributelogdir
661attributelog
662ENABLE_SAVESTATES_FALSE
663ENABLE_SAVESTATES_TRUE
664savestatesdir
665savestates
666ENABLE_SCRIPTPATH_FALSE
667ENABLE_SCRIPTPATH_TRUE
668scriptpath
669smartdplugindir
670smartdscriptdir
671gnupg
672ENABLE_UPDATE_SMART_DRIVEDB_FALSE
673ENABLE_UPDATE_SMART_DRIVEDB_TRUE
674with_update_smart_drivedb
675ENABLE_DRIVEDB_FALSE
676ENABLE_DRIVEDB_TRUE
677drivedbdir
678exampledir
679initdfile
680INSTALL_INITSCRIPT_FALSE
681INSTALL_INITSCRIPT_TRUE
682initddir
683systemdenvfile
684INSTALL_SYSTEMDUNIT_FALSE
685INSTALL_SYSTEMDUNIT_TRUE
686systemdsystemunitdir
687ASFLAGS
688gcc_have_attr_packed
689NEED_REGEX_FALSE
690NEED_REGEX_TRUE
691NEED_GETOPT_LONG_FALSE
692NEED_GETOPT_LONG_TRUE
693EGREP
694GREP
695CXXCPP
696IS_SVN_BUILD_FALSE
697IS_SVN_BUILD_TRUE
698svn_deps
699host_os
700host_vendor
701host_cpu
702host
703build_os
704build_vendor
705build_cpu
706build
707MAKENSIS
708WINDRES
709WINDMC
710PKG_CONFIG_LIBDIR
711PKG_CONFIG_PATH
712PKG_CONFIG
713am__fastdepCCAS_FALSE
714am__fastdepCCAS_TRUE
715CCASDEPMODE
716CCASFLAGS
717CCAS
718am__fastdepCC_FALSE
719am__fastdepCC_TRUE
720CCDEPMODE
721ac_ct_CC
722CFLAGS
723CC
724am__fastdepCXX_FALSE
725am__fastdepCXX_TRUE
726CXXDEPMODE
727am__nodep
728AMDEPBACKSLASH
729AMDEP_FALSE
730AMDEP_TRUE
731am__quote
732am__include
733DEPDIR
734OBJEXT
735EXEEXT
736ac_ct_CXX
737CPPFLAGS
738LDFLAGS
739CXXFLAGS
740CXX
741MAINT
742MAINTAINER_MODE_FALSE
743MAINTAINER_MODE_TRUE
744AM_BACKSLASH
745AM_DEFAULT_VERBOSITY
746AM_DEFAULT_V
747AM_V
748am__untar
749am__tar
750AMTAR
751am__leading_dot
752SET_MAKE
753AWK
754mkdir_p
755MKDIR_P
756INSTALL_STRIP_PROGRAM
757STRIP
758install_sh
759MAKEINFO
760AUTOHEADER
761AUTOMAKE
762AUTOCONF
763ACLOCAL
764VERSION
765PACKAGE
766CYGPATH_W
767am__isrc
768INSTALL_DATA
769INSTALL_SCRIPT
770INSTALL_PROGRAM
771target_alias
772host_alias
773build_alias
774LIBS
775ECHO_T
776ECHO_N
777ECHO_C
778DEFS
779mandir
780localedir
781libdir
782psdir
783pdfdir
784dvidir
785htmldir
786infodir
787docdir
788oldincludedir
789includedir
790localstatedir
791sharedstatedir
792sysconfdir
793datadir
794datarootdir
795libexecdir
796sbindir
797bindir
798program_transform_name
799prefix
800exec_prefix
801PACKAGE_URL
802PACKAGE_BUGREPORT
803PACKAGE_STRING
804PACKAGE_VERSION
805PACKAGE_TARNAME
806PACKAGE_NAME
807PATH_SEPARATOR
808SHELL'
809ac_subst_files=''
810ac_user_opts='
811enable_option_checking
812enable_silent_rules
813enable_maintainer_mode
814enable_dependency_tracking
815with_systemdsystemunitdir
816with_systemdenvfile
817with_initscriptdir
818with_exampledir
819with_drivedbdir
820with_update_smart_drivedb
821with_gnupg
822with_smartdscriptdir
823with_smartdplugindir
824with_scriptpath
825with_savestates
826with_attributelog
827enable_sample
828with_os_deps
829with_selinux
830with_libcap_ng
831with_nvme_devicescan
832with_solaris_sparc_ata
833with_working_snprintf
834with_mingw_aslr
835with_cxx11_option
836'
837 ac_precious_vars='build_alias
838host_alias
839target_alias
840CXX
841CXXFLAGS
842LDFLAGS
843LIBS
844CPPFLAGS
845CCC
846CC
847CFLAGS
848CCAS
849CCASFLAGS
850PKG_CONFIG
851PKG_CONFIG_PATH
852PKG_CONFIG_LIBDIR
853WINDMC
854WINDRES
855MAKENSIS
856CXXCPP'
857
858
859# Initialize some variables set by options.
860ac_init_help=
861ac_init_version=false
862ac_unrecognized_opts=
863ac_unrecognized_sep=
864# The variables have the same names as the options, with
865# dashes changed to underlines.
866cache_file=/dev/null
867exec_prefix=NONE
868no_create=
869no_recursion=
870prefix=NONE
871program_prefix=NONE
872program_suffix=NONE
873program_transform_name=s,x,x,
874silent=
875site=
876srcdir=
877verbose=
878x_includes=NONE
879x_libraries=NONE
880
881# Installation directory options.
882# These are left unexpanded so users can "make install exec_prefix=/foo"
883# and all the variables that are supposed to be based on exec_prefix
884# by default will actually change.
885# Use braces instead of parens because sh, perl, etc. also accept them.
886# (The list follows the same order as the GNU Coding Standards.)
887bindir='${exec_prefix}/bin'
888sbindir='${exec_prefix}/sbin'
889libexecdir='${exec_prefix}/libexec'
890datarootdir='${prefix}/share'
891datadir='${datarootdir}'
892sysconfdir='${prefix}/etc'
893sharedstatedir='${prefix}/com'
894localstatedir='${prefix}/var'
895includedir='${prefix}/include'
896oldincludedir='/usr/include'
897docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
898infodir='${datarootdir}/info'
899htmldir='${docdir}'
900dvidir='${docdir}'
901pdfdir='${docdir}'
902psdir='${docdir}'
903libdir='${exec_prefix}/lib'
904localedir='${datarootdir}/locale'
905mandir='${datarootdir}/man'
906
907ac_prev=
908ac_dashdash=
909for ac_option
910do
911 # If the previous option needs an argument, assign it.
912 if test -n "$ac_prev"; then
913 eval $ac_prev=\$ac_option
914 ac_prev=
915 continue
916 fi
917
918 case $ac_option in
919 *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
920 *=) ac_optarg= ;;
921 *) ac_optarg=yes ;;
922 esac
923
924 # Accept the important Cygnus configure options, so we can diagnose typos.
925
926 case $ac_dashdash$ac_option in
927 --)
928 ac_dashdash=yes ;;
929
930 -bindir | --bindir | --bindi | --bind | --bin | --bi)
931 ac_prev=bindir ;;
932 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
933 bindir=$ac_optarg ;;
934
935 -build | --build | --buil | --bui | --bu)
936 ac_prev=build_alias ;;
937 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
938 build_alias=$ac_optarg ;;
939
940 -cache-file | --cache-file | --cache-fil | --cache-fi \
941 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
942 ac_prev=cache_file ;;
943 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
944 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
945 cache_file=$ac_optarg ;;
946
947 --config-cache | -C)
948 cache_file=config.cache ;;
949
950 -datadir | --datadir | --datadi | --datad)
951 ac_prev=datadir ;;
952 -datadir=* | --datadir=* | --datadi=* | --datad=*)
953 datadir=$ac_optarg ;;
954
955 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
956 | --dataroo | --dataro | --datar)
957 ac_prev=datarootdir ;;
958 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
959 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
960 datarootdir=$ac_optarg ;;
961
962 -disable-* | --disable-*)
963 ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
964 # Reject names that are not valid shell variable names.
965 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
966 as_fn_error $? "invalid feature name: $ac_useropt"
967 ac_useropt_orig=$ac_useropt
968 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
969 case $ac_user_opts in
970 *"
971"enable_$ac_useropt"
972"*) ;;
973 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig"
974 ac_unrecognized_sep=', ';;
975 esac
976 eval enable_$ac_useropt=no ;;
977
978 -docdir | --docdir | --docdi | --doc | --do)
979 ac_prev=docdir ;;
980 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
981 docdir=$ac_optarg ;;
982
983 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
984 ac_prev=dvidir ;;
985 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
986 dvidir=$ac_optarg ;;
987
988 -enable-* | --enable-*)
989 ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
990 # Reject names that are not valid shell variable names.
991 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
992 as_fn_error $? "invalid feature name: $ac_useropt"
993 ac_useropt_orig=$ac_useropt
994 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
995 case $ac_user_opts in
996 *"
997"enable_$ac_useropt"
998"*) ;;
999 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig"
1000 ac_unrecognized_sep=', ';;
1001 esac
1002 eval enable_$ac_useropt=\$ac_optarg ;;
1003
1004 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
1005 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
1006 | --exec | --exe | --ex)
1007 ac_prev=exec_prefix ;;
1008 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
1009 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
1010 | --exec=* | --exe=* | --ex=*)
1011 exec_prefix=$ac_optarg ;;
1012
1013 -gas | --gas | --ga | --g)
1014 # Obsolete; use --with-gas.
1015 with_gas=yes ;;
1016
1017 -help | --help | --hel | --he | -h)
1018 ac_init_help=long ;;
1019 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
1020 ac_init_help=recursive ;;
1021 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
1022 ac_init_help=short ;;
1023
1024 -host | --host | --hos | --ho)
1025 ac_prev=host_alias ;;
1026 -host=* | --host=* | --hos=* | --ho=*)
1027 host_alias=$ac_optarg ;;
1028
1029 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
1030 ac_prev=htmldir ;;
1031 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
1032 | --ht=*)
1033 htmldir=$ac_optarg ;;
1034
1035 -includedir | --includedir | --includedi | --included | --include \
1036 | --includ | --inclu | --incl | --inc)
1037 ac_prev=includedir ;;
1038 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
1039 | --includ=* | --inclu=* | --incl=* | --inc=*)
1040 includedir=$ac_optarg ;;
1041
1042 -infodir | --infodir | --infodi | --infod | --info | --inf)
1043 ac_prev=infodir ;;
1044 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
1045 infodir=$ac_optarg ;;
1046
1047 -libdir | --libdir | --libdi | --libd)
1048 ac_prev=libdir ;;
1049 -libdir=* | --libdir=* | --libdi=* | --libd=*)
1050 libdir=$ac_optarg ;;
1051
1052 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
1053 | --libexe | --libex | --libe)
1054 ac_prev=libexecdir ;;
1055 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
1056 | --libexe=* | --libex=* | --libe=*)
1057 libexecdir=$ac_optarg ;;
1058
1059 -localedir | --localedir | --localedi | --localed | --locale)
1060 ac_prev=localedir ;;
1061 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
1062 localedir=$ac_optarg ;;
1063
1064 -localstatedir | --localstatedir | --localstatedi | --localstated \
1065 | --localstate | --localstat | --localsta | --localst | --locals)
1066 ac_prev=localstatedir ;;
1067 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
1068 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
1069 localstatedir=$ac_optarg ;;
1070
1071 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
1072 ac_prev=mandir ;;
1073 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
1074 mandir=$ac_optarg ;;
1075
1076 -nfp | --nfp | --nf)
1077 # Obsolete; use --without-fp.
1078 with_fp=no ;;
1079
1080 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
1081 | --no-cr | --no-c | -n)
1082 no_create=yes ;;
1083
1084 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
1085 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
1086 no_recursion=yes ;;
1087
1088 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
1089 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
1090 | --oldin | --oldi | --old | --ol | --o)
1091 ac_prev=oldincludedir ;;
1092 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
1093 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
1094 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
1095 oldincludedir=$ac_optarg ;;
1096
1097 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
1098 ac_prev=prefix ;;
1099 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
1100 prefix=$ac_optarg ;;
1101
1102 -program-prefix | --program-prefix | --program-prefi | --program-pref \
1103 | --program-pre | --program-pr | --program-p)
1104 ac_prev=program_prefix ;;
1105 -program-prefix=* | --program-prefix=* | --program-prefi=* \
1106 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
1107 program_prefix=$ac_optarg ;;
1108
1109 -program-suffix | --program-suffix | --program-suffi | --program-suff \
1110 | --program-suf | --program-su | --program-s)
1111 ac_prev=program_suffix ;;
1112 -program-suffix=* | --program-suffix=* | --program-suffi=* \
1113 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
1114 program_suffix=$ac_optarg ;;
1115
1116 -program-transform-name | --program-transform-name \
1117 | --program-transform-nam | --program-transform-na \
1118 | --program-transform-n | --program-transform- \
1119 | --program-transform | --program-transfor \
1120 | --program-transfo | --program-transf \
1121 | --program-trans | --program-tran \
1122 | --progr-tra | --program-tr | --program-t)
1123 ac_prev=program_transform_name ;;
1124 -program-transform-name=* | --program-transform-name=* \
1125 | --program-transform-nam=* | --program-transform-na=* \
1126 | --program-transform-n=* | --program-transform-=* \
1127 | --program-transform=* | --program-transfor=* \
1128 | --program-transfo=* | --program-transf=* \
1129 | --program-trans=* | --program-tran=* \
1130 | --progr-tra=* | --program-tr=* | --program-t=*)
1131 program_transform_name=$ac_optarg ;;
1132
1133 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
1134 ac_prev=pdfdir ;;
1135 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
1136 pdfdir=$ac_optarg ;;
1137
1138 -psdir | --psdir | --psdi | --psd | --ps)
1139 ac_prev=psdir ;;
1140 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1141 psdir=$ac_optarg ;;
1142
1143 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1144 | -silent | --silent | --silen | --sile | --sil)
1145 silent=yes ;;
1146
1147 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1148 ac_prev=sbindir ;;
1149 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1150 | --sbi=* | --sb=*)
1151 sbindir=$ac_optarg ;;
1152
1153 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1154 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1155 | --sharedst | --shareds | --shared | --share | --shar \
1156 | --sha | --sh)
1157 ac_prev=sharedstatedir ;;
1158 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1159 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1160 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1161 | --sha=* | --sh=*)
1162 sharedstatedir=$ac_optarg ;;
1163
1164 -site | --site | --sit)
1165 ac_prev=site ;;
1166 -site=* | --site=* | --sit=*)
1167 site=$ac_optarg ;;
1168
1169 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1170 ac_prev=srcdir ;;
1171 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1172 srcdir=$ac_optarg ;;
1173
1174 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1175 | --syscon | --sysco | --sysc | --sys | --sy)
1176 ac_prev=sysconfdir ;;
1177 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1178 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1179 sysconfdir=$ac_optarg ;;
1180
1181 -target | --target | --targe | --targ | --tar | --ta | --t)
1182 ac_prev=target_alias ;;
1183 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1184 target_alias=$ac_optarg ;;
1185
1186 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1187 verbose=yes ;;
1188
1189 -version | --version | --versio | --versi | --vers | -V)
1190 ac_init_version=: ;;
1191
1192 -with-* | --with-*)
1193 ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1194 # Reject names that are not valid shell variable names.
1195 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1196 as_fn_error $? "invalid package name: $ac_useropt"
1197 ac_useropt_orig=$ac_useropt
1198 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1199 case $ac_user_opts in
1200 *"
1201"with_$ac_useropt"
1202"*) ;;
1203 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig"
1204 ac_unrecognized_sep=', ';;
1205 esac
1206 eval with_$ac_useropt=\$ac_optarg ;;
1207
1208 -without-* | --without-*)
1209 ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1210 # Reject names that are not valid shell variable names.
1211 expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null &&
1212 as_fn_error $? "invalid package name: $ac_useropt"
1213 ac_useropt_orig=$ac_useropt
1214 ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'`
1215 case $ac_user_opts in
1216 *"
1217"with_$ac_useropt"
1218"*) ;;
1219 *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig"
1220 ac_unrecognized_sep=', ';;
1221 esac
1222 eval with_$ac_useropt=no ;;
1223
1224 --x)
1225 # Obsolete; use --with-x.
1226 with_x=yes ;;
1227
1228 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1229 | --x-incl | --x-inc | --x-in | --x-i)
1230 ac_prev=x_includes ;;
1231 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1232 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1233 x_includes=$ac_optarg ;;
1234
1235 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1236 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1237 ac_prev=x_libraries ;;
1238 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1239 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1240 x_libraries=$ac_optarg ;;
1241
1242 -*) as_fn_error $? "unrecognized option: \`$ac_option'
1243Try \`$0 --help' for more information"
1244 ;;
1245
1246 *=*)
1247 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1248 # Reject names that are not valid shell variable names.
1249 case $ac_envvar in #(
1250 '' | [0-9]* | *[!_$as_cr_alnum]* )
1251 as_fn_error $? "invalid variable name: \`$ac_envvar'" ;;
1252 esac
1253 eval $ac_envvar=\$ac_optarg
1254 export $ac_envvar ;;
1255
1256 *)
1257 # FIXME: should be removed in autoconf 3.0.
1258 $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1259 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1260 $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1261 : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}"
1262 ;;
1263
1264 esac
1265done
1266
1267if test -n "$ac_prev"; then
1268 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1269 as_fn_error $? "missing argument to $ac_option"
1270fi
1271
1272if test -n "$ac_unrecognized_opts"; then
1273 case $enable_option_checking in
1274 no) ;;
1275 fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;;
1276 *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;;
1277 esac
1278fi
1279
1280# Check all directory arguments for consistency.
1281for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1282 datadir sysconfdir sharedstatedir localstatedir includedir \
1283 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1284 libdir localedir mandir
1285do
1286 eval ac_val=\$$ac_var
1287 # Remove trailing slashes.
1288 case $ac_val in
1289 */ )
1290 ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'`
1291 eval $ac_var=\$ac_val;;
1292 esac
1293 # Be sure to have absolute directory names.
1294 case $ac_val in
1295 [\\/$]* | ?:[\\/]* ) continue;;
1296 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1297 esac
1298 as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val"
1299done
1300
1301# There might be people who depend on the old broken behavior: `$host'
1302# used to hold the argument of --host etc.
1303# FIXME: To remove some day.
1304build=$build_alias
1305host=$host_alias
1306target=$target_alias
1307
1308# FIXME: To remove some day.
1309if test "x$host_alias" != x; then
1310 if test "x$build_alias" = x; then
1311 cross_compiling=maybe
1312 elif test "x$build_alias" != "x$host_alias"; then
1313 cross_compiling=yes
1314 fi
1315fi
1316
1317ac_tool_prefix=
1318test -n "$host_alias" && ac_tool_prefix=$host_alias-
1319
1320test "$silent" = yes && exec 6>/dev/null
1321
1322
1323ac_pwd=`pwd` && test -n "$ac_pwd" &&
1324ac_ls_di=`ls -di .` &&
1325ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1326 as_fn_error $? "working directory cannot be determined"
1327test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1328 as_fn_error $? "pwd does not report name of working directory"
1329
1330
1331# Find the source files, if location was not specified.
1332if test -z "$srcdir"; then
1333 ac_srcdir_defaulted=yes
1334 # Try the directory containing this script, then the parent directory.
1335 ac_confdir=`$as_dirname -- "$as_myself" ||
1336$as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1337 X"$as_myself" : 'X\(//\)[^/]' \| \
1338 X"$as_myself" : 'X\(//\)$' \| \
1339 X"$as_myself" : 'X\(/\)' \| . 2>/dev/null ||
1340$as_echo X"$as_myself" |
1341 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1342 s//\1/
1343 q
1344 }
1345 /^X\(\/\/\)[^/].*/{
1346 s//\1/
1347 q
1348 }
1349 /^X\(\/\/\)$/{
1350 s//\1/
1351 q
1352 }
1353 /^X\(\/\).*/{
1354 s//\1/
1355 q
1356 }
1357 s/.*/./; q'`
1358 srcdir=$ac_confdir
1359 if test ! -r "$srcdir/$ac_unique_file"; then
1360 srcdir=..
1361 fi
1362else
1363 ac_srcdir_defaulted=no
1364fi
1365if test ! -r "$srcdir/$ac_unique_file"; then
1366 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1367 as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir"
1368fi
1369ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1370ac_abs_confdir=`(
1371 cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg"
1372 pwd)`
1373# When building in place, set srcdir=.
1374if test "$ac_abs_confdir" = "$ac_pwd"; then
1375 srcdir=.
1376fi
1377# Remove unnecessary trailing slashes from srcdir.
1378# Double slashes in file names in object file debugging info
1379# mess up M-x gdb in Emacs.
1380case $srcdir in
1381*/) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1382esac
1383for ac_var in $ac_precious_vars; do
1384 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1385 eval ac_env_${ac_var}_value=\$${ac_var}
1386 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1387 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1388done
1389
1390#
1391# Report the --help message.
1392#
1393if test "$ac_init_help" = "long"; then
1394 # Omit some internal or obsolete options to make the list less imposing.
1395 # This message is too long to be a string in the A/UX 3.1 sh.
1396 cat <<_ACEOF
1397\`configure' configures smartmontools 6.6 to adapt to many kinds of systems.
1398
1399Usage: $0 [OPTION]... [VAR=VALUE]...
1400
1401To assign environment variables (e.g., CC, CFLAGS...), specify them as
1402VAR=VALUE. See below for descriptions of some of the useful variables.
1403
1404Defaults for the options are specified in brackets.
1405
1406Configuration:
1407 -h, --help display this help and exit
1408 --help=short display options specific to this package
1409 --help=recursive display the short help of all the included packages
1410 -V, --version display version information and exit
1411 -q, --quiet, --silent do not print \`checking ...' messages
1412 --cache-file=FILE cache test results in FILE [disabled]
1413 -C, --config-cache alias for \`--cache-file=config.cache'
1414 -n, --no-create do not create output files
1415 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1416
1417Installation directories:
1418 --prefix=PREFIX install architecture-independent files in PREFIX
1419 [$ac_default_prefix]
1420 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1421 [PREFIX]
1422
1423By default, \`make install' will install all the files in
1424\`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1425an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1426for instance \`--prefix=\$HOME'.
1427
1428For better control, use the options below.
1429
1430Fine tuning of the installation directories:
1431 --bindir=DIR user executables [EPREFIX/bin]
1432 --sbindir=DIR system admin executables [EPREFIX/sbin]
1433 --libexecdir=DIR program executables [EPREFIX/libexec]
1434 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1435 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1436 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1437 --libdir=DIR object code libraries [EPREFIX/lib]
1438 --includedir=DIR C header files [PREFIX/include]
1439 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1440 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1441 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1442 --infodir=DIR info documentation [DATAROOTDIR/info]
1443 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1444 --mandir=DIR man documentation [DATAROOTDIR/man]
1445 --docdir=DIR documentation root [DATAROOTDIR/doc/smartmontools]
1446 --htmldir=DIR html documentation [DOCDIR]
1447 --dvidir=DIR dvi documentation [DOCDIR]
1448 --pdfdir=DIR pdf documentation [DOCDIR]
1449 --psdir=DIR ps documentation [DOCDIR]
1450_ACEOF
1451
1452 cat <<\_ACEOF
1453
1454Program names:
1455 --program-prefix=PREFIX prepend PREFIX to installed program names
1456 --program-suffix=SUFFIX append SUFFIX to installed program names
1457 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1458
1459System types:
1460 --build=BUILD configure for building on BUILD [guessed]
1461 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1462_ACEOF
1463fi
1464
1465if test -n "$ac_init_help"; then
1466 case $ac_init_help in
1467 short | recursive ) echo "Configuration of smartmontools 6.6:";;
1468 esac
1469 cat <<\_ACEOF
1470
1471Optional Features:
1472 --disable-option-checking ignore unrecognized --enable/--with options
1473 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1474 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1475 --enable-silent-rules less verbose build output (undo: "make V=1")
1476 --disable-silent-rules verbose build output (undo: "make V=0")
1477 --enable-maintainer-mode
1478 enable make rules and dependencies not useful (and
1479 sometimes confusing) to the casual installer
1480 --enable-dependency-tracking
1481 do not reject slow dependency extractors
1482 --disable-dependency-tracking
1483 speeds up one-time build
1484 --enable-sample Enables appending .sample to the installed smartd rc
1485 script and configuration file
1486
1487Optional Packages:
1488 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1489 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1490 --with-systemdsystemunitdir[=DIR|auto|yes|no]
1491 Location of systemd service files [auto]
1492 --with-systemdenvfile[=FILE|auto|yes|no]
1493 Path of systemd EnvironmentFile [auto]
1494 --with-initscriptdir[=DIR|auto|yes|no]
1495 Location of init scripts [auto]
1496 --with-exampledir=DIR Location of example scripts [DOCDIR/examplescripts]
1497 --with-drivedbdir[=DIR|yes|no]
1498 Location of drive database file
1499 [DATADIR/smartmontools]
1500 --with-update-smart-drivedb[=yes|no|X.Y]
1501 Install update-smart-drivedb script (and backport it
1502 to branches/RELEASE_X_Y_DRIVEDB) [yes]
1503 --with-gnupg[=FILE|yes|no]
1504 GnuPG used to verify drivedb.h [gpg]
1505 --with-smartdscriptdir=DIR
1506 Location of smartd_warning.sh script [SYSCONFDIR]
1507 --with-smartdplugindir=[DIR|no]
1508 Location of smartd_warning.sh plugin scripts
1509 [SMARTDSCRIPTDIR/smartd_warning.d]
1510 --with-scriptpath=[PATH|no]
1511 PATH variable set within scripts [/usr/bin:/bin]
1512 --with-savestates[=PREFIX|yes|no]
1513 Enable default smartd state files [no]
1514 (yes=LOCALSTATEDIR/lib/smartmontools/smartd.)
1515 --with-attributelog[=PREFIX|yes|no]
1516 Enable default smartd attribute log files [no]
1517 (yes=LOCALSTATEDIR/lib/smartmontools/attrlog.)
1518 --with-os-deps='os_module.o ...'
1519 Specify OS dependent module(s) [guessed]
1520 --with-selinux[=yes|no] Enables SELinux support [no]
1521 --with-libcap-ng[=auto|yes|no]
1522 Add Libcap-ng support to smartd [auto]
1523 --with-nvme-devicescan[=yes|no]
1524 Include NVMe devices in smartd DEVICESCAN [no]
1525 --with-solaris-sparc-ata[=yes|no]
1526 Enable legacy ATA support on Solaris SPARC (requires
1527 os_solaris_ata.s from SVN repository) [no]
1528 --with-working-snprintf[=yes|no]
1529 Function snprintf() handles output truncation as
1530 specified by C99 [MinGW:guessed,others:yes]
1531 --with-mingw-aslr[=auto|yes|low|no]
1532 Enable ASLR for MinGW executables [auto]
1533 --with-cxx11-option[=OPTION|auto|no]
1534 Compiler option to enable C++11 support for future
1535 versions of smartmontools, 'no' if unsupported
1536 [auto]
1537
1538Some influential environment variables:
1539 CXX C++ compiler command
1540 CXXFLAGS C++ compiler flags
1541 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1542 nonstandard directory <lib dir>
1543 LIBS libraries to pass to the linker, e.g. -l<library>
1544 CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if
1545 you have headers in a nonstandard directory <include dir>
1546 CC C compiler command
1547 CFLAGS C compiler flags
1548 CCAS assembler compiler command (defaults to CC)
1549 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1550 PKG_CONFIG path to pkg-config utility
1551 PKG_CONFIG_PATH
1552 directories to add to pkg-config's search path
1553 PKG_CONFIG_LIBDIR
1554 path overriding pkg-config's built-in search path
1555 WINDMC Windows message compiler command
1556 WINDRES Windows resource compiler command
1557 MAKENSIS NSIS compiler command
1558 CXXCPP C++ preprocessor
1559
1560Use these variables to override the choices made by `configure' or to help
1561it to find libraries and programs with nonstandard names/locations.
1562
1563Report bugs to <smartmontools-support@listi.jpberlin.de>.
1564_ACEOF
1565ac_status=$?
1566fi
1567
1568if test "$ac_init_help" = "recursive"; then
1569 # If there are subdirs, report their specific --help.
1570 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1571 test -d "$ac_dir" ||
1572 { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } ||
1573 continue
1574 ac_builddir=.
1575
1576case "$ac_dir" in
1577.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1578*)
1579 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
1580 # A ".." for each directory in $ac_dir_suffix.
1581 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
1582 case $ac_top_builddir_sub in
1583 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1584 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1585 esac ;;
1586esac
1587ac_abs_top_builddir=$ac_pwd
1588ac_abs_builddir=$ac_pwd$ac_dir_suffix
1589# for backward compatibility:
1590ac_top_builddir=$ac_top_build_prefix
1591
1592case $srcdir in
1593 .) # We are building in place.
1594 ac_srcdir=.
1595 ac_top_srcdir=$ac_top_builddir_sub
1596 ac_abs_top_srcdir=$ac_pwd ;;
1597 [\\/]* | ?:[\\/]* ) # Absolute name.
1598 ac_srcdir=$srcdir$ac_dir_suffix;
1599 ac_top_srcdir=$srcdir
1600 ac_abs_top_srcdir=$srcdir ;;
1601 *) # Relative name.
1602 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1603 ac_top_srcdir=$ac_top_build_prefix$srcdir
1604 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1605esac
1606ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1607
1608 cd "$ac_dir" || { ac_status=$?; continue; }
1609 # Check for guested configure.
1610 if test -f "$ac_srcdir/configure.gnu"; then
1611 echo &&
1612 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1613 elif test -f "$ac_srcdir/configure"; then
1614 echo &&
1615 $SHELL "$ac_srcdir/configure" --help=recursive
1616 else
1617 $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1618 fi || ac_status=$?
1619 cd "$ac_pwd" || { ac_status=$?; break; }
1620 done
1621fi
1622
1623test -n "$ac_init_help" && exit $ac_status
1624if $ac_init_version; then
1625 cat <<\_ACEOF
1626smartmontools configure 6.6
1627generated by GNU Autoconf 2.69
1628
1629Copyright (C) 2012 Free Software Foundation, Inc.
1630This configure script is free software; the Free Software Foundation
1631gives unlimited permission to copy, distribute and modify it.
1632_ACEOF
1633 exit
1634fi
1635
1636## ------------------------ ##
1637## Autoconf initialization. ##
1638## ------------------------ ##
1639
1640# ac_fn_cxx_try_compile LINENO
1641# ----------------------------
1642# Try to compile conftest.$ac_ext, and return whether this succeeded.
1643ac_fn_cxx_try_compile ()
1644{
1645 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1646 rm -f conftest.$ac_objext
1647 if { { ac_try="$ac_compile"
1648case "(($ac_try" in
1649 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1650 *) ac_try_echo=$ac_try;;
1651esac
1652eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1653$as_echo "$ac_try_echo"; } >&5
1654 (eval "$ac_compile") 2>conftest.err
1655 ac_status=$?
1656 if test -s conftest.err; then
1657 grep -v '^ *+' conftest.err >conftest.er1
1658 cat conftest.er1 >&5
1659 mv -f conftest.er1 conftest.err
1660 fi
1661 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1662 test $ac_status = 0; } && {
1663 test -z "$ac_cxx_werror_flag" ||
1664 test ! -s conftest.err
1665 } && test -s conftest.$ac_objext; then :
1666 ac_retval=0
1667else
1668 $as_echo "$as_me: failed program was:" >&5
1669sed 's/^/| /' conftest.$ac_ext >&5
1670
1671 ac_retval=1
1672fi
1673 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1674 as_fn_set_status $ac_retval
1675
1676} # ac_fn_cxx_try_compile
1677
1678# ac_fn_c_try_compile LINENO
1679# --------------------------
1680# Try to compile conftest.$ac_ext, and return whether this succeeded.
1681ac_fn_c_try_compile ()
1682{
1683 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1684 rm -f conftest.$ac_objext
1685 if { { ac_try="$ac_compile"
1686case "(($ac_try" in
1687 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1688 *) ac_try_echo=$ac_try;;
1689esac
1690eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1691$as_echo "$ac_try_echo"; } >&5
1692 (eval "$ac_compile") 2>conftest.err
1693 ac_status=$?
1694 if test -s conftest.err; then
1695 grep -v '^ *+' conftest.err >conftest.er1
1696 cat conftest.er1 >&5
1697 mv -f conftest.er1 conftest.err
1698 fi
1699 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1700 test $ac_status = 0; } && {
1701 test -z "$ac_c_werror_flag" ||
1702 test ! -s conftest.err
1703 } && test -s conftest.$ac_objext; then :
1704 ac_retval=0
1705else
1706 $as_echo "$as_me: failed program was:" >&5
1707sed 's/^/| /' conftest.$ac_ext >&5
1708
1709 ac_retval=1
1710fi
1711 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1712 as_fn_set_status $ac_retval
1713
1714} # ac_fn_c_try_compile
1715
1716# ac_fn_cxx_try_cpp LINENO
1717# ------------------------
1718# Try to preprocess conftest.$ac_ext, and return whether this succeeded.
1719ac_fn_cxx_try_cpp ()
1720{
1721 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1722 if { { ac_try="$ac_cpp conftest.$ac_ext"
1723case "(($ac_try" in
1724 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1725 *) ac_try_echo=$ac_try;;
1726esac
1727eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1728$as_echo "$ac_try_echo"; } >&5
1729 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err
1730 ac_status=$?
1731 if test -s conftest.err; then
1732 grep -v '^ *+' conftest.err >conftest.er1
1733 cat conftest.er1 >&5
1734 mv -f conftest.er1 conftest.err
1735 fi
1736 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1737 test $ac_status = 0; } > conftest.i && {
1738 test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" ||
1739 test ! -s conftest.err
1740 }; then :
1741 ac_retval=0
1742else
1743 $as_echo "$as_me: failed program was:" >&5
1744sed 's/^/| /' conftest.$ac_ext >&5
1745
1746 ac_retval=1
1747fi
1748 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1749 as_fn_set_status $ac_retval
1750
1751} # ac_fn_cxx_try_cpp
1752
1753# ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES
1754# ---------------------------------------------------------
1755# Tests whether HEADER exists, giving a warning if it cannot be compiled using
1756# the include files in INCLUDES and setting the cache variable VAR
1757# accordingly.
1758ac_fn_cxx_check_header_mongrel ()
1759{
1760 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1761 if eval \${$3+:} false; then :
1762 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1763$as_echo_n "checking for $2... " >&6; }
1764if eval \${$3+:} false; then :
1765 $as_echo_n "(cached) " >&6
1766fi
1767eval ac_res=\$$3
1768 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1769$as_echo "$ac_res" >&6; }
1770else
1771 # Is the header compilable?
1772{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5
1773$as_echo_n "checking $2 usability... " >&6; }
1774cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1775/* end confdefs.h. */
1776$4
1777#include <$2>
1778_ACEOF
1779if ac_fn_cxx_try_compile "$LINENO"; then :
1780 ac_header_compiler=yes
1781else
1782 ac_header_compiler=no
1783fi
1784rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1785{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5
1786$as_echo "$ac_header_compiler" >&6; }
1787
1788# Is the header present?
1789{ $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5
1790$as_echo_n "checking $2 presence... " >&6; }
1791cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1792/* end confdefs.h. */
1793#include <$2>
1794_ACEOF
1795if ac_fn_cxx_try_cpp "$LINENO"; then :
1796 ac_header_preproc=yes
1797else
1798 ac_header_preproc=no
1799fi
1800rm -f conftest.err conftest.i conftest.$ac_ext
1801{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5
1802$as_echo "$ac_header_preproc" >&6; }
1803
1804# So? What about this header?
1805case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #((
1806 yes:no: )
1807 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5
1808$as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;}
1809 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1810$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1811 ;;
1812 no:yes:* )
1813 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5
1814$as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;}
1815 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5
1816$as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;}
1817 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5
1818$as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;}
1819 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5
1820$as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;}
1821 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5
1822$as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;}
1823( $as_echo "## ------------------------------------------------------ ##
1824## Report this to smartmontools-support@listi.jpberlin.de ##
1825## ------------------------------------------------------ ##"
1826 ) | sed "s/^/$as_me: WARNING: /" >&2
1827 ;;
1828esac
1829 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1830$as_echo_n "checking for $2... " >&6; }
1831if eval \${$3+:} false; then :
1832 $as_echo_n "(cached) " >&6
1833else
1834 eval "$3=\$ac_header_compiler"
1835fi
1836eval ac_res=\$$3
1837 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1838$as_echo "$ac_res" >&6; }
1839fi
1840 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1841
1842} # ac_fn_cxx_check_header_mongrel
1843
1844# ac_fn_cxx_try_run LINENO
1845# ------------------------
1846# Try to link conftest.$ac_ext, and return whether this succeeded. Assumes
1847# that executables *can* be run.
1848ac_fn_cxx_try_run ()
1849{
1850 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1851 if { { ac_try="$ac_link"
1852case "(($ac_try" in
1853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1854 *) ac_try_echo=$ac_try;;
1855esac
1856eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1857$as_echo "$ac_try_echo"; } >&5
1858 (eval "$ac_link") 2>&5
1859 ac_status=$?
1860 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1861 test $ac_status = 0; } && { ac_try='./conftest$ac_exeext'
1862 { { case "(($ac_try" in
1863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1864 *) ac_try_echo=$ac_try;;
1865esac
1866eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1867$as_echo "$ac_try_echo"; } >&5
1868 (eval "$ac_try") 2>&5
1869 ac_status=$?
1870 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1871 test $ac_status = 0; }; }; then :
1872 ac_retval=0
1873else
1874 $as_echo "$as_me: program exited with status $ac_status" >&5
1875 $as_echo "$as_me: failed program was:" >&5
1876sed 's/^/| /' conftest.$ac_ext >&5
1877
1878 ac_retval=$ac_status
1879fi
1880 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
1881 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1882 as_fn_set_status $ac_retval
1883
1884} # ac_fn_cxx_try_run
1885
1886# ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES
1887# ---------------------------------------------------------
1888# Tests whether HEADER exists and can be compiled using the include files in
1889# INCLUDES, setting the cache variable VAR accordingly.
1890ac_fn_cxx_check_header_compile ()
1891{
1892 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1893 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1894$as_echo_n "checking for $2... " >&6; }
1895if eval \${$3+:} false; then :
1896 $as_echo_n "(cached) " >&6
1897else
1898 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1899/* end confdefs.h. */
1900$4
1901#include <$2>
1902_ACEOF
1903if ac_fn_cxx_try_compile "$LINENO"; then :
1904 eval "$3=yes"
1905else
1906 eval "$3=no"
1907fi
1908rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1909fi
1910eval ac_res=\$$3
1911 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1912$as_echo "$ac_res" >&6; }
1913 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1914
1915} # ac_fn_cxx_check_header_compile
1916
1917# ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES
1918# ---------------------------------------------
1919# Tests whether TYPE exists after having included INCLUDES, setting cache
1920# variable VAR accordingly.
1921ac_fn_cxx_check_type ()
1922{
1923 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1924 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
1925$as_echo_n "checking for $2... " >&6; }
1926if eval \${$3+:} false; then :
1927 $as_echo_n "(cached) " >&6
1928else
1929 eval "$3=no"
1930 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1931/* end confdefs.h. */
1932$4
1933int
1934main ()
1935{
1936if (sizeof ($2))
1937 return 0;
1938 ;
1939 return 0;
1940}
1941_ACEOF
1942if ac_fn_cxx_try_compile "$LINENO"; then :
1943 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
1944/* end confdefs.h. */
1945$4
1946int
1947main ()
1948{
1949if (sizeof (($2)))
1950 return 0;
1951 ;
1952 return 0;
1953}
1954_ACEOF
1955if ac_fn_cxx_try_compile "$LINENO"; then :
1956
1957else
1958 eval "$3=yes"
1959fi
1960rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1961fi
1962rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
1963fi
1964eval ac_res=\$$3
1965 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
1966$as_echo "$ac_res" >&6; }
1967 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
1968
1969} # ac_fn_cxx_check_type
1970
1971# ac_fn_cxx_try_link LINENO
1972# -------------------------
1973# Try to link conftest.$ac_ext, and return whether this succeeded.
1974ac_fn_cxx_try_link ()
1975{
1976 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
1977 rm -f conftest.$ac_objext conftest$ac_exeext
1978 if { { ac_try="$ac_link"
1979case "(($ac_try" in
1980 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
1981 *) ac_try_echo=$ac_try;;
1982esac
1983eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
1984$as_echo "$ac_try_echo"; } >&5
1985 (eval "$ac_link") 2>conftest.err
1986 ac_status=$?
1987 if test -s conftest.err; then
1988 grep -v '^ *+' conftest.err >conftest.er1
1989 cat conftest.er1 >&5
1990 mv -f conftest.er1 conftest.err
1991 fi
1992 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
1993 test $ac_status = 0; } && {
1994 test -z "$ac_cxx_werror_flag" ||
1995 test ! -s conftest.err
1996 } && test -s conftest$ac_exeext && {
1997 test "$cross_compiling" = yes ||
1998 test -x conftest$ac_exeext
1999 }; then :
2000 ac_retval=0
2001else
2002 $as_echo "$as_me: failed program was:" >&5
2003sed 's/^/| /' conftest.$ac_ext >&5
2004
2005 ac_retval=1
2006fi
2007 # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information
2008 # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would
2009 # interfere with the next link command; also delete a directory that is
2010 # left behind by Apple's compiler. We do this before executing the actions.
2011 rm -rf conftest.dSYM conftest_ipa8_conftest.oo
2012 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2013 as_fn_set_status $ac_retval
2014
2015} # ac_fn_cxx_try_link
2016
2017# ac_fn_cxx_check_func LINENO FUNC VAR
2018# ------------------------------------
2019# Tests whether FUNC exists, setting the cache variable VAR accordingly
2020ac_fn_cxx_check_func ()
2021{
2022 as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
2023 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5
2024$as_echo_n "checking for $2... " >&6; }
2025if eval \${$3+:} false; then :
2026 $as_echo_n "(cached) " >&6
2027else
2028 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
2029/* end confdefs.h. */
2030/* Define $2 to an innocuous variant, in case <limits.h> declares $2.
2031 For example, HP-UX 11i <limits.h> declares gettimeofday. */
2032#define $2 innocuous_$2
2033
2034/* System header to define __stub macros and hopefully few prototypes,
2035 which can conflict with char $2 (); below.
2036 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
2037 <limits.h> exists even on freestanding compilers. */
2038
2039#ifdef __STDC__
2040# include <limits.h>
2041#else
2042# include <assert.h>
2043#endif
2044
2045#undef $2
2046
2047/* Override any GCC internal prototype to avoid an error.
2048 Use char because int might match the return type of a GCC
2049 builtin and then its argument prototype would still apply. */
2050#ifdef __cplusplus
2051extern "C"
2052#endif
2053char $2 ();
2054/* The GNU C library defines this for functions which it implements
2055 to always fail with ENOSYS. Some functions are actually named
2056 something starting with __ and the normal name is an alias. */
2057#if defined __stub_$2 || defined __stub___$2
2058choke me
2059#endif
2060
2061int
2062main ()
2063{
2064return $2 ();
2065 ;
2066 return 0;
2067}
2068_ACEOF
2069if ac_fn_cxx_try_link "$LINENO"; then :
2070 eval "$3=yes"
2071else
2072 eval "$3=no"
2073fi
2074rm -f core conftest.err conftest.$ac_objext \
2075 conftest$ac_exeext conftest.$ac_ext
2076fi
2077eval ac_res=\$$3
2078 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5
2079$as_echo "$ac_res" >&6; }
2080 eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno
2081
2082} # ac_fn_cxx_check_func
2083cat >config.log <<_ACEOF
2084This file contains any messages produced by compilers while
2085running configure, to aid debugging if configure makes a mistake.
2086
2087It was created by smartmontools $as_me 6.6, which was
2088generated by GNU Autoconf 2.69. Invocation command line was
2089
2090 $ $0 $@
2091
2092_ACEOF
2093exec 5>>config.log
2094{
2095cat <<_ASUNAME
2096## --------- ##
2097## Platform. ##
2098## --------- ##
2099
2100hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
2101uname -m = `(uname -m) 2>/dev/null || echo unknown`
2102uname -r = `(uname -r) 2>/dev/null || echo unknown`
2103uname -s = `(uname -s) 2>/dev/null || echo unknown`
2104uname -v = `(uname -v) 2>/dev/null || echo unknown`
2105
2106/usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
2107/bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
2108
2109/bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
2110/usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
2111/usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
2112/usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
2113/bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
2114/usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
2115/bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
2116
2117_ASUNAME
2118
2119as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2120for as_dir in $PATH
2121do
2122 IFS=$as_save_IFS
2123 test -z "$as_dir" && as_dir=.
2124 $as_echo "PATH: $as_dir"
2125 done
2126IFS=$as_save_IFS
2127
2128} >&5
2129
2130cat >&5 <<_ACEOF
2131
2132
2133## ----------- ##
2134## Core tests. ##
2135## ----------- ##
2136
2137_ACEOF
2138
2139
2140# Keep a trace of the command line.
2141# Strip out --no-create and --no-recursion so they do not pile up.
2142# Strip out --silent because we don't want to record it for future runs.
2143# Also quote any args containing shell meta-characters.
2144# Make two passes to allow for proper duplicate-argument suppression.
2145ac_configure_args=
2146ac_configure_args0=
2147ac_configure_args1=
2148ac_must_keep_next=false
2149for ac_pass in 1 2
2150do
2151 for ac_arg
2152 do
2153 case $ac_arg in
2154 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
2155 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
2156 | -silent | --silent | --silen | --sile | --sil)
2157 continue ;;
2158 *\'*)
2159 ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
2160 esac
2161 case $ac_pass in
2162 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;;
2163 2)
2164 as_fn_append ac_configure_args1 " '$ac_arg'"
2165 if test $ac_must_keep_next = true; then
2166 ac_must_keep_next=false # Got value, back to normal.
2167 else
2168 case $ac_arg in
2169 *=* | --config-cache | -C | -disable-* | --disable-* \
2170 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
2171 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
2172 | -with-* | --with-* | -without-* | --without-* | --x)
2173 case "$ac_configure_args0 " in
2174 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
2175 esac
2176 ;;
2177 -* ) ac_must_keep_next=true ;;
2178 esac
2179 fi
2180 as_fn_append ac_configure_args " '$ac_arg'"
2181 ;;
2182 esac
2183 done
2184done
2185{ ac_configure_args0=; unset ac_configure_args0;}
2186{ ac_configure_args1=; unset ac_configure_args1;}
2187
2188# When interrupted or exit'd, cleanup temporary files, and complete
2189# config.log. We remove comments because anyway the quotes in there
2190# would cause problems or look ugly.
2191# WARNING: Use '\'' to represent an apostrophe within the trap.
2192# WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
2193trap 'exit_status=$?
2194 # Save into config.log some information that might help in debugging.
2195 {
2196 echo
2197
2198 $as_echo "## ---------------- ##
2199## Cache variables. ##
2200## ---------------- ##"
2201 echo
2202 # The following way of writing the cache mishandles newlines in values,
2203(
2204 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
2205 eval ac_val=\$$ac_var
2206 case $ac_val in #(
2207 *${as_nl}*)
2208 case $ac_var in #(
2209 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
2210$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
2211 esac
2212 case $ac_var in #(
2213 _ | IFS | as_nl) ;; #(
2214 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
2215 *) { eval $ac_var=; unset $ac_var;} ;;
2216 esac ;;
2217 esac
2218 done
2219 (set) 2>&1 |
2220 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
2221 *${as_nl}ac_space=\ *)
2222 sed -n \
2223 "s/'\''/'\''\\\\'\'''\''/g;
2224 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
2225 ;; #(
2226 *)
2227 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
2228 ;;
2229 esac |
2230 sort
2231)
2232 echo
2233
2234 $as_echo "## ----------------- ##
2235## Output variables. ##
2236## ----------------- ##"
2237 echo
2238 for ac_var in $ac_subst_vars
2239 do
2240 eval ac_val=\$$ac_var
2241 case $ac_val in
2242 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2243 esac
2244 $as_echo "$ac_var='\''$ac_val'\''"
2245 done | sort
2246 echo
2247
2248 if test -n "$ac_subst_files"; then
2249 $as_echo "## ------------------- ##
2250## File substitutions. ##
2251## ------------------- ##"
2252 echo
2253 for ac_var in $ac_subst_files
2254 do
2255 eval ac_val=\$$ac_var
2256 case $ac_val in
2257 *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
2258 esac
2259 $as_echo "$ac_var='\''$ac_val'\''"
2260 done | sort
2261 echo
2262 fi
2263
2264 if test -s confdefs.h; then
2265 $as_echo "## ----------- ##
2266## confdefs.h. ##
2267## ----------- ##"
2268 echo
2269 cat confdefs.h
2270 echo
2271 fi
2272 test "$ac_signal" != 0 &&
2273 $as_echo "$as_me: caught signal $ac_signal"
2274 $as_echo "$as_me: exit $exit_status"
2275 } >&5
2276 rm -f core *.core core.conftest.* &&
2277 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
2278 exit $exit_status
2279' 0
2280for ac_signal in 1 2 13 15; do
2281 trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal
2282done
2283ac_signal=0
2284
2285# confdefs.h avoids OS command line length limits that DEFS can exceed.
2286rm -f -r conftest* confdefs.h
2287
2288$as_echo "/* confdefs.h */" > confdefs.h
2289
2290# Predefined preprocessor variables.
2291
2292cat >>confdefs.h <<_ACEOF
2293#define PACKAGE_NAME "$PACKAGE_NAME"
2294_ACEOF
2295
2296cat >>confdefs.h <<_ACEOF
2297#define PACKAGE_TARNAME "$PACKAGE_TARNAME"
2298_ACEOF
2299
2300cat >>confdefs.h <<_ACEOF
2301#define PACKAGE_VERSION "$PACKAGE_VERSION"
2302_ACEOF
2303
2304cat >>confdefs.h <<_ACEOF
2305#define PACKAGE_STRING "$PACKAGE_STRING"
2306_ACEOF
2307
2308cat >>confdefs.h <<_ACEOF
2309#define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
2310_ACEOF
2311
2312cat >>confdefs.h <<_ACEOF
2313#define PACKAGE_URL "$PACKAGE_URL"
2314_ACEOF
2315
2316
2317# Let the site file select an alternate cache file if it wants to.
2318# Prefer an explicitly selected file to automatically selected ones.
2319ac_site_file1=NONE
2320ac_site_file2=NONE
2321if test -n "$CONFIG_SITE"; then
2322 # We do not want a PATH search for config.site.
2323 case $CONFIG_SITE in #((
2324 -*) ac_site_file1=./$CONFIG_SITE;;
2325 */*) ac_site_file1=$CONFIG_SITE;;
2326 *) ac_site_file1=./$CONFIG_SITE;;
2327 esac
2328elif test "x$prefix" != xNONE; then
2329 ac_site_file1=$prefix/share/config.site
2330 ac_site_file2=$prefix/etc/config.site
2331else
2332 ac_site_file1=$ac_default_prefix/share/config.site
2333 ac_site_file2=$ac_default_prefix/etc/config.site
2334fi
2335for ac_site_file in "$ac_site_file1" "$ac_site_file2"
2336do
2337 test "x$ac_site_file" = xNONE && continue
2338 if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then
2339 { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5
2340$as_echo "$as_me: loading site script $ac_site_file" >&6;}
2341 sed 's/^/| /' "$ac_site_file" >&5
2342 . "$ac_site_file" \
2343 || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2344$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2345as_fn_error $? "failed to load site script $ac_site_file
2346See \`config.log' for more details" "$LINENO" 5; }
2347 fi
2348done
2349
2350if test -r "$cache_file"; then
2351 # Some versions of bash will fail to source /dev/null (special files
2352 # actually), so we avoid doing that. DJGPP emulates it as a regular file.
2353 if test /dev/null != "$cache_file" && test -f "$cache_file"; then
2354 { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5
2355$as_echo "$as_me: loading cache $cache_file" >&6;}
2356 case $cache_file in
2357 [\\/]* | ?:[\\/]* ) . "$cache_file";;
2358 *) . "./$cache_file";;
2359 esac
2360 fi
2361else
2362 { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5
2363$as_echo "$as_me: creating cache $cache_file" >&6;}
2364 >$cache_file
2365fi
2366
2367# Check that the precious variables saved in the cache have kept the same
2368# value.
2369ac_cache_corrupted=false
2370for ac_var in $ac_precious_vars; do
2371 eval ac_old_set=\$ac_cv_env_${ac_var}_set
2372 eval ac_new_set=\$ac_env_${ac_var}_set
2373 eval ac_old_val=\$ac_cv_env_${ac_var}_value
2374 eval ac_new_val=\$ac_env_${ac_var}_value
2375 case $ac_old_set,$ac_new_set in
2376 set,)
2377 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
2378$as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
2379 ac_cache_corrupted=: ;;
2380 ,set)
2381 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5
2382$as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
2383 ac_cache_corrupted=: ;;
2384 ,);;
2385 *)
2386 if test "x$ac_old_val" != "x$ac_new_val"; then
2387 # differences in whitespace do not lead to failure.
2388 ac_old_val_w=`echo x $ac_old_val`
2389 ac_new_val_w=`echo x $ac_new_val`
2390 if test "$ac_old_val_w" != "$ac_new_val_w"; then
2391 { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5
2392$as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
2393 ac_cache_corrupted=:
2394 else
2395 { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5
2396$as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;}
2397 eval $ac_var=\$ac_old_val
2398 fi
2399 { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5
2400$as_echo "$as_me: former value: \`$ac_old_val'" >&2;}
2401 { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5
2402$as_echo "$as_me: current value: \`$ac_new_val'" >&2;}
2403 fi;;
2404 esac
2405 # Pass precious variables to config.status.
2406 if test "$ac_new_set" = set; then
2407 case $ac_new_val in
2408 *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
2409 *) ac_arg=$ac_var=$ac_new_val ;;
2410 esac
2411 case " $ac_configure_args " in
2412 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
2413 *) as_fn_append ac_configure_args " '$ac_arg'" ;;
2414 esac
2415 fi
2416done
2417if $ac_cache_corrupted; then
2418 { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
2419$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
2420 { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5
2421$as_echo "$as_me: error: changes in the environment can compromise the build" >&2;}
2422 as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5
2423fi
2424## -------------------- ##
2425## Main body of script. ##
2426## -------------------- ##
2427
2428ac_ext=c
2429ac_cpp='$CPP $CPPFLAGS'
2430ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2431ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2432ac_compiler_gnu=$ac_cv_c_compiler_gnu
2433
2434
2435am__api_version='1.15'
2436
2437ac_aux_dir=
2438for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
2439 if test -f "$ac_dir/install-sh"; then
2440 ac_aux_dir=$ac_dir
2441 ac_install_sh="$ac_aux_dir/install-sh -c"
2442 break
2443 elif test -f "$ac_dir/install.sh"; then
2444 ac_aux_dir=$ac_dir
2445 ac_install_sh="$ac_aux_dir/install.sh -c"
2446 break
2447 elif test -f "$ac_dir/shtool"; then
2448 ac_aux_dir=$ac_dir
2449 ac_install_sh="$ac_aux_dir/shtool install -c"
2450 break
2451 fi
2452done
2453if test -z "$ac_aux_dir"; then
2454 as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5
2455fi
2456
2457# These three variables are undocumented and unsupported,
2458# and are intended to be withdrawn in a future Autoconf release.
2459# They can cause serious problems if a builder's source tree is in a directory
2460# whose full name contains unusual characters.
2461ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
2462ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
2463ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
2464
2465
2466# Find a good install program. We prefer a C program (faster),
2467# so one script is as good as another. But avoid the broken or
2468# incompatible versions:
2469# SysV /etc/install, /usr/sbin/install
2470# SunOS /usr/etc/install
2471# IRIX /sbin/install
2472# AIX /bin/install
2473# AmigaOS /C/install, which installs bootblocks on floppy discs
2474# AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
2475# AFS /usr/afsws/bin/install, which mishandles nonexistent args
2476# SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
2477# OS/2's system install, which has a completely different semantic
2478# ./install, which can be erroneously created by make from ./install.sh.
2479# Reject install programs that cannot install multiple files.
2480{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5
2481$as_echo_n "checking for a BSD-compatible install... " >&6; }
2482if test -z "$INSTALL"; then
2483if ${ac_cv_path_install+:} false; then :
2484 $as_echo_n "(cached) " >&6
2485else
2486 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2487for as_dir in $PATH
2488do
2489 IFS=$as_save_IFS
2490 test -z "$as_dir" && as_dir=.
2491 # Account for people who put trailing slashes in PATH elements.
2492case $as_dir/ in #((
2493 ./ | .// | /[cC]/* | \
2494 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
2495 ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \
2496 /usr/ucb/* ) ;;
2497 *)
2498 # OSF1 and SCO ODT 3.0 have their own names for install.
2499 # Don't use installbsd from OSF since it installs stuff as root
2500 # by default.
2501 for ac_prog in ginstall scoinst install; do
2502 for ac_exec_ext in '' $ac_executable_extensions; do
2503 if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then
2504 if test $ac_prog = install &&
2505 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2506 # AIX install. It has an incompatible calling convention.
2507 :
2508 elif test $ac_prog = install &&
2509 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
2510 # program-specific install script used by HP pwplus--don't use.
2511 :
2512 else
2513 rm -rf conftest.one conftest.two conftest.dir
2514 echo one > conftest.one
2515 echo two > conftest.two
2516 mkdir conftest.dir
2517 if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" &&
2518 test -s conftest.one && test -s conftest.two &&
2519 test -s conftest.dir/conftest.one &&
2520 test -s conftest.dir/conftest.two
2521 then
2522 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
2523 break 3
2524 fi
2525 fi
2526 fi
2527 done
2528 done
2529 ;;
2530esac
2531
2532 done
2533IFS=$as_save_IFS
2534
2535rm -rf conftest.one conftest.two conftest.dir
2536
2537fi
2538 if test "${ac_cv_path_install+set}" = set; then
2539 INSTALL=$ac_cv_path_install
2540 else
2541 # As a last resort, use the slow shell script. Don't cache a
2542 # value for INSTALL within a source directory, because that will
2543 # break other packages using the cache if that directory is
2544 # removed, or if the value is a relative name.
2545 INSTALL=$ac_install_sh
2546 fi
2547fi
2548{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5
2549$as_echo "$INSTALL" >&6; }
2550
2551# Use test -z because SunOS4 sh mishandles braces in ${var-val}.
2552# It thinks the first close brace ends the variable substitution.
2553test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
2554
2555test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
2556
2557test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
2558
2559{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5
2560$as_echo_n "checking whether build environment is sane... " >&6; }
2561# Reject unsafe characters in $srcdir or the absolute working directory
2562# name. Accept space and tab only in the latter.
2563am_lf='
2564'
2565case `pwd` in
2566 *[\\\"\#\$\&\'\`$am_lf]*)
2567 as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;;
2568esac
2569case $srcdir in
2570 *[\\\"\#\$\&\'\`$am_lf\ \ ]*)
2571 as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;;
2572esac
2573
2574# Do 'set' in a subshell so we don't clobber the current shell's
2575# arguments. Must try -L first in case configure is actually a
2576# symlink; some systems play weird games with the mod time of symlinks
2577# (eg FreeBSD returns the mod time of the symlink's containing
2578# directory).
2579if (
2580 am_has_slept=no
2581 for am_try in 1 2; do
2582 echo "timestamp, slept: $am_has_slept" > conftest.file
2583 set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null`
2584 if test "$*" = "X"; then
2585 # -L didn't work.
2586 set X `ls -t "$srcdir/configure" conftest.file`
2587 fi
2588 if test "$*" != "X $srcdir/configure conftest.file" \
2589 && test "$*" != "X conftest.file $srcdir/configure"; then
2590
2591 # If neither matched, then we have a broken ls. This can happen
2592 # if, for instance, CONFIG_SHELL is bash and it inherits a
2593 # broken ls alias from the environment. This has actually
2594 # happened. Such a system could not be considered "sane".
2595 as_fn_error $? "ls -t appears to fail. Make sure there is not a broken
2596 alias in your environment" "$LINENO" 5
2597 fi
2598 if test "$2" = conftest.file || test $am_try -eq 2; then
2599 break
2600 fi
2601 # Just in case.
2602 sleep 1
2603 am_has_slept=yes
2604 done
2605 test "$2" = conftest.file
2606 )
2607then
2608 # Ok.
2609 :
2610else
2611 as_fn_error $? "newly created file is older than distributed files!
2612Check your system clock" "$LINENO" 5
2613fi
2614{ $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2615$as_echo "yes" >&6; }
2616# If we didn't sleep, we still need to ensure time stamps of config.status and
2617# generated files are strictly newer.
2618am_sleep_pid=
2619if grep 'slept: no' conftest.file >/dev/null 2>&1; then
2620 ( sleep 1 ) &
2621 am_sleep_pid=$!
2622fi
2623
2624rm -f conftest.file
2625
2626test "$program_prefix" != NONE &&
2627 program_transform_name="s&^&$program_prefix&;$program_transform_name"
2628# Use a double $ so make ignores it.
2629test "$program_suffix" != NONE &&
2630 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
2631# Double any \ or $.
2632# By default was `s,x,x', remove it if useless.
2633ac_script='s/[\\$]/&&/g;s/;s,x,x,$//'
2634program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"`
2635
2636# Expand $ac_aux_dir to an absolute path.
2637am_aux_dir=`cd "$ac_aux_dir" && pwd`
2638
2639if test x"${MISSING+set}" != xset; then
2640 case $am_aux_dir in
2641 *\ * | *\ *)
2642 MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;;
2643 *)
2644 MISSING="\${SHELL} $am_aux_dir/missing" ;;
2645 esac
2646fi
2647# Use eval to expand $SHELL
2648if eval "$MISSING --is-lightweight"; then
2649 am_missing_run="$MISSING "
2650else
2651 am_missing_run=
2652 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5
2653$as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;}
2654fi
2655
2656if test x"${install_sh+set}" != xset; then
2657 case $am_aux_dir in
2658 *\ * | *\ *)
2659 install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;;
2660 *)
2661 install_sh="\${SHELL} $am_aux_dir/install-sh"
2662 esac
2663fi
2664
2665# Installed binaries are usually stripped using 'strip' when the user
2666# run "make install-strip". However 'strip' might not be the right
2667# tool to use in cross-compilation environments, therefore Automake
2668# will honor the 'STRIP' environment variable to overrule this program.
2669if test "$cross_compiling" != no; then
2670 if test -n "$ac_tool_prefix"; then
2671 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2672set dummy ${ac_tool_prefix}strip; ac_word=$2
2673{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2674$as_echo_n "checking for $ac_word... " >&6; }
2675if ${ac_cv_prog_STRIP+:} false; then :
2676 $as_echo_n "(cached) " >&6
2677else
2678 if test -n "$STRIP"; then
2679 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2680else
2681as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2682for as_dir in $PATH
2683do
2684 IFS=$as_save_IFS
2685 test -z "$as_dir" && as_dir=.
2686 for ac_exec_ext in '' $ac_executable_extensions; do
2687 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2688 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2689 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2690 break 2
2691 fi
2692done
2693 done
2694IFS=$as_save_IFS
2695
2696fi
2697fi
2698STRIP=$ac_cv_prog_STRIP
2699if test -n "$STRIP"; then
2700 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5
2701$as_echo "$STRIP" >&6; }
2702else
2703 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2704$as_echo "no" >&6; }
2705fi
2706
2707
2708fi
2709if test -z "$ac_cv_prog_STRIP"; then
2710 ac_ct_STRIP=$STRIP
2711 # Extract the first word of "strip", so it can be a program name with args.
2712set dummy strip; ac_word=$2
2713{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2714$as_echo_n "checking for $ac_word... " >&6; }
2715if ${ac_cv_prog_ac_ct_STRIP+:} false; then :
2716 $as_echo_n "(cached) " >&6
2717else
2718 if test -n "$ac_ct_STRIP"; then
2719 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2720else
2721as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2722for as_dir in $PATH
2723do
2724 IFS=$as_save_IFS
2725 test -z "$as_dir" && as_dir=.
2726 for ac_exec_ext in '' $ac_executable_extensions; do
2727 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2728 ac_cv_prog_ac_ct_STRIP="strip"
2729 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2730 break 2
2731 fi
2732done
2733 done
2734IFS=$as_save_IFS
2735
2736fi
2737fi
2738ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2739if test -n "$ac_ct_STRIP"; then
2740 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5
2741$as_echo "$ac_ct_STRIP" >&6; }
2742else
2743 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2744$as_echo "no" >&6; }
2745fi
2746
2747 if test "x$ac_ct_STRIP" = x; then
2748 STRIP=":"
2749 else
2750 case $cross_compiling:$ac_tool_warned in
2751yes:)
2752{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
2753$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
2754ac_tool_warned=yes ;;
2755esac
2756 STRIP=$ac_ct_STRIP
2757 fi
2758else
2759 STRIP="$ac_cv_prog_STRIP"
2760fi
2761
2762fi
2763INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s"
2764
2765{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5
2766$as_echo_n "checking for a thread-safe mkdir -p... " >&6; }
2767if test -z "$MKDIR_P"; then
2768 if ${ac_cv_path_mkdir+:} false; then :
2769 $as_echo_n "(cached) " >&6
2770else
2771 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2772for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin
2773do
2774 IFS=$as_save_IFS
2775 test -z "$as_dir" && as_dir=.
2776 for ac_prog in mkdir gmkdir; do
2777 for ac_exec_ext in '' $ac_executable_extensions; do
2778 as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue
2779 case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #(
2780 'mkdir (GNU coreutils) '* | \
2781 'mkdir (coreutils) '* | \
2782 'mkdir (fileutils) '4.1*)
2783 ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext
2784 break 3;;
2785 esac
2786 done
2787 done
2788 done
2789IFS=$as_save_IFS
2790
2791fi
2792
2793 test -d ./--version && rmdir ./--version
2794 if test "${ac_cv_path_mkdir+set}" = set; then
2795 MKDIR_P="$ac_cv_path_mkdir -p"
2796 else
2797 # As a last resort, use the slow shell script. Don't cache a
2798 # value for MKDIR_P within a source directory, because that will
2799 # break other packages using the cache if that directory is
2800 # removed, or if the value is a relative name.
2801 MKDIR_P="$ac_install_sh -d"
2802 fi
2803fi
2804{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5
2805$as_echo "$MKDIR_P" >&6; }
2806
2807for ac_prog in gawk mawk nawk awk
2808do
2809 # Extract the first word of "$ac_prog", so it can be a program name with args.
2810set dummy $ac_prog; ac_word=$2
2811{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
2812$as_echo_n "checking for $ac_word... " >&6; }
2813if ${ac_cv_prog_AWK+:} false; then :
2814 $as_echo_n "(cached) " >&6
2815else
2816 if test -n "$AWK"; then
2817 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2818else
2819as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2820for as_dir in $PATH
2821do
2822 IFS=$as_save_IFS
2823 test -z "$as_dir" && as_dir=.
2824 for ac_exec_ext in '' $ac_executable_extensions; do
2825 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
2826 ac_cv_prog_AWK="$ac_prog"
2827 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
2828 break 2
2829 fi
2830done
2831 done
2832IFS=$as_save_IFS
2833
2834fi
2835fi
2836AWK=$ac_cv_prog_AWK
2837if test -n "$AWK"; then
2838 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5
2839$as_echo "$AWK" >&6; }
2840else
2841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2842$as_echo "no" >&6; }
2843fi
2844
2845
2846 test -n "$AWK" && break
2847done
2848
2849{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2850$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
2851set x ${MAKE-make}
2852ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2853if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
2854 $as_echo_n "(cached) " >&6
2855else
2856 cat >conftest.make <<\_ACEOF
2857SHELL = /bin/sh
2858all:
2859 @echo '@@@%%%=$(MAKE)=@@@%%%'
2860_ACEOF
2861# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
2862case `${MAKE-make} -f conftest.make 2>/dev/null` in
2863 *@@@%%%=?*=@@@%%%*)
2864 eval ac_cv_prog_make_${ac_make}_set=yes;;
2865 *)
2866 eval ac_cv_prog_make_${ac_make}_set=no;;
2867esac
2868rm -f conftest.make
2869fi
2870if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2871 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
2872$as_echo "yes" >&6; }
2873 SET_MAKE=
2874else
2875 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
2876$as_echo "no" >&6; }
2877 SET_MAKE="MAKE=${MAKE-make}"
2878fi
2879
2880rm -rf .tst 2>/dev/null
2881mkdir .tst 2>/dev/null
2882if test -d .tst; then
2883 am__leading_dot=.
2884else
2885 am__leading_dot=_
2886fi
2887rmdir .tst 2>/dev/null
2888
2889# Check whether --enable-silent-rules was given.
2890if test "${enable_silent_rules+set}" = set; then :
2891 enableval=$enable_silent_rules;
2892fi
2893
2894case $enable_silent_rules in # (((
2895 yes) AM_DEFAULT_VERBOSITY=0;;
2896 no) AM_DEFAULT_VERBOSITY=1;;
2897 *) AM_DEFAULT_VERBOSITY=1;;
2898esac
2899am_make=${MAKE-make}
2900{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5
2901$as_echo_n "checking whether $am_make supports nested variables... " >&6; }
2902if ${am_cv_make_support_nested_variables+:} false; then :
2903 $as_echo_n "(cached) " >&6
2904else
2905 if $as_echo 'TRUE=$(BAR$(V))
2906BAR0=false
2907BAR1=true
2908V=1
2909am__doit:
2910 @$(TRUE)
2911.PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then
2912 am_cv_make_support_nested_variables=yes
2913else
2914 am_cv_make_support_nested_variables=no
2915fi
2916fi
2917{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5
2918$as_echo "$am_cv_make_support_nested_variables" >&6; }
2919if test $am_cv_make_support_nested_variables = yes; then
2920 AM_V='$(V)'
2921 AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)'
2922else
2923 AM_V=$AM_DEFAULT_VERBOSITY
2924 AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY
2925fi
2926AM_BACKSLASH='\'
2927
2928if test "`cd $srcdir && pwd`" != "`pwd`"; then
2929 # Use -I$(srcdir) only when $(srcdir) != ., so that make's output
2930 # is not polluted with repeated "-I."
2931 am__isrc=' -I$(srcdir)'
2932 # test to see if srcdir already configured
2933 if test -f $srcdir/config.status; then
2934 as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5
2935 fi
2936fi
2937
2938# test whether we have cygpath
2939if test -z "$CYGPATH_W"; then
2940 if (cygpath --version) >/dev/null 2>/dev/null; then
2941 CYGPATH_W='cygpath -w'
2942 else
2943 CYGPATH_W=echo
2944 fi
2945fi
2946
2947
2948# Define the identity of the package.
2949 PACKAGE='smartmontools'
2950 VERSION='6.6'
2951
2952
2953cat >>confdefs.h <<_ACEOF
2954#define PACKAGE "$PACKAGE"
2955_ACEOF
2956
2957
2958cat >>confdefs.h <<_ACEOF
2959#define VERSION "$VERSION"
2960_ACEOF
2961
2962# Some tools Automake needs.
2963
2964ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2965
2966
2967AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2968
2969
2970AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2971
2972
2973AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2974
2975
2976MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2977
2978# For better backward compatibility. To be removed once Automake 1.9.x
2979# dies out for good. For more background, see:
2980# <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html>
2981# <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html>
2982mkdir_p='$(MKDIR_P)'
2983
2984# We need awk for the "check" target (and possibly the TAP driver). The
2985# system "awk" is bad on some platforms.
2986# Always define AMTAR for backward compatibility. Yes, it's still used
2987# in the wild :-( We should find a proper way to deprecate it ...
2988AMTAR='$${TAR-tar}'
2989
2990
2991# We'll loop over all known methods to create a tar archive until one works.
2992_am_tools='gnutar pax cpio none'
2993
2994am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -'
2995
2996
2997
2998
2999
3000
3001# POSIX will say in a future version that running "rm -f" with no argument
3002# is OK; and we want to be able to make that assumption in our Makefile
3003# recipes. So use an aggressive probe to check that the usage we want is
3004# actually supported "in the wild" to an acceptable degree.
3005# See automake bug#10828.
3006# To make any issue more visible, cause the running configure to be aborted
3007# by default if the 'rm' program in use doesn't match our expectations; the
3008# user can still override this though.
3009if rm -f && rm -fr && rm -rf; then : OK; else
3010 cat >&2 <<'END'
3011Oops!
3012
3013Your 'rm' program seems unable to run without file operands specified
3014on the command line, even when the '-f' option is present. This is contrary
3015to the behaviour of most rm programs out there, and not conforming with
3016the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542>
3017
3018Please tell bug-automake@gnu.org about your system, including the value
3019of your $PATH and any error possibly output before this message. This
3020can help us improve future automake versions.
3021
3022END
3023 if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then
3024 echo 'Configuration will proceed anyway, since you have set the' >&2
3025 echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2
3026 echo >&2
3027 else
3028 cat >&2 <<'END'
3029Aborting the configuration process, to ensure you take notice of the issue.
3030
3031You can download and install GNU coreutils to get an 'rm' implementation
3032that behaves properly: <http://www.gnu.org/software/coreutils/>.
3033
3034If you want to complete the configuration process using your problematic
3035'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM
3036to "yes", and re-run configure.
3037
3038END
3039 as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5
3040 fi
3041fi
3042
3043
3044smartmontools_cvs_tag=`echo '$Id: configure.ac 4594 2017-11-05 15:21:35Z chrfranke $'`
3045smartmontools_release_date=2017-11-05
3046smartmontools_release_time="15:20:58 UTC"
3047
3048
3049cat >>confdefs.h <<_ACEOF
3050#define SMARTMONTOOLS_CONFIGURE_ARGS "$ac_configure_args"
3051_ACEOF
3052
3053
3054cat >>confdefs.h <<_ACEOF
3055#define SMARTMONTOOLS_RELEASE_DATE "$smartmontools_release_date"
3056_ACEOF
3057
3058
3059cat >>confdefs.h <<_ACEOF
3060#define SMARTMONTOOLS_RELEASE_TIME "$smartmontools_release_time"
3061_ACEOF
3062
3063
3064cat >>confdefs.h <<_ACEOF
3065#define CONFIG_H_CVSID "$smartmontools_cvs_tag"
3066_ACEOF
3067
3068
3069cat >>confdefs.h <<_ACEOF
3070#define PACKAGE_HOMEPAGE "http://www.smartmontools.org/"
3071_ACEOF
3072
3073
3074
3075ac_config_headers="$ac_config_headers config.h"
3076
3077
3078
3079{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5
3080$as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; }
3081 # Check whether --enable-maintainer-mode was given.
3082if test "${enable_maintainer_mode+set}" = set; then :
3083 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
3084else
3085 USE_MAINTAINER_MODE=no
3086fi
3087
3088 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5
3089$as_echo "$USE_MAINTAINER_MODE" >&6; }
3090 if test $USE_MAINTAINER_MODE = yes; then
3091 MAINTAINER_MODE_TRUE=
3092 MAINTAINER_MODE_FALSE='#'
3093else
3094 MAINTAINER_MODE_TRUE='#'
3095 MAINTAINER_MODE_FALSE=
3096fi
3097
3098 MAINT=$MAINTAINER_MODE_TRUE
3099
3100
3101
3102ac_ext=cpp
3103ac_cpp='$CXXCPP $CPPFLAGS'
3104ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3105ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3106ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3107
3108ac_ext=cpp
3109ac_cpp='$CXXCPP $CPPFLAGS'
3110ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3111ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3112ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3113if test -z "$CXX"; then
3114 if test -n "$CCC"; then
3115 CXX=$CCC
3116 else
3117 if test -n "$ac_tool_prefix"; then
3118 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3119 do
3120 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3121set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3122{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3123$as_echo_n "checking for $ac_word... " >&6; }
3124if ${ac_cv_prog_CXX+:} false; then :
3125 $as_echo_n "(cached) " >&6
3126else
3127 if test -n "$CXX"; then
3128 ac_cv_prog_CXX="$CXX" # Let the user override the test.
3129else
3130as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3131for as_dir in $PATH
3132do
3133 IFS=$as_save_IFS
3134 test -z "$as_dir" && as_dir=.
3135 for ac_exec_ext in '' $ac_executable_extensions; do
3136 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3137 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
3138 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3139 break 2
3140 fi
3141done
3142 done
3143IFS=$as_save_IFS
3144
3145fi
3146fi
3147CXX=$ac_cv_prog_CXX
3148if test -n "$CXX"; then
3149 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5
3150$as_echo "$CXX" >&6; }
3151else
3152 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3153$as_echo "no" >&6; }
3154fi
3155
3156
3157 test -n "$CXX" && break
3158 done
3159fi
3160if test -z "$CXX"; then
3161 ac_ct_CXX=$CXX
3162 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
3163do
3164 # Extract the first word of "$ac_prog", so it can be a program name with args.
3165set dummy $ac_prog; ac_word=$2
3166{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3167$as_echo_n "checking for $ac_word... " >&6; }
3168if ${ac_cv_prog_ac_ct_CXX+:} false; then :
3169 $as_echo_n "(cached) " >&6
3170else
3171 if test -n "$ac_ct_CXX"; then
3172 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
3173else
3174as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3175for as_dir in $PATH
3176do
3177 IFS=$as_save_IFS
3178 test -z "$as_dir" && as_dir=.
3179 for ac_exec_ext in '' $ac_executable_extensions; do
3180 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3181 ac_cv_prog_ac_ct_CXX="$ac_prog"
3182 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3183 break 2
3184 fi
3185done
3186 done
3187IFS=$as_save_IFS
3188
3189fi
3190fi
3191ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
3192if test -n "$ac_ct_CXX"; then
3193 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5
3194$as_echo "$ac_ct_CXX" >&6; }
3195else
3196 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3197$as_echo "no" >&6; }
3198fi
3199
3200
3201 test -n "$ac_ct_CXX" && break
3202done
3203
3204 if test "x$ac_ct_CXX" = x; then
3205 CXX="g++"
3206 else
3207 case $cross_compiling:$ac_tool_warned in
3208yes:)
3209{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3210$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3211ac_tool_warned=yes ;;
3212esac
3213 CXX=$ac_ct_CXX
3214 fi
3215fi
3216
3217 fi
3218fi
3219# Provide some information about the compiler.
3220$as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5
3221set X $ac_compile
3222ac_compiler=$2
3223for ac_option in --version -v -V -qversion; do
3224 { { ac_try="$ac_compiler $ac_option >&5"
3225case "(($ac_try" in
3226 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3227 *) ac_try_echo=$ac_try;;
3228esac
3229eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3230$as_echo "$ac_try_echo"; } >&5
3231 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
3232 ac_status=$?
3233 if test -s conftest.err; then
3234 sed '10a\
3235... rest of stderr output deleted ...
3236 10q' conftest.err >conftest.er1
3237 cat conftest.er1 >&5
3238 fi
3239 rm -f conftest.er1 conftest.err
3240 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3241 test $ac_status = 0; }
3242done
3243
3244cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3245/* end confdefs.h. */
3246
3247int
3248main ()
3249{
3250
3251 ;
3252 return 0;
3253}
3254_ACEOF
3255ac_clean_files_save=$ac_clean_files
3256ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out"
3257# Try to create an executable without -o first, disregard a.out.
3258# It will help us diagnose broken compilers, and finding out an intuition
3259# of exeext.
3260{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5
3261$as_echo_n "checking whether the C++ compiler works... " >&6; }
3262ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
3263
3264# The possible output files:
3265ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*"
3266
3267ac_rmfiles=
3268for ac_file in $ac_files
3269do
3270 case $ac_file in
3271 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3272 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
3273 esac
3274done
3275rm -f $ac_rmfiles
3276
3277if { { ac_try="$ac_link_default"
3278case "(($ac_try" in
3279 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3280 *) ac_try_echo=$ac_try;;
3281esac
3282eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3283$as_echo "$ac_try_echo"; } >&5
3284 (eval "$ac_link_default") 2>&5
3285 ac_status=$?
3286 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3287 test $ac_status = 0; }; then :
3288 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
3289# So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
3290# in a Makefile. We should not override ac_cv_exeext if it was cached,
3291# so that the user can short-circuit this test for compilers unknown to
3292# Autoconf.
3293for ac_file in $ac_files ''
3294do
3295 test -f "$ac_file" || continue
3296 case $ac_file in
3297 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj )
3298 ;;
3299 [ab].out )
3300 # We found the default executable, but exeext='' is most
3301 # certainly right.
3302 break;;
3303 *.* )
3304 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
3305 then :; else
3306 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3307 fi
3308 # We set ac_cv_exeext here because the later test for it is not
3309 # safe: cross compilers may not add the suffix if given an `-o'
3310 # argument, so we may need to know it at that point already.
3311 # Even if this section looks crufty: it has the advantage of
3312 # actually working.
3313 break;;
3314 * )
3315 break;;
3316 esac
3317done
3318test "$ac_cv_exeext" = no && ac_cv_exeext=
3319
3320else
3321 ac_file=''
3322fi
3323if test -z "$ac_file"; then :
3324 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3325$as_echo "no" >&6; }
3326$as_echo "$as_me: failed program was:" >&5
3327sed 's/^/| /' conftest.$ac_ext >&5
3328
3329{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3330$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3331as_fn_error 77 "C++ compiler cannot create executables
3332See \`config.log' for more details" "$LINENO" 5; }
3333else
3334 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
3335$as_echo "yes" >&6; }
3336fi
3337{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5
3338$as_echo_n "checking for C++ compiler default output file name... " >&6; }
3339{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5
3340$as_echo "$ac_file" >&6; }
3341ac_exeext=$ac_cv_exeext
3342
3343rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out
3344ac_clean_files=$ac_clean_files_save
3345{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5
3346$as_echo_n "checking for suffix of executables... " >&6; }
3347if { { ac_try="$ac_link"
3348case "(($ac_try" in
3349 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3350 *) ac_try_echo=$ac_try;;
3351esac
3352eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3353$as_echo "$ac_try_echo"; } >&5
3354 (eval "$ac_link") 2>&5
3355 ac_status=$?
3356 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3357 test $ac_status = 0; }; then :
3358 # If both `conftest.exe' and `conftest' are `present' (well, observable)
3359# catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
3360# work properly (i.e., refer to `conftest.exe'), while it won't with
3361# `rm'.
3362for ac_file in conftest.exe conftest conftest.*; do
3363 test -f "$ac_file" || continue
3364 case $ac_file in
3365 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;;
3366 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
3367 break;;
3368 * ) break;;
3369 esac
3370done
3371else
3372 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3373$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3374as_fn_error $? "cannot compute suffix of executables: cannot compile and link
3375See \`config.log' for more details" "$LINENO" 5; }
3376fi
3377rm -f conftest conftest$ac_cv_exeext
3378{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5
3379$as_echo "$ac_cv_exeext" >&6; }
3380
3381rm -f conftest.$ac_ext
3382EXEEXT=$ac_cv_exeext
3383ac_exeext=$EXEEXT
3384cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3385/* end confdefs.h. */
3386#include <stdio.h>
3387int
3388main ()
3389{
3390FILE *f = fopen ("conftest.out", "w");
3391 return ferror (f) || fclose (f) != 0;
3392
3393 ;
3394 return 0;
3395}
3396_ACEOF
3397ac_clean_files="$ac_clean_files conftest.out"
3398# Check that the compiler produces executables we can run. If not, either
3399# the compiler is broken, or we cross compile.
3400{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5
3401$as_echo_n "checking whether we are cross compiling... " >&6; }
3402if test "$cross_compiling" != yes; then
3403 { { ac_try="$ac_link"
3404case "(($ac_try" in
3405 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3406 *) ac_try_echo=$ac_try;;
3407esac
3408eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3409$as_echo "$ac_try_echo"; } >&5
3410 (eval "$ac_link") 2>&5
3411 ac_status=$?
3412 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3413 test $ac_status = 0; }
3414 if { ac_try='./conftest$ac_cv_exeext'
3415 { { case "(($ac_try" in
3416 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3417 *) ac_try_echo=$ac_try;;
3418esac
3419eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3420$as_echo "$ac_try_echo"; } >&5
3421 (eval "$ac_try") 2>&5
3422 ac_status=$?
3423 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3424 test $ac_status = 0; }; }; then
3425 cross_compiling=no
3426 else
3427 if test "$cross_compiling" = maybe; then
3428 cross_compiling=yes
3429 else
3430 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3431$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3432as_fn_error $? "cannot run C++ compiled programs.
3433If you meant to cross compile, use \`--host'.
3434See \`config.log' for more details" "$LINENO" 5; }
3435 fi
3436 fi
3437fi
3438{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5
3439$as_echo "$cross_compiling" >&6; }
3440
3441rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out
3442ac_clean_files=$ac_clean_files_save
3443{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5
3444$as_echo_n "checking for suffix of object files... " >&6; }
3445if ${ac_cv_objext+:} false; then :
3446 $as_echo_n "(cached) " >&6
3447else
3448 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3449/* end confdefs.h. */
3450
3451int
3452main ()
3453{
3454
3455 ;
3456 return 0;
3457}
3458_ACEOF
3459rm -f conftest.o conftest.obj
3460if { { ac_try="$ac_compile"
3461case "(($ac_try" in
3462 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3463 *) ac_try_echo=$ac_try;;
3464esac
3465eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
3466$as_echo "$ac_try_echo"; } >&5
3467 (eval "$ac_compile") 2>&5
3468 ac_status=$?
3469 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
3470 test $ac_status = 0; }; then :
3471 for ac_file in conftest.o conftest.obj conftest.*; do
3472 test -f "$ac_file" || continue;
3473 case $ac_file in
3474 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;;
3475 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
3476 break;;
3477 esac
3478done
3479else
3480 $as_echo "$as_me: failed program was:" >&5
3481sed 's/^/| /' conftest.$ac_ext >&5
3482
3483{ { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
3484$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
3485as_fn_error $? "cannot compute suffix of object files: cannot compile
3486See \`config.log' for more details" "$LINENO" 5; }
3487fi
3488rm -f conftest.$ac_cv_objext conftest.$ac_ext
3489fi
3490{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5
3491$as_echo "$ac_cv_objext" >&6; }
3492OBJEXT=$ac_cv_objext
3493ac_objext=$OBJEXT
3494{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5
3495$as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; }
3496if ${ac_cv_cxx_compiler_gnu+:} false; then :
3497 $as_echo_n "(cached) " >&6
3498else
3499 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3500/* end confdefs.h. */
3501
3502int
3503main ()
3504{
3505#ifndef __GNUC__
3506 choke me
3507#endif
3508
3509 ;
3510 return 0;
3511}
3512_ACEOF
3513if ac_fn_cxx_try_compile "$LINENO"; then :
3514 ac_compiler_gnu=yes
3515else
3516 ac_compiler_gnu=no
3517fi
3518rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3519ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
3520
3521fi
3522{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5
3523$as_echo "$ac_cv_cxx_compiler_gnu" >&6; }
3524if test $ac_compiler_gnu = yes; then
3525 GXX=yes
3526else
3527 GXX=
3528fi
3529ac_test_CXXFLAGS=${CXXFLAGS+set}
3530ac_save_CXXFLAGS=$CXXFLAGS
3531{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5
3532$as_echo_n "checking whether $CXX accepts -g... " >&6; }
3533if ${ac_cv_prog_cxx_g+:} false; then :
3534 $as_echo_n "(cached) " >&6
3535else
3536 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
3537 ac_cxx_werror_flag=yes
3538 ac_cv_prog_cxx_g=no
3539 CXXFLAGS="-g"
3540 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3541/* end confdefs.h. */
3542
3543int
3544main ()
3545{
3546
3547 ;
3548 return 0;
3549}
3550_ACEOF
3551if ac_fn_cxx_try_compile "$LINENO"; then :
3552 ac_cv_prog_cxx_g=yes
3553else
3554 CXXFLAGS=""
3555 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3556/* end confdefs.h. */
3557
3558int
3559main ()
3560{
3561
3562 ;
3563 return 0;
3564}
3565_ACEOF
3566if ac_fn_cxx_try_compile "$LINENO"; then :
3567
3568else
3569 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3570 CXXFLAGS="-g"
3571 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
3572/* end confdefs.h. */
3573
3574int
3575main ()
3576{
3577
3578 ;
3579 return 0;
3580}
3581_ACEOF
3582if ac_fn_cxx_try_compile "$LINENO"; then :
3583 ac_cv_prog_cxx_g=yes
3584fi
3585rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3586fi
3587rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3588fi
3589rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3590 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
3591fi
3592{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5
3593$as_echo "$ac_cv_prog_cxx_g" >&6; }
3594if test "$ac_test_CXXFLAGS" = set; then
3595 CXXFLAGS=$ac_save_CXXFLAGS
3596elif test $ac_cv_prog_cxx_g = yes; then
3597 if test "$GXX" = yes; then
3598 CXXFLAGS="-g -O2"
3599 else
3600 CXXFLAGS="-g"
3601 fi
3602else
3603 if test "$GXX" = yes; then
3604 CXXFLAGS="-O2"
3605 else
3606 CXXFLAGS=
3607 fi
3608fi
3609ac_ext=cpp
3610ac_cpp='$CXXCPP $CPPFLAGS'
3611ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3612ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3613ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3614DEPDIR="${am__leading_dot}deps"
3615
3616ac_config_commands="$ac_config_commands depfiles"
3617
3618
3619am_make=${MAKE-make}
3620cat > confinc << 'END'
3621am__doit:
3622 @echo this is the am__doit target
3623.PHONY: am__doit
3624END
3625# If we don't find an include directive, just comment out the code.
3626{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5
3627$as_echo_n "checking for style of include used by $am_make... " >&6; }
3628am__include="#"
3629am__quote=
3630_am_result=none
3631# First try GNU make style include.
3632echo "include confinc" > confmf
3633# Ignore all kinds of additional output from 'make'.
3634case `$am_make -s -f confmf 2> /dev/null` in #(
3635*the\ am__doit\ target*)
3636 am__include=include
3637 am__quote=
3638 _am_result=GNU
3639 ;;
3640esac
3641# Now try BSD make style include.
3642if test "$am__include" = "#"; then
3643 echo '.include "confinc"' > confmf
3644 case `$am_make -s -f confmf 2> /dev/null` in #(
3645 *the\ am__doit\ target*)
3646 am__include=.include
3647 am__quote="\""
3648 _am_result=BSD
3649 ;;
3650 esac
3651fi
3652
3653
3654{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5
3655$as_echo "$_am_result" >&6; }
3656rm -f confinc confmf
3657
3658# Check whether --enable-dependency-tracking was given.
3659if test "${enable_dependency_tracking+set}" = set; then :
3660 enableval=$enable_dependency_tracking;
3661fi
3662
3663if test "x$enable_dependency_tracking" != xno; then
3664 am_depcomp="$ac_aux_dir/depcomp"
3665 AMDEPBACKSLASH='\'
3666 am__nodep='_no'
3667fi
3668 if test "x$enable_dependency_tracking" != xno; then
3669 AMDEP_TRUE=
3670 AMDEP_FALSE='#'
3671else
3672 AMDEP_TRUE='#'
3673 AMDEP_FALSE=
3674fi
3675
3676
3677
3678depcc="$CXX" am_compiler_list=
3679
3680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
3681$as_echo_n "checking dependency style of $depcc... " >&6; }
3682if ${am_cv_CXX_dependencies_compiler_type+:} false; then :
3683 $as_echo_n "(cached) " >&6
3684else
3685 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3686 # We make a subdir and do the tests there. Otherwise we can end up
3687 # making bogus files that we don't know about and never remove. For
3688 # instance it was reported that on HP-UX the gcc test will end up
3689 # making a dummy file named 'D' -- because '-MD' means "put the output
3690 # in D".
3691 rm -rf conftest.dir
3692 mkdir conftest.dir
3693 # Copy depcomp to subdir because otherwise we won't find it if we're
3694 # using a relative directory.
3695 cp "$am_depcomp" conftest.dir
3696 cd conftest.dir
3697 # We will build objects and dependencies in a subdirectory because
3698 # it helps to detect inapplicable dependency modes. For instance
3699 # both Tru64's cc and ICC support -MD to output dependencies as a
3700 # side effect of compilation, but ICC will put the dependencies in
3701 # the current directory while Tru64 will put them in the object
3702 # directory.
3703 mkdir sub
3704
3705 am_cv_CXX_dependencies_compiler_type=none
3706 if test "$am_compiler_list" = ""; then
3707 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3708 fi
3709 am__universal=false
3710 case " $depcc " in #(
3711 *\ -arch\ *\ -arch\ *) am__universal=true ;;
3712 esac
3713
3714 for depmode in $am_compiler_list; do
3715 # Setup a source with many dependencies, because some compilers
3716 # like to wrap large dependency lists on column 80 (with \), and
3717 # we should not choose a depcomp mode which is confused by this.
3718 #
3719 # We need to recreate these files for each test, as the compiler may
3720 # overwrite some of them when testing with obscure command lines.
3721 # This happens at least with the AIX C compiler.
3722 : > sub/conftest.c
3723 for i in 1 2 3 4 5 6; do
3724 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3725 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
3726 # Solaris 10 /bin/sh.
3727 echo '/* dummy */' > sub/conftst$i.h
3728 done
3729 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3730
3731 # We check with '-c' and '-o' for the sake of the "dashmstdout"
3732 # mode. It turns out that the SunPro C++ compiler does not properly
3733 # handle '-M -o', and we need to detect this. Also, some Intel
3734 # versions had trouble with output in subdirs.
3735 am__obj=sub/conftest.${OBJEXT-o}
3736 am__minus_obj="-o $am__obj"
3737 case $depmode in
3738 gcc)
3739 # This depmode causes a compiler race in universal mode.
3740 test "$am__universal" = false || continue
3741 ;;
3742 nosideeffect)
3743 # After this tag, mechanisms are not by side-effect, so they'll
3744 # only be used when explicitly requested.
3745 if test "x$enable_dependency_tracking" = xyes; then
3746 continue
3747 else
3748 break
3749 fi
3750 ;;
3751 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
3752 # This compiler won't grok '-c -o', but also, the minuso test has
3753 # not run yet. These depmodes are late enough in the game, and
3754 # so weak that their functioning should not be impacted.
3755 am__obj=conftest.${OBJEXT-o}
3756 am__minus_obj=
3757 ;;
3758 none) break ;;
3759 esac
3760 if depmode=$depmode \
3761 source=sub/conftest.c object=$am__obj \
3762 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3763 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
3764 >/dev/null 2>conftest.err &&
3765 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
3766 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3767 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
3768 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3769 # icc doesn't choke on unknown options, it will just issue warnings
3770 # or remarks (even with -Werror). So we grep stderr for any message
3771 # that says an option was ignored or not supported.
3772 # When given -MP, icc 7.0 and 7.1 complain thusly:
3773 # icc: Command line warning: ignoring option '-M'; no argument required
3774 # The diagnosis changed in icc 8.0:
3775 # icc: Command line remark: option '-MP' not supported
3776 if (grep 'ignoring option' conftest.err ||
3777 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3778 am_cv_CXX_dependencies_compiler_type=$depmode
3779 break
3780 fi
3781 fi
3782 done
3783
3784 cd ..
3785 rm -rf conftest.dir
3786else
3787 am_cv_CXX_dependencies_compiler_type=none
3788fi
3789
3790fi
3791{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5
3792$as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; }
3793CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3794
3795 if
3796 test "x$enable_dependency_tracking" != xno \
3797 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3798 am__fastdepCXX_TRUE=
3799 am__fastdepCXX_FALSE='#'
3800else
3801 am__fastdepCXX_TRUE='#'
3802 am__fastdepCXX_FALSE=
3803fi
3804
3805
3806ac_ext=c
3807ac_cpp='$CPP $CPPFLAGS'
3808ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3809ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3810ac_compiler_gnu=$ac_cv_c_compiler_gnu
3811if test -n "$ac_tool_prefix"; then
3812 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3813set dummy ${ac_tool_prefix}gcc; ac_word=$2
3814{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3815$as_echo_n "checking for $ac_word... " >&6; }
3816if ${ac_cv_prog_CC+:} false; then :
3817 $as_echo_n "(cached) " >&6
3818else
3819 if test -n "$CC"; then
3820 ac_cv_prog_CC="$CC" # Let the user override the test.
3821else
3822as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3823for as_dir in $PATH
3824do
3825 IFS=$as_save_IFS
3826 test -z "$as_dir" && as_dir=.
3827 for ac_exec_ext in '' $ac_executable_extensions; do
3828 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3829 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3830 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3831 break 2
3832 fi
3833done
3834 done
3835IFS=$as_save_IFS
3836
3837fi
3838fi
3839CC=$ac_cv_prog_CC
3840if test -n "$CC"; then
3841 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3842$as_echo "$CC" >&6; }
3843else
3844 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3845$as_echo "no" >&6; }
3846fi
3847
3848
3849fi
3850if test -z "$ac_cv_prog_CC"; then
3851 ac_ct_CC=$CC
3852 # Extract the first word of "gcc", so it can be a program name with args.
3853set dummy gcc; ac_word=$2
3854{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3855$as_echo_n "checking for $ac_word... " >&6; }
3856if ${ac_cv_prog_ac_ct_CC+:} false; then :
3857 $as_echo_n "(cached) " >&6
3858else
3859 if test -n "$ac_ct_CC"; then
3860 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3861else
3862as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3863for as_dir in $PATH
3864do
3865 IFS=$as_save_IFS
3866 test -z "$as_dir" && as_dir=.
3867 for ac_exec_ext in '' $ac_executable_extensions; do
3868 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3869 ac_cv_prog_ac_ct_CC="gcc"
3870 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3871 break 2
3872 fi
3873done
3874 done
3875IFS=$as_save_IFS
3876
3877fi
3878fi
3879ac_ct_CC=$ac_cv_prog_ac_ct_CC
3880if test -n "$ac_ct_CC"; then
3881 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
3882$as_echo "$ac_ct_CC" >&6; }
3883else
3884 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3885$as_echo "no" >&6; }
3886fi
3887
3888 if test "x$ac_ct_CC" = x; then
3889 CC=""
3890 else
3891 case $cross_compiling:$ac_tool_warned in
3892yes:)
3893{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
3894$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
3895ac_tool_warned=yes ;;
3896esac
3897 CC=$ac_ct_CC
3898 fi
3899else
3900 CC="$ac_cv_prog_CC"
3901fi
3902
3903if test -z "$CC"; then
3904 if test -n "$ac_tool_prefix"; then
3905 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3906set dummy ${ac_tool_prefix}cc; ac_word=$2
3907{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3908$as_echo_n "checking for $ac_word... " >&6; }
3909if ${ac_cv_prog_CC+:} false; then :
3910 $as_echo_n "(cached) " >&6
3911else
3912 if test -n "$CC"; then
3913 ac_cv_prog_CC="$CC" # Let the user override the test.
3914else
3915as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3916for as_dir in $PATH
3917do
3918 IFS=$as_save_IFS
3919 test -z "$as_dir" && as_dir=.
3920 for ac_exec_ext in '' $ac_executable_extensions; do
3921 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3922 ac_cv_prog_CC="${ac_tool_prefix}cc"
3923 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3924 break 2
3925 fi
3926done
3927 done
3928IFS=$as_save_IFS
3929
3930fi
3931fi
3932CC=$ac_cv_prog_CC
3933if test -n "$CC"; then
3934 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3935$as_echo "$CC" >&6; }
3936else
3937 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3938$as_echo "no" >&6; }
3939fi
3940
3941
3942 fi
3943fi
3944if test -z "$CC"; then
3945 # Extract the first word of "cc", so it can be a program name with args.
3946set dummy cc; ac_word=$2
3947{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
3948$as_echo_n "checking for $ac_word... " >&6; }
3949if ${ac_cv_prog_CC+:} false; then :
3950 $as_echo_n "(cached) " >&6
3951else
3952 if test -n "$CC"; then
3953 ac_cv_prog_CC="$CC" # Let the user override the test.
3954else
3955 ac_prog_rejected=no
3956as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3957for as_dir in $PATH
3958do
3959 IFS=$as_save_IFS
3960 test -z "$as_dir" && as_dir=.
3961 for ac_exec_ext in '' $ac_executable_extensions; do
3962 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
3963 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3964 ac_prog_rejected=yes
3965 continue
3966 fi
3967 ac_cv_prog_CC="cc"
3968 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
3969 break 2
3970 fi
3971done
3972 done
3973IFS=$as_save_IFS
3974
3975if test $ac_prog_rejected = yes; then
3976 # We found a bogon in the path, so make sure we never use it.
3977 set dummy $ac_cv_prog_CC
3978 shift
3979 if test $# != 0; then
3980 # We chose a different compiler from the bogus one.
3981 # However, it has the same basename, so the bogon will be chosen
3982 # first if we set CC to just the basename; use the full file name.
3983 shift
3984 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3985 fi
3986fi
3987fi
3988fi
3989CC=$ac_cv_prog_CC
3990if test -n "$CC"; then
3991 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
3992$as_echo "$CC" >&6; }
3993else
3994 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
3995$as_echo "no" >&6; }
3996fi
3997
3998
3999fi
4000if test -z "$CC"; then
4001 if test -n "$ac_tool_prefix"; then
4002 for ac_prog in cl.exe
4003 do
4004 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
4005set dummy $ac_tool_prefix$ac_prog; ac_word=$2
4006{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4007$as_echo_n "checking for $ac_word... " >&6; }
4008if ${ac_cv_prog_CC+:} false; then :
4009 $as_echo_n "(cached) " >&6
4010else
4011 if test -n "$CC"; then
4012 ac_cv_prog_CC="$CC" # Let the user override the test.
4013else
4014as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4015for as_dir in $PATH
4016do
4017 IFS=$as_save_IFS
4018 test -z "$as_dir" && as_dir=.
4019 for ac_exec_ext in '' $ac_executable_extensions; do
4020 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4021 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
4022 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4023 break 2
4024 fi
4025done
4026 done
4027IFS=$as_save_IFS
4028
4029fi
4030fi
4031CC=$ac_cv_prog_CC
4032if test -n "$CC"; then
4033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5
4034$as_echo "$CC" >&6; }
4035else
4036 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4037$as_echo "no" >&6; }
4038fi
4039
4040
4041 test -n "$CC" && break
4042 done
4043fi
4044if test -z "$CC"; then
4045 ac_ct_CC=$CC
4046 for ac_prog in cl.exe
4047do
4048 # Extract the first word of "$ac_prog", so it can be a program name with args.
4049set dummy $ac_prog; ac_word=$2
4050{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4051$as_echo_n "checking for $ac_word... " >&6; }
4052if ${ac_cv_prog_ac_ct_CC+:} false; then :
4053 $as_echo_n "(cached) " >&6
4054else
4055 if test -n "$ac_ct_CC"; then
4056 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
4057else
4058as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4059for as_dir in $PATH
4060do
4061 IFS=$as_save_IFS
4062 test -z "$as_dir" && as_dir=.
4063 for ac_exec_ext in '' $ac_executable_extensions; do
4064 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4065 ac_cv_prog_ac_ct_CC="$ac_prog"
4066 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4067 break 2
4068 fi
4069done
4070 done
4071IFS=$as_save_IFS
4072
4073fi
4074fi
4075ac_ct_CC=$ac_cv_prog_ac_ct_CC
4076if test -n "$ac_ct_CC"; then
4077 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5
4078$as_echo "$ac_ct_CC" >&6; }
4079else
4080 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4081$as_echo "no" >&6; }
4082fi
4083
4084
4085 test -n "$ac_ct_CC" && break
4086done
4087
4088 if test "x$ac_ct_CC" = x; then
4089 CC=""
4090 else
4091 case $cross_compiling:$ac_tool_warned in
4092yes:)
4093{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4094$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4095ac_tool_warned=yes ;;
4096esac
4097 CC=$ac_ct_CC
4098 fi
4099fi
4100
4101fi
4102
4103
4104test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
4105$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
4106as_fn_error $? "no acceptable C compiler found in \$PATH
4107See \`config.log' for more details" "$LINENO" 5; }
4108
4109# Provide some information about the compiler.
4110$as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5
4111set X $ac_compile
4112ac_compiler=$2
4113for ac_option in --version -v -V -qversion; do
4114 { { ac_try="$ac_compiler $ac_option >&5"
4115case "(($ac_try" in
4116 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4117 *) ac_try_echo=$ac_try;;
4118esac
4119eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\""
4120$as_echo "$ac_try_echo"; } >&5
4121 (eval "$ac_compiler $ac_option >&5") 2>conftest.err
4122 ac_status=$?
4123 if test -s conftest.err; then
4124 sed '10a\
4125... rest of stderr output deleted ...
4126 10q' conftest.err >conftest.er1
4127 cat conftest.er1 >&5
4128 fi
4129 rm -f conftest.er1 conftest.err
4130 $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5
4131 test $ac_status = 0; }
4132done
4133
4134{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5
4135$as_echo_n "checking whether we are using the GNU C compiler... " >&6; }
4136if ${ac_cv_c_compiler_gnu+:} false; then :
4137 $as_echo_n "(cached) " >&6
4138else
4139 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4140/* end confdefs.h. */
4141
4142int
4143main ()
4144{
4145#ifndef __GNUC__
4146 choke me
4147#endif
4148
4149 ;
4150 return 0;
4151}
4152_ACEOF
4153if ac_fn_c_try_compile "$LINENO"; then :
4154 ac_compiler_gnu=yes
4155else
4156 ac_compiler_gnu=no
4157fi
4158rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4159ac_cv_c_compiler_gnu=$ac_compiler_gnu
4160
4161fi
4162{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5
4163$as_echo "$ac_cv_c_compiler_gnu" >&6; }
4164if test $ac_compiler_gnu = yes; then
4165 GCC=yes
4166else
4167 GCC=
4168fi
4169ac_test_CFLAGS=${CFLAGS+set}
4170ac_save_CFLAGS=$CFLAGS
4171{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5
4172$as_echo_n "checking whether $CC accepts -g... " >&6; }
4173if ${ac_cv_prog_cc_g+:} false; then :
4174 $as_echo_n "(cached) " >&6
4175else
4176 ac_save_c_werror_flag=$ac_c_werror_flag
4177 ac_c_werror_flag=yes
4178 ac_cv_prog_cc_g=no
4179 CFLAGS="-g"
4180 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4181/* end confdefs.h. */
4182
4183int
4184main ()
4185{
4186
4187 ;
4188 return 0;
4189}
4190_ACEOF
4191if ac_fn_c_try_compile "$LINENO"; then :
4192 ac_cv_prog_cc_g=yes
4193else
4194 CFLAGS=""
4195 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4196/* end confdefs.h. */
4197
4198int
4199main ()
4200{
4201
4202 ;
4203 return 0;
4204}
4205_ACEOF
4206if ac_fn_c_try_compile "$LINENO"; then :
4207
4208else
4209 ac_c_werror_flag=$ac_save_c_werror_flag
4210 CFLAGS="-g"
4211 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4212/* end confdefs.h. */
4213
4214int
4215main ()
4216{
4217
4218 ;
4219 return 0;
4220}
4221_ACEOF
4222if ac_fn_c_try_compile "$LINENO"; then :
4223 ac_cv_prog_cc_g=yes
4224fi
4225rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4226fi
4227rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4228fi
4229rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4230 ac_c_werror_flag=$ac_save_c_werror_flag
4231fi
4232{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5
4233$as_echo "$ac_cv_prog_cc_g" >&6; }
4234if test "$ac_test_CFLAGS" = set; then
4235 CFLAGS=$ac_save_CFLAGS
4236elif test $ac_cv_prog_cc_g = yes; then
4237 if test "$GCC" = yes; then
4238 CFLAGS="-g -O2"
4239 else
4240 CFLAGS="-g"
4241 fi
4242else
4243 if test "$GCC" = yes; then
4244 CFLAGS="-O2"
4245 else
4246 CFLAGS=
4247 fi
4248fi
4249{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5
4250$as_echo_n "checking for $CC option to accept ISO C89... " >&6; }
4251if ${ac_cv_prog_cc_c89+:} false; then :
4252 $as_echo_n "(cached) " >&6
4253else
4254 ac_cv_prog_cc_c89=no
4255ac_save_CC=$CC
4256cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4257/* end confdefs.h. */
4258#include <stdarg.h>
4259#include <stdio.h>
4260struct stat;
4261/* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
4262struct buf { int x; };
4263FILE * (*rcsopen) (struct buf *, struct stat *, int);
4264static char *e (p, i)
4265 char **p;
4266 int i;
4267{
4268 return p[i];
4269}
4270static char *f (char * (*g) (char **, int), char **p, ...)
4271{
4272 char *s;
4273 va_list v;
4274 va_start (v,p);
4275 s = g (p, va_arg (v,int));
4276 va_end (v);
4277 return s;
4278}
4279
4280/* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
4281 function prototypes and stuff, but not '\xHH' hex character constants.
4282 These don't provoke an error unfortunately, instead are silently treated
4283 as 'x'. The following induces an error, until -std is added to get
4284 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
4285 array size at least. It's necessary to write '\x00'==0 to get something
4286 that's true only with -std. */
4287int osf4_cc_array ['\x00' == 0 ? 1 : -1];
4288
4289/* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
4290 inside strings and character constants. */
4291#define FOO(x) 'x'
4292int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
4293
4294int test (int i, double x);
4295struct s1 {int (*f) (int a);};
4296struct s2 {int (*f) (double a);};
4297int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
4298int argc;
4299char **argv;
4300int
4301main ()
4302{
4303return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
4304 ;
4305 return 0;
4306}
4307_ACEOF
4308for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
4309 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
4310do
4311 CC="$ac_save_CC $ac_arg"
4312 if ac_fn_c_try_compile "$LINENO"; then :
4313 ac_cv_prog_cc_c89=$ac_arg
4314fi
4315rm -f core conftest.err conftest.$ac_objext
4316 test "x$ac_cv_prog_cc_c89" != "xno" && break
4317done
4318rm -f conftest.$ac_ext
4319CC=$ac_save_CC
4320
4321fi
4322# AC_CACHE_VAL
4323case "x$ac_cv_prog_cc_c89" in
4324 x)
4325 { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5
4326$as_echo "none needed" >&6; } ;;
4327 xno)
4328 { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5
4329$as_echo "unsupported" >&6; } ;;
4330 *)
4331 CC="$CC $ac_cv_prog_cc_c89"
4332 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5
4333$as_echo "$ac_cv_prog_cc_c89" >&6; } ;;
4334esac
4335if test "x$ac_cv_prog_cc_c89" != xno; then :
4336
4337fi
4338
4339ac_ext=cpp
4340ac_cpp='$CXXCPP $CPPFLAGS'
4341ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4342ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4343ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4344
4345ac_ext=c
4346ac_cpp='$CPP $CPPFLAGS'
4347ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4348ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4349ac_compiler_gnu=$ac_cv_c_compiler_gnu
4350{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5
4351$as_echo_n "checking whether $CC understands -c and -o together... " >&6; }
4352if ${am_cv_prog_cc_c_o+:} false; then :
4353 $as_echo_n "(cached) " >&6
4354else
4355 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
4356/* end confdefs.h. */
4357
4358int
4359main ()
4360{
4361
4362 ;
4363 return 0;
4364}
4365_ACEOF
4366 # Make sure it works both with $CC and with simple cc.
4367 # Following AC_PROG_CC_C_O, we do the test twice because some
4368 # compilers refuse to overwrite an existing .o file with -o,
4369 # though they will create one.
4370 am_cv_prog_cc_c_o=yes
4371 for am_i in 1 2; do
4372 if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5
4373 ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5
4374 ac_status=$?
4375 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4376 (exit $ac_status); } \
4377 && test -f conftest2.$ac_objext; then
4378 : OK
4379 else
4380 am_cv_prog_cc_c_o=no
4381 break
4382 fi
4383 done
4384 rm -f core conftest*
4385 unset am_i
4386fi
4387{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5
4388$as_echo "$am_cv_prog_cc_c_o" >&6; }
4389if test "$am_cv_prog_cc_c_o" != yes; then
4390 # Losing compiler, so override with the script.
4391 # FIXME: It is wrong to rewrite CC.
4392 # But if we don't then we get into trouble of one sort or another.
4393 # A longer-term fix would be to have automake use am__CC in this case,
4394 # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)"
4395 CC="$am_aux_dir/compile $CC"
4396fi
4397ac_ext=cpp
4398ac_cpp='$CXXCPP $CPPFLAGS'
4399ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4400ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4401ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4402
4403
4404depcc="$CC" am_compiler_list=
4405
4406{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4407$as_echo_n "checking dependency style of $depcc... " >&6; }
4408if ${am_cv_CC_dependencies_compiler_type+:} false; then :
4409 $as_echo_n "(cached) " >&6
4410else
4411 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4412 # We make a subdir and do the tests there. Otherwise we can end up
4413 # making bogus files that we don't know about and never remove. For
4414 # instance it was reported that on HP-UX the gcc test will end up
4415 # making a dummy file named 'D' -- because '-MD' means "put the output
4416 # in D".
4417 rm -rf conftest.dir
4418 mkdir conftest.dir
4419 # Copy depcomp to subdir because otherwise we won't find it if we're
4420 # using a relative directory.
4421 cp "$am_depcomp" conftest.dir
4422 cd conftest.dir
4423 # We will build objects and dependencies in a subdirectory because
4424 # it helps to detect inapplicable dependency modes. For instance
4425 # both Tru64's cc and ICC support -MD to output dependencies as a
4426 # side effect of compilation, but ICC will put the dependencies in
4427 # the current directory while Tru64 will put them in the object
4428 # directory.
4429 mkdir sub
4430
4431 am_cv_CC_dependencies_compiler_type=none
4432 if test "$am_compiler_list" = ""; then
4433 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4434 fi
4435 am__universal=false
4436 case " $depcc " in #(
4437 *\ -arch\ *\ -arch\ *) am__universal=true ;;
4438 esac
4439
4440 for depmode in $am_compiler_list; do
4441 # Setup a source with many dependencies, because some compilers
4442 # like to wrap large dependency lists on column 80 (with \), and
4443 # we should not choose a depcomp mode which is confused by this.
4444 #
4445 # We need to recreate these files for each test, as the compiler may
4446 # overwrite some of them when testing with obscure command lines.
4447 # This happens at least with the AIX C compiler.
4448 : > sub/conftest.c
4449 for i in 1 2 3 4 5 6; do
4450 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4451 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4452 # Solaris 10 /bin/sh.
4453 echo '/* dummy */' > sub/conftst$i.h
4454 done
4455 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4456
4457 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4458 # mode. It turns out that the SunPro C++ compiler does not properly
4459 # handle '-M -o', and we need to detect this. Also, some Intel
4460 # versions had trouble with output in subdirs.
4461 am__obj=sub/conftest.${OBJEXT-o}
4462 am__minus_obj="-o $am__obj"
4463 case $depmode in
4464 gcc)
4465 # This depmode causes a compiler race in universal mode.
4466 test "$am__universal" = false || continue
4467 ;;
4468 nosideeffect)
4469 # After this tag, mechanisms are not by side-effect, so they'll
4470 # only be used when explicitly requested.
4471 if test "x$enable_dependency_tracking" = xyes; then
4472 continue
4473 else
4474 break
4475 fi
4476 ;;
4477 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4478 # This compiler won't grok '-c -o', but also, the minuso test has
4479 # not run yet. These depmodes are late enough in the game, and
4480 # so weak that their functioning should not be impacted.
4481 am__obj=conftest.${OBJEXT-o}
4482 am__minus_obj=
4483 ;;
4484 none) break ;;
4485 esac
4486 if depmode=$depmode \
4487 source=sub/conftest.c object=$am__obj \
4488 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4489 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4490 >/dev/null 2>conftest.err &&
4491 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4492 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4493 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4494 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4495 # icc doesn't choke on unknown options, it will just issue warnings
4496 # or remarks (even with -Werror). So we grep stderr for any message
4497 # that says an option was ignored or not supported.
4498 # When given -MP, icc 7.0 and 7.1 complain thusly:
4499 # icc: Command line warning: ignoring option '-M'; no argument required
4500 # The diagnosis changed in icc 8.0:
4501 # icc: Command line remark: option '-MP' not supported
4502 if (grep 'ignoring option' conftest.err ||
4503 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4504 am_cv_CC_dependencies_compiler_type=$depmode
4505 break
4506 fi
4507 fi
4508 done
4509
4510 cd ..
4511 rm -rf conftest.dir
4512else
4513 am_cv_CC_dependencies_compiler_type=none
4514fi
4515
4516fi
4517{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5
4518$as_echo "$am_cv_CC_dependencies_compiler_type" >&6; }
4519CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4520
4521 if
4522 test "x$enable_dependency_tracking" != xno \
4523 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4524 am__fastdepCC_TRUE=
4525 am__fastdepCC_FALSE='#'
4526else
4527 am__fastdepCC_TRUE='#'
4528 am__fastdepCC_FALSE=
4529fi
4530
4531
4532# By default we simply use the C compiler to build assembly code.
4533
4534test "${CCAS+set}" = set || CCAS=$CC
4535test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4536
4537
4538
4539depcc="$CCAS" am_compiler_list=
4540
4541{ $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5
4542$as_echo_n "checking dependency style of $depcc... " >&6; }
4543if ${am_cv_CCAS_dependencies_compiler_type+:} false; then :
4544 $as_echo_n "(cached) " >&6
4545else
4546 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
4547 # We make a subdir and do the tests there. Otherwise we can end up
4548 # making bogus files that we don't know about and never remove. For
4549 # instance it was reported that on HP-UX the gcc test will end up
4550 # making a dummy file named 'D' -- because '-MD' means "put the output
4551 # in D".
4552 rm -rf conftest.dir
4553 mkdir conftest.dir
4554 # Copy depcomp to subdir because otherwise we won't find it if we're
4555 # using a relative directory.
4556 cp "$am_depcomp" conftest.dir
4557 cd conftest.dir
4558 # We will build objects and dependencies in a subdirectory because
4559 # it helps to detect inapplicable dependency modes. For instance
4560 # both Tru64's cc and ICC support -MD to output dependencies as a
4561 # side effect of compilation, but ICC will put the dependencies in
4562 # the current directory while Tru64 will put them in the object
4563 # directory.
4564 mkdir sub
4565
4566 am_cv_CCAS_dependencies_compiler_type=none
4567 if test "$am_compiler_list" = ""; then
4568 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
4569 fi
4570 am__universal=false
4571
4572
4573 for depmode in $am_compiler_list; do
4574 # Setup a source with many dependencies, because some compilers
4575 # like to wrap large dependency lists on column 80 (with \), and
4576 # we should not choose a depcomp mode which is confused by this.
4577 #
4578 # We need to recreate these files for each test, as the compiler may
4579 # overwrite some of them when testing with obscure command lines.
4580 # This happens at least with the AIX C compiler.
4581 : > sub/conftest.c
4582 for i in 1 2 3 4 5 6; do
4583 echo '#include "conftst'$i'.h"' >> sub/conftest.c
4584 # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with
4585 # Solaris 10 /bin/sh.
4586 echo '/* dummy */' > sub/conftst$i.h
4587 done
4588 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
4589
4590 # We check with '-c' and '-o' for the sake of the "dashmstdout"
4591 # mode. It turns out that the SunPro C++ compiler does not properly
4592 # handle '-M -o', and we need to detect this. Also, some Intel
4593 # versions had trouble with output in subdirs.
4594 am__obj=sub/conftest.${OBJEXT-o}
4595 am__minus_obj="-o $am__obj"
4596 case $depmode in
4597 gcc)
4598 # This depmode causes a compiler race in universal mode.
4599 test "$am__universal" = false || continue
4600 ;;
4601 nosideeffect)
4602 # After this tag, mechanisms are not by side-effect, so they'll
4603 # only be used when explicitly requested.
4604 if test "x$enable_dependency_tracking" = xyes; then
4605 continue
4606 else
4607 break
4608 fi
4609 ;;
4610 msvc7 | msvc7msys | msvisualcpp | msvcmsys)
4611 # This compiler won't grok '-c -o', but also, the minuso test has
4612 # not run yet. These depmodes are late enough in the game, and
4613 # so weak that their functioning should not be impacted.
4614 am__obj=conftest.${OBJEXT-o}
4615 am__minus_obj=
4616 ;;
4617 none) break ;;
4618 esac
4619 if depmode=$depmode \
4620 source=sub/conftest.c object=$am__obj \
4621 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
4622 $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \
4623 >/dev/null 2>conftest.err &&
4624 grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 &&
4625 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
4626 grep $am__obj sub/conftest.Po > /dev/null 2>&1 &&
4627 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
4628 # icc doesn't choke on unknown options, it will just issue warnings
4629 # or remarks (even with -Werror). So we grep stderr for any message
4630 # that says an option was ignored or not supported.
4631 # When given -MP, icc 7.0 and 7.1 complain thusly:
4632 # icc: Command line warning: ignoring option '-M'; no argument required
4633 # The diagnosis changed in icc 8.0:
4634 # icc: Command line remark: option '-MP' not supported
4635 if (grep 'ignoring option' conftest.err ||
4636 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
4637 am_cv_CCAS_dependencies_compiler_type=$depmode
4638 break
4639 fi
4640 fi
4641 done
4642
4643 cd ..
4644 rm -rf conftest.dir
4645else
4646 am_cv_CCAS_dependencies_compiler_type=none
4647fi
4648
4649fi
4650{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5
4651$as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; }
4652CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type
4653
4654 if
4655 test "x$enable_dependency_tracking" != xno \
4656 && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then
4657 am__fastdepCCAS_TRUE=
4658 am__fastdepCCAS_FALSE='#'
4659else
4660 am__fastdepCCAS_TRUE='#'
4661 am__fastdepCCAS_FALSE=
4662fi
4663
4664
4665
4666
4667
4668if test "$cross_compiling" = "no"; then
4669
4670
4671
4672
4673
4674
4675
4676if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then
4677 if test -n "$ac_tool_prefix"; then
4678 # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args.
4679set dummy ${ac_tool_prefix}pkg-config; ac_word=$2
4680{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4681$as_echo_n "checking for $ac_word... " >&6; }
4682if ${ac_cv_path_PKG_CONFIG+:} false; then :
4683 $as_echo_n "(cached) " >&6
4684else
4685 case $PKG_CONFIG in
4686 [\\/]* | ?:[\\/]*)
4687 ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path.
4688 ;;
4689 *)
4690 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4691for as_dir in $PATH
4692do
4693 IFS=$as_save_IFS
4694 test -z "$as_dir" && as_dir=.
4695 for ac_exec_ext in '' $ac_executable_extensions; do
4696 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4697 ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4698 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4699 break 2
4700 fi
4701done
4702 done
4703IFS=$as_save_IFS
4704
4705 ;;
4706esac
4707fi
4708PKG_CONFIG=$ac_cv_path_PKG_CONFIG
4709if test -n "$PKG_CONFIG"; then
4710 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5
4711$as_echo "$PKG_CONFIG" >&6; }
4712else
4713 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4714$as_echo "no" >&6; }
4715fi
4716
4717
4718fi
4719if test -z "$ac_cv_path_PKG_CONFIG"; then
4720 ac_pt_PKG_CONFIG=$PKG_CONFIG
4721 # Extract the first word of "pkg-config", so it can be a program name with args.
4722set dummy pkg-config; ac_word=$2
4723{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4724$as_echo_n "checking for $ac_word... " >&6; }
4725if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then :
4726 $as_echo_n "(cached) " >&6
4727else
4728 case $ac_pt_PKG_CONFIG in
4729 [\\/]* | ?:[\\/]*)
4730 ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path.
4731 ;;
4732 *)
4733 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4734for as_dir in $PATH
4735do
4736 IFS=$as_save_IFS
4737 test -z "$as_dir" && as_dir=.
4738 for ac_exec_ext in '' $ac_executable_extensions; do
4739 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4740 ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext"
4741 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4742 break 2
4743 fi
4744done
4745 done
4746IFS=$as_save_IFS
4747
4748 ;;
4749esac
4750fi
4751ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG
4752if test -n "$ac_pt_PKG_CONFIG"; then
4753 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5
4754$as_echo "$ac_pt_PKG_CONFIG" >&6; }
4755else
4756 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4757$as_echo "no" >&6; }
4758fi
4759
4760 if test "x$ac_pt_PKG_CONFIG" = x; then
4761 PKG_CONFIG=""
4762 else
4763 case $cross_compiling:$ac_tool_warned in
4764yes:)
4765{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4766$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4767ac_tool_warned=yes ;;
4768esac
4769 PKG_CONFIG=$ac_pt_PKG_CONFIG
4770 fi
4771else
4772 PKG_CONFIG="$ac_cv_path_PKG_CONFIG"
4773fi
4774
4775fi
4776if test -n "$PKG_CONFIG"; then
4777 _pkg_min_version=0.9.0
4778 { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5
4779$as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; }
4780 if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then
4781 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
4782$as_echo "yes" >&6; }
4783 else
4784 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4785$as_echo "no" >&6; }
4786 PKG_CONFIG=""
4787 fi
4788fi
4789fi
4790
4791
4792
4793
4794
4795# Make sure we can run config.sub.
4796$SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4797 as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5
4798
4799{ $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5
4800$as_echo_n "checking build system type... " >&6; }
4801if ${ac_cv_build+:} false; then :
4802 $as_echo_n "(cached) " >&6
4803else
4804 ac_build_alias=$build_alias
4805test "x$ac_build_alias" = x &&
4806 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4807test "x$ac_build_alias" = x &&
4808 as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5
4809ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4810 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5
4811
4812fi
4813{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5
4814$as_echo "$ac_cv_build" >&6; }
4815case $ac_cv_build in
4816*-*-*) ;;
4817*) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;;
4818esac
4819build=$ac_cv_build
4820ac_save_IFS=$IFS; IFS='-'
4821set x $ac_cv_build
4822shift
4823build_cpu=$1
4824build_vendor=$2
4825shift; shift
4826# Remember, the first character of IFS is used to create $*,
4827# except with old shells:
4828build_os=$*
4829IFS=$ac_save_IFS
4830case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4831
4832
4833{ $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5
4834$as_echo_n "checking host system type... " >&6; }
4835if ${ac_cv_host+:} false; then :
4836 $as_echo_n "(cached) " >&6
4837else
4838 if test "x$host_alias" = x; then
4839 ac_cv_host=$ac_cv_build
4840else
4841 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4842 as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5
4843fi
4844
4845fi
4846{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5
4847$as_echo "$ac_cv_host" >&6; }
4848case $ac_cv_host in
4849*-*-*) ;;
4850*) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;;
4851esac
4852host=$ac_cv_host
4853ac_save_IFS=$IFS; IFS='-'
4854set x $ac_cv_host
4855shift
4856host_cpu=$1
4857host_vendor=$2
4858shift; shift
4859# Remember, the first character of IFS is used to create $*,
4860# except with old shells:
4861host_os=$*
4862IFS=$ac_save_IFS
4863case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4864
4865
4866case "${host}" in
4867 *-*-mingw*)
4868 if test -n "$ac_tool_prefix"; then
4869 # Extract the first word of "${ac_tool_prefix}windmc", so it can be a program name with args.
4870set dummy ${ac_tool_prefix}windmc; ac_word=$2
4871{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4872$as_echo_n "checking for $ac_word... " >&6; }
4873if ${ac_cv_prog_WINDMC+:} false; then :
4874 $as_echo_n "(cached) " >&6
4875else
4876 if test -n "$WINDMC"; then
4877 ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test.
4878else
4879as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4880for as_dir in $PATH
4881do
4882 IFS=$as_save_IFS
4883 test -z "$as_dir" && as_dir=.
4884 for ac_exec_ext in '' $ac_executable_extensions; do
4885 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4886 ac_cv_prog_WINDMC="${ac_tool_prefix}windmc"
4887 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4888 break 2
4889 fi
4890done
4891 done
4892IFS=$as_save_IFS
4893
4894fi
4895fi
4896WINDMC=$ac_cv_prog_WINDMC
4897if test -n "$WINDMC"; then
4898 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5
4899$as_echo "$WINDMC" >&6; }
4900else
4901 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4902$as_echo "no" >&6; }
4903fi
4904
4905
4906fi
4907if test -z "$ac_cv_prog_WINDMC"; then
4908 ac_ct_WINDMC=$WINDMC
4909 # Extract the first word of "windmc", so it can be a program name with args.
4910set dummy windmc; ac_word=$2
4911{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4912$as_echo_n "checking for $ac_word... " >&6; }
4913if ${ac_cv_prog_ac_ct_WINDMC+:} false; then :
4914 $as_echo_n "(cached) " >&6
4915else
4916 if test -n "$ac_ct_WINDMC"; then
4917 ac_cv_prog_ac_ct_WINDMC="$ac_ct_WINDMC" # Let the user override the test.
4918else
4919as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4920for as_dir in $PATH
4921do
4922 IFS=$as_save_IFS
4923 test -z "$as_dir" && as_dir=.
4924 for ac_exec_ext in '' $ac_executable_extensions; do
4925 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4926 ac_cv_prog_ac_ct_WINDMC="windmc"
4927 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4928 break 2
4929 fi
4930done
4931 done
4932IFS=$as_save_IFS
4933
4934fi
4935fi
4936ac_ct_WINDMC=$ac_cv_prog_ac_ct_WINDMC
4937if test -n "$ac_ct_WINDMC"; then
4938 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDMC" >&5
4939$as_echo "$ac_ct_WINDMC" >&6; }
4940else
4941 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4942$as_echo "no" >&6; }
4943fi
4944
4945 if test "x$ac_ct_WINDMC" = x; then
4946 WINDMC=""
4947 else
4948 case $cross_compiling:$ac_tool_warned in
4949yes:)
4950{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
4951$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
4952ac_tool_warned=yes ;;
4953esac
4954 WINDMC=$ac_ct_WINDMC
4955 fi
4956else
4957 WINDMC="$ac_cv_prog_WINDMC"
4958fi
4959
4960 if test -n "$ac_tool_prefix"; then
4961 # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args.
4962set dummy ${ac_tool_prefix}windres; ac_word=$2
4963{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
4964$as_echo_n "checking for $ac_word... " >&6; }
4965if ${ac_cv_prog_WINDRES+:} false; then :
4966 $as_echo_n "(cached) " >&6
4967else
4968 if test -n "$WINDRES"; then
4969 ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test.
4970else
4971as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4972for as_dir in $PATH
4973do
4974 IFS=$as_save_IFS
4975 test -z "$as_dir" && as_dir=.
4976 for ac_exec_ext in '' $ac_executable_extensions; do
4977 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
4978 ac_cv_prog_WINDRES="${ac_tool_prefix}windres"
4979 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
4980 break 2
4981 fi
4982done
4983 done
4984IFS=$as_save_IFS
4985
4986fi
4987fi
4988WINDRES=$ac_cv_prog_WINDRES
4989if test -n "$WINDRES"; then
4990 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5
4991$as_echo "$WINDRES" >&6; }
4992else
4993 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
4994$as_echo "no" >&6; }
4995fi
4996
4997
4998fi
4999if test -z "$ac_cv_prog_WINDRES"; then
5000 ac_ct_WINDRES=$WINDRES
5001 # Extract the first word of "windres", so it can be a program name with args.
5002set dummy windres; ac_word=$2
5003{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5
5004$as_echo_n "checking for $ac_word... " >&6; }
5005if ${ac_cv_prog_ac_ct_WINDRES+:} false; then :
5006 $as_echo_n "(cached) " >&6
5007else
5008 if test -n "$ac_ct_WINDRES"; then
5009 ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test.
5010else
5011as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5012for as_dir in $PATH
5013do
5014 IFS=$as_save_IFS
5015 test -z "$as_dir" && as_dir=.
5016 for ac_exec_ext in '' $ac_executable_extensions; do
5017 if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then
5018 ac_cv_prog_ac_ct_WINDRES="windres"
5019 $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5
5020 break 2
5021 fi
5022done
5023 done
5024IFS=$as_save_IFS
5025
5026fi
5027fi
5028ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES
5029if test -n "$ac_ct_WINDRES"; then
5030 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5
5031$as_echo "$ac_ct_WINDRES" >&6; }
5032else
5033 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
5034$as_echo "no" >&6; }
5035fi
5036
5037 if test "x$ac_ct_WINDRES" = x; then
5038 WINDRES=""
5039 else
5040 case $cross_compiling:$ac_tool_warned in
5041yes:)
5042{ $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5
5043$as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;}
5044ac_tool_warned=yes ;;
5045esac
5046 WINDRES=$ac_ct_WINDRES
5047 fi
5048else
5049 WINDRES="$ac_cv_prog_WINDRES"
5050fi
5051
5052
5053 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for makensis" >&5
5054$as_echo_n "checking for makensis... " >&6; }
5055 if test -z "$MAKENSIS"; then
5056 if test -n "$PROGRAMFILES" && "$PROGRAMFILES/NSIS/makensis" -VERSION >/dev/null 2>&1; then
5057 MAKENSIS="$PROGRAMFILES/NSIS/makensis"
5058 elif makensis -VERSION >/dev/null 2>&1; then
5059 MAKENSIS=makensis
5060 fi
5061 fi
5062 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${MAKENSIS:-no}" >&5
5063$as_echo "${MAKENSIS:-no}" >&6; }
5064 ;;
5065esac
5066
5067# Check for SVN.
5068{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether this is a build from SVN" >&5
5069$as_echo_n "checking whether this is a build from SVN... " >&6; }
5070is_svn_build=no
5071svn_deps=
5072if test -f "$srcdir/.svn/wc.db"; then
5073 # SVN 1.7, 1.8 working copy
5074 svn_deps='${srcdir}/.svn/wc.db'
5075elif test -f "${srcdir}/.svn/entries"; then
5076 # SVN <= 1.6 working copy (SVN 1.7 has empty entries file)
5077 svn_deps='${srcdir}/.svn/entries'
5078fi
5079if test -n "$svn_deps"; then
5080 is_svn_build=unknown
5081 if (cd "$srcdir" && svn --version && svnversion && svn info) >/dev/null 2>&1; then
5082 is_svn_build=yes
5083 fi
5084fi
5085
5086 if test "$is_svn_build" = "yes"; then
5087 IS_SVN_BUILD_TRUE=
5088 IS_SVN_BUILD_FALSE='#'
5089else
5090 IS_SVN_BUILD_TRUE='#'
5091 IS_SVN_BUILD_FALSE=
5092fi
5093
5094{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $is_svn_build" >&5
5095$as_echo "$is_svn_build" >&6; }
5096
5097# Note: On Linux, clock_gettime() requires -lrt which implies -lpthreads
5098# Check ommitted for now, gettimeofday() provides reasonable precision
5099# AC_SEARCH_LIBS(clock_gettime, rt)
5100
5101
5102ac_ext=cpp
5103ac_cpp='$CXXCPP $CPPFLAGS'
5104ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5105ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5106ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5107{ $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5
5108$as_echo_n "checking how to run the C++ preprocessor... " >&6; }
5109if test -z "$CXXCPP"; then
5110 if ${ac_cv_prog_CXXCPP+:} false; then :
5111 $as_echo_n "(cached) " >&6
5112else
5113 # Double quotes because CXXCPP needs to be expanded
5114 for CXXCPP in "$CXX -E" "/lib/cpp"
5115 do
5116 ac_preproc_ok=false
5117for ac_cxx_preproc_warn_flag in '' yes
5118do
5119 # Use a header file that comes with gcc, so configuring glibc
5120 # with a fresh cross-compiler works.
5121 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5122 # <limits.h> exists even on freestanding compilers.
5123 # On the NeXT, cc -E runs the code through the compiler's parser,
5124 # not just through cpp. "Syntax error" is here to catch this case.
5125 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5126/* end confdefs.h. */
5127#ifdef __STDC__
5128# include <limits.h>
5129#else
5130# include <assert.h>
5131#endif
5132 Syntax error
5133_ACEOF
5134if ac_fn_cxx_try_cpp "$LINENO"; then :
5135
5136else
5137 # Broken: fails on valid input.
5138continue
5139fi
5140rm -f conftest.err conftest.i conftest.$ac_ext
5141
5142 # OK, works on sane cases. Now check whether nonexistent headers
5143 # can be detected and how.
5144 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5145/* end confdefs.h. */
5146#include <ac_nonexistent.h>
5147_ACEOF
5148if ac_fn_cxx_try_cpp "$LINENO"; then :
5149 # Broken: success on invalid input.
5150continue
5151else
5152 # Passes both tests.
5153ac_preproc_ok=:
5154break
5155fi
5156rm -f conftest.err conftest.i conftest.$ac_ext
5157
5158done
5159# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5160rm -f conftest.i conftest.err conftest.$ac_ext
5161if $ac_preproc_ok; then :
5162 break
5163fi
5164
5165 done
5166 ac_cv_prog_CXXCPP=$CXXCPP
5167
5168fi
5169 CXXCPP=$ac_cv_prog_CXXCPP
5170else
5171 ac_cv_prog_CXXCPP=$CXXCPP
5172fi
5173{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5
5174$as_echo "$CXXCPP" >&6; }
5175ac_preproc_ok=false
5176for ac_cxx_preproc_warn_flag in '' yes
5177do
5178 # Use a header file that comes with gcc, so configuring glibc
5179 # with a fresh cross-compiler works.
5180 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
5181 # <limits.h> exists even on freestanding compilers.
5182 # On the NeXT, cc -E runs the code through the compiler's parser,
5183 # not just through cpp. "Syntax error" is here to catch this case.
5184 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5185/* end confdefs.h. */
5186#ifdef __STDC__
5187# include <limits.h>
5188#else
5189# include <assert.h>
5190#endif
5191 Syntax error
5192_ACEOF
5193if ac_fn_cxx_try_cpp "$LINENO"; then :
5194
5195else
5196 # Broken: fails on valid input.
5197continue
5198fi
5199rm -f conftest.err conftest.i conftest.$ac_ext
5200
5201 # OK, works on sane cases. Now check whether nonexistent headers
5202 # can be detected and how.
5203 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5204/* end confdefs.h. */
5205#include <ac_nonexistent.h>
5206_ACEOF
5207if ac_fn_cxx_try_cpp "$LINENO"; then :
5208 # Broken: success on invalid input.
5209continue
5210else
5211 # Passes both tests.
5212ac_preproc_ok=:
5213break
5214fi
5215rm -f conftest.err conftest.i conftest.$ac_ext
5216
5217done
5218# Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
5219rm -f conftest.i conftest.err conftest.$ac_ext
5220if $ac_preproc_ok; then :
5221
5222else
5223 { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5
5224$as_echo "$as_me: error: in \`$ac_pwd':" >&2;}
5225as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check
5226See \`config.log' for more details" "$LINENO" 5; }
5227fi
5228
5229ac_ext=cpp
5230ac_cpp='$CXXCPP $CPPFLAGS'
5231ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
5232ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
5233ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
5234
5235
5236{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5
5237$as_echo_n "checking for grep that handles long lines and -e... " >&6; }
5238if ${ac_cv_path_GREP+:} false; then :
5239 $as_echo_n "(cached) " >&6
5240else
5241 if test -z "$GREP"; then
5242 ac_path_GREP_found=false
5243 # Loop through the user's path and test for each of PROGNAME-LIST
5244 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5245for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5246do
5247 IFS=$as_save_IFS
5248 test -z "$as_dir" && as_dir=.
5249 for ac_prog in grep ggrep; do
5250 for ac_exec_ext in '' $ac_executable_extensions; do
5251 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
5252 as_fn_executable_p "$ac_path_GREP" || continue
5253# Check for GNU ac_path_GREP and select it if it is found.
5254 # Check for GNU $ac_path_GREP
5255case `"$ac_path_GREP" --version 2>&1` in
5256*GNU*)
5257 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
5258*)
5259 ac_count=0
5260 $as_echo_n 0123456789 >"conftest.in"
5261 while :
5262 do
5263 cat "conftest.in" "conftest.in" >"conftest.tmp"
5264 mv "conftest.tmp" "conftest.in"
5265 cp "conftest.in" "conftest.nl"
5266 $as_echo 'GREP' >> "conftest.nl"
5267 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5268 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5269 as_fn_arith $ac_count + 1 && ac_count=$as_val
5270 if test $ac_count -gt ${ac_path_GREP_max-0}; then
5271 # Best one so far, save it but keep looking for a better one
5272 ac_cv_path_GREP="$ac_path_GREP"
5273 ac_path_GREP_max=$ac_count
5274 fi
5275 # 10*(2^10) chars as input seems more than enough
5276 test $ac_count -gt 10 && break
5277 done
5278 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5279esac
5280
5281 $ac_path_GREP_found && break 3
5282 done
5283 done
5284 done
5285IFS=$as_save_IFS
5286 if test -z "$ac_cv_path_GREP"; then
5287 as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5288 fi
5289else
5290 ac_cv_path_GREP=$GREP
5291fi
5292
5293fi
5294{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5
5295$as_echo "$ac_cv_path_GREP" >&6; }
5296 GREP="$ac_cv_path_GREP"
5297
5298
5299{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5
5300$as_echo_n "checking for egrep... " >&6; }
5301if ${ac_cv_path_EGREP+:} false; then :
5302 $as_echo_n "(cached) " >&6
5303else
5304 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
5305 then ac_cv_path_EGREP="$GREP -E"
5306 else
5307 if test -z "$EGREP"; then
5308 ac_path_EGREP_found=false
5309 # Loop through the user's path and test for each of PROGNAME-LIST
5310 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
5311for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
5312do
5313 IFS=$as_save_IFS
5314 test -z "$as_dir" && as_dir=.
5315 for ac_prog in egrep; do
5316 for ac_exec_ext in '' $ac_executable_extensions; do
5317 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
5318 as_fn_executable_p "$ac_path_EGREP" || continue
5319# Check for GNU ac_path_EGREP and select it if it is found.
5320 # Check for GNU $ac_path_EGREP
5321case `"$ac_path_EGREP" --version 2>&1` in
5322*GNU*)
5323 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
5324*)
5325 ac_count=0
5326 $as_echo_n 0123456789 >"conftest.in"
5327 while :
5328 do
5329 cat "conftest.in" "conftest.in" >"conftest.tmp"
5330 mv "conftest.tmp" "conftest.in"
5331 cp "conftest.in" "conftest.nl"
5332 $as_echo 'EGREP' >> "conftest.nl"
5333 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
5334 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
5335 as_fn_arith $ac_count + 1 && ac_count=$as_val
5336 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
5337 # Best one so far, save it but keep looking for a better one
5338 ac_cv_path_EGREP="$ac_path_EGREP"
5339 ac_path_EGREP_max=$ac_count
5340 fi
5341 # 10*(2^10) chars as input seems more than enough
5342 test $ac_count -gt 10 && break
5343 done
5344 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
5345esac
5346
5347 $ac_path_EGREP_found && break 3
5348 done
5349 done
5350 done
5351IFS=$as_save_IFS
5352 if test -z "$ac_cv_path_EGREP"; then
5353 as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5
5354 fi
5355else
5356 ac_cv_path_EGREP=$EGREP
5357fi
5358
5359 fi
5360fi
5361{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5
5362$as_echo "$ac_cv_path_EGREP" >&6; }
5363 EGREP="$ac_cv_path_EGREP"
5364
5365
5366{ $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5
5367$as_echo_n "checking for ANSI C header files... " >&6; }
5368if ${ac_cv_header_stdc+:} false; then :
5369 $as_echo_n "(cached) " >&6
5370else
5371 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5372/* end confdefs.h. */
5373#include <stdlib.h>
5374#include <stdarg.h>
5375#include <string.h>
5376#include <float.h>
5377
5378int
5379main ()
5380{
5381
5382 ;
5383 return 0;
5384}
5385_ACEOF
5386if ac_fn_cxx_try_compile "$LINENO"; then :
5387 ac_cv_header_stdc=yes
5388else
5389 ac_cv_header_stdc=no
5390fi
5391rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5392
5393if test $ac_cv_header_stdc = yes; then
5394 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
5395 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5396/* end confdefs.h. */
5397#include <string.h>
5398
5399_ACEOF
5400if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5401 $EGREP "memchr" >/dev/null 2>&1; then :
5402
5403else
5404 ac_cv_header_stdc=no
5405fi
5406rm -f conftest*
5407
5408fi
5409
5410if test $ac_cv_header_stdc = yes; then
5411 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
5412 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5413/* end confdefs.h. */
5414#include <stdlib.h>
5415
5416_ACEOF
5417if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
5418 $EGREP "free" >/dev/null 2>&1; then :
5419
5420else
5421 ac_cv_header_stdc=no
5422fi
5423rm -f conftest*
5424
5425fi
5426
5427if test $ac_cv_header_stdc = yes; then
5428 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
5429 if test "$cross_compiling" = yes; then :
5430 :
5431else
5432 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5433/* end confdefs.h. */
5434#include <ctype.h>
5435#include <stdlib.h>
5436#if ((' ' & 0x0FF) == 0x020)
5437# define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
5438# define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
5439#else
5440# define ISLOWER(c) \
5441 (('a' <= (c) && (c) <= 'i') \
5442 || ('j' <= (c) && (c) <= 'r') \
5443 || ('s' <= (c) && (c) <= 'z'))
5444# define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
5445#endif
5446
5447#define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
5448int
5449main ()
5450{
5451 int i;
5452 for (i = 0; i < 256; i++)
5453 if (XOR (islower (i), ISLOWER (i))
5454 || toupper (i) != TOUPPER (i))
5455 return 2;
5456 return 0;
5457}
5458_ACEOF
5459if ac_fn_cxx_try_run "$LINENO"; then :
5460
5461else
5462 ac_cv_header_stdc=no
5463fi
5464rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5465 conftest.$ac_objext conftest.beam conftest.$ac_ext
5466fi
5467
5468fi
5469fi
5470{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5
5471$as_echo "$ac_cv_header_stdc" >&6; }
5472if test $ac_cv_header_stdc = yes; then
5473
5474$as_echo "#define STDC_HEADERS 1" >>confdefs.h
5475
5476fi
5477
5478# On IRIX 5.3, sys/types and inttypes.h are conflicting.
5479for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5480 inttypes.h stdint.h unistd.h
5481do :
5482 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5483ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5484"
5485if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5486 cat >>confdefs.h <<_ACEOF
5487#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5488_ACEOF
5489
5490fi
5491
5492done
5493
5494
5495for ac_header in locale.h
5496do :
5497 ac_fn_cxx_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default"
5498if test "x$ac_cv_header_locale_h" = xyes; then :
5499 cat >>confdefs.h <<_ACEOF
5500#define HAVE_LOCALE_H 1
5501_ACEOF
5502
5503fi
5504
5505done
5506
5507for ac_header in dev/ata/atavar.h
5508do :
5509 ac_fn_cxx_check_header_mongrel "$LINENO" "dev/ata/atavar.h" "ac_cv_header_dev_ata_atavar_h" "$ac_includes_default"
5510if test "x$ac_cv_header_dev_ata_atavar_h" = xyes; then :
5511 cat >>confdefs.h <<_ACEOF
5512#define HAVE_DEV_ATA_ATAVAR_H 1
5513_ACEOF
5514
5515fi
5516
5517done
5518
5519for ac_header in inttypes.h
5520do :
5521 ac_fn_cxx_check_header_mongrel "$LINENO" "inttypes.h" "ac_cv_header_inttypes_h" "$ac_includes_default"
5522if test "x$ac_cv_header_inttypes_h" = xyes; then :
5523 cat >>confdefs.h <<_ACEOF
5524#define HAVE_INTTYPES_H 1
5525_ACEOF
5526
5527fi
5528
5529done
5530 for ac_header in stdint.h
5531do :
5532 ac_fn_cxx_check_header_mongrel "$LINENO" "stdint.h" "ac_cv_header_stdint_h" "$ac_includes_default"
5533if test "x$ac_cv_header_stdint_h" = xyes; then :
5534 cat >>confdefs.h <<_ACEOF
5535#define HAVE_STDINT_H 1
5536_ACEOF
5537
5538fi
5539
5540done
5541 for ac_header in sys/inttypes.h
5542do :
5543 ac_fn_cxx_check_header_mongrel "$LINENO" "sys/inttypes.h" "ac_cv_header_sys_inttypes_h" "$ac_includes_default"
5544if test "x$ac_cv_header_sys_inttypes_h" = xyes; then :
5545 cat >>confdefs.h <<_ACEOF
5546#define HAVE_SYS_INTTYPES_H 1
5547_ACEOF
5548
5549fi
5550
5551done
5552 for ac_header in sys/int_types.h
5553do :
5554 ac_fn_cxx_check_header_mongrel "$LINENO" "sys/int_types.h" "ac_cv_header_sys_int_types_h" "$ac_includes_default"
5555if test "x$ac_cv_header_sys_int_types_h" = xyes; then :
5556 cat >>confdefs.h <<_ACEOF
5557#define HAVE_SYS_INT_TYPES_H 1
5558_ACEOF
5559
5560fi
5561
5562done
5563 for ac_header in sys/tweio.h
5564do :
5565 ac_fn_cxx_check_header_mongrel "$LINENO" "sys/tweio.h" "ac_cv_header_sys_tweio_h" "$ac_includes_default"
5566if test "x$ac_cv_header_sys_tweio_h" = xyes; then :
5567 cat >>confdefs.h <<_ACEOF
5568#define HAVE_SYS_TWEIO_H 1
5569_ACEOF
5570
5571fi
5572
5573done
5574
5575for ac_header in sys/twereg.h
5576do :
5577 ac_fn_cxx_check_header_mongrel "$LINENO" "sys/twereg.h" "ac_cv_header_sys_twereg_h" "$ac_includes_default"
5578if test "x$ac_cv_header_sys_twereg_h" = xyes; then :
5579 cat >>confdefs.h <<_ACEOF
5580#define HAVE_SYS_TWEREG_H 1
5581_ACEOF
5582
5583fi
5584
5585done
5586
5587for ac_header in sys/tw_osl_ioctl.h
5588do :
5589 ac_fn_cxx_check_header_mongrel "$LINENO" "sys/tw_osl_ioctl.h" "ac_cv_header_sys_tw_osl_ioctl_h" "$ac_includes_default"
5590if test "x$ac_cv_header_sys_tw_osl_ioctl_h" = xyes; then :
5591 cat >>confdefs.h <<_ACEOF
5592#define HAVE_SYS_TW_OSL_IOCTL_H 1
5593_ACEOF
5594
5595fi
5596
5597done
5598
5599for ac_header in linux/compiler.h
5600do :
5601 ac_fn_cxx_check_header_mongrel "$LINENO" "linux/compiler.h" "ac_cv_header_linux_compiler_h" "$ac_includes_default"
5602if test "x$ac_cv_header_linux_compiler_h" = xyes; then :
5603 cat >>confdefs.h <<_ACEOF
5604#define HAVE_LINUX_COMPILER_H 1
5605_ACEOF
5606
5607fi
5608
5609done
5610
5611for ac_header in dev/ciss/cissio.h
5612do :
5613 ac_fn_cxx_check_header_mongrel "$LINENO" "dev/ciss/cissio.h" "ac_cv_header_dev_ciss_cissio_h" "$ac_includes_default"
5614if test "x$ac_cv_header_dev_ciss_cissio_h" = xyes; then :
5615 cat >>confdefs.h <<_ACEOF
5616#define HAVE_DEV_CISS_CISSIO_H 1
5617_ACEOF
5618
5619$as_echo "#define CISS_LOCATION <dev/ciss/cissio.h>" >>confdefs.h
5620
5621else
5622
5623$as_echo "#define CISS_LOCATION \"cissio_freebsd.h\"" >>confdefs.h
5624
5625
5626fi
5627
5628done
5629
5630for ac_header in linux/cciss_ioctl.h
5631do :
5632 ac_fn_cxx_check_header_compile "$LINENO" "linux/cciss_ioctl.h" "ac_cv_header_linux_cciss_ioctl_h" "$ac_includes_default
5633#ifdef HAVE_LINUX_COMPILER_H
5634# include <linux/compiler.h>
5635#endif
5636
5637"
5638if test "x$ac_cv_header_linux_cciss_ioctl_h" = xyes; then :
5639 cat >>confdefs.h <<_ACEOF
5640#define HAVE_LINUX_CCISS_IOCTL_H 1
5641_ACEOF
5642
5643fi
5644
5645done
5646
5647for ac_header in ntdddisk.h ddk/ntdddisk.h
5648do :
5649 as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh`
5650ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default
5651#include <windows.h>
5652
5653"
5654if eval test \"x\$"$as_ac_Header"\" = x"yes"; then :
5655 cat >>confdefs.h <<_ACEOF
5656#define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1
5657_ACEOF
5658
5659fi
5660
5661done
5662
5663for ac_header in wbemcli.h
5664do :
5665 ac_fn_cxx_check_header_mongrel "$LINENO" "wbemcli.h" "ac_cv_header_wbemcli_h" "$ac_includes_default"
5666if test "x$ac_cv_header_wbemcli_h" = xyes; then :
5667 cat >>confdefs.h <<_ACEOF
5668#define HAVE_WBEMCLI_H 1
5669_ACEOF
5670
5671fi
5672
5673done
5674
5675
5676ac_fn_cxx_check_type "$LINENO" "int64_t" "ac_cv_type_int64_t" "$ac_includes_default"
5677if test "x$ac_cv_type_int64_t" = xyes; then :
5678
5679cat >>confdefs.h <<_ACEOF
5680#define HAVE_INT64_T 1
5681_ACEOF
5682
5683
5684fi
5685ac_fn_cxx_check_type "$LINENO" "uint64_t" "ac_cv_type_uint64_t" "$ac_includes_default"
5686if test "x$ac_cv_type_uint64_t" = xyes; then :
5687
5688cat >>confdefs.h <<_ACEOF
5689#define HAVE_UINT64_T 1
5690_ACEOF
5691
5692
5693fi
5694
5695
5696for ac_func in getopt_long
5697do :
5698 ac_fn_cxx_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long"
5699if test "x$ac_cv_func_getopt_long" = xyes; then :
5700 cat >>confdefs.h <<_ACEOF
5701#define HAVE_GETOPT_LONG 1
5702_ACEOF
5703 need_getopt_long=no
5704else
5705 need_getopt_long=yes
5706fi
5707done
5708
5709 if test "$need_getopt_long" = "yes"; then
5710 NEED_GETOPT_LONG_TRUE=
5711 NEED_GETOPT_LONG_FALSE='#'
5712else
5713 NEED_GETOPT_LONG_TRUE='#'
5714 NEED_GETOPT_LONG_FALSE=
5715fi
5716
5717for ac_func in regcomp
5718do :
5719 ac_fn_cxx_check_func "$LINENO" "regcomp" "ac_cv_func_regcomp"
5720if test "x$ac_cv_func_regcomp" = xyes; then :
5721 cat >>confdefs.h <<_ACEOF
5722#define HAVE_REGCOMP 1
5723_ACEOF
5724 need_regex=no
5725else
5726 need_regex=yes
5727fi
5728done
5729
5730 if test "$need_regex" = "yes"; then
5731 NEED_REGEX_TRUE=
5732 NEED_REGEX_FALSE='#'
5733else
5734 NEED_REGEX_TRUE='#'
5735 NEED_REGEX_FALSE=
5736fi
5737
5738
5739for ac_func in sigset
5740do :
5741 ac_fn_cxx_check_func "$LINENO" "sigset" "ac_cv_func_sigset"
5742if test "x$ac_cv_func_sigset" = xyes; then :
5743 cat >>confdefs.h <<_ACEOF
5744#define HAVE_SIGSET 1
5745_ACEOF
5746
5747fi
5748done
5749
5750for ac_func in strtoull
5751do :
5752 ac_fn_cxx_check_func "$LINENO" "strtoull" "ac_cv_func_strtoull"
5753if test "x$ac_cv_func_strtoull" = xyes; then :
5754 cat >>confdefs.h <<_ACEOF
5755#define HAVE_STRTOULL 1
5756_ACEOF
5757
5758fi
5759done
5760
5761for ac_func in uname
5762do :
5763 ac_fn_cxx_check_func "$LINENO" "uname" "ac_cv_func_uname"
5764if test "x$ac_cv_func_uname" = xyes; then :
5765 cat >>confdefs.h <<_ACEOF
5766#define HAVE_UNAME 1
5767_ACEOF
5768
5769fi
5770done
5771
5772for ac_func in clock_gettime ftime gettimeofday
5773do :
5774 as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh`
5775ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var"
5776if eval test \"x\$"$as_ac_var"\" = x"yes"; then :
5777 cat >>confdefs.h <<_ACEOF
5778#define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1
5779_ACEOF
5780
5781fi
5782done
5783
5784
5785# Check byte ordering (defines WORDS_BIGENDIAN)
5786 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5
5787$as_echo_n "checking whether byte ordering is bigendian... " >&6; }
5788if ${ac_cv_c_bigendian+:} false; then :
5789 $as_echo_n "(cached) " >&6
5790else
5791 ac_cv_c_bigendian=unknown
5792 # See if we're dealing with a universal compiler.
5793 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5794/* end confdefs.h. */
5795#ifndef __APPLE_CC__
5796 not a universal capable compiler
5797 #endif
5798 typedef int dummy;
5799
5800_ACEOF
5801if ac_fn_cxx_try_compile "$LINENO"; then :
5802
5803 # Check for potential -arch flags. It is not universal unless
5804 # there are at least two -arch flags with different values.
5805 ac_arch=
5806 ac_prev=
5807 for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do
5808 if test -n "$ac_prev"; then
5809 case $ac_word in
5810 i?86 | x86_64 | ppc | ppc64)
5811 if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then
5812 ac_arch=$ac_word
5813 else
5814 ac_cv_c_bigendian=universal
5815 break
5816 fi
5817 ;;
5818 esac
5819 ac_prev=
5820 elif test "x$ac_word" = "x-arch"; then
5821 ac_prev=arch
5822 fi
5823 done
5824fi
5825rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5826 if test $ac_cv_c_bigendian = unknown; then
5827 # See if sys/param.h defines the BYTE_ORDER macro.
5828 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5829/* end confdefs.h. */
5830#include <sys/types.h>
5831 #include <sys/param.h>
5832
5833int
5834main ()
5835{
5836#if ! (defined BYTE_ORDER && defined BIG_ENDIAN \
5837 && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \
5838 && LITTLE_ENDIAN)
5839 bogus endian macros
5840 #endif
5841
5842 ;
5843 return 0;
5844}
5845_ACEOF
5846if ac_fn_cxx_try_compile "$LINENO"; then :
5847 # It does; now see whether it defined to BIG_ENDIAN or not.
5848 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5849/* end confdefs.h. */
5850#include <sys/types.h>
5851 #include <sys/param.h>
5852
5853int
5854main ()
5855{
5856#if BYTE_ORDER != BIG_ENDIAN
5857 not big endian
5858 #endif
5859
5860 ;
5861 return 0;
5862}
5863_ACEOF
5864if ac_fn_cxx_try_compile "$LINENO"; then :
5865 ac_cv_c_bigendian=yes
5866else
5867 ac_cv_c_bigendian=no
5868fi
5869rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5870fi
5871rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5872 fi
5873 if test $ac_cv_c_bigendian = unknown; then
5874 # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris).
5875 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5876/* end confdefs.h. */
5877#include <limits.h>
5878
5879int
5880main ()
5881{
5882#if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN)
5883 bogus endian macros
5884 #endif
5885
5886 ;
5887 return 0;
5888}
5889_ACEOF
5890if ac_fn_cxx_try_compile "$LINENO"; then :
5891 # It does; now see whether it defined to _BIG_ENDIAN or not.
5892 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5893/* end confdefs.h. */
5894#include <limits.h>
5895
5896int
5897main ()
5898{
5899#ifndef _BIG_ENDIAN
5900 not big endian
5901 #endif
5902
5903 ;
5904 return 0;
5905}
5906_ACEOF
5907if ac_fn_cxx_try_compile "$LINENO"; then :
5908 ac_cv_c_bigendian=yes
5909else
5910 ac_cv_c_bigendian=no
5911fi
5912rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5913fi
5914rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5915 fi
5916 if test $ac_cv_c_bigendian = unknown; then
5917 # Compile a test program.
5918 if test "$cross_compiling" = yes; then :
5919 # Try to guess by grepping values from an object file.
5920 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5921/* end confdefs.h. */
5922short int ascii_mm[] =
5923 { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 };
5924 short int ascii_ii[] =
5925 { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 };
5926 int use_ascii (int i) {
5927 return ascii_mm[i] + ascii_ii[i];
5928 }
5929 short int ebcdic_ii[] =
5930 { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 };
5931 short int ebcdic_mm[] =
5932 { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 };
5933 int use_ebcdic (int i) {
5934 return ebcdic_mm[i] + ebcdic_ii[i];
5935 }
5936 extern int foo;
5937
5938int
5939main ()
5940{
5941return use_ascii (foo) == use_ebcdic (foo);
5942 ;
5943 return 0;
5944}
5945_ACEOF
5946if ac_fn_cxx_try_compile "$LINENO"; then :
5947 if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then
5948 ac_cv_c_bigendian=yes
5949 fi
5950 if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then
5951 if test "$ac_cv_c_bigendian" = unknown; then
5952 ac_cv_c_bigendian=no
5953 else
5954 # finding both strings is unlikely to happen, but who knows?
5955 ac_cv_c_bigendian=unknown
5956 fi
5957 fi
5958fi
5959rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5960else
5961 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
5962/* end confdefs.h. */
5963$ac_includes_default
5964int
5965main ()
5966{
5967
5968 /* Are we little or big endian? From Harbison&Steele. */
5969 union
5970 {
5971 long int l;
5972 char c[sizeof (long int)];
5973 } u;
5974 u.l = 1;
5975 return u.c[sizeof (long int) - 1] == 1;
5976
5977 ;
5978 return 0;
5979}
5980_ACEOF
5981if ac_fn_cxx_try_run "$LINENO"; then :
5982 ac_cv_c_bigendian=no
5983else
5984 ac_cv_c_bigendian=yes
5985fi
5986rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \
5987 conftest.$ac_objext conftest.beam conftest.$ac_ext
5988fi
5989
5990 fi
5991fi
5992{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5
5993$as_echo "$ac_cv_c_bigendian" >&6; }
5994 case $ac_cv_c_bigendian in #(
5995 yes)
5996 $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h
5997;; #(
5998 no)
5999 ;; #(
6000 universal)
6001
6002$as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h
6003
6004 ;; #(
6005 *)
6006 as_fn_error $? "unknown endianness
6007 presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;;
6008 esac
6009
6010
6011# check for __attribute__((packed))
6012# (sizeof() check is required to avoid false positives if other
6013# __attribute__((x)) are supported)
6014{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports __attribute__((packed))" >&5
6015$as_echo_n "checking whether $CXX supports __attribute__((packed))... " >&6; }
6016cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6017/* end confdefs.h. */
6018
6019int
6020main ()
6021{
6022
6023 struct s { char a; short b; } __attribute__((packed));
6024 typedef char t[sizeof(struct s) == 3 ? 1 : -1];
6025 ;
6026 return 0;
6027}
6028_ACEOF
6029if ac_fn_cxx_try_compile "$LINENO"; then :
6030 gcc_have_attr_packed=yes
6031else
6032 gcc_have_attr_packed=no
6033fi
6034rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6035
6036if test "$gcc_have_attr_packed" = "yes"; then
6037
6038$as_echo "#define HAVE_ATTR_PACKED 1" >>confdefs.h
6039
6040fi
6041{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_have_attr_packed" >&5
6042$as_echo "$gcc_have_attr_packed" >&6; }
6043
6044
6045
6046
6047
6048
6049# Check whether --with-systemdsystemunitdir was given.
6050if test "${with_systemdsystemunitdir+set}" = set; then :
6051 withval=$with_systemdsystemunitdir;
6052else
6053 with_systemdsystemunitdir=auto
6054fi
6055
6056
6057systemdsystemunitdir=
6058case "$with_systemdsystemunitdir" in
6059 auto|yes)
6060 if test -n "$PKG_CONFIG"; then
6061 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systemdsystemunitdir" >&5
6062$as_echo_n "checking for systemdsystemunitdir... " >&6; }
6063 systemdsystemunitdir=`$PKG_CONFIG --variable=systemdsystemunitdir systemd 2>/dev/null`
6064 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${systemdsystemunitdir:-no}" >&5
6065$as_echo "${systemdsystemunitdir:-no}" >&6; }
6066 fi
6067 case "$with_systemdsystemunitdir:$sysconfdir:$systemdsystemunitdir" in
6068 yes:*:) as_fn_error $? "Location of systemd service files not found" "$LINENO" 5 ;;
6069 yes:*:*|auto:*:|auto:/etc:*) ;;
6070 *) systemdsystemunitdir='${prefix}'$systemdsystemunitdir ;;
6071 esac ;;
6072 no) ;;
6073 *) systemdsystemunitdir="$with_systemdsystemunitdir" ;;
6074esac
6075
6076 if test -n "$systemdsystemunitdir"; then
6077 INSTALL_SYSTEMDUNIT_TRUE=
6078 INSTALL_SYSTEMDUNIT_FALSE='#'
6079else
6080 INSTALL_SYSTEMDUNIT_TRUE='#'
6081 INSTALL_SYSTEMDUNIT_FALSE=
6082fi
6083
6084
6085
6086# Check whether --with-systemdenvfile was given.
6087if test "${with_systemdenvfile+set}" = set; then :
6088 withval=$with_systemdenvfile;
6089else
6090 with_systemdenvfile=auto
6091fi
6092
6093
6094systemdenvfile=
6095case "$with_systemdenvfile:$cross_compiling:$systemdsystemunitdir" in
6096 auto:no:?*|yes:*:?*)
6097 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for path of systemd EnvironmentFile" >&5
6098$as_echo_n "checking for path of systemd EnvironmentFile... " >&6; }
6099 for dir in sysconfig default; do
6100 if test -d /etc/$dir; then
6101 systemdenvfile='${sysconfdir}'/$dir/smartmontools
6102 break
6103 fi
6104 done
6105 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${systemdenvfile:-no}" >&5
6106$as_echo "${systemdenvfile:-no}" >&6; }
6107 case "$with_systemdenvfile:$systemdenvfile" in
6108 yes:) as_fn_error $? "Path of systemd EnvironmentFile not found" "$LINENO" 5 ;;
6109 esac ;;
6110 auto:*|no:*) ;;
6111 *:*:) as_fn_error $? "Location of systemd service files not found" "$LINENO" 5 ;;
6112 *) systemdenvfile="$with_systemdenvfile"
6113esac
6114
6115
6116
6117# Check whether --with-initscriptdir was given.
6118if test "${with_initscriptdir+set}" = set; then :
6119 withval=$with_initscriptdir;
6120else
6121 with_initscriptdir=auto
6122fi
6123
6124
6125initddir=
6126case "$with_initscriptdir:$cross_compiling:$systemdsystemunitdir" in
6127 auto:no:|yes:*)
6128 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for init (rc) directory" >&5
6129$as_echo_n "checking for init (rc) directory... " >&6; }
6130 for dir in rc.d/init.d init.d rc.d; do
6131 if test -d /etc/$dir; then
6132 initddir='${sysconfdir}'/$dir
6133 break
6134 fi
6135 done
6136 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${initddir:-no}" >&5
6137$as_echo "${initddir:-no}" >&6; }
6138 case "$with_initscriptdir:$initddir" in
6139 yes:) as_fn_error $? "Location of init scripts not found" "$LINENO" 5 ;;
6140 esac ;;
6141 auto:*|no:*) ;;
6142 *) initddir="$with_initscriptdir" ;;
6143esac
6144
6145 if test -n "$initddir"; then
6146 INSTALL_INITSCRIPT_TRUE=
6147 INSTALL_INITSCRIPT_FALSE='#'
6148else
6149 INSTALL_INITSCRIPT_TRUE='#'
6150 INSTALL_INITSCRIPT_FALSE=
6151fi
6152
6153
6154# use different init script templates for different OS
6155case "${host}" in
6156 *-*-freebsd*)
6157 initdfile="smartd.freebsd.initd"
6158 ;;
6159 *-apple-darwin*)
6160 initdfile="com.smartmontools.smartd.plist"
6161 ;;
6162 *)
6163 initdfile="smartd.initd"
6164 ;;
6165esac
6166
6167
6168
6169# Check whether --with-exampledir was given.
6170if test "${with_exampledir+set}" = set; then :
6171 withval=$with_exampledir; exampledir="$withval"
6172else
6173 exampledir='${docdir}/examplescripts'
6174fi
6175
6176
6177
6178drivedbdir='${datadir}/${PACKAGE}'
6179
6180# Check whether --with-drivedbdir was given.
6181if test "${with_drivedbdir+set}" = set; then :
6182 withval=$with_drivedbdir; case "$withval" in yes) ;; no) drivedbdir= ;; *) drivedbdir="$withval" ;; esac
6183fi
6184
6185
6186 if test -n "$drivedbdir"; then
6187 ENABLE_DRIVEDB_TRUE=
6188 ENABLE_DRIVEDB_FALSE='#'
6189else
6190 ENABLE_DRIVEDB_TRUE='#'
6191 ENABLE_DRIVEDB_FALSE=
6192fi
6193
6194
6195drivedb_version=$VERSION
6196
6197# Check whether --with-update-smart_drivedb was given.
6198if test "${with_update_smart_drivedb+set}" = set; then :
6199 withval=$with_update_smart_drivedb; case "$withval" in
6200 yes|no) ;;
6201 5.4[0-3]|6.[0-9]) drivedb_version=$withval; with_update_smart_drivedb=yes ;;
6202 *) as_fn_error $? "Invalid drivedb branch version: $withval" "$LINENO" 5 ;;
6203 esac
6204
6205else
6206 with_update_smart_drivedb=yes
6207fi
6208
6209test -n "$drivedbdir" || with_update_smart_drivedb=no
6210
6211 if test "$with_update_smart_drivedb" = "yes"; then
6212 ENABLE_UPDATE_SMART_DRIVEDB_TRUE=
6213 ENABLE_UPDATE_SMART_DRIVEDB_FALSE='#'
6214else
6215 ENABLE_UPDATE_SMART_DRIVEDB_TRUE='#'
6216 ENABLE_UPDATE_SMART_DRIVEDB_FALSE=
6217fi
6218
6219
6220gnupg="gpg"
6221# Also check for '--with-gnupg[=yes]' because 'yes' is a valid command with infinite output
6222
6223# Check whether --with-gnupg was given.
6224if test "${with_gnupg+set}" = set; then :
6225 withval=$with_gnupg; case "$withval" in yes) ;; no) gnupg= ;; *) gnupg="$withval" ;; esac
6226fi
6227
6228
6229
6230case "$with_update_smart_drivedb:$gnupg" in
6231 no:?*)
6232 as_fn_error $? "
6233'--without-update-smart-drivedb' now requires '--without-gnupg'.
6234NEWS: update-smart-drivedb now verifies the downloaded drivedb.h file with GnuPG." "$LINENO" 5
6235 ;;
6236esac
6237
6238
6239# Check whether --with-smartdscriptdir was given.
6240if test "${with_smartdscriptdir+set}" = set; then :
6241 withval=$with_smartdscriptdir; smartdscriptdir="$withval"
6242else
6243 smartdscriptdir='${sysconfdir}'
6244fi
6245
6246
6247
6248
6249# Check whether --with-smartdplugindir was given.
6250if test "${with_smartdplugindir+set}" = set; then :
6251 withval=$with_smartdplugindir; smartdplugindir=; test "$withval" != "no" && smartdplugindir="$withval"
6252else
6253 smartdplugindir='${smartdscriptdir}/smartd_warning.d'
6254fi
6255
6256
6257
6258
6259# Check whether --with-scriptpath was given.
6260if test "${with_scriptpath+set}" = set; then :
6261 withval=$with_scriptpath; scriptpath=; test "$withval" != "no" && scriptpath="$withval"
6262else
6263 scriptpath="/usr/bin:/bin"
6264fi
6265
6266
6267 if test -n "$scriptpath"; then
6268 ENABLE_SCRIPTPATH_TRUE=
6269 ENABLE_SCRIPTPATH_FALSE='#'
6270else
6271 ENABLE_SCRIPTPATH_TRUE='#'
6272 ENABLE_SCRIPTPATH_FALSE=
6273fi
6274
6275
6276savestates=
6277
6278# Check whether --with-savestates was given.
6279if test "${with_savestates+set}" = set; then :
6280 withval=$with_savestates; case "$withval" in yes) savestates='${localstatedir}/lib/${PACKAGE}/smartd.' ;;
6281 no) ;; *) savestates="$withval" ;; esac
6282fi
6283
6284savestatesdir="${savestates%/*}"
6285
6286
6287 if test -n "$savestates"; then
6288 ENABLE_SAVESTATES_TRUE=
6289 ENABLE_SAVESTATES_FALSE='#'
6290else
6291 ENABLE_SAVESTATES_TRUE='#'
6292 ENABLE_SAVESTATES_FALSE=
6293fi
6294
6295
6296attributelog=
6297
6298# Check whether --with-attributelog was given.
6299if test "${with_attributelog+set}" = set; then :
6300 withval=$with_attributelog; case "$withval" in yes) attributelog='${localstatedir}/lib/${PACKAGE}/attrlog.' ;;
6301 no) ;; *) attributelog="$withval" ;; esac
6302fi
6303
6304attributelogdir="${attributelog%/*}"
6305
6306
6307 if test -n "$attributelog"; then
6308 ENABLE_ATTRIBUTELOG_TRUE=
6309 ENABLE_ATTRIBUTELOG_FALSE='#'
6310else
6311 ENABLE_ATTRIBUTELOG_TRUE='#'
6312 ENABLE_ATTRIBUTELOG_FALSE=
6313fi
6314
6315
6316# Check whether --enable-sample was given.
6317if test "${enable_sample+set}" = set; then :
6318 enableval=$enable_sample; smartd_suffix=; test "$enableval" = "yes" && smartd_suffix=".sample"
6319else
6320 smartd_suffix=;
6321fi
6322
6323
6324
6325
6326# Check whether --with-os-deps was given.
6327if test "${with_os_deps+set}" = set; then :
6328 withval=$with_os_deps; for x in $with_os_deps; do
6329 case $x in
6330 *.o) ;;
6331 *) as_fn_error $? "non-object file specified by --with-os-deps" "$LINENO" 5 ;;
6332 esac
6333 done
6334
6335fi
6336
6337
6338
6339# Check whether --with-selinux was given.
6340if test "${with_selinux+set}" = set; then :
6341 withval=$with_selinux; if test "$withval" = "yes"; then
6342 for ac_header in selinux/selinux.h
6343do :
6344 ac_fn_cxx_check_header_mongrel "$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default"
6345if test "x$ac_cv_header_selinux_selinux_h" = xyes; then :
6346 cat >>confdefs.h <<_ACEOF
6347#define HAVE_SELINUX_SELINUX_H 1
6348_ACEOF
6349
6350else
6351 as_fn_error $? "Missing SELinux header files" "$LINENO" 5
6352fi
6353
6354done
6355
6356 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for matchpathcon in -lselinux" >&5
6357$as_echo_n "checking for matchpathcon in -lselinux... " >&6; }
6358if ${ac_cv_lib_selinux_matchpathcon+:} false; then :
6359 $as_echo_n "(cached) " >&6
6360else
6361 ac_check_lib_save_LIBS=$LIBS
6362LIBS="-lselinux $LIBS"
6363cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6364/* end confdefs.h. */
6365
6366/* Override any GCC internal prototype to avoid an error.
6367 Use char because int might match the return type of a GCC
6368 builtin and then its argument prototype would still apply. */
6369#ifdef __cplusplus
6370extern "C"
6371#endif
6372char matchpathcon ();
6373int
6374main ()
6375{
6376return matchpathcon ();
6377 ;
6378 return 0;
6379}
6380_ACEOF
6381if ac_fn_cxx_try_link "$LINENO"; then :
6382 ac_cv_lib_selinux_matchpathcon=yes
6383else
6384 ac_cv_lib_selinux_matchpathcon=no
6385fi
6386rm -f core conftest.err conftest.$ac_objext \
6387 conftest$ac_exeext conftest.$ac_ext
6388LIBS=$ac_check_lib_save_LIBS
6389fi
6390{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_matchpathcon" >&5
6391$as_echo "$ac_cv_lib_selinux_matchpathcon" >&6; }
6392if test "x$ac_cv_lib_selinux_matchpathcon" = xyes; then :
6393 cat >>confdefs.h <<_ACEOF
6394#define HAVE_LIBSELINUX 1
6395_ACEOF
6396
6397 LIBS="-lselinux $LIBS"
6398
6399else
6400 as_fn_error $? "Missing or incorrect SELinux library files" "$LINENO" 5
6401fi
6402
6403 fi
6404
6405fi
6406
6407
6408if test "$with_selinux" = "yes"; then
6409
6410$as_echo "#define WITH_SELINUX 1" >>confdefs.h
6411
6412fi
6413
6414
6415# Check whether --with-libcap-ng was given.
6416if test "${with_libcap_ng+set}" = set; then :
6417 withval=$with_libcap_ng;
6418else
6419 with_libcap_ng=auto
6420fi
6421
6422
6423use_libcap_ng=no
6424if test "$with_libcap_ng" != "no"; then
6425 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for capng_clear in -lcap-ng" >&5
6426$as_echo_n "checking for capng_clear in -lcap-ng... " >&6; }
6427if ${ac_cv_lib_cap_ng_capng_clear+:} false; then :
6428 $as_echo_n "(cached) " >&6
6429else
6430 ac_check_lib_save_LIBS=$LIBS
6431LIBS="-lcap-ng $LIBS"
6432cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6433/* end confdefs.h. */
6434
6435/* Override any GCC internal prototype to avoid an error.
6436 Use char because int might match the return type of a GCC
6437 builtin and then its argument prototype would still apply. */
6438#ifdef __cplusplus
6439extern "C"
6440#endif
6441char capng_clear ();
6442int
6443main ()
6444{
6445return capng_clear ();
6446 ;
6447 return 0;
6448}
6449_ACEOF
6450if ac_fn_cxx_try_link "$LINENO"; then :
6451 ac_cv_lib_cap_ng_capng_clear=yes
6452else
6453 ac_cv_lib_cap_ng_capng_clear=no
6454fi
6455rm -f core conftest.err conftest.$ac_objext \
6456 conftest$ac_exeext conftest.$ac_ext
6457LIBS=$ac_check_lib_save_LIBS
6458fi
6459{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_ng_capng_clear" >&5
6460$as_echo "$ac_cv_lib_cap_ng_capng_clear" >&6; }
6461if test "x$ac_cv_lib_cap_ng_capng_clear" = xyes; then :
6462
6463$as_echo "#define HAVE_LIBCAP_NG 1" >>confdefs.h
6464 CAPNG_LDADD="-lcap-ng"; use_libcap_ng=yes
6465fi
6466
6467
6468 if test "$use_libcap_ng" = "yes"; then
6469 ac_fn_cxx_check_header_mongrel "$LINENO" "cap-ng.h" "ac_cv_header_cap_ng_h" "$ac_includes_default"
6470if test "x$ac_cv_header_cap_ng_h" = xyes; then :
6471
6472else
6473 as_fn_error $? "libcap-ng libraries found but headers are missing" "$LINENO" 5
6474fi
6475
6476
6477 elif test "$with_libcap_ng" = "yes"; then
6478 as_fn_error $? "libcap-ng support was requested but the library was not found" "$LINENO" 5
6479 fi
6480fi
6481
6482{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to use libcap-ng" >&5
6483$as_echo_n "checking whether to use libcap-ng... " >&6; }
6484
6485{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $use_libcap_ng" >&5
6486$as_echo "$use_libcap_ng" >&6; }
6487
6488# TODO: Remove when NVMe support is no longer EXPERIMENTAL
6489
6490# Check whether --with-nvme-devicescan was given.
6491if test "${with_nvme_devicescan+set}" = set; then :
6492 withval=$with_nvme_devicescan;
6493fi
6494
6495
6496if test "$with_nvme_devicescan" = "yes"; then
6497
6498$as_echo "#define WITH_NVME_DEVICESCAN 1" >>confdefs.h
6499
6500fi
6501
6502
6503# Check whether --with-solaris-sparc-ata was given.
6504if test "${with_solaris_sparc_ata+set}" = set; then :
6505 withval=$with_solaris_sparc_ata;
6506fi
6507
6508
6509case "$host:$with_solaris_sparc_ata" in
6510 sparc-*-solaris*:yes)
6511 if test ! -f "$srcdir/os_solaris_ata.s"; then
6512 as_fn_error $? "Missing source file: $srcdir/os_solaris_ata.s
6513This file is no longer included in the source tarball but still
6514available in the SVN repository." "$LINENO" 5
6515 fi
6516
6517$as_echo "#define WITH_SOLARIS_SPARC_ATA 1" >>confdefs.h
6518
6519 ;;
6520esac
6521
6522# Assume broken snprintf only on Windows with MSVCRT (MinGW without ANSI stdio support)
6523libc_have_working_snprintf=yes
6524
6525case "$host" in
6526 *-*-mingw*)
6527 case " $CPPFLAGS $CXXFLAGS" in
6528 *\ -[DU]__USE_MINGW_ANSI_STDIO*)
6529 ;;
6530 *)
6531 # Older MinGW do not properly define PRI?64 if __USE_MINGW_ANSI_STDIO is set
6532 # Newer MinGW set __USE_MINGW_ANSI_STDIO in first C++ include which may be too late
6533 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether __USE_MINGW_ANSI_STDIO is defined by C++ includes" >&5
6534$as_echo_n "checking whether __USE_MINGW_ANSI_STDIO is defined by C++ includes... " >&6; }
6535 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6536/* end confdefs.h. */
6537
6538 #undef __USE_MINGW_ANSI_STDIO
6539 #include <iostream>
6540 #ifndef __USE_MINGW_ANSI_STDIO
6541 #error false
6542 #endif
6543_ACEOF
6544if ac_fn_cxx_try_cpp "$LINENO"; then :
6545 CXXFLAGS="-D__USE_MINGW_ANSI_STDIO $CXXFLAGS"
6546else
6547 libc_have_working_snprintf=no
6548fi
6549rm -f conftest.err conftest.i conftest.$ac_ext
6550 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $libc_have_working_snprintf" >&5
6551$as_echo "$libc_have_working_snprintf" >&6; }
6552 ;;
6553 esac ;;
6554esac
6555
6556
6557# Check whether --with-working-snprintf was given.
6558if test "${with_working_snprintf+set}" = set; then :
6559 withval=$with_working_snprintf; libc_have_working_snprintf=$withval
6560fi
6561
6562
6563if test "$libc_have_working_snprintf" = "yes"; then
6564
6565$as_echo "#define HAVE_WORKING_SNPRINTF 1" >>confdefs.h
6566 fi
6567
6568
6569# Check whether --with-mingw-aslr was given.
6570if test "${with_mingw_aslr+set}" = set; then :
6571 withval=$with_mingw_aslr;
6572else
6573 with_mingw_aslr=auto
6574fi
6575
6576
6577case "$host:${LDFLAGS+set}" in
6578 *-*-mingw*:) # MinGW defaults: link statically and indicate DEP and TS compatibility
6579 LDFLAGS="-static -Wl,--nxcompat,--tsaware" ;;
6580esac
6581
6582case "$host:$with_mingw_aslr" in
6583 x86_64-*-mingw*:auto)
6584 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports --high-entropy-va" >&5
6585$as_echo_n "checking whether $CXX supports --high-entropy-va... " >&6; }
6586 save_LDFLAGS=$LDFLAGS
6587 LDFLAGS="$LDFLAGS -pie -Wl,--dynamicbase,-emainCRTStartup,--high-entropy-va,--image-base,0x140000000"
6588 # Link libstdc++ to detect MinGW 6.3.0 problems with high --image-base
6589 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6590/* end confdefs.h. */
6591
6592 #include <string>
6593 std::string s(42, '.');
6594int
6595main ()
6596{
6597
6598 ;
6599 return 0;
6600}
6601_ACEOF
6602if ac_fn_cxx_try_link "$LINENO"; then :
6603 with_mingw_aslr=yes
6604else
6605 with_mingw_aslr=no
6606fi
6607rm -f core conftest.err conftest.$ac_objext \
6608 conftest$ac_exeext conftest.$ac_ext
6609 LDFLAGS=$save_LDFLAGS
6610 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_mingw_aslr" >&5
6611$as_echo "$with_mingw_aslr" >&6; }
6612 test "$with_mingw_aslr" = "yes" || with_mingw_aslr=low
6613 ;;
6614esac
6615
6616case "$host:$with_mingw_aslr" in
6617 x86_64-*-mingw*:yes)
6618 LDFLAGS="$LDFLAGS -pie -Wl,--dynamicbase,-emainCRTStartup,--high-entropy-va,--image-base,0x140000000" ;;
6619 x86_64-*-mingw*:low)
6620 LDFLAGS="$LDFLAGS -pie -Wl,--dynamicbase,-emainCRTStartup" ;;
6621 *-*-mingw*:auto|*-*-mingw*:yes|*-*-mingw*:low)
6622 LDFLAGS="$LDFLAGS -pie -Wl,--dynamicbase,-e_mainCRTStartup" ;;
6623esac
6624
6625os_win32_manifest=
6626case "$host" in
6627 *-*-mingw*)
6628 # Newer MinGW may add a default manifest
6629 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX adds an application manifest" >&5
6630$as_echo_n "checking whether $CXX adds an application manifest... " >&6; }
6631 cc_adds_manifest=no
6632 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6633/* end confdefs.h. */
6634
6635int
6636main ()
6637{
6638
6639 ;
6640 return 0;
6641}
6642_ACEOF
6643if ac_fn_cxx_try_link "$LINENO"; then :
6644
6645 if "$WINDRES" -O rc conftest.exe 2>/dev/null | grep '^1.*RT_MANIFEST' >/dev/null 2>&1; then
6646 cc_adds_manifest=incomplete
6647 # Manifest must provide a Win 10 compatibility ID
6648 if "$WINDRES" -O rc conftest.exe 2>/dev/null | grep '{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}' >/dev/null 2>&1; then
6649 cc_adds_manifest=yes
6650 fi
6651 fi
6652else
6653 as_fn_error $? "test compile failed" "$LINENO" 5
6654fi
6655rm -f core conftest.err conftest.$ac_objext \
6656 conftest$ac_exeext conftest.$ac_ext
6657 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cc_adds_manifest" >&5
6658$as_echo "$cc_adds_manifest" >&6; }
6659 test "$cc_adds_manifest" = "yes" || os_win32_manifest='os_win32/default.manifest'
6660 ;;
6661esac
6662
6663
6664# Check whether --with-cxx11-option was given.
6665if test "${with_cxx11_option+set}" = set; then :
6666 withval=$with_cxx11_option;
6667else
6668 with_cxx11_option=auto
6669fi
6670
6671
6672check_cxx11_support()
6673{
6674 save_CXXFLAGS=$CXXFLAGS
6675 CXXFLAGS=$1
6676 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6677/* end confdefs.h. */
6678
6679 #if __cplusplus < 201103L
6680 #error false
6681 #endif
6682 // use some C++11 features (and return v * 42 :-)
6683 auto cxx11(long v) noexcept -> decltype(v) {
6684 typedef decltype(v) t; t r = v;
6685 static const t a[] = { -7, -1, 1, 2, 3 };
6686 static_assert(sizeof(r) == sizeof(a[0]), "fail");
6687 auto f = [](t x, t y){ return x * y; };
6688 for (const auto & e : a) r = f(r, e);
6689 return r;
6690 }
6691int
6692main ()
6693{
6694
6695 ;
6696 return 0;
6697}
6698_ACEOF
6699if ac_fn_cxx_try_compile "$LINENO"; then :
6700 CXXFLAGS=$save_CXXFLAGS; return 0
6701else
6702 CXXFLAGS=$save_CXXFLAGS; return 1
6703fi
6704rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6705}
6706
6707case "$with_cxx11_option" in
6708 no) ;;
6709 auto)
6710 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to accept C++11" >&5
6711$as_echo_n "checking for $CXX option to accept C++11... " >&6; }
6712 with_cxx11_option=unknown
6713 for option in "" "-std=gnu++11" "-std=gnu++0x" "-std=c++11" "-std=c++0x"; do
6714 if check_cxx11_support "$option"; then with_cxx11_option=$option; break; fi
6715 done
6716 { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_cxx11_option:-none needed}" >&5
6717$as_echo "${with_cxx11_option:-none needed}" >&6; }
6718 test "$with_cxx11_option" != "unknown" || as_fn_error $? "
6719This version of smartmontools does not use C++11 features, but future
6720versions possibly will.
6721This script was unable to determine a compiler option to enable C++11.
6722Use option '--with-cxx11-option=OPTION' to specify the compiler option
6723(it will be checked, but not used in the actual build).
6724Use option '--without-cxx11-option' to suppress this error message if the
6725compiler lacks C++11 support.
6726In both cases, please send info about compiler and platform to
6727$PACKAGE_BUGREPORT - Thanks!" "$LINENO" 5
6728 ;;
6729 *)
6730 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX $with_cxx11_option accepts C++11" >&5
6731$as_echo_n "checking whether $CXX $with_cxx11_option accepts C++11... " >&6; }
6732 res=no; check_cxx11_support "$with_cxx11_option" && res=yes
6733 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $res" >&5
6734$as_echo "$res" >&6; }
6735 test "$res" = "yes" || as_fn_error $? "$CXX $with_cxx11_option does not accept C++11" "$LINENO" 5
6736 ;;
6737esac
6738
6739
6740releaseversion='${PACKAGE}-${VERSION}'
6741
6742
6743
6744
6745# Set platform-specific modules and symbols
6746os_libs=
6747os_dltools='curl wget lynx svn'
6748os_mailer=mail
6749os_hostname="'hostname'"
6750os_dnsdomainname=
6751os_nisdomainname="'domainname'"
6752os_darwin=no
6753os_solaris=no
6754os_win32=no
6755os_win32_mingw=no
6756os_win64=no
6757os_man_filter=
6758case "${host}" in
6759 *-*-linux*)
6760 os_deps='os_linux.o cciss.o dev_areca.o'
6761 os_dnsdomainname="'dnsdomainname' 'hostname -d'"
6762 os_nisdomainname="'nisdomainname' 'hostname -y' 'domainname'"
6763 os_man_filter=Linux
6764 ;;
6765 *-*-freebsd*|*-*-dragonfly*|*-*-kfreebsd*-gnu*)
6766 os_deps='os_freebsd.o cciss.o dev_areca.o'
6767 os_libs='-lcam'
6768 os_dltools='curl wget lynx fetch svn'
6769 { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libusb20_dev_get_device_desc in -lusb" >&5
6770$as_echo_n "checking for libusb20_dev_get_device_desc in -lusb... " >&6; }
6771if ${ac_cv_lib_usb_libusb20_dev_get_device_desc+:} false; then :
6772 $as_echo_n "(cached) " >&6
6773else
6774 ac_check_lib_save_LIBS=$LIBS
6775LIBS="-lusb $LIBS"
6776cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6777/* end confdefs.h. */
6778
6779/* Override any GCC internal prototype to avoid an error.
6780 Use char because int might match the return type of a GCC
6781 builtin and then its argument prototype would still apply. */
6782#ifdef __cplusplus
6783extern "C"
6784#endif
6785char libusb20_dev_get_device_desc ();
6786int
6787main ()
6788{
6789return libusb20_dev_get_device_desc ();
6790 ;
6791 return 0;
6792}
6793_ACEOF
6794if ac_fn_cxx_try_link "$LINENO"; then :
6795 ac_cv_lib_usb_libusb20_dev_get_device_desc=yes
6796else
6797 ac_cv_lib_usb_libusb20_dev_get_device_desc=no
6798fi
6799rm -f core conftest.err conftest.$ac_objext \
6800 conftest$ac_exeext conftest.$ac_ext
6801LIBS=$ac_check_lib_save_LIBS
6802fi
6803{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_libusb20_dev_get_device_desc" >&5
6804$as_echo "$ac_cv_lib_usb_libusb20_dev_get_device_desc" >&6; }
6805if test "x$ac_cv_lib_usb_libusb20_dev_get_device_desc" = xyes; then :
6806 cat >>confdefs.h <<_ACEOF
6807#define HAVE_LIBUSB 1
6808_ACEOF
6809
6810 LIBS="-lusb $LIBS"
6811
6812fi
6813
6814 os_man_filter=FreeBSD
6815 ;;
6816 sparc-*-solaris*)
6817 os_deps='os_solaris.o'
6818 test "$with_solaris_sparc_ata" = "yes" \
6819 && os_deps="$os_deps os_solaris_ata.o"
6820 os_mailer='mailx'
6821 os_solaris=yes
6822 os_man_filter=Solaris
6823 ;;
6824 *-pc-solaris*)
6825 os_deps='os_solaris.o'
6826 os_mailer='mailx'
6827 os_solaris=yes
6828 os_man_filter=Solaris
6829 ;;
6830 *-*-netbsd*)
6831 os_deps='os_netbsd.o'
6832 os_libs='-lutil'
6833 os_man_filter=NetBSD
6834 ;;
6835 *-*-openbsd*)
6836 os_deps='os_openbsd.o'
6837 os_libs='-lutil'
6838 os_dltools='curl wget lynx ftp svn'
6839 os_man_filter=OpenBSD
6840 ;;
6841 *-*-cygwin*)
6842 os_deps='os_win32.o dev_areca.o'
6843 os_mailer='email'
6844 os_hostname="'hostname' 'echo "'"${HOSTNAME?unset}"'"'"
6845 os_dnsdomainname="'dnsdomainname' 'hostname -d' 'echo "'"${USERDNSDOMAIN?unset}"'"'"
6846 os_nisdomainname=
6847 os_win32=yes
6848 os_man_filter=Cygwin
6849 ;;
6850 x86_64-*-mingw*)
6851 os_deps='os_win32.o dev_areca.o'
6852 os_win32=yes
6853 os_win32_mingw=yes
6854 os_win64=yes
6855 os_man_filter=Windows
6856 ;;
6857 *-*-mingw*)
6858 os_deps='os_win32.o dev_areca.o'
6859 os_win32=yes
6860 os_win32_mingw=yes
6861 os_man_filter=Windows
6862 ;;
6863 *-*-darwin*)
6864 os_deps='os_darwin.o'
6865 os_libs='-framework CoreFoundation -framework IOKit'
6866 os_darwin=yes
6867 os_man_filter=Darwin
6868 ;;
6869 *-*-nto-qnx*)
6870 os_deps='os_qnxnto.o'
6871 ;;
6872 *-*-os2-*)
6873 os_deps='os_os2.o'
6874 ;;
6875 *)
6876 os_deps='os_generic.o'
6877 ;;
6878esac
6879
6880# Replace if '--with-os-deps' was specified
6881test -z "$with_os_deps" || os_deps="$with_os_deps"
6882
6883# Check if we need adapter to old interface (dev_legacy.cpp)
6884os_src=`echo "${os_deps}"|sed -n 's,^\([^ .]*\)\.o.*$,\1.cpp,p'`
6885{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${os_src} uses new interface" >&5
6886$as_echo_n "checking whether ${os_src} uses new interface... " >&6; }
6887if grep "smart_interface" "${srcdir}/${os_src}" >/dev/null 2>&1; then
6888 os_new_interface=yes
6889else
6890 os_new_interface=no
6891 os_deps="${os_deps} dev_legacy.o"
6892
6893$as_echo "#define OLD_INTERFACE 1" >>confdefs.h
6894
6895fi
6896{ $as_echo "$as_me:${as_lineno-$LINENO}: result: $os_new_interface" >&5
6897$as_echo "$os_new_interface" >&6; }
6898
6899
6900
6901
6902
6903
6904
6905
6906
6907
6908
6909# Create drivedb.h update branch name from version: 5.41[.X] -> RELEASE_5_41_DRIVEDB
6910DRIVEDB_BRANCH=`echo "$drivedb_version" | sed 's,^\([0-9]*\.[0-9]*\)\..*$,\1,' \
6911 | sed -n 's,^\([0-9][0-9]*\)\.\([0-9][0-9]*\)$,RELEASE_\1_\2_DRIVEDB,p'`
6912if test -z "$DRIVEDB_BRANCH"; then
6913 as_fn_error $? "Unable to create DRIVEDB_BRANCH for version: $drivedb_version" "$LINENO" 5
6914fi
6915
6916
6917# Enable platform-specific makefile sections
6918 if test "$os_darwin" = "yes"; then
6919 OS_DARWIN_TRUE=
6920 OS_DARWIN_FALSE='#'
6921else
6922 OS_DARWIN_TRUE='#'
6923 OS_DARWIN_FALSE=
6924fi
6925
6926 if test "$os_solaris" = "yes"; then
6927 OS_SOLARIS_TRUE=
6928 OS_SOLARIS_FALSE='#'
6929else
6930 OS_SOLARIS_TRUE='#'
6931 OS_SOLARIS_FALSE=
6932fi
6933
6934 if test "$os_win32" = "yes"; then
6935 OS_WIN32_TRUE=
6936 OS_WIN32_FALSE='#'
6937else
6938 OS_WIN32_TRUE='#'
6939 OS_WIN32_FALSE=
6940fi
6941
6942 if test "$os_win32_mingw" = "yes"; then
6943 OS_WIN32_MINGW_TRUE=
6944 OS_WIN32_MINGW_FALSE='#'
6945else
6946 OS_WIN32_MINGW_TRUE='#'
6947 OS_WIN32_MINGW_FALSE=
6948fi
6949
6950 if test -n "$MAKENSIS"; then
6951 OS_WIN32_NSIS_TRUE=
6952 OS_WIN32_NSIS_FALSE='#'
6953else
6954 OS_WIN32_NSIS_TRUE='#'
6955 OS_WIN32_NSIS_FALSE=
6956fi
6957
6958 if test "$os_win64" = "yes"; then
6959 OS_WIN64_TRUE=
6960 OS_WIN64_FALSE='#'
6961else
6962 OS_WIN64_TRUE='#'
6963 OS_WIN64_FALSE=
6964fi
6965
6966
6967if test "$GXX" = "yes"; then
6968 # Add -Wall and -W[extra] if its not already specified
6969 case " $CXXFLAGS " in
6970 *\ -Wall\ *) ;;
6971 *) CXXFLAGS="$CXXFLAGS -Wall" ;;
6972 esac
6973 case " $CXXFLAGS " in
6974 *\ -W\ *|*\ -Wextra\ *) ;;
6975 *) CXXFLAGS="$CXXFLAGS -W" ;;
6976 esac
6977 # Add -Wformat=2 (GCC 3.0) -fstack-protector[-strong] (GCC 4.1[4.9]) if supported
6978 # and CXXFLAGS was not set in configure cmdline (TODO: -Wformat-signedness)
6979 case "${ac_test_CXXFLAGS+set}:$ac_test_CXXFLAGS" in
6980 set:)
6981 for option in "-Wformat=2" "-fstack-protector-strong" "-fstack-protector"; do
6982 case " $CXXFLAGS:$option" in *\ -fstack-p*:-fstack-p*) continue ;; esac
6983 { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5
6984$as_echo_n "checking whether $CXX supports $option... " >&6; }
6985 save_CXXFLAGS=$CXXFLAGS
6986 CXXFLAGS="$CXXFLAGS $option"
6987 cat confdefs.h - <<_ACEOF >conftest.$ac_ext
6988/* end confdefs.h. */
6989
6990int
6991main ()
6992{
6993
6994 ;
6995 return 0;
6996}
6997_ACEOF
6998if ac_fn_cxx_try_compile "$LINENO"; then :
6999 res=yes
7000else
7001 res=no; CXXFLAGS=$save_CXXFLAGS
7002fi
7003rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7004 { $as_echo "$as_me:${as_lineno-$LINENO}: result: $res" >&5
7005$as_echo "$res" >&6; }
7006 done
7007 ;;
7008 esac
7009else
7010 # We are NOT using gcc, so enable host-specific compiler flags
7011 case "${host}" in
7012 sparc*-*-solaris*)
7013 # Tell the Solaris/SPARC C++ compiler about packed ATA structures
7014 case " $CXXFLAGS" in
7015 *\ -xmemalign*) ;;
7016 *) CXXFLAGS="-xmemalign=1i $CXXFLAGS" ;;
7017 esac ;;
7018 esac
7019 case "${host}" in
7020 *-*-solaris*)
7021 # Turn on optimization if user has not explicitly set its value
7022 case " $CXXFLAGS" in
7023 *\ -xO*) ;;
7024 *) CXXFLAGS="-xO2 $CXXFLAGS" ;;
7025 esac
7026 # Suppress trivial warnings
7027 case " $CXXFLAGS" in
7028 *\ -erroff*) ;;
7029 *) CXXFLAGS="-erroff=%none,wbadinitl,wbadasgl,badargtypel2w,badargtype2w $CXXFLAGS" ;;
7030 esac ;;
7031 esac
7032fi
7033
7034
7035cat >>confdefs.h <<_ACEOF
7036#define SMARTMONTOOLS_BUILD_HOST "${host}"
7037_ACEOF
7038
7039
7040
7041
7042ac_config_files="$ac_config_files Makefile"
7043
7044cat >confcache <<\_ACEOF
7045# This file is a shell script that caches the results of configure
7046# tests run on this system so they can be shared between configure
7047# scripts and configure runs, see configure's option --config-cache.
7048# It is not useful on other systems. If it contains results you don't
7049# want to keep, you may remove or edit it.
7050#
7051# config.status only pays attention to the cache file if you give it
7052# the --recheck option to rerun configure.
7053#
7054# `ac_cv_env_foo' variables (set or unset) will be overridden when
7055# loading this file, other *unset* `ac_cv_foo' will be assigned the
7056# following values.
7057
7058_ACEOF
7059
7060# The following way of writing the cache mishandles newlines in values,
7061# but we know of no workaround that is simple, portable, and efficient.
7062# So, we kill variables containing newlines.
7063# Ultrix sh set writes to stderr and can't be redirected directly,
7064# and sets the high bit in the cache file unless we assign to the vars.
7065(
7066 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
7067 eval ac_val=\$$ac_var
7068 case $ac_val in #(
7069 *${as_nl}*)
7070 case $ac_var in #(
7071 *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5
7072$as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;;
7073 esac
7074 case $ac_var in #(
7075 _ | IFS | as_nl) ;; #(
7076 BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #(
7077 *) { eval $ac_var=; unset $ac_var;} ;;
7078 esac ;;
7079 esac
7080 done
7081
7082 (set) 2>&1 |
7083 case $as_nl`(ac_space=' '; set) 2>&1` in #(
7084 *${as_nl}ac_space=\ *)
7085 # `set' does not quote correctly, so add quotes: double-quote
7086 # substitution turns \\\\ into \\, and sed turns \\ into \.
7087 sed -n \
7088 "s/'/'\\\\''/g;
7089 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
7090 ;; #(
7091 *)
7092 # `set' quotes correctly as required by POSIX, so do not add quotes.
7093 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
7094 ;;
7095 esac |
7096 sort
7097) |
7098 sed '
7099 /^ac_cv_env_/b end
7100 t clear
7101 :clear
7102 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
7103 t end
7104 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
7105 :end' >>confcache
7106if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
7107 if test -w "$cache_file"; then
7108 if test "x$cache_file" != "x/dev/null"; then
7109 { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5
7110$as_echo "$as_me: updating cache $cache_file" >&6;}
7111 if test ! -f "$cache_file" || test -h "$cache_file"; then
7112 cat confcache >"$cache_file"
7113 else
7114 case $cache_file in #(
7115 */* | ?:*)
7116 mv -f confcache "$cache_file"$$ &&
7117 mv -f "$cache_file"$$ "$cache_file" ;; #(
7118 *)
7119 mv -f confcache "$cache_file" ;;
7120 esac
7121 fi
7122 fi
7123 else
7124 { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5
7125$as_echo "$as_me: not updating unwritable cache $cache_file" >&6;}
7126 fi
7127fi
7128rm -f confcache
7129
7130test "x$prefix" = xNONE && prefix=$ac_default_prefix
7131# Let make expand exec_prefix.
7132test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
7133
7134DEFS=-DHAVE_CONFIG_H
7135
7136ac_libobjs=
7137ac_ltlibobjs=
7138U=
7139for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
7140 # 1. Remove the extension, and $U if already installed.
7141 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
7142 ac_i=`$as_echo "$ac_i" | sed "$ac_script"`
7143 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
7144 # will be set to the directory where LIBOBJS objects are built.
7145 as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext"
7146 as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo'
7147done
7148LIBOBJS=$ac_libobjs
7149
7150LTLIBOBJS=$ac_ltlibobjs
7151
7152
7153{ $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5
7154$as_echo_n "checking that generated files are newer than configure... " >&6; }
7155 if test -n "$am_sleep_pid"; then
7156 # Hide warnings about reused PIDs.
7157 wait $am_sleep_pid 2>/dev/null
7158 fi
7159 { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5
7160$as_echo "done" >&6; }
7161 if test -n "$EXEEXT"; then
7162 am__EXEEXT_TRUE=
7163 am__EXEEXT_FALSE='#'
7164else
7165 am__EXEEXT_TRUE='#'
7166 am__EXEEXT_FALSE=
7167fi
7168
7169if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
7170 as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined.
7171Usually this means the macro was only invoked conditionally." "$LINENO" 5
7172fi
7173if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
7174 as_fn_error $? "conditional \"AMDEP\" was never defined.
7175Usually this means the macro was only invoked conditionally." "$LINENO" 5
7176fi
7177if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
7178 as_fn_error $? "conditional \"am__fastdepCXX\" was never defined.
7179Usually this means the macro was only invoked conditionally." "$LINENO" 5
7180fi
7181if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
7182 as_fn_error $? "conditional \"am__fastdepCC\" was never defined.
7183Usually this means the macro was only invoked conditionally." "$LINENO" 5
7184fi
7185if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then
7186 as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined.
7187Usually this means the macro was only invoked conditionally." "$LINENO" 5
7188fi
7189if test -z "${IS_SVN_BUILD_TRUE}" && test -z "${IS_SVN_BUILD_FALSE}"; then
7190 as_fn_error $? "conditional \"IS_SVN_BUILD\" was never defined.
7191Usually this means the macro was only invoked conditionally." "$LINENO" 5
7192fi
7193if test -z "${NEED_GETOPT_LONG_TRUE}" && test -z "${NEED_GETOPT_LONG_FALSE}"; then
7194 as_fn_error $? "conditional \"NEED_GETOPT_LONG\" was never defined.
7195Usually this means the macro was only invoked conditionally." "$LINENO" 5
7196fi
7197if test -z "${NEED_REGEX_TRUE}" && test -z "${NEED_REGEX_FALSE}"; then
7198 as_fn_error $? "conditional \"NEED_REGEX\" was never defined.
7199Usually this means the macro was only invoked conditionally." "$LINENO" 5
7200fi
7201
7202if test -z "${INSTALL_SYSTEMDUNIT_TRUE}" && test -z "${INSTALL_SYSTEMDUNIT_FALSE}"; then
7203 as_fn_error $? "conditional \"INSTALL_SYSTEMDUNIT\" was never defined.
7204Usually this means the macro was only invoked conditionally." "$LINENO" 5
7205fi
7206if test -z "${INSTALL_INITSCRIPT_TRUE}" && test -z "${INSTALL_INITSCRIPT_FALSE}"; then
7207 as_fn_error $? "conditional \"INSTALL_INITSCRIPT\" was never defined.
7208Usually this means the macro was only invoked conditionally." "$LINENO" 5
7209fi
7210if test -z "${ENABLE_DRIVEDB_TRUE}" && test -z "${ENABLE_DRIVEDB_FALSE}"; then
7211 as_fn_error $? "conditional \"ENABLE_DRIVEDB\" was never defined.
7212Usually this means the macro was only invoked conditionally." "$LINENO" 5
7213fi
7214if test -z "${ENABLE_UPDATE_SMART_DRIVEDB_TRUE}" && test -z "${ENABLE_UPDATE_SMART_DRIVEDB_FALSE}"; then
7215 as_fn_error $? "conditional \"ENABLE_UPDATE_SMART_DRIVEDB\" was never defined.
7216Usually this means the macro was only invoked conditionally." "$LINENO" 5
7217fi
7218if test -z "${ENABLE_SCRIPTPATH_TRUE}" && test -z "${ENABLE_SCRIPTPATH_FALSE}"; then
7219 as_fn_error $? "conditional \"ENABLE_SCRIPTPATH\" was never defined.
7220Usually this means the macro was only invoked conditionally." "$LINENO" 5
7221fi
7222if test -z "${ENABLE_SAVESTATES_TRUE}" && test -z "${ENABLE_SAVESTATES_FALSE}"; then
7223 as_fn_error $? "conditional \"ENABLE_SAVESTATES\" was never defined.
7224Usually this means the macro was only invoked conditionally." "$LINENO" 5
7225fi
7226if test -z "${ENABLE_ATTRIBUTELOG_TRUE}" && test -z "${ENABLE_ATTRIBUTELOG_FALSE}"; then
7227 as_fn_error $? "conditional \"ENABLE_ATTRIBUTELOG\" was never defined.
7228Usually this means the macro was only invoked conditionally." "$LINENO" 5
7229fi
7230if test -z "${OS_DARWIN_TRUE}" && test -z "${OS_DARWIN_FALSE}"; then
7231 as_fn_error $? "conditional \"OS_DARWIN\" was never defined.
7232Usually this means the macro was only invoked conditionally." "$LINENO" 5
7233fi
7234if test -z "${OS_SOLARIS_TRUE}" && test -z "${OS_SOLARIS_FALSE}"; then
7235 as_fn_error $? "conditional \"OS_SOLARIS\" was never defined.
7236Usually this means the macro was only invoked conditionally." "$LINENO" 5
7237fi
7238if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then
7239 as_fn_error $? "conditional \"OS_WIN32\" was never defined.
7240Usually this means the macro was only invoked conditionally." "$LINENO" 5
7241fi
7242if test -z "${OS_WIN32_MINGW_TRUE}" && test -z "${OS_WIN32_MINGW_FALSE}"; then
7243 as_fn_error $? "conditional \"OS_WIN32_MINGW\" was never defined.
7244Usually this means the macro was only invoked conditionally." "$LINENO" 5
7245fi
7246if test -z "${OS_WIN32_NSIS_TRUE}" && test -z "${OS_WIN32_NSIS_FALSE}"; then
7247 as_fn_error $? "conditional \"OS_WIN32_NSIS\" was never defined.
7248Usually this means the macro was only invoked conditionally." "$LINENO" 5
7249fi
7250if test -z "${OS_WIN64_TRUE}" && test -z "${OS_WIN64_FALSE}"; then
7251 as_fn_error $? "conditional \"OS_WIN64\" was never defined.
7252Usually this means the macro was only invoked conditionally." "$LINENO" 5
7253fi
7254
7255: "${CONFIG_STATUS=./config.status}"
7256ac_write_fail=0
7257ac_clean_files_save=$ac_clean_files
7258ac_clean_files="$ac_clean_files $CONFIG_STATUS"
7259{ $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5
7260$as_echo "$as_me: creating $CONFIG_STATUS" >&6;}
7261as_write_fail=0
7262cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1
7263#! $SHELL
7264# Generated by $as_me.
7265# Run this file to recreate the current configuration.
7266# Compiler output produced by configure, useful for debugging
7267# configure, is in config.log if it exists.
7268
7269debug=false
7270ac_cs_recheck=false
7271ac_cs_silent=false
7272
7273SHELL=\${CONFIG_SHELL-$SHELL}
7274export SHELL
7275_ASEOF
7276cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1
7277## -------------------- ##
7278## M4sh Initialization. ##
7279## -------------------- ##
7280
7281# Be more Bourne compatible
7282DUALCASE=1; export DUALCASE # for MKS sh
7283if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then :
7284 emulate sh
7285 NULLCMD=:
7286 # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which
7287 # is contrary to our usage. Disable this feature.
7288 alias -g '${1+"$@"}'='"$@"'
7289 setopt NO_GLOB_SUBST
7290else
7291 case `(set -o) 2>/dev/null` in #(
7292 *posix*) :
7293 set -o posix ;; #(
7294 *) :
7295 ;;
7296esac
7297fi
7298
7299
7300as_nl='
7301'
7302export as_nl
7303# Printing a long string crashes Solaris 7 /usr/bin/printf.
7304as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\'
7305as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo
7306as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo
7307# Prefer a ksh shell builtin over an external printf program on Solaris,
7308# but without wasting forks for bash or zsh.
7309if test -z "$BASH_VERSION$ZSH_VERSION" \
7310 && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then
7311 as_echo='print -r --'
7312 as_echo_n='print -rn --'
7313elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then
7314 as_echo='printf %s\n'
7315 as_echo_n='printf %s'
7316else
7317 if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then
7318 as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"'
7319 as_echo_n='/usr/ucb/echo -n'
7320 else
7321 as_echo_body='eval expr "X$1" : "X\\(.*\\)"'
7322 as_echo_n_body='eval
7323 arg=$1;
7324 case $arg in #(
7325 *"$as_nl"*)
7326 expr "X$arg" : "X\\(.*\\)$as_nl";
7327 arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;;
7328 esac;
7329 expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl"
7330 '
7331 export as_echo_n_body
7332 as_echo_n='sh -c $as_echo_n_body as_echo'
7333 fi
7334 export as_echo_body
7335 as_echo='sh -c $as_echo_body as_echo'
7336fi
7337
7338# The user is always right.
7339if test "${PATH_SEPARATOR+set}" != set; then
7340 PATH_SEPARATOR=:
7341 (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && {
7342 (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 ||
7343 PATH_SEPARATOR=';'
7344 }
7345fi
7346
7347
7348# IFS
7349# We need space, tab and new line, in precisely that order. Quoting is
7350# there to prevent editors from complaining about space-tab.
7351# (If _AS_PATH_WALK were called with IFS unset, it would disable word
7352# splitting by setting IFS to empty value.)
7353IFS=" "" $as_nl"
7354
7355# Find who we are. Look in the path if we contain no directory separator.
7356as_myself=
7357case $0 in #((
7358 *[\\/]* ) as_myself=$0 ;;
7359 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
7360for as_dir in $PATH
7361do
7362 IFS=$as_save_IFS
7363 test -z "$as_dir" && as_dir=.
7364 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
7365 done
7366IFS=$as_save_IFS
7367
7368 ;;
7369esac
7370# We did not find ourselves, most probably we were run as `sh COMMAND'
7371# in which case we are not to be found in the path.
7372if test "x$as_myself" = x; then
7373 as_myself=$0
7374fi
7375if test ! -f "$as_myself"; then
7376 $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
7377 exit 1
7378fi
7379
7380# Unset variables that we do not need and which cause bugs (e.g. in
7381# pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1"
7382# suppresses any "Segmentation fault" message there. '((' could
7383# trigger a bug in pdksh 5.2.14.
7384for as_var in BASH_ENV ENV MAIL MAILPATH
7385do eval test x\${$as_var+set} = xset \
7386 && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || :
7387done
7388PS1='$ '
7389PS2='> '
7390PS4='+ '
7391
7392# NLS nuisances.
7393LC_ALL=C
7394export LC_ALL
7395LANGUAGE=C
7396export LANGUAGE
7397
7398# CDPATH.
7399(unset CDPATH) >/dev/null 2>&1 && unset CDPATH
7400
7401
7402# as_fn_error STATUS ERROR [LINENO LOG_FD]
7403# ----------------------------------------
7404# Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are
7405# provided, also output the error to LOG_FD, referencing LINENO. Then exit the
7406# script with STATUS, using 1 if that was 0.
7407as_fn_error ()
7408{
7409 as_status=$1; test $as_status -eq 0 && as_status=1
7410 if test "$4"; then
7411 as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack
7412 $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4
7413 fi
7414 $as_echo "$as_me: error: $2" >&2
7415 as_fn_exit $as_status
7416} # as_fn_error
7417
7418
7419# as_fn_set_status STATUS
7420# -----------------------
7421# Set $? to STATUS, without forking.
7422as_fn_set_status ()
7423{
7424 return $1
7425} # as_fn_set_status
7426
7427# as_fn_exit STATUS
7428# -----------------
7429# Exit the shell with STATUS, even in a "trap 0" or "set -e" context.
7430as_fn_exit ()
7431{
7432 set +e
7433 as_fn_set_status $1
7434 exit $1
7435} # as_fn_exit
7436
7437# as_fn_unset VAR
7438# ---------------
7439# Portably unset VAR.
7440as_fn_unset ()
7441{
7442 { eval $1=; unset $1;}
7443}
7444as_unset=as_fn_unset
7445# as_fn_append VAR VALUE
7446# ----------------------
7447# Append the text in VALUE to the end of the definition contained in VAR. Take
7448# advantage of any shell optimizations that allow amortized linear growth over
7449# repeated appends, instead of the typical quadratic growth present in naive
7450# implementations.
7451if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then :
7452 eval 'as_fn_append ()
7453 {
7454 eval $1+=\$2
7455 }'
7456else
7457 as_fn_append ()
7458 {
7459 eval $1=\$$1\$2
7460 }
7461fi # as_fn_append
7462
7463# as_fn_arith ARG...
7464# ------------------
7465# Perform arithmetic evaluation on the ARGs, and store the result in the
7466# global $as_val. Take advantage of shells that can avoid forks. The arguments
7467# must be portable across $(()) and expr.
7468if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then :
7469 eval 'as_fn_arith ()
7470 {
7471 as_val=$(( $* ))
7472 }'
7473else
7474 as_fn_arith ()
7475 {
7476 as_val=`expr "$@" || test $? -eq 1`
7477 }
7478fi # as_fn_arith
7479
7480
7481if expr a : '\(a\)' >/dev/null 2>&1 &&
7482 test "X`expr 00001 : '.*\(...\)'`" = X001; then
7483 as_expr=expr
7484else
7485 as_expr=false
7486fi
7487
7488if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
7489 as_basename=basename
7490else
7491 as_basename=false
7492fi
7493
7494if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
7495 as_dirname=dirname
7496else
7497 as_dirname=false
7498fi
7499
7500as_me=`$as_basename -- "$0" ||
7501$as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
7502 X"$0" : 'X\(//\)$' \| \
7503 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
7504$as_echo X/"$0" |
7505 sed '/^.*\/\([^/][^/]*\)\/*$/{
7506 s//\1/
7507 q
7508 }
7509 /^X\/\(\/\/\)$/{
7510 s//\1/
7511 q
7512 }
7513 /^X\/\(\/\).*/{
7514 s//\1/
7515 q
7516 }
7517 s/.*/./; q'`
7518
7519# Avoid depending upon Character Ranges.
7520as_cr_letters='abcdefghijklmnopqrstuvwxyz'
7521as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
7522as_cr_Letters=$as_cr_letters$as_cr_LETTERS
7523as_cr_digits='0123456789'
7524as_cr_alnum=$as_cr_Letters$as_cr_digits
7525
7526ECHO_C= ECHO_N= ECHO_T=
7527case `echo -n x` in #(((((
7528-n*)
7529 case `echo 'xy\c'` in
7530 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
7531 xy) ECHO_C='\c';;
7532 *) echo `echo ksh88 bug on AIX 6.1` > /dev/null
7533 ECHO_T=' ';;
7534 esac;;
7535*)
7536 ECHO_N='-n';;
7537esac
7538
7539rm -f conf$$ conf$$.exe conf$$.file
7540if test -d conf$$.dir; then
7541 rm -f conf$$.dir/conf$$.file
7542else
7543 rm -f conf$$.dir
7544 mkdir conf$$.dir 2>/dev/null
7545fi
7546if (echo >conf$$.file) 2>/dev/null; then
7547 if ln -s conf$$.file conf$$ 2>/dev/null; then
7548 as_ln_s='ln -s'
7549 # ... but there are two gotchas:
7550 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
7551 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
7552 # In both cases, we have to default to `cp -pR'.
7553 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
7554 as_ln_s='cp -pR'
7555 elif ln conf$$.file conf$$ 2>/dev/null; then
7556 as_ln_s=ln
7557 else
7558 as_ln_s='cp -pR'
7559 fi
7560else
7561 as_ln_s='cp -pR'
7562fi
7563rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
7564rmdir conf$$.dir 2>/dev/null
7565
7566
7567# as_fn_mkdir_p
7568# -------------
7569# Create "$as_dir" as a directory, including parents if necessary.
7570as_fn_mkdir_p ()
7571{
7572
7573 case $as_dir in #(
7574 -*) as_dir=./$as_dir;;
7575 esac
7576 test -d "$as_dir" || eval $as_mkdir_p || {
7577 as_dirs=
7578 while :; do
7579 case $as_dir in #(
7580 *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'(
7581 *) as_qdir=$as_dir;;
7582 esac
7583 as_dirs="'$as_qdir' $as_dirs"
7584 as_dir=`$as_dirname -- "$as_dir" ||
7585$as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
7586 X"$as_dir" : 'X\(//\)[^/]' \| \
7587 X"$as_dir" : 'X\(//\)$' \| \
7588 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
7589$as_echo X"$as_dir" |
7590 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
7591 s//\1/
7592 q
7593 }
7594 /^X\(\/\/\)[^/].*/{
7595 s//\1/
7596 q
7597 }
7598 /^X\(\/\/\)$/{
7599 s//\1/
7600 q
7601 }
7602 /^X\(\/\).*/{
7603 s//\1/
7604 q
7605 }
7606 s/.*/./; q'`
7607 test -d "$as_dir" && break
7608 done
7609 test -z "$as_dirs" || eval "mkdir $as_dirs"
7610 } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir"
7611
7612
7613} # as_fn_mkdir_p
7614if mkdir -p . 2>/dev/null; then
7615 as_mkdir_p='mkdir -p "$as_dir"'
7616else
7617 test -d ./-p && rmdir ./-p
7618 as_mkdir_p=false
7619fi
7620
7621
7622# as_fn_executable_p FILE
7623# -----------------------
7624# Test if FILE is an executable regular file.
7625as_fn_executable_p ()
7626{
7627 test -f "$1" && test -x "$1"
7628} # as_fn_executable_p
7629as_test_x='test -x'
7630as_executable_p=as_fn_executable_p
7631
7632# Sed expression to map a string onto a valid CPP name.
7633as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
7634
7635# Sed expression to map a string onto a valid variable name.
7636as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
7637
7638
7639exec 6>&1
7640## ----------------------------------- ##
7641## Main body of $CONFIG_STATUS script. ##
7642## ----------------------------------- ##
7643_ASEOF
7644test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1
7645
7646cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7647# Save the log message, to keep $0 and so on meaningful, and to
7648# report actual input values of CONFIG_FILES etc. instead of their
7649# values after options handling.
7650ac_log="
7651This file was extended by smartmontools $as_me 6.6, which was
7652generated by GNU Autoconf 2.69. Invocation command line was
7653
7654 CONFIG_FILES = $CONFIG_FILES
7655 CONFIG_HEADERS = $CONFIG_HEADERS
7656 CONFIG_LINKS = $CONFIG_LINKS
7657 CONFIG_COMMANDS = $CONFIG_COMMANDS
7658 $ $0 $@
7659
7660on `(hostname || uname -n) 2>/dev/null | sed 1q`
7661"
7662
7663_ACEOF
7664
7665case $ac_config_files in *"
7666"*) set x $ac_config_files; shift; ac_config_files=$*;;
7667esac
7668
7669case $ac_config_headers in *"
7670"*) set x $ac_config_headers; shift; ac_config_headers=$*;;
7671esac
7672
7673
7674cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7675# Files that config.status was made for.
7676config_files="$ac_config_files"
7677config_headers="$ac_config_headers"
7678config_commands="$ac_config_commands"
7679
7680_ACEOF
7681
7682cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7683ac_cs_usage="\
7684\`$as_me' instantiates files and other configuration actions
7685from templates according to the current configuration. Unless the files
7686and actions are specified as TAGs, all are instantiated by default.
7687
7688Usage: $0 [OPTION]... [TAG]...
7689
7690 -h, --help print this help, then exit
7691 -V, --version print version number and configuration settings, then exit
7692 --config print configuration, then exit
7693 -q, --quiet, --silent
7694 do not print progress messages
7695 -d, --debug don't remove temporary files
7696 --recheck update $as_me by reconfiguring in the same conditions
7697 --file=FILE[:TEMPLATE]
7698 instantiate the configuration file FILE
7699 --header=FILE[:TEMPLATE]
7700 instantiate the configuration header FILE
7701
7702Configuration files:
7703$config_files
7704
7705Configuration headers:
7706$config_headers
7707
7708Configuration commands:
7709$config_commands
7710
7711Report bugs to <smartmontools-support@listi.jpberlin.de>."
7712
7713_ACEOF
7714cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7715ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`"
7716ac_cs_version="\\
7717smartmontools config.status 6.6
7718configured by $0, generated by GNU Autoconf 2.69,
7719 with options \\"\$ac_cs_config\\"
7720
7721Copyright (C) 2012 Free Software Foundation, Inc.
7722This config.status script is free software; the Free Software Foundation
7723gives unlimited permission to copy, distribute and modify it."
7724
7725ac_pwd='$ac_pwd'
7726srcdir='$srcdir'
7727INSTALL='$INSTALL'
7728MKDIR_P='$MKDIR_P'
7729AWK='$AWK'
7730test -n "\$AWK" || AWK=awk
7731_ACEOF
7732
7733cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7734# The default lists apply if the user does not specify any file.
7735ac_need_defaults=:
7736while test $# != 0
7737do
7738 case $1 in
7739 --*=?*)
7740 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7741 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
7742 ac_shift=:
7743 ;;
7744 --*=)
7745 ac_option=`expr "X$1" : 'X\([^=]*\)='`
7746 ac_optarg=
7747 ac_shift=:
7748 ;;
7749 *)
7750 ac_option=$1
7751 ac_optarg=$2
7752 ac_shift=shift
7753 ;;
7754 esac
7755
7756 case $ac_option in
7757 # Handling of the options.
7758 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
7759 ac_cs_recheck=: ;;
7760 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
7761 $as_echo "$ac_cs_version"; exit ;;
7762 --config | --confi | --conf | --con | --co | --c )
7763 $as_echo "$ac_cs_config"; exit ;;
7764 --debug | --debu | --deb | --de | --d | -d )
7765 debug=: ;;
7766 --file | --fil | --fi | --f )
7767 $ac_shift
7768 case $ac_optarg in
7769 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7770 '') as_fn_error $? "missing file argument" ;;
7771 esac
7772 as_fn_append CONFIG_FILES " '$ac_optarg'"
7773 ac_need_defaults=false;;
7774 --header | --heade | --head | --hea )
7775 $ac_shift
7776 case $ac_optarg in
7777 *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;;
7778 esac
7779 as_fn_append CONFIG_HEADERS " '$ac_optarg'"
7780 ac_need_defaults=false;;
7781 --he | --h)
7782 # Conflict between --help and --header
7783 as_fn_error $? "ambiguous option: \`$1'
7784Try \`$0 --help' for more information.";;
7785 --help | --hel | -h )
7786 $as_echo "$ac_cs_usage"; exit ;;
7787 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
7788 | -silent | --silent | --silen | --sile | --sil | --si | --s)
7789 ac_cs_silent=: ;;
7790
7791 # This is an error.
7792 -*) as_fn_error $? "unrecognized option: \`$1'
7793Try \`$0 --help' for more information." ;;
7794
7795 *) as_fn_append ac_config_targets " $1"
7796 ac_need_defaults=false ;;
7797
7798 esac
7799 shift
7800done
7801
7802ac_configure_extra_args=
7803
7804if $ac_cs_silent; then
7805 exec 6>/dev/null
7806 ac_configure_extra_args="$ac_configure_extra_args --silent"
7807fi
7808
7809_ACEOF
7810cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7811if \$ac_cs_recheck; then
7812 set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
7813 shift
7814 \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6
7815 CONFIG_SHELL='$SHELL'
7816 export CONFIG_SHELL
7817 exec "\$@"
7818fi
7819
7820_ACEOF
7821cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7822exec 5>>config.log
7823{
7824 echo
7825 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
7826## Running $as_me. ##
7827_ASBOX
7828 $as_echo "$ac_log"
7829} >&5
7830
7831_ACEOF
7832cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7833#
7834# INIT-COMMANDS
7835#
7836AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
7837
7838_ACEOF
7839
7840cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
7841
7842# Handling of arguments.
7843for ac_config_target in $ac_config_targets
7844do
7845 case $ac_config_target in
7846 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
7847 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
7848 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
7849
7850 *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;;
7851 esac
7852done
7853
7854
7855# If the user did not use the arguments to specify the items to instantiate,
7856# then the envvar interface is used. Set only those that are not.
7857# We use the long form for the default assignment because of an extremely
7858# bizarre bug on SunOS 4.1.3.
7859if $ac_need_defaults; then
7860 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
7861 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
7862 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
7863fi
7864
7865# Have a temporary directory for convenience. Make it in the build tree
7866# simply because there is no reason against having it here, and in addition,
7867# creating and moving files from /tmp can sometimes cause problems.
7868# Hook for its removal unless debugging.
7869# Note that there is a small window in which the directory will not be cleaned:
7870# after its creation but before its name has been assigned to `$tmp'.
7871$debug ||
7872{
7873 tmp= ac_tmp=
7874 trap 'exit_status=$?
7875 : "${ac_tmp:=$tmp}"
7876 { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status
7877' 0
7878 trap 'as_fn_exit 1' 1 2 13 15
7879}
7880# Create a (secure) tmp directory for tmp files.
7881
7882{
7883 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
7884 test -d "$tmp"
7885} ||
7886{
7887 tmp=./conf$$-$RANDOM
7888 (umask 077 && mkdir "$tmp")
7889} || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5
7890ac_tmp=$tmp
7891
7892# Set up the scripts for CONFIG_FILES section.
7893# No need to generate them if there are no CONFIG_FILES.
7894# This happens for instance with `./config.status config.h'.
7895if test -n "$CONFIG_FILES"; then
7896
7897
7898ac_cr=`echo X | tr X '\015'`
7899# On cygwin, bash can eat \r inside `` if the user requested igncr.
7900# But we know of no other shell where ac_cr would be empty at this
7901# point, so we can use a bashism as a fallback.
7902if test "x$ac_cr" = x; then
7903 eval ac_cr=\$\'\\r\'
7904fi
7905ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null`
7906if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then
7907 ac_cs_awk_cr='\\r'
7908else
7909 ac_cs_awk_cr=$ac_cr
7910fi
7911
7912echo 'BEGIN {' >"$ac_tmp/subs1.awk" &&
7913_ACEOF
7914
7915
7916{
7917 echo "cat >conf$$subs.awk <<_ACEOF" &&
7918 echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' &&
7919 echo "_ACEOF"
7920} >conf$$subs.sh ||
7921 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7922ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'`
7923ac_delim='%!_!# '
7924for ac_last_try in false false false false false :; do
7925 . ./conf$$subs.sh ||
7926 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7927
7928 ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X`
7929 if test $ac_delim_n = $ac_delim_num; then
7930 break
7931 elif $ac_last_try; then
7932 as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5
7933 else
7934 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
7935 fi
7936done
7937rm -f conf$$subs.sh
7938
7939cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7940cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK &&
7941_ACEOF
7942sed -n '
7943h
7944s/^/S["/; s/!.*/"]=/
7945p
7946g
7947s/^[^!]*!//
7948:repl
7949t repl
7950s/'"$ac_delim"'$//
7951t delim
7952:nl
7953h
7954s/\(.\{148\}\)..*/\1/
7955t more1
7956s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/
7957p
7958n
7959b repl
7960:more1
7961s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7962p
7963g
7964s/.\{148\}//
7965t nl
7966:delim
7967h
7968s/\(.\{148\}\)..*/\1/
7969t more2
7970s/["\\]/\\&/g; s/^/"/; s/$/"/
7971p
7972b
7973:more2
7974s/["\\]/\\&/g; s/^/"/; s/$/"\\/
7975p
7976g
7977s/.\{148\}//
7978t delim
7979' <conf$$subs.awk | sed '
7980/^[^""]/{
7981 N
7982 s/\n//
7983}
7984' >>$CONFIG_STATUS || ac_write_fail=1
7985rm -f conf$$subs.awk
7986cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
7987_ACAWK
7988cat >>"\$ac_tmp/subs1.awk" <<_ACAWK &&
7989 for (key in S) S_is_set[key] = 1
7990 FS = "\a"
7991
7992}
7993{
7994 line = $ 0
7995 nfields = split(line, field, "@")
7996 substed = 0
7997 len = length(field[1])
7998 for (i = 2; i < nfields; i++) {
7999 key = field[i]
8000 keylen = length(key)
8001 if (S_is_set[key]) {
8002 value = S[key]
8003 line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3)
8004 len += length(value) + length(field[++i])
8005 substed = 1
8006 } else
8007 len += 1 + keylen
8008 }
8009
8010 print line
8011}
8012
8013_ACAWK
8014_ACEOF
8015cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8016if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then
8017 sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g"
8018else
8019 cat
8020fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \
8021 || as_fn_error $? "could not setup config files machinery" "$LINENO" 5
8022_ACEOF
8023
8024# VPATH may cause trouble with some makes, so we remove sole $(srcdir),
8025# ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and
8026# trailing colons and then remove the whole line if VPATH becomes empty
8027# (actually we leave an empty line to preserve line numbers).
8028if test "x$srcdir" = x.; then
8029 ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{
8030h
8031s///
8032s/^/:/
8033s/[ ]*$/:/
8034s/:\$(srcdir):/:/g
8035s/:\${srcdir}:/:/g
8036s/:@srcdir@:/:/g
8037s/^:*//
8038s/:*$//
8039x
8040s/\(=[ ]*\).*/\1/
8041G
8042s/\n//
8043s/^[^=]*=[ ]*$//
8044}'
8045fi
8046
8047cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8048fi # test -n "$CONFIG_FILES"
8049
8050# Set up the scripts for CONFIG_HEADERS section.
8051# No need to generate them if there are no CONFIG_HEADERS.
8052# This happens for instance with `./config.status Makefile'.
8053if test -n "$CONFIG_HEADERS"; then
8054cat >"$ac_tmp/defines.awk" <<\_ACAWK ||
8055BEGIN {
8056_ACEOF
8057
8058# Transform confdefs.h into an awk script `defines.awk', embedded as
8059# here-document in config.status, that substitutes the proper values into
8060# config.h.in to produce config.h.
8061
8062# Create a delimiter string that does not exist in confdefs.h, to ease
8063# handling of long lines.
8064ac_delim='%!_!# '
8065for ac_last_try in false false :; do
8066 ac_tt=`sed -n "/$ac_delim/p" confdefs.h`
8067 if test -z "$ac_tt"; then
8068 break
8069 elif $ac_last_try; then
8070 as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5
8071 else
8072 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
8073 fi
8074done
8075
8076# For the awk script, D is an array of macro values keyed by name,
8077# likewise P contains macro parameters if any. Preserve backslash
8078# newline sequences.
8079
8080ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
8081sed -n '
8082s/.\{148\}/&'"$ac_delim"'/g
8083t rset
8084:rset
8085s/^[ ]*#[ ]*define[ ][ ]*/ /
8086t def
8087d
8088:def
8089s/\\$//
8090t bsnl
8091s/["\\]/\\&/g
8092s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8093D["\1"]=" \3"/p
8094s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p
8095d
8096:bsnl
8097s/["\\]/\\&/g
8098s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\
8099D["\1"]=" \3\\\\\\n"\\/p
8100t cont
8101s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p
8102t cont
8103d
8104:cont
8105n
8106s/.\{148\}/&'"$ac_delim"'/g
8107t clear
8108:clear
8109s/\\$//
8110t bsnlc
8111s/["\\]/\\&/g; s/^/"/; s/$/"/p
8112d
8113:bsnlc
8114s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p
8115b cont
8116' <confdefs.h | sed '
8117s/'"$ac_delim"'/"\\\
8118"/g' >>$CONFIG_STATUS || ac_write_fail=1
8119
8120cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8121 for (key in D) D_is_set[key] = 1
8122 FS = "\a"
8123}
8124/^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ {
8125 line = \$ 0
8126 split(line, arg, " ")
8127 if (arg[1] == "#") {
8128 defundef = arg[2]
8129 mac1 = arg[3]
8130 } else {
8131 defundef = substr(arg[1], 2)
8132 mac1 = arg[2]
8133 }
8134 split(mac1, mac2, "(") #)
8135 macro = mac2[1]
8136 prefix = substr(line, 1, index(line, defundef) - 1)
8137 if (D_is_set[macro]) {
8138 # Preserve the white space surrounding the "#".
8139 print prefix "define", macro P[macro] D[macro]
8140 next
8141 } else {
8142 # Replace #undef with comments. This is necessary, for example,
8143 # in the case of _POSIX_SOURCE, which is predefined and required
8144 # on some systems where configure will not decide to define it.
8145 if (defundef == "undef") {
8146 print "/*", prefix defundef, macro, "*/"
8147 next
8148 }
8149 }
8150}
8151{ print }
8152_ACAWK
8153_ACEOF
8154cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8155 as_fn_error $? "could not setup config headers machinery" "$LINENO" 5
8156fi # test -n "$CONFIG_HEADERS"
8157
8158
8159eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS"
8160shift
8161for ac_tag
8162do
8163 case $ac_tag in
8164 :[FHLC]) ac_mode=$ac_tag; continue;;
8165 esac
8166 case $ac_mode$ac_tag in
8167 :[FHL]*:*);;
8168 :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;;
8169 :[FH]-) ac_tag=-:-;;
8170 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
8171 esac
8172 ac_save_IFS=$IFS
8173 IFS=:
8174 set x $ac_tag
8175 IFS=$ac_save_IFS
8176 shift
8177 ac_file=$1
8178 shift
8179
8180 case $ac_mode in
8181 :L) ac_source=$1;;
8182 :[FH])
8183 ac_file_inputs=
8184 for ac_f
8185 do
8186 case $ac_f in
8187 -) ac_f="$ac_tmp/stdin";;
8188 *) # Look for the file first in the build tree, then in the source tree
8189 # (if the path is not absolute). The absolute path cannot be DOS-style,
8190 # because $ac_f cannot contain `:'.
8191 test -f "$ac_f" ||
8192 case $ac_f in
8193 [\\/$]*) false;;
8194 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
8195 esac ||
8196 as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;;
8197 esac
8198 case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac
8199 as_fn_append ac_file_inputs " '$ac_f'"
8200 done
8201
8202 # Let's still pretend it is `configure' which instantiates (i.e., don't
8203 # use $as_me), people would be surprised to read:
8204 # /* config.h. Generated by config.status. */
8205 configure_input='Generated from '`
8206 $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g'
8207 `' by configure.'
8208 if test x"$ac_file" != x-; then
8209 configure_input="$ac_file. $configure_input"
8210 { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5
8211$as_echo "$as_me: creating $ac_file" >&6;}
8212 fi
8213 # Neutralize special characters interpreted by sed in replacement strings.
8214 case $configure_input in #(
8215 *\&* | *\|* | *\\* )
8216 ac_sed_conf_input=`$as_echo "$configure_input" |
8217 sed 's/[\\\\&|]/\\\\&/g'`;; #(
8218 *) ac_sed_conf_input=$configure_input;;
8219 esac
8220
8221 case $ac_tag in
8222 *:-:* | *:-) cat >"$ac_tmp/stdin" \
8223 || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;;
8224 esac
8225 ;;
8226 esac
8227
8228 ac_dir=`$as_dirname -- "$ac_file" ||
8229$as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8230 X"$ac_file" : 'X\(//\)[^/]' \| \
8231 X"$ac_file" : 'X\(//\)$' \| \
8232 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
8233$as_echo X"$ac_file" |
8234 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8235 s//\1/
8236 q
8237 }
8238 /^X\(\/\/\)[^/].*/{
8239 s//\1/
8240 q
8241 }
8242 /^X\(\/\/\)$/{
8243 s//\1/
8244 q
8245 }
8246 /^X\(\/\).*/{
8247 s//\1/
8248 q
8249 }
8250 s/.*/./; q'`
8251 as_dir="$ac_dir"; as_fn_mkdir_p
8252 ac_builddir=.
8253
8254case "$ac_dir" in
8255.) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
8256*)
8257 ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'`
8258 # A ".." for each directory in $ac_dir_suffix.
8259 ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'`
8260 case $ac_top_builddir_sub in
8261 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
8262 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
8263 esac ;;
8264esac
8265ac_abs_top_builddir=$ac_pwd
8266ac_abs_builddir=$ac_pwd$ac_dir_suffix
8267# for backward compatibility:
8268ac_top_builddir=$ac_top_build_prefix
8269
8270case $srcdir in
8271 .) # We are building in place.
8272 ac_srcdir=.
8273 ac_top_srcdir=$ac_top_builddir_sub
8274 ac_abs_top_srcdir=$ac_pwd ;;
8275 [\\/]* | ?:[\\/]* ) # Absolute name.
8276 ac_srcdir=$srcdir$ac_dir_suffix;
8277 ac_top_srcdir=$srcdir
8278 ac_abs_top_srcdir=$srcdir ;;
8279 *) # Relative name.
8280 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
8281 ac_top_srcdir=$ac_top_build_prefix$srcdir
8282 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
8283esac
8284ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
8285
8286
8287 case $ac_mode in
8288 :F)
8289 #
8290 # CONFIG_FILE
8291 #
8292
8293 case $INSTALL in
8294 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
8295 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
8296 esac
8297 ac_MKDIR_P=$MKDIR_P
8298 case $MKDIR_P in
8299 [\\/$]* | ?:[\\/]* ) ;;
8300 */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;;
8301 esac
8302_ACEOF
8303
8304cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8305# If the template does not know about datarootdir, expand it.
8306# FIXME: This hack should be removed a few years after 2.60.
8307ac_datarootdir_hack=; ac_datarootdir_seen=
8308ac_sed_dataroot='
8309/datarootdir/ {
8310 p
8311 q
8312}
8313/@datadir@/p
8314/@docdir@/p
8315/@infodir@/p
8316/@localedir@/p
8317/@mandir@/p'
8318case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in
8319*datarootdir*) ac_datarootdir_seen=yes;;
8320*@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
8321 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
8322$as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
8323_ACEOF
8324cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8325 ac_datarootdir_hack='
8326 s&@datadir@&$datadir&g
8327 s&@docdir@&$docdir&g
8328 s&@infodir@&$infodir&g
8329 s&@localedir@&$localedir&g
8330 s&@mandir@&$mandir&g
8331 s&\\\${datarootdir}&$datarootdir&g' ;;
8332esac
8333_ACEOF
8334
8335# Neutralize VPATH when `$srcdir' = `.'.
8336# Shell code in configure.ac might set extrasub.
8337# FIXME: do we really want to maintain this feature?
8338cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1
8339ac_sed_extra="$ac_vpsub
8340$extrasub
8341_ACEOF
8342cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1
8343:t
8344/@[a-zA-Z_][a-zA-Z_0-9]*@/!b
8345s|@configure_input@|$ac_sed_conf_input|;t t
8346s&@top_builddir@&$ac_top_builddir_sub&;t t
8347s&@top_build_prefix@&$ac_top_build_prefix&;t t
8348s&@srcdir@&$ac_srcdir&;t t
8349s&@abs_srcdir@&$ac_abs_srcdir&;t t
8350s&@top_srcdir@&$ac_top_srcdir&;t t
8351s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
8352s&@builddir@&$ac_builddir&;t t
8353s&@abs_builddir@&$ac_abs_builddir&;t t
8354s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
8355s&@INSTALL@&$ac_INSTALL&;t t
8356s&@MKDIR_P@&$ac_MKDIR_P&;t t
8357$ac_datarootdir_hack
8358"
8359eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \
8360 >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8361
8362test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
8363 { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } &&
8364 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \
8365 "$ac_tmp/out"`; test -z "$ac_out"; } &&
8366 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8367which seems to be undefined. Please make sure it is defined" >&5
8368$as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
8369which seems to be undefined. Please make sure it is defined" >&2;}
8370
8371 rm -f "$ac_tmp/stdin"
8372 case $ac_file in
8373 -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";;
8374 *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";;
8375 esac \
8376 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8377 ;;
8378 :H)
8379 #
8380 # CONFIG_HEADER
8381 #
8382 if test x"$ac_file" != x-; then
8383 {
8384 $as_echo "/* $configure_input */" \
8385 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs"
8386 } >"$ac_tmp/config.h" \
8387 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8388 if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then
8389 { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5
8390$as_echo "$as_me: $ac_file is unchanged" >&6;}
8391 else
8392 rm -f "$ac_file"
8393 mv "$ac_tmp/config.h" "$ac_file" \
8394 || as_fn_error $? "could not create $ac_file" "$LINENO" 5
8395 fi
8396 else
8397 $as_echo "/* $configure_input */" \
8398 && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \
8399 || as_fn_error $? "could not create -" "$LINENO" 5
8400 fi
8401# Compute "$ac_file"'s index in $config_headers.
8402_am_arg="$ac_file"
8403_am_stamp_count=1
8404for _am_header in $config_headers :; do
8405 case $_am_header in
8406 $_am_arg | $_am_arg:* )
8407 break ;;
8408 * )
8409 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
8410 esac
8411done
8412echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" ||
8413$as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8414 X"$_am_arg" : 'X\(//\)[^/]' \| \
8415 X"$_am_arg" : 'X\(//\)$' \| \
8416 X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null ||
8417$as_echo X"$_am_arg" |
8418 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8419 s//\1/
8420 q
8421 }
8422 /^X\(\/\/\)[^/].*/{
8423 s//\1/
8424 q
8425 }
8426 /^X\(\/\/\)$/{
8427 s//\1/
8428 q
8429 }
8430 /^X\(\/\).*/{
8431 s//\1/
8432 q
8433 }
8434 s/.*/./; q'`/stamp-h$_am_stamp_count
8435 ;;
8436
8437 :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5
8438$as_echo "$as_me: executing $ac_file commands" >&6;}
8439 ;;
8440 esac
8441
8442
8443 case $ac_file$ac_mode in
8444 "depfiles":C) test x"$AMDEP_TRUE" != x"" || {
8445 # Older Autoconf quotes --file arguments for eval, but not when files
8446 # are listed without --file. Let's play safe and only enable the eval
8447 # if we detect the quoting.
8448 case $CONFIG_FILES in
8449 *\'*) eval set x "$CONFIG_FILES" ;;
8450 *) set x $CONFIG_FILES ;;
8451 esac
8452 shift
8453 for mf
8454 do
8455 # Strip MF so we end up with the name of the file.
8456 mf=`echo "$mf" | sed -e 's/:.*$//'`
8457 # Check whether this is an Automake generated Makefile or not.
8458 # We used to match only the files named 'Makefile.in', but
8459 # some people rename them; so instead we look at the file content.
8460 # Grep'ing the first line is not enough: some people post-process
8461 # each Makefile.in and add a new line on top of each file to say so.
8462 # Grep'ing the whole file is not good either: AIX grep has a line
8463 # limit of 2048, but all sed's we know have understand at least 4000.
8464 if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then
8465 dirpart=`$as_dirname -- "$mf" ||
8466$as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8467 X"$mf" : 'X\(//\)[^/]' \| \
8468 X"$mf" : 'X\(//\)$' \| \
8469 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
8470$as_echo X"$mf" |
8471 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8472 s//\1/
8473 q
8474 }
8475 /^X\(\/\/\)[^/].*/{
8476 s//\1/
8477 q
8478 }
8479 /^X\(\/\/\)$/{
8480 s//\1/
8481 q
8482 }
8483 /^X\(\/\).*/{
8484 s//\1/
8485 q
8486 }
8487 s/.*/./; q'`
8488 else
8489 continue
8490 fi
8491 # Extract the definition of DEPDIR, am__include, and am__quote
8492 # from the Makefile without running 'make'.
8493 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
8494 test -z "$DEPDIR" && continue
8495 am__include=`sed -n 's/^am__include = //p' < "$mf"`
8496 test -z "$am__include" && continue
8497 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
8498 # Find all dependency output files, they are included files with
8499 # $(DEPDIR) in their names. We invoke sed twice because it is the
8500 # simplest approach to changing $(DEPDIR) to its actual value in the
8501 # expansion.
8502 for file in `sed -n "
8503 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
8504 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do
8505 # Make sure the directory exists.
8506 test -f "$dirpart/$file" && continue
8507 fdir=`$as_dirname -- "$file" ||
8508$as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
8509 X"$file" : 'X\(//\)[^/]' \| \
8510 X"$file" : 'X\(//\)$' \| \
8511 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
8512$as_echo X"$file" |
8513 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
8514 s//\1/
8515 q
8516 }
8517 /^X\(\/\/\)[^/].*/{
8518 s//\1/
8519 q
8520 }
8521 /^X\(\/\/\)$/{
8522 s//\1/
8523 q
8524 }
8525 /^X\(\/\).*/{
8526 s//\1/
8527 q
8528 }
8529 s/.*/./; q'`
8530 as_dir=$dirpart/$fdir; as_fn_mkdir_p
8531 # echo "creating $dirpart/$file"
8532 echo '# dummy' > "$dirpart/$file"
8533 done
8534 done
8535}
8536 ;;
8537
8538 esac
8539done # for ac_tag
8540
8541
8542as_fn_exit 0
8543_ACEOF
8544ac_clean_files=$ac_clean_files_save
8545
8546test $ac_write_fail = 0 ||
8547 as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5
8548
8549
8550# configure is writing to config.log, and then calls config.status.
8551# config.status does its own redirection, appending to config.log.
8552# Unfortunately, on DOS this fails, as config.log is still kept open
8553# by configure, so config.status won't be able to write to it; its
8554# output is simply discarded. So we exec the FD to /dev/null,
8555# effectively closing config.log, so it can be properly (re)opened and
8556# appended to by config.status. When coming back to configure, we
8557# need to make the FD available again.
8558if test "$no_create" != yes; then
8559 ac_cs_success=:
8560 ac_config_status_args=
8561 test "$silent" = yes &&
8562 ac_config_status_args="$ac_config_status_args --quiet"
8563 exec 5>/dev/null
8564 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
8565 exec 5>>config.log
8566 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
8567 # would make configure fail if this is the last instruction.
8568 $ac_cs_success || as_fn_exit 1
8569fi
8570if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then
8571 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5
8572$as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;}
8573fi
8574
8575{ $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5
8576$as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; }
8577set x ${MAKE-make}
8578ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
8579if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then :
8580 $as_echo_n "(cached) " >&6
8581else
8582 cat >conftest.make <<\_ACEOF
8583SHELL = /bin/sh
8584all:
8585 @echo '@@@%%%=$(MAKE)=@@@%%%'
8586_ACEOF
8587# GNU make sometimes prints "make[1]: Entering ...", which would confuse us.
8588case `${MAKE-make} -f conftest.make 2>/dev/null` in
8589 *@@@%%%=?*=@@@%%%*)
8590 eval ac_cv_prog_make_${ac_make}_set=yes;;
8591 *)
8592 eval ac_cv_prog_make_${ac_make}_set=no;;
8593esac
8594rm -f conftest.make
8595fi
8596if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
8597 { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5
8598$as_echo "yes" >&6; }
8599 SET_MAKE=
8600else
8601 { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5
8602$as_echo "no" >&6; }
8603 SET_MAKE="MAKE=${MAKE-make}"
8604fi
8605
8606
8607# Note: Use `...` here as some shells do not properly parse '$(... case $x in X) ...)'
8608info=`
8609 echo "-----------------------------------------------------------------------------"
8610 echo "${PACKAGE}-${VERSION} configuration:"
8611 echo "host operating system: $host"
8612 echo "C++ compiler: $CXX"
8613 echo "C compiler: $CC"
8614 echo "preprocessor flags: $CPPFLAGS"
8615 echo "C++ compiler flags: $CXXFLAGS"
8616 echo "C compiler flags: $CFLAGS"
8617 echo "linker flags: $LDFLAGS"
8618 echo "OS specific modules: $os_deps $os_libs $LIBS"
8619
8620 case "$host_os" in
8621 mingw*)
8622 echo "application manifest: ${os_win32_manifest:-built-in}"
8623 echo "resource compiler: $WINDRES"
8624 echo "message compiler: $WINDMC"
8625 echo "NSIS compiler: $MAKENSIS"
8626 if test -n "$drivedbdir"; then
8627 echo "drive database file: EXEDIR/drivedb.h"
8628 if test -n "$MAKENSIS"; then
8629 echo "database update tool: EXEDIR/update-smart-drivedb.exe"
8630 fi
8631 else
8632 echo "drive database file: [disabled]"
8633 fi
8634 if test -n "$savestates"; then
8635 echo "smartd save files: \`eval eval eval echo $savestates\`MODEL-SERIAL.TYPE.state"
8636 fi
8637 if test -n "$attributelog"; then
8638 echo "smartd attribute logs: \`eval eval eval echo $attributelog\`MODEL-SERIAL.TYPE.csv"
8639 fi
8640 echo "NVMe DEVICESCAN: ${with_nvme_devicescan-no}"
8641 ;;
8642
8643 *)
8644 echo "binary install path: \`eval eval eval echo $sbindir\`"
8645 echo "man page install path: \`eval eval eval echo $mandir\`"
8646 echo "doc file install path: \`eval eval eval echo $docdir\`"
8647 echo "examples install path: \`eval eval eval echo $exampledir\`"
8648 if test -n "$drivedbdir"; then
8649 echo "drive database file: \`eval eval eval echo $drivedbdir\`/drivedb.h"
8650 if test "$with_update_smart_drivedb" = "yes"; then
8651 echo "database update script: \`eval eval eval echo $sbindir\`/update-smart-drivedb"
8652 if test "$drivedb_version" != "$VERSION"; then
8653 echo "... backported to: branches/$DRIVEDB_BRANCH"
8654 fi
8655 echo "download tools: \`eval eval eval echo $os_dltools\`"
8656 if test -n "$gnupg"; then
8657 echo "GnuPG for verification: \`eval eval eval echo $gnupg\`"
8658 else
8659 echo "GnuPG for verification: [disabled]"
8660 fi
8661 else
8662 echo "database update script: [disabled]"
8663 fi
8664 else
8665 echo "drive database file: [disabled]"
8666 fi
8667 echo "local drive database: \`eval eval eval echo $sysconfdir\`/smart_drivedb.h"
8668 echo "smartd config file: \`eval eval eval echo $sysconfdir\`/smartd.conf${smartd_suffix}"
8669 echo "smartd warning script: \`eval eval eval echo $smartdscriptdir\`/smartd_warning.sh"
8670 if test -n "$smartdplugindir"; then
8671 echo "smartd plugin path: \`eval eval eval echo $smartdplugindir\`"
8672 else
8673 echo "smartd plugin path: [disabled]"
8674 fi
8675 if test -n "$scriptpath"; then
8676 echo "PATH within scripts: \`eval eval eval echo $scriptpath\`"
8677 else
8678 echo "PATH within scripts: [inherited]"
8679 fi
8680 if test -n "$initddir"; then
8681 echo "smartd initd script: \`eval eval eval echo $initddir\`/${initdfile}"
8682 elif test -z "$systemdsystemunitdir"; then
8683 echo "smartd initd script: [disabled]"
8684 fi
8685 if test -n "$systemdsystemunitdir"; then
8686 echo "smartd systemd file: \`eval eval eval echo $systemdsystemunitdir\`/smartd.service"
8687 if test -n "$systemdenvfile"; then
8688 echo "smartd environ file: \`eval eval eval echo $systemdenvfile\`"
8689 else
8690 echo "smartd environ file: [disabled]"
8691 fi
8692 fi
8693 if test -n "$savestates"; then
8694 echo "smartd save files: \`eval eval eval echo $savestates\`MODEL-SERIAL.TYPE.state"
8695 else
8696 echo "smartd save files: [disabled]"
8697 fi
8698 if test -n "$attributelog"; then
8699 echo "smartd attribute logs: \`eval eval eval echo $attributelog\`MODEL-SERIAL.TYPE.csv"
8700 else
8701 echo "smartd attribute logs: [disabled]"
8702 fi
8703 echo "libcap-ng support: $use_libcap_ng"
8704 case "$host_os" in
8705 linux*) echo "SELinux support: ${with_selinux-no}" ;;
8706 esac
8707 case "$host_os" in
8708 linux*|darwin*|netbsd*|cygwin*)
8709 echo "NVMe DEVICESCAN: ${with_nvme_devicescan-no}" ;;
8710 esac
8711 ;;
8712 esac
8713 echo "-----------------------------------------------------------------------------"
8714`
8715
8716{ $as_echo "$as_me:${as_lineno-$LINENO}:
8717$info
8718" >&5
8719$as_echo "$as_me:
8720$info
8721" >&6;}
8722
8723# TODO: Remove when NVMe support is no longer EXPERIMENTAL
8724case "$host_os:${with_nvme_devicescan+set}" in
8725 linux*:|darwin*:|netbsd*:|cygwin*:|mingw*:)
8726 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8727This version of smartmontools provides NVMe support which is still
8728EXPERIMENTAL. NVMe devices are not yet included in smartd.conf
8729'DEVICESCAN' and 'smartctl --scan' unless '-d nvme' is specified.
8730Use option '--with-nvme-devicescan' to include NVMe devices.
8731Use option '--without-nvme-devicescan' to suppress this warning.
8732" >&5
8733$as_echo "$as_me: WARNING:
8734This version of smartmontools provides NVMe support which is still
8735EXPERIMENTAL. NVMe devices are not yet included in smartd.conf
8736'DEVICESCAN' and 'smartctl --scan' unless '-d nvme' is specified.
8737Use option '--with-nvme-devicescan' to include NVMe devices.
8738Use option '--without-nvme-devicescan' to suppress this warning.
8739" >&2;}
8740 ;;
8741esac
8742
8743# TODO: Remove after smartmontools 6.6
8744case "$host:${with_solaris_sparc_ata+set}" in
8745 sparc-*-solaris*:)
8746 { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING:
8747Legacy ATA support is no longer enabled by default on Solaris SPARC.
8748The required source file 'os_solaris_ata.s' is no longer included in
8749the source tarball but still available in the SVN repository.
8750Use option '--with-solaris-sparc-ata' to enable legacy ATA support.
8751Use option '--without-solaris-sparc-ata' to suppress this warning.
8752" >&5
8753$as_echo "$as_me: WARNING:
8754Legacy ATA support is no longer enabled by default on Solaris SPARC.
8755The required source file 'os_solaris_ata.s' is no longer included in
8756the source tarball but still available in the SVN repository.
8757Use option '--with-solaris-sparc-ata' to enable legacy ATA support.
8758Use option '--without-solaris-sparc-ata' to suppress this warning.
8759" >&2;}
8760 ;;
8761esac