]> git.proxmox.com Git - mirror_smartmontools-debian.git/blob - configure
bump standards version
[mirror_smartmontools-debian.git] / configure
1 #! /bin/sh
2 # Guess values for system-dependent variables and create Makefiles.
3 # Generated by GNU Autoconf 2.60 for smartmontools 5.38.
4 #
5 # Report bugs to <smartmontools-support@lists.sourceforge.net>.
6 #
7 # Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
8 # 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
9 # This configure script is free software; the Free Software Foundation
10 # gives unlimited permission to copy, distribute and modify it.
11 ## --------------------- ##
12 ## M4sh Initialization. ##
13 ## --------------------- ##
14
15 # Be Bourne compatible
16 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
17 emulate sh
18 NULLCMD=:
19 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
20 # is contrary to our usage. Disable this feature.
21 alias -g '${1+"$@"}'='"$@"'
22 setopt NO_GLOB_SUBST
23 else
24 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
25 fi
26 BIN_SH=xpg4; export BIN_SH # for Tru64
27 DUALCASE=1; export DUALCASE # for MKS sh
28
29
30 # PATH needs CR
31 # Avoid depending upon Character Ranges.
32 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
33 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
34 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
35 as_cr_digits='0123456789'
36 as_cr_alnum=$as_cr_Letters$as_cr_digits
37
38 # The user is always right.
39 if test "${PATH_SEPARATOR+set}" != set; then
40 echo "#! /bin/sh" >conf$$.sh
41 echo "exit 0" >>conf$$.sh
42 chmod +x conf$$.sh
43 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
44 PATH_SEPARATOR=';'
45 else
46 PATH_SEPARATOR=:
47 fi
48 rm -f conf$$.sh
49 fi
50
51 # Support unset when possible.
52 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
53 as_unset=unset
54 else
55 as_unset=false
56 fi
57
58
59 # IFS
60 # We need space, tab and new line, in precisely that order. Quoting is
61 # there to prevent editors from complaining about space-tab.
62 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
63 # splitting by setting IFS to empty value.)
64 as_nl='
65 '
66 IFS=" "" $as_nl"
67
68 # Find who we are. Look in the path if we contain no directory separator.
69 case $0 in
70 *[\\/]* ) as_myself=$0 ;;
71 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
72 for as_dir in $PATH
73 do
74 IFS=$as_save_IFS
75 test -z "$as_dir" && as_dir=.
76 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
77 done
78 IFS=$as_save_IFS
79
80 ;;
81 esac
82 # We did not find ourselves, most probably we were run as `sh COMMAND'
83 # in which case we are not to be found in the path.
84 if test "x$as_myself" = x; then
85 as_myself=$0
86 fi
87 if test ! -f "$as_myself"; then
88 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
89 { (exit 1); exit 1; }
90 fi
91
92 # Work around bugs in pre-3.0 UWIN ksh.
93 for as_var in ENV MAIL MAILPATH
94 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
95 done
96 PS1='$ '
97 PS2='> '
98 PS4='+ '
99
100 # NLS nuisances.
101 for as_var in \
102 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
103 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
104 LC_TELEPHONE LC_TIME
105 do
106 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
107 eval $as_var=C; export $as_var
108 else
109 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
110 fi
111 done
112
113 # Required to use basename.
114 if expr a : '\(a\)' >/dev/null 2>&1 &&
115 test "X`expr 00001 : '.*\(...\)'`" = X001; then
116 as_expr=expr
117 else
118 as_expr=false
119 fi
120
121 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
122 as_basename=basename
123 else
124 as_basename=false
125 fi
126
127
128 # Name of the executable.
129 as_me=`$as_basename -- "$0" ||
130 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
131 X"$0" : 'X\(//\)$' \| \
132 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
133 echo X/"$0" |
134 sed '/^.*\/\([^/][^/]*\)\/*$/{
135 s//\1/
136 q
137 }
138 /^X\/\(\/\/\)$/{
139 s//\1/
140 q
141 }
142 /^X\/\(\/\).*/{
143 s//\1/
144 q
145 }
146 s/.*/./; q'`
147
148 # CDPATH.
149 $as_unset CDPATH
150
151
152 if test "x$CONFIG_SHELL" = x; then
153 if (eval ":") 2>/dev/null; then
154 as_have_required=yes
155 else
156 as_have_required=no
157 fi
158
159 if test $as_have_required = yes && (eval ":
160 (as_func_return () {
161 (exit \$1)
162 }
163 as_func_success () {
164 as_func_return 0
165 }
166 as_func_failure () {
167 as_func_return 1
168 }
169 as_func_ret_success () {
170 return 0
171 }
172 as_func_ret_failure () {
173 return 1
174 }
175
176 exitcode=0
177 if as_func_success; then
178 :
179 else
180 exitcode=1
181 echo as_func_success failed.
182 fi
183
184 if as_func_failure; then
185 exitcode=1
186 echo as_func_failure succeeded.
187 fi
188
189 if as_func_ret_success; then
190 :
191 else
192 exitcode=1
193 echo as_func_ret_success failed.
194 fi
195
196 if as_func_ret_failure; then
197 exitcode=1
198 echo as_func_ret_failure succeeded.
199 fi
200
201 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
202 :
203 else
204 exitcode=1
205 echo positional parameters were not saved.
206 fi
207
208 test \$exitcode = 0) || { (exit 1); exit 1; }
209
210 (
211 as_lineno_1=\$LINENO
212 as_lineno_2=\$LINENO
213 test \"x\$as_lineno_1\" != \"x\$as_lineno_2\" &&
214 test \"x\`expr \$as_lineno_1 + 1\`\" = \"x\$as_lineno_2\") || { (exit 1); exit 1; }
215 ") 2> /dev/null; then
216 :
217 else
218 as_candidate_shells=
219 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
220 for as_dir in /usr/bin/posix$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH
221 do
222 IFS=$as_save_IFS
223 test -z "$as_dir" && as_dir=.
224 case $as_dir in
225 /*)
226 for as_base in sh bash ksh sh5; do
227 as_candidate_shells="$as_candidate_shells $as_dir/$as_base"
228 done;;
229 esac
230 done
231 IFS=$as_save_IFS
232
233
234 for as_shell in $as_candidate_shells $SHELL; do
235 # Try only shells that exist, to save several forks.
236 if { test -f "$as_shell" || test -f "$as_shell.exe"; } &&
237 { ("$as_shell") 2> /dev/null <<\_ASEOF
238 # Be Bourne compatible
239 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
240 emulate sh
241 NULLCMD=:
242 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
243 # is contrary to our usage. Disable this feature.
244 alias -g '${1+"$@"}'='"$@"'
245 setopt NO_GLOB_SUBST
246 else
247 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
248 fi
249 BIN_SH=xpg4; export BIN_SH # for Tru64
250 DUALCASE=1; export DUALCASE # for MKS sh
251
252 :
253 _ASEOF
254 }; then
255 CONFIG_SHELL=$as_shell
256 as_have_required=yes
257 if { "$as_shell" 2> /dev/null <<\_ASEOF
258 # Be Bourne compatible
259 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
260 emulate sh
261 NULLCMD=:
262 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
263 # is contrary to our usage. Disable this feature.
264 alias -g '${1+"$@"}'='"$@"'
265 setopt NO_GLOB_SUBST
266 else
267 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
268 fi
269 BIN_SH=xpg4; export BIN_SH # for Tru64
270 DUALCASE=1; export DUALCASE # for MKS sh
271
272 :
273 (as_func_return () {
274 (exit $1)
275 }
276 as_func_success () {
277 as_func_return 0
278 }
279 as_func_failure () {
280 as_func_return 1
281 }
282 as_func_ret_success () {
283 return 0
284 }
285 as_func_ret_failure () {
286 return 1
287 }
288
289 exitcode=0
290 if as_func_success; then
291 :
292 else
293 exitcode=1
294 echo as_func_success failed.
295 fi
296
297 if as_func_failure; then
298 exitcode=1
299 echo as_func_failure succeeded.
300 fi
301
302 if as_func_ret_success; then
303 :
304 else
305 exitcode=1
306 echo as_func_ret_success failed.
307 fi
308
309 if as_func_ret_failure; then
310 exitcode=1
311 echo as_func_ret_failure succeeded.
312 fi
313
314 if ( set x; as_func_ret_success y && test x = "$1" ); then
315 :
316 else
317 exitcode=1
318 echo positional parameters were not saved.
319 fi
320
321 test $exitcode = 0) || { (exit 1); exit 1; }
322
323 (
324 as_lineno_1=$LINENO
325 as_lineno_2=$LINENO
326 test "x$as_lineno_1" != "x$as_lineno_2" &&
327 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2") || { (exit 1); exit 1; }
328
329 _ASEOF
330 }; then
331 break
332 fi
333
334 fi
335
336 done
337
338 if test "x$CONFIG_SHELL" != x; then
339 for as_var in BASH_ENV ENV
340 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
341 done
342 export CONFIG_SHELL
343 exec "$CONFIG_SHELL" "$as_myself" ${1+"$@"}
344 fi
345
346
347 if test $as_have_required = no; then
348 echo This script requires a shell more modern than all the
349 echo shells that I found on your system. Please install a
350 echo modern shell, or manually run the script under such a
351 echo shell if you do have one.
352 { (exit 1); exit 1; }
353 fi
354
355
356 fi
357
358 fi
359
360
361
362 (eval "as_func_return () {
363 (exit \$1)
364 }
365 as_func_success () {
366 as_func_return 0
367 }
368 as_func_failure () {
369 as_func_return 1
370 }
371 as_func_ret_success () {
372 return 0
373 }
374 as_func_ret_failure () {
375 return 1
376 }
377
378 exitcode=0
379 if as_func_success; then
380 :
381 else
382 exitcode=1
383 echo as_func_success failed.
384 fi
385
386 if as_func_failure; then
387 exitcode=1
388 echo as_func_failure succeeded.
389 fi
390
391 if as_func_ret_success; then
392 :
393 else
394 exitcode=1
395 echo as_func_ret_success failed.
396 fi
397
398 if as_func_ret_failure; then
399 exitcode=1
400 echo as_func_ret_failure succeeded.
401 fi
402
403 if ( set x; as_func_ret_success y && test x = \"\$1\" ); then
404 :
405 else
406 exitcode=1
407 echo positional parameters were not saved.
408 fi
409
410 test \$exitcode = 0") || {
411 echo No shell found that supports shell functions.
412 echo Please tell autoconf@gnu.org about your system,
413 echo including any error possibly output before this
414 echo message
415 }
416
417
418
419 as_lineno_1=$LINENO
420 as_lineno_2=$LINENO
421 test "x$as_lineno_1" != "x$as_lineno_2" &&
422 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
423
424 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
425 # uniformly replaced by the line number. The first 'sed' inserts a
426 # line-number line after each line using $LINENO; the second 'sed'
427 # does the real work. The second script uses 'N' to pair each
428 # line-number line with the line containing $LINENO, and appends
429 # trailing '-' during substitution so that $LINENO is not a special
430 # case at line end.
431 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
432 # scripts with optimization help from Paolo Bonzini. Blame Lee
433 # E. McMahon (1931-1989) for sed's syntax. :-)
434 sed -n '
435 p
436 /[$]LINENO/=
437 ' <$as_myself |
438 sed '
439 s/[$]LINENO.*/&-/
440 t lineno
441 b
442 :lineno
443 N
444 :loop
445 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
446 t loop
447 s/-\n.*//
448 ' >$as_me.lineno &&
449 chmod +x "$as_me.lineno" ||
450 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
451 { (exit 1); exit 1; }; }
452
453 # Don't try to exec as it changes $[0], causing all sort of problems
454 # (the dirname of $[0] is not the place where we might find the
455 # original and so on. Autoconf is especially sensitive to this).
456 . "./$as_me.lineno"
457 # Exit status is that of the last command.
458 exit
459 }
460
461
462 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
463 as_dirname=dirname
464 else
465 as_dirname=false
466 fi
467
468 ECHO_C= ECHO_N= ECHO_T=
469 case `echo -n x` in
470 -n*)
471 case `echo 'x\c'` in
472 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
473 *) ECHO_C='\c';;
474 esac;;
475 *)
476 ECHO_N='-n';;
477 esac
478
479 if expr a : '\(a\)' >/dev/null 2>&1 &&
480 test "X`expr 00001 : '.*\(...\)'`" = X001; then
481 as_expr=expr
482 else
483 as_expr=false
484 fi
485
486 rm -f conf$$ conf$$.exe conf$$.file
487 if test -d conf$$.dir; then
488 rm -f conf$$.dir/conf$$.file
489 else
490 rm -f conf$$.dir
491 mkdir conf$$.dir
492 fi
493 echo >conf$$.file
494 if ln -s conf$$.file conf$$ 2>/dev/null; then
495 as_ln_s='ln -s'
496 # ... but there are two gotchas:
497 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
498 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
499 # In both cases, we have to default to `cp -p'.
500 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
501 as_ln_s='cp -p'
502 elif ln conf$$.file conf$$ 2>/dev/null; then
503 as_ln_s=ln
504 else
505 as_ln_s='cp -p'
506 fi
507 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
508 rmdir conf$$.dir 2>/dev/null
509
510 if mkdir -p . 2>/dev/null; then
511 as_mkdir_p=:
512 else
513 test -d ./-p && rmdir ./-p
514 as_mkdir_p=false
515 fi
516
517 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
518 # systems may use methods other than mode bits to determine executability.
519 cat >conf$$.file <<_ASEOF
520 #! /bin/sh
521 exit 0
522 _ASEOF
523 chmod +x conf$$.file
524 if test -x conf$$.file >/dev/null 2>&1; then
525 as_executable_p="test -x"
526 else
527 as_executable_p=:
528 fi
529 rm -f conf$$.file
530
531 # Sed expression to map a string onto a valid CPP name.
532 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
533
534 # Sed expression to map a string onto a valid variable name.
535 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
536
537
538
539 exec 7<&0 </dev/null 6>&1
540
541 # Name of the host.
542 # hostname on some systems (SVR3.2, Linux) returns a bogus exit status,
543 # so uname gets run too.
544 ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q`
545
546 #
547 # Initializations.
548 #
549 ac_default_prefix=/usr/local
550 ac_clean_files=
551 ac_config_libobj_dir=.
552 LIBOBJS=
553 cross_compiling=no
554 subdirs=
555 MFLAGS=
556 MAKEFLAGS=
557 SHELL=${CONFIG_SHELL-/bin/sh}
558
559 # Identity of this package.
560 PACKAGE_NAME='smartmontools'
561 PACKAGE_TARNAME='smartmontools'
562 PACKAGE_VERSION='5.38'
563 PACKAGE_STRING='smartmontools 5.38'
564 PACKAGE_BUGREPORT='smartmontools-support@lists.sourceforge.net'
565
566 ac_unique_file="smartctl.cpp"
567 # Factoring default headers for most tests.
568 ac_includes_default="\
569 #include <stdio.h>
570 #if HAVE_SYS_TYPES_H
571 # include <sys/types.h>
572 #endif
573 #if HAVE_SYS_STAT_H
574 # include <sys/stat.h>
575 #endif
576 #if STDC_HEADERS
577 # include <stdlib.h>
578 # include <stddef.h>
579 #else
580 # if HAVE_STDLIB_H
581 # include <stdlib.h>
582 # endif
583 #endif
584 #if HAVE_STRING_H
585 # if !STDC_HEADERS && HAVE_MEMORY_H
586 # include <memory.h>
587 # endif
588 # include <string.h>
589 #endif
590 #if HAVE_STRINGS_H
591 # include <strings.h>
592 #endif
593 #if HAVE_INTTYPES_H
594 # include <inttypes.h>
595 #endif
596 #if HAVE_STDINT_H
597 # include <stdint.h>
598 #endif
599 #if HAVE_UNISTD_H
600 # include <unistd.h>
601 #endif"
602
603 ac_subst_vars='SHELL
604 PATH_SEPARATOR
605 PACKAGE_NAME
606 PACKAGE_TARNAME
607 PACKAGE_VERSION
608 PACKAGE_STRING
609 PACKAGE_BUGREPORT
610 exec_prefix
611 prefix
612 program_transform_name
613 bindir
614 sbindir
615 libexecdir
616 datarootdir
617 datadir
618 sysconfdir
619 sharedstatedir
620 localstatedir
621 includedir
622 oldincludedir
623 docdir
624 infodir
625 htmldir
626 dvidir
627 pdfdir
628 psdir
629 libdir
630 localedir
631 mandir
632 DEFS
633 ECHO_C
634 ECHO_N
635 ECHO_T
636 LIBS
637 build_alias
638 host_alias
639 target_alias
640 INSTALL_PROGRAM
641 INSTALL_SCRIPT
642 INSTALL_DATA
643 CYGPATH_W
644 PACKAGE
645 VERSION
646 ACLOCAL
647 AUTOCONF
648 AUTOMAKE
649 AUTOHEADER
650 MAKEINFO
651 install_sh
652 STRIP
653 INSTALL_STRIP_PROGRAM
654 mkdir_p
655 AWK
656 SET_MAKE
657 am__leading_dot
658 AMTAR
659 am__tar
660 am__untar
661 MAINTAINER_MODE_TRUE
662 MAINTAINER_MODE_FALSE
663 MAINT
664 CXX
665 CXXFLAGS
666 LDFLAGS
667 CPPFLAGS
668 ac_ct_CXX
669 EXEEXT
670 OBJEXT
671 DEPDIR
672 am__include
673 am__quote
674 AMDEP_TRUE
675 AMDEP_FALSE
676 AMDEPBACKSLASH
677 CXXDEPMODE
678 am__fastdepCXX_TRUE
679 am__fastdepCXX_FALSE
680 CC
681 CFLAGS
682 ac_ct_CC
683 CCDEPMODE
684 am__fastdepCC_TRUE
685 am__fastdepCC_FALSE
686 CCAS
687 CCASFLAGS
688 build
689 build_cpu
690 build_vendor
691 build_os
692 host
693 host_cpu
694 host_vendor
695 host_os
696 CXXCPP
697 GREP
698 EGREP
699 libc_have_working_snprintf
700 gcc_have_attr_packed
701 ASFLAGS
702 exampledir
703 initddir
704 smartd_suffix
705 SMARTD_SUFFIX_TRUE
706 SMARTD_SUFFIX_FALSE
707 releaseversion
708 smartmontools_release_date
709 smartmontools_release_time
710 os_deps
711 os_libs
712 OS_DARWIN_TRUE
713 OS_DARWIN_FALSE
714 OS_SOLARIS_TRUE
715 OS_SOLARIS_FALSE
716 OS_WIN32_MINGW_TRUE
717 OS_WIN32_MINGW_FALSE
718 LIBOBJS
719 LTLIBOBJS'
720 ac_subst_files=''
721 ac_precious_vars='build_alias
722 host_alias
723 target_alias
724 CXX
725 CXXFLAGS
726 LDFLAGS
727 CPPFLAGS
728 CCC
729 CC
730 CFLAGS
731 CCAS
732 CCASFLAGS
733 CXXCPP'
734
735
736 # Initialize some variables set by options.
737 ac_init_help=
738 ac_init_version=false
739 # The variables have the same names as the options, with
740 # dashes changed to underlines.
741 cache_file=/dev/null
742 exec_prefix=NONE
743 no_create=
744 no_recursion=
745 prefix=NONE
746 program_prefix=NONE
747 program_suffix=NONE
748 program_transform_name=s,x,x,
749 silent=
750 site=
751 srcdir=
752 verbose=
753 x_includes=NONE
754 x_libraries=NONE
755
756 # Installation directory options.
757 # These are left unexpanded so users can "make install exec_prefix=/foo"
758 # and all the variables that are supposed to be based on exec_prefix
759 # by default will actually change.
760 # Use braces instead of parens because sh, perl, etc. also accept them.
761 # (The list follows the same order as the GNU Coding Standards.)
762 bindir='${exec_prefix}/bin'
763 sbindir='${exec_prefix}/sbin'
764 libexecdir='${exec_prefix}/libexec'
765 datarootdir='${prefix}/share'
766 datadir='${datarootdir}'
767 sysconfdir='${prefix}/etc'
768 sharedstatedir='${prefix}/com'
769 localstatedir='${prefix}/var'
770 includedir='${prefix}/include'
771 oldincludedir='/usr/include'
772 docdir='${datarootdir}/doc/${PACKAGE_TARNAME}'
773 infodir='${datarootdir}/info'
774 htmldir='${docdir}'
775 dvidir='${docdir}'
776 pdfdir='${docdir}'
777 psdir='${docdir}'
778 libdir='${exec_prefix}/lib'
779 localedir='${datarootdir}/locale'
780 mandir='${datarootdir}/man'
781
782 ac_prev=
783 ac_dashdash=
784 for ac_option
785 do
786 # If the previous option needs an argument, assign it.
787 if test -n "$ac_prev"; then
788 eval $ac_prev=\$ac_option
789 ac_prev=
790 continue
791 fi
792
793 case $ac_option in
794 *=*) ac_optarg=`expr "X$ac_option" : '[^=]*=\(.*\)'` ;;
795 *) ac_optarg=yes ;;
796 esac
797
798 # Accept the important Cygnus configure options, so we can diagnose typos.
799
800 case $ac_dashdash$ac_option in
801 --)
802 ac_dashdash=yes ;;
803
804 -bindir | --bindir | --bindi | --bind | --bin | --bi)
805 ac_prev=bindir ;;
806 -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*)
807 bindir=$ac_optarg ;;
808
809 -build | --build | --buil | --bui | --bu)
810 ac_prev=build_alias ;;
811 -build=* | --build=* | --buil=* | --bui=* | --bu=*)
812 build_alias=$ac_optarg ;;
813
814 -cache-file | --cache-file | --cache-fil | --cache-fi \
815 | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c)
816 ac_prev=cache_file ;;
817 -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \
818 | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*)
819 cache_file=$ac_optarg ;;
820
821 --config-cache | -C)
822 cache_file=config.cache ;;
823
824 -datadir | --datadir | --datadi | --datad)
825 ac_prev=datadir ;;
826 -datadir=* | --datadir=* | --datadi=* | --datad=*)
827 datadir=$ac_optarg ;;
828
829 -datarootdir | --datarootdir | --datarootdi | --datarootd | --dataroot \
830 | --dataroo | --dataro | --datar)
831 ac_prev=datarootdir ;;
832 -datarootdir=* | --datarootdir=* | --datarootdi=* | --datarootd=* \
833 | --dataroot=* | --dataroo=* | --dataro=* | --datar=*)
834 datarootdir=$ac_optarg ;;
835
836 -disable-* | --disable-*)
837 ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'`
838 # Reject names that are not valid shell variable names.
839 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
840 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
841 { (exit 1); exit 1; }; }
842 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
843 eval enable_$ac_feature=no ;;
844
845 -docdir | --docdir | --docdi | --doc | --do)
846 ac_prev=docdir ;;
847 -docdir=* | --docdir=* | --docdi=* | --doc=* | --do=*)
848 docdir=$ac_optarg ;;
849
850 -dvidir | --dvidir | --dvidi | --dvid | --dvi | --dv)
851 ac_prev=dvidir ;;
852 -dvidir=* | --dvidir=* | --dvidi=* | --dvid=* | --dvi=* | --dv=*)
853 dvidir=$ac_optarg ;;
854
855 -enable-* | --enable-*)
856 ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'`
857 # Reject names that are not valid shell variable names.
858 expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null &&
859 { echo "$as_me: error: invalid feature name: $ac_feature" >&2
860 { (exit 1); exit 1; }; }
861 ac_feature=`echo $ac_feature | sed 's/-/_/g'`
862 eval enable_$ac_feature=\$ac_optarg ;;
863
864 -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \
865 | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \
866 | --exec | --exe | --ex)
867 ac_prev=exec_prefix ;;
868 -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \
869 | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \
870 | --exec=* | --exe=* | --ex=*)
871 exec_prefix=$ac_optarg ;;
872
873 -gas | --gas | --ga | --g)
874 # Obsolete; use --with-gas.
875 with_gas=yes ;;
876
877 -help | --help | --hel | --he | -h)
878 ac_init_help=long ;;
879 -help=r* | --help=r* | --hel=r* | --he=r* | -hr*)
880 ac_init_help=recursive ;;
881 -help=s* | --help=s* | --hel=s* | --he=s* | -hs*)
882 ac_init_help=short ;;
883
884 -host | --host | --hos | --ho)
885 ac_prev=host_alias ;;
886 -host=* | --host=* | --hos=* | --ho=*)
887 host_alias=$ac_optarg ;;
888
889 -htmldir | --htmldir | --htmldi | --htmld | --html | --htm | --ht)
890 ac_prev=htmldir ;;
891 -htmldir=* | --htmldir=* | --htmldi=* | --htmld=* | --html=* | --htm=* \
892 | --ht=*)
893 htmldir=$ac_optarg ;;
894
895 -includedir | --includedir | --includedi | --included | --include \
896 | --includ | --inclu | --incl | --inc)
897 ac_prev=includedir ;;
898 -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \
899 | --includ=* | --inclu=* | --incl=* | --inc=*)
900 includedir=$ac_optarg ;;
901
902 -infodir | --infodir | --infodi | --infod | --info | --inf)
903 ac_prev=infodir ;;
904 -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*)
905 infodir=$ac_optarg ;;
906
907 -libdir | --libdir | --libdi | --libd)
908 ac_prev=libdir ;;
909 -libdir=* | --libdir=* | --libdi=* | --libd=*)
910 libdir=$ac_optarg ;;
911
912 -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \
913 | --libexe | --libex | --libe)
914 ac_prev=libexecdir ;;
915 -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \
916 | --libexe=* | --libex=* | --libe=*)
917 libexecdir=$ac_optarg ;;
918
919 -localedir | --localedir | --localedi | --localed | --locale)
920 ac_prev=localedir ;;
921 -localedir=* | --localedir=* | --localedi=* | --localed=* | --locale=*)
922 localedir=$ac_optarg ;;
923
924 -localstatedir | --localstatedir | --localstatedi | --localstated \
925 | --localstate | --localstat | --localsta | --localst | --locals)
926 ac_prev=localstatedir ;;
927 -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \
928 | --localstate=* | --localstat=* | --localsta=* | --localst=* | --locals=*)
929 localstatedir=$ac_optarg ;;
930
931 -mandir | --mandir | --mandi | --mand | --man | --ma | --m)
932 ac_prev=mandir ;;
933 -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*)
934 mandir=$ac_optarg ;;
935
936 -nfp | --nfp | --nf)
937 # Obsolete; use --without-fp.
938 with_fp=no ;;
939
940 -no-create | --no-create | --no-creat | --no-crea | --no-cre \
941 | --no-cr | --no-c | -n)
942 no_create=yes ;;
943
944 -no-recursion | --no-recursion | --no-recursio | --no-recursi \
945 | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r)
946 no_recursion=yes ;;
947
948 -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \
949 | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \
950 | --oldin | --oldi | --old | --ol | --o)
951 ac_prev=oldincludedir ;;
952 -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \
953 | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \
954 | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*)
955 oldincludedir=$ac_optarg ;;
956
957 -prefix | --prefix | --prefi | --pref | --pre | --pr | --p)
958 ac_prev=prefix ;;
959 -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*)
960 prefix=$ac_optarg ;;
961
962 -program-prefix | --program-prefix | --program-prefi | --program-pref \
963 | --program-pre | --program-pr | --program-p)
964 ac_prev=program_prefix ;;
965 -program-prefix=* | --program-prefix=* | --program-prefi=* \
966 | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*)
967 program_prefix=$ac_optarg ;;
968
969 -program-suffix | --program-suffix | --program-suffi | --program-suff \
970 | --program-suf | --program-su | --program-s)
971 ac_prev=program_suffix ;;
972 -program-suffix=* | --program-suffix=* | --program-suffi=* \
973 | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*)
974 program_suffix=$ac_optarg ;;
975
976 -program-transform-name | --program-transform-name \
977 | --program-transform-nam | --program-transform-na \
978 | --program-transform-n | --program-transform- \
979 | --program-transform | --program-transfor \
980 | --program-transfo | --program-transf \
981 | --program-trans | --program-tran \
982 | --progr-tra | --program-tr | --program-t)
983 ac_prev=program_transform_name ;;
984 -program-transform-name=* | --program-transform-name=* \
985 | --program-transform-nam=* | --program-transform-na=* \
986 | --program-transform-n=* | --program-transform-=* \
987 | --program-transform=* | --program-transfor=* \
988 | --program-transfo=* | --program-transf=* \
989 | --program-trans=* | --program-tran=* \
990 | --progr-tra=* | --program-tr=* | --program-t=*)
991 program_transform_name=$ac_optarg ;;
992
993 -pdfdir | --pdfdir | --pdfdi | --pdfd | --pdf | --pd)
994 ac_prev=pdfdir ;;
995 -pdfdir=* | --pdfdir=* | --pdfdi=* | --pdfd=* | --pdf=* | --pd=*)
996 pdfdir=$ac_optarg ;;
997
998 -psdir | --psdir | --psdi | --psd | --ps)
999 ac_prev=psdir ;;
1000 -psdir=* | --psdir=* | --psdi=* | --psd=* | --ps=*)
1001 psdir=$ac_optarg ;;
1002
1003 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1004 | -silent | --silent | --silen | --sile | --sil)
1005 silent=yes ;;
1006
1007 -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb)
1008 ac_prev=sbindir ;;
1009 -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \
1010 | --sbi=* | --sb=*)
1011 sbindir=$ac_optarg ;;
1012
1013 -sharedstatedir | --sharedstatedir | --sharedstatedi \
1014 | --sharedstated | --sharedstate | --sharedstat | --sharedsta \
1015 | --sharedst | --shareds | --shared | --share | --shar \
1016 | --sha | --sh)
1017 ac_prev=sharedstatedir ;;
1018 -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \
1019 | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \
1020 | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \
1021 | --sha=* | --sh=*)
1022 sharedstatedir=$ac_optarg ;;
1023
1024 -site | --site | --sit)
1025 ac_prev=site ;;
1026 -site=* | --site=* | --sit=*)
1027 site=$ac_optarg ;;
1028
1029 -srcdir | --srcdir | --srcdi | --srcd | --src | --sr)
1030 ac_prev=srcdir ;;
1031 -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*)
1032 srcdir=$ac_optarg ;;
1033
1034 -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \
1035 | --syscon | --sysco | --sysc | --sys | --sy)
1036 ac_prev=sysconfdir ;;
1037 -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \
1038 | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*)
1039 sysconfdir=$ac_optarg ;;
1040
1041 -target | --target | --targe | --targ | --tar | --ta | --t)
1042 ac_prev=target_alias ;;
1043 -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*)
1044 target_alias=$ac_optarg ;;
1045
1046 -v | -verbose | --verbose | --verbos | --verbo | --verb)
1047 verbose=yes ;;
1048
1049 -version | --version | --versio | --versi | --vers | -V)
1050 ac_init_version=: ;;
1051
1052 -with-* | --with-*)
1053 ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'`
1054 # Reject names that are not valid shell variable names.
1055 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1056 { echo "$as_me: error: invalid package name: $ac_package" >&2
1057 { (exit 1); exit 1; }; }
1058 ac_package=`echo $ac_package| sed 's/-/_/g'`
1059 eval with_$ac_package=\$ac_optarg ;;
1060
1061 -without-* | --without-*)
1062 ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'`
1063 # Reject names that are not valid shell variable names.
1064 expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null &&
1065 { echo "$as_me: error: invalid package name: $ac_package" >&2
1066 { (exit 1); exit 1; }; }
1067 ac_package=`echo $ac_package | sed 's/-/_/g'`
1068 eval with_$ac_package=no ;;
1069
1070 --x)
1071 # Obsolete; use --with-x.
1072 with_x=yes ;;
1073
1074 -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \
1075 | --x-incl | --x-inc | --x-in | --x-i)
1076 ac_prev=x_includes ;;
1077 -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \
1078 | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*)
1079 x_includes=$ac_optarg ;;
1080
1081 -x-libraries | --x-libraries | --x-librarie | --x-librari \
1082 | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l)
1083 ac_prev=x_libraries ;;
1084 -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \
1085 | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*)
1086 x_libraries=$ac_optarg ;;
1087
1088 -*) { echo "$as_me: error: unrecognized option: $ac_option
1089 Try \`$0 --help' for more information." >&2
1090 { (exit 1); exit 1; }; }
1091 ;;
1092
1093 *=*)
1094 ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='`
1095 # Reject names that are not valid shell variable names.
1096 expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null &&
1097 { echo "$as_me: error: invalid variable name: $ac_envvar" >&2
1098 { (exit 1); exit 1; }; }
1099 eval $ac_envvar=\$ac_optarg
1100 export $ac_envvar ;;
1101
1102 *)
1103 # FIXME: should be removed in autoconf 3.0.
1104 echo "$as_me: WARNING: you should use --build, --host, --target" >&2
1105 expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null &&
1106 echo "$as_me: WARNING: invalid host type: $ac_option" >&2
1107 : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option}
1108 ;;
1109
1110 esac
1111 done
1112
1113 if test -n "$ac_prev"; then
1114 ac_option=--`echo $ac_prev | sed 's/_/-/g'`
1115 { echo "$as_me: error: missing argument to $ac_option" >&2
1116 { (exit 1); exit 1; }; }
1117 fi
1118
1119 # Be sure to have absolute directory names.
1120 for ac_var in exec_prefix prefix bindir sbindir libexecdir datarootdir \
1121 datadir sysconfdir sharedstatedir localstatedir includedir \
1122 oldincludedir docdir infodir htmldir dvidir pdfdir psdir \
1123 libdir localedir mandir
1124 do
1125 eval ac_val=\$$ac_var
1126 case $ac_val in
1127 [\\/$]* | ?:[\\/]* ) continue;;
1128 NONE | '' ) case $ac_var in *prefix ) continue;; esac;;
1129 esac
1130 { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2
1131 { (exit 1); exit 1; }; }
1132 done
1133
1134 # There might be people who depend on the old broken behavior: `$host'
1135 # used to hold the argument of --host etc.
1136 # FIXME: To remove some day.
1137 build=$build_alias
1138 host=$host_alias
1139 target=$target_alias
1140
1141 # FIXME: To remove some day.
1142 if test "x$host_alias" != x; then
1143 if test "x$build_alias" = x; then
1144 cross_compiling=maybe
1145 echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host.
1146 If a cross compiler is detected then cross compile mode will be used." >&2
1147 elif test "x$build_alias" != "x$host_alias"; then
1148 cross_compiling=yes
1149 fi
1150 fi
1151
1152 ac_tool_prefix=
1153 test -n "$host_alias" && ac_tool_prefix=$host_alias-
1154
1155 test "$silent" = yes && exec 6>/dev/null
1156
1157
1158 ac_pwd=`pwd` && test -n "$ac_pwd" &&
1159 ac_ls_di=`ls -di .` &&
1160 ac_pwd_ls_di=`cd "$ac_pwd" && ls -di .` ||
1161 { echo "$as_me: error: Working directory cannot be determined" >&2
1162 { (exit 1); exit 1; }; }
1163 test "X$ac_ls_di" = "X$ac_pwd_ls_di" ||
1164 { echo "$as_me: error: pwd does not report name of working directory" >&2
1165 { (exit 1); exit 1; }; }
1166
1167
1168 # Find the source files, if location was not specified.
1169 if test -z "$srcdir"; then
1170 ac_srcdir_defaulted=yes
1171 # Try the directory containing this script, then the parent directory.
1172 ac_confdir=`$as_dirname -- "$0" ||
1173 $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
1174 X"$0" : 'X\(//\)[^/]' \| \
1175 X"$0" : 'X\(//\)$' \| \
1176 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
1177 echo X"$0" |
1178 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
1179 s//\1/
1180 q
1181 }
1182 /^X\(\/\/\)[^/].*/{
1183 s//\1/
1184 q
1185 }
1186 /^X\(\/\/\)$/{
1187 s//\1/
1188 q
1189 }
1190 /^X\(\/\).*/{
1191 s//\1/
1192 q
1193 }
1194 s/.*/./; q'`
1195 srcdir=$ac_confdir
1196 if test ! -r "$srcdir/$ac_unique_file"; then
1197 srcdir=..
1198 fi
1199 else
1200 ac_srcdir_defaulted=no
1201 fi
1202 if test ! -r "$srcdir/$ac_unique_file"; then
1203 test "$ac_srcdir_defaulted" = yes && srcdir="$ac_confdir or .."
1204 { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2
1205 { (exit 1); exit 1; }; }
1206 fi
1207 ac_msg="sources are in $srcdir, but \`cd $srcdir' does not work"
1208 ac_abs_confdir=`(
1209 cd "$srcdir" && test -r "./$ac_unique_file" || { echo "$as_me: error: $ac_msg" >&2
1210 { (exit 1); exit 1; }; }
1211 pwd)`
1212 # When building in place, set srcdir=.
1213 if test "$ac_abs_confdir" = "$ac_pwd"; then
1214 srcdir=.
1215 fi
1216 # Remove unnecessary trailing slashes from srcdir.
1217 # Double slashes in file names in object file debugging info
1218 # mess up M-x gdb in Emacs.
1219 case $srcdir in
1220 */) srcdir=`expr "X$srcdir" : 'X\(.*[^/]\)' \| "X$srcdir" : 'X\(.*\)'`;;
1221 esac
1222 for ac_var in $ac_precious_vars; do
1223 eval ac_env_${ac_var}_set=\${${ac_var}+set}
1224 eval ac_env_${ac_var}_value=\$${ac_var}
1225 eval ac_cv_env_${ac_var}_set=\${${ac_var}+set}
1226 eval ac_cv_env_${ac_var}_value=\$${ac_var}
1227 done
1228
1229 #
1230 # Report the --help message.
1231 #
1232 if test "$ac_init_help" = "long"; then
1233 # Omit some internal or obsolete options to make the list less imposing.
1234 # This message is too long to be a string in the A/UX 3.1 sh.
1235 cat <<_ACEOF
1236 \`configure' configures smartmontools 5.38 to adapt to many kinds of systems.
1237
1238 Usage: $0 [OPTION]... [VAR=VALUE]...
1239
1240 To assign environment variables (e.g., CC, CFLAGS...), specify them as
1241 VAR=VALUE. See below for descriptions of some of the useful variables.
1242
1243 Defaults for the options are specified in brackets.
1244
1245 Configuration:
1246 -h, --help display this help and exit
1247 --help=short display options specific to this package
1248 --help=recursive display the short help of all the included packages
1249 -V, --version display version information and exit
1250 -q, --quiet, --silent do not print \`checking...' messages
1251 --cache-file=FILE cache test results in FILE [disabled]
1252 -C, --config-cache alias for \`--cache-file=config.cache'
1253 -n, --no-create do not create output files
1254 --srcdir=DIR find the sources in DIR [configure dir or \`..']
1255
1256 Installation directories:
1257 --prefix=PREFIX install architecture-independent files in PREFIX
1258 [$ac_default_prefix]
1259 --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX
1260 [PREFIX]
1261
1262 By default, \`make install' will install all the files in
1263 \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify
1264 an installation prefix other than \`$ac_default_prefix' using \`--prefix',
1265 for instance \`--prefix=\$HOME'.
1266
1267 For better control, use the options below.
1268
1269 Fine tuning of the installation directories:
1270 --bindir=DIR user executables [EPREFIX/bin]
1271 --sbindir=DIR system admin executables [EPREFIX/sbin]
1272 --libexecdir=DIR program executables [EPREFIX/libexec]
1273 --sysconfdir=DIR read-only single-machine data [PREFIX/etc]
1274 --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com]
1275 --localstatedir=DIR modifiable single-machine data [PREFIX/var]
1276 --libdir=DIR object code libraries [EPREFIX/lib]
1277 --includedir=DIR C header files [PREFIX/include]
1278 --oldincludedir=DIR C header files for non-gcc [/usr/include]
1279 --datarootdir=DIR read-only arch.-independent data root [PREFIX/share]
1280 --datadir=DIR read-only architecture-independent data [DATAROOTDIR]
1281 --infodir=DIR info documentation [DATAROOTDIR/info]
1282 --localedir=DIR locale-dependent data [DATAROOTDIR/locale]
1283 --mandir=DIR man documentation [DATAROOTDIR/man]
1284 --docdir=DIR documentation root [DATAROOTDIR/doc/smartmontools]
1285 --htmldir=DIR html documentation [DOCDIR]
1286 --dvidir=DIR dvi documentation [DOCDIR]
1287 --pdfdir=DIR pdf documentation [DOCDIR]
1288 --psdir=DIR ps documentation [DOCDIR]
1289 _ACEOF
1290
1291 cat <<\_ACEOF
1292
1293 Program names:
1294 --program-prefix=PREFIX prepend PREFIX to installed program names
1295 --program-suffix=SUFFIX append SUFFIX to installed program names
1296 --program-transform-name=PROGRAM run sed PROGRAM on installed program names
1297
1298 System types:
1299 --build=BUILD configure for building on BUILD [guessed]
1300 --host=HOST cross-compile to build programs to run on HOST [BUILD]
1301 _ACEOF
1302 fi
1303
1304 if test -n "$ac_init_help"; then
1305 case $ac_init_help in
1306 short | recursive ) echo "Configuration of smartmontools 5.38:";;
1307 esac
1308 cat <<\_ACEOF
1309
1310 Optional Features:
1311 --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no)
1312 --enable-FEATURE[=ARG] include FEATURE [ARG=yes]
1313 --enable-maintainer-mode enable make rules and dependencies not useful
1314 (and sometimes confusing) to the casual installer
1315 --disable-dependency-tracking speeds up one-time build
1316 --enable-dependency-tracking do not reject slow dependency extractors
1317 --enable-sample Enables appending .sample to the installed smartd rc
1318 script and configuration file
1319
1320 Optional Packages:
1321 --with-PACKAGE[=ARG] use PACKAGE [ARG=yes]
1322 --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no)
1323 --with-initscriptdir=dir
1324 Location of init scripts (default is
1325 ${sysconfdir}/rc.d/init.d)
1326 --with-docdir=dir Location of documentation (default is
1327 ${prefix}/share/doc/smartmontools-5.X)
1328
1329 Some influential environment variables:
1330 CXX C++ compiler command
1331 CXXFLAGS C++ compiler flags
1332 LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a
1333 nonstandard directory <lib dir>
1334 CPPFLAGS C/C++/Objective C preprocessor flags, e.g. -I<include dir> if
1335 you have headers in a nonstandard directory <include dir>
1336 CC C compiler command
1337 CFLAGS C compiler flags
1338 CCAS assembler compiler command (defaults to CC)
1339 CCASFLAGS assembler compiler flags (defaults to CFLAGS)
1340 CXXCPP C++ preprocessor
1341
1342 Use these variables to override the choices made by `configure' or to help
1343 it to find libraries and programs with nonstandard names/locations.
1344
1345 Report bugs to <smartmontools-support@lists.sourceforge.net>.
1346 _ACEOF
1347 ac_status=$?
1348 fi
1349
1350 if test "$ac_init_help" = "recursive"; then
1351 # If there are subdirs, report their specific --help.
1352 for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue
1353 test -d "$ac_dir" || continue
1354 ac_builddir=.
1355
1356 case "$ac_dir" in
1357 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
1358 *)
1359 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
1360 # A ".." for each directory in $ac_dir_suffix.
1361 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
1362 case $ac_top_builddir_sub in
1363 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
1364 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
1365 esac ;;
1366 esac
1367 ac_abs_top_builddir=$ac_pwd
1368 ac_abs_builddir=$ac_pwd$ac_dir_suffix
1369 # for backward compatibility:
1370 ac_top_builddir=$ac_top_build_prefix
1371
1372 case $srcdir in
1373 .) # We are building in place.
1374 ac_srcdir=.
1375 ac_top_srcdir=$ac_top_builddir_sub
1376 ac_abs_top_srcdir=$ac_pwd ;;
1377 [\\/]* | ?:[\\/]* ) # Absolute name.
1378 ac_srcdir=$srcdir$ac_dir_suffix;
1379 ac_top_srcdir=$srcdir
1380 ac_abs_top_srcdir=$srcdir ;;
1381 *) # Relative name.
1382 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
1383 ac_top_srcdir=$ac_top_build_prefix$srcdir
1384 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
1385 esac
1386 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
1387
1388 cd "$ac_dir" || { ac_status=$?; continue; }
1389 # Check for guested configure.
1390 if test -f "$ac_srcdir/configure.gnu"; then
1391 echo &&
1392 $SHELL "$ac_srcdir/configure.gnu" --help=recursive
1393 elif test -f "$ac_srcdir/configure"; then
1394 echo &&
1395 $SHELL "$ac_srcdir/configure" --help=recursive
1396 else
1397 echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2
1398 fi || ac_status=$?
1399 cd "$ac_pwd" || { ac_status=$?; break; }
1400 done
1401 fi
1402
1403 test -n "$ac_init_help" && exit $ac_status
1404 if $ac_init_version; then
1405 cat <<\_ACEOF
1406 smartmontools configure 5.38
1407 generated by GNU Autoconf 2.60
1408
1409 Copyright (C) 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001,
1410 2002, 2003, 2004, 2005, 2006 Free Software Foundation, Inc.
1411 This configure script is free software; the Free Software Foundation
1412 gives unlimited permission to copy, distribute and modify it.
1413 _ACEOF
1414 exit
1415 fi
1416 cat >config.log <<_ACEOF
1417 This file contains any messages produced by compilers while
1418 running configure, to aid debugging if configure makes a mistake.
1419
1420 It was created by smartmontools $as_me 5.38, which was
1421 generated by GNU Autoconf 2.60. Invocation command line was
1422
1423 $ $0 $@
1424
1425 _ACEOF
1426 exec 5>>config.log
1427 {
1428 cat <<_ASUNAME
1429 ## --------- ##
1430 ## Platform. ##
1431 ## --------- ##
1432
1433 hostname = `(hostname || uname -n) 2>/dev/null | sed 1q`
1434 uname -m = `(uname -m) 2>/dev/null || echo unknown`
1435 uname -r = `(uname -r) 2>/dev/null || echo unknown`
1436 uname -s = `(uname -s) 2>/dev/null || echo unknown`
1437 uname -v = `(uname -v) 2>/dev/null || echo unknown`
1438
1439 /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown`
1440 /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown`
1441
1442 /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown`
1443 /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown`
1444 /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown`
1445 /usr/bin/hostinfo = `(/usr/bin/hostinfo) 2>/dev/null || echo unknown`
1446 /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown`
1447 /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown`
1448 /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown`
1449
1450 _ASUNAME
1451
1452 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1453 for as_dir in $PATH
1454 do
1455 IFS=$as_save_IFS
1456 test -z "$as_dir" && as_dir=.
1457 echo "PATH: $as_dir"
1458 done
1459 IFS=$as_save_IFS
1460
1461 } >&5
1462
1463 cat >&5 <<_ACEOF
1464
1465
1466 ## ----------- ##
1467 ## Core tests. ##
1468 ## ----------- ##
1469
1470 _ACEOF
1471
1472
1473 # Keep a trace of the command line.
1474 # Strip out --no-create and --no-recursion so they do not pile up.
1475 # Strip out --silent because we don't want to record it for future runs.
1476 # Also quote any args containing shell meta-characters.
1477 # Make two passes to allow for proper duplicate-argument suppression.
1478 ac_configure_args=
1479 ac_configure_args0=
1480 ac_configure_args1=
1481 ac_must_keep_next=false
1482 for ac_pass in 1 2
1483 do
1484 for ac_arg
1485 do
1486 case $ac_arg in
1487 -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;;
1488 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
1489 | -silent | --silent | --silen | --sile | --sil)
1490 continue ;;
1491 *\'*)
1492 ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;;
1493 esac
1494 case $ac_pass in
1495 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;;
1496 2)
1497 ac_configure_args1="$ac_configure_args1 '$ac_arg'"
1498 if test $ac_must_keep_next = true; then
1499 ac_must_keep_next=false # Got value, back to normal.
1500 else
1501 case $ac_arg in
1502 *=* | --config-cache | -C | -disable-* | --disable-* \
1503 | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \
1504 | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \
1505 | -with-* | --with-* | -without-* | --without-* | --x)
1506 case "$ac_configure_args0 " in
1507 "$ac_configure_args1"*" '$ac_arg' "* ) continue ;;
1508 esac
1509 ;;
1510 -* ) ac_must_keep_next=true ;;
1511 esac
1512 fi
1513 ac_configure_args="$ac_configure_args '$ac_arg'"
1514 ;;
1515 esac
1516 done
1517 done
1518 $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; }
1519 $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; }
1520
1521 # When interrupted or exit'd, cleanup temporary files, and complete
1522 # config.log. We remove comments because anyway the quotes in there
1523 # would cause problems or look ugly.
1524 # WARNING: Use '\'' to represent an apostrophe within the trap.
1525 # WARNING: Do not start the trap code with a newline, due to a FreeBSD 4.0 bug.
1526 trap 'exit_status=$?
1527 # Save into config.log some information that might help in debugging.
1528 {
1529 echo
1530
1531 cat <<\_ASBOX
1532 ## ---------------- ##
1533 ## Cache variables. ##
1534 ## ---------------- ##
1535 _ASBOX
1536 echo
1537 # The following way of writing the cache mishandles newlines in values,
1538 (
1539 for ac_var in `(set) 2>&1 | sed -n '\''s/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'\''`; do
1540 eval ac_val=\$$ac_var
1541 case $ac_val in #(
1542 *${as_nl}*)
1543 case $ac_var in #(
1544 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
1545 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
1546 esac
1547 case $ac_var in #(
1548 _ | IFS | as_nl) ;; #(
1549 *) $as_unset $ac_var ;;
1550 esac ;;
1551 esac
1552 done
1553 (set) 2>&1 |
1554 case $as_nl`(ac_space='\'' '\''; set) 2>&1` in #(
1555 *${as_nl}ac_space=\ *)
1556 sed -n \
1557 "s/'\''/'\''\\\\'\'''\''/g;
1558 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\''\\2'\''/p"
1559 ;; #(
1560 *)
1561 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
1562 ;;
1563 esac |
1564 sort
1565 )
1566 echo
1567
1568 cat <<\_ASBOX
1569 ## ----------------- ##
1570 ## Output variables. ##
1571 ## ----------------- ##
1572 _ASBOX
1573 echo
1574 for ac_var in $ac_subst_vars
1575 do
1576 eval ac_val=\$$ac_var
1577 case $ac_val in
1578 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1579 esac
1580 echo "$ac_var='\''$ac_val'\''"
1581 done | sort
1582 echo
1583
1584 if test -n "$ac_subst_files"; then
1585 cat <<\_ASBOX
1586 ## ------------------- ##
1587 ## File substitutions. ##
1588 ## ------------------- ##
1589 _ASBOX
1590 echo
1591 for ac_var in $ac_subst_files
1592 do
1593 eval ac_val=\$$ac_var
1594 case $ac_val in
1595 *\'\''*) ac_val=`echo "$ac_val" | sed "s/'\''/'\''\\\\\\\\'\'''\''/g"`;;
1596 esac
1597 echo "$ac_var='\''$ac_val'\''"
1598 done | sort
1599 echo
1600 fi
1601
1602 if test -s confdefs.h; then
1603 cat <<\_ASBOX
1604 ## ----------- ##
1605 ## confdefs.h. ##
1606 ## ----------- ##
1607 _ASBOX
1608 echo
1609 cat confdefs.h
1610 echo
1611 fi
1612 test "$ac_signal" != 0 &&
1613 echo "$as_me: caught signal $ac_signal"
1614 echo "$as_me: exit $exit_status"
1615 } >&5
1616 rm -f core *.core core.conftest.* &&
1617 rm -f -r conftest* confdefs* conf$$* $ac_clean_files &&
1618 exit $exit_status
1619 ' 0
1620 for ac_signal in 1 2 13 15; do
1621 trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal
1622 done
1623 ac_signal=0
1624
1625 # confdefs.h avoids OS command line length limits that DEFS can exceed.
1626 rm -f -r conftest* confdefs.h
1627
1628 # Predefined preprocessor variables.
1629
1630 cat >>confdefs.h <<_ACEOF
1631 #define PACKAGE_NAME "$PACKAGE_NAME"
1632 _ACEOF
1633
1634
1635 cat >>confdefs.h <<_ACEOF
1636 #define PACKAGE_TARNAME "$PACKAGE_TARNAME"
1637 _ACEOF
1638
1639
1640 cat >>confdefs.h <<_ACEOF
1641 #define PACKAGE_VERSION "$PACKAGE_VERSION"
1642 _ACEOF
1643
1644
1645 cat >>confdefs.h <<_ACEOF
1646 #define PACKAGE_STRING "$PACKAGE_STRING"
1647 _ACEOF
1648
1649
1650 cat >>confdefs.h <<_ACEOF
1651 #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT"
1652 _ACEOF
1653
1654
1655 # Let the site file select an alternate cache file if it wants to.
1656 # Prefer explicitly selected file to automatically selected ones.
1657 if test -n "$CONFIG_SITE"; then
1658 set x "$CONFIG_SITE"
1659 elif test "x$prefix" != xNONE; then
1660 set x "$prefix/share/config.site" "$prefix/etc/config.site"
1661 else
1662 set x "$ac_default_prefix/share/config.site" \
1663 "$ac_default_prefix/etc/config.site"
1664 fi
1665 shift
1666 for ac_site_file
1667 do
1668 if test -r "$ac_site_file"; then
1669 { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5
1670 echo "$as_me: loading site script $ac_site_file" >&6;}
1671 sed 's/^/| /' "$ac_site_file" >&5
1672 . "$ac_site_file"
1673 fi
1674 done
1675
1676 if test -r "$cache_file"; then
1677 # Some versions of bash will fail to source /dev/null (special
1678 # files actually), so we avoid doing that.
1679 if test -f "$cache_file"; then
1680 { echo "$as_me:$LINENO: loading cache $cache_file" >&5
1681 echo "$as_me: loading cache $cache_file" >&6;}
1682 case $cache_file in
1683 [\\/]* | ?:[\\/]* ) . "$cache_file";;
1684 *) . "./$cache_file";;
1685 esac
1686 fi
1687 else
1688 { echo "$as_me:$LINENO: creating cache $cache_file" >&5
1689 echo "$as_me: creating cache $cache_file" >&6;}
1690 >$cache_file
1691 fi
1692
1693 # Check that the precious variables saved in the cache have kept the same
1694 # value.
1695 ac_cache_corrupted=false
1696 for ac_var in $ac_precious_vars; do
1697 eval ac_old_set=\$ac_cv_env_${ac_var}_set
1698 eval ac_new_set=\$ac_env_${ac_var}_set
1699 eval ac_old_val=\$ac_cv_env_${ac_var}_value
1700 eval ac_new_val=\$ac_env_${ac_var}_value
1701 case $ac_old_set,$ac_new_set in
1702 set,)
1703 { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5
1704 echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;}
1705 ac_cache_corrupted=: ;;
1706 ,set)
1707 { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5
1708 echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;}
1709 ac_cache_corrupted=: ;;
1710 ,);;
1711 *)
1712 if test "x$ac_old_val" != "x$ac_new_val"; then
1713 { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5
1714 echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;}
1715 { echo "$as_me:$LINENO: former value: $ac_old_val" >&5
1716 echo "$as_me: former value: $ac_old_val" >&2;}
1717 { echo "$as_me:$LINENO: current value: $ac_new_val" >&5
1718 echo "$as_me: current value: $ac_new_val" >&2;}
1719 ac_cache_corrupted=:
1720 fi;;
1721 esac
1722 # Pass precious variables to config.status.
1723 if test "$ac_new_set" = set; then
1724 case $ac_new_val in
1725 *\'*) ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;;
1726 *) ac_arg=$ac_var=$ac_new_val ;;
1727 esac
1728 case " $ac_configure_args " in
1729 *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy.
1730 *) ac_configure_args="$ac_configure_args '$ac_arg'" ;;
1731 esac
1732 fi
1733 done
1734 if $ac_cache_corrupted; then
1735 { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5
1736 echo "$as_me: error: changes in the environment can compromise the build" >&2;}
1737 { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5
1738 echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;}
1739 { (exit 1); exit 1; }; }
1740 fi
1741
1742
1743
1744
1745
1746
1747
1748
1749
1750
1751
1752
1753
1754
1755
1756
1757
1758
1759
1760
1761
1762
1763
1764
1765
1766 ac_ext=c
1767 ac_cpp='$CPP $CPPFLAGS'
1768 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
1769 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
1770 ac_compiler_gnu=$ac_cv_c_compiler_gnu
1771
1772
1773
1774
1775 smartmontools_configure_date=`date -u +"%Y/%m/%d %T %Z"`
1776 smartmontools_cvs_tag=`echo '$Id: configure.in,v 1.129 2007/12/20 17:34:18 chrfranke Exp $'`
1777 smartmontools_release_date=2008/02/24
1778 smartmontools_release_time="20:16:09 GMT"
1779
1780
1781 cat >>confdefs.h <<_ACEOF
1782 #define SMARTMONTOOLS_CONFIGURE_ARGS "$ac_configure_args"
1783 _ACEOF
1784
1785
1786 cat >>confdefs.h <<_ACEOF
1787 #define SMARTMONTOOLS_CONFIGURE_DATE "$smartmontools_configure_date"
1788 _ACEOF
1789
1790
1791 cat >>confdefs.h <<_ACEOF
1792 #define SMARTMONTOOLS_RELEASE_DATE "$smartmontools_release_date"
1793 _ACEOF
1794
1795
1796 cat >>confdefs.h <<_ACEOF
1797 #define SMARTMONTOOLS_RELEASE_TIME "$smartmontools_release_time"
1798 _ACEOF
1799
1800
1801 cat >>confdefs.h <<_ACEOF
1802 #define CONFIG_H_CVSID "$smartmontools_cvs_tag"
1803 _ACEOF
1804
1805
1806 cat >>confdefs.h <<_ACEOF
1807 #define PACKAGE_HOMEPAGE "http://smartmontools.sourceforge.net/"
1808 _ACEOF
1809
1810
1811 ac_config_headers="$ac_config_headers config.h"
1812
1813
1814 am__api_version="1.9"
1815 ac_aux_dir=
1816 for ac_dir in "$srcdir" "$srcdir/.." "$srcdir/../.."; do
1817 if test -f "$ac_dir/install-sh"; then
1818 ac_aux_dir=$ac_dir
1819 ac_install_sh="$ac_aux_dir/install-sh -c"
1820 break
1821 elif test -f "$ac_dir/install.sh"; then
1822 ac_aux_dir=$ac_dir
1823 ac_install_sh="$ac_aux_dir/install.sh -c"
1824 break
1825 elif test -f "$ac_dir/shtool"; then
1826 ac_aux_dir=$ac_dir
1827 ac_install_sh="$ac_aux_dir/shtool install -c"
1828 break
1829 fi
1830 done
1831 if test -z "$ac_aux_dir"; then
1832 { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&5
1833 echo "$as_me: error: cannot find install-sh or install.sh in \"$srcdir\" \"$srcdir/..\" \"$srcdir/../..\"" >&2;}
1834 { (exit 1); exit 1; }; }
1835 fi
1836
1837 # These three variables are undocumented and unsupported,
1838 # and are intended to be withdrawn in a future Autoconf release.
1839 # They can cause serious problems if a builder's source tree is in a directory
1840 # whose full name contains unusual characters.
1841 ac_config_guess="$SHELL $ac_aux_dir/config.guess" # Please don't use this var.
1842 ac_config_sub="$SHELL $ac_aux_dir/config.sub" # Please don't use this var.
1843 ac_configure="$SHELL $ac_aux_dir/configure" # Please don't use this var.
1844
1845
1846 # Find a good install program. We prefer a C program (faster),
1847 # so one script is as good as another. But avoid the broken or
1848 # incompatible versions:
1849 # SysV /etc/install, /usr/sbin/install
1850 # SunOS /usr/etc/install
1851 # IRIX /sbin/install
1852 # AIX /bin/install
1853 # AmigaOS /C/install, which installs bootblocks on floppy discs
1854 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
1855 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
1856 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
1857 # OS/2's system install, which has a completely different semantic
1858 # ./install, which can be erroneously created by make from ./install.sh.
1859 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
1860 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
1861 if test -z "$INSTALL"; then
1862 if test "${ac_cv_path_install+set}" = set; then
1863 echo $ECHO_N "(cached) $ECHO_C" >&6
1864 else
1865 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
1866 for as_dir in $PATH
1867 do
1868 IFS=$as_save_IFS
1869 test -z "$as_dir" && as_dir=.
1870 # Account for people who put trailing slashes in PATH elements.
1871 case $as_dir/ in
1872 ./ | .// | /cC/* | \
1873 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
1874 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
1875 /usr/ucb/* ) ;;
1876 *)
1877 # OSF1 and SCO ODT 3.0 have their own names for install.
1878 # Don't use installbsd from OSF since it installs stuff as root
1879 # by default.
1880 for ac_prog in ginstall scoinst install; do
1881 for ac_exec_ext in '' $ac_executable_extensions; do
1882 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
1883 if test $ac_prog = install &&
1884 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1885 # AIX install. It has an incompatible calling convention.
1886 :
1887 elif test $ac_prog = install &&
1888 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
1889 # program-specific install script used by HP pwplus--don't use.
1890 :
1891 else
1892 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
1893 break 3
1894 fi
1895 fi
1896 done
1897 done
1898 ;;
1899 esac
1900 done
1901 IFS=$as_save_IFS
1902
1903
1904 fi
1905 if test "${ac_cv_path_install+set}" = set; then
1906 INSTALL=$ac_cv_path_install
1907 else
1908 # As a last resort, use the slow shell script. Don't cache a
1909 # value for INSTALL within a source directory, because that will
1910 # break other packages using the cache if that directory is
1911 # removed, or if the value is a relative name.
1912 INSTALL=$ac_install_sh
1913 fi
1914 fi
1915 { echo "$as_me:$LINENO: result: $INSTALL" >&5
1916 echo "${ECHO_T}$INSTALL" >&6; }
1917
1918 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
1919 # It thinks the first close brace ends the variable substitution.
1920 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
1921
1922 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
1923
1924 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
1925
1926 { echo "$as_me:$LINENO: checking whether build environment is sane" >&5
1927 echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6; }
1928 # Just in case
1929 sleep 1
1930 echo timestamp > conftest.file
1931 # Do `set' in a subshell so we don't clobber the current shell's
1932 # arguments. Must try -L first in case configure is actually a
1933 # symlink; some systems play weird games with the mod time of symlinks
1934 # (eg FreeBSD returns the mod time of the symlink's containing
1935 # directory).
1936 if (
1937 set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null`
1938 if test "$*" = "X"; then
1939 # -L didn't work.
1940 set X `ls -t $srcdir/configure conftest.file`
1941 fi
1942 rm -f conftest.file
1943 if test "$*" != "X $srcdir/configure conftest.file" \
1944 && test "$*" != "X conftest.file $srcdir/configure"; then
1945
1946 # If neither matched, then we have a broken ls. This can happen
1947 # if, for instance, CONFIG_SHELL is bash and it inherits a
1948 # broken ls alias from the environment. This has actually
1949 # happened. Such a system could not be considered "sane".
1950 { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken
1951 alias in your environment" >&5
1952 echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken
1953 alias in your environment" >&2;}
1954 { (exit 1); exit 1; }; }
1955 fi
1956
1957 test "$2" = conftest.file
1958 )
1959 then
1960 # Ok.
1961 :
1962 else
1963 { { echo "$as_me:$LINENO: error: newly created file is older than distributed files!
1964 Check your system clock" >&5
1965 echo "$as_me: error: newly created file is older than distributed files!
1966 Check your system clock" >&2;}
1967 { (exit 1); exit 1; }; }
1968 fi
1969 { echo "$as_me:$LINENO: result: yes" >&5
1970 echo "${ECHO_T}yes" >&6; }
1971 test "$program_prefix" != NONE &&
1972 program_transform_name="s&^&$program_prefix&;$program_transform_name"
1973 # Use a double $ so make ignores it.
1974 test "$program_suffix" != NONE &&
1975 program_transform_name="s&\$&$program_suffix&;$program_transform_name"
1976 # Double any \ or $. echo might interpret backslashes.
1977 # By default was `s,x,x', remove it if useless.
1978 cat <<\_ACEOF >conftest.sed
1979 s/[\\$]/&&/g;s/;s,x,x,$//
1980 _ACEOF
1981 program_transform_name=`echo $program_transform_name | sed -f conftest.sed`
1982 rm -f conftest.sed
1983
1984 # expand $ac_aux_dir to an absolute path
1985 am_aux_dir=`cd $ac_aux_dir && pwd`
1986
1987 test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing"
1988 # Use eval to expand $SHELL
1989 if eval "$MISSING --run true"; then
1990 am_missing_run="$MISSING --run "
1991 else
1992 am_missing_run=
1993 { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5
1994 echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;}
1995 fi
1996
1997 if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then
1998 # We used to keeping the `.' as first argument, in order to
1999 # allow $(mkdir_p) to be used without argument. As in
2000 # $(mkdir_p) $(somedir)
2001 # where $(somedir) is conditionally defined. However this is wrong
2002 # for two reasons:
2003 # 1. if the package is installed by a user who cannot write `.'
2004 # make install will fail,
2005 # 2. the above comment should most certainly read
2006 # $(mkdir_p) $(DESTDIR)$(somedir)
2007 # so it does not work when $(somedir) is undefined and
2008 # $(DESTDIR) is not.
2009 # To support the latter case, we have to write
2010 # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir),
2011 # so the `.' trick is pointless.
2012 mkdir_p='mkdir -p --'
2013 else
2014 # On NextStep and OpenStep, the `mkdir' command does not
2015 # recognize any option. It will interpret all options as
2016 # directories to create, and then abort because `.' already
2017 # exists.
2018 for d in ./-p ./--version;
2019 do
2020 test -d $d && rmdir $d
2021 done
2022 # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists.
2023 if test -f "$ac_aux_dir/mkinstalldirs"; then
2024 mkdir_p='$(mkinstalldirs)'
2025 else
2026 mkdir_p='$(install_sh) -d'
2027 fi
2028 fi
2029
2030 for ac_prog in gawk mawk nawk awk
2031 do
2032 # Extract the first word of "$ac_prog", so it can be a program name with args.
2033 set dummy $ac_prog; ac_word=$2
2034 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2035 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2036 if test "${ac_cv_prog_AWK+set}" = set; then
2037 echo $ECHO_N "(cached) $ECHO_C" >&6
2038 else
2039 if test -n "$AWK"; then
2040 ac_cv_prog_AWK="$AWK" # Let the user override the test.
2041 else
2042 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2043 for as_dir in $PATH
2044 do
2045 IFS=$as_save_IFS
2046 test -z "$as_dir" && as_dir=.
2047 for ac_exec_ext in '' $ac_executable_extensions; do
2048 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2049 ac_cv_prog_AWK="$ac_prog"
2050 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2051 break 2
2052 fi
2053 done
2054 done
2055 IFS=$as_save_IFS
2056
2057 fi
2058 fi
2059 AWK=$ac_cv_prog_AWK
2060 if test -n "$AWK"; then
2061 { echo "$as_me:$LINENO: result: $AWK" >&5
2062 echo "${ECHO_T}$AWK" >&6; }
2063 else
2064 { echo "$as_me:$LINENO: result: no" >&5
2065 echo "${ECHO_T}no" >&6; }
2066 fi
2067
2068
2069 test -n "$AWK" && break
2070 done
2071
2072 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
2073 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
2074 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
2075 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
2076 echo $ECHO_N "(cached) $ECHO_C" >&6
2077 else
2078 cat >conftest.make <<\_ACEOF
2079 SHELL = /bin/sh
2080 all:
2081 @echo '@@@%%%=$(MAKE)=@@@%%%'
2082 _ACEOF
2083 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
2084 case `${MAKE-make} -f conftest.make 2>/dev/null` in
2085 *@@@%%%=?*=@@@%%%*)
2086 eval ac_cv_prog_make_${ac_make}_set=yes;;
2087 *)
2088 eval ac_cv_prog_make_${ac_make}_set=no;;
2089 esac
2090 rm -f conftest.make
2091 fi
2092 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
2093 { echo "$as_me:$LINENO: result: yes" >&5
2094 echo "${ECHO_T}yes" >&6; }
2095 SET_MAKE=
2096 else
2097 { echo "$as_me:$LINENO: result: no" >&5
2098 echo "${ECHO_T}no" >&6; }
2099 SET_MAKE="MAKE=${MAKE-make}"
2100 fi
2101
2102 rm -rf .tst 2>/dev/null
2103 mkdir .tst 2>/dev/null
2104 if test -d .tst; then
2105 am__leading_dot=.
2106 else
2107 am__leading_dot=_
2108 fi
2109 rmdir .tst 2>/dev/null
2110
2111 # test to see if srcdir already configured
2112 if test "`cd $srcdir && pwd`" != "`pwd`" &&
2113 test -f $srcdir/config.status; then
2114 { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5
2115 echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;}
2116 { (exit 1); exit 1; }; }
2117 fi
2118
2119 # test whether we have cygpath
2120 if test -z "$CYGPATH_W"; then
2121 if (cygpath --version) >/dev/null 2>/dev/null; then
2122 CYGPATH_W='cygpath -w'
2123 else
2124 CYGPATH_W=echo
2125 fi
2126 fi
2127
2128
2129 # Define the identity of the package.
2130 PACKAGE='smartmontools'
2131 VERSION='5.38'
2132
2133
2134 cat >>confdefs.h <<_ACEOF
2135 #define PACKAGE "$PACKAGE"
2136 _ACEOF
2137
2138
2139 cat >>confdefs.h <<_ACEOF
2140 #define VERSION "$VERSION"
2141 _ACEOF
2142
2143 # Some tools Automake needs.
2144
2145 ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"}
2146
2147
2148 AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"}
2149
2150
2151 AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"}
2152
2153
2154 AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"}
2155
2156
2157 MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"}
2158
2159 install_sh=${install_sh-"$am_aux_dir/install-sh"}
2160
2161 # Installed binaries are usually stripped using `strip' when the user
2162 # run `make install-strip'. However `strip' might not be the right
2163 # tool to use in cross-compilation environments, therefore Automake
2164 # will honor the `STRIP' environment variable to overrule this program.
2165 if test "$cross_compiling" != no; then
2166 if test -n "$ac_tool_prefix"; then
2167 # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args.
2168 set dummy ${ac_tool_prefix}strip; ac_word=$2
2169 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2170 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2171 if test "${ac_cv_prog_STRIP+set}" = set; then
2172 echo $ECHO_N "(cached) $ECHO_C" >&6
2173 else
2174 if test -n "$STRIP"; then
2175 ac_cv_prog_STRIP="$STRIP" # Let the user override the test.
2176 else
2177 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2178 for as_dir in $PATH
2179 do
2180 IFS=$as_save_IFS
2181 test -z "$as_dir" && as_dir=.
2182 for ac_exec_ext in '' $ac_executable_extensions; do
2183 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2184 ac_cv_prog_STRIP="${ac_tool_prefix}strip"
2185 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2186 break 2
2187 fi
2188 done
2189 done
2190 IFS=$as_save_IFS
2191
2192 fi
2193 fi
2194 STRIP=$ac_cv_prog_STRIP
2195 if test -n "$STRIP"; then
2196 { echo "$as_me:$LINENO: result: $STRIP" >&5
2197 echo "${ECHO_T}$STRIP" >&6; }
2198 else
2199 { echo "$as_me:$LINENO: result: no" >&5
2200 echo "${ECHO_T}no" >&6; }
2201 fi
2202
2203
2204 fi
2205 if test -z "$ac_cv_prog_STRIP"; then
2206 ac_ct_STRIP=$STRIP
2207 # Extract the first word of "strip", so it can be a program name with args.
2208 set dummy strip; ac_word=$2
2209 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2210 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2211 if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then
2212 echo $ECHO_N "(cached) $ECHO_C" >&6
2213 else
2214 if test -n "$ac_ct_STRIP"; then
2215 ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test.
2216 else
2217 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2218 for as_dir in $PATH
2219 do
2220 IFS=$as_save_IFS
2221 test -z "$as_dir" && as_dir=.
2222 for ac_exec_ext in '' $ac_executable_extensions; do
2223 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2224 ac_cv_prog_ac_ct_STRIP="strip"
2225 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2226 break 2
2227 fi
2228 done
2229 done
2230 IFS=$as_save_IFS
2231
2232 fi
2233 fi
2234 ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP
2235 if test -n "$ac_ct_STRIP"; then
2236 { echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5
2237 echo "${ECHO_T}$ac_ct_STRIP" >&6; }
2238 else
2239 { echo "$as_me:$LINENO: result: no" >&5
2240 echo "${ECHO_T}no" >&6; }
2241 fi
2242
2243 if test "x$ac_ct_STRIP" = x; then
2244 STRIP=":"
2245 else
2246 case $cross_compiling:$ac_tool_warned in
2247 yes:)
2248 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2249 whose name does not start with the host triplet. If you think this
2250 configuration is useful to you, please write to autoconf@gnu.org." >&5
2251 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2252 whose name does not start with the host triplet. If you think this
2253 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2254 ac_tool_warned=yes ;;
2255 esac
2256 STRIP=$ac_ct_STRIP
2257 fi
2258 else
2259 STRIP="$ac_cv_prog_STRIP"
2260 fi
2261
2262 fi
2263 INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s"
2264
2265 # We need awk for the "check" target. The system "awk" is bad on
2266 # some platforms.
2267 # Always define AMTAR for backward compatibility.
2268
2269 AMTAR=${AMTAR-"${am_missing_run}tar"}
2270
2271 am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -'
2272
2273
2274
2275
2276
2277
2278 { echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5
2279 echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6; }
2280 # Check whether --enable-maintainer-mode was given.
2281 if test "${enable_maintainer_mode+set}" = set; then
2282 enableval=$enable_maintainer_mode; USE_MAINTAINER_MODE=$enableval
2283 else
2284 USE_MAINTAINER_MODE=no
2285 fi
2286
2287 { echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5
2288 echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6; }
2289
2290
2291 if test $USE_MAINTAINER_MODE = yes; then
2292 MAINTAINER_MODE_TRUE=
2293 MAINTAINER_MODE_FALSE='#'
2294 else
2295 MAINTAINER_MODE_TRUE='#'
2296 MAINTAINER_MODE_FALSE=
2297 fi
2298
2299 MAINT=$MAINTAINER_MODE_TRUE
2300
2301
2302
2303 ac_ext=cpp
2304 ac_cpp='$CXXCPP $CPPFLAGS'
2305 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2306 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2307 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2308
2309 ac_ext=cpp
2310 ac_cpp='$CXXCPP $CPPFLAGS'
2311 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2312 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2313 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2314 if test -z "$CXX"; then
2315 if test -n "$CCC"; then
2316 CXX=$CCC
2317 else
2318 if test -n "$ac_tool_prefix"; then
2319 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2320 do
2321 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
2322 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
2323 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2324 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2325 if test "${ac_cv_prog_CXX+set}" = set; then
2326 echo $ECHO_N "(cached) $ECHO_C" >&6
2327 else
2328 if test -n "$CXX"; then
2329 ac_cv_prog_CXX="$CXX" # Let the user override the test.
2330 else
2331 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2332 for as_dir in $PATH
2333 do
2334 IFS=$as_save_IFS
2335 test -z "$as_dir" && as_dir=.
2336 for ac_exec_ext in '' $ac_executable_extensions; do
2337 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2338 ac_cv_prog_CXX="$ac_tool_prefix$ac_prog"
2339 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2340 break 2
2341 fi
2342 done
2343 done
2344 IFS=$as_save_IFS
2345
2346 fi
2347 fi
2348 CXX=$ac_cv_prog_CXX
2349 if test -n "$CXX"; then
2350 { echo "$as_me:$LINENO: result: $CXX" >&5
2351 echo "${ECHO_T}$CXX" >&6; }
2352 else
2353 { echo "$as_me:$LINENO: result: no" >&5
2354 echo "${ECHO_T}no" >&6; }
2355 fi
2356
2357
2358 test -n "$CXX" && break
2359 done
2360 fi
2361 if test -z "$CXX"; then
2362 ac_ct_CXX=$CXX
2363 for ac_prog in g++ c++ gpp aCC CC cxx cc++ cl.exe FCC KCC RCC xlC_r xlC
2364 do
2365 # Extract the first word of "$ac_prog", so it can be a program name with args.
2366 set dummy $ac_prog; ac_word=$2
2367 { echo "$as_me:$LINENO: checking for $ac_word" >&5
2368 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
2369 if test "${ac_cv_prog_ac_ct_CXX+set}" = set; then
2370 echo $ECHO_N "(cached) $ECHO_C" >&6
2371 else
2372 if test -n "$ac_ct_CXX"; then
2373 ac_cv_prog_ac_ct_CXX="$ac_ct_CXX" # Let the user override the test.
2374 else
2375 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
2376 for as_dir in $PATH
2377 do
2378 IFS=$as_save_IFS
2379 test -z "$as_dir" && as_dir=.
2380 for ac_exec_ext in '' $ac_executable_extensions; do
2381 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
2382 ac_cv_prog_ac_ct_CXX="$ac_prog"
2383 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
2384 break 2
2385 fi
2386 done
2387 done
2388 IFS=$as_save_IFS
2389
2390 fi
2391 fi
2392 ac_ct_CXX=$ac_cv_prog_ac_ct_CXX
2393 if test -n "$ac_ct_CXX"; then
2394 { echo "$as_me:$LINENO: result: $ac_ct_CXX" >&5
2395 echo "${ECHO_T}$ac_ct_CXX" >&6; }
2396 else
2397 { echo "$as_me:$LINENO: result: no" >&5
2398 echo "${ECHO_T}no" >&6; }
2399 fi
2400
2401
2402 test -n "$ac_ct_CXX" && break
2403 done
2404
2405 if test "x$ac_ct_CXX" = x; then
2406 CXX="g++"
2407 else
2408 case $cross_compiling:$ac_tool_warned in
2409 yes:)
2410 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
2411 whose name does not start with the host triplet. If you think this
2412 configuration is useful to you, please write to autoconf@gnu.org." >&5
2413 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
2414 whose name does not start with the host triplet. If you think this
2415 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
2416 ac_tool_warned=yes ;;
2417 esac
2418 CXX=$ac_ct_CXX
2419 fi
2420 fi
2421
2422 fi
2423 fi
2424 # Provide some information about the compiler.
2425 echo "$as_me:$LINENO: checking for C++ compiler version" >&5
2426 ac_compiler=`set X $ac_compile; echo $2`
2427 { (ac_try="$ac_compiler --version >&5"
2428 case "(($ac_try" in
2429 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2430 *) ac_try_echo=$ac_try;;
2431 esac
2432 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2433 (eval "$ac_compiler --version >&5") 2>&5
2434 ac_status=$?
2435 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2436 (exit $ac_status); }
2437 { (ac_try="$ac_compiler -v >&5"
2438 case "(($ac_try" in
2439 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2440 *) ac_try_echo=$ac_try;;
2441 esac
2442 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2443 (eval "$ac_compiler -v >&5") 2>&5
2444 ac_status=$?
2445 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2446 (exit $ac_status); }
2447 { (ac_try="$ac_compiler -V >&5"
2448 case "(($ac_try" in
2449 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2450 *) ac_try_echo=$ac_try;;
2451 esac
2452 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2453 (eval "$ac_compiler -V >&5") 2>&5
2454 ac_status=$?
2455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2456 (exit $ac_status); }
2457
2458 cat >conftest.$ac_ext <<_ACEOF
2459 /* confdefs.h. */
2460 _ACEOF
2461 cat confdefs.h >>conftest.$ac_ext
2462 cat >>conftest.$ac_ext <<_ACEOF
2463 /* end confdefs.h. */
2464
2465 int
2466 main ()
2467 {
2468
2469 ;
2470 return 0;
2471 }
2472 _ACEOF
2473 ac_clean_files_save=$ac_clean_files
2474 ac_clean_files="$ac_clean_files a.out a.exe b.out"
2475 # Try to create an executable without -o first, disregard a.out.
2476 # It will help us diagnose broken compilers, and finding out an intuition
2477 # of exeext.
2478 { echo "$as_me:$LINENO: checking for C++ compiler default output file name" >&5
2479 echo $ECHO_N "checking for C++ compiler default output file name... $ECHO_C" >&6; }
2480 ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'`
2481 #
2482 # List of possible output files, starting from the most likely.
2483 # The algorithm is not robust to junk in `.', hence go to wildcards (a.*)
2484 # only as a last resort. b.out is created by i960 compilers.
2485 ac_files='a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out'
2486 #
2487 # The IRIX 6 linker writes into existing files which may not be
2488 # executable, retaining their permissions. Remove them first so a
2489 # subsequent execution test works.
2490 ac_rmfiles=
2491 for ac_file in $ac_files
2492 do
2493 case $ac_file in
2494 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2495 * ) ac_rmfiles="$ac_rmfiles $ac_file";;
2496 esac
2497 done
2498 rm -f $ac_rmfiles
2499
2500 if { (ac_try="$ac_link_default"
2501 case "(($ac_try" in
2502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2503 *) ac_try_echo=$ac_try;;
2504 esac
2505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2506 (eval "$ac_link_default") 2>&5
2507 ac_status=$?
2508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2509 (exit $ac_status); }; then
2510 # Autoconf-2.13 could set the ac_cv_exeext variable to `no'.
2511 # So ignore a value of `no', otherwise this would lead to `EXEEXT = no'
2512 # in a Makefile. We should not override ac_cv_exeext if it was cached,
2513 # so that the user can short-circuit this test for compilers unknown to
2514 # Autoconf.
2515 for ac_file in $ac_files
2516 do
2517 test -f "$ac_file" || continue
2518 case $ac_file in
2519 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj )
2520 ;;
2521 [ab].out )
2522 # We found the default executable, but exeext='' is most
2523 # certainly right.
2524 break;;
2525 *.* )
2526 if test "${ac_cv_exeext+set}" = set && test "$ac_cv_exeext" != no;
2527 then :; else
2528 ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2529 fi
2530 # We set ac_cv_exeext here because the later test for it is not
2531 # safe: cross compilers may not add the suffix if given an `-o'
2532 # argument, so we may need to know it at that point already.
2533 # Even if this section looks crufty: it has the advantage of
2534 # actually working.
2535 break;;
2536 * )
2537 break;;
2538 esac
2539 done
2540 test "$ac_cv_exeext" = no && ac_cv_exeext=
2541
2542 else
2543 echo "$as_me: failed program was:" >&5
2544 sed 's/^/| /' conftest.$ac_ext >&5
2545
2546 { { echo "$as_me:$LINENO: error: C++ compiler cannot create executables
2547 See \`config.log' for more details." >&5
2548 echo "$as_me: error: C++ compiler cannot create executables
2549 See \`config.log' for more details." >&2;}
2550 { (exit 77); exit 77; }; }
2551 fi
2552
2553 ac_exeext=$ac_cv_exeext
2554 { echo "$as_me:$LINENO: result: $ac_file" >&5
2555 echo "${ECHO_T}$ac_file" >&6; }
2556
2557 # Check that the compiler produces executables we can run. If not, either
2558 # the compiler is broken, or we cross compile.
2559 { echo "$as_me:$LINENO: checking whether the C++ compiler works" >&5
2560 echo $ECHO_N "checking whether the C++ compiler works... $ECHO_C" >&6; }
2561 # FIXME: These cross compiler hacks should be removed for Autoconf 3.0
2562 # If not cross compiling, check that we can run a simple program.
2563 if test "$cross_compiling" != yes; then
2564 if { ac_try='./$ac_file'
2565 { (case "(($ac_try" in
2566 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2567 *) ac_try_echo=$ac_try;;
2568 esac
2569 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2570 (eval "$ac_try") 2>&5
2571 ac_status=$?
2572 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2573 (exit $ac_status); }; }; then
2574 cross_compiling=no
2575 else
2576 if test "$cross_compiling" = maybe; then
2577 cross_compiling=yes
2578 else
2579 { { echo "$as_me:$LINENO: error: cannot run C++ compiled programs.
2580 If you meant to cross compile, use \`--host'.
2581 See \`config.log' for more details." >&5
2582 echo "$as_me: error: cannot run C++ compiled programs.
2583 If you meant to cross compile, use \`--host'.
2584 See \`config.log' for more details." >&2;}
2585 { (exit 1); exit 1; }; }
2586 fi
2587 fi
2588 fi
2589 { echo "$as_me:$LINENO: result: yes" >&5
2590 echo "${ECHO_T}yes" >&6; }
2591
2592 rm -f a.out a.exe conftest$ac_cv_exeext b.out
2593 ac_clean_files=$ac_clean_files_save
2594 # Check that the compiler produces executables we can run. If not, either
2595 # the compiler is broken, or we cross compile.
2596 { echo "$as_me:$LINENO: checking whether we are cross compiling" >&5
2597 echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6; }
2598 { echo "$as_me:$LINENO: result: $cross_compiling" >&5
2599 echo "${ECHO_T}$cross_compiling" >&6; }
2600
2601 { echo "$as_me:$LINENO: checking for suffix of executables" >&5
2602 echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6; }
2603 if { (ac_try="$ac_link"
2604 case "(($ac_try" in
2605 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2606 *) ac_try_echo=$ac_try;;
2607 esac
2608 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2609 (eval "$ac_link") 2>&5
2610 ac_status=$?
2611 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2612 (exit $ac_status); }; then
2613 # If both `conftest.exe' and `conftest' are `present' (well, observable)
2614 # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will
2615 # work properly (i.e., refer to `conftest.exe'), while it won't with
2616 # `rm'.
2617 for ac_file in conftest.exe conftest conftest.*; do
2618 test -f "$ac_file" || continue
2619 case $ac_file in
2620 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf | *.o | *.obj ) ;;
2621 *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'`
2622 break;;
2623 * ) break;;
2624 esac
2625 done
2626 else
2627 { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link
2628 See \`config.log' for more details." >&5
2629 echo "$as_me: error: cannot compute suffix of executables: cannot compile and link
2630 See \`config.log' for more details." >&2;}
2631 { (exit 1); exit 1; }; }
2632 fi
2633
2634 rm -f conftest$ac_cv_exeext
2635 { echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5
2636 echo "${ECHO_T}$ac_cv_exeext" >&6; }
2637
2638 rm -f conftest.$ac_ext
2639 EXEEXT=$ac_cv_exeext
2640 ac_exeext=$EXEEXT
2641 { echo "$as_me:$LINENO: checking for suffix of object files" >&5
2642 echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6; }
2643 if test "${ac_cv_objext+set}" = set; then
2644 echo $ECHO_N "(cached) $ECHO_C" >&6
2645 else
2646 cat >conftest.$ac_ext <<_ACEOF
2647 /* confdefs.h. */
2648 _ACEOF
2649 cat confdefs.h >>conftest.$ac_ext
2650 cat >>conftest.$ac_ext <<_ACEOF
2651 /* end confdefs.h. */
2652
2653 int
2654 main ()
2655 {
2656
2657 ;
2658 return 0;
2659 }
2660 _ACEOF
2661 rm -f conftest.o conftest.obj
2662 if { (ac_try="$ac_compile"
2663 case "(($ac_try" in
2664 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2665 *) ac_try_echo=$ac_try;;
2666 esac
2667 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2668 (eval "$ac_compile") 2>&5
2669 ac_status=$?
2670 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2671 (exit $ac_status); }; then
2672 for ac_file in conftest.o conftest.obj conftest.*; do
2673 test -f "$ac_file" || continue;
2674 case $ac_file in
2675 *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.map | *.inf ) ;;
2676 *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'`
2677 break;;
2678 esac
2679 done
2680 else
2681 echo "$as_me: failed program was:" >&5
2682 sed 's/^/| /' conftest.$ac_ext >&5
2683
2684 { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile
2685 See \`config.log' for more details." >&5
2686 echo "$as_me: error: cannot compute suffix of object files: cannot compile
2687 See \`config.log' for more details." >&2;}
2688 { (exit 1); exit 1; }; }
2689 fi
2690
2691 rm -f conftest.$ac_cv_objext conftest.$ac_ext
2692 fi
2693 { echo "$as_me:$LINENO: result: $ac_cv_objext" >&5
2694 echo "${ECHO_T}$ac_cv_objext" >&6; }
2695 OBJEXT=$ac_cv_objext
2696 ac_objext=$OBJEXT
2697 { echo "$as_me:$LINENO: checking whether we are using the GNU C++ compiler" >&5
2698 echo $ECHO_N "checking whether we are using the GNU C++ compiler... $ECHO_C" >&6; }
2699 if test "${ac_cv_cxx_compiler_gnu+set}" = set; then
2700 echo $ECHO_N "(cached) $ECHO_C" >&6
2701 else
2702 cat >conftest.$ac_ext <<_ACEOF
2703 /* confdefs.h. */
2704 _ACEOF
2705 cat confdefs.h >>conftest.$ac_ext
2706 cat >>conftest.$ac_ext <<_ACEOF
2707 /* end confdefs.h. */
2708
2709 int
2710 main ()
2711 {
2712 #ifndef __GNUC__
2713 choke me
2714 #endif
2715
2716 ;
2717 return 0;
2718 }
2719 _ACEOF
2720 rm -f conftest.$ac_objext
2721 if { (ac_try="$ac_compile"
2722 case "(($ac_try" in
2723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2724 *) ac_try_echo=$ac_try;;
2725 esac
2726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2727 (eval "$ac_compile") 2>conftest.er1
2728 ac_status=$?
2729 grep -v '^ *+' conftest.er1 >conftest.err
2730 rm -f conftest.er1
2731 cat conftest.err >&5
2732 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2733 (exit $ac_status); } &&
2734 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2735 { (case "(($ac_try" in
2736 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2737 *) ac_try_echo=$ac_try;;
2738 esac
2739 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2740 (eval "$ac_try") 2>&5
2741 ac_status=$?
2742 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2743 (exit $ac_status); }; } &&
2744 { ac_try='test -s conftest.$ac_objext'
2745 { (case "(($ac_try" in
2746 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2747 *) ac_try_echo=$ac_try;;
2748 esac
2749 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2750 (eval "$ac_try") 2>&5
2751 ac_status=$?
2752 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2753 (exit $ac_status); }; }; then
2754 ac_compiler_gnu=yes
2755 else
2756 echo "$as_me: failed program was:" >&5
2757 sed 's/^/| /' conftest.$ac_ext >&5
2758
2759 ac_compiler_gnu=no
2760 fi
2761
2762 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2763 ac_cv_cxx_compiler_gnu=$ac_compiler_gnu
2764
2765 fi
2766 { echo "$as_me:$LINENO: result: $ac_cv_cxx_compiler_gnu" >&5
2767 echo "${ECHO_T}$ac_cv_cxx_compiler_gnu" >&6; }
2768 GXX=`test $ac_compiler_gnu = yes && echo yes`
2769 ac_test_CXXFLAGS=${CXXFLAGS+set}
2770 ac_save_CXXFLAGS=$CXXFLAGS
2771 { echo "$as_me:$LINENO: checking whether $CXX accepts -g" >&5
2772 echo $ECHO_N "checking whether $CXX accepts -g... $ECHO_C" >&6; }
2773 if test "${ac_cv_prog_cxx_g+set}" = set; then
2774 echo $ECHO_N "(cached) $ECHO_C" >&6
2775 else
2776 ac_save_cxx_werror_flag=$ac_cxx_werror_flag
2777 ac_cxx_werror_flag=yes
2778 ac_cv_prog_cxx_g=no
2779 CXXFLAGS="-g"
2780 cat >conftest.$ac_ext <<_ACEOF
2781 /* confdefs.h. */
2782 _ACEOF
2783 cat confdefs.h >>conftest.$ac_ext
2784 cat >>conftest.$ac_ext <<_ACEOF
2785 /* end confdefs.h. */
2786
2787 int
2788 main ()
2789 {
2790
2791 ;
2792 return 0;
2793 }
2794 _ACEOF
2795 rm -f conftest.$ac_objext
2796 if { (ac_try="$ac_compile"
2797 case "(($ac_try" in
2798 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2799 *) ac_try_echo=$ac_try;;
2800 esac
2801 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2802 (eval "$ac_compile") 2>conftest.er1
2803 ac_status=$?
2804 grep -v '^ *+' conftest.er1 >conftest.err
2805 rm -f conftest.er1
2806 cat conftest.err >&5
2807 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2808 (exit $ac_status); } &&
2809 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2810 { (case "(($ac_try" in
2811 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2812 *) ac_try_echo=$ac_try;;
2813 esac
2814 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2815 (eval "$ac_try") 2>&5
2816 ac_status=$?
2817 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2818 (exit $ac_status); }; } &&
2819 { ac_try='test -s conftest.$ac_objext'
2820 { (case "(($ac_try" in
2821 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2822 *) ac_try_echo=$ac_try;;
2823 esac
2824 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2825 (eval "$ac_try") 2>&5
2826 ac_status=$?
2827 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2828 (exit $ac_status); }; }; then
2829 ac_cv_prog_cxx_g=yes
2830 else
2831 echo "$as_me: failed program was:" >&5
2832 sed 's/^/| /' conftest.$ac_ext >&5
2833
2834 CXXFLAGS=""
2835 cat >conftest.$ac_ext <<_ACEOF
2836 /* confdefs.h. */
2837 _ACEOF
2838 cat confdefs.h >>conftest.$ac_ext
2839 cat >>conftest.$ac_ext <<_ACEOF
2840 /* end confdefs.h. */
2841
2842 int
2843 main ()
2844 {
2845
2846 ;
2847 return 0;
2848 }
2849 _ACEOF
2850 rm -f conftest.$ac_objext
2851 if { (ac_try="$ac_compile"
2852 case "(($ac_try" in
2853 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2854 *) ac_try_echo=$ac_try;;
2855 esac
2856 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2857 (eval "$ac_compile") 2>conftest.er1
2858 ac_status=$?
2859 grep -v '^ *+' conftest.er1 >conftest.err
2860 rm -f conftest.er1
2861 cat conftest.err >&5
2862 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2863 (exit $ac_status); } &&
2864 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2865 { (case "(($ac_try" in
2866 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2867 *) ac_try_echo=$ac_try;;
2868 esac
2869 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2870 (eval "$ac_try") 2>&5
2871 ac_status=$?
2872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2873 (exit $ac_status); }; } &&
2874 { ac_try='test -s conftest.$ac_objext'
2875 { (case "(($ac_try" in
2876 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2877 *) ac_try_echo=$ac_try;;
2878 esac
2879 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2880 (eval "$ac_try") 2>&5
2881 ac_status=$?
2882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2883 (exit $ac_status); }; }; then
2884 :
2885 else
2886 echo "$as_me: failed program was:" >&5
2887 sed 's/^/| /' conftest.$ac_ext >&5
2888
2889 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2890 CXXFLAGS="-g"
2891 cat >conftest.$ac_ext <<_ACEOF
2892 /* confdefs.h. */
2893 _ACEOF
2894 cat confdefs.h >>conftest.$ac_ext
2895 cat >>conftest.$ac_ext <<_ACEOF
2896 /* end confdefs.h. */
2897
2898 int
2899 main ()
2900 {
2901
2902 ;
2903 return 0;
2904 }
2905 _ACEOF
2906 rm -f conftest.$ac_objext
2907 if { (ac_try="$ac_compile"
2908 case "(($ac_try" in
2909 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2910 *) ac_try_echo=$ac_try;;
2911 esac
2912 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2913 (eval "$ac_compile") 2>conftest.er1
2914 ac_status=$?
2915 grep -v '^ *+' conftest.er1 >conftest.err
2916 rm -f conftest.er1
2917 cat conftest.err >&5
2918 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2919 (exit $ac_status); } &&
2920 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
2921 { (case "(($ac_try" in
2922 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2923 *) ac_try_echo=$ac_try;;
2924 esac
2925 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2926 (eval "$ac_try") 2>&5
2927 ac_status=$?
2928 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2929 (exit $ac_status); }; } &&
2930 { ac_try='test -s conftest.$ac_objext'
2931 { (case "(($ac_try" in
2932 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
2933 *) ac_try_echo=$ac_try;;
2934 esac
2935 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
2936 (eval "$ac_try") 2>&5
2937 ac_status=$?
2938 echo "$as_me:$LINENO: \$? = $ac_status" >&5
2939 (exit $ac_status); }; }; then
2940 ac_cv_prog_cxx_g=yes
2941 else
2942 echo "$as_me: failed program was:" >&5
2943 sed 's/^/| /' conftest.$ac_ext >&5
2944
2945
2946 fi
2947
2948 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2949 fi
2950
2951 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2952 fi
2953
2954 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
2955 ac_cxx_werror_flag=$ac_save_cxx_werror_flag
2956 fi
2957 { echo "$as_me:$LINENO: result: $ac_cv_prog_cxx_g" >&5
2958 echo "${ECHO_T}$ac_cv_prog_cxx_g" >&6; }
2959 if test "$ac_test_CXXFLAGS" = set; then
2960 CXXFLAGS=$ac_save_CXXFLAGS
2961 elif test $ac_cv_prog_cxx_g = yes; then
2962 if test "$GXX" = yes; then
2963 CXXFLAGS="-g -O2"
2964 else
2965 CXXFLAGS="-g"
2966 fi
2967 else
2968 if test "$GXX" = yes; then
2969 CXXFLAGS="-O2"
2970 else
2971 CXXFLAGS=
2972 fi
2973 fi
2974 ac_ext=cpp
2975 ac_cpp='$CXXCPP $CPPFLAGS'
2976 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
2977 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
2978 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
2979 DEPDIR="${am__leading_dot}deps"
2980
2981 ac_config_commands="$ac_config_commands depfiles"
2982
2983
2984 am_make=${MAKE-make}
2985 cat > confinc << 'END'
2986 am__doit:
2987 @echo done
2988 .PHONY: am__doit
2989 END
2990 # If we don't find an include directive, just comment out the code.
2991 { echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5
2992 echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6; }
2993 am__include="#"
2994 am__quote=
2995 _am_result=none
2996 # First try GNU make style include.
2997 echo "include confinc" > confmf
2998 # We grep out `Entering directory' and `Leaving directory'
2999 # messages which can occur if `w' ends up in MAKEFLAGS.
3000 # In particular we don't look at `^make:' because GNU make might
3001 # be invoked under some other name (usually "gmake"), in which
3002 # case it prints its new name instead of `make'.
3003 if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then
3004 am__include=include
3005 am__quote=
3006 _am_result=GNU
3007 fi
3008 # Now try BSD make style include.
3009 if test "$am__include" = "#"; then
3010 echo '.include "confinc"' > confmf
3011 if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then
3012 am__include=.include
3013 am__quote="\""
3014 _am_result=BSD
3015 fi
3016 fi
3017
3018
3019 { echo "$as_me:$LINENO: result: $_am_result" >&5
3020 echo "${ECHO_T}$_am_result" >&6; }
3021 rm -f confinc confmf
3022
3023 # Check whether --enable-dependency-tracking was given.
3024 if test "${enable_dependency_tracking+set}" = set; then
3025 enableval=$enable_dependency_tracking;
3026 fi
3027
3028 if test "x$enable_dependency_tracking" != xno; then
3029 am_depcomp="$ac_aux_dir/depcomp"
3030 AMDEPBACKSLASH='\'
3031 fi
3032
3033
3034 if test "x$enable_dependency_tracking" != xno; then
3035 AMDEP_TRUE=
3036 AMDEP_FALSE='#'
3037 else
3038 AMDEP_TRUE='#'
3039 AMDEP_FALSE=
3040 fi
3041
3042
3043
3044
3045 depcc="$CXX" am_compiler_list=
3046
3047 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3048 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3049 if test "${am_cv_CXX_dependencies_compiler_type+set}" = set; then
3050 echo $ECHO_N "(cached) $ECHO_C" >&6
3051 else
3052 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3053 # We make a subdir and do the tests there. Otherwise we can end up
3054 # making bogus files that we don't know about and never remove. For
3055 # instance it was reported that on HP-UX the gcc test will end up
3056 # making a dummy file named `D' -- because `-MD' means `put the output
3057 # in D'.
3058 mkdir conftest.dir
3059 # Copy depcomp to subdir because otherwise we won't find it if we're
3060 # using a relative directory.
3061 cp "$am_depcomp" conftest.dir
3062 cd conftest.dir
3063 # We will build objects and dependencies in a subdirectory because
3064 # it helps to detect inapplicable dependency modes. For instance
3065 # both Tru64's cc and ICC support -MD to output dependencies as a
3066 # side effect of compilation, but ICC will put the dependencies in
3067 # the current directory while Tru64 will put them in the object
3068 # directory.
3069 mkdir sub
3070
3071 am_cv_CXX_dependencies_compiler_type=none
3072 if test "$am_compiler_list" = ""; then
3073 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3074 fi
3075 for depmode in $am_compiler_list; do
3076 # Setup a source with many dependencies, because some compilers
3077 # like to wrap large dependency lists on column 80 (with \), and
3078 # we should not choose a depcomp mode which is confused by this.
3079 #
3080 # We need to recreate these files for each test, as the compiler may
3081 # overwrite some of them when testing with obscure command lines.
3082 # This happens at least with the AIX C compiler.
3083 : > sub/conftest.c
3084 for i in 1 2 3 4 5 6; do
3085 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3086 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3087 # Solaris 8's {/usr,}/bin/sh.
3088 touch sub/conftst$i.h
3089 done
3090 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3091
3092 case $depmode in
3093 nosideeffect)
3094 # after this tag, mechanisms are not by side-effect, so they'll
3095 # only be used when explicitly requested
3096 if test "x$enable_dependency_tracking" = xyes; then
3097 continue
3098 else
3099 break
3100 fi
3101 ;;
3102 none) break ;;
3103 esac
3104 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3105 # mode. It turns out that the SunPro C++ compiler does not properly
3106 # handle `-M -o', and we need to detect this.
3107 if depmode=$depmode \
3108 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3109 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3110 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3111 >/dev/null 2>conftest.err &&
3112 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3113 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3114 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3115 # icc doesn't choke on unknown options, it will just issue warnings
3116 # or remarks (even with -Werror). So we grep stderr for any message
3117 # that says an option was ignored or not supported.
3118 # When given -MP, icc 7.0 and 7.1 complain thusly:
3119 # icc: Command line warning: ignoring option '-M'; no argument required
3120 # The diagnosis changed in icc 8.0:
3121 # icc: Command line remark: option '-MP' not supported
3122 if (grep 'ignoring option' conftest.err ||
3123 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3124 am_cv_CXX_dependencies_compiler_type=$depmode
3125 break
3126 fi
3127 fi
3128 done
3129
3130 cd ..
3131 rm -rf conftest.dir
3132 else
3133 am_cv_CXX_dependencies_compiler_type=none
3134 fi
3135
3136 fi
3137 { echo "$as_me:$LINENO: result: $am_cv_CXX_dependencies_compiler_type" >&5
3138 echo "${ECHO_T}$am_cv_CXX_dependencies_compiler_type" >&6; }
3139 CXXDEPMODE=depmode=$am_cv_CXX_dependencies_compiler_type
3140
3141
3142
3143 if
3144 test "x$enable_dependency_tracking" != xno \
3145 && test "$am_cv_CXX_dependencies_compiler_type" = gcc3; then
3146 am__fastdepCXX_TRUE=
3147 am__fastdepCXX_FALSE='#'
3148 else
3149 am__fastdepCXX_TRUE='#'
3150 am__fastdepCXX_FALSE=
3151 fi
3152
3153
3154 ac_ext=c
3155 ac_cpp='$CPP $CPPFLAGS'
3156 ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3157 ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3158 ac_compiler_gnu=$ac_cv_c_compiler_gnu
3159 if test -n "$ac_tool_prefix"; then
3160 # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args.
3161 set dummy ${ac_tool_prefix}gcc; ac_word=$2
3162 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3163 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3164 if test "${ac_cv_prog_CC+set}" = set; then
3165 echo $ECHO_N "(cached) $ECHO_C" >&6
3166 else
3167 if test -n "$CC"; then
3168 ac_cv_prog_CC="$CC" # Let the user override the test.
3169 else
3170 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3171 for as_dir in $PATH
3172 do
3173 IFS=$as_save_IFS
3174 test -z "$as_dir" && as_dir=.
3175 for ac_exec_ext in '' $ac_executable_extensions; do
3176 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3177 ac_cv_prog_CC="${ac_tool_prefix}gcc"
3178 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3179 break 2
3180 fi
3181 done
3182 done
3183 IFS=$as_save_IFS
3184
3185 fi
3186 fi
3187 CC=$ac_cv_prog_CC
3188 if test -n "$CC"; then
3189 { echo "$as_me:$LINENO: result: $CC" >&5
3190 echo "${ECHO_T}$CC" >&6; }
3191 else
3192 { echo "$as_me:$LINENO: result: no" >&5
3193 echo "${ECHO_T}no" >&6; }
3194 fi
3195
3196
3197 fi
3198 if test -z "$ac_cv_prog_CC"; then
3199 ac_ct_CC=$CC
3200 # Extract the first word of "gcc", so it can be a program name with args.
3201 set dummy gcc; ac_word=$2
3202 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3203 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3204 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3205 echo $ECHO_N "(cached) $ECHO_C" >&6
3206 else
3207 if test -n "$ac_ct_CC"; then
3208 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3209 else
3210 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3211 for as_dir in $PATH
3212 do
3213 IFS=$as_save_IFS
3214 test -z "$as_dir" && as_dir=.
3215 for ac_exec_ext in '' $ac_executable_extensions; do
3216 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3217 ac_cv_prog_ac_ct_CC="gcc"
3218 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3219 break 2
3220 fi
3221 done
3222 done
3223 IFS=$as_save_IFS
3224
3225 fi
3226 fi
3227 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3228 if test -n "$ac_ct_CC"; then
3229 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3230 echo "${ECHO_T}$ac_ct_CC" >&6; }
3231 else
3232 { echo "$as_me:$LINENO: result: no" >&5
3233 echo "${ECHO_T}no" >&6; }
3234 fi
3235
3236 if test "x$ac_ct_CC" = x; then
3237 CC=""
3238 else
3239 case $cross_compiling:$ac_tool_warned in
3240 yes:)
3241 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3242 whose name does not start with the host triplet. If you think this
3243 configuration is useful to you, please write to autoconf@gnu.org." >&5
3244 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3245 whose name does not start with the host triplet. If you think this
3246 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3247 ac_tool_warned=yes ;;
3248 esac
3249 CC=$ac_ct_CC
3250 fi
3251 else
3252 CC="$ac_cv_prog_CC"
3253 fi
3254
3255 if test -z "$CC"; then
3256 if test -n "$ac_tool_prefix"; then
3257 # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args.
3258 set dummy ${ac_tool_prefix}cc; ac_word=$2
3259 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3260 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3261 if test "${ac_cv_prog_CC+set}" = set; then
3262 echo $ECHO_N "(cached) $ECHO_C" >&6
3263 else
3264 if test -n "$CC"; then
3265 ac_cv_prog_CC="$CC" # Let the user override the test.
3266 else
3267 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3268 for as_dir in $PATH
3269 do
3270 IFS=$as_save_IFS
3271 test -z "$as_dir" && as_dir=.
3272 for ac_exec_ext in '' $ac_executable_extensions; do
3273 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3274 ac_cv_prog_CC="${ac_tool_prefix}cc"
3275 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3276 break 2
3277 fi
3278 done
3279 done
3280 IFS=$as_save_IFS
3281
3282 fi
3283 fi
3284 CC=$ac_cv_prog_CC
3285 if test -n "$CC"; then
3286 { echo "$as_me:$LINENO: result: $CC" >&5
3287 echo "${ECHO_T}$CC" >&6; }
3288 else
3289 { echo "$as_me:$LINENO: result: no" >&5
3290 echo "${ECHO_T}no" >&6; }
3291 fi
3292
3293
3294 fi
3295 fi
3296 if test -z "$CC"; then
3297 # Extract the first word of "cc", so it can be a program name with args.
3298 set dummy cc; ac_word=$2
3299 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3300 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3301 if test "${ac_cv_prog_CC+set}" = set; then
3302 echo $ECHO_N "(cached) $ECHO_C" >&6
3303 else
3304 if test -n "$CC"; then
3305 ac_cv_prog_CC="$CC" # Let the user override the test.
3306 else
3307 ac_prog_rejected=no
3308 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3309 for as_dir in $PATH
3310 do
3311 IFS=$as_save_IFS
3312 test -z "$as_dir" && as_dir=.
3313 for ac_exec_ext in '' $ac_executable_extensions; do
3314 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3315 if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then
3316 ac_prog_rejected=yes
3317 continue
3318 fi
3319 ac_cv_prog_CC="cc"
3320 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3321 break 2
3322 fi
3323 done
3324 done
3325 IFS=$as_save_IFS
3326
3327 if test $ac_prog_rejected = yes; then
3328 # We found a bogon in the path, so make sure we never use it.
3329 set dummy $ac_cv_prog_CC
3330 shift
3331 if test $# != 0; then
3332 # We chose a different compiler from the bogus one.
3333 # However, it has the same basename, so the bogon will be chosen
3334 # first if we set CC to just the basename; use the full file name.
3335 shift
3336 ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@"
3337 fi
3338 fi
3339 fi
3340 fi
3341 CC=$ac_cv_prog_CC
3342 if test -n "$CC"; then
3343 { echo "$as_me:$LINENO: result: $CC" >&5
3344 echo "${ECHO_T}$CC" >&6; }
3345 else
3346 { echo "$as_me:$LINENO: result: no" >&5
3347 echo "${ECHO_T}no" >&6; }
3348 fi
3349
3350
3351 fi
3352 if test -z "$CC"; then
3353 if test -n "$ac_tool_prefix"; then
3354 for ac_prog in cl.exe
3355 do
3356 # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args.
3357 set dummy $ac_tool_prefix$ac_prog; ac_word=$2
3358 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3359 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3360 if test "${ac_cv_prog_CC+set}" = set; then
3361 echo $ECHO_N "(cached) $ECHO_C" >&6
3362 else
3363 if test -n "$CC"; then
3364 ac_cv_prog_CC="$CC" # Let the user override the test.
3365 else
3366 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3367 for as_dir in $PATH
3368 do
3369 IFS=$as_save_IFS
3370 test -z "$as_dir" && as_dir=.
3371 for ac_exec_ext in '' $ac_executable_extensions; do
3372 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3373 ac_cv_prog_CC="$ac_tool_prefix$ac_prog"
3374 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3375 break 2
3376 fi
3377 done
3378 done
3379 IFS=$as_save_IFS
3380
3381 fi
3382 fi
3383 CC=$ac_cv_prog_CC
3384 if test -n "$CC"; then
3385 { echo "$as_me:$LINENO: result: $CC" >&5
3386 echo "${ECHO_T}$CC" >&6; }
3387 else
3388 { echo "$as_me:$LINENO: result: no" >&5
3389 echo "${ECHO_T}no" >&6; }
3390 fi
3391
3392
3393 test -n "$CC" && break
3394 done
3395 fi
3396 if test -z "$CC"; then
3397 ac_ct_CC=$CC
3398 for ac_prog in cl.exe
3399 do
3400 # Extract the first word of "$ac_prog", so it can be a program name with args.
3401 set dummy $ac_prog; ac_word=$2
3402 { echo "$as_me:$LINENO: checking for $ac_word" >&5
3403 echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6; }
3404 if test "${ac_cv_prog_ac_ct_CC+set}" = set; then
3405 echo $ECHO_N "(cached) $ECHO_C" >&6
3406 else
3407 if test -n "$ac_ct_CC"; then
3408 ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test.
3409 else
3410 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
3411 for as_dir in $PATH
3412 do
3413 IFS=$as_save_IFS
3414 test -z "$as_dir" && as_dir=.
3415 for ac_exec_ext in '' $ac_executable_extensions; do
3416 if { test -f "$as_dir/$ac_word$ac_exec_ext" && $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; }; then
3417 ac_cv_prog_ac_ct_CC="$ac_prog"
3418 echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5
3419 break 2
3420 fi
3421 done
3422 done
3423 IFS=$as_save_IFS
3424
3425 fi
3426 fi
3427 ac_ct_CC=$ac_cv_prog_ac_ct_CC
3428 if test -n "$ac_ct_CC"; then
3429 { echo "$as_me:$LINENO: result: $ac_ct_CC" >&5
3430 echo "${ECHO_T}$ac_ct_CC" >&6; }
3431 else
3432 { echo "$as_me:$LINENO: result: no" >&5
3433 echo "${ECHO_T}no" >&6; }
3434 fi
3435
3436
3437 test -n "$ac_ct_CC" && break
3438 done
3439
3440 if test "x$ac_ct_CC" = x; then
3441 CC=""
3442 else
3443 case $cross_compiling:$ac_tool_warned in
3444 yes:)
3445 { echo "$as_me:$LINENO: WARNING: In the future, Autoconf will not detect cross-tools
3446 whose name does not start with the host triplet. If you think this
3447 configuration is useful to you, please write to autoconf@gnu.org." >&5
3448 echo "$as_me: WARNING: In the future, Autoconf will not detect cross-tools
3449 whose name does not start with the host triplet. If you think this
3450 configuration is useful to you, please write to autoconf@gnu.org." >&2;}
3451 ac_tool_warned=yes ;;
3452 esac
3453 CC=$ac_ct_CC
3454 fi
3455 fi
3456
3457 fi
3458
3459
3460 test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH
3461 See \`config.log' for more details." >&5
3462 echo "$as_me: error: no acceptable C compiler found in \$PATH
3463 See \`config.log' for more details." >&2;}
3464 { (exit 1); exit 1; }; }
3465
3466 # Provide some information about the compiler.
3467 echo "$as_me:$LINENO: checking for C compiler version" >&5
3468 ac_compiler=`set X $ac_compile; echo $2`
3469 { (ac_try="$ac_compiler --version >&5"
3470 case "(($ac_try" in
3471 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3472 *) ac_try_echo=$ac_try;;
3473 esac
3474 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3475 (eval "$ac_compiler --version >&5") 2>&5
3476 ac_status=$?
3477 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3478 (exit $ac_status); }
3479 { (ac_try="$ac_compiler -v >&5"
3480 case "(($ac_try" in
3481 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3482 *) ac_try_echo=$ac_try;;
3483 esac
3484 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3485 (eval "$ac_compiler -v >&5") 2>&5
3486 ac_status=$?
3487 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3488 (exit $ac_status); }
3489 { (ac_try="$ac_compiler -V >&5"
3490 case "(($ac_try" in
3491 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3492 *) ac_try_echo=$ac_try;;
3493 esac
3494 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3495 (eval "$ac_compiler -V >&5") 2>&5
3496 ac_status=$?
3497 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3498 (exit $ac_status); }
3499
3500 { echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5
3501 echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6; }
3502 if test "${ac_cv_c_compiler_gnu+set}" = set; then
3503 echo $ECHO_N "(cached) $ECHO_C" >&6
3504 else
3505 cat >conftest.$ac_ext <<_ACEOF
3506 /* confdefs.h. */
3507 _ACEOF
3508 cat confdefs.h >>conftest.$ac_ext
3509 cat >>conftest.$ac_ext <<_ACEOF
3510 /* end confdefs.h. */
3511
3512 int
3513 main ()
3514 {
3515 #ifndef __GNUC__
3516 choke me
3517 #endif
3518
3519 ;
3520 return 0;
3521 }
3522 _ACEOF
3523 rm -f conftest.$ac_objext
3524 if { (ac_try="$ac_compile"
3525 case "(($ac_try" in
3526 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3527 *) ac_try_echo=$ac_try;;
3528 esac
3529 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3530 (eval "$ac_compile") 2>conftest.er1
3531 ac_status=$?
3532 grep -v '^ *+' conftest.er1 >conftest.err
3533 rm -f conftest.er1
3534 cat conftest.err >&5
3535 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3536 (exit $ac_status); } &&
3537 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3538 { (case "(($ac_try" in
3539 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3540 *) ac_try_echo=$ac_try;;
3541 esac
3542 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3543 (eval "$ac_try") 2>&5
3544 ac_status=$?
3545 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3546 (exit $ac_status); }; } &&
3547 { ac_try='test -s conftest.$ac_objext'
3548 { (case "(($ac_try" in
3549 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3550 *) ac_try_echo=$ac_try;;
3551 esac
3552 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3553 (eval "$ac_try") 2>&5
3554 ac_status=$?
3555 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3556 (exit $ac_status); }; }; then
3557 ac_compiler_gnu=yes
3558 else
3559 echo "$as_me: failed program was:" >&5
3560 sed 's/^/| /' conftest.$ac_ext >&5
3561
3562 ac_compiler_gnu=no
3563 fi
3564
3565 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3566 ac_cv_c_compiler_gnu=$ac_compiler_gnu
3567
3568 fi
3569 { echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5
3570 echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6; }
3571 GCC=`test $ac_compiler_gnu = yes && echo yes`
3572 ac_test_CFLAGS=${CFLAGS+set}
3573 ac_save_CFLAGS=$CFLAGS
3574 { echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5
3575 echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6; }
3576 if test "${ac_cv_prog_cc_g+set}" = set; then
3577 echo $ECHO_N "(cached) $ECHO_C" >&6
3578 else
3579 ac_save_c_werror_flag=$ac_c_werror_flag
3580 ac_c_werror_flag=yes
3581 ac_cv_prog_cc_g=no
3582 CFLAGS="-g"
3583 cat >conftest.$ac_ext <<_ACEOF
3584 /* confdefs.h. */
3585 _ACEOF
3586 cat confdefs.h >>conftest.$ac_ext
3587 cat >>conftest.$ac_ext <<_ACEOF
3588 /* end confdefs.h. */
3589
3590 int
3591 main ()
3592 {
3593
3594 ;
3595 return 0;
3596 }
3597 _ACEOF
3598 rm -f conftest.$ac_objext
3599 if { (ac_try="$ac_compile"
3600 case "(($ac_try" in
3601 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3602 *) ac_try_echo=$ac_try;;
3603 esac
3604 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3605 (eval "$ac_compile") 2>conftest.er1
3606 ac_status=$?
3607 grep -v '^ *+' conftest.er1 >conftest.err
3608 rm -f conftest.er1
3609 cat conftest.err >&5
3610 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3611 (exit $ac_status); } &&
3612 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3613 { (case "(($ac_try" in
3614 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3615 *) ac_try_echo=$ac_try;;
3616 esac
3617 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3618 (eval "$ac_try") 2>&5
3619 ac_status=$?
3620 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3621 (exit $ac_status); }; } &&
3622 { ac_try='test -s conftest.$ac_objext'
3623 { (case "(($ac_try" in
3624 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3625 *) ac_try_echo=$ac_try;;
3626 esac
3627 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3628 (eval "$ac_try") 2>&5
3629 ac_status=$?
3630 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3631 (exit $ac_status); }; }; then
3632 ac_cv_prog_cc_g=yes
3633 else
3634 echo "$as_me: failed program was:" >&5
3635 sed 's/^/| /' conftest.$ac_ext >&5
3636
3637 CFLAGS=""
3638 cat >conftest.$ac_ext <<_ACEOF
3639 /* confdefs.h. */
3640 _ACEOF
3641 cat confdefs.h >>conftest.$ac_ext
3642 cat >>conftest.$ac_ext <<_ACEOF
3643 /* end confdefs.h. */
3644
3645 int
3646 main ()
3647 {
3648
3649 ;
3650 return 0;
3651 }
3652 _ACEOF
3653 rm -f conftest.$ac_objext
3654 if { (ac_try="$ac_compile"
3655 case "(($ac_try" in
3656 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3657 *) ac_try_echo=$ac_try;;
3658 esac
3659 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3660 (eval "$ac_compile") 2>conftest.er1
3661 ac_status=$?
3662 grep -v '^ *+' conftest.er1 >conftest.err
3663 rm -f conftest.er1
3664 cat conftest.err >&5
3665 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3666 (exit $ac_status); } &&
3667 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3668 { (case "(($ac_try" in
3669 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3670 *) ac_try_echo=$ac_try;;
3671 esac
3672 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3673 (eval "$ac_try") 2>&5
3674 ac_status=$?
3675 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3676 (exit $ac_status); }; } &&
3677 { ac_try='test -s conftest.$ac_objext'
3678 { (case "(($ac_try" in
3679 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3680 *) ac_try_echo=$ac_try;;
3681 esac
3682 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3683 (eval "$ac_try") 2>&5
3684 ac_status=$?
3685 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3686 (exit $ac_status); }; }; then
3687 :
3688 else
3689 echo "$as_me: failed program was:" >&5
3690 sed 's/^/| /' conftest.$ac_ext >&5
3691
3692 ac_c_werror_flag=$ac_save_c_werror_flag
3693 CFLAGS="-g"
3694 cat >conftest.$ac_ext <<_ACEOF
3695 /* confdefs.h. */
3696 _ACEOF
3697 cat confdefs.h >>conftest.$ac_ext
3698 cat >>conftest.$ac_ext <<_ACEOF
3699 /* end confdefs.h. */
3700
3701 int
3702 main ()
3703 {
3704
3705 ;
3706 return 0;
3707 }
3708 _ACEOF
3709 rm -f conftest.$ac_objext
3710 if { (ac_try="$ac_compile"
3711 case "(($ac_try" in
3712 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3713 *) ac_try_echo=$ac_try;;
3714 esac
3715 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3716 (eval "$ac_compile") 2>conftest.er1
3717 ac_status=$?
3718 grep -v '^ *+' conftest.er1 >conftest.err
3719 rm -f conftest.er1
3720 cat conftest.err >&5
3721 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3722 (exit $ac_status); } &&
3723 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3724 { (case "(($ac_try" in
3725 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3726 *) ac_try_echo=$ac_try;;
3727 esac
3728 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3729 (eval "$ac_try") 2>&5
3730 ac_status=$?
3731 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3732 (exit $ac_status); }; } &&
3733 { ac_try='test -s conftest.$ac_objext'
3734 { (case "(($ac_try" in
3735 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3736 *) ac_try_echo=$ac_try;;
3737 esac
3738 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3739 (eval "$ac_try") 2>&5
3740 ac_status=$?
3741 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3742 (exit $ac_status); }; }; then
3743 ac_cv_prog_cc_g=yes
3744 else
3745 echo "$as_me: failed program was:" >&5
3746 sed 's/^/| /' conftest.$ac_ext >&5
3747
3748
3749 fi
3750
3751 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3752 fi
3753
3754 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3755 fi
3756
3757 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
3758 ac_c_werror_flag=$ac_save_c_werror_flag
3759 fi
3760 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5
3761 echo "${ECHO_T}$ac_cv_prog_cc_g" >&6; }
3762 if test "$ac_test_CFLAGS" = set; then
3763 CFLAGS=$ac_save_CFLAGS
3764 elif test $ac_cv_prog_cc_g = yes; then
3765 if test "$GCC" = yes; then
3766 CFLAGS="-g -O2"
3767 else
3768 CFLAGS="-g"
3769 fi
3770 else
3771 if test "$GCC" = yes; then
3772 CFLAGS="-O2"
3773 else
3774 CFLAGS=
3775 fi
3776 fi
3777 { echo "$as_me:$LINENO: checking for $CC option to accept ISO C89" >&5
3778 echo $ECHO_N "checking for $CC option to accept ISO C89... $ECHO_C" >&6; }
3779 if test "${ac_cv_prog_cc_c89+set}" = set; then
3780 echo $ECHO_N "(cached) $ECHO_C" >&6
3781 else
3782 ac_cv_prog_cc_c89=no
3783 ac_save_CC=$CC
3784 cat >conftest.$ac_ext <<_ACEOF
3785 /* confdefs.h. */
3786 _ACEOF
3787 cat confdefs.h >>conftest.$ac_ext
3788 cat >>conftest.$ac_ext <<_ACEOF
3789 /* end confdefs.h. */
3790 #include <stdarg.h>
3791 #include <stdio.h>
3792 #include <sys/types.h>
3793 #include <sys/stat.h>
3794 /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */
3795 struct buf { int x; };
3796 FILE * (*rcsopen) (struct buf *, struct stat *, int);
3797 static char *e (p, i)
3798 char **p;
3799 int i;
3800 {
3801 return p[i];
3802 }
3803 static char *f (char * (*g) (char **, int), char **p, ...)
3804 {
3805 char *s;
3806 va_list v;
3807 va_start (v,p);
3808 s = g (p, va_arg (v,int));
3809 va_end (v);
3810 return s;
3811 }
3812
3813 /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has
3814 function prototypes and stuff, but not '\xHH' hex character constants.
3815 These don't provoke an error unfortunately, instead are silently treated
3816 as 'x'. The following induces an error, until -std is added to get
3817 proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an
3818 array size at least. It's necessary to write '\x00'==0 to get something
3819 that's true only with -std. */
3820 int osf4_cc_array ['\x00' == 0 ? 1 : -1];
3821
3822 /* IBM C 6 for AIX is almost-ANSI by default, but it replaces macro parameters
3823 inside strings and character constants. */
3824 #define FOO(x) 'x'
3825 int xlc6_cc_array[FOO(a) == 'x' ? 1 : -1];
3826
3827 int test (int i, double x);
3828 struct s1 {int (*f) (int a);};
3829 struct s2 {int (*f) (double a);};
3830 int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int);
3831 int argc;
3832 char **argv;
3833 int
3834 main ()
3835 {
3836 return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1];
3837 ;
3838 return 0;
3839 }
3840 _ACEOF
3841 for ac_arg in '' -qlanglvl=extc89 -qlanglvl=ansi -std \
3842 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__"
3843 do
3844 CC="$ac_save_CC $ac_arg"
3845 rm -f conftest.$ac_objext
3846 if { (ac_try="$ac_compile"
3847 case "(($ac_try" in
3848 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3849 *) ac_try_echo=$ac_try;;
3850 esac
3851 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3852 (eval "$ac_compile") 2>conftest.er1
3853 ac_status=$?
3854 grep -v '^ *+' conftest.er1 >conftest.err
3855 rm -f conftest.er1
3856 cat conftest.err >&5
3857 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3858 (exit $ac_status); } &&
3859 { ac_try='test -z "$ac_c_werror_flag" || test ! -s conftest.err'
3860 { (case "(($ac_try" in
3861 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3862 *) ac_try_echo=$ac_try;;
3863 esac
3864 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3865 (eval "$ac_try") 2>&5
3866 ac_status=$?
3867 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3868 (exit $ac_status); }; } &&
3869 { ac_try='test -s conftest.$ac_objext'
3870 { (case "(($ac_try" in
3871 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
3872 *) ac_try_echo=$ac_try;;
3873 esac
3874 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
3875 (eval "$ac_try") 2>&5
3876 ac_status=$?
3877 echo "$as_me:$LINENO: \$? = $ac_status" >&5
3878 (exit $ac_status); }; }; then
3879 ac_cv_prog_cc_c89=$ac_arg
3880 else
3881 echo "$as_me: failed program was:" >&5
3882 sed 's/^/| /' conftest.$ac_ext >&5
3883
3884
3885 fi
3886
3887 rm -f core conftest.err conftest.$ac_objext
3888 test "x$ac_cv_prog_cc_c89" != "xno" && break
3889 done
3890 rm -f conftest.$ac_ext
3891 CC=$ac_save_CC
3892
3893 fi
3894 # AC_CACHE_VAL
3895 case "x$ac_cv_prog_cc_c89" in
3896 x)
3897 { echo "$as_me:$LINENO: result: none needed" >&5
3898 echo "${ECHO_T}none needed" >&6; } ;;
3899 xno)
3900 { echo "$as_me:$LINENO: result: unsupported" >&5
3901 echo "${ECHO_T}unsupported" >&6; } ;;
3902 *)
3903 CC="$CC $ac_cv_prog_cc_c89"
3904 { echo "$as_me:$LINENO: result: $ac_cv_prog_cc_c89" >&5
3905 echo "${ECHO_T}$ac_cv_prog_cc_c89" >&6; } ;;
3906 esac
3907
3908
3909 ac_ext=cpp
3910 ac_cpp='$CXXCPP $CPPFLAGS'
3911 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
3912 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
3913 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
3914
3915 depcc="$CC" am_compiler_list=
3916
3917 { echo "$as_me:$LINENO: checking dependency style of $depcc" >&5
3918 echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6; }
3919 if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then
3920 echo $ECHO_N "(cached) $ECHO_C" >&6
3921 else
3922 if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then
3923 # We make a subdir and do the tests there. Otherwise we can end up
3924 # making bogus files that we don't know about and never remove. For
3925 # instance it was reported that on HP-UX the gcc test will end up
3926 # making a dummy file named `D' -- because `-MD' means `put the output
3927 # in D'.
3928 mkdir conftest.dir
3929 # Copy depcomp to subdir because otherwise we won't find it if we're
3930 # using a relative directory.
3931 cp "$am_depcomp" conftest.dir
3932 cd conftest.dir
3933 # We will build objects and dependencies in a subdirectory because
3934 # it helps to detect inapplicable dependency modes. For instance
3935 # both Tru64's cc and ICC support -MD to output dependencies as a
3936 # side effect of compilation, but ICC will put the dependencies in
3937 # the current directory while Tru64 will put them in the object
3938 # directory.
3939 mkdir sub
3940
3941 am_cv_CC_dependencies_compiler_type=none
3942 if test "$am_compiler_list" = ""; then
3943 am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp`
3944 fi
3945 for depmode in $am_compiler_list; do
3946 # Setup a source with many dependencies, because some compilers
3947 # like to wrap large dependency lists on column 80 (with \), and
3948 # we should not choose a depcomp mode which is confused by this.
3949 #
3950 # We need to recreate these files for each test, as the compiler may
3951 # overwrite some of them when testing with obscure command lines.
3952 # This happens at least with the AIX C compiler.
3953 : > sub/conftest.c
3954 for i in 1 2 3 4 5 6; do
3955 echo '#include "conftst'$i'.h"' >> sub/conftest.c
3956 # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with
3957 # Solaris 8's {/usr,}/bin/sh.
3958 touch sub/conftst$i.h
3959 done
3960 echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf
3961
3962 case $depmode in
3963 nosideeffect)
3964 # after this tag, mechanisms are not by side-effect, so they'll
3965 # only be used when explicitly requested
3966 if test "x$enable_dependency_tracking" = xyes; then
3967 continue
3968 else
3969 break
3970 fi
3971 ;;
3972 none) break ;;
3973 esac
3974 # We check with `-c' and `-o' for the sake of the "dashmstdout"
3975 # mode. It turns out that the SunPro C++ compiler does not properly
3976 # handle `-M -o', and we need to detect this.
3977 if depmode=$depmode \
3978 source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \
3979 depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \
3980 $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \
3981 >/dev/null 2>conftest.err &&
3982 grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 &&
3983 grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 &&
3984 ${MAKE-make} -s -f confmf > /dev/null 2>&1; then
3985 # icc doesn't choke on unknown options, it will just issue warnings
3986 # or remarks (even with -Werror). So we grep stderr for any message
3987 # that says an option was ignored or not supported.
3988 # When given -MP, icc 7.0 and 7.1 complain thusly:
3989 # icc: Command line warning: ignoring option '-M'; no argument required
3990 # The diagnosis changed in icc 8.0:
3991 # icc: Command line remark: option '-MP' not supported
3992 if (grep 'ignoring option' conftest.err ||
3993 grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else
3994 am_cv_CC_dependencies_compiler_type=$depmode
3995 break
3996 fi
3997 fi
3998 done
3999
4000 cd ..
4001 rm -rf conftest.dir
4002 else
4003 am_cv_CC_dependencies_compiler_type=none
4004 fi
4005
4006 fi
4007 { echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5
4008 echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6; }
4009 CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type
4010
4011
4012
4013 if
4014 test "x$enable_dependency_tracking" != xno \
4015 && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then
4016 am__fastdepCC_TRUE=
4017 am__fastdepCC_FALSE='#'
4018 else
4019 am__fastdepCC_TRUE='#'
4020 am__fastdepCC_FALSE=
4021 fi
4022
4023
4024 # By default we simply use the C compiler to build assembly code.
4025
4026 test "${CCAS+set}" = set || CCAS=$CC
4027 test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS
4028
4029
4030
4031 # Find a good install program. We prefer a C program (faster),
4032 # so one script is as good as another. But avoid the broken or
4033 # incompatible versions:
4034 # SysV /etc/install, /usr/sbin/install
4035 # SunOS /usr/etc/install
4036 # IRIX /sbin/install
4037 # AIX /bin/install
4038 # AmigaOS /C/install, which installs bootblocks on floppy discs
4039 # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag
4040 # AFS /usr/afsws/bin/install, which mishandles nonexistent args
4041 # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff"
4042 # OS/2's system install, which has a completely different semantic
4043 # ./install, which can be erroneously created by make from ./install.sh.
4044 { echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5
4045 echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6; }
4046 if test -z "$INSTALL"; then
4047 if test "${ac_cv_path_install+set}" = set; then
4048 echo $ECHO_N "(cached) $ECHO_C" >&6
4049 else
4050 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4051 for as_dir in $PATH
4052 do
4053 IFS=$as_save_IFS
4054 test -z "$as_dir" && as_dir=.
4055 # Account for people who put trailing slashes in PATH elements.
4056 case $as_dir/ in
4057 ./ | .// | /cC/* | \
4058 /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \
4059 ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \
4060 /usr/ucb/* ) ;;
4061 *)
4062 # OSF1 and SCO ODT 3.0 have their own names for install.
4063 # Don't use installbsd from OSF since it installs stuff as root
4064 # by default.
4065 for ac_prog in ginstall scoinst install; do
4066 for ac_exec_ext in '' $ac_executable_extensions; do
4067 if { test -f "$as_dir/$ac_prog$ac_exec_ext" && $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; }; then
4068 if test $ac_prog = install &&
4069 grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4070 # AIX install. It has an incompatible calling convention.
4071 :
4072 elif test $ac_prog = install &&
4073 grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then
4074 # program-specific install script used by HP pwplus--don't use.
4075 :
4076 else
4077 ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c"
4078 break 3
4079 fi
4080 fi
4081 done
4082 done
4083 ;;
4084 esac
4085 done
4086 IFS=$as_save_IFS
4087
4088
4089 fi
4090 if test "${ac_cv_path_install+set}" = set; then
4091 INSTALL=$ac_cv_path_install
4092 else
4093 # As a last resort, use the slow shell script. Don't cache a
4094 # value for INSTALL within a source directory, because that will
4095 # break other packages using the cache if that directory is
4096 # removed, or if the value is a relative name.
4097 INSTALL=$ac_install_sh
4098 fi
4099 fi
4100 { echo "$as_me:$LINENO: result: $INSTALL" >&5
4101 echo "${ECHO_T}$INSTALL" >&6; }
4102
4103 # Use test -z because SunOS4 sh mishandles braces in ${var-val}.
4104 # It thinks the first close brace ends the variable substitution.
4105 test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}'
4106
4107 test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}'
4108
4109 test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644'
4110
4111
4112 # Make sure we can run config.sub.
4113 $SHELL "$ac_aux_dir/config.sub" sun4 >/dev/null 2>&1 ||
4114 { { echo "$as_me:$LINENO: error: cannot run $SHELL $ac_aux_dir/config.sub" >&5
4115 echo "$as_me: error: cannot run $SHELL $ac_aux_dir/config.sub" >&2;}
4116 { (exit 1); exit 1; }; }
4117
4118 { echo "$as_me:$LINENO: checking build system type" >&5
4119 echo $ECHO_N "checking build system type... $ECHO_C" >&6; }
4120 if test "${ac_cv_build+set}" = set; then
4121 echo $ECHO_N "(cached) $ECHO_C" >&6
4122 else
4123 ac_build_alias=$build_alias
4124 test "x$ac_build_alias" = x &&
4125 ac_build_alias=`$SHELL "$ac_aux_dir/config.guess"`
4126 test "x$ac_build_alias" = x &&
4127 { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5
4128 echo "$as_me: error: cannot guess build type; you must specify one" >&2;}
4129 { (exit 1); exit 1; }; }
4130 ac_cv_build=`$SHELL "$ac_aux_dir/config.sub" $ac_build_alias` ||
4131 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&5
4132 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $ac_build_alias failed" >&2;}
4133 { (exit 1); exit 1; }; }
4134
4135 fi
4136 { echo "$as_me:$LINENO: result: $ac_cv_build" >&5
4137 echo "${ECHO_T}$ac_cv_build" >&6; }
4138 case $ac_cv_build in
4139 *-*-*) ;;
4140 *) { { echo "$as_me:$LINENO: error: invalid value of canonical build" >&5
4141 echo "$as_me: error: invalid value of canonical build" >&2;}
4142 { (exit 1); exit 1; }; };;
4143 esac
4144 build=$ac_cv_build
4145 ac_save_IFS=$IFS; IFS='-'
4146 set x $ac_cv_build
4147 shift
4148 build_cpu=$1
4149 build_vendor=$2
4150 shift; shift
4151 # Remember, the first character of IFS is used to create $*,
4152 # except with old shells:
4153 build_os=$*
4154 IFS=$ac_save_IFS
4155 case $build_os in *\ *) build_os=`echo "$build_os" | sed 's/ /-/g'`;; esac
4156
4157
4158 { echo "$as_me:$LINENO: checking host system type" >&5
4159 echo $ECHO_N "checking host system type... $ECHO_C" >&6; }
4160 if test "${ac_cv_host+set}" = set; then
4161 echo $ECHO_N "(cached) $ECHO_C" >&6
4162 else
4163 if test "x$host_alias" = x; then
4164 ac_cv_host=$ac_cv_build
4165 else
4166 ac_cv_host=`$SHELL "$ac_aux_dir/config.sub" $host_alias` ||
4167 { { echo "$as_me:$LINENO: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&5
4168 echo "$as_me: error: $SHELL $ac_aux_dir/config.sub $host_alias failed" >&2;}
4169 { (exit 1); exit 1; }; }
4170 fi
4171
4172 fi
4173 { echo "$as_me:$LINENO: result: $ac_cv_host" >&5
4174 echo "${ECHO_T}$ac_cv_host" >&6; }
4175 case $ac_cv_host in
4176 *-*-*) ;;
4177 *) { { echo "$as_me:$LINENO: error: invalid value of canonical host" >&5
4178 echo "$as_me: error: invalid value of canonical host" >&2;}
4179 { (exit 1); exit 1; }; };;
4180 esac
4181 host=$ac_cv_host
4182 ac_save_IFS=$IFS; IFS='-'
4183 set x $ac_cv_host
4184 shift
4185 host_cpu=$1
4186 host_vendor=$2
4187 shift; shift
4188 # Remember, the first character of IFS is used to create $*,
4189 # except with old shells:
4190 host_os=$*
4191 IFS=$ac_save_IFS
4192 case $host_os in *\ *) host_os=`echo "$host_os" | sed 's/ /-/g'`;; esac
4193
4194
4195 case "${host}" in
4196 *-*-mingw*)
4197 CPPFLAGS="$CPPFLAGS -mno-cygwin"
4198 LDFLAGS="$LDFLAGS -mno-cygwin"
4199 CPPFLAGS="$CPPFLAGS -idirafter ${srcdir}/posix -idirafter ${srcdir}/os_win32"
4200 ;;
4201 *-*-freebsd*)
4202 CPPFLAGS="$CPPFLAGS -I/usr/src/sys"
4203 ;;
4204 esac
4205
4206 # AC_SEARCH_LIBS (FUNCTION, SEARCH-LIBS, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND], [OTHER-LIBRARIES])
4207 { echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
4208 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6; }
4209 if test "${ac_cv_search_gethostbyname+set}" = set; then
4210 echo $ECHO_N "(cached) $ECHO_C" >&6
4211 else
4212 ac_func_search_save_LIBS=$LIBS
4213 cat >conftest.$ac_ext <<_ACEOF
4214 /* confdefs.h. */
4215 _ACEOF
4216 cat confdefs.h >>conftest.$ac_ext
4217 cat >>conftest.$ac_ext <<_ACEOF
4218 /* end confdefs.h. */
4219
4220 /* Override any GCC internal prototype to avoid an error.
4221 Use char because int might match the return type of a GCC
4222 builtin and then its argument prototype would still apply. */
4223 #ifdef __cplusplus
4224 extern "C"
4225 #endif
4226 char gethostbyname ();
4227 int
4228 main ()
4229 {
4230 return gethostbyname ();
4231 ;
4232 return 0;
4233 }
4234 _ACEOF
4235 for ac_lib in '' nsl; do
4236 if test -z "$ac_lib"; then
4237 ac_res="none required"
4238 else
4239 ac_res=-l$ac_lib
4240 LIBS="-l$ac_lib $ac_func_search_save_LIBS"
4241 fi
4242 rm -f conftest.$ac_objext conftest$ac_exeext
4243 if { (ac_try="$ac_link"
4244 case "(($ac_try" in
4245 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4246 *) ac_try_echo=$ac_try;;
4247 esac
4248 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4249 (eval "$ac_link") 2>conftest.er1
4250 ac_status=$?
4251 grep -v '^ *+' conftest.er1 >conftest.err
4252 rm -f conftest.er1
4253 cat conftest.err >&5
4254 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4255 (exit $ac_status); } &&
4256 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4257 { (case "(($ac_try" in
4258 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4259 *) ac_try_echo=$ac_try;;
4260 esac
4261 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4262 (eval "$ac_try") 2>&5
4263 ac_status=$?
4264 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4265 (exit $ac_status); }; } &&
4266 { ac_try='test -s conftest$ac_exeext'
4267 { (case "(($ac_try" in
4268 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4269 *) ac_try_echo=$ac_try;;
4270 esac
4271 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4272 (eval "$ac_try") 2>&5
4273 ac_status=$?
4274 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4275 (exit $ac_status); }; }; then
4276 ac_cv_search_gethostbyname=$ac_res
4277 else
4278 echo "$as_me: failed program was:" >&5
4279 sed 's/^/| /' conftest.$ac_ext >&5
4280
4281
4282 fi
4283
4284 rm -f core conftest.err conftest.$ac_objext \
4285 conftest$ac_exeext
4286 if test "${ac_cv_search_gethostbyname+set}" = set; then
4287 break
4288 fi
4289 done
4290 if test "${ac_cv_search_gethostbyname+set}" = set; then
4291 :
4292 else
4293 ac_cv_search_gethostbyname=no
4294 fi
4295 rm conftest.$ac_ext
4296 LIBS=$ac_func_search_save_LIBS
4297 fi
4298 { echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
4299 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6; }
4300 ac_res=$ac_cv_search_gethostbyname
4301 if test "$ac_res" != no; then
4302 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4303
4304 else
4305 { echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5
4306 echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6; }
4307 if test "${ac_cv_search_gethostbyname+set}" = set; then
4308 echo $ECHO_N "(cached) $ECHO_C" >&6
4309 else
4310 ac_func_search_save_LIBS=$LIBS
4311 cat >conftest.$ac_ext <<_ACEOF
4312 /* confdefs.h. */
4313 _ACEOF
4314 cat confdefs.h >>conftest.$ac_ext
4315 cat >>conftest.$ac_ext <<_ACEOF
4316 /* end confdefs.h. */
4317
4318 /* Override any GCC internal prototype to avoid an error.
4319 Use char because int might match the return type of a GCC
4320 builtin and then its argument prototype would still apply. */
4321 #ifdef __cplusplus
4322 extern "C"
4323 #endif
4324 char gethostbyname ();
4325 int
4326 main ()
4327 {
4328 return gethostbyname ();
4329 ;
4330 return 0;
4331 }
4332 _ACEOF
4333 for ac_lib in '' nsl; do
4334 if test -z "$ac_lib"; then
4335 ac_res="none required"
4336 else
4337 ac_res=-l$ac_lib
4338 LIBS="-l$ac_lib -lsocket $ac_func_search_save_LIBS"
4339 fi
4340
4341 rm -f conftest.$ac_objext conftest$ac_exeext
4342 if { (ac_try="$ac_link"
4343 case "(($ac_try" in
4344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4345 *) ac_try_echo=$ac_try;;
4346 esac
4347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4348 (eval "$ac_link") 2>conftest.er1
4349 ac_status=$?
4350 grep -v '^ *+' conftest.er1 >conftest.err
4351 rm -f conftest.er1
4352 cat conftest.err >&5
4353 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4354 (exit $ac_status); } &&
4355 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4356 { (case "(($ac_try" in
4357 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4358 *) ac_try_echo=$ac_try;;
4359 esac
4360 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4361 (eval "$ac_try") 2>&5
4362 ac_status=$?
4363 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4364 (exit $ac_status); }; } &&
4365 { ac_try='test -s conftest$ac_exeext'
4366 { (case "(($ac_try" in
4367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4368 *) ac_try_echo=$ac_try;;
4369 esac
4370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4371 (eval "$ac_try") 2>&5
4372 ac_status=$?
4373 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4374 (exit $ac_status); }; }; then
4375 ac_cv_search_gethostbyname=$ac_res
4376 else
4377 echo "$as_me: failed program was:" >&5
4378 sed 's/^/| /' conftest.$ac_ext >&5
4379
4380
4381 fi
4382
4383 rm -f core conftest.err conftest.$ac_objext \
4384 conftest$ac_exeext
4385 if test "${ac_cv_search_gethostbyname+set}" = set; then
4386 break
4387 fi
4388 done
4389 if test "${ac_cv_search_gethostbyname+set}" = set; then
4390 :
4391 else
4392 ac_cv_search_gethostbyname=no
4393 fi
4394 rm conftest.$ac_ext
4395 LIBS=$ac_func_search_save_LIBS
4396 fi
4397 { echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5
4398 echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6; }
4399 ac_res=$ac_cv_search_gethostbyname
4400 if test "$ac_res" != no; then
4401 test "$ac_res" = "none required" || LIBS="$ac_res $LIBS"
4402
4403 fi
4404
4405 fi
4406
4407
4408 ac_ext=cpp
4409 ac_cpp='$CXXCPP $CPPFLAGS'
4410 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4411 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4412 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4413 { echo "$as_me:$LINENO: checking how to run the C++ preprocessor" >&5
4414 echo $ECHO_N "checking how to run the C++ preprocessor... $ECHO_C" >&6; }
4415 if test -z "$CXXCPP"; then
4416 if test "${ac_cv_prog_CXXCPP+set}" = set; then
4417 echo $ECHO_N "(cached) $ECHO_C" >&6
4418 else
4419 # Double quotes because CXXCPP needs to be expanded
4420 for CXXCPP in "$CXX -E" "/lib/cpp"
4421 do
4422 ac_preproc_ok=false
4423 for ac_cxx_preproc_warn_flag in '' yes
4424 do
4425 # Use a header file that comes with gcc, so configuring glibc
4426 # with a fresh cross-compiler works.
4427 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4428 # <limits.h> exists even on freestanding compilers.
4429 # On the NeXT, cc -E runs the code through the compiler's parser,
4430 # not just through cpp. "Syntax error" is here to catch this case.
4431 cat >conftest.$ac_ext <<_ACEOF
4432 /* confdefs.h. */
4433 _ACEOF
4434 cat confdefs.h >>conftest.$ac_ext
4435 cat >>conftest.$ac_ext <<_ACEOF
4436 /* end confdefs.h. */
4437 #ifdef __STDC__
4438 # include <limits.h>
4439 #else
4440 # include <assert.h>
4441 #endif
4442 Syntax error
4443 _ACEOF
4444 if { (ac_try="$ac_cpp conftest.$ac_ext"
4445 case "(($ac_try" in
4446 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4447 *) ac_try_echo=$ac_try;;
4448 esac
4449 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4450 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4451 ac_status=$?
4452 grep -v '^ *+' conftest.er1 >conftest.err
4453 rm -f conftest.er1
4454 cat conftest.err >&5
4455 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4456 (exit $ac_status); } >/dev/null; then
4457 if test -s conftest.err; then
4458 ac_cpp_err=$ac_cxx_preproc_warn_flag
4459 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4460 else
4461 ac_cpp_err=
4462 fi
4463 else
4464 ac_cpp_err=yes
4465 fi
4466 if test -z "$ac_cpp_err"; then
4467 :
4468 else
4469 echo "$as_me: failed program was:" >&5
4470 sed 's/^/| /' conftest.$ac_ext >&5
4471
4472 # Broken: fails on valid input.
4473 continue
4474 fi
4475
4476 rm -f conftest.err conftest.$ac_ext
4477
4478 # OK, works on sane cases. Now check whether nonexistent headers
4479 # can be detected and how.
4480 cat >conftest.$ac_ext <<_ACEOF
4481 /* confdefs.h. */
4482 _ACEOF
4483 cat confdefs.h >>conftest.$ac_ext
4484 cat >>conftest.$ac_ext <<_ACEOF
4485 /* end confdefs.h. */
4486 #include <ac_nonexistent.h>
4487 _ACEOF
4488 if { (ac_try="$ac_cpp conftest.$ac_ext"
4489 case "(($ac_try" in
4490 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4491 *) ac_try_echo=$ac_try;;
4492 esac
4493 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4494 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4495 ac_status=$?
4496 grep -v '^ *+' conftest.er1 >conftest.err
4497 rm -f conftest.er1
4498 cat conftest.err >&5
4499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4500 (exit $ac_status); } >/dev/null; then
4501 if test -s conftest.err; then
4502 ac_cpp_err=$ac_cxx_preproc_warn_flag
4503 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4504 else
4505 ac_cpp_err=
4506 fi
4507 else
4508 ac_cpp_err=yes
4509 fi
4510 if test -z "$ac_cpp_err"; then
4511 # Broken: success on invalid input.
4512 continue
4513 else
4514 echo "$as_me: failed program was:" >&5
4515 sed 's/^/| /' conftest.$ac_ext >&5
4516
4517 # Passes both tests.
4518 ac_preproc_ok=:
4519 break
4520 fi
4521
4522 rm -f conftest.err conftest.$ac_ext
4523
4524 done
4525 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4526 rm -f conftest.err conftest.$ac_ext
4527 if $ac_preproc_ok; then
4528 break
4529 fi
4530
4531 done
4532 ac_cv_prog_CXXCPP=$CXXCPP
4533
4534 fi
4535 CXXCPP=$ac_cv_prog_CXXCPP
4536 else
4537 ac_cv_prog_CXXCPP=$CXXCPP
4538 fi
4539 { echo "$as_me:$LINENO: result: $CXXCPP" >&5
4540 echo "${ECHO_T}$CXXCPP" >&6; }
4541 ac_preproc_ok=false
4542 for ac_cxx_preproc_warn_flag in '' yes
4543 do
4544 # Use a header file that comes with gcc, so configuring glibc
4545 # with a fresh cross-compiler works.
4546 # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
4547 # <limits.h> exists even on freestanding compilers.
4548 # On the NeXT, cc -E runs the code through the compiler's parser,
4549 # not just through cpp. "Syntax error" is here to catch this case.
4550 cat >conftest.$ac_ext <<_ACEOF
4551 /* confdefs.h. */
4552 _ACEOF
4553 cat confdefs.h >>conftest.$ac_ext
4554 cat >>conftest.$ac_ext <<_ACEOF
4555 /* end confdefs.h. */
4556 #ifdef __STDC__
4557 # include <limits.h>
4558 #else
4559 # include <assert.h>
4560 #endif
4561 Syntax error
4562 _ACEOF
4563 if { (ac_try="$ac_cpp conftest.$ac_ext"
4564 case "(($ac_try" in
4565 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4566 *) ac_try_echo=$ac_try;;
4567 esac
4568 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4569 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4570 ac_status=$?
4571 grep -v '^ *+' conftest.er1 >conftest.err
4572 rm -f conftest.er1
4573 cat conftest.err >&5
4574 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4575 (exit $ac_status); } >/dev/null; then
4576 if test -s conftest.err; then
4577 ac_cpp_err=$ac_cxx_preproc_warn_flag
4578 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4579 else
4580 ac_cpp_err=
4581 fi
4582 else
4583 ac_cpp_err=yes
4584 fi
4585 if test -z "$ac_cpp_err"; then
4586 :
4587 else
4588 echo "$as_me: failed program was:" >&5
4589 sed 's/^/| /' conftest.$ac_ext >&5
4590
4591 # Broken: fails on valid input.
4592 continue
4593 fi
4594
4595 rm -f conftest.err conftest.$ac_ext
4596
4597 # OK, works on sane cases. Now check whether nonexistent headers
4598 # can be detected and how.
4599 cat >conftest.$ac_ext <<_ACEOF
4600 /* confdefs.h. */
4601 _ACEOF
4602 cat confdefs.h >>conftest.$ac_ext
4603 cat >>conftest.$ac_ext <<_ACEOF
4604 /* end confdefs.h. */
4605 #include <ac_nonexistent.h>
4606 _ACEOF
4607 if { (ac_try="$ac_cpp conftest.$ac_ext"
4608 case "(($ac_try" in
4609 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4610 *) ac_try_echo=$ac_try;;
4611 esac
4612 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4613 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
4614 ac_status=$?
4615 grep -v '^ *+' conftest.er1 >conftest.err
4616 rm -f conftest.er1
4617 cat conftest.err >&5
4618 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4619 (exit $ac_status); } >/dev/null; then
4620 if test -s conftest.err; then
4621 ac_cpp_err=$ac_cxx_preproc_warn_flag
4622 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
4623 else
4624 ac_cpp_err=
4625 fi
4626 else
4627 ac_cpp_err=yes
4628 fi
4629 if test -z "$ac_cpp_err"; then
4630 # Broken: success on invalid input.
4631 continue
4632 else
4633 echo "$as_me: failed program was:" >&5
4634 sed 's/^/| /' conftest.$ac_ext >&5
4635
4636 # Passes both tests.
4637 ac_preproc_ok=:
4638 break
4639 fi
4640
4641 rm -f conftest.err conftest.$ac_ext
4642
4643 done
4644 # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped.
4645 rm -f conftest.err conftest.$ac_ext
4646 if $ac_preproc_ok; then
4647 :
4648 else
4649 { { echo "$as_me:$LINENO: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4650 See \`config.log' for more details." >&5
4651 echo "$as_me: error: C++ preprocessor \"$CXXCPP\" fails sanity check
4652 See \`config.log' for more details." >&2;}
4653 { (exit 1); exit 1; }; }
4654 fi
4655
4656 ac_ext=cpp
4657 ac_cpp='$CXXCPP $CPPFLAGS'
4658 ac_compile='$CXX -c $CXXFLAGS $CPPFLAGS conftest.$ac_ext >&5'
4659 ac_link='$CXX -o conftest$ac_exeext $CXXFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5'
4660 ac_compiler_gnu=$ac_cv_cxx_compiler_gnu
4661
4662
4663 { echo "$as_me:$LINENO: checking for grep that handles long lines and -e" >&5
4664 echo $ECHO_N "checking for grep that handles long lines and -e... $ECHO_C" >&6; }
4665 if test "${ac_cv_path_GREP+set}" = set; then
4666 echo $ECHO_N "(cached) $ECHO_C" >&6
4667 else
4668 # Extract the first word of "grep ggrep" to use in msg output
4669 if test -z "$GREP"; then
4670 set dummy grep ggrep; ac_prog_name=$2
4671 if test "${ac_cv_path_GREP+set}" = set; then
4672 echo $ECHO_N "(cached) $ECHO_C" >&6
4673 else
4674 ac_path_GREP_found=false
4675 # Loop through the user's path and test for each of PROGNAME-LIST
4676 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4677 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4678 do
4679 IFS=$as_save_IFS
4680 test -z "$as_dir" && as_dir=.
4681 for ac_prog in grep ggrep; do
4682 for ac_exec_ext in '' $ac_executable_extensions; do
4683 ac_path_GREP="$as_dir/$ac_prog$ac_exec_ext"
4684 { test -f "$ac_path_GREP" && $as_executable_p "$ac_path_GREP"; } || continue
4685 # Check for GNU ac_path_GREP and select it if it is found.
4686 # Check for GNU $ac_path_GREP
4687 case `"$ac_path_GREP" --version 2>&1` in
4688 *GNU*)
4689 ac_cv_path_GREP="$ac_path_GREP" ac_path_GREP_found=:;;
4690 *)
4691 ac_count=0
4692 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4693 while :
4694 do
4695 cat "conftest.in" "conftest.in" >"conftest.tmp"
4696 mv "conftest.tmp" "conftest.in"
4697 cp "conftest.in" "conftest.nl"
4698 echo 'GREP' >> "conftest.nl"
4699 "$ac_path_GREP" -e 'GREP$' -e '-(cannot match)-' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4700 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4701 ac_count=`expr $ac_count + 1`
4702 if test $ac_count -gt ${ac_path_GREP_max-0}; then
4703 # Best one so far, save it but keep looking for a better one
4704 ac_cv_path_GREP="$ac_path_GREP"
4705 ac_path_GREP_max=$ac_count
4706 fi
4707 # 10*(2^10) chars as input seems more than enough
4708 test $ac_count -gt 10 && break
4709 done
4710 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4711 esac
4712
4713
4714 $ac_path_GREP_found && break 3
4715 done
4716 done
4717
4718 done
4719 IFS=$as_save_IFS
4720
4721
4722 fi
4723
4724 GREP="$ac_cv_path_GREP"
4725 if test -z "$GREP"; then
4726 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4727 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4728 { (exit 1); exit 1; }; }
4729 fi
4730
4731 else
4732 ac_cv_path_GREP=$GREP
4733 fi
4734
4735
4736 fi
4737 { echo "$as_me:$LINENO: result: $ac_cv_path_GREP" >&5
4738 echo "${ECHO_T}$ac_cv_path_GREP" >&6; }
4739 GREP="$ac_cv_path_GREP"
4740
4741
4742 { echo "$as_me:$LINENO: checking for egrep" >&5
4743 echo $ECHO_N "checking for egrep... $ECHO_C" >&6; }
4744 if test "${ac_cv_path_EGREP+set}" = set; then
4745 echo $ECHO_N "(cached) $ECHO_C" >&6
4746 else
4747 if echo a | $GREP -E '(a|b)' >/dev/null 2>&1
4748 then ac_cv_path_EGREP="$GREP -E"
4749 else
4750 # Extract the first word of "egrep" to use in msg output
4751 if test -z "$EGREP"; then
4752 set dummy egrep; ac_prog_name=$2
4753 if test "${ac_cv_path_EGREP+set}" = set; then
4754 echo $ECHO_N "(cached) $ECHO_C" >&6
4755 else
4756 ac_path_EGREP_found=false
4757 # Loop through the user's path and test for each of PROGNAME-LIST
4758 as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
4759 for as_dir in $PATH$PATH_SEPARATOR/usr/xpg4/bin
4760 do
4761 IFS=$as_save_IFS
4762 test -z "$as_dir" && as_dir=.
4763 for ac_prog in egrep; do
4764 for ac_exec_ext in '' $ac_executable_extensions; do
4765 ac_path_EGREP="$as_dir/$ac_prog$ac_exec_ext"
4766 { test -f "$ac_path_EGREP" && $as_executable_p "$ac_path_EGREP"; } || continue
4767 # Check for GNU ac_path_EGREP and select it if it is found.
4768 # Check for GNU $ac_path_EGREP
4769 case `"$ac_path_EGREP" --version 2>&1` in
4770 *GNU*)
4771 ac_cv_path_EGREP="$ac_path_EGREP" ac_path_EGREP_found=:;;
4772 *)
4773 ac_count=0
4774 echo $ECHO_N "0123456789$ECHO_C" >"conftest.in"
4775 while :
4776 do
4777 cat "conftest.in" "conftest.in" >"conftest.tmp"
4778 mv "conftest.tmp" "conftest.in"
4779 cp "conftest.in" "conftest.nl"
4780 echo 'EGREP' >> "conftest.nl"
4781 "$ac_path_EGREP" 'EGREP$' < "conftest.nl" >"conftest.out" 2>/dev/null || break
4782 diff "conftest.out" "conftest.nl" >/dev/null 2>&1 || break
4783 ac_count=`expr $ac_count + 1`
4784 if test $ac_count -gt ${ac_path_EGREP_max-0}; then
4785 # Best one so far, save it but keep looking for a better one
4786 ac_cv_path_EGREP="$ac_path_EGREP"
4787 ac_path_EGREP_max=$ac_count
4788 fi
4789 # 10*(2^10) chars as input seems more than enough
4790 test $ac_count -gt 10 && break
4791 done
4792 rm -f conftest.in conftest.tmp conftest.nl conftest.out;;
4793 esac
4794
4795
4796 $ac_path_EGREP_found && break 3
4797 done
4798 done
4799
4800 done
4801 IFS=$as_save_IFS
4802
4803
4804 fi
4805
4806 EGREP="$ac_cv_path_EGREP"
4807 if test -z "$EGREP"; then
4808 { { echo "$as_me:$LINENO: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&5
4809 echo "$as_me: error: no acceptable $ac_prog_name could be found in $PATH$PATH_SEPARATOR/usr/xpg4/bin" >&2;}
4810 { (exit 1); exit 1; }; }
4811 fi
4812
4813 else
4814 ac_cv_path_EGREP=$EGREP
4815 fi
4816
4817
4818 fi
4819 fi
4820 { echo "$as_me:$LINENO: result: $ac_cv_path_EGREP" >&5
4821 echo "${ECHO_T}$ac_cv_path_EGREP" >&6; }
4822 EGREP="$ac_cv_path_EGREP"
4823
4824
4825 { echo "$as_me:$LINENO: checking for ANSI C header files" >&5
4826 echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6; }
4827 if test "${ac_cv_header_stdc+set}" = set; then
4828 echo $ECHO_N "(cached) $ECHO_C" >&6
4829 else
4830 cat >conftest.$ac_ext <<_ACEOF
4831 /* confdefs.h. */
4832 _ACEOF
4833 cat confdefs.h >>conftest.$ac_ext
4834 cat >>conftest.$ac_ext <<_ACEOF
4835 /* end confdefs.h. */
4836 #include <stdlib.h>
4837 #include <stdarg.h>
4838 #include <string.h>
4839 #include <float.h>
4840
4841 int
4842 main ()
4843 {
4844
4845 ;
4846 return 0;
4847 }
4848 _ACEOF
4849 rm -f conftest.$ac_objext
4850 if { (ac_try="$ac_compile"
4851 case "(($ac_try" in
4852 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4853 *) ac_try_echo=$ac_try;;
4854 esac
4855 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4856 (eval "$ac_compile") 2>conftest.er1
4857 ac_status=$?
4858 grep -v '^ *+' conftest.er1 >conftest.err
4859 rm -f conftest.er1
4860 cat conftest.err >&5
4861 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4862 (exit $ac_status); } &&
4863 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
4864 { (case "(($ac_try" in
4865 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4866 *) ac_try_echo=$ac_try;;
4867 esac
4868 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4869 (eval "$ac_try") 2>&5
4870 ac_status=$?
4871 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4872 (exit $ac_status); }; } &&
4873 { ac_try='test -s conftest.$ac_objext'
4874 { (case "(($ac_try" in
4875 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4876 *) ac_try_echo=$ac_try;;
4877 esac
4878 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4879 (eval "$ac_try") 2>&5
4880 ac_status=$?
4881 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4882 (exit $ac_status); }; }; then
4883 ac_cv_header_stdc=yes
4884 else
4885 echo "$as_me: failed program was:" >&5
4886 sed 's/^/| /' conftest.$ac_ext >&5
4887
4888 ac_cv_header_stdc=no
4889 fi
4890
4891 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
4892
4893 if test $ac_cv_header_stdc = yes; then
4894 # SunOS 4.x string.h does not declare mem*, contrary to ANSI.
4895 cat >conftest.$ac_ext <<_ACEOF
4896 /* confdefs.h. */
4897 _ACEOF
4898 cat confdefs.h >>conftest.$ac_ext
4899 cat >>conftest.$ac_ext <<_ACEOF
4900 /* end confdefs.h. */
4901 #include <string.h>
4902
4903 _ACEOF
4904 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4905 $EGREP "memchr" >/dev/null 2>&1; then
4906 :
4907 else
4908 ac_cv_header_stdc=no
4909 fi
4910 rm -f conftest*
4911
4912 fi
4913
4914 if test $ac_cv_header_stdc = yes; then
4915 # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI.
4916 cat >conftest.$ac_ext <<_ACEOF
4917 /* confdefs.h. */
4918 _ACEOF
4919 cat confdefs.h >>conftest.$ac_ext
4920 cat >>conftest.$ac_ext <<_ACEOF
4921 /* end confdefs.h. */
4922 #include <stdlib.h>
4923
4924 _ACEOF
4925 if (eval "$ac_cpp conftest.$ac_ext") 2>&5 |
4926 $EGREP "free" >/dev/null 2>&1; then
4927 :
4928 else
4929 ac_cv_header_stdc=no
4930 fi
4931 rm -f conftest*
4932
4933 fi
4934
4935 if test $ac_cv_header_stdc = yes; then
4936 # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi.
4937 if test "$cross_compiling" = yes; then
4938 :
4939 else
4940 cat >conftest.$ac_ext <<_ACEOF
4941 /* confdefs.h. */
4942 _ACEOF
4943 cat confdefs.h >>conftest.$ac_ext
4944 cat >>conftest.$ac_ext <<_ACEOF
4945 /* end confdefs.h. */
4946 #include <ctype.h>
4947 #include <stdlib.h>
4948 #if ((' ' & 0x0FF) == 0x020)
4949 # define ISLOWER(c) ('a' <= (c) && (c) <= 'z')
4950 # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c))
4951 #else
4952 # define ISLOWER(c) \
4953 (('a' <= (c) && (c) <= 'i') \
4954 || ('j' <= (c) && (c) <= 'r') \
4955 || ('s' <= (c) && (c) <= 'z'))
4956 # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c))
4957 #endif
4958
4959 #define XOR(e, f) (((e) && !(f)) || (!(e) && (f)))
4960 int
4961 main ()
4962 {
4963 int i;
4964 for (i = 0; i < 256; i++)
4965 if (XOR (islower (i), ISLOWER (i))
4966 || toupper (i) != TOUPPER (i))
4967 return 2;
4968 return 0;
4969 }
4970 _ACEOF
4971 rm -f conftest$ac_exeext
4972 if { (ac_try="$ac_link"
4973 case "(($ac_try" in
4974 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4975 *) ac_try_echo=$ac_try;;
4976 esac
4977 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4978 (eval "$ac_link") 2>&5
4979 ac_status=$?
4980 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4981 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
4982 { (case "(($ac_try" in
4983 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
4984 *) ac_try_echo=$ac_try;;
4985 esac
4986 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
4987 (eval "$ac_try") 2>&5
4988 ac_status=$?
4989 echo "$as_me:$LINENO: \$? = $ac_status" >&5
4990 (exit $ac_status); }; }; then
4991 :
4992 else
4993 echo "$as_me: program exited with status $ac_status" >&5
4994 echo "$as_me: failed program was:" >&5
4995 sed 's/^/| /' conftest.$ac_ext >&5
4996
4997 ( exit $ac_status )
4998 ac_cv_header_stdc=no
4999 fi
5000 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
5001 fi
5002
5003
5004 fi
5005 fi
5006 { echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5
5007 echo "${ECHO_T}$ac_cv_header_stdc" >&6; }
5008 if test $ac_cv_header_stdc = yes; then
5009
5010 cat >>confdefs.h <<\_ACEOF
5011 #define STDC_HEADERS 1
5012 _ACEOF
5013
5014 fi
5015
5016 # On IRIX 5.3, sys/types and inttypes.h are conflicting.
5017
5018
5019
5020
5021
5022
5023
5024
5025
5026 for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \
5027 inttypes.h stdint.h unistd.h
5028 do
5029 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5030 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5031 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5032 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5033 echo $ECHO_N "(cached) $ECHO_C" >&6
5034 else
5035 cat >conftest.$ac_ext <<_ACEOF
5036 /* confdefs.h. */
5037 _ACEOF
5038 cat confdefs.h >>conftest.$ac_ext
5039 cat >>conftest.$ac_ext <<_ACEOF
5040 /* end confdefs.h. */
5041 $ac_includes_default
5042
5043 #include <$ac_header>
5044 _ACEOF
5045 rm -f conftest.$ac_objext
5046 if { (ac_try="$ac_compile"
5047 case "(($ac_try" in
5048 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5049 *) ac_try_echo=$ac_try;;
5050 esac
5051 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5052 (eval "$ac_compile") 2>conftest.er1
5053 ac_status=$?
5054 grep -v '^ *+' conftest.er1 >conftest.err
5055 rm -f conftest.er1
5056 cat conftest.err >&5
5057 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5058 (exit $ac_status); } &&
5059 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5060 { (case "(($ac_try" in
5061 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5062 *) ac_try_echo=$ac_try;;
5063 esac
5064 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5065 (eval "$ac_try") 2>&5
5066 ac_status=$?
5067 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5068 (exit $ac_status); }; } &&
5069 { ac_try='test -s conftest.$ac_objext'
5070 { (case "(($ac_try" in
5071 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5072 *) ac_try_echo=$ac_try;;
5073 esac
5074 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5075 (eval "$ac_try") 2>&5
5076 ac_status=$?
5077 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5078 (exit $ac_status); }; }; then
5079 eval "$as_ac_Header=yes"
5080 else
5081 echo "$as_me: failed program was:" >&5
5082 sed 's/^/| /' conftest.$ac_ext >&5
5083
5084 eval "$as_ac_Header=no"
5085 fi
5086
5087 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5088 fi
5089 ac_res=`eval echo '${'$as_ac_Header'}'`
5090 { echo "$as_me:$LINENO: result: $ac_res" >&5
5091 echo "${ECHO_T}$ac_res" >&6; }
5092 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5093 cat >>confdefs.h <<_ACEOF
5094 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5095 _ACEOF
5096
5097 fi
5098
5099 done
5100
5101
5102
5103 for ac_header in locale.h
5104 do
5105 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5106 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5107 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5108 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5109 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5110 echo $ECHO_N "(cached) $ECHO_C" >&6
5111 fi
5112 ac_res=`eval echo '${'$as_ac_Header'}'`
5113 { echo "$as_me:$LINENO: result: $ac_res" >&5
5114 echo "${ECHO_T}$ac_res" >&6; }
5115 else
5116 # Is the header compilable?
5117 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5118 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5119 cat >conftest.$ac_ext <<_ACEOF
5120 /* confdefs.h. */
5121 _ACEOF
5122 cat confdefs.h >>conftest.$ac_ext
5123 cat >>conftest.$ac_ext <<_ACEOF
5124 /* end confdefs.h. */
5125 $ac_includes_default
5126 #include <$ac_header>
5127 _ACEOF
5128 rm -f conftest.$ac_objext
5129 if { (ac_try="$ac_compile"
5130 case "(($ac_try" in
5131 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5132 *) ac_try_echo=$ac_try;;
5133 esac
5134 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5135 (eval "$ac_compile") 2>conftest.er1
5136 ac_status=$?
5137 grep -v '^ *+' conftest.er1 >conftest.err
5138 rm -f conftest.er1
5139 cat conftest.err >&5
5140 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5141 (exit $ac_status); } &&
5142 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5143 { (case "(($ac_try" in
5144 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5145 *) ac_try_echo=$ac_try;;
5146 esac
5147 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5148 (eval "$ac_try") 2>&5
5149 ac_status=$?
5150 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5151 (exit $ac_status); }; } &&
5152 { ac_try='test -s conftest.$ac_objext'
5153 { (case "(($ac_try" in
5154 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5155 *) ac_try_echo=$ac_try;;
5156 esac
5157 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5158 (eval "$ac_try") 2>&5
5159 ac_status=$?
5160 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5161 (exit $ac_status); }; }; then
5162 ac_header_compiler=yes
5163 else
5164 echo "$as_me: failed program was:" >&5
5165 sed 's/^/| /' conftest.$ac_ext >&5
5166
5167 ac_header_compiler=no
5168 fi
5169
5170 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5171 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5172 echo "${ECHO_T}$ac_header_compiler" >&6; }
5173
5174 # Is the header present?
5175 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5176 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5177 cat >conftest.$ac_ext <<_ACEOF
5178 /* confdefs.h. */
5179 _ACEOF
5180 cat confdefs.h >>conftest.$ac_ext
5181 cat >>conftest.$ac_ext <<_ACEOF
5182 /* end confdefs.h. */
5183 #include <$ac_header>
5184 _ACEOF
5185 if { (ac_try="$ac_cpp conftest.$ac_ext"
5186 case "(($ac_try" in
5187 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5188 *) ac_try_echo=$ac_try;;
5189 esac
5190 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5191 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5192 ac_status=$?
5193 grep -v '^ *+' conftest.er1 >conftest.err
5194 rm -f conftest.er1
5195 cat conftest.err >&5
5196 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5197 (exit $ac_status); } >/dev/null; then
5198 if test -s conftest.err; then
5199 ac_cpp_err=$ac_cxx_preproc_warn_flag
5200 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5201 else
5202 ac_cpp_err=
5203 fi
5204 else
5205 ac_cpp_err=yes
5206 fi
5207 if test -z "$ac_cpp_err"; then
5208 ac_header_preproc=yes
5209 else
5210 echo "$as_me: failed program was:" >&5
5211 sed 's/^/| /' conftest.$ac_ext >&5
5212
5213 ac_header_preproc=no
5214 fi
5215
5216 rm -f conftest.err conftest.$ac_ext
5217 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5218 echo "${ECHO_T}$ac_header_preproc" >&6; }
5219
5220 # So? What about this header?
5221 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
5222 yes:no: )
5223 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5224 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5225 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5226 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5227 ac_header_preproc=yes
5228 ;;
5229 no:yes:* )
5230 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5231 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5232 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5233 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5234 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5235 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5236 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5237 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5238 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5239 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5240 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5241 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5242 ( cat <<\_ASBOX
5243 ## ---------------------------------------------------------- ##
5244 ## Report this to smartmontools-support@lists.sourceforge.net ##
5245 ## ---------------------------------------------------------- ##
5246 _ASBOX
5247 ) | sed "s/^/$as_me: WARNING: /" >&2
5248 ;;
5249 esac
5250 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5251 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5252 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5253 echo $ECHO_N "(cached) $ECHO_C" >&6
5254 else
5255 eval "$as_ac_Header=\$ac_header_preproc"
5256 fi
5257 ac_res=`eval echo '${'$as_ac_Header'}'`
5258 { echo "$as_me:$LINENO: result: $ac_res" >&5
5259 echo "${ECHO_T}$ac_res" >&6; }
5260
5261 fi
5262 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5263 cat >>confdefs.h <<_ACEOF
5264 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5265 _ACEOF
5266
5267 fi
5268
5269 done
5270
5271
5272 for ac_header in getopt.h
5273 do
5274 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5275 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5276 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5277 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5278 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5279 echo $ECHO_N "(cached) $ECHO_C" >&6
5280 fi
5281 ac_res=`eval echo '${'$as_ac_Header'}'`
5282 { echo "$as_me:$LINENO: result: $ac_res" >&5
5283 echo "${ECHO_T}$ac_res" >&6; }
5284 else
5285 # Is the header compilable?
5286 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5287 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5288 cat >conftest.$ac_ext <<_ACEOF
5289 /* confdefs.h. */
5290 _ACEOF
5291 cat confdefs.h >>conftest.$ac_ext
5292 cat >>conftest.$ac_ext <<_ACEOF
5293 /* end confdefs.h. */
5294 $ac_includes_default
5295 #include <$ac_header>
5296 _ACEOF
5297 rm -f conftest.$ac_objext
5298 if { (ac_try="$ac_compile"
5299 case "(($ac_try" in
5300 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5301 *) ac_try_echo=$ac_try;;
5302 esac
5303 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5304 (eval "$ac_compile") 2>conftest.er1
5305 ac_status=$?
5306 grep -v '^ *+' conftest.er1 >conftest.err
5307 rm -f conftest.er1
5308 cat conftest.err >&5
5309 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5310 (exit $ac_status); } &&
5311 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5312 { (case "(($ac_try" in
5313 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5314 *) ac_try_echo=$ac_try;;
5315 esac
5316 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5317 (eval "$ac_try") 2>&5
5318 ac_status=$?
5319 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5320 (exit $ac_status); }; } &&
5321 { ac_try='test -s conftest.$ac_objext'
5322 { (case "(($ac_try" in
5323 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5324 *) ac_try_echo=$ac_try;;
5325 esac
5326 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5327 (eval "$ac_try") 2>&5
5328 ac_status=$?
5329 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5330 (exit $ac_status); }; }; then
5331 ac_header_compiler=yes
5332 else
5333 echo "$as_me: failed program was:" >&5
5334 sed 's/^/| /' conftest.$ac_ext >&5
5335
5336 ac_header_compiler=no
5337 fi
5338
5339 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5340 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5341 echo "${ECHO_T}$ac_header_compiler" >&6; }
5342
5343 # Is the header present?
5344 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5345 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5346 cat >conftest.$ac_ext <<_ACEOF
5347 /* confdefs.h. */
5348 _ACEOF
5349 cat confdefs.h >>conftest.$ac_ext
5350 cat >>conftest.$ac_ext <<_ACEOF
5351 /* end confdefs.h. */
5352 #include <$ac_header>
5353 _ACEOF
5354 if { (ac_try="$ac_cpp conftest.$ac_ext"
5355 case "(($ac_try" in
5356 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5357 *) ac_try_echo=$ac_try;;
5358 esac
5359 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5360 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5361 ac_status=$?
5362 grep -v '^ *+' conftest.er1 >conftest.err
5363 rm -f conftest.er1
5364 cat conftest.err >&5
5365 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5366 (exit $ac_status); } >/dev/null; then
5367 if test -s conftest.err; then
5368 ac_cpp_err=$ac_cxx_preproc_warn_flag
5369 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5370 else
5371 ac_cpp_err=
5372 fi
5373 else
5374 ac_cpp_err=yes
5375 fi
5376 if test -z "$ac_cpp_err"; then
5377 ac_header_preproc=yes
5378 else
5379 echo "$as_me: failed program was:" >&5
5380 sed 's/^/| /' conftest.$ac_ext >&5
5381
5382 ac_header_preproc=no
5383 fi
5384
5385 rm -f conftest.err conftest.$ac_ext
5386 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5387 echo "${ECHO_T}$ac_header_preproc" >&6; }
5388
5389 # So? What about this header?
5390 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
5391 yes:no: )
5392 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5393 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5394 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5395 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5396 ac_header_preproc=yes
5397 ;;
5398 no:yes:* )
5399 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5400 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5401 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5402 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5403 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5404 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5405 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5406 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5407 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5408 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5409 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5410 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5411 ( cat <<\_ASBOX
5412 ## ---------------------------------------------------------- ##
5413 ## Report this to smartmontools-support@lists.sourceforge.net ##
5414 ## ---------------------------------------------------------- ##
5415 _ASBOX
5416 ) | sed "s/^/$as_me: WARNING: /" >&2
5417 ;;
5418 esac
5419 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5420 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5421 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5422 echo $ECHO_N "(cached) $ECHO_C" >&6
5423 else
5424 eval "$as_ac_Header=\$ac_header_preproc"
5425 fi
5426 ac_res=`eval echo '${'$as_ac_Header'}'`
5427 { echo "$as_me:$LINENO: result: $ac_res" >&5
5428 echo "${ECHO_T}$ac_res" >&6; }
5429
5430 fi
5431 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5432 cat >>confdefs.h <<_ACEOF
5433 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5434 _ACEOF
5435
5436 fi
5437
5438 done
5439
5440
5441 for ac_header in dev/ata/atavar.h
5442 do
5443 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5444 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5445 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5446 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5447 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5448 echo $ECHO_N "(cached) $ECHO_C" >&6
5449 fi
5450 ac_res=`eval echo '${'$as_ac_Header'}'`
5451 { echo "$as_me:$LINENO: result: $ac_res" >&5
5452 echo "${ECHO_T}$ac_res" >&6; }
5453 else
5454 # Is the header compilable?
5455 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5456 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5457 cat >conftest.$ac_ext <<_ACEOF
5458 /* confdefs.h. */
5459 _ACEOF
5460 cat confdefs.h >>conftest.$ac_ext
5461 cat >>conftest.$ac_ext <<_ACEOF
5462 /* end confdefs.h. */
5463 $ac_includes_default
5464 #include <$ac_header>
5465 _ACEOF
5466 rm -f conftest.$ac_objext
5467 if { (ac_try="$ac_compile"
5468 case "(($ac_try" in
5469 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5470 *) ac_try_echo=$ac_try;;
5471 esac
5472 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5473 (eval "$ac_compile") 2>conftest.er1
5474 ac_status=$?
5475 grep -v '^ *+' conftest.er1 >conftest.err
5476 rm -f conftest.er1
5477 cat conftest.err >&5
5478 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5479 (exit $ac_status); } &&
5480 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5481 { (case "(($ac_try" in
5482 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5483 *) ac_try_echo=$ac_try;;
5484 esac
5485 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5486 (eval "$ac_try") 2>&5
5487 ac_status=$?
5488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5489 (exit $ac_status); }; } &&
5490 { ac_try='test -s conftest.$ac_objext'
5491 { (case "(($ac_try" in
5492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5493 *) ac_try_echo=$ac_try;;
5494 esac
5495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5496 (eval "$ac_try") 2>&5
5497 ac_status=$?
5498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5499 (exit $ac_status); }; }; then
5500 ac_header_compiler=yes
5501 else
5502 echo "$as_me: failed program was:" >&5
5503 sed 's/^/| /' conftest.$ac_ext >&5
5504
5505 ac_header_compiler=no
5506 fi
5507
5508 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5509 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5510 echo "${ECHO_T}$ac_header_compiler" >&6; }
5511
5512 # Is the header present?
5513 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5514 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5515 cat >conftest.$ac_ext <<_ACEOF
5516 /* confdefs.h. */
5517 _ACEOF
5518 cat confdefs.h >>conftest.$ac_ext
5519 cat >>conftest.$ac_ext <<_ACEOF
5520 /* end confdefs.h. */
5521 #include <$ac_header>
5522 _ACEOF
5523 if { (ac_try="$ac_cpp conftest.$ac_ext"
5524 case "(($ac_try" in
5525 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5526 *) ac_try_echo=$ac_try;;
5527 esac
5528 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5529 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5530 ac_status=$?
5531 grep -v '^ *+' conftest.er1 >conftest.err
5532 rm -f conftest.er1
5533 cat conftest.err >&5
5534 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5535 (exit $ac_status); } >/dev/null; then
5536 if test -s conftest.err; then
5537 ac_cpp_err=$ac_cxx_preproc_warn_flag
5538 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5539 else
5540 ac_cpp_err=
5541 fi
5542 else
5543 ac_cpp_err=yes
5544 fi
5545 if test -z "$ac_cpp_err"; then
5546 ac_header_preproc=yes
5547 else
5548 echo "$as_me: failed program was:" >&5
5549 sed 's/^/| /' conftest.$ac_ext >&5
5550
5551 ac_header_preproc=no
5552 fi
5553
5554 rm -f conftest.err conftest.$ac_ext
5555 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5556 echo "${ECHO_T}$ac_header_preproc" >&6; }
5557
5558 # So? What about this header?
5559 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
5560 yes:no: )
5561 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5562 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5563 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5564 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5565 ac_header_preproc=yes
5566 ;;
5567 no:yes:* )
5568 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5569 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5570 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5571 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5572 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5573 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5574 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5575 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5576 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5577 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5578 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5579 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5580 ( cat <<\_ASBOX
5581 ## ---------------------------------------------------------- ##
5582 ## Report this to smartmontools-support@lists.sourceforge.net ##
5583 ## ---------------------------------------------------------- ##
5584 _ASBOX
5585 ) | sed "s/^/$as_me: WARNING: /" >&2
5586 ;;
5587 esac
5588 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5589 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5590 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5591 echo $ECHO_N "(cached) $ECHO_C" >&6
5592 else
5593 eval "$as_ac_Header=\$ac_header_preproc"
5594 fi
5595 ac_res=`eval echo '${'$as_ac_Header'}'`
5596 { echo "$as_me:$LINENO: result: $ac_res" >&5
5597 echo "${ECHO_T}$ac_res" >&6; }
5598
5599 fi
5600 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5601 cat >>confdefs.h <<_ACEOF
5602 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5603 _ACEOF
5604
5605 fi
5606
5607 done
5608
5609
5610 for ac_header in netdb.h
5611 do
5612 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5613 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5614 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5615 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5616 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5617 echo $ECHO_N "(cached) $ECHO_C" >&6
5618 fi
5619 ac_res=`eval echo '${'$as_ac_Header'}'`
5620 { echo "$as_me:$LINENO: result: $ac_res" >&5
5621 echo "${ECHO_T}$ac_res" >&6; }
5622 else
5623 # Is the header compilable?
5624 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5625 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5626 cat >conftest.$ac_ext <<_ACEOF
5627 /* confdefs.h. */
5628 _ACEOF
5629 cat confdefs.h >>conftest.$ac_ext
5630 cat >>conftest.$ac_ext <<_ACEOF
5631 /* end confdefs.h. */
5632 $ac_includes_default
5633 #include <$ac_header>
5634 _ACEOF
5635 rm -f conftest.$ac_objext
5636 if { (ac_try="$ac_compile"
5637 case "(($ac_try" in
5638 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5639 *) ac_try_echo=$ac_try;;
5640 esac
5641 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5642 (eval "$ac_compile") 2>conftest.er1
5643 ac_status=$?
5644 grep -v '^ *+' conftest.er1 >conftest.err
5645 rm -f conftest.er1
5646 cat conftest.err >&5
5647 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5648 (exit $ac_status); } &&
5649 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5650 { (case "(($ac_try" in
5651 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5652 *) ac_try_echo=$ac_try;;
5653 esac
5654 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5655 (eval "$ac_try") 2>&5
5656 ac_status=$?
5657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5658 (exit $ac_status); }; } &&
5659 { ac_try='test -s conftest.$ac_objext'
5660 { (case "(($ac_try" in
5661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5662 *) ac_try_echo=$ac_try;;
5663 esac
5664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5665 (eval "$ac_try") 2>&5
5666 ac_status=$?
5667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5668 (exit $ac_status); }; }; then
5669 ac_header_compiler=yes
5670 else
5671 echo "$as_me: failed program was:" >&5
5672 sed 's/^/| /' conftest.$ac_ext >&5
5673
5674 ac_header_compiler=no
5675 fi
5676
5677 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5678 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5679 echo "${ECHO_T}$ac_header_compiler" >&6; }
5680
5681 # Is the header present?
5682 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5683 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5684 cat >conftest.$ac_ext <<_ACEOF
5685 /* confdefs.h. */
5686 _ACEOF
5687 cat confdefs.h >>conftest.$ac_ext
5688 cat >>conftest.$ac_ext <<_ACEOF
5689 /* end confdefs.h. */
5690 #include <$ac_header>
5691 _ACEOF
5692 if { (ac_try="$ac_cpp conftest.$ac_ext"
5693 case "(($ac_try" in
5694 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5695 *) ac_try_echo=$ac_try;;
5696 esac
5697 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5698 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5699 ac_status=$?
5700 grep -v '^ *+' conftest.er1 >conftest.err
5701 rm -f conftest.er1
5702 cat conftest.err >&5
5703 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5704 (exit $ac_status); } >/dev/null; then
5705 if test -s conftest.err; then
5706 ac_cpp_err=$ac_cxx_preproc_warn_flag
5707 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5708 else
5709 ac_cpp_err=
5710 fi
5711 else
5712 ac_cpp_err=yes
5713 fi
5714 if test -z "$ac_cpp_err"; then
5715 ac_header_preproc=yes
5716 else
5717 echo "$as_me: failed program was:" >&5
5718 sed 's/^/| /' conftest.$ac_ext >&5
5719
5720 ac_header_preproc=no
5721 fi
5722
5723 rm -f conftest.err conftest.$ac_ext
5724 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5725 echo "${ECHO_T}$ac_header_preproc" >&6; }
5726
5727 # So? What about this header?
5728 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
5729 yes:no: )
5730 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5731 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5732 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5733 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5734 ac_header_preproc=yes
5735 ;;
5736 no:yes:* )
5737 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5738 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5739 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5740 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5741 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5742 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5743 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5744 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5745 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5746 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5747 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5748 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5749 ( cat <<\_ASBOX
5750 ## ---------------------------------------------------------- ##
5751 ## Report this to smartmontools-support@lists.sourceforge.net ##
5752 ## ---------------------------------------------------------- ##
5753 _ASBOX
5754 ) | sed "s/^/$as_me: WARNING: /" >&2
5755 ;;
5756 esac
5757 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5758 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5759 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5760 echo $ECHO_N "(cached) $ECHO_C" >&6
5761 else
5762 eval "$as_ac_Header=\$ac_header_preproc"
5763 fi
5764 ac_res=`eval echo '${'$as_ac_Header'}'`
5765 { echo "$as_me:$LINENO: result: $ac_res" >&5
5766 echo "${ECHO_T}$ac_res" >&6; }
5767
5768 fi
5769 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5770 cat >>confdefs.h <<_ACEOF
5771 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5772 _ACEOF
5773
5774 fi
5775
5776 done
5777
5778
5779 for ac_header in inttypes.h
5780 do
5781 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5782 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5783 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5784 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5785 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5786 echo $ECHO_N "(cached) $ECHO_C" >&6
5787 fi
5788 ac_res=`eval echo '${'$as_ac_Header'}'`
5789 { echo "$as_me:$LINENO: result: $ac_res" >&5
5790 echo "${ECHO_T}$ac_res" >&6; }
5791 else
5792 # Is the header compilable?
5793 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5794 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5795 cat >conftest.$ac_ext <<_ACEOF
5796 /* confdefs.h. */
5797 _ACEOF
5798 cat confdefs.h >>conftest.$ac_ext
5799 cat >>conftest.$ac_ext <<_ACEOF
5800 /* end confdefs.h. */
5801 $ac_includes_default
5802 #include <$ac_header>
5803 _ACEOF
5804 rm -f conftest.$ac_objext
5805 if { (ac_try="$ac_compile"
5806 case "(($ac_try" in
5807 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5808 *) ac_try_echo=$ac_try;;
5809 esac
5810 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5811 (eval "$ac_compile") 2>conftest.er1
5812 ac_status=$?
5813 grep -v '^ *+' conftest.er1 >conftest.err
5814 rm -f conftest.er1
5815 cat conftest.err >&5
5816 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5817 (exit $ac_status); } &&
5818 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5819 { (case "(($ac_try" in
5820 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5821 *) ac_try_echo=$ac_try;;
5822 esac
5823 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5824 (eval "$ac_try") 2>&5
5825 ac_status=$?
5826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5827 (exit $ac_status); }; } &&
5828 { ac_try='test -s conftest.$ac_objext'
5829 { (case "(($ac_try" in
5830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5831 *) ac_try_echo=$ac_try;;
5832 esac
5833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5834 (eval "$ac_try") 2>&5
5835 ac_status=$?
5836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5837 (exit $ac_status); }; }; then
5838 ac_header_compiler=yes
5839 else
5840 echo "$as_me: failed program was:" >&5
5841 sed 's/^/| /' conftest.$ac_ext >&5
5842
5843 ac_header_compiler=no
5844 fi
5845
5846 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
5847 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
5848 echo "${ECHO_T}$ac_header_compiler" >&6; }
5849
5850 # Is the header present?
5851 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
5852 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
5853 cat >conftest.$ac_ext <<_ACEOF
5854 /* confdefs.h. */
5855 _ACEOF
5856 cat confdefs.h >>conftest.$ac_ext
5857 cat >>conftest.$ac_ext <<_ACEOF
5858 /* end confdefs.h. */
5859 #include <$ac_header>
5860 _ACEOF
5861 if { (ac_try="$ac_cpp conftest.$ac_ext"
5862 case "(($ac_try" in
5863 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5864 *) ac_try_echo=$ac_try;;
5865 esac
5866 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5867 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
5868 ac_status=$?
5869 grep -v '^ *+' conftest.er1 >conftest.err
5870 rm -f conftest.er1
5871 cat conftest.err >&5
5872 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5873 (exit $ac_status); } >/dev/null; then
5874 if test -s conftest.err; then
5875 ac_cpp_err=$ac_cxx_preproc_warn_flag
5876 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
5877 else
5878 ac_cpp_err=
5879 fi
5880 else
5881 ac_cpp_err=yes
5882 fi
5883 if test -z "$ac_cpp_err"; then
5884 ac_header_preproc=yes
5885 else
5886 echo "$as_me: failed program was:" >&5
5887 sed 's/^/| /' conftest.$ac_ext >&5
5888
5889 ac_header_preproc=no
5890 fi
5891
5892 rm -f conftest.err conftest.$ac_ext
5893 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
5894 echo "${ECHO_T}$ac_header_preproc" >&6; }
5895
5896 # So? What about this header?
5897 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
5898 yes:no: )
5899 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
5900 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
5901 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
5902 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
5903 ac_header_preproc=yes
5904 ;;
5905 no:yes:* )
5906 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
5907 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
5908 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
5909 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
5910 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
5911 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
5912 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
5913 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
5914 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
5915 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
5916 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
5917 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
5918 ( cat <<\_ASBOX
5919 ## ---------------------------------------------------------- ##
5920 ## Report this to smartmontools-support@lists.sourceforge.net ##
5921 ## ---------------------------------------------------------- ##
5922 _ASBOX
5923 ) | sed "s/^/$as_me: WARNING: /" >&2
5924 ;;
5925 esac
5926 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5927 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5928 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5929 echo $ECHO_N "(cached) $ECHO_C" >&6
5930 else
5931 eval "$as_ac_Header=\$ac_header_preproc"
5932 fi
5933 ac_res=`eval echo '${'$as_ac_Header'}'`
5934 { echo "$as_me:$LINENO: result: $ac_res" >&5
5935 echo "${ECHO_T}$ac_res" >&6; }
5936
5937 fi
5938 if test `eval echo '${'$as_ac_Header'}'` = yes; then
5939 cat >>confdefs.h <<_ACEOF
5940 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
5941 _ACEOF
5942
5943 fi
5944
5945 done
5946
5947 for ac_header in stdint.h
5948 do
5949 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
5950 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5951 { echo "$as_me:$LINENO: checking for $ac_header" >&5
5952 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
5953 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
5954 echo $ECHO_N "(cached) $ECHO_C" >&6
5955 fi
5956 ac_res=`eval echo '${'$as_ac_Header'}'`
5957 { echo "$as_me:$LINENO: result: $ac_res" >&5
5958 echo "${ECHO_T}$ac_res" >&6; }
5959 else
5960 # Is the header compilable?
5961 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
5962 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
5963 cat >conftest.$ac_ext <<_ACEOF
5964 /* confdefs.h. */
5965 _ACEOF
5966 cat confdefs.h >>conftest.$ac_ext
5967 cat >>conftest.$ac_ext <<_ACEOF
5968 /* end confdefs.h. */
5969 $ac_includes_default
5970 #include <$ac_header>
5971 _ACEOF
5972 rm -f conftest.$ac_objext
5973 if { (ac_try="$ac_compile"
5974 case "(($ac_try" in
5975 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5976 *) ac_try_echo=$ac_try;;
5977 esac
5978 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5979 (eval "$ac_compile") 2>conftest.er1
5980 ac_status=$?
5981 grep -v '^ *+' conftest.er1 >conftest.err
5982 rm -f conftest.er1
5983 cat conftest.err >&5
5984 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5985 (exit $ac_status); } &&
5986 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
5987 { (case "(($ac_try" in
5988 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5989 *) ac_try_echo=$ac_try;;
5990 esac
5991 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
5992 (eval "$ac_try") 2>&5
5993 ac_status=$?
5994 echo "$as_me:$LINENO: \$? = $ac_status" >&5
5995 (exit $ac_status); }; } &&
5996 { ac_try='test -s conftest.$ac_objext'
5997 { (case "(($ac_try" in
5998 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
5999 *) ac_try_echo=$ac_try;;
6000 esac
6001 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6002 (eval "$ac_try") 2>&5
6003 ac_status=$?
6004 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6005 (exit $ac_status); }; }; then
6006 ac_header_compiler=yes
6007 else
6008 echo "$as_me: failed program was:" >&5
6009 sed 's/^/| /' conftest.$ac_ext >&5
6010
6011 ac_header_compiler=no
6012 fi
6013
6014 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6015 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6016 echo "${ECHO_T}$ac_header_compiler" >&6; }
6017
6018 # Is the header present?
6019 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6020 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6021 cat >conftest.$ac_ext <<_ACEOF
6022 /* confdefs.h. */
6023 _ACEOF
6024 cat confdefs.h >>conftest.$ac_ext
6025 cat >>conftest.$ac_ext <<_ACEOF
6026 /* end confdefs.h. */
6027 #include <$ac_header>
6028 _ACEOF
6029 if { (ac_try="$ac_cpp conftest.$ac_ext"
6030 case "(($ac_try" in
6031 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6032 *) ac_try_echo=$ac_try;;
6033 esac
6034 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6035 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6036 ac_status=$?
6037 grep -v '^ *+' conftest.er1 >conftest.err
6038 rm -f conftest.er1
6039 cat conftest.err >&5
6040 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6041 (exit $ac_status); } >/dev/null; then
6042 if test -s conftest.err; then
6043 ac_cpp_err=$ac_cxx_preproc_warn_flag
6044 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6045 else
6046 ac_cpp_err=
6047 fi
6048 else
6049 ac_cpp_err=yes
6050 fi
6051 if test -z "$ac_cpp_err"; then
6052 ac_header_preproc=yes
6053 else
6054 echo "$as_me: failed program was:" >&5
6055 sed 's/^/| /' conftest.$ac_ext >&5
6056
6057 ac_header_preproc=no
6058 fi
6059
6060 rm -f conftest.err conftest.$ac_ext
6061 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6062 echo "${ECHO_T}$ac_header_preproc" >&6; }
6063
6064 # So? What about this header?
6065 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
6066 yes:no: )
6067 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6068 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6069 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6070 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6071 ac_header_preproc=yes
6072 ;;
6073 no:yes:* )
6074 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6075 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6076 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6077 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6078 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6079 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6080 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6081 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6082 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6083 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6084 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6085 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6086 ( cat <<\_ASBOX
6087 ## ---------------------------------------------------------- ##
6088 ## Report this to smartmontools-support@lists.sourceforge.net ##
6089 ## ---------------------------------------------------------- ##
6090 _ASBOX
6091 ) | sed "s/^/$as_me: WARNING: /" >&2
6092 ;;
6093 esac
6094 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6095 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6096 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6097 echo $ECHO_N "(cached) $ECHO_C" >&6
6098 else
6099 eval "$as_ac_Header=\$ac_header_preproc"
6100 fi
6101 ac_res=`eval echo '${'$as_ac_Header'}'`
6102 { echo "$as_me:$LINENO: result: $ac_res" >&5
6103 echo "${ECHO_T}$ac_res" >&6; }
6104
6105 fi
6106 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6107 cat >>confdefs.h <<_ACEOF
6108 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6109 _ACEOF
6110
6111 fi
6112
6113 done
6114
6115 for ac_header in sys/inttypes.h
6116 do
6117 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6118 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6119 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6120 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6121 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6122 echo $ECHO_N "(cached) $ECHO_C" >&6
6123 fi
6124 ac_res=`eval echo '${'$as_ac_Header'}'`
6125 { echo "$as_me:$LINENO: result: $ac_res" >&5
6126 echo "${ECHO_T}$ac_res" >&6; }
6127 else
6128 # Is the header compilable?
6129 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6130 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6131 cat >conftest.$ac_ext <<_ACEOF
6132 /* confdefs.h. */
6133 _ACEOF
6134 cat confdefs.h >>conftest.$ac_ext
6135 cat >>conftest.$ac_ext <<_ACEOF
6136 /* end confdefs.h. */
6137 $ac_includes_default
6138 #include <$ac_header>
6139 _ACEOF
6140 rm -f conftest.$ac_objext
6141 if { (ac_try="$ac_compile"
6142 case "(($ac_try" in
6143 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6144 *) ac_try_echo=$ac_try;;
6145 esac
6146 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6147 (eval "$ac_compile") 2>conftest.er1
6148 ac_status=$?
6149 grep -v '^ *+' conftest.er1 >conftest.err
6150 rm -f conftest.er1
6151 cat conftest.err >&5
6152 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6153 (exit $ac_status); } &&
6154 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6155 { (case "(($ac_try" in
6156 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6157 *) ac_try_echo=$ac_try;;
6158 esac
6159 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6160 (eval "$ac_try") 2>&5
6161 ac_status=$?
6162 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6163 (exit $ac_status); }; } &&
6164 { ac_try='test -s conftest.$ac_objext'
6165 { (case "(($ac_try" in
6166 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6167 *) ac_try_echo=$ac_try;;
6168 esac
6169 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6170 (eval "$ac_try") 2>&5
6171 ac_status=$?
6172 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6173 (exit $ac_status); }; }; then
6174 ac_header_compiler=yes
6175 else
6176 echo "$as_me: failed program was:" >&5
6177 sed 's/^/| /' conftest.$ac_ext >&5
6178
6179 ac_header_compiler=no
6180 fi
6181
6182 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6183 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6184 echo "${ECHO_T}$ac_header_compiler" >&6; }
6185
6186 # Is the header present?
6187 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6188 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6189 cat >conftest.$ac_ext <<_ACEOF
6190 /* confdefs.h. */
6191 _ACEOF
6192 cat confdefs.h >>conftest.$ac_ext
6193 cat >>conftest.$ac_ext <<_ACEOF
6194 /* end confdefs.h. */
6195 #include <$ac_header>
6196 _ACEOF
6197 if { (ac_try="$ac_cpp conftest.$ac_ext"
6198 case "(($ac_try" in
6199 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6200 *) ac_try_echo=$ac_try;;
6201 esac
6202 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6203 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6204 ac_status=$?
6205 grep -v '^ *+' conftest.er1 >conftest.err
6206 rm -f conftest.er1
6207 cat conftest.err >&5
6208 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6209 (exit $ac_status); } >/dev/null; then
6210 if test -s conftest.err; then
6211 ac_cpp_err=$ac_cxx_preproc_warn_flag
6212 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6213 else
6214 ac_cpp_err=
6215 fi
6216 else
6217 ac_cpp_err=yes
6218 fi
6219 if test -z "$ac_cpp_err"; then
6220 ac_header_preproc=yes
6221 else
6222 echo "$as_me: failed program was:" >&5
6223 sed 's/^/| /' conftest.$ac_ext >&5
6224
6225 ac_header_preproc=no
6226 fi
6227
6228 rm -f conftest.err conftest.$ac_ext
6229 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6230 echo "${ECHO_T}$ac_header_preproc" >&6; }
6231
6232 # So? What about this header?
6233 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
6234 yes:no: )
6235 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6236 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6237 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6238 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6239 ac_header_preproc=yes
6240 ;;
6241 no:yes:* )
6242 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6243 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6244 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6245 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6246 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6247 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6248 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6249 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6250 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6251 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6252 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6253 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6254 ( cat <<\_ASBOX
6255 ## ---------------------------------------------------------- ##
6256 ## Report this to smartmontools-support@lists.sourceforge.net ##
6257 ## ---------------------------------------------------------- ##
6258 _ASBOX
6259 ) | sed "s/^/$as_me: WARNING: /" >&2
6260 ;;
6261 esac
6262 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6263 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6264 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6265 echo $ECHO_N "(cached) $ECHO_C" >&6
6266 else
6267 eval "$as_ac_Header=\$ac_header_preproc"
6268 fi
6269 ac_res=`eval echo '${'$as_ac_Header'}'`
6270 { echo "$as_me:$LINENO: result: $ac_res" >&5
6271 echo "${ECHO_T}$ac_res" >&6; }
6272
6273 fi
6274 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6275 cat >>confdefs.h <<_ACEOF
6276 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6277 _ACEOF
6278
6279 fi
6280
6281 done
6282
6283 for ac_header in sys/int_types.h
6284 do
6285 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6286 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6287 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6288 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6289 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6290 echo $ECHO_N "(cached) $ECHO_C" >&6
6291 fi
6292 ac_res=`eval echo '${'$as_ac_Header'}'`
6293 { echo "$as_me:$LINENO: result: $ac_res" >&5
6294 echo "${ECHO_T}$ac_res" >&6; }
6295 else
6296 # Is the header compilable?
6297 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6298 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6299 cat >conftest.$ac_ext <<_ACEOF
6300 /* confdefs.h. */
6301 _ACEOF
6302 cat confdefs.h >>conftest.$ac_ext
6303 cat >>conftest.$ac_ext <<_ACEOF
6304 /* end confdefs.h. */
6305 $ac_includes_default
6306 #include <$ac_header>
6307 _ACEOF
6308 rm -f conftest.$ac_objext
6309 if { (ac_try="$ac_compile"
6310 case "(($ac_try" in
6311 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6312 *) ac_try_echo=$ac_try;;
6313 esac
6314 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6315 (eval "$ac_compile") 2>conftest.er1
6316 ac_status=$?
6317 grep -v '^ *+' conftest.er1 >conftest.err
6318 rm -f conftest.er1
6319 cat conftest.err >&5
6320 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6321 (exit $ac_status); } &&
6322 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6323 { (case "(($ac_try" in
6324 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6325 *) ac_try_echo=$ac_try;;
6326 esac
6327 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6328 (eval "$ac_try") 2>&5
6329 ac_status=$?
6330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6331 (exit $ac_status); }; } &&
6332 { ac_try='test -s conftest.$ac_objext'
6333 { (case "(($ac_try" in
6334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6335 *) ac_try_echo=$ac_try;;
6336 esac
6337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6338 (eval "$ac_try") 2>&5
6339 ac_status=$?
6340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6341 (exit $ac_status); }; }; then
6342 ac_header_compiler=yes
6343 else
6344 echo "$as_me: failed program was:" >&5
6345 sed 's/^/| /' conftest.$ac_ext >&5
6346
6347 ac_header_compiler=no
6348 fi
6349
6350 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6351 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6352 echo "${ECHO_T}$ac_header_compiler" >&6; }
6353
6354 # Is the header present?
6355 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6356 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6357 cat >conftest.$ac_ext <<_ACEOF
6358 /* confdefs.h. */
6359 _ACEOF
6360 cat confdefs.h >>conftest.$ac_ext
6361 cat >>conftest.$ac_ext <<_ACEOF
6362 /* end confdefs.h. */
6363 #include <$ac_header>
6364 _ACEOF
6365 if { (ac_try="$ac_cpp conftest.$ac_ext"
6366 case "(($ac_try" in
6367 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6368 *) ac_try_echo=$ac_try;;
6369 esac
6370 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6371 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6372 ac_status=$?
6373 grep -v '^ *+' conftest.er1 >conftest.err
6374 rm -f conftest.er1
6375 cat conftest.err >&5
6376 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6377 (exit $ac_status); } >/dev/null; then
6378 if test -s conftest.err; then
6379 ac_cpp_err=$ac_cxx_preproc_warn_flag
6380 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6381 else
6382 ac_cpp_err=
6383 fi
6384 else
6385 ac_cpp_err=yes
6386 fi
6387 if test -z "$ac_cpp_err"; then
6388 ac_header_preproc=yes
6389 else
6390 echo "$as_me: failed program was:" >&5
6391 sed 's/^/| /' conftest.$ac_ext >&5
6392
6393 ac_header_preproc=no
6394 fi
6395
6396 rm -f conftest.err conftest.$ac_ext
6397 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6398 echo "${ECHO_T}$ac_header_preproc" >&6; }
6399
6400 # So? What about this header?
6401 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
6402 yes:no: )
6403 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6404 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6405 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6406 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6407 ac_header_preproc=yes
6408 ;;
6409 no:yes:* )
6410 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6411 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6412 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6413 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6414 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6415 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6416 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6417 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6418 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6419 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6420 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6421 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6422 ( cat <<\_ASBOX
6423 ## ---------------------------------------------------------- ##
6424 ## Report this to smartmontools-support@lists.sourceforge.net ##
6425 ## ---------------------------------------------------------- ##
6426 _ASBOX
6427 ) | sed "s/^/$as_me: WARNING: /" >&2
6428 ;;
6429 esac
6430 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6431 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6432 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6433 echo $ECHO_N "(cached) $ECHO_C" >&6
6434 else
6435 eval "$as_ac_Header=\$ac_header_preproc"
6436 fi
6437 ac_res=`eval echo '${'$as_ac_Header'}'`
6438 { echo "$as_me:$LINENO: result: $ac_res" >&5
6439 echo "${ECHO_T}$ac_res" >&6; }
6440
6441 fi
6442 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6443 cat >>confdefs.h <<_ACEOF
6444 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6445 _ACEOF
6446
6447 fi
6448
6449 done
6450
6451 for ac_header in sys/tweio.h
6452 do
6453 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6454 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6455 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6456 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6457 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6458 echo $ECHO_N "(cached) $ECHO_C" >&6
6459 fi
6460 ac_res=`eval echo '${'$as_ac_Header'}'`
6461 { echo "$as_me:$LINENO: result: $ac_res" >&5
6462 echo "${ECHO_T}$ac_res" >&6; }
6463 else
6464 # Is the header compilable?
6465 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6466 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6467 cat >conftest.$ac_ext <<_ACEOF
6468 /* confdefs.h. */
6469 _ACEOF
6470 cat confdefs.h >>conftest.$ac_ext
6471 cat >>conftest.$ac_ext <<_ACEOF
6472 /* end confdefs.h. */
6473 $ac_includes_default
6474 #include <$ac_header>
6475 _ACEOF
6476 rm -f conftest.$ac_objext
6477 if { (ac_try="$ac_compile"
6478 case "(($ac_try" in
6479 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6480 *) ac_try_echo=$ac_try;;
6481 esac
6482 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6483 (eval "$ac_compile") 2>conftest.er1
6484 ac_status=$?
6485 grep -v '^ *+' conftest.er1 >conftest.err
6486 rm -f conftest.er1
6487 cat conftest.err >&5
6488 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6489 (exit $ac_status); } &&
6490 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6491 { (case "(($ac_try" in
6492 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6493 *) ac_try_echo=$ac_try;;
6494 esac
6495 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6496 (eval "$ac_try") 2>&5
6497 ac_status=$?
6498 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6499 (exit $ac_status); }; } &&
6500 { ac_try='test -s conftest.$ac_objext'
6501 { (case "(($ac_try" in
6502 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6503 *) ac_try_echo=$ac_try;;
6504 esac
6505 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6506 (eval "$ac_try") 2>&5
6507 ac_status=$?
6508 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6509 (exit $ac_status); }; }; then
6510 ac_header_compiler=yes
6511 else
6512 echo "$as_me: failed program was:" >&5
6513 sed 's/^/| /' conftest.$ac_ext >&5
6514
6515 ac_header_compiler=no
6516 fi
6517
6518 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6519 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6520 echo "${ECHO_T}$ac_header_compiler" >&6; }
6521
6522 # Is the header present?
6523 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6524 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6525 cat >conftest.$ac_ext <<_ACEOF
6526 /* confdefs.h. */
6527 _ACEOF
6528 cat confdefs.h >>conftest.$ac_ext
6529 cat >>conftest.$ac_ext <<_ACEOF
6530 /* end confdefs.h. */
6531 #include <$ac_header>
6532 _ACEOF
6533 if { (ac_try="$ac_cpp conftest.$ac_ext"
6534 case "(($ac_try" in
6535 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6536 *) ac_try_echo=$ac_try;;
6537 esac
6538 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6539 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6540 ac_status=$?
6541 grep -v '^ *+' conftest.er1 >conftest.err
6542 rm -f conftest.er1
6543 cat conftest.err >&5
6544 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6545 (exit $ac_status); } >/dev/null; then
6546 if test -s conftest.err; then
6547 ac_cpp_err=$ac_cxx_preproc_warn_flag
6548 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6549 else
6550 ac_cpp_err=
6551 fi
6552 else
6553 ac_cpp_err=yes
6554 fi
6555 if test -z "$ac_cpp_err"; then
6556 ac_header_preproc=yes
6557 else
6558 echo "$as_me: failed program was:" >&5
6559 sed 's/^/| /' conftest.$ac_ext >&5
6560
6561 ac_header_preproc=no
6562 fi
6563
6564 rm -f conftest.err conftest.$ac_ext
6565 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6566 echo "${ECHO_T}$ac_header_preproc" >&6; }
6567
6568 # So? What about this header?
6569 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
6570 yes:no: )
6571 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6572 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6573 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6574 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6575 ac_header_preproc=yes
6576 ;;
6577 no:yes:* )
6578 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6579 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6580 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6581 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6582 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6583 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6584 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6585 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6586 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6587 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6588 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6589 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6590 ( cat <<\_ASBOX
6591 ## ---------------------------------------------------------- ##
6592 ## Report this to smartmontools-support@lists.sourceforge.net ##
6593 ## ---------------------------------------------------------- ##
6594 _ASBOX
6595 ) | sed "s/^/$as_me: WARNING: /" >&2
6596 ;;
6597 esac
6598 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6599 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6600 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6601 echo $ECHO_N "(cached) $ECHO_C" >&6
6602 else
6603 eval "$as_ac_Header=\$ac_header_preproc"
6604 fi
6605 ac_res=`eval echo '${'$as_ac_Header'}'`
6606 { echo "$as_me:$LINENO: result: $ac_res" >&5
6607 echo "${ECHO_T}$ac_res" >&6; }
6608
6609 fi
6610 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6611 cat >>confdefs.h <<_ACEOF
6612 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6613 _ACEOF
6614
6615 fi
6616
6617 done
6618
6619
6620 for ac_header in sys/twereg.h
6621 do
6622 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6623 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6624 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6625 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6626 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6627 echo $ECHO_N "(cached) $ECHO_C" >&6
6628 fi
6629 ac_res=`eval echo '${'$as_ac_Header'}'`
6630 { echo "$as_me:$LINENO: result: $ac_res" >&5
6631 echo "${ECHO_T}$ac_res" >&6; }
6632 else
6633 # Is the header compilable?
6634 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6635 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6636 cat >conftest.$ac_ext <<_ACEOF
6637 /* confdefs.h. */
6638 _ACEOF
6639 cat confdefs.h >>conftest.$ac_ext
6640 cat >>conftest.$ac_ext <<_ACEOF
6641 /* end confdefs.h. */
6642 $ac_includes_default
6643 #include <$ac_header>
6644 _ACEOF
6645 rm -f conftest.$ac_objext
6646 if { (ac_try="$ac_compile"
6647 case "(($ac_try" in
6648 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6649 *) ac_try_echo=$ac_try;;
6650 esac
6651 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6652 (eval "$ac_compile") 2>conftest.er1
6653 ac_status=$?
6654 grep -v '^ *+' conftest.er1 >conftest.err
6655 rm -f conftest.er1
6656 cat conftest.err >&5
6657 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6658 (exit $ac_status); } &&
6659 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6660 { (case "(($ac_try" in
6661 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6662 *) ac_try_echo=$ac_try;;
6663 esac
6664 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6665 (eval "$ac_try") 2>&5
6666 ac_status=$?
6667 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6668 (exit $ac_status); }; } &&
6669 { ac_try='test -s conftest.$ac_objext'
6670 { (case "(($ac_try" in
6671 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6672 *) ac_try_echo=$ac_try;;
6673 esac
6674 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6675 (eval "$ac_try") 2>&5
6676 ac_status=$?
6677 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6678 (exit $ac_status); }; }; then
6679 ac_header_compiler=yes
6680 else
6681 echo "$as_me: failed program was:" >&5
6682 sed 's/^/| /' conftest.$ac_ext >&5
6683
6684 ac_header_compiler=no
6685 fi
6686
6687 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6688 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6689 echo "${ECHO_T}$ac_header_compiler" >&6; }
6690
6691 # Is the header present?
6692 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6693 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6694 cat >conftest.$ac_ext <<_ACEOF
6695 /* confdefs.h. */
6696 _ACEOF
6697 cat confdefs.h >>conftest.$ac_ext
6698 cat >>conftest.$ac_ext <<_ACEOF
6699 /* end confdefs.h. */
6700 #include <$ac_header>
6701 _ACEOF
6702 if { (ac_try="$ac_cpp conftest.$ac_ext"
6703 case "(($ac_try" in
6704 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6705 *) ac_try_echo=$ac_try;;
6706 esac
6707 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6708 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6709 ac_status=$?
6710 grep -v '^ *+' conftest.er1 >conftest.err
6711 rm -f conftest.er1
6712 cat conftest.err >&5
6713 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6714 (exit $ac_status); } >/dev/null; then
6715 if test -s conftest.err; then
6716 ac_cpp_err=$ac_cxx_preproc_warn_flag
6717 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6718 else
6719 ac_cpp_err=
6720 fi
6721 else
6722 ac_cpp_err=yes
6723 fi
6724 if test -z "$ac_cpp_err"; then
6725 ac_header_preproc=yes
6726 else
6727 echo "$as_me: failed program was:" >&5
6728 sed 's/^/| /' conftest.$ac_ext >&5
6729
6730 ac_header_preproc=no
6731 fi
6732
6733 rm -f conftest.err conftest.$ac_ext
6734 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6735 echo "${ECHO_T}$ac_header_preproc" >&6; }
6736
6737 # So? What about this header?
6738 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
6739 yes:no: )
6740 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6741 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6742 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6743 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6744 ac_header_preproc=yes
6745 ;;
6746 no:yes:* )
6747 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6748 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6749 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6750 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6751 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6752 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6753 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6754 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6755 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6756 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6757 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6758 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6759 ( cat <<\_ASBOX
6760 ## ---------------------------------------------------------- ##
6761 ## Report this to smartmontools-support@lists.sourceforge.net ##
6762 ## ---------------------------------------------------------- ##
6763 _ASBOX
6764 ) | sed "s/^/$as_me: WARNING: /" >&2
6765 ;;
6766 esac
6767 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6768 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6769 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6770 echo $ECHO_N "(cached) $ECHO_C" >&6
6771 else
6772 eval "$as_ac_Header=\$ac_header_preproc"
6773 fi
6774 ac_res=`eval echo '${'$as_ac_Header'}'`
6775 { echo "$as_me:$LINENO: result: $ac_res" >&5
6776 echo "${ECHO_T}$ac_res" >&6; }
6777
6778 fi
6779 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6780 cat >>confdefs.h <<_ACEOF
6781 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6782 _ACEOF
6783
6784 fi
6785
6786 done
6787
6788
6789 for ac_header in sys/tw_osl_ioctl.h
6790 do
6791 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6792 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6793 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6794 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6795 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6796 echo $ECHO_N "(cached) $ECHO_C" >&6
6797 fi
6798 ac_res=`eval echo '${'$as_ac_Header'}'`
6799 { echo "$as_me:$LINENO: result: $ac_res" >&5
6800 echo "${ECHO_T}$ac_res" >&6; }
6801 else
6802 # Is the header compilable?
6803 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6804 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6805 cat >conftest.$ac_ext <<_ACEOF
6806 /* confdefs.h. */
6807 _ACEOF
6808 cat confdefs.h >>conftest.$ac_ext
6809 cat >>conftest.$ac_ext <<_ACEOF
6810 /* end confdefs.h. */
6811 $ac_includes_default
6812 #include <$ac_header>
6813 _ACEOF
6814 rm -f conftest.$ac_objext
6815 if { (ac_try="$ac_compile"
6816 case "(($ac_try" in
6817 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6818 *) ac_try_echo=$ac_try;;
6819 esac
6820 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6821 (eval "$ac_compile") 2>conftest.er1
6822 ac_status=$?
6823 grep -v '^ *+' conftest.er1 >conftest.err
6824 rm -f conftest.er1
6825 cat conftest.err >&5
6826 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6827 (exit $ac_status); } &&
6828 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6829 { (case "(($ac_try" in
6830 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6831 *) ac_try_echo=$ac_try;;
6832 esac
6833 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6834 (eval "$ac_try") 2>&5
6835 ac_status=$?
6836 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6837 (exit $ac_status); }; } &&
6838 { ac_try='test -s conftest.$ac_objext'
6839 { (case "(($ac_try" in
6840 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6841 *) ac_try_echo=$ac_try;;
6842 esac
6843 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6844 (eval "$ac_try") 2>&5
6845 ac_status=$?
6846 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6847 (exit $ac_status); }; }; then
6848 ac_header_compiler=yes
6849 else
6850 echo "$as_me: failed program was:" >&5
6851 sed 's/^/| /' conftest.$ac_ext >&5
6852
6853 ac_header_compiler=no
6854 fi
6855
6856 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
6857 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
6858 echo "${ECHO_T}$ac_header_compiler" >&6; }
6859
6860 # Is the header present?
6861 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
6862 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
6863 cat >conftest.$ac_ext <<_ACEOF
6864 /* confdefs.h. */
6865 _ACEOF
6866 cat confdefs.h >>conftest.$ac_ext
6867 cat >>conftest.$ac_ext <<_ACEOF
6868 /* end confdefs.h. */
6869 #include <$ac_header>
6870 _ACEOF
6871 if { (ac_try="$ac_cpp conftest.$ac_ext"
6872 case "(($ac_try" in
6873 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6874 *) ac_try_echo=$ac_try;;
6875 esac
6876 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6877 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
6878 ac_status=$?
6879 grep -v '^ *+' conftest.er1 >conftest.err
6880 rm -f conftest.er1
6881 cat conftest.err >&5
6882 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6883 (exit $ac_status); } >/dev/null; then
6884 if test -s conftest.err; then
6885 ac_cpp_err=$ac_cxx_preproc_warn_flag
6886 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
6887 else
6888 ac_cpp_err=
6889 fi
6890 else
6891 ac_cpp_err=yes
6892 fi
6893 if test -z "$ac_cpp_err"; then
6894 ac_header_preproc=yes
6895 else
6896 echo "$as_me: failed program was:" >&5
6897 sed 's/^/| /' conftest.$ac_ext >&5
6898
6899 ac_header_preproc=no
6900 fi
6901
6902 rm -f conftest.err conftest.$ac_ext
6903 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
6904 echo "${ECHO_T}$ac_header_preproc" >&6; }
6905
6906 # So? What about this header?
6907 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
6908 yes:no: )
6909 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
6910 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
6911 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
6912 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
6913 ac_header_preproc=yes
6914 ;;
6915 no:yes:* )
6916 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
6917 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
6918 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
6919 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
6920 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
6921 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
6922 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
6923 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
6924 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
6925 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
6926 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
6927 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
6928 ( cat <<\_ASBOX
6929 ## ---------------------------------------------------------- ##
6930 ## Report this to smartmontools-support@lists.sourceforge.net ##
6931 ## ---------------------------------------------------------- ##
6932 _ASBOX
6933 ) | sed "s/^/$as_me: WARNING: /" >&2
6934 ;;
6935 esac
6936 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6937 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6938 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6939 echo $ECHO_N "(cached) $ECHO_C" >&6
6940 else
6941 eval "$as_ac_Header=\$ac_header_preproc"
6942 fi
6943 ac_res=`eval echo '${'$as_ac_Header'}'`
6944 { echo "$as_me:$LINENO: result: $ac_res" >&5
6945 echo "${ECHO_T}$ac_res" >&6; }
6946
6947 fi
6948 if test `eval echo '${'$as_ac_Header'}'` = yes; then
6949 cat >>confdefs.h <<_ACEOF
6950 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
6951 _ACEOF
6952
6953 fi
6954
6955 done
6956
6957
6958 for ac_header in dev/ciss/cissio.h
6959 do
6960 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
6961 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6962 { echo "$as_me:$LINENO: checking for $ac_header" >&5
6963 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
6964 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
6965 echo $ECHO_N "(cached) $ECHO_C" >&6
6966 fi
6967 ac_res=`eval echo '${'$as_ac_Header'}'`
6968 { echo "$as_me:$LINENO: result: $ac_res" >&5
6969 echo "${ECHO_T}$ac_res" >&6; }
6970 else
6971 # Is the header compilable?
6972 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
6973 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
6974 cat >conftest.$ac_ext <<_ACEOF
6975 /* confdefs.h. */
6976 _ACEOF
6977 cat confdefs.h >>conftest.$ac_ext
6978 cat >>conftest.$ac_ext <<_ACEOF
6979 /* end confdefs.h. */
6980 $ac_includes_default
6981 #include <$ac_header>
6982 _ACEOF
6983 rm -f conftest.$ac_objext
6984 if { (ac_try="$ac_compile"
6985 case "(($ac_try" in
6986 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
6987 *) ac_try_echo=$ac_try;;
6988 esac
6989 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
6990 (eval "$ac_compile") 2>conftest.er1
6991 ac_status=$?
6992 grep -v '^ *+' conftest.er1 >conftest.err
6993 rm -f conftest.er1
6994 cat conftest.err >&5
6995 echo "$as_me:$LINENO: \$? = $ac_status" >&5
6996 (exit $ac_status); } &&
6997 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
6998 { (case "(($ac_try" in
6999 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7000 *) ac_try_echo=$ac_try;;
7001 esac
7002 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7003 (eval "$ac_try") 2>&5
7004 ac_status=$?
7005 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7006 (exit $ac_status); }; } &&
7007 { ac_try='test -s conftest.$ac_objext'
7008 { (case "(($ac_try" in
7009 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7010 *) ac_try_echo=$ac_try;;
7011 esac
7012 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7013 (eval "$ac_try") 2>&5
7014 ac_status=$?
7015 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7016 (exit $ac_status); }; }; then
7017 ac_header_compiler=yes
7018 else
7019 echo "$as_me: failed program was:" >&5
7020 sed 's/^/| /' conftest.$ac_ext >&5
7021
7022 ac_header_compiler=no
7023 fi
7024
7025 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7026 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7027 echo "${ECHO_T}$ac_header_compiler" >&6; }
7028
7029 # Is the header present?
7030 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7031 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7032 cat >conftest.$ac_ext <<_ACEOF
7033 /* confdefs.h. */
7034 _ACEOF
7035 cat confdefs.h >>conftest.$ac_ext
7036 cat >>conftest.$ac_ext <<_ACEOF
7037 /* end confdefs.h. */
7038 #include <$ac_header>
7039 _ACEOF
7040 if { (ac_try="$ac_cpp conftest.$ac_ext"
7041 case "(($ac_try" in
7042 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7043 *) ac_try_echo=$ac_try;;
7044 esac
7045 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7046 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7047 ac_status=$?
7048 grep -v '^ *+' conftest.er1 >conftest.err
7049 rm -f conftest.er1
7050 cat conftest.err >&5
7051 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7052 (exit $ac_status); } >/dev/null; then
7053 if test -s conftest.err; then
7054 ac_cpp_err=$ac_cxx_preproc_warn_flag
7055 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7056 else
7057 ac_cpp_err=
7058 fi
7059 else
7060 ac_cpp_err=yes
7061 fi
7062 if test -z "$ac_cpp_err"; then
7063 ac_header_preproc=yes
7064 else
7065 echo "$as_me: failed program was:" >&5
7066 sed 's/^/| /' conftest.$ac_ext >&5
7067
7068 ac_header_preproc=no
7069 fi
7070
7071 rm -f conftest.err conftest.$ac_ext
7072 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7073 echo "${ECHO_T}$ac_header_preproc" >&6; }
7074
7075 # So? What about this header?
7076 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
7077 yes:no: )
7078 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7079 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7080 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7081 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7082 ac_header_preproc=yes
7083 ;;
7084 no:yes:* )
7085 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7086 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7087 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7088 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7089 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7090 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7091 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7092 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7093 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7094 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7095 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7096 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7097 ( cat <<\_ASBOX
7098 ## ---------------------------------------------------------- ##
7099 ## Report this to smartmontools-support@lists.sourceforge.net ##
7100 ## ---------------------------------------------------------- ##
7101 _ASBOX
7102 ) | sed "s/^/$as_me: WARNING: /" >&2
7103 ;;
7104 esac
7105 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7106 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7107 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7108 echo $ECHO_N "(cached) $ECHO_C" >&6
7109 else
7110 eval "$as_ac_Header=\$ac_header_preproc"
7111 fi
7112 ac_res=`eval echo '${'$as_ac_Header'}'`
7113 { echo "$as_me:$LINENO: result: $ac_res" >&5
7114 echo "${ECHO_T}$ac_res" >&6; }
7115
7116 fi
7117 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7118 cat >>confdefs.h <<_ACEOF
7119 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7120 _ACEOF
7121
7122 fi
7123
7124 done
7125
7126
7127 for ac_header in linux/compiler.h
7128 do
7129 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7130 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7131 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7132 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7133 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7134 echo $ECHO_N "(cached) $ECHO_C" >&6
7135 fi
7136 ac_res=`eval echo '${'$as_ac_Header'}'`
7137 { echo "$as_me:$LINENO: result: $ac_res" >&5
7138 echo "${ECHO_T}$ac_res" >&6; }
7139 else
7140 # Is the header compilable?
7141 { echo "$as_me:$LINENO: checking $ac_header usability" >&5
7142 echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6; }
7143 cat >conftest.$ac_ext <<_ACEOF
7144 /* confdefs.h. */
7145 _ACEOF
7146 cat confdefs.h >>conftest.$ac_ext
7147 cat >>conftest.$ac_ext <<_ACEOF
7148 /* end confdefs.h. */
7149 $ac_includes_default
7150 #include <$ac_header>
7151 _ACEOF
7152 rm -f conftest.$ac_objext
7153 if { (ac_try="$ac_compile"
7154 case "(($ac_try" in
7155 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7156 *) ac_try_echo=$ac_try;;
7157 esac
7158 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7159 (eval "$ac_compile") 2>conftest.er1
7160 ac_status=$?
7161 grep -v '^ *+' conftest.er1 >conftest.err
7162 rm -f conftest.er1
7163 cat conftest.err >&5
7164 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7165 (exit $ac_status); } &&
7166 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7167 { (case "(($ac_try" in
7168 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7169 *) ac_try_echo=$ac_try;;
7170 esac
7171 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7172 (eval "$ac_try") 2>&5
7173 ac_status=$?
7174 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7175 (exit $ac_status); }; } &&
7176 { ac_try='test -s conftest.$ac_objext'
7177 { (case "(($ac_try" in
7178 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7179 *) ac_try_echo=$ac_try;;
7180 esac
7181 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7182 (eval "$ac_try") 2>&5
7183 ac_status=$?
7184 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7185 (exit $ac_status); }; }; then
7186 ac_header_compiler=yes
7187 else
7188 echo "$as_me: failed program was:" >&5
7189 sed 's/^/| /' conftest.$ac_ext >&5
7190
7191 ac_header_compiler=no
7192 fi
7193
7194 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7195 { echo "$as_me:$LINENO: result: $ac_header_compiler" >&5
7196 echo "${ECHO_T}$ac_header_compiler" >&6; }
7197
7198 # Is the header present?
7199 { echo "$as_me:$LINENO: checking $ac_header presence" >&5
7200 echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6; }
7201 cat >conftest.$ac_ext <<_ACEOF
7202 /* confdefs.h. */
7203 _ACEOF
7204 cat confdefs.h >>conftest.$ac_ext
7205 cat >>conftest.$ac_ext <<_ACEOF
7206 /* end confdefs.h. */
7207 #include <$ac_header>
7208 _ACEOF
7209 if { (ac_try="$ac_cpp conftest.$ac_ext"
7210 case "(($ac_try" in
7211 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7212 *) ac_try_echo=$ac_try;;
7213 esac
7214 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7215 (eval "$ac_cpp conftest.$ac_ext") 2>conftest.er1
7216 ac_status=$?
7217 grep -v '^ *+' conftest.er1 >conftest.err
7218 rm -f conftest.er1
7219 cat conftest.err >&5
7220 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7221 (exit $ac_status); } >/dev/null; then
7222 if test -s conftest.err; then
7223 ac_cpp_err=$ac_cxx_preproc_warn_flag
7224 ac_cpp_err=$ac_cpp_err$ac_cxx_werror_flag
7225 else
7226 ac_cpp_err=
7227 fi
7228 else
7229 ac_cpp_err=yes
7230 fi
7231 if test -z "$ac_cpp_err"; then
7232 ac_header_preproc=yes
7233 else
7234 echo "$as_me: failed program was:" >&5
7235 sed 's/^/| /' conftest.$ac_ext >&5
7236
7237 ac_header_preproc=no
7238 fi
7239
7240 rm -f conftest.err conftest.$ac_ext
7241 { echo "$as_me:$LINENO: result: $ac_header_preproc" >&5
7242 echo "${ECHO_T}$ac_header_preproc" >&6; }
7243
7244 # So? What about this header?
7245 case $ac_header_compiler:$ac_header_preproc:$ac_cxx_preproc_warn_flag in
7246 yes:no: )
7247 { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5
7248 echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;}
7249 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5
7250 echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;}
7251 ac_header_preproc=yes
7252 ;;
7253 no:yes:* )
7254 { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5
7255 echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;}
7256 { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5
7257 echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;}
7258 { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5
7259 echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;}
7260 { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5
7261 echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;}
7262 { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5
7263 echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;}
7264 { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5
7265 echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;}
7266 ( cat <<\_ASBOX
7267 ## ---------------------------------------------------------- ##
7268 ## Report this to smartmontools-support@lists.sourceforge.net ##
7269 ## ---------------------------------------------------------- ##
7270 _ASBOX
7271 ) | sed "s/^/$as_me: WARNING: /" >&2
7272 ;;
7273 esac
7274 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7275 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7276 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7277 echo $ECHO_N "(cached) $ECHO_C" >&6
7278 else
7279 eval "$as_ac_Header=\$ac_header_preproc"
7280 fi
7281 ac_res=`eval echo '${'$as_ac_Header'}'`
7282 { echo "$as_me:$LINENO: result: $ac_res" >&5
7283 echo "${ECHO_T}$ac_res" >&6; }
7284
7285 fi
7286 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7287 cat >>confdefs.h <<_ACEOF
7288 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7289 _ACEOF
7290
7291 fi
7292
7293 done
7294
7295
7296 for ac_header in linux/cciss_ioctl.h
7297 do
7298 as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh`
7299 { echo "$as_me:$LINENO: checking for $ac_header" >&5
7300 echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6; }
7301 if { as_var=$as_ac_Header; eval "test \"\${$as_var+set}\" = set"; }; then
7302 echo $ECHO_N "(cached) $ECHO_C" >&6
7303 else
7304 cat >conftest.$ac_ext <<_ACEOF
7305 /* confdefs.h. */
7306 _ACEOF
7307 cat confdefs.h >>conftest.$ac_ext
7308 cat >>conftest.$ac_ext <<_ACEOF
7309 /* end confdefs.h. */
7310 $ac_includes_default
7311 #ifdef HAVE_LINUX_COMPILER_H
7312 # include <linux/compiler.h>
7313 #endif
7314
7315
7316 #include <$ac_header>
7317 _ACEOF
7318 rm -f conftest.$ac_objext
7319 if { (ac_try="$ac_compile"
7320 case "(($ac_try" in
7321 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7322 *) ac_try_echo=$ac_try;;
7323 esac
7324 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7325 (eval "$ac_compile") 2>conftest.er1
7326 ac_status=$?
7327 grep -v '^ *+' conftest.er1 >conftest.err
7328 rm -f conftest.er1
7329 cat conftest.err >&5
7330 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7331 (exit $ac_status); } &&
7332 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7333 { (case "(($ac_try" in
7334 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7335 *) ac_try_echo=$ac_try;;
7336 esac
7337 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7338 (eval "$ac_try") 2>&5
7339 ac_status=$?
7340 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7341 (exit $ac_status); }; } &&
7342 { ac_try='test -s conftest.$ac_objext'
7343 { (case "(($ac_try" in
7344 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7345 *) ac_try_echo=$ac_try;;
7346 esac
7347 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7348 (eval "$ac_try") 2>&5
7349 ac_status=$?
7350 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7351 (exit $ac_status); }; }; then
7352 eval "$as_ac_Header=yes"
7353 else
7354 echo "$as_me: failed program was:" >&5
7355 sed 's/^/| /' conftest.$ac_ext >&5
7356
7357 eval "$as_ac_Header=no"
7358 fi
7359
7360 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7361 fi
7362 ac_res=`eval echo '${'$as_ac_Header'}'`
7363 { echo "$as_me:$LINENO: result: $ac_res" >&5
7364 echo "${ECHO_T}$ac_res" >&6; }
7365 if test `eval echo '${'$as_ac_Header'}'` = yes; then
7366 cat >>confdefs.h <<_ACEOF
7367 #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1
7368 _ACEOF
7369
7370 fi
7371
7372 done
7373
7374
7375 { echo "$as_me:$LINENO: checking for int64_t" >&5
7376 echo $ECHO_N "checking for int64_t... $ECHO_C" >&6; }
7377 if test "${ac_cv_type_int64_t+set}" = set; then
7378 echo $ECHO_N "(cached) $ECHO_C" >&6
7379 else
7380 cat >conftest.$ac_ext <<_ACEOF
7381 /* confdefs.h. */
7382 _ACEOF
7383 cat confdefs.h >>conftest.$ac_ext
7384 cat >>conftest.$ac_ext <<_ACEOF
7385 /* end confdefs.h. */
7386 $ac_includes_default
7387 typedef int64_t ac__type_new_;
7388 int
7389 main ()
7390 {
7391 if ((ac__type_new_ *) 0)
7392 return 0;
7393 if (sizeof (ac__type_new_))
7394 return 0;
7395 ;
7396 return 0;
7397 }
7398 _ACEOF
7399 rm -f conftest.$ac_objext
7400 if { (ac_try="$ac_compile"
7401 case "(($ac_try" in
7402 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7403 *) ac_try_echo=$ac_try;;
7404 esac
7405 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7406 (eval "$ac_compile") 2>conftest.er1
7407 ac_status=$?
7408 grep -v '^ *+' conftest.er1 >conftest.err
7409 rm -f conftest.er1
7410 cat conftest.err >&5
7411 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7412 (exit $ac_status); } &&
7413 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7414 { (case "(($ac_try" in
7415 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7416 *) ac_try_echo=$ac_try;;
7417 esac
7418 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7419 (eval "$ac_try") 2>&5
7420 ac_status=$?
7421 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7422 (exit $ac_status); }; } &&
7423 { ac_try='test -s conftest.$ac_objext'
7424 { (case "(($ac_try" in
7425 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7426 *) ac_try_echo=$ac_try;;
7427 esac
7428 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7429 (eval "$ac_try") 2>&5
7430 ac_status=$?
7431 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7432 (exit $ac_status); }; }; then
7433 ac_cv_type_int64_t=yes
7434 else
7435 echo "$as_me: failed program was:" >&5
7436 sed 's/^/| /' conftest.$ac_ext >&5
7437
7438 ac_cv_type_int64_t=no
7439 fi
7440
7441 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7442 fi
7443 { echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5
7444 echo "${ECHO_T}$ac_cv_type_int64_t" >&6; }
7445 if test $ac_cv_type_int64_t = yes; then
7446
7447 cat >>confdefs.h <<_ACEOF
7448 #define HAVE_INT64_T 1
7449 _ACEOF
7450
7451
7452 fi
7453 { echo "$as_me:$LINENO: checking for uint64_t" >&5
7454 echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6; }
7455 if test "${ac_cv_type_uint64_t+set}" = set; then
7456 echo $ECHO_N "(cached) $ECHO_C" >&6
7457 else
7458 cat >conftest.$ac_ext <<_ACEOF
7459 /* confdefs.h. */
7460 _ACEOF
7461 cat confdefs.h >>conftest.$ac_ext
7462 cat >>conftest.$ac_ext <<_ACEOF
7463 /* end confdefs.h. */
7464 $ac_includes_default
7465 typedef uint64_t ac__type_new_;
7466 int
7467 main ()
7468 {
7469 if ((ac__type_new_ *) 0)
7470 return 0;
7471 if (sizeof (ac__type_new_))
7472 return 0;
7473 ;
7474 return 0;
7475 }
7476 _ACEOF
7477 rm -f conftest.$ac_objext
7478 if { (ac_try="$ac_compile"
7479 case "(($ac_try" in
7480 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7481 *) ac_try_echo=$ac_try;;
7482 esac
7483 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7484 (eval "$ac_compile") 2>conftest.er1
7485 ac_status=$?
7486 grep -v '^ *+' conftest.er1 >conftest.err
7487 rm -f conftest.er1
7488 cat conftest.err >&5
7489 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7490 (exit $ac_status); } &&
7491 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7492 { (case "(($ac_try" in
7493 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7494 *) ac_try_echo=$ac_try;;
7495 esac
7496 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7497 (eval "$ac_try") 2>&5
7498 ac_status=$?
7499 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7500 (exit $ac_status); }; } &&
7501 { ac_try='test -s conftest.$ac_objext'
7502 { (case "(($ac_try" in
7503 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7504 *) ac_try_echo=$ac_try;;
7505 esac
7506 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7507 (eval "$ac_try") 2>&5
7508 ac_status=$?
7509 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7510 (exit $ac_status); }; }; then
7511 ac_cv_type_uint64_t=yes
7512 else
7513 echo "$as_me: failed program was:" >&5
7514 sed 's/^/| /' conftest.$ac_ext >&5
7515
7516 ac_cv_type_uint64_t=no
7517 fi
7518
7519 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
7520 fi
7521 { echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5
7522 echo "${ECHO_T}$ac_cv_type_uint64_t" >&6; }
7523 if test $ac_cv_type_uint64_t = yes; then
7524
7525 cat >>confdefs.h <<_ACEOF
7526 #define HAVE_UINT64_T 1
7527 _ACEOF
7528
7529
7530 fi
7531
7532
7533
7534 for ac_func in getopt
7535 do
7536 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7537 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7538 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7539 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7540 echo $ECHO_N "(cached) $ECHO_C" >&6
7541 else
7542 cat >conftest.$ac_ext <<_ACEOF
7543 /* confdefs.h. */
7544 _ACEOF
7545 cat confdefs.h >>conftest.$ac_ext
7546 cat >>conftest.$ac_ext <<_ACEOF
7547 /* end confdefs.h. */
7548 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7549 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7550 #define $ac_func innocuous_$ac_func
7551
7552 /* System header to define __stub macros and hopefully few prototypes,
7553 which can conflict with char $ac_func (); below.
7554 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7555 <limits.h> exists even on freestanding compilers. */
7556
7557 #ifdef __STDC__
7558 # include <limits.h>
7559 #else
7560 # include <assert.h>
7561 #endif
7562
7563 #undef $ac_func
7564
7565 /* Override any GCC internal prototype to avoid an error.
7566 Use char because int might match the return type of a GCC
7567 builtin and then its argument prototype would still apply. */
7568 #ifdef __cplusplus
7569 extern "C"
7570 #endif
7571 char $ac_func ();
7572 /* The GNU C library defines this for functions which it implements
7573 to always fail with ENOSYS. Some functions are actually named
7574 something starting with __ and the normal name is an alias. */
7575 #if defined __stub_$ac_func || defined __stub___$ac_func
7576 choke me
7577 #endif
7578
7579 int
7580 main ()
7581 {
7582 return $ac_func ();
7583 ;
7584 return 0;
7585 }
7586 _ACEOF
7587 rm -f conftest.$ac_objext conftest$ac_exeext
7588 if { (ac_try="$ac_link"
7589 case "(($ac_try" in
7590 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7591 *) ac_try_echo=$ac_try;;
7592 esac
7593 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7594 (eval "$ac_link") 2>conftest.er1
7595 ac_status=$?
7596 grep -v '^ *+' conftest.er1 >conftest.err
7597 rm -f conftest.er1
7598 cat conftest.err >&5
7599 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7600 (exit $ac_status); } &&
7601 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7602 { (case "(($ac_try" in
7603 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7604 *) ac_try_echo=$ac_try;;
7605 esac
7606 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7607 (eval "$ac_try") 2>&5
7608 ac_status=$?
7609 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7610 (exit $ac_status); }; } &&
7611 { ac_try='test -s conftest$ac_exeext'
7612 { (case "(($ac_try" in
7613 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7614 *) ac_try_echo=$ac_try;;
7615 esac
7616 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7617 (eval "$ac_try") 2>&5
7618 ac_status=$?
7619 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7620 (exit $ac_status); }; }; then
7621 eval "$as_ac_var=yes"
7622 else
7623 echo "$as_me: failed program was:" >&5
7624 sed 's/^/| /' conftest.$ac_ext >&5
7625
7626 eval "$as_ac_var=no"
7627 fi
7628
7629 rm -f core conftest.err conftest.$ac_objext \
7630 conftest$ac_exeext conftest.$ac_ext
7631 fi
7632 ac_res=`eval echo '${'$as_ac_var'}'`
7633 { echo "$as_me:$LINENO: result: $ac_res" >&5
7634 echo "${ECHO_T}$ac_res" >&6; }
7635 if test `eval echo '${'$as_ac_var'}'` = yes; then
7636 cat >>confdefs.h <<_ACEOF
7637 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7638 _ACEOF
7639
7640 fi
7641 done
7642
7643
7644 for ac_func in getopt_long
7645 do
7646 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7647 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7648 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7649 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7650 echo $ECHO_N "(cached) $ECHO_C" >&6
7651 else
7652 cat >conftest.$ac_ext <<_ACEOF
7653 /* confdefs.h. */
7654 _ACEOF
7655 cat confdefs.h >>conftest.$ac_ext
7656 cat >>conftest.$ac_ext <<_ACEOF
7657 /* end confdefs.h. */
7658 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7659 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7660 #define $ac_func innocuous_$ac_func
7661
7662 /* System header to define __stub macros and hopefully few prototypes,
7663 which can conflict with char $ac_func (); below.
7664 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7665 <limits.h> exists even on freestanding compilers. */
7666
7667 #ifdef __STDC__
7668 # include <limits.h>
7669 #else
7670 # include <assert.h>
7671 #endif
7672
7673 #undef $ac_func
7674
7675 /* Override any GCC internal prototype to avoid an error.
7676 Use char because int might match the return type of a GCC
7677 builtin and then its argument prototype would still apply. */
7678 #ifdef __cplusplus
7679 extern "C"
7680 #endif
7681 char $ac_func ();
7682 /* The GNU C library defines this for functions which it implements
7683 to always fail with ENOSYS. Some functions are actually named
7684 something starting with __ and the normal name is an alias. */
7685 #if defined __stub_$ac_func || defined __stub___$ac_func
7686 choke me
7687 #endif
7688
7689 int
7690 main ()
7691 {
7692 return $ac_func ();
7693 ;
7694 return 0;
7695 }
7696 _ACEOF
7697 rm -f conftest.$ac_objext conftest$ac_exeext
7698 if { (ac_try="$ac_link"
7699 case "(($ac_try" in
7700 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7701 *) ac_try_echo=$ac_try;;
7702 esac
7703 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7704 (eval "$ac_link") 2>conftest.er1
7705 ac_status=$?
7706 grep -v '^ *+' conftest.er1 >conftest.err
7707 rm -f conftest.er1
7708 cat conftest.err >&5
7709 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7710 (exit $ac_status); } &&
7711 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7712 { (case "(($ac_try" in
7713 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7714 *) ac_try_echo=$ac_try;;
7715 esac
7716 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7717 (eval "$ac_try") 2>&5
7718 ac_status=$?
7719 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7720 (exit $ac_status); }; } &&
7721 { ac_try='test -s conftest$ac_exeext'
7722 { (case "(($ac_try" in
7723 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7724 *) ac_try_echo=$ac_try;;
7725 esac
7726 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7727 (eval "$ac_try") 2>&5
7728 ac_status=$?
7729 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7730 (exit $ac_status); }; }; then
7731 eval "$as_ac_var=yes"
7732 else
7733 echo "$as_me: failed program was:" >&5
7734 sed 's/^/| /' conftest.$ac_ext >&5
7735
7736 eval "$as_ac_var=no"
7737 fi
7738
7739 rm -f core conftest.err conftest.$ac_objext \
7740 conftest$ac_exeext conftest.$ac_ext
7741 fi
7742 ac_res=`eval echo '${'$as_ac_var'}'`
7743 { echo "$as_me:$LINENO: result: $ac_res" >&5
7744 echo "${ECHO_T}$ac_res" >&6; }
7745 if test `eval echo '${'$as_ac_var'}'` = yes; then
7746 cat >>confdefs.h <<_ACEOF
7747 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7748 _ACEOF
7749
7750 fi
7751 done
7752
7753
7754 for ac_func in getdomainname
7755 do
7756 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7757 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7758 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7759 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7760 echo $ECHO_N "(cached) $ECHO_C" >&6
7761 else
7762 cat >conftest.$ac_ext <<_ACEOF
7763 /* confdefs.h. */
7764 _ACEOF
7765 cat confdefs.h >>conftest.$ac_ext
7766 cat >>conftest.$ac_ext <<_ACEOF
7767 /* end confdefs.h. */
7768 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7769 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7770 #define $ac_func innocuous_$ac_func
7771
7772 /* System header to define __stub macros and hopefully few prototypes,
7773 which can conflict with char $ac_func (); below.
7774 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7775 <limits.h> exists even on freestanding compilers. */
7776
7777 #ifdef __STDC__
7778 # include <limits.h>
7779 #else
7780 # include <assert.h>
7781 #endif
7782
7783 #undef $ac_func
7784
7785 /* Override any GCC internal prototype to avoid an error.
7786 Use char because int might match the return type of a GCC
7787 builtin and then its argument prototype would still apply. */
7788 #ifdef __cplusplus
7789 extern "C"
7790 #endif
7791 char $ac_func ();
7792 /* The GNU C library defines this for functions which it implements
7793 to always fail with ENOSYS. Some functions are actually named
7794 something starting with __ and the normal name is an alias. */
7795 #if defined __stub_$ac_func || defined __stub___$ac_func
7796 choke me
7797 #endif
7798
7799 int
7800 main ()
7801 {
7802 return $ac_func ();
7803 ;
7804 return 0;
7805 }
7806 _ACEOF
7807 rm -f conftest.$ac_objext conftest$ac_exeext
7808 if { (ac_try="$ac_link"
7809 case "(($ac_try" in
7810 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7811 *) ac_try_echo=$ac_try;;
7812 esac
7813 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7814 (eval "$ac_link") 2>conftest.er1
7815 ac_status=$?
7816 grep -v '^ *+' conftest.er1 >conftest.err
7817 rm -f conftest.er1
7818 cat conftest.err >&5
7819 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7820 (exit $ac_status); } &&
7821 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7822 { (case "(($ac_try" in
7823 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7824 *) ac_try_echo=$ac_try;;
7825 esac
7826 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7827 (eval "$ac_try") 2>&5
7828 ac_status=$?
7829 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7830 (exit $ac_status); }; } &&
7831 { ac_try='test -s conftest$ac_exeext'
7832 { (case "(($ac_try" in
7833 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7834 *) ac_try_echo=$ac_try;;
7835 esac
7836 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7837 (eval "$ac_try") 2>&5
7838 ac_status=$?
7839 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7840 (exit $ac_status); }; }; then
7841 eval "$as_ac_var=yes"
7842 else
7843 echo "$as_me: failed program was:" >&5
7844 sed 's/^/| /' conftest.$ac_ext >&5
7845
7846 eval "$as_ac_var=no"
7847 fi
7848
7849 rm -f core conftest.err conftest.$ac_objext \
7850 conftest$ac_exeext conftest.$ac_ext
7851 fi
7852 ac_res=`eval echo '${'$as_ac_var'}'`
7853 { echo "$as_me:$LINENO: result: $ac_res" >&5
7854 echo "${ECHO_T}$ac_res" >&6; }
7855 if test `eval echo '${'$as_ac_var'}'` = yes; then
7856 cat >>confdefs.h <<_ACEOF
7857 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7858 _ACEOF
7859
7860 fi
7861 done
7862
7863
7864 for ac_func in gethostname
7865 do
7866 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7867 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7868 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7869 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7870 echo $ECHO_N "(cached) $ECHO_C" >&6
7871 else
7872 cat >conftest.$ac_ext <<_ACEOF
7873 /* confdefs.h. */
7874 _ACEOF
7875 cat confdefs.h >>conftest.$ac_ext
7876 cat >>conftest.$ac_ext <<_ACEOF
7877 /* end confdefs.h. */
7878 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7879 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7880 #define $ac_func innocuous_$ac_func
7881
7882 /* System header to define __stub macros and hopefully few prototypes,
7883 which can conflict with char $ac_func (); below.
7884 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7885 <limits.h> exists even on freestanding compilers. */
7886
7887 #ifdef __STDC__
7888 # include <limits.h>
7889 #else
7890 # include <assert.h>
7891 #endif
7892
7893 #undef $ac_func
7894
7895 /* Override any GCC internal prototype to avoid an error.
7896 Use char because int might match the return type of a GCC
7897 builtin and then its argument prototype would still apply. */
7898 #ifdef __cplusplus
7899 extern "C"
7900 #endif
7901 char $ac_func ();
7902 /* The GNU C library defines this for functions which it implements
7903 to always fail with ENOSYS. Some functions are actually named
7904 something starting with __ and the normal name is an alias. */
7905 #if defined __stub_$ac_func || defined __stub___$ac_func
7906 choke me
7907 #endif
7908
7909 int
7910 main ()
7911 {
7912 return $ac_func ();
7913 ;
7914 return 0;
7915 }
7916 _ACEOF
7917 rm -f conftest.$ac_objext conftest$ac_exeext
7918 if { (ac_try="$ac_link"
7919 case "(($ac_try" in
7920 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7921 *) ac_try_echo=$ac_try;;
7922 esac
7923 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7924 (eval "$ac_link") 2>conftest.er1
7925 ac_status=$?
7926 grep -v '^ *+' conftest.er1 >conftest.err
7927 rm -f conftest.er1
7928 cat conftest.err >&5
7929 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7930 (exit $ac_status); } &&
7931 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
7932 { (case "(($ac_try" in
7933 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7934 *) ac_try_echo=$ac_try;;
7935 esac
7936 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7937 (eval "$ac_try") 2>&5
7938 ac_status=$?
7939 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7940 (exit $ac_status); }; } &&
7941 { ac_try='test -s conftest$ac_exeext'
7942 { (case "(($ac_try" in
7943 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
7944 *) ac_try_echo=$ac_try;;
7945 esac
7946 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
7947 (eval "$ac_try") 2>&5
7948 ac_status=$?
7949 echo "$as_me:$LINENO: \$? = $ac_status" >&5
7950 (exit $ac_status); }; }; then
7951 eval "$as_ac_var=yes"
7952 else
7953 echo "$as_me: failed program was:" >&5
7954 sed 's/^/| /' conftest.$ac_ext >&5
7955
7956 eval "$as_ac_var=no"
7957 fi
7958
7959 rm -f core conftest.err conftest.$ac_objext \
7960 conftest$ac_exeext conftest.$ac_ext
7961 fi
7962 ac_res=`eval echo '${'$as_ac_var'}'`
7963 { echo "$as_me:$LINENO: result: $ac_res" >&5
7964 echo "${ECHO_T}$ac_res" >&6; }
7965 if test `eval echo '${'$as_ac_var'}'` = yes; then
7966 cat >>confdefs.h <<_ACEOF
7967 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
7968 _ACEOF
7969
7970 fi
7971 done
7972
7973
7974 for ac_func in gethostbyname
7975 do
7976 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
7977 { echo "$as_me:$LINENO: checking for $ac_func" >&5
7978 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
7979 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
7980 echo $ECHO_N "(cached) $ECHO_C" >&6
7981 else
7982 cat >conftest.$ac_ext <<_ACEOF
7983 /* confdefs.h. */
7984 _ACEOF
7985 cat confdefs.h >>conftest.$ac_ext
7986 cat >>conftest.$ac_ext <<_ACEOF
7987 /* end confdefs.h. */
7988 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
7989 For example, HP-UX 11i <limits.h> declares gettimeofday. */
7990 #define $ac_func innocuous_$ac_func
7991
7992 /* System header to define __stub macros and hopefully few prototypes,
7993 which can conflict with char $ac_func (); below.
7994 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
7995 <limits.h> exists even on freestanding compilers. */
7996
7997 #ifdef __STDC__
7998 # include <limits.h>
7999 #else
8000 # include <assert.h>
8001 #endif
8002
8003 #undef $ac_func
8004
8005 /* Override any GCC internal prototype to avoid an error.
8006 Use char because int might match the return type of a GCC
8007 builtin and then its argument prototype would still apply. */
8008 #ifdef __cplusplus
8009 extern "C"
8010 #endif
8011 char $ac_func ();
8012 /* The GNU C library defines this for functions which it implements
8013 to always fail with ENOSYS. Some functions are actually named
8014 something starting with __ and the normal name is an alias. */
8015 #if defined __stub_$ac_func || defined __stub___$ac_func
8016 choke me
8017 #endif
8018
8019 int
8020 main ()
8021 {
8022 return $ac_func ();
8023 ;
8024 return 0;
8025 }
8026 _ACEOF
8027 rm -f conftest.$ac_objext conftest$ac_exeext
8028 if { (ac_try="$ac_link"
8029 case "(($ac_try" in
8030 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8031 *) ac_try_echo=$ac_try;;
8032 esac
8033 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8034 (eval "$ac_link") 2>conftest.er1
8035 ac_status=$?
8036 grep -v '^ *+' conftest.er1 >conftest.err
8037 rm -f conftest.er1
8038 cat conftest.err >&5
8039 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8040 (exit $ac_status); } &&
8041 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
8042 { (case "(($ac_try" in
8043 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8044 *) ac_try_echo=$ac_try;;
8045 esac
8046 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8047 (eval "$ac_try") 2>&5
8048 ac_status=$?
8049 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8050 (exit $ac_status); }; } &&
8051 { ac_try='test -s conftest$ac_exeext'
8052 { (case "(($ac_try" in
8053 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8054 *) ac_try_echo=$ac_try;;
8055 esac
8056 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8057 (eval "$ac_try") 2>&5
8058 ac_status=$?
8059 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8060 (exit $ac_status); }; }; then
8061 eval "$as_ac_var=yes"
8062 else
8063 echo "$as_me: failed program was:" >&5
8064 sed 's/^/| /' conftest.$ac_ext >&5
8065
8066 eval "$as_ac_var=no"
8067 fi
8068
8069 rm -f core conftest.err conftest.$ac_objext \
8070 conftest$ac_exeext conftest.$ac_ext
8071 fi
8072 ac_res=`eval echo '${'$as_ac_var'}'`
8073 { echo "$as_me:$LINENO: result: $ac_res" >&5
8074 echo "${ECHO_T}$ac_res" >&6; }
8075 if test `eval echo '${'$as_ac_var'}'` = yes; then
8076 cat >>confdefs.h <<_ACEOF
8077 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8078 _ACEOF
8079
8080 fi
8081 done
8082
8083
8084 for ac_func in sigset
8085 do
8086 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8087 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8088 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8089 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8090 echo $ECHO_N "(cached) $ECHO_C" >&6
8091 else
8092 cat >conftest.$ac_ext <<_ACEOF
8093 /* confdefs.h. */
8094 _ACEOF
8095 cat confdefs.h >>conftest.$ac_ext
8096 cat >>conftest.$ac_ext <<_ACEOF
8097 /* end confdefs.h. */
8098 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8099 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8100 #define $ac_func innocuous_$ac_func
8101
8102 /* System header to define __stub macros and hopefully few prototypes,
8103 which can conflict with char $ac_func (); below.
8104 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8105 <limits.h> exists even on freestanding compilers. */
8106
8107 #ifdef __STDC__
8108 # include <limits.h>
8109 #else
8110 # include <assert.h>
8111 #endif
8112
8113 #undef $ac_func
8114
8115 /* Override any GCC internal prototype to avoid an error.
8116 Use char because int might match the return type of a GCC
8117 builtin and then its argument prototype would still apply. */
8118 #ifdef __cplusplus
8119 extern "C"
8120 #endif
8121 char $ac_func ();
8122 /* The GNU C library defines this for functions which it implements
8123 to always fail with ENOSYS. Some functions are actually named
8124 something starting with __ and the normal name is an alias. */
8125 #if defined __stub_$ac_func || defined __stub___$ac_func
8126 choke me
8127 #endif
8128
8129 int
8130 main ()
8131 {
8132 return $ac_func ();
8133 ;
8134 return 0;
8135 }
8136 _ACEOF
8137 rm -f conftest.$ac_objext conftest$ac_exeext
8138 if { (ac_try="$ac_link"
8139 case "(($ac_try" in
8140 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8141 *) ac_try_echo=$ac_try;;
8142 esac
8143 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8144 (eval "$ac_link") 2>conftest.er1
8145 ac_status=$?
8146 grep -v '^ *+' conftest.er1 >conftest.err
8147 rm -f conftest.er1
8148 cat conftest.err >&5
8149 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8150 (exit $ac_status); } &&
8151 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
8152 { (case "(($ac_try" in
8153 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8154 *) ac_try_echo=$ac_try;;
8155 esac
8156 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8157 (eval "$ac_try") 2>&5
8158 ac_status=$?
8159 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8160 (exit $ac_status); }; } &&
8161 { ac_try='test -s conftest$ac_exeext'
8162 { (case "(($ac_try" in
8163 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8164 *) ac_try_echo=$ac_try;;
8165 esac
8166 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8167 (eval "$ac_try") 2>&5
8168 ac_status=$?
8169 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8170 (exit $ac_status); }; }; then
8171 eval "$as_ac_var=yes"
8172 else
8173 echo "$as_me: failed program was:" >&5
8174 sed 's/^/| /' conftest.$ac_ext >&5
8175
8176 eval "$as_ac_var=no"
8177 fi
8178
8179 rm -f core conftest.err conftest.$ac_objext \
8180 conftest$ac_exeext conftest.$ac_ext
8181 fi
8182 ac_res=`eval echo '${'$as_ac_var'}'`
8183 { echo "$as_me:$LINENO: result: $ac_res" >&5
8184 echo "${ECHO_T}$ac_res" >&6; }
8185 if test `eval echo '${'$as_ac_var'}'` = yes; then
8186 cat >>confdefs.h <<_ACEOF
8187 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8188 _ACEOF
8189
8190 fi
8191 done
8192
8193
8194 for ac_func in strtoull
8195 do
8196 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8197 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8198 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8199 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8200 echo $ECHO_N "(cached) $ECHO_C" >&6
8201 else
8202 cat >conftest.$ac_ext <<_ACEOF
8203 /* confdefs.h. */
8204 _ACEOF
8205 cat confdefs.h >>conftest.$ac_ext
8206 cat >>conftest.$ac_ext <<_ACEOF
8207 /* end confdefs.h. */
8208 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8209 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8210 #define $ac_func innocuous_$ac_func
8211
8212 /* System header to define __stub macros and hopefully few prototypes,
8213 which can conflict with char $ac_func (); below.
8214 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8215 <limits.h> exists even on freestanding compilers. */
8216
8217 #ifdef __STDC__
8218 # include <limits.h>
8219 #else
8220 # include <assert.h>
8221 #endif
8222
8223 #undef $ac_func
8224
8225 /* Override any GCC internal prototype to avoid an error.
8226 Use char because int might match the return type of a GCC
8227 builtin and then its argument prototype would still apply. */
8228 #ifdef __cplusplus
8229 extern "C"
8230 #endif
8231 char $ac_func ();
8232 /* The GNU C library defines this for functions which it implements
8233 to always fail with ENOSYS. Some functions are actually named
8234 something starting with __ and the normal name is an alias. */
8235 #if defined __stub_$ac_func || defined __stub___$ac_func
8236 choke me
8237 #endif
8238
8239 int
8240 main ()
8241 {
8242 return $ac_func ();
8243 ;
8244 return 0;
8245 }
8246 _ACEOF
8247 rm -f conftest.$ac_objext conftest$ac_exeext
8248 if { (ac_try="$ac_link"
8249 case "(($ac_try" in
8250 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8251 *) ac_try_echo=$ac_try;;
8252 esac
8253 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8254 (eval "$ac_link") 2>conftest.er1
8255 ac_status=$?
8256 grep -v '^ *+' conftest.er1 >conftest.err
8257 rm -f conftest.er1
8258 cat conftest.err >&5
8259 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8260 (exit $ac_status); } &&
8261 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
8262 { (case "(($ac_try" in
8263 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8264 *) ac_try_echo=$ac_try;;
8265 esac
8266 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8267 (eval "$ac_try") 2>&5
8268 ac_status=$?
8269 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8270 (exit $ac_status); }; } &&
8271 { ac_try='test -s conftest$ac_exeext'
8272 { (case "(($ac_try" in
8273 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8274 *) ac_try_echo=$ac_try;;
8275 esac
8276 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8277 (eval "$ac_try") 2>&5
8278 ac_status=$?
8279 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8280 (exit $ac_status); }; }; then
8281 eval "$as_ac_var=yes"
8282 else
8283 echo "$as_me: failed program was:" >&5
8284 sed 's/^/| /' conftest.$ac_ext >&5
8285
8286 eval "$as_ac_var=no"
8287 fi
8288
8289 rm -f core conftest.err conftest.$ac_objext \
8290 conftest$ac_exeext conftest.$ac_ext
8291 fi
8292 ac_res=`eval echo '${'$as_ac_var'}'`
8293 { echo "$as_me:$LINENO: result: $ac_res" >&5
8294 echo "${ECHO_T}$ac_res" >&6; }
8295 if test `eval echo '${'$as_ac_var'}'` = yes; then
8296 cat >>confdefs.h <<_ACEOF
8297 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8298 _ACEOF
8299
8300 fi
8301 done
8302
8303
8304 for ac_func in uname
8305 do
8306 as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh`
8307 { echo "$as_me:$LINENO: checking for $ac_func" >&5
8308 echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6; }
8309 if { as_var=$as_ac_var; eval "test \"\${$as_var+set}\" = set"; }; then
8310 echo $ECHO_N "(cached) $ECHO_C" >&6
8311 else
8312 cat >conftest.$ac_ext <<_ACEOF
8313 /* confdefs.h. */
8314 _ACEOF
8315 cat confdefs.h >>conftest.$ac_ext
8316 cat >>conftest.$ac_ext <<_ACEOF
8317 /* end confdefs.h. */
8318 /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func.
8319 For example, HP-UX 11i <limits.h> declares gettimeofday. */
8320 #define $ac_func innocuous_$ac_func
8321
8322 /* System header to define __stub macros and hopefully few prototypes,
8323 which can conflict with char $ac_func (); below.
8324 Prefer <limits.h> to <assert.h> if __STDC__ is defined, since
8325 <limits.h> exists even on freestanding compilers. */
8326
8327 #ifdef __STDC__
8328 # include <limits.h>
8329 #else
8330 # include <assert.h>
8331 #endif
8332
8333 #undef $ac_func
8334
8335 /* Override any GCC internal prototype to avoid an error.
8336 Use char because int might match the return type of a GCC
8337 builtin and then its argument prototype would still apply. */
8338 #ifdef __cplusplus
8339 extern "C"
8340 #endif
8341 char $ac_func ();
8342 /* The GNU C library defines this for functions which it implements
8343 to always fail with ENOSYS. Some functions are actually named
8344 something starting with __ and the normal name is an alias. */
8345 #if defined __stub_$ac_func || defined __stub___$ac_func
8346 choke me
8347 #endif
8348
8349 int
8350 main ()
8351 {
8352 return $ac_func ();
8353 ;
8354 return 0;
8355 }
8356 _ACEOF
8357 rm -f conftest.$ac_objext conftest$ac_exeext
8358 if { (ac_try="$ac_link"
8359 case "(($ac_try" in
8360 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8361 *) ac_try_echo=$ac_try;;
8362 esac
8363 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8364 (eval "$ac_link") 2>conftest.er1
8365 ac_status=$?
8366 grep -v '^ *+' conftest.er1 >conftest.err
8367 rm -f conftest.er1
8368 cat conftest.err >&5
8369 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8370 (exit $ac_status); } &&
8371 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
8372 { (case "(($ac_try" in
8373 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8374 *) ac_try_echo=$ac_try;;
8375 esac
8376 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8377 (eval "$ac_try") 2>&5
8378 ac_status=$?
8379 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8380 (exit $ac_status); }; } &&
8381 { ac_try='test -s conftest$ac_exeext'
8382 { (case "(($ac_try" in
8383 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8384 *) ac_try_echo=$ac_try;;
8385 esac
8386 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8387 (eval "$ac_try") 2>&5
8388 ac_status=$?
8389 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8390 (exit $ac_status); }; }; then
8391 eval "$as_ac_var=yes"
8392 else
8393 echo "$as_me: failed program was:" >&5
8394 sed 's/^/| /' conftest.$ac_ext >&5
8395
8396 eval "$as_ac_var=no"
8397 fi
8398
8399 rm -f core conftest.err conftest.$ac_objext \
8400 conftest$ac_exeext conftest.$ac_ext
8401 fi
8402 ac_res=`eval echo '${'$as_ac_var'}'`
8403 { echo "$as_me:$LINENO: result: $ac_res" >&5
8404 echo "${ECHO_T}$ac_res" >&6; }
8405 if test `eval echo '${'$as_ac_var'}'` = yes; then
8406 cat >>confdefs.h <<_ACEOF
8407 #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1
8408 _ACEOF
8409
8410 fi
8411 done
8412
8413
8414 # Check whether snprintf appends null char and returns expected length on overflow
8415
8416
8417 { echo "$as_me:$LINENO: checking for working snprintf" >&5
8418 echo $ECHO_N "checking for working snprintf... $ECHO_C" >&6; }
8419 if test "$cross_compiling" = yes; then
8420 libc_have_working_snprintf=no
8421 else
8422 cat >conftest.$ac_ext <<_ACEOF
8423 /* confdefs.h. */
8424 _ACEOF
8425 cat confdefs.h >>conftest.$ac_ext
8426 cat >>conftest.$ac_ext <<_ACEOF
8427 /* end confdefs.h. */
8428 #include <stdio.h>
8429 int
8430 main ()
8431 {
8432 char buf[]="ABCDEFGHI";
8433 int i=snprintf(buf,8,"12345678"); return !(!buf[7] && i==8);
8434 ;
8435 return 0;
8436 }
8437 _ACEOF
8438 rm -f conftest$ac_exeext
8439 if { (ac_try="$ac_link"
8440 case "(($ac_try" in
8441 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8442 *) ac_try_echo=$ac_try;;
8443 esac
8444 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8445 (eval "$ac_link") 2>&5
8446 ac_status=$?
8447 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8448 (exit $ac_status); } && { ac_try='./conftest$ac_exeext'
8449 { (case "(($ac_try" in
8450 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8451 *) ac_try_echo=$ac_try;;
8452 esac
8453 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8454 (eval "$ac_try") 2>&5
8455 ac_status=$?
8456 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8457 (exit $ac_status); }; }; then
8458 libc_have_working_snprintf=yes
8459 else
8460 echo "$as_me: program exited with status $ac_status" >&5
8461 echo "$as_me: failed program was:" >&5
8462 sed 's/^/| /' conftest.$ac_ext >&5
8463
8464 ( exit $ac_status )
8465 libc_have_working_snprintf=no
8466 fi
8467 rm -f core *.core core.conftest.* gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext
8468 fi
8469
8470
8471
8472 if test "$libc_have_working_snprintf" = "yes"; then
8473 cat >>confdefs.h <<\_ACEOF
8474 #define HAVE_WORKING_SNPRINTF 1
8475 _ACEOF
8476
8477 fi
8478 { echo "$as_me:$LINENO: result: $libc_have_working_snprintf" >&5
8479 echo "${ECHO_T}$libc_have_working_snprintf" >&6; }
8480
8481 # check for __attribute__((packed))
8482
8483
8484 { echo "$as_me:$LINENO: checking whether C++ compiler supports __attribute__((packed))" >&5
8485 echo $ECHO_N "checking whether C++ compiler supports __attribute__((packed))... $ECHO_C" >&6; }
8486 cat >conftest.$ac_ext <<_ACEOF
8487 /* confdefs.h. */
8488 _ACEOF
8489 cat confdefs.h >>conftest.$ac_ext
8490 cat >>conftest.$ac_ext <<_ACEOF
8491 /* end confdefs.h. */
8492
8493 int
8494 main ()
8495 {
8496 struct a { int b; } __attribute__((packed));
8497 ;
8498 return 0;
8499 }
8500 _ACEOF
8501 rm -f conftest.$ac_objext
8502 if { (ac_try="$ac_compile"
8503 case "(($ac_try" in
8504 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8505 *) ac_try_echo=$ac_try;;
8506 esac
8507 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8508 (eval "$ac_compile") 2>conftest.er1
8509 ac_status=$?
8510 grep -v '^ *+' conftest.er1 >conftest.err
8511 rm -f conftest.er1
8512 cat conftest.err >&5
8513 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8514 (exit $ac_status); } &&
8515 { ac_try='test -z "$ac_cxx_werror_flag" || test ! -s conftest.err'
8516 { (case "(($ac_try" in
8517 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8518 *) ac_try_echo=$ac_try;;
8519 esac
8520 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8521 (eval "$ac_try") 2>&5
8522 ac_status=$?
8523 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8524 (exit $ac_status); }; } &&
8525 { ac_try='test -s conftest.$ac_objext'
8526 { (case "(($ac_try" in
8527 *\"* | *\`* | *\\*) ac_try_echo=\$ac_try;;
8528 *) ac_try_echo=$ac_try;;
8529 esac
8530 eval "echo \"\$as_me:$LINENO: $ac_try_echo\"") >&5
8531 (eval "$ac_try") 2>&5
8532 ac_status=$?
8533 echo "$as_me:$LINENO: \$? = $ac_status" >&5
8534 (exit $ac_status); }; }; then
8535 gcc_have_attr_packed=yes
8536 else
8537 echo "$as_me: failed program was:" >&5
8538 sed 's/^/| /' conftest.$ac_ext >&5
8539
8540 gcc_have_attr_packed=no
8541 fi
8542
8543 rm -f core conftest.err conftest.$ac_objext conftest.$ac_ext
8544
8545 if test "$gcc_have_attr_packed" = "yes"; then
8546 cat >>confdefs.h <<\_ACEOF
8547 #define HAVE_ATTR_PACKED 1
8548 _ACEOF
8549
8550 fi
8551 { echo "$as_me:$LINENO: result: $gcc_have_attr_packed" >&5
8552 echo "${ECHO_T}$gcc_have_attr_packed" >&6; }
8553
8554
8555
8556
8557
8558 exampledir='${docdir}/examplescripts'
8559
8560
8561
8562 # Check whether --with-initscriptdir was given.
8563 if test "${with_initscriptdir+set}" = set; then
8564 withval=$with_initscriptdir; initddir="$withval"
8565 else
8566 initddir='${sysconfdir}/rc.d/init.d'
8567 fi
8568
8569
8570
8571
8572 # Check whether --with-docdir was given.
8573 if test "${with_docdir+set}" = set; then
8574 withval=$with_docdir; docdir="$withval"
8575 else
8576 docdir='${prefix}/share/doc/${PACKAGE}-${VERSION}'
8577 fi
8578
8579
8580
8581 # Check whether --enable-sample was given.
8582 if test "${enable_sample+set}" = set; then
8583 enableval=$enable_sample; smartd_suffix='.sample'
8584 else
8585 smartd_suffix=''
8586 fi
8587
8588
8589
8590
8591 if test $smartd_suffix; then
8592 SMARTD_SUFFIX_TRUE=
8593 SMARTD_SUFFIX_FALSE='#'
8594 else
8595 SMARTD_SUFFIX_TRUE='#'
8596 SMARTD_SUFFIX_FALSE=
8597 fi
8598
8599
8600 if test "$prefix" = "NONE"; then
8601 if test "$mandir" = '${prefix}/man'; then
8602 mandir='${prefix}/share/man'
8603
8604 fi
8605 fi
8606
8607 releaseversion='${PACKAGE}-${VERSION}'
8608
8609
8610
8611
8612 case "${host}" in
8613 *-*-linux*)
8614 os_deps='os_linux.o cciss.o'
8615
8616 os_libs=''
8617 ;;
8618 *-*-freebsd*|*-*-dragonfly*)
8619 os_deps='os_freebsd.o cciss.o'
8620
8621 os_libs='-lcam'
8622 ;;
8623 sparc-*-solaris*)
8624
8625 cat >>confdefs.h <<_ACEOF
8626 #define DEFAULT_MAILER "mailx"
8627 _ACEOF
8628
8629
8630 cat >>confdefs.h <<_ACEOF
8631 #define NEED_SOLARIS_ATA_CODE "os_solaris_ata.s"
8632 _ACEOF
8633
8634 os_deps='os_solaris.o os_solaris_ata.o'
8635
8636 os_libs=''
8637 ;;
8638 *-pc-solaris*)
8639
8640 cat >>confdefs.h <<_ACEOF
8641 #define DEFAULT_MAILER "mailx"
8642 _ACEOF
8643
8644 os_deps='os_solaris.o'
8645
8646 os_libs=''
8647 ;;
8648 *-*-netbsd*)
8649 os_deps='os_netbsd.o'
8650
8651 os_libs='-lutil'
8652 ;;
8653 *-*-openbsd*)
8654 os_deps='os_openbsd.o'
8655
8656 os_libs='-lutil'
8657 ;;
8658 *-*-cygwin*)
8659 os_deps='os_win32.o'
8660
8661 os_libs=''
8662 ;;
8663 *-*-mingw*)
8664 os_deps='os_win32.o'
8665
8666 os_libs=''
8667 ;;
8668 *-*-darwin*)
8669 os_deps='os_darwin.o'
8670
8671 os_libs='-framework CoreFoundation -framework IOKit'
8672 ;;
8673 *-*-nto-qnx*)
8674 os_deps='os_qnxnto.o'
8675
8676 os_libs=''
8677 ;;
8678
8679 *)
8680 os_deps='os_generic.o'
8681
8682 os_libs=''
8683 ;;
8684 esac
8685
8686 # Define symbols for optional functions in OS specific module
8687 case "${os_deps}" in
8688 os_win32*)
8689
8690 cat >>confdefs.h <<\_ACEOF
8691 #define HAVE_ATA_IDENTIFY_IS_CACHED 1
8692 _ACEOF
8693 ;;
8694 esac
8695 case "${os_deps}" in
8696 os_win32*)
8697
8698 cat >>confdefs.h <<\_ACEOF
8699 #define HAVE_GET_OS_VERSION_STR 1
8700 _ACEOF
8701 ;;
8702 esac
8703
8704
8705
8706 if echo $host_os | grep '^darwin' > /dev/null; then
8707 OS_DARWIN_TRUE=
8708 OS_DARWIN_FALSE='#'
8709 else
8710 OS_DARWIN_TRUE='#'
8711 OS_DARWIN_FALSE=
8712 fi
8713
8714
8715
8716 if echo $host_os | grep '^solaris' > /dev/null; then
8717 OS_SOLARIS_TRUE=
8718 OS_SOLARIS_FALSE='#'
8719 else
8720 OS_SOLARIS_TRUE='#'
8721 OS_SOLARIS_FALSE=
8722 fi
8723
8724
8725
8726 if echo $host_os | grep '^mingw' > /dev/null; then
8727 OS_WIN32_MINGW_TRUE=
8728 OS_WIN32_MINGW_FALSE='#'
8729 else
8730 OS_WIN32_MINGW_TRUE='#'
8731 OS_WIN32_MINGW_FALSE=
8732 fi
8733
8734
8735 if test "x$GCC" = "xyes"; then
8736 if test -z "`echo "$CXXFLAGS" | grep "\-Wall" 2> /dev/null`" ; then
8737 CXXFLAGS="$CXXFLAGS -Wall"
8738 fi
8739 # In the next line, do NOT delete the 2 spaces inside double quotes.
8740 if test -z "`echo "$CXXFLAGS " | grep "\-W " 2> /dev/null`" ; then
8741 CXXFLAGS="$CXXFLAGS -W"
8742 fi
8743 case "${host}" in
8744 *-*-mingw*)
8745 # MinGW uses MSVCRT.DLL which uses printf format "%I64d" and not "%lld" for int64_t
8746 CXXFLAGS="$CXXFLAGS -Wno-format";;
8747 esac
8748 else
8749 case "${host}" in
8750 *-*-solaris*)
8751 if test -z "`echo "$CXXFLAGS" | grep "\-xmemalign" 2> /dev/null`" ; then
8752 CXXFLAGS="-xmemalign=1i $CXXFLAGS"
8753 fi
8754 if test -z "`echo "$CXXFLAGS" | grep "\-xO" 2> /dev/null`" ; then
8755 CXXFLAGS="-xO2 $CXXFLAGS"
8756 fi
8757 if test -z "`echo "$CXXFLAGS" | grep "\-erroff" 2> /dev/null`" ; then
8758 CXXFLAGS="-erroff=%none,wbadinitl,wbadasgl,badargtypel2w $CXXFLAGS"
8759 fi
8760 esac
8761 fi
8762
8763
8764 cat >>confdefs.h <<_ACEOF
8765 #define SMARTMONTOOLS_BUILD_HOST "${host}"
8766 _ACEOF
8767
8768
8769
8770
8771 ac_config_files="$ac_config_files Makefile examplescripts/Makefile"
8772
8773 cat >confcache <<\_ACEOF
8774 # This file is a shell script that caches the results of configure
8775 # tests run on this system so they can be shared between configure
8776 # scripts and configure runs, see configure's option --config-cache.
8777 # It is not useful on other systems. If it contains results you don't
8778 # want to keep, you may remove or edit it.
8779 #
8780 # config.status only pays attention to the cache file if you give it
8781 # the --recheck option to rerun configure.
8782 #
8783 # `ac_cv_env_foo' variables (set or unset) will be overridden when
8784 # loading this file, other *unset* `ac_cv_foo' will be assigned the
8785 # following values.
8786
8787 _ACEOF
8788
8789 # The following way of writing the cache mishandles newlines in values,
8790 # but we know of no workaround that is simple, portable, and efficient.
8791 # So, we kill variables containing newlines.
8792 # Ultrix sh set writes to stderr and can't be redirected directly,
8793 # and sets the high bit in the cache file unless we assign to the vars.
8794 (
8795 for ac_var in `(set) 2>&1 | sed -n 's/^\([a-zA-Z_][a-zA-Z0-9_]*\)=.*/\1/p'`; do
8796 eval ac_val=\$$ac_var
8797 case $ac_val in #(
8798 *${as_nl}*)
8799 case $ac_var in #(
8800 *_cv_*) { echo "$as_me:$LINENO: WARNING: Cache variable $ac_var contains a newline." >&5
8801 echo "$as_me: WARNING: Cache variable $ac_var contains a newline." >&2;} ;;
8802 esac
8803 case $ac_var in #(
8804 _ | IFS | as_nl) ;; #(
8805 *) $as_unset $ac_var ;;
8806 esac ;;
8807 esac
8808 done
8809
8810 (set) 2>&1 |
8811 case $as_nl`(ac_space=' '; set) 2>&1` in #(
8812 *${as_nl}ac_space=\ *)
8813 # `set' does not quote correctly, so add quotes (double-quote
8814 # substitution turns \\\\ into \\, and sed turns \\ into \).
8815 sed -n \
8816 "s/'/'\\\\''/g;
8817 s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p"
8818 ;; #(
8819 *)
8820 # `set' quotes correctly as required by POSIX, so do not add quotes.
8821 sed -n "/^[_$as_cr_alnum]*_cv_[_$as_cr_alnum]*=/p"
8822 ;;
8823 esac |
8824 sort
8825 ) |
8826 sed '
8827 /^ac_cv_env_/b end
8828 t clear
8829 :clear
8830 s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/
8831 t end
8832 s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/
8833 :end' >>confcache
8834 if diff "$cache_file" confcache >/dev/null 2>&1; then :; else
8835 if test -w "$cache_file"; then
8836 test "x$cache_file" != "x/dev/null" &&
8837 { echo "$as_me:$LINENO: updating cache $cache_file" >&5
8838 echo "$as_me: updating cache $cache_file" >&6;}
8839 cat confcache >$cache_file
8840 else
8841 { echo "$as_me:$LINENO: not updating unwritable cache $cache_file" >&5
8842 echo "$as_me: not updating unwritable cache $cache_file" >&6;}
8843 fi
8844 fi
8845 rm -f confcache
8846
8847 test "x$prefix" = xNONE && prefix=$ac_default_prefix
8848 # Let make expand exec_prefix.
8849 test "x$exec_prefix" = xNONE && exec_prefix='${prefix}'
8850
8851 DEFS=-DHAVE_CONFIG_H
8852
8853 ac_libobjs=
8854 ac_ltlibobjs=
8855 for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue
8856 # 1. Remove the extension, and $U if already installed.
8857 ac_script='s/\$U\././;s/\.o$//;s/\.obj$//'
8858 ac_i=`echo "$ac_i" | sed "$ac_script"`
8859 # 2. Prepend LIBOBJDIR. When used with automake>=1.10 LIBOBJDIR
8860 # will be set to the directory where LIBOBJS objects are built.
8861 ac_libobjs="$ac_libobjs \${LIBOBJDIR}$ac_i\$U.$ac_objext"
8862 ac_ltlibobjs="$ac_ltlibobjs \${LIBOBJDIR}$ac_i"'$U.lo'
8863 done
8864 LIBOBJS=$ac_libobjs
8865
8866 LTLIBOBJS=$ac_ltlibobjs
8867
8868
8869 if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then
8870 { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined.
8871 Usually this means the macro was only invoked conditionally." >&5
8872 echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined.
8873 Usually this means the macro was only invoked conditionally." >&2;}
8874 { (exit 1); exit 1; }; }
8875 fi
8876 if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then
8877 { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined.
8878 Usually this means the macro was only invoked conditionally." >&5
8879 echo "$as_me: error: conditional \"AMDEP\" was never defined.
8880 Usually this means the macro was only invoked conditionally." >&2;}
8881 { (exit 1); exit 1; }; }
8882 fi
8883 if test -z "${am__fastdepCXX_TRUE}" && test -z "${am__fastdepCXX_FALSE}"; then
8884 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCXX\" was never defined.
8885 Usually this means the macro was only invoked conditionally." >&5
8886 echo "$as_me: error: conditional \"am__fastdepCXX\" was never defined.
8887 Usually this means the macro was only invoked conditionally." >&2;}
8888 { (exit 1); exit 1; }; }
8889 fi
8890 if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then
8891 { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined.
8892 Usually this means the macro was only invoked conditionally." >&5
8893 echo "$as_me: error: conditional \"am__fastdepCC\" was never defined.
8894 Usually this means the macro was only invoked conditionally." >&2;}
8895 { (exit 1); exit 1; }; }
8896 fi
8897 if test -z "${SMARTD_SUFFIX_TRUE}" && test -z "${SMARTD_SUFFIX_FALSE}"; then
8898 { { echo "$as_me:$LINENO: error: conditional \"SMARTD_SUFFIX\" was never defined.
8899 Usually this means the macro was only invoked conditionally." >&5
8900 echo "$as_me: error: conditional \"SMARTD_SUFFIX\" was never defined.
8901 Usually this means the macro was only invoked conditionally." >&2;}
8902 { (exit 1); exit 1; }; }
8903 fi
8904 if test -z "${OS_DARWIN_TRUE}" && test -z "${OS_DARWIN_FALSE}"; then
8905 { { echo "$as_me:$LINENO: error: conditional \"OS_DARWIN\" was never defined.
8906 Usually this means the macro was only invoked conditionally." >&5
8907 echo "$as_me: error: conditional \"OS_DARWIN\" was never defined.
8908 Usually this means the macro was only invoked conditionally." >&2;}
8909 { (exit 1); exit 1; }; }
8910 fi
8911 if test -z "${OS_SOLARIS_TRUE}" && test -z "${OS_SOLARIS_FALSE}"; then
8912 { { echo "$as_me:$LINENO: error: conditional \"OS_SOLARIS\" was never defined.
8913 Usually this means the macro was only invoked conditionally." >&5
8914 echo "$as_me: error: conditional \"OS_SOLARIS\" was never defined.
8915 Usually this means the macro was only invoked conditionally." >&2;}
8916 { (exit 1); exit 1; }; }
8917 fi
8918 if test -z "${OS_WIN32_MINGW_TRUE}" && test -z "${OS_WIN32_MINGW_FALSE}"; then
8919 { { echo "$as_me:$LINENO: error: conditional \"OS_WIN32_MINGW\" was never defined.
8920 Usually this means the macro was only invoked conditionally." >&5
8921 echo "$as_me: error: conditional \"OS_WIN32_MINGW\" was never defined.
8922 Usually this means the macro was only invoked conditionally." >&2;}
8923 { (exit 1); exit 1; }; }
8924 fi
8925
8926 : ${CONFIG_STATUS=./config.status}
8927 ac_clean_files_save=$ac_clean_files
8928 ac_clean_files="$ac_clean_files $CONFIG_STATUS"
8929 { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5
8930 echo "$as_me: creating $CONFIG_STATUS" >&6;}
8931 cat >$CONFIG_STATUS <<_ACEOF
8932 #! $SHELL
8933 # Generated by $as_me.
8934 # Run this file to recreate the current configuration.
8935 # Compiler output produced by configure, useful for debugging
8936 # configure, is in config.log if it exists.
8937
8938 debug=false
8939 ac_cs_recheck=false
8940 ac_cs_silent=false
8941 SHELL=\${CONFIG_SHELL-$SHELL}
8942 _ACEOF
8943
8944 cat >>$CONFIG_STATUS <<\_ACEOF
8945 ## --------------------- ##
8946 ## M4sh Initialization. ##
8947 ## --------------------- ##
8948
8949 # Be Bourne compatible
8950 if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then
8951 emulate sh
8952 NULLCMD=:
8953 # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which
8954 # is contrary to our usage. Disable this feature.
8955 alias -g '${1+"$@"}'='"$@"'
8956 setopt NO_GLOB_SUBST
8957 else
8958 case `(set -o) 2>/dev/null` in *posix*) set -o posix;; esac
8959 fi
8960 BIN_SH=xpg4; export BIN_SH # for Tru64
8961 DUALCASE=1; export DUALCASE # for MKS sh
8962
8963
8964 # PATH needs CR
8965 # Avoid depending upon Character Ranges.
8966 as_cr_letters='abcdefghijklmnopqrstuvwxyz'
8967 as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ'
8968 as_cr_Letters=$as_cr_letters$as_cr_LETTERS
8969 as_cr_digits='0123456789'
8970 as_cr_alnum=$as_cr_Letters$as_cr_digits
8971
8972 # The user is always right.
8973 if test "${PATH_SEPARATOR+set}" != set; then
8974 echo "#! /bin/sh" >conf$$.sh
8975 echo "exit 0" >>conf$$.sh
8976 chmod +x conf$$.sh
8977 if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then
8978 PATH_SEPARATOR=';'
8979 else
8980 PATH_SEPARATOR=:
8981 fi
8982 rm -f conf$$.sh
8983 fi
8984
8985 # Support unset when possible.
8986 if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then
8987 as_unset=unset
8988 else
8989 as_unset=false
8990 fi
8991
8992
8993 # IFS
8994 # We need space, tab and new line, in precisely that order. Quoting is
8995 # there to prevent editors from complaining about space-tab.
8996 # (If _AS_PATH_WALK were called with IFS unset, it would disable word
8997 # splitting by setting IFS to empty value.)
8998 as_nl='
8999 '
9000 IFS=" "" $as_nl"
9001
9002 # Find who we are. Look in the path if we contain no directory separator.
9003 case $0 in
9004 *[\\/]* ) as_myself=$0 ;;
9005 *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR
9006 for as_dir in $PATH
9007 do
9008 IFS=$as_save_IFS
9009 test -z "$as_dir" && as_dir=.
9010 test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break
9011 done
9012 IFS=$as_save_IFS
9013
9014 ;;
9015 esac
9016 # We did not find ourselves, most probably we were run as `sh COMMAND'
9017 # in which case we are not to be found in the path.
9018 if test "x$as_myself" = x; then
9019 as_myself=$0
9020 fi
9021 if test ! -f "$as_myself"; then
9022 echo "$as_myself: error: cannot find myself; rerun with an absolute file name" >&2
9023 { (exit 1); exit 1; }
9024 fi
9025
9026 # Work around bugs in pre-3.0 UWIN ksh.
9027 for as_var in ENV MAIL MAILPATH
9028 do ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
9029 done
9030 PS1='$ '
9031 PS2='> '
9032 PS4='+ '
9033
9034 # NLS nuisances.
9035 for as_var in \
9036 LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \
9037 LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \
9038 LC_TELEPHONE LC_TIME
9039 do
9040 if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then
9041 eval $as_var=C; export $as_var
9042 else
9043 ($as_unset $as_var) >/dev/null 2>&1 && $as_unset $as_var
9044 fi
9045 done
9046
9047 # Required to use basename.
9048 if expr a : '\(a\)' >/dev/null 2>&1 &&
9049 test "X`expr 00001 : '.*\(...\)'`" = X001; then
9050 as_expr=expr
9051 else
9052 as_expr=false
9053 fi
9054
9055 if (basename -- /) >/dev/null 2>&1 && test "X`basename -- / 2>&1`" = "X/"; then
9056 as_basename=basename
9057 else
9058 as_basename=false
9059 fi
9060
9061
9062 # Name of the executable.
9063 as_me=`$as_basename -- "$0" ||
9064 $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \
9065 X"$0" : 'X\(//\)$' \| \
9066 X"$0" : 'X\(/\)' \| . 2>/dev/null ||
9067 echo X/"$0" |
9068 sed '/^.*\/\([^/][^/]*\)\/*$/{
9069 s//\1/
9070 q
9071 }
9072 /^X\/\(\/\/\)$/{
9073 s//\1/
9074 q
9075 }
9076 /^X\/\(\/\).*/{
9077 s//\1/
9078 q
9079 }
9080 s/.*/./; q'`
9081
9082 # CDPATH.
9083 $as_unset CDPATH
9084
9085
9086
9087 as_lineno_1=$LINENO
9088 as_lineno_2=$LINENO
9089 test "x$as_lineno_1" != "x$as_lineno_2" &&
9090 test "x`expr $as_lineno_1 + 1`" = "x$as_lineno_2" || {
9091
9092 # Create $as_me.lineno as a copy of $as_myself, but with $LINENO
9093 # uniformly replaced by the line number. The first 'sed' inserts a
9094 # line-number line after each line using $LINENO; the second 'sed'
9095 # does the real work. The second script uses 'N' to pair each
9096 # line-number line with the line containing $LINENO, and appends
9097 # trailing '-' during substitution so that $LINENO is not a special
9098 # case at line end.
9099 # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the
9100 # scripts with optimization help from Paolo Bonzini. Blame Lee
9101 # E. McMahon (1931-1989) for sed's syntax. :-)
9102 sed -n '
9103 p
9104 /[$]LINENO/=
9105 ' <$as_myself |
9106 sed '
9107 s/[$]LINENO.*/&-/
9108 t lineno
9109 b
9110 :lineno
9111 N
9112 :loop
9113 s/[$]LINENO\([^'$as_cr_alnum'_].*\n\)\(.*\)/\2\1\2/
9114 t loop
9115 s/-\n.*//
9116 ' >$as_me.lineno &&
9117 chmod +x "$as_me.lineno" ||
9118 { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2
9119 { (exit 1); exit 1; }; }
9120
9121 # Don't try to exec as it changes $[0], causing all sort of problems
9122 # (the dirname of $[0] is not the place where we might find the
9123 # original and so on. Autoconf is especially sensitive to this).
9124 . "./$as_me.lineno"
9125 # Exit status is that of the last command.
9126 exit
9127 }
9128
9129
9130 if (as_dir=`dirname -- /` && test "X$as_dir" = X/) >/dev/null 2>&1; then
9131 as_dirname=dirname
9132 else
9133 as_dirname=false
9134 fi
9135
9136 ECHO_C= ECHO_N= ECHO_T=
9137 case `echo -n x` in
9138 -n*)
9139 case `echo 'x\c'` in
9140 *c*) ECHO_T=' ';; # ECHO_T is single tab character.
9141 *) ECHO_C='\c';;
9142 esac;;
9143 *)
9144 ECHO_N='-n';;
9145 esac
9146
9147 if expr a : '\(a\)' >/dev/null 2>&1 &&
9148 test "X`expr 00001 : '.*\(...\)'`" = X001; then
9149 as_expr=expr
9150 else
9151 as_expr=false
9152 fi
9153
9154 rm -f conf$$ conf$$.exe conf$$.file
9155 if test -d conf$$.dir; then
9156 rm -f conf$$.dir/conf$$.file
9157 else
9158 rm -f conf$$.dir
9159 mkdir conf$$.dir
9160 fi
9161 echo >conf$$.file
9162 if ln -s conf$$.file conf$$ 2>/dev/null; then
9163 as_ln_s='ln -s'
9164 # ... but there are two gotchas:
9165 # 1) On MSYS, both `ln -s file dir' and `ln file dir' fail.
9166 # 2) DJGPP < 2.04 has no symlinks; `ln -s' creates a wrapper executable.
9167 # In both cases, we have to default to `cp -p'.
9168 ln -s conf$$.file conf$$.dir 2>/dev/null && test ! -f conf$$.exe ||
9169 as_ln_s='cp -p'
9170 elif ln conf$$.file conf$$ 2>/dev/null; then
9171 as_ln_s=ln
9172 else
9173 as_ln_s='cp -p'
9174 fi
9175 rm -f conf$$ conf$$.exe conf$$.dir/conf$$.file conf$$.file
9176 rmdir conf$$.dir 2>/dev/null
9177
9178 if mkdir -p . 2>/dev/null; then
9179 as_mkdir_p=:
9180 else
9181 test -d ./-p && rmdir ./-p
9182 as_mkdir_p=false
9183 fi
9184
9185 # Find out whether ``test -x'' works. Don't use a zero-byte file, as
9186 # systems may use methods other than mode bits to determine executability.
9187 cat >conf$$.file <<_ASEOF
9188 #! /bin/sh
9189 exit 0
9190 _ASEOF
9191 chmod +x conf$$.file
9192 if test -x conf$$.file >/dev/null 2>&1; then
9193 as_executable_p="test -x"
9194 else
9195 as_executable_p=:
9196 fi
9197 rm -f conf$$.file
9198
9199 # Sed expression to map a string onto a valid CPP name.
9200 as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'"
9201
9202 # Sed expression to map a string onto a valid variable name.
9203 as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'"
9204
9205
9206 exec 6>&1
9207
9208 # Save the log message, to keep $[0] and so on meaningful, and to
9209 # report actual input values of CONFIG_FILES etc. instead of their
9210 # values after options handling.
9211 ac_log="
9212 This file was extended by smartmontools $as_me 5.38, which was
9213 generated by GNU Autoconf 2.60. Invocation command line was
9214
9215 CONFIG_FILES = $CONFIG_FILES
9216 CONFIG_HEADERS = $CONFIG_HEADERS
9217 CONFIG_LINKS = $CONFIG_LINKS
9218 CONFIG_COMMANDS = $CONFIG_COMMANDS
9219 $ $0 $@
9220
9221 on `(hostname || uname -n) 2>/dev/null | sed 1q`
9222 "
9223
9224 _ACEOF
9225
9226 cat >>$CONFIG_STATUS <<_ACEOF
9227 # Files that config.status was made for.
9228 config_files="$ac_config_files"
9229 config_headers="$ac_config_headers"
9230 config_commands="$ac_config_commands"
9231
9232 _ACEOF
9233
9234 cat >>$CONFIG_STATUS <<\_ACEOF
9235 ac_cs_usage="\
9236 \`$as_me' instantiates files from templates according to the
9237 current configuration.
9238
9239 Usage: $0 [OPTIONS] [FILE]...
9240
9241 -h, --help print this help, then exit
9242 -V, --version print version number, then exit
9243 -q, --quiet do not print progress messages
9244 -d, --debug don't remove temporary files
9245 --recheck update $as_me by reconfiguring in the same conditions
9246 --file=FILE[:TEMPLATE]
9247 instantiate the configuration file FILE
9248 --header=FILE[:TEMPLATE]
9249 instantiate the configuration header FILE
9250
9251 Configuration files:
9252 $config_files
9253
9254 Configuration headers:
9255 $config_headers
9256
9257 Configuration commands:
9258 $config_commands
9259
9260 Report bugs to <bug-autoconf@gnu.org>."
9261
9262 _ACEOF
9263 cat >>$CONFIG_STATUS <<_ACEOF
9264 ac_cs_version="\\
9265 smartmontools config.status 5.38
9266 configured by $0, generated by GNU Autoconf 2.60,
9267 with options \\"`echo "$ac_configure_args" | sed 's/^ //; s/[\\""\`\$]/\\\\&/g'`\\"
9268
9269 Copyright (C) 2006 Free Software Foundation, Inc.
9270 This config.status script is free software; the Free Software Foundation
9271 gives unlimited permission to copy, distribute and modify it."
9272
9273 ac_pwd='$ac_pwd'
9274 srcdir='$srcdir'
9275 INSTALL='$INSTALL'
9276 _ACEOF
9277
9278 cat >>$CONFIG_STATUS <<\_ACEOF
9279 # If no file are specified by the user, then we need to provide default
9280 # value. By we need to know if files were specified by the user.
9281 ac_need_defaults=:
9282 while test $# != 0
9283 do
9284 case $1 in
9285 --*=*)
9286 ac_option=`expr "X$1" : 'X\([^=]*\)='`
9287 ac_optarg=`expr "X$1" : 'X[^=]*=\(.*\)'`
9288 ac_shift=:
9289 ;;
9290 *)
9291 ac_option=$1
9292 ac_optarg=$2
9293 ac_shift=shift
9294 ;;
9295 esac
9296
9297 case $ac_option in
9298 # Handling of the options.
9299 -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r)
9300 ac_cs_recheck=: ;;
9301 --version | --versio | --versi | --vers | --ver | --ve | --v | -V )
9302 echo "$ac_cs_version"; exit ;;
9303 --debug | --debu | --deb | --de | --d | -d )
9304 debug=: ;;
9305 --file | --fil | --fi | --f )
9306 $ac_shift
9307 CONFIG_FILES="$CONFIG_FILES $ac_optarg"
9308 ac_need_defaults=false;;
9309 --header | --heade | --head | --hea )
9310 $ac_shift
9311 CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg"
9312 ac_need_defaults=false;;
9313 --he | --h)
9314 # Conflict between --help and --header
9315 { echo "$as_me: error: ambiguous option: $1
9316 Try \`$0 --help' for more information." >&2
9317 { (exit 1); exit 1; }; };;
9318 --help | --hel | -h )
9319 echo "$ac_cs_usage"; exit ;;
9320 -q | -quiet | --quiet | --quie | --qui | --qu | --q \
9321 | -silent | --silent | --silen | --sile | --sil | --si | --s)
9322 ac_cs_silent=: ;;
9323
9324 # This is an error.
9325 -*) { echo "$as_me: error: unrecognized option: $1
9326 Try \`$0 --help' for more information." >&2
9327 { (exit 1); exit 1; }; } ;;
9328
9329 *) ac_config_targets="$ac_config_targets $1"
9330 ac_need_defaults=false ;;
9331
9332 esac
9333 shift
9334 done
9335
9336 ac_configure_extra_args=
9337
9338 if $ac_cs_silent; then
9339 exec 6>/dev/null
9340 ac_configure_extra_args="$ac_configure_extra_args --silent"
9341 fi
9342
9343 _ACEOF
9344 cat >>$CONFIG_STATUS <<_ACEOF
9345 if \$ac_cs_recheck; then
9346 echo "running CONFIG_SHELL=$SHELL $SHELL $0 "$ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6
9347 CONFIG_SHELL=$SHELL
9348 export CONFIG_SHELL
9349 exec $SHELL "$0"$ac_configure_args \$ac_configure_extra_args --no-create --no-recursion
9350 fi
9351
9352 _ACEOF
9353 cat >>$CONFIG_STATUS <<\_ACEOF
9354 exec 5>>config.log
9355 {
9356 echo
9357 sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX
9358 ## Running $as_me. ##
9359 _ASBOX
9360 echo "$ac_log"
9361 } >&5
9362
9363 _ACEOF
9364 cat >>$CONFIG_STATUS <<_ACEOF
9365 #
9366 # INIT-COMMANDS
9367 #
9368 AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir"
9369
9370 _ACEOF
9371
9372 cat >>$CONFIG_STATUS <<\_ACEOF
9373
9374 # Handling of arguments.
9375 for ac_config_target in $ac_config_targets
9376 do
9377 case $ac_config_target in
9378 "config.h") CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;;
9379 "depfiles") CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;;
9380 "Makefile") CONFIG_FILES="$CONFIG_FILES Makefile" ;;
9381 "examplescripts/Makefile") CONFIG_FILES="$CONFIG_FILES examplescripts/Makefile" ;;
9382
9383 *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5
9384 echo "$as_me: error: invalid argument: $ac_config_target" >&2;}
9385 { (exit 1); exit 1; }; };;
9386 esac
9387 done
9388
9389
9390 # If the user did not use the arguments to specify the items to instantiate,
9391 # then the envvar interface is used. Set only those that are not.
9392 # We use the long form for the default assignment because of an extremely
9393 # bizarre bug on SunOS 4.1.3.
9394 if $ac_need_defaults; then
9395 test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files
9396 test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers
9397 test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands
9398 fi
9399
9400 # Have a temporary directory for convenience. Make it in the build tree
9401 # simply because there is no reason against having it here, and in addition,
9402 # creating and moving files from /tmp can sometimes cause problems.
9403 # Hook for its removal unless debugging.
9404 # Note that there is a small window in which the directory will not be cleaned:
9405 # after its creation but before its name has been assigned to `$tmp'.
9406 $debug ||
9407 {
9408 tmp=
9409 trap 'exit_status=$?
9410 { test -z "$tmp" || test ! -d "$tmp" || rm -fr "$tmp"; } && exit $exit_status
9411 ' 0
9412 trap '{ (exit 1); exit 1; }' 1 2 13 15
9413 }
9414 # Create a (secure) tmp directory for tmp files.
9415
9416 {
9417 tmp=`(umask 077 && mktemp -d "./confXXXXXX") 2>/dev/null` &&
9418 test -n "$tmp" && test -d "$tmp"
9419 } ||
9420 {
9421 tmp=./conf$$-$RANDOM
9422 (umask 077 && mkdir "$tmp")
9423 } ||
9424 {
9425 echo "$me: cannot create a temporary directory in ." >&2
9426 { (exit 1); exit 1; }
9427 }
9428
9429 #
9430 # Set up the sed scripts for CONFIG_FILES section.
9431 #
9432
9433 # No need to generate the scripts if there are no CONFIG_FILES.
9434 # This happens for instance when ./config.status config.h
9435 if test -n "$CONFIG_FILES"; then
9436
9437 _ACEOF
9438
9439
9440
9441 ac_delim='%!_!# '
9442 for ac_last_try in false false false false false :; do
9443 cat >conf$$subs.sed <<_ACEOF
9444 SHELL!$SHELL$ac_delim
9445 PATH_SEPARATOR!$PATH_SEPARATOR$ac_delim
9446 PACKAGE_NAME!$PACKAGE_NAME$ac_delim
9447 PACKAGE_TARNAME!$PACKAGE_TARNAME$ac_delim
9448 PACKAGE_VERSION!$PACKAGE_VERSION$ac_delim
9449 PACKAGE_STRING!$PACKAGE_STRING$ac_delim
9450 PACKAGE_BUGREPORT!$PACKAGE_BUGREPORT$ac_delim
9451 exec_prefix!$exec_prefix$ac_delim
9452 prefix!$prefix$ac_delim
9453 program_transform_name!$program_transform_name$ac_delim
9454 bindir!$bindir$ac_delim
9455 sbindir!$sbindir$ac_delim
9456 libexecdir!$libexecdir$ac_delim
9457 datarootdir!$datarootdir$ac_delim
9458 datadir!$datadir$ac_delim
9459 sysconfdir!$sysconfdir$ac_delim
9460 sharedstatedir!$sharedstatedir$ac_delim
9461 localstatedir!$localstatedir$ac_delim
9462 includedir!$includedir$ac_delim
9463 oldincludedir!$oldincludedir$ac_delim
9464 docdir!$docdir$ac_delim
9465 infodir!$infodir$ac_delim
9466 htmldir!$htmldir$ac_delim
9467 dvidir!$dvidir$ac_delim
9468 pdfdir!$pdfdir$ac_delim
9469 psdir!$psdir$ac_delim
9470 libdir!$libdir$ac_delim
9471 localedir!$localedir$ac_delim
9472 mandir!$mandir$ac_delim
9473 DEFS!$DEFS$ac_delim
9474 ECHO_C!$ECHO_C$ac_delim
9475 ECHO_N!$ECHO_N$ac_delim
9476 ECHO_T!$ECHO_T$ac_delim
9477 LIBS!$LIBS$ac_delim
9478 build_alias!$build_alias$ac_delim
9479 host_alias!$host_alias$ac_delim
9480 target_alias!$target_alias$ac_delim
9481 INSTALL_PROGRAM!$INSTALL_PROGRAM$ac_delim
9482 INSTALL_SCRIPT!$INSTALL_SCRIPT$ac_delim
9483 INSTALL_DATA!$INSTALL_DATA$ac_delim
9484 CYGPATH_W!$CYGPATH_W$ac_delim
9485 PACKAGE!$PACKAGE$ac_delim
9486 VERSION!$VERSION$ac_delim
9487 ACLOCAL!$ACLOCAL$ac_delim
9488 AUTOCONF!$AUTOCONF$ac_delim
9489 AUTOMAKE!$AUTOMAKE$ac_delim
9490 AUTOHEADER!$AUTOHEADER$ac_delim
9491 MAKEINFO!$MAKEINFO$ac_delim
9492 install_sh!$install_sh$ac_delim
9493 STRIP!$STRIP$ac_delim
9494 INSTALL_STRIP_PROGRAM!$INSTALL_STRIP_PROGRAM$ac_delim
9495 mkdir_p!$mkdir_p$ac_delim
9496 AWK!$AWK$ac_delim
9497 SET_MAKE!$SET_MAKE$ac_delim
9498 am__leading_dot!$am__leading_dot$ac_delim
9499 AMTAR!$AMTAR$ac_delim
9500 am__tar!$am__tar$ac_delim
9501 am__untar!$am__untar$ac_delim
9502 MAINTAINER_MODE_TRUE!$MAINTAINER_MODE_TRUE$ac_delim
9503 MAINTAINER_MODE_FALSE!$MAINTAINER_MODE_FALSE$ac_delim
9504 MAINT!$MAINT$ac_delim
9505 CXX!$CXX$ac_delim
9506 CXXFLAGS!$CXXFLAGS$ac_delim
9507 LDFLAGS!$LDFLAGS$ac_delim
9508 CPPFLAGS!$CPPFLAGS$ac_delim
9509 ac_ct_CXX!$ac_ct_CXX$ac_delim
9510 EXEEXT!$EXEEXT$ac_delim
9511 OBJEXT!$OBJEXT$ac_delim
9512 DEPDIR!$DEPDIR$ac_delim
9513 am__include!$am__include$ac_delim
9514 am__quote!$am__quote$ac_delim
9515 AMDEP_TRUE!$AMDEP_TRUE$ac_delim
9516 AMDEP_FALSE!$AMDEP_FALSE$ac_delim
9517 AMDEPBACKSLASH!$AMDEPBACKSLASH$ac_delim
9518 CXXDEPMODE!$CXXDEPMODE$ac_delim
9519 am__fastdepCXX_TRUE!$am__fastdepCXX_TRUE$ac_delim
9520 am__fastdepCXX_FALSE!$am__fastdepCXX_FALSE$ac_delim
9521 CC!$CC$ac_delim
9522 CFLAGS!$CFLAGS$ac_delim
9523 ac_ct_CC!$ac_ct_CC$ac_delim
9524 CCDEPMODE!$CCDEPMODE$ac_delim
9525 am__fastdepCC_TRUE!$am__fastdepCC_TRUE$ac_delim
9526 am__fastdepCC_FALSE!$am__fastdepCC_FALSE$ac_delim
9527 CCAS!$CCAS$ac_delim
9528 CCASFLAGS!$CCASFLAGS$ac_delim
9529 build!$build$ac_delim
9530 build_cpu!$build_cpu$ac_delim
9531 build_vendor!$build_vendor$ac_delim
9532 build_os!$build_os$ac_delim
9533 host!$host$ac_delim
9534 host_cpu!$host_cpu$ac_delim
9535 host_vendor!$host_vendor$ac_delim
9536 host_os!$host_os$ac_delim
9537 CXXCPP!$CXXCPP$ac_delim
9538 GREP!$GREP$ac_delim
9539 EGREP!$EGREP$ac_delim
9540 libc_have_working_snprintf!$libc_have_working_snprintf$ac_delim
9541 _ACEOF
9542
9543 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 97; then
9544 break
9545 elif $ac_last_try; then
9546 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
9547 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
9548 { (exit 1); exit 1; }; }
9549 else
9550 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9551 fi
9552 done
9553
9554 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
9555 if test -n "$ac_eof"; then
9556 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
9557 ac_eof=`expr $ac_eof + 1`
9558 fi
9559
9560 cat >>$CONFIG_STATUS <<_ACEOF
9561 cat >"\$tmp/subs-1.sed" <<\CEOF$ac_eof
9562 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9563 _ACEOF
9564 sed '
9565 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
9566 s/^/s,@/; s/!/@,|#_!!_#|/
9567 :n
9568 t n
9569 s/'"$ac_delim"'$/,g/; t
9570 s/$/\\/; p
9571 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
9572 ' >>$CONFIG_STATUS <conf$$subs.sed
9573 rm -f conf$$subs.sed
9574 cat >>$CONFIG_STATUS <<_ACEOF
9575 CEOF$ac_eof
9576 _ACEOF
9577
9578
9579 ac_delim='%!_!# '
9580 for ac_last_try in false false false false false :; do
9581 cat >conf$$subs.sed <<_ACEOF
9582 gcc_have_attr_packed!$gcc_have_attr_packed$ac_delim
9583 ASFLAGS!$ASFLAGS$ac_delim
9584 exampledir!$exampledir$ac_delim
9585 initddir!$initddir$ac_delim
9586 smartd_suffix!$smartd_suffix$ac_delim
9587 SMARTD_SUFFIX_TRUE!$SMARTD_SUFFIX_TRUE$ac_delim
9588 SMARTD_SUFFIX_FALSE!$SMARTD_SUFFIX_FALSE$ac_delim
9589 releaseversion!$releaseversion$ac_delim
9590 smartmontools_release_date!$smartmontools_release_date$ac_delim
9591 smartmontools_release_time!$smartmontools_release_time$ac_delim
9592 os_deps!$os_deps$ac_delim
9593 os_libs!$os_libs$ac_delim
9594 OS_DARWIN_TRUE!$OS_DARWIN_TRUE$ac_delim
9595 OS_DARWIN_FALSE!$OS_DARWIN_FALSE$ac_delim
9596 OS_SOLARIS_TRUE!$OS_SOLARIS_TRUE$ac_delim
9597 OS_SOLARIS_FALSE!$OS_SOLARIS_FALSE$ac_delim
9598 OS_WIN32_MINGW_TRUE!$OS_WIN32_MINGW_TRUE$ac_delim
9599 OS_WIN32_MINGW_FALSE!$OS_WIN32_MINGW_FALSE$ac_delim
9600 LIBOBJS!$LIBOBJS$ac_delim
9601 LTLIBOBJS!$LTLIBOBJS$ac_delim
9602 _ACEOF
9603
9604 if test `sed -n "s/.*$ac_delim\$/X/p" conf$$subs.sed | grep -c X` = 20; then
9605 break
9606 elif $ac_last_try; then
9607 { { echo "$as_me:$LINENO: error: could not make $CONFIG_STATUS" >&5
9608 echo "$as_me: error: could not make $CONFIG_STATUS" >&2;}
9609 { (exit 1); exit 1; }; }
9610 else
9611 ac_delim="$ac_delim!$ac_delim _$ac_delim!! "
9612 fi
9613 done
9614
9615 ac_eof=`sed -n '/^CEOF[0-9]*$/s/CEOF/0/p' conf$$subs.sed`
9616 if test -n "$ac_eof"; then
9617 ac_eof=`echo "$ac_eof" | sort -nru | sed 1q`
9618 ac_eof=`expr $ac_eof + 1`
9619 fi
9620
9621 cat >>$CONFIG_STATUS <<_ACEOF
9622 cat >"\$tmp/subs-2.sed" <<\CEOF$ac_eof
9623 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b end
9624 _ACEOF
9625 sed '
9626 s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g
9627 s/^/s,@/; s/!/@,|#_!!_#|/
9628 :n
9629 t n
9630 s/'"$ac_delim"'$/,g/; t
9631 s/$/\\/; p
9632 N; s/^.*\n//; s/[,\\&]/\\&/g; s/@/@|#_!!_#|/g; b n
9633 ' >>$CONFIG_STATUS <conf$$subs.sed
9634 rm -f conf$$subs.sed
9635 cat >>$CONFIG_STATUS <<_ACEOF
9636 :end
9637 s/|#_!!_#|//g
9638 CEOF$ac_eof
9639 _ACEOF
9640
9641
9642 # VPATH may cause trouble with some makes, so we remove $(srcdir),
9643 # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and
9644 # trailing colons and then remove the whole line if VPATH becomes empty
9645 # (actually we leave an empty line to preserve line numbers).
9646 if test "x$srcdir" = x.; then
9647 ac_vpsub='/^[ ]*VPATH[ ]*=/{
9648 s/:*\$(srcdir):*/:/
9649 s/:*\${srcdir}:*/:/
9650 s/:*@srcdir@:*/:/
9651 s/^\([^=]*=[ ]*\):*/\1/
9652 s/:*$//
9653 s/^[^=]*=[ ]*$//
9654 }'
9655 fi
9656
9657 cat >>$CONFIG_STATUS <<\_ACEOF
9658 fi # test -n "$CONFIG_FILES"
9659
9660
9661 for ac_tag in :F $CONFIG_FILES :H $CONFIG_HEADERS :C $CONFIG_COMMANDS
9662 do
9663 case $ac_tag in
9664 :[FHLC]) ac_mode=$ac_tag; continue;;
9665 esac
9666 case $ac_mode$ac_tag in
9667 :[FHL]*:*);;
9668 :L* | :C*:*) { { echo "$as_me:$LINENO: error: Invalid tag $ac_tag." >&5
9669 echo "$as_me: error: Invalid tag $ac_tag." >&2;}
9670 { (exit 1); exit 1; }; };;
9671 :[FH]-) ac_tag=-:-;;
9672 :[FH]*) ac_tag=$ac_tag:$ac_tag.in;;
9673 esac
9674 ac_save_IFS=$IFS
9675 IFS=:
9676 set x $ac_tag
9677 IFS=$ac_save_IFS
9678 shift
9679 ac_file=$1
9680 shift
9681
9682 case $ac_mode in
9683 :L) ac_source=$1;;
9684 :[FH])
9685 ac_file_inputs=
9686 for ac_f
9687 do
9688 case $ac_f in
9689 -) ac_f="$tmp/stdin";;
9690 *) # Look for the file first in the build tree, then in the source tree
9691 # (if the path is not absolute). The absolute path cannot be DOS-style,
9692 # because $ac_f cannot contain `:'.
9693 test -f "$ac_f" ||
9694 case $ac_f in
9695 [\\/$]*) false;;
9696 *) test -f "$srcdir/$ac_f" && ac_f="$srcdir/$ac_f";;
9697 esac ||
9698 { { echo "$as_me:$LINENO: error: cannot find input file: $ac_f" >&5
9699 echo "$as_me: error: cannot find input file: $ac_f" >&2;}
9700 { (exit 1); exit 1; }; };;
9701 esac
9702 ac_file_inputs="$ac_file_inputs $ac_f"
9703 done
9704
9705 # Let's still pretend it is `configure' which instantiates (i.e., don't
9706 # use $as_me), people would be surprised to read:
9707 # /* config.h. Generated by config.status. */
9708 configure_input="Generated from "`IFS=:
9709 echo $* | sed 's|^[^:]*/||;s|:[^:]*/|, |g'`" by configure."
9710 if test x"$ac_file" != x-; then
9711 configure_input="$ac_file. $configure_input"
9712 { echo "$as_me:$LINENO: creating $ac_file" >&5
9713 echo "$as_me: creating $ac_file" >&6;}
9714 fi
9715
9716 case $ac_tag in
9717 *:-:* | *:-) cat >"$tmp/stdin";;
9718 esac
9719 ;;
9720 esac
9721
9722 ac_dir=`$as_dirname -- "$ac_file" ||
9723 $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9724 X"$ac_file" : 'X\(//\)[^/]' \| \
9725 X"$ac_file" : 'X\(//\)$' \| \
9726 X"$ac_file" : 'X\(/\)' \| . 2>/dev/null ||
9727 echo X"$ac_file" |
9728 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9729 s//\1/
9730 q
9731 }
9732 /^X\(\/\/\)[^/].*/{
9733 s//\1/
9734 q
9735 }
9736 /^X\(\/\/\)$/{
9737 s//\1/
9738 q
9739 }
9740 /^X\(\/\).*/{
9741 s//\1/
9742 q
9743 }
9744 s/.*/./; q'`
9745 { as_dir="$ac_dir"
9746 case $as_dir in #(
9747 -*) as_dir=./$as_dir;;
9748 esac
9749 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
9750 as_dirs=
9751 while :; do
9752 case $as_dir in #(
9753 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
9754 *) as_qdir=$as_dir;;
9755 esac
9756 as_dirs="'$as_qdir' $as_dirs"
9757 as_dir=`$as_dirname -- "$as_dir" ||
9758 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
9759 X"$as_dir" : 'X\(//\)[^/]' \| \
9760 X"$as_dir" : 'X\(//\)$' \| \
9761 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
9762 echo X"$as_dir" |
9763 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
9764 s//\1/
9765 q
9766 }
9767 /^X\(\/\/\)[^/].*/{
9768 s//\1/
9769 q
9770 }
9771 /^X\(\/\/\)$/{
9772 s//\1/
9773 q
9774 }
9775 /^X\(\/\).*/{
9776 s//\1/
9777 q
9778 }
9779 s/.*/./; q'`
9780 test -d "$as_dir" && break
9781 done
9782 test -z "$as_dirs" || eval "mkdir $as_dirs"
9783 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
9784 echo "$as_me: error: cannot create directory $as_dir" >&2;}
9785 { (exit 1); exit 1; }; }; }
9786 ac_builddir=.
9787
9788 case "$ac_dir" in
9789 .) ac_dir_suffix= ac_top_builddir_sub=. ac_top_build_prefix= ;;
9790 *)
9791 ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'`
9792 # A ".." for each directory in $ac_dir_suffix.
9793 ac_top_builddir_sub=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,/..,g;s,/,,'`
9794 case $ac_top_builddir_sub in
9795 "") ac_top_builddir_sub=. ac_top_build_prefix= ;;
9796 *) ac_top_build_prefix=$ac_top_builddir_sub/ ;;
9797 esac ;;
9798 esac
9799 ac_abs_top_builddir=$ac_pwd
9800 ac_abs_builddir=$ac_pwd$ac_dir_suffix
9801 # for backward compatibility:
9802 ac_top_builddir=$ac_top_build_prefix
9803
9804 case $srcdir in
9805 .) # We are building in place.
9806 ac_srcdir=.
9807 ac_top_srcdir=$ac_top_builddir_sub
9808 ac_abs_top_srcdir=$ac_pwd ;;
9809 [\\/]* | ?:[\\/]* ) # Absolute name.
9810 ac_srcdir=$srcdir$ac_dir_suffix;
9811 ac_top_srcdir=$srcdir
9812 ac_abs_top_srcdir=$srcdir ;;
9813 *) # Relative name.
9814 ac_srcdir=$ac_top_build_prefix$srcdir$ac_dir_suffix
9815 ac_top_srcdir=$ac_top_build_prefix$srcdir
9816 ac_abs_top_srcdir=$ac_pwd/$srcdir ;;
9817 esac
9818 ac_abs_srcdir=$ac_abs_top_srcdir$ac_dir_suffix
9819
9820
9821 case $ac_mode in
9822 :F)
9823 #
9824 # CONFIG_FILE
9825 #
9826
9827 case $INSTALL in
9828 [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;;
9829 *) ac_INSTALL=$ac_top_build_prefix$INSTALL ;;
9830 esac
9831 _ACEOF
9832
9833 cat >>$CONFIG_STATUS <<\_ACEOF
9834 # If the template does not know about datarootdir, expand it.
9835 # FIXME: This hack should be removed a few years after 2.60.
9836 ac_datarootdir_hack=; ac_datarootdir_seen=
9837
9838 case `sed -n '/datarootdir/ {
9839 p
9840 q
9841 }
9842 /@datadir@/p
9843 /@docdir@/p
9844 /@infodir@/p
9845 /@localedir@/p
9846 /@mandir@/p
9847 ' $ac_file_inputs` in
9848 *datarootdir*) ac_datarootdir_seen=yes;;
9849 *@datadir@*|*@docdir@*|*@infodir@*|*@localedir@*|*@mandir@*)
9850 { echo "$as_me:$LINENO: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&5
9851 echo "$as_me: WARNING: $ac_file_inputs seems to ignore the --datarootdir setting" >&2;}
9852 _ACEOF
9853 cat >>$CONFIG_STATUS <<_ACEOF
9854 ac_datarootdir_hack='
9855 s&@datadir@&$datadir&g
9856 s&@docdir@&$docdir&g
9857 s&@infodir@&$infodir&g
9858 s&@localedir@&$localedir&g
9859 s&@mandir@&$mandir&g
9860 s&\\\${datarootdir}&$datarootdir&g' ;;
9861 esac
9862 _ACEOF
9863
9864 # Neutralize VPATH when `$srcdir' = `.'.
9865 # Shell code in configure.ac might set extrasub.
9866 # FIXME: do we really want to maintain this feature?
9867 cat >>$CONFIG_STATUS <<_ACEOF
9868 sed "$ac_vpsub
9869 $extrasub
9870 _ACEOF
9871 cat >>$CONFIG_STATUS <<\_ACEOF
9872 :t
9873 /@[a-zA-Z_][a-zA-Z_0-9]*@/!b
9874 s&@configure_input@&$configure_input&;t t
9875 s&@top_builddir@&$ac_top_builddir_sub&;t t
9876 s&@srcdir@&$ac_srcdir&;t t
9877 s&@abs_srcdir@&$ac_abs_srcdir&;t t
9878 s&@top_srcdir@&$ac_top_srcdir&;t t
9879 s&@abs_top_srcdir@&$ac_abs_top_srcdir&;t t
9880 s&@builddir@&$ac_builddir&;t t
9881 s&@abs_builddir@&$ac_abs_builddir&;t t
9882 s&@abs_top_builddir@&$ac_abs_top_builddir&;t t
9883 s&@INSTALL@&$ac_INSTALL&;t t
9884 $ac_datarootdir_hack
9885 " $ac_file_inputs | sed -f "$tmp/subs-1.sed" | sed -f "$tmp/subs-2.sed" >$tmp/out
9886
9887 test -z "$ac_datarootdir_hack$ac_datarootdir_seen" &&
9888 { ac_out=`sed -n '/\${datarootdir}/p' "$tmp/out"`; test -n "$ac_out"; } &&
9889 { ac_out=`sed -n '/^[ ]*datarootdir[ ]*:*=/p' "$tmp/out"`; test -z "$ac_out"; } &&
9890 { echo "$as_me:$LINENO: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9891 which seems to be undefined. Please make sure it is defined." >&5
9892 echo "$as_me: WARNING: $ac_file contains a reference to the variable \`datarootdir'
9893 which seems to be undefined. Please make sure it is defined." >&2;}
9894
9895 rm -f "$tmp/stdin"
9896 case $ac_file in
9897 -) cat "$tmp/out"; rm -f "$tmp/out";;
9898 *) rm -f "$ac_file"; mv "$tmp/out" $ac_file;;
9899 esac
9900 ;;
9901 :H)
9902 #
9903 # CONFIG_HEADER
9904 #
9905 _ACEOF
9906
9907 # Transform confdefs.h into a sed script `conftest.defines', that
9908 # substitutes the proper values into config.h.in to produce config.h.
9909 rm -f conftest.defines conftest.tail
9910 # First, append a space to every undef/define line, to ease matching.
9911 echo 's/$/ /' >conftest.defines
9912 # Then, protect against being on the right side of a sed subst, or in
9913 # an unquoted here document, in config.status. If some macros were
9914 # called several times there might be several #defines for the same
9915 # symbol, which is useless. But do not sort them, since the last
9916 # AC_DEFINE must be honored.
9917 ac_word_re=[_$as_cr_Letters][_$as_cr_alnum]*
9918 # These sed commands are passed to sed as "A NAME B PARAMS C VALUE D", where
9919 # NAME is the cpp macro being defined, VALUE is the value it is being given.
9920 # PARAMS is the parameter list in the macro definition--in most cases, it's
9921 # just an empty string.
9922 ac_dA='s,^\\([ #]*\\)[^ ]*\\([ ]*'
9923 ac_dB='\\)[ (].*,\\1define\\2'
9924 ac_dC=' '
9925 ac_dD=' ,'
9926
9927 uniq confdefs.h |
9928 sed -n '
9929 t rset
9930 :rset
9931 s/^[ ]*#[ ]*define[ ][ ]*//
9932 t ok
9933 d
9934 :ok
9935 s/[\\&,]/\\&/g
9936 s/^\('"$ac_word_re"'\)\(([^()]*)\)[ ]*\(.*\)/ '"$ac_dA"'\1'"$ac_dB"'\2'"${ac_dC}"'\3'"$ac_dD"'/p
9937 s/^\('"$ac_word_re"'\)[ ]*\(.*\)/'"$ac_dA"'\1'"$ac_dB$ac_dC"'\2'"$ac_dD"'/p
9938 ' >>conftest.defines
9939
9940 # Remove the space that was appended to ease matching.
9941 # Then replace #undef with comments. This is necessary, for
9942 # example, in the case of _POSIX_SOURCE, which is predefined and required
9943 # on some systems where configure will not decide to define it.
9944 # (The regexp can be short, since the line contains either #define or #undef.)
9945 echo 's/ $//
9946 s,^[ #]*u.*,/* & */,' >>conftest.defines
9947
9948 # Break up conftest.defines:
9949 ac_max_sed_lines=50
9950
9951 # First sed command is: sed -f defines.sed $ac_file_inputs >"$tmp/out1"
9952 # Second one is: sed -f defines.sed "$tmp/out1" >"$tmp/out2"
9953 # Third one will be: sed -f defines.sed "$tmp/out2" >"$tmp/out1"
9954 # et cetera.
9955 ac_in='$ac_file_inputs'
9956 ac_out='"$tmp/out1"'
9957 ac_nxt='"$tmp/out2"'
9958
9959 while :
9960 do
9961 # Write a here document:
9962 cat >>$CONFIG_STATUS <<_ACEOF
9963 # First, check the format of the line:
9964 cat >"\$tmp/defines.sed" <<\\CEOF
9965 /^[ ]*#[ ]*undef[ ][ ]*$ac_word_re[ ]*\$/b def
9966 /^[ ]*#[ ]*define[ ][ ]*$ac_word_re[( ]/b def
9967 b
9968 :def
9969 _ACEOF
9970 sed ${ac_max_sed_lines}q conftest.defines >>$CONFIG_STATUS
9971 echo 'CEOF
9972 sed -f "$tmp/defines.sed"' "$ac_in >$ac_out" >>$CONFIG_STATUS
9973 ac_in=$ac_out; ac_out=$ac_nxt; ac_nxt=$ac_in
9974 sed 1,${ac_max_sed_lines}d conftest.defines >conftest.tail
9975 grep . conftest.tail >/dev/null || break
9976 rm -f conftest.defines
9977 mv conftest.tail conftest.defines
9978 done
9979 rm -f conftest.defines conftest.tail
9980
9981 echo "ac_result=$ac_in" >>$CONFIG_STATUS
9982 cat >>$CONFIG_STATUS <<\_ACEOF
9983 if test x"$ac_file" != x-; then
9984 echo "/* $configure_input */" >"$tmp/config.h"
9985 cat "$ac_result" >>"$tmp/config.h"
9986 if diff $ac_file "$tmp/config.h" >/dev/null 2>&1; then
9987 { echo "$as_me:$LINENO: $ac_file is unchanged" >&5
9988 echo "$as_me: $ac_file is unchanged" >&6;}
9989 else
9990 rm -f $ac_file
9991 mv "$tmp/config.h" $ac_file
9992 fi
9993 else
9994 echo "/* $configure_input */"
9995 cat "$ac_result"
9996 fi
9997 rm -f "$tmp/out12"
9998 # Compute $ac_file's index in $config_headers.
9999 _am_stamp_count=1
10000 for _am_header in $config_headers :; do
10001 case $_am_header in
10002 $ac_file | $ac_file:* )
10003 break ;;
10004 * )
10005 _am_stamp_count=`expr $_am_stamp_count + 1` ;;
10006 esac
10007 done
10008 echo "timestamp for $ac_file" >`$as_dirname -- $ac_file ||
10009 $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10010 X$ac_file : 'X\(//\)[^/]' \| \
10011 X$ac_file : 'X\(//\)$' \| \
10012 X$ac_file : 'X\(/\)' \| . 2>/dev/null ||
10013 echo X$ac_file |
10014 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10015 s//\1/
10016 q
10017 }
10018 /^X\(\/\/\)[^/].*/{
10019 s//\1/
10020 q
10021 }
10022 /^X\(\/\/\)$/{
10023 s//\1/
10024 q
10025 }
10026 /^X\(\/\).*/{
10027 s//\1/
10028 q
10029 }
10030 s/.*/./; q'`/stamp-h$_am_stamp_count
10031 ;;
10032
10033 :C) { echo "$as_me:$LINENO: executing $ac_file commands" >&5
10034 echo "$as_me: executing $ac_file commands" >&6;}
10035 ;;
10036 esac
10037
10038
10039 case $ac_file$ac_mode in
10040 "depfiles":C) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do
10041 # Strip MF so we end up with the name of the file.
10042 mf=`echo "$mf" | sed -e 's/:.*$//'`
10043 # Check whether this is an Automake generated Makefile or not.
10044 # We used to match only the files named `Makefile.in', but
10045 # some people rename them; so instead we look at the file content.
10046 # Grep'ing the first line is not enough: some people post-process
10047 # each Makefile.in and add a new line on top of each file to say so.
10048 # So let's grep whole file.
10049 if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then
10050 dirpart=`$as_dirname -- "$mf" ||
10051 $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10052 X"$mf" : 'X\(//\)[^/]' \| \
10053 X"$mf" : 'X\(//\)$' \| \
10054 X"$mf" : 'X\(/\)' \| . 2>/dev/null ||
10055 echo X"$mf" |
10056 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10057 s//\1/
10058 q
10059 }
10060 /^X\(\/\/\)[^/].*/{
10061 s//\1/
10062 q
10063 }
10064 /^X\(\/\/\)$/{
10065 s//\1/
10066 q
10067 }
10068 /^X\(\/\).*/{
10069 s//\1/
10070 q
10071 }
10072 s/.*/./; q'`
10073 else
10074 continue
10075 fi
10076 # Extract the definition of DEPDIR, am__include, and am__quote
10077 # from the Makefile without running `make'.
10078 DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"`
10079 test -z "$DEPDIR" && continue
10080 am__include=`sed -n 's/^am__include = //p' < "$mf"`
10081 test -z "am__include" && continue
10082 am__quote=`sed -n 's/^am__quote = //p' < "$mf"`
10083 # When using ansi2knr, U may be empty or an underscore; expand it
10084 U=`sed -n 's/^U = //p' < "$mf"`
10085 # Find all dependency output files, they are included files with
10086 # $(DEPDIR) in their names. We invoke sed twice because it is the
10087 # simplest approach to changing $(DEPDIR) to its actual value in the
10088 # expansion.
10089 for file in `sed -n "
10090 s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \
10091 sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do
10092 # Make sure the directory exists.
10093 test -f "$dirpart/$file" && continue
10094 fdir=`$as_dirname -- "$file" ||
10095 $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10096 X"$file" : 'X\(//\)[^/]' \| \
10097 X"$file" : 'X\(//\)$' \| \
10098 X"$file" : 'X\(/\)' \| . 2>/dev/null ||
10099 echo X"$file" |
10100 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10101 s//\1/
10102 q
10103 }
10104 /^X\(\/\/\)[^/].*/{
10105 s//\1/
10106 q
10107 }
10108 /^X\(\/\/\)$/{
10109 s//\1/
10110 q
10111 }
10112 /^X\(\/\).*/{
10113 s//\1/
10114 q
10115 }
10116 s/.*/./; q'`
10117 { as_dir=$dirpart/$fdir
10118 case $as_dir in #(
10119 -*) as_dir=./$as_dir;;
10120 esac
10121 test -d "$as_dir" || { $as_mkdir_p && mkdir -p "$as_dir"; } || {
10122 as_dirs=
10123 while :; do
10124 case $as_dir in #(
10125 *\'*) as_qdir=`echo "$as_dir" | sed "s/'/'\\\\\\\\''/g"`;; #(
10126 *) as_qdir=$as_dir;;
10127 esac
10128 as_dirs="'$as_qdir' $as_dirs"
10129 as_dir=`$as_dirname -- "$as_dir" ||
10130 $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \
10131 X"$as_dir" : 'X\(//\)[^/]' \| \
10132 X"$as_dir" : 'X\(//\)$' \| \
10133 X"$as_dir" : 'X\(/\)' \| . 2>/dev/null ||
10134 echo X"$as_dir" |
10135 sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{
10136 s//\1/
10137 q
10138 }
10139 /^X\(\/\/\)[^/].*/{
10140 s//\1/
10141 q
10142 }
10143 /^X\(\/\/\)$/{
10144 s//\1/
10145 q
10146 }
10147 /^X\(\/\).*/{
10148 s//\1/
10149 q
10150 }
10151 s/.*/./; q'`
10152 test -d "$as_dir" && break
10153 done
10154 test -z "$as_dirs" || eval "mkdir $as_dirs"
10155 } || test -d "$as_dir" || { { echo "$as_me:$LINENO: error: cannot create directory $as_dir" >&5
10156 echo "$as_me: error: cannot create directory $as_dir" >&2;}
10157 { (exit 1); exit 1; }; }; }
10158 # echo "creating $dirpart/$file"
10159 echo '# dummy' > "$dirpart/$file"
10160 done
10161 done
10162 ;;
10163
10164 esac
10165 done # for ac_tag
10166
10167
10168 { (exit 0); exit 0; }
10169 _ACEOF
10170 chmod +x $CONFIG_STATUS
10171 ac_clean_files=$ac_clean_files_save
10172
10173
10174 # configure is writing to config.log, and then calls config.status.
10175 # config.status does its own redirection, appending to config.log.
10176 # Unfortunately, on DOS this fails, as config.log is still kept open
10177 # by configure, so config.status won't be able to write to it; its
10178 # output is simply discarded. So we exec the FD to /dev/null,
10179 # effectively closing config.log, so it can be properly (re)opened and
10180 # appended to by config.status. When coming back to configure, we
10181 # need to make the FD available again.
10182 if test "$no_create" != yes; then
10183 ac_cs_success=:
10184 ac_config_status_args=
10185 test "$silent" = yes &&
10186 ac_config_status_args="$ac_config_status_args --quiet"
10187 exec 5>/dev/null
10188 $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false
10189 exec 5>>config.log
10190 # Use ||, not &&, to avoid exiting from the if with $? = 1, which
10191 # would make configure fail if this is the last instruction.
10192 $ac_cs_success || { (exit 1); exit 1; }
10193 fi
10194
10195 { echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5
10196 echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6; }
10197 set x ${MAKE-make}; ac_make=`echo "$2" | sed 's/+/p/g; s/[^a-zA-Z0-9_]/_/g'`
10198 if { as_var=ac_cv_prog_make_${ac_make}_set; eval "test \"\${$as_var+set}\" = set"; }; then
10199 echo $ECHO_N "(cached) $ECHO_C" >&6
10200 else
10201 cat >conftest.make <<\_ACEOF
10202 SHELL = /bin/sh
10203 all:
10204 @echo '@@@%%%=$(MAKE)=@@@%%%'
10205 _ACEOF
10206 # GNU make sometimes prints "make[1]: Entering...", which would confuse us.
10207 case `${MAKE-make} -f conftest.make 2>/dev/null` in
10208 *@@@%%%=?*=@@@%%%*)
10209 eval ac_cv_prog_make_${ac_make}_set=yes;;
10210 *)
10211 eval ac_cv_prog_make_${ac_make}_set=no;;
10212 esac
10213 rm -f conftest.make
10214 fi
10215 if eval test \$ac_cv_prog_make_${ac_make}_set = yes; then
10216 { echo "$as_me:$LINENO: result: yes" >&5
10217 echo "${ECHO_T}yes" >&6; }
10218 SET_MAKE=
10219 else
10220 { echo "$as_me:$LINENO: result: no" >&5
10221 echo "${ECHO_T}no" >&6; }
10222 SET_MAKE="MAKE=${MAKE-make}"
10223 fi
10224