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