]>
Commit | Line | Data |
---|---|---|
f9e10201 JD |
1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. | |
ff28b140 | 3 | # Generated by GNU Autoconf 2.69 for smartmontools 7.0. |
f9e10201 JD |
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 | |
18 | DUALCASE=1; export DUALCASE # for MKS sh | |
19 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
20 | emulate sh | |
21 | NULLCMD=: | |
22 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
23 | # is contrary to our usage. Disable this feature. | |
24 | alias -g '${1+"$@"}'='"$@"' | |
25 | setopt NO_GLOB_SUBST | |
26 | else | |
27 | case `(set -o) 2>/dev/null` in #( | |
28 | *posix*) : | |
29 | set -o posix ;; #( | |
30 | *) : | |
31 | ;; | |
32 | esac | |
33 | fi | |
34 | ||
35 | ||
36 | as_nl=' | |
37 | ' | |
38 | export as_nl | |
39 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
40 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
41 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
42 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
43 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
44 | # but without wasting forks for bash or zsh. | |
45 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
46 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
47 | as_echo='print -r --' | |
48 | as_echo_n='print -rn --' | |
49 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
50 | as_echo='printf %s\n' | |
51 | as_echo_n='printf %s' | |
52 | else | |
53 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
54 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
55 | as_echo_n='/usr/ucb/echo -n' | |
56 | else | |
57 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
58 | as_echo_n_body='eval | |
59 | arg=$1; | |
60 | case $arg in #( | |
61 | *"$as_nl"*) | |
62 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
63 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
64 | esac; | |
65 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
66 | ' | |
67 | export as_echo_n_body | |
68 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
69 | fi | |
70 | export as_echo_body | |
71 | as_echo='sh -c $as_echo_body as_echo' | |
72 | fi | |
73 | ||
74 | # The user is always right. | |
75 | if test "${PATH_SEPARATOR+set}" != set; then | |
76 | PATH_SEPARATOR=: | |
77 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
78 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
79 | PATH_SEPARATOR=';' | |
80 | } | |
81 | fi | |
82 | ||
83 | ||
84 | # IFS | |
85 | # We need space, tab and new line, in precisely that order. Quoting is | |
86 | # there to prevent editors from complaining about space-tab. | |
87 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
88 | # splitting by setting IFS to empty value.) | |
89 | IFS=" "" $as_nl" | |
90 | ||
91 | # Find who we are. Look in the path if we contain no directory separator. | |
92 | as_myself= | |
93 | case $0 in #(( | |
94 | *[\\/]* ) as_myself=$0 ;; | |
95 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
96 | for as_dir in $PATH | |
97 | do | |
98 | IFS=$as_save_IFS | |
99 | test -z "$as_dir" && as_dir=. | |
100 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
101 | done | |
102 | IFS=$as_save_IFS | |
103 | ||
104 | ;; | |
105 | esac | |
106 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
107 | # in which case we are not to be found in the path. | |
108 | if test "x$as_myself" = x; then | |
109 | as_myself=$0 | |
110 | fi | |
111 | if test ! -f "$as_myself"; then | |
112 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
113 | exit 1 | |
114 | fi | |
115 | ||
116 | # Unset variables that we do not need and which cause bugs (e.g. in | |
117 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
118 | # suppresses any "Segmentation fault" message there. '((' could | |
119 | # trigger a bug in pdksh 5.2.14. | |
120 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
121 | do eval test x\${$as_var+set} = xset \ | |
122 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
123 | done | |
124 | PS1='$ ' | |
125 | PS2='> ' | |
126 | PS4='+ ' | |
127 | ||
128 | # NLS nuisances. | |
129 | LC_ALL=C | |
130 | export LC_ALL | |
131 | LANGUAGE=C | |
132 | export LANGUAGE | |
133 | ||
134 | # CDPATH. | |
135 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
136 | ||
137 | # 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. | |
145 | BASH_ENV=/dev/null | |
146 | ENV=/dev/null | |
147 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
148 | case $- in # (((( | |
149 | *v*x* | *x*v* ) as_opts=-vx ;; | |
150 | *v* ) as_opts=-v ;; | |
151 | *x* ) as_opts=-x ;; | |
152 | * ) as_opts= ;; | |
153 | esac | |
154 | exec $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 | |
158 | as_fn_exit 255 | |
159 | fi | |
160 | # We don't want this to propagate to other subprocesses. | |
161 | { _as_can_reexec=; unset _as_can_reexec;} | |
162 | if 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 | |
170 | else | |
171 | case \`(set -o) 2>/dev/null\` in #( | |
172 | *posix*) : | |
173 | set -o posix ;; #( | |
174 | *) : | |
175 | ;; | |
176 | esac | |
177 | fi | |
178 | " | |
179 | as_required="as_fn_return () { (exit \$1); } | |
180 | as_fn_success () { as_fn_return 0; } | |
181 | as_fn_failure () { as_fn_return 1; } | |
182 | as_fn_ret_success () { return 0; } | |
183 | as_fn_ret_failure () { return 1; } | |
184 | ||
185 | exitcode=0 | |
186 | as_fn_success || { exitcode=1; echo as_fn_success failed.; } | |
187 | as_fn_failure && { exitcode=1; echo as_fn_failure succeeded.; } | |
188 | as_fn_ret_success || { exitcode=1; echo as_fn_ret_success failed.; } | |
189 | as_fn_ret_failure && { exitcode=1; echo as_fn_ret_failure succeeded.; } | |
190 | if ( set x; as_fn_ret_success y && test x = \"\$1\" ); then : | |
191 | ||
192 | else | |
193 | exitcode=1; echo positional parameters were not saved. | |
194 | fi | |
195 | test x\$exitcode = x0 || exit 1 | |
196 | test -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 | |
201 | test \$(( 1 + 1 )) = 2 || exit 1" | |
202 | if (eval "$as_required") 2>/dev/null; then : | |
203 | as_have_required=yes | |
204 | else | |
205 | as_have_required=no | |
206 | fi | |
207 | if test x$as_have_required = xyes && (eval "$as_suggested") 2>/dev/null; then : | |
208 | ||
209 | else | |
210 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
211 | as_found=false | |
212 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
213 | do | |
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 | |
227 | fi | |
228 | fi | |
229 | done;; | |
230 | esac | |
231 | as_found=false | |
232 | done | |
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 | |
236 | fi; } | |
237 | IFS=$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. | |
246 | BASH_ENV=/dev/null | |
247 | ENV=/dev/null | |
248 | (unset BASH_ENV) >/dev/null 2>&1 && unset BASH_ENV ENV | |
249 | case $- in # (((( | |
250 | *v*x* | *x*v* ) as_opts=-vx ;; | |
251 | *v* ) as_opts=-v ;; | |
252 | *x* ) as_opts=-x ;; | |
253 | * ) as_opts= ;; | |
254 | esac | |
255 | exec $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 | |
259 | exit 255 | |
260 | fi | |
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 | |
276 | fi | |
277 | fi | |
278 | fi | |
279 | SHELL=${CONFIG_SHELL-/bin/sh} | |
280 | export SHELL | |
281 | # Unset more variables known to interfere with behavior of common tools. | |
282 | CLICOLOR_FORCE= GREP_OPTIONS= | |
283 | unset CLICOLOR_FORCE GREP_OPTIONS | |
284 | ||
285 | ## --------------------- ## | |
286 | ## M4sh Shell Functions. ## | |
287 | ## --------------------- ## | |
288 | # as_fn_unset VAR | |
289 | # --------------- | |
290 | # Portably unset VAR. | |
291 | as_fn_unset () | |
292 | { | |
293 | { eval $1=; unset $1;} | |
294 | } | |
295 | as_unset=as_fn_unset | |
296 | ||
297 | # as_fn_set_status STATUS | |
298 | # ----------------------- | |
299 | # Set $? to STATUS, without forking. | |
300 | as_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. | |
308 | as_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. | |
318 | as_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. | |
366 | as_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. | |
376 | if (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 | }' | |
381 | else | |
382 | as_fn_append () | |
383 | { | |
384 | eval $1=\$$1\$2 | |
385 | } | |
386 | fi # 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. | |
393 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
394 | eval 'as_fn_arith () | |
395 | { | |
396 | as_val=$(( $* )) | |
397 | }' | |
398 | else | |
399 | as_fn_arith () | |
400 | { | |
401 | as_val=`expr "$@" || test $? -eq 1` | |
402 | } | |
403 | fi # 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. | |
411 | as_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 | ||
422 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
423 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
424 | as_expr=expr | |
425 | else | |
426 | as_expr=false | |
427 | fi | |
428 | ||
429 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
430 | as_basename=basename | |
431 | else | |
432 | as_basename=false | |
433 | fi | |
434 | ||
435 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
436 | as_dirname=dirname | |
437 | else | |
438 | as_dirname=false | |
439 | fi | |
440 | ||
441 | as_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. | |
461 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
462 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
463 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
464 | as_cr_digits='0123456789' | |
465 | as_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 | ||
503 | ECHO_C= ECHO_N= ECHO_T= | |
504 | case `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';; | |
514 | esac | |
515 | ||
516 | rm -f conf$$ conf$$.exe conf$$.file | |
517 | if test -d conf$$.dir; then | |
518 | rm -f conf$$.dir/conf$$.file | |
519 | else | |
520 | rm -f conf$$.dir | |
521 | mkdir conf$$.dir 2>/dev/null | |
522 | fi | |
523 | if (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 | |
537 | else | |
538 | as_ln_s='cp -pR' | |
539 | fi | |
540 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
541 | rmdir conf$$.dir 2>/dev/null | |
542 | ||
543 | if mkdir -p . 2>/dev/null; then | |
544 | as_mkdir_p='mkdir -p "$as_dir"' | |
545 | else | |
546 | test -d ./-p && rmdir ./-p | |
547 | as_mkdir_p=false | |
548 | fi | |
549 | ||
550 | as_test_x='test -x' | |
551 | as_executable_p=as_fn_executable_p | |
552 | ||
553 | # Sed expression to map a string onto a valid CPP name. | |
554 | as_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. | |
557 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
558 | ||
559 | ||
560 | test -n "$DJDIR" || exec 7<&0 </dev/null | |
561 | exec 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. | |
566 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
567 | ||
568 | # | |
569 | # Initializations. | |
570 | # | |
571 | ac_default_prefix=/usr/local | |
572 | ac_clean_files= | |
573 | ac_config_libobj_dir=. | |
574 | LIBOBJS= | |
575 | cross_compiling=no | |
576 | subdirs= | |
577 | MFLAGS= | |
578 | MAKEFLAGS= | |
579 | ||
580 | # Identity of this package. | |
581 | PACKAGE_NAME='smartmontools' | |
582 | PACKAGE_TARNAME='smartmontools' | |
ff28b140 TL |
583 | PACKAGE_VERSION='7.0' |
584 | PACKAGE_STRING='smartmontools 7.0' | |
f9e10201 JD |
585 | PACKAGE_BUGREPORT='smartmontools-support@listi.jpberlin.de' |
586 | PACKAGE_URL='' | |
587 | ||
588 | ac_unique_file="smartctl.cpp" | |
589 | # Factoring default headers for most tests. | |
590 | ac_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 | ||
625 | ac_subst_vars='am__EXEEXT_FALSE | |
626 | am__EXEEXT_TRUE | |
627 | LTLIBOBJS | |
628 | LIBOBJS | |
629 | OS_WIN64_FALSE | |
630 | OS_WIN64_TRUE | |
631 | OS_WIN32_NSIS_FALSE | |
632 | OS_WIN32_NSIS_TRUE | |
633 | OS_WIN32_MINGW_FALSE | |
634 | OS_WIN32_MINGW_TRUE | |
635 | OS_WIN32_FALSE | |
636 | OS_WIN32_TRUE | |
637 | OS_SOLARIS_FALSE | |
638 | OS_SOLARIS_TRUE | |
639 | OS_DARWIN_FALSE | |
640 | OS_DARWIN_TRUE | |
641 | DRIVEDB_BRANCH | |
642 | os_win32_manifest | |
643 | os_man_filter | |
644 | os_nisdomainname | |
645 | os_dnsdomainname | |
646 | os_hostname | |
647 | os_mailer | |
648 | os_dltools | |
649 | os_libs | |
650 | os_deps | |
ff28b140 | 651 | with_nvme_devicescan |
f9e10201 JD |
652 | smartmontools_release_time |
653 | smartmontools_release_date | |
654 | releaseversion | |
ff28b140 TL |
655 | NEED_REGEX_FALSE |
656 | NEED_REGEX_TRUE | |
657 | systemdenvfile | |
658 | INSTALL_SYSTEMDUNIT_FALSE | |
659 | INSTALL_SYSTEMDUNIT_TRUE | |
660 | systemdsystemunitdir | |
661 | SYSTEMD_LDADD | |
f9e10201 | 662 | CAPNG_LDADD |
f9e10201 JD |
663 | smartd_suffix |
664 | ENABLE_ATTRIBUTELOG_FALSE | |
665 | ENABLE_ATTRIBUTELOG_TRUE | |
666 | attributelogdir | |
667 | attributelog | |
668 | ENABLE_SAVESTATES_FALSE | |
669 | ENABLE_SAVESTATES_TRUE | |
670 | savestatesdir | |
671 | savestates | |
672 | ENABLE_SCRIPTPATH_FALSE | |
673 | ENABLE_SCRIPTPATH_TRUE | |
674 | scriptpath | |
675 | smartdplugindir | |
676 | smartdscriptdir | |
677 | gnupg | |
678 | ENABLE_UPDATE_SMART_DRIVEDB_FALSE | |
679 | ENABLE_UPDATE_SMART_DRIVEDB_TRUE | |
680 | with_update_smart_drivedb | |
681 | ENABLE_DRIVEDB_FALSE | |
682 | ENABLE_DRIVEDB_TRUE | |
683 | drivedbdir | |
684 | exampledir | |
685 | initdfile | |
686 | INSTALL_INITSCRIPT_FALSE | |
687 | INSTALL_INITSCRIPT_TRUE | |
688 | initddir | |
f9e10201 JD |
689 | ASFLAGS |
690 | gcc_have_attr_packed | |
f9e10201 JD |
691 | NEED_GETOPT_LONG_FALSE |
692 | NEED_GETOPT_LONG_TRUE | |
693 | EGREP | |
694 | GREP | |
695 | CXXCPP | |
696 | IS_SVN_BUILD_FALSE | |
697 | IS_SVN_BUILD_TRUE | |
698 | svn_deps | |
699 | host_os | |
700 | host_vendor | |
701 | host_cpu | |
702 | host | |
703 | build_os | |
704 | build_vendor | |
705 | build_cpu | |
706 | build | |
707 | MAKENSIS | |
708 | WINDRES | |
709 | WINDMC | |
710 | PKG_CONFIG_LIBDIR | |
711 | PKG_CONFIG_PATH | |
712 | PKG_CONFIG | |
713 | am__fastdepCCAS_FALSE | |
714 | am__fastdepCCAS_TRUE | |
715 | CCASDEPMODE | |
716 | CCASFLAGS | |
717 | CCAS | |
718 | am__fastdepCC_FALSE | |
719 | am__fastdepCC_TRUE | |
720 | CCDEPMODE | |
721 | ac_ct_CC | |
722 | CFLAGS | |
723 | CC | |
724 | am__fastdepCXX_FALSE | |
725 | am__fastdepCXX_TRUE | |
726 | CXXDEPMODE | |
727 | am__nodep | |
728 | AMDEPBACKSLASH | |
729 | AMDEP_FALSE | |
730 | AMDEP_TRUE | |
731 | am__quote | |
732 | am__include | |
733 | DEPDIR | |
734 | OBJEXT | |
735 | EXEEXT | |
736 | ac_ct_CXX | |
737 | CPPFLAGS | |
738 | LDFLAGS | |
739 | CXXFLAGS | |
740 | CXX | |
741 | MAINT | |
742 | MAINTAINER_MODE_FALSE | |
743 | MAINTAINER_MODE_TRUE | |
744 | AM_BACKSLASH | |
745 | AM_DEFAULT_VERBOSITY | |
746 | AM_DEFAULT_V | |
747 | AM_V | |
748 | am__untar | |
749 | am__tar | |
750 | AMTAR | |
751 | am__leading_dot | |
752 | SET_MAKE | |
753 | AWK | |
754 | mkdir_p | |
755 | MKDIR_P | |
756 | INSTALL_STRIP_PROGRAM | |
757 | STRIP | |
758 | install_sh | |
759 | MAKEINFO | |
760 | AUTOHEADER | |
761 | AUTOMAKE | |
762 | AUTOCONF | |
763 | ACLOCAL | |
764 | VERSION | |
765 | PACKAGE | |
766 | CYGPATH_W | |
767 | am__isrc | |
768 | INSTALL_DATA | |
769 | INSTALL_SCRIPT | |
770 | INSTALL_PROGRAM | |
771 | target_alias | |
772 | host_alias | |
773 | build_alias | |
774 | LIBS | |
775 | ECHO_T | |
776 | ECHO_N | |
777 | ECHO_C | |
778 | DEFS | |
779 | mandir | |
780 | localedir | |
781 | libdir | |
782 | psdir | |
783 | pdfdir | |
784 | dvidir | |
785 | htmldir | |
786 | infodir | |
787 | docdir | |
788 | oldincludedir | |
789 | includedir | |
790 | localstatedir | |
791 | sharedstatedir | |
792 | sysconfdir | |
793 | datadir | |
794 | datarootdir | |
795 | libexecdir | |
796 | sbindir | |
797 | bindir | |
798 | program_transform_name | |
799 | prefix | |
800 | exec_prefix | |
801 | PACKAGE_URL | |
802 | PACKAGE_BUGREPORT | |
803 | PACKAGE_STRING | |
804 | PACKAGE_VERSION | |
805 | PACKAGE_TARNAME | |
806 | PACKAGE_NAME | |
807 | PATH_SEPARATOR | |
808 | SHELL' | |
809 | ac_subst_files='' | |
810 | ac_user_opts=' | |
811 | enable_option_checking | |
812 | enable_silent_rules | |
813 | enable_maintainer_mode | |
814 | enable_dependency_tracking | |
f9e10201 JD |
815 | with_initscriptdir |
816 | with_exampledir | |
817 | with_drivedbdir | |
818 | with_update_smart_drivedb | |
819 | with_gnupg | |
820 | with_smartdscriptdir | |
821 | with_smartdplugindir | |
822 | with_scriptpath | |
823 | with_savestates | |
824 | with_attributelog | |
825 | enable_sample | |
ff28b140 TL |
826 | enable_scsi_cdb_check |
827 | enable_fast_lebe | |
f9e10201 JD |
828 | with_os_deps |
829 | with_selinux | |
830 | with_libcap_ng | |
ff28b140 TL |
831 | with_libsystemd |
832 | with_systemdsystemunitdir | |
833 | with_systemdenvfile | |
f9e10201 JD |
834 | with_nvme_devicescan |
835 | with_solaris_sparc_ata | |
ff28b140 | 836 | with_signal_func |
f9e10201 JD |
837 | with_working_snprintf |
838 | with_mingw_aslr | |
839 | with_cxx11_option | |
ff28b140 | 840 | with_cxx11_regex |
f9e10201 JD |
841 | ' |
842 | ac_precious_vars='build_alias | |
843 | host_alias | |
844 | target_alias | |
845 | CXX | |
846 | CXXFLAGS | |
847 | LDFLAGS | |
848 | LIBS | |
849 | CPPFLAGS | |
850 | CCC | |
851 | CC | |
852 | CFLAGS | |
853 | CCAS | |
854 | CCASFLAGS | |
855 | PKG_CONFIG | |
856 | PKG_CONFIG_PATH | |
857 | PKG_CONFIG_LIBDIR | |
858 | WINDMC | |
859 | WINDRES | |
860 | MAKENSIS | |
861 | CXXCPP' | |
862 | ||
863 | ||
864 | # Initialize some variables set by options. | |
865 | ac_init_help= | |
866 | ac_init_version=false | |
867 | ac_unrecognized_opts= | |
868 | ac_unrecognized_sep= | |
869 | # The variables have the same names as the options, with | |
870 | # dashes changed to underlines. | |
871 | cache_file=/dev/null | |
872 | exec_prefix=NONE | |
873 | no_create= | |
874 | no_recursion= | |
875 | prefix=NONE | |
876 | program_prefix=NONE | |
877 | program_suffix=NONE | |
878 | program_transform_name=s,x,x, | |
879 | silent= | |
880 | site= | |
881 | srcdir= | |
882 | verbose= | |
883 | x_includes=NONE | |
884 | x_libraries=NONE | |
885 | ||
886 | # Installation directory options. | |
887 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
888 | # and all the variables that are supposed to be based on exec_prefix | |
889 | # by default will actually change. | |
890 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
891 | # (The list follows the same order as the GNU Coding Standards.) | |
892 | bindir='${exec_prefix}/bin' | |
893 | sbindir='${exec_prefix}/sbin' | |
894 | libexecdir='${exec_prefix}/libexec' | |
895 | datarootdir='${prefix}/share' | |
896 | datadir='${datarootdir}' | |
897 | sysconfdir='${prefix}/etc' | |
898 | sharedstatedir='${prefix}/com' | |
899 | localstatedir='${prefix}/var' | |
900 | includedir='${prefix}/include' | |
901 | oldincludedir='/usr/include' | |
902 | docdir='${datarootdir}/doc/${PACKAGE_TARNAME}' | |
903 | infodir='${datarootdir}/info' | |
904 | htmldir='${docdir}' | |
905 | dvidir='${docdir}' | |
906 | pdfdir='${docdir}' | |
907 | psdir='${docdir}' | |
908 | libdir='${exec_prefix}/lib' | |
909 | localedir='${datarootdir}/locale' | |
910 | mandir='${datarootdir}/man' | |
911 | ||
912 | ac_prev= | |
913 | ac_dashdash= | |
914 | for ac_option | |
915 | do | |
916 | # If the previous option needs an argument, assign it. | |
917 | if test -n "$ac_prev"; then | |
918 | eval $ac_prev=\$ac_option | |
919 | ac_prev= | |
920 | continue | |
921 | fi | |
922 | ||
923 | case $ac_option in | |
924 | *=?*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;; | |
925 | *=) ac_optarg= ;; | |
926 | *) ac_optarg=yes ;; | |
927 | esac | |
928 | ||
929 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
930 | ||
931 | case $ac_dashdash$ac_option in | |
932 | --) | |
933 | ac_dashdash=yes ;; | |
934 | ||
935 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
936 | ac_prev=bindir ;; | |
937 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
938 | bindir=$ac_optarg ;; | |
939 | ||
940 | -build | --build | --buil | --bui | --bu) | |
941 | ac_prev=build_alias ;; | |
942 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
943 | build_alias=$ac_optarg ;; | |
944 | ||
945 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
946 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
947 | ac_prev=cache_file ;; | |
948 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
949 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
950 | cache_file=$ac_optarg ;; | |
951 | ||
952 | --config-cache | -C) | |
953 | cache_file=config.cache ;; | |
954 | ||
955 | -datadir | --datadir | --datadi | --datad) | |
956 | ac_prev=datadir ;; | |
957 | -datadir=* | --datadir=* | --datadi=* | --datad=*) | |
958 | datadir=$ac_optarg ;; | |
959 | ||
960 | -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \ | |
961 | | --dataroo | --dataro | --datar) | |
962 | ac_prev=datarootdir ;; | |
963 | -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \ | |
964 | | --dataroot=* | --dataroo=* | --dataro=* | --datar=*) | |
965 | datarootdir=$ac_optarg ;; | |
966 | ||
967 | -disable-* | --disable-*) | |
968 | ac_useropt=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
969 | # Reject names that are not valid shell variable names. | |
970 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
971 | as_fn_error $? "invalid feature name: $ac_useropt" | |
972 | ac_useropt_orig=$ac_useropt | |
973 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
974 | case $ac_user_opts in | |
975 | *" | |
976 | "enable_$ac_useropt" | |
977 | "*) ;; | |
978 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--disable-$ac_useropt_orig" | |
979 | ac_unrecognized_sep=', ';; | |
980 | esac | |
981 | eval enable_$ac_useropt=no ;; | |
982 | ||
983 | -docdir | --docdir | --docdi | --doc | --do) | |
984 | ac_prev=docdir ;; | |
985 | -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*) | |
986 | docdir=$ac_optarg ;; | |
987 | ||
988 | -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv) | |
989 | ac_prev=dvidir ;; | |
990 | -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*) | |
991 | dvidir=$ac_optarg ;; | |
992 | ||
993 | -enable-* | --enable-*) | |
994 | ac_useropt=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
995 | # Reject names that are not valid shell variable names. | |
996 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
997 | as_fn_error $? "invalid feature name: $ac_useropt" | |
998 | ac_useropt_orig=$ac_useropt | |
999 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1000 | case $ac_user_opts in | |
1001 | *" | |
1002 | "enable_$ac_useropt" | |
1003 | "*) ;; | |
1004 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--enable-$ac_useropt_orig" | |
1005 | ac_unrecognized_sep=', ';; | |
1006 | esac | |
1007 | eval enable_$ac_useropt=\$ac_optarg ;; | |
1008 | ||
1009 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
1010 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
1011 | | --exec | --exe | --ex) | |
1012 | ac_prev=exec_prefix ;; | |
1013 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
1014 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
1015 | | --exec=* | --exe=* | --ex=*) | |
1016 | exec_prefix=$ac_optarg ;; | |
1017 | ||
1018 | -gas | --gas | --ga | --g) | |
1019 | # Obsolete; use --with-gas. | |
1020 | with_gas=yes ;; | |
1021 | ||
1022 | -help | --help | --hel | --he | -h) | |
1023 | ac_init_help=long ;; | |
1024 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
1025 | ac_init_help=recursive ;; | |
1026 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
1027 | ac_init_help=short ;; | |
1028 | ||
1029 | -host | --host | --hos | --ho) | |
1030 | ac_prev=host_alias ;; | |
1031 | -host=* | --host=* | --hos=* | --ho=*) | |
1032 | host_alias=$ac_optarg ;; | |
1033 | ||
1034 | -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht) | |
1035 | ac_prev=htmldir ;; | |
1036 | -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \ | |
1037 | | --ht=*) | |
1038 | htmldir=$ac_optarg ;; | |
1039 | ||
1040 | -includedir | --includedir | --includedi | --included | --include \ | |
1041 | | --includ | --inclu | --incl | --inc) | |
1042 | ac_prev=includedir ;; | |
1043 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
1044 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
1045 | includedir=$ac_optarg ;; | |
1046 | ||
1047 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
1048 | ac_prev=infodir ;; | |
1049 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
1050 | infodir=$ac_optarg ;; | |
1051 | ||
1052 | -libdir | --libdir | --libdi | --libd) | |
1053 | ac_prev=libdir ;; | |
1054 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
1055 | libdir=$ac_optarg ;; | |
1056 | ||
1057 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
1058 | | --libexe | --libex | --libe) | |
1059 | ac_prev=libexecdir ;; | |
1060 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
1061 | | --libexe=* | --libex=* | --libe=*) | |
1062 | libexecdir=$ac_optarg ;; | |
1063 | ||
1064 | -localedir | --localedir | --localedi | --localed | --locale) | |
1065 | ac_prev=localedir ;; | |
1066 | -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*) | |
1067 | localedir=$ac_optarg ;; | |
1068 | ||
1069 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
1070 | | --localstate | --localstat | --localsta | --localst | --locals) | |
1071 | ac_prev=localstatedir ;; | |
1072 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
1073 | | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*) | |
1074 | localstatedir=$ac_optarg ;; | |
1075 | ||
1076 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
1077 | ac_prev=mandir ;; | |
1078 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
1079 | mandir=$ac_optarg ;; | |
1080 | ||
1081 | -nfp | --nfp | --nf) | |
1082 | # Obsolete; use --without-fp. | |
1083 | with_fp=no ;; | |
1084 | ||
1085 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
1086 | | --no-cr | --no-c | -n) | |
1087 | no_create=yes ;; | |
1088 | ||
1089 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
1090 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
1091 | no_recursion=yes ;; | |
1092 | ||
1093 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
1094 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
1095 | | --oldin | --oldi | --old | --ol | --o) | |
1096 | ac_prev=oldincludedir ;; | |
1097 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
1098 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
1099 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
1100 | oldincludedir=$ac_optarg ;; | |
1101 | ||
1102 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
1103 | ac_prev=prefix ;; | |
1104 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
1105 | prefix=$ac_optarg ;; | |
1106 | ||
1107 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
1108 | | --program-pre | --program-pr | --program-p) | |
1109 | ac_prev=program_prefix ;; | |
1110 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
1111 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
1112 | program_prefix=$ac_optarg ;; | |
1113 | ||
1114 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
1115 | | --program-suf | --program-su | --program-s) | |
1116 | ac_prev=program_suffix ;; | |
1117 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
1118 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
1119 | program_suffix=$ac_optarg ;; | |
1120 | ||
1121 | -program-transform-name | --program-transform-name \ | |
1122 | | --program-transform-nam | --program-transform-na \ | |
1123 | | --program-transform-n | --program-transform- \ | |
1124 | | --program-transform | --program-transfor \ | |
1125 | | --program-transfo | --program-transf \ | |
1126 | | --program-trans | --program-tran \ | |
1127 | | --progr-tra | --program-tr | --program-t) | |
1128 | ac_prev=program_transform_name ;; | |
1129 | -program-transform-name=* | --program-transform-name=* \ | |
1130 | | --program-transform-nam=* | --program-transform-na=* \ | |
1131 | | --program-transform-n=* | --program-transform-=* \ | |
1132 | | --program-transform=* | --program-transfor=* \ | |
1133 | | --program-transfo=* | --program-transf=* \ | |
1134 | | --program-trans=* | --program-tran=* \ | |
1135 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
1136 | program_transform_name=$ac_optarg ;; | |
1137 | ||
1138 | -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd) | |
1139 | ac_prev=pdfdir ;; | |
1140 | -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*) | |
1141 | pdfdir=$ac_optarg ;; | |
1142 | ||
1143 | -psdir | --psdir | --psdi | --psd | --ps) | |
1144 | ac_prev=psdir ;; | |
1145 | -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*) | |
1146 | psdir=$ac_optarg ;; | |
1147 | ||
1148 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1149 | | -silent | --silent | --silen | --sile | --sil) | |
1150 | silent=yes ;; | |
1151 | ||
1152 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
1153 | ac_prev=sbindir ;; | |
1154 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
1155 | | --sbi=* | --sb=*) | |
1156 | sbindir=$ac_optarg ;; | |
1157 | ||
1158 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
1159 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
1160 | | --sharedst | --shareds | --shared | --share | --shar \ | |
1161 | | --sha | --sh) | |
1162 | ac_prev=sharedstatedir ;; | |
1163 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
1164 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
1165 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
1166 | | --sha=* | --sh=*) | |
1167 | sharedstatedir=$ac_optarg ;; | |
1168 | ||
1169 | -site | --site | --sit) | |
1170 | ac_prev=site ;; | |
1171 | -site=* | --site=* | --sit=*) | |
1172 | site=$ac_optarg ;; | |
1173 | ||
1174 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
1175 | ac_prev=srcdir ;; | |
1176 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
1177 | srcdir=$ac_optarg ;; | |
1178 | ||
1179 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
1180 | | --syscon | --sysco | --sysc | --sys | --sy) | |
1181 | ac_prev=sysconfdir ;; | |
1182 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
1183 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
1184 | sysconfdir=$ac_optarg ;; | |
1185 | ||
1186 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
1187 | ac_prev=target_alias ;; | |
1188 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
1189 | target_alias=$ac_optarg ;; | |
1190 | ||
1191 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
1192 | verbose=yes ;; | |
1193 | ||
1194 | -version | --version | --versio | --versi | --vers | -V) | |
1195 | ac_init_version=: ;; | |
1196 | ||
1197 | -with-* | --with-*) | |
1198 | ac_useropt=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
1199 | # Reject names that are not valid shell variable names. | |
1200 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1201 | as_fn_error $? "invalid package name: $ac_useropt" | |
1202 | ac_useropt_orig=$ac_useropt | |
1203 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1204 | case $ac_user_opts in | |
1205 | *" | |
1206 | "with_$ac_useropt" | |
1207 | "*) ;; | |
1208 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--with-$ac_useropt_orig" | |
1209 | ac_unrecognized_sep=', ';; | |
1210 | esac | |
1211 | eval with_$ac_useropt=\$ac_optarg ;; | |
1212 | ||
1213 | -without-* | --without-*) | |
1214 | ac_useropt=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
1215 | # Reject names that are not valid shell variable names. | |
1216 | expr "x$ac_useropt" : ".*[^-+._$as_cr_alnum]" >/dev/null && | |
1217 | as_fn_error $? "invalid package name: $ac_useropt" | |
1218 | ac_useropt_orig=$ac_useropt | |
1219 | ac_useropt=`$as_echo "$ac_useropt" | sed 's/[-+.]/_/g'` | |
1220 | case $ac_user_opts in | |
1221 | *" | |
1222 | "with_$ac_useropt" | |
1223 | "*) ;; | |
1224 | *) ac_unrecognized_opts="$ac_unrecognized_opts$ac_unrecognized_sep--without-$ac_useropt_orig" | |
1225 | ac_unrecognized_sep=', ';; | |
1226 | esac | |
1227 | eval with_$ac_useropt=no ;; | |
1228 | ||
1229 | --x) | |
1230 | # Obsolete; use --with-x. | |
1231 | with_x=yes ;; | |
1232 | ||
1233 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
1234 | | --x-incl | --x-inc | --x-in | --x-i) | |
1235 | ac_prev=x_includes ;; | |
1236 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
1237 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
1238 | x_includes=$ac_optarg ;; | |
1239 | ||
1240 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
1241 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
1242 | ac_prev=x_libraries ;; | |
1243 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
1244 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
1245 | x_libraries=$ac_optarg ;; | |
1246 | ||
1247 | -*) as_fn_error $? "unrecognized option: \`$ac_option' | |
1248 | Try \`$0 --help' for more information" | |
1249 | ;; | |
1250 | ||
1251 | *=*) | |
1252 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
1253 | # Reject names that are not valid shell variable names. | |
1254 | case $ac_envvar in #( | |
1255 | '' | [0-9]* | *[!_$as_cr_alnum]* ) | |
1256 | as_fn_error $? "invalid variable name: \`$ac_envvar'" ;; | |
1257 | esac | |
1258 | eval $ac_envvar=\$ac_optarg | |
1259 | export $ac_envvar ;; | |
1260 | ||
1261 | *) | |
1262 | # FIXME: should be removed in autoconf 3.0. | |
1263 | $as_echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
1264 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
1265 | $as_echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
1266 | : "${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}" | |
1267 | ;; | |
1268 | ||
1269 | esac | |
1270 | done | |
1271 | ||
1272 | if test -n "$ac_prev"; then | |
1273 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
1274 | as_fn_error $? "missing argument to $ac_option" | |
1275 | fi | |
1276 | ||
1277 | if test -n "$ac_unrecognized_opts"; then | |
1278 | case $enable_option_checking in | |
1279 | no) ;; | |
1280 | fatal) as_fn_error $? "unrecognized options: $ac_unrecognized_opts" ;; | |
1281 | *) $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2 ;; | |
1282 | esac | |
1283 | fi | |
1284 | ||
1285 | # Check all directory arguments for consistency. | |
1286 | for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \ | |
1287 | datadir sysconfdir sharedstatedir localstatedir includedir \ | |
1288 | oldincludedir docdir infodir htmldir dvidir pdfdir psdir \ | |
1289 | libdir localedir mandir | |
1290 | do | |
1291 | eval ac_val=\$$ac_var | |
1292 | # Remove trailing slashes. | |
1293 | case $ac_val in | |
1294 | */ ) | |
1295 | ac_val=`expr "X$ac_val" : 'X\(.*[^/]\)' \| "X$ac_val" : 'X\(.*\)'` | |
1296 | eval $ac_var=\$ac_val;; | |
1297 | esac | |
1298 | # Be sure to have absolute directory names. | |
1299 | case $ac_val in | |
1300 | [\\/$]* | ?:[\\/]* ) continue;; | |
1301 | NONE | '' ) case $ac_var in *prefix ) continue;; esac;; | |
1302 | esac | |
1303 | as_fn_error $? "expected an absolute directory name for --$ac_var: $ac_val" | |
1304 | done | |
1305 | ||
1306 | # There might be people who depend on the old broken behavior: `$host' | |
1307 | # used to hold the argument of --host etc. | |
1308 | # FIXME: To remove some day. | |
1309 | build=$build_alias | |
1310 | host=$host_alias | |
1311 | target=$target_alias | |
1312 | ||
1313 | # FIXME: To remove some day. | |
1314 | if test "x$host_alias" != x; then | |
1315 | if test "x$build_alias" = x; then | |
1316 | cross_compiling=maybe | |
1317 | elif test "x$build_alias" != "x$host_alias"; then | |
1318 | cross_compiling=yes | |
1319 | fi | |
1320 | fi | |
1321 | ||
1322 | ac_tool_prefix= | |
1323 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
1324 | ||
1325 | test "$silent" = yes && exec 6>/dev/null | |
1326 | ||
1327 | ||
1328 | ac_pwd=`pwd` && test -n "$ac_pwd" && | |
1329 | ac_ls_di=`ls -di .` && | |
1330 | ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` || | |
1331 | as_fn_error $? "working directory cannot be determined" | |
1332 | test "X$ac_ls_di" = "X$ac_pwd_ls_di" || | |
1333 | as_fn_error $? "pwd does not report name of working directory" | |
1334 | ||
1335 | ||
1336 | # Find the source files, if location was not specified. | |
1337 | if test -z "$srcdir"; then | |
1338 | ac_srcdir_defaulted=yes | |
1339 | # Try the directory containing this script, then the parent directory. | |
1340 | ac_confdir=`$as_dirname -- "$as_myself" || | |
1341 | $as_expr X"$as_myself" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
1342 | X"$as_myself" : 'X\(//\)[^/]' \| \ | |
1343 | X"$as_myself" : 'X\(//\)$' \| \ | |
1344 | X"$as_myself" : 'X\(/\)' \| . 2>/dev/null || | |
1345 | $as_echo X"$as_myself" | | |
1346 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
1347 | s//\1/ | |
1348 | q | |
1349 | } | |
1350 | /^X\(\/\/\)[^/].*/{ | |
1351 | s//\1/ | |
1352 | q | |
1353 | } | |
1354 | /^X\(\/\/\)$/{ | |
1355 | s//\1/ | |
1356 | q | |
1357 | } | |
1358 | /^X\(\/\).*/{ | |
1359 | s//\1/ | |
1360 | q | |
1361 | } | |
1362 | s/.*/./; q'` | |
1363 | srcdir=$ac_confdir | |
1364 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1365 | srcdir=.. | |
1366 | fi | |
1367 | else | |
1368 | ac_srcdir_defaulted=no | |
1369 | fi | |
1370 | if test ! -r "$srcdir/$ac_unique_file"; then | |
1371 | test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .." | |
1372 | as_fn_error $? "cannot find sources ($ac_unique_file) in $srcdir" | |
1373 | fi | |
1374 | ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work" | |
1375 | ac_abs_confdir=`( | |
1376 | cd "$srcdir" && test -r "./$ac_unique_file" || as_fn_error $? "$ac_msg" | |
1377 | pwd)` | |
1378 | # When building in place, set srcdir=. | |
1379 | if test "$ac_abs_confdir" = "$ac_pwd"; then | |
1380 | srcdir=. | |
1381 | fi | |
1382 | # Remove unnecessary trailing slashes from srcdir. | |
1383 | # Double slashes in file names in object file debugging info | |
1384 | # mess up M-x gdb in Emacs. | |
1385 | case $srcdir in | |
1386 | */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;; | |
1387 | esac | |
1388 | for ac_var in $ac_precious_vars; do | |
1389 | eval ac_env_${ac_var}_set=\${${ac_var}+set} | |
1390 | eval ac_env_${ac_var}_value=\$${ac_var} | |
1391 | eval ac_cv_env_${ac_var}_set=\${${ac_var}+set} | |
1392 | eval ac_cv_env_${ac_var}_value=\$${ac_var} | |
1393 | done | |
1394 | ||
1395 | # | |
1396 | # Report the --help message. | |
1397 | # | |
1398 | if test "$ac_init_help" = "long"; then | |
1399 | # Omit some internal or obsolete options to make the list less imposing. | |
1400 | # This message is too long to be a string in the A/UX 3.1 sh. | |
1401 | cat <<_ACEOF | |
ff28b140 | 1402 | \`configure' configures smartmontools 7.0 to adapt to many kinds of systems. |
f9e10201 JD |
1403 | |
1404 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
1405 | ||
1406 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
1407 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
1408 | ||
1409 | Defaults for the options are specified in brackets. | |
1410 | ||
1411 | Configuration: | |
1412 | -h, --help display this help and exit | |
1413 | --help=short display options specific to this package | |
1414 | --help=recursive display the short help of all the included packages | |
1415 | -V, --version display version information and exit | |
1416 | -q, --quiet, --silent do not print \`checking ...' messages | |
1417 | --cache-file=FILE cache test results in FILE [disabled] | |
1418 | -C, --config-cache alias for \`--cache-file=config.cache' | |
1419 | -n, --no-create do not create output files | |
1420 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
1421 | ||
1422 | Installation directories: | |
1423 | --prefix=PREFIX install architecture-independent files in PREFIX | |
1424 | [$ac_default_prefix] | |
1425 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
1426 | [PREFIX] | |
1427 | ||
1428 | By default, \`make install' will install all the files in | |
1429 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
1430 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
1431 | for instance \`--prefix=\$HOME'. | |
1432 | ||
1433 | For better control, use the options below. | |
1434 | ||
1435 | Fine tuning of the installation directories: | |
1436 | --bindir=DIR user executables [EPREFIX/bin] | |
1437 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
1438 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
1439 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
1440 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
1441 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
1442 | --libdir=DIR object code libraries [EPREFIX/lib] | |
1443 | --includedir=DIR C header files [PREFIX/include] | |
1444 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
1445 | --datarootdir=DIR read-only arch.-independent data root [PREFIX/share] | |
1446 | --datadir=DIR read-only architecture-independent data [DATAROOTDIR] | |
1447 | --infodir=DIR info documentation [DATAROOTDIR/info] | |
1448 | --localedir=DIR locale-dependent data [DATAROOTDIR/locale] | |
1449 | --mandir=DIR man documentation [DATAROOTDIR/man] | |
1450 | --docdir=DIR documentation root [DATAROOTDIR/doc/smartmontools] | |
1451 | --htmldir=DIR html documentation [DOCDIR] | |
1452 | --dvidir=DIR dvi documentation [DOCDIR] | |
1453 | --pdfdir=DIR pdf documentation [DOCDIR] | |
1454 | --psdir=DIR ps documentation [DOCDIR] | |
1455 | _ACEOF | |
1456 | ||
1457 | cat <<\_ACEOF | |
1458 | ||
1459 | Program names: | |
1460 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
1461 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
1462 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
1463 | ||
1464 | System types: | |
1465 | --build=BUILD configure for building on BUILD [guessed] | |
1466 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
1467 | _ACEOF | |
1468 | fi | |
1469 | ||
1470 | if test -n "$ac_init_help"; then | |
1471 | case $ac_init_help in | |
ff28b140 | 1472 | short | recursive ) echo "Configuration of smartmontools 7.0:";; |
f9e10201 JD |
1473 | esac |
1474 | cat <<\_ACEOF | |
1475 | ||
1476 | Optional Features: | |
1477 | --disable-option-checking ignore unrecognized --enable/--with options | |
1478 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
1479 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
1480 | --enable-silent-rules less verbose build output (undo: "make V=1") | |
1481 | --disable-silent-rules verbose build output (undo: "make V=0") | |
1482 | --enable-maintainer-mode | |
1483 | enable make rules and dependencies not useful (and | |
1484 | sometimes confusing) to the casual installer | |
1485 | --enable-dependency-tracking | |
1486 | do not reject slow dependency extractors | |
1487 | --disable-dependency-tracking | |
1488 | speeds up one-time build | |
1489 | --enable-sample Enables appending .sample to the installed smartd rc | |
1490 | script and configuration file | |
ff28b140 TL |
1491 | --enable-scsi-cdb-check do sanity check on each SCSI cdb |
1492 | --disable-fast-lebe use generic little-endian/big-endian code instead | |
f9e10201 JD |
1493 | |
1494 | Optional Packages: | |
1495 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
1496 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
ff28b140 TL |
1497 | --with-initscriptdir=[DIR|no] |
1498 | Location of init scripts [no] | |
f9e10201 JD |
1499 | --with-exampledir=DIR Location of example scripts [DOCDIR/examplescripts] |
1500 | --with-drivedbdir[=DIR|yes|no] | |
1501 | Location of drive database file | |
1502 | [DATADIR/smartmontools] | |
1503 | --with-update-smart-drivedb[=yes|no|X.Y] | |
1504 | Install update-smart-drivedb script (and backport it | |
1505 | to branches/RELEASE_X_Y_DRIVEDB) [yes] | |
1506 | --with-gnupg[=FILE|yes|no] | |
1507 | GnuPG used to verify drivedb.h [gpg] | |
1508 | --with-smartdscriptdir=DIR | |
1509 | Location of smartd_warning.sh script [SYSCONFDIR] | |
1510 | --with-smartdplugindir=[DIR|no] | |
1511 | Location of smartd_warning.sh plugin scripts | |
1512 | [SMARTDSCRIPTDIR/smartd_warning.d] | |
1513 | --with-scriptpath=[PATH|no] | |
ff28b140 TL |
1514 | PATH variable set within scripts |
1515 | [/usr/local/bin:/usr/bin:/bin] | |
f9e10201 JD |
1516 | --with-savestates[=PREFIX|yes|no] |
1517 | Enable default smartd state files [no] | |
1518 | (yes=LOCALSTATEDIR/lib/smartmontools/smartd.) | |
1519 | --with-attributelog[=PREFIX|yes|no] | |
1520 | Enable default smartd attribute log files [no] | |
1521 | (yes=LOCALSTATEDIR/lib/smartmontools/attrlog.) | |
1522 | --with-os-deps='os_module.o ...' | |
1523 | Specify OS dependent module(s) [guessed] | |
1524 | --with-selinux[=yes|no] Enables SELinux support [no] | |
1525 | --with-libcap-ng[=auto|yes|no] | |
1526 | Add Libcap-ng support to smartd [auto] | |
ff28b140 TL |
1527 | --with-libsystemd[=auto|yes|no] |
1528 | Add systemd 'Type=notify' support to smartd [auto] | |
1529 | --with-systemdsystemunitdir[=DIR|auto|yes|no] | |
1530 | Location of systemd service files [auto] | |
1531 | --with-systemdenvfile[=FILE|auto|yes|no] | |
1532 | Path of systemd EnvironmentFile [auto] | |
f9e10201 | 1533 | --with-nvme-devicescan[=yes|no] |
ff28b140 TL |
1534 | Include NVMe devices in smartd DEVICESCAN |
1535 | [Linux,Windows:yes;Others:no] | |
f9e10201 JD |
1536 | --with-solaris-sparc-ata[=yes|no] |
1537 | Enable legacy ATA support on Solaris SPARC (requires | |
1538 | os_solaris_ata.s from SVN repository) [no] | |
ff28b140 TL |
1539 | --with-signal-func=[sigaction|sigset|signal] |
1540 | Function to set signal(2) action [sigaction] | |
f9e10201 JD |
1541 | --with-working-snprintf[=yes|no] |
1542 | Function snprintf() handles output truncation as | |
ff28b140 | 1543 | specified by C99 [yes] |
f9e10201 JD |
1544 | --with-mingw-aslr[=auto|yes|low|no] |
1545 | Enable ASLR for MinGW executables [auto] | |
ff28b140 | 1546 | --with-cxx11-option=[OPTION|auto|no] |
f9e10201 JD |
1547 | Compiler option to enable C++11 support for future |
1548 | versions of smartmontools, 'no' if unsupported | |
1549 | [auto] | |
ff28b140 TL |
1550 | --with-cxx11-regex[=yes|no] |
1551 | Use C++11 std::regex instead of POSIX regex(3) [no] | |
f9e10201 JD |
1552 | |
1553 | Some influential environment variables: | |
1554 | CXX C++ compiler command | |
1555 | CXXFLAGS C++ compiler flags | |
1556 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
1557 | nonstandard directory <lib dir> | |
1558 | LIBS libraries to pass to the linker, e.g. -l<library> | |
1559 | CPPFLAGS (Objective) C/C++ preprocessor flags, e.g. -I<include dir> if | |
1560 | you have headers in a nonstandard directory <include dir> | |
1561 | CC C compiler command | |
1562 | CFLAGS C compiler flags | |
1563 | CCAS assembler compiler command (defaults to CC) | |
1564 | CCASFLAGS assembler compiler flags (defaults to CFLAGS) | |
1565 | PKG_CONFIG path to pkg-config utility | |
1566 | PKG_CONFIG_PATH | |
1567 | directories to add to pkg-config's search path | |
1568 | PKG_CONFIG_LIBDIR | |
1569 | path overriding pkg-config's built-in search path | |
1570 | WINDMC Windows message compiler command | |
1571 | WINDRES Windows resource compiler command | |
1572 | MAKENSIS NSIS compiler command | |
1573 | CXXCPP C++ preprocessor | |
1574 | ||
1575 | Use these variables to override the choices made by `configure' or to help | |
1576 | it to find libraries and programs with nonstandard names/locations. | |
1577 | ||
1578 | Report bugs to <smartmontools-support@listi.jpberlin.de>. | |
1579 | _ACEOF | |
1580 | ac_status=$? | |
1581 | fi | |
1582 | ||
1583 | if test "$ac_init_help" = "recursive"; then | |
1584 | # If there are subdirs, report their specific --help. | |
1585 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
1586 | test -d "$ac_dir" || | |
1587 | { cd "$srcdir" && ac_pwd=`pwd` && srcdir=. && test -d "$ac_dir"; } || | |
1588 | continue | |
1589 | ac_builddir=. | |
1590 | ||
1591 | case "$ac_dir" in | |
1592 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1593 | *) | |
1594 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
1595 | # A ".." for each directory in $ac_dir_suffix. | |
1596 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
1597 | case $ac_top_builddir_sub in | |
1598 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
1599 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
1600 | esac ;; | |
1601 | esac | |
1602 | ac_abs_top_builddir=$ac_pwd | |
1603 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
1604 | # for backward compatibility: | |
1605 | ac_top_builddir=$ac_top_build_prefix | |
1606 | ||
1607 | case $srcdir in | |
1608 | .) # We are building in place. | |
1609 | ac_srcdir=. | |
1610 | ac_top_srcdir=$ac_top_builddir_sub | |
1611 | ac_abs_top_srcdir=$ac_pwd ;; | |
1612 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
1613 | ac_srcdir=$srcdir$ac_dir_suffix; | |
1614 | ac_top_srcdir=$srcdir | |
1615 | ac_abs_top_srcdir=$srcdir ;; | |
1616 | *) # Relative name. | |
1617 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
1618 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
1619 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
1620 | esac | |
1621 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
1622 | ||
1623 | cd "$ac_dir" || { ac_status=$?; continue; } | |
1624 | # Check for guested configure. | |
1625 | if test -f "$ac_srcdir/configure.gnu"; then | |
1626 | echo && | |
1627 | $SHELL "$ac_srcdir/configure.gnu" --help=recursive | |
1628 | elif test -f "$ac_srcdir/configure"; then | |
1629 | echo && | |
1630 | $SHELL "$ac_srcdir/configure" --help=recursive | |
1631 | else | |
1632 | $as_echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
1633 | fi || ac_status=$? | |
1634 | cd "$ac_pwd" || { ac_status=$?; break; } | |
1635 | done | |
1636 | fi | |
1637 | ||
1638 | test -n "$ac_init_help" && exit $ac_status | |
1639 | if $ac_init_version; then | |
1640 | cat <<\_ACEOF | |
ff28b140 | 1641 | smartmontools configure 7.0 |
f9e10201 JD |
1642 | generated by GNU Autoconf 2.69 |
1643 | ||
1644 | Copyright (C) 2012 Free Software Foundation, Inc. | |
1645 | This configure script is free software; the Free Software Foundation | |
1646 | gives unlimited permission to copy, distribute and modify it. | |
1647 | _ACEOF | |
1648 | exit | |
1649 | fi | |
1650 | ||
1651 | ## ------------------------ ## | |
1652 | ## Autoconf initialization. ## | |
1653 | ## ------------------------ ## | |
1654 | ||
1655 | # ac_fn_cxx_try_compile LINENO | |
1656 | # ---------------------------- | |
1657 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1658 | ac_fn_cxx_try_compile () | |
1659 | { | |
1660 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1661 | rm -f conftest.$ac_objext | |
1662 | if { { ac_try="$ac_compile" | |
1663 | case "(($ac_try" in | |
1664 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1665 | *) ac_try_echo=$ac_try;; | |
1666 | esac | |
1667 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1668 | $as_echo "$ac_try_echo"; } >&5 | |
1669 | (eval "$ac_compile") 2>conftest.err | |
1670 | ac_status=$? | |
1671 | if test -s conftest.err; then | |
1672 | grep -v '^ *+' conftest.err >conftest.er1 | |
1673 | cat conftest.er1 >&5 | |
1674 | mv -f conftest.er1 conftest.err | |
1675 | fi | |
1676 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1677 | test $ac_status = 0; } && { | |
1678 | test -z "$ac_cxx_werror_flag" || | |
1679 | test ! -s conftest.err | |
1680 | } && test -s conftest.$ac_objext; then : | |
1681 | ac_retval=0 | |
1682 | else | |
1683 | $as_echo "$as_me: failed program was:" >&5 | |
1684 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1685 | ||
1686 | ac_retval=1 | |
1687 | fi | |
1688 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1689 | as_fn_set_status $ac_retval | |
1690 | ||
1691 | } # ac_fn_cxx_try_compile | |
1692 | ||
1693 | # ac_fn_c_try_compile LINENO | |
1694 | # -------------------------- | |
1695 | # Try to compile conftest.$ac_ext, and return whether this succeeded. | |
1696 | ac_fn_c_try_compile () | |
1697 | { | |
1698 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1699 | rm -f conftest.$ac_objext | |
1700 | if { { ac_try="$ac_compile" | |
1701 | case "(($ac_try" in | |
1702 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1703 | *) ac_try_echo=$ac_try;; | |
1704 | esac | |
1705 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1706 | $as_echo "$ac_try_echo"; } >&5 | |
1707 | (eval "$ac_compile") 2>conftest.err | |
1708 | ac_status=$? | |
1709 | if test -s conftest.err; then | |
1710 | grep -v '^ *+' conftest.err >conftest.er1 | |
1711 | cat conftest.er1 >&5 | |
1712 | mv -f conftest.er1 conftest.err | |
1713 | fi | |
1714 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1715 | test $ac_status = 0; } && { | |
1716 | test -z "$ac_c_werror_flag" || | |
1717 | test ! -s conftest.err | |
1718 | } && test -s conftest.$ac_objext; then : | |
1719 | ac_retval=0 | |
1720 | else | |
1721 | $as_echo "$as_me: failed program was:" >&5 | |
1722 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1723 | ||
1724 | ac_retval=1 | |
1725 | fi | |
1726 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1727 | as_fn_set_status $ac_retval | |
1728 | ||
1729 | } # ac_fn_c_try_compile | |
1730 | ||
1731 | # ac_fn_cxx_try_cpp LINENO | |
1732 | # ------------------------ | |
1733 | # Try to preprocess conftest.$ac_ext, and return whether this succeeded. | |
1734 | ac_fn_cxx_try_cpp () | |
1735 | { | |
1736 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1737 | if { { ac_try="$ac_cpp conftest.$ac_ext" | |
1738 | case "(($ac_try" in | |
1739 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1740 | *) ac_try_echo=$ac_try;; | |
1741 | esac | |
1742 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1743 | $as_echo "$ac_try_echo"; } >&5 | |
1744 | (eval "$ac_cpp conftest.$ac_ext") 2>conftest.err | |
1745 | ac_status=$? | |
1746 | if test -s conftest.err; then | |
1747 | grep -v '^ *+' conftest.err >conftest.er1 | |
1748 | cat conftest.er1 >&5 | |
1749 | mv -f conftest.er1 conftest.err | |
1750 | fi | |
1751 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1752 | test $ac_status = 0; } > conftest.i && { | |
1753 | test -z "$ac_cxx_preproc_warn_flag$ac_cxx_werror_flag" || | |
1754 | test ! -s conftest.err | |
1755 | }; then : | |
1756 | ac_retval=0 | |
1757 | else | |
1758 | $as_echo "$as_me: failed program was:" >&5 | |
1759 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1760 | ||
1761 | ac_retval=1 | |
1762 | fi | |
1763 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1764 | as_fn_set_status $ac_retval | |
1765 | ||
1766 | } # ac_fn_cxx_try_cpp | |
1767 | ||
1768 | # ac_fn_cxx_check_header_mongrel LINENO HEADER VAR INCLUDES | |
1769 | # --------------------------------------------------------- | |
1770 | # Tests whether HEADER exists, giving a warning if it cannot be compiled using | |
1771 | # the include files in INCLUDES and setting the cache variable VAR | |
1772 | # accordingly. | |
1773 | ac_fn_cxx_check_header_mongrel () | |
1774 | { | |
1775 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1776 | if eval \${$3+:} false; then : | |
1777 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1778 | $as_echo_n "checking for $2... " >&6; } | |
1779 | if eval \${$3+:} false; then : | |
1780 | $as_echo_n "(cached) " >&6 | |
1781 | fi | |
1782 | eval ac_res=\$$3 | |
1783 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1784 | $as_echo "$ac_res" >&6; } | |
1785 | else | |
1786 | # Is the header compilable? | |
1787 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 usability" >&5 | |
1788 | $as_echo_n "checking $2 usability... " >&6; } | |
1789 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1790 | /* end confdefs.h. */ | |
1791 | $4 | |
1792 | #include <$2> | |
1793 | _ACEOF | |
1794 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
1795 | ac_header_compiler=yes | |
1796 | else | |
1797 | ac_header_compiler=no | |
1798 | fi | |
1799 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1800 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_compiler" >&5 | |
1801 | $as_echo "$ac_header_compiler" >&6; } | |
1802 | ||
1803 | # Is the header present? | |
1804 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking $2 presence" >&5 | |
1805 | $as_echo_n "checking $2 presence... " >&6; } | |
1806 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1807 | /* end confdefs.h. */ | |
1808 | #include <$2> | |
1809 | _ACEOF | |
1810 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
1811 | ac_header_preproc=yes | |
1812 | else | |
1813 | ac_header_preproc=no | |
1814 | fi | |
1815 | rm -f conftest.err conftest.i conftest.$ac_ext | |
1816 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_header_preproc" >&5 | |
1817 | $as_echo "$ac_header_preproc" >&6; } | |
1818 | ||
1819 | # So? What about this header? | |
1820 | case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in #(( | |
1821 | yes:no: ) | |
1822 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&5 | |
1823 | $as_echo "$as_me: WARNING: $2: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
1824 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1825 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1826 | ;; | |
1827 | no:yes:* ) | |
1828 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: present but cannot be compiled" >&5 | |
1829 | $as_echo "$as_me: WARNING: $2: present but cannot be compiled" >&2;} | |
1830 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: check for missing prerequisite headers?" >&5 | |
1831 | $as_echo "$as_me: WARNING: $2: check for missing prerequisite headers?" >&2;} | |
1832 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: see the Autoconf documentation" >&5 | |
1833 | $as_echo "$as_me: WARNING: $2: see the Autoconf documentation" >&2;} | |
1834 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&5 | |
1835 | $as_echo "$as_me: WARNING: $2: section \"Present But Cannot Be Compiled\"" >&2;} | |
1836 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $2: proceeding with the compiler's result" >&5 | |
1837 | $as_echo "$as_me: WARNING: $2: proceeding with the compiler's result" >&2;} | |
1838 | ( $as_echo "## ------------------------------------------------------ ## | |
1839 | ## Report this to smartmontools-support@listi.jpberlin.de ## | |
1840 | ## ------------------------------------------------------ ##" | |
1841 | ) | sed "s/^/$as_me: WARNING: /" >&2 | |
1842 | ;; | |
1843 | esac | |
1844 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1845 | $as_echo_n "checking for $2... " >&6; } | |
1846 | if eval \${$3+:} false; then : | |
1847 | $as_echo_n "(cached) " >&6 | |
1848 | else | |
1849 | eval "$3=\$ac_header_compiler" | |
1850 | fi | |
1851 | eval ac_res=\$$3 | |
1852 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1853 | $as_echo "$ac_res" >&6; } | |
1854 | fi | |
1855 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1856 | ||
1857 | } # ac_fn_cxx_check_header_mongrel | |
1858 | ||
1859 | # ac_fn_cxx_try_run LINENO | |
1860 | # ------------------------ | |
1861 | # Try to link conftest.$ac_ext, and return whether this succeeded. Assumes | |
1862 | # that executables *can* be run. | |
1863 | ac_fn_cxx_try_run () | |
1864 | { | |
1865 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1866 | if { { ac_try="$ac_link" | |
1867 | case "(($ac_try" in | |
1868 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1869 | *) ac_try_echo=$ac_try;; | |
1870 | esac | |
1871 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1872 | $as_echo "$ac_try_echo"; } >&5 | |
1873 | (eval "$ac_link") 2>&5 | |
1874 | ac_status=$? | |
1875 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1876 | test $ac_status = 0; } && { ac_try='./conftest$ac_exeext' | |
1877 | { { case "(($ac_try" in | |
1878 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1879 | *) ac_try_echo=$ac_try;; | |
1880 | esac | |
1881 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1882 | $as_echo "$ac_try_echo"; } >&5 | |
1883 | (eval "$ac_try") 2>&5 | |
1884 | ac_status=$? | |
1885 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
1886 | test $ac_status = 0; }; }; then : | |
1887 | ac_retval=0 | |
1888 | else | |
1889 | $as_echo "$as_me: program exited with status $ac_status" >&5 | |
1890 | $as_echo "$as_me: failed program was:" >&5 | |
1891 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1892 | ||
1893 | ac_retval=$ac_status | |
1894 | fi | |
1895 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
1896 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1897 | as_fn_set_status $ac_retval | |
1898 | ||
1899 | } # ac_fn_cxx_try_run | |
1900 | ||
1901 | # ac_fn_cxx_check_header_compile LINENO HEADER VAR INCLUDES | |
1902 | # --------------------------------------------------------- | |
1903 | # Tests whether HEADER exists and can be compiled using the include files in | |
1904 | # INCLUDES, setting the cache variable VAR accordingly. | |
1905 | ac_fn_cxx_check_header_compile () | |
1906 | { | |
1907 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1908 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1909 | $as_echo_n "checking for $2... " >&6; } | |
1910 | if eval \${$3+:} false; then : | |
1911 | $as_echo_n "(cached) " >&6 | |
1912 | else | |
1913 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1914 | /* end confdefs.h. */ | |
1915 | $4 | |
1916 | #include <$2> | |
1917 | _ACEOF | |
1918 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
1919 | eval "$3=yes" | |
1920 | else | |
1921 | eval "$3=no" | |
1922 | fi | |
1923 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1924 | fi | |
1925 | eval ac_res=\$$3 | |
1926 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1927 | $as_echo "$ac_res" >&6; } | |
1928 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1929 | ||
1930 | } # ac_fn_cxx_check_header_compile | |
1931 | ||
1932 | # ac_fn_cxx_check_type LINENO TYPE VAR INCLUDES | |
1933 | # --------------------------------------------- | |
1934 | # Tests whether TYPE exists after having included INCLUDES, setting cache | |
1935 | # variable VAR accordingly. | |
1936 | ac_fn_cxx_check_type () | |
1937 | { | |
1938 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1939 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
1940 | $as_echo_n "checking for $2... " >&6; } | |
1941 | if eval \${$3+:} false; then : | |
1942 | $as_echo_n "(cached) " >&6 | |
1943 | else | |
1944 | eval "$3=no" | |
1945 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1946 | /* end confdefs.h. */ | |
1947 | $4 | |
1948 | int | |
1949 | main () | |
1950 | { | |
1951 | if (sizeof ($2)) | |
1952 | return 0; | |
1953 | ; | |
1954 | return 0; | |
1955 | } | |
1956 | _ACEOF | |
1957 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
1958 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
1959 | /* end confdefs.h. */ | |
1960 | $4 | |
1961 | int | |
1962 | main () | |
1963 | { | |
1964 | if (sizeof (($2))) | |
1965 | return 0; | |
1966 | ; | |
1967 | return 0; | |
1968 | } | |
1969 | _ACEOF | |
1970 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
1971 | ||
1972 | else | |
1973 | eval "$3=yes" | |
1974 | fi | |
1975 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1976 | fi | |
1977 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
1978 | fi | |
1979 | eval ac_res=\$$3 | |
1980 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
1981 | $as_echo "$ac_res" >&6; } | |
1982 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
1983 | ||
1984 | } # ac_fn_cxx_check_type | |
1985 | ||
1986 | # ac_fn_cxx_try_link LINENO | |
1987 | # ------------------------- | |
1988 | # Try to link conftest.$ac_ext, and return whether this succeeded. | |
1989 | ac_fn_cxx_try_link () | |
1990 | { | |
1991 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
1992 | rm -f conftest.$ac_objext conftest$ac_exeext | |
1993 | if { { ac_try="$ac_link" | |
1994 | case "(($ac_try" in | |
1995 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
1996 | *) ac_try_echo=$ac_try;; | |
1997 | esac | |
1998 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
1999 | $as_echo "$ac_try_echo"; } >&5 | |
2000 | (eval "$ac_link") 2>conftest.err | |
2001 | ac_status=$? | |
2002 | if test -s conftest.err; then | |
2003 | grep -v '^ *+' conftest.err >conftest.er1 | |
2004 | cat conftest.er1 >&5 | |
2005 | mv -f conftest.er1 conftest.err | |
2006 | fi | |
2007 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
2008 | test $ac_status = 0; } && { | |
2009 | test -z "$ac_cxx_werror_flag" || | |
2010 | test ! -s conftest.err | |
2011 | } && test -s conftest$ac_exeext && { | |
2012 | test "$cross_compiling" = yes || | |
2013 | test -x conftest$ac_exeext | |
2014 | }; then : | |
2015 | ac_retval=0 | |
2016 | else | |
2017 | $as_echo "$as_me: failed program was:" >&5 | |
2018 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2019 | ||
2020 | ac_retval=1 | |
2021 | fi | |
2022 | # Delete the IPA/IPO (Inter Procedural Analysis/Optimization) information | |
2023 | # created by the PGI compiler (conftest_ipa8_conftest.oo), as it would | |
2024 | # interfere with the next link command; also delete a directory that is | |
2025 | # left behind by Apple's compiler. We do this before executing the actions. | |
2026 | rm -rf conftest.dSYM conftest_ipa8_conftest.oo | |
2027 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2028 | as_fn_set_status $ac_retval | |
2029 | ||
2030 | } # ac_fn_cxx_try_link | |
2031 | ||
2032 | # ac_fn_cxx_check_func LINENO FUNC VAR | |
2033 | # ------------------------------------ | |
2034 | # Tests whether FUNC exists, setting the cache variable VAR accordingly | |
2035 | ac_fn_cxx_check_func () | |
2036 | { | |
2037 | as_lineno=${as_lineno-"$1"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
2038 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $2" >&5 | |
2039 | $as_echo_n "checking for $2... " >&6; } | |
2040 | if eval \${$3+:} false; then : | |
2041 | $as_echo_n "(cached) " >&6 | |
2042 | else | |
2043 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
2044 | /* end confdefs.h. */ | |
2045 | /* Define $2 to an innocuous variant, in case <limits.h> declares $2. | |
2046 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
2047 | #define $2 innocuous_$2 | |
2048 | ||
2049 | /* System header to define __stub macros and hopefully few prototypes, | |
2050 | which can conflict with char $2 (); below. | |
2051 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
2052 | <limits.h> exists even on freestanding compilers. */ | |
2053 | ||
2054 | #ifdef __STDC__ | |
2055 | # include <limits.h> | |
2056 | #else | |
2057 | # include <assert.h> | |
2058 | #endif | |
2059 | ||
2060 | #undef $2 | |
2061 | ||
2062 | /* Override any GCC internal prototype to avoid an error. | |
2063 | Use char because int might match the return type of a GCC | |
2064 | builtin and then its argument prototype would still apply. */ | |
2065 | #ifdef __cplusplus | |
2066 | extern "C" | |
2067 | #endif | |
2068 | char $2 (); | |
2069 | /* The GNU C library defines this for functions which it implements | |
2070 | to always fail with ENOSYS. Some functions are actually named | |
2071 | something starting with __ and the normal name is an alias. */ | |
2072 | #if defined __stub_$2 || defined __stub___$2 | |
2073 | choke me | |
2074 | #endif | |
2075 | ||
2076 | int | |
2077 | main () | |
2078 | { | |
2079 | return $2 (); | |
2080 | ; | |
2081 | return 0; | |
2082 | } | |
2083 | _ACEOF | |
2084 | if ac_fn_cxx_try_link "$LINENO"; then : | |
2085 | eval "$3=yes" | |
2086 | else | |
2087 | eval "$3=no" | |
2088 | fi | |
2089 | rm -f core conftest.err conftest.$ac_objext \ | |
2090 | conftest$ac_exeext conftest.$ac_ext | |
2091 | fi | |
2092 | eval ac_res=\$$3 | |
2093 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_res" >&5 | |
2094 | $as_echo "$ac_res" >&6; } | |
2095 | eval $as_lineno_stack; ${as_lineno_stack:+:} unset as_lineno | |
2096 | ||
2097 | } # ac_fn_cxx_check_func | |
2098 | cat >config.log <<_ACEOF | |
2099 | This file contains any messages produced by compilers while | |
2100 | running configure, to aid debugging if configure makes a mistake. | |
2101 | ||
ff28b140 | 2102 | It was created by smartmontools $as_me 7.0, which was |
f9e10201 JD |
2103 | generated by GNU Autoconf 2.69. Invocation command line was |
2104 | ||
2105 | $ $0 $@ | |
2106 | ||
2107 | _ACEOF | |
2108 | exec 5>>config.log | |
2109 | { | |
2110 | cat <<_ASUNAME | |
2111 | ## --------- ## | |
2112 | ## Platform. ## | |
2113 | ## --------- ## | |
2114 | ||
2115 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
2116 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
2117 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
2118 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
2119 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
2120 | ||
2121 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
2122 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
2123 | ||
2124 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
2125 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
2126 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
2127 | /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown` | |
2128 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
2129 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
2130 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
2131 | ||
2132 | _ASUNAME | |
2133 | ||
2134 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2135 | for as_dir in $PATH | |
2136 | do | |
2137 | IFS=$as_save_IFS | |
2138 | test -z "$as_dir" && as_dir=. | |
2139 | $as_echo "PATH: $as_dir" | |
2140 | done | |
2141 | IFS=$as_save_IFS | |
2142 | ||
2143 | } >&5 | |
2144 | ||
2145 | cat >&5 <<_ACEOF | |
2146 | ||
2147 | ||
2148 | ## ----------- ## | |
2149 | ## Core tests. ## | |
2150 | ## ----------- ## | |
2151 | ||
2152 | _ACEOF | |
2153 | ||
2154 | ||
2155 | # Keep a trace of the command line. | |
2156 | # Strip out --no-create and --no-recursion so they do not pile up. | |
2157 | # Strip out --silent because we don't want to record it for future runs. | |
2158 | # Also quote any args containing shell meta-characters. | |
2159 | # Make two passes to allow for proper duplicate-argument suppression. | |
2160 | ac_configure_args= | |
2161 | ac_configure_args0= | |
2162 | ac_configure_args1= | |
2163 | ac_must_keep_next=false | |
2164 | for ac_pass in 1 2 | |
2165 | do | |
2166 | for ac_arg | |
2167 | do | |
2168 | case $ac_arg in | |
2169 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
2170 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
2171 | | -silent | --silent | --silen | --sile | --sil) | |
2172 | continue ;; | |
2173 | *\'*) | |
2174 | ac_arg=`$as_echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2175 | esac | |
2176 | case $ac_pass in | |
2177 | 1) as_fn_append ac_configure_args0 " '$ac_arg'" ;; | |
2178 | 2) | |
2179 | as_fn_append ac_configure_args1 " '$ac_arg'" | |
2180 | if test $ac_must_keep_next = true; then | |
2181 | ac_must_keep_next=false # Got value, back to normal. | |
2182 | else | |
2183 | case $ac_arg in | |
2184 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
2185 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
2186 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
2187 | | -with-* | --with-* | -without-* | --without-* | --x) | |
2188 | case "$ac_configure_args0 " in | |
2189 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
2190 | esac | |
2191 | ;; | |
2192 | -* ) ac_must_keep_next=true ;; | |
2193 | esac | |
2194 | fi | |
2195 | as_fn_append ac_configure_args " '$ac_arg'" | |
2196 | ;; | |
2197 | esac | |
2198 | done | |
2199 | done | |
2200 | { ac_configure_args0=; unset ac_configure_args0;} | |
2201 | { ac_configure_args1=; unset ac_configure_args1;} | |
2202 | ||
2203 | # When interrupted or exit'd, cleanup temporary files, and complete | |
2204 | # config.log. We remove comments because anyway the quotes in there | |
2205 | # would cause problems or look ugly. | |
2206 | # WARNING: Use '\'' to represent an apostrophe within the trap. | |
2207 | # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug. | |
2208 | trap 'exit_status=$? | |
2209 | # Save into config.log some information that might help in debugging. | |
2210 | { | |
2211 | echo | |
2212 | ||
2213 | $as_echo "## ---------------- ## | |
2214 | ## Cache variables. ## | |
2215 | ## ---------------- ##" | |
2216 | echo | |
2217 | # The following way of writing the cache mishandles newlines in values, | |
2218 | ( | |
2219 | for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do | |
2220 | eval ac_val=\$$ac_var | |
2221 | case $ac_val in #( | |
2222 | *${as_nl}*) | |
2223 | case $ac_var in #( | |
2224 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
2225 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
2226 | esac | |
2227 | case $ac_var in #( | |
2228 | _ | IFS | as_nl) ;; #( | |
2229 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
2230 | *) { eval $ac_var=; unset $ac_var;} ;; | |
2231 | esac ;; | |
2232 | esac | |
2233 | done | |
2234 | (set) 2>&1 | | |
2235 | case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #( | |
2236 | *${as_nl}ac_space=\ *) | |
2237 | sed -n \ | |
2238 | "s/'\''/'\''\\\\'\'''\''/g; | |
2239 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p" | |
2240 | ;; #( | |
2241 | *) | |
2242 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
2243 | ;; | |
2244 | esac | | |
2245 | sort | |
2246 | ) | |
2247 | echo | |
2248 | ||
2249 | $as_echo "## ----------------- ## | |
2250 | ## Output variables. ## | |
2251 | ## ----------------- ##" | |
2252 | echo | |
2253 | for ac_var in $ac_subst_vars | |
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 | ||
2263 | if test -n "$ac_subst_files"; then | |
2264 | $as_echo "## ------------------- ## | |
2265 | ## File substitutions. ## | |
2266 | ## ------------------- ##" | |
2267 | echo | |
2268 | for ac_var in $ac_subst_files | |
2269 | do | |
2270 | eval ac_val=\$$ac_var | |
2271 | case $ac_val in | |
2272 | *\'\''*) ac_val=`$as_echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;; | |
2273 | esac | |
2274 | $as_echo "$ac_var='\''$ac_val'\''" | |
2275 | done | sort | |
2276 | echo | |
2277 | fi | |
2278 | ||
2279 | if test -s confdefs.h; then | |
2280 | $as_echo "## ----------- ## | |
2281 | ## confdefs.h. ## | |
2282 | ## ----------- ##" | |
2283 | echo | |
2284 | cat confdefs.h | |
2285 | echo | |
2286 | fi | |
2287 | test "$ac_signal" != 0 && | |
2288 | $as_echo "$as_me: caught signal $ac_signal" | |
2289 | $as_echo "$as_me: exit $exit_status" | |
2290 | } >&5 | |
2291 | rm -f core *.core core.conftest.* && | |
2292 | rm -f -r conftest* confdefs* conf$$* $ac_clean_files && | |
2293 | exit $exit_status | |
2294 | ' 0 | |
2295 | for ac_signal in 1 2 13 15; do | |
2296 | trap 'ac_signal='$ac_signal'; as_fn_exit 1' $ac_signal | |
2297 | done | |
2298 | ac_signal=0 | |
2299 | ||
2300 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
2301 | rm -f -r conftest* confdefs.h | |
2302 | ||
2303 | $as_echo "/* confdefs.h */" > confdefs.h | |
2304 | ||
2305 | # Predefined preprocessor variables. | |
2306 | ||
2307 | cat >>confdefs.h <<_ACEOF | |
2308 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
2309 | _ACEOF | |
2310 | ||
2311 | cat >>confdefs.h <<_ACEOF | |
2312 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
2313 | _ACEOF | |
2314 | ||
2315 | cat >>confdefs.h <<_ACEOF | |
2316 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
2317 | _ACEOF | |
2318 | ||
2319 | cat >>confdefs.h <<_ACEOF | |
2320 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
2321 | _ACEOF | |
2322 | ||
2323 | cat >>confdefs.h <<_ACEOF | |
2324 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
2325 | _ACEOF | |
2326 | ||
2327 | cat >>confdefs.h <<_ACEOF | |
2328 | #define PACKAGE_URL "$PACKAGE_URL" | |
2329 | _ACEOF | |
2330 | ||
2331 | ||
2332 | # Let the site file select an alternate cache file if it wants to. | |
2333 | # Prefer an explicitly selected file to automatically selected ones. | |
2334 | ac_site_file1=NONE | |
2335 | ac_site_file2=NONE | |
2336 | if test -n "$CONFIG_SITE"; then | |
2337 | # We do not want a PATH search for config.site. | |
2338 | case $CONFIG_SITE in #(( | |
2339 | -*) ac_site_file1=./$CONFIG_SITE;; | |
2340 | */*) ac_site_file1=$CONFIG_SITE;; | |
2341 | *) ac_site_file1=./$CONFIG_SITE;; | |
2342 | esac | |
2343 | elif test "x$prefix" != xNONE; then | |
2344 | ac_site_file1=$prefix/share/config.site | |
2345 | ac_site_file2=$prefix/etc/config.site | |
2346 | else | |
2347 | ac_site_file1=$ac_default_prefix/share/config.site | |
2348 | ac_site_file2=$ac_default_prefix/etc/config.site | |
2349 | fi | |
2350 | for ac_site_file in "$ac_site_file1" "$ac_site_file2" | |
2351 | do | |
2352 | test "x$ac_site_file" = xNONE && continue | |
2353 | if test /dev/null != "$ac_site_file" && test -r "$ac_site_file"; then | |
2354 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading site script $ac_site_file" >&5 | |
2355 | $as_echo "$as_me: loading site script $ac_site_file" >&6;} | |
2356 | sed 's/^/| /' "$ac_site_file" >&5 | |
2357 | . "$ac_site_file" \ | |
2358 | || { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2359 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2360 | as_fn_error $? "failed to load site script $ac_site_file | |
2361 | See \`config.log' for more details" "$LINENO" 5; } | |
2362 | fi | |
2363 | done | |
2364 | ||
2365 | if test -r "$cache_file"; then | |
2366 | # Some versions of bash will fail to source /dev/null (special files | |
2367 | # actually), so we avoid doing that. DJGPP emulates it as a regular file. | |
2368 | if test /dev/null != "$cache_file" && test -f "$cache_file"; then | |
2369 | { $as_echo "$as_me:${as_lineno-$LINENO}: loading cache $cache_file" >&5 | |
2370 | $as_echo "$as_me: loading cache $cache_file" >&6;} | |
2371 | case $cache_file in | |
2372 | [\\/]* | ?:[\\/]* ) . "$cache_file";; | |
2373 | *) . "./$cache_file";; | |
2374 | esac | |
2375 | fi | |
2376 | else | |
2377 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating cache $cache_file" >&5 | |
2378 | $as_echo "$as_me: creating cache $cache_file" >&6;} | |
2379 | >$cache_file | |
2380 | fi | |
2381 | ||
2382 | # Check that the precious variables saved in the cache have kept the same | |
2383 | # value. | |
2384 | ac_cache_corrupted=false | |
2385 | for ac_var in $ac_precious_vars; do | |
2386 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
2387 | eval ac_new_set=\$ac_env_${ac_var}_set | |
2388 | eval ac_old_val=\$ac_cv_env_${ac_var}_value | |
2389 | eval ac_new_val=\$ac_env_${ac_var}_value | |
2390 | case $ac_old_set,$ac_new_set in | |
2391 | set,) | |
2392 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
2393 | $as_echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
2394 | ac_cache_corrupted=: ;; | |
2395 | ,set) | |
2396 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' was not set in the previous run" >&5 | |
2397 | $as_echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
2398 | ac_cache_corrupted=: ;; | |
2399 | ,);; | |
2400 | *) | |
2401 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
2402 | # differences in whitespace do not lead to failure. | |
2403 | ac_old_val_w=`echo x $ac_old_val` | |
2404 | ac_new_val_w=`echo x $ac_new_val` | |
2405 | if test "$ac_old_val_w" != "$ac_new_val_w"; then | |
2406 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: \`$ac_var' has changed since the previous run:" >&5 | |
2407 | $as_echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
2408 | ac_cache_corrupted=: | |
2409 | else | |
2410 | { $as_echo "$as_me:${as_lineno-$LINENO}: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&5 | |
2411 | $as_echo "$as_me: warning: ignoring whitespace changes in \`$ac_var' since the previous run:" >&2;} | |
2412 | eval $ac_var=\$ac_old_val | |
2413 | fi | |
2414 | { $as_echo "$as_me:${as_lineno-$LINENO}: former value: \`$ac_old_val'" >&5 | |
2415 | $as_echo "$as_me: former value: \`$ac_old_val'" >&2;} | |
2416 | { $as_echo "$as_me:${as_lineno-$LINENO}: current value: \`$ac_new_val'" >&5 | |
2417 | $as_echo "$as_me: current value: \`$ac_new_val'" >&2;} | |
2418 | fi;; | |
2419 | esac | |
2420 | # Pass precious variables to config.status. | |
2421 | if test "$ac_new_set" = set; then | |
2422 | case $ac_new_val in | |
2423 | *\'*) ac_arg=$ac_var=`$as_echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
2424 | *) ac_arg=$ac_var=$ac_new_val ;; | |
2425 | esac | |
2426 | case " $ac_configure_args " in | |
2427 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
2428 | *) as_fn_append ac_configure_args " '$ac_arg'" ;; | |
2429 | esac | |
2430 | fi | |
2431 | done | |
2432 | if $ac_cache_corrupted; then | |
2433 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
2434 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
2435 | { $as_echo "$as_me:${as_lineno-$LINENO}: error: changes in the environment can compromise the build" >&5 | |
2436 | $as_echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
2437 | as_fn_error $? "run \`make distclean' and/or \`rm $cache_file' and start over" "$LINENO" 5 | |
2438 | fi | |
2439 | ## -------------------- ## | |
2440 | ## Main body of script. ## | |
2441 | ## -------------------- ## | |
2442 | ||
2443 | ac_ext=c | |
2444 | ac_cpp='$CPP $CPPFLAGS' | |
2445 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2446 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2447 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2448 | ||
2449 | ||
2450 | am__api_version='1.15' | |
2451 | ||
2452 | ac_aux_dir= | |
2453 | for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do | |
2454 | if test -f "$ac_dir/install-sh"; then | |
2455 | ac_aux_dir=$ac_dir | |
2456 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
2457 | break | |
2458 | elif test -f "$ac_dir/install.sh"; then | |
2459 | ac_aux_dir=$ac_dir | |
2460 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
2461 | break | |
2462 | elif test -f "$ac_dir/shtool"; then | |
2463 | ac_aux_dir=$ac_dir | |
2464 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
2465 | break | |
2466 | fi | |
2467 | done | |
2468 | if test -z "$ac_aux_dir"; then | |
2469 | as_fn_error $? "cannot find install-sh, install.sh, or shtool in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" "$LINENO" 5 | |
2470 | fi | |
2471 | ||
2472 | # These three variables are undocumented and unsupported, | |
2473 | # and are intended to be withdrawn in a future Autoconf release. | |
2474 | # They can cause serious problems if a builder's source tree is in a directory | |
2475 | # whose full name contains unusual characters. | |
2476 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var. | |
2477 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var. | |
2478 | ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var. | |
2479 | ||
2480 | ||
2481 | # Find a good install program. We prefer a C program (faster), | |
2482 | # so one script is as good as another. But avoid the broken or | |
2483 | # incompatible versions: | |
2484 | # SysV /etc/install, /usr/sbin/install | |
2485 | # SunOS /usr/etc/install | |
2486 | # IRIX /sbin/install | |
2487 | # AIX /bin/install | |
2488 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
2489 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
2490 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2491 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
2492 | # OS/2's system install, which has a completely different semantic | |
2493 | # ./install, which can be erroneously created by make from ./install.sh. | |
2494 | # Reject install programs that cannot install multiple files. | |
2495 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a BSD-compatible install" >&5 | |
2496 | $as_echo_n "checking for a BSD-compatible install... " >&6; } | |
2497 | if test -z "$INSTALL"; then | |
2498 | if ${ac_cv_path_install+:} false; then : | |
2499 | $as_echo_n "(cached) " >&6 | |
2500 | else | |
2501 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2502 | for as_dir in $PATH | |
2503 | do | |
2504 | IFS=$as_save_IFS | |
2505 | test -z "$as_dir" && as_dir=. | |
2506 | # Account for people who put trailing slashes in PATH elements. | |
2507 | case $as_dir/ in #(( | |
2508 | ./ | .// | /[cC]/* | \ | |
2509 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
2510 | ?:[\\/]os2[\\/]install[\\/]* | ?:[\\/]OS2[\\/]INSTALL[\\/]* | \ | |
2511 | /usr/ucb/* ) ;; | |
2512 | *) | |
2513 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2514 | # Don't use installbsd from OSF since it installs stuff as root | |
2515 | # by default. | |
2516 | for ac_prog in ginstall scoinst install; do | |
2517 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2518 | if as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
2519 | if test $ac_prog = install && | |
2520 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2521 | # AIX install. It has an incompatible calling convention. | |
2522 | : | |
2523 | elif test $ac_prog = install && | |
2524 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2525 | # program-specific install script used by HP pwplus--don't use. | |
2526 | : | |
2527 | else | |
2528 | rm -rf conftest.one conftest.two conftest.dir | |
2529 | echo one > conftest.one | |
2530 | echo two > conftest.two | |
2531 | mkdir conftest.dir | |
2532 | if "$as_dir/$ac_prog$ac_exec_ext" -c conftest.one conftest.two "`pwd`/conftest.dir" && | |
2533 | test -s conftest.one && test -s conftest.two && | |
2534 | test -s conftest.dir/conftest.one && | |
2535 | test -s conftest.dir/conftest.two | |
2536 | then | |
2537 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2538 | break 3 | |
2539 | fi | |
2540 | fi | |
2541 | fi | |
2542 | done | |
2543 | done | |
2544 | ;; | |
2545 | esac | |
2546 | ||
2547 | done | |
2548 | IFS=$as_save_IFS | |
2549 | ||
2550 | rm -rf conftest.one conftest.two conftest.dir | |
2551 | ||
2552 | fi | |
2553 | if test "${ac_cv_path_install+set}" = set; then | |
2554 | INSTALL=$ac_cv_path_install | |
2555 | else | |
2556 | # As a last resort, use the slow shell script. Don't cache a | |
2557 | # value for INSTALL within a source directory, because that will | |
2558 | # break other packages using the cache if that directory is | |
2559 | # removed, or if the value is a relative name. | |
2560 | INSTALL=$ac_install_sh | |
2561 | fi | |
2562 | fi | |
2563 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $INSTALL" >&5 | |
2564 | $as_echo "$INSTALL" >&6; } | |
2565 | ||
2566 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
2567 | # It thinks the first close brace ends the variable substitution. | |
2568 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2569 | ||
2570 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
2571 | ||
2572 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2573 | ||
2574 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether build environment is sane" >&5 | |
2575 | $as_echo_n "checking whether build environment is sane... " >&6; } | |
2576 | # Reject unsafe characters in $srcdir or the absolute working directory | |
2577 | # name. Accept space and tab only in the latter. | |
2578 | am_lf=' | |
2579 | ' | |
2580 | case `pwd` in | |
2581 | *[\\\"\#\$\&\'\`$am_lf]*) | |
2582 | as_fn_error $? "unsafe absolute working directory name" "$LINENO" 5;; | |
2583 | esac | |
2584 | case $srcdir in | |
2585 | *[\\\"\#\$\&\'\`$am_lf\ \ ]*) | |
2586 | as_fn_error $? "unsafe srcdir value: '$srcdir'" "$LINENO" 5;; | |
2587 | esac | |
2588 | ||
2589 | # Do 'set' in a subshell so we don't clobber the current shell's | |
2590 | # arguments. Must try -L first in case configure is actually a | |
2591 | # symlink; some systems play weird games with the mod time of symlinks | |
2592 | # (eg FreeBSD returns the mod time of the symlink's containing | |
2593 | # directory). | |
2594 | if ( | |
2595 | am_has_slept=no | |
2596 | for am_try in 1 2; do | |
2597 | echo "timestamp, slept: $am_has_slept" > conftest.file | |
2598 | set X `ls -Lt "$srcdir/configure" conftest.file 2> /dev/null` | |
2599 | if test "$*" = "X"; then | |
2600 | # -L didn't work. | |
2601 | set X `ls -t "$srcdir/configure" conftest.file` | |
2602 | fi | |
2603 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
2604 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
2605 | ||
2606 | # If neither matched, then we have a broken ls. This can happen | |
2607 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
2608 | # broken ls alias from the environment. This has actually | |
2609 | # happened. Such a system could not be considered "sane". | |
2610 | as_fn_error $? "ls -t appears to fail. Make sure there is not a broken | |
2611 | alias in your environment" "$LINENO" 5 | |
2612 | fi | |
2613 | if test "$2" = conftest.file || test $am_try -eq 2; then | |
2614 | break | |
2615 | fi | |
2616 | # Just in case. | |
2617 | sleep 1 | |
2618 | am_has_slept=yes | |
2619 | done | |
2620 | test "$2" = conftest.file | |
2621 | ) | |
2622 | then | |
2623 | # Ok. | |
2624 | : | |
2625 | else | |
2626 | as_fn_error $? "newly created file is older than distributed files! | |
2627 | Check your system clock" "$LINENO" 5 | |
2628 | fi | |
2629 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
2630 | $as_echo "yes" >&6; } | |
2631 | # If we didn't sleep, we still need to ensure time stamps of config.status and | |
2632 | # generated files are strictly newer. | |
2633 | am_sleep_pid= | |
2634 | if grep 'slept: no' conftest.file >/dev/null 2>&1; then | |
2635 | ( sleep 1 ) & | |
2636 | am_sleep_pid=$! | |
2637 | fi | |
2638 | ||
2639 | rm -f conftest.file | |
2640 | ||
2641 | test "$program_prefix" != NONE && | |
2642 | program_transform_name="s&^&$program_prefix&;$program_transform_name" | |
2643 | # Use a double $ so make ignores it. | |
2644 | test "$program_suffix" != NONE && | |
2645 | program_transform_name="s&\$&$program_suffix&;$program_transform_name" | |
2646 | # Double any \ or $. | |
2647 | # By default was `s,x,x', remove it if useless. | |
2648 | ac_script='s/[\\$]/&&/g;s/;s,x,x,$//' | |
2649 | program_transform_name=`$as_echo "$program_transform_name" | sed "$ac_script"` | |
2650 | ||
2651 | # Expand $ac_aux_dir to an absolute path. | |
2652 | am_aux_dir=`cd "$ac_aux_dir" && pwd` | |
2653 | ||
2654 | if test x"${MISSING+set}" != xset; then | |
2655 | case $am_aux_dir in | |
2656 | *\ * | *\ *) | |
2657 | MISSING="\${SHELL} \"$am_aux_dir/missing\"" ;; | |
2658 | *) | |
2659 | MISSING="\${SHELL} $am_aux_dir/missing" ;; | |
2660 | esac | |
2661 | fi | |
2662 | # Use eval to expand $SHELL | |
2663 | if eval "$MISSING --is-lightweight"; then | |
2664 | am_missing_run="$MISSING " | |
2665 | else | |
2666 | am_missing_run= | |
2667 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: 'missing' script is too old or missing" >&5 | |
2668 | $as_echo "$as_me: WARNING: 'missing' script is too old or missing" >&2;} | |
2669 | fi | |
2670 | ||
2671 | if test x"${install_sh+set}" != xset; then | |
2672 | case $am_aux_dir in | |
2673 | *\ * | *\ *) | |
2674 | install_sh="\${SHELL} '$am_aux_dir/install-sh'" ;; | |
2675 | *) | |
2676 | install_sh="\${SHELL} $am_aux_dir/install-sh" | |
2677 | esac | |
2678 | fi | |
2679 | ||
2680 | # Installed binaries are usually stripped using 'strip' when the user | |
2681 | # run "make install-strip". However 'strip' might not be the right | |
2682 | # tool to use in cross-compilation environments, therefore Automake | |
2683 | # will honor the 'STRIP' environment variable to overrule this program. | |
2684 | if test "$cross_compiling" != no; then | |
2685 | if test -n "$ac_tool_prefix"; then | |
2686 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
2687 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
2688 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2689 | $as_echo_n "checking for $ac_word... " >&6; } | |
2690 | if ${ac_cv_prog_STRIP+:} false; then : | |
2691 | $as_echo_n "(cached) " >&6 | |
2692 | else | |
2693 | if test -n "$STRIP"; then | |
2694 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
2695 | else | |
2696 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2697 | for as_dir in $PATH | |
2698 | do | |
2699 | IFS=$as_save_IFS | |
2700 | test -z "$as_dir" && as_dir=. | |
2701 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2702 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2703 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
2704 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2705 | break 2 | |
2706 | fi | |
2707 | done | |
2708 | done | |
2709 | IFS=$as_save_IFS | |
2710 | ||
2711 | fi | |
2712 | fi | |
2713 | STRIP=$ac_cv_prog_STRIP | |
2714 | if test -n "$STRIP"; then | |
2715 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $STRIP" >&5 | |
2716 | $as_echo "$STRIP" >&6; } | |
2717 | else | |
2718 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2719 | $as_echo "no" >&6; } | |
2720 | fi | |
2721 | ||
2722 | ||
2723 | fi | |
2724 | if test -z "$ac_cv_prog_STRIP"; then | |
2725 | ac_ct_STRIP=$STRIP | |
2726 | # Extract the first word of "strip", so it can be a program name with args. | |
2727 | set dummy strip; ac_word=$2 | |
2728 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2729 | $as_echo_n "checking for $ac_word... " >&6; } | |
2730 | if ${ac_cv_prog_ac_ct_STRIP+:} false; then : | |
2731 | $as_echo_n "(cached) " >&6 | |
2732 | else | |
2733 | if test -n "$ac_ct_STRIP"; then | |
2734 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
2735 | else | |
2736 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2737 | for as_dir in $PATH | |
2738 | do | |
2739 | IFS=$as_save_IFS | |
2740 | test -z "$as_dir" && as_dir=. | |
2741 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2742 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2743 | ac_cv_prog_ac_ct_STRIP="strip" | |
2744 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2745 | break 2 | |
2746 | fi | |
2747 | done | |
2748 | done | |
2749 | IFS=$as_save_IFS | |
2750 | ||
2751 | fi | |
2752 | fi | |
2753 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
2754 | if test -n "$ac_ct_STRIP"; then | |
2755 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_STRIP" >&5 | |
2756 | $as_echo "$ac_ct_STRIP" >&6; } | |
2757 | else | |
2758 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2759 | $as_echo "no" >&6; } | |
2760 | fi | |
2761 | ||
2762 | if test "x$ac_ct_STRIP" = x; then | |
2763 | STRIP=":" | |
2764 | else | |
2765 | case $cross_compiling:$ac_tool_warned in | |
2766 | yes:) | |
2767 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
2768 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
2769 | ac_tool_warned=yes ;; | |
2770 | esac | |
2771 | STRIP=$ac_ct_STRIP | |
2772 | fi | |
2773 | else | |
2774 | STRIP="$ac_cv_prog_STRIP" | |
2775 | fi | |
2776 | ||
2777 | fi | |
2778 | INSTALL_STRIP_PROGRAM="\$(install_sh) -c -s" | |
2779 | ||
2780 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for a thread-safe mkdir -p" >&5 | |
2781 | $as_echo_n "checking for a thread-safe mkdir -p... " >&6; } | |
2782 | if test -z "$MKDIR_P"; then | |
2783 | if ${ac_cv_path_mkdir+:} false; then : | |
2784 | $as_echo_n "(cached) " >&6 | |
2785 | else | |
2786 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2787 | for as_dir in $PATH$PATH_SEPARATOR/opt/sfw/bin | |
2788 | do | |
2789 | IFS=$as_save_IFS | |
2790 | test -z "$as_dir" && as_dir=. | |
2791 | for ac_prog in mkdir gmkdir; do | |
2792 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2793 | as_fn_executable_p "$as_dir/$ac_prog$ac_exec_ext" || continue | |
2794 | case `"$as_dir/$ac_prog$ac_exec_ext" --version 2>&1` in #( | |
2795 | 'mkdir (GNU coreutils) '* | \ | |
2796 | 'mkdir (coreutils) '* | \ | |
2797 | 'mkdir (fileutils) '4.1*) | |
2798 | ac_cv_path_mkdir=$as_dir/$ac_prog$ac_exec_ext | |
2799 | break 3;; | |
2800 | esac | |
2801 | done | |
2802 | done | |
2803 | done | |
2804 | IFS=$as_save_IFS | |
2805 | ||
2806 | fi | |
2807 | ||
2808 | test -d ./--version && rmdir ./--version | |
2809 | if test "${ac_cv_path_mkdir+set}" = set; then | |
2810 | MKDIR_P="$ac_cv_path_mkdir -p" | |
2811 | else | |
2812 | # As a last resort, use the slow shell script. Don't cache a | |
2813 | # value for MKDIR_P within a source directory, because that will | |
2814 | # break other packages using the cache if that directory is | |
2815 | # removed, or if the value is a relative name. | |
2816 | MKDIR_P="$ac_install_sh -d" | |
2817 | fi | |
2818 | fi | |
2819 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $MKDIR_P" >&5 | |
2820 | $as_echo "$MKDIR_P" >&6; } | |
2821 | ||
2822 | for ac_prog in gawk mawk nawk awk | |
2823 | do | |
2824 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2825 | set dummy $ac_prog; ac_word=$2 | |
2826 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
2827 | $as_echo_n "checking for $ac_word... " >&6; } | |
2828 | if ${ac_cv_prog_AWK+:} false; then : | |
2829 | $as_echo_n "(cached) " >&6 | |
2830 | else | |
2831 | if test -n "$AWK"; then | |
2832 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
2833 | else | |
2834 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2835 | for as_dir in $PATH | |
2836 | do | |
2837 | IFS=$as_save_IFS | |
2838 | test -z "$as_dir" && as_dir=. | |
2839 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2840 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2841 | ac_cv_prog_AWK="$ac_prog" | |
2842 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2843 | break 2 | |
2844 | fi | |
2845 | done | |
2846 | done | |
2847 | IFS=$as_save_IFS | |
2848 | ||
2849 | fi | |
2850 | fi | |
2851 | AWK=$ac_cv_prog_AWK | |
2852 | if test -n "$AWK"; then | |
2853 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $AWK" >&5 | |
2854 | $as_echo "$AWK" >&6; } | |
2855 | else | |
2856 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2857 | $as_echo "no" >&6; } | |
2858 | fi | |
2859 | ||
2860 | ||
2861 | test -n "$AWK" && break | |
2862 | done | |
2863 | ||
2864 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
2865 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
2866 | set x ${MAKE-make} | |
2867 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
2868 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : | |
2869 | $as_echo_n "(cached) " >&6 | |
2870 | else | |
2871 | cat >conftest.make <<\_ACEOF | |
2872 | SHELL = /bin/sh | |
2873 | all: | |
2874 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
2875 | _ACEOF | |
2876 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. | |
2877 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
2878 | *@@@%%%=?*=@@@%%%*) | |
2879 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
2880 | *) | |
2881 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
2882 | esac | |
2883 | rm -f conftest.make | |
2884 | fi | |
2885 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
2886 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
2887 | $as_echo "yes" >&6; } | |
2888 | SET_MAKE= | |
2889 | else | |
2890 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
2891 | $as_echo "no" >&6; } | |
2892 | SET_MAKE="MAKE=${MAKE-make}" | |
2893 | fi | |
2894 | ||
2895 | rm -rf .tst 2>/dev/null | |
2896 | mkdir .tst 2>/dev/null | |
2897 | if test -d .tst; then | |
2898 | am__leading_dot=. | |
2899 | else | |
2900 | am__leading_dot=_ | |
2901 | fi | |
2902 | rmdir .tst 2>/dev/null | |
2903 | ||
2904 | # Check whether --enable-silent-rules was given. | |
2905 | if test "${enable_silent_rules+set}" = set; then : | |
2906 | enableval=$enable_silent_rules; | |
2907 | fi | |
2908 | ||
2909 | case $enable_silent_rules in # ((( | |
2910 | yes) AM_DEFAULT_VERBOSITY=0;; | |
2911 | no) AM_DEFAULT_VERBOSITY=1;; | |
2912 | *) AM_DEFAULT_VERBOSITY=1;; | |
2913 | esac | |
2914 | am_make=${MAKE-make} | |
2915 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $am_make supports nested variables" >&5 | |
2916 | $as_echo_n "checking whether $am_make supports nested variables... " >&6; } | |
2917 | if ${am_cv_make_support_nested_variables+:} false; then : | |
2918 | $as_echo_n "(cached) " >&6 | |
2919 | else | |
2920 | if $as_echo 'TRUE=$(BAR$(V)) | |
2921 | BAR0=false | |
2922 | BAR1=true | |
2923 | V=1 | |
2924 | am__doit: | |
2925 | @$(TRUE) | |
2926 | .PHONY: am__doit' | $am_make -f - >/dev/null 2>&1; then | |
2927 | am_cv_make_support_nested_variables=yes | |
2928 | else | |
2929 | am_cv_make_support_nested_variables=no | |
2930 | fi | |
2931 | fi | |
2932 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_make_support_nested_variables" >&5 | |
2933 | $as_echo "$am_cv_make_support_nested_variables" >&6; } | |
2934 | if test $am_cv_make_support_nested_variables = yes; then | |
2935 | AM_V='$(V)' | |
2936 | AM_DEFAULT_V='$(AM_DEFAULT_VERBOSITY)' | |
2937 | else | |
2938 | AM_V=$AM_DEFAULT_VERBOSITY | |
2939 | AM_DEFAULT_V=$AM_DEFAULT_VERBOSITY | |
2940 | fi | |
2941 | AM_BACKSLASH='\' | |
2942 | ||
2943 | if test "`cd $srcdir && pwd`" != "`pwd`"; then | |
2944 | # Use -I$(srcdir) only when $(srcdir) != ., so that make's output | |
2945 | # is not polluted with repeated "-I." | |
2946 | am__isrc=' -I$(srcdir)' | |
2947 | # test to see if srcdir already configured | |
2948 | if test -f $srcdir/config.status; then | |
2949 | as_fn_error $? "source directory already configured; run \"make distclean\" there first" "$LINENO" 5 | |
2950 | fi | |
2951 | fi | |
2952 | ||
2953 | # test whether we have cygpath | |
2954 | if test -z "$CYGPATH_W"; then | |
2955 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
2956 | CYGPATH_W='cygpath -w' | |
2957 | else | |
2958 | CYGPATH_W=echo | |
2959 | fi | |
2960 | fi | |
2961 | ||
2962 | ||
2963 | # Define the identity of the package. | |
2964 | PACKAGE='smartmontools' | |
ff28b140 | 2965 | VERSION='7.0' |
f9e10201 JD |
2966 | |
2967 | ||
2968 | cat >>confdefs.h <<_ACEOF | |
2969 | #define PACKAGE "$PACKAGE" | |
2970 | _ACEOF | |
2971 | ||
2972 | ||
2973 | cat >>confdefs.h <<_ACEOF | |
2974 | #define VERSION "$VERSION" | |
2975 | _ACEOF | |
2976 | ||
2977 | # Some tools Automake needs. | |
2978 | ||
2979 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
2980 | ||
2981 | ||
2982 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
2983 | ||
2984 | ||
2985 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
2986 | ||
2987 | ||
2988 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
2989 | ||
2990 | ||
2991 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
2992 | ||
2993 | # For better backward compatibility. To be removed once Automake 1.9.x | |
2994 | # dies out for good. For more background, see: | |
2995 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00001.html> | |
2996 | # <http://lists.gnu.org/archive/html/automake/2012-07/msg00014.html> | |
2997 | mkdir_p='$(MKDIR_P)' | |
2998 | ||
2999 | # We need awk for the "check" target (and possibly the TAP driver). The | |
3000 | # system "awk" is bad on some platforms. | |
3001 | # Always define AMTAR for backward compatibility. Yes, it's still used | |
3002 | # in the wild :-( We should find a proper way to deprecate it ... | |
3003 | AMTAR='$${TAR-tar}' | |
3004 | ||
3005 | ||
3006 | # We'll loop over all known methods to create a tar archive until one works. | |
3007 | _am_tools='gnutar pax cpio none' | |
3008 | ||
3009 | am__tar='$${TAR-tar} chof - "$$tardir"' am__untar='$${TAR-tar} xf -' | |
3010 | ||
3011 | ||
3012 | ||
3013 | ||
3014 | ||
3015 | ||
3016 | # POSIX will say in a future version that running "rm -f" with no argument | |
3017 | # is OK; and we want to be able to make that assumption in our Makefile | |
3018 | # recipes. So use an aggressive probe to check that the usage we want is | |
3019 | # actually supported "in the wild" to an acceptable degree. | |
3020 | # See automake bug#10828. | |
3021 | # To make any issue more visible, cause the running configure to be aborted | |
3022 | # by default if the 'rm' program in use doesn't match our expectations; the | |
3023 | # user can still override this though. | |
3024 | if rm -f && rm -fr && rm -rf; then : OK; else | |
3025 | cat >&2 <<'END' | |
3026 | Oops! | |
3027 | ||
3028 | Your 'rm' program seems unable to run without file operands specified | |
3029 | on the command line, even when the '-f' option is present. This is contrary | |
3030 | to the behaviour of most rm programs out there, and not conforming with | |
3031 | the upcoming POSIX standard: <http://austingroupbugs.net/view.php?id=542> | |
3032 | ||
3033 | Please tell bug-automake@gnu.org about your system, including the value | |
3034 | of your $PATH and any error possibly output before this message. This | |
3035 | can help us improve future automake versions. | |
3036 | ||
3037 | END | |
3038 | if test x"$ACCEPT_INFERIOR_RM_PROGRAM" = x"yes"; then | |
3039 | echo 'Configuration will proceed anyway, since you have set the' >&2 | |
3040 | echo 'ACCEPT_INFERIOR_RM_PROGRAM variable to "yes"' >&2 | |
3041 | echo >&2 | |
3042 | else | |
3043 | cat >&2 <<'END' | |
3044 | Aborting the configuration process, to ensure you take notice of the issue. | |
3045 | ||
3046 | You can download and install GNU coreutils to get an 'rm' implementation | |
3047 | that behaves properly: <http://www.gnu.org/software/coreutils/>. | |
3048 | ||
3049 | If you want to complete the configuration process using your problematic | |
3050 | 'rm' anyway, export the environment variable ACCEPT_INFERIOR_RM_PROGRAM | |
3051 | to "yes", and re-run configure. | |
3052 | ||
3053 | END | |
3054 | as_fn_error $? "Your 'rm' program is bad, sorry." "$LINENO" 5 | |
3055 | fi | |
3056 | fi | |
3057 | ||
3058 | ||
ff28b140 TL |
3059 | # Version of drive database branch |
3060 | smartmontools_drivedb_version=7.0 | |
3061 | ||
3062 | smartmontools_cvs_tag=`echo '$Id: configure.ac 4883 2018-12-30 14:48:54Z chrfranke $'` | |
3063 | smartmontools_release_date=2018-12-30 | |
3064 | smartmontools_release_time="14:47:55 UTC" | |
f9e10201 JD |
3065 | |
3066 | ||
3067 | cat >>confdefs.h <<_ACEOF | |
3068 | #define SMARTMONTOOLS_CONFIGURE_ARGS "$ac_configure_args" | |
3069 | _ACEOF | |
3070 | ||
3071 | ||
3072 | cat >>confdefs.h <<_ACEOF | |
3073 | #define SMARTMONTOOLS_RELEASE_DATE "$smartmontools_release_date" | |
3074 | _ACEOF | |
3075 | ||
3076 | ||
3077 | cat >>confdefs.h <<_ACEOF | |
3078 | #define SMARTMONTOOLS_RELEASE_TIME "$smartmontools_release_time" | |
3079 | _ACEOF | |
3080 | ||
3081 | ||
3082 | cat >>confdefs.h <<_ACEOF | |
3083 | #define CONFIG_H_CVSID "$smartmontools_cvs_tag" | |
3084 | _ACEOF | |
3085 | ||
3086 | ||
3087 | cat >>confdefs.h <<_ACEOF | |
ff28b140 | 3088 | #define PACKAGE_HOMEPAGE "https://www.smartmontools.org/" |
f9e10201 JD |
3089 | _ACEOF |
3090 | ||
3091 | ||
3092 | ||
3093 | ac_config_headers="$ac_config_headers config.h" | |
3094 | ||
3095 | ||
3096 | ||
3097 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether to enable maintainer-specific portions of Makefiles" >&5 | |
3098 | $as_echo_n "checking whether to enable maintainer-specific portions of Makefiles... " >&6; } | |
3099 | # Check whether --enable-maintainer-mode was given. | |
3100 | if test "${enable_maintainer_mode+set}" = set; then : | |
3101 | enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval | |
3102 | else | |
3103 | USE_MAINTAINER_MODE=no | |
3104 | fi | |
3105 | ||
3106 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $USE_MAINTAINER_MODE" >&5 | |
3107 | $as_echo "$USE_MAINTAINER_MODE" >&6; } | |
3108 | if test $USE_MAINTAINER_MODE = yes; then | |
3109 | MAINTAINER_MODE_TRUE= | |
3110 | MAINTAINER_MODE_FALSE='#' | |
3111 | else | |
3112 | MAINTAINER_MODE_TRUE='#' | |
3113 | MAINTAINER_MODE_FALSE= | |
3114 | fi | |
3115 | ||
3116 | MAINT=$MAINTAINER_MODE_TRUE | |
3117 | ||
3118 | ||
3119 | ||
3120 | ac_ext=cpp | |
3121 | ac_cpp='$CXXCPP $CPPFLAGS' | |
3122 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3123 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3124 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
3125 | ||
3126 | ac_ext=cpp | |
3127 | ac_cpp='$CXXCPP $CPPFLAGS' | |
3128 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3129 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3130 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
3131 | if test -z "$CXX"; then | |
3132 | if test -n "$CCC"; then | |
3133 | CXX=$CCC | |
3134 | else | |
3135 | if test -n "$ac_tool_prefix"; then | |
3136 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
3137 | do | |
3138 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
3139 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
3140 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3141 | $as_echo_n "checking for $ac_word... " >&6; } | |
3142 | if ${ac_cv_prog_CXX+:} false; then : | |
3143 | $as_echo_n "(cached) " >&6 | |
3144 | else | |
3145 | if test -n "$CXX"; then | |
3146 | ac_cv_prog_CXX="$CXX" # Let the user override the test. | |
3147 | else | |
3148 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3149 | for as_dir in $PATH | |
3150 | do | |
3151 | IFS=$as_save_IFS | |
3152 | test -z "$as_dir" && as_dir=. | |
3153 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3154 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3155 | ac_cv_prog_CXX="$ac_tool_prefix$ac_prog" | |
3156 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3157 | break 2 | |
3158 | fi | |
3159 | done | |
3160 | done | |
3161 | IFS=$as_save_IFS | |
3162 | ||
3163 | fi | |
3164 | fi | |
3165 | CXX=$ac_cv_prog_CXX | |
3166 | if test -n "$CXX"; then | |
3167 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXX" >&5 | |
3168 | $as_echo "$CXX" >&6; } | |
3169 | else | |
3170 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3171 | $as_echo "no" >&6; } | |
3172 | fi | |
3173 | ||
3174 | ||
3175 | test -n "$CXX" && break | |
3176 | done | |
3177 | fi | |
3178 | if test -z "$CXX"; then | |
3179 | ac_ct_CXX=$CXX | |
3180 | for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC | |
3181 | do | |
3182 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
3183 | set dummy $ac_prog; ac_word=$2 | |
3184 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3185 | $as_echo_n "checking for $ac_word... " >&6; } | |
3186 | if ${ac_cv_prog_ac_ct_CXX+:} false; then : | |
3187 | $as_echo_n "(cached) " >&6 | |
3188 | else | |
3189 | if test -n "$ac_ct_CXX"; then | |
3190 | ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test. | |
3191 | else | |
3192 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3193 | for as_dir in $PATH | |
3194 | do | |
3195 | IFS=$as_save_IFS | |
3196 | test -z "$as_dir" && as_dir=. | |
3197 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3198 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3199 | ac_cv_prog_ac_ct_CXX="$ac_prog" | |
3200 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3201 | break 2 | |
3202 | fi | |
3203 | done | |
3204 | done | |
3205 | IFS=$as_save_IFS | |
3206 | ||
3207 | fi | |
3208 | fi | |
3209 | ac_ct_CXX=$ac_cv_prog_ac_ct_CXX | |
3210 | if test -n "$ac_ct_CXX"; then | |
3211 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CXX" >&5 | |
3212 | $as_echo "$ac_ct_CXX" >&6; } | |
3213 | else | |
3214 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3215 | $as_echo "no" >&6; } | |
3216 | fi | |
3217 | ||
3218 | ||
3219 | test -n "$ac_ct_CXX" && break | |
3220 | done | |
3221 | ||
3222 | if test "x$ac_ct_CXX" = x; then | |
3223 | CXX="g++" | |
3224 | else | |
3225 | case $cross_compiling:$ac_tool_warned in | |
3226 | yes:) | |
3227 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3228 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3229 | ac_tool_warned=yes ;; | |
3230 | esac | |
3231 | CXX=$ac_ct_CXX | |
3232 | fi | |
3233 | fi | |
3234 | ||
3235 | fi | |
3236 | fi | |
3237 | # Provide some information about the compiler. | |
3238 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler version" >&5 | |
3239 | set X $ac_compile | |
3240 | ac_compiler=$2 | |
3241 | for ac_option in --version -v -V -qversion; do | |
3242 | { { ac_try="$ac_compiler $ac_option >&5" | |
3243 | case "(($ac_try" in | |
3244 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3245 | *) ac_try_echo=$ac_try;; | |
3246 | esac | |
3247 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3248 | $as_echo "$ac_try_echo"; } >&5 | |
3249 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
3250 | ac_status=$? | |
3251 | if test -s conftest.err; then | |
3252 | sed '10a\ | |
3253 | ... rest of stderr output deleted ... | |
3254 | 10q' conftest.err >conftest.er1 | |
3255 | cat conftest.er1 >&5 | |
3256 | fi | |
3257 | rm -f conftest.er1 conftest.err | |
3258 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3259 | test $ac_status = 0; } | |
3260 | done | |
3261 | ||
3262 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3263 | /* end confdefs.h. */ | |
3264 | ||
3265 | int | |
3266 | main () | |
3267 | { | |
3268 | ||
3269 | ; | |
3270 | return 0; | |
3271 | } | |
3272 | _ACEOF | |
3273 | ac_clean_files_save=$ac_clean_files | |
3274 | ac_clean_files="$ac_clean_files a.out a.out.dSYM a.exe b.out" | |
3275 | # Try to create an executable without -o first, disregard a.out. | |
3276 | # It will help us diagnose broken compilers, and finding out an intuition | |
3277 | # of exeext. | |
3278 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether the C++ compiler works" >&5 | |
3279 | $as_echo_n "checking whether the C++ compiler works... " >&6; } | |
3280 | ac_link_default=`$as_echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
3281 | ||
3282 | # The possible output files: | |
3283 | ac_files="a.out conftest.exe conftest a.exe a_out.exe b.out conftest.*" | |
3284 | ||
3285 | ac_rmfiles= | |
3286 | for ac_file in $ac_files | |
3287 | do | |
3288 | case $ac_file in | |
3289 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3290 | * ) ac_rmfiles="$ac_rmfiles $ac_file";; | |
3291 | esac | |
3292 | done | |
3293 | rm -f $ac_rmfiles | |
3294 | ||
3295 | if { { ac_try="$ac_link_default" | |
3296 | case "(($ac_try" in | |
3297 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3298 | *) ac_try_echo=$ac_try;; | |
3299 | esac | |
3300 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3301 | $as_echo "$ac_try_echo"; } >&5 | |
3302 | (eval "$ac_link_default") 2>&5 | |
3303 | ac_status=$? | |
3304 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3305 | test $ac_status = 0; }; then : | |
3306 | # Autoconf-2.13 could set the ac_cv_exeext variable to `no'. | |
3307 | # So ignore a value of `no', otherwise this would lead to `EXEEXT = no' | |
3308 | # in a Makefile. We should not override ac_cv_exeext if it was cached, | |
3309 | # so that the user can short-circuit this test for compilers unknown to | |
3310 | # Autoconf. | |
3311 | for ac_file in $ac_files '' | |
3312 | do | |
3313 | test -f "$ac_file" || continue | |
3314 | case $ac_file in | |
3315 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) | |
3316 | ;; | |
3317 | [ab].out ) | |
3318 | # We found the default executable, but exeext='' is most | |
3319 | # certainly right. | |
3320 | break;; | |
3321 | *.* ) | |
3322 | if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no; | |
3323 | then :; else | |
3324 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3325 | fi | |
3326 | # We set ac_cv_exeext here because the later test for it is not | |
3327 | # safe: cross compilers may not add the suffix if given an `-o' | |
3328 | # argument, so we may need to know it at that point already. | |
3329 | # Even if this section looks crufty: it has the advantage of | |
3330 | # actually working. | |
3331 | break;; | |
3332 | * ) | |
3333 | break;; | |
3334 | esac | |
3335 | done | |
3336 | test "$ac_cv_exeext" = no && ac_cv_exeext= | |
3337 | ||
3338 | else | |
3339 | ac_file='' | |
3340 | fi | |
3341 | if test -z "$ac_file"; then : | |
3342 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3343 | $as_echo "no" >&6; } | |
3344 | $as_echo "$as_me: failed program was:" >&5 | |
3345 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3346 | ||
3347 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3348 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3349 | as_fn_error 77 "C++ compiler cannot create executables | |
3350 | See \`config.log' for more details" "$LINENO" 5; } | |
3351 | else | |
3352 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
3353 | $as_echo "yes" >&6; } | |
3354 | fi | |
3355 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for C++ compiler default output file name" >&5 | |
3356 | $as_echo_n "checking for C++ compiler default output file name... " >&6; } | |
3357 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_file" >&5 | |
3358 | $as_echo "$ac_file" >&6; } | |
3359 | ac_exeext=$ac_cv_exeext | |
3360 | ||
3361 | rm -f -r a.out a.out.dSYM a.exe conftest$ac_cv_exeext b.out | |
3362 | ac_clean_files=$ac_clean_files_save | |
3363 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of executables" >&5 | |
3364 | $as_echo_n "checking for suffix of executables... " >&6; } | |
3365 | if { { ac_try="$ac_link" | |
3366 | case "(($ac_try" in | |
3367 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3368 | *) ac_try_echo=$ac_try;; | |
3369 | esac | |
3370 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3371 | $as_echo "$ac_try_echo"; } >&5 | |
3372 | (eval "$ac_link") 2>&5 | |
3373 | ac_status=$? | |
3374 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3375 | test $ac_status = 0; }; then : | |
3376 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
3377 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
3378 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
3379 | # `rm'. | |
3380 | for ac_file in conftest.exe conftest conftest.*; do | |
3381 | test -f "$ac_file" || continue | |
3382 | case $ac_file in | |
3383 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM | *.o | *.obj ) ;; | |
3384 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
3385 | break;; | |
3386 | * ) break;; | |
3387 | esac | |
3388 | done | |
3389 | else | |
3390 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3391 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3392 | as_fn_error $? "cannot compute suffix of executables: cannot compile and link | |
3393 | See \`config.log' for more details" "$LINENO" 5; } | |
3394 | fi | |
3395 | rm -f conftest conftest$ac_cv_exeext | |
3396 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_exeext" >&5 | |
3397 | $as_echo "$ac_cv_exeext" >&6; } | |
3398 | ||
3399 | rm -f conftest.$ac_ext | |
3400 | EXEEXT=$ac_cv_exeext | |
3401 | ac_exeext=$EXEEXT | |
3402 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3403 | /* end confdefs.h. */ | |
3404 | #include <stdio.h> | |
3405 | int | |
3406 | main () | |
3407 | { | |
3408 | FILE *f = fopen ("conftest.out", "w"); | |
3409 | return ferror (f) || fclose (f) != 0; | |
3410 | ||
3411 | ; | |
3412 | return 0; | |
3413 | } | |
3414 | _ACEOF | |
3415 | ac_clean_files="$ac_clean_files conftest.out" | |
3416 | # Check that the compiler produces executables we can run. If not, either | |
3417 | # the compiler is broken, or we cross compile. | |
3418 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are cross compiling" >&5 | |
3419 | $as_echo_n "checking whether we are cross compiling... " >&6; } | |
3420 | if test "$cross_compiling" != yes; then | |
3421 | { { ac_try="$ac_link" | |
3422 | case "(($ac_try" in | |
3423 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3424 | *) ac_try_echo=$ac_try;; | |
3425 | esac | |
3426 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3427 | $as_echo "$ac_try_echo"; } >&5 | |
3428 | (eval "$ac_link") 2>&5 | |
3429 | ac_status=$? | |
3430 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3431 | test $ac_status = 0; } | |
3432 | if { ac_try='./conftest$ac_cv_exeext' | |
3433 | { { case "(($ac_try" in | |
3434 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3435 | *) ac_try_echo=$ac_try;; | |
3436 | esac | |
3437 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3438 | $as_echo "$ac_try_echo"; } >&5 | |
3439 | (eval "$ac_try") 2>&5 | |
3440 | ac_status=$? | |
3441 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3442 | test $ac_status = 0; }; }; then | |
3443 | cross_compiling=no | |
3444 | else | |
3445 | if test "$cross_compiling" = maybe; then | |
3446 | cross_compiling=yes | |
3447 | else | |
3448 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3449 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3450 | as_fn_error $? "cannot run C++ compiled programs. | |
3451 | If you meant to cross compile, use \`--host'. | |
3452 | See \`config.log' for more details" "$LINENO" 5; } | |
3453 | fi | |
3454 | fi | |
3455 | fi | |
3456 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cross_compiling" >&5 | |
3457 | $as_echo "$cross_compiling" >&6; } | |
3458 | ||
3459 | rm -f conftest.$ac_ext conftest$ac_cv_exeext conftest.out | |
3460 | ac_clean_files=$ac_clean_files_save | |
3461 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for suffix of object files" >&5 | |
3462 | $as_echo_n "checking for suffix of object files... " >&6; } | |
3463 | if ${ac_cv_objext+:} false; then : | |
3464 | $as_echo_n "(cached) " >&6 | |
3465 | else | |
3466 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3467 | /* end confdefs.h. */ | |
3468 | ||
3469 | int | |
3470 | main () | |
3471 | { | |
3472 | ||
3473 | ; | |
3474 | return 0; | |
3475 | } | |
3476 | _ACEOF | |
3477 | rm -f conftest.o conftest.obj | |
3478 | if { { ac_try="$ac_compile" | |
3479 | case "(($ac_try" in | |
3480 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
3481 | *) ac_try_echo=$ac_try;; | |
3482 | esac | |
3483 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
3484 | $as_echo "$ac_try_echo"; } >&5 | |
3485 | (eval "$ac_compile") 2>&5 | |
3486 | ac_status=$? | |
3487 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
3488 | test $ac_status = 0; }; then : | |
3489 | for ac_file in conftest.o conftest.obj conftest.*; do | |
3490 | test -f "$ac_file" || continue; | |
3491 | case $ac_file in | |
3492 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.dSYM ) ;; | |
3493 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
3494 | break;; | |
3495 | esac | |
3496 | done | |
3497 | else | |
3498 | $as_echo "$as_me: failed program was:" >&5 | |
3499 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3500 | ||
3501 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
3502 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
3503 | as_fn_error $? "cannot compute suffix of object files: cannot compile | |
3504 | See \`config.log' for more details" "$LINENO" 5; } | |
3505 | fi | |
3506 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
3507 | fi | |
3508 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_objext" >&5 | |
3509 | $as_echo "$ac_cv_objext" >&6; } | |
3510 | OBJEXT=$ac_cv_objext | |
3511 | ac_objext=$OBJEXT | |
3512 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C++ compiler" >&5 | |
3513 | $as_echo_n "checking whether we are using the GNU C++ compiler... " >&6; } | |
3514 | if ${ac_cv_cxx_compiler_gnu+:} false; then : | |
3515 | $as_echo_n "(cached) " >&6 | |
3516 | else | |
3517 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3518 | /* end confdefs.h. */ | |
3519 | ||
3520 | int | |
3521 | main () | |
3522 | { | |
3523 | #ifndef __GNUC__ | |
3524 | choke me | |
3525 | #endif | |
3526 | ||
3527 | ; | |
3528 | return 0; | |
3529 | } | |
3530 | _ACEOF | |
3531 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
3532 | ac_compiler_gnu=yes | |
3533 | else | |
3534 | ac_compiler_gnu=no | |
3535 | fi | |
3536 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3537 | ac_cv_cxx_compiler_gnu=$ac_compiler_gnu | |
3538 | ||
3539 | fi | |
3540 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_cxx_compiler_gnu" >&5 | |
3541 | $as_echo "$ac_cv_cxx_compiler_gnu" >&6; } | |
3542 | if test $ac_compiler_gnu = yes; then | |
3543 | GXX=yes | |
3544 | else | |
3545 | GXX= | |
3546 | fi | |
3547 | ac_test_CXXFLAGS=${CXXFLAGS+set} | |
3548 | ac_save_CXXFLAGS=$CXXFLAGS | |
3549 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX accepts -g" >&5 | |
3550 | $as_echo_n "checking whether $CXX accepts -g... " >&6; } | |
3551 | if ${ac_cv_prog_cxx_g+:} false; then : | |
3552 | $as_echo_n "(cached) " >&6 | |
3553 | else | |
3554 | ac_save_cxx_werror_flag=$ac_cxx_werror_flag | |
3555 | ac_cxx_werror_flag=yes | |
3556 | ac_cv_prog_cxx_g=no | |
3557 | CXXFLAGS="-g" | |
3558 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3559 | /* end confdefs.h. */ | |
3560 | ||
3561 | int | |
3562 | main () | |
3563 | { | |
3564 | ||
3565 | ; | |
3566 | return 0; | |
3567 | } | |
3568 | _ACEOF | |
3569 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
3570 | ac_cv_prog_cxx_g=yes | |
3571 | else | |
3572 | CXXFLAGS="" | |
3573 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3574 | /* end confdefs.h. */ | |
3575 | ||
3576 | int | |
3577 | main () | |
3578 | { | |
3579 | ||
3580 | ; | |
3581 | return 0; | |
3582 | } | |
3583 | _ACEOF | |
3584 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
3585 | ||
3586 | else | |
3587 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
3588 | CXXFLAGS="-g" | |
3589 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
3590 | /* end confdefs.h. */ | |
3591 | ||
3592 | int | |
3593 | main () | |
3594 | { | |
3595 | ||
3596 | ; | |
3597 | return 0; | |
3598 | } | |
3599 | _ACEOF | |
3600 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
3601 | ac_cv_prog_cxx_g=yes | |
3602 | fi | |
3603 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3604 | fi | |
3605 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3606 | fi | |
3607 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
3608 | ac_cxx_werror_flag=$ac_save_cxx_werror_flag | |
3609 | fi | |
3610 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cxx_g" >&5 | |
3611 | $as_echo "$ac_cv_prog_cxx_g" >&6; } | |
3612 | if test "$ac_test_CXXFLAGS" = set; then | |
3613 | CXXFLAGS=$ac_save_CXXFLAGS | |
3614 | elif test $ac_cv_prog_cxx_g = yes; then | |
3615 | if test "$GXX" = yes; then | |
3616 | CXXFLAGS="-g -O2" | |
3617 | else | |
3618 | CXXFLAGS="-g" | |
3619 | fi | |
3620 | else | |
3621 | if test "$GXX" = yes; then | |
3622 | CXXFLAGS="-O2" | |
3623 | else | |
3624 | CXXFLAGS= | |
3625 | fi | |
3626 | fi | |
3627 | ac_ext=cpp | |
3628 | ac_cpp='$CXXCPP $CPPFLAGS' | |
3629 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3630 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3631 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
3632 | DEPDIR="${am__leading_dot}deps" | |
3633 | ||
3634 | ac_config_commands="$ac_config_commands depfiles" | |
3635 | ||
3636 | ||
3637 | am_make=${MAKE-make} | |
3638 | cat > confinc << 'END' | |
3639 | am__doit: | |
3640 | @echo this is the am__doit target | |
3641 | .PHONY: am__doit | |
3642 | END | |
3643 | # If we don't find an include directive, just comment out the code. | |
3644 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for style of include used by $am_make" >&5 | |
3645 | $as_echo_n "checking for style of include used by $am_make... " >&6; } | |
3646 | am__include="#" | |
3647 | am__quote= | |
3648 | _am_result=none | |
3649 | # First try GNU make style include. | |
3650 | echo "include confinc" > confmf | |
3651 | # Ignore all kinds of additional output from 'make'. | |
3652 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
3653 | *the\ am__doit\ target*) | |
3654 | am__include=include | |
3655 | am__quote= | |
3656 | _am_result=GNU | |
3657 | ;; | |
3658 | esac | |
3659 | # Now try BSD make style include. | |
3660 | if test "$am__include" = "#"; then | |
3661 | echo '.include "confinc"' > confmf | |
3662 | case `$am_make -s -f confmf 2> /dev/null` in #( | |
3663 | *the\ am__doit\ target*) | |
3664 | am__include=.include | |
3665 | am__quote="\"" | |
3666 | _am_result=BSD | |
3667 | ;; | |
3668 | esac | |
3669 | fi | |
3670 | ||
3671 | ||
3672 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $_am_result" >&5 | |
3673 | $as_echo "$_am_result" >&6; } | |
3674 | rm -f confinc confmf | |
3675 | ||
3676 | # Check whether --enable-dependency-tracking was given. | |
3677 | if test "${enable_dependency_tracking+set}" = set; then : | |
3678 | enableval=$enable_dependency_tracking; | |
3679 | fi | |
3680 | ||
3681 | if test "x$enable_dependency_tracking" != xno; then | |
3682 | am_depcomp="$ac_aux_dir/depcomp" | |
3683 | AMDEPBACKSLASH='\' | |
3684 | am__nodep='_no' | |
3685 | fi | |
3686 | if test "x$enable_dependency_tracking" != xno; then | |
3687 | AMDEP_TRUE= | |
3688 | AMDEP_FALSE='#' | |
3689 | else | |
3690 | AMDEP_TRUE='#' | |
3691 | AMDEP_FALSE= | |
3692 | fi | |
3693 | ||
3694 | ||
3695 | ||
3696 | depcc="$CXX" am_compiler_list= | |
3697 | ||
3698 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | |
3699 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
3700 | if ${am_cv_CXX_dependencies_compiler_type+:} false; then : | |
3701 | $as_echo_n "(cached) " >&6 | |
3702 | else | |
3703 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
3704 | # We make a subdir and do the tests there. Otherwise we can end up | |
3705 | # making bogus files that we don't know about and never remove. For | |
3706 | # instance it was reported that on HP-UX the gcc test will end up | |
3707 | # making a dummy file named 'D' -- because '-MD' means "put the output | |
3708 | # in D". | |
3709 | rm -rf conftest.dir | |
3710 | mkdir conftest.dir | |
3711 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
3712 | # using a relative directory. | |
3713 | cp "$am_depcomp" conftest.dir | |
3714 | cd conftest.dir | |
3715 | # We will build objects and dependencies in a subdirectory because | |
3716 | # it helps to detect inapplicable dependency modes. For instance | |
3717 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
3718 | # side effect of compilation, but ICC will put the dependencies in | |
3719 | # the current directory while Tru64 will put them in the object | |
3720 | # directory. | |
3721 | mkdir sub | |
3722 | ||
3723 | am_cv_CXX_dependencies_compiler_type=none | |
3724 | if test "$am_compiler_list" = ""; then | |
3725 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
3726 | fi | |
3727 | am__universal=false | |
3728 | case " $depcc " in #( | |
3729 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
3730 | esac | |
3731 | ||
3732 | for depmode in $am_compiler_list; do | |
3733 | # Setup a source with many dependencies, because some compilers | |
3734 | # like to wrap large dependency lists on column 80 (with \), and | |
3735 | # we should not choose a depcomp mode which is confused by this. | |
3736 | # | |
3737 | # We need to recreate these files for each test, as the compiler may | |
3738 | # overwrite some of them when testing with obscure command lines. | |
3739 | # This happens at least with the AIX C compiler. | |
3740 | : > sub/conftest.c | |
3741 | for i in 1 2 3 4 5 6; do | |
3742 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
3743 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with | |
3744 | # Solaris 10 /bin/sh. | |
3745 | echo '/* dummy */' > sub/conftst$i.h | |
3746 | done | |
3747 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
3748 | ||
3749 | # We check with '-c' and '-o' for the sake of the "dashmstdout" | |
3750 | # mode. It turns out that the SunPro C++ compiler does not properly | |
3751 | # handle '-M -o', and we need to detect this. Also, some Intel | |
3752 | # versions had trouble with output in subdirs. | |
3753 | am__obj=sub/conftest.${OBJEXT-o} | |
3754 | am__minus_obj="-o $am__obj" | |
3755 | case $depmode in | |
3756 | gcc) | |
3757 | # This depmode causes a compiler race in universal mode. | |
3758 | test "$am__universal" = false || continue | |
3759 | ;; | |
3760 | nosideeffect) | |
3761 | # After this tag, mechanisms are not by side-effect, so they'll | |
3762 | # only be used when explicitly requested. | |
3763 | if test "x$enable_dependency_tracking" = xyes; then | |
3764 | continue | |
3765 | else | |
3766 | break | |
3767 | fi | |
3768 | ;; | |
3769 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) | |
3770 | # This compiler won't grok '-c -o', but also, the minuso test has | |
3771 | # not run yet. These depmodes are late enough in the game, and | |
3772 | # so weak that their functioning should not be impacted. | |
3773 | am__obj=conftest.${OBJEXT-o} | |
3774 | am__minus_obj= | |
3775 | ;; | |
3776 | none) break ;; | |
3777 | esac | |
3778 | if depmode=$depmode \ | |
3779 | source=sub/conftest.c object=$am__obj \ | |
3780 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
3781 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
3782 | >/dev/null 2>conftest.err && | |
3783 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
3784 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
3785 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
3786 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
3787 | # icc doesn't choke on unknown options, it will just issue warnings | |
3788 | # or remarks (even with -Werror). So we grep stderr for any message | |
3789 | # that says an option was ignored or not supported. | |
3790 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
3791 | # icc: Command line warning: ignoring option '-M'; no argument required | |
3792 | # The diagnosis changed in icc 8.0: | |
3793 | # icc: Command line remark: option '-MP' not supported | |
3794 | if (grep 'ignoring option' conftest.err || | |
3795 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
3796 | am_cv_CXX_dependencies_compiler_type=$depmode | |
3797 | break | |
3798 | fi | |
3799 | fi | |
3800 | done | |
3801 | ||
3802 | cd .. | |
3803 | rm -rf conftest.dir | |
3804 | else | |
3805 | am_cv_CXX_dependencies_compiler_type=none | |
3806 | fi | |
3807 | ||
3808 | fi | |
3809 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CXX_dependencies_compiler_type" >&5 | |
3810 | $as_echo "$am_cv_CXX_dependencies_compiler_type" >&6; } | |
3811 | CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type | |
3812 | ||
3813 | if | |
3814 | test "x$enable_dependency_tracking" != xno \ | |
3815 | && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then | |
3816 | am__fastdepCXX_TRUE= | |
3817 | am__fastdepCXX_FALSE='#' | |
3818 | else | |
3819 | am__fastdepCXX_TRUE='#' | |
3820 | am__fastdepCXX_FALSE= | |
3821 | fi | |
3822 | ||
3823 | ||
3824 | ac_ext=c | |
3825 | ac_cpp='$CPP $CPPFLAGS' | |
3826 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3827 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3828 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3829 | if test -n "$ac_tool_prefix"; then | |
3830 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
3831 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
3832 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3833 | $as_echo_n "checking for $ac_word... " >&6; } | |
3834 | if ${ac_cv_prog_CC+:} false; then : | |
3835 | $as_echo_n "(cached) " >&6 | |
3836 | else | |
3837 | if test -n "$CC"; then | |
3838 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3839 | else | |
3840 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3841 | for as_dir in $PATH | |
3842 | do | |
3843 | IFS=$as_save_IFS | |
3844 | test -z "$as_dir" && as_dir=. | |
3845 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3846 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3847 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
3848 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3849 | break 2 | |
3850 | fi | |
3851 | done | |
3852 | done | |
3853 | IFS=$as_save_IFS | |
3854 | ||
3855 | fi | |
3856 | fi | |
3857 | CC=$ac_cv_prog_CC | |
3858 | if test -n "$CC"; then | |
3859 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3860 | $as_echo "$CC" >&6; } | |
3861 | else | |
3862 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3863 | $as_echo "no" >&6; } | |
3864 | fi | |
3865 | ||
3866 | ||
3867 | fi | |
3868 | if test -z "$ac_cv_prog_CC"; then | |
3869 | ac_ct_CC=$CC | |
3870 | # Extract the first word of "gcc", so it can be a program name with args. | |
3871 | set dummy gcc; ac_word=$2 | |
3872 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3873 | $as_echo_n "checking for $ac_word... " >&6; } | |
3874 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | |
3875 | $as_echo_n "(cached) " >&6 | |
3876 | else | |
3877 | if test -n "$ac_ct_CC"; then | |
3878 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
3879 | else | |
3880 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3881 | for as_dir in $PATH | |
3882 | do | |
3883 | IFS=$as_save_IFS | |
3884 | test -z "$as_dir" && as_dir=. | |
3885 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3886 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3887 | ac_cv_prog_ac_ct_CC="gcc" | |
3888 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3889 | break 2 | |
3890 | fi | |
3891 | done | |
3892 | done | |
3893 | IFS=$as_save_IFS | |
3894 | ||
3895 | fi | |
3896 | fi | |
3897 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
3898 | if test -n "$ac_ct_CC"; then | |
3899 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
3900 | $as_echo "$ac_ct_CC" >&6; } | |
3901 | else | |
3902 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3903 | $as_echo "no" >&6; } | |
3904 | fi | |
3905 | ||
3906 | if test "x$ac_ct_CC" = x; then | |
3907 | CC="" | |
3908 | else | |
3909 | case $cross_compiling:$ac_tool_warned in | |
3910 | yes:) | |
3911 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
3912 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
3913 | ac_tool_warned=yes ;; | |
3914 | esac | |
3915 | CC=$ac_ct_CC | |
3916 | fi | |
3917 | else | |
3918 | CC="$ac_cv_prog_CC" | |
3919 | fi | |
3920 | ||
3921 | if test -z "$CC"; then | |
3922 | if test -n "$ac_tool_prefix"; then | |
3923 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
3924 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
3925 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3926 | $as_echo_n "checking for $ac_word... " >&6; } | |
3927 | if ${ac_cv_prog_CC+:} false; then : | |
3928 | $as_echo_n "(cached) " >&6 | |
3929 | else | |
3930 | if test -n "$CC"; then | |
3931 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3932 | else | |
3933 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3934 | for as_dir in $PATH | |
3935 | do | |
3936 | IFS=$as_save_IFS | |
3937 | test -z "$as_dir" && as_dir=. | |
3938 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3939 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3940 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
3941 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3942 | break 2 | |
3943 | fi | |
3944 | done | |
3945 | done | |
3946 | IFS=$as_save_IFS | |
3947 | ||
3948 | fi | |
3949 | fi | |
3950 | CC=$ac_cv_prog_CC | |
3951 | if test -n "$CC"; then | |
3952 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
3953 | $as_echo "$CC" >&6; } | |
3954 | else | |
3955 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
3956 | $as_echo "no" >&6; } | |
3957 | fi | |
3958 | ||
3959 | ||
3960 | fi | |
3961 | fi | |
3962 | if test -z "$CC"; then | |
3963 | # Extract the first word of "cc", so it can be a program name with args. | |
3964 | set dummy cc; ac_word=$2 | |
3965 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
3966 | $as_echo_n "checking for $ac_word... " >&6; } | |
3967 | if ${ac_cv_prog_CC+:} false; then : | |
3968 | $as_echo_n "(cached) " >&6 | |
3969 | else | |
3970 | if test -n "$CC"; then | |
3971 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
3972 | else | |
3973 | ac_prog_rejected=no | |
3974 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
3975 | for as_dir in $PATH | |
3976 | do | |
3977 | IFS=$as_save_IFS | |
3978 | test -z "$as_dir" && as_dir=. | |
3979 | for ac_exec_ext in '' $ac_executable_extensions; do | |
3980 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
3981 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
3982 | ac_prog_rejected=yes | |
3983 | continue | |
3984 | fi | |
3985 | ac_cv_prog_CC="cc" | |
3986 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
3987 | break 2 | |
3988 | fi | |
3989 | done | |
3990 | done | |
3991 | IFS=$as_save_IFS | |
3992 | ||
3993 | if test $ac_prog_rejected = yes; then | |
3994 | # We found a bogon in the path, so make sure we never use it. | |
3995 | set dummy $ac_cv_prog_CC | |
3996 | shift | |
3997 | if test $# != 0; then | |
3998 | # We chose a different compiler from the bogus one. | |
3999 | # However, it has the same basename, so the bogon will be chosen | |
4000 | # first if we set CC to just the basename; use the full file name. | |
4001 | shift | |
4002 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
4003 | fi | |
4004 | fi | |
4005 | fi | |
4006 | fi | |
4007 | CC=$ac_cv_prog_CC | |
4008 | if test -n "$CC"; then | |
4009 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
4010 | $as_echo "$CC" >&6; } | |
4011 | else | |
4012 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4013 | $as_echo "no" >&6; } | |
4014 | fi | |
4015 | ||
4016 | ||
4017 | fi | |
4018 | if test -z "$CC"; then | |
4019 | if test -n "$ac_tool_prefix"; then | |
4020 | for ac_prog in cl.exe | |
4021 | do | |
4022 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
4023 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
4024 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4025 | $as_echo_n "checking for $ac_word... " >&6; } | |
4026 | if ${ac_cv_prog_CC+:} false; then : | |
4027 | $as_echo_n "(cached) " >&6 | |
4028 | else | |
4029 | if test -n "$CC"; then | |
4030 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
4031 | else | |
4032 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4033 | for as_dir in $PATH | |
4034 | do | |
4035 | IFS=$as_save_IFS | |
4036 | test -z "$as_dir" && as_dir=. | |
4037 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4038 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4039 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
4040 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4041 | break 2 | |
4042 | fi | |
4043 | done | |
4044 | done | |
4045 | IFS=$as_save_IFS | |
4046 | ||
4047 | fi | |
4048 | fi | |
4049 | CC=$ac_cv_prog_CC | |
4050 | if test -n "$CC"; then | |
4051 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CC" >&5 | |
4052 | $as_echo "$CC" >&6; } | |
4053 | else | |
4054 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4055 | $as_echo "no" >&6; } | |
4056 | fi | |
4057 | ||
4058 | ||
4059 | test -n "$CC" && break | |
4060 | done | |
4061 | fi | |
4062 | if test -z "$CC"; then | |
4063 | ac_ct_CC=$CC | |
4064 | for ac_prog in cl.exe | |
4065 | do | |
4066 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
4067 | set dummy $ac_prog; ac_word=$2 | |
4068 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4069 | $as_echo_n "checking for $ac_word... " >&6; } | |
4070 | if ${ac_cv_prog_ac_ct_CC+:} false; then : | |
4071 | $as_echo_n "(cached) " >&6 | |
4072 | else | |
4073 | if test -n "$ac_ct_CC"; then | |
4074 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
4075 | else | |
4076 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4077 | for as_dir in $PATH | |
4078 | do | |
4079 | IFS=$as_save_IFS | |
4080 | test -z "$as_dir" && as_dir=. | |
4081 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4082 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4083 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
4084 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4085 | break 2 | |
4086 | fi | |
4087 | done | |
4088 | done | |
4089 | IFS=$as_save_IFS | |
4090 | ||
4091 | fi | |
4092 | fi | |
4093 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
4094 | if test -n "$ac_ct_CC"; then | |
4095 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_CC" >&5 | |
4096 | $as_echo "$ac_ct_CC" >&6; } | |
4097 | else | |
4098 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4099 | $as_echo "no" >&6; } | |
4100 | fi | |
4101 | ||
4102 | ||
4103 | test -n "$ac_ct_CC" && break | |
4104 | done | |
4105 | ||
4106 | if test "x$ac_ct_CC" = x; then | |
4107 | CC="" | |
4108 | else | |
4109 | case $cross_compiling:$ac_tool_warned in | |
4110 | yes:) | |
4111 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4112 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4113 | ac_tool_warned=yes ;; | |
4114 | esac | |
4115 | CC=$ac_ct_CC | |
4116 | fi | |
4117 | fi | |
4118 | ||
4119 | fi | |
4120 | ||
4121 | ||
4122 | test -z "$CC" && { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
4123 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
4124 | as_fn_error $? "no acceptable C compiler found in \$PATH | |
4125 | See \`config.log' for more details" "$LINENO" 5; } | |
4126 | ||
4127 | # Provide some information about the compiler. | |
4128 | $as_echo "$as_me:${as_lineno-$LINENO}: checking for C compiler version" >&5 | |
4129 | set X $ac_compile | |
4130 | ac_compiler=$2 | |
4131 | for ac_option in --version -v -V -qversion; do | |
4132 | { { ac_try="$ac_compiler $ac_option >&5" | |
4133 | case "(($ac_try" in | |
4134 | *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;; | |
4135 | *) ac_try_echo=$ac_try;; | |
4136 | esac | |
4137 | eval ac_try_echo="\"\$as_me:${as_lineno-$LINENO}: $ac_try_echo\"" | |
4138 | $as_echo "$ac_try_echo"; } >&5 | |
4139 | (eval "$ac_compiler $ac_option >&5") 2>conftest.err | |
4140 | ac_status=$? | |
4141 | if test -s conftest.err; then | |
4142 | sed '10a\ | |
4143 | ... rest of stderr output deleted ... | |
4144 | 10q' conftest.err >conftest.er1 | |
4145 | cat conftest.er1 >&5 | |
4146 | fi | |
4147 | rm -f conftest.er1 conftest.err | |
4148 | $as_echo "$as_me:${as_lineno-$LINENO}: \$? = $ac_status" >&5 | |
4149 | test $ac_status = 0; } | |
4150 | done | |
4151 | ||
4152 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether we are using the GNU C compiler" >&5 | |
4153 | $as_echo_n "checking whether we are using the GNU C compiler... " >&6; } | |
4154 | if ${ac_cv_c_compiler_gnu+:} false; then : | |
4155 | $as_echo_n "(cached) " >&6 | |
4156 | else | |
4157 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4158 | /* end confdefs.h. */ | |
4159 | ||
4160 | int | |
4161 | main () | |
4162 | { | |
4163 | #ifndef __GNUC__ | |
4164 | choke me | |
4165 | #endif | |
4166 | ||
4167 | ; | |
4168 | return 0; | |
4169 | } | |
4170 | _ACEOF | |
4171 | if ac_fn_c_try_compile "$LINENO"; then : | |
4172 | ac_compiler_gnu=yes | |
4173 | else | |
4174 | ac_compiler_gnu=no | |
4175 | fi | |
4176 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4177 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
4178 | ||
4179 | fi | |
4180 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_compiler_gnu" >&5 | |
4181 | $as_echo "$ac_cv_c_compiler_gnu" >&6; } | |
4182 | if test $ac_compiler_gnu = yes; then | |
4183 | GCC=yes | |
4184 | else | |
4185 | GCC= | |
4186 | fi | |
4187 | ac_test_CFLAGS=${CFLAGS+set} | |
4188 | ac_save_CFLAGS=$CFLAGS | |
4189 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC accepts -g" >&5 | |
4190 | $as_echo_n "checking whether $CC accepts -g... " >&6; } | |
4191 | if ${ac_cv_prog_cc_g+:} false; then : | |
4192 | $as_echo_n "(cached) " >&6 | |
4193 | else | |
4194 | ac_save_c_werror_flag=$ac_c_werror_flag | |
4195 | ac_c_werror_flag=yes | |
4196 | ac_cv_prog_cc_g=no | |
4197 | CFLAGS="-g" | |
4198 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4199 | /* end confdefs.h. */ | |
4200 | ||
4201 | int | |
4202 | main () | |
4203 | { | |
4204 | ||
4205 | ; | |
4206 | return 0; | |
4207 | } | |
4208 | _ACEOF | |
4209 | if ac_fn_c_try_compile "$LINENO"; then : | |
4210 | ac_cv_prog_cc_g=yes | |
4211 | else | |
4212 | CFLAGS="" | |
4213 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4214 | /* end confdefs.h. */ | |
4215 | ||
4216 | int | |
4217 | main () | |
4218 | { | |
4219 | ||
4220 | ; | |
4221 | return 0; | |
4222 | } | |
4223 | _ACEOF | |
4224 | if ac_fn_c_try_compile "$LINENO"; then : | |
4225 | ||
4226 | else | |
4227 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4228 | CFLAGS="-g" | |
4229 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4230 | /* end confdefs.h. */ | |
4231 | ||
4232 | int | |
4233 | main () | |
4234 | { | |
4235 | ||
4236 | ; | |
4237 | return 0; | |
4238 | } | |
4239 | _ACEOF | |
4240 | if ac_fn_c_try_compile "$LINENO"; then : | |
4241 | ac_cv_prog_cc_g=yes | |
4242 | fi | |
4243 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4244 | fi | |
4245 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4246 | fi | |
4247 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
4248 | ac_c_werror_flag=$ac_save_c_werror_flag | |
4249 | fi | |
4250 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_g" >&5 | |
4251 | $as_echo "$ac_cv_prog_cc_g" >&6; } | |
4252 | if test "$ac_test_CFLAGS" = set; then | |
4253 | CFLAGS=$ac_save_CFLAGS | |
4254 | elif test $ac_cv_prog_cc_g = yes; then | |
4255 | if test "$GCC" = yes; then | |
4256 | CFLAGS="-g -O2" | |
4257 | else | |
4258 | CFLAGS="-g" | |
4259 | fi | |
4260 | else | |
4261 | if test "$GCC" = yes; then | |
4262 | CFLAGS="-O2" | |
4263 | else | |
4264 | CFLAGS= | |
4265 | fi | |
4266 | fi | |
4267 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CC option to accept ISO C89" >&5 | |
4268 | $as_echo_n "checking for $CC option to accept ISO C89... " >&6; } | |
4269 | if ${ac_cv_prog_cc_c89+:} false; then : | |
4270 | $as_echo_n "(cached) " >&6 | |
4271 | else | |
4272 | ac_cv_prog_cc_c89=no | |
4273 | ac_save_CC=$CC | |
4274 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4275 | /* end confdefs.h. */ | |
4276 | #include <stdarg.h> | |
4277 | #include <stdio.h> | |
4278 | struct stat; | |
4279 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
4280 | struct buf { int x; }; | |
4281 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
4282 | static char *e (p, i) | |
4283 | char **p; | |
4284 | int i; | |
4285 | { | |
4286 | return p[i]; | |
4287 | } | |
4288 | static char *f (char * (*g) (char **, int), char **p, ...) | |
4289 | { | |
4290 | char *s; | |
4291 | va_list v; | |
4292 | va_start (v,p); | |
4293 | s = g (p, va_arg (v,int)); | |
4294 | va_end (v); | |
4295 | return s; | |
4296 | } | |
4297 | ||
4298 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
4299 | function prototypes and stuff, but not '\xHH' hex character constants. | |
4300 | These don't provoke an error unfortunately, instead are silently treated | |
4301 | as 'x'. The following induces an error, until -std is added to get | |
4302 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
4303 | array size at least. It's necessary to write '\x00'==0 to get something | |
4304 | that's true only with -std. */ | |
4305 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
4306 | ||
4307 | /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters | |
4308 | inside strings and character constants. */ | |
4309 | #define FOO(x) 'x' | |
4310 | int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1]; | |
4311 | ||
4312 | int test (int i, double x); | |
4313 | struct s1 {int (*f) (int a);}; | |
4314 | struct s2 {int (*f) (double a);}; | |
4315 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
4316 | int argc; | |
4317 | char **argv; | |
4318 | int | |
4319 | main () | |
4320 | { | |
4321 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
4322 | ; | |
4323 | return 0; | |
4324 | } | |
4325 | _ACEOF | |
4326 | for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \ | |
4327 | -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
4328 | do | |
4329 | CC="$ac_save_CC $ac_arg" | |
4330 | if ac_fn_c_try_compile "$LINENO"; then : | |
4331 | ac_cv_prog_cc_c89=$ac_arg | |
4332 | fi | |
4333 | rm -f core conftest.err conftest.$ac_objext | |
4334 | test "x$ac_cv_prog_cc_c89" != "xno" && break | |
4335 | done | |
4336 | rm -f conftest.$ac_ext | |
4337 | CC=$ac_save_CC | |
4338 | ||
4339 | fi | |
4340 | # AC_CACHE_VAL | |
4341 | case "x$ac_cv_prog_cc_c89" in | |
4342 | x) | |
4343 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: none needed" >&5 | |
4344 | $as_echo "none needed" >&6; } ;; | |
4345 | xno) | |
4346 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: unsupported" >&5 | |
4347 | $as_echo "unsupported" >&6; } ;; | |
4348 | *) | |
4349 | CC="$CC $ac_cv_prog_cc_c89" | |
4350 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_prog_cc_c89" >&5 | |
4351 | $as_echo "$ac_cv_prog_cc_c89" >&6; } ;; | |
4352 | esac | |
4353 | if test "x$ac_cv_prog_cc_c89" != xno; then : | |
4354 | ||
4355 | fi | |
4356 | ||
4357 | ac_ext=cpp | |
4358 | ac_cpp='$CXXCPP $CPPFLAGS' | |
4359 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4360 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4361 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
4362 | ||
4363 | ac_ext=c | |
4364 | ac_cpp='$CPP $CPPFLAGS' | |
4365 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4366 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4367 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
4368 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CC understands -c and -o together" >&5 | |
4369 | $as_echo_n "checking whether $CC understands -c and -o together... " >&6; } | |
4370 | if ${am_cv_prog_cc_c_o+:} false; then : | |
4371 | $as_echo_n "(cached) " >&6 | |
4372 | else | |
4373 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
4374 | /* end confdefs.h. */ | |
4375 | ||
4376 | int | |
4377 | main () | |
4378 | { | |
4379 | ||
4380 | ; | |
4381 | return 0; | |
4382 | } | |
4383 | _ACEOF | |
4384 | # Make sure it works both with $CC and with simple cc. | |
4385 | # Following AC_PROG_CC_C_O, we do the test twice because some | |
4386 | # compilers refuse to overwrite an existing .o file with -o, | |
4387 | # though they will create one. | |
4388 | am_cv_prog_cc_c_o=yes | |
4389 | for am_i in 1 2; do | |
4390 | if { echo "$as_me:$LINENO: $CC -c conftest.$ac_ext -o conftest2.$ac_objext" >&5 | |
4391 | ($CC -c conftest.$ac_ext -o conftest2.$ac_objext) >&5 2>&5 | |
4392 | ac_status=$? | |
4393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4394 | (exit $ac_status); } \ | |
4395 | && test -f conftest2.$ac_objext; then | |
4396 | : OK | |
4397 | else | |
4398 | am_cv_prog_cc_c_o=no | |
4399 | break | |
4400 | fi | |
4401 | done | |
4402 | rm -f core conftest* | |
4403 | unset am_i | |
4404 | fi | |
4405 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_prog_cc_c_o" >&5 | |
4406 | $as_echo "$am_cv_prog_cc_c_o" >&6; } | |
4407 | if test "$am_cv_prog_cc_c_o" != yes; then | |
4408 | # Losing compiler, so override with the script. | |
4409 | # FIXME: It is wrong to rewrite CC. | |
4410 | # But if we don't then we get into trouble of one sort or another. | |
4411 | # A longer-term fix would be to have automake use am__CC in this case, | |
4412 | # and then we could set am__CC="\$(top_srcdir)/compile \$(CC)" | |
4413 | CC="$am_aux_dir/compile $CC" | |
4414 | fi | |
4415 | ac_ext=cpp | |
4416 | ac_cpp='$CXXCPP $CPPFLAGS' | |
4417 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
4418 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
4419 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
4420 | ||
4421 | ||
4422 | depcc="$CC" am_compiler_list= | |
4423 | ||
4424 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | |
4425 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
4426 | if ${am_cv_CC_dependencies_compiler_type+:} false; then : | |
4427 | $as_echo_n "(cached) " >&6 | |
4428 | else | |
4429 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
4430 | # We make a subdir and do the tests there. Otherwise we can end up | |
4431 | # making bogus files that we don't know about and never remove. For | |
4432 | # instance it was reported that on HP-UX the gcc test will end up | |
4433 | # making a dummy file named 'D' -- because '-MD' means "put the output | |
4434 | # in D". | |
4435 | rm -rf conftest.dir | |
4436 | mkdir conftest.dir | |
4437 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
4438 | # using a relative directory. | |
4439 | cp "$am_depcomp" conftest.dir | |
4440 | cd conftest.dir | |
4441 | # We will build objects and dependencies in a subdirectory because | |
4442 | # it helps to detect inapplicable dependency modes. For instance | |
4443 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
4444 | # side effect of compilation, but ICC will put the dependencies in | |
4445 | # the current directory while Tru64 will put them in the object | |
4446 | # directory. | |
4447 | mkdir sub | |
4448 | ||
4449 | am_cv_CC_dependencies_compiler_type=none | |
4450 | if test "$am_compiler_list" = ""; then | |
4451 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
4452 | fi | |
4453 | am__universal=false | |
4454 | case " $depcc " in #( | |
4455 | *\ -arch\ *\ -arch\ *) am__universal=true ;; | |
4456 | esac | |
4457 | ||
4458 | for depmode in $am_compiler_list; do | |
4459 | # Setup a source with many dependencies, because some compilers | |
4460 | # like to wrap large dependency lists on column 80 (with \), and | |
4461 | # we should not choose a depcomp mode which is confused by this. | |
4462 | # | |
4463 | # We need to recreate these files for each test, as the compiler may | |
4464 | # overwrite some of them when testing with obscure command lines. | |
4465 | # This happens at least with the AIX C compiler. | |
4466 | : > sub/conftest.c | |
4467 | for i in 1 2 3 4 5 6; do | |
4468 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
4469 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with | |
4470 | # Solaris 10 /bin/sh. | |
4471 | echo '/* dummy */' > sub/conftst$i.h | |
4472 | done | |
4473 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
4474 | ||
4475 | # We check with '-c' and '-o' for the sake of the "dashmstdout" | |
4476 | # mode. It turns out that the SunPro C++ compiler does not properly | |
4477 | # handle '-M -o', and we need to detect this. Also, some Intel | |
4478 | # versions had trouble with output in subdirs. | |
4479 | am__obj=sub/conftest.${OBJEXT-o} | |
4480 | am__minus_obj="-o $am__obj" | |
4481 | case $depmode in | |
4482 | gcc) | |
4483 | # This depmode causes a compiler race in universal mode. | |
4484 | test "$am__universal" = false || continue | |
4485 | ;; | |
4486 | nosideeffect) | |
4487 | # After this tag, mechanisms are not by side-effect, so they'll | |
4488 | # only be used when explicitly requested. | |
4489 | if test "x$enable_dependency_tracking" = xyes; then | |
4490 | continue | |
4491 | else | |
4492 | break | |
4493 | fi | |
4494 | ;; | |
4495 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) | |
4496 | # This compiler won't grok '-c -o', but also, the minuso test has | |
4497 | # not run yet. These depmodes are late enough in the game, and | |
4498 | # so weak that their functioning should not be impacted. | |
4499 | am__obj=conftest.${OBJEXT-o} | |
4500 | am__minus_obj= | |
4501 | ;; | |
4502 | none) break ;; | |
4503 | esac | |
4504 | if depmode=$depmode \ | |
4505 | source=sub/conftest.c object=$am__obj \ | |
4506 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
4507 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
4508 | >/dev/null 2>conftest.err && | |
4509 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
4510 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
4511 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
4512 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
4513 | # icc doesn't choke on unknown options, it will just issue warnings | |
4514 | # or remarks (even with -Werror). So we grep stderr for any message | |
4515 | # that says an option was ignored or not supported. | |
4516 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
4517 | # icc: Command line warning: ignoring option '-M'; no argument required | |
4518 | # The diagnosis changed in icc 8.0: | |
4519 | # icc: Command line remark: option '-MP' not supported | |
4520 | if (grep 'ignoring option' conftest.err || | |
4521 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
4522 | am_cv_CC_dependencies_compiler_type=$depmode | |
4523 | break | |
4524 | fi | |
4525 | fi | |
4526 | done | |
4527 | ||
4528 | cd .. | |
4529 | rm -rf conftest.dir | |
4530 | else | |
4531 | am_cv_CC_dependencies_compiler_type=none | |
4532 | fi | |
4533 | ||
4534 | fi | |
4535 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CC_dependencies_compiler_type" >&5 | |
4536 | $as_echo "$am_cv_CC_dependencies_compiler_type" >&6; } | |
4537 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
4538 | ||
4539 | if | |
4540 | test "x$enable_dependency_tracking" != xno \ | |
4541 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
4542 | am__fastdepCC_TRUE= | |
4543 | am__fastdepCC_FALSE='#' | |
4544 | else | |
4545 | am__fastdepCC_TRUE='#' | |
4546 | am__fastdepCC_FALSE= | |
4547 | fi | |
4548 | ||
4549 | ||
4550 | # By default we simply use the C compiler to build assembly code. | |
4551 | ||
4552 | test "${CCAS+set}" = set || CCAS=$CC | |
4553 | test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS | |
4554 | ||
4555 | ||
4556 | ||
4557 | depcc="$CCAS" am_compiler_list= | |
4558 | ||
4559 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking dependency style of $depcc" >&5 | |
4560 | $as_echo_n "checking dependency style of $depcc... " >&6; } | |
4561 | if ${am_cv_CCAS_dependencies_compiler_type+:} false; then : | |
4562 | $as_echo_n "(cached) " >&6 | |
4563 | else | |
4564 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
4565 | # We make a subdir and do the tests there. Otherwise we can end up | |
4566 | # making bogus files that we don't know about and never remove. For | |
4567 | # instance it was reported that on HP-UX the gcc test will end up | |
4568 | # making a dummy file named 'D' -- because '-MD' means "put the output | |
4569 | # in D". | |
4570 | rm -rf conftest.dir | |
4571 | mkdir conftest.dir | |
4572 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
4573 | # using a relative directory. | |
4574 | cp "$am_depcomp" conftest.dir | |
4575 | cd conftest.dir | |
4576 | # We will build objects and dependencies in a subdirectory because | |
4577 | # it helps to detect inapplicable dependency modes. For instance | |
4578 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
4579 | # side effect of compilation, but ICC will put the dependencies in | |
4580 | # the current directory while Tru64 will put them in the object | |
4581 | # directory. | |
4582 | mkdir sub | |
4583 | ||
4584 | am_cv_CCAS_dependencies_compiler_type=none | |
4585 | if test "$am_compiler_list" = ""; then | |
4586 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
4587 | fi | |
4588 | am__universal=false | |
4589 | ||
4590 | ||
4591 | for depmode in $am_compiler_list; do | |
4592 | # Setup a source with many dependencies, because some compilers | |
4593 | # like to wrap large dependency lists on column 80 (with \), and | |
4594 | # we should not choose a depcomp mode which is confused by this. | |
4595 | # | |
4596 | # We need to recreate these files for each test, as the compiler may | |
4597 | # overwrite some of them when testing with obscure command lines. | |
4598 | # This happens at least with the AIX C compiler. | |
4599 | : > sub/conftest.c | |
4600 | for i in 1 2 3 4 5 6; do | |
4601 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
4602 | # Using ": > sub/conftst$i.h" creates only sub/conftst1.h with | |
4603 | # Solaris 10 /bin/sh. | |
4604 | echo '/* dummy */' > sub/conftst$i.h | |
4605 | done | |
4606 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
4607 | ||
4608 | # We check with '-c' and '-o' for the sake of the "dashmstdout" | |
4609 | # mode. It turns out that the SunPro C++ compiler does not properly | |
4610 | # handle '-M -o', and we need to detect this. Also, some Intel | |
4611 | # versions had trouble with output in subdirs. | |
4612 | am__obj=sub/conftest.${OBJEXT-o} | |
4613 | am__minus_obj="-o $am__obj" | |
4614 | case $depmode in | |
4615 | gcc) | |
4616 | # This depmode causes a compiler race in universal mode. | |
4617 | test "$am__universal" = false || continue | |
4618 | ;; | |
4619 | nosideeffect) | |
4620 | # After this tag, mechanisms are not by side-effect, so they'll | |
4621 | # only be used when explicitly requested. | |
4622 | if test "x$enable_dependency_tracking" = xyes; then | |
4623 | continue | |
4624 | else | |
4625 | break | |
4626 | fi | |
4627 | ;; | |
4628 | msvc7 | msvc7msys | msvisualcpp | msvcmsys) | |
4629 | # This compiler won't grok '-c -o', but also, the minuso test has | |
4630 | # not run yet. These depmodes are late enough in the game, and | |
4631 | # so weak that their functioning should not be impacted. | |
4632 | am__obj=conftest.${OBJEXT-o} | |
4633 | am__minus_obj= | |
4634 | ;; | |
4635 | none) break ;; | |
4636 | esac | |
4637 | if depmode=$depmode \ | |
4638 | source=sub/conftest.c object=$am__obj \ | |
4639 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
4640 | $SHELL ./depcomp $depcc -c $am__minus_obj sub/conftest.c \ | |
4641 | >/dev/null 2>conftest.err && | |
4642 | grep sub/conftst1.h sub/conftest.Po > /dev/null 2>&1 && | |
4643 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
4644 | grep $am__obj sub/conftest.Po > /dev/null 2>&1 && | |
4645 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
4646 | # icc doesn't choke on unknown options, it will just issue warnings | |
4647 | # or remarks (even with -Werror). So we grep stderr for any message | |
4648 | # that says an option was ignored or not supported. | |
4649 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
4650 | # icc: Command line warning: ignoring option '-M'; no argument required | |
4651 | # The diagnosis changed in icc 8.0: | |
4652 | # icc: Command line remark: option '-MP' not supported | |
4653 | if (grep 'ignoring option' conftest.err || | |
4654 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
4655 | am_cv_CCAS_dependencies_compiler_type=$depmode | |
4656 | break | |
4657 | fi | |
4658 | fi | |
4659 | done | |
4660 | ||
4661 | cd .. | |
4662 | rm -rf conftest.dir | |
4663 | else | |
4664 | am_cv_CCAS_dependencies_compiler_type=none | |
4665 | fi | |
4666 | ||
4667 | fi | |
4668 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $am_cv_CCAS_dependencies_compiler_type" >&5 | |
4669 | $as_echo "$am_cv_CCAS_dependencies_compiler_type" >&6; } | |
4670 | CCASDEPMODE=depmode=$am_cv_CCAS_dependencies_compiler_type | |
4671 | ||
4672 | if | |
4673 | test "x$enable_dependency_tracking" != xno \ | |
4674 | && test "$am_cv_CCAS_dependencies_compiler_type" = gcc3; then | |
4675 | am__fastdepCCAS_TRUE= | |
4676 | am__fastdepCCAS_FALSE='#' | |
4677 | else | |
4678 | am__fastdepCCAS_TRUE='#' | |
4679 | am__fastdepCCAS_FALSE= | |
4680 | fi | |
4681 | ||
4682 | ||
4683 | ||
4684 | ||
4685 | ||
4686 | if test "$cross_compiling" = "no"; then | |
4687 | ||
4688 | ||
4689 | ||
4690 | ||
4691 | ||
4692 | ||
4693 | ||
4694 | if test "x$ac_cv_env_PKG_CONFIG_set" != "xset"; then | |
4695 | if test -n "$ac_tool_prefix"; then | |
4696 | # Extract the first word of "${ac_tool_prefix}pkg-config", so it can be a program name with args. | |
4697 | set dummy ${ac_tool_prefix}pkg-config; ac_word=$2 | |
4698 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4699 | $as_echo_n "checking for $ac_word... " >&6; } | |
4700 | if ${ac_cv_path_PKG_CONFIG+:} false; then : | |
4701 | $as_echo_n "(cached) " >&6 | |
4702 | else | |
4703 | case $PKG_CONFIG in | |
4704 | [\\/]* | ?:[\\/]*) | |
4705 | ac_cv_path_PKG_CONFIG="$PKG_CONFIG" # Let the user override the test with a path. | |
4706 | ;; | |
4707 | *) | |
4708 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4709 | for as_dir in $PATH | |
4710 | do | |
4711 | IFS=$as_save_IFS | |
4712 | test -z "$as_dir" && as_dir=. | |
4713 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4714 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4715 | ac_cv_path_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
4716 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4717 | break 2 | |
4718 | fi | |
4719 | done | |
4720 | done | |
4721 | IFS=$as_save_IFS | |
4722 | ||
4723 | ;; | |
4724 | esac | |
4725 | fi | |
4726 | PKG_CONFIG=$ac_cv_path_PKG_CONFIG | |
4727 | if test -n "$PKG_CONFIG"; then | |
4728 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $PKG_CONFIG" >&5 | |
4729 | $as_echo "$PKG_CONFIG" >&6; } | |
4730 | else | |
4731 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4732 | $as_echo "no" >&6; } | |
4733 | fi | |
4734 | ||
4735 | ||
4736 | fi | |
4737 | if test -z "$ac_cv_path_PKG_CONFIG"; then | |
4738 | ac_pt_PKG_CONFIG=$PKG_CONFIG | |
4739 | # Extract the first word of "pkg-config", so it can be a program name with args. | |
4740 | set dummy pkg-config; ac_word=$2 | |
4741 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4742 | $as_echo_n "checking for $ac_word... " >&6; } | |
4743 | if ${ac_cv_path_ac_pt_PKG_CONFIG+:} false; then : | |
4744 | $as_echo_n "(cached) " >&6 | |
4745 | else | |
4746 | case $ac_pt_PKG_CONFIG in | |
4747 | [\\/]* | ?:[\\/]*) | |
4748 | ac_cv_path_ac_pt_PKG_CONFIG="$ac_pt_PKG_CONFIG" # Let the user override the test with a path. | |
4749 | ;; | |
4750 | *) | |
4751 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4752 | for as_dir in $PATH | |
4753 | do | |
4754 | IFS=$as_save_IFS | |
4755 | test -z "$as_dir" && as_dir=. | |
4756 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4757 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4758 | ac_cv_path_ac_pt_PKG_CONFIG="$as_dir/$ac_word$ac_exec_ext" | |
4759 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4760 | break 2 | |
4761 | fi | |
4762 | done | |
4763 | done | |
4764 | IFS=$as_save_IFS | |
4765 | ||
4766 | ;; | |
4767 | esac | |
4768 | fi | |
4769 | ac_pt_PKG_CONFIG=$ac_cv_path_ac_pt_PKG_CONFIG | |
4770 | if test -n "$ac_pt_PKG_CONFIG"; then | |
4771 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_pt_PKG_CONFIG" >&5 | |
4772 | $as_echo "$ac_pt_PKG_CONFIG" >&6; } | |
4773 | else | |
4774 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4775 | $as_echo "no" >&6; } | |
4776 | fi | |
4777 | ||
4778 | if test "x$ac_pt_PKG_CONFIG" = x; then | |
4779 | PKG_CONFIG="" | |
4780 | else | |
4781 | case $cross_compiling:$ac_tool_warned in | |
4782 | yes:) | |
4783 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4784 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4785 | ac_tool_warned=yes ;; | |
4786 | esac | |
4787 | PKG_CONFIG=$ac_pt_PKG_CONFIG | |
4788 | fi | |
4789 | else | |
4790 | PKG_CONFIG="$ac_cv_path_PKG_CONFIG" | |
4791 | fi | |
4792 | ||
4793 | fi | |
4794 | if test -n "$PKG_CONFIG"; then | |
4795 | _pkg_min_version=0.9.0 | |
4796 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking pkg-config is at least version $_pkg_min_version" >&5 | |
4797 | $as_echo_n "checking pkg-config is at least version $_pkg_min_version... " >&6; } | |
4798 | if $PKG_CONFIG --atleast-pkgconfig-version $_pkg_min_version; then | |
4799 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
4800 | $as_echo "yes" >&6; } | |
4801 | else | |
4802 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4803 | $as_echo "no" >&6; } | |
4804 | PKG_CONFIG="" | |
4805 | fi | |
4806 | fi | |
4807 | fi | |
4808 | ||
4809 | ||
4810 | ||
4811 | ||
4812 | ||
4813 | # Make sure we can run config.sub. | |
4814 | $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 || | |
4815 | as_fn_error $? "cannot run $SHELL $ac_aux_dir/config.sub" "$LINENO" 5 | |
4816 | ||
4817 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking build system type" >&5 | |
4818 | $as_echo_n "checking build system type... " >&6; } | |
4819 | if ${ac_cv_build+:} false; then : | |
4820 | $as_echo_n "(cached) " >&6 | |
4821 | else | |
4822 | ac_build_alias=$build_alias | |
4823 | test "x$ac_build_alias" = x && | |
4824 | ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"` | |
4825 | test "x$ac_build_alias" = x && | |
4826 | as_fn_error $? "cannot guess build type; you must specify one" "$LINENO" 5 | |
4827 | ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` || | |
4828 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $ac_build_alias failed" "$LINENO" 5 | |
4829 | ||
4830 | fi | |
4831 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_build" >&5 | |
4832 | $as_echo "$ac_cv_build" >&6; } | |
4833 | case $ac_cv_build in | |
4834 | *-*-*) ;; | |
4835 | *) as_fn_error $? "invalid value of canonical build" "$LINENO" 5;; | |
4836 | esac | |
4837 | build=$ac_cv_build | |
4838 | ac_save_IFS=$IFS; IFS='-' | |
4839 | set x $ac_cv_build | |
4840 | shift | |
4841 | build_cpu=$1 | |
4842 | build_vendor=$2 | |
4843 | shift; shift | |
4844 | # Remember, the first character of IFS is used to create $*, | |
4845 | # except with old shells: | |
4846 | build_os=$* | |
4847 | IFS=$ac_save_IFS | |
4848 | case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac | |
4849 | ||
4850 | ||
4851 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking host system type" >&5 | |
4852 | $as_echo_n "checking host system type... " >&6; } | |
4853 | if ${ac_cv_host+:} false; then : | |
4854 | $as_echo_n "(cached) " >&6 | |
4855 | else | |
4856 | if test "x$host_alias" = x; then | |
4857 | ac_cv_host=$ac_cv_build | |
4858 | else | |
4859 | ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` || | |
4860 | as_fn_error $? "$SHELL $ac_aux_dir/config.sub $host_alias failed" "$LINENO" 5 | |
4861 | fi | |
4862 | ||
4863 | fi | |
4864 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_host" >&5 | |
4865 | $as_echo "$ac_cv_host" >&6; } | |
4866 | case $ac_cv_host in | |
4867 | *-*-*) ;; | |
4868 | *) as_fn_error $? "invalid value of canonical host" "$LINENO" 5;; | |
4869 | esac | |
4870 | host=$ac_cv_host | |
4871 | ac_save_IFS=$IFS; IFS='-' | |
4872 | set x $ac_cv_host | |
4873 | shift | |
4874 | host_cpu=$1 | |
4875 | host_vendor=$2 | |
4876 | shift; shift | |
4877 | # Remember, the first character of IFS is used to create $*, | |
4878 | # except with old shells: | |
4879 | host_os=$* | |
4880 | IFS=$ac_save_IFS | |
4881 | case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac | |
4882 | ||
4883 | ||
4884 | case "${host}" in | |
4885 | *-*-mingw*) | |
4886 | if test -n "$ac_tool_prefix"; then | |
4887 | # Extract the first word of "${ac_tool_prefix}windmc", so it can be a program name with args. | |
4888 | set dummy ${ac_tool_prefix}windmc; ac_word=$2 | |
4889 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4890 | $as_echo_n "checking for $ac_word... " >&6; } | |
4891 | if ${ac_cv_prog_WINDMC+:} false; then : | |
4892 | $as_echo_n "(cached) " >&6 | |
4893 | else | |
4894 | if test -n "$WINDMC"; then | |
4895 | ac_cv_prog_WINDMC="$WINDMC" # Let the user override the test. | |
4896 | else | |
4897 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4898 | for as_dir in $PATH | |
4899 | do | |
4900 | IFS=$as_save_IFS | |
4901 | test -z "$as_dir" && as_dir=. | |
4902 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4903 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4904 | ac_cv_prog_WINDMC="${ac_tool_prefix}windmc" | |
4905 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4906 | break 2 | |
4907 | fi | |
4908 | done | |
4909 | done | |
4910 | IFS=$as_save_IFS | |
4911 | ||
4912 | fi | |
4913 | fi | |
4914 | WINDMC=$ac_cv_prog_WINDMC | |
4915 | if test -n "$WINDMC"; then | |
4916 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDMC" >&5 | |
4917 | $as_echo "$WINDMC" >&6; } | |
4918 | else | |
4919 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4920 | $as_echo "no" >&6; } | |
4921 | fi | |
4922 | ||
4923 | ||
4924 | fi | |
4925 | if test -z "$ac_cv_prog_WINDMC"; then | |
4926 | ac_ct_WINDMC=$WINDMC | |
4927 | # Extract the first word of "windmc", so it can be a program name with args. | |
4928 | set dummy windmc; ac_word=$2 | |
4929 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4930 | $as_echo_n "checking for $ac_word... " >&6; } | |
4931 | if ${ac_cv_prog_ac_ct_WINDMC+:} false; then : | |
4932 | $as_echo_n "(cached) " >&6 | |
4933 | else | |
4934 | if test -n "$ac_ct_WINDMC"; then | |
4935 | ac_cv_prog_ac_ct_WINDMC="$ac_ct_WINDMC" # Let the user override the test. | |
4936 | else | |
4937 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4938 | for as_dir in $PATH | |
4939 | do | |
4940 | IFS=$as_save_IFS | |
4941 | test -z "$as_dir" && as_dir=. | |
4942 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4943 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4944 | ac_cv_prog_ac_ct_WINDMC="windmc" | |
4945 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4946 | break 2 | |
4947 | fi | |
4948 | done | |
4949 | done | |
4950 | IFS=$as_save_IFS | |
4951 | ||
4952 | fi | |
4953 | fi | |
4954 | ac_ct_WINDMC=$ac_cv_prog_ac_ct_WINDMC | |
4955 | if test -n "$ac_ct_WINDMC"; then | |
4956 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDMC" >&5 | |
4957 | $as_echo "$ac_ct_WINDMC" >&6; } | |
4958 | else | |
4959 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
4960 | $as_echo "no" >&6; } | |
4961 | fi | |
4962 | ||
4963 | if test "x$ac_ct_WINDMC" = x; then | |
4964 | WINDMC="" | |
4965 | else | |
4966 | case $cross_compiling:$ac_tool_warned in | |
4967 | yes:) | |
4968 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
4969 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
4970 | ac_tool_warned=yes ;; | |
4971 | esac | |
4972 | WINDMC=$ac_ct_WINDMC | |
4973 | fi | |
4974 | else | |
4975 | WINDMC="$ac_cv_prog_WINDMC" | |
4976 | fi | |
4977 | ||
4978 | if test -n "$ac_tool_prefix"; then | |
4979 | # Extract the first word of "${ac_tool_prefix}windres", so it can be a program name with args. | |
4980 | set dummy ${ac_tool_prefix}windres; ac_word=$2 | |
4981 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
4982 | $as_echo_n "checking for $ac_word... " >&6; } | |
4983 | if ${ac_cv_prog_WINDRES+:} false; then : | |
4984 | $as_echo_n "(cached) " >&6 | |
4985 | else | |
4986 | if test -n "$WINDRES"; then | |
4987 | ac_cv_prog_WINDRES="$WINDRES" # Let the user override the test. | |
4988 | else | |
4989 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
4990 | for as_dir in $PATH | |
4991 | do | |
4992 | IFS=$as_save_IFS | |
4993 | test -z "$as_dir" && as_dir=. | |
4994 | for ac_exec_ext in '' $ac_executable_extensions; do | |
4995 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
4996 | ac_cv_prog_WINDRES="${ac_tool_prefix}windres" | |
4997 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
4998 | break 2 | |
4999 | fi | |
5000 | done | |
5001 | done | |
5002 | IFS=$as_save_IFS | |
5003 | ||
5004 | fi | |
5005 | fi | |
5006 | WINDRES=$ac_cv_prog_WINDRES | |
5007 | if test -n "$WINDRES"; then | |
5008 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $WINDRES" >&5 | |
5009 | $as_echo "$WINDRES" >&6; } | |
5010 | else | |
5011 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5012 | $as_echo "no" >&6; } | |
5013 | fi | |
5014 | ||
5015 | ||
5016 | fi | |
5017 | if test -z "$ac_cv_prog_WINDRES"; then | |
5018 | ac_ct_WINDRES=$WINDRES | |
5019 | # Extract the first word of "windres", so it can be a program name with args. | |
5020 | set dummy windres; ac_word=$2 | |
5021 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $ac_word" >&5 | |
5022 | $as_echo_n "checking for $ac_word... " >&6; } | |
5023 | if ${ac_cv_prog_ac_ct_WINDRES+:} false; then : | |
5024 | $as_echo_n "(cached) " >&6 | |
5025 | else | |
5026 | if test -n "$ac_ct_WINDRES"; then | |
5027 | ac_cv_prog_ac_ct_WINDRES="$ac_ct_WINDRES" # Let the user override the test. | |
5028 | else | |
5029 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5030 | for as_dir in $PATH | |
5031 | do | |
5032 | IFS=$as_save_IFS | |
5033 | test -z "$as_dir" && as_dir=. | |
5034 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5035 | if as_fn_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5036 | ac_cv_prog_ac_ct_WINDRES="windres" | |
5037 | $as_echo "$as_me:${as_lineno-$LINENO}: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5038 | break 2 | |
5039 | fi | |
5040 | done | |
5041 | done | |
5042 | IFS=$as_save_IFS | |
5043 | ||
5044 | fi | |
5045 | fi | |
5046 | ac_ct_WINDRES=$ac_cv_prog_ac_ct_WINDRES | |
5047 | if test -n "$ac_ct_WINDRES"; then | |
5048 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_ct_WINDRES" >&5 | |
5049 | $as_echo "$ac_ct_WINDRES" >&6; } | |
5050 | else | |
5051 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
5052 | $as_echo "no" >&6; } | |
5053 | fi | |
5054 | ||
5055 | if test "x$ac_ct_WINDRES" = x; then | |
5056 | WINDRES="" | |
5057 | else | |
5058 | case $cross_compiling:$ac_tool_warned in | |
5059 | yes:) | |
5060 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: using cross tools not prefixed with host triplet" >&5 | |
5061 | $as_echo "$as_me: WARNING: using cross tools not prefixed with host triplet" >&2;} | |
5062 | ac_tool_warned=yes ;; | |
5063 | esac | |
5064 | WINDRES=$ac_ct_WINDRES | |
5065 | fi | |
5066 | else | |
5067 | WINDRES="$ac_cv_prog_WINDRES" | |
5068 | fi | |
5069 | ||
5070 | ||
5071 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for makensis" >&5 | |
5072 | $as_echo_n "checking for makensis... " >&6; } | |
5073 | if test -z "$MAKENSIS"; then | |
5074 | if test -n "$PROGRAMFILES" && "$PROGRAMFILES/NSIS/makensis" -VERSION >/dev/null 2>&1; then | |
5075 | MAKENSIS="$PROGRAMFILES/NSIS/makensis" | |
5076 | elif makensis -VERSION >/dev/null 2>&1; then | |
5077 | MAKENSIS=makensis | |
5078 | fi | |
5079 | fi | |
5080 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${MAKENSIS:-no}" >&5 | |
5081 | $as_echo "${MAKENSIS:-no}" >&6; } | |
5082 | ;; | |
5083 | esac | |
5084 | ||
5085 | # Check for SVN. | |
5086 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether this is a build from SVN" >&5 | |
5087 | $as_echo_n "checking whether this is a build from SVN... " >&6; } | |
5088 | is_svn_build=no | |
5089 | svn_deps= | |
5090 | if test -f "$srcdir/.svn/wc.db"; then | |
5091 | # SVN 1.7, 1.8 working copy | |
5092 | svn_deps='${srcdir}/.svn/wc.db' | |
5093 | elif test -f "${srcdir}/.svn/entries"; then | |
5094 | # SVN <= 1.6 working copy (SVN 1.7 has empty entries file) | |
5095 | svn_deps='${srcdir}/.svn/entries' | |
5096 | fi | |
5097 | if test -n "$svn_deps"; then | |
5098 | is_svn_build=unknown | |
5099 | if (cd "$srcdir" && svn --version && svnversion && svn info) >/dev/null 2>&1; then | |
5100 | is_svn_build=yes | |
5101 | fi | |
5102 | fi | |
5103 | ||
5104 | if test "$is_svn_build" = "yes"; then | |
5105 | IS_SVN_BUILD_TRUE= | |
5106 | IS_SVN_BUILD_FALSE='#' | |
5107 | else | |
5108 | IS_SVN_BUILD_TRUE='#' | |
5109 | IS_SVN_BUILD_FALSE= | |
5110 | fi | |
5111 | ||
5112 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $is_svn_build" >&5 | |
5113 | $as_echo "$is_svn_build" >&6; } | |
5114 | ||
5115 | # Note: On Linux, clock_gettime() requires -lrt which implies -lpthreads | |
ff28b140 | 5116 | # Check omitted for now, gettimeofday() provides reasonable precision |
f9e10201 JD |
5117 | # AC_SEARCH_LIBS(clock_gettime, rt) |
5118 | ||
ff28b140 | 5119 | # Checks for header files. |
f9e10201 JD |
5120 | |
5121 | ac_ext=cpp | |
5122 | ac_cpp='$CXXCPP $CPPFLAGS' | |
5123 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5124 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5125 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
5126 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking how to run the C++ preprocessor" >&5 | |
5127 | $as_echo_n "checking how to run the C++ preprocessor... " >&6; } | |
5128 | if test -z "$CXXCPP"; then | |
5129 | if ${ac_cv_prog_CXXCPP+:} false; then : | |
5130 | $as_echo_n "(cached) " >&6 | |
5131 | else | |
5132 | # Double quotes because CXXCPP needs to be expanded | |
5133 | for CXXCPP in "$CXX -E" "/lib/cpp" | |
5134 | do | |
5135 | ac_preproc_ok=false | |
5136 | for ac_cxx_preproc_warn_flag in '' yes | |
5137 | do | |
5138 | # Use a header file that comes with gcc, so configuring glibc | |
5139 | # with a fresh cross-compiler works. | |
5140 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5141 | # <limits.h> exists even on freestanding compilers. | |
5142 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
5143 | # not just through cpp. "Syntax error" is here to catch this case. | |
5144 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5145 | /* end confdefs.h. */ | |
5146 | #ifdef __STDC__ | |
5147 | # include <limits.h> | |
5148 | #else | |
5149 | # include <assert.h> | |
5150 | #endif | |
5151 | Syntax error | |
5152 | _ACEOF | |
5153 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
5154 | ||
5155 | else | |
5156 | # Broken: fails on valid input. | |
5157 | continue | |
5158 | fi | |
5159 | rm -f conftest.err conftest.i conftest.$ac_ext | |
5160 | ||
5161 | # OK, works on sane cases. Now check whether nonexistent headers | |
5162 | # can be detected and how. | |
5163 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5164 | /* end confdefs.h. */ | |
5165 | #include <ac_nonexistent.h> | |
5166 | _ACEOF | |
5167 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
5168 | # Broken: success on invalid input. | |
5169 | continue | |
5170 | else | |
5171 | # Passes both tests. | |
5172 | ac_preproc_ok=: | |
5173 | break | |
5174 | fi | |
5175 | rm -f conftest.err conftest.i conftest.$ac_ext | |
5176 | ||
5177 | done | |
5178 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
5179 | rm -f conftest.i conftest.err conftest.$ac_ext | |
5180 | if $ac_preproc_ok; then : | |
5181 | break | |
5182 | fi | |
5183 | ||
5184 | done | |
5185 | ac_cv_prog_CXXCPP=$CXXCPP | |
5186 | ||
5187 | fi | |
5188 | CXXCPP=$ac_cv_prog_CXXCPP | |
5189 | else | |
5190 | ac_cv_prog_CXXCPP=$CXXCPP | |
5191 | fi | |
5192 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $CXXCPP" >&5 | |
5193 | $as_echo "$CXXCPP" >&6; } | |
5194 | ac_preproc_ok=false | |
5195 | for ac_cxx_preproc_warn_flag in '' yes | |
5196 | do | |
5197 | # Use a header file that comes with gcc, so configuring glibc | |
5198 | # with a fresh cross-compiler works. | |
5199 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5200 | # <limits.h> exists even on freestanding compilers. | |
5201 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
5202 | # not just through cpp. "Syntax error" is here to catch this case. | |
5203 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5204 | /* end confdefs.h. */ | |
5205 | #ifdef __STDC__ | |
5206 | # include <limits.h> | |
5207 | #else | |
5208 | # include <assert.h> | |
5209 | #endif | |
5210 | Syntax error | |
5211 | _ACEOF | |
5212 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
5213 | ||
5214 | else | |
5215 | # Broken: fails on valid input. | |
5216 | continue | |
5217 | fi | |
5218 | rm -f conftest.err conftest.i conftest.$ac_ext | |
5219 | ||
5220 | # OK, works on sane cases. Now check whether nonexistent headers | |
5221 | # can be detected and how. | |
5222 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5223 | /* end confdefs.h. */ | |
5224 | #include <ac_nonexistent.h> | |
5225 | _ACEOF | |
5226 | if ac_fn_cxx_try_cpp "$LINENO"; then : | |
5227 | # Broken: success on invalid input. | |
5228 | continue | |
5229 | else | |
5230 | # Passes both tests. | |
5231 | ac_preproc_ok=: | |
5232 | break | |
5233 | fi | |
5234 | rm -f conftest.err conftest.i conftest.$ac_ext | |
5235 | ||
5236 | done | |
5237 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
5238 | rm -f conftest.i conftest.err conftest.$ac_ext | |
5239 | if $ac_preproc_ok; then : | |
5240 | ||
5241 | else | |
5242 | { { $as_echo "$as_me:${as_lineno-$LINENO}: error: in \`$ac_pwd':" >&5 | |
5243 | $as_echo "$as_me: error: in \`$ac_pwd':" >&2;} | |
5244 | as_fn_error $? "C++ preprocessor \"$CXXCPP\" fails sanity check | |
5245 | See \`config.log' for more details" "$LINENO" 5; } | |
5246 | fi | |
5247 | ||
5248 | ac_ext=cpp | |
5249 | ac_cpp='$CXXCPP $CPPFLAGS' | |
5250 | ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
5251 | ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
5252 | ac_compiler_gnu=$ac_cv_cxx_compiler_gnu | |
5253 | ||
5254 | ||
5255 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for grep that handles long lines and -e" >&5 | |
5256 | $as_echo_n "checking for grep that handles long lines and -e... " >&6; } | |
5257 | if ${ac_cv_path_GREP+:} false; then : | |
5258 | $as_echo_n "(cached) " >&6 | |
5259 | else | |
5260 | if test -z "$GREP"; then | |
5261 | ac_path_GREP_found=false | |
5262 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5263 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5264 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
5265 | do | |
5266 | IFS=$as_save_IFS | |
5267 | test -z "$as_dir" && as_dir=. | |
5268 | for ac_prog in grep ggrep; do | |
5269 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5270 | ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext" | |
5271 | as_fn_executable_p "$ac_path_GREP" || continue | |
5272 | # Check for GNU ac_path_GREP and select it if it is found. | |
5273 | # Check for GNU $ac_path_GREP | |
5274 | case `"$ac_path_GREP" --version 2>&1` in | |
5275 | *GNU*) | |
5276 | ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;; | |
5277 | *) | |
5278 | ac_count=0 | |
5279 | $as_echo_n 0123456789 >"conftest.in" | |
5280 | while : | |
5281 | do | |
5282 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5283 | mv "conftest.tmp" "conftest.in" | |
5284 | cp "conftest.in" "conftest.nl" | |
5285 | $as_echo 'GREP' >> "conftest.nl" | |
5286 | "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5287 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5288 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5289 | if test $ac_count -gt ${ac_path_GREP_max-0}; then | |
5290 | # Best one so far, save it but keep looking for a better one | |
5291 | ac_cv_path_GREP="$ac_path_GREP" | |
5292 | ac_path_GREP_max=$ac_count | |
5293 | fi | |
5294 | # 10*(2^10) chars as input seems more than enough | |
5295 | test $ac_count -gt 10 && break | |
5296 | done | |
5297 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5298 | esac | |
5299 | ||
5300 | $ac_path_GREP_found && break 3 | |
5301 | done | |
5302 | done | |
5303 | done | |
5304 | IFS=$as_save_IFS | |
5305 | if test -z "$ac_cv_path_GREP"; then | |
5306 | as_fn_error $? "no acceptable grep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
5307 | fi | |
5308 | else | |
5309 | ac_cv_path_GREP=$GREP | |
5310 | fi | |
5311 | ||
5312 | fi | |
5313 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_GREP" >&5 | |
5314 | $as_echo "$ac_cv_path_GREP" >&6; } | |
5315 | GREP="$ac_cv_path_GREP" | |
5316 | ||
5317 | ||
5318 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for egrep" >&5 | |
5319 | $as_echo_n "checking for egrep... " >&6; } | |
5320 | if ${ac_cv_path_EGREP+:} false; then : | |
5321 | $as_echo_n "(cached) " >&6 | |
5322 | else | |
5323 | if echo a | $GREP -E '(a|b)' >/dev/null 2>&1 | |
5324 | then ac_cv_path_EGREP="$GREP -E" | |
5325 | else | |
5326 | if test -z "$EGREP"; then | |
5327 | ac_path_EGREP_found=false | |
5328 | # Loop through the user's path and test for each of PROGNAME-LIST | |
5329 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
5330 | for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin | |
5331 | do | |
5332 | IFS=$as_save_IFS | |
5333 | test -z "$as_dir" && as_dir=. | |
5334 | for ac_prog in egrep; do | |
5335 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5336 | ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext" | |
5337 | as_fn_executable_p "$ac_path_EGREP" || continue | |
5338 | # Check for GNU ac_path_EGREP and select it if it is found. | |
5339 | # Check for GNU $ac_path_EGREP | |
5340 | case `"$ac_path_EGREP" --version 2>&1` in | |
5341 | *GNU*) | |
5342 | ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;; | |
5343 | *) | |
5344 | ac_count=0 | |
5345 | $as_echo_n 0123456789 >"conftest.in" | |
5346 | while : | |
5347 | do | |
5348 | cat "conftest.in" "conftest.in" >"conftest.tmp" | |
5349 | mv "conftest.tmp" "conftest.in" | |
5350 | cp "conftest.in" "conftest.nl" | |
5351 | $as_echo 'EGREP' >> "conftest.nl" | |
5352 | "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break | |
5353 | diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break | |
5354 | as_fn_arith $ac_count + 1 && ac_count=$as_val | |
5355 | if test $ac_count -gt ${ac_path_EGREP_max-0}; then | |
5356 | # Best one so far, save it but keep looking for a better one | |
5357 | ac_cv_path_EGREP="$ac_path_EGREP" | |
5358 | ac_path_EGREP_max=$ac_count | |
5359 | fi | |
5360 | # 10*(2^10) chars as input seems more than enough | |
5361 | test $ac_count -gt 10 && break | |
5362 | done | |
5363 | rm -f conftest.in conftest.tmp conftest.nl conftest.out;; | |
5364 | esac | |
5365 | ||
5366 | $ac_path_EGREP_found && break 3 | |
5367 | done | |
5368 | done | |
5369 | done | |
5370 | IFS=$as_save_IFS | |
5371 | if test -z "$ac_cv_path_EGREP"; then | |
5372 | as_fn_error $? "no acceptable egrep could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" "$LINENO" 5 | |
5373 | fi | |
5374 | else | |
5375 | ac_cv_path_EGREP=$EGREP | |
5376 | fi | |
5377 | ||
5378 | fi | |
5379 | fi | |
5380 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_path_EGREP" >&5 | |
5381 | $as_echo "$ac_cv_path_EGREP" >&6; } | |
5382 | EGREP="$ac_cv_path_EGREP" | |
5383 | ||
5384 | ||
5385 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for ANSI C header files" >&5 | |
5386 | $as_echo_n "checking for ANSI C header files... " >&6; } | |
5387 | if ${ac_cv_header_stdc+:} false; then : | |
5388 | $as_echo_n "(cached) " >&6 | |
5389 | else | |
5390 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5391 | /* end confdefs.h. */ | |
5392 | #include <stdlib.h> | |
5393 | #include <stdarg.h> | |
5394 | #include <string.h> | |
5395 | #include <float.h> | |
5396 | ||
5397 | int | |
5398 | main () | |
5399 | { | |
5400 | ||
5401 | ; | |
5402 | return 0; | |
5403 | } | |
5404 | _ACEOF | |
5405 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
5406 | ac_cv_header_stdc=yes | |
5407 | else | |
5408 | ac_cv_header_stdc=no | |
5409 | fi | |
5410 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5411 | ||
5412 | if test $ac_cv_header_stdc = yes; then | |
5413 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
5414 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5415 | /* end confdefs.h. */ | |
5416 | #include <string.h> | |
5417 | ||
5418 | _ACEOF | |
5419 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5420 | $EGREP "memchr" >/dev/null 2>&1; then : | |
5421 | ||
5422 | else | |
5423 | ac_cv_header_stdc=no | |
5424 | fi | |
5425 | rm -f conftest* | |
5426 | ||
5427 | fi | |
5428 | ||
5429 | if test $ac_cv_header_stdc = yes; then | |
5430 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
5431 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5432 | /* end confdefs.h. */ | |
5433 | #include <stdlib.h> | |
5434 | ||
5435 | _ACEOF | |
5436 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
5437 | $EGREP "free" >/dev/null 2>&1; then : | |
5438 | ||
5439 | else | |
5440 | ac_cv_header_stdc=no | |
5441 | fi | |
5442 | rm -f conftest* | |
5443 | ||
5444 | fi | |
5445 | ||
5446 | if test $ac_cv_header_stdc = yes; then | |
5447 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
5448 | if test "$cross_compiling" = yes; then : | |
5449 | : | |
5450 | else | |
5451 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5452 | /* end confdefs.h. */ | |
5453 | #include <ctype.h> | |
5454 | #include <stdlib.h> | |
5455 | #if ((' ' & 0x0FF) == 0x020) | |
5456 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
5457 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
5458 | #else | |
5459 | # define ISLOWER(c) \ | |
5460 | (('a' <= (c) && (c) <= 'i') \ | |
5461 | || ('j' <= (c) && (c) <= 'r') \ | |
5462 | || ('s' <= (c) && (c) <= 'z')) | |
5463 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
5464 | #endif | |
5465 | ||
5466 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
5467 | int | |
5468 | main () | |
5469 | { | |
5470 | int i; | |
5471 | for (i = 0; i < 256; i++) | |
5472 | if (XOR (islower (i), ISLOWER (i)) | |
5473 | || toupper (i) != TOUPPER (i)) | |
5474 | return 2; | |
5475 | return 0; | |
5476 | } | |
5477 | _ACEOF | |
5478 | if ac_fn_cxx_try_run "$LINENO"; then : | |
5479 | ||
5480 | else | |
5481 | ac_cv_header_stdc=no | |
5482 | fi | |
5483 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
5484 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
5485 | fi | |
5486 | ||
5487 | fi | |
5488 | fi | |
5489 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_header_stdc" >&5 | |
5490 | $as_echo "$ac_cv_header_stdc" >&6; } | |
5491 | if test $ac_cv_header_stdc = yes; then | |
5492 | ||
5493 | $as_echo "#define STDC_HEADERS 1" >>confdefs.h | |
5494 | ||
5495 | fi | |
5496 | ||
5497 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
5498 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
5499 | inttypes.h stdint.h unistd.h | |
5500 | do : | |
5501 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5502 | ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
5503 | " | |
5504 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
5505 | cat >>confdefs.h <<_ACEOF | |
5506 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5507 | _ACEOF | |
5508 | ||
5509 | fi | |
5510 | ||
5511 | done | |
5512 | ||
5513 | ||
5514 | for ac_header in locale.h | |
5515 | do : | |
5516 | ac_fn_cxx_check_header_mongrel "$LINENO" "locale.h" "ac_cv_header_locale_h" "$ac_includes_default" | |
5517 | if test "x$ac_cv_header_locale_h" = xyes; then : | |
5518 | cat >>confdefs.h <<_ACEOF | |
5519 | #define HAVE_LOCALE_H 1 | |
5520 | _ACEOF | |
5521 | ||
5522 | fi | |
5523 | ||
5524 | done | |
5525 | ||
ff28b140 | 5526 | for ac_header in byteswap.h |
f9e10201 | 5527 | do : |
ff28b140 TL |
5528 | ac_fn_cxx_check_header_mongrel "$LINENO" "byteswap.h" "ac_cv_header_byteswap_h" "$ac_includes_default" |
5529 | if test "x$ac_cv_header_byteswap_h" = xyes; then : | |
f9e10201 | 5530 | cat >>confdefs.h <<_ACEOF |
ff28b140 | 5531 | #define HAVE_BYTESWAP_H 1 |
f9e10201 JD |
5532 | _ACEOF |
5533 | ||
5534 | fi | |
5535 | ||
5536 | done | |
5537 | ||
f9e10201 | 5538 | |
ff28b140 TL |
5539 | case "$host" in |
5540 | *-*-freebsd*|*-*-dragonfly*|*-*-kfreebsd*-gnu*) | |
5541 | # Check for FreeBSD twe and twa include files | |
5542 | for ac_header in sys/tweio.h sys/twereg.h sys/tw_osl_ioctl.h | |
f9e10201 | 5543 | do : |
ff28b140 TL |
5544 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
5545 | ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
5546 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
f9e10201 | 5547 | cat >>confdefs.h <<_ACEOF |
ff28b140 | 5548 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
f9e10201 JD |
5549 | _ACEOF |
5550 | ||
5551 | fi | |
5552 | ||
5553 | done | |
5554 | ||
ff28b140 TL |
5555 | # Check for the FreeBSD CCISS system header and use internal one if not found |
5556 | for ac_header in dev/ciss/cissio.h | |
f9e10201 | 5557 | do : |
ff28b140 TL |
5558 | ac_fn_cxx_check_header_mongrel "$LINENO" "dev/ciss/cissio.h" "ac_cv_header_dev_ciss_cissio_h" "$ac_includes_default" |
5559 | if test "x$ac_cv_header_dev_ciss_cissio_h" = xyes; then : | |
f9e10201 | 5560 | cat >>confdefs.h <<_ACEOF |
ff28b140 | 5561 | #define HAVE_DEV_CISS_CISSIO_H 1 |
f9e10201 JD |
5562 | _ACEOF |
5563 | ||
ff28b140 | 5564 | $as_echo "#define CISS_LOCATION <dev/ciss/cissio.h>" >>confdefs.h |
f9e10201 | 5565 | |
ff28b140 | 5566 | else |
f9e10201 | 5567 | |
ff28b140 | 5568 | $as_echo "#define CISS_LOCATION \"cissio_freebsd.h\"" >>confdefs.h |
f9e10201 JD |
5569 | |
5570 | fi | |
5571 | ||
5572 | done | |
5573 | ||
ff28b140 TL |
5574 | ;; |
5575 | *-*-linux*) | |
5576 | # <linux/compiler.h> is needed for cciss_ioctl.h at least on SuSE LINUX | |
5577 | for ac_header in sys/sysmacros.h linux/compiler.h | |
f9e10201 | 5578 | do : |
ff28b140 TL |
5579 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
5580 | ac_fn_cxx_check_header_mongrel "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default" | |
5581 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
f9e10201 | 5582 | cat >>confdefs.h <<_ACEOF |
ff28b140 | 5583 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
f9e10201 JD |
5584 | _ACEOF |
5585 | ||
f9e10201 JD |
5586 | fi |
5587 | ||
5588 | done | |
5589 | ||
ff28b140 TL |
5590 | # Check for Linux CCISS include file |
5591 | for ac_header in linux/cciss_ioctl.h | |
f9e10201 JD |
5592 | do : |
5593 | ac_fn_cxx_check_header_compile "$LINENO" "linux/cciss_ioctl.h" "ac_cv_header_linux_cciss_ioctl_h" "$ac_includes_default | |
5594 | #ifdef HAVE_LINUX_COMPILER_H | |
5595 | # include <linux/compiler.h> | |
5596 | #endif | |
5597 | ||
5598 | " | |
5599 | if test "x$ac_cv_header_linux_cciss_ioctl_h" = xyes; then : | |
5600 | cat >>confdefs.h <<_ACEOF | |
5601 | #define HAVE_LINUX_CCISS_IOCTL_H 1 | |
5602 | _ACEOF | |
5603 | ||
5604 | fi | |
5605 | ||
5606 | done | |
5607 | ||
ff28b140 TL |
5608 | ;; |
5609 | *-*-netbsd*|*-*-openbsd*) | |
5610 | for ac_header in dev/ata/atavar.h | |
f9e10201 | 5611 | do : |
ff28b140 TL |
5612 | ac_fn_cxx_check_header_mongrel "$LINENO" "dev/ata/atavar.h" "ac_cv_header_dev_ata_atavar_h" "$ac_includes_default" |
5613 | if test "x$ac_cv_header_dev_ata_atavar_h" = xyes; then : | |
f9e10201 | 5614 | cat >>confdefs.h <<_ACEOF |
ff28b140 | 5615 | #define HAVE_DEV_ATA_ATAVAR_H 1 |
f9e10201 JD |
5616 | _ACEOF |
5617 | ||
5618 | fi | |
5619 | ||
5620 | done | |
5621 | ||
ff28b140 TL |
5622 | ;; |
5623 | *-*-cygwin*|*-*-mingw*) | |
5624 | # Check for Windows DDK header files | |
5625 | for ac_header in ntdddisk.h ddk/ntdddisk.h | |
f9e10201 | 5626 | do : |
ff28b140 TL |
5627 | as_ac_Header=`$as_echo "ac_cv_header_$ac_header" | $as_tr_sh` |
5628 | ac_fn_cxx_check_header_compile "$LINENO" "$ac_header" "$as_ac_Header" "$ac_includes_default | |
5629 | #include <windows.h> | |
5630 | ||
5631 | " | |
5632 | if eval test \"x\$"$as_ac_Header"\" = x"yes"; then : | |
f9e10201 | 5633 | cat >>confdefs.h <<_ACEOF |
ff28b140 | 5634 | #define `$as_echo "HAVE_$ac_header" | $as_tr_cpp` 1 |
f9e10201 JD |
5635 | _ACEOF |
5636 | ||
5637 | fi | |
5638 | ||
5639 | done | |
5640 | ||
ff28b140 TL |
5641 | ;; |
5642 | esac | |
f9e10201 | 5643 | |
ff28b140 TL |
5644 | # Checks for typedefs, and compiler characteristics. |
5645 | ac_fn_cxx_check_type "$LINENO" "__int128" "ac_cv_type___int128" "$ac_includes_default" | |
5646 | if test "x$ac_cv_type___int128" = xyes; then : | |
f9e10201 JD |
5647 | |
5648 | cat >>confdefs.h <<_ACEOF | |
ff28b140 | 5649 | #define HAVE___INT128 1 |
f9e10201 JD |
5650 | _ACEOF |
5651 | ||
5652 | ||
5653 | fi | |
f9e10201 | 5654 | |
f9e10201 | 5655 | |
ff28b140 TL |
5656 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for long double with more range or precision than double" >&5 |
5657 | $as_echo_n "checking for long double with more range or precision than double... " >&6; } | |
5658 | if ${ac_cv_type_long_double_wider+:} false; then : | |
5659 | $as_echo_n "(cached) " >&6 | |
5660 | else | |
5661 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5662 | /* end confdefs.h. */ | |
5663 | #include <float.h> | |
5664 | long double const a[] = | |
5665 | { | |
5666 | 0.0L, DBL_MIN, DBL_MAX, DBL_EPSILON, | |
5667 | LDBL_MIN, LDBL_MAX, LDBL_EPSILON | |
5668 | }; | |
5669 | long double | |
5670 | f (long double x) | |
5671 | { | |
5672 | return ((x + (unsigned long int) 10) * (-1 / x) + a[0] | |
5673 | + (x ? f (x) : 'c')); | |
5674 | } | |
5675 | ||
5676 | int | |
5677 | main () | |
5678 | { | |
5679 | static int test_array [1 - 2 * !((0 < ((DBL_MAX_EXP < LDBL_MAX_EXP) | |
5680 | + (DBL_MANT_DIG < LDBL_MANT_DIG) | |
5681 | - (LDBL_MAX_EXP < DBL_MAX_EXP) | |
5682 | - (LDBL_MANT_DIG < DBL_MANT_DIG))) | |
5683 | && (int) LDBL_EPSILON == 0 | |
5684 | )]; | |
5685 | test_array [0] = 0; | |
5686 | return test_array [0]; | |
f9e10201 | 5687 | |
ff28b140 TL |
5688 | ; |
5689 | return 0; | |
5690 | } | |
5691 | _ACEOF | |
5692 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
5693 | ac_cv_type_long_double_wider=yes | |
5694 | else | |
5695 | ac_cv_type_long_double_wider=no | |
5696 | fi | |
5697 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
f9e10201 | 5698 | fi |
ff28b140 TL |
5699 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_type_long_double_wider" >&5 |
5700 | $as_echo "$ac_cv_type_long_double_wider" >&6; } | |
5701 | if test $ac_cv_type_long_double_wider = yes; then | |
f9e10201 | 5702 | |
ff28b140 | 5703 | $as_echo "#define HAVE_LONG_DOUBLE_WIDER 1" >>confdefs.h |
f9e10201 | 5704 | |
ff28b140 TL |
5705 | fi |
5706 | ||
5707 | ||
5708 | # Checks for library functions. | |
f9e10201 JD |
5709 | for ac_func in getopt_long |
5710 | do : | |
5711 | ac_fn_cxx_check_func "$LINENO" "getopt_long" "ac_cv_func_getopt_long" | |
5712 | if test "x$ac_cv_func_getopt_long" = xyes; then : | |
5713 | cat >>confdefs.h <<_ACEOF | |
5714 | #define HAVE_GETOPT_LONG 1 | |
5715 | _ACEOF | |
5716 | need_getopt_long=no | |
5717 | else | |
5718 | need_getopt_long=yes | |
5719 | fi | |
5720 | done | |
5721 | ||
5722 | if test "$need_getopt_long" = "yes"; then | |
5723 | NEED_GETOPT_LONG_TRUE= | |
5724 | NEED_GETOPT_LONG_FALSE='#' | |
5725 | else | |
5726 | NEED_GETOPT_LONG_TRUE='#' | |
5727 | NEED_GETOPT_LONG_FALSE= | |
5728 | fi | |
5729 | ||
f9e10201 JD |
5730 | |
5731 | for ac_func in clock_gettime ftime gettimeofday | |
5732 | do : | |
5733 | as_ac_var=`$as_echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
5734 | ac_fn_cxx_check_func "$LINENO" "$ac_func" "$as_ac_var" | |
5735 | if eval test \"x\$"$as_ac_var"\" = x"yes"; then : | |
5736 | cat >>confdefs.h <<_ACEOF | |
5737 | #define `$as_echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
5738 | _ACEOF | |
5739 | ||
5740 | fi | |
5741 | done | |
5742 | ||
5743 | ||
5744 | # Check byte ordering (defines WORDS_BIGENDIAN) | |
5745 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether byte ordering is bigendian" >&5 | |
5746 | $as_echo_n "checking whether byte ordering is bigendian... " >&6; } | |
5747 | if ${ac_cv_c_bigendian+:} false; then : | |
5748 | $as_echo_n "(cached) " >&6 | |
5749 | else | |
5750 | ac_cv_c_bigendian=unknown | |
5751 | # See if we're dealing with a universal compiler. | |
5752 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5753 | /* end confdefs.h. */ | |
5754 | #ifndef __APPLE_CC__ | |
5755 | not a universal capable compiler | |
5756 | #endif | |
5757 | typedef int dummy; | |
5758 | ||
5759 | _ACEOF | |
5760 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
5761 | ||
5762 | # Check for potential -arch flags. It is not universal unless | |
5763 | # there are at least two -arch flags with different values. | |
5764 | ac_arch= | |
5765 | ac_prev= | |
5766 | for ac_word in $CC $CFLAGS $CPPFLAGS $LDFLAGS; do | |
5767 | if test -n "$ac_prev"; then | |
5768 | case $ac_word in | |
5769 | i?86 | x86_64 | ppc | ppc64) | |
5770 | if test -z "$ac_arch" || test "$ac_arch" = "$ac_word"; then | |
5771 | ac_arch=$ac_word | |
5772 | else | |
5773 | ac_cv_c_bigendian=universal | |
5774 | break | |
5775 | fi | |
5776 | ;; | |
5777 | esac | |
5778 | ac_prev= | |
5779 | elif test "x$ac_word" = "x-arch"; then | |
5780 | ac_prev=arch | |
5781 | fi | |
5782 | done | |
5783 | fi | |
5784 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5785 | if test $ac_cv_c_bigendian = unknown; then | |
5786 | # See if sys/param.h defines the BYTE_ORDER macro. | |
5787 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5788 | /* end confdefs.h. */ | |
5789 | #include <sys/types.h> | |
5790 | #include <sys/param.h> | |
5791 | ||
5792 | int | |
5793 | main () | |
5794 | { | |
5795 | #if ! (defined BYTE_ORDER && defined BIG_ENDIAN \ | |
5796 | && defined LITTLE_ENDIAN && BYTE_ORDER && BIG_ENDIAN \ | |
5797 | && LITTLE_ENDIAN) | |
5798 | bogus endian macros | |
5799 | #endif | |
5800 | ||
5801 | ; | |
5802 | return 0; | |
5803 | } | |
5804 | _ACEOF | |
5805 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
5806 | # It does; now see whether it defined to BIG_ENDIAN or not. | |
5807 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5808 | /* end confdefs.h. */ | |
5809 | #include <sys/types.h> | |
5810 | #include <sys/param.h> | |
5811 | ||
5812 | int | |
5813 | main () | |
5814 | { | |
5815 | #if BYTE_ORDER != BIG_ENDIAN | |
5816 | not big endian | |
5817 | #endif | |
5818 | ||
5819 | ; | |
5820 | return 0; | |
5821 | } | |
5822 | _ACEOF | |
5823 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
5824 | ac_cv_c_bigendian=yes | |
5825 | else | |
5826 | ac_cv_c_bigendian=no | |
5827 | fi | |
5828 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5829 | fi | |
5830 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5831 | fi | |
5832 | if test $ac_cv_c_bigendian = unknown; then | |
5833 | # See if <limits.h> defines _LITTLE_ENDIAN or _BIG_ENDIAN (e.g., Solaris). | |
5834 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5835 | /* end confdefs.h. */ | |
5836 | #include <limits.h> | |
5837 | ||
5838 | int | |
5839 | main () | |
5840 | { | |
5841 | #if ! (defined _LITTLE_ENDIAN || defined _BIG_ENDIAN) | |
5842 | bogus endian macros | |
5843 | #endif | |
5844 | ||
5845 | ; | |
5846 | return 0; | |
5847 | } | |
5848 | _ACEOF | |
5849 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
5850 | # It does; now see whether it defined to _BIG_ENDIAN or not. | |
5851 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5852 | /* end confdefs.h. */ | |
5853 | #include <limits.h> | |
5854 | ||
5855 | int | |
5856 | main () | |
5857 | { | |
5858 | #ifndef _BIG_ENDIAN | |
5859 | not big endian | |
5860 | #endif | |
5861 | ||
5862 | ; | |
5863 | return 0; | |
5864 | } | |
5865 | _ACEOF | |
5866 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
5867 | ac_cv_c_bigendian=yes | |
5868 | else | |
5869 | ac_cv_c_bigendian=no | |
5870 | fi | |
5871 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5872 | fi | |
5873 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5874 | fi | |
5875 | if test $ac_cv_c_bigendian = unknown; then | |
5876 | # Compile a test program. | |
5877 | if test "$cross_compiling" = yes; then : | |
5878 | # Try to guess by grepping values from an object file. | |
5879 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5880 | /* end confdefs.h. */ | |
5881 | short int ascii_mm[] = | |
5882 | { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | |
5883 | short int ascii_ii[] = | |
5884 | { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | |
5885 | int use_ascii (int i) { | |
5886 | return ascii_mm[i] + ascii_ii[i]; | |
5887 | } | |
5888 | short int ebcdic_ii[] = | |
5889 | { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | |
5890 | short int ebcdic_mm[] = | |
5891 | { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | |
5892 | int use_ebcdic (int i) { | |
5893 | return ebcdic_mm[i] + ebcdic_ii[i]; | |
5894 | } | |
5895 | extern int foo; | |
5896 | ||
5897 | int | |
5898 | main () | |
5899 | { | |
5900 | return use_ascii (foo) == use_ebcdic (foo); | |
5901 | ; | |
5902 | return 0; | |
5903 | } | |
5904 | _ACEOF | |
5905 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
5906 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null; then | |
5907 | ac_cv_c_bigendian=yes | |
5908 | fi | |
5909 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | |
5910 | if test "$ac_cv_c_bigendian" = unknown; then | |
5911 | ac_cv_c_bigendian=no | |
5912 | else | |
5913 | # finding both strings is unlikely to happen, but who knows? | |
5914 | ac_cv_c_bigendian=unknown | |
5915 | fi | |
5916 | fi | |
5917 | fi | |
5918 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5919 | else | |
5920 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5921 | /* end confdefs.h. */ | |
5922 | $ac_includes_default | |
5923 | int | |
5924 | main () | |
5925 | { | |
5926 | ||
5927 | /* Are we little or big endian? From Harbison&Steele. */ | |
5928 | union | |
5929 | { | |
5930 | long int l; | |
5931 | char c[sizeof (long int)]; | |
5932 | } u; | |
5933 | u.l = 1; | |
5934 | return u.c[sizeof (long int) - 1] == 1; | |
5935 | ||
5936 | ; | |
5937 | return 0; | |
5938 | } | |
5939 | _ACEOF | |
5940 | if ac_fn_cxx_try_run "$LINENO"; then : | |
5941 | ac_cv_c_bigendian=no | |
5942 | else | |
5943 | ac_cv_c_bigendian=yes | |
5944 | fi | |
5945 | rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext \ | |
5946 | conftest.$ac_objext conftest.beam conftest.$ac_ext | |
5947 | fi | |
5948 | ||
5949 | fi | |
5950 | fi | |
5951 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_c_bigendian" >&5 | |
5952 | $as_echo "$ac_cv_c_bigendian" >&6; } | |
5953 | case $ac_cv_c_bigendian in #( | |
5954 | yes) | |
5955 | $as_echo "#define WORDS_BIGENDIAN 1" >>confdefs.h | |
5956 | ;; #( | |
5957 | no) | |
5958 | ;; #( | |
5959 | universal) | |
5960 | ||
5961 | $as_echo "#define AC_APPLE_UNIVERSAL_BUILD 1" >>confdefs.h | |
5962 | ||
5963 | ;; #( | |
5964 | *) | |
5965 | as_fn_error $? "unknown endianness | |
5966 | presetting ac_cv_c_bigendian=no (or yes) will help" "$LINENO" 5 ;; | |
5967 | esac | |
5968 | ||
5969 | ||
5970 | # check for __attribute__((packed)) | |
5971 | # (sizeof() check is required to avoid false positives if other | |
5972 | # __attribute__((x)) are supported) | |
5973 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports __attribute__((packed))" >&5 | |
5974 | $as_echo_n "checking whether $CXX supports __attribute__((packed))... " >&6; } | |
5975 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
5976 | /* end confdefs.h. */ | |
5977 | ||
5978 | int | |
5979 | main () | |
5980 | { | |
5981 | ||
5982 | struct s { char a; short b; } __attribute__((packed)); | |
5983 | typedef char t[sizeof(struct s) == 3 ? 1 : -1]; | |
5984 | ; | |
5985 | return 0; | |
5986 | } | |
5987 | _ACEOF | |
5988 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
5989 | gcc_have_attr_packed=yes | |
5990 | else | |
5991 | gcc_have_attr_packed=no | |
5992 | fi | |
5993 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
5994 | ||
5995 | if test "$gcc_have_attr_packed" = "yes"; then | |
5996 | ||
5997 | $as_echo "#define HAVE_ATTR_PACKED 1" >>confdefs.h | |
5998 | ||
5999 | fi | |
6000 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $gcc_have_attr_packed" >&5 | |
6001 | $as_echo "$gcc_have_attr_packed" >&6; } | |
6002 | ||
6003 | ||
6004 | ||
6005 | ||
6006 | ||
ff28b140 | 6007 | initddir= |
f9e10201 JD |
6008 | |
6009 | # Check whether --with-initscriptdir was given. | |
6010 | if test "${with_initscriptdir+set}" = set; then : | |
ff28b140 TL |
6011 | withval=$with_initscriptdir; case "$withval" in |
6012 | auto|yes) as_fn_error $? "'--with-initscriptdir=$withval' is no longer supported" "$LINENO" 5 ;; | |
6013 | no) ;; | |
6014 | *) initddir="$withval" ;; | |
6015 | esac | |
f9e10201 | 6016 | |
ff28b140 | 6017 | fi |
f9e10201 | 6018 | |
f9e10201 JD |
6019 | |
6020 | if test -n "$initddir"; then | |
6021 | INSTALL_INITSCRIPT_TRUE= | |
6022 | INSTALL_INITSCRIPT_FALSE='#' | |
6023 | else | |
6024 | INSTALL_INITSCRIPT_TRUE='#' | |
6025 | INSTALL_INITSCRIPT_FALSE= | |
6026 | fi | |
6027 | ||
6028 | ||
6029 | # use different init script templates for different OS | |
6030 | case "${host}" in | |
6031 | *-*-freebsd*) | |
6032 | initdfile="smartd.freebsd.initd" | |
6033 | ;; | |
6034 | *-apple-darwin*) | |
6035 | initdfile="com.smartmontools.smartd.plist" | |
6036 | ;; | |
ff28b140 TL |
6037 | *-*-cygwin*) |
6038 | initdfile="smartd.cygwin.initd" | |
6039 | ;; | |
f9e10201 JD |
6040 | *) |
6041 | initdfile="smartd.initd" | |
6042 | ;; | |
6043 | esac | |
6044 | ||
6045 | ||
6046 | ||
6047 | # Check whether --with-exampledir was given. | |
6048 | if test "${with_exampledir+set}" = set; then : | |
6049 | withval=$with_exampledir; exampledir="$withval" | |
6050 | else | |
6051 | exampledir='${docdir}/examplescripts' | |
6052 | fi | |
6053 | ||
6054 | ||
6055 | ||
6056 | drivedbdir='${datadir}/${PACKAGE}' | |
6057 | ||
6058 | # Check whether --with-drivedbdir was given. | |
6059 | if test "${with_drivedbdir+set}" = set; then : | |
6060 | withval=$with_drivedbdir; case "$withval" in yes) ;; no) drivedbdir= ;; *) drivedbdir="$withval" ;; esac | |
6061 | fi | |
6062 | ||
6063 | ||
6064 | if test -n "$drivedbdir"; then | |
6065 | ENABLE_DRIVEDB_TRUE= | |
6066 | ENABLE_DRIVEDB_FALSE='#' | |
6067 | else | |
6068 | ENABLE_DRIVEDB_TRUE='#' | |
6069 | ENABLE_DRIVEDB_FALSE= | |
6070 | fi | |
6071 | ||
6072 | ||
ff28b140 | 6073 | drivedb_version=$smartmontools_drivedb_version |
f9e10201 JD |
6074 | |
6075 | # Check whether --with-update-smart_drivedb was given. | |
6076 | if test "${with_update_smart_drivedb+set}" = set; then : | |
6077 | withval=$with_update_smart_drivedb; case "$withval" in | |
6078 | yes|no) ;; | |
6079 | 5.4[0-3]|6.[0-9]) drivedb_version=$withval; with_update_smart_drivedb=yes ;; | |
6080 | *) as_fn_error $? "Invalid drivedb branch version: $withval" "$LINENO" 5 ;; | |
6081 | esac | |
6082 | ||
6083 | else | |
6084 | with_update_smart_drivedb=yes | |
6085 | fi | |
6086 | ||
6087 | test -n "$drivedbdir" || with_update_smart_drivedb=no | |
6088 | ||
6089 | if test "$with_update_smart_drivedb" = "yes"; then | |
6090 | ENABLE_UPDATE_SMART_DRIVEDB_TRUE= | |
6091 | ENABLE_UPDATE_SMART_DRIVEDB_FALSE='#' | |
6092 | else | |
6093 | ENABLE_UPDATE_SMART_DRIVEDB_TRUE='#' | |
6094 | ENABLE_UPDATE_SMART_DRIVEDB_FALSE= | |
6095 | fi | |
6096 | ||
6097 | ||
6098 | gnupg="gpg" | |
6099 | # Also check for '--with-gnupg[=yes]' because 'yes' is a valid command with infinite output | |
6100 | ||
6101 | # Check whether --with-gnupg was given. | |
6102 | if test "${with_gnupg+set}" = set; then : | |
6103 | withval=$with_gnupg; case "$withval" in yes) ;; no) gnupg= ;; *) gnupg="$withval" ;; esac | |
6104 | fi | |
6105 | ||
6106 | ||
6107 | ||
6108 | case "$with_update_smart_drivedb:$gnupg" in | |
6109 | no:?*) | |
6110 | as_fn_error $? " | |
6111 | '--without-update-smart-drivedb' now requires '--without-gnupg'. | |
6112 | NEWS: update-smart-drivedb now verifies the downloaded drivedb.h file with GnuPG." "$LINENO" 5 | |
6113 | ;; | |
6114 | esac | |
6115 | ||
6116 | ||
6117 | # Check whether --with-smartdscriptdir was given. | |
6118 | if test "${with_smartdscriptdir+set}" = set; then : | |
6119 | withval=$with_smartdscriptdir; smartdscriptdir="$withval" | |
6120 | else | |
6121 | smartdscriptdir='${sysconfdir}' | |
6122 | fi | |
6123 | ||
6124 | ||
6125 | ||
6126 | ||
6127 | # Check whether --with-smartdplugindir was given. | |
6128 | if test "${with_smartdplugindir+set}" = set; then : | |
6129 | withval=$with_smartdplugindir; smartdplugindir=; test "$withval" != "no" && smartdplugindir="$withval" | |
6130 | else | |
6131 | smartdplugindir='${smartdscriptdir}/smartd_warning.d' | |
6132 | fi | |
6133 | ||
6134 | ||
6135 | ||
6136 | ||
6137 | # Check whether --with-scriptpath was given. | |
6138 | if test "${with_scriptpath+set}" = set; then : | |
6139 | withval=$with_scriptpath; scriptpath=; test "$withval" != "no" && scriptpath="$withval" | |
6140 | else | |
ff28b140 | 6141 | scriptpath="/usr/local/bin:/usr/bin:/bin" |
f9e10201 JD |
6142 | fi |
6143 | ||
6144 | ||
6145 | if test -n "$scriptpath"; then | |
6146 | ENABLE_SCRIPTPATH_TRUE= | |
6147 | ENABLE_SCRIPTPATH_FALSE='#' | |
6148 | else | |
6149 | ENABLE_SCRIPTPATH_TRUE='#' | |
6150 | ENABLE_SCRIPTPATH_FALSE= | |
6151 | fi | |
6152 | ||
6153 | ||
6154 | savestates= | |
6155 | ||
6156 | # Check whether --with-savestates was given. | |
6157 | if test "${with_savestates+set}" = set; then : | |
6158 | withval=$with_savestates; case "$withval" in yes) savestates='${localstatedir}/lib/${PACKAGE}/smartd.' ;; | |
6159 | no) ;; *) savestates="$withval" ;; esac | |
6160 | fi | |
6161 | ||
6162 | savestatesdir="${savestates%/*}" | |
6163 | ||
6164 | ||
6165 | if test -n "$savestates"; then | |
6166 | ENABLE_SAVESTATES_TRUE= | |
6167 | ENABLE_SAVESTATES_FALSE='#' | |
6168 | else | |
6169 | ENABLE_SAVESTATES_TRUE='#' | |
6170 | ENABLE_SAVESTATES_FALSE= | |
6171 | fi | |
6172 | ||
6173 | ||
6174 | attributelog= | |
6175 | ||
6176 | # Check whether --with-attributelog was given. | |
6177 | if test "${with_attributelog+set}" = set; then : | |
6178 | withval=$with_attributelog; case "$withval" in yes) attributelog='${localstatedir}/lib/${PACKAGE}/attrlog.' ;; | |
6179 | no) ;; *) attributelog="$withval" ;; esac | |
6180 | fi | |
6181 | ||
6182 | attributelogdir="${attributelog%/*}" | |
6183 | ||
6184 | ||
6185 | if test -n "$attributelog"; then | |
6186 | ENABLE_ATTRIBUTELOG_TRUE= | |
6187 | ENABLE_ATTRIBUTELOG_FALSE='#' | |
6188 | else | |
6189 | ENABLE_ATTRIBUTELOG_TRUE='#' | |
6190 | ENABLE_ATTRIBUTELOG_FALSE= | |
6191 | fi | |
6192 | ||
6193 | ||
6194 | # Check whether --enable-sample was given. | |
6195 | if test "${enable_sample+set}" = set; then : | |
6196 | enableval=$enable_sample; smartd_suffix=; test "$enableval" = "yes" && smartd_suffix=".sample" | |
6197 | else | |
6198 | smartd_suffix=; | |
6199 | fi | |
6200 | ||
6201 | ||
6202 | ||
ff28b140 TL |
6203 | # Check whether --enable-scsi-cdb-check was given. |
6204 | if test "${enable_scsi_cdb_check+set}" = set; then : | |
6205 | enableval=$enable_scsi_cdb_check; if test "$enableval" = "yes"; then | |
6206 | ||
6207 | $as_echo "#define SCSI_CDB_CHECK 1" >>confdefs.h | |
6208 | ||
6209 | fi | |
6210 | ||
6211 | fi | |
6212 | ||
6213 | ||
6214 | # Check whether --enable-fast-lebe was given. | |
6215 | if test "${enable_fast_lebe+set}" = set; then : | |
6216 | enableval=$enable_fast_lebe; if test "$enableval" = "no"; then | |
6217 | ||
6218 | $as_echo "#define IGNORE_FAST_LEBE 1" >>confdefs.h | |
6219 | ||
6220 | fi | |
6221 | ||
6222 | fi | |
6223 | ||
6224 | ||
f9e10201 JD |
6225 | |
6226 | # Check whether --with-os-deps was given. | |
6227 | if test "${with_os_deps+set}" = set; then : | |
6228 | withval=$with_os_deps; for x in $with_os_deps; do | |
6229 | case $x in | |
6230 | *.o) ;; | |
6231 | *) as_fn_error $? "non-object file specified by --with-os-deps" "$LINENO" 5 ;; | |
6232 | esac | |
6233 | done | |
6234 | ||
6235 | fi | |
6236 | ||
6237 | ||
6238 | ||
6239 | # Check whether --with-selinux was given. | |
6240 | if test "${with_selinux+set}" = set; then : | |
6241 | withval=$with_selinux; if test "$withval" = "yes"; then | |
6242 | for ac_header in selinux/selinux.h | |
6243 | do : | |
6244 | ac_fn_cxx_check_header_mongrel "$LINENO" "selinux/selinux.h" "ac_cv_header_selinux_selinux_h" "$ac_includes_default" | |
6245 | if test "x$ac_cv_header_selinux_selinux_h" = xyes; then : | |
6246 | cat >>confdefs.h <<_ACEOF | |
6247 | #define HAVE_SELINUX_SELINUX_H 1 | |
6248 | _ACEOF | |
6249 | ||
6250 | else | |
6251 | as_fn_error $? "Missing SELinux header files" "$LINENO" 5 | |
6252 | fi | |
6253 | ||
6254 | done | |
6255 | ||
6256 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for matchpathcon in -lselinux" >&5 | |
6257 | $as_echo_n "checking for matchpathcon in -lselinux... " >&6; } | |
6258 | if ${ac_cv_lib_selinux_matchpathcon+:} false; then : | |
6259 | $as_echo_n "(cached) " >&6 | |
6260 | else | |
6261 | ac_check_lib_save_LIBS=$LIBS | |
6262 | LIBS="-lselinux $LIBS" | |
6263 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6264 | /* end confdefs.h. */ | |
6265 | ||
6266 | /* Override any GCC internal prototype to avoid an error. | |
6267 | Use char because int might match the return type of a GCC | |
6268 | builtin and then its argument prototype would still apply. */ | |
6269 | #ifdef __cplusplus | |
6270 | extern "C" | |
6271 | #endif | |
6272 | char matchpathcon (); | |
6273 | int | |
6274 | main () | |
6275 | { | |
6276 | return matchpathcon (); | |
6277 | ; | |
6278 | return 0; | |
6279 | } | |
6280 | _ACEOF | |
6281 | if ac_fn_cxx_try_link "$LINENO"; then : | |
6282 | ac_cv_lib_selinux_matchpathcon=yes | |
6283 | else | |
6284 | ac_cv_lib_selinux_matchpathcon=no | |
6285 | fi | |
6286 | rm -f core conftest.err conftest.$ac_objext \ | |
6287 | conftest$ac_exeext conftest.$ac_ext | |
6288 | LIBS=$ac_check_lib_save_LIBS | |
6289 | fi | |
6290 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_selinux_matchpathcon" >&5 | |
6291 | $as_echo "$ac_cv_lib_selinux_matchpathcon" >&6; } | |
6292 | if test "x$ac_cv_lib_selinux_matchpathcon" = xyes; then : | |
6293 | cat >>confdefs.h <<_ACEOF | |
6294 | #define HAVE_LIBSELINUX 1 | |
6295 | _ACEOF | |
6296 | ||
6297 | LIBS="-lselinux $LIBS" | |
6298 | ||
6299 | else | |
6300 | as_fn_error $? "Missing or incorrect SELinux library files" "$LINENO" 5 | |
6301 | fi | |
6302 | ||
6303 | fi | |
6304 | ||
6305 | fi | |
6306 | ||
6307 | ||
f9e10201 JD |
6308 | |
6309 | # Check whether --with-libcap-ng was given. | |
6310 | if test "${with_libcap_ng+set}" = set; then : | |
6311 | withval=$with_libcap_ng; | |
6312 | else | |
6313 | with_libcap_ng=auto | |
6314 | fi | |
6315 | ||
6316 | ||
6317 | use_libcap_ng=no | |
ff28b140 TL |
6318 | case "$with_libcap_ng:$host_os" in |
6319 | auto:linux*|yes:*) | |
6320 | for ac_header in cap-ng.h | |
6321 | do : | |
6322 | ac_fn_cxx_check_header_mongrel "$LINENO" "cap-ng.h" "ac_cv_header_cap_ng_h" "$ac_includes_default" | |
6323 | if test "x$ac_cv_header_cap_ng_h" = xyes; then : | |
6324 | cat >>confdefs.h <<_ACEOF | |
6325 | #define HAVE_CAP_NG_H 1 | |
6326 | _ACEOF | |
6327 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for capng_clear in -lcap-ng" >&5 | |
f9e10201 JD |
6328 | $as_echo_n "checking for capng_clear in -lcap-ng... " >&6; } |
6329 | if ${ac_cv_lib_cap_ng_capng_clear+:} false; then : | |
6330 | $as_echo_n "(cached) " >&6 | |
6331 | else | |
6332 | ac_check_lib_save_LIBS=$LIBS | |
6333 | LIBS="-lcap-ng $LIBS" | |
6334 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6335 | /* end confdefs.h. */ | |
6336 | ||
6337 | /* Override any GCC internal prototype to avoid an error. | |
6338 | Use char because int might match the return type of a GCC | |
6339 | builtin and then its argument prototype would still apply. */ | |
6340 | #ifdef __cplusplus | |
6341 | extern "C" | |
6342 | #endif | |
6343 | char capng_clear (); | |
6344 | int | |
6345 | main () | |
6346 | { | |
6347 | return capng_clear (); | |
6348 | ; | |
6349 | return 0; | |
6350 | } | |
6351 | _ACEOF | |
6352 | if ac_fn_cxx_try_link "$LINENO"; then : | |
6353 | ac_cv_lib_cap_ng_capng_clear=yes | |
6354 | else | |
6355 | ac_cv_lib_cap_ng_capng_clear=no | |
6356 | fi | |
6357 | rm -f core conftest.err conftest.$ac_objext \ | |
6358 | conftest$ac_exeext conftest.$ac_ext | |
6359 | LIBS=$ac_check_lib_save_LIBS | |
6360 | fi | |
6361 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_cap_ng_capng_clear" >&5 | |
6362 | $as_echo "$ac_cv_lib_cap_ng_capng_clear" >&6; } | |
6363 | if test "x$ac_cv_lib_cap_ng_capng_clear" = xyes; then : | |
6364 | ||
6365 | $as_echo "#define HAVE_LIBCAP_NG 1" >>confdefs.h | |
ff28b140 TL |
6366 | CAPNG_LDADD="-lcap-ng"; use_libcap_ng=yes |
6367 | else | |
6368 | as_fn_error $? "libcap-ng headers found but library is missing" "$LINENO" 5 | |
f9e10201 JD |
6369 | fi |
6370 | ||
ff28b140 TL |
6371 | else |
6372 | test "$with_libcap_ng" != "yes" || as_fn_error $? "Missing libcap-ng header files" "$LINENO" 5 | |
6373 | fi | |
f9e10201 | 6374 | |
ff28b140 | 6375 | done |
f9e10201 | 6376 | |
ff28b140 TL |
6377 | ;; |
6378 | esac | |
6379 | ||
6380 | ||
6381 | ||
6382 | # Check whether --with-libsystemd was given. | |
6383 | if test "${with_libsystemd+set}" = set; then : | |
6384 | withval=$with_libsystemd; | |
f9e10201 | 6385 | else |
ff28b140 | 6386 | with_libsystemd=auto |
f9e10201 JD |
6387 | fi |
6388 | ||
6389 | ||
ff28b140 TL |
6390 | use_libsystemd=no |
6391 | case "$with_libsystemd:$host_os" in | |
6392 | auto:linux*|yes:*) | |
6393 | for ac_header in systemd/sd-daemon.h | |
6394 | do : | |
6395 | ac_fn_cxx_check_header_mongrel "$LINENO" "systemd/sd-daemon.h" "ac_cv_header_systemd_sd_daemon_h" "$ac_includes_default" | |
6396 | if test "x$ac_cv_header_systemd_sd_daemon_h" = xyes; then : | |
6397 | cat >>confdefs.h <<_ACEOF | |
6398 | #define HAVE_SYSTEMD_SD_DAEMON_H 1 | |
6399 | _ACEOF | |
6400 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for sd_notify in -lsystemd" >&5 | |
6401 | $as_echo_n "checking for sd_notify in -lsystemd... " >&6; } | |
6402 | if ${ac_cv_lib_systemd_sd_notify+:} false; then : | |
6403 | $as_echo_n "(cached) " >&6 | |
6404 | else | |
6405 | ac_check_lib_save_LIBS=$LIBS | |
6406 | LIBS="-lsystemd $LIBS" | |
6407 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6408 | /* end confdefs.h. */ | |
6409 | ||
6410 | /* Override any GCC internal prototype to avoid an error. | |
6411 | Use char because int might match the return type of a GCC | |
6412 | builtin and then its argument prototype would still apply. */ | |
6413 | #ifdef __cplusplus | |
6414 | extern "C" | |
6415 | #endif | |
6416 | char sd_notify (); | |
6417 | int | |
6418 | main () | |
6419 | { | |
6420 | return sd_notify (); | |
6421 | ; | |
6422 | return 0; | |
6423 | } | |
6424 | _ACEOF | |
6425 | if ac_fn_cxx_try_link "$LINENO"; then : | |
6426 | ac_cv_lib_systemd_sd_notify=yes | |
6427 | else | |
6428 | ac_cv_lib_systemd_sd_notify=no | |
f9e10201 | 6429 | fi |
ff28b140 TL |
6430 | rm -f core conftest.err conftest.$ac_objext \ |
6431 | conftest$ac_exeext conftest.$ac_ext | |
6432 | LIBS=$ac_check_lib_save_LIBS | |
6433 | fi | |
6434 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_systemd_sd_notify" >&5 | |
6435 | $as_echo "$ac_cv_lib_systemd_sd_notify" >&6; } | |
6436 | if test "x$ac_cv_lib_systemd_sd_notify" = xyes; then : | |
f9e10201 | 6437 | |
ff28b140 TL |
6438 | $as_echo "#define HAVE_LIBSYSTEMD 1" >>confdefs.h |
6439 | SYSTEMD_LDADD="-lsystemd"; use_libsystemd=yes | |
6440 | else | |
6441 | as_fn_error $? "libsystemd headers found but library is missing" "$LINENO" 5 | |
6442 | fi | |
f9e10201 | 6443 | |
ff28b140 TL |
6444 | else |
6445 | test "$with_libsystemd" != "yes" || as_fn_error $? "Missing libsystemd header files" "$LINENO" 5 | |
6446 | fi | |
f9e10201 | 6447 | |
ff28b140 | 6448 | done |
f9e10201 | 6449 | |
ff28b140 TL |
6450 | ;; |
6451 | esac | |
6452 | ||
6453 | ||
6454 | ||
6455 | # Check whether --with-systemdsystemunitdir was given. | |
6456 | if test "${with_systemdsystemunitdir+set}" = set; then : | |
6457 | withval=$with_systemdsystemunitdir; | |
6458 | else | |
6459 | with_systemdsystemunitdir=auto | |
f9e10201 JD |
6460 | fi |
6461 | ||
6462 | ||
ff28b140 TL |
6463 | systemdsystemunitdir= |
6464 | case "$with_systemdsystemunitdir:$use_libsystemd" in | |
6465 | auto:yes|yes:yes) | |
6466 | if test -n "$PKG_CONFIG"; then | |
6467 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for systemdsystemunitdir" >&5 | |
6468 | $as_echo_n "checking for systemdsystemunitdir... " >&6; } | |
6469 | systemdsystemunitdir=`$PKG_CONFIG --variable=systemdsystemunitdir systemd 2>/dev/null` | |
6470 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${systemdsystemunitdir:-no}" >&5 | |
6471 | $as_echo "${systemdsystemunitdir:-no}" >&6; } | |
6472 | fi | |
6473 | case "$with_systemdsystemunitdir:$sysconfdir:$systemdsystemunitdir" in | |
6474 | yes:*:) as_fn_error $? "Location of systemd service files not found" "$LINENO" 5 ;; | |
6475 | yes:*:*|auto:*:|auto:/etc:*) ;; | |
6476 | *) systemdsystemunitdir='${prefix}'$systemdsystemunitdir ;; | |
6477 | esac ;; | |
6478 | auto:*|no:*) ;; | |
6479 | *:yes) systemdsystemunitdir="$with_systemdsystemunitdir" ;; | |
6480 | *) as_fn_error $? "'--with-systemdsystemunitdir=$with_systemdsystemunitdir' now requires '--with-libsystemd'" "$LINENO" 5 ;; | |
6481 | esac | |
f9e10201 | 6482 | |
ff28b140 TL |
6483 | if test -n "$systemdsystemunitdir"; then |
6484 | INSTALL_SYSTEMDUNIT_TRUE= | |
6485 | INSTALL_SYSTEMDUNIT_FALSE='#' | |
6486 | else | |
6487 | INSTALL_SYSTEMDUNIT_TRUE='#' | |
6488 | INSTALL_SYSTEMDUNIT_FALSE= | |
6489 | fi | |
6490 | ||
6491 | ||
6492 | ||
6493 | # Check whether --with-systemdenvfile was given. | |
6494 | if test "${with_systemdenvfile+set}" = set; then : | |
6495 | withval=$with_systemdenvfile; | |
6496 | else | |
6497 | with_systemdenvfile=auto | |
6498 | fi | |
6499 | ||
6500 | ||
6501 | systemdenvfile= | |
6502 | case "$with_systemdenvfile:$cross_compiling:$systemdsystemunitdir" in | |
6503 | auto:no:?*|yes:*:?*) | |
6504 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for path of systemd EnvironmentFile" >&5 | |
6505 | $as_echo_n "checking for path of systemd EnvironmentFile... " >&6; } | |
6506 | for dir in sysconfig default; do | |
6507 | if test -d /etc/$dir; then | |
6508 | systemdenvfile='${sysconfdir}'/$dir/smartmontools | |
6509 | break | |
6510 | fi | |
6511 | done | |
6512 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${systemdenvfile:-no}" >&5 | |
6513 | $as_echo "${systemdenvfile:-no}" >&6; } | |
6514 | case "$with_systemdenvfile:$systemdenvfile" in | |
6515 | yes:) as_fn_error $? "Path of systemd EnvironmentFile not found" "$LINENO" 5 ;; | |
6516 | esac ;; | |
6517 | auto:*|no:*) ;; | |
6518 | *:*:) as_fn_error $? "Location of systemd service files not found" "$LINENO" 5 ;; | |
6519 | *) systemdenvfile="$with_systemdenvfile" | |
6520 | esac | |
6521 | ||
6522 | ||
6523 | # TODO: Remove when NVMe support is no longer EXPERIMENTAL | |
f9e10201 | 6524 | |
ff28b140 TL |
6525 | # Check whether --with-nvme-devicescan was given. |
6526 | if test "${with_nvme_devicescan+set}" = set; then : | |
6527 | withval=$with_nvme_devicescan; | |
f9e10201 JD |
6528 | fi |
6529 | ||
6530 | ||
ff28b140 | 6531 | |
f9e10201 JD |
6532 | # Check whether --with-solaris-sparc-ata was given. |
6533 | if test "${with_solaris_sparc_ata+set}" = set; then : | |
6534 | withval=$with_solaris_sparc_ata; | |
6535 | fi | |
6536 | ||
6537 | ||
6538 | case "$host:$with_solaris_sparc_ata" in | |
6539 | sparc-*-solaris*:yes) | |
6540 | if test ! -f "$srcdir/os_solaris_ata.s"; then | |
6541 | as_fn_error $? "Missing source file: $srcdir/os_solaris_ata.s | |
6542 | This file is no longer included in the source tarball but still | |
6543 | available in the SVN repository." "$LINENO" 5 | |
6544 | fi | |
6545 | ||
6546 | $as_echo "#define WITH_SOLARIS_SPARC_ATA 1" >>confdefs.h | |
6547 | ||
6548 | ;; | |
6549 | esac | |
6550 | ||
f9e10201 | 6551 | |
ff28b140 TL |
6552 | # Check whether --with-signal-func was given. |
6553 | if test "${with_signal_func+set}" = set; then : | |
6554 | withval=$with_signal_func; | |
6555 | else | |
6556 | with_signal_func=sigaction | |
6557 | fi | |
6558 | ||
f9e10201 | 6559 | |
ff28b140 TL |
6560 | case "$host:$with_signal_func" in |
6561 | *-*-mingw*:*) ;; | |
6562 | *:sigaction) | |
6563 | for ac_func in sigaction | |
6564 | do : | |
6565 | ac_fn_cxx_check_func "$LINENO" "sigaction" "ac_cv_func_sigaction" | |
6566 | if test "x$ac_cv_func_sigaction" = xyes; then : | |
6567 | cat >>confdefs.h <<_ACEOF | |
6568 | #define HAVE_SIGACTION 1 | |
f9e10201 | 6569 | _ACEOF |
ff28b140 | 6570 | |
f9e10201 | 6571 | else |
ff28b140 TL |
6572 | as_fn_error $? "Missing function 'sigaction()'. |
6573 | Try '--with-signal-func=sigset' or '--with-signal-func=signal'. | |
6574 | Please send info about your system to $PACKAGE_BUGREPORT." "$LINENO" 5 | |
f9e10201 | 6575 | fi |
ff28b140 TL |
6576 | done |
6577 | ;; | |
6578 | *:sigset) | |
6579 | for ac_func in sigset | |
6580 | do : | |
6581 | ac_fn_cxx_check_func "$LINENO" "sigset" "ac_cv_func_sigset" | |
6582 | if test "x$ac_cv_func_sigset" = xyes; then : | |
6583 | cat >>confdefs.h <<_ACEOF | |
6584 | #define HAVE_SIGSET 1 | |
6585 | _ACEOF | |
6586 | ||
6587 | else | |
6588 | as_fn_error $? "Missing function 'sigset()'" "$LINENO" 5 | |
6589 | fi | |
6590 | done | |
6591 | ;; | |
6592 | *:signal) ;; | |
6593 | *) as_fn_error $? "Invalid option '--with-signal-func=$with_signal_func'" "$LINENO" 5 ;; | |
f9e10201 JD |
6594 | esac |
6595 | ||
ff28b140 | 6596 | # TODO: Remove after smartmontools 6.7 |
f9e10201 JD |
6597 | |
6598 | # Check whether --with-working-snprintf was given. | |
6599 | if test "${with_working_snprintf+set}" = set; then : | |
ff28b140 TL |
6600 | withval=$with_working_snprintf; |
6601 | else | |
6602 | with_working_snprintf=yes | |
f9e10201 JD |
6603 | fi |
6604 | ||
6605 | ||
ff28b140 | 6606 | if test "$with_working_snprintf" = "yes"; then |
f9e10201 JD |
6607 | |
6608 | $as_echo "#define HAVE_WORKING_SNPRINTF 1" >>confdefs.h | |
6609 | fi | |
6610 | ||
ff28b140 TL |
6611 | case "$with_working_snprintf:$host_os: $CPPFLAGS $CXXFLAGS" in |
6612 | yes:mingw*:*\ -[DU]__USE_MINGW_ANSI_STDIO*) | |
6613 | ;; | |
6614 | yes:mingw*:*) | |
6615 | # Older MinGW (4.6.3) do not properly define PRI?64 if __USE_MINGW_ANSI_STDIO is set. | |
6616 | # Newer MinGW (4.9.1) set __USE_MINGW_ANSI_STDIO in first C++ include which may be too late. | |
6617 | # Set __USE_MINGW_ANSI_STDIO always and fail if not fully supported. | |
6618 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports __USE_MINGW_ANSI_STDIO" >&5 | |
6619 | $as_echo_n "checking whether $CXX supports __USE_MINGW_ANSI_STDIO... " >&6; } | |
6620 | save_CXXFLAGS=$CXXFLAGS | |
6621 | CXXFLAGS="-Wformat -Werror -D__USE_MINGW_ANSI_STDIO" | |
6622 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6623 | /* end confdefs.h. */ | |
6624 | ||
6625 | #define __STDC_FORMAT_MACROS 1 | |
6626 | #include <inttypes.h> | |
6627 | #include <stdio.h> | |
6628 | void f(char * buf1, char * buf2, size_t size) { | |
6629 | snprintf(buf1, size, "%lld", 42LL); | |
6630 | snprintf(buf2, size, "%" PRId64, (int64_t)42); | |
6631 | } | |
6632 | _ACEOF | |
6633 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
6634 | result=yes | |
6635 | else | |
6636 | result=no | |
6637 | fi | |
6638 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6639 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $result" >&5 | |
6640 | $as_echo "$result" >&6; } | |
6641 | if test "$result" != "yes"; then | |
6642 | as_fn_error $? " | |
6643 | This version of $CXX does not support __USE_MINGW_ANSI_STDIO. | |
6644 | Use option '--without-working-snprintf' to skip this check. | |
6645 | Please send info about your system to $PACKAGE_BUGREPORT. | |
6646 | " "$LINENO" 5 | |
6647 | fi | |
6648 | CXXFLAGS="-D__USE_MINGW_ANSI_STDIO $save_CXXFLAGS" | |
6649 | ;; | |
6650 | esac | |
6651 | ||
f9e10201 JD |
6652 | |
6653 | # Check whether --with-mingw-aslr was given. | |
6654 | if test "${with_mingw_aslr+set}" = set; then : | |
6655 | withval=$with_mingw_aslr; | |
6656 | else | |
6657 | with_mingw_aslr=auto | |
6658 | fi | |
6659 | ||
6660 | ||
6661 | case "$host:${LDFLAGS+set}" in | |
6662 | *-*-mingw*:) # MinGW defaults: link statically and indicate DEP and TS compatibility | |
6663 | LDFLAGS="-static -Wl,--nxcompat,--tsaware" ;; | |
6664 | esac | |
6665 | ||
6666 | case "$host:$with_mingw_aslr" in | |
6667 | x86_64-*-mingw*:auto) | |
6668 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports --high-entropy-va" >&5 | |
6669 | $as_echo_n "checking whether $CXX supports --high-entropy-va... " >&6; } | |
6670 | save_LDFLAGS=$LDFLAGS | |
6671 | LDFLAGS="$LDFLAGS -pie -Wl,--dynamicbase,-emainCRTStartup,--high-entropy-va,--image-base,0x140000000" | |
6672 | # Link libstdc++ to detect MinGW 6.3.0 problems with high --image-base | |
6673 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6674 | /* end confdefs.h. */ | |
6675 | ||
6676 | #include <string> | |
6677 | std::string s(42, '.'); | |
6678 | int | |
6679 | main () | |
6680 | { | |
6681 | ||
6682 | ; | |
6683 | return 0; | |
6684 | } | |
6685 | _ACEOF | |
6686 | if ac_fn_cxx_try_link "$LINENO"; then : | |
6687 | with_mingw_aslr=yes | |
6688 | else | |
6689 | with_mingw_aslr=no | |
6690 | fi | |
6691 | rm -f core conftest.err conftest.$ac_objext \ | |
6692 | conftest$ac_exeext conftest.$ac_ext | |
6693 | LDFLAGS=$save_LDFLAGS | |
6694 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $with_mingw_aslr" >&5 | |
6695 | $as_echo "$with_mingw_aslr" >&6; } | |
6696 | test "$with_mingw_aslr" = "yes" || with_mingw_aslr=low | |
6697 | ;; | |
6698 | esac | |
6699 | ||
6700 | case "$host:$with_mingw_aslr" in | |
6701 | x86_64-*-mingw*:yes) | |
6702 | LDFLAGS="$LDFLAGS -pie -Wl,--dynamicbase,-emainCRTStartup,--high-entropy-va,--image-base,0x140000000" ;; | |
6703 | x86_64-*-mingw*:low) | |
6704 | LDFLAGS="$LDFLAGS -pie -Wl,--dynamicbase,-emainCRTStartup" ;; | |
6705 | *-*-mingw*:auto|*-*-mingw*:yes|*-*-mingw*:low) | |
6706 | LDFLAGS="$LDFLAGS -pie -Wl,--dynamicbase,-e_mainCRTStartup" ;; | |
6707 | esac | |
6708 | ||
6709 | os_win32_manifest= | |
6710 | case "$host" in | |
6711 | *-*-mingw*) | |
6712 | # Newer MinGW may add a default manifest | |
6713 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX adds an application manifest" >&5 | |
6714 | $as_echo_n "checking whether $CXX adds an application manifest... " >&6; } | |
6715 | cc_adds_manifest=no | |
6716 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6717 | /* end confdefs.h. */ | |
6718 | ||
6719 | int | |
6720 | main () | |
6721 | { | |
6722 | ||
6723 | ; | |
6724 | return 0; | |
6725 | } | |
6726 | _ACEOF | |
6727 | if ac_fn_cxx_try_link "$LINENO"; then : | |
6728 | ||
6729 | if "$WINDRES" -O rc conftest.exe 2>/dev/null | grep '^1.*RT_MANIFEST' >/dev/null 2>&1; then | |
6730 | cc_adds_manifest=incomplete | |
6731 | # Manifest must provide a Win 10 compatibility ID | |
6732 | if "$WINDRES" -O rc conftest.exe 2>/dev/null | grep '{8e0f7a12-bfb3-4fe8-b9a5-48fd50a15a9a}' >/dev/null 2>&1; then | |
6733 | cc_adds_manifest=yes | |
6734 | fi | |
6735 | fi | |
6736 | else | |
6737 | as_fn_error $? "test compile failed" "$LINENO" 5 | |
6738 | fi | |
6739 | rm -f core conftest.err conftest.$ac_objext \ | |
6740 | conftest$ac_exeext conftest.$ac_ext | |
6741 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $cc_adds_manifest" >&5 | |
6742 | $as_echo "$cc_adds_manifest" >&6; } | |
6743 | test "$cc_adds_manifest" = "yes" || os_win32_manifest='os_win32/default.manifest' | |
6744 | ;; | |
6745 | esac | |
6746 | ||
6747 | ||
6748 | # Check whether --with-cxx11-option was given. | |
6749 | if test "${with_cxx11_option+set}" = set; then : | |
6750 | withval=$with_cxx11_option; | |
6751 | else | |
6752 | with_cxx11_option=auto | |
6753 | fi | |
6754 | ||
6755 | ||
6756 | check_cxx11_support() | |
6757 | { | |
6758 | save_CXXFLAGS=$CXXFLAGS | |
6759 | CXXFLAGS=$1 | |
6760 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6761 | /* end confdefs.h. */ | |
6762 | ||
6763 | #if __cplusplus < 201103L | |
6764 | #error false | |
6765 | #endif | |
6766 | // use some C++11 features (and return v * 42 :-) | |
6767 | auto cxx11(long v) noexcept -> decltype(v) { | |
6768 | typedef decltype(v) t; t r = v; | |
6769 | static const t a[] = { -7, -1, 1, 2, 3 }; | |
6770 | static_assert(sizeof(r) == sizeof(a[0]), "fail"); | |
6771 | auto f = [](t x, t y){ return x * y; }; | |
6772 | for (const auto & e : a) r = f(r, e); | |
6773 | return r; | |
6774 | } | |
6775 | int | |
6776 | main () | |
6777 | { | |
6778 | ||
6779 | ; | |
6780 | return 0; | |
6781 | } | |
6782 | _ACEOF | |
6783 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
6784 | CXXFLAGS=$save_CXXFLAGS; return 0 | |
6785 | else | |
6786 | CXXFLAGS=$save_CXXFLAGS; return 1 | |
6787 | fi | |
6788 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
6789 | } | |
6790 | ||
6791 | case "$with_cxx11_option" in | |
6792 | no) ;; | |
6793 | auto) | |
6794 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for $CXX option to accept C++11" >&5 | |
6795 | $as_echo_n "checking for $CXX option to accept C++11... " >&6; } | |
6796 | with_cxx11_option=unknown | |
6797 | for option in "" "-std=gnu++11" "-std=gnu++0x" "-std=c++11" "-std=c++0x"; do | |
6798 | if check_cxx11_support "$option"; then with_cxx11_option=$option; break; fi | |
6799 | done | |
6800 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: ${with_cxx11_option:-none needed}" >&5 | |
6801 | $as_echo "${with_cxx11_option:-none needed}" >&6; } | |
6802 | test "$with_cxx11_option" != "unknown" || as_fn_error $? " | |
6803 | This version of smartmontools does not use C++11 features, but future | |
6804 | versions possibly will. | |
6805 | This script was unable to determine a compiler option to enable C++11. | |
6806 | Use option '--with-cxx11-option=OPTION' to specify the compiler option | |
ff28b140 | 6807 | (it will be used in the actual build only if '--with-cxx11-regex' is set). |
f9e10201 JD |
6808 | Use option '--without-cxx11-option' to suppress this error message if the |
6809 | compiler lacks C++11 support. | |
6810 | In both cases, please send info about compiler and platform to | |
6811 | $PACKAGE_BUGREPORT - Thanks!" "$LINENO" 5 | |
6812 | ;; | |
6813 | *) | |
6814 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX $with_cxx11_option accepts C++11" >&5 | |
6815 | $as_echo_n "checking whether $CXX $with_cxx11_option accepts C++11... " >&6; } | |
6816 | res=no; check_cxx11_support "$with_cxx11_option" && res=yes | |
6817 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $res" >&5 | |
6818 | $as_echo "$res" >&6; } | |
6819 | test "$res" = "yes" || as_fn_error $? "$CXX $with_cxx11_option does not accept C++11" "$LINENO" 5 | |
6820 | ;; | |
6821 | esac | |
6822 | ||
6823 | ||
ff28b140 TL |
6824 | # Check whether --with-cxx11-regex was given. |
6825 | if test "${with_cxx11_regex+set}" = set; then : | |
6826 | withval=$with_cxx11_regex; | |
6827 | fi | |
6828 | ||
6829 | ||
6830 | need_regex=no | |
6831 | if test "$with_cxx11_regex" = "yes"; then | |
6832 | ||
6833 | $as_echo "#define WITH_CXX11_REGEX 1" >>confdefs.h | |
6834 | ||
6835 | case "$with_cxx11_option: $CXXFLAGS " in | |
6836 | no:*) as_fn_error $? "'--with-cxx11-regex' requires C++11 support" "$LINENO" 5 ;; | |
6837 | ?*:*\ $with_cxx11_option\ *) ;; | |
6838 | ?*:*) CXXFLAGS="$CXXFLAGS $with_cxx11_option" ;; | |
6839 | esac | |
6840 | else | |
6841 | for ac_func in regcomp | |
6842 | do : | |
6843 | ac_fn_cxx_check_func "$LINENO" "regcomp" "ac_cv_func_regcomp" | |
6844 | if test "x$ac_cv_func_regcomp" = xyes; then : | |
6845 | cat >>confdefs.h <<_ACEOF | |
6846 | #define HAVE_REGCOMP 1 | |
6847 | _ACEOF | |
6848 | ||
6849 | else | |
6850 | need_regex=yes | |
6851 | fi | |
6852 | done | |
6853 | ||
6854 | fi | |
6855 | if test "$need_regex" = "yes"; then | |
6856 | NEED_REGEX_TRUE= | |
6857 | NEED_REGEX_FALSE='#' | |
6858 | else | |
6859 | NEED_REGEX_TRUE='#' | |
6860 | NEED_REGEX_FALSE= | |
6861 | fi | |
6862 | ||
6863 | ||
f9e10201 JD |
6864 | releaseversion='${PACKAGE}-${VERSION}' |
6865 | ||
6866 | ||
6867 | ||
6868 | ||
6869 | # Set platform-specific modules and symbols | |
6870 | os_libs= | |
6871 | os_dltools='curl wget lynx svn' | |
6872 | os_mailer=mail | |
6873 | os_hostname="'hostname'" | |
6874 | os_dnsdomainname= | |
6875 | os_nisdomainname="'domainname'" | |
6876 | os_darwin=no | |
6877 | os_solaris=no | |
6878 | os_win32=no | |
6879 | os_win32_mingw=no | |
6880 | os_win64=no | |
6881 | os_man_filter= | |
ff28b140 | 6882 | os_nvme_devicescan= |
f9e10201 JD |
6883 | case "${host}" in |
6884 | *-*-linux*) | |
6885 | os_deps='os_linux.o cciss.o dev_areca.o' | |
6886 | os_dnsdomainname="'dnsdomainname' 'hostname -d'" | |
6887 | os_nisdomainname="'nisdomainname' 'hostname -y' 'domainname'" | |
6888 | os_man_filter=Linux | |
ff28b140 | 6889 | os_nvme_devicescan=yes |
f9e10201 JD |
6890 | ;; |
6891 | *-*-freebsd*|*-*-dragonfly*|*-*-kfreebsd*-gnu*) | |
6892 | os_deps='os_freebsd.o cciss.o dev_areca.o' | |
ff28b140 | 6893 | os_libs='-lcam -lsbuf' |
f9e10201 JD |
6894 | os_dltools='curl wget lynx fetch svn' |
6895 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking for libusb20_dev_get_device_desc in -lusb" >&5 | |
6896 | $as_echo_n "checking for libusb20_dev_get_device_desc in -lusb... " >&6; } | |
6897 | if ${ac_cv_lib_usb_libusb20_dev_get_device_desc+:} false; then : | |
6898 | $as_echo_n "(cached) " >&6 | |
6899 | else | |
6900 | ac_check_lib_save_LIBS=$LIBS | |
6901 | LIBS="-lusb $LIBS" | |
6902 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
6903 | /* end confdefs.h. */ | |
6904 | ||
6905 | /* Override any GCC internal prototype to avoid an error. | |
6906 | Use char because int might match the return type of a GCC | |
6907 | builtin and then its argument prototype would still apply. */ | |
6908 | #ifdef __cplusplus | |
6909 | extern "C" | |
6910 | #endif | |
6911 | char libusb20_dev_get_device_desc (); | |
6912 | int | |
6913 | main () | |
6914 | { | |
6915 | return libusb20_dev_get_device_desc (); | |
6916 | ; | |
6917 | return 0; | |
6918 | } | |
6919 | _ACEOF | |
6920 | if ac_fn_cxx_try_link "$LINENO"; then : | |
6921 | ac_cv_lib_usb_libusb20_dev_get_device_desc=yes | |
6922 | else | |
6923 | ac_cv_lib_usb_libusb20_dev_get_device_desc=no | |
6924 | fi | |
6925 | rm -f core conftest.err conftest.$ac_objext \ | |
6926 | conftest$ac_exeext conftest.$ac_ext | |
6927 | LIBS=$ac_check_lib_save_LIBS | |
6928 | fi | |
6929 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $ac_cv_lib_usb_libusb20_dev_get_device_desc" >&5 | |
6930 | $as_echo "$ac_cv_lib_usb_libusb20_dev_get_device_desc" >&6; } | |
6931 | if test "x$ac_cv_lib_usb_libusb20_dev_get_device_desc" = xyes; then : | |
6932 | cat >>confdefs.h <<_ACEOF | |
6933 | #define HAVE_LIBUSB 1 | |
6934 | _ACEOF | |
6935 | ||
6936 | LIBS="-lusb $LIBS" | |
6937 | ||
6938 | fi | |
6939 | ||
6940 | os_man_filter=FreeBSD | |
ff28b140 | 6941 | os_nvme_devicescan=no |
f9e10201 JD |
6942 | ;; |
6943 | sparc-*-solaris*) | |
6944 | os_deps='os_solaris.o' | |
6945 | test "$with_solaris_sparc_ata" = "yes" \ | |
6946 | && os_deps="$os_deps os_solaris_ata.o" | |
6947 | os_mailer='mailx' | |
6948 | os_solaris=yes | |
6949 | os_man_filter=Solaris | |
6950 | ;; | |
6951 | *-pc-solaris*) | |
6952 | os_deps='os_solaris.o' | |
6953 | os_mailer='mailx' | |
6954 | os_solaris=yes | |
6955 | os_man_filter=Solaris | |
6956 | ;; | |
6957 | *-*-netbsd*) | |
6958 | os_deps='os_netbsd.o' | |
6959 | os_libs='-lutil' | |
6960 | os_man_filter=NetBSD | |
ff28b140 | 6961 | os_nvme_devicescan=no |
f9e10201 JD |
6962 | ;; |
6963 | *-*-openbsd*) | |
6964 | os_deps='os_openbsd.o' | |
6965 | os_libs='-lutil' | |
6966 | os_dltools='curl wget lynx ftp svn' | |
6967 | os_man_filter=OpenBSD | |
6968 | ;; | |
6969 | *-*-cygwin*) | |
6970 | os_deps='os_win32.o dev_areca.o' | |
6971 | os_mailer='email' | |
6972 | os_hostname="'hostname' 'echo "'"${HOSTNAME?unset}"'"'" | |
6973 | os_dnsdomainname="'dnsdomainname' 'hostname -d' 'echo "'"${USERDNSDOMAIN?unset}"'"'" | |
6974 | os_nisdomainname= | |
6975 | os_win32=yes | |
6976 | os_man_filter=Cygwin | |
ff28b140 | 6977 | os_nvme_devicescan=yes |
f9e10201 JD |
6978 | ;; |
6979 | x86_64-*-mingw*) | |
6980 | os_deps='os_win32.o dev_areca.o' | |
6981 | os_win32=yes | |
6982 | os_win32_mingw=yes | |
6983 | os_win64=yes | |
6984 | os_man_filter=Windows | |
ff28b140 | 6985 | os_nvme_devicescan=yes |
f9e10201 JD |
6986 | ;; |
6987 | *-*-mingw*) | |
6988 | os_deps='os_win32.o dev_areca.o' | |
6989 | os_win32=yes | |
6990 | os_win32_mingw=yes | |
6991 | os_man_filter=Windows | |
ff28b140 | 6992 | os_nvme_devicescan=yes |
f9e10201 JD |
6993 | ;; |
6994 | *-*-darwin*) | |
6995 | os_deps='os_darwin.o' | |
6996 | os_libs='-framework CoreFoundation -framework IOKit' | |
6997 | os_darwin=yes | |
6998 | os_man_filter=Darwin | |
ff28b140 | 6999 | os_nvme_devicescan=no |
f9e10201 JD |
7000 | ;; |
7001 | *-*-nto-qnx*) | |
7002 | os_deps='os_qnxnto.o' | |
7003 | ;; | |
7004 | *-*-os2-*) | |
7005 | os_deps='os_os2.o' | |
7006 | ;; | |
7007 | *) | |
7008 | os_deps='os_generic.o' | |
7009 | ;; | |
7010 | esac | |
7011 | ||
7012 | # Replace if '--with-os-deps' was specified | |
7013 | test -z "$with_os_deps" || os_deps="$with_os_deps" | |
7014 | ||
7015 | # Check if we need adapter to old interface (dev_legacy.cpp) | |
7016 | os_src=`echo "${os_deps}"|sed -n 's,^\([^ .]*\)\.o.*$,\1.cpp,p'` | |
7017 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${os_src} uses new interface" >&5 | |
7018 | $as_echo_n "checking whether ${os_src} uses new interface... " >&6; } | |
7019 | if grep "smart_interface" "${srcdir}/${os_src}" >/dev/null 2>&1; then | |
7020 | os_new_interface=yes | |
7021 | else | |
7022 | os_new_interface=no | |
7023 | os_deps="${os_deps} dev_legacy.o" | |
7024 | ||
7025 | $as_echo "#define OLD_INTERFACE 1" >>confdefs.h | |
7026 | ||
7027 | fi | |
7028 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $os_new_interface" >&5 | |
7029 | $as_echo "$os_new_interface" >&6; } | |
7030 | ||
ff28b140 TL |
7031 | # TODO: Remove when NVMe support is no longer EXPERIMENTAL |
7032 | case "$os_nvme_devicescan:${with_nvme_devicescan+set}" in | |
7033 | no:|yes:) | |
7034 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether NVMe device scanning could be safely enabled" >&5 | |
7035 | $as_echo_n "checking whether NVMe device scanning could be safely enabled... " >&6; } | |
7036 | with_nvme_devicescan=$os_nvme_devicescan | |
7037 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $os_nvme_devicescan" >&5 | |
7038 | $as_echo "$os_nvme_devicescan" >&6; } | |
7039 | os_nvme_devicescan=used ;; | |
7040 | esac | |
7041 | ||
7042 | if test "$with_nvme_devicescan" = "yes"; then | |
7043 | ||
7044 | $as_echo "#define WITH_NVME_DEVICESCAN 1" >>confdefs.h | |
7045 | ||
7046 | fi | |
7047 | ||
f9e10201 JD |
7048 | |
7049 | ||
7050 | ||
7051 | ||
7052 | ||
7053 | ||
7054 | ||
7055 | ||
7056 | ||
7057 | ||
7058 | # Create drivedb.h update branch name from version: 5.41[.X] -> RELEASE_5_41_DRIVEDB | |
7059 | DRIVEDB_BRANCH=`echo "$drivedb_version" | sed 's,^\([0-9]*\.[0-9]*\)\..*$,\1,' \ | |
7060 | | sed -n 's,^\([0-9][0-9]*\)\.\([0-9][0-9]*\)$,RELEASE_\1_\2_DRIVEDB,p'` | |
7061 | if test -z "$DRIVEDB_BRANCH"; then | |
7062 | as_fn_error $? "Unable to create DRIVEDB_BRANCH for version: $drivedb_version" "$LINENO" 5 | |
7063 | fi | |
7064 | ||
7065 | ||
7066 | # Enable platform-specific makefile sections | |
7067 | if test "$os_darwin" = "yes"; then | |
7068 | OS_DARWIN_TRUE= | |
7069 | OS_DARWIN_FALSE='#' | |
7070 | else | |
7071 | OS_DARWIN_TRUE='#' | |
7072 | OS_DARWIN_FALSE= | |
7073 | fi | |
7074 | ||
7075 | if test "$os_solaris" = "yes"; then | |
7076 | OS_SOLARIS_TRUE= | |
7077 | OS_SOLARIS_FALSE='#' | |
7078 | else | |
7079 | OS_SOLARIS_TRUE='#' | |
7080 | OS_SOLARIS_FALSE= | |
7081 | fi | |
7082 | ||
7083 | if test "$os_win32" = "yes"; then | |
7084 | OS_WIN32_TRUE= | |
7085 | OS_WIN32_FALSE='#' | |
7086 | else | |
7087 | OS_WIN32_TRUE='#' | |
7088 | OS_WIN32_FALSE= | |
7089 | fi | |
7090 | ||
7091 | if test "$os_win32_mingw" = "yes"; then | |
7092 | OS_WIN32_MINGW_TRUE= | |
7093 | OS_WIN32_MINGW_FALSE='#' | |
7094 | else | |
7095 | OS_WIN32_MINGW_TRUE='#' | |
7096 | OS_WIN32_MINGW_FALSE= | |
7097 | fi | |
7098 | ||
7099 | if test -n "$MAKENSIS"; then | |
7100 | OS_WIN32_NSIS_TRUE= | |
7101 | OS_WIN32_NSIS_FALSE='#' | |
7102 | else | |
7103 | OS_WIN32_NSIS_TRUE='#' | |
7104 | OS_WIN32_NSIS_FALSE= | |
7105 | fi | |
7106 | ||
7107 | if test "$os_win64" = "yes"; then | |
7108 | OS_WIN64_TRUE= | |
7109 | OS_WIN64_FALSE='#' | |
7110 | else | |
7111 | OS_WIN64_TRUE='#' | |
7112 | OS_WIN64_FALSE= | |
7113 | fi | |
7114 | ||
7115 | ||
7116 | if test "$GXX" = "yes"; then | |
ff28b140 | 7117 | orig_CXXFLAGS=$CXXFLAGS |
f9e10201 JD |
7118 | # Add -Wall and -W[extra] if its not already specified |
7119 | case " $CXXFLAGS " in | |
7120 | *\ -Wall\ *) ;; | |
7121 | *) CXXFLAGS="$CXXFLAGS -Wall" ;; | |
7122 | esac | |
7123 | case " $CXXFLAGS " in | |
7124 | *\ -W\ *|*\ -Wextra\ *) ;; | |
7125 | *) CXXFLAGS="$CXXFLAGS -W" ;; | |
7126 | esac | |
7127 | # Add -Wformat=2 (GCC 3.0) -fstack-protector[-strong] (GCC 4.1[4.9]) if supported | |
ff28b140 TL |
7128 | # and no -W or -f option was set in configure cmdline (TODO: -Wformat-signedness) |
7129 | for option in "-Wformat=2" "-fstack-protector-strong" "-fstack-protector"; do | |
7130 | case " $orig_CXXFLAGS:$option" in *\ -W*:-W*|*\ -f*:-f*) continue ;; esac | |
7131 | case " $CXXFLAGS:$option" in *\ -fstack-p*:-fstack-p*) continue ;; esac | |
7132 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether $CXX supports $option" >&5 | |
f9e10201 | 7133 | $as_echo_n "checking whether $CXX supports $option... " >&6; } |
ff28b140 TL |
7134 | save_CXXFLAGS=$CXXFLAGS |
7135 | CXXFLAGS="$CXXFLAGS $option" | |
7136 | cat confdefs.h - <<_ACEOF >conftest.$ac_ext | |
f9e10201 JD |
7137 | /* end confdefs.h. */ |
7138 | ||
7139 | int | |
7140 | main () | |
7141 | { | |
7142 | ||
7143 | ; | |
7144 | return 0; | |
7145 | } | |
7146 | _ACEOF | |
7147 | if ac_fn_cxx_try_compile "$LINENO"; then : | |
7148 | res=yes | |
7149 | else | |
7150 | res=no; CXXFLAGS=$save_CXXFLAGS | |
7151 | fi | |
7152 | rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext | |
ff28b140 | 7153 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: $res" >&5 |
f9e10201 | 7154 | $as_echo "$res" >&6; } |
ff28b140 | 7155 | done |
f9e10201 JD |
7156 | else |
7157 | # We are NOT using gcc, so enable host-specific compiler flags | |
7158 | case "${host}" in | |
7159 | sparc*-*-solaris*) | |
7160 | # Tell the Solaris/SPARC C++ compiler about packed ATA structures | |
7161 | case " $CXXFLAGS" in | |
7162 | *\ -xmemalign*) ;; | |
7163 | *) CXXFLAGS="-xmemalign=1i $CXXFLAGS" ;; | |
7164 | esac ;; | |
7165 | esac | |
7166 | case "${host}" in | |
7167 | *-*-solaris*) | |
7168 | # Turn on optimization if user has not explicitly set its value | |
7169 | case " $CXXFLAGS" in | |
7170 | *\ -xO*) ;; | |
7171 | *) CXXFLAGS="-xO2 $CXXFLAGS" ;; | |
7172 | esac | |
7173 | # Suppress trivial warnings | |
7174 | case " $CXXFLAGS" in | |
7175 | *\ -erroff*) ;; | |
7176 | *) CXXFLAGS="-erroff=%none,wbadinitl,wbadasgl,badargtypel2w,badargtype2w $CXXFLAGS" ;; | |
7177 | esac ;; | |
7178 | esac | |
7179 | fi | |
7180 | ||
7181 | ||
7182 | cat >>confdefs.h <<_ACEOF | |
7183 | #define SMARTMONTOOLS_BUILD_HOST "${host}" | |
7184 | _ACEOF | |
7185 | ||
7186 | ||
7187 | ||
7188 | ||
7189 | ac_config_files="$ac_config_files Makefile" | |
7190 | ||
7191 | cat >confcache <<\_ACEOF | |
7192 | # This file is a shell script that caches the results of configure | |
7193 | # tests run on this system so they can be shared between configure | |
7194 | # scripts and configure runs, see configure's option --config-cache. | |
7195 | # It is not useful on other systems. If it contains results you don't | |
7196 | # want to keep, you may remove or edit it. | |
7197 | # | |
7198 | # config.status only pays attention to the cache file if you give it | |
7199 | # the --recheck option to rerun configure. | |
7200 | # | |
7201 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
7202 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
7203 | # following values. | |
7204 | ||
7205 | _ACEOF | |
7206 | ||
7207 | # The following way of writing the cache mishandles newlines in values, | |
7208 | # but we know of no workaround that is simple, portable, and efficient. | |
7209 | # So, we kill variables containing newlines. | |
7210 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
7211 | # and sets the high bit in the cache file unless we assign to the vars. | |
7212 | ( | |
7213 | for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do | |
7214 | eval ac_val=\$$ac_var | |
7215 | case $ac_val in #( | |
7216 | *${as_nl}*) | |
7217 | case $ac_var in #( | |
7218 | *_cv_*) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: cache variable $ac_var contains a newline" >&5 | |
7219 | $as_echo "$as_me: WARNING: cache variable $ac_var contains a newline" >&2;} ;; | |
7220 | esac | |
7221 | case $ac_var in #( | |
7222 | _ | IFS | as_nl) ;; #( | |
7223 | BASH_ARGV | BASH_SOURCE) eval $ac_var= ;; #( | |
7224 | *) { eval $ac_var=; unset $ac_var;} ;; | |
7225 | esac ;; | |
7226 | esac | |
7227 | done | |
7228 | ||
7229 | (set) 2>&1 | | |
7230 | case $as_nl`(ac_space=' '; set) 2>&1` in #( | |
7231 | *${as_nl}ac_space=\ *) | |
7232 | # `set' does not quote correctly, so add quotes: double-quote | |
7233 | # substitution turns \\\\ into \\, and sed turns \\ into \. | |
7234 | sed -n \ | |
7235 | "s/'/'\\\\''/g; | |
7236 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
7237 | ;; #( | |
7238 | *) | |
7239 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
7240 | sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p" | |
7241 | ;; | |
7242 | esac | | |
7243 | sort | |
7244 | ) | | |
7245 | sed ' | |
7246 | /^ac_cv_env_/b end | |
7247 | t clear | |
7248 | :clear | |
7249 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
7250 | t end | |
7251 | s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
7252 | :end' >>confcache | |
7253 | if diff "$cache_file" confcache >/dev/null 2>&1; then :; else | |
7254 | if test -w "$cache_file"; then | |
7255 | if test "x$cache_file" != "x/dev/null"; then | |
7256 | { $as_echo "$as_me:${as_lineno-$LINENO}: updating cache $cache_file" >&5 | |
7257 | $as_echo "$as_me: updating cache $cache_file" >&6;} | |
7258 | if test ! -f "$cache_file" || test -h "$cache_file"; then | |
7259 | cat confcache >"$cache_file" | |
7260 | else | |
7261 | case $cache_file in #( | |
7262 | */* | ?:*) | |
7263 | mv -f confcache "$cache_file"$$ && | |
7264 | mv -f "$cache_file"$$ "$cache_file" ;; #( | |
7265 | *) | |
7266 | mv -f confcache "$cache_file" ;; | |
7267 | esac | |
7268 | fi | |
7269 | fi | |
7270 | else | |
7271 | { $as_echo "$as_me:${as_lineno-$LINENO}: not updating unwritable cache $cache_file" >&5 | |
7272 | $as_echo "$as_me: not updating unwritable cache $cache_file" >&6;} | |
7273 | fi | |
7274 | fi | |
7275 | rm -f confcache | |
7276 | ||
7277 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
7278 | # Let make expand exec_prefix. | |
7279 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
7280 | ||
7281 | DEFS=-DHAVE_CONFIG_H | |
7282 | ||
7283 | ac_libobjs= | |
7284 | ac_ltlibobjs= | |
7285 | U= | |
7286 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
7287 | # 1. Remove the extension, and $U if already installed. | |
7288 | ac_script='s/\$U\././;s/\.o$//;s/\.obj$//' | |
7289 | ac_i=`$as_echo "$ac_i" | sed "$ac_script"` | |
7290 | # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR | |
7291 | # will be set to the directory where LIBOBJS objects are built. | |
7292 | as_fn_append ac_libobjs " \${LIBOBJDIR}$ac_i\$U.$ac_objext" | |
7293 | as_fn_append ac_ltlibobjs " \${LIBOBJDIR}$ac_i"'$U.lo' | |
7294 | done | |
7295 | LIBOBJS=$ac_libobjs | |
7296 | ||
7297 | LTLIBOBJS=$ac_ltlibobjs | |
7298 | ||
7299 | ||
7300 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking that generated files are newer than configure" >&5 | |
7301 | $as_echo_n "checking that generated files are newer than configure... " >&6; } | |
7302 | if test -n "$am_sleep_pid"; then | |
7303 | # Hide warnings about reused PIDs. | |
7304 | wait $am_sleep_pid 2>/dev/null | |
7305 | fi | |
7306 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: done" >&5 | |
7307 | $as_echo "done" >&6; } | |
7308 | if test -n "$EXEEXT"; then | |
7309 | am__EXEEXT_TRUE= | |
7310 | am__EXEEXT_FALSE='#' | |
7311 | else | |
7312 | am__EXEEXT_TRUE='#' | |
7313 | am__EXEEXT_FALSE= | |
7314 | fi | |
7315 | ||
7316 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then | |
7317 | as_fn_error $? "conditional \"MAINTAINER_MODE\" was never defined. | |
7318 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
7319 | fi | |
7320 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then | |
7321 | as_fn_error $? "conditional \"AMDEP\" was never defined. | |
7322 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
7323 | fi | |
7324 | if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then | |
7325 | as_fn_error $? "conditional \"am__fastdepCXX\" was never defined. | |
7326 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
7327 | fi | |
7328 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
7329 | as_fn_error $? "conditional \"am__fastdepCC\" was never defined. | |
7330 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
7331 | fi | |
7332 | if test -z "${am__fastdepCCAS_TRUE}" && test -z "${am__fastdepCCAS_FALSE}"; then | |
7333 | as_fn_error $? "conditional \"am__fastdepCCAS\" was never defined. | |
7334 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
7335 | fi | |
7336 | if test -z "${IS_SVN_BUILD_TRUE}" && test -z "${IS_SVN_BUILD_FALSE}"; then | |
7337 | as_fn_error $? "conditional \"IS_SVN_BUILD\" was never defined. | |
7338 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
7339 | fi | |
7340 | if test -z "${NEED_GETOPT_LONG_TRUE}" && test -z "${NEED_GETOPT_LONG_FALSE}"; then | |
7341 | as_fn_error $? "conditional \"NEED_GETOPT_LONG\" was never defined. | |
7342 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
7343 | fi | |
f9e10201 | 7344 | |
f9e10201 JD |
7345 | if test -z "${INSTALL_INITSCRIPT_TRUE}" && test -z "${INSTALL_INITSCRIPT_FALSE}"; then |
7346 | as_fn_error $? "conditional \"INSTALL_INITSCRIPT\" was never defined. | |
7347 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
7348 | fi | |
7349 | if test -z "${ENABLE_DRIVEDB_TRUE}" && test -z "${ENABLE_DRIVEDB_FALSE}"; then | |
7350 | as_fn_error $? "conditional \"ENABLE_DRIVEDB\" was never defined. | |
7351 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
7352 | fi | |
7353 | if test -z "${ENABLE_UPDATE_SMART_DRIVEDB_TRUE}" && test -z "${ENABLE_UPDATE_SMART_DRIVEDB_FALSE}"; then | |
7354 | as_fn_error $? "conditional \"ENABLE_UPDATE_SMART_DRIVEDB\" was never defined. | |
7355 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
7356 | fi | |
7357 | if test -z "${ENABLE_SCRIPTPATH_TRUE}" && test -z "${ENABLE_SCRIPTPATH_FALSE}"; then | |
7358 | as_fn_error $? "conditional \"ENABLE_SCRIPTPATH\" was never defined. | |
7359 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
7360 | fi | |
7361 | if test -z "${ENABLE_SAVESTATES_TRUE}" && test -z "${ENABLE_SAVESTATES_FALSE}"; then | |
7362 | as_fn_error $? "conditional \"ENABLE_SAVESTATES\" was never defined. | |
7363 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
7364 | fi | |
7365 | if test -z "${ENABLE_ATTRIBUTELOG_TRUE}" && test -z "${ENABLE_ATTRIBUTELOG_FALSE}"; then | |
7366 | as_fn_error $? "conditional \"ENABLE_ATTRIBUTELOG\" was never defined. | |
7367 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
7368 | fi | |
ff28b140 TL |
7369 | if test -z "${INSTALL_SYSTEMDUNIT_TRUE}" && test -z "${INSTALL_SYSTEMDUNIT_FALSE}"; then |
7370 | as_fn_error $? "conditional \"INSTALL_SYSTEMDUNIT\" was never defined. | |
7371 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
7372 | fi | |
7373 | if test -z "${NEED_REGEX_TRUE}" && test -z "${NEED_REGEX_FALSE}"; then | |
7374 | as_fn_error $? "conditional \"NEED_REGEX\" was never defined. | |
7375 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
7376 | fi | |
f9e10201 JD |
7377 | if test -z "${OS_DARWIN_TRUE}" && test -z "${OS_DARWIN_FALSE}"; then |
7378 | as_fn_error $? "conditional \"OS_DARWIN\" was never defined. | |
7379 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
7380 | fi | |
7381 | if test -z "${OS_SOLARIS_TRUE}" && test -z "${OS_SOLARIS_FALSE}"; then | |
7382 | as_fn_error $? "conditional \"OS_SOLARIS\" was never defined. | |
7383 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
7384 | fi | |
7385 | if test -z "${OS_WIN32_TRUE}" && test -z "${OS_WIN32_FALSE}"; then | |
7386 | as_fn_error $? "conditional \"OS_WIN32\" was never defined. | |
7387 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
7388 | fi | |
7389 | if test -z "${OS_WIN32_MINGW_TRUE}" && test -z "${OS_WIN32_MINGW_FALSE}"; then | |
7390 | as_fn_error $? "conditional \"OS_WIN32_MINGW\" was never defined. | |
7391 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
7392 | fi | |
7393 | if test -z "${OS_WIN32_NSIS_TRUE}" && test -z "${OS_WIN32_NSIS_FALSE}"; then | |
7394 | as_fn_error $? "conditional \"OS_WIN32_NSIS\" was never defined. | |
7395 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
7396 | fi | |
7397 | if test -z "${OS_WIN64_TRUE}" && test -z "${OS_WIN64_FALSE}"; then | |
7398 | as_fn_error $? "conditional \"OS_WIN64\" was never defined. | |
7399 | Usually this means the macro was only invoked conditionally." "$LINENO" 5 | |
7400 | fi | |
7401 | ||
7402 | : "${CONFIG_STATUS=./config.status}" | |
7403 | ac_write_fail=0 | |
7404 | ac_clean_files_save=$ac_clean_files | |
7405 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
7406 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $CONFIG_STATUS" >&5 | |
7407 | $as_echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
7408 | as_write_fail=0 | |
7409 | cat >$CONFIG_STATUS <<_ASEOF || as_write_fail=1 | |
7410 | #! $SHELL | |
7411 | # Generated by $as_me. | |
7412 | # Run this file to recreate the current configuration. | |
7413 | # Compiler output produced by configure, useful for debugging | |
7414 | # configure, is in config.log if it exists. | |
7415 | ||
7416 | debug=false | |
7417 | ac_cs_recheck=false | |
7418 | ac_cs_silent=false | |
7419 | ||
7420 | SHELL=\${CONFIG_SHELL-$SHELL} | |
7421 | export SHELL | |
7422 | _ASEOF | |
7423 | cat >>$CONFIG_STATUS <<\_ASEOF || as_write_fail=1 | |
7424 | ## -------------------- ## | |
7425 | ## M4sh Initialization. ## | |
7426 | ## -------------------- ## | |
7427 | ||
7428 | # Be more Bourne compatible | |
7429 | DUALCASE=1; export DUALCASE # for MKS sh | |
7430 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then : | |
7431 | emulate sh | |
7432 | NULLCMD=: | |
7433 | # Pre-4.2 versions of Zsh do word splitting on ${1+"$@"}, which | |
7434 | # is contrary to our usage. Disable this feature. | |
7435 | alias -g '${1+"$@"}'='"$@"' | |
7436 | setopt NO_GLOB_SUBST | |
7437 | else | |
7438 | case `(set -o) 2>/dev/null` in #( | |
7439 | *posix*) : | |
7440 | set -o posix ;; #( | |
7441 | *) : | |
7442 | ;; | |
7443 | esac | |
7444 | fi | |
7445 | ||
7446 | ||
7447 | as_nl=' | |
7448 | ' | |
7449 | export as_nl | |
7450 | # Printing a long string crashes Solaris 7 /usr/bin/printf. | |
7451 | as_echo='\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\\' | |
7452 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo | |
7453 | as_echo=$as_echo$as_echo$as_echo$as_echo$as_echo$as_echo | |
7454 | # Prefer a ksh shell builtin over an external printf program on Solaris, | |
7455 | # but without wasting forks for bash or zsh. | |
7456 | if test -z "$BASH_VERSION$ZSH_VERSION" \ | |
7457 | && (test "X`print -r -- $as_echo`" = "X$as_echo") 2>/dev/null; then | |
7458 | as_echo='print -r --' | |
7459 | as_echo_n='print -rn --' | |
7460 | elif (test "X`printf %s $as_echo`" = "X$as_echo") 2>/dev/null; then | |
7461 | as_echo='printf %s\n' | |
7462 | as_echo_n='printf %s' | |
7463 | else | |
7464 | if test "X`(/usr/ucb/echo -n -n $as_echo) 2>/dev/null`" = "X-n $as_echo"; then | |
7465 | as_echo_body='eval /usr/ucb/echo -n "$1$as_nl"' | |
7466 | as_echo_n='/usr/ucb/echo -n' | |
7467 | else | |
7468 | as_echo_body='eval expr "X$1" : "X\\(.*\\)"' | |
7469 | as_echo_n_body='eval | |
7470 | arg=$1; | |
7471 | case $arg in #( | |
7472 | *"$as_nl"*) | |
7473 | expr "X$arg" : "X\\(.*\\)$as_nl"; | |
7474 | arg=`expr "X$arg" : ".*$as_nl\\(.*\\)"`;; | |
7475 | esac; | |
7476 | expr "X$arg" : "X\\(.*\\)" | tr -d "$as_nl" | |
7477 | ' | |
7478 | export as_echo_n_body | |
7479 | as_echo_n='sh -c $as_echo_n_body as_echo' | |
7480 | fi | |
7481 | export as_echo_body | |
7482 | as_echo='sh -c $as_echo_body as_echo' | |
7483 | fi | |
7484 | ||
7485 | # The user is always right. | |
7486 | if test "${PATH_SEPARATOR+set}" != set; then | |
7487 | PATH_SEPARATOR=: | |
7488 | (PATH='/bin;/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 && { | |
7489 | (PATH='/bin:/bin'; FPATH=$PATH; sh -c :) >/dev/null 2>&1 || | |
7490 | PATH_SEPARATOR=';' | |
7491 | } | |
7492 | fi | |
7493 | ||
7494 | ||
7495 | # IFS | |
7496 | # We need space, tab and new line, in precisely that order. Quoting is | |
7497 | # there to prevent editors from complaining about space-tab. | |
7498 | # (If _AS_PATH_WALK were called with IFS unset, it would disable word | |
7499 | # splitting by setting IFS to empty value.) | |
7500 | IFS=" "" $as_nl" | |
7501 | ||
7502 | # Find who we are. Look in the path if we contain no directory separator. | |
7503 | as_myself= | |
7504 | case $0 in #(( | |
7505 | *[\\/]* ) as_myself=$0 ;; | |
7506 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7507 | for as_dir in $PATH | |
7508 | do | |
7509 | IFS=$as_save_IFS | |
7510 | test -z "$as_dir" && as_dir=. | |
7511 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
7512 | done | |
7513 | IFS=$as_save_IFS | |
7514 | ||
7515 | ;; | |
7516 | esac | |
7517 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
7518 | # in which case we are not to be found in the path. | |
7519 | if test "x$as_myself" = x; then | |
7520 | as_myself=$0 | |
7521 | fi | |
7522 | if test ! -f "$as_myself"; then | |
7523 | $as_echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2 | |
7524 | exit 1 | |
7525 | fi | |
7526 | ||
7527 | # Unset variables that we do not need and which cause bugs (e.g. in | |
7528 | # pre-3.0 UWIN ksh). But do not cause bugs in bash 2.01; the "|| exit 1" | |
7529 | # suppresses any "Segmentation fault" message there. '((' could | |
7530 | # trigger a bug in pdksh 5.2.14. | |
7531 | for as_var in BASH_ENV ENV MAIL MAILPATH | |
7532 | do eval test x\${$as_var+set} = xset \ | |
7533 | && ( (unset $as_var) || exit 1) >/dev/null 2>&1 && unset $as_var || : | |
7534 | done | |
7535 | PS1='$ ' | |
7536 | PS2='> ' | |
7537 | PS4='+ ' | |
7538 | ||
7539 | # NLS nuisances. | |
7540 | LC_ALL=C | |
7541 | export LC_ALL | |
7542 | LANGUAGE=C | |
7543 | export LANGUAGE | |
7544 | ||
7545 | # CDPATH. | |
7546 | (unset CDPATH) >/dev/null 2>&1 && unset CDPATH | |
7547 | ||
7548 | ||
7549 | # as_fn_error STATUS ERROR [LINENO LOG_FD] | |
7550 | # ---------------------------------------- | |
7551 | # Output "`basename $0`: error: ERROR" to stderr. If LINENO and LOG_FD are | |
7552 | # provided, also output the error to LOG_FD, referencing LINENO. Then exit the | |
7553 | # script with STATUS, using 1 if that was 0. | |
7554 | as_fn_error () | |
7555 | { | |
7556 | as_status=$1; test $as_status -eq 0 && as_status=1 | |
7557 | if test "$4"; then | |
7558 | as_lineno=${as_lineno-"$3"} as_lineno_stack=as_lineno_stack=$as_lineno_stack | |
7559 | $as_echo "$as_me:${as_lineno-$LINENO}: error: $2" >&$4 | |
7560 | fi | |
7561 | $as_echo "$as_me: error: $2" >&2 | |
7562 | as_fn_exit $as_status | |
7563 | } # as_fn_error | |
7564 | ||
7565 | ||
7566 | # as_fn_set_status STATUS | |
7567 | # ----------------------- | |
7568 | # Set $? to STATUS, without forking. | |
7569 | as_fn_set_status () | |
7570 | { | |
7571 | return $1 | |
7572 | } # as_fn_set_status | |
7573 | ||
7574 | # as_fn_exit STATUS | |
7575 | # ----------------- | |
7576 | # Exit the shell with STATUS, even in a "trap 0" or "set -e" context. | |
7577 | as_fn_exit () | |
7578 | { | |
7579 | set +e | |
7580 | as_fn_set_status $1 | |
7581 | exit $1 | |
7582 | } # as_fn_exit | |
7583 | ||
7584 | # as_fn_unset VAR | |
7585 | # --------------- | |
7586 | # Portably unset VAR. | |
7587 | as_fn_unset () | |
7588 | { | |
7589 | { eval $1=; unset $1;} | |
7590 | } | |
7591 | as_unset=as_fn_unset | |
7592 | # as_fn_append VAR VALUE | |
7593 | # ---------------------- | |
7594 | # Append the text in VALUE to the end of the definition contained in VAR. Take | |
7595 | # advantage of any shell optimizations that allow amortized linear growth over | |
7596 | # repeated appends, instead of the typical quadratic growth present in naive | |
7597 | # implementations. | |
7598 | if (eval "as_var=1; as_var+=2; test x\$as_var = x12") 2>/dev/null; then : | |
7599 | eval 'as_fn_append () | |
7600 | { | |
7601 | eval $1+=\$2 | |
7602 | }' | |
7603 | else | |
7604 | as_fn_append () | |
7605 | { | |
7606 | eval $1=\$$1\$2 | |
7607 | } | |
7608 | fi # as_fn_append | |
7609 | ||
7610 | # as_fn_arith ARG... | |
7611 | # ------------------ | |
7612 | # Perform arithmetic evaluation on the ARGs, and store the result in the | |
7613 | # global $as_val. Take advantage of shells that can avoid forks. The arguments | |
7614 | # must be portable across $(()) and expr. | |
7615 | if (eval "test \$(( 1 + 1 )) = 2") 2>/dev/null; then : | |
7616 | eval 'as_fn_arith () | |
7617 | { | |
7618 | as_val=$(( $* )) | |
7619 | }' | |
7620 | else | |
7621 | as_fn_arith () | |
7622 | { | |
7623 | as_val=`expr "$@" || test $? -eq 1` | |
7624 | } | |
7625 | fi # as_fn_arith | |
7626 | ||
7627 | ||
7628 | if expr a : '\(a\)' >/dev/null 2>&1 && | |
7629 | test "X`expr 00001 : '.*\(...\)'`" = X001; then | |
7630 | as_expr=expr | |
7631 | else | |
7632 | as_expr=false | |
7633 | fi | |
7634 | ||
7635 | if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then | |
7636 | as_basename=basename | |
7637 | else | |
7638 | as_basename=false | |
7639 | fi | |
7640 | ||
7641 | if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then | |
7642 | as_dirname=dirname | |
7643 | else | |
7644 | as_dirname=false | |
7645 | fi | |
7646 | ||
7647 | as_me=`$as_basename -- "$0" || | |
7648 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
7649 | X"$0" : 'X\(//\)$' \| \ | |
7650 | X"$0" : 'X\(/\)' \| . 2>/dev/null || | |
7651 | $as_echo X/"$0" | | |
7652 | sed '/^.*\/\([^/][^/]*\)\/*$/{ | |
7653 | s//\1/ | |
7654 | q | |
7655 | } | |
7656 | /^X\/\(\/\/\)$/{ | |
7657 | s//\1/ | |
7658 | q | |
7659 | } | |
7660 | /^X\/\(\/\).*/{ | |
7661 | s//\1/ | |
7662 | q | |
7663 | } | |
7664 | s/.*/./; q'` | |
7665 | ||
7666 | # Avoid depending upon Character Ranges. | |
7667 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
7668 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
7669 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
7670 | as_cr_digits='0123456789' | |
7671 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
7672 | ||
7673 | ECHO_C= ECHO_N= ECHO_T= | |
7674 | case `echo -n x` in #((((( | |
7675 | -n*) | |
7676 | case `echo 'xy\c'` in | |
7677 | *c*) ECHO_T=' ';; # ECHO_T is single tab character. | |
7678 | xy) ECHO_C='\c';; | |
7679 | *) echo `echo ksh88 bug on AIX 6.1` > /dev/null | |
7680 | ECHO_T=' ';; | |
7681 | esac;; | |
7682 | *) | |
7683 | ECHO_N='-n';; | |
7684 | esac | |
7685 | ||
7686 | rm -f conf$$ conf$$.exe conf$$.file | |
7687 | if test -d conf$$.dir; then | |
7688 | rm -f conf$$.dir/conf$$.file | |
7689 | else | |
7690 | rm -f conf$$.dir | |
7691 | mkdir conf$$.dir 2>/dev/null | |
7692 | fi | |
7693 | if (echo >conf$$.file) 2>/dev/null; then | |
7694 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
7695 | as_ln_s='ln -s' | |
7696 | # ... but there are two gotchas: | |
7697 | # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail. | |
7698 | # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable. | |
7699 | # In both cases, we have to default to `cp -pR'. | |
7700 | ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe || | |
7701 | as_ln_s='cp -pR' | |
7702 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
7703 | as_ln_s=ln | |
7704 | else | |
7705 | as_ln_s='cp -pR' | |
7706 | fi | |
7707 | else | |
7708 | as_ln_s='cp -pR' | |
7709 | fi | |
7710 | rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file | |
7711 | rmdir conf$$.dir 2>/dev/null | |
7712 | ||
7713 | ||
7714 | # as_fn_mkdir_p | |
7715 | # ------------- | |
7716 | # Create "$as_dir" as a directory, including parents if necessary. | |
7717 | as_fn_mkdir_p () | |
7718 | { | |
7719 | ||
7720 | case $as_dir in #( | |
7721 | -*) as_dir=./$as_dir;; | |
7722 | esac | |
7723 | test -d "$as_dir" || eval $as_mkdir_p || { | |
7724 | as_dirs= | |
7725 | while :; do | |
7726 | case $as_dir in #( | |
7727 | *\'*) as_qdir=`$as_echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #'( | |
7728 | *) as_qdir=$as_dir;; | |
7729 | esac | |
7730 | as_dirs="'$as_qdir' $as_dirs" | |
7731 | as_dir=`$as_dirname -- "$as_dir" || | |
7732 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
7733 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
7734 | X"$as_dir" : 'X\(//\)$' \| \ | |
7735 | X"$as_dir" : 'X\(/\)' \| . 2>/dev/null || | |
7736 | $as_echo X"$as_dir" | | |
7737 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
7738 | s//\1/ | |
7739 | q | |
7740 | } | |
7741 | /^X\(\/\/\)[^/].*/{ | |
7742 | s//\1/ | |
7743 | q | |
7744 | } | |
7745 | /^X\(\/\/\)$/{ | |
7746 | s//\1/ | |
7747 | q | |
7748 | } | |
7749 | /^X\(\/\).*/{ | |
7750 | s//\1/ | |
7751 | q | |
7752 | } | |
7753 | s/.*/./; q'` | |
7754 | test -d "$as_dir" && break | |
7755 | done | |
7756 | test -z "$as_dirs" || eval "mkdir $as_dirs" | |
7757 | } || test -d "$as_dir" || as_fn_error $? "cannot create directory $as_dir" | |
7758 | ||
7759 | ||
7760 | } # as_fn_mkdir_p | |
7761 | if mkdir -p . 2>/dev/null; then | |
7762 | as_mkdir_p='mkdir -p "$as_dir"' | |
7763 | else | |
7764 | test -d ./-p && rmdir ./-p | |
7765 | as_mkdir_p=false | |
7766 | fi | |
7767 | ||
7768 | ||
7769 | # as_fn_executable_p FILE | |
7770 | # ----------------------- | |
7771 | # Test if FILE is an executable regular file. | |
7772 | as_fn_executable_p () | |
7773 | { | |
7774 | test -f "$1" && test -x "$1" | |
7775 | } # as_fn_executable_p | |
7776 | as_test_x='test -x' | |
7777 | as_executable_p=as_fn_executable_p | |
7778 | ||
7779 | # Sed expression to map a string onto a valid CPP name. | |
7780 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
7781 | ||
7782 | # Sed expression to map a string onto a valid variable name. | |
7783 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
7784 | ||
7785 | ||
7786 | exec 6>&1 | |
7787 | ## ----------------------------------- ## | |
7788 | ## Main body of $CONFIG_STATUS script. ## | |
7789 | ## ----------------------------------- ## | |
7790 | _ASEOF | |
7791 | test $as_write_fail = 0 && chmod +x $CONFIG_STATUS || ac_write_fail=1 | |
7792 | ||
7793 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
7794 | # Save the log message, to keep $0 and so on meaningful, and to | |
7795 | # report actual input values of CONFIG_FILES etc. instead of their | |
7796 | # values after options handling. | |
7797 | ac_log=" | |
ff28b140 | 7798 | This file was extended by smartmontools $as_me 7.0, which was |
f9e10201 JD |
7799 | generated by GNU Autoconf 2.69. Invocation command line was |
7800 | ||
7801 | CONFIG_FILES = $CONFIG_FILES | |
7802 | CONFIG_HEADERS = $CONFIG_HEADERS | |
7803 | CONFIG_LINKS = $CONFIG_LINKS | |
7804 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
7805 | $ $0 $@ | |
7806 | ||
7807 | on `(hostname || uname -n) 2>/dev/null | sed 1q` | |
7808 | " | |
7809 | ||
7810 | _ACEOF | |
7811 | ||
7812 | case $ac_config_files in *" | |
7813 | "*) set x $ac_config_files; shift; ac_config_files=$*;; | |
7814 | esac | |
7815 | ||
7816 | case $ac_config_headers in *" | |
7817 | "*) set x $ac_config_headers; shift; ac_config_headers=$*;; | |
7818 | esac | |
7819 | ||
7820 | ||
7821 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
7822 | # Files that config.status was made for. | |
7823 | config_files="$ac_config_files" | |
7824 | config_headers="$ac_config_headers" | |
7825 | config_commands="$ac_config_commands" | |
7826 | ||
7827 | _ACEOF | |
7828 | ||
7829 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
7830 | ac_cs_usage="\ | |
7831 | \`$as_me' instantiates files and other configuration actions | |
7832 | from templates according to the current configuration. Unless the files | |
7833 | and actions are specified as TAGs, all are instantiated by default. | |
7834 | ||
7835 | Usage: $0 [OPTION]... [TAG]... | |
7836 | ||
7837 | -h, --help print this help, then exit | |
7838 | -V, --version print version number and configuration settings, then exit | |
7839 | --config print configuration, then exit | |
7840 | -q, --quiet, --silent | |
7841 | do not print progress messages | |
7842 | -d, --debug don't remove temporary files | |
7843 | --recheck update $as_me by reconfiguring in the same conditions | |
7844 | --file=FILE[:TEMPLATE] | |
7845 | instantiate the configuration file FILE | |
7846 | --header=FILE[:TEMPLATE] | |
7847 | instantiate the configuration header FILE | |
7848 | ||
7849 | Configuration files: | |
7850 | $config_files | |
7851 | ||
7852 | Configuration headers: | |
7853 | $config_headers | |
7854 | ||
7855 | Configuration commands: | |
7856 | $config_commands | |
7857 | ||
7858 | Report bugs to <smartmontools-support@listi.jpberlin.de>." | |
7859 | ||
7860 | _ACEOF | |
7861 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
7862 | ac_cs_config="`$as_echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`" | |
7863 | ac_cs_version="\\ | |
ff28b140 | 7864 | smartmontools config.status 7.0 |
f9e10201 JD |
7865 | configured by $0, generated by GNU Autoconf 2.69, |
7866 | with options \\"\$ac_cs_config\\" | |
7867 | ||
7868 | Copyright (C) 2012 Free Software Foundation, Inc. | |
7869 | This config.status script is free software; the Free Software Foundation | |
7870 | gives unlimited permission to copy, distribute and modify it." | |
7871 | ||
7872 | ac_pwd='$ac_pwd' | |
7873 | srcdir='$srcdir' | |
7874 | INSTALL='$INSTALL' | |
7875 | MKDIR_P='$MKDIR_P' | |
7876 | AWK='$AWK' | |
7877 | test -n "\$AWK" || AWK=awk | |
7878 | _ACEOF | |
7879 | ||
7880 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
7881 | # The default lists apply if the user does not specify any file. | |
7882 | ac_need_defaults=: | |
7883 | while test $# != 0 | |
7884 | do | |
7885 | case $1 in | |
7886 | --*=?*) | |
7887 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
7888 | ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'` | |
7889 | ac_shift=: | |
7890 | ;; | |
7891 | --*=) | |
7892 | ac_option=`expr "X$1" : 'X\([^=]*\)='` | |
7893 | ac_optarg= | |
7894 | ac_shift=: | |
7895 | ;; | |
7896 | *) | |
7897 | ac_option=$1 | |
7898 | ac_optarg=$2 | |
7899 | ac_shift=shift | |
7900 | ;; | |
7901 | esac | |
7902 | ||
7903 | case $ac_option in | |
7904 | # Handling of the options. | |
7905 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
7906 | ac_cs_recheck=: ;; | |
7907 | --version | --versio | --versi | --vers | --ver | --ve | --v | -V ) | |
7908 | $as_echo "$ac_cs_version"; exit ;; | |
7909 | --config | --confi | --conf | --con | --co | --c ) | |
7910 | $as_echo "$ac_cs_config"; exit ;; | |
7911 | --debug | --debu | --deb | --de | --d | -d ) | |
7912 | debug=: ;; | |
7913 | --file | --fil | --fi | --f ) | |
7914 | $ac_shift | |
7915 | case $ac_optarg in | |
7916 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
7917 | '') as_fn_error $? "missing file argument" ;; | |
7918 | esac | |
7919 | as_fn_append CONFIG_FILES " '$ac_optarg'" | |
7920 | ac_need_defaults=false;; | |
7921 | --header | --heade | --head | --hea ) | |
7922 | $ac_shift | |
7923 | case $ac_optarg in | |
7924 | *\'*) ac_optarg=`$as_echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
7925 | esac | |
7926 | as_fn_append CONFIG_HEADERS " '$ac_optarg'" | |
7927 | ac_need_defaults=false;; | |
7928 | --he | --h) | |
7929 | # Conflict between --help and --header | |
7930 | as_fn_error $? "ambiguous option: \`$1' | |
7931 | Try \`$0 --help' for more information.";; | |
7932 | --help | --hel | -h ) | |
7933 | $as_echo "$ac_cs_usage"; exit ;; | |
7934 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
7935 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
7936 | ac_cs_silent=: ;; | |
7937 | ||
7938 | # This is an error. | |
7939 | -*) as_fn_error $? "unrecognized option: \`$1' | |
7940 | Try \`$0 --help' for more information." ;; | |
7941 | ||
7942 | *) as_fn_append ac_config_targets " $1" | |
7943 | ac_need_defaults=false ;; | |
7944 | ||
7945 | esac | |
7946 | shift | |
7947 | done | |
7948 | ||
7949 | ac_configure_extra_args= | |
7950 | ||
7951 | if $ac_cs_silent; then | |
7952 | exec 6>/dev/null | |
7953 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
7954 | fi | |
7955 | ||
7956 | _ACEOF | |
7957 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
7958 | if \$ac_cs_recheck; then | |
7959 | set X $SHELL '$0' $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
7960 | shift | |
7961 | \$as_echo "running CONFIG_SHELL=$SHELL \$*" >&6 | |
7962 | CONFIG_SHELL='$SHELL' | |
7963 | export CONFIG_SHELL | |
7964 | exec "\$@" | |
7965 | fi | |
7966 | ||
7967 | _ACEOF | |
7968 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
7969 | exec 5>>config.log | |
7970 | { | |
7971 | echo | |
7972 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
7973 | ## Running $as_me. ## | |
7974 | _ASBOX | |
7975 | $as_echo "$ac_log" | |
7976 | } >&5 | |
7977 | ||
7978 | _ACEOF | |
7979 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
7980 | # | |
7981 | # INIT-COMMANDS | |
7982 | # | |
7983 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" | |
7984 | ||
7985 | _ACEOF | |
7986 | ||
7987 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
7988 | ||
7989 | # Handling of arguments. | |
7990 | for ac_config_target in $ac_config_targets | |
7991 | do | |
7992 | case $ac_config_target in | |
7993 | "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; | |
7994 | "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
7995 | "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
7996 | ||
7997 | *) as_fn_error $? "invalid argument: \`$ac_config_target'" "$LINENO" 5;; | |
7998 | esac | |
7999 | done | |
8000 | ||
8001 | ||
8002 | # If the user did not use the arguments to specify the items to instantiate, | |
8003 | # then the envvar interface is used. Set only those that are not. | |
8004 | # We use the long form for the default assignment because of an extremely | |
8005 | # bizarre bug on SunOS 4.1.3. | |
8006 | if $ac_need_defaults; then | |
8007 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
8008 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
8009 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
8010 | fi | |
8011 | ||
8012 | # Have a temporary directory for convenience. Make it in the build tree | |
8013 | # simply because there is no reason against having it here, and in addition, | |
8014 | # creating and moving files from /tmp can sometimes cause problems. | |
8015 | # Hook for its removal unless debugging. | |
8016 | # Note that there is a small window in which the directory will not be cleaned: | |
8017 | # after its creation but before its name has been assigned to `$tmp'. | |
8018 | $debug || | |
8019 | { | |
8020 | tmp= ac_tmp= | |
8021 | trap 'exit_status=$? | |
8022 | : "${ac_tmp:=$tmp}" | |
8023 | { test ! -d "$ac_tmp" || rm -fr "$ac_tmp"; } && exit $exit_status | |
8024 | ' 0 | |
8025 | trap 'as_fn_exit 1' 1 2 13 15 | |
8026 | } | |
8027 | # Create a (secure) tmp directory for tmp files. | |
8028 | ||
8029 | { | |
8030 | tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` && | |
8031 | test -d "$tmp" | |
8032 | } || | |
8033 | { | |
8034 | tmp=./conf$$-$RANDOM | |
8035 | (umask 077 && mkdir "$tmp") | |
8036 | } || as_fn_error $? "cannot create a temporary directory in ." "$LINENO" 5 | |
8037 | ac_tmp=$tmp | |
8038 | ||
8039 | # Set up the scripts for CONFIG_FILES section. | |
8040 | # No need to generate them if there are no CONFIG_FILES. | |
8041 | # This happens for instance with `./config.status config.h'. | |
8042 | if test -n "$CONFIG_FILES"; then | |
8043 | ||
8044 | ||
8045 | ac_cr=`echo X | tr X '\015'` | |
8046 | # On cygwin, bash can eat \r inside `` if the user requested igncr. | |
8047 | # But we know of no other shell where ac_cr would be empty at this | |
8048 | # point, so we can use a bashism as a fallback. | |
8049 | if test "x$ac_cr" = x; then | |
8050 | eval ac_cr=\$\'\\r\' | |
8051 | fi | |
8052 | ac_cs_awk_cr=`$AWK 'BEGIN { print "a\rb" }' </dev/null 2>/dev/null` | |
8053 | if test "$ac_cs_awk_cr" = "a${ac_cr}b"; then | |
8054 | ac_cs_awk_cr='\\r' | |
8055 | else | |
8056 | ac_cs_awk_cr=$ac_cr | |
8057 | fi | |
8058 | ||
8059 | echo 'BEGIN {' >"$ac_tmp/subs1.awk" && | |
8060 | _ACEOF | |
8061 | ||
8062 | ||
8063 | { | |
8064 | echo "cat >conf$$subs.awk <<_ACEOF" && | |
8065 | echo "$ac_subst_vars" | sed 's/.*/&!$&$ac_delim/' && | |
8066 | echo "_ACEOF" | |
8067 | } >conf$$subs.sh || | |
8068 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
8069 | ac_delim_num=`echo "$ac_subst_vars" | grep -c '^'` | |
8070 | ac_delim='%!_!# ' | |
8071 | for ac_last_try in false false false false false :; do | |
8072 | . ./conf$$subs.sh || | |
8073 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
8074 | ||
8075 | ac_delim_n=`sed -n "s/.*$ac_delim\$/X/p" conf$$subs.awk | grep -c X` | |
8076 | if test $ac_delim_n = $ac_delim_num; then | |
8077 | break | |
8078 | elif $ac_last_try; then | |
8079 | as_fn_error $? "could not make $CONFIG_STATUS" "$LINENO" 5 | |
8080 | else | |
8081 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
8082 | fi | |
8083 | done | |
8084 | rm -f conf$$subs.sh | |
8085 | ||
8086 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
8087 | cat >>"\$ac_tmp/subs1.awk" <<\\_ACAWK && | |
8088 | _ACEOF | |
8089 | sed -n ' | |
8090 | h | |
8091 | s/^/S["/; s/!.*/"]=/ | |
8092 | p | |
8093 | g | |
8094 | s/^[^!]*!// | |
8095 | :repl | |
8096 | t repl | |
8097 | s/'"$ac_delim"'$// | |
8098 | t delim | |
8099 | :nl | |
8100 | h | |
8101 | s/\(.\{148\}\)..*/\1/ | |
8102 | t more1 | |
8103 | s/["\\]/\\&/g; s/^/"/; s/$/\\n"\\/ | |
8104 | p | |
8105 | n | |
8106 | b repl | |
8107 | :more1 | |
8108 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
8109 | p | |
8110 | g | |
8111 | s/.\{148\}// | |
8112 | t nl | |
8113 | :delim | |
8114 | h | |
8115 | s/\(.\{148\}\)..*/\1/ | |
8116 | t more2 | |
8117 | s/["\\]/\\&/g; s/^/"/; s/$/"/ | |
8118 | p | |
8119 | b | |
8120 | :more2 | |
8121 | s/["\\]/\\&/g; s/^/"/; s/$/"\\/ | |
8122 | p | |
8123 | g | |
8124 | s/.\{148\}// | |
8125 | t delim | |
8126 | ' <conf$$subs.awk | sed ' | |
8127 | /^[^""]/{ | |
8128 | N | |
8129 | s/\n// | |
8130 | } | |
8131 | ' >>$CONFIG_STATUS || ac_write_fail=1 | |
8132 | rm -f conf$$subs.awk | |
8133 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
8134 | _ACAWK | |
8135 | cat >>"\$ac_tmp/subs1.awk" <<_ACAWK && | |
8136 | for (key in S) S_is_set[key] = 1 | |
8137 | FS = "\a" | |
8138 | ||
8139 | } | |
8140 | { | |
8141 | line = $ 0 | |
8142 | nfields = split(line, field, "@") | |
8143 | substed = 0 | |
8144 | len = length(field[1]) | |
8145 | for (i = 2; i < nfields; i++) { | |
8146 | key = field[i] | |
8147 | keylen = length(key) | |
8148 | if (S_is_set[key]) { | |
8149 | value = S[key] | |
8150 | line = substr(line, 1, len) "" value "" substr(line, len + keylen + 3) | |
8151 | len += length(value) + length(field[++i]) | |
8152 | substed = 1 | |
8153 | } else | |
8154 | len += 1 + keylen | |
8155 | } | |
8156 | ||
8157 | print line | |
8158 | } | |
8159 | ||
8160 | _ACAWK | |
8161 | _ACEOF | |
8162 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
8163 | if sed "s/$ac_cr//" < /dev/null > /dev/null 2>&1; then | |
8164 | sed "s/$ac_cr\$//; s/$ac_cr/$ac_cs_awk_cr/g" | |
8165 | else | |
8166 | cat | |
8167 | fi < "$ac_tmp/subs1.awk" > "$ac_tmp/subs.awk" \ | |
8168 | || as_fn_error $? "could not setup config files machinery" "$LINENO" 5 | |
8169 | _ACEOF | |
8170 | ||
8171 | # VPATH may cause trouble with some makes, so we remove sole $(srcdir), | |
8172 | # ${srcdir} and @srcdir@ entries from VPATH if srcdir is ".", strip leading and | |
8173 | # trailing colons and then remove the whole line if VPATH becomes empty | |
8174 | # (actually we leave an empty line to preserve line numbers). | |
8175 | if test "x$srcdir" = x.; then | |
8176 | ac_vpsub='/^[ ]*VPATH[ ]*=[ ]*/{ | |
8177 | h | |
8178 | s/// | |
8179 | s/^/:/ | |
8180 | s/[ ]*$/:/ | |
8181 | s/:\$(srcdir):/:/g | |
8182 | s/:\${srcdir}:/:/g | |
8183 | s/:@srcdir@:/:/g | |
8184 | s/^:*// | |
8185 | s/:*$// | |
8186 | x | |
8187 | s/\(=[ ]*\).*/\1/ | |
8188 | G | |
8189 | s/\n// | |
8190 | s/^[^=]*=[ ]*$// | |
8191 | }' | |
8192 | fi | |
8193 | ||
8194 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
8195 | fi # test -n "$CONFIG_FILES" | |
8196 | ||
8197 | # Set up the scripts for CONFIG_HEADERS section. | |
8198 | # No need to generate them if there are no CONFIG_HEADERS. | |
8199 | # This happens for instance with `./config.status Makefile'. | |
8200 | if test -n "$CONFIG_HEADERS"; then | |
8201 | cat >"$ac_tmp/defines.awk" <<\_ACAWK || | |
8202 | BEGIN { | |
8203 | _ACEOF | |
8204 | ||
8205 | # Transform confdefs.h into an awk script `defines.awk', embedded as | |
8206 | # here-document in config.status, that substitutes the proper values into | |
8207 | # config.h.in to produce config.h. | |
8208 | ||
8209 | # Create a delimiter string that does not exist in confdefs.h, to ease | |
8210 | # handling of long lines. | |
8211 | ac_delim='%!_!# ' | |
8212 | for ac_last_try in false false :; do | |
8213 | ac_tt=`sed -n "/$ac_delim/p" confdefs.h` | |
8214 | if test -z "$ac_tt"; then | |
8215 | break | |
8216 | elif $ac_last_try; then | |
8217 | as_fn_error $? "could not make $CONFIG_HEADERS" "$LINENO" 5 | |
8218 | else | |
8219 | ac_delim="$ac_delim!$ac_delim _$ac_delim!! " | |
8220 | fi | |
8221 | done | |
8222 | ||
8223 | # For the awk script, D is an array of macro values keyed by name, | |
8224 | # likewise P contains macro parameters if any. Preserve backslash | |
8225 | # newline sequences. | |
8226 | ||
8227 | ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]* | |
8228 | sed -n ' | |
8229 | s/.\{148\}/&'"$ac_delim"'/g | |
8230 | t rset | |
8231 | :rset | |
8232 | s/^[ ]*#[ ]*define[ ][ ]*/ / | |
8233 | t def | |
8234 | d | |
8235 | :def | |
8236 | s/\\$// | |
8237 | t bsnl | |
8238 | s/["\\]/\\&/g | |
8239 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
8240 | D["\1"]=" \3"/p | |
8241 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2"/p | |
8242 | d | |
8243 | :bsnl | |
8244 | s/["\\]/\\&/g | |
8245 | s/^ \('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/P["\1"]="\2"\ | |
8246 | D["\1"]=" \3\\\\\\n"\\/p | |
8247 | t cont | |
8248 | s/^ \('"$ac_word_re"'\)[ ]*\(.*\)/D["\1"]=" \2\\\\\\n"\\/p | |
8249 | t cont | |
8250 | d | |
8251 | :cont | |
8252 | n | |
8253 | s/.\{148\}/&'"$ac_delim"'/g | |
8254 | t clear | |
8255 | :clear | |
8256 | s/\\$// | |
8257 | t bsnlc | |
8258 | s/["\\]/\\&/g; s/^/"/; s/$/"/p | |
8259 | d | |
8260 | :bsnlc | |
8261 | s/["\\]/\\&/g; s/^/"/; s/$/\\\\\\n"\\/p | |
8262 | b cont | |
8263 | ' <confdefs.h | sed ' | |
8264 | s/'"$ac_delim"'/"\\\ | |
8265 | "/g' >>$CONFIG_STATUS || ac_write_fail=1 | |
8266 | ||
8267 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
8268 | for (key in D) D_is_set[key] = 1 | |
8269 | FS = "\a" | |
8270 | } | |
8271 | /^[\t ]*#[\t ]*(define|undef)[\t ]+$ac_word_re([\t (]|\$)/ { | |
8272 | line = \$ 0 | |
8273 | split(line, arg, " ") | |
8274 | if (arg[1] == "#") { | |
8275 | defundef = arg[2] | |
8276 | mac1 = arg[3] | |
8277 | } else { | |
8278 | defundef = substr(arg[1], 2) | |
8279 | mac1 = arg[2] | |
8280 | } | |
8281 | split(mac1, mac2, "(") #) | |
8282 | macro = mac2[1] | |
8283 | prefix = substr(line, 1, index(line, defundef) - 1) | |
8284 | if (D_is_set[macro]) { | |
8285 | # Preserve the white space surrounding the "#". | |
8286 | print prefix "define", macro P[macro] D[macro] | |
8287 | next | |
8288 | } else { | |
8289 | # Replace #undef with comments. This is necessary, for example, | |
8290 | # in the case of _POSIX_SOURCE, which is predefined and required | |
8291 | # on some systems where configure will not decide to define it. | |
8292 | if (defundef == "undef") { | |
8293 | print "/*", prefix defundef, macro, "*/" | |
8294 | next | |
8295 | } | |
8296 | } | |
8297 | } | |
8298 | { print } | |
8299 | _ACAWK | |
8300 | _ACEOF | |
8301 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
8302 | as_fn_error $? "could not setup config headers machinery" "$LINENO" 5 | |
8303 | fi # test -n "$CONFIG_HEADERS" | |
8304 | ||
8305 | ||
8306 | eval set X " :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS" | |
8307 | shift | |
8308 | for ac_tag | |
8309 | do | |
8310 | case $ac_tag in | |
8311 | :[FHLC]) ac_mode=$ac_tag; continue;; | |
8312 | esac | |
8313 | case $ac_mode$ac_tag in | |
8314 | :[FHL]*:*);; | |
8315 | :L* | :C*:*) as_fn_error $? "invalid tag \`$ac_tag'" "$LINENO" 5;; | |
8316 | :[FH]-) ac_tag=-:-;; | |
8317 | :[FH]*) ac_tag=$ac_tag:$ac_tag.in;; | |
8318 | esac | |
8319 | ac_save_IFS=$IFS | |
8320 | IFS=: | |
8321 | set x $ac_tag | |
8322 | IFS=$ac_save_IFS | |
8323 | shift | |
8324 | ac_file=$1 | |
8325 | shift | |
8326 | ||
8327 | case $ac_mode in | |
8328 | :L) ac_source=$1;; | |
8329 | :[FH]) | |
8330 | ac_file_inputs= | |
8331 | for ac_f | |
8332 | do | |
8333 | case $ac_f in | |
8334 | -) ac_f="$ac_tmp/stdin";; | |
8335 | *) # Look for the file first in the build tree, then in the source tree | |
8336 | # (if the path is not absolute). The absolute path cannot be DOS-style, | |
8337 | # because $ac_f cannot contain `:'. | |
8338 | test -f "$ac_f" || | |
8339 | case $ac_f in | |
8340 | [\\/$]*) false;; | |
8341 | *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";; | |
8342 | esac || | |
8343 | as_fn_error 1 "cannot find input file: \`$ac_f'" "$LINENO" 5;; | |
8344 | esac | |
8345 | case $ac_f in *\'*) ac_f=`$as_echo "$ac_f" | sed "s/'/'\\\\\\\\''/g"`;; esac | |
8346 | as_fn_append ac_file_inputs " '$ac_f'" | |
8347 | done | |
8348 | ||
8349 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
8350 | # use $as_me), people would be surprised to read: | |
8351 | # /* config.h. Generated by config.status. */ | |
8352 | configure_input='Generated from '` | |
8353 | $as_echo "$*" | sed 's|^[^:]*/||;s|:[^:]*/|, |g' | |
8354 | `' by configure.' | |
8355 | if test x"$ac_file" != x-; then | |
8356 | configure_input="$ac_file. $configure_input" | |
8357 | { $as_echo "$as_me:${as_lineno-$LINENO}: creating $ac_file" >&5 | |
8358 | $as_echo "$as_me: creating $ac_file" >&6;} | |
8359 | fi | |
8360 | # Neutralize special characters interpreted by sed in replacement strings. | |
8361 | case $configure_input in #( | |
8362 | *\&* | *\|* | *\\* ) | |
8363 | ac_sed_conf_input=`$as_echo "$configure_input" | | |
8364 | sed 's/[\\\\&|]/\\\\&/g'`;; #( | |
8365 | *) ac_sed_conf_input=$configure_input;; | |
8366 | esac | |
8367 | ||
8368 | case $ac_tag in | |
8369 | *:-:* | *:-) cat >"$ac_tmp/stdin" \ | |
8370 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 ;; | |
8371 | esac | |
8372 | ;; | |
8373 | esac | |
8374 | ||
8375 | ac_dir=`$as_dirname -- "$ac_file" || | |
8376 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
8377 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
8378 | X"$ac_file" : 'X\(//\)$' \| \ | |
8379 | X"$ac_file" : 'X\(/\)' \| . 2>/dev/null || | |
8380 | $as_echo X"$ac_file" | | |
8381 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
8382 | s//\1/ | |
8383 | q | |
8384 | } | |
8385 | /^X\(\/\/\)[^/].*/{ | |
8386 | s//\1/ | |
8387 | q | |
8388 | } | |
8389 | /^X\(\/\/\)$/{ | |
8390 | s//\1/ | |
8391 | q | |
8392 | } | |
8393 | /^X\(\/\).*/{ | |
8394 | s//\1/ | |
8395 | q | |
8396 | } | |
8397 | s/.*/./; q'` | |
8398 | as_dir="$ac_dir"; as_fn_mkdir_p | |
8399 | ac_builddir=. | |
8400 | ||
8401 | case "$ac_dir" in | |
8402 | .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
8403 | *) | |
8404 | ac_dir_suffix=/`$as_echo "$ac_dir" | sed 's|^\.[\\/]||'` | |
8405 | # A ".." for each directory in $ac_dir_suffix. | |
8406 | ac_top_builddir_sub=`$as_echo "$ac_dir_suffix" | sed 's|/[^\\/]*|/..|g;s|/||'` | |
8407 | case $ac_top_builddir_sub in | |
8408 | "") ac_top_builddir_sub=. ac_top_build_prefix= ;; | |
8409 | *) ac_top_build_prefix=$ac_top_builddir_sub/ ;; | |
8410 | esac ;; | |
8411 | esac | |
8412 | ac_abs_top_builddir=$ac_pwd | |
8413 | ac_abs_builddir=$ac_pwd$ac_dir_suffix | |
8414 | # for backward compatibility: | |
8415 | ac_top_builddir=$ac_top_build_prefix | |
8416 | ||
8417 | case $srcdir in | |
8418 | .) # We are building in place. | |
8419 | ac_srcdir=. | |
8420 | ac_top_srcdir=$ac_top_builddir_sub | |
8421 | ac_abs_top_srcdir=$ac_pwd ;; | |
8422 | [\\/]* | ?:[\\/]* ) # Absolute name. | |
8423 | ac_srcdir=$srcdir$ac_dir_suffix; | |
8424 | ac_top_srcdir=$srcdir | |
8425 | ac_abs_top_srcdir=$srcdir ;; | |
8426 | *) # Relative name. | |
8427 | ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix | |
8428 | ac_top_srcdir=$ac_top_build_prefix$srcdir | |
8429 | ac_abs_top_srcdir=$ac_pwd/$srcdir ;; | |
8430 | esac | |
8431 | ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix | |
8432 | ||
8433 | ||
8434 | case $ac_mode in | |
8435 | :F) | |
8436 | # | |
8437 | # CONFIG_FILE | |
8438 | # | |
8439 | ||
8440 | case $INSTALL in | |
8441 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
8442 | *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;; | |
8443 | esac | |
8444 | ac_MKDIR_P=$MKDIR_P | |
8445 | case $MKDIR_P in | |
8446 | [\\/$]* | ?:[\\/]* ) ;; | |
8447 | */*) ac_MKDIR_P=$ac_top_build_prefix$MKDIR_P ;; | |
8448 | esac | |
8449 | _ACEOF | |
8450 | ||
8451 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
8452 | # If the template does not know about datarootdir, expand it. | |
8453 | # FIXME: This hack should be removed a few years after 2.60. | |
8454 | ac_datarootdir_hack=; ac_datarootdir_seen= | |
8455 | ac_sed_dataroot=' | |
8456 | /datarootdir/ { | |
8457 | p | |
8458 | q | |
8459 | } | |
8460 | /@datadir@/p | |
8461 | /@docdir@/p | |
8462 | /@infodir@/p | |
8463 | /@localedir@/p | |
8464 | /@mandir@/p' | |
8465 | case `eval "sed -n \"\$ac_sed_dataroot\" $ac_file_inputs"` in | |
8466 | *datarootdir*) ac_datarootdir_seen=yes;; | |
8467 | *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*) | |
8468 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5 | |
8469 | $as_echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;} | |
8470 | _ACEOF | |
8471 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
8472 | ac_datarootdir_hack=' | |
8473 | s&@datadir@&$datadir&g | |
8474 | s&@docdir@&$docdir&g | |
8475 | s&@infodir@&$infodir&g | |
8476 | s&@localedir@&$localedir&g | |
8477 | s&@mandir@&$mandir&g | |
8478 | s&\\\${datarootdir}&$datarootdir&g' ;; | |
8479 | esac | |
8480 | _ACEOF | |
8481 | ||
8482 | # Neutralize VPATH when `$srcdir' = `.'. | |
8483 | # Shell code in configure.ac might set extrasub. | |
8484 | # FIXME: do we really want to maintain this feature? | |
8485 | cat >>$CONFIG_STATUS <<_ACEOF || ac_write_fail=1 | |
8486 | ac_sed_extra="$ac_vpsub | |
8487 | $extrasub | |
8488 | _ACEOF | |
8489 | cat >>$CONFIG_STATUS <<\_ACEOF || ac_write_fail=1 | |
8490 | :t | |
8491 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
8492 | s|@configure_input@|$ac_sed_conf_input|;t t | |
8493 | s&@top_builddir@&$ac_top_builddir_sub&;t t | |
8494 | s&@top_build_prefix@&$ac_top_build_prefix&;t t | |
8495 | s&@srcdir@&$ac_srcdir&;t t | |
8496 | s&@abs_srcdir@&$ac_abs_srcdir&;t t | |
8497 | s&@top_srcdir@&$ac_top_srcdir&;t t | |
8498 | s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t | |
8499 | s&@builddir@&$ac_builddir&;t t | |
8500 | s&@abs_builddir@&$ac_abs_builddir&;t t | |
8501 | s&@abs_top_builddir@&$ac_abs_top_builddir&;t t | |
8502 | s&@INSTALL@&$ac_INSTALL&;t t | |
8503 | s&@MKDIR_P@&$ac_MKDIR_P&;t t | |
8504 | $ac_datarootdir_hack | |
8505 | " | |
8506 | eval sed \"\$ac_sed_extra\" "$ac_file_inputs" | $AWK -f "$ac_tmp/subs.awk" \ | |
8507 | >$ac_tmp/out || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
8508 | ||
8509 | test -z "$ac_datarootdir_hack$ac_datarootdir_seen" && | |
8510 | { ac_out=`sed -n '/\${datarootdir}/p' "$ac_tmp/out"`; test -n "$ac_out"; } && | |
8511 | { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' \ | |
8512 | "$ac_tmp/out"`; test -z "$ac_out"; } && | |
8513 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
8514 | which seems to be undefined. Please make sure it is defined" >&5 | |
8515 | $as_echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir' | |
8516 | which seems to be undefined. Please make sure it is defined" >&2;} | |
8517 | ||
8518 | rm -f "$ac_tmp/stdin" | |
8519 | case $ac_file in | |
8520 | -) cat "$ac_tmp/out" && rm -f "$ac_tmp/out";; | |
8521 | *) rm -f "$ac_file" && mv "$ac_tmp/out" "$ac_file";; | |
8522 | esac \ | |
8523 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
8524 | ;; | |
8525 | :H) | |
8526 | # | |
8527 | # CONFIG_HEADER | |
8528 | # | |
8529 | if test x"$ac_file" != x-; then | |
8530 | { | |
8531 | $as_echo "/* $configure_input */" \ | |
8532 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" | |
8533 | } >"$ac_tmp/config.h" \ | |
8534 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
8535 | if diff "$ac_file" "$ac_tmp/config.h" >/dev/null 2>&1; then | |
8536 | { $as_echo "$as_me:${as_lineno-$LINENO}: $ac_file is unchanged" >&5 | |
8537 | $as_echo "$as_me: $ac_file is unchanged" >&6;} | |
8538 | else | |
8539 | rm -f "$ac_file" | |
8540 | mv "$ac_tmp/config.h" "$ac_file" \ | |
8541 | || as_fn_error $? "could not create $ac_file" "$LINENO" 5 | |
8542 | fi | |
8543 | else | |
8544 | $as_echo "/* $configure_input */" \ | |
8545 | && eval '$AWK -f "$ac_tmp/defines.awk"' "$ac_file_inputs" \ | |
8546 | || as_fn_error $? "could not create -" "$LINENO" 5 | |
8547 | fi | |
8548 | # Compute "$ac_file"'s index in $config_headers. | |
8549 | _am_arg="$ac_file" | |
8550 | _am_stamp_count=1 | |
8551 | for _am_header in $config_headers :; do | |
8552 | case $_am_header in | |
8553 | $_am_arg | $_am_arg:* ) | |
8554 | break ;; | |
8555 | * ) | |
8556 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
8557 | esac | |
8558 | done | |
8559 | echo "timestamp for $_am_arg" >`$as_dirname -- "$_am_arg" || | |
8560 | $as_expr X"$_am_arg" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
8561 | X"$_am_arg" : 'X\(//\)[^/]' \| \ | |
8562 | X"$_am_arg" : 'X\(//\)$' \| \ | |
8563 | X"$_am_arg" : 'X\(/\)' \| . 2>/dev/null || | |
8564 | $as_echo X"$_am_arg" | | |
8565 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
8566 | s//\1/ | |
8567 | q | |
8568 | } | |
8569 | /^X\(\/\/\)[^/].*/{ | |
8570 | s//\1/ | |
8571 | q | |
8572 | } | |
8573 | /^X\(\/\/\)$/{ | |
8574 | s//\1/ | |
8575 | q | |
8576 | } | |
8577 | /^X\(\/\).*/{ | |
8578 | s//\1/ | |
8579 | q | |
8580 | } | |
8581 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
8582 | ;; | |
8583 | ||
8584 | :C) { $as_echo "$as_me:${as_lineno-$LINENO}: executing $ac_file commands" >&5 | |
8585 | $as_echo "$as_me: executing $ac_file commands" >&6;} | |
8586 | ;; | |
8587 | esac | |
8588 | ||
8589 | ||
8590 | case $ac_file$ac_mode in | |
8591 | "depfiles":C) test x"$AMDEP_TRUE" != x"" || { | |
8592 | # Older Autoconf quotes --file arguments for eval, but not when files | |
8593 | # are listed without --file. Let's play safe and only enable the eval | |
8594 | # if we detect the quoting. | |
8595 | case $CONFIG_FILES in | |
8596 | *\'*) eval set x "$CONFIG_FILES" ;; | |
8597 | *) set x $CONFIG_FILES ;; | |
8598 | esac | |
8599 | shift | |
8600 | for mf | |
8601 | do | |
8602 | # Strip MF so we end up with the name of the file. | |
8603 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
8604 | # Check whether this is an Automake generated Makefile or not. | |
8605 | # We used to match only the files named 'Makefile.in', but | |
8606 | # some people rename them; so instead we look at the file content. | |
8607 | # Grep'ing the first line is not enough: some people post-process | |
8608 | # each Makefile.in and add a new line on top of each file to say so. | |
8609 | # Grep'ing the whole file is not good either: AIX grep has a line | |
8610 | # limit of 2048, but all sed's we know have understand at least 4000. | |
8611 | if sed -n 's,^#.*generated by automake.*,X,p' "$mf" | grep X >/dev/null 2>&1; then | |
8612 | dirpart=`$as_dirname -- "$mf" || | |
8613 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
8614 | X"$mf" : 'X\(//\)[^/]' \| \ | |
8615 | X"$mf" : 'X\(//\)$' \| \ | |
8616 | X"$mf" : 'X\(/\)' \| . 2>/dev/null || | |
8617 | $as_echo X"$mf" | | |
8618 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
8619 | s//\1/ | |
8620 | q | |
8621 | } | |
8622 | /^X\(\/\/\)[^/].*/{ | |
8623 | s//\1/ | |
8624 | q | |
8625 | } | |
8626 | /^X\(\/\/\)$/{ | |
8627 | s//\1/ | |
8628 | q | |
8629 | } | |
8630 | /^X\(\/\).*/{ | |
8631 | s//\1/ | |
8632 | q | |
8633 | } | |
8634 | s/.*/./; q'` | |
8635 | else | |
8636 | continue | |
8637 | fi | |
8638 | # Extract the definition of DEPDIR, am__include, and am__quote | |
8639 | # from the Makefile without running 'make'. | |
8640 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
8641 | test -z "$DEPDIR" && continue | |
8642 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
8643 | test -z "$am__include" && continue | |
8644 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
8645 | # Find all dependency output files, they are included files with | |
8646 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
8647 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
8648 | # expansion. | |
8649 | for file in `sed -n " | |
8650 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
8651 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g'`; do | |
8652 | # Make sure the directory exists. | |
8653 | test -f "$dirpart/$file" && continue | |
8654 | fdir=`$as_dirname -- "$file" || | |
8655 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
8656 | X"$file" : 'X\(//\)[^/]' \| \ | |
8657 | X"$file" : 'X\(//\)$' \| \ | |
8658 | X"$file" : 'X\(/\)' \| . 2>/dev/null || | |
8659 | $as_echo X"$file" | | |
8660 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ | |
8661 | s//\1/ | |
8662 | q | |
8663 | } | |
8664 | /^X\(\/\/\)[^/].*/{ | |
8665 | s//\1/ | |
8666 | q | |
8667 | } | |
8668 | /^X\(\/\/\)$/{ | |
8669 | s//\1/ | |
8670 | q | |
8671 | } | |
8672 | /^X\(\/\).*/{ | |
8673 | s//\1/ | |
8674 | q | |
8675 | } | |
8676 | s/.*/./; q'` | |
8677 | as_dir=$dirpart/$fdir; as_fn_mkdir_p | |
8678 | # echo "creating $dirpart/$file" | |
8679 | echo '# dummy' > "$dirpart/$file" | |
8680 | done | |
8681 | done | |
8682 | } | |
8683 | ;; | |
8684 | ||
8685 | esac | |
8686 | done # for ac_tag | |
8687 | ||
8688 | ||
8689 | as_fn_exit 0 | |
8690 | _ACEOF | |
8691 | ac_clean_files=$ac_clean_files_save | |
8692 | ||
8693 | test $ac_write_fail = 0 || | |
8694 | as_fn_error $? "write failure creating $CONFIG_STATUS" "$LINENO" 5 | |
8695 | ||
8696 | ||
8697 | # configure is writing to config.log, and then calls config.status. | |
8698 | # config.status does its own redirection, appending to config.log. | |
8699 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
8700 | # by configure, so config.status won't be able to write to it; its | |
8701 | # output is simply discarded. So we exec the FD to /dev/null, | |
8702 | # effectively closing config.log, so it can be properly (re)opened and | |
8703 | # appended to by config.status. When coming back to configure, we | |
8704 | # need to make the FD available again. | |
8705 | if test "$no_create" != yes; then | |
8706 | ac_cs_success=: | |
8707 | ac_config_status_args= | |
8708 | test "$silent" = yes && | |
8709 | ac_config_status_args="$ac_config_status_args --quiet" | |
8710 | exec 5>/dev/null | |
8711 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
8712 | exec 5>>config.log | |
8713 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
8714 | # would make configure fail if this is the last instruction. | |
8715 | $ac_cs_success || as_fn_exit 1 | |
8716 | fi | |
8717 | if test -n "$ac_unrecognized_opts" && test "$enable_option_checking" != no; then | |
8718 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: unrecognized options: $ac_unrecognized_opts" >&5 | |
8719 | $as_echo "$as_me: WARNING: unrecognized options: $ac_unrecognized_opts" >&2;} | |
8720 | fi | |
8721 | ||
8722 | { $as_echo "$as_me:${as_lineno-$LINENO}: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
8723 | $as_echo_n "checking whether ${MAKE-make} sets \$(MAKE)... " >&6; } | |
8724 | set x ${MAKE-make} | |
8725 | ac_make=`$as_echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'` | |
8726 | if eval \${ac_cv_prog_make_${ac_make}_set+:} false; then : | |
8727 | $as_echo_n "(cached) " >&6 | |
8728 | else | |
8729 | cat >conftest.make <<\_ACEOF | |
8730 | SHELL = /bin/sh | |
8731 | all: | |
8732 | @echo '@@@%%%=$(MAKE)=@@@%%%' | |
8733 | _ACEOF | |
8734 | # GNU make sometimes prints "make[1]: Entering ...", which would confuse us. | |
8735 | case `${MAKE-make} -f conftest.make 2>/dev/null` in | |
8736 | *@@@%%%=?*=@@@%%%*) | |
8737 | eval ac_cv_prog_make_${ac_make}_set=yes;; | |
8738 | *) | |
8739 | eval ac_cv_prog_make_${ac_make}_set=no;; | |
8740 | esac | |
8741 | rm -f conftest.make | |
8742 | fi | |
8743 | if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then | |
8744 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: yes" >&5 | |
8745 | $as_echo "yes" >&6; } | |
8746 | SET_MAKE= | |
8747 | else | |
8748 | { $as_echo "$as_me:${as_lineno-$LINENO}: result: no" >&5 | |
8749 | $as_echo "no" >&6; } | |
8750 | SET_MAKE="MAKE=${MAKE-make}" | |
8751 | fi | |
8752 | ||
8753 | ||
8754 | # Note: Use `...` here as some shells do not properly parse '$(... case $x in X) ...)' | |
8755 | info=` | |
8756 | echo "-----------------------------------------------------------------------------" | |
8757 | echo "${PACKAGE}-${VERSION} configuration:" | |
8758 | echo "host operating system: $host" | |
8759 | echo "C++ compiler: $CXX" | |
8760 | echo "C compiler: $CC" | |
8761 | echo "preprocessor flags: $CPPFLAGS" | |
8762 | echo "C++ compiler flags: $CXXFLAGS" | |
8763 | echo "C compiler flags: $CFLAGS" | |
8764 | echo "linker flags: $LDFLAGS" | |
8765 | echo "OS specific modules: $os_deps $os_libs $LIBS" | |
8766 | ||
8767 | case "$host_os" in | |
8768 | mingw*) | |
8769 | echo "application manifest: ${os_win32_manifest:-built-in}" | |
8770 | echo "resource compiler: $WINDRES" | |
8771 | echo "message compiler: $WINDMC" | |
8772 | echo "NSIS compiler: $MAKENSIS" | |
8773 | if test -n "$drivedbdir"; then | |
8774 | echo "drive database file: EXEDIR/drivedb.h" | |
8775 | if test -n "$MAKENSIS"; then | |
8776 | echo "database update tool: EXEDIR/update-smart-drivedb.exe" | |
8777 | fi | |
8778 | else | |
8779 | echo "drive database file: [disabled]" | |
8780 | fi | |
8781 | if test -n "$savestates"; then | |
8782 | echo "smartd save files: \`eval eval eval echo $savestates\`MODEL-SERIAL.TYPE.state" | |
8783 | fi | |
8784 | if test -n "$attributelog"; then | |
8785 | echo "smartd attribute logs: \`eval eval eval echo $attributelog\`MODEL-SERIAL.TYPE.csv" | |
8786 | fi | |
8787 | echo "NVMe DEVICESCAN: ${with_nvme_devicescan-no}" | |
8788 | ;; | |
8789 | ||
8790 | *) | |
8791 | echo "binary install path: \`eval eval eval echo $sbindir\`" | |
8792 | echo "man page install path: \`eval eval eval echo $mandir\`" | |
8793 | echo "doc file install path: \`eval eval eval echo $docdir\`" | |
8794 | echo "examples install path: \`eval eval eval echo $exampledir\`" | |
8795 | if test -n "$drivedbdir"; then | |
8796 | echo "drive database file: \`eval eval eval echo $drivedbdir\`/drivedb.h" | |
8797 | if test "$with_update_smart_drivedb" = "yes"; then | |
8798 | echo "database update script: \`eval eval eval echo $sbindir\`/update-smart-drivedb" | |
ff28b140 TL |
8799 | if test "$drivedb_version" = "$smartmontools_drivedb_version"; then |
8800 | echo "database update branch: branches/$DRIVEDB_BRANCH" | |
8801 | else | |
f9e10201 JD |
8802 | echo "... backported to: branches/$DRIVEDB_BRANCH" |
8803 | fi | |
8804 | echo "download tools: \`eval eval eval echo $os_dltools\`" | |
8805 | if test -n "$gnupg"; then | |
8806 | echo "GnuPG for verification: \`eval eval eval echo $gnupg\`" | |
8807 | else | |
8808 | echo "GnuPG for verification: [disabled]" | |
8809 | fi | |
8810 | else | |
8811 | echo "database update script: [disabled]" | |
8812 | fi | |
8813 | else | |
8814 | echo "drive database file: [disabled]" | |
8815 | fi | |
8816 | echo "local drive database: \`eval eval eval echo $sysconfdir\`/smart_drivedb.h" | |
8817 | echo "smartd config file: \`eval eval eval echo $sysconfdir\`/smartd.conf${smartd_suffix}" | |
8818 | echo "smartd warning script: \`eval eval eval echo $smartdscriptdir\`/smartd_warning.sh" | |
8819 | if test -n "$smartdplugindir"; then | |
8820 | echo "smartd plugin path: \`eval eval eval echo $smartdplugindir\`" | |
8821 | else | |
8822 | echo "smartd plugin path: [disabled]" | |
8823 | fi | |
8824 | if test -n "$scriptpath"; then | |
8825 | echo "PATH within scripts: \`eval eval eval echo $scriptpath\`" | |
8826 | else | |
8827 | echo "PATH within scripts: [inherited]" | |
8828 | fi | |
8829 | if test -n "$initddir"; then | |
ff28b140 | 8830 | echo "smartd initd script: \`eval eval eval echo $initddir\`/smartd" |
f9e10201 JD |
8831 | elif test -z "$systemdsystemunitdir"; then |
8832 | echo "smartd initd script: [disabled]" | |
8833 | fi | |
8834 | if test -n "$systemdsystemunitdir"; then | |
ff28b140 | 8835 | echo "smartd service file: \`eval eval eval echo $systemdsystemunitdir\`/smartd.service" |
f9e10201 JD |
8836 | if test -n "$systemdenvfile"; then |
8837 | echo "smartd environ file: \`eval eval eval echo $systemdenvfile\`" | |
8838 | else | |
8839 | echo "smartd environ file: [disabled]" | |
8840 | fi | |
8841 | fi | |
8842 | if test -n "$savestates"; then | |
8843 | echo "smartd save files: \`eval eval eval echo $savestates\`MODEL-SERIAL.TYPE.state" | |
8844 | else | |
8845 | echo "smartd save files: [disabled]" | |
8846 | fi | |
8847 | if test -n "$attributelog"; then | |
8848 | echo "smartd attribute logs: \`eval eval eval echo $attributelog\`MODEL-SERIAL.TYPE.csv" | |
8849 | else | |
8850 | echo "smartd attribute logs: [disabled]" | |
8851 | fi | |
f9e10201 | 8852 | case "$host_os" in |
ff28b140 TL |
8853 | linux*) |
8854 | echo "SELinux support: ${with_selinux-no}" | |
8855 | echo "libcap-ng support: $use_libcap_ng" | |
8856 | echo "systemd notify support: $use_libsystemd" ;; | |
f9e10201 | 8857 | esac |
ff28b140 | 8858 | echo "NVMe DEVICESCAN: ${with_nvme_devicescan-[not implemented]}" |
f9e10201 JD |
8859 | ;; |
8860 | esac | |
8861 | echo "-----------------------------------------------------------------------------" | |
8862 | ` | |
8863 | ||
8864 | { $as_echo "$as_me:${as_lineno-$LINENO}: | |
8865 | $info | |
8866 | " >&5 | |
8867 | $as_echo "$as_me: | |
8868 | $info | |
8869 | " >&6;} | |
8870 | ||
8871 | # TODO: Remove when NVMe support is no longer EXPERIMENTAL | |
ff28b140 TL |
8872 | case "$os_nvme_devicescan:$with_nvme_devicescan" in |
8873 | used:yes) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | |
8874 | The default for the inclusion of NVME devices in smartd.conf | |
8875 | 'DEVICESCAN' and 'smartctl --scan' has been changed to 'yes' on | |
8876 | this platform. If '--without-nvme-devicescan' is still needed, | |
8877 | please inform $PACKAGE_BUGREPORT. | |
8878 | Use option '--with-nvme-devicescan' to suppress this warning. | |
8879 | " >&5 | |
8880 | $as_echo "$as_me: WARNING: | |
8881 | The default for the inclusion of NVME devices in smartd.conf | |
8882 | 'DEVICESCAN' and 'smartctl --scan' has been changed to 'yes' on | |
8883 | this platform. If '--without-nvme-devicescan' is still needed, | |
8884 | please inform $PACKAGE_BUGREPORT. | |
8885 | Use option '--with-nvme-devicescan' to suppress this warning. | |
8886 | " >&2;} ;; | |
8887 | used:no) { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | |
f9e10201 JD |
8888 | This version of smartmontools provides NVMe support which is still |
8889 | EXPERIMENTAL. NVMe devices are not yet included in smartd.conf | |
8890 | 'DEVICESCAN' and 'smartctl --scan' unless '-d nvme' is specified. | |
8891 | Use option '--with-nvme-devicescan' to include NVMe devices. | |
8892 | Use option '--without-nvme-devicescan' to suppress this warning. | |
8893 | " >&5 | |
8894 | $as_echo "$as_me: WARNING: | |
8895 | This version of smartmontools provides NVMe support which is still | |
8896 | EXPERIMENTAL. NVMe devices are not yet included in smartd.conf | |
8897 | 'DEVICESCAN' and 'smartctl --scan' unless '-d nvme' is specified. | |
8898 | Use option '--with-nvme-devicescan' to include NVMe devices. | |
8899 | Use option '--without-nvme-devicescan' to suppress this warning. | |
ff28b140 | 8900 | " >&2;} ;; |
f9e10201 JD |
8901 | esac |
8902 | ||
ff28b140 TL |
8903 | # TODO: Remove after smartmontools 6.7 |
8904 | if test "$with_working_snprintf" != "yes"; then | |
8905 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | |
8906 | The option '--without-working-snprintf' is deprecated and will be removed | |
8907 | in a future version of smartmontools. If you still need support for | |
8908 | pre-C99 snprintf(), please inform $PACKAGE_BUGREPORT. | |
f9e10201 JD |
8909 | " >&5 |
8910 | $as_echo "$as_me: WARNING: | |
ff28b140 TL |
8911 | The option '--without-working-snprintf' is deprecated and will be removed |
8912 | in a future version of smartmontools. If you still need support for | |
8913 | pre-C99 snprintf(), please inform $PACKAGE_BUGREPORT. | |
f9e10201 | 8914 | " >&2;} |
ff28b140 TL |
8915 | fi |
8916 | ||
8917 | case "$host_os:$with_libsystemd:$use_libsystemd:$PKG_CONFIG" in | |
8918 | linux*:auto:no:?*) | |
8919 | if $PKG_CONFIG systemd >/dev/null 2>&1; then | |
8920 | { $as_echo "$as_me:${as_lineno-$LINENO}: WARNING: | |
8921 | systemd(1) is used on this system but smartd systemd notify support will | |
8922 | not be available because libsystemd-dev[el] package is not installed. | |
8923 | Use option '--without-libsystemd' to suppress this warning. | |
8924 | " >&5 | |
8925 | $as_echo "$as_me: WARNING: | |
8926 | systemd(1) is used on this system but smartd systemd notify support will | |
8927 | not be available because libsystemd-dev[el] package is not installed. | |
8928 | Use option '--without-libsystemd' to suppress this warning. | |
8929 | " >&2;} | |
8930 | fi ;; | |
f9e10201 | 8931 | esac |