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