]>
Commit | Line | Data |
---|---|---|
832b75ed GG |
1 | #! /bin/sh |
2 | # Guess values for system-dependent variables and create Makefiles. | |
3 | # Generated by GNU Autoconf 2.59 for smartmontools 5.36. | |
4 | # | |
5 | # Report bugs to <smartmontools-support@lists.sourceforge.net>. | |
6 | # | |
7 | # Copyright (C) 2003 Free Software Foundation, Inc. | |
8 | # This configure script is free software; the Free Software Foundation | |
9 | # gives unlimited permission to copy, distribute and modify it. | |
10 | ## --------------------- ## | |
11 | ## M4sh Initialization. ## | |
12 | ## --------------------- ## | |
13 | ||
14 | # Be Bourne compatible | |
15 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
16 | emulate sh | |
17 | NULLCMD=: | |
18 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
19 | # is contrary to our usage. Disable this feature. | |
20 | alias -g '${1+"$@"}'='"$@"' | |
21 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
22 | set -o posix | |
23 | fi | |
24 | DUALCASE=1; export DUALCASE # for MKS sh | |
25 | ||
26 | # Support unset when possible. | |
27 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
28 | as_unset=unset | |
29 | else | |
30 | as_unset=false | |
31 | fi | |
32 | ||
33 | ||
34 | # Work around bugs in pre-3.0 UWIN ksh. | |
35 | $as_unset ENV MAIL MAILPATH | |
36 | PS1='$ ' | |
37 | PS2='> ' | |
38 | PS4='+ ' | |
39 | ||
40 | # NLS nuisances. | |
41 | for as_var in \ | |
42 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
43 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
44 | LC_TELEPHONE LC_TIME | |
45 | do | |
46 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
47 | eval $as_var=C; export $as_var | |
48 | else | |
49 | $as_unset $as_var | |
50 | fi | |
51 | done | |
52 | ||
53 | # Required to use basename. | |
54 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
55 | as_expr=expr | |
56 | else | |
57 | as_expr=false | |
58 | fi | |
59 | ||
60 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
61 | as_basename=basename | |
62 | else | |
63 | as_basename=false | |
64 | fi | |
65 | ||
66 | ||
67 | # Name of the executable. | |
68 | as_me=`$as_basename "$0" || | |
69 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
70 | X"$0" : 'X\(//\)$' \| \ | |
71 | X"$0" : 'X\(/\)$' \| \ | |
72 | . : '\(.\)' 2>/dev/null || | |
73 | echo X/"$0" | | |
74 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
75 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
76 | /^X\/\(\/\).*/{ s//\1/; q; } | |
77 | s/.*/./; q'` | |
78 | ||
79 | ||
80 | # PATH needs CR, and LINENO needs CR and PATH. | |
81 | # Avoid depending upon Character Ranges. | |
82 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
83 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
84 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
85 | as_cr_digits='0123456789' | |
86 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
87 | ||
88 | # The user is always right. | |
89 | if test "${PATH_SEPARATOR+set}" != set; then | |
90 | echo "#! /bin/sh" >conf$$.sh | |
91 | echo "exit 0" >>conf$$.sh | |
92 | chmod +x conf$$.sh | |
93 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
94 | PATH_SEPARATOR=';' | |
95 | else | |
96 | PATH_SEPARATOR=: | |
97 | fi | |
98 | rm -f conf$$.sh | |
99 | fi | |
100 | ||
101 | ||
102 | as_lineno_1=$LINENO | |
103 | as_lineno_2=$LINENO | |
104 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
105 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
106 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
107 | # Find who we are. Look in the path if we contain no path at all | |
108 | # relative or not. | |
109 | case $0 in | |
110 | *[\\/]* ) as_myself=$0 ;; | |
111 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
112 | for as_dir in $PATH | |
113 | do | |
114 | IFS=$as_save_IFS | |
115 | test -z "$as_dir" && as_dir=. | |
116 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
117 | done | |
118 | ||
119 | ;; | |
120 | esac | |
121 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
122 | # in which case we are not to be found in the path. | |
123 | if test "x$as_myself" = x; then | |
124 | as_myself=$0 | |
125 | fi | |
126 | if test ! -f "$as_myself"; then | |
127 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 | |
128 | { (exit 1); exit 1; }; } | |
129 | fi | |
130 | case $CONFIG_SHELL in | |
131 | '') | |
132 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
133 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
134 | do | |
135 | IFS=$as_save_IFS | |
136 | test -z "$as_dir" && as_dir=. | |
137 | for as_base in sh bash ksh sh5; do | |
138 | case $as_dir in | |
139 | /*) | |
140 | if ("$as_dir/$as_base" -c ' | |
141 | as_lineno_1=$LINENO | |
142 | as_lineno_2=$LINENO | |
143 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
144 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
145 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
146 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
147 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
148 | CONFIG_SHELL=$as_dir/$as_base | |
149 | export CONFIG_SHELL | |
150 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
151 | fi;; | |
152 | esac | |
153 | done | |
154 | done | |
155 | ;; | |
156 | esac | |
157 | ||
158 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
159 | # uniformly replaced by the line number. The first 'sed' inserts a | |
160 | # line-number line before each line; the second 'sed' does the real | |
161 | # work. The second script uses 'N' to pair each line-number line | |
162 | # with the numbered line, and appends trailing '-' during | |
163 | # substitution so that $LINENO is not a special case at line end. | |
164 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
165 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
166 | sed '=' <$as_myself | | |
167 | sed ' | |
168 | N | |
169 | s,$,-, | |
170 | : loop | |
171 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
172 | t loop | |
173 | s,-$,, | |
174 | s,^['$as_cr_digits']*\n,, | |
175 | ' >$as_me.lineno && | |
176 | chmod +x $as_me.lineno || | |
177 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | |
178 | { (exit 1); exit 1; }; } | |
179 | ||
180 | # Don't try to exec as it changes $[0], causing all sort of problems | |
181 | # (the dirname of $[0] is not the place where we might find the | |
182 | # original and so on. Autoconf is especially sensible to this). | |
183 | . ./$as_me.lineno | |
184 | # Exit status is that of the last command. | |
185 | exit | |
186 | } | |
187 | ||
188 | ||
189 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
190 | *c*,-n*) ECHO_N= ECHO_C=' | |
191 | ' ECHO_T=' ' ;; | |
192 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
193 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
194 | esac | |
195 | ||
196 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
197 | as_expr=expr | |
198 | else | |
199 | as_expr=false | |
200 | fi | |
201 | ||
202 | rm -f conf$$ conf$$.exe conf$$.file | |
203 | echo >conf$$.file | |
204 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
205 | # We could just check for DJGPP; but this test a) works b) is more generic | |
206 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
207 | if test -f conf$$.exe; then | |
208 | # Don't use ln at all; we don't have any links | |
209 | as_ln_s='cp -p' | |
210 | else | |
211 | as_ln_s='ln -s' | |
212 | fi | |
213 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
214 | as_ln_s=ln | |
215 | else | |
216 | as_ln_s='cp -p' | |
217 | fi | |
218 | rm -f conf$$ conf$$.exe conf$$.file | |
219 | ||
220 | if mkdir -p . 2>/dev/null; then | |
221 | as_mkdir_p=: | |
222 | else | |
223 | test -d ./-p && rmdir ./-p | |
224 | as_mkdir_p=false | |
225 | fi | |
226 | ||
227 | as_executable_p="test -f" | |
228 | ||
229 | # Sed expression to map a string onto a valid CPP name. | |
230 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
231 | ||
232 | # Sed expression to map a string onto a valid variable name. | |
233 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
234 | ||
235 | ||
236 | # IFS | |
237 | # We need space, tab and new line, in precisely that order. | |
238 | as_nl=' | |
239 | ' | |
240 | IFS=" $as_nl" | |
241 | ||
242 | # CDPATH. | |
243 | $as_unset CDPATH | |
244 | ||
245 | ||
246 | # Name of the host. | |
247 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
248 | # so uname gets run too. | |
249 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
250 | ||
251 | exec 6>&1 | |
252 | ||
253 | # | |
254 | # Initializations. | |
255 | # | |
256 | ac_default_prefix=/usr/local | |
257 | ac_config_libobj_dir=. | |
258 | cross_compiling=no | |
259 | subdirs= | |
260 | MFLAGS= | |
261 | MAKEFLAGS= | |
262 | SHELL=${CONFIG_SHELL-/bin/sh} | |
263 | ||
264 | # Maximum number of lines to put in a shell here document. | |
265 | # This variable seems obsolete. It should probably be removed, and | |
266 | # only ac_max_sed_lines should be used. | |
267 | : ${ac_max_here_lines=38} | |
268 | ||
269 | # Identity of this package. | |
270 | PACKAGE_NAME='smartmontools' | |
271 | PACKAGE_TARNAME='smartmontools' | |
272 | PACKAGE_VERSION='5.36' | |
273 | PACKAGE_STRING='smartmontools 5.36' | |
274 | PACKAGE_BUGREPORT='smartmontools-support@lists.sourceforge.net' | |
275 | ||
276 | ac_unique_file="smartctl.c" | |
277 | # Factoring default headers for most tests. | |
278 | ac_includes_default="\ | |
279 | #include <stdio.h> | |
280 | #if HAVE_SYS_TYPES_H | |
281 | # include <sys/types.h> | |
282 | #endif | |
283 | #if HAVE_SYS_STAT_H | |
284 | # include <sys/stat.h> | |
285 | #endif | |
286 | #if STDC_HEADERS | |
287 | # include <stdlib.h> | |
288 | # include <stddef.h> | |
289 | #else | |
290 | # if HAVE_STDLIB_H | |
291 | # include <stdlib.h> | |
292 | # endif | |
293 | #endif | |
294 | #if HAVE_STRING_H | |
295 | # if !STDC_HEADERS && HAVE_MEMORY_H | |
296 | # include <memory.h> | |
297 | # endif | |
298 | # include <string.h> | |
299 | #endif | |
300 | #if HAVE_STRINGS_H | |
301 | # include <strings.h> | |
302 | #endif | |
303 | #if HAVE_INTTYPES_H | |
304 | # include <inttypes.h> | |
305 | #else | |
306 | # if HAVE_STDINT_H | |
307 | # include <stdint.h> | |
308 | # endif | |
309 | #endif | |
310 | #if HAVE_UNISTD_H | |
311 | # include <unistd.h> | |
312 | #endif" | |
313 | ||
314 | ac_subst_vars='SHELL PATH_SEPARATOR PACKAGE_NAME PACKAGE_TARNAME PACKAGE_VERSION PACKAGE_STRING PACKAGE_BUGREPORT exec_prefix prefix program_transform_name bindir sbindir libexecdir datadir sysconfdir sharedstatedir localstatedir libdir includedir oldincludedir infodir mandir build_alias host_alias target_alias DEFS ECHO_C ECHO_N ECHO_T LIBS INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CYGPATH_W PACKAGE VERSION ACLOCAL AUTOCONF AUTOMAKE AUTOHEADER MAKEINFO install_sh STRIP ac_ct_STRIP INSTALL_STRIP_PROGRAM mkdir_p AWK SET_MAKE am__leading_dot AMTAR am__tar am__untar MAINTAINER_MODE_TRUE MAINTAINER_MODE_FALSE MAINT CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT DEPDIR am__include am__quote AMDEP_TRUE AMDEP_FALSE AMDEPBACKSLASH CCDEPMODE am__fastdepCC_TRUE am__fastdepCC_FALSE CCAS CCASFLAGS build build_cpu build_vendor build_os host host_cpu host_vendor host_os CPP EGREP libc_have_working_snprintf gcc_have_attr_packed ASFLAGS exampledir initddir docdir smartd_suffix SMARTD_SUFFIX_TRUE SMARTD_SUFFIX_FALSE releaseversion smartmontools_release_date smartmontools_release_time os_deps os_libs OS_DARWIN_TRUE OS_DARWIN_FALSE OS_SOLARIS_TRUE OS_SOLARIS_FALSE OS_WIN32_MINGW_TRUE OS_WIN32_MINGW_FALSE LIBOBJS LTLIBOBJS' | |
315 | ac_subst_files='' | |
316 | ||
317 | # Initialize some variables set by options. | |
318 | ac_init_help= | |
319 | ac_init_version=false | |
320 | # The variables have the same names as the options, with | |
321 | # dashes changed to underlines. | |
322 | cache_file=/dev/null | |
323 | exec_prefix=NONE | |
324 | no_create= | |
325 | no_recursion= | |
326 | prefix=NONE | |
327 | program_prefix=NONE | |
328 | program_suffix=NONE | |
329 | program_transform_name=s,x,x, | |
330 | silent= | |
331 | site= | |
332 | srcdir= | |
333 | verbose= | |
334 | x_includes=NONE | |
335 | x_libraries=NONE | |
336 | ||
337 | # Installation directory options. | |
338 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
339 | # and all the variables that are supposed to be based on exec_prefix | |
340 | # by default will actually change. | |
341 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
342 | bindir='${exec_prefix}/bin' | |
343 | sbindir='${exec_prefix}/sbin' | |
344 | libexecdir='${exec_prefix}/libexec' | |
345 | datadir='${prefix}/share' | |
346 | sysconfdir='${prefix}/etc' | |
347 | sharedstatedir='${prefix}/com' | |
348 | localstatedir='${prefix}/var' | |
349 | libdir='${exec_prefix}/lib' | |
350 | includedir='${prefix}/include' | |
351 | oldincludedir='/usr/include' | |
352 | infodir='${prefix}/info' | |
353 | mandir='${prefix}/man' | |
354 | ||
355 | ac_prev= | |
356 | for ac_option | |
357 | do | |
358 | # If the previous option needs an argument, assign it. | |
359 | if test -n "$ac_prev"; then | |
360 | eval "$ac_prev=\$ac_option" | |
361 | ac_prev= | |
362 | continue | |
363 | fi | |
364 | ||
365 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` | |
366 | ||
367 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
368 | ||
369 | case $ac_option in | |
370 | ||
371 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
372 | ac_prev=bindir ;; | |
373 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
374 | bindir=$ac_optarg ;; | |
375 | ||
376 | -build | --build | --buil | --bui | --bu) | |
377 | ac_prev=build_alias ;; | |
378 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) | |
379 | build_alias=$ac_optarg ;; | |
380 | ||
381 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
382 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
383 | ac_prev=cache_file ;; | |
384 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
385 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
386 | cache_file=$ac_optarg ;; | |
387 | ||
388 | --config-cache | -C) | |
389 | cache_file=config.cache ;; | |
390 | ||
391 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
392 | ac_prev=datadir ;; | |
393 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
394 | | --da=*) | |
395 | datadir=$ac_optarg ;; | |
396 | ||
397 | -disable-* | --disable-*) | |
398 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` | |
399 | # Reject names that are not valid shell variable names. | |
400 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
401 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
402 | { (exit 1); exit 1; }; } | |
403 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
404 | eval "enable_$ac_feature=no" ;; | |
405 | ||
406 | -enable-* | --enable-*) | |
407 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` | |
408 | # Reject names that are not valid shell variable names. | |
409 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
410 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
411 | { (exit 1); exit 1; }; } | |
412 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
413 | case $ac_option in | |
414 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
415 | *) ac_optarg=yes ;; | |
416 | esac | |
417 | eval "enable_$ac_feature='$ac_optarg'" ;; | |
418 | ||
419 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
420 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
421 | | --exec | --exe | --ex) | |
422 | ac_prev=exec_prefix ;; | |
423 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
424 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
425 | | --exec=* | --exe=* | --ex=*) | |
426 | exec_prefix=$ac_optarg ;; | |
427 | ||
428 | -gas | --gas | --ga | --g) | |
429 | # Obsolete; use --with-gas. | |
430 | with_gas=yes ;; | |
431 | ||
432 | -help | --help | --hel | --he | -h) | |
433 | ac_init_help=long ;; | |
434 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
435 | ac_init_help=recursive ;; | |
436 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
437 | ac_init_help=short ;; | |
438 | ||
439 | -host | --host | --hos | --ho) | |
440 | ac_prev=host_alias ;; | |
441 | -host=* | --host=* | --hos=* | --ho=*) | |
442 | host_alias=$ac_optarg ;; | |
443 | ||
444 | -includedir | --includedir | --includedi | --included | --include \ | |
445 | | --includ | --inclu | --incl | --inc) | |
446 | ac_prev=includedir ;; | |
447 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
448 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
449 | includedir=$ac_optarg ;; | |
450 | ||
451 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
452 | ac_prev=infodir ;; | |
453 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
454 | infodir=$ac_optarg ;; | |
455 | ||
456 | -libdir | --libdir | --libdi | --libd) | |
457 | ac_prev=libdir ;; | |
458 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
459 | libdir=$ac_optarg ;; | |
460 | ||
461 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
462 | | --libexe | --libex | --libe) | |
463 | ac_prev=libexecdir ;; | |
464 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
465 | | --libexe=* | --libex=* | --libe=*) | |
466 | libexecdir=$ac_optarg ;; | |
467 | ||
468 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
469 | | --localstate | --localstat | --localsta | --localst \ | |
470 | | --locals | --local | --loca | --loc | --lo) | |
471 | ac_prev=localstatedir ;; | |
472 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
473 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
474 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
475 | localstatedir=$ac_optarg ;; | |
476 | ||
477 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
478 | ac_prev=mandir ;; | |
479 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
480 | mandir=$ac_optarg ;; | |
481 | ||
482 | -nfp | --nfp | --nf) | |
483 | # Obsolete; use --without-fp. | |
484 | with_fp=no ;; | |
485 | ||
486 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
487 | | --no-cr | --no-c | -n) | |
488 | no_create=yes ;; | |
489 | ||
490 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
491 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
492 | no_recursion=yes ;; | |
493 | ||
494 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
495 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
496 | | --oldin | --oldi | --old | --ol | --o) | |
497 | ac_prev=oldincludedir ;; | |
498 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
499 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
500 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
501 | oldincludedir=$ac_optarg ;; | |
502 | ||
503 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
504 | ac_prev=prefix ;; | |
505 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
506 | prefix=$ac_optarg ;; | |
507 | ||
508 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
509 | | --program-pre | --program-pr | --program-p) | |
510 | ac_prev=program_prefix ;; | |
511 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
512 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
513 | program_prefix=$ac_optarg ;; | |
514 | ||
515 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
516 | | --program-suf | --program-su | --program-s) | |
517 | ac_prev=program_suffix ;; | |
518 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
519 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
520 | program_suffix=$ac_optarg ;; | |
521 | ||
522 | -program-transform-name | --program-transform-name \ | |
523 | | --program-transform-nam | --program-transform-na \ | |
524 | | --program-transform-n | --program-transform- \ | |
525 | | --program-transform | --program-transfor \ | |
526 | | --program-transfo | --program-transf \ | |
527 | | --program-trans | --program-tran \ | |
528 | | --progr-tra | --program-tr | --program-t) | |
529 | ac_prev=program_transform_name ;; | |
530 | -program-transform-name=* | --program-transform-name=* \ | |
531 | | --program-transform-nam=* | --program-transform-na=* \ | |
532 | | --program-transform-n=* | --program-transform-=* \ | |
533 | | --program-transform=* | --program-transfor=* \ | |
534 | | --program-transfo=* | --program-transf=* \ | |
535 | | --program-trans=* | --program-tran=* \ | |
536 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
537 | program_transform_name=$ac_optarg ;; | |
538 | ||
539 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
540 | | -silent | --silent | --silen | --sile | --sil) | |
541 | silent=yes ;; | |
542 | ||
543 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
544 | ac_prev=sbindir ;; | |
545 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
546 | | --sbi=* | --sb=*) | |
547 | sbindir=$ac_optarg ;; | |
548 | ||
549 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
550 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
551 | | --sharedst | --shareds | --shared | --share | --shar \ | |
552 | | --sha | --sh) | |
553 | ac_prev=sharedstatedir ;; | |
554 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
555 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
556 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
557 | | --sha=* | --sh=*) | |
558 | sharedstatedir=$ac_optarg ;; | |
559 | ||
560 | -site | --site | --sit) | |
561 | ac_prev=site ;; | |
562 | -site=* | --site=* | --sit=*) | |
563 | site=$ac_optarg ;; | |
564 | ||
565 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) | |
566 | ac_prev=srcdir ;; | |
567 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
568 | srcdir=$ac_optarg ;; | |
569 | ||
570 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
571 | | --syscon | --sysco | --sysc | --sys | --sy) | |
572 | ac_prev=sysconfdir ;; | |
573 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
574 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
575 | sysconfdir=$ac_optarg ;; | |
576 | ||
577 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
578 | ac_prev=target_alias ;; | |
579 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) | |
580 | target_alias=$ac_optarg ;; | |
581 | ||
582 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
583 | verbose=yes ;; | |
584 | ||
585 | -version | --version | --versio | --versi | --vers | -V) | |
586 | ac_init_version=: ;; | |
587 | ||
588 | -with-* | --with-*) | |
589 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` | |
590 | # Reject names that are not valid shell variable names. | |
591 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
592 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
593 | { (exit 1); exit 1; }; } | |
594 | ac_package=`echo $ac_package| sed 's/-/_/g'` | |
595 | case $ac_option in | |
596 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
597 | *) ac_optarg=yes ;; | |
598 | esac | |
599 | eval "with_$ac_package='$ac_optarg'" ;; | |
600 | ||
601 | -without-* | --without-*) | |
602 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` | |
603 | # Reject names that are not valid shell variable names. | |
604 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && | |
605 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
606 | { (exit 1); exit 1; }; } | |
607 | ac_package=`echo $ac_package | sed 's/-/_/g'` | |
608 | eval "with_$ac_package=no" ;; | |
609 | ||
610 | --x) | |
611 | # Obsolete; use --with-x. | |
612 | with_x=yes ;; | |
613 | ||
614 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
615 | | --x-incl | --x-inc | --x-in | --x-i) | |
616 | ac_prev=x_includes ;; | |
617 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
618 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
619 | x_includes=$ac_optarg ;; | |
620 | ||
621 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
622 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
623 | ac_prev=x_libraries ;; | |
624 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
625 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
626 | x_libraries=$ac_optarg ;; | |
627 | ||
628 | -*) { echo "$as_me: error: unrecognized option: $ac_option | |
629 | Try \`$0 --help' for more information." >&2 | |
630 | { (exit 1); exit 1; }; } | |
631 | ;; | |
632 | ||
633 | *=*) | |
634 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
635 | # Reject names that are not valid shell variable names. | |
636 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
637 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
638 | { (exit 1); exit 1; }; } | |
639 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` | |
640 | eval "$ac_envvar='$ac_optarg'" | |
641 | export $ac_envvar ;; | |
642 | ||
643 | *) | |
644 | # FIXME: should be removed in autoconf 3.0. | |
645 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
646 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
647 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
648 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
649 | ;; | |
650 | ||
651 | esac | |
652 | done | |
653 | ||
654 | if test -n "$ac_prev"; then | |
655 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` | |
656 | { echo "$as_me: error: missing argument to $ac_option" >&2 | |
657 | { (exit 1); exit 1; }; } | |
658 | fi | |
659 | ||
660 | # Be sure to have absolute paths. | |
661 | for ac_var in exec_prefix prefix | |
662 | do | |
663 | eval ac_val=$`echo $ac_var` | |
664 | case $ac_val in | |
665 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; | |
666 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
667 | { (exit 1); exit 1; }; };; | |
668 | esac | |
669 | done | |
670 | ||
671 | # Be sure to have absolute paths. | |
672 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | |
673 | localstatedir libdir includedir oldincludedir infodir mandir | |
674 | do | |
675 | eval ac_val=$`echo $ac_var` | |
676 | case $ac_val in | |
677 | [\\/$]* | ?:[\\/]* ) ;; | |
678 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
679 | { (exit 1); exit 1; }; };; | |
680 | esac | |
681 | done | |
682 | ||
683 | # There might be people who depend on the old broken behavior: `$host' | |
684 | # used to hold the argument of --host etc. | |
685 | # FIXME: To remove some day. | |
686 | build=$build_alias | |
687 | host=$host_alias | |
688 | target=$target_alias | |
689 | ||
690 | # FIXME: To remove some day. | |
691 | if test "x$host_alias" != x; then | |
692 | if test "x$build_alias" = x; then | |
693 | cross_compiling=maybe | |
694 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
695 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
696 | elif test "x$build_alias" != "x$host_alias"; then | |
697 | cross_compiling=yes | |
698 | fi | |
699 | fi | |
700 | ||
701 | ac_tool_prefix= | |
702 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
703 | ||
704 | test "$silent" = yes && exec 6>/dev/null | |
705 | ||
706 | ||
707 | # Find the source files, if location was not specified. | |
708 | if test -z "$srcdir"; then | |
709 | ac_srcdir_defaulted=yes | |
710 | # Try the directory containing this script, then its parent. | |
711 | ac_confdir=`(dirname "$0") 2>/dev/null || | |
712 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
713 | X"$0" : 'X\(//\)[^/]' \| \ | |
714 | X"$0" : 'X\(//\)$' \| \ | |
715 | X"$0" : 'X\(/\)' \| \ | |
716 | . : '\(.\)' 2>/dev/null || | |
717 | echo X"$0" | | |
718 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
719 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
720 | /^X\(\/\/\)$/{ s//\1/; q; } | |
721 | /^X\(\/\).*/{ s//\1/; q; } | |
722 | s/.*/./; q'` | |
723 | srcdir=$ac_confdir | |
724 | if test ! -r $srcdir/$ac_unique_file; then | |
725 | srcdir=.. | |
726 | fi | |
727 | else | |
728 | ac_srcdir_defaulted=no | |
729 | fi | |
730 | if test ! -r $srcdir/$ac_unique_file; then | |
731 | if test "$ac_srcdir_defaulted" = yes; then | |
732 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 | |
733 | { (exit 1); exit 1; }; } | |
734 | else | |
735 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 | |
736 | { (exit 1); exit 1; }; } | |
737 | fi | |
738 | fi | |
739 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || | |
740 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 | |
741 | { (exit 1); exit 1; }; } | |
742 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` | |
743 | ac_env_build_alias_set=${build_alias+set} | |
744 | ac_env_build_alias_value=$build_alias | |
745 | ac_cv_env_build_alias_set=${build_alias+set} | |
746 | ac_cv_env_build_alias_value=$build_alias | |
747 | ac_env_host_alias_set=${host_alias+set} | |
748 | ac_env_host_alias_value=$host_alias | |
749 | ac_cv_env_host_alias_set=${host_alias+set} | |
750 | ac_cv_env_host_alias_value=$host_alias | |
751 | ac_env_target_alias_set=${target_alias+set} | |
752 | ac_env_target_alias_value=$target_alias | |
753 | ac_cv_env_target_alias_set=${target_alias+set} | |
754 | ac_cv_env_target_alias_value=$target_alias | |
755 | ac_env_CC_set=${CC+set} | |
756 | ac_env_CC_value=$CC | |
757 | ac_cv_env_CC_set=${CC+set} | |
758 | ac_cv_env_CC_value=$CC | |
759 | ac_env_CFLAGS_set=${CFLAGS+set} | |
760 | ac_env_CFLAGS_value=$CFLAGS | |
761 | ac_cv_env_CFLAGS_set=${CFLAGS+set} | |
762 | ac_cv_env_CFLAGS_value=$CFLAGS | |
763 | ac_env_LDFLAGS_set=${LDFLAGS+set} | |
764 | ac_env_LDFLAGS_value=$LDFLAGS | |
765 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} | |
766 | ac_cv_env_LDFLAGS_value=$LDFLAGS | |
767 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} | |
768 | ac_env_CPPFLAGS_value=$CPPFLAGS | |
769 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | |
770 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS | |
771 | ac_env_CCAS_set=${CCAS+set} | |
772 | ac_env_CCAS_value=$CCAS | |
773 | ac_cv_env_CCAS_set=${CCAS+set} | |
774 | ac_cv_env_CCAS_value=$CCAS | |
775 | ac_env_CCASFLAGS_set=${CCASFLAGS+set} | |
776 | ac_env_CCASFLAGS_value=$CCASFLAGS | |
777 | ac_cv_env_CCASFLAGS_set=${CCASFLAGS+set} | |
778 | ac_cv_env_CCASFLAGS_value=$CCASFLAGS | |
779 | ac_env_CPP_set=${CPP+set} | |
780 | ac_env_CPP_value=$CPP | |
781 | ac_cv_env_CPP_set=${CPP+set} | |
782 | ac_cv_env_CPP_value=$CPP | |
783 | ||
784 | # | |
785 | # Report the --help message. | |
786 | # | |
787 | if test "$ac_init_help" = "long"; then | |
788 | # Omit some internal or obsolete options to make the list less imposing. | |
789 | # This message is too long to be a string in the A/UX 3.1 sh. | |
790 | cat <<_ACEOF | |
791 | \`configure' configures smartmontools 5.36 to adapt to many kinds of systems. | |
792 | ||
793 | Usage: $0 [OPTION]... [VAR=VALUE]... | |
794 | ||
795 | To assign environment variables (e.g., CC, CFLAGS...), specify them as | |
796 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
797 | ||
798 | Defaults for the options are specified in brackets. | |
799 | ||
800 | Configuration: | |
801 | -h, --help display this help and exit | |
802 | --help=short display options specific to this package | |
803 | --help=recursive display the short help of all the included packages | |
804 | -V, --version display version information and exit | |
805 | -q, --quiet, --silent do not print \`checking...' messages | |
806 | --cache-file=FILE cache test results in FILE [disabled] | |
807 | -C, --config-cache alias for \`--cache-file=config.cache' | |
808 | -n, --no-create do not create output files | |
809 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
810 | ||
811 | _ACEOF | |
812 | ||
813 | cat <<_ACEOF | |
814 | Installation directories: | |
815 | --prefix=PREFIX install architecture-independent files in PREFIX | |
816 | [$ac_default_prefix] | |
817 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
818 | [PREFIX] | |
819 | ||
820 | By default, \`make install' will install all the files in | |
821 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
822 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
823 | for instance \`--prefix=\$HOME'. | |
824 | ||
825 | For better control, use the options below. | |
826 | ||
827 | Fine tuning of the installation directories: | |
828 | --bindir=DIR user executables [EPREFIX/bin] | |
829 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
830 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
831 | --datadir=DIR read-only architecture-independent data [PREFIX/share] | |
832 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
833 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
834 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
835 | --libdir=DIR object code libraries [EPREFIX/lib] | |
836 | --includedir=DIR C header files [PREFIX/include] | |
837 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
838 | --infodir=DIR info documentation [PREFIX/info] | |
839 | --mandir=DIR man documentation [PREFIX/man] | |
840 | _ACEOF | |
841 | ||
842 | cat <<\_ACEOF | |
843 | ||
844 | Program names: | |
845 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
846 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
847 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
848 | ||
849 | System types: | |
850 | --build=BUILD configure for building on BUILD [guessed] | |
851 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
852 | _ACEOF | |
853 | fi | |
854 | ||
855 | if test -n "$ac_init_help"; then | |
856 | case $ac_init_help in | |
857 | short | recursive ) echo "Configuration of smartmontools 5.36:";; | |
858 | esac | |
859 | cat <<\_ACEOF | |
860 | ||
861 | Optional Features: | |
862 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
863 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
864 | --enable-maintainer-mode enable make rules and dependencies not useful | |
865 | (and sometimes confusing) to the casual installer | |
866 | --disable-dependency-tracking speeds up one-time build | |
867 | --enable-dependency-tracking do not reject slow dependency extractors | |
868 | --enable-sample Enables appending .sample to the installed smartd rc | |
869 | script and configuration file | |
870 | ||
871 | Optional Packages: | |
872 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
873 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
874 | --with-initscriptdir=dir | |
875 | Location of init scripts (default is | |
876 | ${sysconfdir}/rc.d/init.d) | |
877 | --with-docdir=dir Location of documentation (default is | |
878 | ${prefix}/share/doc/smartmontools-5.X) | |
879 | ||
880 | Some influential environment variables: | |
881 | CC C compiler command | |
882 | CFLAGS C compiler flags | |
883 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
884 | nonstandard directory <lib dir> | |
885 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
886 | headers in a nonstandard directory <include dir> | |
887 | CCAS assembler compiler command (defaults to CC) | |
888 | CCASFLAGS assembler compiler flags (defaults to CFLAGS) | |
889 | CPP C preprocessor | |
890 | ||
891 | Use these variables to override the choices made by `configure' or to help | |
892 | it to find libraries and programs with nonstandard names/locations. | |
893 | ||
894 | Report bugs to <smartmontools-support@lists.sourceforge.net>. | |
895 | _ACEOF | |
896 | fi | |
897 | ||
898 | if test "$ac_init_help" = "recursive"; then | |
899 | # If there are subdirs, report their specific --help. | |
900 | ac_popdir=`pwd` | |
901 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
902 | test -d $ac_dir || continue | |
903 | ac_builddir=. | |
904 | ||
905 | if test "$ac_dir" != .; then | |
906 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
907 | # A "../" for each directory in $ac_dir_suffix. | |
908 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
909 | else | |
910 | ac_dir_suffix= ac_top_builddir= | |
911 | fi | |
912 | ||
913 | case $srcdir in | |
914 | .) # No --srcdir option. We are building in place. | |
915 | ac_srcdir=. | |
916 | if test -z "$ac_top_builddir"; then | |
917 | ac_top_srcdir=. | |
918 | else | |
919 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
920 | fi ;; | |
921 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
922 | ac_srcdir=$srcdir$ac_dir_suffix; | |
923 | ac_top_srcdir=$srcdir ;; | |
924 | *) # Relative path. | |
925 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
926 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
927 | esac | |
928 | ||
929 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
930 | # the directories may not exist. | |
931 | case `pwd` in | |
932 | .) ac_abs_builddir="$ac_dir";; | |
933 | *) | |
934 | case "$ac_dir" in | |
935 | .) ac_abs_builddir=`pwd`;; | |
936 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
937 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
938 | esac;; | |
939 | esac | |
940 | case $ac_abs_builddir in | |
941 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
942 | *) | |
943 | case ${ac_top_builddir}. in | |
944 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
945 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
946 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
947 | esac;; | |
948 | esac | |
949 | case $ac_abs_builddir in | |
950 | .) ac_abs_srcdir=$ac_srcdir;; | |
951 | *) | |
952 | case $ac_srcdir in | |
953 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
954 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
955 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
956 | esac;; | |
957 | esac | |
958 | case $ac_abs_builddir in | |
959 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
960 | *) | |
961 | case $ac_top_srcdir in | |
962 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
963 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
964 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
965 | esac;; | |
966 | esac | |
967 | ||
968 | cd $ac_dir | |
969 | # Check for guested configure; otherwise get Cygnus style configure. | |
970 | if test -f $ac_srcdir/configure.gnu; then | |
971 | echo | |
972 | $SHELL $ac_srcdir/configure.gnu --help=recursive | |
973 | elif test -f $ac_srcdir/configure; then | |
974 | echo | |
975 | $SHELL $ac_srcdir/configure --help=recursive | |
976 | elif test -f $ac_srcdir/configure.ac || | |
977 | test -f $ac_srcdir/configure.in; then | |
978 | echo | |
979 | $ac_configure --help | |
980 | else | |
981 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
982 | fi | |
983 | cd $ac_popdir | |
984 | done | |
985 | fi | |
986 | ||
987 | test -n "$ac_init_help" && exit 0 | |
988 | if $ac_init_version; then | |
989 | cat <<\_ACEOF | |
990 | smartmontools configure 5.36 | |
991 | generated by GNU Autoconf 2.59 | |
992 | ||
993 | Copyright (C) 2003 Free Software Foundation, Inc. | |
994 | This configure script is free software; the Free Software Foundation | |
995 | gives unlimited permission to copy, distribute and modify it. | |
996 | _ACEOF | |
997 | exit 0 | |
998 | fi | |
999 | exec 5>config.log | |
1000 | cat >&5 <<_ACEOF | |
1001 | This file contains any messages produced by compilers while | |
1002 | running configure, to aid debugging if configure makes a mistake. | |
1003 | ||
1004 | It was created by smartmontools $as_me 5.36, which was | |
1005 | generated by GNU Autoconf 2.59. Invocation command line was | |
1006 | ||
1007 | $ $0 $@ | |
1008 | ||
1009 | _ACEOF | |
1010 | { | |
1011 | cat <<_ASUNAME | |
1012 | ## --------- ## | |
1013 | ## Platform. ## | |
1014 | ## --------- ## | |
1015 | ||
1016 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1017 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1018 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1019 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1020 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1021 | ||
1022 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1023 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1024 | ||
1025 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1026 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1027 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1028 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
1029 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1030 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1031 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1032 | ||
1033 | _ASUNAME | |
1034 | ||
1035 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1036 | for as_dir in $PATH | |
1037 | do | |
1038 | IFS=$as_save_IFS | |
1039 | test -z "$as_dir" && as_dir=. | |
1040 | echo "PATH: $as_dir" | |
1041 | done | |
1042 | ||
1043 | } >&5 | |
1044 | ||
1045 | cat >&5 <<_ACEOF | |
1046 | ||
1047 | ||
1048 | ## ----------- ## | |
1049 | ## Core tests. ## | |
1050 | ## ----------- ## | |
1051 | ||
1052 | _ACEOF | |
1053 | ||
1054 | ||
1055 | # Keep a trace of the command line. | |
1056 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1057 | # Strip out --silent because we don't want to record it for future runs. | |
1058 | # Also quote any args containing shell meta-characters. | |
1059 | # Make two passes to allow for proper duplicate-argument suppression. | |
1060 | ac_configure_args= | |
1061 | ac_configure_args0= | |
1062 | ac_configure_args1= | |
1063 | ac_sep= | |
1064 | ac_must_keep_next=false | |
1065 | for ac_pass in 1 2 | |
1066 | do | |
1067 | for ac_arg | |
1068 | do | |
1069 | case $ac_arg in | |
1070 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1071 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1072 | | -silent | --silent | --silen | --sile | --sil) | |
1073 | continue ;; | |
1074 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1075 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1076 | esac | |
1077 | case $ac_pass in | |
1078 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1079 | 2) | |
1080 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1081 | if test $ac_must_keep_next = true; then | |
1082 | ac_must_keep_next=false # Got value, back to normal. | |
1083 | else | |
1084 | case $ac_arg in | |
1085 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1086 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1087 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1088 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1089 | case "$ac_configure_args0 " in | |
1090 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1091 | esac | |
1092 | ;; | |
1093 | -* ) ac_must_keep_next=true ;; | |
1094 | esac | |
1095 | fi | |
1096 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1097 | # Get rid of the leading space. | |
1098 | ac_sep=" " | |
1099 | ;; | |
1100 | esac | |
1101 | done | |
1102 | done | |
1103 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1104 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1105 | ||
1106 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1107 | # config.log. We remove comments because anyway the quotes in there | |
1108 | # would cause problems or look ugly. | |
1109 | # WARNING: Be sure not to use single quotes in there, as some shells, | |
1110 | # such as our DU 5.0 friend, will then `close' the trap. | |
1111 | trap 'exit_status=$? | |
1112 | # Save into config.log some information that might help in debugging. | |
1113 | { | |
1114 | echo | |
1115 | ||
1116 | cat <<\_ASBOX | |
1117 | ## ---------------- ## | |
1118 | ## Cache variables. ## | |
1119 | ## ---------------- ## | |
1120 | _ASBOX | |
1121 | echo | |
1122 | # The following way of writing the cache mishandles newlines in values, | |
1123 | { | |
1124 | (set) 2>&1 | | |
1125 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
1126 | *ac_space=\ *) | |
1127 | sed -n \ | |
1128 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; | |
1129 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
1130 | ;; | |
1131 | *) | |
1132 | sed -n \ | |
1133 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
1134 | ;; | |
1135 | esac; | |
1136 | } | |
1137 | echo | |
1138 | ||
1139 | cat <<\_ASBOX | |
1140 | ## ----------------- ## | |
1141 | ## Output variables. ## | |
1142 | ## ----------------- ## | |
1143 | _ASBOX | |
1144 | echo | |
1145 | for ac_var in $ac_subst_vars | |
1146 | do | |
1147 | eval ac_val=$`echo $ac_var` | |
1148 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1149 | done | sort | |
1150 | echo | |
1151 | ||
1152 | if test -n "$ac_subst_files"; then | |
1153 | cat <<\_ASBOX | |
1154 | ## ------------- ## | |
1155 | ## Output files. ## | |
1156 | ## ------------- ## | |
1157 | _ASBOX | |
1158 | echo | |
1159 | for ac_var in $ac_subst_files | |
1160 | do | |
1161 | eval ac_val=$`echo $ac_var` | |
1162 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1163 | done | sort | |
1164 | echo | |
1165 | fi | |
1166 | ||
1167 | if test -s confdefs.h; then | |
1168 | cat <<\_ASBOX | |
1169 | ## ----------- ## | |
1170 | ## confdefs.h. ## | |
1171 | ## ----------- ## | |
1172 | _ASBOX | |
1173 | echo | |
1174 | sed "/^$/d" confdefs.h | sort | |
1175 | echo | |
1176 | fi | |
1177 | test "$ac_signal" != 0 && | |
1178 | echo "$as_me: caught signal $ac_signal" | |
1179 | echo "$as_me: exit $exit_status" | |
1180 | } >&5 | |
1181 | rm -f core *.core && | |
1182 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && | |
1183 | exit $exit_status | |
1184 | ' 0 | |
1185 | for ac_signal in 1 2 13 15; do | |
1186 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1187 | done | |
1188 | ac_signal=0 | |
1189 | ||
1190 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1191 | rm -rf conftest* confdefs.h | |
1192 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1193 | echo >confdefs.h | |
1194 | ||
1195 | # Predefined preprocessor variables. | |
1196 | ||
1197 | cat >>confdefs.h <<_ACEOF | |
1198 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1199 | _ACEOF | |
1200 | ||
1201 | ||
1202 | cat >>confdefs.h <<_ACEOF | |
1203 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1204 | _ACEOF | |
1205 | ||
1206 | ||
1207 | cat >>confdefs.h <<_ACEOF | |
1208 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1209 | _ACEOF | |
1210 | ||
1211 | ||
1212 | cat >>confdefs.h <<_ACEOF | |
1213 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1214 | _ACEOF | |
1215 | ||
1216 | ||
1217 | cat >>confdefs.h <<_ACEOF | |
1218 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1219 | _ACEOF | |
1220 | ||
1221 | ||
1222 | # Let the site file select an alternate cache file if it wants to. | |
1223 | # Prefer explicitly selected file to automatically selected ones. | |
1224 | if test -z "$CONFIG_SITE"; then | |
1225 | if test "x$prefix" != xNONE; then | |
1226 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1227 | else | |
1228 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1229 | fi | |
1230 | fi | |
1231 | for ac_site_file in $CONFIG_SITE; do | |
1232 | if test -r "$ac_site_file"; then | |
1233 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | |
1234 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1235 | sed 's/^/| /' "$ac_site_file" >&5 | |
1236 | . "$ac_site_file" | |
1237 | fi | |
1238 | done | |
1239 | ||
1240 | if test -r "$cache_file"; then | |
1241 | # Some versions of bash will fail to source /dev/null (special | |
1242 | # files actually), so we avoid doing that. | |
1243 | if test -f "$cache_file"; then | |
1244 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1245 | echo "$as_me: loading cache $cache_file" >&6;} | |
1246 | case $cache_file in | |
1247 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1248 | *) . ./$cache_file;; | |
1249 | esac | |
1250 | fi | |
1251 | else | |
1252 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
1253 | echo "$as_me: creating cache $cache_file" >&6;} | |
1254 | >$cache_file | |
1255 | fi | |
1256 | ||
1257 | # Check that the precious variables saved in the cache have kept the same | |
1258 | # value. | |
1259 | ac_cache_corrupted=false | |
1260 | for ac_var in `(set) 2>&1 | | |
1261 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do | |
1262 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
1263 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1264 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
1265 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
1266 | case $ac_old_set,$ac_new_set in | |
1267 | set,) | |
1268 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1269 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1270 | ac_cache_corrupted=: ;; | |
1271 | ,set) | |
1272 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1273 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1274 | ac_cache_corrupted=: ;; | |
1275 | ,);; | |
1276 | *) | |
1277 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
1278 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
1279 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1280 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 | |
1281 | echo "$as_me: former value: $ac_old_val" >&2;} | |
1282 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 | |
1283 | echo "$as_me: current value: $ac_new_val" >&2;} | |
1284 | ac_cache_corrupted=: | |
1285 | fi;; | |
1286 | esac | |
1287 | # Pass precious variables to config.status. | |
1288 | if test "$ac_new_set" = set; then | |
1289 | case $ac_new_val in | |
1290 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1291 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1292 | *) ac_arg=$ac_var=$ac_new_val ;; | |
1293 | esac | |
1294 | case " $ac_configure_args " in | |
1295 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1296 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1297 | esac | |
1298 | fi | |
1299 | done | |
1300 | if $ac_cache_corrupted; then | |
1301 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1302 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1303 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1304 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1305 | { (exit 1); exit 1; }; } | |
1306 | fi | |
1307 | ||
1308 | ac_ext=c | |
1309 | ac_cpp='$CPP $CPPFLAGS' | |
1310 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1311 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1312 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1313 | ||
1314 | ||
1315 | ||
1316 | ||
1317 | ||
1318 | ||
1319 | ||
1320 | ||
1321 | ||
1322 | ||
1323 | ||
1324 | ||
1325 | ||
1326 | ||
1327 | ||
1328 | ||
1329 | ||
1330 | ||
1331 | ||
1332 | ||
1333 | ||
1334 | ||
1335 | ||
1336 | ||
1337 | ||
1338 | ||
1339 | ||
1340 | ||
1341 | ||
1342 | smartmontools_configure_date=`date -u +"%Y/%m/%d %T %Z"` | |
1343 | smartmontools_cvs_tag=`echo '$Id: configure.in,v 1.113 2005/11/27 20:01:29 chrfranke Exp $'` | |
1344 | smartmontools_release_date=2006/04/12 | |
1345 | smartmontools_release_time="17:39:01 UTC" | |
1346 | ||
1347 | ||
1348 | cat >>confdefs.h <<_ACEOF | |
1349 | #define SMARTMONTOOLS_CONFIGURE_ARGS "$ac_configure_args" | |
1350 | _ACEOF | |
1351 | ||
1352 | ||
1353 | cat >>confdefs.h <<_ACEOF | |
1354 | #define SMARTMONTOOLS_CONFIGURE_DATE "$smartmontools_configure_date" | |
1355 | _ACEOF | |
1356 | ||
1357 | ||
1358 | cat >>confdefs.h <<_ACEOF | |
1359 | #define SMARTMONTOOLS_RELEASE_DATE "$smartmontools_release_date" | |
1360 | _ACEOF | |
1361 | ||
1362 | ||
1363 | cat >>confdefs.h <<_ACEOF | |
1364 | #define SMARTMONTOOLS_RELEASE_TIME "$smartmontools_release_time" | |
1365 | _ACEOF | |
1366 | ||
1367 | ||
1368 | cat >>confdefs.h <<_ACEOF | |
1369 | #define CONFIG_H_CVSID "$smartmontools_cvs_tag" | |
1370 | _ACEOF | |
1371 | ||
1372 | ||
1373 | cat >>confdefs.h <<_ACEOF | |
1374 | #define PACKAGE_HOMEPAGE "http://smartmontools.sourceforge.net/" | |
1375 | _ACEOF | |
1376 | ||
1377 | ||
1378 | ac_config_headers="$ac_config_headers config.h" | |
1379 | ||
1380 | ||
1381 | am__api_version="1.9" | |
1382 | ac_aux_dir= | |
1383 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
1384 | if test -f $ac_dir/install-sh; then | |
1385 | ac_aux_dir=$ac_dir | |
1386 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1387 | break | |
1388 | elif test -f $ac_dir/install.sh; then | |
1389 | ac_aux_dir=$ac_dir | |
1390 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1391 | break | |
1392 | elif test -f $ac_dir/shtool; then | |
1393 | ac_aux_dir=$ac_dir | |
1394 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1395 | break | |
1396 | fi | |
1397 | done | |
1398 | if test -z "$ac_aux_dir"; then | |
1399 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 | |
1400 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} | |
1401 | { (exit 1); exit 1; }; } | |
1402 | fi | |
1403 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" | |
1404 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1405 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
1406 | ||
1407 | # Find a good install program. We prefer a C program (faster), | |
1408 | # so one script is as good as another. But avoid the broken or | |
1409 | # incompatible versions: | |
1410 | # SysV /etc/install, /usr/sbin/install | |
1411 | # SunOS /usr/etc/install | |
1412 | # IRIX /sbin/install | |
1413 | # AIX /bin/install | |
1414 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
1415 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
1416 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
1417 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
1418 | # OS/2's system install, which has a completely different semantic | |
1419 | # ./install, which can be erroneously created by make from ./install.sh. | |
1420 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
1421 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
1422 | if test -z "$INSTALL"; then | |
1423 | if test "${ac_cv_path_install+set}" = set; then | |
1424 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1425 | else | |
1426 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1427 | for as_dir in $PATH | |
1428 | do | |
1429 | IFS=$as_save_IFS | |
1430 | test -z "$as_dir" && as_dir=. | |
1431 | # Account for people who put trailing slashes in PATH elements. | |
1432 | case $as_dir/ in | |
1433 | ./ | .// | /cC/* | \ | |
1434 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
1435 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
1436 | /usr/ucb/* ) ;; | |
1437 | *) | |
1438 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
1439 | # Don't use installbsd from OSF since it installs stuff as root | |
1440 | # by default. | |
1441 | for ac_prog in ginstall scoinst install; do | |
1442 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1443 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
1444 | if test $ac_prog = install && | |
1445 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
1446 | # AIX install. It has an incompatible calling convention. | |
1447 | : | |
1448 | elif test $ac_prog = install && | |
1449 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
1450 | # program-specific install script used by HP pwplus--don't use. | |
1451 | : | |
1452 | else | |
1453 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
1454 | break 3 | |
1455 | fi | |
1456 | fi | |
1457 | done | |
1458 | done | |
1459 | ;; | |
1460 | esac | |
1461 | done | |
1462 | ||
1463 | ||
1464 | fi | |
1465 | if test "${ac_cv_path_install+set}" = set; then | |
1466 | INSTALL=$ac_cv_path_install | |
1467 | else | |
1468 | # As a last resort, use the slow shell script. We don't cache a | |
1469 | # path for INSTALL within a source directory, because that will | |
1470 | # break other packages using the cache if that directory is | |
1471 | # removed, or if the path is relative. | |
1472 | INSTALL=$ac_install_sh | |
1473 | fi | |
1474 | fi | |
1475 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
1476 | echo "${ECHO_T}$INSTALL" >&6 | |
1477 | ||
1478 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
1479 | # It thinks the first close brace ends the variable substitution. | |
1480 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
1481 | ||
1482 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
1483 | ||
1484 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
1485 | ||
1486 | echo "$as_me:$LINENO: checking whether build environment is sane" >&5 | |
1487 | echo $ECHO_N "checking whether build environment is sane... $ECHO_C" >&6 | |
1488 | # Just in case | |
1489 | sleep 1 | |
1490 | echo timestamp > conftest.file | |
1491 | # Do `set' in a subshell so we don't clobber the current shell's | |
1492 | # arguments. Must try -L first in case configure is actually a | |
1493 | # symlink; some systems play weird games with the mod time of symlinks | |
1494 | # (eg FreeBSD returns the mod time of the symlink's containing | |
1495 | # directory). | |
1496 | if ( | |
1497 | set X `ls -Lt $srcdir/configure conftest.file 2> /dev/null` | |
1498 | if test "$*" = "X"; then | |
1499 | # -L didn't work. | |
1500 | set X `ls -t $srcdir/configure conftest.file` | |
1501 | fi | |
1502 | rm -f conftest.file | |
1503 | if test "$*" != "X $srcdir/configure conftest.file" \ | |
1504 | && test "$*" != "X conftest.file $srcdir/configure"; then | |
1505 | ||
1506 | # If neither matched, then we have a broken ls. This can happen | |
1507 | # if, for instance, CONFIG_SHELL is bash and it inherits a | |
1508 | # broken ls alias from the environment. This has actually | |
1509 | # happened. Such a system could not be considered "sane". | |
1510 | { { echo "$as_me:$LINENO: error: ls -t appears to fail. Make sure there is not a broken | |
1511 | alias in your environment" >&5 | |
1512 | echo "$as_me: error: ls -t appears to fail. Make sure there is not a broken | |
1513 | alias in your environment" >&2;} | |
1514 | { (exit 1); exit 1; }; } | |
1515 | fi | |
1516 | ||
1517 | test "$2" = conftest.file | |
1518 | ) | |
1519 | then | |
1520 | # Ok. | |
1521 | : | |
1522 | else | |
1523 | { { echo "$as_me:$LINENO: error: newly created file is older than distributed files! | |
1524 | Check your system clock" >&5 | |
1525 | echo "$as_me: error: newly created file is older than distributed files! | |
1526 | Check your system clock" >&2;} | |
1527 | { (exit 1); exit 1; }; } | |
1528 | fi | |
1529 | echo "$as_me:$LINENO: result: yes" >&5 | |
1530 | echo "${ECHO_T}yes" >&6 | |
1531 | test "$program_prefix" != NONE && | |
1532 | program_transform_name="s,^,$program_prefix,;$program_transform_name" | |
1533 | # Use a double $ so make ignores it. | |
1534 | test "$program_suffix" != NONE && | |
1535 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" | |
1536 | # Double any \ or $. echo might interpret backslashes. | |
1537 | # By default was `s,x,x', remove it if useless. | |
1538 | cat <<\_ACEOF >conftest.sed | |
1539 | s/[\\$]/&&/g;s/;s,x,x,$// | |
1540 | _ACEOF | |
1541 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` | |
1542 | rm conftest.sed | |
1543 | ||
1544 | # expand $ac_aux_dir to an absolute path | |
1545 | am_aux_dir=`cd $ac_aux_dir && pwd` | |
1546 | ||
1547 | test x"${MISSING+set}" = xset || MISSING="\${SHELL} $am_aux_dir/missing" | |
1548 | # Use eval to expand $SHELL | |
1549 | if eval "$MISSING --run true"; then | |
1550 | am_missing_run="$MISSING --run " | |
1551 | else | |
1552 | am_missing_run= | |
1553 | { echo "$as_me:$LINENO: WARNING: \`missing' script is too old or missing" >&5 | |
1554 | echo "$as_me: WARNING: \`missing' script is too old or missing" >&2;} | |
1555 | fi | |
1556 | ||
1557 | if mkdir -p --version . >/dev/null 2>&1 && test ! -d ./--version; then | |
1558 | # We used to keeping the `.' as first argument, in order to | |
1559 | # allow $(mkdir_p) to be used without argument. As in | |
1560 | # $(mkdir_p) $(somedir) | |
1561 | # where $(somedir) is conditionally defined. However this is wrong | |
1562 | # for two reasons: | |
1563 | # 1. if the package is installed by a user who cannot write `.' | |
1564 | # make install will fail, | |
1565 | # 2. the above comment should most certainly read | |
1566 | # $(mkdir_p) $(DESTDIR)$(somedir) | |
1567 | # so it does not work when $(somedir) is undefined and | |
1568 | # $(DESTDIR) is not. | |
1569 | # To support the latter case, we have to write | |
1570 | # test -z "$(somedir)" || $(mkdir_p) $(DESTDIR)$(somedir), | |
1571 | # so the `.' trick is pointless. | |
1572 | mkdir_p='mkdir -p --' | |
1573 | else | |
1574 | # On NextStep and OpenStep, the `mkdir' command does not | |
1575 | # recognize any option. It will interpret all options as | |
1576 | # directories to create, and then abort because `.' already | |
1577 | # exists. | |
1578 | for d in ./-p ./--version; | |
1579 | do | |
1580 | test -d $d && rmdir $d | |
1581 | done | |
1582 | # $(mkinstalldirs) is defined by Automake if mkinstalldirs exists. | |
1583 | if test -f "$ac_aux_dir/mkinstalldirs"; then | |
1584 | mkdir_p='$(mkinstalldirs)' | |
1585 | else | |
1586 | mkdir_p='$(install_sh) -d' | |
1587 | fi | |
1588 | fi | |
1589 | ||
1590 | for ac_prog in gawk mawk nawk awk | |
1591 | do | |
1592 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1593 | set dummy $ac_prog; ac_word=$2 | |
1594 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1595 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1596 | if test "${ac_cv_prog_AWK+set}" = set; then | |
1597 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1598 | else | |
1599 | if test -n "$AWK"; then | |
1600 | ac_cv_prog_AWK="$AWK" # Let the user override the test. | |
1601 | else | |
1602 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1603 | for as_dir in $PATH | |
1604 | do | |
1605 | IFS=$as_save_IFS | |
1606 | test -z "$as_dir" && as_dir=. | |
1607 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1608 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1609 | ac_cv_prog_AWK="$ac_prog" | |
1610 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1611 | break 2 | |
1612 | fi | |
1613 | done | |
1614 | done | |
1615 | ||
1616 | fi | |
1617 | fi | |
1618 | AWK=$ac_cv_prog_AWK | |
1619 | if test -n "$AWK"; then | |
1620 | echo "$as_me:$LINENO: result: $AWK" >&5 | |
1621 | echo "${ECHO_T}$AWK" >&6 | |
1622 | else | |
1623 | echo "$as_me:$LINENO: result: no" >&5 | |
1624 | echo "${ECHO_T}no" >&6 | |
1625 | fi | |
1626 | ||
1627 | test -n "$AWK" && break | |
1628 | done | |
1629 | ||
1630 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
1631 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
1632 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` | |
1633 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then | |
1634 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1635 | else | |
1636 | cat >conftest.make <<\_ACEOF | |
1637 | all: | |
1638 | @echo 'ac_maketemp="$(MAKE)"' | |
1639 | _ACEOF | |
1640 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
1641 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
1642 | if test -n "$ac_maketemp"; then | |
1643 | eval ac_cv_prog_make_${ac_make}_set=yes | |
1644 | else | |
1645 | eval ac_cv_prog_make_${ac_make}_set=no | |
1646 | fi | |
1647 | rm -f conftest.make | |
1648 | fi | |
1649 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
1650 | echo "$as_me:$LINENO: result: yes" >&5 | |
1651 | echo "${ECHO_T}yes" >&6 | |
1652 | SET_MAKE= | |
1653 | else | |
1654 | echo "$as_me:$LINENO: result: no" >&5 | |
1655 | echo "${ECHO_T}no" >&6 | |
1656 | SET_MAKE="MAKE=${MAKE-make}" | |
1657 | fi | |
1658 | ||
1659 | rm -rf .tst 2>/dev/null | |
1660 | mkdir .tst 2>/dev/null | |
1661 | if test -d .tst; then | |
1662 | am__leading_dot=. | |
1663 | else | |
1664 | am__leading_dot=_ | |
1665 | fi | |
1666 | rmdir .tst 2>/dev/null | |
1667 | ||
1668 | # test to see if srcdir already configured | |
1669 | if test "`cd $srcdir && pwd`" != "`pwd`" && | |
1670 | test -f $srcdir/config.status; then | |
1671 | { { echo "$as_me:$LINENO: error: source directory already configured; run \"make distclean\" there first" >&5 | |
1672 | echo "$as_me: error: source directory already configured; run \"make distclean\" there first" >&2;} | |
1673 | { (exit 1); exit 1; }; } | |
1674 | fi | |
1675 | ||
1676 | # test whether we have cygpath | |
1677 | if test -z "$CYGPATH_W"; then | |
1678 | if (cygpath --version) >/dev/null 2>/dev/null; then | |
1679 | CYGPATH_W='cygpath -w' | |
1680 | else | |
1681 | CYGPATH_W=echo | |
1682 | fi | |
1683 | fi | |
1684 | ||
1685 | ||
1686 | # Define the identity of the package. | |
1687 | PACKAGE='smartmontools' | |
1688 | VERSION='5.36' | |
1689 | ||
1690 | ||
1691 | cat >>confdefs.h <<_ACEOF | |
1692 | #define PACKAGE "$PACKAGE" | |
1693 | _ACEOF | |
1694 | ||
1695 | ||
1696 | cat >>confdefs.h <<_ACEOF | |
1697 | #define VERSION "$VERSION" | |
1698 | _ACEOF | |
1699 | ||
1700 | # Some tools Automake needs. | |
1701 | ||
1702 | ACLOCAL=${ACLOCAL-"${am_missing_run}aclocal-${am__api_version}"} | |
1703 | ||
1704 | ||
1705 | AUTOCONF=${AUTOCONF-"${am_missing_run}autoconf"} | |
1706 | ||
1707 | ||
1708 | AUTOMAKE=${AUTOMAKE-"${am_missing_run}automake-${am__api_version}"} | |
1709 | ||
1710 | ||
1711 | AUTOHEADER=${AUTOHEADER-"${am_missing_run}autoheader"} | |
1712 | ||
1713 | ||
1714 | MAKEINFO=${MAKEINFO-"${am_missing_run}makeinfo"} | |
1715 | ||
1716 | install_sh=${install_sh-"$am_aux_dir/install-sh"} | |
1717 | ||
1718 | # Installed binaries are usually stripped using `strip' when the user | |
1719 | # run `make install-strip'. However `strip' might not be the right | |
1720 | # tool to use in cross-compilation environments, therefore Automake | |
1721 | # will honor the `STRIP' environment variable to overrule this program. | |
1722 | if test "$cross_compiling" != no; then | |
1723 | if test -n "$ac_tool_prefix"; then | |
1724 | # Extract the first word of "${ac_tool_prefix}strip", so it can be a program name with args. | |
1725 | set dummy ${ac_tool_prefix}strip; ac_word=$2 | |
1726 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1727 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1728 | if test "${ac_cv_prog_STRIP+set}" = set; then | |
1729 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1730 | else | |
1731 | if test -n "$STRIP"; then | |
1732 | ac_cv_prog_STRIP="$STRIP" # Let the user override the test. | |
1733 | else | |
1734 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1735 | for as_dir in $PATH | |
1736 | do | |
1737 | IFS=$as_save_IFS | |
1738 | test -z "$as_dir" && as_dir=. | |
1739 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1740 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1741 | ac_cv_prog_STRIP="${ac_tool_prefix}strip" | |
1742 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1743 | break 2 | |
1744 | fi | |
1745 | done | |
1746 | done | |
1747 | ||
1748 | fi | |
1749 | fi | |
1750 | STRIP=$ac_cv_prog_STRIP | |
1751 | if test -n "$STRIP"; then | |
1752 | echo "$as_me:$LINENO: result: $STRIP" >&5 | |
1753 | echo "${ECHO_T}$STRIP" >&6 | |
1754 | else | |
1755 | echo "$as_me:$LINENO: result: no" >&5 | |
1756 | echo "${ECHO_T}no" >&6 | |
1757 | fi | |
1758 | ||
1759 | fi | |
1760 | if test -z "$ac_cv_prog_STRIP"; then | |
1761 | ac_ct_STRIP=$STRIP | |
1762 | # Extract the first word of "strip", so it can be a program name with args. | |
1763 | set dummy strip; ac_word=$2 | |
1764 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1765 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1766 | if test "${ac_cv_prog_ac_ct_STRIP+set}" = set; then | |
1767 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1768 | else | |
1769 | if test -n "$ac_ct_STRIP"; then | |
1770 | ac_cv_prog_ac_ct_STRIP="$ac_ct_STRIP" # Let the user override the test. | |
1771 | else | |
1772 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1773 | for as_dir in $PATH | |
1774 | do | |
1775 | IFS=$as_save_IFS | |
1776 | test -z "$as_dir" && as_dir=. | |
1777 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1778 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1779 | ac_cv_prog_ac_ct_STRIP="strip" | |
1780 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1781 | break 2 | |
1782 | fi | |
1783 | done | |
1784 | done | |
1785 | ||
1786 | test -z "$ac_cv_prog_ac_ct_STRIP" && ac_cv_prog_ac_ct_STRIP=":" | |
1787 | fi | |
1788 | fi | |
1789 | ac_ct_STRIP=$ac_cv_prog_ac_ct_STRIP | |
1790 | if test -n "$ac_ct_STRIP"; then | |
1791 | echo "$as_me:$LINENO: result: $ac_ct_STRIP" >&5 | |
1792 | echo "${ECHO_T}$ac_ct_STRIP" >&6 | |
1793 | else | |
1794 | echo "$as_me:$LINENO: result: no" >&5 | |
1795 | echo "${ECHO_T}no" >&6 | |
1796 | fi | |
1797 | ||
1798 | STRIP=$ac_ct_STRIP | |
1799 | else | |
1800 | STRIP="$ac_cv_prog_STRIP" | |
1801 | fi | |
1802 | ||
1803 | fi | |
1804 | INSTALL_STRIP_PROGRAM="\${SHELL} \$(install_sh) -c -s" | |
1805 | ||
1806 | # We need awk for the "check" target. The system "awk" is bad on | |
1807 | # some platforms. | |
1808 | # Always define AMTAR for backward compatibility. | |
1809 | ||
1810 | AMTAR=${AMTAR-"${am_missing_run}tar"} | |
1811 | ||
1812 | am__tar='${AMTAR} chof - "$$tardir"'; am__untar='${AMTAR} xf -' | |
1813 | ||
1814 | ||
1815 | ||
1816 | ||
1817 | ||
1818 | ||
1819 | echo "$as_me:$LINENO: checking whether to enable maintainer-specific portions of Makefiles" >&5 | |
1820 | echo $ECHO_N "checking whether to enable maintainer-specific portions of Makefiles... $ECHO_C" >&6 | |
1821 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. | |
1822 | if test "${enable_maintainer_mode+set}" = set; then | |
1823 | enableval="$enable_maintainer_mode" | |
1824 | USE_MAINTAINER_MODE=$enableval | |
1825 | else | |
1826 | USE_MAINTAINER_MODE=no | |
1827 | fi; | |
1828 | echo "$as_me:$LINENO: result: $USE_MAINTAINER_MODE" >&5 | |
1829 | echo "${ECHO_T}$USE_MAINTAINER_MODE" >&6 | |
1830 | ||
1831 | ||
1832 | if test $USE_MAINTAINER_MODE = yes; then | |
1833 | MAINTAINER_MODE_TRUE= | |
1834 | MAINTAINER_MODE_FALSE='#' | |
1835 | else | |
1836 | MAINTAINER_MODE_TRUE='#' | |
1837 | MAINTAINER_MODE_FALSE= | |
1838 | fi | |
1839 | ||
1840 | MAINT=$MAINTAINER_MODE_TRUE | |
1841 | ||
1842 | ||
1843 | ||
1844 | ac_ext=c | |
1845 | ac_cpp='$CPP $CPPFLAGS' | |
1846 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1847 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1848 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1849 | ||
1850 | ac_ext=c | |
1851 | ac_cpp='$CPP $CPPFLAGS' | |
1852 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1853 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1854 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1855 | if test -n "$ac_tool_prefix"; then | |
1856 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
1857 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
1858 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1859 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1860 | if test "${ac_cv_prog_CC+set}" = set; then | |
1861 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1862 | else | |
1863 | if test -n "$CC"; then | |
1864 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1865 | else | |
1866 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1867 | for as_dir in $PATH | |
1868 | do | |
1869 | IFS=$as_save_IFS | |
1870 | test -z "$as_dir" && as_dir=. | |
1871 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1872 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1873 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
1874 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1875 | break 2 | |
1876 | fi | |
1877 | done | |
1878 | done | |
1879 | ||
1880 | fi | |
1881 | fi | |
1882 | CC=$ac_cv_prog_CC | |
1883 | if test -n "$CC"; then | |
1884 | echo "$as_me:$LINENO: result: $CC" >&5 | |
1885 | echo "${ECHO_T}$CC" >&6 | |
1886 | else | |
1887 | echo "$as_me:$LINENO: result: no" >&5 | |
1888 | echo "${ECHO_T}no" >&6 | |
1889 | fi | |
1890 | ||
1891 | fi | |
1892 | if test -z "$ac_cv_prog_CC"; then | |
1893 | ac_ct_CC=$CC | |
1894 | # Extract the first word of "gcc", so it can be a program name with args. | |
1895 | set dummy gcc; ac_word=$2 | |
1896 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1897 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1898 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1899 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1900 | else | |
1901 | if test -n "$ac_ct_CC"; then | |
1902 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1903 | else | |
1904 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1905 | for as_dir in $PATH | |
1906 | do | |
1907 | IFS=$as_save_IFS | |
1908 | test -z "$as_dir" && as_dir=. | |
1909 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1910 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1911 | ac_cv_prog_ac_ct_CC="gcc" | |
1912 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1913 | break 2 | |
1914 | fi | |
1915 | done | |
1916 | done | |
1917 | ||
1918 | fi | |
1919 | fi | |
1920 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1921 | if test -n "$ac_ct_CC"; then | |
1922 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1923 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1924 | else | |
1925 | echo "$as_me:$LINENO: result: no" >&5 | |
1926 | echo "${ECHO_T}no" >&6 | |
1927 | fi | |
1928 | ||
1929 | CC=$ac_ct_CC | |
1930 | else | |
1931 | CC="$ac_cv_prog_CC" | |
1932 | fi | |
1933 | ||
1934 | if test -z "$CC"; then | |
1935 | if test -n "$ac_tool_prefix"; then | |
1936 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
1937 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
1938 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1939 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1940 | if test "${ac_cv_prog_CC+set}" = set; then | |
1941 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1942 | else | |
1943 | if test -n "$CC"; then | |
1944 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1945 | else | |
1946 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1947 | for as_dir in $PATH | |
1948 | do | |
1949 | IFS=$as_save_IFS | |
1950 | test -z "$as_dir" && as_dir=. | |
1951 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1952 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1953 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
1954 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1955 | break 2 | |
1956 | fi | |
1957 | done | |
1958 | done | |
1959 | ||
1960 | fi | |
1961 | fi | |
1962 | CC=$ac_cv_prog_CC | |
1963 | if test -n "$CC"; then | |
1964 | echo "$as_me:$LINENO: result: $CC" >&5 | |
1965 | echo "${ECHO_T}$CC" >&6 | |
1966 | else | |
1967 | echo "$as_me:$LINENO: result: no" >&5 | |
1968 | echo "${ECHO_T}no" >&6 | |
1969 | fi | |
1970 | ||
1971 | fi | |
1972 | if test -z "$ac_cv_prog_CC"; then | |
1973 | ac_ct_CC=$CC | |
1974 | # Extract the first word of "cc", so it can be a program name with args. | |
1975 | set dummy cc; ac_word=$2 | |
1976 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1977 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1978 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1979 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1980 | else | |
1981 | if test -n "$ac_ct_CC"; then | |
1982 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1983 | else | |
1984 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1985 | for as_dir in $PATH | |
1986 | do | |
1987 | IFS=$as_save_IFS | |
1988 | test -z "$as_dir" && as_dir=. | |
1989 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1990 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1991 | ac_cv_prog_ac_ct_CC="cc" | |
1992 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1993 | break 2 | |
1994 | fi | |
1995 | done | |
1996 | done | |
1997 | ||
1998 | fi | |
1999 | fi | |
2000 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2001 | if test -n "$ac_ct_CC"; then | |
2002 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
2003 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
2004 | else | |
2005 | echo "$as_me:$LINENO: result: no" >&5 | |
2006 | echo "${ECHO_T}no" >&6 | |
2007 | fi | |
2008 | ||
2009 | CC=$ac_ct_CC | |
2010 | else | |
2011 | CC="$ac_cv_prog_CC" | |
2012 | fi | |
2013 | ||
2014 | fi | |
2015 | if test -z "$CC"; then | |
2016 | # Extract the first word of "cc", so it can be a program name with args. | |
2017 | set dummy cc; ac_word=$2 | |
2018 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2019 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2020 | if test "${ac_cv_prog_CC+set}" = set; then | |
2021 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2022 | else | |
2023 | if test -n "$CC"; then | |
2024 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2025 | else | |
2026 | ac_prog_rejected=no | |
2027 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2028 | for as_dir in $PATH | |
2029 | do | |
2030 | IFS=$as_save_IFS | |
2031 | test -z "$as_dir" && as_dir=. | |
2032 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2033 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2034 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
2035 | ac_prog_rejected=yes | |
2036 | continue | |
2037 | fi | |
2038 | ac_cv_prog_CC="cc" | |
2039 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2040 | break 2 | |
2041 | fi | |
2042 | done | |
2043 | done | |
2044 | ||
2045 | if test $ac_prog_rejected = yes; then | |
2046 | # We found a bogon in the path, so make sure we never use it. | |
2047 | set dummy $ac_cv_prog_CC | |
2048 | shift | |
2049 | if test $# != 0; then | |
2050 | # We chose a different compiler from the bogus one. | |
2051 | # However, it has the same basename, so the bogon will be chosen | |
2052 | # first if we set CC to just the basename; use the full file name. | |
2053 | shift | |
2054 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
2055 | fi | |
2056 | fi | |
2057 | fi | |
2058 | fi | |
2059 | CC=$ac_cv_prog_CC | |
2060 | if test -n "$CC"; then | |
2061 | echo "$as_me:$LINENO: result: $CC" >&5 | |
2062 | echo "${ECHO_T}$CC" >&6 | |
2063 | else | |
2064 | echo "$as_me:$LINENO: result: no" >&5 | |
2065 | echo "${ECHO_T}no" >&6 | |
2066 | fi | |
2067 | ||
2068 | fi | |
2069 | if test -z "$CC"; then | |
2070 | if test -n "$ac_tool_prefix"; then | |
2071 | for ac_prog in cl | |
2072 | do | |
2073 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
2074 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
2075 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2076 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2077 | if test "${ac_cv_prog_CC+set}" = set; then | |
2078 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2079 | else | |
2080 | if test -n "$CC"; then | |
2081 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
2082 | else | |
2083 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2084 | for as_dir in $PATH | |
2085 | do | |
2086 | IFS=$as_save_IFS | |
2087 | test -z "$as_dir" && as_dir=. | |
2088 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2089 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2090 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
2091 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2092 | break 2 | |
2093 | fi | |
2094 | done | |
2095 | done | |
2096 | ||
2097 | fi | |
2098 | fi | |
2099 | CC=$ac_cv_prog_CC | |
2100 | if test -n "$CC"; then | |
2101 | echo "$as_me:$LINENO: result: $CC" >&5 | |
2102 | echo "${ECHO_T}$CC" >&6 | |
2103 | else | |
2104 | echo "$as_me:$LINENO: result: no" >&5 | |
2105 | echo "${ECHO_T}no" >&6 | |
2106 | fi | |
2107 | ||
2108 | test -n "$CC" && break | |
2109 | done | |
2110 | fi | |
2111 | if test -z "$CC"; then | |
2112 | ac_ct_CC=$CC | |
2113 | for ac_prog in cl | |
2114 | do | |
2115 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
2116 | set dummy $ac_prog; ac_word=$2 | |
2117 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2118 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2119 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
2120 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2121 | else | |
2122 | if test -n "$ac_ct_CC"; then | |
2123 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
2124 | else | |
2125 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2126 | for as_dir in $PATH | |
2127 | do | |
2128 | IFS=$as_save_IFS | |
2129 | test -z "$as_dir" && as_dir=. | |
2130 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2131 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2132 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
2133 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2134 | break 2 | |
2135 | fi | |
2136 | done | |
2137 | done | |
2138 | ||
2139 | fi | |
2140 | fi | |
2141 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
2142 | if test -n "$ac_ct_CC"; then | |
2143 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
2144 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
2145 | else | |
2146 | echo "$as_me:$LINENO: result: no" >&5 | |
2147 | echo "${ECHO_T}no" >&6 | |
2148 | fi | |
2149 | ||
2150 | test -n "$ac_ct_CC" && break | |
2151 | done | |
2152 | ||
2153 | CC=$ac_ct_CC | |
2154 | fi | |
2155 | ||
2156 | fi | |
2157 | ||
2158 | ||
2159 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
2160 | See \`config.log' for more details." >&5 | |
2161 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
2162 | See \`config.log' for more details." >&2;} | |
2163 | { (exit 1); exit 1; }; } | |
2164 | ||
2165 | # Provide some information about the compiler. | |
2166 | echo "$as_me:$LINENO:" \ | |
2167 | "checking for C compiler version" >&5 | |
2168 | ac_compiler=`set X $ac_compile; echo $2` | |
2169 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
2170 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
2171 | ac_status=$? | |
2172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2173 | (exit $ac_status); } | |
2174 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
2175 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
2176 | ac_status=$? | |
2177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2178 | (exit $ac_status); } | |
2179 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
2180 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
2181 | ac_status=$? | |
2182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2183 | (exit $ac_status); } | |
2184 | ||
2185 | cat >conftest.$ac_ext <<_ACEOF | |
2186 | /* confdefs.h. */ | |
2187 | _ACEOF | |
2188 | cat confdefs.h >>conftest.$ac_ext | |
2189 | cat >>conftest.$ac_ext <<_ACEOF | |
2190 | /* end confdefs.h. */ | |
2191 | ||
2192 | int | |
2193 | main () | |
2194 | { | |
2195 | ||
2196 | ; | |
2197 | return 0; | |
2198 | } | |
2199 | _ACEOF | |
2200 | ac_clean_files_save=$ac_clean_files | |
2201 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
2202 | # Try to create an executable without -o first, disregard a.out. | |
2203 | # It will help us diagnose broken compilers, and finding out an intuition | |
2204 | # of exeext. | |
2205 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 | |
2206 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | |
2207 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
2208 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | |
2209 | (eval $ac_link_default) 2>&5 | |
2210 | ac_status=$? | |
2211 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2212 | (exit $ac_status); }; then | |
2213 | # Find the output, starting from the most likely. This scheme is | |
2214 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
2215 | # resort. | |
2216 | ||
2217 | # Be careful to initialize this variable, since it used to be cached. | |
2218 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
2219 | ac_cv_exeext= | |
2220 | # b.out is created by i960 compilers. | |
2221 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
2222 | do | |
2223 | test -f "$ac_file" || continue | |
2224 | case $ac_file in | |
2225 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) | |
2226 | ;; | |
2227 | conftest.$ac_ext ) | |
2228 | # This is the source file. | |
2229 | ;; | |
2230 | [ab].out ) | |
2231 | # We found the default executable, but exeext='' is most | |
2232 | # certainly right. | |
2233 | break;; | |
2234 | *.* ) | |
2235 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2236 | # FIXME: I believe we export ac_cv_exeext for Libtool, | |
2237 | # but it would be cool to find out if it's true. Does anybody | |
2238 | # maintain Libtool? --akim. | |
2239 | export ac_cv_exeext | |
2240 | break;; | |
2241 | * ) | |
2242 | break;; | |
2243 | esac | |
2244 | done | |
2245 | else | |
2246 | echo "$as_me: failed program was:" >&5 | |
2247 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2248 | ||
2249 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
2250 | See \`config.log' for more details." >&5 | |
2251 | echo "$as_me: error: C compiler cannot create executables | |
2252 | See \`config.log' for more details." >&2;} | |
2253 | { (exit 77); exit 77; }; } | |
2254 | fi | |
2255 | ||
2256 | ac_exeext=$ac_cv_exeext | |
2257 | echo "$as_me:$LINENO: result: $ac_file" >&5 | |
2258 | echo "${ECHO_T}$ac_file" >&6 | |
2259 | ||
2260 | # Check the compiler produces executables we can run. If not, either | |
2261 | # the compiler is broken, or we cross compile. | |
2262 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
2263 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
2264 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
2265 | # If not cross compiling, check that we can run a simple program. | |
2266 | if test "$cross_compiling" != yes; then | |
2267 | if { ac_try='./$ac_file' | |
2268 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2269 | (eval $ac_try) 2>&5 | |
2270 | ac_status=$? | |
2271 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2272 | (exit $ac_status); }; }; then | |
2273 | cross_compiling=no | |
2274 | else | |
2275 | if test "$cross_compiling" = maybe; then | |
2276 | cross_compiling=yes | |
2277 | else | |
2278 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
2279 | If you meant to cross compile, use \`--host'. | |
2280 | See \`config.log' for more details." >&5 | |
2281 | echo "$as_me: error: cannot run C compiled programs. | |
2282 | If you meant to cross compile, use \`--host'. | |
2283 | See \`config.log' for more details." >&2;} | |
2284 | { (exit 1); exit 1; }; } | |
2285 | fi | |
2286 | fi | |
2287 | fi | |
2288 | echo "$as_me:$LINENO: result: yes" >&5 | |
2289 | echo "${ECHO_T}yes" >&6 | |
2290 | ||
2291 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
2292 | ac_clean_files=$ac_clean_files_save | |
2293 | # Check the compiler produces executables we can run. If not, either | |
2294 | # the compiler is broken, or we cross compile. | |
2295 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
2296 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
2297 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
2298 | echo "${ECHO_T}$cross_compiling" >&6 | |
2299 | ||
2300 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
2301 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
2302 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2303 | (eval $ac_link) 2>&5 | |
2304 | ac_status=$? | |
2305 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2306 | (exit $ac_status); }; then | |
2307 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
2308 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
2309 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
2310 | # `rm'. | |
2311 | for ac_file in conftest.exe conftest conftest.*; do | |
2312 | test -f "$ac_file" || continue | |
2313 | case $ac_file in | |
2314 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | |
2315 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
2316 | export ac_cv_exeext | |
2317 | break;; | |
2318 | * ) break;; | |
2319 | esac | |
2320 | done | |
2321 | else | |
2322 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link | |
2323 | See \`config.log' for more details." >&5 | |
2324 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
2325 | See \`config.log' for more details." >&2;} | |
2326 | { (exit 1); exit 1; }; } | |
2327 | fi | |
2328 | ||
2329 | rm -f conftest$ac_cv_exeext | |
2330 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
2331 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
2332 | ||
2333 | rm -f conftest.$ac_ext | |
2334 | EXEEXT=$ac_cv_exeext | |
2335 | ac_exeext=$EXEEXT | |
2336 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
2337 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
2338 | if test "${ac_cv_objext+set}" = set; then | |
2339 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2340 | else | |
2341 | cat >conftest.$ac_ext <<_ACEOF | |
2342 | /* confdefs.h. */ | |
2343 | _ACEOF | |
2344 | cat confdefs.h >>conftest.$ac_ext | |
2345 | cat >>conftest.$ac_ext <<_ACEOF | |
2346 | /* end confdefs.h. */ | |
2347 | ||
2348 | int | |
2349 | main () | |
2350 | { | |
2351 | ||
2352 | ; | |
2353 | return 0; | |
2354 | } | |
2355 | _ACEOF | |
2356 | rm -f conftest.o conftest.obj | |
2357 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2358 | (eval $ac_compile) 2>&5 | |
2359 | ac_status=$? | |
2360 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2361 | (exit $ac_status); }; then | |
2362 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
2363 | case $ac_file in | |
2364 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; | |
2365 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
2366 | break;; | |
2367 | esac | |
2368 | done | |
2369 | else | |
2370 | echo "$as_me: failed program was:" >&5 | |
2371 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2372 | ||
2373 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile | |
2374 | See \`config.log' for more details." >&5 | |
2375 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
2376 | See \`config.log' for more details." >&2;} | |
2377 | { (exit 1); exit 1; }; } | |
2378 | fi | |
2379 | ||
2380 | rm -f conftest.$ac_cv_objext conftest.$ac_ext | |
2381 | fi | |
2382 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
2383 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
2384 | OBJEXT=$ac_cv_objext | |
2385 | ac_objext=$OBJEXT | |
2386 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
2387 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
2388 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
2389 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2390 | else | |
2391 | cat >conftest.$ac_ext <<_ACEOF | |
2392 | /* confdefs.h. */ | |
2393 | _ACEOF | |
2394 | cat confdefs.h >>conftest.$ac_ext | |
2395 | cat >>conftest.$ac_ext <<_ACEOF | |
2396 | /* end confdefs.h. */ | |
2397 | ||
2398 | int | |
2399 | main () | |
2400 | { | |
2401 | #ifndef __GNUC__ | |
2402 | choke me | |
2403 | #endif | |
2404 | ||
2405 | ; | |
2406 | return 0; | |
2407 | } | |
2408 | _ACEOF | |
2409 | rm -f conftest.$ac_objext | |
2410 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2411 | (eval $ac_compile) 2>conftest.er1 | |
2412 | ac_status=$? | |
2413 | grep -v '^ *+' conftest.er1 >conftest.err | |
2414 | rm -f conftest.er1 | |
2415 | cat conftest.err >&5 | |
2416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2417 | (exit $ac_status); } && | |
2418 | { ac_try='test -z "$ac_c_werror_flag" | |
2419 | || test ! -s conftest.err' | |
2420 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2421 | (eval $ac_try) 2>&5 | |
2422 | ac_status=$? | |
2423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2424 | (exit $ac_status); }; } && | |
2425 | { ac_try='test -s conftest.$ac_objext' | |
2426 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2427 | (eval $ac_try) 2>&5 | |
2428 | ac_status=$? | |
2429 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2430 | (exit $ac_status); }; }; then | |
2431 | ac_compiler_gnu=yes | |
2432 | else | |
2433 | echo "$as_me: failed program was:" >&5 | |
2434 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2435 | ||
2436 | ac_compiler_gnu=no | |
2437 | fi | |
2438 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2439 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
2440 | ||
2441 | fi | |
2442 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
2443 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
2444 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
2445 | ac_test_CFLAGS=${CFLAGS+set} | |
2446 | ac_save_CFLAGS=$CFLAGS | |
2447 | CFLAGS="-g" | |
2448 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
2449 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
2450 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
2451 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2452 | else | |
2453 | cat >conftest.$ac_ext <<_ACEOF | |
2454 | /* confdefs.h. */ | |
2455 | _ACEOF | |
2456 | cat confdefs.h >>conftest.$ac_ext | |
2457 | cat >>conftest.$ac_ext <<_ACEOF | |
2458 | /* end confdefs.h. */ | |
2459 | ||
2460 | int | |
2461 | main () | |
2462 | { | |
2463 | ||
2464 | ; | |
2465 | return 0; | |
2466 | } | |
2467 | _ACEOF | |
2468 | rm -f conftest.$ac_objext | |
2469 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2470 | (eval $ac_compile) 2>conftest.er1 | |
2471 | ac_status=$? | |
2472 | grep -v '^ *+' conftest.er1 >conftest.err | |
2473 | rm -f conftest.er1 | |
2474 | cat conftest.err >&5 | |
2475 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2476 | (exit $ac_status); } && | |
2477 | { ac_try='test -z "$ac_c_werror_flag" | |
2478 | || test ! -s conftest.err' | |
2479 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2480 | (eval $ac_try) 2>&5 | |
2481 | ac_status=$? | |
2482 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2483 | (exit $ac_status); }; } && | |
2484 | { ac_try='test -s conftest.$ac_objext' | |
2485 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2486 | (eval $ac_try) 2>&5 | |
2487 | ac_status=$? | |
2488 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2489 | (exit $ac_status); }; }; then | |
2490 | ac_cv_prog_cc_g=yes | |
2491 | else | |
2492 | echo "$as_me: failed program was:" >&5 | |
2493 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2494 | ||
2495 | ac_cv_prog_cc_g=no | |
2496 | fi | |
2497 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2498 | fi | |
2499 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
2500 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
2501 | if test "$ac_test_CFLAGS" = set; then | |
2502 | CFLAGS=$ac_save_CFLAGS | |
2503 | elif test $ac_cv_prog_cc_g = yes; then | |
2504 | if test "$GCC" = yes; then | |
2505 | CFLAGS="-g -O2" | |
2506 | else | |
2507 | CFLAGS="-g" | |
2508 | fi | |
2509 | else | |
2510 | if test "$GCC" = yes; then | |
2511 | CFLAGS="-O2" | |
2512 | else | |
2513 | CFLAGS= | |
2514 | fi | |
2515 | fi | |
2516 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 | |
2517 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
2518 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
2519 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2520 | else | |
2521 | ac_cv_prog_cc_stdc=no | |
2522 | ac_save_CC=$CC | |
2523 | cat >conftest.$ac_ext <<_ACEOF | |
2524 | /* confdefs.h. */ | |
2525 | _ACEOF | |
2526 | cat confdefs.h >>conftest.$ac_ext | |
2527 | cat >>conftest.$ac_ext <<_ACEOF | |
2528 | /* end confdefs.h. */ | |
2529 | #include <stdarg.h> | |
2530 | #include <stdio.h> | |
2531 | #include <sys/types.h> | |
2532 | #include <sys/stat.h> | |
2533 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
2534 | struct buf { int x; }; | |
2535 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
2536 | static char *e (p, i) | |
2537 | char **p; | |
2538 | int i; | |
2539 | { | |
2540 | return p[i]; | |
2541 | } | |
2542 | static char *f (char * (*g) (char **, int), char **p, ...) | |
2543 | { | |
2544 | char *s; | |
2545 | va_list v; | |
2546 | va_start (v,p); | |
2547 | s = g (p, va_arg (v,int)); | |
2548 | va_end (v); | |
2549 | return s; | |
2550 | } | |
2551 | ||
2552 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has | |
2553 | function prototypes and stuff, but not '\xHH' hex character constants. | |
2554 | These don't provoke an error unfortunately, instead are silently treated | |
2555 | as 'x'. The following induces an error, until -std1 is added to get | |
2556 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
2557 | array size at least. It's necessary to write '\x00'==0 to get something | |
2558 | that's true only with -std1. */ | |
2559 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
2560 | ||
2561 | int test (int i, double x); | |
2562 | struct s1 {int (*f) (int a);}; | |
2563 | struct s2 {int (*f) (double a);}; | |
2564 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
2565 | int argc; | |
2566 | char **argv; | |
2567 | int | |
2568 | main () | |
2569 | { | |
2570 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
2571 | ; | |
2572 | return 0; | |
2573 | } | |
2574 | _ACEOF | |
2575 | # Don't try gcc -ansi; that turns off useful extensions and | |
2576 | # breaks some systems' header files. | |
2577 | # AIX -qlanglvl=ansi | |
2578 | # Ultrix and OSF/1 -std1 | |
2579 | # HP-UX 10.20 and later -Ae | |
2580 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
2581 | # SVR4 -Xc -D__EXTENSIONS__ | |
2582 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
2583 | do | |
2584 | CC="$ac_save_CC $ac_arg" | |
2585 | rm -f conftest.$ac_objext | |
2586 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2587 | (eval $ac_compile) 2>conftest.er1 | |
2588 | ac_status=$? | |
2589 | grep -v '^ *+' conftest.er1 >conftest.err | |
2590 | rm -f conftest.er1 | |
2591 | cat conftest.err >&5 | |
2592 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2593 | (exit $ac_status); } && | |
2594 | { ac_try='test -z "$ac_c_werror_flag" | |
2595 | || test ! -s conftest.err' | |
2596 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2597 | (eval $ac_try) 2>&5 | |
2598 | ac_status=$? | |
2599 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2600 | (exit $ac_status); }; } && | |
2601 | { ac_try='test -s conftest.$ac_objext' | |
2602 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2603 | (eval $ac_try) 2>&5 | |
2604 | ac_status=$? | |
2605 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2606 | (exit $ac_status); }; }; then | |
2607 | ac_cv_prog_cc_stdc=$ac_arg | |
2608 | break | |
2609 | else | |
2610 | echo "$as_me: failed program was:" >&5 | |
2611 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2612 | ||
2613 | fi | |
2614 | rm -f conftest.err conftest.$ac_objext | |
2615 | done | |
2616 | rm -f conftest.$ac_ext conftest.$ac_objext | |
2617 | CC=$ac_save_CC | |
2618 | ||
2619 | fi | |
2620 | ||
2621 | case "x$ac_cv_prog_cc_stdc" in | |
2622 | x|xno) | |
2623 | echo "$as_me:$LINENO: result: none needed" >&5 | |
2624 | echo "${ECHO_T}none needed" >&6 ;; | |
2625 | *) | |
2626 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
2627 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
2628 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
2629 | esac | |
2630 | ||
2631 | # Some people use a C++ compiler to compile C. Since we use `exit', | |
2632 | # in C++ we need to declare it. In case someone uses the same compiler | |
2633 | # for both compiling C and C++ we need to have the C++ compiler decide | |
2634 | # the declaration of exit, since it's the most demanding environment. | |
2635 | cat >conftest.$ac_ext <<_ACEOF | |
2636 | #ifndef __cplusplus | |
2637 | choke me | |
2638 | #endif | |
2639 | _ACEOF | |
2640 | rm -f conftest.$ac_objext | |
2641 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2642 | (eval $ac_compile) 2>conftest.er1 | |
2643 | ac_status=$? | |
2644 | grep -v '^ *+' conftest.er1 >conftest.err | |
2645 | rm -f conftest.er1 | |
2646 | cat conftest.err >&5 | |
2647 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2648 | (exit $ac_status); } && | |
2649 | { ac_try='test -z "$ac_c_werror_flag" | |
2650 | || test ! -s conftest.err' | |
2651 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2652 | (eval $ac_try) 2>&5 | |
2653 | ac_status=$? | |
2654 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2655 | (exit $ac_status); }; } && | |
2656 | { ac_try='test -s conftest.$ac_objext' | |
2657 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2658 | (eval $ac_try) 2>&5 | |
2659 | ac_status=$? | |
2660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2661 | (exit $ac_status); }; }; then | |
2662 | for ac_declaration in \ | |
2663 | '' \ | |
2664 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
2665 | 'extern "C" void std::exit (int); using std::exit;' \ | |
2666 | 'extern "C" void exit (int) throw ();' \ | |
2667 | 'extern "C" void exit (int);' \ | |
2668 | 'void exit (int);' | |
2669 | do | |
2670 | cat >conftest.$ac_ext <<_ACEOF | |
2671 | /* confdefs.h. */ | |
2672 | _ACEOF | |
2673 | cat confdefs.h >>conftest.$ac_ext | |
2674 | cat >>conftest.$ac_ext <<_ACEOF | |
2675 | /* end confdefs.h. */ | |
2676 | $ac_declaration | |
2677 | #include <stdlib.h> | |
2678 | int | |
2679 | main () | |
2680 | { | |
2681 | exit (42); | |
2682 | ; | |
2683 | return 0; | |
2684 | } | |
2685 | _ACEOF | |
2686 | rm -f conftest.$ac_objext | |
2687 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2688 | (eval $ac_compile) 2>conftest.er1 | |
2689 | ac_status=$? | |
2690 | grep -v '^ *+' conftest.er1 >conftest.err | |
2691 | rm -f conftest.er1 | |
2692 | cat conftest.err >&5 | |
2693 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2694 | (exit $ac_status); } && | |
2695 | { ac_try='test -z "$ac_c_werror_flag" | |
2696 | || test ! -s conftest.err' | |
2697 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2698 | (eval $ac_try) 2>&5 | |
2699 | ac_status=$? | |
2700 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2701 | (exit $ac_status); }; } && | |
2702 | { ac_try='test -s conftest.$ac_objext' | |
2703 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2704 | (eval $ac_try) 2>&5 | |
2705 | ac_status=$? | |
2706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2707 | (exit $ac_status); }; }; then | |
2708 | : | |
2709 | else | |
2710 | echo "$as_me: failed program was:" >&5 | |
2711 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2712 | ||
2713 | continue | |
2714 | fi | |
2715 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2716 | cat >conftest.$ac_ext <<_ACEOF | |
2717 | /* confdefs.h. */ | |
2718 | _ACEOF | |
2719 | cat confdefs.h >>conftest.$ac_ext | |
2720 | cat >>conftest.$ac_ext <<_ACEOF | |
2721 | /* end confdefs.h. */ | |
2722 | $ac_declaration | |
2723 | int | |
2724 | main () | |
2725 | { | |
2726 | exit (42); | |
2727 | ; | |
2728 | return 0; | |
2729 | } | |
2730 | _ACEOF | |
2731 | rm -f conftest.$ac_objext | |
2732 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2733 | (eval $ac_compile) 2>conftest.er1 | |
2734 | ac_status=$? | |
2735 | grep -v '^ *+' conftest.er1 >conftest.err | |
2736 | rm -f conftest.er1 | |
2737 | cat conftest.err >&5 | |
2738 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2739 | (exit $ac_status); } && | |
2740 | { ac_try='test -z "$ac_c_werror_flag" | |
2741 | || test ! -s conftest.err' | |
2742 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2743 | (eval $ac_try) 2>&5 | |
2744 | ac_status=$? | |
2745 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2746 | (exit $ac_status); }; } && | |
2747 | { ac_try='test -s conftest.$ac_objext' | |
2748 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2749 | (eval $ac_try) 2>&5 | |
2750 | ac_status=$? | |
2751 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2752 | (exit $ac_status); }; }; then | |
2753 | break | |
2754 | else | |
2755 | echo "$as_me: failed program was:" >&5 | |
2756 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2757 | ||
2758 | fi | |
2759 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2760 | done | |
2761 | rm -f conftest* | |
2762 | if test -n "$ac_declaration"; then | |
2763 | echo '#ifdef __cplusplus' >>confdefs.h | |
2764 | echo $ac_declaration >>confdefs.h | |
2765 | echo '#endif' >>confdefs.h | |
2766 | fi | |
2767 | ||
2768 | else | |
2769 | echo "$as_me: failed program was:" >&5 | |
2770 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2771 | ||
2772 | fi | |
2773 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2774 | ac_ext=c | |
2775 | ac_cpp='$CPP $CPPFLAGS' | |
2776 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2777 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2778 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2779 | DEPDIR="${am__leading_dot}deps" | |
2780 | ||
2781 | ac_config_commands="$ac_config_commands depfiles" | |
2782 | ||
2783 | ||
2784 | am_make=${MAKE-make} | |
2785 | cat > confinc << 'END' | |
2786 | am__doit: | |
2787 | @echo done | |
2788 | .PHONY: am__doit | |
2789 | END | |
2790 | # If we don't find an include directive, just comment out the code. | |
2791 | echo "$as_me:$LINENO: checking for style of include used by $am_make" >&5 | |
2792 | echo $ECHO_N "checking for style of include used by $am_make... $ECHO_C" >&6 | |
2793 | am__include="#" | |
2794 | am__quote= | |
2795 | _am_result=none | |
2796 | # First try GNU make style include. | |
2797 | echo "include confinc" > confmf | |
2798 | # We grep out `Entering directory' and `Leaving directory' | |
2799 | # messages which can occur if `w' ends up in MAKEFLAGS. | |
2800 | # In particular we don't look at `^make:' because GNU make might | |
2801 | # be invoked under some other name (usually "gmake"), in which | |
2802 | # case it prints its new name instead of `make'. | |
2803 | if test "`$am_make -s -f confmf 2> /dev/null | grep -v 'ing directory'`" = "done"; then | |
2804 | am__include=include | |
2805 | am__quote= | |
2806 | _am_result=GNU | |
2807 | fi | |
2808 | # Now try BSD make style include. | |
2809 | if test "$am__include" = "#"; then | |
2810 | echo '.include "confinc"' > confmf | |
2811 | if test "`$am_make -s -f confmf 2> /dev/null`" = "done"; then | |
2812 | am__include=.include | |
2813 | am__quote="\"" | |
2814 | _am_result=BSD | |
2815 | fi | |
2816 | fi | |
2817 | ||
2818 | ||
2819 | echo "$as_me:$LINENO: result: $_am_result" >&5 | |
2820 | echo "${ECHO_T}$_am_result" >&6 | |
2821 | rm -f confinc confmf | |
2822 | ||
2823 | # Check whether --enable-dependency-tracking or --disable-dependency-tracking was given. | |
2824 | if test "${enable_dependency_tracking+set}" = set; then | |
2825 | enableval="$enable_dependency_tracking" | |
2826 | ||
2827 | fi; | |
2828 | if test "x$enable_dependency_tracking" != xno; then | |
2829 | am_depcomp="$ac_aux_dir/depcomp" | |
2830 | AMDEPBACKSLASH='\' | |
2831 | fi | |
2832 | ||
2833 | ||
2834 | if test "x$enable_dependency_tracking" != xno; then | |
2835 | AMDEP_TRUE= | |
2836 | AMDEP_FALSE='#' | |
2837 | else | |
2838 | AMDEP_TRUE='#' | |
2839 | AMDEP_FALSE= | |
2840 | fi | |
2841 | ||
2842 | ||
2843 | ||
2844 | ||
2845 | depcc="$CC" am_compiler_list= | |
2846 | ||
2847 | echo "$as_me:$LINENO: checking dependency style of $depcc" >&5 | |
2848 | echo $ECHO_N "checking dependency style of $depcc... $ECHO_C" >&6 | |
2849 | if test "${am_cv_CC_dependencies_compiler_type+set}" = set; then | |
2850 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2851 | else | |
2852 | if test -z "$AMDEP_TRUE" && test -f "$am_depcomp"; then | |
2853 | # We make a subdir and do the tests there. Otherwise we can end up | |
2854 | # making bogus files that we don't know about and never remove. For | |
2855 | # instance it was reported that on HP-UX the gcc test will end up | |
2856 | # making a dummy file named `D' -- because `-MD' means `put the output | |
2857 | # in D'. | |
2858 | mkdir conftest.dir | |
2859 | # Copy depcomp to subdir because otherwise we won't find it if we're | |
2860 | # using a relative directory. | |
2861 | cp "$am_depcomp" conftest.dir | |
2862 | cd conftest.dir | |
2863 | # We will build objects and dependencies in a subdirectory because | |
2864 | # it helps to detect inapplicable dependency modes. For instance | |
2865 | # both Tru64's cc and ICC support -MD to output dependencies as a | |
2866 | # side effect of compilation, but ICC will put the dependencies in | |
2867 | # the current directory while Tru64 will put them in the object | |
2868 | # directory. | |
2869 | mkdir sub | |
2870 | ||
2871 | am_cv_CC_dependencies_compiler_type=none | |
2872 | if test "$am_compiler_list" = ""; then | |
2873 | am_compiler_list=`sed -n 's/^#*\([a-zA-Z0-9]*\))$/\1/p' < ./depcomp` | |
2874 | fi | |
2875 | for depmode in $am_compiler_list; do | |
2876 | # Setup a source with many dependencies, because some compilers | |
2877 | # like to wrap large dependency lists on column 80 (with \), and | |
2878 | # we should not choose a depcomp mode which is confused by this. | |
2879 | # | |
2880 | # We need to recreate these files for each test, as the compiler may | |
2881 | # overwrite some of them when testing with obscure command lines. | |
2882 | # This happens at least with the AIX C compiler. | |
2883 | : > sub/conftest.c | |
2884 | for i in 1 2 3 4 5 6; do | |
2885 | echo '#include "conftst'$i'.h"' >> sub/conftest.c | |
2886 | # Using `: > sub/conftst$i.h' creates only sub/conftst1.h with | |
2887 | # Solaris 8's {/usr,}/bin/sh. | |
2888 | touch sub/conftst$i.h | |
2889 | done | |
2890 | echo "${am__include} ${am__quote}sub/conftest.Po${am__quote}" > confmf | |
2891 | ||
2892 | case $depmode in | |
2893 | nosideeffect) | |
2894 | # after this tag, mechanisms are not by side-effect, so they'll | |
2895 | # only be used when explicitly requested | |
2896 | if test "x$enable_dependency_tracking" = xyes; then | |
2897 | continue | |
2898 | else | |
2899 | break | |
2900 | fi | |
2901 | ;; | |
2902 | none) break ;; | |
2903 | esac | |
2904 | # We check with `-c' and `-o' for the sake of the "dashmstdout" | |
2905 | # mode. It turns out that the SunPro C++ compiler does not properly | |
2906 | # handle `-M -o', and we need to detect this. | |
2907 | if depmode=$depmode \ | |
2908 | source=sub/conftest.c object=sub/conftest.${OBJEXT-o} \ | |
2909 | depfile=sub/conftest.Po tmpdepfile=sub/conftest.TPo \ | |
2910 | $SHELL ./depcomp $depcc -c -o sub/conftest.${OBJEXT-o} sub/conftest.c \ | |
2911 | >/dev/null 2>conftest.err && | |
2912 | grep sub/conftst6.h sub/conftest.Po > /dev/null 2>&1 && | |
2913 | grep sub/conftest.${OBJEXT-o} sub/conftest.Po > /dev/null 2>&1 && | |
2914 | ${MAKE-make} -s -f confmf > /dev/null 2>&1; then | |
2915 | # icc doesn't choke on unknown options, it will just issue warnings | |
2916 | # or remarks (even with -Werror). So we grep stderr for any message | |
2917 | # that says an option was ignored or not supported. | |
2918 | # When given -MP, icc 7.0 and 7.1 complain thusly: | |
2919 | # icc: Command line warning: ignoring option '-M'; no argument required | |
2920 | # The diagnosis changed in icc 8.0: | |
2921 | # icc: Command line remark: option '-MP' not supported | |
2922 | if (grep 'ignoring option' conftest.err || | |
2923 | grep 'not supported' conftest.err) >/dev/null 2>&1; then :; else | |
2924 | am_cv_CC_dependencies_compiler_type=$depmode | |
2925 | break | |
2926 | fi | |
2927 | fi | |
2928 | done | |
2929 | ||
2930 | cd .. | |
2931 | rm -rf conftest.dir | |
2932 | else | |
2933 | am_cv_CC_dependencies_compiler_type=none | |
2934 | fi | |
2935 | ||
2936 | fi | |
2937 | echo "$as_me:$LINENO: result: $am_cv_CC_dependencies_compiler_type" >&5 | |
2938 | echo "${ECHO_T}$am_cv_CC_dependencies_compiler_type" >&6 | |
2939 | CCDEPMODE=depmode=$am_cv_CC_dependencies_compiler_type | |
2940 | ||
2941 | ||
2942 | ||
2943 | if | |
2944 | test "x$enable_dependency_tracking" != xno \ | |
2945 | && test "$am_cv_CC_dependencies_compiler_type" = gcc3; then | |
2946 | am__fastdepCC_TRUE= | |
2947 | am__fastdepCC_FALSE='#' | |
2948 | else | |
2949 | am__fastdepCC_TRUE='#' | |
2950 | am__fastdepCC_FALSE= | |
2951 | fi | |
2952 | ||
2953 | ||
2954 | # By default we simply use the C compiler to build assembly code. | |
2955 | ||
2956 | test "${CCAS+set}" = set || CCAS=$CC | |
2957 | test "${CCASFLAGS+set}" = set || CCASFLAGS=$CFLAGS | |
2958 | ||
2959 | ||
2960 | ||
2961 | # Find a good install program. We prefer a C program (faster), | |
2962 | # so one script is as good as another. But avoid the broken or | |
2963 | # incompatible versions: | |
2964 | # SysV /etc/install, /usr/sbin/install | |
2965 | # SunOS /usr/etc/install | |
2966 | # IRIX /sbin/install | |
2967 | # AIX /bin/install | |
2968 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
2969 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
2970 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2971 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
2972 | # OS/2's system install, which has a completely different semantic | |
2973 | # ./install, which can be erroneously created by make from ./install.sh. | |
2974 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
2975 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
2976 | if test -z "$INSTALL"; then | |
2977 | if test "${ac_cv_path_install+set}" = set; then | |
2978 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2979 | else | |
2980 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2981 | for as_dir in $PATH | |
2982 | do | |
2983 | IFS=$as_save_IFS | |
2984 | test -z "$as_dir" && as_dir=. | |
2985 | # Account for people who put trailing slashes in PATH elements. | |
2986 | case $as_dir/ in | |
2987 | ./ | .// | /cC/* | \ | |
2988 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
2989 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
2990 | /usr/ucb/* ) ;; | |
2991 | *) | |
2992 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2993 | # Don't use installbsd from OSF since it installs stuff as root | |
2994 | # by default. | |
2995 | for ac_prog in ginstall scoinst install; do | |
2996 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2997 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
2998 | if test $ac_prog = install && | |
2999 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3000 | # AIX install. It has an incompatible calling convention. | |
3001 | : | |
3002 | elif test $ac_prog = install && | |
3003 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
3004 | # program-specific install script used by HP pwplus--don't use. | |
3005 | : | |
3006 | else | |
3007 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
3008 | break 3 | |
3009 | fi | |
3010 | fi | |
3011 | done | |
3012 | done | |
3013 | ;; | |
3014 | esac | |
3015 | done | |
3016 | ||
3017 | ||
3018 | fi | |
3019 | if test "${ac_cv_path_install+set}" = set; then | |
3020 | INSTALL=$ac_cv_path_install | |
3021 | else | |
3022 | # As a last resort, use the slow shell script. We don't cache a | |
3023 | # path for INSTALL within a source directory, because that will | |
3024 | # break other packages using the cache if that directory is | |
3025 | # removed, or if the path is relative. | |
3026 | INSTALL=$ac_install_sh | |
3027 | fi | |
3028 | fi | |
3029 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
3030 | echo "${ECHO_T}$INSTALL" >&6 | |
3031 | ||
3032 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
3033 | # It thinks the first close brace ends the variable substitution. | |
3034 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
3035 | ||
3036 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
3037 | ||
3038 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
3039 | ||
3040 | ||
3041 | # Make sure we can run config.sub. | |
3042 | $ac_config_sub sun4 >/dev/null 2>&1 || | |
3043 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
3044 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
3045 | { (exit 1); exit 1; }; } | |
3046 | ||
3047 | echo "$as_me:$LINENO: checking build system type" >&5 | |
3048 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
3049 | if test "${ac_cv_build+set}" = set; then | |
3050 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3051 | else | |
3052 | ac_cv_build_alias=$build_alias | |
3053 | test -z "$ac_cv_build_alias" && | |
3054 | ac_cv_build_alias=`$ac_config_guess` | |
3055 | test -z "$ac_cv_build_alias" && | |
3056 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
3057 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
3058 | { (exit 1); exit 1; }; } | |
3059 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
3060 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
3061 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
3062 | { (exit 1); exit 1; }; } | |
3063 | ||
3064 | fi | |
3065 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
3066 | echo "${ECHO_T}$ac_cv_build" >&6 | |
3067 | build=$ac_cv_build | |
3068 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
3069 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
3070 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
3071 | ||
3072 | ||
3073 | echo "$as_me:$LINENO: checking host system type" >&5 | |
3074 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
3075 | if test "${ac_cv_host+set}" = set; then | |
3076 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3077 | else | |
3078 | ac_cv_host_alias=$host_alias | |
3079 | test -z "$ac_cv_host_alias" && | |
3080 | ac_cv_host_alias=$ac_cv_build_alias | |
3081 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
3082 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
3083 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
3084 | { (exit 1); exit 1; }; } | |
3085 | ||
3086 | fi | |
3087 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
3088 | echo "${ECHO_T}$ac_cv_host" >&6 | |
3089 | host=$ac_cv_host | |
3090 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
3091 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
3092 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
3093 | ||
3094 | ||
3095 | case "${host}" in | |
3096 | *-*-mingw*) | |
3097 | CPPFLAGS="$CPPFLAGS -mno-cygwin" | |
3098 | LDFLAGS="$LDFLAGS -mno-cygwin" | |
3099 | CPPFLAGS="$CPPFLAGS -idirafter ${srcdir}/posix -idirafter ${srcdir}/os_win32" | |
3100 | esac | |
3101 | ||
3102 | # AC_SEARCH_LIBS (FUNCTION, SEARCH-LIBS, [ACTION-IF-FOUND], [ACTION-IF-NOT-FOUND], [OTHER-LIBRARIES]) | |
3103 | echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5 | |
3104 | echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6 | |
3105 | if test "${ac_cv_search_gethostbyname+set}" = set; then | |
3106 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3107 | else | |
3108 | ac_func_search_save_LIBS=$LIBS | |
3109 | ac_cv_search_gethostbyname=no | |
3110 | cat >conftest.$ac_ext <<_ACEOF | |
3111 | /* confdefs.h. */ | |
3112 | _ACEOF | |
3113 | cat confdefs.h >>conftest.$ac_ext | |
3114 | cat >>conftest.$ac_ext <<_ACEOF | |
3115 | /* end confdefs.h. */ | |
3116 | ||
3117 | /* Override any gcc2 internal prototype to avoid an error. */ | |
3118 | #ifdef __cplusplus | |
3119 | extern "C" | |
3120 | #endif | |
3121 | /* We use char because int might match the return type of a gcc2 | |
3122 | builtin and then its argument prototype would still apply. */ | |
3123 | char gethostbyname (); | |
3124 | int | |
3125 | main () | |
3126 | { | |
3127 | gethostbyname (); | |
3128 | ; | |
3129 | return 0; | |
3130 | } | |
3131 | _ACEOF | |
3132 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3133 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
3134 | (eval $ac_link) 2>conftest.er1 | |
3135 | ac_status=$? | |
3136 | grep -v '^ *+' conftest.er1 >conftest.err | |
3137 | rm -f conftest.er1 | |
3138 | cat conftest.err >&5 | |
3139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3140 | (exit $ac_status); } && | |
3141 | { ac_try='test -z "$ac_c_werror_flag" | |
3142 | || test ! -s conftest.err' | |
3143 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3144 | (eval $ac_try) 2>&5 | |
3145 | ac_status=$? | |
3146 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3147 | (exit $ac_status); }; } && | |
3148 | { ac_try='test -s conftest$ac_exeext' | |
3149 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3150 | (eval $ac_try) 2>&5 | |
3151 | ac_status=$? | |
3152 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3153 | (exit $ac_status); }; }; then | |
3154 | ac_cv_search_gethostbyname="none required" | |
3155 | else | |
3156 | echo "$as_me: failed program was:" >&5 | |
3157 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3158 | ||
3159 | fi | |
3160 | rm -f conftest.err conftest.$ac_objext \ | |
3161 | conftest$ac_exeext conftest.$ac_ext | |
3162 | if test "$ac_cv_search_gethostbyname" = no; then | |
3163 | for ac_lib in nsl; do | |
3164 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
3165 | cat >conftest.$ac_ext <<_ACEOF | |
3166 | /* confdefs.h. */ | |
3167 | _ACEOF | |
3168 | cat confdefs.h >>conftest.$ac_ext | |
3169 | cat >>conftest.$ac_ext <<_ACEOF | |
3170 | /* end confdefs.h. */ | |
3171 | ||
3172 | /* Override any gcc2 internal prototype to avoid an error. */ | |
3173 | #ifdef __cplusplus | |
3174 | extern "C" | |
3175 | #endif | |
3176 | /* We use char because int might match the return type of a gcc2 | |
3177 | builtin and then its argument prototype would still apply. */ | |
3178 | char gethostbyname (); | |
3179 | int | |
3180 | main () | |
3181 | { | |
3182 | gethostbyname (); | |
3183 | ; | |
3184 | return 0; | |
3185 | } | |
3186 | _ACEOF | |
3187 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3188 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
3189 | (eval $ac_link) 2>conftest.er1 | |
3190 | ac_status=$? | |
3191 | grep -v '^ *+' conftest.er1 >conftest.err | |
3192 | rm -f conftest.er1 | |
3193 | cat conftest.err >&5 | |
3194 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3195 | (exit $ac_status); } && | |
3196 | { ac_try='test -z "$ac_c_werror_flag" | |
3197 | || test ! -s conftest.err' | |
3198 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3199 | (eval $ac_try) 2>&5 | |
3200 | ac_status=$? | |
3201 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3202 | (exit $ac_status); }; } && | |
3203 | { ac_try='test -s conftest$ac_exeext' | |
3204 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3205 | (eval $ac_try) 2>&5 | |
3206 | ac_status=$? | |
3207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3208 | (exit $ac_status); }; }; then | |
3209 | ac_cv_search_gethostbyname="-l$ac_lib" | |
3210 | break | |
3211 | else | |
3212 | echo "$as_me: failed program was:" >&5 | |
3213 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3214 | ||
3215 | fi | |
3216 | rm -f conftest.err conftest.$ac_objext \ | |
3217 | conftest$ac_exeext conftest.$ac_ext | |
3218 | done | |
3219 | fi | |
3220 | LIBS=$ac_func_search_save_LIBS | |
3221 | fi | |
3222 | echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5 | |
3223 | echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6 | |
3224 | if test "$ac_cv_search_gethostbyname" != no; then | |
3225 | test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS" | |
3226 | ||
3227 | else | |
3228 | echo "$as_me:$LINENO: checking for library containing gethostbyname" >&5 | |
3229 | echo $ECHO_N "checking for library containing gethostbyname... $ECHO_C" >&6 | |
3230 | if test "${ac_cv_search_gethostbyname+set}" = set; then | |
3231 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3232 | else | |
3233 | ac_func_search_save_LIBS=$LIBS | |
3234 | ac_cv_search_gethostbyname=no | |
3235 | ||
3236 | cat >conftest.$ac_ext <<_ACEOF | |
3237 | /* confdefs.h. */ | |
3238 | _ACEOF | |
3239 | cat confdefs.h >>conftest.$ac_ext | |
3240 | cat >>conftest.$ac_ext <<_ACEOF | |
3241 | /* end confdefs.h. */ | |
3242 | ||
3243 | /* Override any gcc2 internal prototype to avoid an error. */ | |
3244 | #ifdef __cplusplus | |
3245 | extern "C" | |
3246 | #endif | |
3247 | /* We use char because int might match the return type of a gcc2 | |
3248 | builtin and then its argument prototype would still apply. */ | |
3249 | char gethostbyname (); | |
3250 | int | |
3251 | main () | |
3252 | { | |
3253 | gethostbyname (); | |
3254 | ; | |
3255 | return 0; | |
3256 | } | |
3257 | _ACEOF | |
3258 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3259 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
3260 | (eval $ac_link) 2>conftest.er1 | |
3261 | ac_status=$? | |
3262 | grep -v '^ *+' conftest.er1 >conftest.err | |
3263 | rm -f conftest.er1 | |
3264 | cat conftest.err >&5 | |
3265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3266 | (exit $ac_status); } && | |
3267 | { ac_try='test -z "$ac_c_werror_flag" | |
3268 | || test ! -s conftest.err' | |
3269 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3270 | (eval $ac_try) 2>&5 | |
3271 | ac_status=$? | |
3272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3273 | (exit $ac_status); }; } && | |
3274 | { ac_try='test -s conftest$ac_exeext' | |
3275 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3276 | (eval $ac_try) 2>&5 | |
3277 | ac_status=$? | |
3278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3279 | (exit $ac_status); }; }; then | |
3280 | ac_cv_search_gethostbyname="none required" | |
3281 | else | |
3282 | echo "$as_me: failed program was:" >&5 | |
3283 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3284 | ||
3285 | fi | |
3286 | rm -f conftest.err conftest.$ac_objext \ | |
3287 | conftest$ac_exeext conftest.$ac_ext | |
3288 | if test "$ac_cv_search_gethostbyname" = no; then | |
3289 | for ac_lib in nsl; do | |
3290 | LIBS="-l$ac_lib -lsocket $ac_func_search_save_LIBS" | |
3291 | cat >conftest.$ac_ext <<_ACEOF | |
3292 | /* confdefs.h. */ | |
3293 | _ACEOF | |
3294 | cat confdefs.h >>conftest.$ac_ext | |
3295 | cat >>conftest.$ac_ext <<_ACEOF | |
3296 | /* end confdefs.h. */ | |
3297 | ||
3298 | /* Override any gcc2 internal prototype to avoid an error. */ | |
3299 | #ifdef __cplusplus | |
3300 | extern "C" | |
3301 | #endif | |
3302 | /* We use char because int might match the return type of a gcc2 | |
3303 | builtin and then its argument prototype would still apply. */ | |
3304 | char gethostbyname (); | |
3305 | int | |
3306 | main () | |
3307 | { | |
3308 | gethostbyname (); | |
3309 | ; | |
3310 | return 0; | |
3311 | } | |
3312 | _ACEOF | |
3313 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3314 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
3315 | (eval $ac_link) 2>conftest.er1 | |
3316 | ac_status=$? | |
3317 | grep -v '^ *+' conftest.er1 >conftest.err | |
3318 | rm -f conftest.er1 | |
3319 | cat conftest.err >&5 | |
3320 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3321 | (exit $ac_status); } && | |
3322 | { ac_try='test -z "$ac_c_werror_flag" | |
3323 | || test ! -s conftest.err' | |
3324 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3325 | (eval $ac_try) 2>&5 | |
3326 | ac_status=$? | |
3327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3328 | (exit $ac_status); }; } && | |
3329 | { ac_try='test -s conftest$ac_exeext' | |
3330 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3331 | (eval $ac_try) 2>&5 | |
3332 | ac_status=$? | |
3333 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3334 | (exit $ac_status); }; }; then | |
3335 | ac_cv_search_gethostbyname="-l$ac_lib" | |
3336 | break | |
3337 | else | |
3338 | echo "$as_me: failed program was:" >&5 | |
3339 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3340 | ||
3341 | fi | |
3342 | rm -f conftest.err conftest.$ac_objext \ | |
3343 | conftest$ac_exeext conftest.$ac_ext | |
3344 | done | |
3345 | fi | |
3346 | LIBS=$ac_func_search_save_LIBS | |
3347 | fi | |
3348 | echo "$as_me:$LINENO: result: $ac_cv_search_gethostbyname" >&5 | |
3349 | echo "${ECHO_T}$ac_cv_search_gethostbyname" >&6 | |
3350 | if test "$ac_cv_search_gethostbyname" != no; then | |
3351 | test "$ac_cv_search_gethostbyname" = "none required" || LIBS="$ac_cv_search_gethostbyname $LIBS" | |
3352 | ||
3353 | fi | |
3354 | ||
3355 | fi | |
3356 | ||
3357 | ||
3358 | ac_ext=c | |
3359 | ac_cpp='$CPP $CPPFLAGS' | |
3360 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3361 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3362 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3363 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
3364 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
3365 | # On Suns, sometimes $CPP names a directory. | |
3366 | if test -n "$CPP" && test -d "$CPP"; then | |
3367 | CPP= | |
3368 | fi | |
3369 | if test -z "$CPP"; then | |
3370 | if test "${ac_cv_prog_CPP+set}" = set; then | |
3371 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3372 | else | |
3373 | # Double quotes because CPP needs to be expanded | |
3374 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
3375 | do | |
3376 | ac_preproc_ok=false | |
3377 | for ac_c_preproc_warn_flag in '' yes | |
3378 | do | |
3379 | # Use a header file that comes with gcc, so configuring glibc | |
3380 | # with a fresh cross-compiler works. | |
3381 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3382 | # <limits.h> exists even on freestanding compilers. | |
3383 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3384 | # not just through cpp. "Syntax error" is here to catch this case. | |
3385 | cat >conftest.$ac_ext <<_ACEOF | |
3386 | /* confdefs.h. */ | |
3387 | _ACEOF | |
3388 | cat confdefs.h >>conftest.$ac_ext | |
3389 | cat >>conftest.$ac_ext <<_ACEOF | |
3390 | /* end confdefs.h. */ | |
3391 | #ifdef __STDC__ | |
3392 | # include <limits.h> | |
3393 | #else | |
3394 | # include <assert.h> | |
3395 | #endif | |
3396 | Syntax error | |
3397 | _ACEOF | |
3398 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
3399 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
3400 | ac_status=$? | |
3401 | grep -v '^ *+' conftest.er1 >conftest.err | |
3402 | rm -f conftest.er1 | |
3403 | cat conftest.err >&5 | |
3404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3405 | (exit $ac_status); } >/dev/null; then | |
3406 | if test -s conftest.err; then | |
3407 | ac_cpp_err=$ac_c_preproc_warn_flag | |
3408 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
3409 | else | |
3410 | ac_cpp_err= | |
3411 | fi | |
3412 | else | |
3413 | ac_cpp_err=yes | |
3414 | fi | |
3415 | if test -z "$ac_cpp_err"; then | |
3416 | : | |
3417 | else | |
3418 | echo "$as_me: failed program was:" >&5 | |
3419 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3420 | ||
3421 | # Broken: fails on valid input. | |
3422 | continue | |
3423 | fi | |
3424 | rm -f conftest.err conftest.$ac_ext | |
3425 | ||
3426 | # OK, works on sane cases. Now check whether non-existent headers | |
3427 | # can be detected and how. | |
3428 | cat >conftest.$ac_ext <<_ACEOF | |
3429 | /* confdefs.h. */ | |
3430 | _ACEOF | |
3431 | cat confdefs.h >>conftest.$ac_ext | |
3432 | cat >>conftest.$ac_ext <<_ACEOF | |
3433 | /* end confdefs.h. */ | |
3434 | #include <ac_nonexistent.h> | |
3435 | _ACEOF | |
3436 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
3437 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
3438 | ac_status=$? | |
3439 | grep -v '^ *+' conftest.er1 >conftest.err | |
3440 | rm -f conftest.er1 | |
3441 | cat conftest.err >&5 | |
3442 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3443 | (exit $ac_status); } >/dev/null; then | |
3444 | if test -s conftest.err; then | |
3445 | ac_cpp_err=$ac_c_preproc_warn_flag | |
3446 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
3447 | else | |
3448 | ac_cpp_err= | |
3449 | fi | |
3450 | else | |
3451 | ac_cpp_err=yes | |
3452 | fi | |
3453 | if test -z "$ac_cpp_err"; then | |
3454 | # Broken: success on invalid input. | |
3455 | continue | |
3456 | else | |
3457 | echo "$as_me: failed program was:" >&5 | |
3458 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3459 | ||
3460 | # Passes both tests. | |
3461 | ac_preproc_ok=: | |
3462 | break | |
3463 | fi | |
3464 | rm -f conftest.err conftest.$ac_ext | |
3465 | ||
3466 | done | |
3467 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3468 | rm -f conftest.err conftest.$ac_ext | |
3469 | if $ac_preproc_ok; then | |
3470 | break | |
3471 | fi | |
3472 | ||
3473 | done | |
3474 | ac_cv_prog_CPP=$CPP | |
3475 | ||
3476 | fi | |
3477 | CPP=$ac_cv_prog_CPP | |
3478 | else | |
3479 | ac_cv_prog_CPP=$CPP | |
3480 | fi | |
3481 | echo "$as_me:$LINENO: result: $CPP" >&5 | |
3482 | echo "${ECHO_T}$CPP" >&6 | |
3483 | ac_preproc_ok=false | |
3484 | for ac_c_preproc_warn_flag in '' yes | |
3485 | do | |
3486 | # Use a header file that comes with gcc, so configuring glibc | |
3487 | # with a fresh cross-compiler works. | |
3488 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3489 | # <limits.h> exists even on freestanding compilers. | |
3490 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
3491 | # not just through cpp. "Syntax error" is here to catch this case. | |
3492 | cat >conftest.$ac_ext <<_ACEOF | |
3493 | /* confdefs.h. */ | |
3494 | _ACEOF | |
3495 | cat confdefs.h >>conftest.$ac_ext | |
3496 | cat >>conftest.$ac_ext <<_ACEOF | |
3497 | /* end confdefs.h. */ | |
3498 | #ifdef __STDC__ | |
3499 | # include <limits.h> | |
3500 | #else | |
3501 | # include <assert.h> | |
3502 | #endif | |
3503 | Syntax error | |
3504 | _ACEOF | |
3505 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
3506 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
3507 | ac_status=$? | |
3508 | grep -v '^ *+' conftest.er1 >conftest.err | |
3509 | rm -f conftest.er1 | |
3510 | cat conftest.err >&5 | |
3511 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3512 | (exit $ac_status); } >/dev/null; then | |
3513 | if test -s conftest.err; then | |
3514 | ac_cpp_err=$ac_c_preproc_warn_flag | |
3515 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
3516 | else | |
3517 | ac_cpp_err= | |
3518 | fi | |
3519 | else | |
3520 | ac_cpp_err=yes | |
3521 | fi | |
3522 | if test -z "$ac_cpp_err"; then | |
3523 | : | |
3524 | else | |
3525 | echo "$as_me: failed program was:" >&5 | |
3526 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3527 | ||
3528 | # Broken: fails on valid input. | |
3529 | continue | |
3530 | fi | |
3531 | rm -f conftest.err conftest.$ac_ext | |
3532 | ||
3533 | # OK, works on sane cases. Now check whether non-existent headers | |
3534 | # can be detected and how. | |
3535 | cat >conftest.$ac_ext <<_ACEOF | |
3536 | /* confdefs.h. */ | |
3537 | _ACEOF | |
3538 | cat confdefs.h >>conftest.$ac_ext | |
3539 | cat >>conftest.$ac_ext <<_ACEOF | |
3540 | /* end confdefs.h. */ | |
3541 | #include <ac_nonexistent.h> | |
3542 | _ACEOF | |
3543 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
3544 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
3545 | ac_status=$? | |
3546 | grep -v '^ *+' conftest.er1 >conftest.err | |
3547 | rm -f conftest.er1 | |
3548 | cat conftest.err >&5 | |
3549 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3550 | (exit $ac_status); } >/dev/null; then | |
3551 | if test -s conftest.err; then | |
3552 | ac_cpp_err=$ac_c_preproc_warn_flag | |
3553 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
3554 | else | |
3555 | ac_cpp_err= | |
3556 | fi | |
3557 | else | |
3558 | ac_cpp_err=yes | |
3559 | fi | |
3560 | if test -z "$ac_cpp_err"; then | |
3561 | # Broken: success on invalid input. | |
3562 | continue | |
3563 | else | |
3564 | echo "$as_me: failed program was:" >&5 | |
3565 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3566 | ||
3567 | # Passes both tests. | |
3568 | ac_preproc_ok=: | |
3569 | break | |
3570 | fi | |
3571 | rm -f conftest.err conftest.$ac_ext | |
3572 | ||
3573 | done | |
3574 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
3575 | rm -f conftest.err conftest.$ac_ext | |
3576 | if $ac_preproc_ok; then | |
3577 | : | |
3578 | else | |
3579 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
3580 | See \`config.log' for more details." >&5 | |
3581 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
3582 | See \`config.log' for more details." >&2;} | |
3583 | { (exit 1); exit 1; }; } | |
3584 | fi | |
3585 | ||
3586 | ac_ext=c | |
3587 | ac_cpp='$CPP $CPPFLAGS' | |
3588 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
3589 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
3590 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
3591 | ||
3592 | ||
3593 | echo "$as_me:$LINENO: checking for egrep" >&5 | |
3594 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
3595 | if test "${ac_cv_prog_egrep+set}" = set; then | |
3596 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3597 | else | |
3598 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 | |
3599 | then ac_cv_prog_egrep='grep -E' | |
3600 | else ac_cv_prog_egrep='egrep' | |
3601 | fi | |
3602 | fi | |
3603 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 | |
3604 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
3605 | EGREP=$ac_cv_prog_egrep | |
3606 | ||
3607 | ||
3608 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
3609 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
3610 | if test "${ac_cv_header_stdc+set}" = set; then | |
3611 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3612 | else | |
3613 | cat >conftest.$ac_ext <<_ACEOF | |
3614 | /* confdefs.h. */ | |
3615 | _ACEOF | |
3616 | cat confdefs.h >>conftest.$ac_ext | |
3617 | cat >>conftest.$ac_ext <<_ACEOF | |
3618 | /* end confdefs.h. */ | |
3619 | #include <stdlib.h> | |
3620 | #include <stdarg.h> | |
3621 | #include <string.h> | |
3622 | #include <float.h> | |
3623 | ||
3624 | int | |
3625 | main () | |
3626 | { | |
3627 | ||
3628 | ; | |
3629 | return 0; | |
3630 | } | |
3631 | _ACEOF | |
3632 | rm -f conftest.$ac_objext | |
3633 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3634 | (eval $ac_compile) 2>conftest.er1 | |
3635 | ac_status=$? | |
3636 | grep -v '^ *+' conftest.er1 >conftest.err | |
3637 | rm -f conftest.er1 | |
3638 | cat conftest.err >&5 | |
3639 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3640 | (exit $ac_status); } && | |
3641 | { ac_try='test -z "$ac_c_werror_flag" | |
3642 | || test ! -s conftest.err' | |
3643 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3644 | (eval $ac_try) 2>&5 | |
3645 | ac_status=$? | |
3646 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3647 | (exit $ac_status); }; } && | |
3648 | { ac_try='test -s conftest.$ac_objext' | |
3649 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3650 | (eval $ac_try) 2>&5 | |
3651 | ac_status=$? | |
3652 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3653 | (exit $ac_status); }; }; then | |
3654 | ac_cv_header_stdc=yes | |
3655 | else | |
3656 | echo "$as_me: failed program was:" >&5 | |
3657 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3658 | ||
3659 | ac_cv_header_stdc=no | |
3660 | fi | |
3661 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
3662 | ||
3663 | if test $ac_cv_header_stdc = yes; then | |
3664 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
3665 | cat >conftest.$ac_ext <<_ACEOF | |
3666 | /* confdefs.h. */ | |
3667 | _ACEOF | |
3668 | cat confdefs.h >>conftest.$ac_ext | |
3669 | cat >>conftest.$ac_ext <<_ACEOF | |
3670 | /* end confdefs.h. */ | |
3671 | #include <string.h> | |
3672 | ||
3673 | _ACEOF | |
3674 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3675 | $EGREP "memchr" >/dev/null 2>&1; then | |
3676 | : | |
3677 | else | |
3678 | ac_cv_header_stdc=no | |
3679 | fi | |
3680 | rm -f conftest* | |
3681 | ||
3682 | fi | |
3683 | ||
3684 | if test $ac_cv_header_stdc = yes; then | |
3685 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
3686 | cat >conftest.$ac_ext <<_ACEOF | |
3687 | /* confdefs.h. */ | |
3688 | _ACEOF | |
3689 | cat confdefs.h >>conftest.$ac_ext | |
3690 | cat >>conftest.$ac_ext <<_ACEOF | |
3691 | /* end confdefs.h. */ | |
3692 | #include <stdlib.h> | |
3693 | ||
3694 | _ACEOF | |
3695 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3696 | $EGREP "free" >/dev/null 2>&1; then | |
3697 | : | |
3698 | else | |
3699 | ac_cv_header_stdc=no | |
3700 | fi | |
3701 | rm -f conftest* | |
3702 | ||
3703 | fi | |
3704 | ||
3705 | if test $ac_cv_header_stdc = yes; then | |
3706 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
3707 | if test "$cross_compiling" = yes; then | |
3708 | : | |
3709 | else | |
3710 | cat >conftest.$ac_ext <<_ACEOF | |
3711 | /* confdefs.h. */ | |
3712 | _ACEOF | |
3713 | cat confdefs.h >>conftest.$ac_ext | |
3714 | cat >>conftest.$ac_ext <<_ACEOF | |
3715 | /* end confdefs.h. */ | |
3716 | #include <ctype.h> | |
3717 | #if ((' ' & 0x0FF) == 0x020) | |
3718 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
3719 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
3720 | #else | |
3721 | # define ISLOWER(c) \ | |
3722 | (('a' <= (c) && (c) <= 'i') \ | |
3723 | || ('j' <= (c) && (c) <= 'r') \ | |
3724 | || ('s' <= (c) && (c) <= 'z')) | |
3725 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
3726 | #endif | |
3727 | ||
3728 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) | |
3729 | int | |
3730 | main () | |
3731 | { | |
3732 | int i; | |
3733 | for (i = 0; i < 256; i++) | |
3734 | if (XOR (islower (i), ISLOWER (i)) | |
3735 | || toupper (i) != TOUPPER (i)) | |
3736 | exit(2); | |
3737 | exit (0); | |
3738 | } | |
3739 | _ACEOF | |
3740 | rm -f conftest$ac_exeext | |
3741 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
3742 | (eval $ac_link) 2>&5 | |
3743 | ac_status=$? | |
3744 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3745 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
3746 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3747 | (eval $ac_try) 2>&5 | |
3748 | ac_status=$? | |
3749 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3750 | (exit $ac_status); }; }; then | |
3751 | : | |
3752 | else | |
3753 | echo "$as_me: program exited with status $ac_status" >&5 | |
3754 | echo "$as_me: failed program was:" >&5 | |
3755 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3756 | ||
3757 | ( exit $ac_status ) | |
3758 | ac_cv_header_stdc=no | |
3759 | fi | |
3760 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
3761 | fi | |
3762 | fi | |
3763 | fi | |
3764 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 | |
3765 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
3766 | if test $ac_cv_header_stdc = yes; then | |
3767 | ||
3768 | cat >>confdefs.h <<\_ACEOF | |
3769 | #define STDC_HEADERS 1 | |
3770 | _ACEOF | |
3771 | ||
3772 | fi | |
3773 | ||
3774 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. | |
3775 | ||
3776 | ||
3777 | ||
3778 | ||
3779 | ||
3780 | ||
3781 | ||
3782 | ||
3783 | ||
3784 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
3785 | inttypes.h stdint.h unistd.h | |
3786 | do | |
3787 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
3788 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
3789 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
3790 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
3791 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3792 | else | |
3793 | cat >conftest.$ac_ext <<_ACEOF | |
3794 | /* confdefs.h. */ | |
3795 | _ACEOF | |
3796 | cat confdefs.h >>conftest.$ac_ext | |
3797 | cat >>conftest.$ac_ext <<_ACEOF | |
3798 | /* end confdefs.h. */ | |
3799 | $ac_includes_default | |
3800 | ||
3801 | #include <$ac_header> | |
3802 | _ACEOF | |
3803 | rm -f conftest.$ac_objext | |
3804 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3805 | (eval $ac_compile) 2>conftest.er1 | |
3806 | ac_status=$? | |
3807 | grep -v '^ *+' conftest.er1 >conftest.err | |
3808 | rm -f conftest.er1 | |
3809 | cat conftest.err >&5 | |
3810 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3811 | (exit $ac_status); } && | |
3812 | { ac_try='test -z "$ac_c_werror_flag" | |
3813 | || test ! -s conftest.err' | |
3814 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3815 | (eval $ac_try) 2>&5 | |
3816 | ac_status=$? | |
3817 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3818 | (exit $ac_status); }; } && | |
3819 | { ac_try='test -s conftest.$ac_objext' | |
3820 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3821 | (eval $ac_try) 2>&5 | |
3822 | ac_status=$? | |
3823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3824 | (exit $ac_status); }; }; then | |
3825 | eval "$as_ac_Header=yes" | |
3826 | else | |
3827 | echo "$as_me: failed program was:" >&5 | |
3828 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3829 | ||
3830 | eval "$as_ac_Header=no" | |
3831 | fi | |
3832 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
3833 | fi | |
3834 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
3835 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
3836 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
3837 | cat >>confdefs.h <<_ACEOF | |
3838 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
3839 | _ACEOF | |
3840 | ||
3841 | fi | |
3842 | ||
3843 | done | |
3844 | ||
3845 | ||
3846 | ||
3847 | for ac_header in locale.h | |
3848 | do | |
3849 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
3850 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
3851 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
3852 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
3853 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
3854 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3855 | fi | |
3856 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
3857 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
3858 | else | |
3859 | # Is the header compilable? | |
3860 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
3861 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
3862 | cat >conftest.$ac_ext <<_ACEOF | |
3863 | /* confdefs.h. */ | |
3864 | _ACEOF | |
3865 | cat confdefs.h >>conftest.$ac_ext | |
3866 | cat >>conftest.$ac_ext <<_ACEOF | |
3867 | /* end confdefs.h. */ | |
3868 | $ac_includes_default | |
3869 | #include <$ac_header> | |
3870 | _ACEOF | |
3871 | rm -f conftest.$ac_objext | |
3872 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3873 | (eval $ac_compile) 2>conftest.er1 | |
3874 | ac_status=$? | |
3875 | grep -v '^ *+' conftest.er1 >conftest.err | |
3876 | rm -f conftest.er1 | |
3877 | cat conftest.err >&5 | |
3878 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3879 | (exit $ac_status); } && | |
3880 | { ac_try='test -z "$ac_c_werror_flag" | |
3881 | || test ! -s conftest.err' | |
3882 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3883 | (eval $ac_try) 2>&5 | |
3884 | ac_status=$? | |
3885 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3886 | (exit $ac_status); }; } && | |
3887 | { ac_try='test -s conftest.$ac_objext' | |
3888 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3889 | (eval $ac_try) 2>&5 | |
3890 | ac_status=$? | |
3891 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3892 | (exit $ac_status); }; }; then | |
3893 | ac_header_compiler=yes | |
3894 | else | |
3895 | echo "$as_me: failed program was:" >&5 | |
3896 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3897 | ||
3898 | ac_header_compiler=no | |
3899 | fi | |
3900 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
3901 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
3902 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
3903 | ||
3904 | # Is the header present? | |
3905 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
3906 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
3907 | cat >conftest.$ac_ext <<_ACEOF | |
3908 | /* confdefs.h. */ | |
3909 | _ACEOF | |
3910 | cat confdefs.h >>conftest.$ac_ext | |
3911 | cat >>conftest.$ac_ext <<_ACEOF | |
3912 | /* end confdefs.h. */ | |
3913 | #include <$ac_header> | |
3914 | _ACEOF | |
3915 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
3916 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
3917 | ac_status=$? | |
3918 | grep -v '^ *+' conftest.er1 >conftest.err | |
3919 | rm -f conftest.er1 | |
3920 | cat conftest.err >&5 | |
3921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3922 | (exit $ac_status); } >/dev/null; then | |
3923 | if test -s conftest.err; then | |
3924 | ac_cpp_err=$ac_c_preproc_warn_flag | |
3925 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
3926 | else | |
3927 | ac_cpp_err= | |
3928 | fi | |
3929 | else | |
3930 | ac_cpp_err=yes | |
3931 | fi | |
3932 | if test -z "$ac_cpp_err"; then | |
3933 | ac_header_preproc=yes | |
3934 | else | |
3935 | echo "$as_me: failed program was:" >&5 | |
3936 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3937 | ||
3938 | ac_header_preproc=no | |
3939 | fi | |
3940 | rm -f conftest.err conftest.$ac_ext | |
3941 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
3942 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
3943 | ||
3944 | # So? What about this header? | |
3945 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
3946 | yes:no: ) | |
3947 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
3948 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
3949 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
3950 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
3951 | ac_header_preproc=yes | |
3952 | ;; | |
3953 | no:yes:* ) | |
3954 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
3955 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
3956 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
3957 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
3958 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
3959 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
3960 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
3961 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
3962 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
3963 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
3964 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
3965 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
3966 | ( | |
3967 | cat <<\_ASBOX | |
3968 | ## ---------------------------------------------------------- ## | |
3969 | ## Report this to smartmontools-support@lists.sourceforge.net ## | |
3970 | ## ---------------------------------------------------------- ## | |
3971 | _ASBOX | |
3972 | ) | | |
3973 | sed "s/^/$as_me: WARNING: /" >&2 | |
3974 | ;; | |
3975 | esac | |
3976 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
3977 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
3978 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
3979 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3980 | else | |
3981 | eval "$as_ac_Header=\$ac_header_preproc" | |
3982 | fi | |
3983 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
3984 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
3985 | ||
3986 | fi | |
3987 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
3988 | cat >>confdefs.h <<_ACEOF | |
3989 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
3990 | _ACEOF | |
3991 | ||
3992 | fi | |
3993 | ||
3994 | done | |
3995 | ||
3996 | ||
3997 | for ac_header in getopt.h | |
3998 | do | |
3999 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4000 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4001 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4002 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4003 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4004 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4005 | fi | |
4006 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4007 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4008 | else | |
4009 | # Is the header compilable? | |
4010 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
4011 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
4012 | cat >conftest.$ac_ext <<_ACEOF | |
4013 | /* confdefs.h. */ | |
4014 | _ACEOF | |
4015 | cat confdefs.h >>conftest.$ac_ext | |
4016 | cat >>conftest.$ac_ext <<_ACEOF | |
4017 | /* end confdefs.h. */ | |
4018 | $ac_includes_default | |
4019 | #include <$ac_header> | |
4020 | _ACEOF | |
4021 | rm -f conftest.$ac_objext | |
4022 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4023 | (eval $ac_compile) 2>conftest.er1 | |
4024 | ac_status=$? | |
4025 | grep -v '^ *+' conftest.er1 >conftest.err | |
4026 | rm -f conftest.er1 | |
4027 | cat conftest.err >&5 | |
4028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4029 | (exit $ac_status); } && | |
4030 | { ac_try='test -z "$ac_c_werror_flag" | |
4031 | || test ! -s conftest.err' | |
4032 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4033 | (eval $ac_try) 2>&5 | |
4034 | ac_status=$? | |
4035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4036 | (exit $ac_status); }; } && | |
4037 | { ac_try='test -s conftest.$ac_objext' | |
4038 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4039 | (eval $ac_try) 2>&5 | |
4040 | ac_status=$? | |
4041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4042 | (exit $ac_status); }; }; then | |
4043 | ac_header_compiler=yes | |
4044 | else | |
4045 | echo "$as_me: failed program was:" >&5 | |
4046 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4047 | ||
4048 | ac_header_compiler=no | |
4049 | fi | |
4050 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4051 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
4052 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
4053 | ||
4054 | # Is the header present? | |
4055 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
4056 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
4057 | cat >conftest.$ac_ext <<_ACEOF | |
4058 | /* confdefs.h. */ | |
4059 | _ACEOF | |
4060 | cat confdefs.h >>conftest.$ac_ext | |
4061 | cat >>conftest.$ac_ext <<_ACEOF | |
4062 | /* end confdefs.h. */ | |
4063 | #include <$ac_header> | |
4064 | _ACEOF | |
4065 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4066 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4067 | ac_status=$? | |
4068 | grep -v '^ *+' conftest.er1 >conftest.err | |
4069 | rm -f conftest.er1 | |
4070 | cat conftest.err >&5 | |
4071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4072 | (exit $ac_status); } >/dev/null; then | |
4073 | if test -s conftest.err; then | |
4074 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4075 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
4076 | else | |
4077 | ac_cpp_err= | |
4078 | fi | |
4079 | else | |
4080 | ac_cpp_err=yes | |
4081 | fi | |
4082 | if test -z "$ac_cpp_err"; then | |
4083 | ac_header_preproc=yes | |
4084 | else | |
4085 | echo "$as_me: failed program was:" >&5 | |
4086 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4087 | ||
4088 | ac_header_preproc=no | |
4089 | fi | |
4090 | rm -f conftest.err conftest.$ac_ext | |
4091 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
4092 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
4093 | ||
4094 | # So? What about this header? | |
4095 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
4096 | yes:no: ) | |
4097 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
4098 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4099 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
4100 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
4101 | ac_header_preproc=yes | |
4102 | ;; | |
4103 | no:yes:* ) | |
4104 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
4105 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
4106 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
4107 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4108 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4109 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4110 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
4111 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
4112 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4113 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
4114 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
4115 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
4116 | ( | |
4117 | cat <<\_ASBOX | |
4118 | ## ---------------------------------------------------------- ## | |
4119 | ## Report this to smartmontools-support@lists.sourceforge.net ## | |
4120 | ## ---------------------------------------------------------- ## | |
4121 | _ASBOX | |
4122 | ) | | |
4123 | sed "s/^/$as_me: WARNING: /" >&2 | |
4124 | ;; | |
4125 | esac | |
4126 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4127 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4128 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4129 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4130 | else | |
4131 | eval "$as_ac_Header=\$ac_header_preproc" | |
4132 | fi | |
4133 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4134 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4135 | ||
4136 | fi | |
4137 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
4138 | cat >>confdefs.h <<_ACEOF | |
4139 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4140 | _ACEOF | |
4141 | ||
4142 | fi | |
4143 | ||
4144 | done | |
4145 | ||
4146 | ||
4147 | for ac_header in dev/ata/atavar.h | |
4148 | do | |
4149 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4150 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4151 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4152 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4153 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4154 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4155 | fi | |
4156 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4157 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4158 | else | |
4159 | # Is the header compilable? | |
4160 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
4161 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
4162 | cat >conftest.$ac_ext <<_ACEOF | |
4163 | /* confdefs.h. */ | |
4164 | _ACEOF | |
4165 | cat confdefs.h >>conftest.$ac_ext | |
4166 | cat >>conftest.$ac_ext <<_ACEOF | |
4167 | /* end confdefs.h. */ | |
4168 | $ac_includes_default | |
4169 | #include <$ac_header> | |
4170 | _ACEOF | |
4171 | rm -f conftest.$ac_objext | |
4172 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4173 | (eval $ac_compile) 2>conftest.er1 | |
4174 | ac_status=$? | |
4175 | grep -v '^ *+' conftest.er1 >conftest.err | |
4176 | rm -f conftest.er1 | |
4177 | cat conftest.err >&5 | |
4178 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4179 | (exit $ac_status); } && | |
4180 | { ac_try='test -z "$ac_c_werror_flag" | |
4181 | || test ! -s conftest.err' | |
4182 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4183 | (eval $ac_try) 2>&5 | |
4184 | ac_status=$? | |
4185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4186 | (exit $ac_status); }; } && | |
4187 | { ac_try='test -s conftest.$ac_objext' | |
4188 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4189 | (eval $ac_try) 2>&5 | |
4190 | ac_status=$? | |
4191 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4192 | (exit $ac_status); }; }; then | |
4193 | ac_header_compiler=yes | |
4194 | else | |
4195 | echo "$as_me: failed program was:" >&5 | |
4196 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4197 | ||
4198 | ac_header_compiler=no | |
4199 | fi | |
4200 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4201 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
4202 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
4203 | ||
4204 | # Is the header present? | |
4205 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
4206 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
4207 | cat >conftest.$ac_ext <<_ACEOF | |
4208 | /* confdefs.h. */ | |
4209 | _ACEOF | |
4210 | cat confdefs.h >>conftest.$ac_ext | |
4211 | cat >>conftest.$ac_ext <<_ACEOF | |
4212 | /* end confdefs.h. */ | |
4213 | #include <$ac_header> | |
4214 | _ACEOF | |
4215 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4216 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4217 | ac_status=$? | |
4218 | grep -v '^ *+' conftest.er1 >conftest.err | |
4219 | rm -f conftest.er1 | |
4220 | cat conftest.err >&5 | |
4221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4222 | (exit $ac_status); } >/dev/null; then | |
4223 | if test -s conftest.err; then | |
4224 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4225 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
4226 | else | |
4227 | ac_cpp_err= | |
4228 | fi | |
4229 | else | |
4230 | ac_cpp_err=yes | |
4231 | fi | |
4232 | if test -z "$ac_cpp_err"; then | |
4233 | ac_header_preproc=yes | |
4234 | else | |
4235 | echo "$as_me: failed program was:" >&5 | |
4236 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4237 | ||
4238 | ac_header_preproc=no | |
4239 | fi | |
4240 | rm -f conftest.err conftest.$ac_ext | |
4241 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
4242 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
4243 | ||
4244 | # So? What about this header? | |
4245 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
4246 | yes:no: ) | |
4247 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
4248 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4249 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
4250 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
4251 | ac_header_preproc=yes | |
4252 | ;; | |
4253 | no:yes:* ) | |
4254 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
4255 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
4256 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
4257 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4258 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4259 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4260 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
4261 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
4262 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4263 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
4264 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
4265 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
4266 | ( | |
4267 | cat <<\_ASBOX | |
4268 | ## ---------------------------------------------------------- ## | |
4269 | ## Report this to smartmontools-support@lists.sourceforge.net ## | |
4270 | ## ---------------------------------------------------------- ## | |
4271 | _ASBOX | |
4272 | ) | | |
4273 | sed "s/^/$as_me: WARNING: /" >&2 | |
4274 | ;; | |
4275 | esac | |
4276 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4277 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4278 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4279 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4280 | else | |
4281 | eval "$as_ac_Header=\$ac_header_preproc" | |
4282 | fi | |
4283 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4284 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4285 | ||
4286 | fi | |
4287 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
4288 | cat >>confdefs.h <<_ACEOF | |
4289 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4290 | _ACEOF | |
4291 | ||
4292 | fi | |
4293 | ||
4294 | done | |
4295 | ||
4296 | ||
4297 | for ac_header in netdb.h | |
4298 | do | |
4299 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4300 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4301 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4302 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4303 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4304 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4305 | fi | |
4306 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4307 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4308 | else | |
4309 | # Is the header compilable? | |
4310 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
4311 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
4312 | cat >conftest.$ac_ext <<_ACEOF | |
4313 | /* confdefs.h. */ | |
4314 | _ACEOF | |
4315 | cat confdefs.h >>conftest.$ac_ext | |
4316 | cat >>conftest.$ac_ext <<_ACEOF | |
4317 | /* end confdefs.h. */ | |
4318 | $ac_includes_default | |
4319 | #include <$ac_header> | |
4320 | _ACEOF | |
4321 | rm -f conftest.$ac_objext | |
4322 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4323 | (eval $ac_compile) 2>conftest.er1 | |
4324 | ac_status=$? | |
4325 | grep -v '^ *+' conftest.er1 >conftest.err | |
4326 | rm -f conftest.er1 | |
4327 | cat conftest.err >&5 | |
4328 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4329 | (exit $ac_status); } && | |
4330 | { ac_try='test -z "$ac_c_werror_flag" | |
4331 | || test ! -s conftest.err' | |
4332 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4333 | (eval $ac_try) 2>&5 | |
4334 | ac_status=$? | |
4335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4336 | (exit $ac_status); }; } && | |
4337 | { ac_try='test -s conftest.$ac_objext' | |
4338 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4339 | (eval $ac_try) 2>&5 | |
4340 | ac_status=$? | |
4341 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4342 | (exit $ac_status); }; }; then | |
4343 | ac_header_compiler=yes | |
4344 | else | |
4345 | echo "$as_me: failed program was:" >&5 | |
4346 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4347 | ||
4348 | ac_header_compiler=no | |
4349 | fi | |
4350 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4351 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
4352 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
4353 | ||
4354 | # Is the header present? | |
4355 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
4356 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
4357 | cat >conftest.$ac_ext <<_ACEOF | |
4358 | /* confdefs.h. */ | |
4359 | _ACEOF | |
4360 | cat confdefs.h >>conftest.$ac_ext | |
4361 | cat >>conftest.$ac_ext <<_ACEOF | |
4362 | /* end confdefs.h. */ | |
4363 | #include <$ac_header> | |
4364 | _ACEOF | |
4365 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4366 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4367 | ac_status=$? | |
4368 | grep -v '^ *+' conftest.er1 >conftest.err | |
4369 | rm -f conftest.er1 | |
4370 | cat conftest.err >&5 | |
4371 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4372 | (exit $ac_status); } >/dev/null; then | |
4373 | if test -s conftest.err; then | |
4374 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4375 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
4376 | else | |
4377 | ac_cpp_err= | |
4378 | fi | |
4379 | else | |
4380 | ac_cpp_err=yes | |
4381 | fi | |
4382 | if test -z "$ac_cpp_err"; then | |
4383 | ac_header_preproc=yes | |
4384 | else | |
4385 | echo "$as_me: failed program was:" >&5 | |
4386 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4387 | ||
4388 | ac_header_preproc=no | |
4389 | fi | |
4390 | rm -f conftest.err conftest.$ac_ext | |
4391 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
4392 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
4393 | ||
4394 | # So? What about this header? | |
4395 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
4396 | yes:no: ) | |
4397 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
4398 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4399 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
4400 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
4401 | ac_header_preproc=yes | |
4402 | ;; | |
4403 | no:yes:* ) | |
4404 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
4405 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
4406 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
4407 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4408 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4409 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4410 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
4411 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
4412 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4413 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
4414 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
4415 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
4416 | ( | |
4417 | cat <<\_ASBOX | |
4418 | ## ---------------------------------------------------------- ## | |
4419 | ## Report this to smartmontools-support@lists.sourceforge.net ## | |
4420 | ## ---------------------------------------------------------- ## | |
4421 | _ASBOX | |
4422 | ) | | |
4423 | sed "s/^/$as_me: WARNING: /" >&2 | |
4424 | ;; | |
4425 | esac | |
4426 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4427 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4428 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4429 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4430 | else | |
4431 | eval "$as_ac_Header=\$ac_header_preproc" | |
4432 | fi | |
4433 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4434 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4435 | ||
4436 | fi | |
4437 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
4438 | cat >>confdefs.h <<_ACEOF | |
4439 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4440 | _ACEOF | |
4441 | ||
4442 | fi | |
4443 | ||
4444 | done | |
4445 | ||
4446 | ||
4447 | for ac_header in inttypes.h | |
4448 | do | |
4449 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4450 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4451 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4452 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4453 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4454 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4455 | fi | |
4456 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4457 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4458 | else | |
4459 | # Is the header compilable? | |
4460 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
4461 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
4462 | cat >conftest.$ac_ext <<_ACEOF | |
4463 | /* confdefs.h. */ | |
4464 | _ACEOF | |
4465 | cat confdefs.h >>conftest.$ac_ext | |
4466 | cat >>conftest.$ac_ext <<_ACEOF | |
4467 | /* end confdefs.h. */ | |
4468 | $ac_includes_default | |
4469 | #include <$ac_header> | |
4470 | _ACEOF | |
4471 | rm -f conftest.$ac_objext | |
4472 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4473 | (eval $ac_compile) 2>conftest.er1 | |
4474 | ac_status=$? | |
4475 | grep -v '^ *+' conftest.er1 >conftest.err | |
4476 | rm -f conftest.er1 | |
4477 | cat conftest.err >&5 | |
4478 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4479 | (exit $ac_status); } && | |
4480 | { ac_try='test -z "$ac_c_werror_flag" | |
4481 | || test ! -s conftest.err' | |
4482 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4483 | (eval $ac_try) 2>&5 | |
4484 | ac_status=$? | |
4485 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4486 | (exit $ac_status); }; } && | |
4487 | { ac_try='test -s conftest.$ac_objext' | |
4488 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4489 | (eval $ac_try) 2>&5 | |
4490 | ac_status=$? | |
4491 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4492 | (exit $ac_status); }; }; then | |
4493 | ac_header_compiler=yes | |
4494 | else | |
4495 | echo "$as_me: failed program was:" >&5 | |
4496 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4497 | ||
4498 | ac_header_compiler=no | |
4499 | fi | |
4500 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4501 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
4502 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
4503 | ||
4504 | # Is the header present? | |
4505 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
4506 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
4507 | cat >conftest.$ac_ext <<_ACEOF | |
4508 | /* confdefs.h. */ | |
4509 | _ACEOF | |
4510 | cat confdefs.h >>conftest.$ac_ext | |
4511 | cat >>conftest.$ac_ext <<_ACEOF | |
4512 | /* end confdefs.h. */ | |
4513 | #include <$ac_header> | |
4514 | _ACEOF | |
4515 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&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; then | |
4523 | if test -s conftest.err; then | |
4524 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4525 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
4526 | else | |
4527 | ac_cpp_err= | |
4528 | fi | |
4529 | else | |
4530 | ac_cpp_err=yes | |
4531 | fi | |
4532 | if test -z "$ac_cpp_err"; then | |
4533 | ac_header_preproc=yes | |
4534 | else | |
4535 | echo "$as_me: failed program was:" >&5 | |
4536 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4537 | ||
4538 | ac_header_preproc=no | |
4539 | fi | |
4540 | rm -f conftest.err conftest.$ac_ext | |
4541 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
4542 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
4543 | ||
4544 | # So? What about this header? | |
4545 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
4546 | yes:no: ) | |
4547 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
4548 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4549 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
4550 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
4551 | ac_header_preproc=yes | |
4552 | ;; | |
4553 | no:yes:* ) | |
4554 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
4555 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
4556 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
4557 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4558 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4559 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4560 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
4561 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
4562 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4563 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
4564 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
4565 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
4566 | ( | |
4567 | cat <<\_ASBOX | |
4568 | ## ---------------------------------------------------------- ## | |
4569 | ## Report this to smartmontools-support@lists.sourceforge.net ## | |
4570 | ## ---------------------------------------------------------- ## | |
4571 | _ASBOX | |
4572 | ) | | |
4573 | sed "s/^/$as_me: WARNING: /" >&2 | |
4574 | ;; | |
4575 | esac | |
4576 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4577 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4578 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4579 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4580 | else | |
4581 | eval "$as_ac_Header=\$ac_header_preproc" | |
4582 | fi | |
4583 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4584 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4585 | ||
4586 | fi | |
4587 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
4588 | cat >>confdefs.h <<_ACEOF | |
4589 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4590 | _ACEOF | |
4591 | ||
4592 | fi | |
4593 | ||
4594 | done | |
4595 | ||
4596 | for ac_header in stdint.h | |
4597 | do | |
4598 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4599 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4600 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4601 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4602 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4603 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4604 | fi | |
4605 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4606 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4607 | else | |
4608 | # Is the header compilable? | |
4609 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
4610 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
4611 | cat >conftest.$ac_ext <<_ACEOF | |
4612 | /* confdefs.h. */ | |
4613 | _ACEOF | |
4614 | cat confdefs.h >>conftest.$ac_ext | |
4615 | cat >>conftest.$ac_ext <<_ACEOF | |
4616 | /* end confdefs.h. */ | |
4617 | $ac_includes_default | |
4618 | #include <$ac_header> | |
4619 | _ACEOF | |
4620 | rm -f conftest.$ac_objext | |
4621 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4622 | (eval $ac_compile) 2>conftest.er1 | |
4623 | ac_status=$? | |
4624 | grep -v '^ *+' conftest.er1 >conftest.err | |
4625 | rm -f conftest.er1 | |
4626 | cat conftest.err >&5 | |
4627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4628 | (exit $ac_status); } && | |
4629 | { ac_try='test -z "$ac_c_werror_flag" | |
4630 | || test ! -s conftest.err' | |
4631 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4632 | (eval $ac_try) 2>&5 | |
4633 | ac_status=$? | |
4634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4635 | (exit $ac_status); }; } && | |
4636 | { ac_try='test -s conftest.$ac_objext' | |
4637 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4638 | (eval $ac_try) 2>&5 | |
4639 | ac_status=$? | |
4640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4641 | (exit $ac_status); }; }; then | |
4642 | ac_header_compiler=yes | |
4643 | else | |
4644 | echo "$as_me: failed program was:" >&5 | |
4645 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4646 | ||
4647 | ac_header_compiler=no | |
4648 | fi | |
4649 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4650 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
4651 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
4652 | ||
4653 | # Is the header present? | |
4654 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
4655 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
4656 | cat >conftest.$ac_ext <<_ACEOF | |
4657 | /* confdefs.h. */ | |
4658 | _ACEOF | |
4659 | cat confdefs.h >>conftest.$ac_ext | |
4660 | cat >>conftest.$ac_ext <<_ACEOF | |
4661 | /* end confdefs.h. */ | |
4662 | #include <$ac_header> | |
4663 | _ACEOF | |
4664 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4665 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4666 | ac_status=$? | |
4667 | grep -v '^ *+' conftest.er1 >conftest.err | |
4668 | rm -f conftest.er1 | |
4669 | cat conftest.err >&5 | |
4670 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4671 | (exit $ac_status); } >/dev/null; then | |
4672 | if test -s conftest.err; then | |
4673 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4674 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
4675 | else | |
4676 | ac_cpp_err= | |
4677 | fi | |
4678 | else | |
4679 | ac_cpp_err=yes | |
4680 | fi | |
4681 | if test -z "$ac_cpp_err"; then | |
4682 | ac_header_preproc=yes | |
4683 | else | |
4684 | echo "$as_me: failed program was:" >&5 | |
4685 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4686 | ||
4687 | ac_header_preproc=no | |
4688 | fi | |
4689 | rm -f conftest.err conftest.$ac_ext | |
4690 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
4691 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
4692 | ||
4693 | # So? What about this header? | |
4694 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
4695 | yes:no: ) | |
4696 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
4697 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4698 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
4699 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
4700 | ac_header_preproc=yes | |
4701 | ;; | |
4702 | no:yes:* ) | |
4703 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
4704 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
4705 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
4706 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4707 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4708 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4709 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
4710 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
4711 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4712 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
4713 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
4714 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
4715 | ( | |
4716 | cat <<\_ASBOX | |
4717 | ## ---------------------------------------------------------- ## | |
4718 | ## Report this to smartmontools-support@lists.sourceforge.net ## | |
4719 | ## ---------------------------------------------------------- ## | |
4720 | _ASBOX | |
4721 | ) | | |
4722 | sed "s/^/$as_me: WARNING: /" >&2 | |
4723 | ;; | |
4724 | esac | |
4725 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4726 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4727 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4728 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4729 | else | |
4730 | eval "$as_ac_Header=\$ac_header_preproc" | |
4731 | fi | |
4732 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4733 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4734 | ||
4735 | fi | |
4736 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
4737 | cat >>confdefs.h <<_ACEOF | |
4738 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4739 | _ACEOF | |
4740 | ||
4741 | fi | |
4742 | ||
4743 | done | |
4744 | ||
4745 | for ac_header in sys/inttypes.h | |
4746 | do | |
4747 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4748 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4749 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4750 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4751 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4752 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4753 | fi | |
4754 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4755 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4756 | else | |
4757 | # Is the header compilable? | |
4758 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
4759 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
4760 | cat >conftest.$ac_ext <<_ACEOF | |
4761 | /* confdefs.h. */ | |
4762 | _ACEOF | |
4763 | cat confdefs.h >>conftest.$ac_ext | |
4764 | cat >>conftest.$ac_ext <<_ACEOF | |
4765 | /* end confdefs.h. */ | |
4766 | $ac_includes_default | |
4767 | #include <$ac_header> | |
4768 | _ACEOF | |
4769 | rm -f conftest.$ac_objext | |
4770 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4771 | (eval $ac_compile) 2>conftest.er1 | |
4772 | ac_status=$? | |
4773 | grep -v '^ *+' conftest.er1 >conftest.err | |
4774 | rm -f conftest.er1 | |
4775 | cat conftest.err >&5 | |
4776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4777 | (exit $ac_status); } && | |
4778 | { ac_try='test -z "$ac_c_werror_flag" | |
4779 | || test ! -s conftest.err' | |
4780 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4781 | (eval $ac_try) 2>&5 | |
4782 | ac_status=$? | |
4783 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4784 | (exit $ac_status); }; } && | |
4785 | { ac_try='test -s conftest.$ac_objext' | |
4786 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4787 | (eval $ac_try) 2>&5 | |
4788 | ac_status=$? | |
4789 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4790 | (exit $ac_status); }; }; then | |
4791 | ac_header_compiler=yes | |
4792 | else | |
4793 | echo "$as_me: failed program was:" >&5 | |
4794 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4795 | ||
4796 | ac_header_compiler=no | |
4797 | fi | |
4798 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4799 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
4800 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
4801 | ||
4802 | # Is the header present? | |
4803 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
4804 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
4805 | cat >conftest.$ac_ext <<_ACEOF | |
4806 | /* confdefs.h. */ | |
4807 | _ACEOF | |
4808 | cat confdefs.h >>conftest.$ac_ext | |
4809 | cat >>conftest.$ac_ext <<_ACEOF | |
4810 | /* end confdefs.h. */ | |
4811 | #include <$ac_header> | |
4812 | _ACEOF | |
4813 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4814 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4815 | ac_status=$? | |
4816 | grep -v '^ *+' conftest.er1 >conftest.err | |
4817 | rm -f conftest.er1 | |
4818 | cat conftest.err >&5 | |
4819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4820 | (exit $ac_status); } >/dev/null; then | |
4821 | if test -s conftest.err; then | |
4822 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4823 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
4824 | else | |
4825 | ac_cpp_err= | |
4826 | fi | |
4827 | else | |
4828 | ac_cpp_err=yes | |
4829 | fi | |
4830 | if test -z "$ac_cpp_err"; then | |
4831 | ac_header_preproc=yes | |
4832 | else | |
4833 | echo "$as_me: failed program was:" >&5 | |
4834 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4835 | ||
4836 | ac_header_preproc=no | |
4837 | fi | |
4838 | rm -f conftest.err conftest.$ac_ext | |
4839 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
4840 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
4841 | ||
4842 | # So? What about this header? | |
4843 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
4844 | yes:no: ) | |
4845 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
4846 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4847 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
4848 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
4849 | ac_header_preproc=yes | |
4850 | ;; | |
4851 | no:yes:* ) | |
4852 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
4853 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
4854 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
4855 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4856 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4857 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4858 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
4859 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
4860 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4861 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
4862 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
4863 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
4864 | ( | |
4865 | cat <<\_ASBOX | |
4866 | ## ---------------------------------------------------------- ## | |
4867 | ## Report this to smartmontools-support@lists.sourceforge.net ## | |
4868 | ## ---------------------------------------------------------- ## | |
4869 | _ASBOX | |
4870 | ) | | |
4871 | sed "s/^/$as_me: WARNING: /" >&2 | |
4872 | ;; | |
4873 | esac | |
4874 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4875 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4876 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4877 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4878 | else | |
4879 | eval "$as_ac_Header=\$ac_header_preproc" | |
4880 | fi | |
4881 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4882 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4883 | ||
4884 | fi | |
4885 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
4886 | cat >>confdefs.h <<_ACEOF | |
4887 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4888 | _ACEOF | |
4889 | ||
4890 | fi | |
4891 | ||
4892 | done | |
4893 | ||
4894 | for ac_header in sys/int_types.h | |
4895 | do | |
4896 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
4897 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4898 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4899 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4900 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4901 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4902 | fi | |
4903 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4904 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4905 | else | |
4906 | # Is the header compilable? | |
4907 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
4908 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
4909 | cat >conftest.$ac_ext <<_ACEOF | |
4910 | /* confdefs.h. */ | |
4911 | _ACEOF | |
4912 | cat confdefs.h >>conftest.$ac_ext | |
4913 | cat >>conftest.$ac_ext <<_ACEOF | |
4914 | /* end confdefs.h. */ | |
4915 | $ac_includes_default | |
4916 | #include <$ac_header> | |
4917 | _ACEOF | |
4918 | rm -f conftest.$ac_objext | |
4919 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4920 | (eval $ac_compile) 2>conftest.er1 | |
4921 | ac_status=$? | |
4922 | grep -v '^ *+' conftest.er1 >conftest.err | |
4923 | rm -f conftest.er1 | |
4924 | cat conftest.err >&5 | |
4925 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4926 | (exit $ac_status); } && | |
4927 | { ac_try='test -z "$ac_c_werror_flag" | |
4928 | || test ! -s conftest.err' | |
4929 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4930 | (eval $ac_try) 2>&5 | |
4931 | ac_status=$? | |
4932 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4933 | (exit $ac_status); }; } && | |
4934 | { ac_try='test -s conftest.$ac_objext' | |
4935 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4936 | (eval $ac_try) 2>&5 | |
4937 | ac_status=$? | |
4938 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4939 | (exit $ac_status); }; }; then | |
4940 | ac_header_compiler=yes | |
4941 | else | |
4942 | echo "$as_me: failed program was:" >&5 | |
4943 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4944 | ||
4945 | ac_header_compiler=no | |
4946 | fi | |
4947 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4948 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
4949 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
4950 | ||
4951 | # Is the header present? | |
4952 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
4953 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
4954 | cat >conftest.$ac_ext <<_ACEOF | |
4955 | /* confdefs.h. */ | |
4956 | _ACEOF | |
4957 | cat confdefs.h >>conftest.$ac_ext | |
4958 | cat >>conftest.$ac_ext <<_ACEOF | |
4959 | /* end confdefs.h. */ | |
4960 | #include <$ac_header> | |
4961 | _ACEOF | |
4962 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4963 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4964 | ac_status=$? | |
4965 | grep -v '^ *+' conftest.er1 >conftest.err | |
4966 | rm -f conftest.er1 | |
4967 | cat conftest.err >&5 | |
4968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4969 | (exit $ac_status); } >/dev/null; then | |
4970 | if test -s conftest.err; then | |
4971 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4972 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
4973 | else | |
4974 | ac_cpp_err= | |
4975 | fi | |
4976 | else | |
4977 | ac_cpp_err=yes | |
4978 | fi | |
4979 | if test -z "$ac_cpp_err"; then | |
4980 | ac_header_preproc=yes | |
4981 | else | |
4982 | echo "$as_me: failed program was:" >&5 | |
4983 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4984 | ||
4985 | ac_header_preproc=no | |
4986 | fi | |
4987 | rm -f conftest.err conftest.$ac_ext | |
4988 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
4989 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
4990 | ||
4991 | # So? What about this header? | |
4992 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
4993 | yes:no: ) | |
4994 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
4995 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4996 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
4997 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
4998 | ac_header_preproc=yes | |
4999 | ;; | |
5000 | no:yes:* ) | |
5001 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
5002 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5003 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
5004 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5005 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5006 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5007 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5008 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
5009 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
5010 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5011 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
5012 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
5013 | ( | |
5014 | cat <<\_ASBOX | |
5015 | ## ---------------------------------------------------------- ## | |
5016 | ## Report this to smartmontools-support@lists.sourceforge.net ## | |
5017 | ## ---------------------------------------------------------- ## | |
5018 | _ASBOX | |
5019 | ) | | |
5020 | sed "s/^/$as_me: WARNING: /" >&2 | |
5021 | ;; | |
5022 | esac | |
5023 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5024 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
5025 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5026 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5027 | else | |
5028 | eval "$as_ac_Header=\$ac_header_preproc" | |
5029 | fi | |
5030 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
5031 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5032 | ||
5033 | fi | |
5034 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
5035 | cat >>confdefs.h <<_ACEOF | |
5036 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5037 | _ACEOF | |
5038 | ||
5039 | fi | |
5040 | ||
5041 | done | |
5042 | ||
5043 | for ac_header in sys/tweio.h | |
5044 | do | |
5045 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5046 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5047 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5048 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
5049 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5050 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5051 | fi | |
5052 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
5053 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5054 | else | |
5055 | # Is the header compilable? | |
5056 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
5057 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
5058 | cat >conftest.$ac_ext <<_ACEOF | |
5059 | /* confdefs.h. */ | |
5060 | _ACEOF | |
5061 | cat confdefs.h >>conftest.$ac_ext | |
5062 | cat >>conftest.$ac_ext <<_ACEOF | |
5063 | /* end confdefs.h. */ | |
5064 | $ac_includes_default | |
5065 | #include <$ac_header> | |
5066 | _ACEOF | |
5067 | rm -f conftest.$ac_objext | |
5068 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5069 | (eval $ac_compile) 2>conftest.er1 | |
5070 | ac_status=$? | |
5071 | grep -v '^ *+' conftest.er1 >conftest.err | |
5072 | rm -f conftest.er1 | |
5073 | cat conftest.err >&5 | |
5074 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5075 | (exit $ac_status); } && | |
5076 | { ac_try='test -z "$ac_c_werror_flag" | |
5077 | || test ! -s conftest.err' | |
5078 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5079 | (eval $ac_try) 2>&5 | |
5080 | ac_status=$? | |
5081 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5082 | (exit $ac_status); }; } && | |
5083 | { ac_try='test -s conftest.$ac_objext' | |
5084 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5085 | (eval $ac_try) 2>&5 | |
5086 | ac_status=$? | |
5087 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5088 | (exit $ac_status); }; }; then | |
5089 | ac_header_compiler=yes | |
5090 | else | |
5091 | echo "$as_me: failed program was:" >&5 | |
5092 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5093 | ||
5094 | ac_header_compiler=no | |
5095 | fi | |
5096 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5097 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
5098 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
5099 | ||
5100 | # Is the header present? | |
5101 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
5102 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
5103 | cat >conftest.$ac_ext <<_ACEOF | |
5104 | /* confdefs.h. */ | |
5105 | _ACEOF | |
5106 | cat confdefs.h >>conftest.$ac_ext | |
5107 | cat >>conftest.$ac_ext <<_ACEOF | |
5108 | /* end confdefs.h. */ | |
5109 | #include <$ac_header> | |
5110 | _ACEOF | |
5111 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5112 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5113 | ac_status=$? | |
5114 | grep -v '^ *+' conftest.er1 >conftest.err | |
5115 | rm -f conftest.er1 | |
5116 | cat conftest.err >&5 | |
5117 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5118 | (exit $ac_status); } >/dev/null; then | |
5119 | if test -s conftest.err; then | |
5120 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5121 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
5122 | else | |
5123 | ac_cpp_err= | |
5124 | fi | |
5125 | else | |
5126 | ac_cpp_err=yes | |
5127 | fi | |
5128 | if test -z "$ac_cpp_err"; then | |
5129 | ac_header_preproc=yes | |
5130 | else | |
5131 | echo "$as_me: failed program was:" >&5 | |
5132 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5133 | ||
5134 | ac_header_preproc=no | |
5135 | fi | |
5136 | rm -f conftest.err conftest.$ac_ext | |
5137 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
5138 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5139 | ||
5140 | # So? What about this header? | |
5141 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
5142 | yes:no: ) | |
5143 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
5144 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5145 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
5146 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
5147 | ac_header_preproc=yes | |
5148 | ;; | |
5149 | no:yes:* ) | |
5150 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
5151 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5152 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
5153 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5154 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5155 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5156 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5157 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
5158 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
5159 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5160 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
5161 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
5162 | ( | |
5163 | cat <<\_ASBOX | |
5164 | ## ---------------------------------------------------------- ## | |
5165 | ## Report this to smartmontools-support@lists.sourceforge.net ## | |
5166 | ## ---------------------------------------------------------- ## | |
5167 | _ASBOX | |
5168 | ) | | |
5169 | sed "s/^/$as_me: WARNING: /" >&2 | |
5170 | ;; | |
5171 | esac | |
5172 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5173 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
5174 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5175 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5176 | else | |
5177 | eval "$as_ac_Header=\$ac_header_preproc" | |
5178 | fi | |
5179 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
5180 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5181 | ||
5182 | fi | |
5183 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
5184 | cat >>confdefs.h <<_ACEOF | |
5185 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5186 | _ACEOF | |
5187 | ||
5188 | fi | |
5189 | ||
5190 | done | |
5191 | ||
5192 | ||
5193 | for ac_header in sys/twereg.h | |
5194 | do | |
5195 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5196 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5197 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5198 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
5199 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5200 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5201 | fi | |
5202 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
5203 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5204 | else | |
5205 | # Is the header compilable? | |
5206 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
5207 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
5208 | cat >conftest.$ac_ext <<_ACEOF | |
5209 | /* confdefs.h. */ | |
5210 | _ACEOF | |
5211 | cat confdefs.h >>conftest.$ac_ext | |
5212 | cat >>conftest.$ac_ext <<_ACEOF | |
5213 | /* end confdefs.h. */ | |
5214 | $ac_includes_default | |
5215 | #include <$ac_header> | |
5216 | _ACEOF | |
5217 | rm -f conftest.$ac_objext | |
5218 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5219 | (eval $ac_compile) 2>conftest.er1 | |
5220 | ac_status=$? | |
5221 | grep -v '^ *+' conftest.er1 >conftest.err | |
5222 | rm -f conftest.er1 | |
5223 | cat conftest.err >&5 | |
5224 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5225 | (exit $ac_status); } && | |
5226 | { ac_try='test -z "$ac_c_werror_flag" | |
5227 | || test ! -s conftest.err' | |
5228 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5229 | (eval $ac_try) 2>&5 | |
5230 | ac_status=$? | |
5231 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5232 | (exit $ac_status); }; } && | |
5233 | { ac_try='test -s conftest.$ac_objext' | |
5234 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5235 | (eval $ac_try) 2>&5 | |
5236 | ac_status=$? | |
5237 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5238 | (exit $ac_status); }; }; then | |
5239 | ac_header_compiler=yes | |
5240 | else | |
5241 | echo "$as_me: failed program was:" >&5 | |
5242 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5243 | ||
5244 | ac_header_compiler=no | |
5245 | fi | |
5246 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5247 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
5248 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
5249 | ||
5250 | # Is the header present? | |
5251 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
5252 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
5253 | cat >conftest.$ac_ext <<_ACEOF | |
5254 | /* confdefs.h. */ | |
5255 | _ACEOF | |
5256 | cat confdefs.h >>conftest.$ac_ext | |
5257 | cat >>conftest.$ac_ext <<_ACEOF | |
5258 | /* end confdefs.h. */ | |
5259 | #include <$ac_header> | |
5260 | _ACEOF | |
5261 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5262 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5263 | ac_status=$? | |
5264 | grep -v '^ *+' conftest.er1 >conftest.err | |
5265 | rm -f conftest.er1 | |
5266 | cat conftest.err >&5 | |
5267 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5268 | (exit $ac_status); } >/dev/null; then | |
5269 | if test -s conftest.err; then | |
5270 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5271 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
5272 | else | |
5273 | ac_cpp_err= | |
5274 | fi | |
5275 | else | |
5276 | ac_cpp_err=yes | |
5277 | fi | |
5278 | if test -z "$ac_cpp_err"; then | |
5279 | ac_header_preproc=yes | |
5280 | else | |
5281 | echo "$as_me: failed program was:" >&5 | |
5282 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5283 | ||
5284 | ac_header_preproc=no | |
5285 | fi | |
5286 | rm -f conftest.err conftest.$ac_ext | |
5287 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
5288 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5289 | ||
5290 | # So? What about this header? | |
5291 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
5292 | yes:no: ) | |
5293 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
5294 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5295 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
5296 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
5297 | ac_header_preproc=yes | |
5298 | ;; | |
5299 | no:yes:* ) | |
5300 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
5301 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5302 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
5303 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5304 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5305 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5306 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5307 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
5308 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
5309 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5310 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
5311 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
5312 | ( | |
5313 | cat <<\_ASBOX | |
5314 | ## ---------------------------------------------------------- ## | |
5315 | ## Report this to smartmontools-support@lists.sourceforge.net ## | |
5316 | ## ---------------------------------------------------------- ## | |
5317 | _ASBOX | |
5318 | ) | | |
5319 | sed "s/^/$as_me: WARNING: /" >&2 | |
5320 | ;; | |
5321 | esac | |
5322 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5323 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
5324 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5325 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5326 | else | |
5327 | eval "$as_ac_Header=\$ac_header_preproc" | |
5328 | fi | |
5329 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
5330 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5331 | ||
5332 | fi | |
5333 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
5334 | cat >>confdefs.h <<_ACEOF | |
5335 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5336 | _ACEOF | |
5337 | ||
5338 | fi | |
5339 | ||
5340 | done | |
5341 | ||
5342 | ||
5343 | for ac_header in sys/tw_osl_ioctl.h | |
5344 | do | |
5345 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
5346 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5347 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5348 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
5349 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5350 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5351 | fi | |
5352 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
5353 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5354 | else | |
5355 | # Is the header compilable? | |
5356 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
5357 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
5358 | cat >conftest.$ac_ext <<_ACEOF | |
5359 | /* confdefs.h. */ | |
5360 | _ACEOF | |
5361 | cat confdefs.h >>conftest.$ac_ext | |
5362 | cat >>conftest.$ac_ext <<_ACEOF | |
5363 | /* end confdefs.h. */ | |
5364 | $ac_includes_default | |
5365 | #include <$ac_header> | |
5366 | _ACEOF | |
5367 | rm -f conftest.$ac_objext | |
5368 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5369 | (eval $ac_compile) 2>conftest.er1 | |
5370 | ac_status=$? | |
5371 | grep -v '^ *+' conftest.er1 >conftest.err | |
5372 | rm -f conftest.er1 | |
5373 | cat conftest.err >&5 | |
5374 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5375 | (exit $ac_status); } && | |
5376 | { ac_try='test -z "$ac_c_werror_flag" | |
5377 | || test ! -s conftest.err' | |
5378 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5379 | (eval $ac_try) 2>&5 | |
5380 | ac_status=$? | |
5381 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5382 | (exit $ac_status); }; } && | |
5383 | { ac_try='test -s conftest.$ac_objext' | |
5384 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5385 | (eval $ac_try) 2>&5 | |
5386 | ac_status=$? | |
5387 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5388 | (exit $ac_status); }; }; then | |
5389 | ac_header_compiler=yes | |
5390 | else | |
5391 | echo "$as_me: failed program was:" >&5 | |
5392 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5393 | ||
5394 | ac_header_compiler=no | |
5395 | fi | |
5396 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5397 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
5398 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
5399 | ||
5400 | # Is the header present? | |
5401 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
5402 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
5403 | cat >conftest.$ac_ext <<_ACEOF | |
5404 | /* confdefs.h. */ | |
5405 | _ACEOF | |
5406 | cat confdefs.h >>conftest.$ac_ext | |
5407 | cat >>conftest.$ac_ext <<_ACEOF | |
5408 | /* end confdefs.h. */ | |
5409 | #include <$ac_header> | |
5410 | _ACEOF | |
5411 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5412 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5413 | ac_status=$? | |
5414 | grep -v '^ *+' conftest.er1 >conftest.err | |
5415 | rm -f conftest.er1 | |
5416 | cat conftest.err >&5 | |
5417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5418 | (exit $ac_status); } >/dev/null; then | |
5419 | if test -s conftest.err; then | |
5420 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5421 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
5422 | else | |
5423 | ac_cpp_err= | |
5424 | fi | |
5425 | else | |
5426 | ac_cpp_err=yes | |
5427 | fi | |
5428 | if test -z "$ac_cpp_err"; then | |
5429 | ac_header_preproc=yes | |
5430 | else | |
5431 | echo "$as_me: failed program was:" >&5 | |
5432 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5433 | ||
5434 | ac_header_preproc=no | |
5435 | fi | |
5436 | rm -f conftest.err conftest.$ac_ext | |
5437 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
5438 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5439 | ||
5440 | # So? What about this header? | |
5441 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
5442 | yes:no: ) | |
5443 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
5444 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5445 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
5446 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
5447 | ac_header_preproc=yes | |
5448 | ;; | |
5449 | no:yes:* ) | |
5450 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
5451 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5452 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
5453 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5454 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5455 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5456 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5457 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
5458 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
5459 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5460 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
5461 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
5462 | ( | |
5463 | cat <<\_ASBOX | |
5464 | ## ---------------------------------------------------------- ## | |
5465 | ## Report this to smartmontools-support@lists.sourceforge.net ## | |
5466 | ## ---------------------------------------------------------- ## | |
5467 | _ASBOX | |
5468 | ) | | |
5469 | sed "s/^/$as_me: WARNING: /" >&2 | |
5470 | ;; | |
5471 | esac | |
5472 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5473 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
5474 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5475 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5476 | else | |
5477 | eval "$as_ac_Header=\$ac_header_preproc" | |
5478 | fi | |
5479 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
5480 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5481 | ||
5482 | fi | |
5483 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
5484 | cat >>confdefs.h <<_ACEOF | |
5485 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5486 | _ACEOF | |
5487 | ||
5488 | fi | |
5489 | ||
5490 | done | |
5491 | ||
5492 | ||
5493 | echo "$as_me:$LINENO: checking for int64_t" >&5 | |
5494 | echo $ECHO_N "checking for int64_t... $ECHO_C" >&6 | |
5495 | if test "${ac_cv_type_int64_t+set}" = set; then | |
5496 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5497 | else | |
5498 | cat >conftest.$ac_ext <<_ACEOF | |
5499 | /* confdefs.h. */ | |
5500 | _ACEOF | |
5501 | cat confdefs.h >>conftest.$ac_ext | |
5502 | cat >>conftest.$ac_ext <<_ACEOF | |
5503 | /* end confdefs.h. */ | |
5504 | $ac_includes_default | |
5505 | int | |
5506 | main () | |
5507 | { | |
5508 | if ((int64_t *) 0) | |
5509 | return 0; | |
5510 | if (sizeof (int64_t)) | |
5511 | return 0; | |
5512 | ; | |
5513 | return 0; | |
5514 | } | |
5515 | _ACEOF | |
5516 | rm -f conftest.$ac_objext | |
5517 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5518 | (eval $ac_compile) 2>conftest.er1 | |
5519 | ac_status=$? | |
5520 | grep -v '^ *+' conftest.er1 >conftest.err | |
5521 | rm -f conftest.er1 | |
5522 | cat conftest.err >&5 | |
5523 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5524 | (exit $ac_status); } && | |
5525 | { ac_try='test -z "$ac_c_werror_flag" | |
5526 | || test ! -s conftest.err' | |
5527 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5528 | (eval $ac_try) 2>&5 | |
5529 | ac_status=$? | |
5530 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5531 | (exit $ac_status); }; } && | |
5532 | { ac_try='test -s conftest.$ac_objext' | |
5533 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5534 | (eval $ac_try) 2>&5 | |
5535 | ac_status=$? | |
5536 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5537 | (exit $ac_status); }; }; then | |
5538 | ac_cv_type_int64_t=yes | |
5539 | else | |
5540 | echo "$as_me: failed program was:" >&5 | |
5541 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5542 | ||
5543 | ac_cv_type_int64_t=no | |
5544 | fi | |
5545 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5546 | fi | |
5547 | echo "$as_me:$LINENO: result: $ac_cv_type_int64_t" >&5 | |
5548 | echo "${ECHO_T}$ac_cv_type_int64_t" >&6 | |
5549 | if test $ac_cv_type_int64_t = yes; then | |
5550 | ||
5551 | cat >>confdefs.h <<_ACEOF | |
5552 | #define HAVE_INT64_T 1 | |
5553 | _ACEOF | |
5554 | ||
5555 | ||
5556 | fi | |
5557 | echo "$as_me:$LINENO: checking for uint64_t" >&5 | |
5558 | echo $ECHO_N "checking for uint64_t... $ECHO_C" >&6 | |
5559 | if test "${ac_cv_type_uint64_t+set}" = set; then | |
5560 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5561 | else | |
5562 | cat >conftest.$ac_ext <<_ACEOF | |
5563 | /* confdefs.h. */ | |
5564 | _ACEOF | |
5565 | cat confdefs.h >>conftest.$ac_ext | |
5566 | cat >>conftest.$ac_ext <<_ACEOF | |
5567 | /* end confdefs.h. */ | |
5568 | $ac_includes_default | |
5569 | int | |
5570 | main () | |
5571 | { | |
5572 | if ((uint64_t *) 0) | |
5573 | return 0; | |
5574 | if (sizeof (uint64_t)) | |
5575 | return 0; | |
5576 | ; | |
5577 | return 0; | |
5578 | } | |
5579 | _ACEOF | |
5580 | rm -f conftest.$ac_objext | |
5581 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5582 | (eval $ac_compile) 2>conftest.er1 | |
5583 | ac_status=$? | |
5584 | grep -v '^ *+' conftest.er1 >conftest.err | |
5585 | rm -f conftest.er1 | |
5586 | cat conftest.err >&5 | |
5587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5588 | (exit $ac_status); } && | |
5589 | { ac_try='test -z "$ac_c_werror_flag" | |
5590 | || test ! -s conftest.err' | |
5591 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5592 | (eval $ac_try) 2>&5 | |
5593 | ac_status=$? | |
5594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5595 | (exit $ac_status); }; } && | |
5596 | { ac_try='test -s conftest.$ac_objext' | |
5597 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5598 | (eval $ac_try) 2>&5 | |
5599 | ac_status=$? | |
5600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5601 | (exit $ac_status); }; }; then | |
5602 | ac_cv_type_uint64_t=yes | |
5603 | else | |
5604 | echo "$as_me: failed program was:" >&5 | |
5605 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5606 | ||
5607 | ac_cv_type_uint64_t=no | |
5608 | fi | |
5609 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5610 | fi | |
5611 | echo "$as_me:$LINENO: result: $ac_cv_type_uint64_t" >&5 | |
5612 | echo "${ECHO_T}$ac_cv_type_uint64_t" >&6 | |
5613 | if test $ac_cv_type_uint64_t = yes; then | |
5614 | ||
5615 | cat >>confdefs.h <<_ACEOF | |
5616 | #define HAVE_UINT64_T 1 | |
5617 | _ACEOF | |
5618 | ||
5619 | ||
5620 | fi | |
5621 | ||
5622 | ||
5623 | ||
5624 | for ac_func in getopt | |
5625 | do | |
5626 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
5627 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
5628 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
5629 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
5630 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5631 | else | |
5632 | cat >conftest.$ac_ext <<_ACEOF | |
5633 | /* confdefs.h. */ | |
5634 | _ACEOF | |
5635 | cat confdefs.h >>conftest.$ac_ext | |
5636 | cat >>conftest.$ac_ext <<_ACEOF | |
5637 | /* end confdefs.h. */ | |
5638 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
5639 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
5640 | #define $ac_func innocuous_$ac_func | |
5641 | ||
5642 | /* System header to define __stub macros and hopefully few prototypes, | |
5643 | which can conflict with char $ac_func (); below. | |
5644 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5645 | <limits.h> exists even on freestanding compilers. */ | |
5646 | ||
5647 | #ifdef __STDC__ | |
5648 | # include <limits.h> | |
5649 | #else | |
5650 | # include <assert.h> | |
5651 | #endif | |
5652 | ||
5653 | #undef $ac_func | |
5654 | ||
5655 | /* Override any gcc2 internal prototype to avoid an error. */ | |
5656 | #ifdef __cplusplus | |
5657 | extern "C" | |
5658 | { | |
5659 | #endif | |
5660 | /* We use char because int might match the return type of a gcc2 | |
5661 | builtin and then its argument prototype would still apply. */ | |
5662 | char $ac_func (); | |
5663 | /* The GNU C library defines this for functions which it implements | |
5664 | to always fail with ENOSYS. Some functions are actually named | |
5665 | something starting with __ and the normal name is an alias. */ | |
5666 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
5667 | choke me | |
5668 | #else | |
5669 | char (*f) () = $ac_func; | |
5670 | #endif | |
5671 | #ifdef __cplusplus | |
5672 | } | |
5673 | #endif | |
5674 | ||
5675 | int | |
5676 | main () | |
5677 | { | |
5678 | return f != $ac_func; | |
5679 | ; | |
5680 | return 0; | |
5681 | } | |
5682 | _ACEOF | |
5683 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5684 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5685 | (eval $ac_link) 2>conftest.er1 | |
5686 | ac_status=$? | |
5687 | grep -v '^ *+' conftest.er1 >conftest.err | |
5688 | rm -f conftest.er1 | |
5689 | cat conftest.err >&5 | |
5690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5691 | (exit $ac_status); } && | |
5692 | { ac_try='test -z "$ac_c_werror_flag" | |
5693 | || test ! -s conftest.err' | |
5694 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5695 | (eval $ac_try) 2>&5 | |
5696 | ac_status=$? | |
5697 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5698 | (exit $ac_status); }; } && | |
5699 | { ac_try='test -s conftest$ac_exeext' | |
5700 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5701 | (eval $ac_try) 2>&5 | |
5702 | ac_status=$? | |
5703 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5704 | (exit $ac_status); }; }; then | |
5705 | eval "$as_ac_var=yes" | |
5706 | else | |
5707 | echo "$as_me: failed program was:" >&5 | |
5708 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5709 | ||
5710 | eval "$as_ac_var=no" | |
5711 | fi | |
5712 | rm -f conftest.err conftest.$ac_objext \ | |
5713 | conftest$ac_exeext conftest.$ac_ext | |
5714 | fi | |
5715 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
5716 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
5717 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
5718 | cat >>confdefs.h <<_ACEOF | |
5719 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
5720 | _ACEOF | |
5721 | ||
5722 | fi | |
5723 | done | |
5724 | ||
5725 | ||
5726 | for ac_func in getopt_long | |
5727 | do | |
5728 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
5729 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
5730 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
5731 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
5732 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5733 | else | |
5734 | cat >conftest.$ac_ext <<_ACEOF | |
5735 | /* confdefs.h. */ | |
5736 | _ACEOF | |
5737 | cat confdefs.h >>conftest.$ac_ext | |
5738 | cat >>conftest.$ac_ext <<_ACEOF | |
5739 | /* end confdefs.h. */ | |
5740 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
5741 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
5742 | #define $ac_func innocuous_$ac_func | |
5743 | ||
5744 | /* System header to define __stub macros and hopefully few prototypes, | |
5745 | which can conflict with char $ac_func (); below. | |
5746 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5747 | <limits.h> exists even on freestanding compilers. */ | |
5748 | ||
5749 | #ifdef __STDC__ | |
5750 | # include <limits.h> | |
5751 | #else | |
5752 | # include <assert.h> | |
5753 | #endif | |
5754 | ||
5755 | #undef $ac_func | |
5756 | ||
5757 | /* Override any gcc2 internal prototype to avoid an error. */ | |
5758 | #ifdef __cplusplus | |
5759 | extern "C" | |
5760 | { | |
5761 | #endif | |
5762 | /* We use char because int might match the return type of a gcc2 | |
5763 | builtin and then its argument prototype would still apply. */ | |
5764 | char $ac_func (); | |
5765 | /* The GNU C library defines this for functions which it implements | |
5766 | to always fail with ENOSYS. Some functions are actually named | |
5767 | something starting with __ and the normal name is an alias. */ | |
5768 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
5769 | choke me | |
5770 | #else | |
5771 | char (*f) () = $ac_func; | |
5772 | #endif | |
5773 | #ifdef __cplusplus | |
5774 | } | |
5775 | #endif | |
5776 | ||
5777 | int | |
5778 | main () | |
5779 | { | |
5780 | return f != $ac_func; | |
5781 | ; | |
5782 | return 0; | |
5783 | } | |
5784 | _ACEOF | |
5785 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5786 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5787 | (eval $ac_link) 2>conftest.er1 | |
5788 | ac_status=$? | |
5789 | grep -v '^ *+' conftest.er1 >conftest.err | |
5790 | rm -f conftest.er1 | |
5791 | cat conftest.err >&5 | |
5792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5793 | (exit $ac_status); } && | |
5794 | { ac_try='test -z "$ac_c_werror_flag" | |
5795 | || test ! -s conftest.err' | |
5796 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5797 | (eval $ac_try) 2>&5 | |
5798 | ac_status=$? | |
5799 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5800 | (exit $ac_status); }; } && | |
5801 | { ac_try='test -s conftest$ac_exeext' | |
5802 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5803 | (eval $ac_try) 2>&5 | |
5804 | ac_status=$? | |
5805 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5806 | (exit $ac_status); }; }; then | |
5807 | eval "$as_ac_var=yes" | |
5808 | else | |
5809 | echo "$as_me: failed program was:" >&5 | |
5810 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5811 | ||
5812 | eval "$as_ac_var=no" | |
5813 | fi | |
5814 | rm -f conftest.err conftest.$ac_objext \ | |
5815 | conftest$ac_exeext conftest.$ac_ext | |
5816 | fi | |
5817 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
5818 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
5819 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
5820 | cat >>confdefs.h <<_ACEOF | |
5821 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
5822 | _ACEOF | |
5823 | ||
5824 | fi | |
5825 | done | |
5826 | ||
5827 | ||
5828 | for ac_func in getdomainname | |
5829 | do | |
5830 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
5831 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
5832 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
5833 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
5834 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5835 | else | |
5836 | cat >conftest.$ac_ext <<_ACEOF | |
5837 | /* confdefs.h. */ | |
5838 | _ACEOF | |
5839 | cat confdefs.h >>conftest.$ac_ext | |
5840 | cat >>conftest.$ac_ext <<_ACEOF | |
5841 | /* end confdefs.h. */ | |
5842 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
5843 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
5844 | #define $ac_func innocuous_$ac_func | |
5845 | ||
5846 | /* System header to define __stub macros and hopefully few prototypes, | |
5847 | which can conflict with char $ac_func (); below. | |
5848 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5849 | <limits.h> exists even on freestanding compilers. */ | |
5850 | ||
5851 | #ifdef __STDC__ | |
5852 | # include <limits.h> | |
5853 | #else | |
5854 | # include <assert.h> | |
5855 | #endif | |
5856 | ||
5857 | #undef $ac_func | |
5858 | ||
5859 | /* Override any gcc2 internal prototype to avoid an error. */ | |
5860 | #ifdef __cplusplus | |
5861 | extern "C" | |
5862 | { | |
5863 | #endif | |
5864 | /* We use char because int might match the return type of a gcc2 | |
5865 | builtin and then its argument prototype would still apply. */ | |
5866 | char $ac_func (); | |
5867 | /* The GNU C library defines this for functions which it implements | |
5868 | to always fail with ENOSYS. Some functions are actually named | |
5869 | something starting with __ and the normal name is an alias. */ | |
5870 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
5871 | choke me | |
5872 | #else | |
5873 | char (*f) () = $ac_func; | |
5874 | #endif | |
5875 | #ifdef __cplusplus | |
5876 | } | |
5877 | #endif | |
5878 | ||
5879 | int | |
5880 | main () | |
5881 | { | |
5882 | return f != $ac_func; | |
5883 | ; | |
5884 | return 0; | |
5885 | } | |
5886 | _ACEOF | |
5887 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5888 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5889 | (eval $ac_link) 2>conftest.er1 | |
5890 | ac_status=$? | |
5891 | grep -v '^ *+' conftest.er1 >conftest.err | |
5892 | rm -f conftest.er1 | |
5893 | cat conftest.err >&5 | |
5894 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5895 | (exit $ac_status); } && | |
5896 | { ac_try='test -z "$ac_c_werror_flag" | |
5897 | || test ! -s conftest.err' | |
5898 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5899 | (eval $ac_try) 2>&5 | |
5900 | ac_status=$? | |
5901 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5902 | (exit $ac_status); }; } && | |
5903 | { ac_try='test -s conftest$ac_exeext' | |
5904 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5905 | (eval $ac_try) 2>&5 | |
5906 | ac_status=$? | |
5907 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5908 | (exit $ac_status); }; }; then | |
5909 | eval "$as_ac_var=yes" | |
5910 | else | |
5911 | echo "$as_me: failed program was:" >&5 | |
5912 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5913 | ||
5914 | eval "$as_ac_var=no" | |
5915 | fi | |
5916 | rm -f conftest.err conftest.$ac_objext \ | |
5917 | conftest$ac_exeext conftest.$ac_ext | |
5918 | fi | |
5919 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
5920 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
5921 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
5922 | cat >>confdefs.h <<_ACEOF | |
5923 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
5924 | _ACEOF | |
5925 | ||
5926 | fi | |
5927 | done | |
5928 | ||
5929 | ||
5930 | for ac_func in gethostname | |
5931 | do | |
5932 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
5933 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
5934 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
5935 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
5936 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5937 | else | |
5938 | cat >conftest.$ac_ext <<_ACEOF | |
5939 | /* confdefs.h. */ | |
5940 | _ACEOF | |
5941 | cat confdefs.h >>conftest.$ac_ext | |
5942 | cat >>conftest.$ac_ext <<_ACEOF | |
5943 | /* end confdefs.h. */ | |
5944 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
5945 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
5946 | #define $ac_func innocuous_$ac_func | |
5947 | ||
5948 | /* System header to define __stub macros and hopefully few prototypes, | |
5949 | which can conflict with char $ac_func (); below. | |
5950 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5951 | <limits.h> exists even on freestanding compilers. */ | |
5952 | ||
5953 | #ifdef __STDC__ | |
5954 | # include <limits.h> | |
5955 | #else | |
5956 | # include <assert.h> | |
5957 | #endif | |
5958 | ||
5959 | #undef $ac_func | |
5960 | ||
5961 | /* Override any gcc2 internal prototype to avoid an error. */ | |
5962 | #ifdef __cplusplus | |
5963 | extern "C" | |
5964 | { | |
5965 | #endif | |
5966 | /* We use char because int might match the return type of a gcc2 | |
5967 | builtin and then its argument prototype would still apply. */ | |
5968 | char $ac_func (); | |
5969 | /* The GNU C library defines this for functions which it implements | |
5970 | to always fail with ENOSYS. Some functions are actually named | |
5971 | something starting with __ and the normal name is an alias. */ | |
5972 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
5973 | choke me | |
5974 | #else | |
5975 | char (*f) () = $ac_func; | |
5976 | #endif | |
5977 | #ifdef __cplusplus | |
5978 | } | |
5979 | #endif | |
5980 | ||
5981 | int | |
5982 | main () | |
5983 | { | |
5984 | return f != $ac_func; | |
5985 | ; | |
5986 | return 0; | |
5987 | } | |
5988 | _ACEOF | |
5989 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5990 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5991 | (eval $ac_link) 2>conftest.er1 | |
5992 | ac_status=$? | |
5993 | grep -v '^ *+' conftest.er1 >conftest.err | |
5994 | rm -f conftest.er1 | |
5995 | cat conftest.err >&5 | |
5996 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5997 | (exit $ac_status); } && | |
5998 | { ac_try='test -z "$ac_c_werror_flag" | |
5999 | || test ! -s conftest.err' | |
6000 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6001 | (eval $ac_try) 2>&5 | |
6002 | ac_status=$? | |
6003 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6004 | (exit $ac_status); }; } && | |
6005 | { ac_try='test -s conftest$ac_exeext' | |
6006 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6007 | (eval $ac_try) 2>&5 | |
6008 | ac_status=$? | |
6009 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6010 | (exit $ac_status); }; }; then | |
6011 | eval "$as_ac_var=yes" | |
6012 | else | |
6013 | echo "$as_me: failed program was:" >&5 | |
6014 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6015 | ||
6016 | eval "$as_ac_var=no" | |
6017 | fi | |
6018 | rm -f conftest.err conftest.$ac_objext \ | |
6019 | conftest$ac_exeext conftest.$ac_ext | |
6020 | fi | |
6021 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
6022 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
6023 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
6024 | cat >>confdefs.h <<_ACEOF | |
6025 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
6026 | _ACEOF | |
6027 | ||
6028 | fi | |
6029 | done | |
6030 | ||
6031 | ||
6032 | for ac_func in gethostbyname | |
6033 | do | |
6034 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
6035 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
6036 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
6037 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
6038 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6039 | else | |
6040 | cat >conftest.$ac_ext <<_ACEOF | |
6041 | /* confdefs.h. */ | |
6042 | _ACEOF | |
6043 | cat confdefs.h >>conftest.$ac_ext | |
6044 | cat >>conftest.$ac_ext <<_ACEOF | |
6045 | /* end confdefs.h. */ | |
6046 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
6047 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
6048 | #define $ac_func innocuous_$ac_func | |
6049 | ||
6050 | /* System header to define __stub macros and hopefully few prototypes, | |
6051 | which can conflict with char $ac_func (); below. | |
6052 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6053 | <limits.h> exists even on freestanding compilers. */ | |
6054 | ||
6055 | #ifdef __STDC__ | |
6056 | # include <limits.h> | |
6057 | #else | |
6058 | # include <assert.h> | |
6059 | #endif | |
6060 | ||
6061 | #undef $ac_func | |
6062 | ||
6063 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6064 | #ifdef __cplusplus | |
6065 | extern "C" | |
6066 | { | |
6067 | #endif | |
6068 | /* We use char because int might match the return type of a gcc2 | |
6069 | builtin and then its argument prototype would still apply. */ | |
6070 | char $ac_func (); | |
6071 | /* The GNU C library defines this for functions which it implements | |
6072 | to always fail with ENOSYS. Some functions are actually named | |
6073 | something starting with __ and the normal name is an alias. */ | |
6074 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
6075 | choke me | |
6076 | #else | |
6077 | char (*f) () = $ac_func; | |
6078 | #endif | |
6079 | #ifdef __cplusplus | |
6080 | } | |
6081 | #endif | |
6082 | ||
6083 | int | |
6084 | main () | |
6085 | { | |
6086 | return f != $ac_func; | |
6087 | ; | |
6088 | return 0; | |
6089 | } | |
6090 | _ACEOF | |
6091 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6092 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6093 | (eval $ac_link) 2>conftest.er1 | |
6094 | ac_status=$? | |
6095 | grep -v '^ *+' conftest.er1 >conftest.err | |
6096 | rm -f conftest.er1 | |
6097 | cat conftest.err >&5 | |
6098 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6099 | (exit $ac_status); } && | |
6100 | { ac_try='test -z "$ac_c_werror_flag" | |
6101 | || test ! -s conftest.err' | |
6102 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6103 | (eval $ac_try) 2>&5 | |
6104 | ac_status=$? | |
6105 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6106 | (exit $ac_status); }; } && | |
6107 | { ac_try='test -s conftest$ac_exeext' | |
6108 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6109 | (eval $ac_try) 2>&5 | |
6110 | ac_status=$? | |
6111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6112 | (exit $ac_status); }; }; then | |
6113 | eval "$as_ac_var=yes" | |
6114 | else | |
6115 | echo "$as_me: failed program was:" >&5 | |
6116 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6117 | ||
6118 | eval "$as_ac_var=no" | |
6119 | fi | |
6120 | rm -f conftest.err conftest.$ac_objext \ | |
6121 | conftest$ac_exeext conftest.$ac_ext | |
6122 | fi | |
6123 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
6124 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
6125 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
6126 | cat >>confdefs.h <<_ACEOF | |
6127 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
6128 | _ACEOF | |
6129 | ||
6130 | fi | |
6131 | done | |
6132 | ||
6133 | ||
6134 | for ac_func in sigset | |
6135 | do | |
6136 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
6137 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
6138 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
6139 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
6140 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6141 | else | |
6142 | cat >conftest.$ac_ext <<_ACEOF | |
6143 | /* confdefs.h. */ | |
6144 | _ACEOF | |
6145 | cat confdefs.h >>conftest.$ac_ext | |
6146 | cat >>conftest.$ac_ext <<_ACEOF | |
6147 | /* end confdefs.h. */ | |
6148 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
6149 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
6150 | #define $ac_func innocuous_$ac_func | |
6151 | ||
6152 | /* System header to define __stub macros and hopefully few prototypes, | |
6153 | which can conflict with char $ac_func (); below. | |
6154 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6155 | <limits.h> exists even on freestanding compilers. */ | |
6156 | ||
6157 | #ifdef __STDC__ | |
6158 | # include <limits.h> | |
6159 | #else | |
6160 | # include <assert.h> | |
6161 | #endif | |
6162 | ||
6163 | #undef $ac_func | |
6164 | ||
6165 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6166 | #ifdef __cplusplus | |
6167 | extern "C" | |
6168 | { | |
6169 | #endif | |
6170 | /* We use char because int might match the return type of a gcc2 | |
6171 | builtin and then its argument prototype would still apply. */ | |
6172 | char $ac_func (); | |
6173 | /* The GNU C library defines this for functions which it implements | |
6174 | to always fail with ENOSYS. Some functions are actually named | |
6175 | something starting with __ and the normal name is an alias. */ | |
6176 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
6177 | choke me | |
6178 | #else | |
6179 | char (*f) () = $ac_func; | |
6180 | #endif | |
6181 | #ifdef __cplusplus | |
6182 | } | |
6183 | #endif | |
6184 | ||
6185 | int | |
6186 | main () | |
6187 | { | |
6188 | return f != $ac_func; | |
6189 | ; | |
6190 | return 0; | |
6191 | } | |
6192 | _ACEOF | |
6193 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6194 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6195 | (eval $ac_link) 2>conftest.er1 | |
6196 | ac_status=$? | |
6197 | grep -v '^ *+' conftest.er1 >conftest.err | |
6198 | rm -f conftest.er1 | |
6199 | cat conftest.err >&5 | |
6200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6201 | (exit $ac_status); } && | |
6202 | { ac_try='test -z "$ac_c_werror_flag" | |
6203 | || test ! -s conftest.err' | |
6204 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6205 | (eval $ac_try) 2>&5 | |
6206 | ac_status=$? | |
6207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6208 | (exit $ac_status); }; } && | |
6209 | { ac_try='test -s conftest$ac_exeext' | |
6210 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6211 | (eval $ac_try) 2>&5 | |
6212 | ac_status=$? | |
6213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6214 | (exit $ac_status); }; }; then | |
6215 | eval "$as_ac_var=yes" | |
6216 | else | |
6217 | echo "$as_me: failed program was:" >&5 | |
6218 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6219 | ||
6220 | eval "$as_ac_var=no" | |
6221 | fi | |
6222 | rm -f conftest.err conftest.$ac_objext \ | |
6223 | conftest$ac_exeext conftest.$ac_ext | |
6224 | fi | |
6225 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
6226 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
6227 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
6228 | cat >>confdefs.h <<_ACEOF | |
6229 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
6230 | _ACEOF | |
6231 | ||
6232 | fi | |
6233 | done | |
6234 | ||
6235 | ||
6236 | for ac_func in strtoull | |
6237 | do | |
6238 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
6239 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
6240 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
6241 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
6242 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6243 | else | |
6244 | cat >conftest.$ac_ext <<_ACEOF | |
6245 | /* confdefs.h. */ | |
6246 | _ACEOF | |
6247 | cat confdefs.h >>conftest.$ac_ext | |
6248 | cat >>conftest.$ac_ext <<_ACEOF | |
6249 | /* end confdefs.h. */ | |
6250 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
6251 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
6252 | #define $ac_func innocuous_$ac_func | |
6253 | ||
6254 | /* System header to define __stub macros and hopefully few prototypes, | |
6255 | which can conflict with char $ac_func (); below. | |
6256 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6257 | <limits.h> exists even on freestanding compilers. */ | |
6258 | ||
6259 | #ifdef __STDC__ | |
6260 | # include <limits.h> | |
6261 | #else | |
6262 | # include <assert.h> | |
6263 | #endif | |
6264 | ||
6265 | #undef $ac_func | |
6266 | ||
6267 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6268 | #ifdef __cplusplus | |
6269 | extern "C" | |
6270 | { | |
6271 | #endif | |
6272 | /* We use char because int might match the return type of a gcc2 | |
6273 | builtin and then its argument prototype would still apply. */ | |
6274 | char $ac_func (); | |
6275 | /* The GNU C library defines this for functions which it implements | |
6276 | to always fail with ENOSYS. Some functions are actually named | |
6277 | something starting with __ and the normal name is an alias. */ | |
6278 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
6279 | choke me | |
6280 | #else | |
6281 | char (*f) () = $ac_func; | |
6282 | #endif | |
6283 | #ifdef __cplusplus | |
6284 | } | |
6285 | #endif | |
6286 | ||
6287 | int | |
6288 | main () | |
6289 | { | |
6290 | return f != $ac_func; | |
6291 | ; | |
6292 | return 0; | |
6293 | } | |
6294 | _ACEOF | |
6295 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6296 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6297 | (eval $ac_link) 2>conftest.er1 | |
6298 | ac_status=$? | |
6299 | grep -v '^ *+' conftest.er1 >conftest.err | |
6300 | rm -f conftest.er1 | |
6301 | cat conftest.err >&5 | |
6302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6303 | (exit $ac_status); } && | |
6304 | { ac_try='test -z "$ac_c_werror_flag" | |
6305 | || test ! -s conftest.err' | |
6306 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6307 | (eval $ac_try) 2>&5 | |
6308 | ac_status=$? | |
6309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6310 | (exit $ac_status); }; } && | |
6311 | { ac_try='test -s conftest$ac_exeext' | |
6312 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6313 | (eval $ac_try) 2>&5 | |
6314 | ac_status=$? | |
6315 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6316 | (exit $ac_status); }; }; then | |
6317 | eval "$as_ac_var=yes" | |
6318 | else | |
6319 | echo "$as_me: failed program was:" >&5 | |
6320 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6321 | ||
6322 | eval "$as_ac_var=no" | |
6323 | fi | |
6324 | rm -f conftest.err conftest.$ac_objext \ | |
6325 | conftest$ac_exeext conftest.$ac_ext | |
6326 | fi | |
6327 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
6328 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
6329 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
6330 | cat >>confdefs.h <<_ACEOF | |
6331 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
6332 | _ACEOF | |
6333 | ||
6334 | fi | |
6335 | done | |
6336 | ||
6337 | ||
6338 | for ac_func in uname | |
6339 | do | |
6340 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
6341 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
6342 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
6343 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
6344 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6345 | else | |
6346 | cat >conftest.$ac_ext <<_ACEOF | |
6347 | /* confdefs.h. */ | |
6348 | _ACEOF | |
6349 | cat confdefs.h >>conftest.$ac_ext | |
6350 | cat >>conftest.$ac_ext <<_ACEOF | |
6351 | /* end confdefs.h. */ | |
6352 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
6353 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
6354 | #define $ac_func innocuous_$ac_func | |
6355 | ||
6356 | /* System header to define __stub macros and hopefully few prototypes, | |
6357 | which can conflict with char $ac_func (); below. | |
6358 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6359 | <limits.h> exists even on freestanding compilers. */ | |
6360 | ||
6361 | #ifdef __STDC__ | |
6362 | # include <limits.h> | |
6363 | #else | |
6364 | # include <assert.h> | |
6365 | #endif | |
6366 | ||
6367 | #undef $ac_func | |
6368 | ||
6369 | /* Override any gcc2 internal prototype to avoid an error. */ | |
6370 | #ifdef __cplusplus | |
6371 | extern "C" | |
6372 | { | |
6373 | #endif | |
6374 | /* We use char because int might match the return type of a gcc2 | |
6375 | builtin and then its argument prototype would still apply. */ | |
6376 | char $ac_func (); | |
6377 | /* The GNU C library defines this for functions which it implements | |
6378 | to always fail with ENOSYS. Some functions are actually named | |
6379 | something starting with __ and the normal name is an alias. */ | |
6380 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
6381 | choke me | |
6382 | #else | |
6383 | char (*f) () = $ac_func; | |
6384 | #endif | |
6385 | #ifdef __cplusplus | |
6386 | } | |
6387 | #endif | |
6388 | ||
6389 | int | |
6390 | main () | |
6391 | { | |
6392 | return f != $ac_func; | |
6393 | ; | |
6394 | return 0; | |
6395 | } | |
6396 | _ACEOF | |
6397 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6398 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6399 | (eval $ac_link) 2>conftest.er1 | |
6400 | ac_status=$? | |
6401 | grep -v '^ *+' conftest.er1 >conftest.err | |
6402 | rm -f conftest.er1 | |
6403 | cat conftest.err >&5 | |
6404 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6405 | (exit $ac_status); } && | |
6406 | { ac_try='test -z "$ac_c_werror_flag" | |
6407 | || test ! -s conftest.err' | |
6408 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6409 | (eval $ac_try) 2>&5 | |
6410 | ac_status=$? | |
6411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6412 | (exit $ac_status); }; } && | |
6413 | { ac_try='test -s conftest$ac_exeext' | |
6414 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6415 | (eval $ac_try) 2>&5 | |
6416 | ac_status=$? | |
6417 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6418 | (exit $ac_status); }; }; then | |
6419 | eval "$as_ac_var=yes" | |
6420 | else | |
6421 | echo "$as_me: failed program was:" >&5 | |
6422 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6423 | ||
6424 | eval "$as_ac_var=no" | |
6425 | fi | |
6426 | rm -f conftest.err conftest.$ac_objext \ | |
6427 | conftest$ac_exeext conftest.$ac_ext | |
6428 | fi | |
6429 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
6430 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
6431 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
6432 | cat >>confdefs.h <<_ACEOF | |
6433 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
6434 | _ACEOF | |
6435 | ||
6436 | fi | |
6437 | done | |
6438 | ||
6439 | ||
6440 | # Check whether snprintf appends null char and returns expected length on overflow | |
6441 | ||
6442 | ||
6443 | echo "$as_me:$LINENO: checking for working snprintf" >&5 | |
6444 | echo $ECHO_N "checking for working snprintf... $ECHO_C" >&6 | |
6445 | if test "$cross_compiling" = yes; then | |
6446 | { { echo "$as_me:$LINENO: error: cannot run test program while cross compiling | |
6447 | See \`config.log' for more details." >&5 | |
6448 | echo "$as_me: error: cannot run test program while cross compiling | |
6449 | See \`config.log' for more details." >&2;} | |
6450 | { (exit 1); exit 1; }; } | |
6451 | else | |
6452 | cat >conftest.$ac_ext <<_ACEOF | |
6453 | /* confdefs.h. */ | |
6454 | _ACEOF | |
6455 | cat confdefs.h >>conftest.$ac_ext | |
6456 | cat >>conftest.$ac_ext <<_ACEOF | |
6457 | /* end confdefs.h. */ | |
6458 | #include <stdio.h> | |
6459 | int | |
6460 | main () | |
6461 | { | |
6462 | char buf[]="ABCDEFGHI"; | |
6463 | int i=snprintf(buf,8,"12345678"); return !(!buf[7] && i==8); | |
6464 | ; | |
6465 | return 0; | |
6466 | } | |
6467 | _ACEOF | |
6468 | rm -f conftest$ac_exeext | |
6469 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6470 | (eval $ac_link) 2>&5 | |
6471 | ac_status=$? | |
6472 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6473 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
6474 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6475 | (eval $ac_try) 2>&5 | |
6476 | ac_status=$? | |
6477 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6478 | (exit $ac_status); }; }; then | |
6479 | libc_have_working_snprintf=yes | |
6480 | else | |
6481 | echo "$as_me: program exited with status $ac_status" >&5 | |
6482 | echo "$as_me: failed program was:" >&5 | |
6483 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6484 | ||
6485 | ( exit $ac_status ) | |
6486 | libc_have_working_snprintf=no | |
6487 | fi | |
6488 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
6489 | fi | |
6490 | ||
6491 | if test "$libc_have_working_snprintf" = "yes"; then | |
6492 | cat >>confdefs.h <<\_ACEOF | |
6493 | #define HAVE_WORKING_SNPRINTF 1 | |
6494 | _ACEOF | |
6495 | ||
6496 | fi | |
6497 | echo "$as_me:$LINENO: result: $libc_have_working_snprintf" >&5 | |
6498 | echo "${ECHO_T}$libc_have_working_snprintf" >&6 | |
6499 | ||
6500 | # check for __attribute__((packed)) | |
6501 | ||
6502 | ||
6503 | echo "$as_me:$LINENO: checking whether C compiler supports __attribute__((packed))" >&5 | |
6504 | echo $ECHO_N "checking whether C compiler supports __attribute__((packed))... $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 | ||
6512 | int | |
6513 | main () | |
6514 | { | |
6515 | struct a { int b; } __attribute__((packed)); | |
6516 | ; | |
6517 | return 0; | |
6518 | } | |
6519 | _ACEOF | |
6520 | rm -f conftest.$ac_objext | |
6521 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6522 | (eval $ac_compile) 2>conftest.er1 | |
6523 | ac_status=$? | |
6524 | grep -v '^ *+' conftest.er1 >conftest.err | |
6525 | rm -f conftest.er1 | |
6526 | cat conftest.err >&5 | |
6527 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6528 | (exit $ac_status); } && | |
6529 | { ac_try='test -z "$ac_c_werror_flag" | |
6530 | || test ! -s conftest.err' | |
6531 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6532 | (eval $ac_try) 2>&5 | |
6533 | ac_status=$? | |
6534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6535 | (exit $ac_status); }; } && | |
6536 | { ac_try='test -s conftest.$ac_objext' | |
6537 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6538 | (eval $ac_try) 2>&5 | |
6539 | ac_status=$? | |
6540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6541 | (exit $ac_status); }; }; then | |
6542 | gcc_have_attr_packed=yes | |
6543 | else | |
6544 | echo "$as_me: failed program was:" >&5 | |
6545 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6546 | ||
6547 | gcc_have_attr_packed=no | |
6548 | fi | |
6549 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6550 | ||
6551 | if test "$gcc_have_attr_packed" = "yes"; then | |
6552 | cat >>confdefs.h <<\_ACEOF | |
6553 | #define HAVE_ATTR_PACKED 1 | |
6554 | _ACEOF | |
6555 | ||
6556 | fi | |
6557 | echo "$as_me:$LINENO: result: $gcc_have_attr_packed" >&5 | |
6558 | echo "${ECHO_T}$gcc_have_attr_packed" >&6 | |
6559 | ||
6560 | ||
6561 | ||
6562 | ||
6563 | ||
6564 | exampledir='${docdir}/examplescripts' | |
6565 | ||
6566 | ||
6567 | ||
6568 | # Check whether --with-initscriptdir or --without-initscriptdir was given. | |
6569 | if test "${with_initscriptdir+set}" = set; then | |
6570 | withval="$with_initscriptdir" | |
6571 | initddir="$withval" | |
6572 | else | |
6573 | initddir='${sysconfdir}/rc.d/init.d' | |
6574 | fi; | |
6575 | ||
6576 | ||
6577 | ||
6578 | # Check whether --with-docdir or --without-docdir was given. | |
6579 | if test "${with_docdir+set}" = set; then | |
6580 | withval="$with_docdir" | |
6581 | docdir="$withval" | |
6582 | else | |
6583 | docdir='${prefix}/share/doc/${PACKAGE}-${VERSION}' | |
6584 | fi; | |
6585 | ||
6586 | ||
6587 | # Check whether --enable-sample or --disable-sample was given. | |
6588 | if test "${enable_sample+set}" = set; then | |
6589 | enableval="$enable_sample" | |
6590 | smartd_suffix='.sample' | |
6591 | else | |
6592 | smartd_suffix='' | |
6593 | fi; | |
6594 | ||
6595 | ||
6596 | ||
6597 | if test $smartd_suffix; then | |
6598 | SMARTD_SUFFIX_TRUE= | |
6599 | SMARTD_SUFFIX_FALSE='#' | |
6600 | else | |
6601 | SMARTD_SUFFIX_TRUE='#' | |
6602 | SMARTD_SUFFIX_FALSE= | |
6603 | fi | |
6604 | ||
6605 | ||
6606 | if test "$prefix" = "NONE"; then | |
6607 | if test "$mandir" = '${prefix}/man'; then | |
6608 | mandir='${prefix}/share/man' | |
6609 | ||
6610 | fi | |
6611 | fi | |
6612 | ||
6613 | releaseversion='${PACKAGE}-${VERSION}' | |
6614 | ||
6615 | ||
6616 | ||
6617 | ||
6618 | case "${host}" in | |
6619 | *-*-linux-gnu*) | |
6620 | os_deps='os_linux.o' | |
6621 | ||
6622 | os_libs='' | |
6623 | ;; | |
6624 | *-*-linux*) | |
6625 | os_deps='os_linux.o' | |
6626 | ||
6627 | os_libs='' | |
6628 | ;; | |
6629 | *-*-freebsd*) | |
6630 | os_deps='os_freebsd.o' | |
6631 | ||
6632 | os_libs='-lcam' | |
6633 | ;; | |
6634 | sparc-*-solaris*) | |
6635 | ||
6636 | cat >>confdefs.h <<_ACEOF | |
6637 | #define DEFAULT_MAILER "mailx" | |
6638 | _ACEOF | |
6639 | ||
6640 | ||
6641 | cat >>confdefs.h <<_ACEOF | |
6642 | #define NEED_SOLARIS_ATA_CODE "os_solaris_ata.s" | |
6643 | _ACEOF | |
6644 | ||
6645 | os_deps='os_solaris.o os_solaris_ata.o' | |
6646 | ||
6647 | os_libs='' | |
6648 | ;; | |
6649 | *-pc-solaris*) | |
6650 | ||
6651 | cat >>confdefs.h <<_ACEOF | |
6652 | #define DEFAULT_MAILER "mailx" | |
6653 | _ACEOF | |
6654 | ||
6655 | os_deps='os_solaris.o' | |
6656 | ||
6657 | os_libs='' | |
6658 | ;; | |
6659 | *-*-netbsd*) | |
6660 | os_deps='os_netbsd.o' | |
6661 | ||
6662 | os_libs='-lutil' | |
6663 | ;; | |
6664 | *-*-openbsd*) | |
6665 | os_deps='os_openbsd.o' | |
6666 | ||
6667 | os_libs='-lutil' | |
6668 | ;; | |
6669 | *-*-cygwin*) | |
6670 | os_deps='os_win32.o' | |
6671 | ||
6672 | os_libs='' | |
6673 | ;; | |
6674 | *-*-mingw*) | |
6675 | os_deps='os_win32.o' | |
6676 | ||
6677 | os_libs='' | |
6678 | ;; | |
6679 | *-*-darwin*) | |
6680 | os_deps='os_darwin.o' | |
6681 | ||
6682 | os_libs='-framework CoreFoundation -framework IOKit' | |
6683 | ;; | |
6684 | *) | |
6685 | os_deps='os_generic.o' | |
6686 | ||
6687 | os_libs='' | |
6688 | ;; | |
6689 | esac | |
6690 | ||
6691 | # Define symbols for optional functions in OS specific module | |
6692 | case "${os_deps}" in | |
6693 | os_win32*) | |
6694 | ||
6695 | cat >>confdefs.h <<\_ACEOF | |
6696 | #define HAVE_ATA_IDENTIFY_IS_CACHED 1 | |
6697 | _ACEOF | |
6698 | ;; | |
6699 | esac | |
6700 | case "${os_deps}" in | |
6701 | os_win32*) | |
6702 | ||
6703 | cat >>confdefs.h <<\_ACEOF | |
6704 | #define HAVE_GET_OS_VERSION_STR 1 | |
6705 | _ACEOF | |
6706 | ;; | |
6707 | esac | |
6708 | ||
6709 | ||
6710 | ||
6711 | if echo $host_os | grep '^darwin' > /dev/null; then | |
6712 | OS_DARWIN_TRUE= | |
6713 | OS_DARWIN_FALSE='#' | |
6714 | else | |
6715 | OS_DARWIN_TRUE='#' | |
6716 | OS_DARWIN_FALSE= | |
6717 | fi | |
6718 | ||
6719 | ||
6720 | ||
6721 | if echo $host_os | grep '^solaris' > /dev/null; then | |
6722 | OS_SOLARIS_TRUE= | |
6723 | OS_SOLARIS_FALSE='#' | |
6724 | else | |
6725 | OS_SOLARIS_TRUE='#' | |
6726 | OS_SOLARIS_FALSE= | |
6727 | fi | |
6728 | ||
6729 | ||
6730 | ||
6731 | if echo $host_os | grep '^mingw' > /dev/null; then | |
6732 | OS_WIN32_MINGW_TRUE= | |
6733 | OS_WIN32_MINGW_FALSE='#' | |
6734 | else | |
6735 | OS_WIN32_MINGW_TRUE='#' | |
6736 | OS_WIN32_MINGW_FALSE= | |
6737 | fi | |
6738 | ||
6739 | ||
6740 | if test "x$GCC" = "xyes"; then | |
6741 | if test -z "`echo "$CFLAGS" | grep "\-Wall" 2> /dev/null`" ; then | |
6742 | CFLAGS="$CFLAGS -Wall" | |
6743 | fi | |
6744 | # In the next line, do NOT delete the 2 spaces inside double quotes. | |
6745 | if test -z "`echo "$CFLAGS " | grep "\-W " 2> /dev/null`" ; then | |
6746 | CFLAGS="$CFLAGS -W" | |
6747 | fi | |
6748 | case "${host}" in | |
6749 | *-*-mingw*) | |
6750 | # MinGW uses MSVCRT.DLL which uses printf format "%I64d" and not "%lld" for int64_t | |
6751 | CFLAGS="$CFLAGS -Wno-format";; | |
6752 | esac | |
6753 | else | |
6754 | case "${host}" in | |
6755 | *-*-solaris*) | |
6756 | if test -z "`echo "$CFLAGS" | grep "\-xmemalign" 2> /dev/null`" ; then | |
6757 | CFLAGS="-xmemalign=1i $CFLAGS" | |
6758 | fi | |
6759 | if test -z "`echo "$CFLAGS" | grep "\-xCC" 2> /dev/null`" ; then | |
6760 | CFLAGS="-xCC $CFLAGS" | |
6761 | fi | |
6762 | if test -z "`echo "$CFLAGS" | grep "\-xO" 2> /dev/null`" ; then | |
6763 | CFLAGS="-xO2 $CFLAGS" | |
6764 | fi | |
6765 | esac | |
6766 | fi | |
6767 | ||
6768 | ||
6769 | cat >>confdefs.h <<_ACEOF | |
6770 | #define SMARTMONTOOLS_BUILD_HOST "${host}" | |
6771 | _ACEOF | |
6772 | ||
6773 | ||
6774 | ||
6775 | ||
6776 | ac_config_files="$ac_config_files Makefile examplescripts/Makefile" | |
6777 | cat >confcache <<\_ACEOF | |
6778 | # This file is a shell script that caches the results of configure | |
6779 | # tests run on this system so they can be shared between configure | |
6780 | # scripts and configure runs, see configure's option --config-cache. | |
6781 | # It is not useful on other systems. If it contains results you don't | |
6782 | # want to keep, you may remove or edit it. | |
6783 | # | |
6784 | # config.status only pays attention to the cache file if you give it | |
6785 | # the --recheck option to rerun configure. | |
6786 | # | |
6787 | # `ac_cv_env_foo' variables (set or unset) will be overridden when | |
6788 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
6789 | # following values. | |
6790 | ||
6791 | _ACEOF | |
6792 | ||
6793 | # The following way of writing the cache mishandles newlines in values, | |
6794 | # but we know of no workaround that is simple, portable, and efficient. | |
6795 | # So, don't put newlines in cache variables' values. | |
6796 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
6797 | # and sets the high bit in the cache file unless we assign to the vars. | |
6798 | { | |
6799 | (set) 2>&1 | | |
6800 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
6801 | *ac_space=\ *) | |
6802 | # `set' does not quote correctly, so add quotes (double-quote | |
6803 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
6804 | sed -n \ | |
6805 | "s/'/'\\\\''/g; | |
6806 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
6807 | ;; | |
6808 | *) | |
6809 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
6810 | sed -n \ | |
6811 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
6812 | ;; | |
6813 | esac; | |
6814 | } | | |
6815 | sed ' | |
6816 | t clear | |
6817 | : clear | |
6818 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
6819 | t end | |
6820 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
6821 | : end' >>confcache | |
6822 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
6823 | if test -w $cache_file; then | |
6824 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" | |
6825 | cat confcache >$cache_file | |
6826 | else | |
6827 | echo "not updating unwritable cache $cache_file" | |
6828 | fi | |
6829 | fi | |
6830 | rm -f confcache | |
6831 | ||
6832 | test "x$prefix" = xNONE && prefix=$ac_default_prefix | |
6833 | # Let make expand exec_prefix. | |
6834 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
6835 | ||
6836 | # VPATH may cause trouble with some makes, so we remove $(srcdir), | |
6837 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
6838 | # trailing colons and then remove the whole line if VPATH becomes empty | |
6839 | # (actually we leave an empty line to preserve line numbers). | |
6840 | if test "x$srcdir" = x.; then | |
6841 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ | |
6842 | s/:*\$(srcdir):*/:/; | |
6843 | s/:*\${srcdir}:*/:/; | |
6844 | s/:*@srcdir@:*/:/; | |
6845 | s/^\([^=]*=[ ]*\):*/\1/; | |
6846 | s/:*$//; | |
6847 | s/^[^=]*=[ ]*$//; | |
6848 | }' | |
6849 | fi | |
6850 | ||
6851 | DEFS=-DHAVE_CONFIG_H | |
6852 | ||
6853 | ac_libobjs= | |
6854 | ac_ltlibobjs= | |
6855 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
6856 | # 1. Remove the extension, and $U if already installed. | |
6857 | ac_i=`echo "$ac_i" | | |
6858 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` | |
6859 | # 2. Add them. | |
6860 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
6861 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
6862 | done | |
6863 | LIBOBJS=$ac_libobjs | |
6864 | ||
6865 | LTLIBOBJS=$ac_ltlibobjs | |
6866 | ||
6867 | ||
6868 | if test -z "${MAINTAINER_MODE_TRUE}" && test -z "${MAINTAINER_MODE_FALSE}"; then | |
6869 | { { echo "$as_me:$LINENO: error: conditional \"MAINTAINER_MODE\" was never defined. | |
6870 | Usually this means the macro was only invoked conditionally." >&5 | |
6871 | echo "$as_me: error: conditional \"MAINTAINER_MODE\" was never defined. | |
6872 | Usually this means the macro was only invoked conditionally." >&2;} | |
6873 | { (exit 1); exit 1; }; } | |
6874 | fi | |
6875 | if test -z "${AMDEP_TRUE}" && test -z "${AMDEP_FALSE}"; then | |
6876 | { { echo "$as_me:$LINENO: error: conditional \"AMDEP\" was never defined. | |
6877 | Usually this means the macro was only invoked conditionally." >&5 | |
6878 | echo "$as_me: error: conditional \"AMDEP\" was never defined. | |
6879 | Usually this means the macro was only invoked conditionally." >&2;} | |
6880 | { (exit 1); exit 1; }; } | |
6881 | fi | |
6882 | if test -z "${am__fastdepCC_TRUE}" && test -z "${am__fastdepCC_FALSE}"; then | |
6883 | { { echo "$as_me:$LINENO: error: conditional \"am__fastdepCC\" was never defined. | |
6884 | Usually this means the macro was only invoked conditionally." >&5 | |
6885 | echo "$as_me: error: conditional \"am__fastdepCC\" was never defined. | |
6886 | Usually this means the macro was only invoked conditionally." >&2;} | |
6887 | { (exit 1); exit 1; }; } | |
6888 | fi | |
6889 | if test -z "${SMARTD_SUFFIX_TRUE}" && test -z "${SMARTD_SUFFIX_FALSE}"; then | |
6890 | { { echo "$as_me:$LINENO: error: conditional \"SMARTD_SUFFIX\" was never defined. | |
6891 | Usually this means the macro was only invoked conditionally." >&5 | |
6892 | echo "$as_me: error: conditional \"SMARTD_SUFFIX\" was never defined. | |
6893 | Usually this means the macro was only invoked conditionally." >&2;} | |
6894 | { (exit 1); exit 1; }; } | |
6895 | fi | |
6896 | if test -z "${OS_DARWIN_TRUE}" && test -z "${OS_DARWIN_FALSE}"; then | |
6897 | { { echo "$as_me:$LINENO: error: conditional \"OS_DARWIN\" was never defined. | |
6898 | Usually this means the macro was only invoked conditionally." >&5 | |
6899 | echo "$as_me: error: conditional \"OS_DARWIN\" was never defined. | |
6900 | Usually this means the macro was only invoked conditionally." >&2;} | |
6901 | { (exit 1); exit 1; }; } | |
6902 | fi | |
6903 | if test -z "${OS_SOLARIS_TRUE}" && test -z "${OS_SOLARIS_FALSE}"; then | |
6904 | { { echo "$as_me:$LINENO: error: conditional \"OS_SOLARIS\" was never defined. | |
6905 | Usually this means the macro was only invoked conditionally." >&5 | |
6906 | echo "$as_me: error: conditional \"OS_SOLARIS\" was never defined. | |
6907 | Usually this means the macro was only invoked conditionally." >&2;} | |
6908 | { (exit 1); exit 1; }; } | |
6909 | fi | |
6910 | if test -z "${OS_WIN32_MINGW_TRUE}" && test -z "${OS_WIN32_MINGW_FALSE}"; then | |
6911 | { { echo "$as_me:$LINENO: error: conditional \"OS_WIN32_MINGW\" was never defined. | |
6912 | Usually this means the macro was only invoked conditionally." >&5 | |
6913 | echo "$as_me: error: conditional \"OS_WIN32_MINGW\" was never defined. | |
6914 | Usually this means the macro was only invoked conditionally." >&2;} | |
6915 | { (exit 1); exit 1; }; } | |
6916 | fi | |
6917 | ||
6918 | : ${CONFIG_STATUS=./config.status} | |
6919 | ac_clean_files_save=$ac_clean_files | |
6920 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
6921 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
6922 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
6923 | cat >$CONFIG_STATUS <<_ACEOF | |
6924 | #! $SHELL | |
6925 | # Generated by $as_me. | |
6926 | # Run this file to recreate the current configuration. | |
6927 | # Compiler output produced by configure, useful for debugging | |
6928 | # configure, is in config.log if it exists. | |
6929 | ||
6930 | debug=false | |
6931 | ac_cs_recheck=false | |
6932 | ac_cs_silent=false | |
6933 | SHELL=\${CONFIG_SHELL-$SHELL} | |
6934 | _ACEOF | |
6935 | ||
6936 | cat >>$CONFIG_STATUS <<\_ACEOF | |
6937 | ## --------------------- ## | |
6938 | ## M4sh Initialization. ## | |
6939 | ## --------------------- ## | |
6940 | ||
6941 | # Be Bourne compatible | |
6942 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
6943 | emulate sh | |
6944 | NULLCMD=: | |
6945 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
6946 | # is contrary to our usage. Disable this feature. | |
6947 | alias -g '${1+"$@"}'='"$@"' | |
6948 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
6949 | set -o posix | |
6950 | fi | |
6951 | DUALCASE=1; export DUALCASE # for MKS sh | |
6952 | ||
6953 | # Support unset when possible. | |
6954 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
6955 | as_unset=unset | |
6956 | else | |
6957 | as_unset=false | |
6958 | fi | |
6959 | ||
6960 | ||
6961 | # Work around bugs in pre-3.0 UWIN ksh. | |
6962 | $as_unset ENV MAIL MAILPATH | |
6963 | PS1='$ ' | |
6964 | PS2='> ' | |
6965 | PS4='+ ' | |
6966 | ||
6967 | # NLS nuisances. | |
6968 | for as_var in \ | |
6969 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
6970 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
6971 | LC_TELEPHONE LC_TIME | |
6972 | do | |
6973 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
6974 | eval $as_var=C; export $as_var | |
6975 | else | |
6976 | $as_unset $as_var | |
6977 | fi | |
6978 | done | |
6979 | ||
6980 | # Required to use basename. | |
6981 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
6982 | as_expr=expr | |
6983 | else | |
6984 | as_expr=false | |
6985 | fi | |
6986 | ||
6987 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then | |
6988 | as_basename=basename | |
6989 | else | |
6990 | as_basename=false | |
6991 | fi | |
6992 | ||
6993 | ||
6994 | # Name of the executable. | |
6995 | as_me=`$as_basename "$0" || | |
6996 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
6997 | X"$0" : 'X\(//\)$' \| \ | |
6998 | X"$0" : 'X\(/\)$' \| \ | |
6999 | . : '\(.\)' 2>/dev/null || | |
7000 | echo X/"$0" | | |
7001 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
7002 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
7003 | /^X\/\(\/\).*/{ s//\1/; q; } | |
7004 | s/.*/./; q'` | |
7005 | ||
7006 | ||
7007 | # PATH needs CR, and LINENO needs CR and PATH. | |
7008 | # Avoid depending upon Character Ranges. | |
7009 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
7010 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
7011 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
7012 | as_cr_digits='0123456789' | |
7013 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
7014 | ||
7015 | # The user is always right. | |
7016 | if test "${PATH_SEPARATOR+set}" != set; then | |
7017 | echo "#! /bin/sh" >conf$$.sh | |
7018 | echo "exit 0" >>conf$$.sh | |
7019 | chmod +x conf$$.sh | |
7020 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
7021 | PATH_SEPARATOR=';' | |
7022 | else | |
7023 | PATH_SEPARATOR=: | |
7024 | fi | |
7025 | rm -f conf$$.sh | |
7026 | fi | |
7027 | ||
7028 | ||
7029 | as_lineno_1=$LINENO | |
7030 | as_lineno_2=$LINENO | |
7031 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
7032 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
7033 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
7034 | # Find who we are. Look in the path if we contain no path at all | |
7035 | # relative or not. | |
7036 | case $0 in | |
7037 | *[\\/]* ) as_myself=$0 ;; | |
7038 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7039 | for as_dir in $PATH | |
7040 | do | |
7041 | IFS=$as_save_IFS | |
7042 | test -z "$as_dir" && as_dir=. | |
7043 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
7044 | done | |
7045 | ||
7046 | ;; | |
7047 | esac | |
7048 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
7049 | # in which case we are not to be found in the path. | |
7050 | if test "x$as_myself" = x; then | |
7051 | as_myself=$0 | |
7052 | fi | |
7053 | if test ! -f "$as_myself"; then | |
7054 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
7055 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
7056 | { (exit 1); exit 1; }; } | |
7057 | fi | |
7058 | case $CONFIG_SHELL in | |
7059 | '') | |
7060 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
7061 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
7062 | do | |
7063 | IFS=$as_save_IFS | |
7064 | test -z "$as_dir" && as_dir=. | |
7065 | for as_base in sh bash ksh sh5; do | |
7066 | case $as_dir in | |
7067 | /*) | |
7068 | if ("$as_dir/$as_base" -c ' | |
7069 | as_lineno_1=$LINENO | |
7070 | as_lineno_2=$LINENO | |
7071 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
7072 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
7073 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
7074 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
7075 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
7076 | CONFIG_SHELL=$as_dir/$as_base | |
7077 | export CONFIG_SHELL | |
7078 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
7079 | fi;; | |
7080 | esac | |
7081 | done | |
7082 | done | |
7083 | ;; | |
7084 | esac | |
7085 | ||
7086 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
7087 | # uniformly replaced by the line number. The first 'sed' inserts a | |
7088 | # line-number line before each line; the second 'sed' does the real | |
7089 | # work. The second script uses 'N' to pair each line-number line | |
7090 | # with the numbered line, and appends trailing '-' during | |
7091 | # substitution so that $LINENO is not a special case at line end. | |
7092 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
7093 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
7094 | sed '=' <$as_myself | | |
7095 | sed ' | |
7096 | N | |
7097 | s,$,-, | |
7098 | : loop | |
7099 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
7100 | t loop | |
7101 | s,-$,, | |
7102 | s,^['$as_cr_digits']*\n,, | |
7103 | ' >$as_me.lineno && | |
7104 | chmod +x $as_me.lineno || | |
7105 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
7106 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
7107 | { (exit 1); exit 1; }; } | |
7108 | ||
7109 | # Don't try to exec as it changes $[0], causing all sort of problems | |
7110 | # (the dirname of $[0] is not the place where we might find the | |
7111 | # original and so on. Autoconf is especially sensible to this). | |
7112 | . ./$as_me.lineno | |
7113 | # Exit status is that of the last command. | |
7114 | exit | |
7115 | } | |
7116 | ||
7117 | ||
7118 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
7119 | *c*,-n*) ECHO_N= ECHO_C=' | |
7120 | ' ECHO_T=' ' ;; | |
7121 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
7122 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
7123 | esac | |
7124 | ||
7125 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
7126 | as_expr=expr | |
7127 | else | |
7128 | as_expr=false | |
7129 | fi | |
7130 | ||
7131 | rm -f conf$$ conf$$.exe conf$$.file | |
7132 | echo >conf$$.file | |
7133 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
7134 | # We could just check for DJGPP; but this test a) works b) is more generic | |
7135 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
7136 | if test -f conf$$.exe; then | |
7137 | # Don't use ln at all; we don't have any links | |
7138 | as_ln_s='cp -p' | |
7139 | else | |
7140 | as_ln_s='ln -s' | |
7141 | fi | |
7142 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
7143 | as_ln_s=ln | |
7144 | else | |
7145 | as_ln_s='cp -p' | |
7146 | fi | |
7147 | rm -f conf$$ conf$$.exe conf$$.file | |
7148 | ||
7149 | if mkdir -p . 2>/dev/null; then | |
7150 | as_mkdir_p=: | |
7151 | else | |
7152 | test -d ./-p && rmdir ./-p | |
7153 | as_mkdir_p=false | |
7154 | fi | |
7155 | ||
7156 | as_executable_p="test -f" | |
7157 | ||
7158 | # Sed expression to map a string onto a valid CPP name. | |
7159 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
7160 | ||
7161 | # Sed expression to map a string onto a valid variable name. | |
7162 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
7163 | ||
7164 | ||
7165 | # IFS | |
7166 | # We need space, tab and new line, in precisely that order. | |
7167 | as_nl=' | |
7168 | ' | |
7169 | IFS=" $as_nl" | |
7170 | ||
7171 | # CDPATH. | |
7172 | $as_unset CDPATH | |
7173 | ||
7174 | exec 6>&1 | |
7175 | ||
7176 | # Open the log real soon, to keep \$[0] and so on meaningful, and to | |
7177 | # report actual input values of CONFIG_FILES etc. instead of their | |
7178 | # values after options handling. Logging --version etc. is OK. | |
7179 | exec 5>>config.log | |
7180 | { | |
7181 | echo | |
7182 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
7183 | ## Running $as_me. ## | |
7184 | _ASBOX | |
7185 | } >&5 | |
7186 | cat >&5 <<_CSEOF | |
7187 | ||
7188 | This file was extended by smartmontools $as_me 5.36, which was | |
7189 | generated by GNU Autoconf 2.59. Invocation command line was | |
7190 | ||
7191 | CONFIG_FILES = $CONFIG_FILES | |
7192 | CONFIG_HEADERS = $CONFIG_HEADERS | |
7193 | CONFIG_LINKS = $CONFIG_LINKS | |
7194 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
7195 | $ $0 $@ | |
7196 | ||
7197 | _CSEOF | |
7198 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
7199 | echo >&5 | |
7200 | _ACEOF | |
7201 | ||
7202 | # Files that config.status was made for. | |
7203 | if test -n "$ac_config_files"; then | |
7204 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
7205 | fi | |
7206 | ||
7207 | if test -n "$ac_config_headers"; then | |
7208 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
7209 | fi | |
7210 | ||
7211 | if test -n "$ac_config_links"; then | |
7212 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
7213 | fi | |
7214 | ||
7215 | if test -n "$ac_config_commands"; then | |
7216 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
7217 | fi | |
7218 | ||
7219 | cat >>$CONFIG_STATUS <<\_ACEOF | |
7220 | ||
7221 | ac_cs_usage="\ | |
7222 | \`$as_me' instantiates files from templates according to the | |
7223 | current configuration. | |
7224 | ||
7225 | Usage: $0 [OPTIONS] [FILE]... | |
7226 | ||
7227 | -h, --help print this help, then exit | |
7228 | -V, --version print version number, then exit | |
7229 | -q, --quiet do not print progress messages | |
7230 | -d, --debug don't remove temporary files | |
7231 | --recheck update $as_me by reconfiguring in the same conditions | |
7232 | --file=FILE[:TEMPLATE] | |
7233 | instantiate the configuration file FILE | |
7234 | --header=FILE[:TEMPLATE] | |
7235 | instantiate the configuration header FILE | |
7236 | ||
7237 | Configuration files: | |
7238 | $config_files | |
7239 | ||
7240 | Configuration headers: | |
7241 | $config_headers | |
7242 | ||
7243 | Configuration commands: | |
7244 | $config_commands | |
7245 | ||
7246 | Report bugs to <bug-autoconf@gnu.org>." | |
7247 | _ACEOF | |
7248 | ||
7249 | cat >>$CONFIG_STATUS <<_ACEOF | |
7250 | ac_cs_version="\\ | |
7251 | smartmontools config.status 5.36 | |
7252 | configured by $0, generated by GNU Autoconf 2.59, | |
7253 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" | |
7254 | ||
7255 | Copyright (C) 2003 Free Software Foundation, Inc. | |
7256 | This config.status script is free software; the Free Software Foundation | |
7257 | gives unlimited permission to copy, distribute and modify it." | |
7258 | srcdir=$srcdir | |
7259 | INSTALL="$INSTALL" | |
7260 | _ACEOF | |
7261 | ||
7262 | cat >>$CONFIG_STATUS <<\_ACEOF | |
7263 | # If no file are specified by the user, then we need to provide default | |
7264 | # value. By we need to know if files were specified by the user. | |
7265 | ac_need_defaults=: | |
7266 | while test $# != 0 | |
7267 | do | |
7268 | case $1 in | |
7269 | --*=*) | |
7270 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
7271 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
7272 | ac_shift=: | |
7273 | ;; | |
7274 | -*) | |
7275 | ac_option=$1 | |
7276 | ac_optarg=$2 | |
7277 | ac_shift=shift | |
7278 | ;; | |
7279 | *) # This is not an option, so the user has probably given explicit | |
7280 | # arguments. | |
7281 | ac_option=$1 | |
7282 | ac_need_defaults=false;; | |
7283 | esac | |
7284 | ||
7285 | case $ac_option in | |
7286 | # Handling of the options. | |
7287 | _ACEOF | |
7288 | cat >>$CONFIG_STATUS <<\_ACEOF | |
7289 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
7290 | ac_cs_recheck=: ;; | |
7291 | --version | --vers* | -V ) | |
7292 | echo "$ac_cs_version"; exit 0 ;; | |
7293 | --he | --h) | |
7294 | # Conflict between --help and --header | |
7295 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
7296 | Try \`$0 --help' for more information." >&5 | |
7297 | echo "$as_me: error: ambiguous option: $1 | |
7298 | Try \`$0 --help' for more information." >&2;} | |
7299 | { (exit 1); exit 1; }; };; | |
7300 | --help | --hel | -h ) | |
7301 | echo "$ac_cs_usage"; exit 0 ;; | |
7302 | --debug | --d* | -d ) | |
7303 | debug=: ;; | |
7304 | --file | --fil | --fi | --f ) | |
7305 | $ac_shift | |
7306 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
7307 | ac_need_defaults=false;; | |
7308 | --header | --heade | --head | --hea ) | |
7309 | $ac_shift | |
7310 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
7311 | ac_need_defaults=false;; | |
7312 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
7313 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
7314 | ac_cs_silent=: ;; | |
7315 | ||
7316 | # This is an error. | |
7317 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | |
7318 | Try \`$0 --help' for more information." >&5 | |
7319 | echo "$as_me: error: unrecognized option: $1 | |
7320 | Try \`$0 --help' for more information." >&2;} | |
7321 | { (exit 1); exit 1; }; } ;; | |
7322 | ||
7323 | *) ac_config_targets="$ac_config_targets $1" ;; | |
7324 | ||
7325 | esac | |
7326 | shift | |
7327 | done | |
7328 | ||
7329 | ac_configure_extra_args= | |
7330 | ||
7331 | if $ac_cs_silent; then | |
7332 | exec 6>/dev/null | |
7333 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
7334 | fi | |
7335 | ||
7336 | _ACEOF | |
7337 | cat >>$CONFIG_STATUS <<_ACEOF | |
7338 | if \$ac_cs_recheck; then | |
7339 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
7340 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
7341 | fi | |
7342 | ||
7343 | _ACEOF | |
7344 | ||
7345 | cat >>$CONFIG_STATUS <<_ACEOF | |
7346 | # | |
7347 | # INIT-COMMANDS section. | |
7348 | # | |
7349 | ||
7350 | AMDEP_TRUE="$AMDEP_TRUE" ac_aux_dir="$ac_aux_dir" | |
7351 | ||
7352 | _ACEOF | |
7353 | ||
7354 | ||
7355 | ||
7356 | cat >>$CONFIG_STATUS <<\_ACEOF | |
7357 | for ac_config_target in $ac_config_targets | |
7358 | do | |
7359 | case "$ac_config_target" in | |
7360 | # Handling of arguments. | |
7361 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
7362 | "examplescripts/Makefile" ) CONFIG_FILES="$CONFIG_FILES examplescripts/Makefile" ;; | |
7363 | "depfiles" ) CONFIG_COMMANDS="$CONFIG_COMMANDS depfiles" ;; | |
7364 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h" ;; | |
7365 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | |
7366 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
7367 | { (exit 1); exit 1; }; };; | |
7368 | esac | |
7369 | done | |
7370 | ||
7371 | # If the user did not use the arguments to specify the items to instantiate, | |
7372 | # then the envvar interface is used. Set only those that are not. | |
7373 | # We use the long form for the default assignment because of an extremely | |
7374 | # bizarre bug on SunOS 4.1.3. | |
7375 | if $ac_need_defaults; then | |
7376 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
7377 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
7378 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
7379 | fi | |
7380 | ||
7381 | # Have a temporary directory for convenience. Make it in the build tree | |
7382 | # simply because there is no reason to put it here, and in addition, | |
7383 | # creating and moving files from /tmp can sometimes cause problems. | |
7384 | # Create a temporary directory, and hook for its removal unless debugging. | |
7385 | $debug || | |
7386 | { | |
7387 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
7388 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
7389 | } | |
7390 | ||
7391 | # Create a (secure) tmp directory for tmp files. | |
7392 | ||
7393 | { | |
7394 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | |
7395 | test -n "$tmp" && test -d "$tmp" | |
7396 | } || | |
7397 | { | |
7398 | tmp=./confstat$$-$RANDOM | |
7399 | (umask 077 && mkdir $tmp) | |
7400 | } || | |
7401 | { | |
7402 | echo "$me: cannot create a temporary directory in ." >&2 | |
7403 | { (exit 1); exit 1; } | |
7404 | } | |
7405 | ||
7406 | _ACEOF | |
7407 | ||
7408 | cat >>$CONFIG_STATUS <<_ACEOF | |
7409 | ||
7410 | # | |
7411 | # CONFIG_FILES section. | |
7412 | # | |
7413 | ||
7414 | # No need to generate the scripts if there are no CONFIG_FILES. | |
7415 | # This happens for instance when ./config.status config.h | |
7416 | if test -n "\$CONFIG_FILES"; then | |
7417 | # Protect against being on the right side of a sed subst in config.status. | |
7418 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
7419 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
7420 | s,@SHELL@,$SHELL,;t t | |
7421 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
7422 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
7423 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
7424 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
7425 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
7426 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
7427 | s,@exec_prefix@,$exec_prefix,;t t | |
7428 | s,@prefix@,$prefix,;t t | |
7429 | s,@program_transform_name@,$program_transform_name,;t t | |
7430 | s,@bindir@,$bindir,;t t | |
7431 | s,@sbindir@,$sbindir,;t t | |
7432 | s,@libexecdir@,$libexecdir,;t t | |
7433 | s,@datadir@,$datadir,;t t | |
7434 | s,@sysconfdir@,$sysconfdir,;t t | |
7435 | s,@sharedstatedir@,$sharedstatedir,;t t | |
7436 | s,@localstatedir@,$localstatedir,;t t | |
7437 | s,@libdir@,$libdir,;t t | |
7438 | s,@includedir@,$includedir,;t t | |
7439 | s,@oldincludedir@,$oldincludedir,;t t | |
7440 | s,@infodir@,$infodir,;t t | |
7441 | s,@mandir@,$mandir,;t t | |
7442 | s,@build_alias@,$build_alias,;t t | |
7443 | s,@host_alias@,$host_alias,;t t | |
7444 | s,@target_alias@,$target_alias,;t t | |
7445 | s,@DEFS@,$DEFS,;t t | |
7446 | s,@ECHO_C@,$ECHO_C,;t t | |
7447 | s,@ECHO_N@,$ECHO_N,;t t | |
7448 | s,@ECHO_T@,$ECHO_T,;t t | |
7449 | s,@LIBS@,$LIBS,;t t | |
7450 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
7451 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
7452 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
7453 | s,@CYGPATH_W@,$CYGPATH_W,;t t | |
7454 | s,@PACKAGE@,$PACKAGE,;t t | |
7455 | s,@VERSION@,$VERSION,;t t | |
7456 | s,@ACLOCAL@,$ACLOCAL,;t t | |
7457 | s,@AUTOCONF@,$AUTOCONF,;t t | |
7458 | s,@AUTOMAKE@,$AUTOMAKE,;t t | |
7459 | s,@AUTOHEADER@,$AUTOHEADER,;t t | |
7460 | s,@MAKEINFO@,$MAKEINFO,;t t | |
7461 | s,@install_sh@,$install_sh,;t t | |
7462 | s,@STRIP@,$STRIP,;t t | |
7463 | s,@ac_ct_STRIP@,$ac_ct_STRIP,;t t | |
7464 | s,@INSTALL_STRIP_PROGRAM@,$INSTALL_STRIP_PROGRAM,;t t | |
7465 | s,@mkdir_p@,$mkdir_p,;t t | |
7466 | s,@AWK@,$AWK,;t t | |
7467 | s,@SET_MAKE@,$SET_MAKE,;t t | |
7468 | s,@am__leading_dot@,$am__leading_dot,;t t | |
7469 | s,@AMTAR@,$AMTAR,;t t | |
7470 | s,@am__tar@,$am__tar,;t t | |
7471 | s,@am__untar@,$am__untar,;t t | |
7472 | s,@MAINTAINER_MODE_TRUE@,$MAINTAINER_MODE_TRUE,;t t | |
7473 | s,@MAINTAINER_MODE_FALSE@,$MAINTAINER_MODE_FALSE,;t t | |
7474 | s,@MAINT@,$MAINT,;t t | |
7475 | s,@CC@,$CC,;t t | |
7476 | s,@CFLAGS@,$CFLAGS,;t t | |
7477 | s,@LDFLAGS@,$LDFLAGS,;t t | |
7478 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
7479 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
7480 | s,@EXEEXT@,$EXEEXT,;t t | |
7481 | s,@OBJEXT@,$OBJEXT,;t t | |
7482 | s,@DEPDIR@,$DEPDIR,;t t | |
7483 | s,@am__include@,$am__include,;t t | |
7484 | s,@am__quote@,$am__quote,;t t | |
7485 | s,@AMDEP_TRUE@,$AMDEP_TRUE,;t t | |
7486 | s,@AMDEP_FALSE@,$AMDEP_FALSE,;t t | |
7487 | s,@AMDEPBACKSLASH@,$AMDEPBACKSLASH,;t t | |
7488 | s,@CCDEPMODE@,$CCDEPMODE,;t t | |
7489 | s,@am__fastdepCC_TRUE@,$am__fastdepCC_TRUE,;t t | |
7490 | s,@am__fastdepCC_FALSE@,$am__fastdepCC_FALSE,;t t | |
7491 | s,@CCAS@,$CCAS,;t t | |
7492 | s,@CCASFLAGS@,$CCASFLAGS,;t t | |
7493 | s,@build@,$build,;t t | |
7494 | s,@build_cpu@,$build_cpu,;t t | |
7495 | s,@build_vendor@,$build_vendor,;t t | |
7496 | s,@build_os@,$build_os,;t t | |
7497 | s,@host@,$host,;t t | |
7498 | s,@host_cpu@,$host_cpu,;t t | |
7499 | s,@host_vendor@,$host_vendor,;t t | |
7500 | s,@host_os@,$host_os,;t t | |
7501 | s,@CPP@,$CPP,;t t | |
7502 | s,@EGREP@,$EGREP,;t t | |
7503 | s,@libc_have_working_snprintf@,$libc_have_working_snprintf,;t t | |
7504 | s,@gcc_have_attr_packed@,$gcc_have_attr_packed,;t t | |
7505 | s,@ASFLAGS@,$ASFLAGS,;t t | |
7506 | s,@exampledir@,$exampledir,;t t | |
7507 | s,@initddir@,$initddir,;t t | |
7508 | s,@docdir@,$docdir,;t t | |
7509 | s,@smartd_suffix@,$smartd_suffix,;t t | |
7510 | s,@SMARTD_SUFFIX_TRUE@,$SMARTD_SUFFIX_TRUE,;t t | |
7511 | s,@SMARTD_SUFFIX_FALSE@,$SMARTD_SUFFIX_FALSE,;t t | |
7512 | s,@releaseversion@,$releaseversion,;t t | |
7513 | s,@smartmontools_release_date@,$smartmontools_release_date,;t t | |
7514 | s,@smartmontools_release_time@,$smartmontools_release_time,;t t | |
7515 | s,@os_deps@,$os_deps,;t t | |
7516 | s,@os_libs@,$os_libs,;t t | |
7517 | s,@OS_DARWIN_TRUE@,$OS_DARWIN_TRUE,;t t | |
7518 | s,@OS_DARWIN_FALSE@,$OS_DARWIN_FALSE,;t t | |
7519 | s,@OS_SOLARIS_TRUE@,$OS_SOLARIS_TRUE,;t t | |
7520 | s,@OS_SOLARIS_FALSE@,$OS_SOLARIS_FALSE,;t t | |
7521 | s,@OS_WIN32_MINGW_TRUE@,$OS_WIN32_MINGW_TRUE,;t t | |
7522 | s,@OS_WIN32_MINGW_FALSE@,$OS_WIN32_MINGW_FALSE,;t t | |
7523 | s,@LIBOBJS@,$LIBOBJS,;t t | |
7524 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | |
7525 | CEOF | |
7526 | ||
7527 | _ACEOF | |
7528 | ||
7529 | cat >>$CONFIG_STATUS <<\_ACEOF | |
7530 | # Split the substitutions into bite-sized pieces for seds with | |
7531 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
7532 | ac_max_sed_lines=48 | |
7533 | ac_sed_frag=1 # Number of current file. | |
7534 | ac_beg=1 # First line for current file. | |
7535 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
7536 | ac_more_lines=: | |
7537 | ac_sed_cmds= | |
7538 | while $ac_more_lines; do | |
7539 | if test $ac_beg -gt 1; then | |
7540 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
7541 | else | |
7542 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
7543 | fi | |
7544 | if test ! -s $tmp/subs.frag; then | |
7545 | ac_more_lines=false | |
7546 | else | |
7547 | # The purpose of the label and of the branching condition is to | |
7548 | # speed up the sed processing (if there are no `@' at all, there | |
7549 | # is no need to browse any of the substitutions). | |
7550 | # These are the two extra sed commands mentioned above. | |
7551 | (echo ':t | |
7552 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
7553 | if test -z "$ac_sed_cmds"; then | |
7554 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" | |
7555 | else | |
7556 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" | |
7557 | fi | |
7558 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
7559 | ac_beg=$ac_end | |
7560 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
7561 | fi | |
7562 | done | |
7563 | if test -z "$ac_sed_cmds"; then | |
7564 | ac_sed_cmds=cat | |
7565 | fi | |
7566 | fi # test -n "$CONFIG_FILES" | |
7567 | ||
7568 | _ACEOF | |
7569 | cat >>$CONFIG_STATUS <<\_ACEOF | |
7570 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
7571 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
7572 | case $ac_file in | |
7573 | - | *:- | *:-:* ) # input from stdin | |
7574 | cat >$tmp/stdin | |
7575 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
7576 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
7577 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
7578 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
7579 | * ) ac_file_in=$ac_file.in ;; | |
7580 | esac | |
7581 | ||
7582 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. | |
7583 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
7584 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
7585 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
7586 | X"$ac_file" : 'X\(//\)$' \| \ | |
7587 | X"$ac_file" : 'X\(/\)' \| \ | |
7588 | . : '\(.\)' 2>/dev/null || | |
7589 | echo X"$ac_file" | | |
7590 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
7591 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
7592 | /^X\(\/\/\)$/{ s//\1/; q; } | |
7593 | /^X\(\/\).*/{ s//\1/; q; } | |
7594 | s/.*/./; q'` | |
7595 | { if $as_mkdir_p; then | |
7596 | mkdir -p "$ac_dir" | |
7597 | else | |
7598 | as_dir="$ac_dir" | |
7599 | as_dirs= | |
7600 | while test ! -d "$as_dir"; do | |
7601 | as_dirs="$as_dir $as_dirs" | |
7602 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
7603 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
7604 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
7605 | X"$as_dir" : 'X\(//\)$' \| \ | |
7606 | X"$as_dir" : 'X\(/\)' \| \ | |
7607 | . : '\(.\)' 2>/dev/null || | |
7608 | echo X"$as_dir" | | |
7609 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
7610 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
7611 | /^X\(\/\/\)$/{ s//\1/; q; } | |
7612 | /^X\(\/\).*/{ s//\1/; q; } | |
7613 | s/.*/./; q'` | |
7614 | done | |
7615 | test ! -n "$as_dirs" || mkdir $as_dirs | |
7616 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
7617 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
7618 | { (exit 1); exit 1; }; }; } | |
7619 | ||
7620 | ac_builddir=. | |
7621 | ||
7622 | if test "$ac_dir" != .; then | |
7623 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
7624 | # A "../" for each directory in $ac_dir_suffix. | |
7625 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
7626 | else | |
7627 | ac_dir_suffix= ac_top_builddir= | |
7628 | fi | |
7629 | ||
7630 | case $srcdir in | |
7631 | .) # No --srcdir option. We are building in place. | |
7632 | ac_srcdir=. | |
7633 | if test -z "$ac_top_builddir"; then | |
7634 | ac_top_srcdir=. | |
7635 | else | |
7636 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
7637 | fi ;; | |
7638 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
7639 | ac_srcdir=$srcdir$ac_dir_suffix; | |
7640 | ac_top_srcdir=$srcdir ;; | |
7641 | *) # Relative path. | |
7642 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
7643 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
7644 | esac | |
7645 | ||
7646 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
7647 | # the directories may not exist. | |
7648 | case `pwd` in | |
7649 | .) ac_abs_builddir="$ac_dir";; | |
7650 | *) | |
7651 | case "$ac_dir" in | |
7652 | .) ac_abs_builddir=`pwd`;; | |
7653 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
7654 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
7655 | esac;; | |
7656 | esac | |
7657 | case $ac_abs_builddir in | |
7658 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
7659 | *) | |
7660 | case ${ac_top_builddir}. in | |
7661 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
7662 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
7663 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
7664 | esac;; | |
7665 | esac | |
7666 | case $ac_abs_builddir in | |
7667 | .) ac_abs_srcdir=$ac_srcdir;; | |
7668 | *) | |
7669 | case $ac_srcdir in | |
7670 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
7671 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
7672 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
7673 | esac;; | |
7674 | esac | |
7675 | case $ac_abs_builddir in | |
7676 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
7677 | *) | |
7678 | case $ac_top_srcdir in | |
7679 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
7680 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
7681 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
7682 | esac;; | |
7683 | esac | |
7684 | ||
7685 | ||
7686 | case $INSTALL in | |
7687 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
7688 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | |
7689 | esac | |
7690 | ||
7691 | if test x"$ac_file" != x-; then | |
7692 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
7693 | echo "$as_me: creating $ac_file" >&6;} | |
7694 | rm -f "$ac_file" | |
7695 | fi | |
7696 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
7697 | # use $as_me), people would be surprised to read: | |
7698 | # /* config.h. Generated by config.status. */ | |
7699 | if test x"$ac_file" = x-; then | |
7700 | configure_input= | |
7701 | else | |
7702 | configure_input="$ac_file. " | |
7703 | fi | |
7704 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
7705 | sed 's,.*/,,'` by configure." | |
7706 | ||
7707 | # First look for the input files in the build tree, otherwise in the | |
7708 | # src tree. | |
7709 | ac_file_inputs=`IFS=: | |
7710 | for f in $ac_file_in; do | |
7711 | case $f in | |
7712 | -) echo $tmp/stdin ;; | |
7713 | [\\/$]*) | |
7714 | # Absolute (can't be DOS-style, as IFS=:) | |
7715 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
7716 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
7717 | { (exit 1); exit 1; }; } | |
7718 | echo "$f";; | |
7719 | *) # Relative | |
7720 | if test -f "$f"; then | |
7721 | # Build tree | |
7722 | echo "$f" | |
7723 | elif test -f "$srcdir/$f"; then | |
7724 | # Source tree | |
7725 | echo "$srcdir/$f" | |
7726 | else | |
7727 | # /dev/null tree | |
7728 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
7729 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
7730 | { (exit 1); exit 1; }; } | |
7731 | fi;; | |
7732 | esac | |
7733 | done` || { (exit 1); exit 1; } | |
7734 | _ACEOF | |
7735 | cat >>$CONFIG_STATUS <<_ACEOF | |
7736 | sed "$ac_vpsub | |
7737 | $extrasub | |
7738 | _ACEOF | |
7739 | cat >>$CONFIG_STATUS <<\_ACEOF | |
7740 | :t | |
7741 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
7742 | s,@configure_input@,$configure_input,;t t | |
7743 | s,@srcdir@,$ac_srcdir,;t t | |
7744 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
7745 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
7746 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
7747 | s,@builddir@,$ac_builddir,;t t | |
7748 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
7749 | s,@top_builddir@,$ac_top_builddir,;t t | |
7750 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
7751 | s,@INSTALL@,$ac_INSTALL,;t t | |
7752 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
7753 | rm -f $tmp/stdin | |
7754 | if test x"$ac_file" != x-; then | |
7755 | mv $tmp/out $ac_file | |
7756 | else | |
7757 | cat $tmp/out | |
7758 | rm -f $tmp/out | |
7759 | fi | |
7760 | ||
7761 | done | |
7762 | _ACEOF | |
7763 | cat >>$CONFIG_STATUS <<\_ACEOF | |
7764 | ||
7765 | # | |
7766 | # CONFIG_HEADER section. | |
7767 | # | |
7768 | ||
7769 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
7770 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
7771 | # | |
7772 | # ac_d sets the value in "#define NAME VALUE" lines. | |
7773 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' | |
7774 | ac_dB='[ ].*$,\1#\2' | |
7775 | ac_dC=' ' | |
7776 | ac_dD=',;t' | |
7777 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
7778 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
7779 | ac_uB='$,\1#\2define\3' | |
7780 | ac_uC=' ' | |
7781 | ac_uD=',;t' | |
7782 | ||
7783 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
7784 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
7785 | case $ac_file in | |
7786 | - | *:- | *:-:* ) # input from stdin | |
7787 | cat >$tmp/stdin | |
7788 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
7789 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
7790 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
7791 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
7792 | * ) ac_file_in=$ac_file.in ;; | |
7793 | esac | |
7794 | ||
7795 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
7796 | echo "$as_me: creating $ac_file" >&6;} | |
7797 | ||
7798 | # First look for the input files in the build tree, otherwise in the | |
7799 | # src tree. | |
7800 | ac_file_inputs=`IFS=: | |
7801 | for f in $ac_file_in; do | |
7802 | case $f in | |
7803 | -) echo $tmp/stdin ;; | |
7804 | [\\/$]*) | |
7805 | # Absolute (can't be DOS-style, as IFS=:) | |
7806 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
7807 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
7808 | { (exit 1); exit 1; }; } | |
7809 | # Do quote $f, to prevent DOS paths from being IFS'd. | |
7810 | echo "$f";; | |
7811 | *) # Relative | |
7812 | if test -f "$f"; then | |
7813 | # Build tree | |
7814 | echo "$f" | |
7815 | elif test -f "$srcdir/$f"; then | |
7816 | # Source tree | |
7817 | echo "$srcdir/$f" | |
7818 | else | |
7819 | # /dev/null tree | |
7820 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
7821 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
7822 | { (exit 1); exit 1; }; } | |
7823 | fi;; | |
7824 | esac | |
7825 | done` || { (exit 1); exit 1; } | |
7826 | # Remove the trailing spaces. | |
7827 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in | |
7828 | ||
7829 | _ACEOF | |
7830 | ||
7831 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
7832 | # `conftest.undefs', that substitutes the proper values into | |
7833 | # config.h.in to produce config.h. The first handles `#define' | |
7834 | # templates, and the second `#undef' templates. | |
7835 | # And first: Protect against being on the right side of a sed subst in | |
7836 | # config.status. Protect against being in an unquoted here document | |
7837 | # in config.status. | |
7838 | rm -f conftest.defines conftest.undefs | |
7839 | # Using a here document instead of a string reduces the quoting nightmare. | |
7840 | # Putting comments in sed scripts is not portable. | |
7841 | # | |
7842 | # `end' is used to avoid that the second main sed command (meant for | |
7843 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
7844 | # See the Autoconf documentation for `clear'. | |
7845 | cat >confdef2sed.sed <<\_ACEOF | |
7846 | s/[\\&,]/\\&/g | |
7847 | s,[\\$`],\\&,g | |
7848 | t clear | |
7849 | : clear | |
7850 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp | |
7851 | t end | |
7852 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp | |
7853 | : end | |
7854 | _ACEOF | |
7855 | # If some macros were called several times there might be several times | |
7856 | # the same #defines, which is useless. Nevertheless, we may not want to | |
7857 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
7858 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
7859 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
7860 | rm -f confdef2sed.sed | |
7861 | ||
7862 | # This sed command replaces #undef with comments. This is necessary, for | |
7863 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
7864 | # on some systems where configure will not decide to define it. | |
7865 | cat >>conftest.undefs <<\_ACEOF | |
7866 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, | |
7867 | _ACEOF | |
7868 | ||
7869 | # Break up conftest.defines because some shells have a limit on the size | |
7870 | # of here documents, and old seds have small limits too (100 cmds). | |
7871 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
7872 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS | |
7873 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS | |
7874 | echo ' :' >>$CONFIG_STATUS | |
7875 | rm -f conftest.tail | |
7876 | while grep . conftest.defines >/dev/null | |
7877 | do | |
7878 | # Write a limited-size here document to $tmp/defines.sed. | |
7879 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
7880 | # Speed up: don't consider the non `#define' lines. | |
7881 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS | |
7882 | # Work around the forget-to-reset-the-flag bug. | |
7883 | echo 't clr' >>$CONFIG_STATUS | |
7884 | echo ': clr' >>$CONFIG_STATUS | |
7885 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
7886 | echo 'CEOF | |
7887 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | |
7888 | rm -f $tmp/in | |
7889 | mv $tmp/out $tmp/in | |
7890 | ' >>$CONFIG_STATUS | |
7891 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
7892 | rm -f conftest.defines | |
7893 | mv conftest.tail conftest.defines | |
7894 | done | |
7895 | rm -f conftest.defines | |
7896 | echo ' fi # grep' >>$CONFIG_STATUS | |
7897 | echo >>$CONFIG_STATUS | |
7898 | ||
7899 | # Break up conftest.undefs because some shells have a limit on the size | |
7900 | # of here documents, and old seds have small limits too (100 cmds). | |
7901 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
7902 | rm -f conftest.tail | |
7903 | while grep . conftest.undefs >/dev/null | |
7904 | do | |
7905 | # Write a limited-size here document to $tmp/undefs.sed. | |
7906 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
7907 | # Speed up: don't consider the non `#undef' | |
7908 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS | |
7909 | # Work around the forget-to-reset-the-flag bug. | |
7910 | echo 't clr' >>$CONFIG_STATUS | |
7911 | echo ': clr' >>$CONFIG_STATUS | |
7912 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
7913 | echo 'CEOF | |
7914 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out | |
7915 | rm -f $tmp/in | |
7916 | mv $tmp/out $tmp/in | |
7917 | ' >>$CONFIG_STATUS | |
7918 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
7919 | rm -f conftest.undefs | |
7920 | mv conftest.tail conftest.undefs | |
7921 | done | |
7922 | rm -f conftest.undefs | |
7923 | ||
7924 | cat >>$CONFIG_STATUS <<\_ACEOF | |
7925 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
7926 | # use $as_me), people would be surprised to read: | |
7927 | # /* config.h. Generated by config.status. */ | |
7928 | if test x"$ac_file" = x-; then | |
7929 | echo "/* Generated by configure. */" >$tmp/config.h | |
7930 | else | |
7931 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h | |
7932 | fi | |
7933 | cat $tmp/in >>$tmp/config.h | |
7934 | rm -f $tmp/in | |
7935 | if test x"$ac_file" != x-; then | |
7936 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then | |
7937 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
7938 | echo "$as_me: $ac_file is unchanged" >&6;} | |
7939 | else | |
7940 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
7941 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
7942 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
7943 | X"$ac_file" : 'X\(//\)$' \| \ | |
7944 | X"$ac_file" : 'X\(/\)' \| \ | |
7945 | . : '\(.\)' 2>/dev/null || | |
7946 | echo X"$ac_file" | | |
7947 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
7948 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
7949 | /^X\(\/\/\)$/{ s//\1/; q; } | |
7950 | /^X\(\/\).*/{ s//\1/; q; } | |
7951 | s/.*/./; q'` | |
7952 | { if $as_mkdir_p; then | |
7953 | mkdir -p "$ac_dir" | |
7954 | else | |
7955 | as_dir="$ac_dir" | |
7956 | as_dirs= | |
7957 | while test ! -d "$as_dir"; do | |
7958 | as_dirs="$as_dir $as_dirs" | |
7959 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
7960 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
7961 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
7962 | X"$as_dir" : 'X\(//\)$' \| \ | |
7963 | X"$as_dir" : 'X\(/\)' \| \ | |
7964 | . : '\(.\)' 2>/dev/null || | |
7965 | echo X"$as_dir" | | |
7966 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
7967 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
7968 | /^X\(\/\/\)$/{ s//\1/; q; } | |
7969 | /^X\(\/\).*/{ s//\1/; q; } | |
7970 | s/.*/./; q'` | |
7971 | done | |
7972 | test ! -n "$as_dirs" || mkdir $as_dirs | |
7973 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
7974 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
7975 | { (exit 1); exit 1; }; }; } | |
7976 | ||
7977 | rm -f $ac_file | |
7978 | mv $tmp/config.h $ac_file | |
7979 | fi | |
7980 | else | |
7981 | cat $tmp/config.h | |
7982 | rm -f $tmp/config.h | |
7983 | fi | |
7984 | # Compute $ac_file's index in $config_headers. | |
7985 | _am_stamp_count=1 | |
7986 | for _am_header in $config_headers :; do | |
7987 | case $_am_header in | |
7988 | $ac_file | $ac_file:* ) | |
7989 | break ;; | |
7990 | * ) | |
7991 | _am_stamp_count=`expr $_am_stamp_count + 1` ;; | |
7992 | esac | |
7993 | done | |
7994 | echo "timestamp for $ac_file" >`(dirname $ac_file) 2>/dev/null || | |
7995 | $as_expr X$ac_file : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
7996 | X$ac_file : 'X\(//\)[^/]' \| \ | |
7997 | X$ac_file : 'X\(//\)$' \| \ | |
7998 | X$ac_file : 'X\(/\)' \| \ | |
7999 | . : '\(.\)' 2>/dev/null || | |
8000 | echo X$ac_file | | |
8001 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
8002 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
8003 | /^X\(\/\/\)$/{ s//\1/; q; } | |
8004 | /^X\(\/\).*/{ s//\1/; q; } | |
8005 | s/.*/./; q'`/stamp-h$_am_stamp_count | |
8006 | done | |
8007 | _ACEOF | |
8008 | cat >>$CONFIG_STATUS <<\_ACEOF | |
8009 | ||
8010 | # | |
8011 | # CONFIG_COMMANDS section. | |
8012 | # | |
8013 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
8014 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
8015 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
8016 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || | |
8017 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
8018 | X"$ac_dest" : 'X\(//\)[^/]' \| \ | |
8019 | X"$ac_dest" : 'X\(//\)$' \| \ | |
8020 | X"$ac_dest" : 'X\(/\)' \| \ | |
8021 | . : '\(.\)' 2>/dev/null || | |
8022 | echo X"$ac_dest" | | |
8023 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
8024 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
8025 | /^X\(\/\/\)$/{ s//\1/; q; } | |
8026 | /^X\(\/\).*/{ s//\1/; q; } | |
8027 | s/.*/./; q'` | |
8028 | { if $as_mkdir_p; then | |
8029 | mkdir -p "$ac_dir" | |
8030 | else | |
8031 | as_dir="$ac_dir" | |
8032 | as_dirs= | |
8033 | while test ! -d "$as_dir"; do | |
8034 | as_dirs="$as_dir $as_dirs" | |
8035 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
8036 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
8037 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
8038 | X"$as_dir" : 'X\(//\)$' \| \ | |
8039 | X"$as_dir" : 'X\(/\)' \| \ | |
8040 | . : '\(.\)' 2>/dev/null || | |
8041 | echo X"$as_dir" | | |
8042 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
8043 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
8044 | /^X\(\/\/\)$/{ s//\1/; q; } | |
8045 | /^X\(\/\).*/{ s//\1/; q; } | |
8046 | s/.*/./; q'` | |
8047 | done | |
8048 | test ! -n "$as_dirs" || mkdir $as_dirs | |
8049 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
8050 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
8051 | { (exit 1); exit 1; }; }; } | |
8052 | ||
8053 | ac_builddir=. | |
8054 | ||
8055 | if test "$ac_dir" != .; then | |
8056 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
8057 | # A "../" for each directory in $ac_dir_suffix. | |
8058 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
8059 | else | |
8060 | ac_dir_suffix= ac_top_builddir= | |
8061 | fi | |
8062 | ||
8063 | case $srcdir in | |
8064 | .) # No --srcdir option. We are building in place. | |
8065 | ac_srcdir=. | |
8066 | if test -z "$ac_top_builddir"; then | |
8067 | ac_top_srcdir=. | |
8068 | else | |
8069 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
8070 | fi ;; | |
8071 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
8072 | ac_srcdir=$srcdir$ac_dir_suffix; | |
8073 | ac_top_srcdir=$srcdir ;; | |
8074 | *) # Relative path. | |
8075 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
8076 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
8077 | esac | |
8078 | ||
8079 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
8080 | # the directories may not exist. | |
8081 | case `pwd` in | |
8082 | .) ac_abs_builddir="$ac_dir";; | |
8083 | *) | |
8084 | case "$ac_dir" in | |
8085 | .) ac_abs_builddir=`pwd`;; | |
8086 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
8087 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
8088 | esac;; | |
8089 | esac | |
8090 | case $ac_abs_builddir in | |
8091 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
8092 | *) | |
8093 | case ${ac_top_builddir}. in | |
8094 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
8095 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
8096 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
8097 | esac;; | |
8098 | esac | |
8099 | case $ac_abs_builddir in | |
8100 | .) ac_abs_srcdir=$ac_srcdir;; | |
8101 | *) | |
8102 | case $ac_srcdir in | |
8103 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
8104 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
8105 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
8106 | esac;; | |
8107 | esac | |
8108 | case $ac_abs_builddir in | |
8109 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
8110 | *) | |
8111 | case $ac_top_srcdir in | |
8112 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
8113 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
8114 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
8115 | esac;; | |
8116 | esac | |
8117 | ||
8118 | ||
8119 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 | |
8120 | echo "$as_me: executing $ac_dest commands" >&6;} | |
8121 | case $ac_dest in | |
8122 | depfiles ) test x"$AMDEP_TRUE" != x"" || for mf in $CONFIG_FILES; do | |
8123 | # Strip MF so we end up with the name of the file. | |
8124 | mf=`echo "$mf" | sed -e 's/:.*$//'` | |
8125 | # Check whether this is an Automake generated Makefile or not. | |
8126 | # We used to match only the files named `Makefile.in', but | |
8127 | # some people rename them; so instead we look at the file content. | |
8128 | # Grep'ing the first line is not enough: some people post-process | |
8129 | # each Makefile.in and add a new line on top of each file to say so. | |
8130 | # So let's grep whole file. | |
8131 | if grep '^#.*generated by automake' $mf > /dev/null 2>&1; then | |
8132 | dirpart=`(dirname "$mf") 2>/dev/null || | |
8133 | $as_expr X"$mf" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
8134 | X"$mf" : 'X\(//\)[^/]' \| \ | |
8135 | X"$mf" : 'X\(//\)$' \| \ | |
8136 | X"$mf" : 'X\(/\)' \| \ | |
8137 | . : '\(.\)' 2>/dev/null || | |
8138 | echo X"$mf" | | |
8139 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
8140 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
8141 | /^X\(\/\/\)$/{ s//\1/; q; } | |
8142 | /^X\(\/\).*/{ s//\1/; q; } | |
8143 | s/.*/./; q'` | |
8144 | else | |
8145 | continue | |
8146 | fi | |
8147 | # Extract the definition of DEPDIR, am__include, and am__quote | |
8148 | # from the Makefile without running `make'. | |
8149 | DEPDIR=`sed -n 's/^DEPDIR = //p' < "$mf"` | |
8150 | test -z "$DEPDIR" && continue | |
8151 | am__include=`sed -n 's/^am__include = //p' < "$mf"` | |
8152 | test -z "am__include" && continue | |
8153 | am__quote=`sed -n 's/^am__quote = //p' < "$mf"` | |
8154 | # When using ansi2knr, U may be empty or an underscore; expand it | |
8155 | U=`sed -n 's/^U = //p' < "$mf"` | |
8156 | # Find all dependency output files, they are included files with | |
8157 | # $(DEPDIR) in their names. We invoke sed twice because it is the | |
8158 | # simplest approach to changing $(DEPDIR) to its actual value in the | |
8159 | # expansion. | |
8160 | for file in `sed -n " | |
8161 | s/^$am__include $am__quote\(.*(DEPDIR).*\)$am__quote"'$/\1/p' <"$mf" | \ | |
8162 | sed -e 's/\$(DEPDIR)/'"$DEPDIR"'/g' -e 's/\$U/'"$U"'/g'`; do | |
8163 | # Make sure the directory exists. | |
8164 | test -f "$dirpart/$file" && continue | |
8165 | fdir=`(dirname "$file") 2>/dev/null || | |
8166 | $as_expr X"$file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
8167 | X"$file" : 'X\(//\)[^/]' \| \ | |
8168 | X"$file" : 'X\(//\)$' \| \ | |
8169 | X"$file" : 'X\(/\)' \| \ | |
8170 | . : '\(.\)' 2>/dev/null || | |
8171 | echo X"$file" | | |
8172 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
8173 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
8174 | /^X\(\/\/\)$/{ s//\1/; q; } | |
8175 | /^X\(\/\).*/{ s//\1/; q; } | |
8176 | s/.*/./; q'` | |
8177 | { if $as_mkdir_p; then | |
8178 | mkdir -p $dirpart/$fdir | |
8179 | else | |
8180 | as_dir=$dirpart/$fdir | |
8181 | as_dirs= | |
8182 | while test ! -d "$as_dir"; do | |
8183 | as_dirs="$as_dir $as_dirs" | |
8184 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
8185 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
8186 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
8187 | X"$as_dir" : 'X\(//\)$' \| \ | |
8188 | X"$as_dir" : 'X\(/\)' \| \ | |
8189 | . : '\(.\)' 2>/dev/null || | |
8190 | echo X"$as_dir" | | |
8191 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
8192 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
8193 | /^X\(\/\/\)$/{ s//\1/; q; } | |
8194 | /^X\(\/\).*/{ s//\1/; q; } | |
8195 | s/.*/./; q'` | |
8196 | done | |
8197 | test ! -n "$as_dirs" || mkdir $as_dirs | |
8198 | fi || { { echo "$as_me:$LINENO: error: cannot create directory $dirpart/$fdir" >&5 | |
8199 | echo "$as_me: error: cannot create directory $dirpart/$fdir" >&2;} | |
8200 | { (exit 1); exit 1; }; }; } | |
8201 | ||
8202 | # echo "creating $dirpart/$file" | |
8203 | echo '# dummy' > "$dirpart/$file" | |
8204 | done | |
8205 | done | |
8206 | ;; | |
8207 | esac | |
8208 | done | |
8209 | _ACEOF | |
8210 | ||
8211 | cat >>$CONFIG_STATUS <<\_ACEOF | |
8212 | ||
8213 | { (exit 0); exit 0; } | |
8214 | _ACEOF | |
8215 | chmod +x $CONFIG_STATUS | |
8216 | ac_clean_files=$ac_clean_files_save | |
8217 | ||
8218 | ||
8219 | # configure is writing to config.log, and then calls config.status. | |
8220 | # config.status does its own redirection, appending to config.log. | |
8221 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
8222 | # by configure, so config.status won't be able to write to it; its | |
8223 | # output is simply discarded. So we exec the FD to /dev/null, | |
8224 | # effectively closing config.log, so it can be properly (re)opened and | |
8225 | # appended to by config.status. When coming back to configure, we | |
8226 | # need to make the FD available again. | |
8227 | if test "$no_create" != yes; then | |
8228 | ac_cs_success=: | |
8229 | ac_config_status_args= | |
8230 | test "$silent" = yes && | |
8231 | ac_config_status_args="$ac_config_status_args --quiet" | |
8232 | exec 5>/dev/null | |
8233 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
8234 | exec 5>>config.log | |
8235 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
8236 | # would make configure fail if this is the last instruction. | |
8237 | $ac_cs_success || { (exit 1); exit 1; } | |
8238 | fi | |
8239 | ||
8240 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
8241 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
8242 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` | |
8243 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then | |
8244 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8245 | else | |
8246 | cat >conftest.make <<\_ACEOF | |
8247 | all: | |
8248 | @echo 'ac_maketemp="$(MAKE)"' | |
8249 | _ACEOF | |
8250 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
8251 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
8252 | if test -n "$ac_maketemp"; then | |
8253 | eval ac_cv_prog_make_${ac_make}_set=yes | |
8254 | else | |
8255 | eval ac_cv_prog_make_${ac_make}_set=no | |
8256 | fi | |
8257 | rm -f conftest.make | |
8258 | fi | |
8259 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
8260 | echo "$as_me:$LINENO: result: yes" >&5 | |
8261 | echo "${ECHO_T}yes" >&6 | |
8262 | SET_MAKE= | |
8263 | else | |
8264 | echo "$as_me:$LINENO: result: no" >&5 | |
8265 | echo "${ECHO_T}no" >&6 | |
8266 | SET_MAKE="MAKE=${MAKE-make}" | |
8267 | fi | |
8268 |