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