Commit | Line | Data |
---|---|---|
c906108c | 1 | #! /bin/sh |
b7026657 AC |
2 | # Guess values for system-dependent variables and create Makefiles. |
3 | # Generated by GNU Autoconf 2.59. | |
4 | # | |
5 | # Copyright (C) 2003 Free Software Foundation, Inc. | |
6 | # This configure script is free software; the Free Software Foundation | |
7 | # gives unlimited permission to copy, distribute and modify it. | |
8 | ## --------------------- ## | |
9 | ## M4sh Initialization. ## | |
10 | ## --------------------- ## | |
c906108c | 11 | |
b7026657 AC |
12 | # Be Bourne compatible |
13 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
14 | emulate sh | |
15 | NULLCMD=: | |
16 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
17 | # is contrary to our usage. Disable this feature. | |
18 | alias -g '${1+"$@"}'='"$@"' | |
19 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
20 | set -o posix | |
21 | fi | |
22 | DUALCASE=1; export DUALCASE # for MKS sh | |
c906108c | 23 | |
b7026657 AC |
24 | # Support unset when possible. |
25 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
26 | as_unset=unset | |
27 | else | |
28 | as_unset=false | |
29 | fi | |
c906108c SS |
30 | |
31 | ||
b7026657 AC |
32 | # Work around bugs in pre-3.0 UWIN ksh. |
33 | $as_unset ENV MAIL MAILPATH | |
34 | PS1='$ ' | |
35 | PS2='> ' | |
36 | PS4='+ ' | |
c906108c | 37 | |
b7026657 AC |
38 | # NLS nuisances. |
39 | for as_var in \ | |
40 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
41 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
42 | LC_TELEPHONE LC_TIME | |
43 | do | |
44 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then | |
45 | eval $as_var=C; export $as_var | |
46 | else | |
47 | $as_unset $as_var | |
48 | fi | |
49 | done | |
c906108c | 50 | |
b7026657 AC |
51 | # Required to use basename. |
52 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
53 | as_expr=expr | |
54 | else | |
55 | as_expr=false | |
56 | fi | |
c906108c | 57 | |
b7026657 AC |
58 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
59 | as_basename=basename | |
60 | else | |
61 | as_basename=false | |
62 | fi | |
c906108c SS |
63 | |
64 | ||
b7026657 AC |
65 | # Name of the executable. |
66 | as_me=`$as_basename "$0" || | |
67 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
68 | X"$0" : 'X\(//\)$' \| \ | |
69 | X"$0" : 'X\(/\)$' \| \ | |
70 | . : '\(.\)' 2>/dev/null || | |
71 | echo X/"$0" | | |
72 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
73 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
74 | /^X\/\(\/\).*/{ s//\1/; q; } | |
75 | s/.*/./; q'` | |
c906108c SS |
76 | |
77 | ||
b7026657 AC |
78 | # PATH needs CR, and LINENO needs CR and PATH. |
79 | # Avoid depending upon Character Ranges. | |
80 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
81 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
82 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
83 | as_cr_digits='0123456789' | |
84 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
c906108c | 85 | |
b7026657 AC |
86 | # The user is always right. |
87 | if test "${PATH_SEPARATOR+set}" != set; then | |
88 | echo "#! /bin/sh" >conf$$.sh | |
89 | echo "exit 0" >>conf$$.sh | |
90 | chmod +x conf$$.sh | |
91 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
92 | PATH_SEPARATOR=';' | |
93 | else | |
94 | PATH_SEPARATOR=: | |
95 | fi | |
96 | rm -f conf$$.sh | |
97 | fi | |
c906108c SS |
98 | |
99 | ||
b7026657 AC |
100 | as_lineno_1=$LINENO |
101 | as_lineno_2=$LINENO | |
102 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
103 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
104 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
105 | # Find who we are. Look in the path if we contain no path at all | |
106 | # relative or not. | |
107 | case $0 in | |
108 | *[\\/]* ) as_myself=$0 ;; | |
109 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
110 | for as_dir in $PATH | |
111 | do | |
112 | IFS=$as_save_IFS | |
113 | test -z "$as_dir" && as_dir=. | |
114 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
115 | done | |
c906108c | 116 | |
b7026657 AC |
117 | ;; |
118 | esac | |
119 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
120 | # in which case we are not to be found in the path. | |
121 | if test "x$as_myself" = x; then | |
122 | as_myself=$0 | |
123 | fi | |
124 | if test ! -f "$as_myself"; then | |
125 | { echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2 | |
126 | { (exit 1); exit 1; }; } | |
127 | fi | |
128 | case $CONFIG_SHELL in | |
129 | '') | |
130 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
131 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
132 | do | |
133 | IFS=$as_save_IFS | |
134 | test -z "$as_dir" && as_dir=. | |
135 | for as_base in sh bash ksh sh5; do | |
136 | case $as_dir in | |
137 | /*) | |
138 | if ("$as_dir/$as_base" -c ' | |
139 | as_lineno_1=$LINENO | |
140 | as_lineno_2=$LINENO | |
141 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
142 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
143 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
144 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
145 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
146 | CONFIG_SHELL=$as_dir/$as_base | |
147 | export CONFIG_SHELL | |
148 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
149 | fi;; | |
150 | esac | |
151 | done | |
152 | done | |
153 | ;; | |
154 | esac | |
c906108c | 155 | |
b7026657 AC |
156 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO |
157 | # uniformly replaced by the line number. The first 'sed' inserts a | |
158 | # line-number line before each line; the second 'sed' does the real | |
159 | # work. The second script uses 'N' to pair each line-number line | |
160 | # with the numbered line, and appends trailing '-' during | |
161 | # substitution so that $LINENO is not a special case at line end. | |
162 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
163 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
164 | sed '=' <$as_myself | | |
165 | sed ' | |
166 | N | |
167 | s,$,-, | |
168 | : loop | |
169 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
170 | t loop | |
171 | s,-$,, | |
172 | s,^['$as_cr_digits']*\n,, | |
173 | ' >$as_me.lineno && | |
174 | chmod +x $as_me.lineno || | |
175 | { echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2 | |
176 | { (exit 1); exit 1; }; } | |
177 | ||
178 | # Don't try to exec as it changes $[0], causing all sort of problems | |
179 | # (the dirname of $[0] is not the place where we might find the | |
180 | # original and so on. Autoconf is especially sensible to this). | |
181 | . ./$as_me.lineno | |
182 | # Exit status is that of the last command. | |
183 | exit | |
184 | } | |
c906108c SS |
185 | |
186 | ||
b7026657 AC |
187 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in |
188 | *c*,-n*) ECHO_N= ECHO_C=' | |
189 | ' ECHO_T=' ' ;; | |
190 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
191 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
192 | esac | |
c906108c | 193 | |
b7026657 AC |
194 | if expr a : '\(a\)' >/dev/null 2>&1; then |
195 | as_expr=expr | |
196 | else | |
197 | as_expr=false | |
198 | fi | |
c906108c | 199 | |
b7026657 AC |
200 | rm -f conf$$ conf$$.exe conf$$.file |
201 | echo >conf$$.file | |
202 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
203 | # We could just check for DJGPP; but this test a) works b) is more generic | |
204 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
205 | if test -f conf$$.exe; then | |
206 | # Don't use ln at all; we don't have any links | |
207 | as_ln_s='cp -p' | |
208 | else | |
209 | as_ln_s='ln -s' | |
210 | fi | |
211 | elif ln conf$$.file conf$$ 2>/dev/null; then | |
212 | as_ln_s=ln | |
213 | else | |
214 | as_ln_s='cp -p' | |
215 | fi | |
216 | rm -f conf$$ conf$$.exe conf$$.file | |
c906108c | 217 | |
b7026657 AC |
218 | if mkdir -p . 2>/dev/null; then |
219 | as_mkdir_p=: | |
220 | else | |
221 | test -d ./-p && rmdir ./-p | |
222 | as_mkdir_p=false | |
223 | fi | |
c906108c | 224 | |
b7026657 | 225 | as_executable_p="test -f" |
c906108c | 226 | |
b7026657 AC |
227 | # Sed expression to map a string onto a valid CPP name. |
228 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
c906108c | 229 | |
b7026657 AC |
230 | # Sed expression to map a string onto a valid variable name. |
231 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
c906108c SS |
232 | |
233 | ||
b7026657 AC |
234 | # IFS |
235 | # We need space, tab and new line, in precisely that order. | |
236 | as_nl=' | |
237 | ' | |
238 | IFS=" $as_nl" | |
c906108c | 239 | |
b7026657 AC |
240 | # CDPATH. |
241 | $as_unset CDPATH | |
c906108c SS |
242 | |
243 | ||
b7026657 AC |
244 | # Name of the host. |
245 | # hostname on some systems (SVR3.2, Linux) returns a bogus exit status, | |
246 | # so uname gets run too. | |
247 | ac_hostname=`(hostname || uname -n) 2>/dev/null | sed 1q` | |
c906108c | 248 | |
b7026657 | 249 | exec 6>&1 |
c906108c | 250 | |
c906108c | 251 | # |
b7026657 | 252 | # Initializations. |
c906108c | 253 | # |
b7026657 AC |
254 | ac_default_prefix=/usr/local |
255 | ac_config_libobj_dir=. | |
256 | cross_compiling=no | |
257 | subdirs= | |
258 | MFLAGS= | |
259 | MAKEFLAGS= | |
260 | SHELL=${CONFIG_SHELL-/bin/sh} | |
c906108c | 261 | |
b7026657 AC |
262 | # Maximum number of lines to put in a shell here document. |
263 | # This variable seems obsolete. It should probably be removed, and | |
264 | # only ac_max_sed_lines should be used. | |
265 | : ${ac_max_here_lines=38} | |
266 | ||
267 | # Identity of this package. | |
268 | PACKAGE_NAME= | |
269 | PACKAGE_TARNAME= | |
270 | PACKAGE_VERSION= | |
271 | PACKAGE_STRING= | |
272 | PACKAGE_BUGREPORT= | |
273 | ||
274 | ac_unique_file="Makefile.in" | |
275 | # Factoring default headers for most tests. | |
276 | ac_includes_default="\ | |
277 | #include <stdio.h> | |
278 | #if HAVE_SYS_TYPES_H | |
279 | # include <sys/types.h> | |
280 | #endif | |
281 | #if HAVE_SYS_STAT_H | |
282 | # include <sys/stat.h> | |
283 | #endif | |
284 | #if STDC_HEADERS | |
285 | # include <stdlib.h> | |
286 | # include <stddef.h> | |
287 | #else | |
288 | # if HAVE_STDLIB_H | |
289 | # include <stdlib.h> | |
290 | # endif | |
291 | #endif | |
292 | #if HAVE_STRING_H | |
293 | # if !STDC_HEADERS && HAVE_MEMORY_H | |
294 | # include <memory.h> | |
295 | # endif | |
296 | # include <string.h> | |
297 | #endif | |
298 | #if HAVE_STRINGS_H | |
299 | # include <strings.h> | |
300 | #endif | |
301 | #if HAVE_INTTYPES_H | |
302 | # include <inttypes.h> | |
303 | #else | |
304 | # if HAVE_STDINT_H | |
305 | # include <stdint.h> | |
306 | # endif | |
307 | #endif | |
308 | #if HAVE_UNISTD_H | |
309 | # include <unistd.h> | |
310 | #endif" | |
c906108c | 311 | |
b7026657 AC |
312 | ac_subst_vars='sim_environment sim_alignment sim_assert sim_bitsize sim_endian sim_hostendian sim_float sim_scache sim_default_model sim_hw_cflags sim_hw_objs sim_hw sim_inline sim_packages sim_regparm sim_reserved_bits sim_smp sim_stdcall sim_xor_endian WARN_CFLAGS WERROR_CFLAGS 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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CC_FOR_BUILD HDEFINES AR RANLIB ac_ct_RANLIB SET_MAKE CPP EGREP ALLOCA USE_NLS MSGFMT GMSGFMT XGETTEXT USE_INCLUDED_LIBINTL CATALOGS CATOBJEXT DATADIRNAME GMOFILES INSTOBJEXT INTLDEPS INTLLIBS INTLOBJS POFILES POSUB INCLUDE_LOCALE_H GT_NO GT_YES MKINSTALLDIRS l MAINT sim_bswap sim_cflags sim_debug sim_stdio sim_trace sim_profile CPP_FOR_TARGET TARGET_SUBDIR LIBOBJS LTLIBOBJS' |
313 | ac_subst_files='' | |
c906108c SS |
314 | |
315 | # Initialize some variables set by options. | |
b7026657 AC |
316 | ac_init_help= |
317 | ac_init_version=false | |
c906108c SS |
318 | # The variables have the same names as the options, with |
319 | # dashes changed to underlines. | |
b7026657 | 320 | cache_file=/dev/null |
c906108c | 321 | exec_prefix=NONE |
c906108c | 322 | no_create= |
c906108c SS |
323 | no_recursion= |
324 | prefix=NONE | |
325 | program_prefix=NONE | |
326 | program_suffix=NONE | |
327 | program_transform_name=s,x,x, | |
328 | silent= | |
329 | site= | |
330 | srcdir= | |
c906108c SS |
331 | verbose= |
332 | x_includes=NONE | |
333 | x_libraries=NONE | |
b7026657 AC |
334 | |
335 | # Installation directory options. | |
336 | # These are left unexpanded so users can "make install exec_prefix=/foo" | |
337 | # and all the variables that are supposed to be based on exec_prefix | |
338 | # by default will actually change. | |
339 | # Use braces instead of parens because sh, perl, etc. also accept them. | |
c906108c SS |
340 | bindir='${exec_prefix}/bin' |
341 | sbindir='${exec_prefix}/sbin' | |
342 | libexecdir='${exec_prefix}/libexec' | |
343 | datadir='${prefix}/share' | |
344 | sysconfdir='${prefix}/etc' | |
345 | sharedstatedir='${prefix}/com' | |
346 | localstatedir='${prefix}/var' | |
347 | libdir='${exec_prefix}/lib' | |
348 | includedir='${prefix}/include' | |
349 | oldincludedir='/usr/include' | |
350 | infodir='${prefix}/info' | |
351 | mandir='${prefix}/man' | |
352 | ||
c906108c SS |
353 | ac_prev= |
354 | for ac_option | |
355 | do | |
c906108c SS |
356 | # If the previous option needs an argument, assign it. |
357 | if test -n "$ac_prev"; then | |
358 | eval "$ac_prev=\$ac_option" | |
359 | ac_prev= | |
360 | continue | |
361 | fi | |
362 | ||
b7026657 | 363 | ac_optarg=`expr "x$ac_option" : 'x[^=]*=\(.*\)'` |
c906108c SS |
364 | |
365 | # Accept the important Cygnus configure options, so we can diagnose typos. | |
366 | ||
b7026657 | 367 | case $ac_option in |
c906108c SS |
368 | |
369 | -bindir | --bindir | --bindi | --bind | --bin | --bi) | |
370 | ac_prev=bindir ;; | |
371 | -bindir=* | --bindir=* | --bindi=* | --bind=* | --bin=* | --bi=*) | |
b7026657 | 372 | bindir=$ac_optarg ;; |
c906108c SS |
373 | |
374 | -build | --build | --buil | --bui | --bu) | |
b7026657 | 375 | ac_prev=build_alias ;; |
c906108c | 376 | -build=* | --build=* | --buil=* | --bui=* | --bu=*) |
b7026657 | 377 | build_alias=$ac_optarg ;; |
c906108c SS |
378 | |
379 | -cache-file | --cache-file | --cache-fil | --cache-fi \ | |
380 | | --cache-f | --cache- | --cache | --cach | --cac | --ca | --c) | |
381 | ac_prev=cache_file ;; | |
382 | -cache-file=* | --cache-file=* | --cache-fil=* | --cache-fi=* \ | |
383 | | --cache-f=* | --cache-=* | --cache=* | --cach=* | --cac=* | --ca=* | --c=*) | |
b7026657 AC |
384 | cache_file=$ac_optarg ;; |
385 | ||
386 | --config-cache | -C) | |
387 | cache_file=config.cache ;; | |
c906108c SS |
388 | |
389 | -datadir | --datadir | --datadi | --datad | --data | --dat | --da) | |
390 | ac_prev=datadir ;; | |
391 | -datadir=* | --datadir=* | --datadi=* | --datad=* | --data=* | --dat=* \ | |
392 | | --da=*) | |
b7026657 | 393 | datadir=$ac_optarg ;; |
c906108c SS |
394 | |
395 | -disable-* | --disable-*) | |
b7026657 | 396 | ac_feature=`expr "x$ac_option" : 'x-*disable-\(.*\)'` |
c906108c | 397 | # Reject names that are not valid shell variable names. |
b7026657 AC |
398 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
399 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
400 | { (exit 1); exit 1; }; } | |
401 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
402 | eval "enable_$ac_feature=no" ;; | |
c906108c SS |
403 | |
404 | -enable-* | --enable-*) | |
b7026657 | 405 | ac_feature=`expr "x$ac_option" : 'x-*enable-\([^=]*\)'` |
c906108c | 406 | # Reject names that are not valid shell variable names. |
b7026657 AC |
407 | expr "x$ac_feature" : ".*[^-_$as_cr_alnum]" >/dev/null && |
408 | { echo "$as_me: error: invalid feature name: $ac_feature" >&2 | |
409 | { (exit 1); exit 1; }; } | |
410 | ac_feature=`echo $ac_feature | sed 's/-/_/g'` | |
411 | case $ac_option in | |
412 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
c906108c SS |
413 | *) ac_optarg=yes ;; |
414 | esac | |
b7026657 | 415 | eval "enable_$ac_feature='$ac_optarg'" ;; |
c906108c SS |
416 | |
417 | -exec-prefix | --exec_prefix | --exec-prefix | --exec-prefi \ | |
418 | | --exec-pref | --exec-pre | --exec-pr | --exec-p | --exec- \ | |
419 | | --exec | --exe | --ex) | |
420 | ac_prev=exec_prefix ;; | |
421 | -exec-prefix=* | --exec_prefix=* | --exec-prefix=* | --exec-prefi=* \ | |
422 | | --exec-pref=* | --exec-pre=* | --exec-pr=* | --exec-p=* | --exec-=* \ | |
423 | | --exec=* | --exe=* | --ex=*) | |
b7026657 | 424 | exec_prefix=$ac_optarg ;; |
c906108c SS |
425 | |
426 | -gas | --gas | --ga | --g) | |
427 | # Obsolete; use --with-gas. | |
428 | with_gas=yes ;; | |
429 | ||
b7026657 AC |
430 | -help | --help | --hel | --he | -h) |
431 | ac_init_help=long ;; | |
432 | -help=r* | --help=r* | --hel=r* | --he=r* | -hr*) | |
433 | ac_init_help=recursive ;; | |
434 | -help=s* | --help=s* | --hel=s* | --he=s* | -hs*) | |
435 | ac_init_help=short ;; | |
c906108c SS |
436 | |
437 | -host | --host | --hos | --ho) | |
b7026657 | 438 | ac_prev=host_alias ;; |
c906108c | 439 | -host=* | --host=* | --hos=* | --ho=*) |
b7026657 | 440 | host_alias=$ac_optarg ;; |
c906108c SS |
441 | |
442 | -includedir | --includedir | --includedi | --included | --include \ | |
443 | | --includ | --inclu | --incl | --inc) | |
444 | ac_prev=includedir ;; | |
445 | -includedir=* | --includedir=* | --includedi=* | --included=* | --include=* \ | |
446 | | --includ=* | --inclu=* | --incl=* | --inc=*) | |
b7026657 | 447 | includedir=$ac_optarg ;; |
c906108c SS |
448 | |
449 | -infodir | --infodir | --infodi | --infod | --info | --inf) | |
450 | ac_prev=infodir ;; | |
451 | -infodir=* | --infodir=* | --infodi=* | --infod=* | --info=* | --inf=*) | |
b7026657 | 452 | infodir=$ac_optarg ;; |
c906108c SS |
453 | |
454 | -libdir | --libdir | --libdi | --libd) | |
455 | ac_prev=libdir ;; | |
456 | -libdir=* | --libdir=* | --libdi=* | --libd=*) | |
b7026657 | 457 | libdir=$ac_optarg ;; |
c906108c SS |
458 | |
459 | -libexecdir | --libexecdir | --libexecdi | --libexecd | --libexec \ | |
460 | | --libexe | --libex | --libe) | |
461 | ac_prev=libexecdir ;; | |
462 | -libexecdir=* | --libexecdir=* | --libexecdi=* | --libexecd=* | --libexec=* \ | |
463 | | --libexe=* | --libex=* | --libe=*) | |
b7026657 | 464 | libexecdir=$ac_optarg ;; |
c906108c SS |
465 | |
466 | -localstatedir | --localstatedir | --localstatedi | --localstated \ | |
467 | | --localstate | --localstat | --localsta | --localst \ | |
468 | | --locals | --local | --loca | --loc | --lo) | |
469 | ac_prev=localstatedir ;; | |
470 | -localstatedir=* | --localstatedir=* | --localstatedi=* | --localstated=* \ | |
471 | | --localstate=* | --localstat=* | --localsta=* | --localst=* \ | |
472 | | --locals=* | --local=* | --loca=* | --loc=* | --lo=*) | |
b7026657 | 473 | localstatedir=$ac_optarg ;; |
c906108c SS |
474 | |
475 | -mandir | --mandir | --mandi | --mand | --man | --ma | --m) | |
476 | ac_prev=mandir ;; | |
477 | -mandir=* | --mandir=* | --mandi=* | --mand=* | --man=* | --ma=* | --m=*) | |
b7026657 | 478 | mandir=$ac_optarg ;; |
c906108c SS |
479 | |
480 | -nfp | --nfp | --nf) | |
481 | # Obsolete; use --without-fp. | |
482 | with_fp=no ;; | |
483 | ||
484 | -no-create | --no-create | --no-creat | --no-crea | --no-cre \ | |
b7026657 | 485 | | --no-cr | --no-c | -n) |
c906108c SS |
486 | no_create=yes ;; |
487 | ||
488 | -no-recursion | --no-recursion | --no-recursio | --no-recursi \ | |
489 | | --no-recurs | --no-recur | --no-recu | --no-rec | --no-re | --no-r) | |
490 | no_recursion=yes ;; | |
491 | ||
492 | -oldincludedir | --oldincludedir | --oldincludedi | --oldincluded \ | |
493 | | --oldinclude | --oldinclud | --oldinclu | --oldincl | --oldinc \ | |
494 | | --oldin | --oldi | --old | --ol | --o) | |
495 | ac_prev=oldincludedir ;; | |
496 | -oldincludedir=* | --oldincludedir=* | --oldincludedi=* | --oldincluded=* \ | |
497 | | --oldinclude=* | --oldinclud=* | --oldinclu=* | --oldincl=* | --oldinc=* \ | |
498 | | --oldin=* | --oldi=* | --old=* | --ol=* | --o=*) | |
b7026657 | 499 | oldincludedir=$ac_optarg ;; |
c906108c SS |
500 | |
501 | -prefix | --prefix | --prefi | --pref | --pre | --pr | --p) | |
502 | ac_prev=prefix ;; | |
503 | -prefix=* | --prefix=* | --prefi=* | --pref=* | --pre=* | --pr=* | --p=*) | |
b7026657 | 504 | prefix=$ac_optarg ;; |
c906108c SS |
505 | |
506 | -program-prefix | --program-prefix | --program-prefi | --program-pref \ | |
507 | | --program-pre | --program-pr | --program-p) | |
508 | ac_prev=program_prefix ;; | |
509 | -program-prefix=* | --program-prefix=* | --program-prefi=* \ | |
510 | | --program-pref=* | --program-pre=* | --program-pr=* | --program-p=*) | |
b7026657 | 511 | program_prefix=$ac_optarg ;; |
c906108c SS |
512 | |
513 | -program-suffix | --program-suffix | --program-suffi | --program-suff \ | |
514 | | --program-suf | --program-su | --program-s) | |
515 | ac_prev=program_suffix ;; | |
516 | -program-suffix=* | --program-suffix=* | --program-suffi=* \ | |
517 | | --program-suff=* | --program-suf=* | --program-su=* | --program-s=*) | |
b7026657 | 518 | program_suffix=$ac_optarg ;; |
c906108c SS |
519 | |
520 | -program-transform-name | --program-transform-name \ | |
521 | | --program-transform-nam | --program-transform-na \ | |
522 | | --program-transform-n | --program-transform- \ | |
523 | | --program-transform | --program-transfor \ | |
524 | | --program-transfo | --program-transf \ | |
525 | | --program-trans | --program-tran \ | |
526 | | --progr-tra | --program-tr | --program-t) | |
527 | ac_prev=program_transform_name ;; | |
528 | -program-transform-name=* | --program-transform-name=* \ | |
529 | | --program-transform-nam=* | --program-transform-na=* \ | |
530 | | --program-transform-n=* | --program-transform-=* \ | |
531 | | --program-transform=* | --program-transfor=* \ | |
532 | | --program-transfo=* | --program-transf=* \ | |
533 | | --program-trans=* | --program-tran=* \ | |
534 | | --progr-tra=* | --program-tr=* | --program-t=*) | |
b7026657 | 535 | program_transform_name=$ac_optarg ;; |
c906108c SS |
536 | |
537 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
538 | | -silent | --silent | --silen | --sile | --sil) | |
539 | silent=yes ;; | |
540 | ||
541 | -sbindir | --sbindir | --sbindi | --sbind | --sbin | --sbi | --sb) | |
542 | ac_prev=sbindir ;; | |
543 | -sbindir=* | --sbindir=* | --sbindi=* | --sbind=* | --sbin=* \ | |
544 | | --sbi=* | --sb=*) | |
b7026657 | 545 | sbindir=$ac_optarg ;; |
c906108c SS |
546 | |
547 | -sharedstatedir | --sharedstatedir | --sharedstatedi \ | |
548 | | --sharedstated | --sharedstate | --sharedstat | --sharedsta \ | |
549 | | --sharedst | --shareds | --shared | --share | --shar \ | |
550 | | --sha | --sh) | |
551 | ac_prev=sharedstatedir ;; | |
552 | -sharedstatedir=* | --sharedstatedir=* | --sharedstatedi=* \ | |
553 | | --sharedstated=* | --sharedstate=* | --sharedstat=* | --sharedsta=* \ | |
554 | | --sharedst=* | --shareds=* | --shared=* | --share=* | --shar=* \ | |
555 | | --sha=* | --sh=*) | |
b7026657 | 556 | sharedstatedir=$ac_optarg ;; |
c906108c SS |
557 | |
558 | -site | --site | --sit) | |
559 | ac_prev=site ;; | |
560 | -site=* | --site=* | --sit=*) | |
b7026657 | 561 | site=$ac_optarg ;; |
eb2d80b4 | 562 | |
c906108c SS |
563 | -srcdir | --srcdir | --srcdi | --srcd | --src | --sr) |
564 | ac_prev=srcdir ;; | |
565 | -srcdir=* | --srcdir=* | --srcdi=* | --srcd=* | --src=* | --sr=*) | |
b7026657 | 566 | srcdir=$ac_optarg ;; |
c906108c SS |
567 | |
568 | -sysconfdir | --sysconfdir | --sysconfdi | --sysconfd | --sysconf \ | |
569 | | --syscon | --sysco | --sysc | --sys | --sy) | |
570 | ac_prev=sysconfdir ;; | |
571 | -sysconfdir=* | --sysconfdir=* | --sysconfdi=* | --sysconfd=* | --sysconf=* \ | |
572 | | --syscon=* | --sysco=* | --sysc=* | --sys=* | --sy=*) | |
b7026657 | 573 | sysconfdir=$ac_optarg ;; |
c906108c SS |
574 | |
575 | -target | --target | --targe | --targ | --tar | --ta | --t) | |
b7026657 | 576 | ac_prev=target_alias ;; |
c906108c | 577 | -target=* | --target=* | --targe=* | --targ=* | --tar=* | --ta=* | --t=*) |
b7026657 | 578 | target_alias=$ac_optarg ;; |
c906108c SS |
579 | |
580 | -v | -verbose | --verbose | --verbos | --verbo | --verb) | |
581 | verbose=yes ;; | |
582 | ||
b7026657 AC |
583 | -version | --version | --versio | --versi | --vers | -V) |
584 | ac_init_version=: ;; | |
c906108c SS |
585 | |
586 | -with-* | --with-*) | |
b7026657 | 587 | ac_package=`expr "x$ac_option" : 'x-*with-\([^=]*\)'` |
c906108c | 588 | # Reject names that are not valid shell variable names. |
b7026657 AC |
589 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
590 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
591 | { (exit 1); exit 1; }; } | |
c906108c | 592 | ac_package=`echo $ac_package| sed 's/-/_/g'` |
b7026657 AC |
593 | case $ac_option in |
594 | *=*) ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"`;; | |
c906108c SS |
595 | *) ac_optarg=yes ;; |
596 | esac | |
b7026657 | 597 | eval "with_$ac_package='$ac_optarg'" ;; |
c906108c SS |
598 | |
599 | -without-* | --without-*) | |
b7026657 | 600 | ac_package=`expr "x$ac_option" : 'x-*without-\(.*\)'` |
c906108c | 601 | # Reject names that are not valid shell variable names. |
b7026657 AC |
602 | expr "x$ac_package" : ".*[^-_$as_cr_alnum]" >/dev/null && |
603 | { echo "$as_me: error: invalid package name: $ac_package" >&2 | |
604 | { (exit 1); exit 1; }; } | |
605 | ac_package=`echo $ac_package | sed 's/-/_/g'` | |
606 | eval "with_$ac_package=no" ;; | |
c906108c SS |
607 | |
608 | --x) | |
609 | # Obsolete; use --with-x. | |
610 | with_x=yes ;; | |
611 | ||
612 | -x-includes | --x-includes | --x-include | --x-includ | --x-inclu \ | |
613 | | --x-incl | --x-inc | --x-in | --x-i) | |
614 | ac_prev=x_includes ;; | |
615 | -x-includes=* | --x-includes=* | --x-include=* | --x-includ=* | --x-inclu=* \ | |
616 | | --x-incl=* | --x-inc=* | --x-in=* | --x-i=*) | |
b7026657 | 617 | x_includes=$ac_optarg ;; |
c906108c SS |
618 | |
619 | -x-libraries | --x-libraries | --x-librarie | --x-librari \ | |
620 | | --x-librar | --x-libra | --x-libr | --x-lib | --x-li | --x-l) | |
621 | ac_prev=x_libraries ;; | |
622 | -x-libraries=* | --x-libraries=* | --x-librarie=* | --x-librari=* \ | |
623 | | --x-librar=* | --x-libra=* | --x-libr=* | --x-lib=* | --x-li=* | --x-l=*) | |
b7026657 | 624 | x_libraries=$ac_optarg ;; |
c906108c | 625 | |
b7026657 AC |
626 | -*) { echo "$as_me: error: unrecognized option: $ac_option |
627 | Try \`$0 --help' for more information." >&2 | |
628 | { (exit 1); exit 1; }; } | |
c906108c SS |
629 | ;; |
630 | ||
b7026657 AC |
631 | *=*) |
632 | ac_envvar=`expr "x$ac_option" : 'x\([^=]*\)='` | |
633 | # Reject names that are not valid shell variable names. | |
634 | expr "x$ac_envvar" : ".*[^_$as_cr_alnum]" >/dev/null && | |
635 | { echo "$as_me: error: invalid variable name: $ac_envvar" >&2 | |
636 | { (exit 1); exit 1; }; } | |
637 | ac_optarg=`echo "$ac_optarg" | sed "s/'/'\\\\\\\\''/g"` | |
638 | eval "$ac_envvar='$ac_optarg'" | |
639 | export $ac_envvar ;; | |
640 | ||
c906108c | 641 | *) |
b7026657 AC |
642 | # FIXME: should be removed in autoconf 3.0. |
643 | echo "$as_me: WARNING: you should use --build, --host, --target" >&2 | |
644 | expr "x$ac_option" : ".*[^-._$as_cr_alnum]" >/dev/null && | |
645 | echo "$as_me: WARNING: invalid host type: $ac_option" >&2 | |
646 | : ${build_alias=$ac_option} ${host_alias=$ac_option} ${target_alias=$ac_option} | |
c906108c SS |
647 | ;; |
648 | ||
649 | esac | |
650 | done | |
651 | ||
652 | if test -n "$ac_prev"; then | |
b7026657 AC |
653 | ac_option=--`echo $ac_prev | sed 's/_/-/g'` |
654 | { echo "$as_me: error: missing argument to $ac_option" >&2 | |
655 | { (exit 1); exit 1; }; } | |
c906108c | 656 | fi |
c906108c | 657 | |
b7026657 AC |
658 | # Be sure to have absolute paths. |
659 | for ac_var in exec_prefix prefix | |
660 | do | |
661 | eval ac_val=$`echo $ac_var` | |
662 | case $ac_val in | |
663 | [\\/$]* | ?:[\\/]* | NONE | '' ) ;; | |
664 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
665 | { (exit 1); exit 1; }; };; | |
666 | esac | |
667 | done | |
c906108c | 668 | |
b7026657 AC |
669 | # Be sure to have absolute paths. |
670 | for ac_var in bindir sbindir libexecdir datadir sysconfdir sharedstatedir \ | |
671 | localstatedir libdir includedir oldincludedir infodir mandir | |
c906108c | 672 | do |
b7026657 AC |
673 | eval ac_val=$`echo $ac_var` |
674 | case $ac_val in | |
675 | [\\/$]* | ?:[\\/]* ) ;; | |
676 | *) { echo "$as_me: error: expected an absolute directory name for --$ac_var: $ac_val" >&2 | |
677 | { (exit 1); exit 1; }; };; | |
c906108c SS |
678 | esac |
679 | done | |
680 | ||
b7026657 AC |
681 | # There might be people who depend on the old broken behavior: `$host' |
682 | # used to hold the argument of --host etc. | |
683 | # FIXME: To remove some day. | |
684 | build=$build_alias | |
685 | host=$host_alias | |
686 | target=$target_alias | |
687 | ||
688 | # FIXME: To remove some day. | |
689 | if test "x$host_alias" != x; then | |
690 | if test "x$build_alias" = x; then | |
691 | cross_compiling=maybe | |
692 | echo "$as_me: WARNING: If you wanted to set the --build type, don't use --host. | |
693 | If a cross compiler is detected then cross compile mode will be used." >&2 | |
694 | elif test "x$build_alias" != "x$host_alias"; then | |
695 | cross_compiling=yes | |
696 | fi | |
697 | fi | |
c906108c | 698 | |
b7026657 AC |
699 | ac_tool_prefix= |
700 | test -n "$host_alias" && ac_tool_prefix=$host_alias- | |
701 | ||
702 | test "$silent" = yes && exec 6>/dev/null | |
c906108c | 703 | |
c906108c SS |
704 | |
705 | # Find the source files, if location was not specified. | |
706 | if test -z "$srcdir"; then | |
707 | ac_srcdir_defaulted=yes | |
708 | # Try the directory containing this script, then its parent. | |
b7026657 AC |
709 | ac_confdir=`(dirname "$0") 2>/dev/null || |
710 | $as_expr X"$0" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
711 | X"$0" : 'X\(//\)[^/]' \| \ | |
712 | X"$0" : 'X\(//\)$' \| \ | |
713 | X"$0" : 'X\(/\)' \| \ | |
714 | . : '\(.\)' 2>/dev/null || | |
715 | echo X"$0" | | |
716 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
717 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
718 | /^X\(\/\/\)$/{ s//\1/; q; } | |
719 | /^X\(\/\).*/{ s//\1/; q; } | |
720 | s/.*/./; q'` | |
c906108c SS |
721 | srcdir=$ac_confdir |
722 | if test ! -r $srcdir/$ac_unique_file; then | |
723 | srcdir=.. | |
724 | fi | |
725 | else | |
726 | ac_srcdir_defaulted=no | |
727 | fi | |
728 | if test ! -r $srcdir/$ac_unique_file; then | |
729 | if test "$ac_srcdir_defaulted" = yes; then | |
b7026657 AC |
730 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $ac_confdir or .." >&2 |
731 | { (exit 1); exit 1; }; } | |
c906108c | 732 | else |
b7026657 AC |
733 | { echo "$as_me: error: cannot find sources ($ac_unique_file) in $srcdir" >&2 |
734 | { (exit 1); exit 1; }; } | |
c906108c SS |
735 | fi |
736 | fi | |
b7026657 AC |
737 | (cd $srcdir && test -r ./$ac_unique_file) 2>/dev/null || |
738 | { echo "$as_me: error: sources are in $srcdir, but \`cd $srcdir' does not work" >&2 | |
739 | { (exit 1); exit 1; }; } | |
740 | srcdir=`echo "$srcdir" | sed 's%\([^\\/]\)[\\/]*$%\1%'` | |
741 | ac_env_build_alias_set=${build_alias+set} | |
742 | ac_env_build_alias_value=$build_alias | |
743 | ac_cv_env_build_alias_set=${build_alias+set} | |
744 | ac_cv_env_build_alias_value=$build_alias | |
745 | ac_env_host_alias_set=${host_alias+set} | |
746 | ac_env_host_alias_value=$host_alias | |
747 | ac_cv_env_host_alias_set=${host_alias+set} | |
748 | ac_cv_env_host_alias_value=$host_alias | |
749 | ac_env_target_alias_set=${target_alias+set} | |
750 | ac_env_target_alias_value=$target_alias | |
751 | ac_cv_env_target_alias_set=${target_alias+set} | |
752 | ac_cv_env_target_alias_value=$target_alias | |
753 | ac_env_CC_set=${CC+set} | |
754 | ac_env_CC_value=$CC | |
755 | ac_cv_env_CC_set=${CC+set} | |
756 | ac_cv_env_CC_value=$CC | |
757 | ac_env_CFLAGS_set=${CFLAGS+set} | |
758 | ac_env_CFLAGS_value=$CFLAGS | |
759 | ac_cv_env_CFLAGS_set=${CFLAGS+set} | |
760 | ac_cv_env_CFLAGS_value=$CFLAGS | |
761 | ac_env_LDFLAGS_set=${LDFLAGS+set} | |
762 | ac_env_LDFLAGS_value=$LDFLAGS | |
763 | ac_cv_env_LDFLAGS_set=${LDFLAGS+set} | |
764 | ac_cv_env_LDFLAGS_value=$LDFLAGS | |
765 | ac_env_CPPFLAGS_set=${CPPFLAGS+set} | |
766 | ac_env_CPPFLAGS_value=$CPPFLAGS | |
767 | ac_cv_env_CPPFLAGS_set=${CPPFLAGS+set} | |
768 | ac_cv_env_CPPFLAGS_value=$CPPFLAGS | |
769 | ac_env_CPP_set=${CPP+set} | |
770 | ac_env_CPP_value=$CPP | |
771 | ac_cv_env_CPP_set=${CPP+set} | |
772 | ac_cv_env_CPP_value=$CPP | |
c906108c | 773 | |
b7026657 AC |
774 | # |
775 | # Report the --help message. | |
776 | # | |
777 | if test "$ac_init_help" = "long"; then | |
778 | # Omit some internal or obsolete options to make the list less imposing. | |
779 | # This message is too long to be a string in the A/UX 3.1 sh. | |
780 | cat <<_ACEOF | |
781 | \`configure' configures this package to adapt to many kinds of systems. | |
c906108c | 782 | |
b7026657 | 783 | Usage: $0 [OPTION]... [VAR=VALUE]... |
c906108c | 784 | |
b7026657 AC |
785 | To assign environment variables (e.g., CC, CFLAGS...), specify them as |
786 | VAR=VALUE. See below for descriptions of some of the useful variables. | |
c906108c | 787 | |
b7026657 | 788 | Defaults for the options are specified in brackets. |
c906108c | 789 | |
b7026657 AC |
790 | Configuration: |
791 | -h, --help display this help and exit | |
792 | --help=short display options specific to this package | |
793 | --help=recursive display the short help of all the included packages | |
794 | -V, --version display version information and exit | |
795 | -q, --quiet, --silent do not print \`checking...' messages | |
796 | --cache-file=FILE cache test results in FILE [disabled] | |
797 | -C, --config-cache alias for \`--cache-file=config.cache' | |
798 | -n, --no-create do not create output files | |
799 | --srcdir=DIR find the sources in DIR [configure dir or \`..'] | |
800 | ||
801 | _ACEOF | |
802 | ||
803 | cat <<_ACEOF | |
804 | Installation directories: | |
805 | --prefix=PREFIX install architecture-independent files in PREFIX | |
806 | [$ac_default_prefix] | |
807 | --exec-prefix=EPREFIX install architecture-dependent files in EPREFIX | |
808 | [PREFIX] | |
c906108c | 809 | |
b7026657 AC |
810 | By default, \`make install' will install all the files in |
811 | \`$ac_default_prefix/bin', \`$ac_default_prefix/lib' etc. You can specify | |
812 | an installation prefix other than \`$ac_default_prefix' using \`--prefix', | |
813 | for instance \`--prefix=\$HOME'. | |
c906108c | 814 | |
b7026657 AC |
815 | For better control, use the options below. |
816 | ||
817 | Fine tuning of the installation directories: | |
818 | --bindir=DIR user executables [EPREFIX/bin] | |
819 | --sbindir=DIR system admin executables [EPREFIX/sbin] | |
820 | --libexecdir=DIR program executables [EPREFIX/libexec] | |
821 | --datadir=DIR read-only architecture-independent data [PREFIX/share] | |
822 | --sysconfdir=DIR read-only single-machine data [PREFIX/etc] | |
823 | --sharedstatedir=DIR modifiable architecture-independent data [PREFIX/com] | |
824 | --localstatedir=DIR modifiable single-machine data [PREFIX/var] | |
825 | --libdir=DIR object code libraries [EPREFIX/lib] | |
826 | --includedir=DIR C header files [PREFIX/include] | |
827 | --oldincludedir=DIR C header files for non-gcc [/usr/include] | |
828 | --infodir=DIR info documentation [PREFIX/info] | |
829 | --mandir=DIR man documentation [PREFIX/man] | |
830 | _ACEOF | |
831 | ||
832 | cat <<\_ACEOF | |
833 | ||
834 | Program names: | |
835 | --program-prefix=PREFIX prepend PREFIX to installed program names | |
836 | --program-suffix=SUFFIX append SUFFIX to installed program names | |
837 | --program-transform-name=PROGRAM run sed PROGRAM on installed program names | |
838 | ||
839 | System types: | |
840 | --build=BUILD configure for building on BUILD [guessed] | |
841 | --host=HOST cross-compile to build programs to run on HOST [BUILD] | |
842 | --target=TARGET configure for building compilers for TARGET [HOST] | |
843 | _ACEOF | |
c906108c | 844 | fi |
b7026657 AC |
845 | |
846 | if test -n "$ac_init_help"; then | |
847 | ||
848 | cat <<\_ACEOF | |
849 | ||
850 | Optional Features: | |
851 | --disable-FEATURE do not include FEATURE (same as --enable-FEATURE=no) | |
852 | --enable-FEATURE[=ARG] include FEATURE [ARG=yes] | |
853 | --disable-nls do not use Native Language Support | |
854 | --enable-maintainer-mode Enable developer functionality. | |
855 | --enable-sim-bswap Use Host specific BSWAP instruction. | |
856 | --enable-sim-cflags=opts Extra CFLAGS for use in building simulator | |
857 | --enable-sim-debug=opts Enable debugging flags | |
858 | --enable-sim-stdio Specify whether to use stdio for console input/output. | |
859 | --enable-sim-trace=opts Enable tracing flags | |
860 | --enable-sim-profile=opts Enable profiling flags | |
861 | ||
862 | Optional Packages: | |
863 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
864 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
865 | --with-included-gettext use the GNU gettext library included here | |
866 | ||
867 | Some influential environment variables: | |
868 | CC C compiler command | |
869 | CFLAGS C compiler flags | |
870 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
871 | nonstandard directory <lib dir> | |
872 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
873 | headers in a nonstandard directory <include dir> | |
874 | CPP C preprocessor | |
875 | ||
876 | Use these variables to override the choices made by `configure' or to help | |
877 | it to find libraries and programs with nonstandard names/locations. | |
878 | ||
879 | _ACEOF | |
c906108c SS |
880 | fi |
881 | ||
b7026657 AC |
882 | if test "$ac_init_help" = "recursive"; then |
883 | # If there are subdirs, report their specific --help. | |
884 | ac_popdir=`pwd` | |
885 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
886 | test -d $ac_dir || continue | |
887 | ac_builddir=. | |
c906108c | 888 | |
b7026657 AC |
889 | if test "$ac_dir" != .; then |
890 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
891 | # A "../" for each directory in $ac_dir_suffix. | |
892 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
c906108c | 893 | else |
b7026657 | 894 | ac_dir_suffix= ac_top_builddir= |
c906108c SS |
895 | fi |
896 | ||
b7026657 AC |
897 | case $srcdir in |
898 | .) # No --srcdir option. We are building in place. | |
899 | ac_srcdir=. | |
900 | if test -z "$ac_top_builddir"; then | |
901 | ac_top_srcdir=. | |
902 | else | |
903 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
904 | fi ;; | |
905 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
906 | ac_srcdir=$srcdir$ac_dir_suffix; | |
907 | ac_top_srcdir=$srcdir ;; | |
908 | *) # Relative path. | |
909 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
910 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
911 | esac | |
912 | ||
913 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
914 | # the directories may not exist. | |
915 | case `pwd` in | |
916 | .) ac_abs_builddir="$ac_dir";; | |
917 | *) | |
918 | case "$ac_dir" in | |
919 | .) ac_abs_builddir=`pwd`;; | |
920 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
921 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
922 | esac;; | |
923 | esac | |
924 | case $ac_abs_builddir in | |
925 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
926 | *) | |
927 | case ${ac_top_builddir}. in | |
928 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
929 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
930 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
931 | esac;; | |
932 | esac | |
933 | case $ac_abs_builddir in | |
934 | .) ac_abs_srcdir=$ac_srcdir;; | |
935 | *) | |
936 | case $ac_srcdir in | |
937 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
938 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
939 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
940 | esac;; | |
941 | esac | |
942 | case $ac_abs_builddir in | |
943 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
944 | *) | |
945 | case $ac_top_srcdir in | |
946 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
947 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
948 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
949 | esac;; | |
950 | esac | |
951 | ||
952 | cd $ac_dir | |
953 | # Check for guested configure; otherwise get Cygnus style configure. | |
954 | if test -f $ac_srcdir/configure.gnu; then | |
955 | echo | |
956 | $SHELL $ac_srcdir/configure.gnu --help=recursive | |
957 | elif test -f $ac_srcdir/configure; then | |
958 | echo | |
959 | $SHELL $ac_srcdir/configure --help=recursive | |
960 | elif test -f $ac_srcdir/configure.ac || | |
961 | test -f $ac_srcdir/configure.in; then | |
962 | echo | |
963 | $ac_configure --help | |
964 | else | |
965 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
966 | fi | |
967 | cd $ac_popdir | |
968 | done | |
c906108c | 969 | fi |
b7026657 AC |
970 | |
971 | test -n "$ac_init_help" && exit 0 | |
972 | if $ac_init_version; then | |
973 | cat <<\_ACEOF | |
974 | ||
975 | Copyright (C) 2003 Free Software Foundation, Inc. | |
976 | This configure script is free software; the Free Software Foundation | |
977 | gives unlimited permission to copy, distribute and modify it. | |
978 | _ACEOF | |
979 | exit 0 | |
980 | fi | |
981 | exec 5>config.log | |
982 | cat >&5 <<_ACEOF | |
983 | This file contains any messages produced by compilers while | |
984 | running configure, to aid debugging if configure makes a mistake. | |
985 | ||
986 | It was created by $as_me, which was | |
987 | generated by GNU Autoconf 2.59. Invocation command line was | |
988 | ||
989 | $ $0 $@ | |
990 | ||
991 | _ACEOF | |
992 | { | |
993 | cat <<_ASUNAME | |
994 | ## --------- ## | |
995 | ## Platform. ## | |
996 | ## --------- ## | |
997 | ||
998 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
999 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1000 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1001 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1002 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1003 | ||
1004 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1005 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1006 | ||
1007 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1008 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1009 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1010 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
1011 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1012 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1013 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1014 | ||
1015 | _ASUNAME | |
1016 | ||
1017 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1018 | for as_dir in $PATH | |
1019 | do | |
1020 | IFS=$as_save_IFS | |
1021 | test -z "$as_dir" && as_dir=. | |
1022 | echo "PATH: $as_dir" | |
1023 | done | |
1024 | ||
1025 | } >&5 | |
1026 | ||
1027 | cat >&5 <<_ACEOF | |
1028 | ||
1029 | ||
1030 | ## ----------- ## | |
1031 | ## Core tests. ## | |
1032 | ## ----------- ## | |
1033 | ||
1034 | _ACEOF | |
1035 | ||
1036 | ||
1037 | # Keep a trace of the command line. | |
1038 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1039 | # Strip out --silent because we don't want to record it for future runs. | |
1040 | # Also quote any args containing shell meta-characters. | |
1041 | # Make two passes to allow for proper duplicate-argument suppression. | |
1042 | ac_configure_args= | |
1043 | ac_configure_args0= | |
1044 | ac_configure_args1= | |
1045 | ac_sep= | |
1046 | ac_must_keep_next=false | |
1047 | for ac_pass in 1 2 | |
1048 | do | |
1049 | for ac_arg | |
1050 | do | |
1051 | case $ac_arg in | |
1052 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1053 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1054 | | -silent | --silent | --silen | --sile | --sil) | |
1055 | continue ;; | |
1056 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1057 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1058 | esac | |
1059 | case $ac_pass in | |
1060 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1061 | 2) | |
1062 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1063 | if test $ac_must_keep_next = true; then | |
1064 | ac_must_keep_next=false # Got value, back to normal. | |
1065 | else | |
1066 | case $ac_arg in | |
1067 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1068 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1069 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1070 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1071 | case "$ac_configure_args0 " in | |
1072 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1073 | esac | |
1074 | ;; | |
1075 | -* ) ac_must_keep_next=true ;; | |
1076 | esac | |
1077 | fi | |
1078 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1079 | # Get rid of the leading space. | |
1080 | ac_sep=" " | |
1081 | ;; | |
1082 | esac | |
1083 | done | |
1084 | done | |
1085 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1086 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1087 | ||
1088 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1089 | # config.log. We remove comments because anyway the quotes in there | |
1090 | # would cause problems or look ugly. | |
1091 | # WARNING: Be sure not to use single quotes in there, as some shells, | |
1092 | # such as our DU 5.0 friend, will then `close' the trap. | |
1093 | trap 'exit_status=$? | |
1094 | # Save into config.log some information that might help in debugging. | |
1095 | { | |
1096 | echo | |
1097 | ||
1098 | cat <<\_ASBOX | |
1099 | ## ---------------- ## | |
1100 | ## Cache variables. ## | |
1101 | ## ---------------- ## | |
1102 | _ASBOX | |
1103 | echo | |
1104 | # The following way of writing the cache mishandles newlines in values, | |
1105 | { | |
1106 | (set) 2>&1 | | |
1107 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
1108 | *ac_space=\ *) | |
1109 | sed -n \ | |
1110 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; | |
1111 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
1112 | ;; | |
1113 | *) | |
1114 | sed -n \ | |
1115 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
1116 | ;; | |
1117 | esac; | |
1118 | } | |
1119 | echo | |
1120 | ||
1121 | cat <<\_ASBOX | |
1122 | ## ----------------- ## | |
1123 | ## Output variables. ## | |
1124 | ## ----------------- ## | |
1125 | _ASBOX | |
1126 | echo | |
1127 | for ac_var in $ac_subst_vars | |
1128 | do | |
1129 | eval ac_val=$`echo $ac_var` | |
1130 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1131 | done | sort | |
1132 | echo | |
1133 | ||
1134 | if test -n "$ac_subst_files"; then | |
1135 | cat <<\_ASBOX | |
1136 | ## ------------- ## | |
1137 | ## Output files. ## | |
1138 | ## ------------- ## | |
1139 | _ASBOX | |
1140 | echo | |
1141 | for ac_var in $ac_subst_files | |
1142 | do | |
1143 | eval ac_val=$`echo $ac_var` | |
1144 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1145 | done | sort | |
1146 | echo | |
1147 | fi | |
1148 | ||
1149 | if test -s confdefs.h; then | |
1150 | cat <<\_ASBOX | |
1151 | ## ----------- ## | |
1152 | ## confdefs.h. ## | |
1153 | ## ----------- ## | |
1154 | _ASBOX | |
1155 | echo | |
1156 | sed "/^$/d" confdefs.h | sort | |
1157 | echo | |
1158 | fi | |
1159 | test "$ac_signal" != 0 && | |
1160 | echo "$as_me: caught signal $ac_signal" | |
1161 | echo "$as_me: exit $exit_status" | |
1162 | } >&5 | |
1163 | rm -f core *.core && | |
1164 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && | |
1165 | exit $exit_status | |
1166 | ' 0 | |
1167 | for ac_signal in 1 2 13 15; do | |
1168 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1169 | done | |
1170 | ac_signal=0 | |
1171 | ||
1172 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1173 | rm -rf conftest* confdefs.h | |
1174 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1175 | echo >confdefs.h | |
1176 | ||
1177 | # Predefined preprocessor variables. | |
1178 | ||
1179 | cat >>confdefs.h <<_ACEOF | |
1180 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1181 | _ACEOF | |
1182 | ||
1183 | ||
1184 | cat >>confdefs.h <<_ACEOF | |
1185 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1186 | _ACEOF | |
1187 | ||
1188 | ||
1189 | cat >>confdefs.h <<_ACEOF | |
1190 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1191 | _ACEOF | |
1192 | ||
1193 | ||
1194 | cat >>confdefs.h <<_ACEOF | |
1195 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1196 | _ACEOF | |
1197 | ||
1198 | ||
1199 | cat >>confdefs.h <<_ACEOF | |
1200 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1201 | _ACEOF | |
1202 | ||
1203 | ||
1204 | # Let the site file select an alternate cache file if it wants to. | |
1205 | # Prefer explicitly selected file to automatically selected ones. | |
1206 | if test -z "$CONFIG_SITE"; then | |
1207 | if test "x$prefix" != xNONE; then | |
1208 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1209 | else | |
1210 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1211 | fi | |
1212 | fi | |
1213 | for ac_site_file in $CONFIG_SITE; do | |
1214 | if test -r "$ac_site_file"; then | |
1215 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | |
1216 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1217 | sed 's/^/| /' "$ac_site_file" >&5 | |
1218 | . "$ac_site_file" | |
1219 | fi | |
1220 | done | |
1221 | ||
1222 | if test -r "$cache_file"; then | |
1223 | # Some versions of bash will fail to source /dev/null (special | |
1224 | # files actually), so we avoid doing that. | |
1225 | if test -f "$cache_file"; then | |
1226 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1227 | echo "$as_me: loading cache $cache_file" >&6;} | |
1228 | case $cache_file in | |
1229 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1230 | *) . ./$cache_file;; | |
1231 | esac | |
1232 | fi | |
1233 | else | |
1234 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
1235 | echo "$as_me: creating cache $cache_file" >&6;} | |
1236 | >$cache_file | |
1237 | fi | |
1238 | ||
1239 | # Check that the precious variables saved in the cache have kept the same | |
1240 | # value. | |
1241 | ac_cache_corrupted=false | |
1242 | for ac_var in `(set) 2>&1 | | |
1243 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do | |
1244 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
1245 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1246 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
1247 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
1248 | case $ac_old_set,$ac_new_set in | |
1249 | set,) | |
1250 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1251 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1252 | ac_cache_corrupted=: ;; | |
1253 | ,set) | |
1254 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1255 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1256 | ac_cache_corrupted=: ;; | |
1257 | ,);; | |
1258 | *) | |
1259 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
1260 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
1261 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1262 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 | |
1263 | echo "$as_me: former value: $ac_old_val" >&2;} | |
1264 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 | |
1265 | echo "$as_me: current value: $ac_new_val" >&2;} | |
1266 | ac_cache_corrupted=: | |
1267 | fi;; | |
1268 | esac | |
1269 | # Pass precious variables to config.status. | |
1270 | if test "$ac_new_set" = set; then | |
1271 | case $ac_new_val in | |
1272 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1273 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1274 | *) ac_arg=$ac_var=$ac_new_val ;; | |
1275 | esac | |
1276 | case " $ac_configure_args " in | |
1277 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1278 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1279 | esac | |
1280 | fi | |
1281 | done | |
1282 | if $ac_cache_corrupted; then | |
1283 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1284 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1285 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1286 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1287 | { (exit 1); exit 1; }; } | |
1288 | fi | |
1289 | ||
1290 | ac_ext=c | |
1291 | ac_cpp='$CPP $CPPFLAGS' | |
1292 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1293 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1294 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1295 | ||
1296 | ||
1297 | ||
1298 | ||
1299 | ||
1300 | ||
1301 | ||
1302 | ||
1303 | ||
1304 | ||
1305 | ||
1306 | ||
1307 | ||
1308 | ||
1309 | ||
1310 | ||
1311 | ||
1312 | ||
1313 | ||
35695fd6 AC |
1314 | ac_config_headers="$ac_config_headers cconfig.h:config.in" |
1315 | ||
1316 | ||
1317 | # Bugs in autoconf 2.59 break the call to SIM_AC_COMMON, hack around | |
1318 | # it by inlining the macro's contents. | |
1319 | # This file contains common code used by all simulators. | |
1320 | # | |
1321 | # common.m4 invokes AC macros used by all simulators and by the common | |
1322 | # directory. It is intended to be included before any target specific | |
1323 | # stuff. SIM_AC_OUTPUT is a cover function to AC_OUTPUT to generate | |
1324 | # the Makefile. It is intended to be invoked last. | |
1325 | # | |
1326 | # The simulator's configure.in should look like: | |
1327 | # | |
1328 | # dnl Process this file with autoconf to produce a configure script. | |
1329 | # AC_PREREQ(2.5)dnl | |
1330 | # AC_INIT(Makefile.in) | |
1331 | # AC_CONFIG_HEADER(config.h:config.in) | |
1332 | # | |
1333 | # sinclude(../common/aclocal.m4) | |
1334 | # sinclude(../common/common.m4) | |
1335 | # | |
1336 | # ... target specific stuff ... | |
b7026657 | 1337 | |
b7026657 AC |
1338 | ac_aux_dir= |
1339 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
1340 | if test -f $ac_dir/install-sh; then | |
1341 | ac_aux_dir=$ac_dir | |
1342 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1343 | break | |
1344 | elif test -f $ac_dir/install.sh; then | |
1345 | ac_aux_dir=$ac_dir | |
1346 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1347 | break | |
1348 | elif test -f $ac_dir/shtool; then | |
1349 | ac_aux_dir=$ac_dir | |
1350 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1351 | break | |
1352 | fi | |
1353 | done | |
1354 | if test -z "$ac_aux_dir"; then | |
1355 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 | |
1356 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} | |
1357 | { (exit 1); exit 1; }; } | |
1358 | fi | |
1359 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" | |
1360 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1361 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
1362 | ||
1363 | # Make sure we can run config.sub. | |
1364 | $ac_config_sub sun4 >/dev/null 2>&1 || | |
1365 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
1366 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
1367 | { (exit 1); exit 1; }; } | |
1368 | ||
1369 | echo "$as_me:$LINENO: checking build system type" >&5 | |
1370 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
1371 | if test "${ac_cv_build+set}" = set; then | |
1372 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1373 | else | |
1374 | ac_cv_build_alias=$build_alias | |
1375 | test -z "$ac_cv_build_alias" && | |
1376 | ac_cv_build_alias=`$ac_config_guess` | |
1377 | test -z "$ac_cv_build_alias" && | |
1378 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
1379 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
1380 | { (exit 1); exit 1; }; } | |
1381 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
1382 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
1383 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
1384 | { (exit 1); exit 1; }; } | |
1385 | ||
1386 | fi | |
1387 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
1388 | echo "${ECHO_T}$ac_cv_build" >&6 | |
1389 | build=$ac_cv_build | |
1390 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1391 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1392 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1393 | ||
1394 | ||
1395 | echo "$as_me:$LINENO: checking host system type" >&5 | |
1396 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
1397 | if test "${ac_cv_host+set}" = set; then | |
1398 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1399 | else | |
1400 | ac_cv_host_alias=$host_alias | |
1401 | test -z "$ac_cv_host_alias" && | |
1402 | ac_cv_host_alias=$ac_cv_build_alias | |
1403 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
1404 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
1405 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
1406 | { (exit 1); exit 1; }; } | |
1407 | ||
1408 | fi | |
1409 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
1410 | echo "${ECHO_T}$ac_cv_host" >&6 | |
1411 | host=$ac_cv_host | |
1412 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1413 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1414 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1415 | ||
1416 | ||
35695fd6 AC |
1417 | echo "$as_me:$LINENO: checking target system type" >&5 |
1418 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 | |
1419 | if test "${ac_cv_target+set}" = set; then | |
b7026657 AC |
1420 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
1421 | else | |
35695fd6 AC |
1422 | ac_cv_target_alias=$target_alias |
1423 | test "x$ac_cv_target_alias" = "x" && | |
1424 | ac_cv_target_alias=$ac_cv_host_alias | |
1425 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || | |
1426 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 | |
1427 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} | |
1428 | { (exit 1); exit 1; }; } | |
1429 | ||
1430 | fi | |
1431 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 | |
1432 | echo "${ECHO_T}$ac_cv_target" >&6 | |
1433 | target=$ac_cv_target | |
1434 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
1435 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
1436 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
1437 | ||
1438 | ||
1439 | # The aliases save the names the user supplied, while $host etc. | |
1440 | # will get canonicalized. | |
1441 | test -n "$target_alias" && | |
1442 | test "$program_prefix$program_suffix$program_transform_name" = \ | |
1443 | NONENONEs,x,x, && | |
1444 | program_prefix=${target_alias}- | |
1445 | test "$program_prefix" != NONE && | |
1446 | program_transform_name="s,^,$program_prefix,;$program_transform_name" | |
1447 | # Use a double $ so make ignores it. | |
1448 | test "$program_suffix" != NONE && | |
1449 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" | |
1450 | # Double any \ or $. echo might interpret backslashes. | |
1451 | # By default was `s,x,x', remove it if useless. | |
1452 | cat <<\_ACEOF >conftest.sed | |
1453 | s/[\\$]/&&/g;s/;s,x,x,$// | |
b7026657 | 1454 | _ACEOF |
35695fd6 AC |
1455 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` |
1456 | rm conftest.sed | |
1457 | ||
1458 | ac_ext=c | |
1459 | ac_cpp='$CPP $CPPFLAGS' | |
1460 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1461 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1462 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1463 | if test -n "$ac_tool_prefix"; then | |
1464 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
1465 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
1466 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1467 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1468 | if test "${ac_cv_prog_CC+set}" = set; then | |
1469 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b7026657 | 1470 | else |
35695fd6 AC |
1471 | if test -n "$CC"; then |
1472 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1473 | else | |
1474 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1475 | for as_dir in $PATH | |
1476 | do | |
1477 | IFS=$as_save_IFS | |
1478 | test -z "$as_dir" && as_dir=. | |
1479 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1480 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1481 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
1482 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1483 | break 2 | |
1484 | fi | |
1485 | done | |
1486 | done | |
1487 | ||
b7026657 | 1488 | fi |
b7026657 | 1489 | fi |
35695fd6 AC |
1490 | CC=$ac_cv_prog_CC |
1491 | if test -n "$CC"; then | |
1492 | echo "$as_me:$LINENO: result: $CC" >&5 | |
1493 | echo "${ECHO_T}$CC" >&6 | |
b7026657 AC |
1494 | else |
1495 | echo "$as_me:$LINENO: result: no" >&5 | |
1496 | echo "${ECHO_T}no" >&6 | |
b7026657 AC |
1497 | fi |
1498 | ||
35695fd6 AC |
1499 | fi |
1500 | if test -z "$ac_cv_prog_CC"; then | |
1501 | ac_ct_CC=$CC | |
1502 | # Extract the first word of "gcc", so it can be a program name with args. | |
1503 | set dummy gcc; ac_word=$2 | |
1504 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1505 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1506 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
b7026657 AC |
1507 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
1508 | else | |
35695fd6 AC |
1509 | if test -n "$ac_ct_CC"; then |
1510 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
b7026657 | 1511 | else |
35695fd6 AC |
1512 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1513 | for as_dir in $PATH | |
1514 | do | |
1515 | IFS=$as_save_IFS | |
1516 | test -z "$as_dir" && as_dir=. | |
1517 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1518 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1519 | ac_cv_prog_ac_ct_CC="gcc" | |
1520 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1521 | break 2 | |
1522 | fi | |
1523 | done | |
1524 | done | |
b7026657 AC |
1525 | |
1526 | fi | |
b7026657 | 1527 | fi |
35695fd6 AC |
1528 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
1529 | if test -n "$ac_ct_CC"; then | |
1530 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1531 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1532 | else | |
1533 | echo "$as_me:$LINENO: result: no" >&5 | |
1534 | echo "${ECHO_T}no" >&6 | |
b7026657 | 1535 | fi |
b7026657 | 1536 | |
35695fd6 AC |
1537 | CC=$ac_ct_CC |
1538 | else | |
1539 | CC="$ac_cv_prog_CC" | |
b7026657 AC |
1540 | fi |
1541 | ||
35695fd6 AC |
1542 | if test -z "$CC"; then |
1543 | if test -n "$ac_tool_prefix"; then | |
1544 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
1545 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
1546 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1547 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1548 | if test "${ac_cv_prog_CC+set}" = set; then | |
b7026657 AC |
1549 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
1550 | else | |
35695fd6 AC |
1551 | if test -n "$CC"; then |
1552 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1553 | else | |
1554 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1555 | for as_dir in $PATH | |
b7026657 | 1556 | do |
35695fd6 AC |
1557 | IFS=$as_save_IFS |
1558 | test -z "$as_dir" && as_dir=. | |
1559 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1560 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1561 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
1562 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1563 | break 2 | |
b7026657 | 1564 | fi |
35695fd6 AC |
1565 | done |
1566 | done | |
b7026657 | 1567 | |
b7026657 | 1568 | fi |
b7026657 | 1569 | fi |
35695fd6 AC |
1570 | CC=$ac_cv_prog_CC |
1571 | if test -n "$CC"; then | |
1572 | echo "$as_me:$LINENO: result: $CC" >&5 | |
1573 | echo "${ECHO_T}$CC" >&6 | |
b7026657 | 1574 | else |
35695fd6 AC |
1575 | echo "$as_me:$LINENO: result: no" >&5 |
1576 | echo "${ECHO_T}no" >&6 | |
b7026657 AC |
1577 | fi |
1578 | ||
b7026657 | 1579 | fi |
35695fd6 AC |
1580 | if test -z "$ac_cv_prog_CC"; then |
1581 | ac_ct_CC=$CC | |
1582 | # Extract the first word of "cc", so it can be a program name with args. | |
1583 | set dummy cc; ac_word=$2 | |
1584 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1585 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1586 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1587 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b7026657 | 1588 | else |
35695fd6 AC |
1589 | if test -n "$ac_ct_CC"; then |
1590 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1591 | else | |
1592 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1593 | for as_dir in $PATH | |
b7026657 | 1594 | do |
35695fd6 AC |
1595 | IFS=$as_save_IFS |
1596 | test -z "$as_dir" && as_dir=. | |
1597 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1598 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1599 | ac_cv_prog_ac_ct_CC="cc" | |
1600 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1601 | break 2 | |
b7026657 | 1602 | fi |
35695fd6 AC |
1603 | done |
1604 | done | |
b7026657 | 1605 | |
b7026657 | 1606 | fi |
b7026657 | 1607 | fi |
35695fd6 AC |
1608 | ac_ct_CC=$ac_cv_prog_ac_ct_CC |
1609 | if test -n "$ac_ct_CC"; then | |
1610 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1611 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
b7026657 | 1612 | else |
35695fd6 AC |
1613 | echo "$as_me:$LINENO: result: no" >&5 |
1614 | echo "${ECHO_T}no" >&6 | |
b7026657 | 1615 | fi |
b7026657 | 1616 | |
35695fd6 | 1617 | CC=$ac_ct_CC |
b7026657 | 1618 | else |
35695fd6 | 1619 | CC="$ac_cv_prog_CC" |
b7026657 AC |
1620 | fi |
1621 | ||
35695fd6 AC |
1622 | fi |
1623 | if test -z "$CC"; then | |
1624 | # Extract the first word of "cc", so it can be a program name with args. | |
1625 | set dummy cc; ac_word=$2 | |
1626 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1627 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1628 | if test "${ac_cv_prog_CC+set}" = set; then | |
1629 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1630 | else | |
1631 | if test -n "$CC"; then | |
1632 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1633 | else | |
1634 | ac_prog_rejected=no | |
1635 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1636 | for as_dir in $PATH | |
1637 | do | |
1638 | IFS=$as_save_IFS | |
1639 | test -z "$as_dir" && as_dir=. | |
1640 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1641 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1642 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
1643 | ac_prog_rejected=yes | |
1644 | continue | |
1645 | fi | |
1646 | ac_cv_prog_CC="cc" | |
1647 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1648 | break 2 | |
1649 | fi | |
1650 | done | |
1651 | done | |
b7026657 | 1652 | |
35695fd6 AC |
1653 | if test $ac_prog_rejected = yes; then |
1654 | # We found a bogon in the path, so make sure we never use it. | |
1655 | set dummy $ac_cv_prog_CC | |
1656 | shift | |
1657 | if test $# != 0; then | |
1658 | # We chose a different compiler from the bogus one. | |
1659 | # However, it has the same basename, so the bogon will be chosen | |
1660 | # first if we set CC to just the basename; use the full file name. | |
1661 | shift | |
1662 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" | |
1663 | fi | |
1664 | fi | |
1665 | fi | |
1666 | fi | |
1667 | CC=$ac_cv_prog_CC | |
1668 | if test -n "$CC"; then | |
1669 | echo "$as_me:$LINENO: result: $CC" >&5 | |
1670 | echo "${ECHO_T}$CC" >&6 | |
1671 | else | |
1672 | echo "$as_me:$LINENO: result: no" >&5 | |
1673 | echo "${ECHO_T}no" >&6 | |
1674 | fi | |
b7026657 | 1675 | |
35695fd6 AC |
1676 | fi |
1677 | if test -z "$CC"; then | |
1678 | if test -n "$ac_tool_prefix"; then | |
1679 | for ac_prog in cl | |
1680 | do | |
1681 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
1682 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
1683 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1684 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1685 | if test "${ac_cv_prog_CC+set}" = set; then | |
b7026657 AC |
1686 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
1687 | else | |
35695fd6 AC |
1688 | if test -n "$CC"; then |
1689 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1690 | else | |
1691 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1692 | for as_dir in $PATH | |
1693 | do | |
1694 | IFS=$as_save_IFS | |
1695 | test -z "$as_dir" && as_dir=. | |
1696 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1697 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1698 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
1699 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1700 | break 2 | |
1701 | fi | |
1702 | done | |
1703 | done | |
b7026657 | 1704 | |
35695fd6 AC |
1705 | fi |
1706 | fi | |
1707 | CC=$ac_cv_prog_CC | |
1708 | if test -n "$CC"; then | |
1709 | echo "$as_me:$LINENO: result: $CC" >&5 | |
1710 | echo "${ECHO_T}$CC" >&6 | |
1711 | else | |
1712 | echo "$as_me:$LINENO: result: no" >&5 | |
1713 | echo "${ECHO_T}no" >&6 | |
1714 | fi | |
b7026657 | 1715 | |
35695fd6 AC |
1716 | test -n "$CC" && break |
1717 | done | |
1718 | fi | |
1719 | if test -z "$CC"; then | |
1720 | ac_ct_CC=$CC | |
1721 | for ac_prog in cl | |
1722 | do | |
1723 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1724 | set dummy $ac_prog; ac_word=$2 | |
1725 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1726 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1727 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
b7026657 AC |
1728 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
1729 | else | |
35695fd6 AC |
1730 | if test -n "$ac_ct_CC"; then |
1731 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1732 | else | |
1733 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1734 | for as_dir in $PATH | |
1735 | do | |
1736 | IFS=$as_save_IFS | |
1737 | test -z "$as_dir" && as_dir=. | |
1738 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1739 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1740 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
1741 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1742 | break 2 | |
1743 | fi | |
1744 | done | |
1745 | done | |
1746 | ||
1747 | fi | |
1748 | fi | |
1749 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1750 | if test -n "$ac_ct_CC"; then | |
1751 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1752 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1753 | else | |
1754 | echo "$as_me:$LINENO: result: no" >&5 | |
1755 | echo "${ECHO_T}no" >&6 | |
1756 | fi | |
1757 | ||
1758 | test -n "$ac_ct_CC" && break | |
1759 | done | |
1760 | ||
1761 | CC=$ac_ct_CC | |
1762 | fi | |
1763 | ||
1764 | fi | |
1765 | ||
1766 | ||
1767 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
1768 | See \`config.log' for more details." >&5 | |
1769 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
1770 | See \`config.log' for more details." >&2;} | |
1771 | { (exit 1); exit 1; }; } | |
1772 | ||
1773 | # Provide some information about the compiler. | |
1774 | echo "$as_me:$LINENO:" \ | |
1775 | "checking for C compiler version" >&5 | |
1776 | ac_compiler=`set X $ac_compile; echo $2` | |
1777 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
1778 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
1779 | ac_status=$? | |
1780 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1781 | (exit $ac_status); } | |
1782 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
1783 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
1784 | ac_status=$? | |
1785 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1786 | (exit $ac_status); } | |
1787 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
1788 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
1789 | ac_status=$? | |
1790 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1791 | (exit $ac_status); } | |
1792 | ||
1793 | cat >conftest.$ac_ext <<_ACEOF | |
b7026657 AC |
1794 | /* confdefs.h. */ |
1795 | _ACEOF | |
1796 | cat confdefs.h >>conftest.$ac_ext | |
1797 | cat >>conftest.$ac_ext <<_ACEOF | |
1798 | /* end confdefs.h. */ | |
b7026657 AC |
1799 | |
1800 | int | |
1801 | main () | |
1802 | { | |
1803 | ||
1804 | ; | |
1805 | return 0; | |
1806 | } | |
1807 | _ACEOF | |
35695fd6 AC |
1808 | ac_clean_files_save=$ac_clean_files |
1809 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
1810 | # Try to create an executable without -o first, disregard a.out. | |
1811 | # It will help us diagnose broken compilers, and finding out an intuition | |
1812 | # of exeext. | |
1813 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 | |
1814 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | |
1815 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
1816 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | |
1817 | (eval $ac_link_default) 2>&5 | |
b7026657 AC |
1818 | ac_status=$? |
1819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35695fd6 AC |
1820 | (exit $ac_status); }; then |
1821 | # Find the output, starting from the most likely. This scheme is | |
1822 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
1823 | # resort. | |
1824 | ||
1825 | # Be careful to initialize this variable, since it used to be cached. | |
1826 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
1827 | ac_cv_exeext= | |
1828 | # b.out is created by i960 compilers. | |
1829 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
1830 | do | |
1831 | test -f "$ac_file" || continue | |
1832 | case $ac_file in | |
1833 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) | |
1834 | ;; | |
1835 | conftest.$ac_ext ) | |
1836 | # This is the source file. | |
1837 | ;; | |
1838 | [ab].out ) | |
1839 | # We found the default executable, but exeext='' is most | |
1840 | # certainly right. | |
1841 | break;; | |
1842 | *.* ) | |
1843 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
1844 | # FIXME: I believe we export ac_cv_exeext for Libtool, | |
1845 | # but it would be cool to find out if it's true. Does anybody | |
1846 | # maintain Libtool? --akim. | |
1847 | export ac_cv_exeext | |
1848 | break;; | |
1849 | * ) | |
1850 | break;; | |
1851 | esac | |
1852 | done | |
b7026657 AC |
1853 | else |
1854 | echo "$as_me: failed program was:" >&5 | |
1855 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1856 | ||
35695fd6 AC |
1857 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables |
1858 | See \`config.log' for more details." >&5 | |
1859 | echo "$as_me: error: C compiler cannot create executables | |
1860 | See \`config.log' for more details." >&2;} | |
1861 | { (exit 77); exit 77; }; } | |
b7026657 | 1862 | fi |
c906108c | 1863 | |
35695fd6 AC |
1864 | ac_exeext=$ac_cv_exeext |
1865 | echo "$as_me:$LINENO: result: $ac_file" >&5 | |
1866 | echo "${ECHO_T}$ac_file" >&6 | |
c906108c | 1867 | |
35695fd6 AC |
1868 | # Check the compiler produces executables we can run. If not, either |
1869 | # the compiler is broken, or we cross compile. | |
1870 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
1871 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
1872 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
1873 | # If not cross compiling, check that we can run a simple program. | |
1874 | if test "$cross_compiling" != yes; then | |
1875 | if { ac_try='./$ac_file' | |
1876 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
1877 | (eval $ac_try) 2>&5 | |
1878 | ac_status=$? | |
1879 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1880 | (exit $ac_status); }; }; then | |
1881 | cross_compiling=no | |
1882 | else | |
1883 | if test "$cross_compiling" = maybe; then | |
1884 | cross_compiling=yes | |
1885 | else | |
1886 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
1887 | If you meant to cross compile, use \`--host'. | |
1888 | See \`config.log' for more details." >&5 | |
1889 | echo "$as_me: error: cannot run C compiled programs. | |
1890 | If you meant to cross compile, use \`--host'. | |
1891 | See \`config.log' for more details." >&2;} | |
1892 | { (exit 1); exit 1; }; } | |
1893 | fi | |
1894 | fi | |
c906108c | 1895 | fi |
35695fd6 AC |
1896 | echo "$as_me:$LINENO: result: yes" >&5 |
1897 | echo "${ECHO_T}yes" >&6 | |
c906108c | 1898 | |
35695fd6 AC |
1899 | rm -f a.out a.exe conftest$ac_cv_exeext b.out |
1900 | ac_clean_files=$ac_clean_files_save | |
1901 | # Check the compiler produces executables we can run. If not, either | |
1902 | # the compiler is broken, or we cross compile. | |
1903 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
1904 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
1905 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
1906 | echo "${ECHO_T}$cross_compiling" >&6 | |
b7026657 | 1907 | |
35695fd6 AC |
1908 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 |
1909 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
1910 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
1911 | (eval $ac_link) 2>&5 | |
1912 | ac_status=$? | |
1913 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1914 | (exit $ac_status); }; then | |
1915 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
1916 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
1917 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
1918 | # `rm'. | |
1919 | for ac_file in conftest.exe conftest conftest.*; do | |
1920 | test -f "$ac_file" || continue | |
1921 | case $ac_file in | |
1922 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | |
1923 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
1924 | export ac_cv_exeext | |
1925 | break;; | |
1926 | * ) break;; | |
1927 | esac | |
1928 | done | |
c906108c | 1929 | else |
35695fd6 AC |
1930 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
1931 | See \`config.log' for more details." >&5 | |
1932 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
1933 | See \`config.log' for more details." >&2;} | |
1934 | { (exit 1); exit 1; }; } | |
c906108c | 1935 | fi |
c906108c | 1936 | |
35695fd6 AC |
1937 | rm -f conftest$ac_cv_exeext |
1938 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
1939 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
c906108c | 1940 | |
35695fd6 AC |
1941 | rm -f conftest.$ac_ext |
1942 | EXEEXT=$ac_cv_exeext | |
1943 | ac_exeext=$EXEEXT | |
1944 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
1945 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
1946 | if test "${ac_cv_objext+set}" = set; then | |
1947 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 1948 | else |
b7026657 AC |
1949 | cat >conftest.$ac_ext <<_ACEOF |
1950 | /* confdefs.h. */ | |
1951 | _ACEOF | |
1952 | cat confdefs.h >>conftest.$ac_ext | |
1953 | cat >>conftest.$ac_ext <<_ACEOF | |
1954 | /* end confdefs.h. */ | |
c906108c | 1955 | |
b7026657 AC |
1956 | int |
1957 | main () | |
1958 | { | |
35695fd6 AC |
1959 | |
1960 | ; | |
1961 | return 0; | |
b7026657 AC |
1962 | } |
1963 | _ACEOF | |
35695fd6 AC |
1964 | rm -f conftest.o conftest.obj |
1965 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
1966 | (eval $ac_compile) 2>&5 | |
b7026657 AC |
1967 | ac_status=$? |
1968 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35695fd6 AC |
1969 | (exit $ac_status); }; then |
1970 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
1971 | case $ac_file in | |
1972 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; | |
1973 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
1974 | break;; | |
1975 | esac | |
1976 | done | |
c906108c | 1977 | else |
35695fd6 | 1978 | echo "$as_me: failed program was:" >&5 |
b7026657 AC |
1979 | sed 's/^/| /' conftest.$ac_ext >&5 |
1980 | ||
35695fd6 AC |
1981 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
1982 | See \`config.log' for more details." >&5 | |
1983 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
1984 | See \`config.log' for more details." >&2;} | |
1985 | { (exit 1); exit 1; }; } | |
c906108c | 1986 | fi |
c906108c | 1987 | |
35695fd6 | 1988 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
b7026657 | 1989 | fi |
35695fd6 AC |
1990 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 |
1991 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
1992 | OBJEXT=$ac_cv_objext | |
1993 | ac_objext=$OBJEXT | |
1994 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
1995 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
1996 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
b7026657 AC |
1997 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
1998 | else | |
1999 | cat >conftest.$ac_ext <<_ACEOF | |
2000 | /* confdefs.h. */ | |
2001 | _ACEOF | |
2002 | cat confdefs.h >>conftest.$ac_ext | |
2003 | cat >>conftest.$ac_ext <<_ACEOF | |
2004 | /* end confdefs.h. */ | |
2005 | ||
2006 | int | |
2007 | main () | |
2008 | { | |
35695fd6 AC |
2009 | #ifndef __GNUC__ |
2010 | choke me | |
b7026657 AC |
2011 | #endif |
2012 | ||
2013 | ; | |
2014 | return 0; | |
2015 | } | |
2016 | _ACEOF | |
2017 | rm -f conftest.$ac_objext | |
2018 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2019 | (eval $ac_compile) 2>conftest.er1 | |
2020 | ac_status=$? | |
2021 | grep -v '^ *+' conftest.er1 >conftest.err | |
2022 | rm -f conftest.er1 | |
2023 | cat conftest.err >&5 | |
2024 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2025 | (exit $ac_status); } && | |
2026 | { ac_try='test -z "$ac_c_werror_flag" | |
2027 | || test ! -s conftest.err' | |
2028 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2029 | (eval $ac_try) 2>&5 | |
2030 | ac_status=$? | |
2031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2032 | (exit $ac_status); }; } && | |
2033 | { ac_try='test -s conftest.$ac_objext' | |
2034 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2035 | (eval $ac_try) 2>&5 | |
2036 | ac_status=$? | |
2037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2038 | (exit $ac_status); }; }; then | |
35695fd6 | 2039 | ac_compiler_gnu=yes |
c906108c | 2040 | else |
b7026657 AC |
2041 | echo "$as_me: failed program was:" >&5 |
2042 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2043 | ||
35695fd6 | 2044 | ac_compiler_gnu=no |
c906108c | 2045 | fi |
b7026657 | 2046 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
35695fd6 | 2047 | ac_cv_c_compiler_gnu=$ac_compiler_gnu |
c906108c SS |
2048 | |
2049 | fi | |
35695fd6 AC |
2050 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 |
2051 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
2052 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
2053 | ac_test_CFLAGS=${CFLAGS+set} | |
2054 | ac_save_CFLAGS=$CFLAGS | |
2055 | CFLAGS="-g" | |
2056 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
2057 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
2058 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
2059 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2060 | else | |
b7026657 AC |
2061 | cat >conftest.$ac_ext <<_ACEOF |
2062 | /* confdefs.h. */ | |
2063 | _ACEOF | |
2064 | cat confdefs.h >>conftest.$ac_ext | |
2065 | cat >>conftest.$ac_ext <<_ACEOF | |
2066 | /* end confdefs.h. */ | |
b7026657 | 2067 | |
35695fd6 AC |
2068 | int |
2069 | main () | |
2070 | { | |
2071 | ||
2072 | ; | |
2073 | return 0; | |
2074 | } | |
b7026657 AC |
2075 | _ACEOF |
2076 | rm -f conftest.$ac_objext | |
2077 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2078 | (eval $ac_compile) 2>conftest.er1 | |
2079 | ac_status=$? | |
2080 | grep -v '^ *+' conftest.er1 >conftest.err | |
2081 | rm -f conftest.er1 | |
2082 | cat conftest.err >&5 | |
2083 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2084 | (exit $ac_status); } && | |
2085 | { ac_try='test -z "$ac_c_werror_flag" | |
2086 | || test ! -s conftest.err' | |
2087 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2088 | (eval $ac_try) 2>&5 | |
2089 | ac_status=$? | |
2090 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2091 | (exit $ac_status); }; } && | |
2092 | { ac_try='test -s conftest.$ac_objext' | |
2093 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2094 | (eval $ac_try) 2>&5 | |
2095 | ac_status=$? | |
2096 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2097 | (exit $ac_status); }; }; then | |
35695fd6 | 2098 | ac_cv_prog_cc_g=yes |
c906108c | 2099 | else |
b7026657 AC |
2100 | echo "$as_me: failed program was:" >&5 |
2101 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2102 | ||
35695fd6 | 2103 | ac_cv_prog_cc_g=no |
c906108c | 2104 | fi |
b7026657 | 2105 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 2106 | fi |
35695fd6 AC |
2107 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 |
2108 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
2109 | if test "$ac_test_CFLAGS" = set; then | |
2110 | CFLAGS=$ac_save_CFLAGS | |
2111 | elif test $ac_cv_prog_cc_g = yes; then | |
2112 | if test "$GCC" = yes; then | |
2113 | CFLAGS="-g -O2" | |
2114 | else | |
2115 | CFLAGS="-g" | |
2116 | fi | |
2117 | else | |
2118 | if test "$GCC" = yes; then | |
2119 | CFLAGS="-O2" | |
2120 | else | |
2121 | CFLAGS= | |
2122 | fi | |
2123 | fi | |
2124 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 | |
2125 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
2126 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
b7026657 AC |
2127 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2128 | else | |
35695fd6 AC |
2129 | ac_cv_prog_cc_stdc=no |
2130 | ac_save_CC=$CC | |
2131 | cat >conftest.$ac_ext <<_ACEOF | |
b7026657 AC |
2132 | /* confdefs.h. */ |
2133 | _ACEOF | |
2134 | cat confdefs.h >>conftest.$ac_ext | |
2135 | cat >>conftest.$ac_ext <<_ACEOF | |
2136 | /* end confdefs.h. */ | |
35695fd6 AC |
2137 | #include <stdarg.h> |
2138 | #include <stdio.h> | |
2139 | #include <sys/types.h> | |
2140 | #include <sys/stat.h> | |
2141 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
2142 | struct buf { int x; }; | |
2143 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
2144 | static char *e (p, i) | |
2145 | char **p; | |
2146 | int i; | |
2147 | { | |
2148 | return p[i]; | |
2149 | } | |
2150 | static char *f (char * (*g) (char **, int), char **p, ...) | |
2151 | { | |
2152 | char *s; | |
2153 | va_list v; | |
2154 | va_start (v,p); | |
2155 | s = g (p, va_arg (v,int)); | |
2156 | va_end (v); | |
2157 | return s; | |
2158 | } | |
b7026657 | 2159 | |
35695fd6 AC |
2160 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
2161 | function prototypes and stuff, but not '\xHH' hex character constants. | |
2162 | These don't provoke an error unfortunately, instead are silently treated | |
2163 | as 'x'. The following induces an error, until -std1 is added to get | |
2164 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
2165 | array size at least. It's necessary to write '\x00'==0 to get something | |
2166 | that's true only with -std1. */ | |
2167 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
2168 | ||
2169 | int test (int i, double x); | |
2170 | struct s1 {int (*f) (int a);}; | |
2171 | struct s2 {int (*f) (double a);}; | |
2172 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
2173 | int argc; | |
2174 | char **argv; | |
2175 | int | |
2176 | main () | |
2177 | { | |
2178 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
2179 | ; | |
2180 | return 0; | |
2181 | } | |
b7026657 | 2182 | _ACEOF |
35695fd6 AC |
2183 | # Don't try gcc -ansi; that turns off useful extensions and |
2184 | # breaks some systems' header files. | |
2185 | # AIX -qlanglvl=ansi | |
2186 | # Ultrix and OSF/1 -std1 | |
2187 | # HP-UX 10.20 and later -Ae | |
2188 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
2189 | # SVR4 -Xc -D__EXTENSIONS__ | |
2190 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
2191 | do | |
2192 | CC="$ac_save_CC $ac_arg" | |
2193 | rm -f conftest.$ac_objext | |
b7026657 AC |
2194 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 |
2195 | (eval $ac_compile) 2>conftest.er1 | |
2196 | ac_status=$? | |
2197 | grep -v '^ *+' conftest.er1 >conftest.err | |
2198 | rm -f conftest.er1 | |
2199 | cat conftest.err >&5 | |
2200 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2201 | (exit $ac_status); } && | |
2202 | { ac_try='test -z "$ac_c_werror_flag" | |
2203 | || test ! -s conftest.err' | |
2204 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2205 | (eval $ac_try) 2>&5 | |
2206 | ac_status=$? | |
2207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2208 | (exit $ac_status); }; } && | |
2209 | { ac_try='test -s conftest.$ac_objext' | |
2210 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2211 | (eval $ac_try) 2>&5 | |
2212 | ac_status=$? | |
2213 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2214 | (exit $ac_status); }; }; then | |
35695fd6 AC |
2215 | ac_cv_prog_cc_stdc=$ac_arg |
2216 | break | |
b7026657 AC |
2217 | else |
2218 | echo "$as_me: failed program was:" >&5 | |
2219 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2220 | ||
b7026657 | 2221 | fi |
35695fd6 AC |
2222 | rm -f conftest.err conftest.$ac_objext |
2223 | done | |
2224 | rm -f conftest.$ac_ext conftest.$ac_objext | |
2225 | CC=$ac_save_CC | |
b7026657 AC |
2226 | |
2227 | fi | |
2228 | ||
35695fd6 AC |
2229 | case "x$ac_cv_prog_cc_stdc" in |
2230 | x|xno) | |
2231 | echo "$as_me:$LINENO: result: none needed" >&5 | |
2232 | echo "${ECHO_T}none needed" >&6 ;; | |
2233 | *) | |
2234 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
2235 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
2236 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
2237 | esac | |
b7026657 | 2238 | |
35695fd6 AC |
2239 | # Some people use a C++ compiler to compile C. Since we use `exit', |
2240 | # in C++ we need to declare it. In case someone uses the same compiler | |
2241 | # for both compiling C and C++ we need to have the C++ compiler decide | |
2242 | # the declaration of exit, since it's the most demanding environment. | |
2243 | cat >conftest.$ac_ext <<_ACEOF | |
2244 | #ifndef __cplusplus | |
2245 | choke me | |
2246 | #endif | |
2247 | _ACEOF | |
2248 | rm -f conftest.$ac_objext | |
2249 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2250 | (eval $ac_compile) 2>conftest.er1 | |
2251 | ac_status=$? | |
2252 | grep -v '^ *+' conftest.er1 >conftest.err | |
2253 | rm -f conftest.er1 | |
2254 | cat conftest.err >&5 | |
2255 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2256 | (exit $ac_status); } && | |
2257 | { ac_try='test -z "$ac_c_werror_flag" | |
2258 | || test ! -s conftest.err' | |
2259 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2260 | (eval $ac_try) 2>&5 | |
2261 | ac_status=$? | |
2262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2263 | (exit $ac_status); }; } && | |
2264 | { ac_try='test -s conftest.$ac_objext' | |
2265 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2266 | (eval $ac_try) 2>&5 | |
2267 | ac_status=$? | |
2268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2269 | (exit $ac_status); }; }; then | |
2270 | for ac_declaration in \ | |
2271 | '' \ | |
2272 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
2273 | 'extern "C" void std::exit (int); using std::exit;' \ | |
2274 | 'extern "C" void exit (int) throw ();' \ | |
2275 | 'extern "C" void exit (int);' \ | |
2276 | 'void exit (int);' | |
2277 | do | |
b7026657 AC |
2278 | cat >conftest.$ac_ext <<_ACEOF |
2279 | /* confdefs.h. */ | |
2280 | _ACEOF | |
2281 | cat confdefs.h >>conftest.$ac_ext | |
2282 | cat >>conftest.$ac_ext <<_ACEOF | |
2283 | /* end confdefs.h. */ | |
35695fd6 AC |
2284 | $ac_declaration |
2285 | #include <stdlib.h> | |
b7026657 AC |
2286 | int |
2287 | main () | |
2288 | { | |
35695fd6 | 2289 | exit (42); |
b7026657 AC |
2290 | ; |
2291 | return 0; | |
2292 | } | |
2293 | _ACEOF | |
2294 | rm -f conftest.$ac_objext | |
2295 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2296 | (eval $ac_compile) 2>conftest.er1 | |
2297 | ac_status=$? | |
2298 | grep -v '^ *+' conftest.er1 >conftest.err | |
2299 | rm -f conftest.er1 | |
2300 | cat conftest.err >&5 | |
2301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2302 | (exit $ac_status); } && | |
2303 | { ac_try='test -z "$ac_c_werror_flag" | |
2304 | || test ! -s conftest.err' | |
2305 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2306 | (eval $ac_try) 2>&5 | |
2307 | ac_status=$? | |
2308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2309 | (exit $ac_status); }; } && | |
2310 | { ac_try='test -s conftest.$ac_objext' | |
2311 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2312 | (eval $ac_try) 2>&5 | |
2313 | ac_status=$? | |
2314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2315 | (exit $ac_status); }; }; then | |
35695fd6 | 2316 | : |
c906108c | 2317 | else |
b7026657 AC |
2318 | echo "$as_me: failed program was:" >&5 |
2319 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c | 2320 | |
35695fd6 | 2321 | continue |
c906108c | 2322 | fi |
b7026657 | 2323 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
b7026657 AC |
2324 | cat >conftest.$ac_ext <<_ACEOF |
2325 | /* confdefs.h. */ | |
2326 | _ACEOF | |
2327 | cat confdefs.h >>conftest.$ac_ext | |
2328 | cat >>conftest.$ac_ext <<_ACEOF | |
2329 | /* end confdefs.h. */ | |
35695fd6 | 2330 | $ac_declaration |
b7026657 AC |
2331 | int |
2332 | main () | |
2333 | { | |
35695fd6 | 2334 | exit (42); |
b7026657 AC |
2335 | ; |
2336 | return 0; | |
2337 | } | |
2338 | _ACEOF | |
2339 | rm -f conftest.$ac_objext | |
2340 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2341 | (eval $ac_compile) 2>conftest.er1 | |
2342 | ac_status=$? | |
2343 | grep -v '^ *+' conftest.er1 >conftest.err | |
2344 | rm -f conftest.er1 | |
2345 | cat conftest.err >&5 | |
2346 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2347 | (exit $ac_status); } && | |
2348 | { ac_try='test -z "$ac_c_werror_flag" | |
2349 | || test ! -s conftest.err' | |
2350 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2351 | (eval $ac_try) 2>&5 | |
2352 | ac_status=$? | |
2353 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2354 | (exit $ac_status); }; } && | |
2355 | { ac_try='test -s conftest.$ac_objext' | |
2356 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2357 | (eval $ac_try) 2>&5 | |
2358 | ac_status=$? | |
2359 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2360 | (exit $ac_status); }; }; then | |
35695fd6 | 2361 | break |
c906108c | 2362 | else |
b7026657 AC |
2363 | echo "$as_me: failed program was:" >&5 |
2364 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c | 2365 | |
b7026657 AC |
2366 | fi |
2367 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
35695fd6 AC |
2368 | done |
2369 | rm -f conftest* | |
2370 | if test -n "$ac_declaration"; then | |
2371 | echo '#ifdef __cplusplus' >>confdefs.h | |
2372 | echo $ac_declaration >>confdefs.h | |
2373 | echo '#endif' >>confdefs.h | |
c906108c | 2374 | fi |
35695fd6 | 2375 | |
b7026657 | 2376 | else |
35695fd6 AC |
2377 | echo "$as_me: failed program was:" >&5 |
2378 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2379 | ||
2380 | fi | |
2381 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2382 | ac_ext=c | |
2383 | ac_cpp='$CPP $CPPFLAGS' | |
2384 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2385 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2386 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2387 | ||
2388 | # Find a good install program. We prefer a C program (faster), | |
2389 | # so one script is as good as another. But avoid the broken or | |
2390 | # incompatible versions: | |
2391 | # SysV /etc/install, /usr/sbin/install | |
2392 | # SunOS /usr/etc/install | |
2393 | # IRIX /sbin/install | |
2394 | # AIX /bin/install | |
2395 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
2396 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
2397 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
2398 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
2399 | # OS/2's system install, which has a completely different semantic | |
2400 | # ./install, which can be erroneously created by make from ./install.sh. | |
2401 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
2402 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
2403 | if test -z "$INSTALL"; then | |
2404 | if test "${ac_cv_path_install+set}" = set; then | |
2405 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2406 | else | |
2407 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2408 | for as_dir in $PATH | |
2409 | do | |
2410 | IFS=$as_save_IFS | |
2411 | test -z "$as_dir" && as_dir=. | |
2412 | # Account for people who put trailing slashes in PATH elements. | |
2413 | case $as_dir/ in | |
2414 | ./ | .// | /cC/* | \ | |
2415 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
2416 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
2417 | /usr/ucb/* ) ;; | |
2418 | *) | |
2419 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
2420 | # Don't use installbsd from OSF since it installs stuff as root | |
2421 | # by default. | |
2422 | for ac_prog in ginstall scoinst install; do | |
2423 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2424 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
2425 | if test $ac_prog = install && | |
2426 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2427 | # AIX install. It has an incompatible calling convention. | |
2428 | : | |
2429 | elif test $ac_prog = install && | |
2430 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
2431 | # program-specific install script used by HP pwplus--don't use. | |
2432 | : | |
2433 | else | |
2434 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
2435 | break 3 | |
2436 | fi | |
2437 | fi | |
2438 | done | |
2439 | done | |
2440 | ;; | |
2441 | esac | |
2442 | done | |
b7026657 | 2443 | |
c906108c SS |
2444 | |
2445 | fi | |
35695fd6 AC |
2446 | if test "${ac_cv_path_install+set}" = set; then |
2447 | INSTALL=$ac_cv_path_install | |
2448 | else | |
2449 | # As a last resort, use the slow shell script. We don't cache a | |
2450 | # path for INSTALL within a source directory, because that will | |
2451 | # break other packages using the cache if that directory is | |
2452 | # removed, or if the path is relative. | |
2453 | INSTALL=$ac_install_sh | |
2454 | fi | |
2455 | fi | |
2456 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
2457 | echo "${ECHO_T}$INSTALL" >&6 | |
c906108c | 2458 | |
35695fd6 AC |
2459 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. |
2460 | # It thinks the first close brace ends the variable substitution. | |
2461 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
2462 | ||
2463 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
2464 | ||
2465 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
2466 | ||
2467 | ||
2468 | # Put a plausible default for CC_FOR_BUILD in Makefile. | |
2469 | if test "x$cross_compiling" = "xno"; then | |
2470 | CC_FOR_BUILD='$(CC)' | |
2471 | else | |
2472 | CC_FOR_BUILD=gcc | |
2473 | fi | |
2474 | ||
2475 | ||
2476 | ||
2477 | ||
2478 | AR=${AR-ar} | |
2479 | ||
2480 | if test -n "$ac_tool_prefix"; then | |
2481 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
2482 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
2483 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2484 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2485 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
b7026657 AC |
2486 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
2487 | else | |
35695fd6 AC |
2488 | if test -n "$RANLIB"; then |
2489 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
2490 | else | |
2491 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2492 | for as_dir in $PATH | |
2493 | do | |
2494 | IFS=$as_save_IFS | |
2495 | test -z "$as_dir" && as_dir=. | |
2496 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2497 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2498 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
2499 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2500 | break 2 | |
2501 | fi | |
2502 | done | |
2503 | done | |
2504 | ||
2505 | fi | |
2506 | fi | |
2507 | RANLIB=$ac_cv_prog_RANLIB | |
2508 | if test -n "$RANLIB"; then | |
2509 | echo "$as_me:$LINENO: result: $RANLIB" >&5 | |
2510 | echo "${ECHO_T}$RANLIB" >&6 | |
2511 | else | |
2512 | echo "$as_me:$LINENO: result: no" >&5 | |
2513 | echo "${ECHO_T}no" >&6 | |
2514 | fi | |
2515 | ||
2516 | fi | |
2517 | if test -z "$ac_cv_prog_RANLIB"; then | |
2518 | ac_ct_RANLIB=$RANLIB | |
2519 | # Extract the first word of "ranlib", so it can be a program name with args. | |
2520 | set dummy ranlib; ac_word=$2 | |
2521 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2522 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2523 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
2524 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2525 | else | |
2526 | if test -n "$ac_ct_RANLIB"; then | |
2527 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
2528 | else | |
2529 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2530 | for as_dir in $PATH | |
2531 | do | |
2532 | IFS=$as_save_IFS | |
2533 | test -z "$as_dir" && as_dir=. | |
2534 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2535 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2536 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
2537 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2538 | break 2 | |
2539 | fi | |
2540 | done | |
2541 | done | |
2542 | ||
2543 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
2544 | fi | |
2545 | fi | |
2546 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
2547 | if test -n "$ac_ct_RANLIB"; then | |
2548 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
2549 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
2550 | else | |
2551 | echo "$as_me:$LINENO: result: no" >&5 | |
2552 | echo "${ECHO_T}no" >&6 | |
2553 | fi | |
2554 | ||
2555 | RANLIB=$ac_ct_RANLIB | |
2556 | else | |
2557 | RANLIB="$ac_cv_prog_RANLIB" | |
2558 | fi | |
2559 | ||
2560 | ||
2561 | ALL_LINGUAS= | |
2562 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
2563 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
2564 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` | |
2565 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then | |
2566 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2567 | else | |
2568 | cat >conftest.make <<\_ACEOF | |
2569 | all: | |
2570 | @echo 'ac_maketemp="$(MAKE)"' | |
2571 | _ACEOF | |
2572 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. | |
2573 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` | |
2574 | if test -n "$ac_maketemp"; then | |
2575 | eval ac_cv_prog_make_${ac_make}_set=yes | |
2576 | else | |
2577 | eval ac_cv_prog_make_${ac_make}_set=no | |
2578 | fi | |
2579 | rm -f conftest.make | |
2580 | fi | |
2581 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
2582 | echo "$as_me:$LINENO: result: yes" >&5 | |
2583 | echo "${ECHO_T}yes" >&6 | |
2584 | SET_MAKE= | |
2585 | else | |
2586 | echo "$as_me:$LINENO: result: no" >&5 | |
2587 | echo "${ECHO_T}no" >&6 | |
2588 | SET_MAKE="MAKE=${MAKE-make}" | |
2589 | fi | |
2590 | ||
2591 | ||
2592 | echo "$as_me:$LINENO: checking for library containing strerror" >&5 | |
2593 | echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6 | |
2594 | if test "${ac_cv_search_strerror+set}" = set; then | |
2595 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2596 | else | |
2597 | ac_func_search_save_LIBS=$LIBS | |
2598 | ac_cv_search_strerror=no | |
2599 | cat >conftest.$ac_ext <<_ACEOF | |
b7026657 AC |
2600 | /* confdefs.h. */ |
2601 | _ACEOF | |
2602 | cat confdefs.h >>conftest.$ac_ext | |
2603 | cat >>conftest.$ac_ext <<_ACEOF | |
2604 | /* end confdefs.h. */ | |
35695fd6 AC |
2605 | |
2606 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2607 | #ifdef __cplusplus | |
2608 | extern "C" | |
2609 | #endif | |
2610 | /* We use char because int might match the return type of a gcc2 | |
2611 | builtin and then its argument prototype would still apply. */ | |
2612 | char strerror (); | |
b7026657 AC |
2613 | int |
2614 | main () | |
2615 | { | |
35695fd6 | 2616 | strerror (); |
b7026657 AC |
2617 | ; |
2618 | return 0; | |
2619 | } | |
2620 | _ACEOF | |
2621 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2622 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2623 | (eval $ac_link) 2>conftest.er1 | |
2624 | ac_status=$? | |
2625 | grep -v '^ *+' conftest.er1 >conftest.err | |
2626 | rm -f conftest.er1 | |
2627 | cat conftest.err >&5 | |
2628 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2629 | (exit $ac_status); } && | |
2630 | { ac_try='test -z "$ac_c_werror_flag" | |
2631 | || test ! -s conftest.err' | |
2632 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2633 | (eval $ac_try) 2>&5 | |
2634 | ac_status=$? | |
2635 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2636 | (exit $ac_status); }; } && | |
2637 | { ac_try='test -s conftest$ac_exeext' | |
2638 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2639 | (eval $ac_try) 2>&5 | |
2640 | ac_status=$? | |
2641 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2642 | (exit $ac_status); }; }; then | |
35695fd6 | 2643 | ac_cv_search_strerror="none required" |
b7026657 AC |
2644 | else |
2645 | echo "$as_me: failed program was:" >&5 | |
2646 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2647 | ||
b7026657 AC |
2648 | fi |
2649 | rm -f conftest.err conftest.$ac_objext \ | |
2650 | conftest$ac_exeext conftest.$ac_ext | |
35695fd6 AC |
2651 | if test "$ac_cv_search_strerror" = no; then |
2652 | for ac_lib in cposix; do | |
2653 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
2654 | cat >conftest.$ac_ext <<_ACEOF | |
b7026657 AC |
2655 | /* confdefs.h. */ |
2656 | _ACEOF | |
2657 | cat confdefs.h >>conftest.$ac_ext | |
2658 | cat >>conftest.$ac_ext <<_ACEOF | |
2659 | /* end confdefs.h. */ | |
c906108c | 2660 | |
35695fd6 AC |
2661 | /* Override any gcc2 internal prototype to avoid an error. */ |
2662 | #ifdef __cplusplus | |
2663 | extern "C" | |
2664 | #endif | |
2665 | /* We use char because int might match the return type of a gcc2 | |
2666 | builtin and then its argument prototype would still apply. */ | |
2667 | char strerror (); | |
b7026657 AC |
2668 | int |
2669 | main () | |
2670 | { | |
35695fd6 | 2671 | strerror (); |
b7026657 AC |
2672 | ; |
2673 | return 0; | |
2674 | } | |
2675 | _ACEOF | |
2676 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2677 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2678 | (eval $ac_link) 2>conftest.er1 | |
2679 | ac_status=$? | |
2680 | grep -v '^ *+' conftest.er1 >conftest.err | |
2681 | rm -f conftest.er1 | |
2682 | cat conftest.err >&5 | |
2683 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2684 | (exit $ac_status); } && | |
2685 | { ac_try='test -z "$ac_c_werror_flag" | |
2686 | || test ! -s conftest.err' | |
2687 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2688 | (eval $ac_try) 2>&5 | |
2689 | ac_status=$? | |
2690 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2691 | (exit $ac_status); }; } && | |
2692 | { ac_try='test -s conftest$ac_exeext' | |
2693 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2694 | (eval $ac_try) 2>&5 | |
2695 | ac_status=$? | |
2696 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2697 | (exit $ac_status); }; }; then | |
35695fd6 AC |
2698 | ac_cv_search_strerror="-l$ac_lib" |
2699 | break | |
c906108c | 2700 | else |
b7026657 AC |
2701 | echo "$as_me: failed program was:" >&5 |
2702 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2703 | ||
c906108c | 2704 | fi |
b7026657 AC |
2705 | rm -f conftest.err conftest.$ac_objext \ |
2706 | conftest$ac_exeext conftest.$ac_ext | |
35695fd6 | 2707 | done |
c906108c | 2708 | fi |
35695fd6 AC |
2709 | LIBS=$ac_func_search_save_LIBS |
2710 | fi | |
2711 | echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 | |
2712 | echo "${ECHO_T}$ac_cv_search_strerror" >&6 | |
2713 | if test "$ac_cv_search_strerror" != no; then | |
2714 | test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS" | |
c906108c | 2715 | |
35695fd6 | 2716 | fi |
c906108c | 2717 | |
35695fd6 AC |
2718 | ac_ext=c |
2719 | ac_cpp='$CPP $CPPFLAGS' | |
2720 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2721 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2722 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2723 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
2724 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
2725 | # On Suns, sometimes $CPP names a directory. | |
2726 | if test -n "$CPP" && test -d "$CPP"; then | |
2727 | CPP= | |
2728 | fi | |
2729 | if test -z "$CPP"; then | |
2730 | if test "${ac_cv_prog_CPP+set}" = set; then | |
b7026657 | 2731 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c906108c | 2732 | else |
35695fd6 AC |
2733 | # Double quotes because CPP needs to be expanded |
2734 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
2735 | do | |
2736 | ac_preproc_ok=false | |
2737 | for ac_c_preproc_warn_flag in '' yes | |
2738 | do | |
2739 | # Use a header file that comes with gcc, so configuring glibc | |
2740 | # with a fresh cross-compiler works. | |
2741 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
2742 | # <limits.h> exists even on freestanding compilers. | |
2743 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
2744 | # not just through cpp. "Syntax error" is here to catch this case. | |
b7026657 AC |
2745 | cat >conftest.$ac_ext <<_ACEOF |
2746 | /* confdefs.h. */ | |
2747 | _ACEOF | |
2748 | cat confdefs.h >>conftest.$ac_ext | |
2749 | cat >>conftest.$ac_ext <<_ACEOF | |
2750 | /* end confdefs.h. */ | |
35695fd6 AC |
2751 | #ifdef __STDC__ |
2752 | # include <limits.h> | |
c906108c | 2753 | #else |
35695fd6 | 2754 | # include <assert.h> |
c906108c | 2755 | #endif |
35695fd6 | 2756 | Syntax error |
b7026657 | 2757 | _ACEOF |
35695fd6 AC |
2758 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
2759 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
2760 | ac_status=$? | |
2761 | grep -v '^ *+' conftest.er1 >conftest.err | |
2762 | rm -f conftest.er1 | |
2763 | cat conftest.err >&5 | |
2764 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2765 | (exit $ac_status); } >/dev/null; then | |
2766 | if test -s conftest.err; then | |
2767 | ac_cpp_err=$ac_c_preproc_warn_flag | |
2768 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
2769 | else | |
2770 | ac_cpp_err= | |
2771 | fi | |
c906108c | 2772 | else |
35695fd6 | 2773 | ac_cpp_err=yes |
c906108c | 2774 | fi |
35695fd6 AC |
2775 | if test -z "$ac_cpp_err"; then |
2776 | : | |
2777 | else | |
2778 | echo "$as_me: failed program was:" >&5 | |
2779 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c | 2780 | |
35695fd6 AC |
2781 | # Broken: fails on valid input. |
2782 | continue | |
c906108c | 2783 | fi |
35695fd6 AC |
2784 | rm -f conftest.err conftest.$ac_ext |
2785 | ||
2786 | # OK, works on sane cases. Now check whether non-existent headers | |
2787 | # can be detected and how. | |
b7026657 AC |
2788 | cat >conftest.$ac_ext <<_ACEOF |
2789 | /* confdefs.h. */ | |
2790 | _ACEOF | |
2791 | cat confdefs.h >>conftest.$ac_ext | |
2792 | cat >>conftest.$ac_ext <<_ACEOF | |
2793 | /* end confdefs.h. */ | |
35695fd6 | 2794 | #include <ac_nonexistent.h> |
b7026657 | 2795 | _ACEOF |
35695fd6 AC |
2796 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
2797 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
b7026657 AC |
2798 | ac_status=$? |
2799 | grep -v '^ *+' conftest.er1 >conftest.err | |
2800 | rm -f conftest.er1 | |
2801 | cat conftest.err >&5 | |
2802 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35695fd6 AC |
2803 | (exit $ac_status); } >/dev/null; then |
2804 | if test -s conftest.err; then | |
2805 | ac_cpp_err=$ac_c_preproc_warn_flag | |
2806 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
2807 | else | |
2808 | ac_cpp_err= | |
2809 | fi | |
2810 | else | |
2811 | ac_cpp_err=yes | |
2812 | fi | |
2813 | if test -z "$ac_cpp_err"; then | |
2814 | # Broken: success on invalid input. | |
2815 | continue | |
b7026657 AC |
2816 | else |
2817 | echo "$as_me: failed program was:" >&5 | |
2818 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2819 | ||
35695fd6 AC |
2820 | # Passes both tests. |
2821 | ac_preproc_ok=: | |
2822 | break | |
b7026657 | 2823 | fi |
35695fd6 AC |
2824 | rm -f conftest.err conftest.$ac_ext |
2825 | ||
2826 | done | |
2827 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
2828 | rm -f conftest.err conftest.$ac_ext | |
2829 | if $ac_preproc_ok; then | |
2830 | break | |
b7026657 | 2831 | fi |
b7026657 | 2832 | |
35695fd6 AC |
2833 | done |
2834 | ac_cv_prog_CPP=$CPP | |
c906108c | 2835 | |
c906108c | 2836 | fi |
35695fd6 | 2837 | CPP=$ac_cv_prog_CPP |
c906108c | 2838 | else |
35695fd6 AC |
2839 | ac_cv_prog_CPP=$CPP |
2840 | fi | |
2841 | echo "$as_me:$LINENO: result: $CPP" >&5 | |
2842 | echo "${ECHO_T}$CPP" >&6 | |
2843 | ac_preproc_ok=false | |
2844 | for ac_c_preproc_warn_flag in '' yes | |
2845 | do | |
2846 | # Use a header file that comes with gcc, so configuring glibc | |
2847 | # with a fresh cross-compiler works. | |
2848 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
2849 | # <limits.h> exists even on freestanding compilers. | |
2850 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
2851 | # not just through cpp. "Syntax error" is here to catch this case. | |
b7026657 AC |
2852 | cat >conftest.$ac_ext <<_ACEOF |
2853 | /* confdefs.h. */ | |
2854 | _ACEOF | |
2855 | cat confdefs.h >>conftest.$ac_ext | |
2856 | cat >>conftest.$ac_ext <<_ACEOF | |
2857 | /* end confdefs.h. */ | |
35695fd6 AC |
2858 | #ifdef __STDC__ |
2859 | # include <limits.h> | |
2860 | #else | |
2861 | # include <assert.h> | |
2862 | #endif | |
2863 | Syntax error | |
b7026657 | 2864 | _ACEOF |
35695fd6 AC |
2865 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 |
2866 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
b7026657 | 2867 | ac_status=$? |
35695fd6 AC |
2868 | grep -v '^ *+' conftest.er1 >conftest.err |
2869 | rm -f conftest.er1 | |
2870 | cat conftest.err >&5 | |
b7026657 | 2871 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35695fd6 AC |
2872 | (exit $ac_status); } >/dev/null; then |
2873 | if test -s conftest.err; then | |
2874 | ac_cpp_err=$ac_c_preproc_warn_flag | |
2875 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
2876 | else | |
2877 | ac_cpp_err= | |
2878 | fi | |
c906108c | 2879 | else |
35695fd6 AC |
2880 | ac_cpp_err=yes |
2881 | fi | |
2882 | if test -z "$ac_cpp_err"; then | |
2883 | : | |
2884 | else | |
2885 | echo "$as_me: failed program was:" >&5 | |
b7026657 AC |
2886 | sed 's/^/| /' conftest.$ac_ext >&5 |
2887 | ||
35695fd6 AC |
2888 | # Broken: fails on valid input. |
2889 | continue | |
c906108c | 2890 | fi |
35695fd6 | 2891 | rm -f conftest.err conftest.$ac_ext |
c906108c | 2892 | |
35695fd6 AC |
2893 | # OK, works on sane cases. Now check whether non-existent headers |
2894 | # can be detected and how. | |
2895 | cat >conftest.$ac_ext <<_ACEOF | |
2896 | /* confdefs.h. */ | |
b7026657 | 2897 | _ACEOF |
35695fd6 AC |
2898 | cat confdefs.h >>conftest.$ac_ext |
2899 | cat >>conftest.$ac_ext <<_ACEOF | |
2900 | /* end confdefs.h. */ | |
2901 | #include <ac_nonexistent.h> | |
2902 | _ACEOF | |
2903 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
2904 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
2905 | ac_status=$? | |
2906 | grep -v '^ *+' conftest.er1 >conftest.err | |
2907 | rm -f conftest.er1 | |
2908 | cat conftest.err >&5 | |
2909 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2910 | (exit $ac_status); } >/dev/null; then | |
2911 | if test -s conftest.err; then | |
2912 | ac_cpp_err=$ac_c_preproc_warn_flag | |
2913 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
2914 | else | |
2915 | ac_cpp_err= | |
2916 | fi | |
2917 | else | |
2918 | ac_cpp_err=yes | |
2919 | fi | |
2920 | if test -z "$ac_cpp_err"; then | |
2921 | # Broken: success on invalid input. | |
2922 | continue | |
2923 | else | |
2924 | echo "$as_me: failed program was:" >&5 | |
2925 | sed 's/^/| /' conftest.$ac_ext >&5 | |
b7026657 | 2926 | |
35695fd6 AC |
2927 | # Passes both tests. |
2928 | ac_preproc_ok=: | |
2929 | break | |
2930 | fi | |
2931 | rm -f conftest.err conftest.$ac_ext | |
c906108c | 2932 | |
35695fd6 AC |
2933 | done |
2934 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
2935 | rm -f conftest.err conftest.$ac_ext | |
2936 | if $ac_preproc_ok; then | |
2937 | : | |
2938 | else | |
2939 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
2940 | See \`config.log' for more details." >&5 | |
2941 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
2942 | See \`config.log' for more details." >&2;} | |
2943 | { (exit 1); exit 1; }; } | |
c906108c SS |
2944 | fi |
2945 | ||
35695fd6 AC |
2946 | ac_ext=c |
2947 | ac_cpp='$CPP $CPPFLAGS' | |
2948 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2949 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2950 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
b7026657 AC |
2951 | |
2952 | ||
35695fd6 AC |
2953 | echo "$as_me:$LINENO: checking for egrep" >&5 |
2954 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
2955 | if test "${ac_cv_prog_egrep+set}" = set; then | |
b7026657 | 2956 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
35695fd6 AC |
2957 | else |
2958 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 | |
2959 | then ac_cv_prog_egrep='grep -E' | |
2960 | else ac_cv_prog_egrep='egrep' | |
2961 | fi | |
b7026657 | 2962 | fi |
35695fd6 AC |
2963 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
2964 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
2965 | EGREP=$ac_cv_prog_egrep | |
2966 | ||
2967 | ||
2968 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
2969 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
2970 | if test "${ac_cv_header_stdc+set}" = set; then | |
2971 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
b7026657 | 2972 | else |
35695fd6 | 2973 | cat >conftest.$ac_ext <<_ACEOF |
b7026657 AC |
2974 | /* confdefs.h. */ |
2975 | _ACEOF | |
2976 | cat confdefs.h >>conftest.$ac_ext | |
2977 | cat >>conftest.$ac_ext <<_ACEOF | |
2978 | /* end confdefs.h. */ | |
35695fd6 AC |
2979 | #include <stdlib.h> |
2980 | #include <stdarg.h> | |
2981 | #include <string.h> | |
2982 | #include <float.h> | |
2983 | ||
2984 | int | |
2985 | main () | |
2986 | { | |
2987 | ||
2988 | ; | |
2989 | return 0; | |
2990 | } | |
b7026657 AC |
2991 | _ACEOF |
2992 | rm -f conftest.$ac_objext | |
2993 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2994 | (eval $ac_compile) 2>conftest.er1 | |
2995 | ac_status=$? | |
2996 | grep -v '^ *+' conftest.er1 >conftest.err | |
2997 | rm -f conftest.er1 | |
2998 | cat conftest.err >&5 | |
2999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3000 | (exit $ac_status); } && | |
3001 | { ac_try='test -z "$ac_c_werror_flag" | |
3002 | || test ! -s conftest.err' | |
3003 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3004 | (eval $ac_try) 2>&5 | |
3005 | ac_status=$? | |
3006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3007 | (exit $ac_status); }; } && | |
3008 | { ac_try='test -s conftest.$ac_objext' | |
3009 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3010 | (eval $ac_try) 2>&5 | |
3011 | ac_status=$? | |
3012 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3013 | (exit $ac_status); }; }; then | |
35695fd6 | 3014 | ac_cv_header_stdc=yes |
b7026657 AC |
3015 | else |
3016 | echo "$as_me: failed program was:" >&5 | |
3017 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3018 | ||
35695fd6 | 3019 | ac_cv_header_stdc=no |
b7026657 AC |
3020 | fi |
3021 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b7026657 | 3022 | |
35695fd6 AC |
3023 | if test $ac_cv_header_stdc = yes; then |
3024 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
3025 | cat >conftest.$ac_ext <<_ACEOF | |
b7026657 AC |
3026 | /* confdefs.h. */ |
3027 | _ACEOF | |
3028 | cat confdefs.h >>conftest.$ac_ext | |
3029 | cat >>conftest.$ac_ext <<_ACEOF | |
3030 | /* end confdefs.h. */ | |
35695fd6 AC |
3031 | #include <string.h> |
3032 | ||
b7026657 | 3033 | _ACEOF |
35695fd6 AC |
3034 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
3035 | $EGREP "memchr" >/dev/null 2>&1; then | |
3036 | : | |
b7026657 | 3037 | else |
35695fd6 | 3038 | ac_cv_header_stdc=no |
c906108c | 3039 | fi |
35695fd6 AC |
3040 | rm -f conftest* |
3041 | ||
3042 | fi | |
3043 | ||
3044 | if test $ac_cv_header_stdc = yes; then | |
3045 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
3046 | cat >conftest.$ac_ext <<_ACEOF | |
3047 | /* confdefs.h. */ | |
3048 | _ACEOF | |
3049 | cat confdefs.h >>conftest.$ac_ext | |
3050 | cat >>conftest.$ac_ext <<_ACEOF | |
3051 | /* end confdefs.h. */ | |
3052 | #include <stdlib.h> | |
3053 | ||
3054 | _ACEOF | |
3055 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3056 | $EGREP "free" >/dev/null 2>&1; then | |
3057 | : | |
b7026657 | 3058 | else |
35695fd6 AC |
3059 | ac_cv_header_stdc=no |
3060 | fi | |
3061 | rm -f conftest* | |
b7026657 | 3062 | |
c906108c | 3063 | fi |
b7026657 | 3064 | |
35695fd6 AC |
3065 | if test $ac_cv_header_stdc = yes; then |
3066 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
3067 | if test "$cross_compiling" = yes; then | |
3068 | : | |
c906108c | 3069 | else |
35695fd6 AC |
3070 | cat >conftest.$ac_ext <<_ACEOF |
3071 | /* confdefs.h. */ | |
3072 | _ACEOF | |
3073 | cat confdefs.h >>conftest.$ac_ext | |
3074 | cat >>conftest.$ac_ext <<_ACEOF | |
3075 | /* end confdefs.h. */ | |
3076 | #include <ctype.h> | |
3077 | #if ((' ' & 0x0FF) == 0x020) | |
3078 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
3079 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
3080 | #else | |
3081 | # define ISLOWER(c) \ | |
3082 | (('a' <= (c) && (c) <= 'i') \ | |
3083 | || ('j' <= (c) && (c) <= 'r') \ | |
3084 | || ('s' <= (c) && (c) <= 'z')) | |
3085 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
3086 | #endif | |
b7026657 | 3087 | |
35695fd6 AC |
3088 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
3089 | int | |
3090 | main () | |
3091 | { | |
3092 | int i; | |
3093 | for (i = 0; i < 256; i++) | |
3094 | if (XOR (islower (i), ISLOWER (i)) | |
3095 | || toupper (i) != TOUPPER (i)) | |
3096 | exit(2); | |
3097 | exit (0); | |
3098 | } | |
b7026657 | 3099 | _ACEOF |
35695fd6 AC |
3100 | rm -f conftest$ac_exeext |
3101 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
3102 | (eval $ac_link) 2>&5 | |
3103 | ac_status=$? | |
3104 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3105 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
3106 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3107 | (eval $ac_try) 2>&5 | |
3108 | ac_status=$? | |
3109 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3110 | (exit $ac_status); }; }; then | |
3111 | : | |
3112 | else | |
3113 | echo "$as_me: program exited with status $ac_status" >&5 | |
3114 | echo "$as_me: failed program was:" >&5 | |
3115 | sed 's/^/| /' conftest.$ac_ext >&5 | |
b7026657 | 3116 | |
35695fd6 AC |
3117 | ( exit $ac_status ) |
3118 | ac_cv_header_stdc=no | |
3119 | fi | |
3120 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext | |
3121 | fi | |
3122 | fi | |
b7026657 | 3123 | fi |
35695fd6 AC |
3124 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
3125 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
3126 | if test $ac_cv_header_stdc = yes; then | |
b7026657 | 3127 | |
35695fd6 AC |
3128 | cat >>confdefs.h <<\_ACEOF |
3129 | #define STDC_HEADERS 1 | |
3130 | _ACEOF | |
c906108c | 3131 | |
35695fd6 | 3132 | fi |
b7026657 | 3133 | |
35695fd6 AC |
3134 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 |
3135 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 | |
3136 | if test "${ac_cv_c_const+set}" = set; then | |
b7026657 AC |
3137 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3138 | else | |
3139 | cat >conftest.$ac_ext <<_ACEOF | |
3140 | /* confdefs.h. */ | |
3141 | _ACEOF | |
3142 | cat confdefs.h >>conftest.$ac_ext | |
3143 | cat >>conftest.$ac_ext <<_ACEOF | |
3144 | /* end confdefs.h. */ | |
c906108c | 3145 | |
b7026657 AC |
3146 | int |
3147 | main () | |
3148 | { | |
35695fd6 AC |
3149 | /* FIXME: Include the comments suggested by Paul. */ |
3150 | #ifndef __cplusplus | |
3151 | /* Ultrix mips cc rejects this. */ | |
3152 | typedef int charset[2]; | |
3153 | const charset x; | |
3154 | /* SunOS 4.1.1 cc rejects this. */ | |
3155 | char const *const *ccp; | |
3156 | char **p; | |
3157 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
3158 | struct point {int x, y;}; | |
3159 | static struct point const zero = {0,0}; | |
3160 | /* AIX XL C 1.02.0.0 rejects this. | |
3161 | It does not let you subtract one const X* pointer from another in | |
3162 | an arm of an if-expression whose if-part is not a constant | |
3163 | expression */ | |
3164 | const char *g = "string"; | |
3165 | ccp = &g + (g ? g-g : 0); | |
3166 | /* HPUX 7.0 cc rejects these. */ | |
3167 | ++ccp; | |
3168 | p = (char**) ccp; | |
3169 | ccp = (char const *const *) p; | |
3170 | { /* SCO 3.2v4 cc rejects this. */ | |
3171 | char *t; | |
3172 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
3173 | ||
3174 | *t++ = 0; | |
3175 | } | |
3176 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
3177 | int x[] = {25, 17}; | |
3178 | const int *foo = &x[0]; | |
3179 | ++foo; | |
3180 | } | |
3181 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
3182 | typedef const int *iptr; | |
3183 | iptr p = 0; | |
3184 | ++p; | |
3185 | } | |
3186 | { /* AIX XL C 1.02.0.0 rejects this saying | |
3187 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
3188 | struct s { int j; const int *ap[3]; }; | |
3189 | struct s *b; b->j = 5; | |
3190 | } | |
3191 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
3192 | const int foo = 10; | |
3193 | } | |
3194 | #endif | |
3195 | ||
b7026657 AC |
3196 | ; |
3197 | return 0; | |
3198 | } | |
3199 | _ACEOF | |
35695fd6 AC |
3200 | rm -f conftest.$ac_objext |
3201 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3202 | (eval $ac_compile) 2>conftest.er1 | |
b7026657 AC |
3203 | ac_status=$? |
3204 | grep -v '^ *+' conftest.er1 >conftest.err | |
3205 | rm -f conftest.er1 | |
3206 | cat conftest.err >&5 | |
3207 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3208 | (exit $ac_status); } && | |
3209 | { ac_try='test -z "$ac_c_werror_flag" | |
3210 | || test ! -s conftest.err' | |
3211 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3212 | (eval $ac_try) 2>&5 | |
3213 | ac_status=$? | |
3214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3215 | (exit $ac_status); }; } && | |
35695fd6 | 3216 | { ac_try='test -s conftest.$ac_objext' |
b7026657 AC |
3217 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3218 | (eval $ac_try) 2>&5 | |
3219 | ac_status=$? | |
3220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3221 | (exit $ac_status); }; }; then | |
35695fd6 | 3222 | ac_cv_c_const=yes |
b7026657 AC |
3223 | else |
3224 | echo "$as_me: failed program was:" >&5 | |
3225 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3226 | ||
35695fd6 | 3227 | ac_cv_c_const=no |
b7026657 | 3228 | fi |
35695fd6 | 3229 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
b7026657 | 3230 | fi |
35695fd6 AC |
3231 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
3232 | echo "${ECHO_T}$ac_cv_c_const" >&6 | |
3233 | if test $ac_cv_c_const = no; then | |
3234 | ||
3235 | cat >>confdefs.h <<\_ACEOF | |
3236 | #define const | |
b7026657 | 3237 | _ACEOF |
c906108c | 3238 | |
c906108c | 3239 | fi |
c906108c | 3240 | |
35695fd6 AC |
3241 | echo "$as_me:$LINENO: checking for inline" >&5 |
3242 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 | |
3243 | if test "${ac_cv_c_inline+set}" = set; then | |
b7026657 | 3244 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c906108c | 3245 | else |
35695fd6 AC |
3246 | ac_cv_c_inline=no |
3247 | for ac_kw in inline __inline__ __inline; do | |
b7026657 AC |
3248 | cat >conftest.$ac_ext <<_ACEOF |
3249 | /* confdefs.h. */ | |
3250 | _ACEOF | |
3251 | cat confdefs.h >>conftest.$ac_ext | |
3252 | cat >>conftest.$ac_ext <<_ACEOF | |
3253 | /* end confdefs.h. */ | |
35695fd6 AC |
3254 | #ifndef __cplusplus |
3255 | typedef int foo_t; | |
3256 | static $ac_kw foo_t static_foo () {return 0; } | |
3257 | $ac_kw foo_t foo () {return 0; } | |
3258 | #endif | |
c906108c | 3259 | |
b7026657 | 3260 | _ACEOF |
35695fd6 AC |
3261 | rm -f conftest.$ac_objext |
3262 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3263 | (eval $ac_compile) 2>conftest.er1 | |
b7026657 | 3264 | ac_status=$? |
35695fd6 AC |
3265 | grep -v '^ *+' conftest.er1 >conftest.err |
3266 | rm -f conftest.er1 | |
3267 | cat conftest.err >&5 | |
b7026657 | 3268 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35695fd6 AC |
3269 | (exit $ac_status); } && |
3270 | { ac_try='test -z "$ac_c_werror_flag" | |
3271 | || test ! -s conftest.err' | |
b7026657 AC |
3272 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3273 | (eval $ac_try) 2>&5 | |
3274 | ac_status=$? | |
3275 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35695fd6 AC |
3276 | (exit $ac_status); }; } && |
3277 | { ac_try='test -s conftest.$ac_objext' | |
3278 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3279 | (eval $ac_try) 2>&5 | |
3280 | ac_status=$? | |
3281 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3282 | (exit $ac_status); }; }; then | |
3283 | ac_cv_c_inline=$ac_kw; break | |
b7026657 | 3284 | else |
35695fd6 AC |
3285 | echo "$as_me: failed program was:" >&5 |
3286 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c | 3287 | |
35695fd6 AC |
3288 | fi |
3289 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b7026657 | 3290 | done |
c906108c | 3291 | |
b7026657 | 3292 | fi |
35695fd6 AC |
3293 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
3294 | echo "${ECHO_T}$ac_cv_c_inline" >&6 | |
b7026657 | 3295 | |
b7026657 | 3296 | |
35695fd6 AC |
3297 | case $ac_cv_c_inline in |
3298 | inline | yes) ;; | |
3299 | *) | |
3300 | case $ac_cv_c_inline in | |
3301 | no) ac_val=;; | |
3302 | *) ac_val=$ac_cv_c_inline;; | |
3303 | esac | |
3304 | cat >>confdefs.h <<_ACEOF | |
3305 | #ifndef __cplusplus | |
3306 | #define inline $ac_val | |
3307 | #endif | |
3308 | _ACEOF | |
3309 | ;; | |
3310 | esac | |
b7026657 | 3311 | |
35695fd6 | 3312 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
b7026657 | 3313 | |
35695fd6 AC |
3314 | |
3315 | ||
3316 | ||
3317 | ||
3318 | ||
3319 | ||
3320 | ||
3321 | ||
3322 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
3323 | inttypes.h stdint.h unistd.h | |
3324 | do | |
3325 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
3326 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
3327 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
3328 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
3329 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3330 | else | |
3331 | cat >conftest.$ac_ext <<_ACEOF | |
3332 | /* confdefs.h. */ | |
3333 | _ACEOF | |
3334 | cat confdefs.h >>conftest.$ac_ext | |
3335 | cat >>conftest.$ac_ext <<_ACEOF | |
3336 | /* end confdefs.h. */ | |
3337 | $ac_includes_default | |
3338 | ||
3339 | #include <$ac_header> | |
3340 | _ACEOF | |
3341 | rm -f conftest.$ac_objext | |
3342 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3343 | (eval $ac_compile) 2>conftest.er1 | |
b7026657 | 3344 | ac_status=$? |
35695fd6 AC |
3345 | grep -v '^ *+' conftest.er1 >conftest.err |
3346 | rm -f conftest.er1 | |
3347 | cat conftest.err >&5 | |
b7026657 | 3348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35695fd6 AC |
3349 | (exit $ac_status); } && |
3350 | { ac_try='test -z "$ac_c_werror_flag" | |
3351 | || test ! -s conftest.err' | |
3352 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3353 | (eval $ac_try) 2>&5 | |
b7026657 AC |
3354 | ac_status=$? |
3355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35695fd6 AC |
3356 | (exit $ac_status); }; } && |
3357 | { ac_try='test -s conftest.$ac_objext' | |
3358 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3359 | (eval $ac_try) 2>&5 | |
b7026657 AC |
3360 | ac_status=$? |
3361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35695fd6 AC |
3362 | (exit $ac_status); }; }; then |
3363 | eval "$as_ac_Header=yes" | |
3364 | else | |
3365 | echo "$as_me: failed program was:" >&5 | |
3366 | sed 's/^/| /' conftest.$ac_ext >&5 | |
b7026657 | 3367 | |
35695fd6 AC |
3368 | eval "$as_ac_Header=no" |
3369 | fi | |
3370 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
3371 | fi | |
3372 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
3373 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
3374 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
3375 | cat >>confdefs.h <<_ACEOF | |
3376 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
3377 | _ACEOF | |
3378 | ||
3379 | fi | |
3380 | ||
3381 | done | |
3382 | ||
3383 | ||
3384 | echo "$as_me:$LINENO: checking for off_t" >&5 | |
3385 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 | |
3386 | if test "${ac_cv_type_off_t+set}" = set; then | |
3387 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3388 | else | |
3389 | cat >conftest.$ac_ext <<_ACEOF | |
b7026657 AC |
3390 | /* confdefs.h. */ |
3391 | _ACEOF | |
3392 | cat confdefs.h >>conftest.$ac_ext | |
3393 | cat >>conftest.$ac_ext <<_ACEOF | |
3394 | /* end confdefs.h. */ | |
35695fd6 | 3395 | $ac_includes_default |
b7026657 AC |
3396 | int |
3397 | main () | |
3398 | { | |
35695fd6 AC |
3399 | if ((off_t *) 0) |
3400 | return 0; | |
3401 | if (sizeof (off_t)) | |
3402 | return 0; | |
b7026657 AC |
3403 | ; |
3404 | return 0; | |
3405 | } | |
3406 | _ACEOF | |
35695fd6 AC |
3407 | rm -f conftest.$ac_objext |
3408 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3409 | (eval $ac_compile) 2>conftest.er1 | |
b7026657 | 3410 | ac_status=$? |
35695fd6 AC |
3411 | grep -v '^ *+' conftest.er1 >conftest.err |
3412 | rm -f conftest.er1 | |
3413 | cat conftest.err >&5 | |
b7026657 | 3414 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35695fd6 AC |
3415 | (exit $ac_status); } && |
3416 | { ac_try='test -z "$ac_c_werror_flag" | |
3417 | || test ! -s conftest.err' | |
3418 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3419 | (eval $ac_try) 2>&5 | |
3420 | ac_status=$? | |
3421 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3422 | (exit $ac_status); }; } && | |
3423 | { ac_try='test -s conftest.$ac_objext' | |
3424 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3425 | (eval $ac_try) 2>&5 | |
3426 | ac_status=$? | |
3427 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3428 | (exit $ac_status); }; }; then | |
3429 | ac_cv_type_off_t=yes | |
b7026657 AC |
3430 | else |
3431 | echo "$as_me: failed program was:" >&5 | |
3432 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3433 | ||
35695fd6 AC |
3434 | ac_cv_type_off_t=no |
3435 | fi | |
3436 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
b7026657 | 3437 | fi |
35695fd6 AC |
3438 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
3439 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 | |
3440 | if test $ac_cv_type_off_t = yes; then | |
3441 | : | |
3442 | else | |
b7026657 | 3443 | |
35695fd6 AC |
3444 | cat >>confdefs.h <<_ACEOF |
3445 | #define off_t long | |
3446 | _ACEOF | |
b7026657 | 3447 | |
35695fd6 AC |
3448 | fi |
3449 | ||
3450 | echo "$as_me:$LINENO: checking for size_t" >&5 | |
3451 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | |
3452 | if test "${ac_cv_type_size_t+set}" = set; then | |
3453 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3454 | else | |
3455 | cat >conftest.$ac_ext <<_ACEOF | |
3456 | /* confdefs.h. */ | |
3457 | _ACEOF | |
3458 | cat confdefs.h >>conftest.$ac_ext | |
3459 | cat >>conftest.$ac_ext <<_ACEOF | |
3460 | /* end confdefs.h. */ | |
3461 | $ac_includes_default | |
3462 | int | |
3463 | main () | |
3464 | { | |
3465 | if ((size_t *) 0) | |
3466 | return 0; | |
3467 | if (sizeof (size_t)) | |
3468 | return 0; | |
3469 | ; | |
3470 | return 0; | |
3471 | } | |
3472 | _ACEOF | |
3473 | rm -f conftest.$ac_objext | |
3474 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3475 | (eval $ac_compile) 2>conftest.er1 | |
3476 | ac_status=$? | |
3477 | grep -v '^ *+' conftest.er1 >conftest.err | |
3478 | rm -f conftest.er1 | |
3479 | cat conftest.err >&5 | |
3480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3481 | (exit $ac_status); } && | |
3482 | { ac_try='test -z "$ac_c_werror_flag" | |
3483 | || test ! -s conftest.err' | |
3484 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3485 | (eval $ac_try) 2>&5 | |
3486 | ac_status=$? | |
3487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3488 | (exit $ac_status); }; } && | |
3489 | { ac_try='test -s conftest.$ac_objext' | |
b7026657 AC |
3490 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3491 | (eval $ac_try) 2>&5 | |
3492 | ac_status=$? | |
3493 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3494 | (exit $ac_status); }; }; then | |
35695fd6 AC |
3495 | ac_cv_type_size_t=yes |
3496 | else | |
3497 | echo "$as_me: failed program was:" >&5 | |
3498 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3499 | ||
3500 | ac_cv_type_size_t=no | |
b7026657 | 3501 | fi |
35695fd6 AC |
3502 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3503 | fi | |
3504 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
3505 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 | |
3506 | if test $ac_cv_type_size_t = yes; then | |
3507 | : | |
3508 | else | |
b7026657 | 3509 | |
35695fd6 AC |
3510 | cat >>confdefs.h <<_ACEOF |
3511 | #define size_t unsigned | |
3512 | _ACEOF | |
b7026657 | 3513 | |
c906108c | 3514 | fi |
c906108c | 3515 | |
35695fd6 AC |
3516 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works |
3517 | # for constant arguments. Useless! | |
3518 | echo "$as_me:$LINENO: checking for working alloca.h" >&5 | |
3519 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 | |
3520 | if test "${ac_cv_working_alloca_h+set}" = set; then | |
b7026657 AC |
3521 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3522 | else | |
3523 | cat >conftest.$ac_ext <<_ACEOF | |
3524 | /* confdefs.h. */ | |
3525 | _ACEOF | |
3526 | cat confdefs.h >>conftest.$ac_ext | |
3527 | cat >>conftest.$ac_ext <<_ACEOF | |
3528 | /* end confdefs.h. */ | |
35695fd6 | 3529 | #include <alloca.h> |
b7026657 AC |
3530 | int |
3531 | main () | |
3532 | { | |
35695fd6 | 3533 | char *p = (char *) alloca (2 * sizeof (int)); |
b7026657 AC |
3534 | ; |
3535 | return 0; | |
3536 | } | |
3537 | _ACEOF | |
35695fd6 AC |
3538 | rm -f conftest.$ac_objext conftest$ac_exeext |
3539 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
3540 | (eval $ac_link) 2>conftest.er1 | |
b7026657 | 3541 | ac_status=$? |
35695fd6 AC |
3542 | grep -v '^ *+' conftest.er1 >conftest.err |
3543 | rm -f conftest.er1 | |
3544 | cat conftest.err >&5 | |
b7026657 | 3545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 |
35695fd6 AC |
3546 | (exit $ac_status); } && |
3547 | { ac_try='test -z "$ac_c_werror_flag" | |
3548 | || test ! -s conftest.err' | |
3549 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3550 | (eval $ac_try) 2>&5 | |
3551 | ac_status=$? | |
3552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3553 | (exit $ac_status); }; } && | |
3554 | { ac_try='test -s conftest$ac_exeext' | |
3555 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3556 | (eval $ac_try) 2>&5 | |
3557 | ac_status=$? | |
3558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3559 | (exit $ac_status); }; }; then | |
3560 | ac_cv_working_alloca_h=yes | |
c906108c | 3561 | else |
b7026657 AC |
3562 | echo "$as_me: failed program was:" >&5 |
3563 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3564 | ||
35695fd6 | 3565 | ac_cv_working_alloca_h=no |
c906108c | 3566 | fi |
35695fd6 AC |
3567 | rm -f conftest.err conftest.$ac_objext \ |
3568 | conftest$ac_exeext conftest.$ac_ext | |
3569 | fi | |
3570 | echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 | |
3571 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 | |
3572 | if test $ac_cv_working_alloca_h = yes; then | |
3573 | ||
3574 | cat >>confdefs.h <<\_ACEOF | |
3575 | #define HAVE_ALLOCA_H 1 | |
3576 | _ACEOF | |
c906108c | 3577 | |
b7026657 | 3578 | fi |
35695fd6 AC |
3579 | |
3580 | echo "$as_me:$LINENO: checking for alloca" >&5 | |
3581 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6 | |
3582 | if test "${ac_cv_func_alloca_works+set}" = set; then | |
b7026657 | 3583 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
c906108c | 3584 | else |
b7026657 AC |
3585 | cat >conftest.$ac_ext <<_ACEOF |
3586 | /* confdefs.h. */ | |
3587 | _ACEOF | |
3588 | cat confdefs.h >>conftest.$ac_ext | |
3589 | cat >>conftest.$ac_ext <<_ACEOF | |
3590 | /* end confdefs.h. */ | |
35695fd6 AC |
3591 | #ifdef __GNUC__ |
3592 | # define alloca __builtin_alloca | |
3593 | #else | |
3594 | # ifdef _MSC_VER | |
3595 | # include <malloc.h> | |
3596 | # define alloca _alloca | |
3597 | # else | |
3598 | # if HAVE_ALLOCA_H | |
3599 | # include <alloca.h> | |
3600 | # else | |
3601 | # ifdef _AIX | |
3602 | #pragma alloca | |
3603 | # else | |
3604 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
3605 | char *alloca (); | |
3606 | # endif | |
3607 | # endif | |
3608 | # endif | |
3609 | # endif | |
3610 | #endif | |
b7026657 AC |
3611 | |
3612 | int | |
3613 | main () | |
3614 | { | |
35695fd6 | 3615 | char *p = (char *) alloca (1); |
b7026657 AC |
3616 | ; |
3617 | return 0; | |
3618 | } | |
3619 | _ACEOF | |
35695fd6 AC |
3620 | rm -f conftest.$ac_objext conftest$ac_exeext |
3621 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
3622 | (eval $ac_link) 2>conftest.er1 | |
b7026657 AC |
3623 | ac_status=$? |
3624 | grep -v '^ *+' conftest.er1 >conftest.err | |
3625 | rm -f conftest.er1 | |
3626 | cat conftest.err >&5 | |
3627 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3628 | (exit $ac_status); } && | |
3629 | { ac_try='test -z "$ac_c_werror_flag" | |
3630 | || test ! -s conftest.err' | |
3631 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3632 | (eval $ac_try) 2>&5 | |
3633 | ac_status=$? | |
3634 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3635 | (exit $ac_status); }; } && | |
35695fd6 | 3636 | { ac_try='test -s conftest$ac_exeext' |
b7026657 AC |
3637 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3638 | (eval $ac_try) 2>&5 | |
3639 | ac_status=$? | |
3640 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3641 | (exit $ac_status); }; }; then | |
35695fd6 | 3642 | ac_cv_func_alloca_works=yes |
b7026657 AC |
3643 | else |
3644 | echo "$as_me: failed program was:" >&5 | |
3645 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3646 | ||
35695fd6 | 3647 | ac_cv_func_alloca_works=no |
b7026657 | 3648 | fi |
35695fd6 AC |
3649 | rm -f conftest.err conftest.$ac_objext \ |
3650 | conftest$ac_exeext conftest.$ac_ext | |
3651 | fi | |
3652 | echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 | |
3653 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 | |
3654 | ||
3655 | if test $ac_cv_func_alloca_works = yes; then | |
3656 | ||
3657 | cat >>confdefs.h <<\_ACEOF | |
3658 | #define HAVE_ALLOCA 1 | |
3659 | _ACEOF | |
3660 | ||
3661 | else | |
3662 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions | |
3663 | # that cause trouble. Some versions do not even contain alloca or | |
3664 | # contain a buggy version. If you still want to use their alloca, | |
3665 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
3666 | ||
3667 | ALLOCA=alloca.$ac_objext | |
3668 | ||
3669 | cat >>confdefs.h <<\_ACEOF | |
3670 | #define C_ALLOCA 1 | |
3671 | _ACEOF | |
3672 | ||
3673 | ||
3674 | echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 | |
3675 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 | |
3676 | if test "${ac_cv_os_cray+set}" = set; then | |
3677 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3678 | else | |
3679 | cat >conftest.$ac_ext <<_ACEOF | |
3680 | /* confdefs.h. */ | |
3681 | _ACEOF | |
3682 | cat confdefs.h >>conftest.$ac_ext | |
3683 | cat >>conftest.$ac_ext <<_ACEOF | |
3684 | /* end confdefs.h. */ | |
3685 | #if defined(CRAY) && ! defined(CRAY2) | |
3686 | webecray | |
3687 | #else | |
3688 | wenotbecray | |
3689 | #endif | |
b7026657 | 3690 | |
35695fd6 AC |
3691 | _ACEOF |
3692 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | | |
3693 | $EGREP "webecray" >/dev/null 2>&1; then | |
3694 | ac_cv_os_cray=yes | |
3695 | else | |
3696 | ac_cv_os_cray=no | |
b7026657 | 3697 | fi |
35695fd6 AC |
3698 | rm -f conftest* |
3699 | ||
3700 | fi | |
3701 | echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 | |
3702 | echo "${ECHO_T}$ac_cv_os_cray" >&6 | |
3703 | if test $ac_cv_os_cray = yes; then | |
3704 | for ac_func in _getb67 GETB67 getb67; do | |
3705 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
3706 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
3707 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
3708 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
b7026657 AC |
3709 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3710 | else | |
3711 | cat >conftest.$ac_ext <<_ACEOF | |
3712 | /* confdefs.h. */ | |
3713 | _ACEOF | |
3714 | cat confdefs.h >>conftest.$ac_ext | |
3715 | cat >>conftest.$ac_ext <<_ACEOF | |
3716 | /* end confdefs.h. */ | |
35695fd6 AC |
3717 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
3718 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
3719 | #define $ac_func innocuous_$ac_func | |
3720 | ||
3721 | /* System header to define __stub macros and hopefully few prototypes, | |
3722 | which can conflict with char $ac_func (); below. | |
3723 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3724 | <limits.h> exists even on freestanding compilers. */ | |
3725 | ||
3726 | #ifdef __STDC__ | |
3727 | # include <limits.h> | |
3728 | #else | |
3729 | # include <assert.h> | |
3730 | #endif | |
3731 | ||
3732 | #undef $ac_func | |
3733 | ||
3734 | /* Override any gcc2 internal prototype to avoid an error. */ | |
3735 | #ifdef __cplusplus | |
3736 | extern "C" | |
3737 | { | |
3738 | #endif | |
3739 | /* We use char because int might match the return type of a gcc2 | |
3740 | builtin and then its argument prototype would still apply. */ | |
3741 | char $ac_func (); | |
3742 | /* The GNU C library defines this for functions which it implements | |
3743 | to always fail with ENOSYS. Some functions are actually named | |
3744 | something starting with __ and the normal name is an alias. */ | |
3745 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
3746 | choke me | |
3747 | #else | |
3748 | char (*f) () = $ac_func; | |
3749 | #endif | |
3750 | #ifdef __cplusplus | |
3751 | } | |
3752 | #endif | |
b7026657 AC |
3753 | |
3754 | int | |
3755 | main () | |
3756 | { | |
35695fd6 | 3757 | return f != $ac_func; |
b7026657 AC |
3758 | ; |
3759 | return 0; | |
3760 | } | |
3761 | _ACEOF | |
35695fd6 AC |
3762 | rm -f conftest.$ac_objext conftest$ac_exeext |
3763 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
3764 | (eval $ac_link) 2>conftest.er1 | |
b7026657 AC |
3765 | ac_status=$? |
3766 | grep -v '^ *+' conftest.er1 >conftest.err | |
3767 | rm -f conftest.er1 | |
3768 | cat conftest.err >&5 | |
3769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3770 | (exit $ac_status); } && | |
3771 | { ac_try='test -z "$ac_c_werror_flag" | |
3772 | || test ! -s conftest.err' | |
3773 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3774 | (eval $ac_try) 2>&5 | |
3775 | ac_status=$? | |
3776 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3777 | (exit $ac_status); }; } && | |
35695fd6 | 3778 | { ac_try='test -s conftest$ac_exeext' |
b7026657 AC |
3779 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3780 | (eval $ac_try) 2>&5 | |
3781 | ac_status=$? | |
3782 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3783 | (exit $ac_status); }; }; then | |
35695fd6 | 3784 | eval "$as_ac_var=yes" |
c906108c | 3785 | else |
b7026657 AC |
3786 | echo "$as_me: failed program was:" >&5 |
3787 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c | 3788 | |
35695fd6 | 3789 | eval "$as_ac_var=no" |
c906108c | 3790 | fi |
35695fd6 AC |
3791 | rm -f conftest.err conftest.$ac_objext \ |
3792 | conftest$ac_exeext conftest.$ac_ext | |
b7026657 | 3793 | fi |
35695fd6 AC |
3794 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
3795 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
3796 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
3797 | ||
3798 | cat >>confdefs.h <<_ACEOF | |
3799 | #define CRAY_STACKSEG_END $ac_func | |
3800 | _ACEOF | |
3801 | ||
3802 | break | |
c906108c | 3803 | fi |
35695fd6 AC |
3804 | |
3805 | done | |
3806 | fi | |
3807 | ||
3808 | echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 | |
3809 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 | |
3810 | if test "${ac_cv_c_stack_direction+set}" = set; then | |
b7026657 AC |
3811 | echo $ECHO_N "(cached) $ECHO_C" >&6 |
3812 | else | |
35695fd6 AC |
3813 | if test "$cross_compiling" = yes; then |
3814 | ac_cv_c_stack_direction=0 | |
3815 | else | |
3816 | cat >conftest.$ac_ext <<_ACEOF | |
b7026657 AC |
3817 | /* confdefs.h. */ |
3818 | _ACEOF | |
3819 | cat confdefs.h >>conftest.$ac_ext | |
3820 | cat >>conftest.$ac_ext <<_ACEOF | |
3821 | /* end confdefs.h. */ | |
35695fd6 AC |
3822 | int |
3823 | find_stack_direction () | |
b7026657 | 3824 | { |
35695fd6 AC |
3825 | static char *addr = 0; |
3826 | auto char dummy; | |
3827 | if (addr == 0) | |
3828 | { | |
3829 | addr = &dummy; | |
3830 | return find_stack_direction (); | |
3831 | } | |
3832 | else | |
3833 | return (&dummy > addr) ? 1 : -1; | |
b7026657 AC |
3834 | } |
3835 | ||
b7026657 AC |
3836 | int |
3837 | main () | |
3838 | { | |
35695fd6 | 3839 | exit (find_stack_direction () < 0); |
b7026657 AC |
3840 | } |
3841 | _ACEOF | |
35695fd6 AC |
3842 | rm -f conftest$ac_exeext |
3843 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
3844 | (eval $ac_link) 2>&5 | |
b7026657 AC |
3845 | ac_status=$? |
3846 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
35695fd6 | 3847 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' |
b7026657 AC |
3848 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
3849 | (eval $ac_try) 2>&5 | |
3850 | ac_status=$? | |
3851 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3852 | (exit $ac_status); }; }; then | |
35695fd6 | 3853 | ac_cv_c_stack_direction=1 |
b7026657 | 3854 | else |
35695fd6 AC |
3855 | echo "$as_me: program exited with status $ac_status" >&5 |
3856 | echo "$as_me: failed program was:" >&5 | |
b7026657 AC |
3857 | sed 's/^/| /' conftest.$ac_ext >&5 |
3858 | ||
35695fd6 AC |
3859 | ( exit $ac_status ) |
3860 | ac_cv_c_stack_direction=-1 | |
b7026657 | 3861 | fi |
35695fd6 AC |
3862 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
3863 | fi | |
3864 | fi | |
3865 | echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 | |
3866 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 | |
3867 | ||
3868 | cat >>confdefs.h <<_ACEOF | |
3869 | #define STACK_DIRECTION $ac_cv_c_stack_direction | |
3870 | _ACEOF | |
3871 | ||
b7026657 AC |
3872 | |
3873 | fi | |
3874 | ||
b7026657 | 3875 | |
35695fd6 AC |
3876 | |
3877 | for ac_header in stdlib.h unistd.h | |
b7026657 | 3878 | do |
35695fd6 AC |
3879 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
3880 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
3881 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
3882 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
3883 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
3884 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3885 | fi | |
3886 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
3887 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
3888 | else | |
3889 | # Is the header compilable? | |
3890 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
3891 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
3892 | cat >conftest.$ac_ext <<_ACEOF | |
b7026657 AC |
3893 | /* confdefs.h. */ |
3894 | _ACEOF | |
3895 | cat confdefs.h >>conftest.$ac_ext | |
3896 | cat >>conftest.$ac_ext <<_ACEOF | |
3897 | /* end confdefs.h. */ | |
35695fd6 AC |
3898 | $ac_includes_default |
3899 | #include <$ac_header> | |
b7026657 AC |
3900 | _ACEOF |
3901 | rm -f conftest.$ac_objext | |
3902 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3903 | (eval $ac_compile) 2>conftest.er1 | |
3904 | ac_status=$? | |
3905 | grep -v '^ *+' conftest.er1 >conftest.err | |
3906 | rm -f conftest.er1 | |
3907 | cat conftest.err >&5 | |
3908 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3909 | (exit $ac_status); } && | |
3910 | { ac_try='test -z "$ac_c_werror_flag" | |
3911 | || test ! -s conftest.err' | |
3912 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3913 | (eval $ac_try) 2>&5 | |
3914 | ac_status=$? | |
3915 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3916 | (exit $ac_status); }; } && | |
3917 | { ac_try='test -s conftest.$ac_objext' | |
3918 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3919 | (eval $ac_try) 2>&5 | |
3920 | ac_status=$? | |
3921 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3922 | (exit $ac_status); }; }; then | |
35695fd6 | 3923 | ac_header_compiler=yes |
b7026657 AC |
3924 | else |
3925 | echo "$as_me: failed program was:" >&5 | |
3926 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3927 | ||
35695fd6 | 3928 | ac_header_compiler=no |
b7026657 AC |
3929 | fi |
3930 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
35695fd6 AC |
3931 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 |
3932 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
3933 | ||
3934 | # Is the header present? | |
3935 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
3936 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
3937 | cat >conftest.$ac_ext <<_ACEOF | |
3938 | /* confdefs.h. */ | |
3939 | _ACEOF | |
3940 | cat confdefs.h >>conftest.$ac_ext | |
3941 | cat >>conftest.$ac_ext <<_ACEOF | |
3942 | /* end confdefs.h. */ | |
3943 | #include <$ac_header> | |
3944 | _ACEOF | |
3945 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
3946 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
3947 | ac_status=$? | |
3948 | grep -v '^ *+' conftest.er1 >conftest.err | |
3949 | rm -f conftest.er1 | |
3950 | cat conftest.err >&5 | |
3951 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3952 | (exit $ac_status); } >/dev/null; then | |
3953 | if test -s conftest.err; then | |
3954 | ac_cpp_err=$ac_c_preproc_warn_flag | |
3955 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
3956 | else | |
3957 | ac_cpp_err= | |
3958 | fi | |
3959 | else | |
3960 | ac_cpp_err=yes | |
3961 | fi | |
3962 | if test -z "$ac_cpp_err"; then | |
3963 | ac_header_preproc=yes | |
3964 | else | |
3965 | echo "$as_me: failed program was:" >&5 | |
3966 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3967 | ||
3968 | ac_header_preproc=no | |
3969 | fi | |
3970 | rm -f conftest.err conftest.$ac_ext | |
3971 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
3972 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
3973 | ||
3974 | # So? What about this header? | |
3975 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
3976 | yes:no: ) | |
3977 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
3978 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
3979 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
3980 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
3981 | ac_header_preproc=yes | |
3982 | ;; | |
3983 | no:yes:* ) | |
3984 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
3985 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
3986 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
3987 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
3988 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
3989 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
3990 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
3991 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
3992 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
3993 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
3994 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
3995 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
3996 | ( | |
3997 | cat <<\_ASBOX | |
3998 | ## ------------------------------------------ ## | |
3999 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
4000 | ## ------------------------------------------ ## | |
4001 | _ASBOX | |
4002 | ) | | |
4003 | sed "s/^/$as_me: WARNING: /" >&2 | |
4004 | ;; | |
4005 | esac | |
4006 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4007 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4008 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4009 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4010 | else | |
4011 | eval "$as_ac_Header=\$ac_header_preproc" | |
4012 | fi | |
4013 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4014 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4015 | ||
4016 | fi | |
4017 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
4018 | cat >>confdefs.h <<_ACEOF | |
4019 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4020 | _ACEOF | |
4021 | ||
4022 | fi | |
4023 | ||
4024 | done | |
4025 | ||
4026 | ||
4027 | for ac_func in getpagesize | |
4028 | do | |
4029 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
4030 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
4031 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
4032 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
4033 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4034 | else | |
b7026657 AC |
4035 | cat >conftest.$ac_ext <<_ACEOF |
4036 | /* confdefs.h. */ | |
4037 | _ACEOF | |
4038 | cat confdefs.h >>conftest.$ac_ext | |
4039 | cat >>conftest.$ac_ext <<_ACEOF | |
4040 | /* end confdefs.h. */ | |
35695fd6 AC |
4041 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. |
4042 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
4043 | #define $ac_func innocuous_$ac_func | |
4044 | ||
4045 | /* System header to define __stub macros and hopefully few prototypes, | |
4046 | which can conflict with char $ac_func (); below. | |
4047 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4048 | <limits.h> exists even on freestanding compilers. */ | |
4049 | ||
4050 | #ifdef __STDC__ | |
4051 | # include <limits.h> | |
4052 | #else | |
4053 | # include <assert.h> | |
4054 | #endif | |
4055 | ||
4056 | #undef $ac_func | |
4057 | ||
4058 | /* Override any gcc2 internal prototype to avoid an error. */ | |
4059 | #ifdef __cplusplus | |
4060 | extern "C" | |
4061 | { | |
4062 | #endif | |
4063 | /* We use char because int might match the return type of a gcc2 | |
4064 | builtin and then its argument prototype would still apply. */ | |
4065 | char $ac_func (); | |
4066 | /* The GNU C library defines this for functions which it implements | |
4067 | to always fail with ENOSYS. Some functions are actually named | |
4068 | something starting with __ and the normal name is an alias. */ | |
4069 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
4070 | choke me | |
4071 | #else | |
4072 | char (*f) () = $ac_func; | |
4073 | #endif | |
4074 | #ifdef __cplusplus | |
4075 | } | |
4076 | #endif | |
4077 | ||
b7026657 AC |
4078 | int |
4079 | main () | |
4080 | { | |
35695fd6 | 4081 | return f != $ac_func; |
b7026657 AC |
4082 | ; |
4083 | return 0; | |
4084 | } | |
4085 | _ACEOF | |
35695fd6 AC |
4086 | rm -f conftest.$ac_objext conftest$ac_exeext |
4087 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4088 | (eval $ac_link) 2>conftest.er1 | |
b7026657 AC |
4089 | ac_status=$? |
4090 | grep -v '^ *+' conftest.er1 >conftest.err | |
4091 | rm -f conftest.er1 | |
4092 | cat conftest.err >&5 | |
4093 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4094 | (exit $ac_status); } && | |
4095 | { ac_try='test -z "$ac_c_werror_flag" | |
4096 | || test ! -s conftest.err' | |
4097 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4098 | (eval $ac_try) 2>&5 | |
4099 | ac_status=$? | |
4100 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4101 | (exit $ac_status); }; } && | |
35695fd6 | 4102 | { ac_try='test -s conftest$ac_exeext' |
b7026657 AC |
4103 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 |
4104 | (eval $ac_try) 2>&5 | |
4105 | ac_status=$? | |
4106 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4107 | (exit $ac_status); }; }; then | |
35695fd6 | 4108 | eval "$as_ac_var=yes" |
b7026657 AC |
4109 | else |
4110 | echo "$as_me: failed program was:" >&5 | |
4111 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4112 | ||
35695fd6 | 4113 | eval "$as_ac_var=no" |
b7026657 | 4114 | fi |
35695fd6 AC |
4115 | rm -f conftest.err conftest.$ac_objext \ |
4116 | conftest$ac_exeext conftest.$ac_ext | |
b7026657 | 4117 | fi |
35695fd6 AC |
4118 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 |
4119 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
4120 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
4121 | cat >>confdefs.h <<_ACEOF | |
4122 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
4123 | _ACEOF | |
c906108c SS |
4124 | |
4125 | fi | |
35695fd6 | 4126 | done |
c906108c | 4127 | |
35695fd6 AC |
4128 | echo "$as_me:$LINENO: checking for working mmap" >&5 |
4129 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 | |
4130 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then | |
4131 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4132 | else | |
4133 | if test "$cross_compiling" = yes; then | |
4134 | ac_cv_func_mmap_fixed_mapped=no | |
4135 | else | |
4136 | cat >conftest.$ac_ext <<_ACEOF | |
4137 | /* confdefs.h. */ | |
4138 | _ACEOF | |
4139 | cat confdefs.h >>conftest.$ac_ext | |
4140 | cat >>conftest.$ac_ext <<_ACEOF | |
4141 | /* end confdefs.h. */ | |
4142 | $ac_includes_default | |
4143 | /* malloc might have been renamed as rpl_malloc. */ | |
4144 | #undef malloc | |
c906108c | 4145 | |
35695fd6 AC |
4146 | /* Thanks to Mike Haertel and Jim Avera for this test. |
4147 | Here is a matrix of mmap possibilities: | |
4148 | mmap private not fixed | |
4149 | mmap private fixed at somewhere currently unmapped | |
4150 | mmap private fixed at somewhere already mapped | |
4151 | mmap shared not fixed | |
4152 | mmap shared fixed at somewhere currently unmapped | |
4153 | mmap shared fixed at somewhere already mapped | |
4154 | For private mappings, we should verify that changes cannot be read() | |
4155 | back from the file, nor mmap's back from the file at a different | |
4156 | address. (There have been systems where private was not correctly | |
4157 | implemented like the infamous i386 svr4.0, and systems where the | |
4158 | VM page cache was not coherent with the file system buffer cache | |
4159 | like early versions of FreeBSD and possibly contemporary NetBSD.) | |
4160 | For shared mappings, we should conversely verify that changes get | |
4161 | propagated back to all the places they're supposed to be. | |
cd0fc7c3 | 4162 | |
35695fd6 AC |
4163 | Grep wants private fixed already mapped. |
4164 | The main things grep needs to know about mmap are: | |
4165 | * does it exist and is it safe to write into the mmap'd area | |
4166 | * how to use it (BSD variants) */ | |
c906108c | 4167 | |
35695fd6 AC |
4168 | #include <fcntl.h> |
4169 | #include <sys/mman.h> | |
c906108c | 4170 | |
35695fd6 AC |
4171 | #if !STDC_HEADERS && !HAVE_STDLIB_H |
4172 | char *malloc (); | |
4173 | #endif | |
c906108c | 4174 | |
35695fd6 AC |
4175 | /* This mess was copied from the GNU getpagesize.h. */ |
4176 | #if !HAVE_GETPAGESIZE | |
4177 | /* Assume that all systems that can run configure have sys/param.h. */ | |
4178 | # if !HAVE_SYS_PARAM_H | |
4179 | # define HAVE_SYS_PARAM_H 1 | |
4180 | # endif | |
c906108c | 4181 | |
35695fd6 AC |
4182 | # ifdef _SC_PAGESIZE |
4183 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
4184 | # else /* no _SC_PAGESIZE */ | |
4185 | # if HAVE_SYS_PARAM_H | |
4186 | # include <sys/param.h> | |
4187 | # ifdef EXEC_PAGESIZE | |
4188 | # define getpagesize() EXEC_PAGESIZE | |
4189 | # else /* no EXEC_PAGESIZE */ | |
4190 | # ifdef NBPG | |
4191 | # define getpagesize() NBPG * CLSIZE | |
4192 | # ifndef CLSIZE | |
4193 | # define CLSIZE 1 | |
4194 | # endif /* no CLSIZE */ | |
4195 | # else /* no NBPG */ | |
4196 | # ifdef NBPC | |
4197 | # define getpagesize() NBPC | |
4198 | # else /* no NBPC */ | |
4199 | # ifdef PAGESIZE | |
4200 | # define getpagesize() PAGESIZE | |
4201 | # endif /* PAGESIZE */ | |
4202 | # endif /* no NBPC */ | |
4203 | # endif /* no NBPG */ | |
4204 | # endif /* no EXEC_PAGESIZE */ | |
4205 | # else /* no HAVE_SYS_PARAM_H */ | |
4206 | # define getpagesize() 8192 /* punt totally */ | |
4207 | # endif /* no HAVE_SYS_PARAM_H */ | |
4208 | # endif /* no _SC_PAGESIZE */ | |
c906108c | 4209 | |
35695fd6 | 4210 | #endif /* no HAVE_GETPAGESIZE */ |
c906108c | 4211 | |
35695fd6 AC |
4212 | int |
4213 | main () | |
4214 | { | |
4215 | char *data, *data2, *data3; | |
4216 | int i, pagesize; | |
4217 | int fd; | |
c906108c | 4218 | |
35695fd6 | 4219 | pagesize = getpagesize (); |
b7026657 | 4220 | |
35695fd6 AC |
4221 | /* First, make a file with some known garbage in it. */ |
4222 | data = (char *) malloc (pagesize); | |
4223 | if (!data) | |
4224 | exit (1); | |
4225 | for (i = 0; i < pagesize; ++i) | |
4226 | *(data + i) = rand (); | |
4227 | umask (0); | |
4228 | fd = creat ("conftest.mmap", 0600); | |
4229 | if (fd < 0) | |
4230 | exit (1); | |
4231 | if (write (fd, data, pagesize) != pagesize) | |
4232 | exit (1); | |
4233 | close (fd); | |
b7026657 | 4234 | |
35695fd6 AC |
4235 | /* Next, try to mmap the file at a fixed address which already has |
4236 | something else allocated at it. If we can, also make sure that | |
4237 | we see the same garbage. */ | |
4238 | fd = open ("conftest.mmap", O_RDWR); | |
4239 | if (fd < 0) | |
4240 | exit (1); | |
4241 | data2 = (char *) malloc (2 * pagesize); | |
4242 | if (!data2) | |
4243 | exit (1); | |
4244 | data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1); | |
4245 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, | |
4246 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) | |
4247 | exit (1); | |
4248 | for (i = 0; i < pagesize; ++i) | |
4249 | if (*(data + i) != *(data2 + i)) | |
4250 | exit (1); | |
4251 | ||
4252 | /* Finally, make sure that changes to the mapped area do not | |
4253 | percolate back to the file as seen by read(). (This is a bug on | |
4254 | some variants of i386 svr4.0.) */ | |
4255 | for (i = 0; i < pagesize; ++i) | |
4256 | *(data2 + i) = *(data2 + i) + 1; | |
4257 | data3 = (char *) malloc (pagesize); | |
4258 | if (!data3) | |
4259 | exit (1); | |
4260 | if (read (fd, data3, pagesize) != pagesize) | |
4261 | exit (1); | |
4262 | for (i = 0; i < pagesize; ++i) | |
4263 | if (*(data + i) != *(data3 + i)) | |
4264 | exit (1); | |
4265 | close (fd); | |
4266 | exit (0); | |
4267 | } | |
4268 | _ACEOF | |
4269 | rm -f conftest$ac_exeext | |
4270 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4271 | (eval $ac_link) 2>&5 | |
4272 | ac_status=$? | |
4273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4274 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
4275 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4276 | (eval $ac_try) 2>&5 | |
4277 | ac_status=$? | |
4278 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4279 | (exit $ac_status); }; }; then | |
4280 | ac_cv_func_mmap_fixed_mapped=yes | |
b7026657 | 4281 | else |
35695fd6 AC |
4282 | echo "$as_me: program exited with status $ac_status" >&5 |
4283 | echo "$as_me: failed program was:" >&5 | |
4284 | sed 's/^/| /' conftest.$ac_ext >&5 | |
b7026657 | 4285 | |
35695fd6 AC |
4286 | ( exit $ac_status ) |
4287 | ac_cv_func_mmap_fixed_mapped=no | |
b7026657 | 4288 | fi |
35695fd6 | 4289 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
b7026657 | 4290 | fi |
b7026657 | 4291 | fi |
35695fd6 AC |
4292 | echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
4293 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 | |
4294 | if test $ac_cv_func_mmap_fixed_mapped = yes; then | |
b7026657 | 4295 | |
35695fd6 AC |
4296 | cat >>confdefs.h <<\_ACEOF |
4297 | #define HAVE_MMAP 1 | |
4298 | _ACEOF | |
c906108c | 4299 | |
35695fd6 AC |
4300 | fi |
4301 | rm -f conftest.mmap | |
c906108c | 4302 | |
b7026657 AC |
4303 | |
4304 | ||
4305 | ||
4306 | ||
4307 | ||
4308 | ||
4309 | ||
4310 | ||
4311 | ||
4312 | ||
4313 | for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \ | |
c906108c SS |
4314 | unistd.h values.h sys/param.h |
4315 | do | |
b7026657 AC |
4316 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
4317 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4318 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4319 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4320 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4321 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4322 | fi | |
4323 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4324 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4325 | else | |
4326 | # Is the header compilable? | |
4327 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
4328 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
4329 | cat >conftest.$ac_ext <<_ACEOF | |
4330 | /* confdefs.h. */ | |
4331 | _ACEOF | |
4332 | cat confdefs.h >>conftest.$ac_ext | |
4333 | cat >>conftest.$ac_ext <<_ACEOF | |
4334 | /* end confdefs.h. */ | |
4335 | $ac_includes_default | |
4336 | #include <$ac_header> | |
4337 | _ACEOF | |
4338 | rm -f conftest.$ac_objext | |
4339 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4340 | (eval $ac_compile) 2>conftest.er1 | |
4341 | ac_status=$? | |
4342 | grep -v '^ *+' conftest.er1 >conftest.err | |
4343 | rm -f conftest.er1 | |
4344 | cat conftest.err >&5 | |
4345 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4346 | (exit $ac_status); } && | |
4347 | { ac_try='test -z "$ac_c_werror_flag" | |
4348 | || test ! -s conftest.err' | |
4349 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4350 | (eval $ac_try) 2>&5 | |
4351 | ac_status=$? | |
4352 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4353 | (exit $ac_status); }; } && | |
4354 | { ac_try='test -s conftest.$ac_objext' | |
4355 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4356 | (eval $ac_try) 2>&5 | |
4357 | ac_status=$? | |
4358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4359 | (exit $ac_status); }; }; then | |
4360 | ac_header_compiler=yes | |
4361 | else | |
4362 | echo "$as_me: failed program was:" >&5 | |
4363 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4364 | ||
4365 | ac_header_compiler=no | |
4366 | fi | |
4367 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4368 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
4369 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
4370 | ||
4371 | # Is the header present? | |
4372 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
4373 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
4374 | cat >conftest.$ac_ext <<_ACEOF | |
4375 | /* confdefs.h. */ | |
4376 | _ACEOF | |
4377 | cat confdefs.h >>conftest.$ac_ext | |
4378 | cat >>conftest.$ac_ext <<_ACEOF | |
4379 | /* end confdefs.h. */ | |
4380 | #include <$ac_header> | |
4381 | _ACEOF | |
4382 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4383 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4384 | ac_status=$? | |
4385 | grep -v '^ *+' conftest.er1 >conftest.err | |
4386 | rm -f conftest.er1 | |
4387 | cat conftest.err >&5 | |
4388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4389 | (exit $ac_status); } >/dev/null; then | |
4390 | if test -s conftest.err; then | |
4391 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4392 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
4393 | else | |
4394 | ac_cpp_err= | |
4395 | fi | |
4396 | else | |
4397 | ac_cpp_err=yes | |
c906108c | 4398 | fi |
b7026657 AC |
4399 | if test -z "$ac_cpp_err"; then |
4400 | ac_header_preproc=yes | |
4401 | else | |
4402 | echo "$as_me: failed program was:" >&5 | |
4403 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4404 | ||
4405 | ac_header_preproc=no | |
c906108c | 4406 | fi |
b7026657 AC |
4407 | rm -f conftest.err conftest.$ac_ext |
4408 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
4409 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
4410 | ||
4411 | # So? What about this header? | |
4412 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
4413 | yes:no: ) | |
4414 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
4415 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4416 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
4417 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
4418 | ac_header_preproc=yes | |
4419 | ;; | |
4420 | no:yes:* ) | |
4421 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
4422 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
4423 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
4424 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4425 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4426 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4427 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
4428 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
4429 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4430 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
4431 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
4432 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
4433 | ( | |
4434 | cat <<\_ASBOX | |
4435 | ## ------------------------------------------ ## | |
4436 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
4437 | ## ------------------------------------------ ## | |
4438 | _ASBOX | |
4439 | ) | | |
4440 | sed "s/^/$as_me: WARNING: /" >&2 | |
4441 | ;; | |
4442 | esac | |
4443 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4444 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4445 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4446 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 4447 | else |
b7026657 AC |
4448 | eval "$as_ac_Header=\$ac_header_preproc" |
4449 | fi | |
4450 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4451 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4452 | ||
4453 | fi | |
4454 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
4455 | cat >>confdefs.h <<_ACEOF | |
4456 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4457 | _ACEOF | |
4458 | ||
c906108c | 4459 | fi |
b7026657 | 4460 | |
c906108c SS |
4461 | done |
4462 | ||
b7026657 AC |
4463 | |
4464 | ||
4465 | ||
4466 | ||
4467 | ||
4468 | ||
4469 | ||
4470 | ||
4471 | ||
4472 | ||
4473 | for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \ | |
c906108c SS |
4474 | __argz_count __argz_stringify __argz_next |
4475 | do | |
b7026657 AC |
4476 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
4477 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
4478 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
4479 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
4480 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4481 | else | |
4482 | cat >conftest.$ac_ext <<_ACEOF | |
4483 | /* confdefs.h. */ | |
4484 | _ACEOF | |
4485 | cat confdefs.h >>conftest.$ac_ext | |
4486 | cat >>conftest.$ac_ext <<_ACEOF | |
4487 | /* end confdefs.h. */ | |
4488 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
4489 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
4490 | #define $ac_func innocuous_$ac_func | |
4491 | ||
c906108c | 4492 | /* System header to define __stub macros and hopefully few prototypes, |
b7026657 AC |
4493 | which can conflict with char $ac_func (); below. |
4494 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4495 | <limits.h> exists even on freestanding compilers. */ | |
4496 | ||
4497 | #ifdef __STDC__ | |
4498 | # include <limits.h> | |
4499 | #else | |
4500 | # include <assert.h> | |
4501 | #endif | |
c906108c | 4502 | |
b7026657 | 4503 | #undef $ac_func |
c906108c | 4504 | |
b7026657 AC |
4505 | /* Override any gcc2 internal prototype to avoid an error. */ |
4506 | #ifdef __cplusplus | |
4507 | extern "C" | |
4508 | { | |
4509 | #endif | |
4510 | /* We use char because int might match the return type of a gcc2 | |
4511 | builtin and then its argument prototype would still apply. */ | |
4512 | char $ac_func (); | |
c906108c SS |
4513 | /* The GNU C library defines this for functions which it implements |
4514 | to always fail with ENOSYS. Some functions are actually named | |
4515 | something starting with __ and the normal name is an alias. */ | |
4516 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
4517 | choke me | |
4518 | #else | |
b7026657 AC |
4519 | char (*f) () = $ac_func; |
4520 | #endif | |
4521 | #ifdef __cplusplus | |
4522 | } | |
c906108c SS |
4523 | #endif |
4524 | ||
b7026657 AC |
4525 | int |
4526 | main () | |
4527 | { | |
4528 | return f != $ac_func; | |
4529 | ; | |
4530 | return 0; | |
4531 | } | |
4532 | _ACEOF | |
4533 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4534 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4535 | (eval $ac_link) 2>conftest.er1 | |
4536 | ac_status=$? | |
4537 | grep -v '^ *+' conftest.er1 >conftest.err | |
4538 | rm -f conftest.er1 | |
4539 | cat conftest.err >&5 | |
4540 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4541 | (exit $ac_status); } && | |
4542 | { ac_try='test -z "$ac_c_werror_flag" | |
4543 | || test ! -s conftest.err' | |
4544 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4545 | (eval $ac_try) 2>&5 | |
4546 | ac_status=$? | |
4547 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4548 | (exit $ac_status); }; } && | |
4549 | { ac_try='test -s conftest$ac_exeext' | |
4550 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4551 | (eval $ac_try) 2>&5 | |
4552 | ac_status=$? | |
4553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4554 | (exit $ac_status); }; }; then | |
4555 | eval "$as_ac_var=yes" | |
4556 | else | |
4557 | echo "$as_me: failed program was:" >&5 | |
4558 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4559 | ||
4560 | eval "$as_ac_var=no" | |
4561 | fi | |
4562 | rm -f conftest.err conftest.$ac_objext \ | |
4563 | conftest$ac_exeext conftest.$ac_ext | |
4564 | fi | |
4565 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
4566 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
4567 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
4568 | cat >>confdefs.h <<_ACEOF | |
4569 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
4570 | _ACEOF | |
c906108c | 4571 | |
c906108c SS |
4572 | fi |
4573 | done | |
4574 | ||
4575 | ||
4576 | if test "${ac_cv_func_stpcpy+set}" != "set"; then | |
b7026657 AC |
4577 | |
4578 | for ac_func in stpcpy | |
c906108c | 4579 | do |
b7026657 AC |
4580 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
4581 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
4582 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
4583 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
4584 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4585 | else | |
4586 | cat >conftest.$ac_ext <<_ACEOF | |
4587 | /* confdefs.h. */ | |
4588 | _ACEOF | |
4589 | cat confdefs.h >>conftest.$ac_ext | |
4590 | cat >>conftest.$ac_ext <<_ACEOF | |
4591 | /* end confdefs.h. */ | |
4592 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
4593 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
4594 | #define $ac_func innocuous_$ac_func | |
4595 | ||
c906108c | 4596 | /* System header to define __stub macros and hopefully few prototypes, |
b7026657 AC |
4597 | which can conflict with char $ac_func (); below. |
4598 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4599 | <limits.h> exists even on freestanding compilers. */ | |
4600 | ||
4601 | #ifdef __STDC__ | |
4602 | # include <limits.h> | |
4603 | #else | |
4604 | # include <assert.h> | |
4605 | #endif | |
c906108c | 4606 | |
b7026657 | 4607 | #undef $ac_func |
c906108c | 4608 | |
b7026657 AC |
4609 | /* Override any gcc2 internal prototype to avoid an error. */ |
4610 | #ifdef __cplusplus | |
4611 | extern "C" | |
4612 | { | |
4613 | #endif | |
4614 | /* We use char because int might match the return type of a gcc2 | |
4615 | builtin and then its argument prototype would still apply. */ | |
4616 | char $ac_func (); | |
c906108c SS |
4617 | /* The GNU C library defines this for functions which it implements |
4618 | to always fail with ENOSYS. Some functions are actually named | |
4619 | something starting with __ and the normal name is an alias. */ | |
4620 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
4621 | choke me | |
4622 | #else | |
b7026657 AC |
4623 | char (*f) () = $ac_func; |
4624 | #endif | |
4625 | #ifdef __cplusplus | |
4626 | } | |
c906108c SS |
4627 | #endif |
4628 | ||
b7026657 AC |
4629 | int |
4630 | main () | |
4631 | { | |
4632 | return f != $ac_func; | |
4633 | ; | |
4634 | return 0; | |
4635 | } | |
4636 | _ACEOF | |
4637 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4638 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4639 | (eval $ac_link) 2>conftest.er1 | |
4640 | ac_status=$? | |
4641 | grep -v '^ *+' conftest.er1 >conftest.err | |
4642 | rm -f conftest.er1 | |
4643 | cat conftest.err >&5 | |
4644 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4645 | (exit $ac_status); } && | |
4646 | { ac_try='test -z "$ac_c_werror_flag" | |
4647 | || test ! -s conftest.err' | |
4648 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4649 | (eval $ac_try) 2>&5 | |
4650 | ac_status=$? | |
4651 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4652 | (exit $ac_status); }; } && | |
4653 | { ac_try='test -s conftest$ac_exeext' | |
4654 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4655 | (eval $ac_try) 2>&5 | |
4656 | ac_status=$? | |
4657 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4658 | (exit $ac_status); }; }; then | |
4659 | eval "$as_ac_var=yes" | |
4660 | else | |
4661 | echo "$as_me: failed program was:" >&5 | |
4662 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4663 | ||
4664 | eval "$as_ac_var=no" | |
4665 | fi | |
4666 | rm -f conftest.err conftest.$ac_objext \ | |
4667 | conftest$ac_exeext conftest.$ac_ext | |
4668 | fi | |
4669 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
4670 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
4671 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
4672 | cat >>confdefs.h <<_ACEOF | |
4673 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
4674 | _ACEOF | |
4675 | ||
c906108c SS |
4676 | fi |
4677 | done | |
4678 | ||
4679 | fi | |
4680 | if test "${ac_cv_func_stpcpy}" = "yes"; then | |
b7026657 | 4681 | cat >>confdefs.h <<\_ACEOF |
c906108c | 4682 | #define HAVE_STPCPY 1 |
b7026657 | 4683 | _ACEOF |
c906108c SS |
4684 | |
4685 | fi | |
4686 | ||
4687 | if test $ac_cv_header_locale_h = yes; then | |
b7026657 AC |
4688 | echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5 |
4689 | echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6 | |
4690 | if test "${am_cv_val_LC_MESSAGES+set}" = set; then | |
4691 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4692 | else | |
4693 | cat >conftest.$ac_ext <<_ACEOF | |
4694 | /* confdefs.h. */ | |
4695 | _ACEOF | |
4696 | cat confdefs.h >>conftest.$ac_ext | |
4697 | cat >>conftest.$ac_ext <<_ACEOF | |
4698 | /* end confdefs.h. */ | |
c906108c | 4699 | #include <locale.h> |
b7026657 AC |
4700 | int |
4701 | main () | |
4702 | { | |
c906108c | 4703 | return LC_MESSAGES |
b7026657 AC |
4704 | ; |
4705 | return 0; | |
4706 | } | |
4707 | _ACEOF | |
4708 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4709 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4710 | (eval $ac_link) 2>conftest.er1 | |
4711 | ac_status=$? | |
4712 | grep -v '^ *+' conftest.er1 >conftest.err | |
4713 | rm -f conftest.er1 | |
4714 | cat conftest.err >&5 | |
4715 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4716 | (exit $ac_status); } && | |
4717 | { ac_try='test -z "$ac_c_werror_flag" | |
4718 | || test ! -s conftest.err' | |
4719 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4720 | (eval $ac_try) 2>&5 | |
4721 | ac_status=$? | |
4722 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4723 | (exit $ac_status); }; } && | |
4724 | { ac_try='test -s conftest$ac_exeext' | |
4725 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4726 | (eval $ac_try) 2>&5 | |
4727 | ac_status=$? | |
4728 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4729 | (exit $ac_status); }; }; then | |
c906108c SS |
4730 | am_cv_val_LC_MESSAGES=yes |
4731 | else | |
b7026657 AC |
4732 | echo "$as_me: failed program was:" >&5 |
4733 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4734 | ||
4735 | am_cv_val_LC_MESSAGES=no | |
c906108c | 4736 | fi |
b7026657 AC |
4737 | rm -f conftest.err conftest.$ac_objext \ |
4738 | conftest$ac_exeext conftest.$ac_ext | |
c906108c | 4739 | fi |
b7026657 AC |
4740 | echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5 |
4741 | echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6 | |
c906108c | 4742 | if test $am_cv_val_LC_MESSAGES = yes; then |
b7026657 | 4743 | cat >>confdefs.h <<\_ACEOF |
c906108c | 4744 | #define HAVE_LC_MESSAGES 1 |
b7026657 | 4745 | _ACEOF |
c906108c SS |
4746 | |
4747 | fi | |
4748 | fi | |
b7026657 AC |
4749 | echo "$as_me:$LINENO: checking whether NLS is requested" >&5 |
4750 | echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6 | |
c906108c SS |
4751 | # Check whether --enable-nls or --disable-nls was given. |
4752 | if test "${enable_nls+set}" = set; then | |
4753 | enableval="$enable_nls" | |
4754 | USE_NLS=$enableval | |
4755 | else | |
4756 | USE_NLS=yes | |
b7026657 AC |
4757 | fi; |
4758 | echo "$as_me:$LINENO: result: $USE_NLS" >&5 | |
4759 | echo "${ECHO_T}$USE_NLS" >&6 | |
c906108c | 4760 | |
c906108c SS |
4761 | |
4762 | USE_INCLUDED_LIBINTL=no | |
4763 | ||
4764 | if test "$USE_NLS" = "yes"; then | |
b7026657 | 4765 | cat >>confdefs.h <<\_ACEOF |
c906108c | 4766 | #define ENABLE_NLS 1 |
b7026657 AC |
4767 | _ACEOF |
4768 | ||
4769 | echo "$as_me:$LINENO: checking whether included gettext is requested" >&5 | |
4770 | echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6 | |
c906108c | 4771 | |
b7026657 | 4772 | # Check whether --with-included-gettext or --without-included-gettext was given. |
c906108c SS |
4773 | if test "${with_included_gettext+set}" = set; then |
4774 | withval="$with_included_gettext" | |
4775 | nls_cv_force_use_gnu_gettext=$withval | |
4776 | else | |
4777 | nls_cv_force_use_gnu_gettext=no | |
b7026657 AC |
4778 | fi; |
4779 | echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5 | |
4780 | echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6 | |
c906108c SS |
4781 | |
4782 | nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" | |
4783 | if test "$nls_cv_force_use_gnu_gettext" != "yes"; then | |
4784 | nls_cv_header_intl= | |
4785 | nls_cv_header_libgt= | |
4786 | CATOBJEXT=NONE | |
4787 | ||
b7026657 AC |
4788 | if test "${ac_cv_header_libintl_h+set}" = set; then |
4789 | echo "$as_me:$LINENO: checking for libintl.h" >&5 | |
4790 | echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6 | |
4791 | if test "${ac_cv_header_libintl_h+set}" = set; then | |
4792 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4793 | fi | |
4794 | echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5 | |
4795 | echo "${ECHO_T}$ac_cv_header_libintl_h" >&6 | |
4796 | else | |
4797 | # Is the header compilable? | |
4798 | echo "$as_me:$LINENO: checking libintl.h usability" >&5 | |
4799 | echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6 | |
4800 | cat >conftest.$ac_ext <<_ACEOF | |
4801 | /* confdefs.h. */ | |
4802 | _ACEOF | |
4803 | cat confdefs.h >>conftest.$ac_ext | |
4804 | cat >>conftest.$ac_ext <<_ACEOF | |
4805 | /* end confdefs.h. */ | |
4806 | $ac_includes_default | |
4807 | #include <libintl.h> | |
4808 | _ACEOF | |
4809 | rm -f conftest.$ac_objext | |
4810 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4811 | (eval $ac_compile) 2>conftest.er1 | |
4812 | ac_status=$? | |
4813 | grep -v '^ *+' conftest.er1 >conftest.err | |
4814 | rm -f conftest.er1 | |
4815 | cat conftest.err >&5 | |
4816 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4817 | (exit $ac_status); } && | |
4818 | { ac_try='test -z "$ac_c_werror_flag" | |
4819 | || test ! -s conftest.err' | |
4820 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4821 | (eval $ac_try) 2>&5 | |
4822 | ac_status=$? | |
4823 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4824 | (exit $ac_status); }; } && | |
4825 | { ac_try='test -s conftest.$ac_objext' | |
4826 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4827 | (eval $ac_try) 2>&5 | |
4828 | ac_status=$? | |
4829 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4830 | (exit $ac_status); }; }; then | |
4831 | ac_header_compiler=yes | |
4832 | else | |
4833 | echo "$as_me: failed program was:" >&5 | |
4834 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4835 | ||
4836 | ac_header_compiler=no | |
4837 | fi | |
4838 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4839 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
4840 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
4841 | ||
4842 | # Is the header present? | |
4843 | echo "$as_me:$LINENO: checking libintl.h presence" >&5 | |
4844 | echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6 | |
4845 | cat >conftest.$ac_ext <<_ACEOF | |
4846 | /* confdefs.h. */ | |
4847 | _ACEOF | |
4848 | cat confdefs.h >>conftest.$ac_ext | |
4849 | cat >>conftest.$ac_ext <<_ACEOF | |
4850 | /* end confdefs.h. */ | |
c906108c | 4851 | #include <libintl.h> |
b7026657 AC |
4852 | _ACEOF |
4853 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4854 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4855 | ac_status=$? | |
4856 | grep -v '^ *+' conftest.er1 >conftest.err | |
4857 | rm -f conftest.er1 | |
4858 | cat conftest.err >&5 | |
4859 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4860 | (exit $ac_status); } >/dev/null; then | |
4861 | if test -s conftest.err; then | |
4862 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4863 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
4864 | else | |
4865 | ac_cpp_err= | |
4866 | fi | |
4867 | else | |
4868 | ac_cpp_err=yes | |
c906108c | 4869 | fi |
b7026657 AC |
4870 | if test -z "$ac_cpp_err"; then |
4871 | ac_header_preproc=yes | |
4872 | else | |
4873 | echo "$as_me: failed program was:" >&5 | |
4874 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4875 | ||
4876 | ac_header_preproc=no | |
4877 | fi | |
4878 | rm -f conftest.err conftest.$ac_ext | |
4879 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
4880 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
4881 | ||
4882 | # So? What about this header? | |
4883 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
4884 | yes:no: ) | |
4885 | { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
4886 | echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4887 | { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5 | |
4888 | echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;} | |
4889 | ac_header_preproc=yes | |
4890 | ;; | |
4891 | no:yes:* ) | |
4892 | { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5 | |
4893 | echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;} | |
4894 | { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5 | |
4895 | echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;} | |
4896 | { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5 | |
4897 | echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;} | |
4898 | { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5 | |
4899 | echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
4900 | { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5 | |
4901 | echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;} | |
4902 | { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5 | |
4903 | echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;} | |
4904 | ( | |
4905 | cat <<\_ASBOX | |
4906 | ## ------------------------------------------ ## | |
4907 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
4908 | ## ------------------------------------------ ## | |
4909 | _ASBOX | |
4910 | ) | | |
4911 | sed "s/^/$as_me: WARNING: /" >&2 | |
4912 | ;; | |
4913 | esac | |
4914 | echo "$as_me:$LINENO: checking for libintl.h" >&5 | |
4915 | echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6 | |
4916 | if test "${ac_cv_header_libintl_h+set}" = set; then | |
4917 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4918 | else | |
4919 | ac_cv_header_libintl_h=$ac_header_preproc | |
c906108c | 4920 | fi |
b7026657 AC |
4921 | echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5 |
4922 | echo "${ECHO_T}$ac_cv_header_libintl_h" >&6 | |
4923 | ||
4924 | fi | |
4925 | if test $ac_cv_header_libintl_h = yes; then | |
4926 | echo "$as_me:$LINENO: checking for gettext in libc" >&5 | |
4927 | echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6 | |
4928 | if test "${gt_cv_func_gettext_libc+set}" = set; then | |
4929 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 4930 | else |
b7026657 AC |
4931 | cat >conftest.$ac_ext <<_ACEOF |
4932 | /* confdefs.h. */ | |
4933 | _ACEOF | |
4934 | cat confdefs.h >>conftest.$ac_ext | |
4935 | cat >>conftest.$ac_ext <<_ACEOF | |
4936 | /* end confdefs.h. */ | |
c906108c | 4937 | #include <libintl.h> |
b7026657 AC |
4938 | int |
4939 | main () | |
4940 | { | |
c906108c | 4941 | return (int) gettext ("") |
b7026657 AC |
4942 | ; |
4943 | return 0; | |
4944 | } | |
4945 | _ACEOF | |
4946 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4947 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4948 | (eval $ac_link) 2>conftest.er1 | |
4949 | ac_status=$? | |
4950 | grep -v '^ *+' conftest.er1 >conftest.err | |
4951 | rm -f conftest.er1 | |
4952 | cat conftest.err >&5 | |
4953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4954 | (exit $ac_status); } && | |
4955 | { ac_try='test -z "$ac_c_werror_flag" | |
4956 | || test ! -s conftest.err' | |
4957 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4958 | (eval $ac_try) 2>&5 | |
4959 | ac_status=$? | |
4960 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4961 | (exit $ac_status); }; } && | |
4962 | { ac_try='test -s conftest$ac_exeext' | |
4963 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4964 | (eval $ac_try) 2>&5 | |
4965 | ac_status=$? | |
4966 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4967 | (exit $ac_status); }; }; then | |
c906108c SS |
4968 | gt_cv_func_gettext_libc=yes |
4969 | else | |
b7026657 AC |
4970 | echo "$as_me: failed program was:" >&5 |
4971 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4972 | ||
4973 | gt_cv_func_gettext_libc=no | |
c906108c | 4974 | fi |
b7026657 AC |
4975 | rm -f conftest.err conftest.$ac_objext \ |
4976 | conftest$ac_exeext conftest.$ac_ext | |
c906108c | 4977 | fi |
b7026657 AC |
4978 | echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5 |
4979 | echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6 | |
c906108c SS |
4980 | |
4981 | if test "$gt_cv_func_gettext_libc" != "yes"; then | |
b7026657 AC |
4982 | echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5 |
4983 | echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6 | |
4984 | if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then | |
4985 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 4986 | else |
b7026657 | 4987 | ac_check_lib_save_LIBS=$LIBS |
c906108c | 4988 | LIBS="-lintl $LIBS" |
b7026657 AC |
4989 | cat >conftest.$ac_ext <<_ACEOF |
4990 | /* confdefs.h. */ | |
4991 | _ACEOF | |
4992 | cat confdefs.h >>conftest.$ac_ext | |
4993 | cat >>conftest.$ac_ext <<_ACEOF | |
4994 | /* end confdefs.h. */ | |
4995 | ||
c906108c | 4996 | /* Override any gcc2 internal prototype to avoid an error. */ |
b7026657 AC |
4997 | #ifdef __cplusplus |
4998 | extern "C" | |
4999 | #endif | |
c906108c | 5000 | /* We use char because int might match the return type of a gcc2 |
b7026657 AC |
5001 | builtin and then its argument prototype would still apply. */ |
5002 | char bindtextdomain (); | |
5003 | int | |
5004 | main () | |
5005 | { | |
5006 | bindtextdomain (); | |
5007 | ; | |
5008 | return 0; | |
5009 | } | |
5010 | _ACEOF | |
5011 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5012 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5013 | (eval $ac_link) 2>conftest.er1 | |
5014 | ac_status=$? | |
5015 | grep -v '^ *+' conftest.er1 >conftest.err | |
5016 | rm -f conftest.er1 | |
5017 | cat conftest.err >&5 | |
5018 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5019 | (exit $ac_status); } && | |
5020 | { ac_try='test -z "$ac_c_werror_flag" | |
5021 | || test ! -s conftest.err' | |
5022 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5023 | (eval $ac_try) 2>&5 | |
5024 | ac_status=$? | |
5025 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5026 | (exit $ac_status); }; } && | |
5027 | { ac_try='test -s conftest$ac_exeext' | |
5028 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5029 | (eval $ac_try) 2>&5 | |
5030 | ac_status=$? | |
5031 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5032 | (exit $ac_status); }; }; then | |
5033 | ac_cv_lib_intl_bindtextdomain=yes | |
5034 | else | |
5035 | echo "$as_me: failed program was:" >&5 | |
5036 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5037 | ||
5038 | ac_cv_lib_intl_bindtextdomain=no | |
5039 | fi | |
5040 | rm -f conftest.err conftest.$ac_objext \ | |
5041 | conftest$ac_exeext conftest.$ac_ext | |
5042 | LIBS=$ac_check_lib_save_LIBS | |
5043 | fi | |
5044 | echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5 | |
5045 | echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6 | |
5046 | if test $ac_cv_lib_intl_bindtextdomain = yes; then | |
5047 | echo "$as_me:$LINENO: checking for gettext in libintl" >&5 | |
5048 | echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6 | |
5049 | if test "${gt_cv_func_gettext_libintl+set}" = set; then | |
5050 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5051 | else | |
5052 | cat >conftest.$ac_ext <<_ACEOF | |
5053 | /* confdefs.h. */ | |
5054 | _ACEOF | |
5055 | cat confdefs.h >>conftest.$ac_ext | |
5056 | cat >>conftest.$ac_ext <<_ACEOF | |
5057 | /* end confdefs.h. */ | |
c906108c | 5058 | |
b7026657 AC |
5059 | int |
5060 | main () | |
5061 | { | |
c906108c | 5062 | return (int) gettext ("") |
b7026657 AC |
5063 | ; |
5064 | return 0; | |
5065 | } | |
5066 | _ACEOF | |
5067 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5068 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5069 | (eval $ac_link) 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_exeext' | |
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 | |
c906108c SS |
5089 | gt_cv_func_gettext_libintl=yes |
5090 | else | |
b7026657 AC |
5091 | echo "$as_me: failed program was:" >&5 |
5092 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5093 | ||
5094 | gt_cv_func_gettext_libintl=no | |
c906108c | 5095 | fi |
b7026657 AC |
5096 | rm -f conftest.err conftest.$ac_objext \ |
5097 | conftest$ac_exeext conftest.$ac_ext | |
c906108c | 5098 | fi |
b7026657 AC |
5099 | echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5 |
5100 | echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6 | |
c906108c SS |
5101 | fi |
5102 | ||
5103 | fi | |
5104 | ||
5105 | if test "$gt_cv_func_gettext_libc" = "yes" \ | |
5106 | || test "$gt_cv_func_gettext_libintl" = "yes"; then | |
b7026657 | 5107 | cat >>confdefs.h <<\_ACEOF |
c906108c | 5108 | #define HAVE_GETTEXT 1 |
b7026657 | 5109 | _ACEOF |
c906108c SS |
5110 | |
5111 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
5112 | set dummy msgfmt; ac_word=$2 | |
b7026657 AC |
5113 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5114 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5115 | if test "${ac_cv_path_MSGFMT+set}" = set; then | |
5116 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c SS |
5117 | else |
5118 | case "$MSGFMT" in | |
5119 | /*) | |
5120 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
5121 | ;; | |
5122 | *) | |
5123 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
5124 | for ac_dir in $PATH; do | |
5125 | test -z "$ac_dir" && ac_dir=. | |
5126 | if test -f $ac_dir/$ac_word; then | |
5127 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then | |
5128 | ac_cv_path_MSGFMT="$ac_dir/$ac_word" | |
5129 | break | |
5130 | fi | |
5131 | fi | |
5132 | done | |
5133 | IFS="$ac_save_ifs" | |
5134 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no" | |
5135 | ;; | |
5136 | esac | |
5137 | fi | |
5138 | MSGFMT="$ac_cv_path_MSGFMT" | |
5139 | if test -n "$MSGFMT"; then | |
b7026657 AC |
5140 | echo "$as_me:$LINENO: result: $MSGFMT" >&5 |
5141 | echo "${ECHO_T}$MSGFMT" >&6 | |
c906108c | 5142 | else |
b7026657 AC |
5143 | echo "$as_me:$LINENO: result: no" >&5 |
5144 | echo "${ECHO_T}no" >&6 | |
c906108c SS |
5145 | fi |
5146 | if test "$MSGFMT" != "no"; then | |
b7026657 AC |
5147 | |
5148 | for ac_func in dcgettext | |
c906108c | 5149 | do |
b7026657 AC |
5150 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
5151 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
5152 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
5153 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
5154 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5155 | else | |
5156 | cat >conftest.$ac_ext <<_ACEOF | |
5157 | /* confdefs.h. */ | |
5158 | _ACEOF | |
5159 | cat confdefs.h >>conftest.$ac_ext | |
5160 | cat >>conftest.$ac_ext <<_ACEOF | |
5161 | /* end confdefs.h. */ | |
5162 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
5163 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
5164 | #define $ac_func innocuous_$ac_func | |
5165 | ||
c906108c | 5166 | /* System header to define __stub macros and hopefully few prototypes, |
b7026657 AC |
5167 | which can conflict with char $ac_func (); below. |
5168 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5169 | <limits.h> exists even on freestanding compilers. */ | |
5170 | ||
5171 | #ifdef __STDC__ | |
5172 | # include <limits.h> | |
5173 | #else | |
5174 | # include <assert.h> | |
5175 | #endif | |
c906108c | 5176 | |
b7026657 | 5177 | #undef $ac_func |
c906108c | 5178 | |
b7026657 AC |
5179 | /* Override any gcc2 internal prototype to avoid an error. */ |
5180 | #ifdef __cplusplus | |
5181 | extern "C" | |
5182 | { | |
5183 | #endif | |
5184 | /* We use char because int might match the return type of a gcc2 | |
5185 | builtin and then its argument prototype would still apply. */ | |
5186 | char $ac_func (); | |
c906108c SS |
5187 | /* The GNU C library defines this for functions which it implements |
5188 | to always fail with ENOSYS. Some functions are actually named | |
5189 | something starting with __ and the normal name is an alias. */ | |
5190 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
5191 | choke me | |
5192 | #else | |
b7026657 AC |
5193 | char (*f) () = $ac_func; |
5194 | #endif | |
5195 | #ifdef __cplusplus | |
5196 | } | |
c906108c SS |
5197 | #endif |
5198 | ||
b7026657 AC |
5199 | int |
5200 | main () | |
5201 | { | |
5202 | return f != $ac_func; | |
5203 | ; | |
5204 | return 0; | |
5205 | } | |
5206 | _ACEOF | |
5207 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5208 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5209 | (eval $ac_link) 2>conftest.er1 | |
5210 | ac_status=$? | |
5211 | grep -v '^ *+' conftest.er1 >conftest.err | |
5212 | rm -f conftest.er1 | |
5213 | cat conftest.err >&5 | |
5214 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5215 | (exit $ac_status); } && | |
5216 | { ac_try='test -z "$ac_c_werror_flag" | |
5217 | || test ! -s conftest.err' | |
5218 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5219 | (eval $ac_try) 2>&5 | |
5220 | ac_status=$? | |
5221 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5222 | (exit $ac_status); }; } && | |
5223 | { ac_try='test -s conftest$ac_exeext' | |
5224 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5225 | (eval $ac_try) 2>&5 | |
5226 | ac_status=$? | |
5227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5228 | (exit $ac_status); }; }; then | |
5229 | eval "$as_ac_var=yes" | |
5230 | else | |
5231 | echo "$as_me: failed program was:" >&5 | |
5232 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5233 | ||
5234 | eval "$as_ac_var=no" | |
5235 | fi | |
5236 | rm -f conftest.err conftest.$ac_objext \ | |
5237 | conftest$ac_exeext conftest.$ac_ext | |
5238 | fi | |
5239 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
5240 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
5241 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
5242 | cat >>confdefs.h <<_ACEOF | |
5243 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
5244 | _ACEOF | |
c906108c | 5245 | |
c906108c SS |
5246 | fi |
5247 | done | |
5248 | ||
5249 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | |
5250 | set dummy gmsgfmt; ac_word=$2 | |
b7026657 AC |
5251 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5252 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5253 | if test "${ac_cv_path_GMSGFMT+set}" = set; then | |
5254 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 5255 | else |
b7026657 AC |
5256 | case $GMSGFMT in |
5257 | [\\/]* | ?:[\\/]*) | |
c906108c SS |
5258 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. |
5259 | ;; | |
c906108c | 5260 | *) |
b7026657 AC |
5261 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5262 | for as_dir in $PATH | |
5263 | do | |
5264 | IFS=$as_save_IFS | |
5265 | test -z "$as_dir" && as_dir=. | |
5266 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5267 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5268 | ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" | |
5269 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5270 | break 2 | |
5271 | fi | |
5272 | done | |
5273 | done | |
5274 | ||
c906108c SS |
5275 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" |
5276 | ;; | |
5277 | esac | |
5278 | fi | |
b7026657 AC |
5279 | GMSGFMT=$ac_cv_path_GMSGFMT |
5280 | ||
c906108c | 5281 | if test -n "$GMSGFMT"; then |
b7026657 AC |
5282 | echo "$as_me:$LINENO: result: $GMSGFMT" >&5 |
5283 | echo "${ECHO_T}$GMSGFMT" >&6 | |
c906108c | 5284 | else |
b7026657 AC |
5285 | echo "$as_me:$LINENO: result: no" >&5 |
5286 | echo "${ECHO_T}no" >&6 | |
c906108c SS |
5287 | fi |
5288 | ||
5289 | # Extract the first word of "xgettext", so it can be a program name with args. | |
5290 | set dummy xgettext; ac_word=$2 | |
b7026657 AC |
5291 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5292 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5293 | if test "${ac_cv_path_XGETTEXT+set}" = set; then | |
5294 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c SS |
5295 | else |
5296 | case "$XGETTEXT" in | |
5297 | /*) | |
5298 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
5299 | ;; | |
5300 | *) | |
5301 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
5302 | for ac_dir in $PATH; do | |
5303 | test -z "$ac_dir" && ac_dir=. | |
5304 | if test -f $ac_dir/$ac_word; then | |
5305 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then | |
5306 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word" | |
5307 | break | |
5308 | fi | |
5309 | fi | |
5310 | done | |
5311 | IFS="$ac_save_ifs" | |
5312 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
5313 | ;; | |
5314 | esac | |
5315 | fi | |
5316 | XGETTEXT="$ac_cv_path_XGETTEXT" | |
5317 | if test -n "$XGETTEXT"; then | |
b7026657 AC |
5318 | echo "$as_me:$LINENO: result: $XGETTEXT" >&5 |
5319 | echo "${ECHO_T}$XGETTEXT" >&6 | |
c906108c | 5320 | else |
b7026657 AC |
5321 | echo "$as_me:$LINENO: result: no" >&5 |
5322 | echo "${ECHO_T}no" >&6 | |
c906108c SS |
5323 | fi |
5324 | ||
b7026657 AC |
5325 | cat >conftest.$ac_ext <<_ACEOF |
5326 | /* confdefs.h. */ | |
5327 | _ACEOF | |
5328 | cat confdefs.h >>conftest.$ac_ext | |
5329 | cat >>conftest.$ac_ext <<_ACEOF | |
5330 | /* end confdefs.h. */ | |
c906108c | 5331 | |
b7026657 AC |
5332 | int |
5333 | main () | |
5334 | { | |
c906108c SS |
5335 | extern int _nl_msg_cat_cntr; |
5336 | return _nl_msg_cat_cntr | |
b7026657 AC |
5337 | ; |
5338 | return 0; | |
5339 | } | |
5340 | _ACEOF | |
5341 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5342 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5343 | (eval $ac_link) 2>conftest.er1 | |
5344 | ac_status=$? | |
5345 | grep -v '^ *+' conftest.er1 >conftest.err | |
5346 | rm -f conftest.er1 | |
5347 | cat conftest.err >&5 | |
5348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5349 | (exit $ac_status); } && | |
5350 | { ac_try='test -z "$ac_c_werror_flag" | |
5351 | || test ! -s conftest.err' | |
5352 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5353 | (eval $ac_try) 2>&5 | |
5354 | ac_status=$? | |
5355 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5356 | (exit $ac_status); }; } && | |
5357 | { ac_try='test -s conftest$ac_exeext' | |
5358 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5359 | (eval $ac_try) 2>&5 | |
5360 | ac_status=$? | |
5361 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5362 | (exit $ac_status); }; }; then | |
c906108c SS |
5363 | CATOBJEXT=.gmo |
5364 | DATADIRNAME=share | |
5365 | else | |
b7026657 AC |
5366 | echo "$as_me: failed program was:" >&5 |
5367 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5368 | ||
5369 | CATOBJEXT=.mo | |
c906108c SS |
5370 | DATADIRNAME=lib |
5371 | fi | |
b7026657 AC |
5372 | rm -f conftest.err conftest.$ac_objext \ |
5373 | conftest$ac_exeext conftest.$ac_ext | |
c906108c SS |
5374 | INSTOBJEXT=.mo |
5375 | fi | |
5376 | fi | |
b7026657 | 5377 | |
c906108c SS |
5378 | fi |
5379 | ||
5380 | ||
b7026657 AC |
5381 | |
5382 | ||
c906108c SS |
5383 | if test "$CATOBJEXT" = "NONE"; then |
5384 | nls_cv_use_gnu_gettext=yes | |
5385 | fi | |
5386 | fi | |
5387 | ||
5388 | if test "$nls_cv_use_gnu_gettext" = "yes"; then | |
5389 | INTLOBJS="\$(GETTOBJS)" | |
5390 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
5391 | set dummy msgfmt; ac_word=$2 | |
b7026657 AC |
5392 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5393 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5394 | if test "${ac_cv_path_MSGFMT+set}" = set; then | |
5395 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c SS |
5396 | else |
5397 | case "$MSGFMT" in | |
5398 | /*) | |
5399 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
5400 | ;; | |
5401 | *) | |
5402 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
5403 | for ac_dir in $PATH; do | |
5404 | test -z "$ac_dir" && ac_dir=. | |
5405 | if test -f $ac_dir/$ac_word; then | |
5406 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then | |
5407 | ac_cv_path_MSGFMT="$ac_dir/$ac_word" | |
5408 | break | |
5409 | fi | |
5410 | fi | |
5411 | done | |
5412 | IFS="$ac_save_ifs" | |
5413 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt" | |
5414 | ;; | |
5415 | esac | |
5416 | fi | |
5417 | MSGFMT="$ac_cv_path_MSGFMT" | |
5418 | if test -n "$MSGFMT"; then | |
b7026657 AC |
5419 | echo "$as_me:$LINENO: result: $MSGFMT" >&5 |
5420 | echo "${ECHO_T}$MSGFMT" >&6 | |
c906108c | 5421 | else |
b7026657 AC |
5422 | echo "$as_me:$LINENO: result: no" >&5 |
5423 | echo "${ECHO_T}no" >&6 | |
c906108c SS |
5424 | fi |
5425 | ||
5426 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | |
5427 | set dummy gmsgfmt; ac_word=$2 | |
b7026657 AC |
5428 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5429 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5430 | if test "${ac_cv_path_GMSGFMT+set}" = set; then | |
5431 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 5432 | else |
b7026657 AC |
5433 | case $GMSGFMT in |
5434 | [\\/]* | ?:[\\/]*) | |
c906108c SS |
5435 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. |
5436 | ;; | |
c906108c | 5437 | *) |
b7026657 AC |
5438 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5439 | for as_dir in $PATH | |
5440 | do | |
5441 | IFS=$as_save_IFS | |
5442 | test -z "$as_dir" && as_dir=. | |
5443 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5444 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5445 | ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" | |
5446 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5447 | break 2 | |
5448 | fi | |
5449 | done | |
5450 | done | |
5451 | ||
c906108c SS |
5452 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" |
5453 | ;; | |
5454 | esac | |
5455 | fi | |
b7026657 AC |
5456 | GMSGFMT=$ac_cv_path_GMSGFMT |
5457 | ||
c906108c | 5458 | if test -n "$GMSGFMT"; then |
b7026657 AC |
5459 | echo "$as_me:$LINENO: result: $GMSGFMT" >&5 |
5460 | echo "${ECHO_T}$GMSGFMT" >&6 | |
c906108c | 5461 | else |
b7026657 AC |
5462 | echo "$as_me:$LINENO: result: no" >&5 |
5463 | echo "${ECHO_T}no" >&6 | |
c906108c SS |
5464 | fi |
5465 | ||
5466 | # Extract the first word of "xgettext", so it can be a program name with args. | |
5467 | set dummy xgettext; ac_word=$2 | |
b7026657 AC |
5468 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5469 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5470 | if test "${ac_cv_path_XGETTEXT+set}" = set; then | |
5471 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c SS |
5472 | else |
5473 | case "$XGETTEXT" in | |
5474 | /*) | |
5475 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
5476 | ;; | |
5477 | *) | |
5478 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
5479 | for ac_dir in $PATH; do | |
5480 | test -z "$ac_dir" && ac_dir=. | |
5481 | if test -f $ac_dir/$ac_word; then | |
5482 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then | |
5483 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word" | |
5484 | break | |
5485 | fi | |
5486 | fi | |
5487 | done | |
5488 | IFS="$ac_save_ifs" | |
5489 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
5490 | ;; | |
5491 | esac | |
5492 | fi | |
5493 | XGETTEXT="$ac_cv_path_XGETTEXT" | |
5494 | if test -n "$XGETTEXT"; then | |
b7026657 AC |
5495 | echo "$as_me:$LINENO: result: $XGETTEXT" >&5 |
5496 | echo "${ECHO_T}$XGETTEXT" >&6 | |
c906108c | 5497 | else |
b7026657 AC |
5498 | echo "$as_me:$LINENO: result: no" >&5 |
5499 | echo "${ECHO_T}no" >&6 | |
c906108c SS |
5500 | fi |
5501 | ||
b7026657 | 5502 | |
c906108c SS |
5503 | USE_INCLUDED_LIBINTL=yes |
5504 | CATOBJEXT=.gmo | |
5505 | INSTOBJEXT=.mo | |
5506 | DATADIRNAME=share | |
5507 | INTLDEPS='$(top_builddir)/../intl/libintl.a' | |
5508 | INTLLIBS=$INTLDEPS | |
5509 | LIBS=`echo $LIBS | sed -e 's/-lintl//'` | |
5510 | nls_cv_header_intl=libintl.h | |
5511 | nls_cv_header_libgt=libgettext.h | |
5512 | fi | |
5513 | ||
5514 | if test "$XGETTEXT" != ":"; then | |
5515 | if $XGETTEXT --omit-header /dev/null 2> /dev/null; then | |
5516 | : ; | |
5517 | else | |
b7026657 AC |
5518 | echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5 |
5519 | echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6 | |
c906108c SS |
5520 | XGETTEXT=":" |
5521 | fi | |
5522 | fi | |
5523 | ||
5524 | # We need to process the po/ directory. | |
5525 | POSUB=po | |
5526 | else | |
5527 | DATADIRNAME=share | |
5528 | nls_cv_header_intl=libintl.h | |
5529 | nls_cv_header_libgt=libgettext.h | |
5530 | fi | |
5531 | ||
5532 | # If this is used in GNU gettext we have to set USE_NLS to `yes' | |
5533 | # because some of the sources are only built for this goal. | |
5534 | if test "$PACKAGE" = gettext; then | |
5535 | USE_NLS=yes | |
5536 | USE_INCLUDED_LIBINTL=yes | |
5537 | fi | |
5538 | ||
5539 | for lang in $ALL_LINGUAS; do | |
5540 | GMOFILES="$GMOFILES $lang.gmo" | |
5541 | POFILES="$POFILES $lang.po" | |
5542 | done | |
5543 | ||
b7026657 AC |
5544 | |
5545 | ||
5546 | ||
5547 | ||
5548 | ||
5549 | ||
5550 | ||
5551 | ||
5552 | ||
5553 | ||
5554 | ||
5555 | ||
c906108c SS |
5556 | |
5557 | if test "x$CATOBJEXT" != "x"; then | |
5558 | if test "x$ALL_LINGUAS" = "x"; then | |
5559 | LINGUAS= | |
5560 | else | |
b7026657 AC |
5561 | echo "$as_me:$LINENO: checking for catalogs to be installed" >&5 |
5562 | echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6 | |
c906108c SS |
5563 | NEW_LINGUAS= |
5564 | for lang in ${LINGUAS=$ALL_LINGUAS}; do | |
5565 | case "$ALL_LINGUAS" in | |
5566 | *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;; | |
5567 | esac | |
5568 | done | |
5569 | LINGUAS=$NEW_LINGUAS | |
b7026657 AC |
5570 | echo "$as_me:$LINENO: result: $LINGUAS" >&5 |
5571 | echo "${ECHO_T}$LINGUAS" >&6 | |
c906108c SS |
5572 | fi |
5573 | ||
5574 | if test -n "$LINGUAS"; then | |
5575 | for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done | |
5576 | fi | |
5577 | fi | |
5578 | ||
5579 | if test $ac_cv_header_locale_h = yes; then | |
5580 | INCLUDE_LOCALE_H="#include <locale.h>" | |
5581 | else | |
5582 | INCLUDE_LOCALE_H="\ | |
5583 | /* The system does not provide the header <locale.h>. Take care yourself. */" | |
5584 | fi | |
b7026657 | 5585 | |
c906108c SS |
5586 | |
5587 | if test -f $srcdir/po2tbl.sed.in; then | |
5588 | if test "$CATOBJEXT" = ".cat"; then | |
b7026657 AC |
5589 | if test "${ac_cv_header_linux_version_h+set}" = set; then |
5590 | echo "$as_me:$LINENO: checking for linux/version.h" >&5 | |
5591 | echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6 | |
5592 | if test "${ac_cv_header_linux_version_h+set}" = set; then | |
5593 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5594 | fi | |
5595 | echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5 | |
5596 | echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6 | |
5597 | else | |
5598 | # Is the header compilable? | |
5599 | echo "$as_me:$LINENO: checking linux/version.h usability" >&5 | |
5600 | echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6 | |
5601 | cat >conftest.$ac_ext <<_ACEOF | |
5602 | /* confdefs.h. */ | |
5603 | _ACEOF | |
5604 | cat confdefs.h >>conftest.$ac_ext | |
5605 | cat >>conftest.$ac_ext <<_ACEOF | |
5606 | /* end confdefs.h. */ | |
5607 | $ac_includes_default | |
5608 | #include <linux/version.h> | |
5609 | _ACEOF | |
5610 | rm -f conftest.$ac_objext | |
5611 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5612 | (eval $ac_compile) 2>conftest.er1 | |
5613 | ac_status=$? | |
5614 | grep -v '^ *+' conftest.er1 >conftest.err | |
5615 | rm -f conftest.er1 | |
5616 | cat conftest.err >&5 | |
5617 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5618 | (exit $ac_status); } && | |
5619 | { ac_try='test -z "$ac_c_werror_flag" | |
5620 | || test ! -s conftest.err' | |
5621 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5622 | (eval $ac_try) 2>&5 | |
5623 | ac_status=$? | |
5624 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5625 | (exit $ac_status); }; } && | |
5626 | { ac_try='test -s conftest.$ac_objext' | |
5627 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5628 | (eval $ac_try) 2>&5 | |
5629 | ac_status=$? | |
5630 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5631 | (exit $ac_status); }; }; then | |
5632 | ac_header_compiler=yes | |
5633 | else | |
5634 | echo "$as_me: failed program was:" >&5 | |
5635 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5636 | ||
5637 | ac_header_compiler=no | |
5638 | fi | |
5639 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5640 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
5641 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
5642 | ||
5643 | # Is the header present? | |
5644 | echo "$as_me:$LINENO: checking linux/version.h presence" >&5 | |
5645 | echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6 | |
5646 | cat >conftest.$ac_ext <<_ACEOF | |
5647 | /* confdefs.h. */ | |
5648 | _ACEOF | |
5649 | cat confdefs.h >>conftest.$ac_ext | |
5650 | cat >>conftest.$ac_ext <<_ACEOF | |
5651 | /* end confdefs.h. */ | |
c906108c | 5652 | #include <linux/version.h> |
b7026657 AC |
5653 | _ACEOF |
5654 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5655 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5656 | ac_status=$? | |
5657 | grep -v '^ *+' conftest.er1 >conftest.err | |
5658 | rm -f conftest.er1 | |
5659 | cat conftest.err >&5 | |
5660 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5661 | (exit $ac_status); } >/dev/null; then | |
5662 | if test -s conftest.err; then | |
5663 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5664 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
5665 | else | |
5666 | ac_cpp_err= | |
5667 | fi | |
5668 | else | |
5669 | ac_cpp_err=yes | |
c906108c | 5670 | fi |
b7026657 AC |
5671 | if test -z "$ac_cpp_err"; then |
5672 | ac_header_preproc=yes | |
5673 | else | |
5674 | echo "$as_me: failed program was:" >&5 | |
5675 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5676 | ||
5677 | ac_header_preproc=no | |
5678 | fi | |
5679 | rm -f conftest.err conftest.$ac_ext | |
5680 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
5681 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5682 | ||
5683 | # So? What about this header? | |
5684 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
5685 | yes:no: ) | |
5686 | { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
5687 | echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5688 | { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5 | |
5689 | echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;} | |
5690 | ac_header_preproc=yes | |
5691 | ;; | |
5692 | no:yes:* ) | |
5693 | { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5 | |
5694 | echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;} | |
5695 | { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5 | |
5696 | echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;} | |
5697 | { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5 | |
5698 | echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;} | |
5699 | { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5 | |
5700 | echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
5701 | { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5 | |
5702 | echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;} | |
5703 | { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5 | |
5704 | echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;} | |
5705 | ( | |
5706 | cat <<\_ASBOX | |
5707 | ## ------------------------------------------ ## | |
5708 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
5709 | ## ------------------------------------------ ## | |
5710 | _ASBOX | |
5711 | ) | | |
5712 | sed "s/^/$as_me: WARNING: /" >&2 | |
5713 | ;; | |
5714 | esac | |
5715 | echo "$as_me:$LINENO: checking for linux/version.h" >&5 | |
5716 | echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6 | |
5717 | if test "${ac_cv_header_linux_version_h+set}" = set; then | |
5718 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5719 | else | |
5720 | ac_cv_header_linux_version_h=$ac_header_preproc | |
c906108c | 5721 | fi |
b7026657 AC |
5722 | echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5 |
5723 | echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6 | |
5724 | ||
5725 | fi | |
5726 | if test $ac_cv_header_linux_version_h = yes; then | |
c906108c SS |
5727 | msgformat=linux |
5728 | else | |
b7026657 | 5729 | msgformat=xopen |
c906108c SS |
5730 | fi |
5731 | ||
5732 | ||
b7026657 | 5733 | |
c906108c SS |
5734 | sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed |
5735 | fi | |
5736 | sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \ | |
5737 | $srcdir/po2tbl.sed.in > po2tbl.sed | |
5738 | fi | |
5739 | ||
5740 | if test "$PACKAGE" = "gettext"; then | |
5741 | GT_NO="#NO#" | |
5742 | GT_YES= | |
5743 | else | |
5744 | GT_NO= | |
5745 | GT_YES="#YES#" | |
5746 | fi | |
b7026657 AC |
5747 | |
5748 | ||
c906108c SS |
5749 | |
5750 | MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs" | |
b7026657 | 5751 | |
c906108c SS |
5752 | |
5753 | l= | |
b7026657 | 5754 | |
c906108c SS |
5755 | |
5756 | if test -d $srcdir/po; then | |
5757 | test -d po || mkdir po | |
5758 | if test "x$srcdir" != "x."; then | |
5759 | if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then | |
5760 | posrcprefix="$srcdir/" | |
5761 | else | |
5762 | posrcprefix="../$srcdir/" | |
5763 | fi | |
5764 | else | |
5765 | posrcprefix="../" | |
5766 | fi | |
5767 | rm -f po/POTFILES | |
5768 | sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \ | |
5769 | < $srcdir/po/POTFILES.in > po/POTFILES | |
5770 | fi | |
b7026657 | 5771 | |
c906108c SS |
5772 | |
5773 | # Check for common headers. | |
5774 | # FIXME: Seems to me this can cause problems for i386-windows hosts. | |
5775 | # At one point there were hardcoded AC_DEFINE's if ${host} = i386-*-windows*. | |
b7026657 AC |
5776 | |
5777 | ||
5778 | ||
5779 | ||
5780 | ||
5781 | for ac_header in stdlib.h string.h strings.h unistd.h time.h | |
c906108c | 5782 | do |
b7026657 AC |
5783 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
5784 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5785 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5786 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
5787 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5788 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5789 | fi | |
5790 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
5791 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5792 | else | |
5793 | # Is the header compilable? | |
5794 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
5795 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
5796 | cat >conftest.$ac_ext <<_ACEOF | |
5797 | /* confdefs.h. */ | |
5798 | _ACEOF | |
5799 | cat confdefs.h >>conftest.$ac_ext | |
5800 | cat >>conftest.$ac_ext <<_ACEOF | |
5801 | /* end confdefs.h. */ | |
5802 | $ac_includes_default | |
5803 | #include <$ac_header> | |
5804 | _ACEOF | |
5805 | rm -f conftest.$ac_objext | |
5806 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5807 | (eval $ac_compile) 2>conftest.er1 | |
5808 | ac_status=$? | |
5809 | grep -v '^ *+' conftest.er1 >conftest.err | |
5810 | rm -f conftest.er1 | |
5811 | cat conftest.err >&5 | |
5812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5813 | (exit $ac_status); } && | |
5814 | { ac_try='test -z "$ac_c_werror_flag" | |
5815 | || test ! -s conftest.err' | |
5816 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5817 | (eval $ac_try) 2>&5 | |
5818 | ac_status=$? | |
5819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5820 | (exit $ac_status); }; } && | |
5821 | { ac_try='test -s conftest.$ac_objext' | |
5822 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5823 | (eval $ac_try) 2>&5 | |
5824 | ac_status=$? | |
5825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5826 | (exit $ac_status); }; }; then | |
5827 | ac_header_compiler=yes | |
5828 | else | |
5829 | echo "$as_me: failed program was:" >&5 | |
5830 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5831 | ||
5832 | ac_header_compiler=no | |
5833 | fi | |
5834 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5835 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
5836 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
5837 | ||
5838 | # Is the header present? | |
5839 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
5840 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
5841 | cat >conftest.$ac_ext <<_ACEOF | |
5842 | /* confdefs.h. */ | |
5843 | _ACEOF | |
5844 | cat confdefs.h >>conftest.$ac_ext | |
5845 | cat >>conftest.$ac_ext <<_ACEOF | |
5846 | /* end confdefs.h. */ | |
5847 | #include <$ac_header> | |
5848 | _ACEOF | |
5849 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5850 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5851 | ac_status=$? | |
5852 | grep -v '^ *+' conftest.er1 >conftest.err | |
5853 | rm -f conftest.er1 | |
5854 | cat conftest.err >&5 | |
5855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5856 | (exit $ac_status); } >/dev/null; then | |
5857 | if test -s conftest.err; then | |
5858 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5859 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
5860 | else | |
5861 | ac_cpp_err= | |
5862 | fi | |
5863 | else | |
5864 | ac_cpp_err=yes | |
c906108c | 5865 | fi |
b7026657 AC |
5866 | if test -z "$ac_cpp_err"; then |
5867 | ac_header_preproc=yes | |
5868 | else | |
5869 | echo "$as_me: failed program was:" >&5 | |
5870 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5871 | ||
5872 | ac_header_preproc=no | |
c906108c | 5873 | fi |
b7026657 AC |
5874 | rm -f conftest.err conftest.$ac_ext |
5875 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
5876 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5877 | ||
5878 | # So? What about this header? | |
5879 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
5880 | yes:no: ) | |
5881 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
5882 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5883 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
5884 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
5885 | ac_header_preproc=yes | |
5886 | ;; | |
5887 | no:yes:* ) | |
5888 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
5889 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
5890 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
5891 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
5892 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
5893 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
5894 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
5895 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
5896 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
5897 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
5898 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
5899 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
5900 | ( | |
5901 | cat <<\_ASBOX | |
5902 | ## ------------------------------------------ ## | |
5903 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
5904 | ## ------------------------------------------ ## | |
5905 | _ASBOX | |
5906 | ) | | |
5907 | sed "s/^/$as_me: WARNING: /" >&2 | |
5908 | ;; | |
5909 | esac | |
5910 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5911 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
5912 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5913 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 5914 | else |
b7026657 AC |
5915 | eval "$as_ac_Header=\$ac_header_preproc" |
5916 | fi | |
5917 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
5918 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5919 | ||
5920 | fi | |
5921 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
5922 | cat >>confdefs.h <<_ACEOF | |
5923 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
5924 | _ACEOF | |
5925 | ||
c906108c | 5926 | fi |
b7026657 | 5927 | |
c906108c SS |
5928 | done |
5929 | ||
b7026657 AC |
5930 | |
5931 | ||
5932 | for ac_header in sys/time.h sys/resource.h | |
c906108c | 5933 | do |
b7026657 AC |
5934 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
5935 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5936 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
5937 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
5938 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
5939 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5940 | fi | |
5941 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
5942 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
5943 | else | |
5944 | # Is the header compilable? | |
5945 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
5946 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
5947 | cat >conftest.$ac_ext <<_ACEOF | |
5948 | /* confdefs.h. */ | |
5949 | _ACEOF | |
5950 | cat confdefs.h >>conftest.$ac_ext | |
5951 | cat >>conftest.$ac_ext <<_ACEOF | |
5952 | /* end confdefs.h. */ | |
5953 | $ac_includes_default | |
5954 | #include <$ac_header> | |
5955 | _ACEOF | |
5956 | rm -f conftest.$ac_objext | |
5957 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5958 | (eval $ac_compile) 2>conftest.er1 | |
5959 | ac_status=$? | |
5960 | grep -v '^ *+' conftest.er1 >conftest.err | |
5961 | rm -f conftest.er1 | |
5962 | cat conftest.err >&5 | |
5963 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5964 | (exit $ac_status); } && | |
5965 | { ac_try='test -z "$ac_c_werror_flag" | |
5966 | || test ! -s conftest.err' | |
5967 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5968 | (eval $ac_try) 2>&5 | |
5969 | ac_status=$? | |
5970 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5971 | (exit $ac_status); }; } && | |
5972 | { ac_try='test -s conftest.$ac_objext' | |
5973 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5974 | (eval $ac_try) 2>&5 | |
5975 | ac_status=$? | |
5976 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5977 | (exit $ac_status); }; }; then | |
5978 | ac_header_compiler=yes | |
5979 | else | |
5980 | echo "$as_me: failed program was:" >&5 | |
5981 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5982 | ||
5983 | ac_header_compiler=no | |
5984 | fi | |
5985 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5986 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
5987 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
5988 | ||
5989 | # Is the header present? | |
5990 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
5991 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
5992 | cat >conftest.$ac_ext <<_ACEOF | |
5993 | /* confdefs.h. */ | |
5994 | _ACEOF | |
5995 | cat confdefs.h >>conftest.$ac_ext | |
5996 | cat >>conftest.$ac_ext <<_ACEOF | |
5997 | /* end confdefs.h. */ | |
5998 | #include <$ac_header> | |
5999 | _ACEOF | |
6000 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
6001 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
6002 | ac_status=$? | |
6003 | grep -v '^ *+' conftest.er1 >conftest.err | |
6004 | rm -f conftest.er1 | |
6005 | cat conftest.err >&5 | |
6006 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6007 | (exit $ac_status); } >/dev/null; then | |
6008 | if test -s conftest.err; then | |
6009 | ac_cpp_err=$ac_c_preproc_warn_flag | |
6010 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
6011 | else | |
6012 | ac_cpp_err= | |
6013 | fi | |
6014 | else | |
6015 | ac_cpp_err=yes | |
c906108c | 6016 | fi |
b7026657 AC |
6017 | if test -z "$ac_cpp_err"; then |
6018 | ac_header_preproc=yes | |
6019 | else | |
6020 | echo "$as_me: failed program was:" >&5 | |
6021 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6022 | ||
6023 | ac_header_preproc=no | |
c906108c | 6024 | fi |
b7026657 AC |
6025 | rm -f conftest.err conftest.$ac_ext |
6026 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
6027 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
6028 | ||
6029 | # So? What about this header? | |
6030 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
6031 | yes:no: ) | |
6032 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
6033 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
6034 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
6035 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
6036 | ac_header_preproc=yes | |
6037 | ;; | |
6038 | no:yes:* ) | |
6039 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
6040 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
6041 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
6042 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6043 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6044 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
6045 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
6046 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
6047 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
6048 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
6049 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
6050 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
6051 | ( | |
6052 | cat <<\_ASBOX | |
6053 | ## ------------------------------------------ ## | |
6054 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
6055 | ## ------------------------------------------ ## | |
6056 | _ASBOX | |
6057 | ) | | |
6058 | sed "s/^/$as_me: WARNING: /" >&2 | |
6059 | ;; | |
6060 | esac | |
6061 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6062 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6063 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6064 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 6065 | else |
b7026657 AC |
6066 | eval "$as_ac_Header=\$ac_header_preproc" |
6067 | fi | |
6068 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6069 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6070 | ||
6071 | fi | |
6072 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
6073 | cat >>confdefs.h <<_ACEOF | |
6074 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6075 | _ACEOF | |
6076 | ||
c906108c | 6077 | fi |
b7026657 | 6078 | |
c906108c SS |
6079 | done |
6080 | ||
b7026657 AC |
6081 | |
6082 | ||
6083 | for ac_header in fcntl.h fpu_control.h | |
c906108c | 6084 | do |
b7026657 AC |
6085 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
6086 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6087 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6088 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6089 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6090 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6091 | fi | |
6092 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6093 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6094 | else | |
6095 | # Is the header compilable? | |
6096 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
6097 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
6098 | cat >conftest.$ac_ext <<_ACEOF | |
6099 | /* confdefs.h. */ | |
6100 | _ACEOF | |
6101 | cat confdefs.h >>conftest.$ac_ext | |
6102 | cat >>conftest.$ac_ext <<_ACEOF | |
6103 | /* end confdefs.h. */ | |
6104 | $ac_includes_default | |
6105 | #include <$ac_header> | |
6106 | _ACEOF | |
6107 | rm -f conftest.$ac_objext | |
6108 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6109 | (eval $ac_compile) 2>conftest.er1 | |
6110 | ac_status=$? | |
6111 | grep -v '^ *+' conftest.er1 >conftest.err | |
6112 | rm -f conftest.er1 | |
6113 | cat conftest.err >&5 | |
6114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6115 | (exit $ac_status); } && | |
6116 | { ac_try='test -z "$ac_c_werror_flag" | |
6117 | || test ! -s conftest.err' | |
6118 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6119 | (eval $ac_try) 2>&5 | |
6120 | ac_status=$? | |
6121 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6122 | (exit $ac_status); }; } && | |
6123 | { ac_try='test -s conftest.$ac_objext' | |
6124 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6125 | (eval $ac_try) 2>&5 | |
6126 | ac_status=$? | |
6127 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6128 | (exit $ac_status); }; }; then | |
6129 | ac_header_compiler=yes | |
6130 | else | |
6131 | echo "$as_me: failed program was:" >&5 | |
6132 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6133 | ||
6134 | ac_header_compiler=no | |
6135 | fi | |
6136 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6137 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
6138 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
6139 | ||
6140 | # Is the header present? | |
6141 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
6142 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
6143 | cat >conftest.$ac_ext <<_ACEOF | |
6144 | /* confdefs.h. */ | |
6145 | _ACEOF | |
6146 | cat confdefs.h >>conftest.$ac_ext | |
6147 | cat >>conftest.$ac_ext <<_ACEOF | |
6148 | /* end confdefs.h. */ | |
6149 | #include <$ac_header> | |
6150 | _ACEOF | |
6151 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
6152 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
6153 | ac_status=$? | |
6154 | grep -v '^ *+' conftest.er1 >conftest.err | |
6155 | rm -f conftest.er1 | |
6156 | cat conftest.err >&5 | |
6157 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6158 | (exit $ac_status); } >/dev/null; then | |
6159 | if test -s conftest.err; then | |
6160 | ac_cpp_err=$ac_c_preproc_warn_flag | |
6161 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
6162 | else | |
6163 | ac_cpp_err= | |
6164 | fi | |
6165 | else | |
6166 | ac_cpp_err=yes | |
c906108c | 6167 | fi |
b7026657 AC |
6168 | if test -z "$ac_cpp_err"; then |
6169 | ac_header_preproc=yes | |
6170 | else | |
6171 | echo "$as_me: failed program was:" >&5 | |
6172 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6173 | ||
6174 | ac_header_preproc=no | |
c906108c | 6175 | fi |
b7026657 AC |
6176 | rm -f conftest.err conftest.$ac_ext |
6177 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
6178 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
6179 | ||
6180 | # So? What about this header? | |
6181 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
6182 | yes:no: ) | |
6183 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
6184 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
6185 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
6186 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
6187 | ac_header_preproc=yes | |
6188 | ;; | |
6189 | no:yes:* ) | |
6190 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
6191 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
6192 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
6193 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6194 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6195 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
6196 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
6197 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
6198 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
6199 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
6200 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
6201 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
6202 | ( | |
6203 | cat <<\_ASBOX | |
6204 | ## ------------------------------------------ ## | |
6205 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
6206 | ## ------------------------------------------ ## | |
6207 | _ASBOX | |
6208 | ) | | |
6209 | sed "s/^/$as_me: WARNING: /" >&2 | |
6210 | ;; | |
6211 | esac | |
6212 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6213 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6214 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6215 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 6216 | else |
b7026657 AC |
6217 | eval "$as_ac_Header=\$ac_header_preproc" |
6218 | fi | |
6219 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6220 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6221 | ||
6222 | fi | |
6223 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
6224 | cat >>confdefs.h <<_ACEOF | |
6225 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6226 | _ACEOF | |
6227 | ||
c906108c | 6228 | fi |
b7026657 | 6229 | |
c906108c SS |
6230 | done |
6231 | ||
b7026657 AC |
6232 | |
6233 | ||
6234 | ||
6235 | for ac_header in dlfcn.h errno.h sys/stat.h | |
c906108c | 6236 | do |
b7026657 AC |
6237 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
6238 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6239 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6240 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6241 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6242 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6243 | fi | |
6244 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6245 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6246 | else | |
6247 | # Is the header compilable? | |
6248 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
6249 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
6250 | cat >conftest.$ac_ext <<_ACEOF | |
6251 | /* confdefs.h. */ | |
6252 | _ACEOF | |
6253 | cat confdefs.h >>conftest.$ac_ext | |
6254 | cat >>conftest.$ac_ext <<_ACEOF | |
6255 | /* end confdefs.h. */ | |
6256 | $ac_includes_default | |
6257 | #include <$ac_header> | |
6258 | _ACEOF | |
6259 | rm -f conftest.$ac_objext | |
6260 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6261 | (eval $ac_compile) 2>conftest.er1 | |
6262 | ac_status=$? | |
6263 | grep -v '^ *+' conftest.er1 >conftest.err | |
6264 | rm -f conftest.er1 | |
6265 | cat conftest.err >&5 | |
6266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6267 | (exit $ac_status); } && | |
6268 | { ac_try='test -z "$ac_c_werror_flag" | |
6269 | || test ! -s conftest.err' | |
6270 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6271 | (eval $ac_try) 2>&5 | |
6272 | ac_status=$? | |
6273 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6274 | (exit $ac_status); }; } && | |
6275 | { ac_try='test -s conftest.$ac_objext' | |
6276 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6277 | (eval $ac_try) 2>&5 | |
6278 | ac_status=$? | |
6279 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6280 | (exit $ac_status); }; }; then | |
6281 | ac_header_compiler=yes | |
6282 | else | |
6283 | echo "$as_me: failed program was:" >&5 | |
6284 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6285 | ||
6286 | ac_header_compiler=no | |
6287 | fi | |
6288 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6289 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
6290 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
6291 | ||
6292 | # Is the header present? | |
6293 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
6294 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
6295 | cat >conftest.$ac_ext <<_ACEOF | |
6296 | /* confdefs.h. */ | |
6297 | _ACEOF | |
6298 | cat confdefs.h >>conftest.$ac_ext | |
6299 | cat >>conftest.$ac_ext <<_ACEOF | |
6300 | /* end confdefs.h. */ | |
6301 | #include <$ac_header> | |
6302 | _ACEOF | |
6303 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
6304 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
6305 | ac_status=$? | |
6306 | grep -v '^ *+' conftest.er1 >conftest.err | |
6307 | rm -f conftest.er1 | |
6308 | cat conftest.err >&5 | |
6309 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6310 | (exit $ac_status); } >/dev/null; then | |
6311 | if test -s conftest.err; then | |
6312 | ac_cpp_err=$ac_c_preproc_warn_flag | |
6313 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
6314 | else | |
6315 | ac_cpp_err= | |
6316 | fi | |
6317 | else | |
6318 | ac_cpp_err=yes | |
c906108c | 6319 | fi |
b7026657 AC |
6320 | if test -z "$ac_cpp_err"; then |
6321 | ac_header_preproc=yes | |
6322 | else | |
6323 | echo "$as_me: failed program was:" >&5 | |
6324 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6325 | ||
6326 | ac_header_preproc=no | |
c906108c | 6327 | fi |
b7026657 AC |
6328 | rm -f conftest.err conftest.$ac_ext |
6329 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
6330 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
6331 | ||
6332 | # So? What about this header? | |
6333 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
6334 | yes:no: ) | |
6335 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
6336 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
6337 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
6338 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
6339 | ac_header_preproc=yes | |
6340 | ;; | |
6341 | no:yes:* ) | |
6342 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
6343 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
6344 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
6345 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
6346 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
6347 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
6348 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
6349 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
6350 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
6351 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
6352 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
6353 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
6354 | ( | |
6355 | cat <<\_ASBOX | |
6356 | ## ------------------------------------------ ## | |
6357 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
6358 | ## ------------------------------------------ ## | |
6359 | _ASBOX | |
6360 | ) | | |
6361 | sed "s/^/$as_me: WARNING: /" >&2 | |
6362 | ;; | |
6363 | esac | |
6364 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6365 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6366 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6367 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 6368 | else |
b7026657 AC |
6369 | eval "$as_ac_Header=\$ac_header_preproc" |
6370 | fi | |
6371 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6372 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6373 | ||
6374 | fi | |
6375 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
6376 | cat >>confdefs.h <<_ACEOF | |
6377 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
6378 | _ACEOF | |
6379 | ||
c906108c | 6380 | fi |
b7026657 | 6381 | |
c906108c SS |
6382 | done |
6383 | ||
b7026657 AC |
6384 | |
6385 | ||
6386 | ||
6387 | ||
c906108c SS |
6388 | for ac_func in getrusage time sigaction __setfpucw |
6389 | do | |
b7026657 AC |
6390 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
6391 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
6392 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
6393 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
6394 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6395 | else | |
6396 | cat >conftest.$ac_ext <<_ACEOF | |
6397 | /* confdefs.h. */ | |
6398 | _ACEOF | |
6399 | cat confdefs.h >>conftest.$ac_ext | |
6400 | cat >>conftest.$ac_ext <<_ACEOF | |
6401 | /* end confdefs.h. */ | |
6402 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
6403 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
6404 | #define $ac_func innocuous_$ac_func | |
6405 | ||
c906108c | 6406 | /* System header to define __stub macros and hopefully few prototypes, |
b7026657 AC |
6407 | which can conflict with char $ac_func (); below. |
6408 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
6409 | <limits.h> exists even on freestanding compilers. */ | |
6410 | ||
6411 | #ifdef __STDC__ | |
6412 | # include <limits.h> | |
6413 | #else | |
6414 | # include <assert.h> | |
6415 | #endif | |
c906108c | 6416 | |
b7026657 | 6417 | #undef $ac_func |
c906108c | 6418 | |
b7026657 AC |
6419 | /* Override any gcc2 internal prototype to avoid an error. */ |
6420 | #ifdef __cplusplus | |
6421 | extern "C" | |
6422 | { | |
6423 | #endif | |
6424 | /* We use char because int might match the return type of a gcc2 | |
6425 | builtin and then its argument prototype would still apply. */ | |
6426 | char $ac_func (); | |
c906108c SS |
6427 | /* The GNU C library defines this for functions which it implements |
6428 | to always fail with ENOSYS. Some functions are actually named | |
6429 | something starting with __ and the normal name is an alias. */ | |
6430 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
6431 | choke me | |
6432 | #else | |
b7026657 AC |
6433 | char (*f) () = $ac_func; |
6434 | #endif | |
6435 | #ifdef __cplusplus | |
6436 | } | |
c906108c SS |
6437 | #endif |
6438 | ||
b7026657 AC |
6439 | int |
6440 | main () | |
6441 | { | |
6442 | return f != $ac_func; | |
6443 | ; | |
6444 | return 0; | |
6445 | } | |
6446 | _ACEOF | |
6447 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6448 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6449 | (eval $ac_link) 2>conftest.er1 | |
6450 | ac_status=$? | |
6451 | grep -v '^ *+' conftest.er1 >conftest.err | |
6452 | rm -f conftest.er1 | |
6453 | cat conftest.err >&5 | |
6454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6455 | (exit $ac_status); } && | |
6456 | { ac_try='test -z "$ac_c_werror_flag" | |
6457 | || test ! -s conftest.err' | |
6458 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6459 | (eval $ac_try) 2>&5 | |
6460 | ac_status=$? | |
6461 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6462 | (exit $ac_status); }; } && | |
6463 | { ac_try='test -s conftest$ac_exeext' | |
6464 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6465 | (eval $ac_try) 2>&5 | |
6466 | ac_status=$? | |
6467 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6468 | (exit $ac_status); }; }; then | |
6469 | eval "$as_ac_var=yes" | |
6470 | else | |
6471 | echo "$as_me: failed program was:" >&5 | |
6472 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6473 | ||
6474 | eval "$as_ac_var=no" | |
6475 | fi | |
6476 | rm -f conftest.err conftest.$ac_objext \ | |
6477 | conftest$ac_exeext conftest.$ac_ext | |
6478 | fi | |
6479 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
6480 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
6481 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
6482 | cat >>confdefs.h <<_ACEOF | |
6483 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
6484 | _ACEOF | |
c906108c | 6485 | |
c906108c SS |
6486 | fi |
6487 | done | |
6488 | ||
6489 | ||
6490 | # Check for socket libraries | |
b7026657 AC |
6491 | |
6492 | echo "$as_me:$LINENO: checking for bind in -lsocket" >&5 | |
6493 | echo $ECHO_N "checking for bind in -lsocket... $ECHO_C" >&6 | |
6494 | if test "${ac_cv_lib_socket_bind+set}" = set; then | |
6495 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 6496 | else |
b7026657 | 6497 | ac_check_lib_save_LIBS=$LIBS |
c906108c | 6498 | LIBS="-lsocket $LIBS" |
b7026657 AC |
6499 | cat >conftest.$ac_ext <<_ACEOF |
6500 | /* confdefs.h. */ | |
6501 | _ACEOF | |
6502 | cat confdefs.h >>conftest.$ac_ext | |
6503 | cat >>conftest.$ac_ext <<_ACEOF | |
6504 | /* end confdefs.h. */ | |
6505 | ||
c906108c | 6506 | /* Override any gcc2 internal prototype to avoid an error. */ |
b7026657 AC |
6507 | #ifdef __cplusplus |
6508 | extern "C" | |
6509 | #endif | |
c906108c | 6510 | /* We use char because int might match the return type of a gcc2 |
b7026657 AC |
6511 | builtin and then its argument prototype would still apply. */ |
6512 | char bind (); | |
6513 | int | |
6514 | main () | |
6515 | { | |
6516 | bind (); | |
6517 | ; | |
6518 | return 0; | |
6519 | } | |
6520 | _ACEOF | |
6521 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6522 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6523 | (eval $ac_link) 2>conftest.er1 | |
6524 | ac_status=$? | |
6525 | grep -v '^ *+' conftest.er1 >conftest.err | |
6526 | rm -f conftest.er1 | |
6527 | cat conftest.err >&5 | |
6528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6529 | (exit $ac_status); } && | |
6530 | { ac_try='test -z "$ac_c_werror_flag" | |
6531 | || test ! -s conftest.err' | |
6532 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6533 | (eval $ac_try) 2>&5 | |
6534 | ac_status=$? | |
6535 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6536 | (exit $ac_status); }; } && | |
6537 | { ac_try='test -s conftest$ac_exeext' | |
6538 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6539 | (eval $ac_try) 2>&5 | |
6540 | ac_status=$? | |
6541 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6542 | (exit $ac_status); }; }; then | |
6543 | ac_cv_lib_socket_bind=yes | |
6544 | else | |
6545 | echo "$as_me: failed program was:" >&5 | |
6546 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6547 | ||
6548 | ac_cv_lib_socket_bind=no | |
6549 | fi | |
6550 | rm -f conftest.err conftest.$ac_objext \ | |
6551 | conftest$ac_exeext conftest.$ac_ext | |
6552 | LIBS=$ac_check_lib_save_LIBS | |
6553 | fi | |
6554 | echo "$as_me:$LINENO: result: $ac_cv_lib_socket_bind" >&5 | |
6555 | echo "${ECHO_T}$ac_cv_lib_socket_bind" >&6 | |
6556 | if test $ac_cv_lib_socket_bind = yes; then | |
6557 | cat >>confdefs.h <<_ACEOF | |
6558 | #define HAVE_LIBSOCKET 1 | |
6559 | _ACEOF | |
c906108c SS |
6560 | |
6561 | LIBS="-lsocket $LIBS" | |
6562 | ||
c906108c SS |
6563 | fi |
6564 | ||
b7026657 AC |
6565 | |
6566 | echo "$as_me:$LINENO: checking for gethostbyname in -lnsl" >&5 | |
6567 | echo $ECHO_N "checking for gethostbyname in -lnsl... $ECHO_C" >&6 | |
6568 | if test "${ac_cv_lib_nsl_gethostbyname+set}" = set; then | |
6569 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 6570 | else |
b7026657 | 6571 | ac_check_lib_save_LIBS=$LIBS |
c906108c | 6572 | LIBS="-lnsl $LIBS" |
b7026657 AC |
6573 | cat >conftest.$ac_ext <<_ACEOF |
6574 | /* confdefs.h. */ | |
6575 | _ACEOF | |
6576 | cat confdefs.h >>conftest.$ac_ext | |
6577 | cat >>conftest.$ac_ext <<_ACEOF | |
6578 | /* end confdefs.h. */ | |
6579 | ||
c906108c | 6580 | /* Override any gcc2 internal prototype to avoid an error. */ |
b7026657 AC |
6581 | #ifdef __cplusplus |
6582 | extern "C" | |
6583 | #endif | |
c906108c | 6584 | /* We use char because int might match the return type of a gcc2 |
b7026657 AC |
6585 | builtin and then its argument prototype would still apply. */ |
6586 | char gethostbyname (); | |
6587 | int | |
6588 | main () | |
6589 | { | |
6590 | gethostbyname (); | |
6591 | ; | |
6592 | return 0; | |
6593 | } | |
6594 | _ACEOF | |
6595 | rm -f conftest.$ac_objext conftest$ac_exeext | |
6596 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6597 | (eval $ac_link) 2>conftest.er1 | |
6598 | ac_status=$? | |
6599 | grep -v '^ *+' conftest.er1 >conftest.err | |
6600 | rm -f conftest.er1 | |
6601 | cat conftest.err >&5 | |
6602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6603 | (exit $ac_status); } && | |
6604 | { ac_try='test -z "$ac_c_werror_flag" | |
6605 | || test ! -s conftest.err' | |
6606 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6607 | (eval $ac_try) 2>&5 | |
6608 | ac_status=$? | |
6609 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6610 | (exit $ac_status); }; } && | |
6611 | { ac_try='test -s conftest$ac_exeext' | |
6612 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6613 | (eval $ac_try) 2>&5 | |
6614 | ac_status=$? | |
6615 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6616 | (exit $ac_status); }; }; then | |
6617 | ac_cv_lib_nsl_gethostbyname=yes | |
6618 | else | |
6619 | echo "$as_me: failed program was:" >&5 | |
6620 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6621 | ||
6622 | ac_cv_lib_nsl_gethostbyname=no | |
6623 | fi | |
6624 | rm -f conftest.err conftest.$ac_objext \ | |
6625 | conftest$ac_exeext conftest.$ac_ext | |
6626 | LIBS=$ac_check_lib_save_LIBS | |
6627 | fi | |
6628 | echo "$as_me:$LINENO: result: $ac_cv_lib_nsl_gethostbyname" >&5 | |
6629 | echo "${ECHO_T}$ac_cv_lib_nsl_gethostbyname" >&6 | |
6630 | if test $ac_cv_lib_nsl_gethostbyname = yes; then | |
6631 | cat >>confdefs.h <<_ACEOF | |
6632 | #define HAVE_LIBNSL 1 | |
6633 | _ACEOF | |
c906108c SS |
6634 | |
6635 | LIBS="-lnsl $LIBS" | |
6636 | ||
c906108c SS |
6637 | fi |
6638 | ||
6639 | ||
6640 | . ${srcdir}/../../bfd/configure.host | |
6641 | ||
6642 | ||
6643 | ||
6644 | USE_MAINTAINER_MODE=no | |
6645 | # Check whether --enable-maintainer-mode or --disable-maintainer-mode was given. | |
6646 | if test "${enable_maintainer_mode+set}" = set; then | |
6647 | enableval="$enable_maintainer_mode" | |
6648 | case "${enableval}" in | |
6649 | yes) MAINT="" USE_MAINTAINER_MODE=yes ;; | |
6650 | no) MAINT="#" ;; | |
b7026657 AC |
6651 | *) { { echo "$as_me:$LINENO: error: \"--enable-maintainer-mode does not take a value\"" >&5 |
6652 | echo "$as_me: error: \"--enable-maintainer-mode does not take a value\"" >&2;} | |
6653 | { (exit 1); exit 1; }; }; MAINT="#" ;; | |
c906108c SS |
6654 | esac |
6655 | if test x"$silent" != x"yes" && test x"$MAINT" = x""; then | |
6656 | echo "Setting maintainer mode" 6>&1 | |
6657 | fi | |
6658 | else | |
6659 | MAINT="#" | |
b7026657 | 6660 | fi; |
c906108c SS |
6661 | |
6662 | ||
6663 | # Check whether --enable-sim-bswap or --disable-sim-bswap was given. | |
6664 | if test "${enable_sim_bswap+set}" = set; then | |
6665 | enableval="$enable_sim_bswap" | |
6666 | case "${enableval}" in | |
6667 | yes) sim_bswap="-DWITH_BSWAP=1 -DUSE_BSWAP=1";; | |
6668 | no) sim_bswap="-DWITH_BSWAP=0";; | |
b7026657 AC |
6669 | *) { { echo "$as_me:$LINENO: error: \"--enable-sim-bswap does not take a value\"" >&5 |
6670 | echo "$as_me: error: \"--enable-sim-bswap does not take a value\"" >&2;} | |
6671 | { (exit 1); exit 1; }; }; sim_bswap="";; | |
c906108c SS |
6672 | esac |
6673 | if test x"$silent" != x"yes" && test x"$sim_bswap" != x""; then | |
6674 | echo "Setting bswap flags = $sim_bswap" 6>&1 | |
6675 | fi | |
6676 | else | |
6677 | sim_bswap="" | |
b7026657 | 6678 | fi; |
c906108c SS |
6679 | |
6680 | ||
6681 | # Check whether --enable-sim-cflags or --disable-sim-cflags was given. | |
6682 | if test "${enable_sim_cflags+set}" = set; then | |
6683 | enableval="$enable_sim_cflags" | |
6684 | case "${enableval}" in | |
6685 | yes) sim_cflags="-O2 -fomit-frame-pointer";; | |
b7026657 AC |
6686 | trace) { { echo "$as_me:$LINENO: error: \"Please use --enable-sim-debug instead.\"" >&5 |
6687 | echo "$as_me: error: \"Please use --enable-sim-debug instead.\"" >&2;} | |
6688 | { (exit 1); exit 1; }; }; sim_cflags="";; | |
c906108c SS |
6689 | no) sim_cflags="";; |
6690 | *) sim_cflags=`echo "${enableval}" | sed -e "s/,/ /g"`;; | |
6691 | esac | |
6692 | if test x"$silent" != x"yes" && test x"$sim_cflags" != x""; then | |
6693 | echo "Setting sim cflags = $sim_cflags" 6>&1 | |
6694 | fi | |
6695 | else | |
6696 | sim_cflags="" | |
b7026657 | 6697 | fi; |
c906108c SS |
6698 | |
6699 | ||
6700 | # Check whether --enable-sim-debug or --disable-sim-debug was given. | |
6701 | if test "${enable_sim_debug+set}" = set; then | |
6702 | enableval="$enable_sim_debug" | |
6703 | case "${enableval}" in | |
6704 | yes) sim_debug="-DDEBUG=7 -DWITH_DEBUG=7";; | |
6705 | no) sim_debug="-DDEBUG=0 -DWITH_DEBUG=0";; | |
6706 | *) sim_debug="-DDEBUG='(${enableval})' -DWITH_DEBUG='(${enableval})'";; | |
6707 | esac | |
6708 | if test x"$silent" != x"yes" && test x"$sim_debug" != x""; then | |
6709 | echo "Setting sim debug = $sim_debug" 6>&1 | |
6710 | fi | |
6711 | else | |
6712 | sim_debug="" | |
b7026657 | 6713 | fi; |
c906108c SS |
6714 | |
6715 | ||
6716 | # Check whether --enable-sim-stdio or --disable-sim-stdio was given. | |
6717 | if test "${enable_sim_stdio+set}" = set; then | |
6718 | enableval="$enable_sim_stdio" | |
6719 | case "${enableval}" in | |
6720 | yes) sim_stdio="-DWITH_STDIO=DO_USE_STDIO";; | |
6721 | no) sim_stdio="-DWITH_STDIO=DONT_USE_STDIO";; | |
b7026657 AC |
6722 | *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&5 |
6723 | echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&2;} | |
6724 | { (exit 1); exit 1; }; }; sim_stdio="";; | |
c906108c SS |
6725 | esac |
6726 | if test x"$silent" != x"yes" && test x"$sim_stdio" != x""; then | |
6727 | echo "Setting stdio flags = $sim_stdio" 6>&1 | |
6728 | fi | |
6729 | else | |
6730 | sim_stdio="" | |
b7026657 | 6731 | fi; |
c906108c SS |
6732 | |
6733 | ||
6734 | # Check whether --enable-sim-trace or --disable-sim-trace was given. | |
6735 | if test "${enable_sim_trace+set}" = set; then | |
6736 | enableval="$enable_sim_trace" | |
6737 | case "${enableval}" in | |
6738 | yes) sim_trace="-DTRACE=1 -DWITH_TRACE=-1";; | |
6739 | no) sim_trace="-DTRACE=0 -DWITH_TRACE=0";; | |
6740 | [-0-9]*) | |
6741 | sim_trace="-DTRACE='(${enableval})' -DWITH_TRACE='(${enableval})'";; | |
6742 | [a-z]*) | |
6743 | sim_trace="" | |
6744 | for x in `echo "$enableval" | sed -e "s/,/ /g"`; do | |
6745 | if test x"$sim_trace" = x; then | |
6746 | sim_trace="-DWITH_TRACE='(TRACE_$x" | |
6747 | else | |
6748 | sim_trace="${sim_trace}|TRACE_$x" | |
6749 | fi | |
6750 | done | |
6751 | sim_trace="$sim_trace)'" ;; | |
6752 | esac | |
6753 | if test x"$silent" != x"yes" && test x"$sim_trace" != x""; then | |
6754 | echo "Setting sim trace = $sim_trace" 6>&1 | |
6755 | fi | |
6756 | else | |
6757 | sim_trace="" | |
b7026657 | 6758 | fi; |
c906108c SS |
6759 | |
6760 | ||
6761 | # Check whether --enable-sim-profile or --disable-sim-profile was given. | |
6762 | if test "${enable_sim_profile+set}" = set; then | |
6763 | enableval="$enable_sim_profile" | |
6764 | case "${enableval}" in | |
6765 | yes) sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1";; | |
6766 | no) sim_profile="-DPROFILE=0 -DWITH_PROFILE=0";; | |
6767 | [-0-9]*) | |
6768 | sim_profile="-DPROFILE='(${enableval})' -DWITH_PROFILE='(${enableval})'";; | |
6769 | [a-z]*) | |
6770 | sim_profile="" | |
6771 | for x in `echo "$enableval" | sed -e "s/,/ /g"`; do | |
6772 | if test x"$sim_profile" = x; then | |
6773 | sim_profile="-DWITH_PROFILE='(PROFILE_$x" | |
6774 | else | |
6775 | sim_profile="${sim_profile}|PROFILE_$x" | |
6776 | fi | |
6777 | done | |
6778 | sim_profile="$sim_profile)'" ;; | |
6779 | esac | |
6780 | if test x"$silent" != x"yes" && test x"$sim_profile" != x""; then | |
6781 | echo "Setting sim profile = $sim_profile" 6>&1 | |
6782 | fi | |
6783 | else | |
eb2d80b4 | 6784 | sim_profile="-DPROFILE=1 -DWITH_PROFILE=-1" |
b7026657 | 6785 | fi; |
c906108c SS |
6786 | |
6787 | ||
b7026657 AC |
6788 | echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
6789 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 | |
6790 | if test "${ac_cv_type_signal+set}" = set; then | |
6791 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 6792 | else |
b7026657 AC |
6793 | cat >conftest.$ac_ext <<_ACEOF |
6794 | /* confdefs.h. */ | |
6795 | _ACEOF | |
6796 | cat confdefs.h >>conftest.$ac_ext | |
6797 | cat >>conftest.$ac_ext <<_ACEOF | |
6798 | /* end confdefs.h. */ | |
c906108c SS |
6799 | #include <sys/types.h> |
6800 | #include <signal.h> | |
6801 | #ifdef signal | |
b7026657 | 6802 | # undef signal |
c906108c SS |
6803 | #endif |
6804 | #ifdef __cplusplus | |
6805 | extern "C" void (*signal (int, void (*)(int)))(int); | |
6806 | #else | |
6807 | void (*signal ()) (); | |
6808 | #endif | |
6809 | ||
b7026657 AC |
6810 | int |
6811 | main () | |
6812 | { | |
c906108c | 6813 | int i; |
b7026657 AC |
6814 | ; |
6815 | return 0; | |
6816 | } | |
6817 | _ACEOF | |
6818 | rm -f conftest.$ac_objext | |
6819 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6820 | (eval $ac_compile) 2>conftest.er1 | |
6821 | ac_status=$? | |
6822 | grep -v '^ *+' conftest.er1 >conftest.err | |
6823 | rm -f conftest.er1 | |
6824 | cat conftest.err >&5 | |
6825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6826 | (exit $ac_status); } && | |
6827 | { ac_try='test -z "$ac_c_werror_flag" | |
6828 | || test ! -s conftest.err' | |
6829 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6830 | (eval $ac_try) 2>&5 | |
6831 | ac_status=$? | |
6832 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6833 | (exit $ac_status); }; } && | |
6834 | { ac_try='test -s conftest.$ac_objext' | |
6835 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6836 | (eval $ac_try) 2>&5 | |
6837 | ac_status=$? | |
6838 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6839 | (exit $ac_status); }; }; then | |
c906108c SS |
6840 | ac_cv_type_signal=void |
6841 | else | |
b7026657 AC |
6842 | echo "$as_me: failed program was:" >&5 |
6843 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6844 | ||
6845 | ac_cv_type_signal=int | |
c906108c | 6846 | fi |
b7026657 | 6847 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 6848 | fi |
b7026657 AC |
6849 | echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
6850 | echo "${ECHO_T}$ac_cv_type_signal" >&6 | |
c906108c | 6851 | |
b7026657 | 6852 | cat >>confdefs.h <<_ACEOF |
c906108c | 6853 | #define RETSIGTYPE $ac_cv_type_signal |
b7026657 | 6854 | _ACEOF |
cd0fc7c3 SS |
6855 | |
6856 | ||
cd0fc7c3 | 6857 | |
c906108c SS |
6858 | |
6859 | ||
6860 | sim_link_files= | |
6861 | sim_link_links= | |
6862 | ||
6863 | sim_link_links=tconfig.h | |
6864 | if test -f ${srcdir}/tconfig.in | |
6865 | then | |
6866 | sim_link_files=tconfig.in | |
6867 | else | |
6868 | sim_link_files=../common/tconfig.in | |
6869 | fi | |
6870 | ||
6871 | # targ-vals.def points to the libc macro description file. | |
6872 | case "${target}" in | |
6873 | *-*-*) TARG_VALS_DEF=../common/nltvals.def ;; | |
6874 | esac | |
6875 | sim_link_files="${sim_link_files} ${TARG_VALS_DEF}" | |
6876 | sim_link_links="${sim_link_links} targ-vals.def" | |
6877 | ||
6878 | ||
c906108c SS |
6879 | # Put a useful copy of CPP_FOR_TARGET in Makefile. |
6880 | # This is only used to build the target values header files. These files are | |
6881 | # shipped with distributions so CPP_FOR_TARGET only needs to work in | |
6882 | # developer's trees. This value is borrowed from ../../Makefile.in. | |
6883 | CPP_FOR_TARGET="\` \ | |
6884 | if test -f \$\${rootme}/../../gcc/Makefile ; then \ | |
6885 | if test -f \$\${rootme}/../../\$(TARGET_SUBDIR)/newlib/Makefile ; then \ | |
6886 | echo \$\${rootme}/../../gcc/xgcc -B\$\${rootme}/../../gcc/ -idirafter \$\${rootme}/../../\$(TARGET_SUBDIR)/newlib/targ-include -idirafter \$(srcroot)/newlib/libc/include -nostdinc; \ | |
6887 | else \ | |
6888 | echo \$\${rootme}/../../gcc/xgcc -B\$\${rootme}/../../gcc/; \ | |
6889 | fi; \ | |
6890 | else \ | |
6891 | if test '\$(host_canonical)' = '\$(target_canonical)' ; then \ | |
6892 | echo \$(CC); \ | |
6893 | else \ | |
6894 | t='\$(program_transform_name)'; echo gcc | sed -e 's/x/x/' \$\$t; \ | |
6895 | fi; \ | |
6896 | fi\` -E" | |
6897 | ||
6898 | ||
6899 | # Set TARGET_SUBDIR, needed by CPP_FOR_TARGET. | |
6900 | if test x"${host}" = x"${target}" ; then | |
6901 | TARGET_SUBDIR="." | |
6902 | else | |
6903 | TARGET_SUBDIR=${target_alias} | |
6904 | fi | |
6905 | ||
6906 | ||
6907 | # These aren't all needed yet, but will be eventually. | |
b7026657 AC |
6908 | |
6909 | ||
6910 | ||
6911 | ||
6912 | ||
6913 | ||
6914 | ||
6915 | for ac_header in stdlib.h string.h strings.h time.h sys/times.h sys/stat.h sys/mman.h | |
c906108c | 6916 | do |
b7026657 AC |
6917 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
6918 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6919 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
6920 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
6921 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
6922 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6923 | fi | |
6924 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
6925 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
6926 | else | |
6927 | # Is the header compilable? | |
6928 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
6929 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
6930 | cat >conftest.$ac_ext <<_ACEOF | |
6931 | /* confdefs.h. */ | |
6932 | _ACEOF | |
6933 | cat confdefs.h >>conftest.$ac_ext | |
6934 | cat >>conftest.$ac_ext <<_ACEOF | |
6935 | /* end confdefs.h. */ | |
6936 | $ac_includes_default | |
6937 | #include <$ac_header> | |
6938 | _ACEOF | |
6939 | rm -f conftest.$ac_objext | |
6940 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6941 | (eval $ac_compile) 2>conftest.er1 | |
6942 | ac_status=$? | |
6943 | grep -v '^ *+' conftest.er1 >conftest.err | |
6944 | rm -f conftest.er1 | |
6945 | cat conftest.err >&5 | |
6946 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6947 | (exit $ac_status); } && | |
6948 | { ac_try='test -z "$ac_c_werror_flag" | |
6949 | || test ! -s conftest.err' | |
6950 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6951 | (eval $ac_try) 2>&5 | |
6952 | ac_status=$? | |
6953 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6954 | (exit $ac_status); }; } && | |
6955 | { ac_try='test -s conftest.$ac_objext' | |
6956 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6957 | (eval $ac_try) 2>&5 | |
6958 | ac_status=$? | |
6959 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6960 | (exit $ac_status); }; }; then | |
6961 | ac_header_compiler=yes | |
6962 | else | |
6963 | echo "$as_me: failed program was:" >&5 | |
6964 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6965 | ||
6966 | ac_header_compiler=no | |
6967 | fi | |
6968 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6969 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
6970 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
6971 | ||
6972 | # Is the header present? | |
6973 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
6974 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
6975 | cat >conftest.$ac_ext <<_ACEOF | |
6976 | /* confdefs.h. */ | |
6977 | _ACEOF | |
6978 | cat confdefs.h >>conftest.$ac_ext | |
6979 | cat >>conftest.$ac_ext <<_ACEOF | |
6980 | /* end confdefs.h. */ | |
6981 | #include <$ac_header> | |
6982 | _ACEOF | |
6983 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
6984 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
6985 | ac_status=$? | |
6986 | grep -v '^ *+' conftest.er1 >conftest.err | |
6987 | rm -f conftest.er1 | |
6988 | cat conftest.err >&5 | |
6989 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6990 | (exit $ac_status); } >/dev/null; then | |
6991 | if test -s conftest.err; then | |
6992 | ac_cpp_err=$ac_c_preproc_warn_flag | |
6993 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
6994 | else | |
6995 | ac_cpp_err= | |
6996 | fi | |
6997 | else | |
6998 | ac_cpp_err=yes | |
c906108c | 6999 | fi |
b7026657 AC |
7000 | if test -z "$ac_cpp_err"; then |
7001 | ac_header_preproc=yes | |
7002 | else | |
7003 | echo "$as_me: failed program was:" >&5 | |
7004 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7005 | ||
7006 | ac_header_preproc=no | |
c906108c | 7007 | fi |
b7026657 AC |
7008 | rm -f conftest.err conftest.$ac_ext |
7009 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
7010 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
7011 | ||
7012 | # So? What about this header? | |
7013 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
7014 | yes:no: ) | |
7015 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
7016 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
7017 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
7018 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
7019 | ac_header_preproc=yes | |
7020 | ;; | |
7021 | no:yes:* ) | |
7022 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
7023 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
7024 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
7025 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
7026 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
7027 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
7028 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
7029 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
7030 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
7031 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
7032 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
7033 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
7034 | ( | |
7035 | cat <<\_ASBOX | |
7036 | ## ------------------------------------------ ## | |
7037 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
7038 | ## ------------------------------------------ ## | |
7039 | _ASBOX | |
7040 | ) | | |
7041 | sed "s/^/$as_me: WARNING: /" >&2 | |
7042 | ;; | |
7043 | esac | |
7044 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
7045 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
7046 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
7047 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 7048 | else |
b7026657 AC |
7049 | eval "$as_ac_Header=\$ac_header_preproc" |
7050 | fi | |
7051 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
7052 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
7053 | ||
c906108c | 7054 | fi |
b7026657 AC |
7055 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
7056 | cat >>confdefs.h <<_ACEOF | |
7057 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
7058 | _ACEOF | |
7059 | ||
7060 | fi | |
7061 | ||
c906108c SS |
7062 | done |
7063 | ||
b7026657 AC |
7064 | |
7065 | ||
764f1408 FCE |
7066 | for ac_func in mmap munmap |
7067 | do | |
b7026657 AC |
7068 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
7069 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
7070 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
7071 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
7072 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7073 | else | |
7074 | cat >conftest.$ac_ext <<_ACEOF | |
7075 | /* confdefs.h. */ | |
7076 | _ACEOF | |
7077 | cat confdefs.h >>conftest.$ac_ext | |
7078 | cat >>conftest.$ac_ext <<_ACEOF | |
7079 | /* end confdefs.h. */ | |
7080 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
7081 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
7082 | #define $ac_func innocuous_$ac_func | |
7083 | ||
764f1408 | 7084 | /* System header to define __stub macros and hopefully few prototypes, |
b7026657 AC |
7085 | which can conflict with char $ac_func (); below. |
7086 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7087 | <limits.h> exists even on freestanding compilers. */ | |
764f1408 | 7088 | |
b7026657 AC |
7089 | #ifdef __STDC__ |
7090 | # include <limits.h> | |
7091 | #else | |
7092 | # include <assert.h> | |
7093 | #endif | |
764f1408 | 7094 | |
b7026657 AC |
7095 | #undef $ac_func |
7096 | ||
7097 | /* Override any gcc2 internal prototype to avoid an error. */ | |
7098 | #ifdef __cplusplus | |
7099 | extern "C" | |
7100 | { | |
7101 | #endif | |
7102 | /* We use char because int might match the return type of a gcc2 | |
7103 | builtin and then its argument prototype would still apply. */ | |
7104 | char $ac_func (); | |
764f1408 FCE |
7105 | /* The GNU C library defines this for functions which it implements |
7106 | to always fail with ENOSYS. Some functions are actually named | |
7107 | something starting with __ and the normal name is an alias. */ | |
7108 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
7109 | choke me | |
7110 | #else | |
b7026657 AC |
7111 | char (*f) () = $ac_func; |
7112 | #endif | |
7113 | #ifdef __cplusplus | |
7114 | } | |
764f1408 FCE |
7115 | #endif |
7116 | ||
b7026657 AC |
7117 | int |
7118 | main () | |
7119 | { | |
7120 | return f != $ac_func; | |
7121 | ; | |
7122 | return 0; | |
7123 | } | |
7124 | _ACEOF | |
7125 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7126 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7127 | (eval $ac_link) 2>conftest.er1 | |
7128 | ac_status=$? | |
7129 | grep -v '^ *+' conftest.er1 >conftest.err | |
7130 | rm -f conftest.er1 | |
7131 | cat conftest.err >&5 | |
7132 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7133 | (exit $ac_status); } && | |
7134 | { ac_try='test -z "$ac_c_werror_flag" | |
7135 | || test ! -s conftest.err' | |
7136 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7137 | (eval $ac_try) 2>&5 | |
7138 | ac_status=$? | |
7139 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7140 | (exit $ac_status); }; } && | |
7141 | { ac_try='test -s conftest$ac_exeext' | |
7142 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7143 | (eval $ac_try) 2>&5 | |
7144 | ac_status=$? | |
7145 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7146 | (exit $ac_status); }; }; then | |
7147 | eval "$as_ac_var=yes" | |
7148 | else | |
7149 | echo "$as_me: failed program was:" >&5 | |
7150 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7151 | ||
7152 | eval "$as_ac_var=no" | |
7153 | fi | |
7154 | rm -f conftest.err conftest.$ac_objext \ | |
7155 | conftest$ac_exeext conftest.$ac_ext | |
7156 | fi | |
7157 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
7158 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
7159 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
7160 | cat >>confdefs.h <<_ACEOF | |
7161 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
7162 | _ACEOF | |
764f1408 | 7163 | |
764f1408 FCE |
7164 | fi |
7165 | done | |
7166 | ||
b7026657 AC |
7167 | echo "$as_me:$LINENO: checking for struct stat.st_dev" >&5 |
7168 | echo $ECHO_N "checking for struct stat.st_dev... $ECHO_C" >&6 | |
7169 | if test "${ac_struct_stat_st_dev+set}" = set; then | |
7170 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
697afb65 HPN |
7171 | else |
7172 | ac_struct_stat_st_dev=no; | |
b7026657 AC |
7173 | cat >conftest.$ac_ext <<_ACEOF |
7174 | /* confdefs.h. */ | |
7175 | _ACEOF | |
7176 | cat confdefs.h >>conftest.$ac_ext | |
7177 | cat >>conftest.$ac_ext <<_ACEOF | |
7178 | /* end confdefs.h. */ | |
697afb65 HPN |
7179 | #ifdef HAVE_SYS_TYPES_H |
7180 | #include <sys/types.h> | |
7181 | #endif | |
7182 | #ifdef HAVE_SYS_STAT_H | |
7183 | #include <sys/stat.h> | |
7184 | #endif | |
b7026657 AC |
7185 | int |
7186 | main () | |
7187 | { | |
697afb65 HPN |
7188 | |
7189 | static struct stat ac_aggr; | |
7190 | if (ac_aggr.st_dev) | |
7191 | return 0; | |
b7026657 AC |
7192 | ; |
7193 | return 0; | |
7194 | } | |
7195 | _ACEOF | |
7196 | rm -f conftest.$ac_objext | |
7197 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7198 | (eval $ac_compile) 2>conftest.er1 | |
7199 | ac_status=$? | |
7200 | grep -v '^ *+' conftest.er1 >conftest.err | |
7201 | rm -f conftest.er1 | |
7202 | cat conftest.err >&5 | |
7203 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7204 | (exit $ac_status); } && | |
7205 | { ac_try='test -z "$ac_c_werror_flag" | |
7206 | || test ! -s conftest.err' | |
7207 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7208 | (eval $ac_try) 2>&5 | |
7209 | ac_status=$? | |
7210 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7211 | (exit $ac_status); }; } && | |
7212 | { ac_try='test -s conftest.$ac_objext' | |
7213 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7214 | (eval $ac_try) 2>&5 | |
7215 | ac_status=$? | |
7216 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7217 | (exit $ac_status); }; }; then | |
697afb65 HPN |
7218 | ac_struct_stat_st_dev=yes; |
7219 | else | |
b7026657 AC |
7220 | echo "$as_me: failed program was:" >&5 |
7221 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7222 | ||
7223 | cat >conftest.$ac_ext <<_ACEOF | |
7224 | /* confdefs.h. */ | |
7225 | _ACEOF | |
7226 | cat confdefs.h >>conftest.$ac_ext | |
7227 | cat >>conftest.$ac_ext <<_ACEOF | |
7228 | /* end confdefs.h. */ | |
697afb65 HPN |
7229 | #ifdef HAVE_SYS_TYPES_H |
7230 | #include <sys/types.h> | |
7231 | #endif | |
7232 | #ifdef HAVE_SYS_STAT_H | |
7233 | #include <sys/stat.h> | |
7234 | #endif | |
b7026657 AC |
7235 | int |
7236 | main () | |
7237 | { | |
697afb65 HPN |
7238 | |
7239 | static struct stat ac_aggr; | |
7240 | if (sizeof ac_aggr.st_dev) | |
7241 | return 0; | |
b7026657 AC |
7242 | ; |
7243 | return 0; | |
7244 | } | |
7245 | _ACEOF | |
7246 | rm -f conftest.$ac_objext | |
7247 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7248 | (eval $ac_compile) 2>conftest.er1 | |
7249 | ac_status=$? | |
7250 | grep -v '^ *+' conftest.er1 >conftest.err | |
7251 | rm -f conftest.er1 | |
7252 | cat conftest.err >&5 | |
7253 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7254 | (exit $ac_status); } && | |
7255 | { ac_try='test -z "$ac_c_werror_flag" | |
7256 | || test ! -s conftest.err' | |
7257 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7258 | (eval $ac_try) 2>&5 | |
7259 | ac_status=$? | |
7260 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7261 | (exit $ac_status); }; } && | |
7262 | { ac_try='test -s conftest.$ac_objext' | |
7263 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7264 | (eval $ac_try) 2>&5 | |
7265 | ac_status=$? | |
7266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7267 | (exit $ac_status); }; }; then | |
697afb65 HPN |
7268 | ac_struct_stat_st_dev=yes; |
7269 | else | |
b7026657 AC |
7270 | echo "$as_me: failed program was:" >&5 |
7271 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7272 | ||
7273 | ac_struct_stat_st_dev=no; | |
697afb65 | 7274 | fi |
b7026657 | 7275 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
697afb65 | 7276 | fi |
b7026657 AC |
7277 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
7278 | if test $ac_struct_stat_st_dev = yes; then :; | |
7279 | cat >>confdefs.h <<_ACEOF | |
697afb65 | 7280 | #define HAVE_STRUCT_STAT_ST_DEV 1 |
b7026657 | 7281 | _ACEOF |
697afb65 | 7282 | |
b7026657 | 7283 | else :; |
697afb65 HPN |
7284 | fi |
7285 | fi | |
b7026657 AC |
7286 | echo "$as_me:$LINENO: result: $ac_struct_stat_st_dev" >&5 |
7287 | echo "${ECHO_T}$ac_struct_stat_st_dev" >&6 | |
697afb65 | 7288 | |
b7026657 AC |
7289 | echo "$as_me:$LINENO: checking for struct stat.st_ino" >&5 |
7290 | echo $ECHO_N "checking for struct stat.st_ino... $ECHO_C" >&6 | |
7291 | if test "${ac_struct_stat_st_ino+set}" = set; then | |
7292 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
697afb65 HPN |
7293 | else |
7294 | ac_struct_stat_st_ino=no; | |
b7026657 AC |
7295 | cat >conftest.$ac_ext <<_ACEOF |
7296 | /* confdefs.h. */ | |
7297 | _ACEOF | |
7298 | cat confdefs.h >>conftest.$ac_ext | |
7299 | cat >>conftest.$ac_ext <<_ACEOF | |
7300 | /* end confdefs.h. */ | |
697afb65 HPN |
7301 | #ifdef HAVE_SYS_TYPES_H |
7302 | #include <sys/types.h> | |
7303 | #endif | |
7304 | #ifdef HAVE_SYS_STAT_H | |
7305 | #include <sys/stat.h> | |
7306 | #endif | |
b7026657 AC |
7307 | int |
7308 | main () | |
7309 | { | |
697afb65 HPN |
7310 | |
7311 | static struct stat ac_aggr; | |
7312 | if (ac_aggr.st_ino) | |
7313 | return 0; | |
b7026657 AC |
7314 | ; |
7315 | return 0; | |
7316 | } | |
7317 | _ACEOF | |
7318 | rm -f conftest.$ac_objext | |
7319 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7320 | (eval $ac_compile) 2>conftest.er1 | |
7321 | ac_status=$? | |
7322 | grep -v '^ *+' conftest.er1 >conftest.err | |
7323 | rm -f conftest.er1 | |
7324 | cat conftest.err >&5 | |
7325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7326 | (exit $ac_status); } && | |
7327 | { ac_try='test -z "$ac_c_werror_flag" | |
7328 | || test ! -s conftest.err' | |
7329 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7330 | (eval $ac_try) 2>&5 | |
7331 | ac_status=$? | |
7332 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7333 | (exit $ac_status); }; } && | |
7334 | { ac_try='test -s conftest.$ac_objext' | |
7335 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7336 | (eval $ac_try) 2>&5 | |
7337 | ac_status=$? | |
7338 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7339 | (exit $ac_status); }; }; then | |
697afb65 HPN |
7340 | ac_struct_stat_st_ino=yes; |
7341 | else | |
b7026657 AC |
7342 | echo "$as_me: failed program was:" >&5 |
7343 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7344 | ||
7345 | cat >conftest.$ac_ext <<_ACEOF | |
7346 | /* confdefs.h. */ | |
7347 | _ACEOF | |
7348 | cat confdefs.h >>conftest.$ac_ext | |
7349 | cat >>conftest.$ac_ext <<_ACEOF | |
7350 | /* end confdefs.h. */ | |
697afb65 HPN |
7351 | #ifdef HAVE_SYS_TYPES_H |
7352 | #include <sys/types.h> | |
7353 | #endif | |
7354 | #ifdef HAVE_SYS_STAT_H | |
7355 | #include <sys/stat.h> | |
7356 | #endif | |
b7026657 AC |
7357 | int |
7358 | main () | |
7359 | { | |
697afb65 HPN |
7360 | |
7361 | static struct stat ac_aggr; | |
7362 | if (sizeof ac_aggr.st_ino) | |
7363 | return 0; | |
b7026657 AC |
7364 | ; |
7365 | return 0; | |
7366 | } | |
7367 | _ACEOF | |
7368 | rm -f conftest.$ac_objext | |
7369 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7370 | (eval $ac_compile) 2>conftest.er1 | |
7371 | ac_status=$? | |
7372 | grep -v '^ *+' conftest.er1 >conftest.err | |
7373 | rm -f conftest.er1 | |
7374 | cat conftest.err >&5 | |
7375 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7376 | (exit $ac_status); } && | |
7377 | { ac_try='test -z "$ac_c_werror_flag" | |
7378 | || test ! -s conftest.err' | |
7379 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7380 | (eval $ac_try) 2>&5 | |
7381 | ac_status=$? | |
7382 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7383 | (exit $ac_status); }; } && | |
7384 | { ac_try='test -s conftest.$ac_objext' | |
7385 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7386 | (eval $ac_try) 2>&5 | |
7387 | ac_status=$? | |
7388 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7389 | (exit $ac_status); }; }; then | |
697afb65 HPN |
7390 | ac_struct_stat_st_ino=yes; |
7391 | else | |
b7026657 AC |
7392 | echo "$as_me: failed program was:" >&5 |
7393 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7394 | ||
7395 | ac_struct_stat_st_ino=no; | |
697afb65 | 7396 | fi |
b7026657 | 7397 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
697afb65 | 7398 | fi |
b7026657 AC |
7399 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
7400 | if test $ac_struct_stat_st_ino = yes; then :; | |
7401 | cat >>confdefs.h <<_ACEOF | |
697afb65 | 7402 | #define HAVE_STRUCT_STAT_ST_INO 1 |
b7026657 | 7403 | _ACEOF |
697afb65 | 7404 | |
b7026657 | 7405 | else :; |
697afb65 HPN |
7406 | fi |
7407 | fi | |
b7026657 AC |
7408 | echo "$as_me:$LINENO: result: $ac_struct_stat_st_ino" >&5 |
7409 | echo "${ECHO_T}$ac_struct_stat_st_ino" >&6 | |
697afb65 | 7410 | |
b7026657 AC |
7411 | echo "$as_me:$LINENO: checking for struct stat.st_mode" >&5 |
7412 | echo $ECHO_N "checking for struct stat.st_mode... $ECHO_C" >&6 | |
7413 | if test "${ac_struct_stat_st_mode+set}" = set; then | |
7414 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
697afb65 HPN |
7415 | else |
7416 | ac_struct_stat_st_mode=no; | |
b7026657 AC |
7417 | cat >conftest.$ac_ext <<_ACEOF |
7418 | /* confdefs.h. */ | |
7419 | _ACEOF | |
7420 | cat confdefs.h >>conftest.$ac_ext | |
7421 | cat >>conftest.$ac_ext <<_ACEOF | |
7422 | /* end confdefs.h. */ | |
697afb65 HPN |
7423 | #ifdef HAVE_SYS_TYPES_H |
7424 | #include <sys/types.h> | |
7425 | #endif | |
7426 | #ifdef HAVE_SYS_STAT_H | |
7427 | #include <sys/stat.h> | |
7428 | #endif | |
b7026657 AC |
7429 | int |
7430 | main () | |
7431 | { | |
697afb65 HPN |
7432 | |
7433 | static struct stat ac_aggr; | |
7434 | if (ac_aggr.st_mode) | |
7435 | return 0; | |
b7026657 AC |
7436 | ; |
7437 | return 0; | |
7438 | } | |
7439 | _ACEOF | |
7440 | rm -f conftest.$ac_objext | |
7441 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7442 | (eval $ac_compile) 2>conftest.er1 | |
7443 | ac_status=$? | |
7444 | grep -v '^ *+' conftest.er1 >conftest.err | |
7445 | rm -f conftest.er1 | |
7446 | cat conftest.err >&5 | |
7447 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7448 | (exit $ac_status); } && | |
7449 | { ac_try='test -z "$ac_c_werror_flag" | |
7450 | || test ! -s conftest.err' | |
7451 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7452 | (eval $ac_try) 2>&5 | |
7453 | ac_status=$? | |
7454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7455 | (exit $ac_status); }; } && | |
7456 | { ac_try='test -s conftest.$ac_objext' | |
7457 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7458 | (eval $ac_try) 2>&5 | |
7459 | ac_status=$? | |
7460 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7461 | (exit $ac_status); }; }; then | |
697afb65 HPN |
7462 | ac_struct_stat_st_mode=yes; |
7463 | else | |
b7026657 AC |
7464 | echo "$as_me: failed program was:" >&5 |
7465 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7466 | ||
7467 | cat >conftest.$ac_ext <<_ACEOF | |
7468 | /* confdefs.h. */ | |
7469 | _ACEOF | |
7470 | cat confdefs.h >>conftest.$ac_ext | |
7471 | cat >>conftest.$ac_ext <<_ACEOF | |
7472 | /* end confdefs.h. */ | |
697afb65 HPN |
7473 | #ifdef HAVE_SYS_TYPES_H |
7474 | #include <sys/types.h> | |
7475 | #endif | |
7476 | #ifdef HAVE_SYS_STAT_H | |
7477 | #include <sys/stat.h> | |
7478 | #endif | |
b7026657 AC |
7479 | int |
7480 | main () | |
7481 | { | |
697afb65 HPN |
7482 | |
7483 | static struct stat ac_aggr; | |
7484 | if (sizeof ac_aggr.st_mode) | |
7485 | return 0; | |
b7026657 AC |
7486 | ; |
7487 | return 0; | |
7488 | } | |
7489 | _ACEOF | |
7490 | rm -f conftest.$ac_objext | |
7491 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7492 | (eval $ac_compile) 2>conftest.er1 | |
7493 | ac_status=$? | |
7494 | grep -v '^ *+' conftest.er1 >conftest.err | |
7495 | rm -f conftest.er1 | |
7496 | cat conftest.err >&5 | |
7497 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7498 | (exit $ac_status); } && | |
7499 | { ac_try='test -z "$ac_c_werror_flag" | |
7500 | || test ! -s conftest.err' | |
7501 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7502 | (eval $ac_try) 2>&5 | |
7503 | ac_status=$? | |
7504 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7505 | (exit $ac_status); }; } && | |
7506 | { ac_try='test -s conftest.$ac_objext' | |
7507 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7508 | (eval $ac_try) 2>&5 | |
7509 | ac_status=$? | |
7510 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7511 | (exit $ac_status); }; }; then | |
697afb65 HPN |
7512 | ac_struct_stat_st_mode=yes; |
7513 | else | |
b7026657 AC |
7514 | echo "$as_me: failed program was:" >&5 |
7515 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7516 | ||
7517 | ac_struct_stat_st_mode=no; | |
697afb65 | 7518 | fi |
b7026657 | 7519 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
697afb65 | 7520 | fi |
b7026657 AC |
7521 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
7522 | if test $ac_struct_stat_st_mode = yes; then :; | |
7523 | cat >>confdefs.h <<_ACEOF | |
697afb65 | 7524 | #define HAVE_STRUCT_STAT_ST_MODE 1 |
b7026657 | 7525 | _ACEOF |
697afb65 | 7526 | |
b7026657 | 7527 | else :; |
697afb65 HPN |
7528 | fi |
7529 | fi | |
b7026657 AC |
7530 | echo "$as_me:$LINENO: result: $ac_struct_stat_st_mode" >&5 |
7531 | echo "${ECHO_T}$ac_struct_stat_st_mode" >&6 | |
697afb65 | 7532 | |
b7026657 AC |
7533 | echo "$as_me:$LINENO: checking for struct stat.st_nlink" >&5 |
7534 | echo $ECHO_N "checking for struct stat.st_nlink... $ECHO_C" >&6 | |
7535 | if test "${ac_struct_stat_st_nlink+set}" = set; then | |
7536 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
697afb65 HPN |
7537 | else |
7538 | ac_struct_stat_st_nlink=no; | |
b7026657 AC |
7539 | cat >conftest.$ac_ext <<_ACEOF |
7540 | /* confdefs.h. */ | |
7541 | _ACEOF | |
7542 | cat confdefs.h >>conftest.$ac_ext | |
7543 | cat >>conftest.$ac_ext <<_ACEOF | |
7544 | /* end confdefs.h. */ | |
697afb65 HPN |
7545 | #ifdef HAVE_SYS_TYPES_H |
7546 | #include <sys/types.h> | |
7547 | #endif | |
7548 | #ifdef HAVE_SYS_STAT_H | |
7549 | #include <sys/stat.h> | |
7550 | #endif | |
b7026657 AC |
7551 | int |
7552 | main () | |
7553 | { | |
697afb65 HPN |
7554 | |
7555 | static struct stat ac_aggr; | |
7556 | if (ac_aggr.st_nlink) | |
7557 | return 0; | |
b7026657 AC |
7558 | ; |
7559 | return 0; | |
7560 | } | |
7561 | _ACEOF | |
7562 | rm -f conftest.$ac_objext | |
7563 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7564 | (eval $ac_compile) 2>conftest.er1 | |
7565 | ac_status=$? | |
7566 | grep -v '^ *+' conftest.er1 >conftest.err | |
7567 | rm -f conftest.er1 | |
7568 | cat conftest.err >&5 | |
7569 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7570 | (exit $ac_status); } && | |
7571 | { ac_try='test -z "$ac_c_werror_flag" | |
7572 | || test ! -s conftest.err' | |
7573 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7574 | (eval $ac_try) 2>&5 | |
7575 | ac_status=$? | |
7576 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7577 | (exit $ac_status); }; } && | |
7578 | { ac_try='test -s conftest.$ac_objext' | |
7579 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7580 | (eval $ac_try) 2>&5 | |
7581 | ac_status=$? | |
7582 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7583 | (exit $ac_status); }; }; then | |
697afb65 HPN |
7584 | ac_struct_stat_st_nlink=yes; |
7585 | else | |
b7026657 AC |
7586 | echo "$as_me: failed program was:" >&5 |
7587 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7588 | ||
7589 | cat >conftest.$ac_ext <<_ACEOF | |
7590 | /* confdefs.h. */ | |
7591 | _ACEOF | |
7592 | cat confdefs.h >>conftest.$ac_ext | |
7593 | cat >>conftest.$ac_ext <<_ACEOF | |
7594 | /* end confdefs.h. */ | |
697afb65 HPN |
7595 | #ifdef HAVE_SYS_TYPES_H |
7596 | #include <sys/types.h> | |
7597 | #endif | |
7598 | #ifdef HAVE_SYS_STAT_H | |
7599 | #include <sys/stat.h> | |
7600 | #endif | |
b7026657 AC |
7601 | int |
7602 | main () | |
7603 | { | |
697afb65 HPN |
7604 | |
7605 | static struct stat ac_aggr; | |
7606 | if (sizeof ac_aggr.st_nlink) | |
7607 | return 0; | |
b7026657 AC |
7608 | ; |
7609 | return 0; | |
7610 | } | |
7611 | _ACEOF | |
7612 | rm -f conftest.$ac_objext | |
7613 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7614 | (eval $ac_compile) 2>conftest.er1 | |
7615 | ac_status=$? | |
7616 | grep -v '^ *+' conftest.er1 >conftest.err | |
7617 | rm -f conftest.er1 | |
7618 | cat conftest.err >&5 | |
7619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7620 | (exit $ac_status); } && | |
7621 | { ac_try='test -z "$ac_c_werror_flag" | |
7622 | || test ! -s conftest.err' | |
7623 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7624 | (eval $ac_try) 2>&5 | |
7625 | ac_status=$? | |
7626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7627 | (exit $ac_status); }; } && | |
7628 | { ac_try='test -s conftest.$ac_objext' | |
7629 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7630 | (eval $ac_try) 2>&5 | |
7631 | ac_status=$? | |
7632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7633 | (exit $ac_status); }; }; then | |
697afb65 HPN |
7634 | ac_struct_stat_st_nlink=yes; |
7635 | else | |
b7026657 AC |
7636 | echo "$as_me: failed program was:" >&5 |
7637 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7638 | ||
7639 | ac_struct_stat_st_nlink=no; | |
697afb65 | 7640 | fi |
b7026657 | 7641 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
697afb65 | 7642 | fi |
b7026657 AC |
7643 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
7644 | if test $ac_struct_stat_st_nlink = yes; then :; | |
7645 | cat >>confdefs.h <<_ACEOF | |
697afb65 | 7646 | #define HAVE_STRUCT_STAT_ST_NLINK 1 |
b7026657 | 7647 | _ACEOF |
697afb65 | 7648 | |
b7026657 | 7649 | else :; |
697afb65 HPN |
7650 | fi |
7651 | fi | |
b7026657 AC |
7652 | echo "$as_me:$LINENO: result: $ac_struct_stat_st_nlink" >&5 |
7653 | echo "${ECHO_T}$ac_struct_stat_st_nlink" >&6 | |
697afb65 | 7654 | |
b7026657 AC |
7655 | echo "$as_me:$LINENO: checking for struct stat.st_uid" >&5 |
7656 | echo $ECHO_N "checking for struct stat.st_uid... $ECHO_C" >&6 | |
7657 | if test "${ac_struct_stat_st_uid+set}" = set; then | |
7658 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
697afb65 HPN |
7659 | else |
7660 | ac_struct_stat_st_uid=no; | |
b7026657 AC |
7661 | cat >conftest.$ac_ext <<_ACEOF |
7662 | /* confdefs.h. */ | |
7663 | _ACEOF | |
7664 | cat confdefs.h >>conftest.$ac_ext | |
7665 | cat >>conftest.$ac_ext <<_ACEOF | |
7666 | /* end confdefs.h. */ | |
697afb65 HPN |
7667 | #ifdef HAVE_SYS_TYPES_H |
7668 | #include <sys/types.h> | |
7669 | #endif | |
7670 | #ifdef HAVE_SYS_STAT_H | |
7671 | #include <sys/stat.h> | |
7672 | #endif | |
b7026657 AC |
7673 | int |
7674 | main () | |
7675 | { | |
697afb65 HPN |
7676 | |
7677 | static struct stat ac_aggr; | |
7678 | if (ac_aggr.st_uid) | |
7679 | return 0; | |
b7026657 AC |
7680 | ; |
7681 | return 0; | |
7682 | } | |
7683 | _ACEOF | |
7684 | rm -f conftest.$ac_objext | |
7685 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7686 | (eval $ac_compile) 2>conftest.er1 | |
7687 | ac_status=$? | |
7688 | grep -v '^ *+' conftest.er1 >conftest.err | |
7689 | rm -f conftest.er1 | |
7690 | cat conftest.err >&5 | |
7691 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7692 | (exit $ac_status); } && | |
7693 | { ac_try='test -z "$ac_c_werror_flag" | |
7694 | || test ! -s conftest.err' | |
7695 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7696 | (eval $ac_try) 2>&5 | |
7697 | ac_status=$? | |
7698 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7699 | (exit $ac_status); }; } && | |
7700 | { ac_try='test -s conftest.$ac_objext' | |
7701 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7702 | (eval $ac_try) 2>&5 | |
7703 | ac_status=$? | |
7704 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7705 | (exit $ac_status); }; }; then | |
697afb65 HPN |
7706 | ac_struct_stat_st_uid=yes; |
7707 | else | |
b7026657 AC |
7708 | echo "$as_me: failed program was:" >&5 |
7709 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7710 | ||
7711 | cat >conftest.$ac_ext <<_ACEOF | |
7712 | /* confdefs.h. */ | |
7713 | _ACEOF | |
7714 | cat confdefs.h >>conftest.$ac_ext | |
7715 | cat >>conftest.$ac_ext <<_ACEOF | |
7716 | /* end confdefs.h. */ | |
697afb65 HPN |
7717 | #ifdef HAVE_SYS_TYPES_H |
7718 | #include <sys/types.h> | |
7719 | #endif | |
7720 | #ifdef HAVE_SYS_STAT_H | |
7721 | #include <sys/stat.h> | |
7722 | #endif | |
b7026657 AC |
7723 | int |
7724 | main () | |
7725 | { | |
697afb65 HPN |
7726 | |
7727 | static struct stat ac_aggr; | |
7728 | if (sizeof ac_aggr.st_uid) | |
7729 | return 0; | |
b7026657 AC |
7730 | ; |
7731 | return 0; | |
7732 | } | |
7733 | _ACEOF | |
7734 | rm -f conftest.$ac_objext | |
7735 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7736 | (eval $ac_compile) 2>conftest.er1 | |
7737 | ac_status=$? | |
7738 | grep -v '^ *+' conftest.er1 >conftest.err | |
7739 | rm -f conftest.er1 | |
7740 | cat conftest.err >&5 | |
7741 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7742 | (exit $ac_status); } && | |
7743 | { ac_try='test -z "$ac_c_werror_flag" | |
7744 | || test ! -s conftest.err' | |
7745 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7746 | (eval $ac_try) 2>&5 | |
7747 | ac_status=$? | |
7748 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7749 | (exit $ac_status); }; } && | |
7750 | { ac_try='test -s conftest.$ac_objext' | |
7751 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7752 | (eval $ac_try) 2>&5 | |
7753 | ac_status=$? | |
7754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7755 | (exit $ac_status); }; }; then | |
697afb65 HPN |
7756 | ac_struct_stat_st_uid=yes; |
7757 | else | |
b7026657 AC |
7758 | echo "$as_me: failed program was:" >&5 |
7759 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7760 | ||
7761 | ac_struct_stat_st_uid=no; | |
697afb65 | 7762 | fi |
b7026657 | 7763 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
697afb65 | 7764 | fi |
b7026657 AC |
7765 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
7766 | if test $ac_struct_stat_st_uid = yes; then :; | |
7767 | cat >>confdefs.h <<_ACEOF | |
697afb65 | 7768 | #define HAVE_STRUCT_STAT_ST_UID 1 |
b7026657 | 7769 | _ACEOF |
697afb65 | 7770 | |
b7026657 | 7771 | else :; |
697afb65 HPN |
7772 | fi |
7773 | fi | |
b7026657 AC |
7774 | echo "$as_me:$LINENO: result: $ac_struct_stat_st_uid" >&5 |
7775 | echo "${ECHO_T}$ac_struct_stat_st_uid" >&6 | |
697afb65 | 7776 | |
b7026657 AC |
7777 | echo "$as_me:$LINENO: checking for struct stat.st_gid" >&5 |
7778 | echo $ECHO_N "checking for struct stat.st_gid... $ECHO_C" >&6 | |
7779 | if test "${ac_struct_stat_st_gid+set}" = set; then | |
7780 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
697afb65 HPN |
7781 | else |
7782 | ac_struct_stat_st_gid=no; | |
b7026657 AC |
7783 | cat >conftest.$ac_ext <<_ACEOF |
7784 | /* confdefs.h. */ | |
7785 | _ACEOF | |
7786 | cat confdefs.h >>conftest.$ac_ext | |
7787 | cat >>conftest.$ac_ext <<_ACEOF | |
7788 | /* end confdefs.h. */ | |
697afb65 HPN |
7789 | #ifdef HAVE_SYS_TYPES_H |
7790 | #include <sys/types.h> | |
7791 | #endif | |
7792 | #ifdef HAVE_SYS_STAT_H | |
7793 | #include <sys/stat.h> | |
7794 | #endif | |
b7026657 AC |
7795 | int |
7796 | main () | |
7797 | { | |
697afb65 HPN |
7798 | |
7799 | static struct stat ac_aggr; | |
7800 | if (ac_aggr.st_gid) | |
7801 | return 0; | |
b7026657 AC |
7802 | ; |
7803 | return 0; | |
7804 | } | |
7805 | _ACEOF | |
7806 | rm -f conftest.$ac_objext | |
7807 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7808 | (eval $ac_compile) 2>conftest.er1 | |
7809 | ac_status=$? | |
7810 | grep -v '^ *+' conftest.er1 >conftest.err | |
7811 | rm -f conftest.er1 | |
7812 | cat conftest.err >&5 | |
7813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7814 | (exit $ac_status); } && | |
7815 | { ac_try='test -z "$ac_c_werror_flag" | |
7816 | || test ! -s conftest.err' | |
7817 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7818 | (eval $ac_try) 2>&5 | |
7819 | ac_status=$? | |
7820 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7821 | (exit $ac_status); }; } && | |
7822 | { ac_try='test -s conftest.$ac_objext' | |
7823 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7824 | (eval $ac_try) 2>&5 | |
7825 | ac_status=$? | |
7826 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7827 | (exit $ac_status); }; }; then | |
697afb65 HPN |
7828 | ac_struct_stat_st_gid=yes; |
7829 | else | |
b7026657 AC |
7830 | echo "$as_me: failed program was:" >&5 |
7831 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7832 | ||
7833 | cat >conftest.$ac_ext <<_ACEOF | |
7834 | /* confdefs.h. */ | |
7835 | _ACEOF | |
7836 | cat confdefs.h >>conftest.$ac_ext | |
7837 | cat >>conftest.$ac_ext <<_ACEOF | |
7838 | /* end confdefs.h. */ | |
697afb65 HPN |
7839 | #ifdef HAVE_SYS_TYPES_H |
7840 | #include <sys/types.h> | |
7841 | #endif | |
7842 | #ifdef HAVE_SYS_STAT_H | |
7843 | #include <sys/stat.h> | |
7844 | #endif | |
b7026657 AC |
7845 | int |
7846 | main () | |
7847 | { | |
697afb65 HPN |
7848 | |
7849 | static struct stat ac_aggr; | |
7850 | if (sizeof ac_aggr.st_gid) | |
7851 | return 0; | |
b7026657 AC |
7852 | ; |
7853 | return 0; | |
7854 | } | |
7855 | _ACEOF | |
7856 | rm -f conftest.$ac_objext | |
7857 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7858 | (eval $ac_compile) 2>conftest.er1 | |
7859 | ac_status=$? | |
7860 | grep -v '^ *+' conftest.er1 >conftest.err | |
7861 | rm -f conftest.er1 | |
7862 | cat conftest.err >&5 | |
7863 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7864 | (exit $ac_status); } && | |
7865 | { ac_try='test -z "$ac_c_werror_flag" | |
7866 | || test ! -s conftest.err' | |
7867 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7868 | (eval $ac_try) 2>&5 | |
7869 | ac_status=$? | |
7870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7871 | (exit $ac_status); }; } && | |
7872 | { ac_try='test -s conftest.$ac_objext' | |
7873 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7874 | (eval $ac_try) 2>&5 | |
7875 | ac_status=$? | |
7876 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7877 | (exit $ac_status); }; }; then | |
697afb65 HPN |
7878 | ac_struct_stat_st_gid=yes; |
7879 | else | |
b7026657 AC |
7880 | echo "$as_me: failed program was:" >&5 |
7881 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7882 | ||
7883 | ac_struct_stat_st_gid=no; | |
697afb65 | 7884 | fi |
b7026657 | 7885 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
697afb65 | 7886 | fi |
b7026657 AC |
7887 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
7888 | if test $ac_struct_stat_st_gid = yes; then :; | |
7889 | cat >>confdefs.h <<_ACEOF | |
697afb65 | 7890 | #define HAVE_STRUCT_STAT_ST_GID 1 |
b7026657 | 7891 | _ACEOF |
697afb65 | 7892 | |
b7026657 | 7893 | else :; |
697afb65 HPN |
7894 | fi |
7895 | fi | |
b7026657 AC |
7896 | echo "$as_me:$LINENO: result: $ac_struct_stat_st_gid" >&5 |
7897 | echo "${ECHO_T}$ac_struct_stat_st_gid" >&6 | |
697afb65 | 7898 | |
b7026657 AC |
7899 | echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5 |
7900 | echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6 | |
7901 | if test "${ac_struct_stat_st_rdev+set}" = set; then | |
7902 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
697afb65 HPN |
7903 | else |
7904 | ac_struct_stat_st_rdev=no; | |
b7026657 AC |
7905 | cat >conftest.$ac_ext <<_ACEOF |
7906 | /* confdefs.h. */ | |
7907 | _ACEOF | |
7908 | cat confdefs.h >>conftest.$ac_ext | |
7909 | cat >>conftest.$ac_ext <<_ACEOF | |
7910 | /* end confdefs.h. */ | |
697afb65 HPN |
7911 | #ifdef HAVE_SYS_TYPES_H |
7912 | #include <sys/types.h> | |
7913 | #endif | |
7914 | #ifdef HAVE_SYS_STAT_H | |
7915 | #include <sys/stat.h> | |
7916 | #endif | |
b7026657 AC |
7917 | int |
7918 | main () | |
7919 | { | |
697afb65 HPN |
7920 | |
7921 | static struct stat ac_aggr; | |
7922 | if (ac_aggr.st_rdev) | |
7923 | return 0; | |
b7026657 AC |
7924 | ; |
7925 | return 0; | |
7926 | } | |
7927 | _ACEOF | |
7928 | rm -f conftest.$ac_objext | |
7929 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7930 | (eval $ac_compile) 2>conftest.er1 | |
7931 | ac_status=$? | |
7932 | grep -v '^ *+' conftest.er1 >conftest.err | |
7933 | rm -f conftest.er1 | |
7934 | cat conftest.err >&5 | |
7935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7936 | (exit $ac_status); } && | |
7937 | { ac_try='test -z "$ac_c_werror_flag" | |
7938 | || test ! -s conftest.err' | |
7939 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7940 | (eval $ac_try) 2>&5 | |
7941 | ac_status=$? | |
7942 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7943 | (exit $ac_status); }; } && | |
7944 | { ac_try='test -s conftest.$ac_objext' | |
7945 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7946 | (eval $ac_try) 2>&5 | |
7947 | ac_status=$? | |
7948 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7949 | (exit $ac_status); }; }; then | |
697afb65 HPN |
7950 | ac_struct_stat_st_rdev=yes; |
7951 | else | |
b7026657 AC |
7952 | echo "$as_me: failed program was:" >&5 |
7953 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7954 | ||
7955 | cat >conftest.$ac_ext <<_ACEOF | |
7956 | /* confdefs.h. */ | |
7957 | _ACEOF | |
7958 | cat confdefs.h >>conftest.$ac_ext | |
7959 | cat >>conftest.$ac_ext <<_ACEOF | |
7960 | /* end confdefs.h. */ | |
697afb65 HPN |
7961 | #ifdef HAVE_SYS_TYPES_H |
7962 | #include <sys/types.h> | |
7963 | #endif | |
7964 | #ifdef HAVE_SYS_STAT_H | |
7965 | #include <sys/stat.h> | |
7966 | #endif | |
b7026657 AC |
7967 | int |
7968 | main () | |
7969 | { | |
697afb65 HPN |
7970 | |
7971 | static struct stat ac_aggr; | |
7972 | if (sizeof ac_aggr.st_rdev) | |
7973 | return 0; | |
b7026657 AC |
7974 | ; |
7975 | return 0; | |
7976 | } | |
7977 | _ACEOF | |
7978 | rm -f conftest.$ac_objext | |
7979 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7980 | (eval $ac_compile) 2>conftest.er1 | |
7981 | ac_status=$? | |
7982 | grep -v '^ *+' conftest.er1 >conftest.err | |
7983 | rm -f conftest.er1 | |
7984 | cat conftest.err >&5 | |
7985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7986 | (exit $ac_status); } && | |
7987 | { ac_try='test -z "$ac_c_werror_flag" | |
7988 | || test ! -s conftest.err' | |
7989 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7990 | (eval $ac_try) 2>&5 | |
7991 | ac_status=$? | |
7992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7993 | (exit $ac_status); }; } && | |
7994 | { ac_try='test -s conftest.$ac_objext' | |
7995 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7996 | (eval $ac_try) 2>&5 | |
7997 | ac_status=$? | |
7998 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7999 | (exit $ac_status); }; }; then | |
697afb65 HPN |
8000 | ac_struct_stat_st_rdev=yes; |
8001 | else | |
b7026657 AC |
8002 | echo "$as_me: failed program was:" >&5 |
8003 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8004 | ||
8005 | ac_struct_stat_st_rdev=no; | |
697afb65 | 8006 | fi |
b7026657 | 8007 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
697afb65 | 8008 | fi |
b7026657 AC |
8009 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
8010 | if test $ac_struct_stat_st_rdev = yes; then :; | |
8011 | cat >>confdefs.h <<_ACEOF | |
697afb65 | 8012 | #define HAVE_STRUCT_STAT_ST_RDEV 1 |
b7026657 | 8013 | _ACEOF |
697afb65 | 8014 | |
b7026657 | 8015 | else :; |
697afb65 HPN |
8016 | fi |
8017 | fi | |
b7026657 AC |
8018 | echo "$as_me:$LINENO: result: $ac_struct_stat_st_rdev" >&5 |
8019 | echo "${ECHO_T}$ac_struct_stat_st_rdev" >&6 | |
697afb65 | 8020 | |
b7026657 AC |
8021 | echo "$as_me:$LINENO: checking for struct stat.st_size" >&5 |
8022 | echo $ECHO_N "checking for struct stat.st_size... $ECHO_C" >&6 | |
8023 | if test "${ac_struct_stat_st_size+set}" = set; then | |
8024 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
697afb65 HPN |
8025 | else |
8026 | ac_struct_stat_st_size=no; | |
b7026657 AC |
8027 | cat >conftest.$ac_ext <<_ACEOF |
8028 | /* confdefs.h. */ | |
8029 | _ACEOF | |
8030 | cat confdefs.h >>conftest.$ac_ext | |
8031 | cat >>conftest.$ac_ext <<_ACEOF | |
8032 | /* end confdefs.h. */ | |
697afb65 HPN |
8033 | #ifdef HAVE_SYS_TYPES_H |
8034 | #include <sys/types.h> | |
8035 | #endif | |
8036 | #ifdef HAVE_SYS_STAT_H | |
8037 | #include <sys/stat.h> | |
8038 | #endif | |
b7026657 AC |
8039 | int |
8040 | main () | |
8041 | { | |
697afb65 HPN |
8042 | |
8043 | static struct stat ac_aggr; | |
8044 | if (ac_aggr.st_size) | |
8045 | return 0; | |
b7026657 AC |
8046 | ; |
8047 | return 0; | |
8048 | } | |
8049 | _ACEOF | |
8050 | rm -f conftest.$ac_objext | |
8051 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8052 | (eval $ac_compile) 2>conftest.er1 | |
8053 | ac_status=$? | |
8054 | grep -v '^ *+' conftest.er1 >conftest.err | |
8055 | rm -f conftest.er1 | |
8056 | cat conftest.err >&5 | |
8057 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8058 | (exit $ac_status); } && | |
8059 | { ac_try='test -z "$ac_c_werror_flag" | |
8060 | || test ! -s conftest.err' | |
8061 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8062 | (eval $ac_try) 2>&5 | |
8063 | ac_status=$? | |
8064 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8065 | (exit $ac_status); }; } && | |
8066 | { ac_try='test -s conftest.$ac_objext' | |
8067 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8068 | (eval $ac_try) 2>&5 | |
8069 | ac_status=$? | |
8070 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8071 | (exit $ac_status); }; }; then | |
697afb65 HPN |
8072 | ac_struct_stat_st_size=yes; |
8073 | else | |
b7026657 AC |
8074 | echo "$as_me: failed program was:" >&5 |
8075 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8076 | ||
8077 | cat >conftest.$ac_ext <<_ACEOF | |
8078 | /* confdefs.h. */ | |
8079 | _ACEOF | |
8080 | cat confdefs.h >>conftest.$ac_ext | |
8081 | cat >>conftest.$ac_ext <<_ACEOF | |
8082 | /* end confdefs.h. */ | |
697afb65 HPN |
8083 | #ifdef HAVE_SYS_TYPES_H |
8084 | #include <sys/types.h> | |
8085 | #endif | |
8086 | #ifdef HAVE_SYS_STAT_H | |
8087 | #include <sys/stat.h> | |
8088 | #endif | |
b7026657 AC |
8089 | int |
8090 | main () | |
8091 | { | |
697afb65 HPN |
8092 | |
8093 | static struct stat ac_aggr; | |
8094 | if (sizeof ac_aggr.st_size) | |
8095 | return 0; | |
b7026657 AC |
8096 | ; |
8097 | return 0; | |
8098 | } | |
8099 | _ACEOF | |
8100 | rm -f conftest.$ac_objext | |
8101 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8102 | (eval $ac_compile) 2>conftest.er1 | |
8103 | ac_status=$? | |
8104 | grep -v '^ *+' conftest.er1 >conftest.err | |
8105 | rm -f conftest.er1 | |
8106 | cat conftest.err >&5 | |
8107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8108 | (exit $ac_status); } && | |
8109 | { ac_try='test -z "$ac_c_werror_flag" | |
8110 | || test ! -s conftest.err' | |
8111 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8112 | (eval $ac_try) 2>&5 | |
8113 | ac_status=$? | |
8114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8115 | (exit $ac_status); }; } && | |
8116 | { ac_try='test -s conftest.$ac_objext' | |
8117 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8118 | (eval $ac_try) 2>&5 | |
8119 | ac_status=$? | |
8120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8121 | (exit $ac_status); }; }; then | |
697afb65 HPN |
8122 | ac_struct_stat_st_size=yes; |
8123 | else | |
b7026657 AC |
8124 | echo "$as_me: failed program was:" >&5 |
8125 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8126 | ||
8127 | ac_struct_stat_st_size=no; | |
697afb65 | 8128 | fi |
b7026657 | 8129 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
697afb65 | 8130 | fi |
b7026657 AC |
8131 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
8132 | if test $ac_struct_stat_st_size = yes; then :; | |
8133 | cat >>confdefs.h <<_ACEOF | |
697afb65 | 8134 | #define HAVE_STRUCT_STAT_ST_SIZE 1 |
b7026657 | 8135 | _ACEOF |
697afb65 | 8136 | |
b7026657 | 8137 | else :; |
697afb65 HPN |
8138 | fi |
8139 | fi | |
b7026657 AC |
8140 | echo "$as_me:$LINENO: result: $ac_struct_stat_st_size" >&5 |
8141 | echo "${ECHO_T}$ac_struct_stat_st_size" >&6 | |
697afb65 | 8142 | |
b7026657 AC |
8143 | echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5 |
8144 | echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6 | |
8145 | if test "${ac_struct_stat_st_blksize+set}" = set; then | |
8146 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
697afb65 HPN |
8147 | else |
8148 | ac_struct_stat_st_blksize=no; | |
b7026657 AC |
8149 | cat >conftest.$ac_ext <<_ACEOF |
8150 | /* confdefs.h. */ | |
8151 | _ACEOF | |
8152 | cat confdefs.h >>conftest.$ac_ext | |
8153 | cat >>conftest.$ac_ext <<_ACEOF | |
8154 | /* end confdefs.h. */ | |
697afb65 HPN |
8155 | #ifdef HAVE_SYS_TYPES_H |
8156 | #include <sys/types.h> | |
8157 | #endif | |
8158 | #ifdef HAVE_SYS_STAT_H | |
8159 | #include <sys/stat.h> | |
8160 | #endif | |
b7026657 AC |
8161 | int |
8162 | main () | |
8163 | { | |
697afb65 HPN |
8164 | |
8165 | static struct stat ac_aggr; | |
8166 | if (ac_aggr.st_blksize) | |
8167 | return 0; | |
b7026657 AC |
8168 | ; |
8169 | return 0; | |
8170 | } | |
8171 | _ACEOF | |
8172 | rm -f conftest.$ac_objext | |
8173 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8174 | (eval $ac_compile) 2>conftest.er1 | |
8175 | ac_status=$? | |
8176 | grep -v '^ *+' conftest.er1 >conftest.err | |
8177 | rm -f conftest.er1 | |
8178 | cat conftest.err >&5 | |
8179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8180 | (exit $ac_status); } && | |
8181 | { ac_try='test -z "$ac_c_werror_flag" | |
8182 | || test ! -s conftest.err' | |
8183 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8184 | (eval $ac_try) 2>&5 | |
8185 | ac_status=$? | |
8186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8187 | (exit $ac_status); }; } && | |
8188 | { ac_try='test -s conftest.$ac_objext' | |
8189 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8190 | (eval $ac_try) 2>&5 | |
8191 | ac_status=$? | |
8192 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8193 | (exit $ac_status); }; }; then | |
697afb65 HPN |
8194 | ac_struct_stat_st_blksize=yes; |
8195 | else | |
b7026657 AC |
8196 | echo "$as_me: failed program was:" >&5 |
8197 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8198 | ||
8199 | cat >conftest.$ac_ext <<_ACEOF | |
8200 | /* confdefs.h. */ | |
8201 | _ACEOF | |
8202 | cat confdefs.h >>conftest.$ac_ext | |
8203 | cat >>conftest.$ac_ext <<_ACEOF | |
8204 | /* end confdefs.h. */ | |
697afb65 HPN |
8205 | #ifdef HAVE_SYS_TYPES_H |
8206 | #include <sys/types.h> | |
8207 | #endif | |
8208 | #ifdef HAVE_SYS_STAT_H | |
8209 | #include <sys/stat.h> | |
8210 | #endif | |
b7026657 AC |
8211 | int |
8212 | main () | |
8213 | { | |
697afb65 HPN |
8214 | |
8215 | static struct stat ac_aggr; | |
8216 | if (sizeof ac_aggr.st_blksize) | |
8217 | return 0; | |
b7026657 AC |
8218 | ; |
8219 | return 0; | |
8220 | } | |
8221 | _ACEOF | |
8222 | rm -f conftest.$ac_objext | |
8223 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8224 | (eval $ac_compile) 2>conftest.er1 | |
8225 | ac_status=$? | |
8226 | grep -v '^ *+' conftest.er1 >conftest.err | |
8227 | rm -f conftest.er1 | |
8228 | cat conftest.err >&5 | |
8229 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8230 | (exit $ac_status); } && | |
8231 | { ac_try='test -z "$ac_c_werror_flag" | |
8232 | || test ! -s conftest.err' | |
8233 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8234 | (eval $ac_try) 2>&5 | |
8235 | ac_status=$? | |
8236 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8237 | (exit $ac_status); }; } && | |
8238 | { ac_try='test -s conftest.$ac_objext' | |
8239 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8240 | (eval $ac_try) 2>&5 | |
8241 | ac_status=$? | |
8242 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8243 | (exit $ac_status); }; }; then | |
697afb65 HPN |
8244 | ac_struct_stat_st_blksize=yes; |
8245 | else | |
b7026657 AC |
8246 | echo "$as_me: failed program was:" >&5 |
8247 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8248 | ||
8249 | ac_struct_stat_st_blksize=no; | |
697afb65 | 8250 | fi |
b7026657 | 8251 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
697afb65 | 8252 | fi |
b7026657 AC |
8253 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
8254 | if test $ac_struct_stat_st_blksize = yes; then :; | |
8255 | cat >>confdefs.h <<_ACEOF | |
697afb65 | 8256 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 |
b7026657 | 8257 | _ACEOF |
697afb65 | 8258 | |
b7026657 | 8259 | else :; |
697afb65 HPN |
8260 | fi |
8261 | fi | |
b7026657 AC |
8262 | echo "$as_me:$LINENO: result: $ac_struct_stat_st_blksize" >&5 |
8263 | echo "${ECHO_T}$ac_struct_stat_st_blksize" >&6 | |
697afb65 | 8264 | |
b7026657 AC |
8265 | echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5 |
8266 | echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6 | |
8267 | if test "${ac_struct_stat_st_blocks+set}" = set; then | |
8268 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
697afb65 HPN |
8269 | else |
8270 | ac_struct_stat_st_blocks=no; | |
b7026657 AC |
8271 | cat >conftest.$ac_ext <<_ACEOF |
8272 | /* confdefs.h. */ | |
8273 | _ACEOF | |
8274 | cat confdefs.h >>conftest.$ac_ext | |
8275 | cat >>conftest.$ac_ext <<_ACEOF | |
8276 | /* end confdefs.h. */ | |
697afb65 HPN |
8277 | #ifdef HAVE_SYS_TYPES_H |
8278 | #include <sys/types.h> | |
8279 | #endif | |
8280 | #ifdef HAVE_SYS_STAT_H | |
8281 | #include <sys/stat.h> | |
8282 | #endif | |
b7026657 AC |
8283 | int |
8284 | main () | |
8285 | { | |
697afb65 HPN |
8286 | |
8287 | static struct stat ac_aggr; | |
8288 | if (ac_aggr.st_blocks) | |
8289 | return 0; | |
b7026657 AC |
8290 | ; |
8291 | return 0; | |
8292 | } | |
8293 | _ACEOF | |
8294 | rm -f conftest.$ac_objext | |
8295 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8296 | (eval $ac_compile) 2>conftest.er1 | |
8297 | ac_status=$? | |
8298 | grep -v '^ *+' conftest.er1 >conftest.err | |
8299 | rm -f conftest.er1 | |
8300 | cat conftest.err >&5 | |
8301 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8302 | (exit $ac_status); } && | |
8303 | { ac_try='test -z "$ac_c_werror_flag" | |
8304 | || test ! -s conftest.err' | |
8305 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8306 | (eval $ac_try) 2>&5 | |
8307 | ac_status=$? | |
8308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8309 | (exit $ac_status); }; } && | |
8310 | { ac_try='test -s conftest.$ac_objext' | |
8311 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8312 | (eval $ac_try) 2>&5 | |
8313 | ac_status=$? | |
8314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8315 | (exit $ac_status); }; }; then | |
697afb65 HPN |
8316 | ac_struct_stat_st_blocks=yes; |
8317 | else | |
b7026657 AC |
8318 | echo "$as_me: failed program was:" >&5 |
8319 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8320 | ||
8321 | cat >conftest.$ac_ext <<_ACEOF | |
8322 | /* confdefs.h. */ | |
8323 | _ACEOF | |
8324 | cat confdefs.h >>conftest.$ac_ext | |
8325 | cat >>conftest.$ac_ext <<_ACEOF | |
8326 | /* end confdefs.h. */ | |
697afb65 HPN |
8327 | #ifdef HAVE_SYS_TYPES_H |
8328 | #include <sys/types.h> | |
8329 | #endif | |
8330 | #ifdef HAVE_SYS_STAT_H | |
8331 | #include <sys/stat.h> | |
8332 | #endif | |
b7026657 AC |
8333 | int |
8334 | main () | |
8335 | { | |
697afb65 HPN |
8336 | |
8337 | static struct stat ac_aggr; | |
8338 | if (sizeof ac_aggr.st_blocks) | |
8339 | return 0; | |
b7026657 AC |
8340 | ; |
8341 | return 0; | |
8342 | } | |
8343 | _ACEOF | |
8344 | rm -f conftest.$ac_objext | |
8345 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8346 | (eval $ac_compile) 2>conftest.er1 | |
8347 | ac_status=$? | |
8348 | grep -v '^ *+' conftest.er1 >conftest.err | |
8349 | rm -f conftest.er1 | |
8350 | cat conftest.err >&5 | |
8351 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8352 | (exit $ac_status); } && | |
8353 | { ac_try='test -z "$ac_c_werror_flag" | |
8354 | || test ! -s conftest.err' | |
8355 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8356 | (eval $ac_try) 2>&5 | |
8357 | ac_status=$? | |
8358 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8359 | (exit $ac_status); }; } && | |
8360 | { ac_try='test -s conftest.$ac_objext' | |
8361 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8362 | (eval $ac_try) 2>&5 | |
8363 | ac_status=$? | |
8364 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8365 | (exit $ac_status); }; }; then | |
697afb65 HPN |
8366 | ac_struct_stat_st_blocks=yes; |
8367 | else | |
b7026657 AC |
8368 | echo "$as_me: failed program was:" >&5 |
8369 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8370 | ||
8371 | ac_struct_stat_st_blocks=no; | |
697afb65 | 8372 | fi |
b7026657 | 8373 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
697afb65 | 8374 | fi |
b7026657 AC |
8375 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
8376 | if test $ac_struct_stat_st_blocks = yes; then :; | |
8377 | cat >>confdefs.h <<_ACEOF | |
697afb65 | 8378 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 |
b7026657 | 8379 | _ACEOF |
697afb65 | 8380 | |
b7026657 | 8381 | else :; |
697afb65 HPN |
8382 | fi |
8383 | fi | |
b7026657 AC |
8384 | echo "$as_me:$LINENO: result: $ac_struct_stat_st_blocks" >&5 |
8385 | echo "${ECHO_T}$ac_struct_stat_st_blocks" >&6 | |
697afb65 | 8386 | |
b7026657 AC |
8387 | echo "$as_me:$LINENO: checking for struct stat.st_atime" >&5 |
8388 | echo $ECHO_N "checking for struct stat.st_atime... $ECHO_C" >&6 | |
8389 | if test "${ac_struct_stat_st_atime+set}" = set; then | |
8390 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
697afb65 HPN |
8391 | else |
8392 | ac_struct_stat_st_atime=no; | |
b7026657 AC |
8393 | cat >conftest.$ac_ext <<_ACEOF |
8394 | /* confdefs.h. */ | |
8395 | _ACEOF | |
8396 | cat confdefs.h >>conftest.$ac_ext | |
8397 | cat >>conftest.$ac_ext <<_ACEOF | |
8398 | /* end confdefs.h. */ | |
697afb65 HPN |
8399 | #ifdef HAVE_SYS_TYPES_H |
8400 | #include <sys/types.h> | |
8401 | #endif | |
8402 | #ifdef HAVE_SYS_STAT_H | |
8403 | #include <sys/stat.h> | |
8404 | #endif | |
b7026657 AC |
8405 | int |
8406 | main () | |
8407 | { | |
697afb65 HPN |
8408 | |
8409 | static struct stat ac_aggr; | |
8410 | if (ac_aggr.st_atime) | |
8411 | return 0; | |
b7026657 AC |
8412 | ; |
8413 | return 0; | |
8414 | } | |
8415 | _ACEOF | |
8416 | rm -f conftest.$ac_objext | |
8417 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8418 | (eval $ac_compile) 2>conftest.er1 | |
8419 | ac_status=$? | |
8420 | grep -v '^ *+' conftest.er1 >conftest.err | |
8421 | rm -f conftest.er1 | |
8422 | cat conftest.err >&5 | |
8423 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8424 | (exit $ac_status); } && | |
8425 | { ac_try='test -z "$ac_c_werror_flag" | |
8426 | || test ! -s conftest.err' | |
8427 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8428 | (eval $ac_try) 2>&5 | |
8429 | ac_status=$? | |
8430 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8431 | (exit $ac_status); }; } && | |
8432 | { ac_try='test -s conftest.$ac_objext' | |
8433 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8434 | (eval $ac_try) 2>&5 | |
8435 | ac_status=$? | |
8436 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8437 | (exit $ac_status); }; }; then | |
697afb65 HPN |
8438 | ac_struct_stat_st_atime=yes; |
8439 | else | |
b7026657 AC |
8440 | echo "$as_me: failed program was:" >&5 |
8441 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8442 | ||
8443 | cat >conftest.$ac_ext <<_ACEOF | |
8444 | /* confdefs.h. */ | |
8445 | _ACEOF | |
8446 | cat confdefs.h >>conftest.$ac_ext | |
8447 | cat >>conftest.$ac_ext <<_ACEOF | |
8448 | /* end confdefs.h. */ | |
697afb65 HPN |
8449 | #ifdef HAVE_SYS_TYPES_H |
8450 | #include <sys/types.h> | |
8451 | #endif | |
8452 | #ifdef HAVE_SYS_STAT_H | |
8453 | #include <sys/stat.h> | |
8454 | #endif | |
b7026657 AC |
8455 | int |
8456 | main () | |
8457 | { | |
697afb65 HPN |
8458 | |
8459 | static struct stat ac_aggr; | |
8460 | if (sizeof ac_aggr.st_atime) | |
8461 | return 0; | |
b7026657 AC |
8462 | ; |
8463 | return 0; | |
8464 | } | |
8465 | _ACEOF | |
8466 | rm -f conftest.$ac_objext | |
8467 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8468 | (eval $ac_compile) 2>conftest.er1 | |
8469 | ac_status=$? | |
8470 | grep -v '^ *+' conftest.er1 >conftest.err | |
8471 | rm -f conftest.er1 | |
8472 | cat conftest.err >&5 | |
8473 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8474 | (exit $ac_status); } && | |
8475 | { ac_try='test -z "$ac_c_werror_flag" | |
8476 | || test ! -s conftest.err' | |
8477 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8478 | (eval $ac_try) 2>&5 | |
8479 | ac_status=$? | |
8480 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8481 | (exit $ac_status); }; } && | |
8482 | { ac_try='test -s conftest.$ac_objext' | |
8483 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8484 | (eval $ac_try) 2>&5 | |
8485 | ac_status=$? | |
8486 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8487 | (exit $ac_status); }; }; then | |
697afb65 HPN |
8488 | ac_struct_stat_st_atime=yes; |
8489 | else | |
b7026657 AC |
8490 | echo "$as_me: failed program was:" >&5 |
8491 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8492 | ||
8493 | ac_struct_stat_st_atime=no; | |
697afb65 | 8494 | fi |
b7026657 | 8495 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
697afb65 | 8496 | fi |
b7026657 AC |
8497 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
8498 | if test $ac_struct_stat_st_atime = yes; then :; | |
8499 | cat >>confdefs.h <<_ACEOF | |
697afb65 | 8500 | #define HAVE_STRUCT_STAT_ST_ATIME 1 |
b7026657 | 8501 | _ACEOF |
697afb65 | 8502 | |
b7026657 | 8503 | else :; |
697afb65 HPN |
8504 | fi |
8505 | fi | |
b7026657 AC |
8506 | echo "$as_me:$LINENO: result: $ac_struct_stat_st_atime" >&5 |
8507 | echo "${ECHO_T}$ac_struct_stat_st_atime" >&6 | |
697afb65 | 8508 | |
b7026657 AC |
8509 | echo "$as_me:$LINENO: checking for struct stat.st_mtime" >&5 |
8510 | echo $ECHO_N "checking for struct stat.st_mtime... $ECHO_C" >&6 | |
8511 | if test "${ac_struct_stat_st_mtime+set}" = set; then | |
8512 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
697afb65 HPN |
8513 | else |
8514 | ac_struct_stat_st_mtime=no; | |
b7026657 AC |
8515 | cat >conftest.$ac_ext <<_ACEOF |
8516 | /* confdefs.h. */ | |
8517 | _ACEOF | |
8518 | cat confdefs.h >>conftest.$ac_ext | |
8519 | cat >>conftest.$ac_ext <<_ACEOF | |
8520 | /* end confdefs.h. */ | |
697afb65 HPN |
8521 | #ifdef HAVE_SYS_TYPES_H |
8522 | #include <sys/types.h> | |
8523 | #endif | |
8524 | #ifdef HAVE_SYS_STAT_H | |
8525 | #include <sys/stat.h> | |
8526 | #endif | |
b7026657 AC |
8527 | int |
8528 | main () | |
8529 | { | |
697afb65 HPN |
8530 | |
8531 | static struct stat ac_aggr; | |
8532 | if (ac_aggr.st_mtime) | |
8533 | return 0; | |
b7026657 AC |
8534 | ; |
8535 | return 0; | |
8536 | } | |
8537 | _ACEOF | |
8538 | rm -f conftest.$ac_objext | |
8539 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8540 | (eval $ac_compile) 2>conftest.er1 | |
8541 | ac_status=$? | |
8542 | grep -v '^ *+' conftest.er1 >conftest.err | |
8543 | rm -f conftest.er1 | |
8544 | cat conftest.err >&5 | |
8545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8546 | (exit $ac_status); } && | |
8547 | { ac_try='test -z "$ac_c_werror_flag" | |
8548 | || test ! -s conftest.err' | |
8549 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8550 | (eval $ac_try) 2>&5 | |
8551 | ac_status=$? | |
8552 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8553 | (exit $ac_status); }; } && | |
8554 | { ac_try='test -s conftest.$ac_objext' | |
8555 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8556 | (eval $ac_try) 2>&5 | |
8557 | ac_status=$? | |
8558 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8559 | (exit $ac_status); }; }; then | |
697afb65 HPN |
8560 | ac_struct_stat_st_mtime=yes; |
8561 | else | |
b7026657 AC |
8562 | echo "$as_me: failed program was:" >&5 |
8563 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8564 | ||
8565 | cat >conftest.$ac_ext <<_ACEOF | |
8566 | /* confdefs.h. */ | |
8567 | _ACEOF | |
8568 | cat confdefs.h >>conftest.$ac_ext | |
8569 | cat >>conftest.$ac_ext <<_ACEOF | |
8570 | /* end confdefs.h. */ | |
697afb65 HPN |
8571 | #ifdef HAVE_SYS_TYPES_H |
8572 | #include <sys/types.h> | |
8573 | #endif | |
8574 | #ifdef HAVE_SYS_STAT_H | |
8575 | #include <sys/stat.h> | |
8576 | #endif | |
b7026657 AC |
8577 | int |
8578 | main () | |
8579 | { | |
697afb65 HPN |
8580 | |
8581 | static struct stat ac_aggr; | |
8582 | if (sizeof ac_aggr.st_mtime) | |
8583 | return 0; | |
b7026657 AC |
8584 | ; |
8585 | return 0; | |
8586 | } | |
8587 | _ACEOF | |
8588 | rm -f conftest.$ac_objext | |
8589 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8590 | (eval $ac_compile) 2>conftest.er1 | |
8591 | ac_status=$? | |
8592 | grep -v '^ *+' conftest.er1 >conftest.err | |
8593 | rm -f conftest.er1 | |
8594 | cat conftest.err >&5 | |
8595 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8596 | (exit $ac_status); } && | |
8597 | { ac_try='test -z "$ac_c_werror_flag" | |
8598 | || test ! -s conftest.err' | |
8599 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8600 | (eval $ac_try) 2>&5 | |
8601 | ac_status=$? | |
8602 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8603 | (exit $ac_status); }; } && | |
8604 | { ac_try='test -s conftest.$ac_objext' | |
8605 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8606 | (eval $ac_try) 2>&5 | |
8607 | ac_status=$? | |
8608 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8609 | (exit $ac_status); }; }; then | |
697afb65 HPN |
8610 | ac_struct_stat_st_mtime=yes; |
8611 | else | |
b7026657 AC |
8612 | echo "$as_me: failed program was:" >&5 |
8613 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8614 | ||
8615 | ac_struct_stat_st_mtime=no; | |
697afb65 | 8616 | fi |
b7026657 | 8617 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
697afb65 | 8618 | fi |
b7026657 AC |
8619 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
8620 | if test $ac_struct_stat_st_mtime = yes; then :; | |
8621 | cat >>confdefs.h <<_ACEOF | |
697afb65 | 8622 | #define HAVE_STRUCT_STAT_ST_MTIME 1 |
b7026657 | 8623 | _ACEOF |
697afb65 | 8624 | |
b7026657 | 8625 | else :; |
697afb65 HPN |
8626 | fi |
8627 | fi | |
b7026657 AC |
8628 | echo "$as_me:$LINENO: result: $ac_struct_stat_st_mtime" >&5 |
8629 | echo "${ECHO_T}$ac_struct_stat_st_mtime" >&6 | |
697afb65 | 8630 | |
b7026657 AC |
8631 | echo "$as_me:$LINENO: checking for struct stat.st_ctime" >&5 |
8632 | echo $ECHO_N "checking for struct stat.st_ctime... $ECHO_C" >&6 | |
8633 | if test "${ac_struct_stat_st_ctime+set}" = set; then | |
8634 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
697afb65 HPN |
8635 | else |
8636 | ac_struct_stat_st_ctime=no; | |
b7026657 AC |
8637 | cat >conftest.$ac_ext <<_ACEOF |
8638 | /* confdefs.h. */ | |
8639 | _ACEOF | |
8640 | cat confdefs.h >>conftest.$ac_ext | |
8641 | cat >>conftest.$ac_ext <<_ACEOF | |
8642 | /* end confdefs.h. */ | |
697afb65 HPN |
8643 | #ifdef HAVE_SYS_TYPES_H |
8644 | #include <sys/types.h> | |
8645 | #endif | |
8646 | #ifdef HAVE_SYS_STAT_H | |
8647 | #include <sys/stat.h> | |
8648 | #endif | |
b7026657 AC |
8649 | int |
8650 | main () | |
8651 | { | |
697afb65 HPN |
8652 | |
8653 | static struct stat ac_aggr; | |
8654 | if (ac_aggr.st_ctime) | |
8655 | return 0; | |
b7026657 AC |
8656 | ; |
8657 | return 0; | |
8658 | } | |
8659 | _ACEOF | |
8660 | rm -f conftest.$ac_objext | |
8661 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8662 | (eval $ac_compile) 2>conftest.er1 | |
8663 | ac_status=$? | |
8664 | grep -v '^ *+' conftest.er1 >conftest.err | |
8665 | rm -f conftest.er1 | |
8666 | cat conftest.err >&5 | |
8667 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8668 | (exit $ac_status); } && | |
8669 | { ac_try='test -z "$ac_c_werror_flag" | |
8670 | || test ! -s conftest.err' | |
8671 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8672 | (eval $ac_try) 2>&5 | |
8673 | ac_status=$? | |
8674 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8675 | (exit $ac_status); }; } && | |
8676 | { ac_try='test -s conftest.$ac_objext' | |
8677 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8678 | (eval $ac_try) 2>&5 | |
8679 | ac_status=$? | |
8680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8681 | (exit $ac_status); }; }; then | |
697afb65 HPN |
8682 | ac_struct_stat_st_ctime=yes; |
8683 | else | |
b7026657 AC |
8684 | echo "$as_me: failed program was:" >&5 |
8685 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8686 | ||
8687 | cat >conftest.$ac_ext <<_ACEOF | |
8688 | /* confdefs.h. */ | |
8689 | _ACEOF | |
8690 | cat confdefs.h >>conftest.$ac_ext | |
8691 | cat >>conftest.$ac_ext <<_ACEOF | |
8692 | /* end confdefs.h. */ | |
697afb65 HPN |
8693 | #ifdef HAVE_SYS_TYPES_H |
8694 | #include <sys/types.h> | |
8695 | #endif | |
8696 | #ifdef HAVE_SYS_STAT_H | |
8697 | #include <sys/stat.h> | |
8698 | #endif | |
b7026657 AC |
8699 | int |
8700 | main () | |
8701 | { | |
697afb65 HPN |
8702 | |
8703 | static struct stat ac_aggr; | |
8704 | if (sizeof ac_aggr.st_ctime) | |
8705 | return 0; | |
b7026657 AC |
8706 | ; |
8707 | return 0; | |
8708 | } | |
8709 | _ACEOF | |
8710 | rm -f conftest.$ac_objext | |
8711 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8712 | (eval $ac_compile) 2>conftest.er1 | |
8713 | ac_status=$? | |
8714 | grep -v '^ *+' conftest.er1 >conftest.err | |
8715 | rm -f conftest.er1 | |
8716 | cat conftest.err >&5 | |
8717 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8718 | (exit $ac_status); } && | |
8719 | { ac_try='test -z "$ac_c_werror_flag" | |
8720 | || test ! -s conftest.err' | |
8721 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8722 | (eval $ac_try) 2>&5 | |
8723 | ac_status=$? | |
8724 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8725 | (exit $ac_status); }; } && | |
8726 | { ac_try='test -s conftest.$ac_objext' | |
8727 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8728 | (eval $ac_try) 2>&5 | |
8729 | ac_status=$? | |
8730 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8731 | (exit $ac_status); }; }; then | |
697afb65 HPN |
8732 | ac_struct_stat_st_ctime=yes; |
8733 | else | |
b7026657 AC |
8734 | echo "$as_me: failed program was:" >&5 |
8735 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8736 | ||
8737 | ac_struct_stat_st_ctime=no; | |
697afb65 | 8738 | fi |
b7026657 | 8739 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
697afb65 | 8740 | fi |
b7026657 AC |
8741 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
8742 | if test $ac_struct_stat_st_ctime = yes; then :; | |
8743 | cat >>confdefs.h <<_ACEOF | |
697afb65 | 8744 | #define HAVE_STRUCT_STAT_ST_CTIME 1 |
b7026657 | 8745 | _ACEOF |
697afb65 | 8746 | |
b7026657 | 8747 | else :; |
697afb65 HPN |
8748 | fi |
8749 | fi | |
b7026657 AC |
8750 | echo "$as_me:$LINENO: result: $ac_struct_stat_st_ctime" >&5 |
8751 | echo "${ECHO_T}$ac_struct_stat_st_ctime" >&6 | |
697afb65 | 8752 | |
b7026657 AC |
8753 | ac_config_files="$ac_config_files Makefile" |
8754 | ac_config_commands="$ac_config_commands default" | |
8755 | cat >confcache <<\_ACEOF | |
c906108c SS |
8756 | # This file is a shell script that caches the results of configure |
8757 | # tests run on this system so they can be shared between configure | |
b7026657 AC |
8758 | # scripts and configure runs, see configure's option --config-cache. |
8759 | # It is not useful on other systems. If it contains results you don't | |
8760 | # want to keep, you may remove or edit it. | |
c906108c | 8761 | # |
b7026657 AC |
8762 | # config.status only pays attention to the cache file if you give it |
8763 | # the --recheck option to rerun configure. | |
c906108c | 8764 | # |
b7026657 AC |
8765 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
8766 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
8767 | # following values. | |
8768 | ||
8769 | _ACEOF | |
8770 | ||
c906108c SS |
8771 | # The following way of writing the cache mishandles newlines in values, |
8772 | # but we know of no workaround that is simple, portable, and efficient. | |
8773 | # So, don't put newlines in cache variables' values. | |
8774 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
8775 | # and sets the high bit in the cache file unless we assign to the vars. | |
b7026657 AC |
8776 | { |
8777 | (set) 2>&1 | | |
8778 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
8779 | *ac_space=\ *) | |
8780 | # `set' does not quote correctly, so add quotes (double-quote | |
8781 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
8782 | sed -n \ | |
8783 | "s/'/'\\\\''/g; | |
8784 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
8785 | ;; | |
8786 | *) | |
8787 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
8788 | sed -n \ | |
8789 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
8790 | ;; | |
8791 | esac; | |
8792 | } | | |
8793 | sed ' | |
8794 | t clear | |
8795 | : clear | |
8796 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
8797 | t end | |
8798 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
8799 | : end' >>confcache | |
8800 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
c906108c | 8801 | if test -w $cache_file; then |
b7026657 AC |
8802 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
8803 | cat confcache >$cache_file | |
c906108c SS |
8804 | else |
8805 | echo "not updating unwritable cache $cache_file" | |
8806 | fi | |
8807 | fi | |
8808 | rm -f confcache | |
8809 | ||
c906108c SS |
8810 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
8811 | # Let make expand exec_prefix. | |
8812 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
8813 | ||
b7026657 AC |
8814 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
8815 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
8816 | # trailing colons and then remove the whole line if VPATH becomes empty | |
8817 | # (actually we leave an empty line to preserve line numbers). | |
c906108c | 8818 | if test "x$srcdir" = x.; then |
b7026657 AC |
8819 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
8820 | s/:*\$(srcdir):*/:/; | |
8821 | s/:*\${srcdir}:*/:/; | |
8822 | s/:*@srcdir@:*/:/; | |
8823 | s/^\([^=]*=[ ]*\):*/\1/; | |
8824 | s/:*$//; | |
8825 | s/^[^=]*=[ ]*$//; | |
8826 | }' | |
c906108c SS |
8827 | fi |
8828 | ||
c906108c SS |
8829 | DEFS=-DHAVE_CONFIG_H |
8830 | ||
b7026657 AC |
8831 | ac_libobjs= |
8832 | ac_ltlibobjs= | |
8833 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
8834 | # 1. Remove the extension, and $U if already installed. | |
8835 | ac_i=`echo "$ac_i" | | |
8836 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` | |
8837 | # 2. Add them. | |
8838 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
8839 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
8840 | done | |
8841 | LIBOBJS=$ac_libobjs | |
c906108c | 8842 | |
b7026657 AC |
8843 | LTLIBOBJS=$ac_ltlibobjs |
8844 | ||
8845 | ||
8846 | ||
8847 | : ${CONFIG_STATUS=./config.status} | |
8848 | ac_clean_files_save=$ac_clean_files | |
8849 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
8850 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
8851 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
8852 | cat >$CONFIG_STATUS <<_ACEOF | |
8853 | #! $SHELL | |
8854 | # Generated by $as_me. | |
c906108c | 8855 | # Run this file to recreate the current configuration. |
c906108c | 8856 | # Compiler output produced by configure, useful for debugging |
b7026657 | 8857 | # configure, is in config.log if it exists. |
c906108c | 8858 | |
b7026657 AC |
8859 | debug=false |
8860 | ac_cs_recheck=false | |
8861 | ac_cs_silent=false | |
8862 | SHELL=\${CONFIG_SHELL-$SHELL} | |
8863 | _ACEOF | |
8864 | ||
8865 | cat >>$CONFIG_STATUS <<\_ACEOF | |
8866 | ## --------------------- ## | |
8867 | ## M4sh Initialization. ## | |
8868 | ## --------------------- ## | |
8869 | ||
8870 | # Be Bourne compatible | |
8871 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
8872 | emulate sh | |
8873 | NULLCMD=: | |
8874 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
8875 | # is contrary to our usage. Disable this feature. | |
8876 | alias -g '${1+"$@"}'='"$@"' | |
8877 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
8878 | set -o posix | |
8879 | fi | |
8880 | DUALCASE=1; export DUALCASE # for MKS sh | |
8881 | ||
8882 | # Support unset when possible. | |
8883 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
8884 | as_unset=unset | |
8885 | else | |
8886 | as_unset=false | |
8887 | fi | |
8888 | ||
8889 | ||
8890 | # Work around bugs in pre-3.0 UWIN ksh. | |
8891 | $as_unset ENV MAIL MAILPATH | |
8892 | PS1='$ ' | |
8893 | PS2='> ' | |
8894 | PS4='+ ' | |
8895 | ||
8896 | # NLS nuisances. | |
8897 | for as_var in \ | |
8898 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
8899 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
8900 | LC_TELEPHONE LC_TIME | |
c906108c | 8901 | do |
b7026657 AC |
8902 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
8903 | eval $as_var=C; export $as_var | |
8904 | else | |
8905 | $as_unset $as_var | |
8906 | fi | |
c906108c SS |
8907 | done |
8908 | ||
b7026657 AC |
8909 | # Required to use basename. |
8910 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
8911 | as_expr=expr | |
8912 | else | |
8913 | as_expr=false | |
8914 | fi | |
c906108c | 8915 | |
b7026657 AC |
8916 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
8917 | as_basename=basename | |
8918 | else | |
8919 | as_basename=false | |
8920 | fi | |
c906108c | 8921 | |
c906108c | 8922 | |
b7026657 AC |
8923 | # Name of the executable. |
8924 | as_me=`$as_basename "$0" || | |
8925 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
8926 | X"$0" : 'X\(//\)$' \| \ | |
8927 | X"$0" : 'X\(/\)$' \| \ | |
8928 | . : '\(.\)' 2>/dev/null || | |
8929 | echo X/"$0" | | |
8930 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
8931 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
8932 | /^X\/\(\/\).*/{ s//\1/; q; } | |
8933 | s/.*/./; q'` | |
8934 | ||
8935 | ||
8936 | # PATH needs CR, and LINENO needs CR and PATH. | |
8937 | # Avoid depending upon Character Ranges. | |
8938 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
8939 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
8940 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
8941 | as_cr_digits='0123456789' | |
8942 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
8943 | ||
8944 | # The user is always right. | |
8945 | if test "${PATH_SEPARATOR+set}" != set; then | |
8946 | echo "#! /bin/sh" >conf$$.sh | |
8947 | echo "exit 0" >>conf$$.sh | |
8948 | chmod +x conf$$.sh | |
8949 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
8950 | PATH_SEPARATOR=';' | |
c906108c | 8951 | else |
b7026657 AC |
8952 | PATH_SEPARATOR=: |
8953 | fi | |
8954 | rm -f conf$$.sh | |
8955 | fi | |
8956 | ||
8957 | ||
8958 | as_lineno_1=$LINENO | |
8959 | as_lineno_2=$LINENO | |
8960 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
8961 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
8962 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
8963 | # Find who we are. Look in the path if we contain no path at all | |
8964 | # relative or not. | |
8965 | case $0 in | |
8966 | *[\\/]* ) as_myself=$0 ;; | |
8967 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8968 | for as_dir in $PATH | |
8969 | do | |
8970 | IFS=$as_save_IFS | |
8971 | test -z "$as_dir" && as_dir=. | |
8972 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
8973 | done | |
8974 | ||
8975 | ;; | |
8976 | esac | |
8977 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
8978 | # in which case we are not to be found in the path. | |
8979 | if test "x$as_myself" = x; then | |
8980 | as_myself=$0 | |
c906108c | 8981 | fi |
b7026657 AC |
8982 | if test ! -f "$as_myself"; then |
8983 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
8984 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
8985 | { (exit 1); exit 1; }; } | |
8986 | fi | |
8987 | case $CONFIG_SHELL in | |
8988 | '') | |
8989 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8990 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
8991 | do | |
8992 | IFS=$as_save_IFS | |
8993 | test -z "$as_dir" && as_dir=. | |
8994 | for as_base in sh bash ksh sh5; do | |
8995 | case $as_dir in | |
8996 | /*) | |
8997 | if ("$as_dir/$as_base" -c ' | |
8998 | as_lineno_1=$LINENO | |
8999 | as_lineno_2=$LINENO | |
9000 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
9001 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
9002 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
9003 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
9004 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
9005 | CONFIG_SHELL=$as_dir/$as_base | |
9006 | export CONFIG_SHELL | |
9007 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
9008 | fi;; | |
9009 | esac | |
9010 | done | |
9011 | done | |
9012 | ;; | |
9013 | esac | |
9014 | ||
9015 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
9016 | # uniformly replaced by the line number. The first 'sed' inserts a | |
9017 | # line-number line before each line; the second 'sed' does the real | |
9018 | # work. The second script uses 'N' to pair each line-number line | |
9019 | # with the numbered line, and appends trailing '-' during | |
9020 | # substitution so that $LINENO is not a special case at line end. | |
9021 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
9022 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
9023 | sed '=' <$as_myself | | |
9024 | sed ' | |
9025 | N | |
9026 | s,$,-, | |
9027 | : loop | |
9028 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
9029 | t loop | |
9030 | s,-$,, | |
9031 | s,^['$as_cr_digits']*\n,, | |
9032 | ' >$as_me.lineno && | |
9033 | chmod +x $as_me.lineno || | |
9034 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
9035 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
9036 | { (exit 1); exit 1; }; } | |
9037 | ||
9038 | # Don't try to exec as it changes $[0], causing all sort of problems | |
9039 | # (the dirname of $[0] is not the place where we might find the | |
9040 | # original and so on. Autoconf is especially sensible to this). | |
9041 | . ./$as_me.lineno | |
9042 | # Exit status is that of the last command. | |
9043 | exit | |
9044 | } | |
9045 | ||
9046 | ||
9047 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
9048 | *c*,-n*) ECHO_N= ECHO_C=' | |
9049 | ' ECHO_T=' ' ;; | |
9050 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
9051 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
9052 | esac | |
9053 | ||
9054 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
9055 | as_expr=expr | |
9056 | else | |
9057 | as_expr=false | |
9058 | fi | |
9059 | ||
9060 | rm -f conf$$ conf$$.exe conf$$.file | |
9061 | echo >conf$$.file | |
9062 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
9063 | # We could just check for DJGPP; but this test a) works b) is more generic | |
9064 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
9065 | if test -f conf$$.exe; then | |
9066 | # Don't use ln at all; we don't have any links | |
9067 | as_ln_s='cp -p' | |
c906108c | 9068 | else |
b7026657 | 9069 | as_ln_s='ln -s' |
c906108c | 9070 | fi |
b7026657 AC |
9071 | elif ln conf$$.file conf$$ 2>/dev/null; then |
9072 | as_ln_s=ln | |
9073 | else | |
9074 | as_ln_s='cp -p' | |
9075 | fi | |
9076 | rm -f conf$$ conf$$.exe conf$$.file | |
9077 | ||
9078 | if mkdir -p . 2>/dev/null; then | |
9079 | as_mkdir_p=: | |
9080 | else | |
9081 | test -d ./-p && rmdir ./-p | |
9082 | as_mkdir_p=false | |
9083 | fi | |
9084 | ||
9085 | as_executable_p="test -f" | |
9086 | ||
9087 | # Sed expression to map a string onto a valid CPP name. | |
9088 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
9089 | ||
9090 | # Sed expression to map a string onto a valid variable name. | |
9091 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
9092 | ||
9093 | ||
9094 | # IFS | |
9095 | # We need space, tab and new line, in precisely that order. | |
9096 | as_nl=' | |
9097 | ' | |
9098 | IFS=" $as_nl" | |
9099 | ||
9100 | # CDPATH. | |
9101 | $as_unset CDPATH | |
9102 | ||
9103 | exec 6>&1 | |
9104 | ||
9105 | # Open the log real soon, to keep \$[0] and so on meaningful, and to | |
9106 | # report actual input values of CONFIG_FILES etc. instead of their | |
9107 | # values after options handling. Logging --version etc. is OK. | |
9108 | exec 5>>config.log | |
9109 | { | |
9110 | echo | |
9111 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
9112 | ## Running $as_me. ## | |
9113 | _ASBOX | |
9114 | } >&5 | |
9115 | cat >&5 <<_CSEOF | |
9116 | ||
9117 | This file was extended by $as_me, which was | |
9118 | generated by GNU Autoconf 2.59. Invocation command line was | |
9119 | ||
9120 | CONFIG_FILES = $CONFIG_FILES | |
9121 | CONFIG_HEADERS = $CONFIG_HEADERS | |
9122 | CONFIG_LINKS = $CONFIG_LINKS | |
9123 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
9124 | $ $0 $@ | |
9125 | ||
9126 | _CSEOF | |
9127 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
9128 | echo >&5 | |
9129 | _ACEOF | |
9130 | ||
9131 | # Files that config.status was made for. | |
9132 | if test -n "$ac_config_files"; then | |
9133 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
9134 | fi | |
9135 | ||
9136 | if test -n "$ac_config_headers"; then | |
9137 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
9138 | fi | |
9139 | ||
9140 | if test -n "$ac_config_links"; then | |
9141 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
9142 | fi | |
9143 | ||
9144 | if test -n "$ac_config_commands"; then | |
9145 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
9146 | fi | |
9147 | ||
9148 | cat >>$CONFIG_STATUS <<\_ACEOF | |
9149 | ||
9150 | ac_cs_usage="\ | |
9151 | \`$as_me' instantiates files from templates according to the | |
9152 | current configuration. | |
9153 | ||
9154 | Usage: $0 [OPTIONS] [FILE]... | |
9155 | ||
9156 | -h, --help print this help, then exit | |
9157 | -V, --version print version number, then exit | |
9158 | -q, --quiet do not print progress messages | |
9159 | -d, --debug don't remove temporary files | |
9160 | --recheck update $as_me by reconfiguring in the same conditions | |
9161 | --file=FILE[:TEMPLATE] | |
9162 | instantiate the configuration file FILE | |
9163 | --header=FILE[:TEMPLATE] | |
9164 | instantiate the configuration header FILE | |
9165 | ||
9166 | Configuration files: | |
9167 | $config_files | |
9168 | ||
9169 | Configuration headers: | |
9170 | $config_headers | |
9171 | ||
9172 | Configuration commands: | |
9173 | $config_commands | |
9174 | ||
9175 | Report bugs to <bug-autoconf@gnu.org>." | |
9176 | _ACEOF | |
9177 | ||
9178 | cat >>$CONFIG_STATUS <<_ACEOF | |
9179 | ac_cs_version="\\ | |
9180 | config.status | |
9181 | configured by $0, generated by GNU Autoconf 2.59, | |
9182 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" | |
9183 | ||
9184 | Copyright (C) 2003 Free Software Foundation, Inc. | |
9185 | This config.status script is free software; the Free Software Foundation | |
9186 | gives unlimited permission to copy, distribute and modify it." | |
9187 | srcdir=$srcdir | |
9188 | INSTALL="$INSTALL" | |
9189 | _ACEOF | |
9190 | ||
9191 | cat >>$CONFIG_STATUS <<\_ACEOF | |
9192 | # If no file are specified by the user, then we need to provide default | |
9193 | # value. By we need to know if files were specified by the user. | |
9194 | ac_need_defaults=: | |
9195 | while test $# != 0 | |
9196 | do | |
9197 | case $1 in | |
9198 | --*=*) | |
9199 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
9200 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
9201 | ac_shift=: | |
9202 | ;; | |
9203 | -*) | |
9204 | ac_option=$1 | |
9205 | ac_optarg=$2 | |
9206 | ac_shift=shift | |
9207 | ;; | |
9208 | *) # This is not an option, so the user has probably given explicit | |
9209 | # arguments. | |
9210 | ac_option=$1 | |
9211 | ac_need_defaults=false;; | |
9212 | esac | |
9213 | ||
9214 | case $ac_option in | |
9215 | # Handling of the options. | |
9216 | _ACEOF | |
9217 | cat >>$CONFIG_STATUS <<\_ACEOF | |
9218 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
9219 | ac_cs_recheck=: ;; | |
9220 | --version | --vers* | -V ) | |
9221 | echo "$ac_cs_version"; exit 0 ;; | |
9222 | --he | --h) | |
9223 | # Conflict between --help and --header | |
9224 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
9225 | Try \`$0 --help' for more information." >&5 | |
9226 | echo "$as_me: error: ambiguous option: $1 | |
9227 | Try \`$0 --help' for more information." >&2;} | |
9228 | { (exit 1); exit 1; }; };; | |
9229 | --help | --hel | -h ) | |
9230 | echo "$ac_cs_usage"; exit 0 ;; | |
9231 | --debug | --d* | -d ) | |
9232 | debug=: ;; | |
9233 | --file | --fil | --fi | --f ) | |
9234 | $ac_shift | |
9235 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
9236 | ac_need_defaults=false;; | |
9237 | --header | --heade | --head | --hea ) | |
9238 | $ac_shift | |
9239 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
9240 | ac_need_defaults=false;; | |
9241 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
9242 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
9243 | ac_cs_silent=: ;; | |
9244 | ||
9245 | # This is an error. | |
9246 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | |
9247 | Try \`$0 --help' for more information." >&5 | |
9248 | echo "$as_me: error: unrecognized option: $1 | |
9249 | Try \`$0 --help' for more information." >&2;} | |
9250 | { (exit 1); exit 1; }; } ;; | |
9251 | ||
9252 | *) ac_config_targets="$ac_config_targets $1" ;; | |
9253 | ||
9254 | esac | |
9255 | shift | |
c906108c | 9256 | done |
b7026657 AC |
9257 | |
9258 | ac_configure_extra_args= | |
9259 | ||
9260 | if $ac_cs_silent; then | |
9261 | exec 6>/dev/null | |
9262 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
9263 | fi | |
9264 | ||
9265 | _ACEOF | |
9266 | cat >>$CONFIG_STATUS <<_ACEOF | |
9267 | if \$ac_cs_recheck; then | |
9268 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
9269 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
c906108c | 9270 | fi |
c906108c | 9271 | |
b7026657 | 9272 | _ACEOF |
c906108c | 9273 | |
b7026657 AC |
9274 | |
9275 | ||
9276 | ||
9277 | ||
9278 | cat >>$CONFIG_STATUS <<\_ACEOF | |
9279 | for ac_config_target in $ac_config_targets | |
9280 | do | |
9281 | case "$ac_config_target" in | |
9282 | # Handling of arguments. | |
9283 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
9284 | "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; | |
9285 | "cconfig.h" ) CONFIG_HEADERS="$CONFIG_HEADERS cconfig.h:config.in" ;; | |
9286 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | |
9287 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
9288 | { (exit 1); exit 1; }; };; | |
c906108c | 9289 | esac |
b7026657 | 9290 | done |
c906108c | 9291 | |
b7026657 AC |
9292 | # If the user did not use the arguments to specify the items to instantiate, |
9293 | # then the envvar interface is used. Set only those that are not. | |
9294 | # We use the long form for the default assignment because of an extremely | |
9295 | # bizarre bug on SunOS 4.1.3. | |
9296 | if $ac_need_defaults; then | |
9297 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
9298 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
9299 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
9300 | fi | |
9301 | ||
9302 | # Have a temporary directory for convenience. Make it in the build tree | |
9303 | # simply because there is no reason to put it here, and in addition, | |
9304 | # creating and moving files from /tmp can sometimes cause problems. | |
9305 | # Create a temporary directory, and hook for its removal unless debugging. | |
9306 | $debug || | |
9307 | { | |
9308 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
9309 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
9310 | } | |
c906108c | 9311 | |
b7026657 AC |
9312 | # Create a (secure) tmp directory for tmp files. |
9313 | ||
9314 | { | |
9315 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | |
9316 | test -n "$tmp" && test -d "$tmp" | |
9317 | } || | |
9318 | { | |
9319 | tmp=./confstat$$-$RANDOM | |
9320 | (umask 077 && mkdir $tmp) | |
9321 | } || | |
9322 | { | |
9323 | echo "$me: cannot create a temporary directory in ." >&2 | |
9324 | { (exit 1); exit 1; } | |
9325 | } | |
9326 | ||
9327 | _ACEOF | |
9328 | ||
9329 | cat >>$CONFIG_STATUS <<_ACEOF | |
9330 | ||
9331 | # | |
9332 | # CONFIG_FILES section. | |
9333 | # | |
9334 | ||
9335 | # No need to generate the scripts if there are no CONFIG_FILES. | |
9336 | # This happens for instance when ./config.status config.h | |
9337 | if test -n "\$CONFIG_FILES"; then | |
9338 | # Protect against being on the right side of a sed subst in config.status. | |
9339 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
9340 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
9341 | s,@sim_environment@,$sim_environment,;t t | |
9342 | s,@sim_alignment@,$sim_alignment,;t t | |
9343 | s,@sim_assert@,$sim_assert,;t t | |
9344 | s,@sim_bitsize@,$sim_bitsize,;t t | |
9345 | s,@sim_endian@,$sim_endian,;t t | |
9346 | s,@sim_hostendian@,$sim_hostendian,;t t | |
9347 | s,@sim_float@,$sim_float,;t t | |
9348 | s,@sim_scache@,$sim_scache,;t t | |
9349 | s,@sim_default_model@,$sim_default_model,;t t | |
9350 | s,@sim_hw_cflags@,$sim_hw_cflags,;t t | |
9351 | s,@sim_hw_objs@,$sim_hw_objs,;t t | |
9352 | s,@sim_hw@,$sim_hw,;t t | |
9353 | s,@sim_inline@,$sim_inline,;t t | |
9354 | s,@sim_packages@,$sim_packages,;t t | |
9355 | s,@sim_regparm@,$sim_regparm,;t t | |
9356 | s,@sim_reserved_bits@,$sim_reserved_bits,;t t | |
9357 | s,@sim_smp@,$sim_smp,;t t | |
9358 | s,@sim_stdcall@,$sim_stdcall,;t t | |
9359 | s,@sim_xor_endian@,$sim_xor_endian,;t t | |
9360 | s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t | |
9361 | s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t | |
9362 | s,@SHELL@,$SHELL,;t t | |
9363 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
9364 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
9365 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
9366 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
9367 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
9368 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
9369 | s,@exec_prefix@,$exec_prefix,;t t | |
9370 | s,@prefix@,$prefix,;t t | |
9371 | s,@program_transform_name@,$program_transform_name,;t t | |
9372 | s,@bindir@,$bindir,;t t | |
9373 | s,@sbindir@,$sbindir,;t t | |
9374 | s,@libexecdir@,$libexecdir,;t t | |
9375 | s,@datadir@,$datadir,;t t | |
9376 | s,@sysconfdir@,$sysconfdir,;t t | |
9377 | s,@sharedstatedir@,$sharedstatedir,;t t | |
9378 | s,@localstatedir@,$localstatedir,;t t | |
9379 | s,@libdir@,$libdir,;t t | |
9380 | s,@includedir@,$includedir,;t t | |
9381 | s,@oldincludedir@,$oldincludedir,;t t | |
9382 | s,@infodir@,$infodir,;t t | |
9383 | s,@mandir@,$mandir,;t t | |
9384 | s,@build_alias@,$build_alias,;t t | |
9385 | s,@host_alias@,$host_alias,;t t | |
9386 | s,@target_alias@,$target_alias,;t t | |
9387 | s,@DEFS@,$DEFS,;t t | |
9388 | s,@ECHO_C@,$ECHO_C,;t t | |
9389 | s,@ECHO_N@,$ECHO_N,;t t | |
9390 | s,@ECHO_T@,$ECHO_T,;t t | |
9391 | s,@LIBS@,$LIBS,;t t | |
9392 | s,@build@,$build,;t t | |
9393 | s,@build_cpu@,$build_cpu,;t t | |
9394 | s,@build_vendor@,$build_vendor,;t t | |
9395 | s,@build_os@,$build_os,;t t | |
9396 | s,@host@,$host,;t t | |
9397 | s,@host_cpu@,$host_cpu,;t t | |
9398 | s,@host_vendor@,$host_vendor,;t t | |
9399 | s,@host_os@,$host_os,;t t | |
9400 | s,@target@,$target,;t t | |
9401 | s,@target_cpu@,$target_cpu,;t t | |
9402 | s,@target_vendor@,$target_vendor,;t t | |
9403 | s,@target_os@,$target_os,;t t | |
9404 | s,@CC@,$CC,;t t | |
9405 | s,@CFLAGS@,$CFLAGS,;t t | |
9406 | s,@LDFLAGS@,$LDFLAGS,;t t | |
9407 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
9408 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
9409 | s,@EXEEXT@,$EXEEXT,;t t | |
9410 | s,@OBJEXT@,$OBJEXT,;t t | |
9411 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
9412 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
9413 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
9414 | s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t | |
9415 | s,@HDEFINES@,$HDEFINES,;t t | |
9416 | s,@AR@,$AR,;t t | |
9417 | s,@RANLIB@,$RANLIB,;t t | |
9418 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
9419 | s,@SET_MAKE@,$SET_MAKE,;t t | |
9420 | s,@CPP@,$CPP,;t t | |
9421 | s,@EGREP@,$EGREP,;t t | |
9422 | s,@ALLOCA@,$ALLOCA,;t t | |
9423 | s,@USE_NLS@,$USE_NLS,;t t | |
9424 | s,@MSGFMT@,$MSGFMT,;t t | |
9425 | s,@GMSGFMT@,$GMSGFMT,;t t | |
9426 | s,@XGETTEXT@,$XGETTEXT,;t t | |
9427 | s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t | |
9428 | s,@CATALOGS@,$CATALOGS,;t t | |
9429 | s,@CATOBJEXT@,$CATOBJEXT,;t t | |
9430 | s,@DATADIRNAME@,$DATADIRNAME,;t t | |
9431 | s,@GMOFILES@,$GMOFILES,;t t | |
9432 | s,@INSTOBJEXT@,$INSTOBJEXT,;t t | |
9433 | s,@INTLDEPS@,$INTLDEPS,;t t | |
9434 | s,@INTLLIBS@,$INTLLIBS,;t t | |
9435 | s,@INTLOBJS@,$INTLOBJS,;t t | |
9436 | s,@POFILES@,$POFILES,;t t | |
9437 | s,@POSUB@,$POSUB,;t t | |
9438 | s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t | |
9439 | s,@GT_NO@,$GT_NO,;t t | |
9440 | s,@GT_YES@,$GT_YES,;t t | |
9441 | s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t | |
9442 | s,@l@,$l,;t t | |
9443 | s,@MAINT@,$MAINT,;t t | |
9444 | s,@sim_bswap@,$sim_bswap,;t t | |
9445 | s,@sim_cflags@,$sim_cflags,;t t | |
9446 | s,@sim_debug@,$sim_debug,;t t | |
9447 | s,@sim_stdio@,$sim_stdio,;t t | |
9448 | s,@sim_trace@,$sim_trace,;t t | |
9449 | s,@sim_profile@,$sim_profile,;t t | |
9450 | s,@CPP_FOR_TARGET@,$CPP_FOR_TARGET,;t t | |
9451 | s,@TARGET_SUBDIR@,$TARGET_SUBDIR,;t t | |
9452 | s,@LIBOBJS@,$LIBOBJS,;t t | |
9453 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | |
9454 | CEOF | |
9455 | ||
9456 | _ACEOF | |
9457 | ||
9458 | cat >>$CONFIG_STATUS <<\_ACEOF | |
9459 | # Split the substitutions into bite-sized pieces for seds with | |
9460 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
9461 | ac_max_sed_lines=48 | |
9462 | ac_sed_frag=1 # Number of current file. | |
9463 | ac_beg=1 # First line for current file. | |
9464 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
9465 | ac_more_lines=: | |
9466 | ac_sed_cmds= | |
9467 | while $ac_more_lines; do | |
9468 | if test $ac_beg -gt 1; then | |
9469 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
9470 | else | |
9471 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
9472 | fi | |
9473 | if test ! -s $tmp/subs.frag; then | |
9474 | ac_more_lines=false | |
9475 | else | |
9476 | # The purpose of the label and of the branching condition is to | |
9477 | # speed up the sed processing (if there are no `@' at all, there | |
9478 | # is no need to browse any of the substitutions). | |
9479 | # These are the two extra sed commands mentioned above. | |
9480 | (echo ':t | |
9481 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
9482 | if test -z "$ac_sed_cmds"; then | |
9483 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" | |
9484 | else | |
9485 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" | |
9486 | fi | |
9487 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
9488 | ac_beg=$ac_end | |
9489 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
9490 | fi | |
9491 | done | |
9492 | if test -z "$ac_sed_cmds"; then | |
9493 | ac_sed_cmds=cat | |
c906108c | 9494 | fi |
b7026657 | 9495 | fi # test -n "$CONFIG_FILES" |
c906108c | 9496 | |
b7026657 AC |
9497 | _ACEOF |
9498 | cat >>$CONFIG_STATUS <<\_ACEOF | |
9499 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
9500 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
9501 | case $ac_file in | |
9502 | - | *:- | *:-:* ) # input from stdin | |
9503 | cat >$tmp/stdin | |
9504 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
9505 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
9506 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
9507 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
9508 | * ) ac_file_in=$ac_file.in ;; | |
c906108c SS |
9509 | esac |
9510 | ||
b7026657 AC |
9511 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
9512 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
9513 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
9514 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
9515 | X"$ac_file" : 'X\(//\)$' \| \ | |
9516 | X"$ac_file" : 'X\(/\)' \| \ | |
9517 | . : '\(.\)' 2>/dev/null || | |
9518 | echo X"$ac_file" | | |
9519 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
9520 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
9521 | /^X\(\/\/\)$/{ s//\1/; q; } | |
9522 | /^X\(\/\).*/{ s//\1/; q; } | |
9523 | s/.*/./; q'` | |
9524 | { if $as_mkdir_p; then | |
9525 | mkdir -p "$ac_dir" | |
9526 | else | |
9527 | as_dir="$ac_dir" | |
9528 | as_dirs= | |
9529 | while test ! -d "$as_dir"; do | |
9530 | as_dirs="$as_dir $as_dirs" | |
9531 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
9532 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
9533 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
9534 | X"$as_dir" : 'X\(//\)$' \| \ | |
9535 | X"$as_dir" : 'X\(/\)' \| \ | |
9536 | . : '\(.\)' 2>/dev/null || | |
9537 | echo X"$as_dir" | | |
9538 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
9539 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
9540 | /^X\(\/\/\)$/{ s//\1/; q; } | |
9541 | /^X\(\/\).*/{ s//\1/; q; } | |
9542 | s/.*/./; q'` | |
9543 | done | |
9544 | test ! -n "$as_dirs" || mkdir $as_dirs | |
9545 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
9546 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
9547 | { (exit 1); exit 1; }; }; } | |
9548 | ||
9549 | ac_builddir=. | |
9550 | ||
9551 | if test "$ac_dir" != .; then | |
9552 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
9553 | # A "../" for each directory in $ac_dir_suffix. | |
9554 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
9555 | else | |
9556 | ac_dir_suffix= ac_top_builddir= | |
9557 | fi | |
c906108c | 9558 | |
b7026657 AC |
9559 | case $srcdir in |
9560 | .) # No --srcdir option. We are building in place. | |
9561 | ac_srcdir=. | |
9562 | if test -z "$ac_top_builddir"; then | |
9563 | ac_top_srcdir=. | |
9564 | else | |
9565 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
9566 | fi ;; | |
9567 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
9568 | ac_srcdir=$srcdir$ac_dir_suffix; | |
9569 | ac_top_srcdir=$srcdir ;; | |
9570 | *) # Relative path. | |
9571 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
9572 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
9573 | esac | |
9574 | ||
9575 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
9576 | # the directories may not exist. | |
9577 | case `pwd` in | |
9578 | .) ac_abs_builddir="$ac_dir";; | |
9579 | *) | |
9580 | case "$ac_dir" in | |
9581 | .) ac_abs_builddir=`pwd`;; | |
9582 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
9583 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
9584 | esac;; | |
9585 | esac | |
9586 | case $ac_abs_builddir in | |
9587 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
9588 | *) | |
9589 | case ${ac_top_builddir}. in | |
9590 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
9591 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
9592 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
9593 | esac;; | |
9594 | esac | |
9595 | case $ac_abs_builddir in | |
9596 | .) ac_abs_srcdir=$ac_srcdir;; | |
9597 | *) | |
9598 | case $ac_srcdir in | |
9599 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
9600 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
9601 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
9602 | esac;; | |
9603 | esac | |
9604 | case $ac_abs_builddir in | |
9605 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
9606 | *) | |
9607 | case $ac_top_srcdir in | |
9608 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
9609 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
9610 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
9611 | esac;; | |
9612 | esac | |
9613 | ||
9614 | ||
9615 | case $INSTALL in | |
9616 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
9617 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | |
c906108c SS |
9618 | esac |
9619 | ||
b7026657 AC |
9620 | if test x"$ac_file" != x-; then |
9621 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
9622 | echo "$as_me: creating $ac_file" >&6;} | |
9623 | rm -f "$ac_file" | |
9624 | fi | |
9625 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
9626 | # use $as_me), people would be surprised to read: | |
9627 | # /* config.h. Generated by config.status. */ | |
9628 | if test x"$ac_file" = x-; then | |
9629 | configure_input= | |
9630 | else | |
9631 | configure_input="$ac_file. " | |
9632 | fi | |
9633 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
9634 | sed 's,.*/,,'` by configure." | |
9635 | ||
9636 | # First look for the input files in the build tree, otherwise in the | |
9637 | # src tree. | |
9638 | ac_file_inputs=`IFS=: | |
9639 | for f in $ac_file_in; do | |
9640 | case $f in | |
9641 | -) echo $tmp/stdin ;; | |
9642 | [\\/$]*) | |
9643 | # Absolute (can't be DOS-style, as IFS=:) | |
9644 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
9645 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
9646 | { (exit 1); exit 1; }; } | |
9647 | echo "$f";; | |
9648 | *) # Relative | |
9649 | if test -f "$f"; then | |
9650 | # Build tree | |
9651 | echo "$f" | |
9652 | elif test -f "$srcdir/$f"; then | |
9653 | # Source tree | |
9654 | echo "$srcdir/$f" | |
9655 | else | |
9656 | # /dev/null tree | |
9657 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
9658 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
9659 | { (exit 1); exit 1; }; } | |
9660 | fi;; | |
9661 | esac | |
9662 | done` || { (exit 1); exit 1; } | |
9663 | _ACEOF | |
9664 | cat >>$CONFIG_STATUS <<_ACEOF | |
9665 | sed "$ac_vpsub | |
9666 | $extrasub | |
9667 | _ACEOF | |
9668 | cat >>$CONFIG_STATUS <<\_ACEOF | |
9669 | :t | |
9670 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
9671 | s,@configure_input@,$configure_input,;t t | |
9672 | s,@srcdir@,$ac_srcdir,;t t | |
9673 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
9674 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
9675 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
9676 | s,@builddir@,$ac_builddir,;t t | |
9677 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
9678 | s,@top_builddir@,$ac_top_builddir,;t t | |
9679 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
9680 | s,@INSTALL@,$ac_INSTALL,;t t | |
9681 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
9682 | rm -f $tmp/stdin | |
9683 | if test x"$ac_file" != x-; then | |
9684 | mv $tmp/out $ac_file | |
9685 | else | |
9686 | cat $tmp/out | |
9687 | rm -f $tmp/out | |
9688 | fi | |
9689 | ||
9690 | done | |
9691 | _ACEOF | |
9692 | cat >>$CONFIG_STATUS <<\_ACEOF | |
9693 | ||
9694 | # | |
9695 | # CONFIG_HEADER section. | |
9696 | # | |
c906108c SS |
9697 | |
9698 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
9699 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
9700 | # | |
9701 | # ac_d sets the value in "#define NAME VALUE" lines. | |
b7026657 AC |
9702 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
9703 | ac_dB='[ ].*$,\1#\2' | |
9704 | ac_dC=' ' | |
9705 | ac_dD=',;t' | |
9706 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
9707 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
9708 | ac_uB='$,\1#\2define\3' | |
c906108c | 9709 | ac_uC=' ' |
b7026657 AC |
9710 | ac_uD=',;t' |
9711 | ||
9712 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
c906108c | 9713 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
b7026657 AC |
9714 | case $ac_file in |
9715 | - | *:- | *:-:* ) # input from stdin | |
9716 | cat >$tmp/stdin | |
9717 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
9718 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
9719 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
9720 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
9721 | * ) ac_file_in=$ac_file.in ;; | |
c906108c SS |
9722 | esac |
9723 | ||
b7026657 AC |
9724 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
9725 | echo "$as_me: creating $ac_file" >&6;} | |
9726 | ||
9727 | # First look for the input files in the build tree, otherwise in the | |
9728 | # src tree. | |
9729 | ac_file_inputs=`IFS=: | |
9730 | for f in $ac_file_in; do | |
9731 | case $f in | |
9732 | -) echo $tmp/stdin ;; | |
9733 | [\\/$]*) | |
9734 | # Absolute (can't be DOS-style, as IFS=:) | |
9735 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
9736 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
9737 | { (exit 1); exit 1; }; } | |
9738 | # Do quote $f, to prevent DOS paths from being IFS'd. | |
9739 | echo "$f";; | |
9740 | *) # Relative | |
9741 | if test -f "$f"; then | |
9742 | # Build tree | |
9743 | echo "$f" | |
9744 | elif test -f "$srcdir/$f"; then | |
9745 | # Source tree | |
9746 | echo "$srcdir/$f" | |
9747 | else | |
9748 | # /dev/null tree | |
9749 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
9750 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
9751 | { (exit 1); exit 1; }; } | |
9752 | fi;; | |
9753 | esac | |
9754 | done` || { (exit 1); exit 1; } | |
9755 | # Remove the trailing spaces. | |
9756 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in | |
9757 | ||
9758 | _ACEOF | |
9759 | ||
9760 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
9761 | # `conftest.undefs', that substitutes the proper values into | |
9762 | # config.h.in to produce config.h. The first handles `#define' | |
9763 | # templates, and the second `#undef' templates. | |
9764 | # And first: Protect against being on the right side of a sed subst in | |
9765 | # config.status. Protect against being in an unquoted here document | |
9766 | # in config.status. | |
9767 | rm -f conftest.defines conftest.undefs | |
9768 | # Using a here document instead of a string reduces the quoting nightmare. | |
9769 | # Putting comments in sed scripts is not portable. | |
9770 | # | |
9771 | # `end' is used to avoid that the second main sed command (meant for | |
9772 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
9773 | # See the Autoconf documentation for `clear'. | |
9774 | cat >confdef2sed.sed <<\_ACEOF | |
9775 | s/[\\&,]/\\&/g | |
9776 | s,[\\$`],\\&,g | |
9777 | t clear | |
9778 | : clear | |
9779 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp | |
9780 | t end | |
9781 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp | |
9782 | : end | |
9783 | _ACEOF | |
9784 | # If some macros were called several times there might be several times | |
9785 | # the same #defines, which is useless. Nevertheless, we may not want to | |
9786 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
9787 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
9788 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
9789 | rm -f confdef2sed.sed | |
c906108c SS |
9790 | |
9791 | # This sed command replaces #undef with comments. This is necessary, for | |
9792 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
9793 | # on some systems where configure will not decide to define it. | |
b7026657 AC |
9794 | cat >>conftest.undefs <<\_ACEOF |
9795 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, | |
9796 | _ACEOF | |
9797 | ||
9798 | # Break up conftest.defines because some shells have a limit on the size | |
9799 | # of here documents, and old seds have small limits too (100 cmds). | |
9800 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
9801 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS | |
9802 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS | |
9803 | echo ' :' >>$CONFIG_STATUS | |
9804 | rm -f conftest.tail | |
9805 | while grep . conftest.defines >/dev/null | |
9806 | do | |
9807 | # Write a limited-size here document to $tmp/defines.sed. | |
9808 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
9809 | # Speed up: don't consider the non `#define' lines. | |
9810 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS | |
9811 | # Work around the forget-to-reset-the-flag bug. | |
9812 | echo 't clr' >>$CONFIG_STATUS | |
9813 | echo ': clr' >>$CONFIG_STATUS | |
9814 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
9815 | echo 'CEOF | |
9816 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | |
9817 | rm -f $tmp/in | |
9818 | mv $tmp/out $tmp/in | |
9819 | ' >>$CONFIG_STATUS | |
9820 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
9821 | rm -f conftest.defines | |
9822 | mv conftest.tail conftest.defines | |
9823 | done | |
9824 | rm -f conftest.defines | |
9825 | echo ' fi # grep' >>$CONFIG_STATUS | |
9826 | echo >>$CONFIG_STATUS | |
c906108c | 9827 | |
b7026657 AC |
9828 | # Break up conftest.undefs because some shells have a limit on the size |
9829 | # of here documents, and old seds have small limits too (100 cmds). | |
9830 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
c906108c | 9831 | rm -f conftest.tail |
b7026657 | 9832 | while grep . conftest.undefs >/dev/null |
c906108c | 9833 | do |
b7026657 AC |
9834 | # Write a limited-size here document to $tmp/undefs.sed. |
9835 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
9836 | # Speed up: don't consider the non `#undef' | |
9837 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS | |
9838 | # Work around the forget-to-reset-the-flag bug. | |
9839 | echo 't clr' >>$CONFIG_STATUS | |
9840 | echo ': clr' >>$CONFIG_STATUS | |
9841 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
c906108c | 9842 | echo 'CEOF |
b7026657 AC |
9843 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
9844 | rm -f $tmp/in | |
9845 | mv $tmp/out $tmp/in | |
9846 | ' >>$CONFIG_STATUS | |
9847 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
9848 | rm -f conftest.undefs | |
9849 | mv conftest.tail conftest.undefs | |
c906108c | 9850 | done |
b7026657 AC |
9851 | rm -f conftest.undefs |
9852 | ||
9853 | cat >>$CONFIG_STATUS <<\_ACEOF | |
9854 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
9855 | # use $as_me), people would be surprised to read: | |
9856 | # /* config.h. Generated by config.status. */ | |
9857 | if test x"$ac_file" = x-; then | |
9858 | echo "/* Generated by configure. */" >$tmp/config.h | |
9859 | else | |
9860 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h | |
9861 | fi | |
9862 | cat $tmp/in >>$tmp/config.h | |
9863 | rm -f $tmp/in | |
9864 | if test x"$ac_file" != x-; then | |
9865 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then | |
9866 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
9867 | echo "$as_me: $ac_file is unchanged" >&6;} | |
9868 | else | |
9869 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
9870 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
9871 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
9872 | X"$ac_file" : 'X\(//\)$' \| \ | |
9873 | X"$ac_file" : 'X\(/\)' \| \ | |
9874 | . : '\(.\)' 2>/dev/null || | |
9875 | echo X"$ac_file" | | |
9876 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
9877 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
9878 | /^X\(\/\/\)$/{ s//\1/; q; } | |
9879 | /^X\(\/\).*/{ s//\1/; q; } | |
9880 | s/.*/./; q'` | |
9881 | { if $as_mkdir_p; then | |
9882 | mkdir -p "$ac_dir" | |
c906108c | 9883 | else |
b7026657 AC |
9884 | as_dir="$ac_dir" |
9885 | as_dirs= | |
9886 | while test ! -d "$as_dir"; do | |
9887 | as_dirs="$as_dir $as_dirs" | |
9888 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
9889 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
9890 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
9891 | X"$as_dir" : 'X\(//\)$' \| \ | |
9892 | X"$as_dir" : 'X\(/\)' \| \ | |
9893 | . : '\(.\)' 2>/dev/null || | |
9894 | echo X"$as_dir" | | |
9895 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
9896 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
9897 | /^X\(\/\/\)$/{ s//\1/; q; } | |
9898 | /^X\(\/\).*/{ s//\1/; q; } | |
9899 | s/.*/./; q'` | |
9900 | done | |
9901 | test ! -n "$as_dirs" || mkdir $as_dirs | |
9902 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
9903 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
9904 | { (exit 1); exit 1; }; }; } | |
9905 | ||
9906 | rm -f $ac_file | |
9907 | mv $tmp/config.h $ac_file | |
c906108c | 9908 | fi |
b7026657 AC |
9909 | else |
9910 | cat $tmp/config.h | |
9911 | rm -f $tmp/config.h | |
c906108c | 9912 | fi |
b7026657 AC |
9913 | done |
9914 | _ACEOF | |
9915 | cat >>$CONFIG_STATUS <<\_ACEOF | |
9916 | ||
9917 | # | |
9918 | # CONFIG_COMMANDS section. | |
9919 | # | |
9920 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
9921 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
9922 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
9923 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || | |
9924 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
9925 | X"$ac_dest" : 'X\(//\)[^/]' \| \ | |
9926 | X"$ac_dest" : 'X\(//\)$' \| \ | |
9927 | X"$ac_dest" : 'X\(/\)' \| \ | |
9928 | . : '\(.\)' 2>/dev/null || | |
9929 | echo X"$ac_dest" | | |
9930 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
9931 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
9932 | /^X\(\/\/\)$/{ s//\1/; q; } | |
9933 | /^X\(\/\).*/{ s//\1/; q; } | |
9934 | s/.*/./; q'` | |
9935 | { if $as_mkdir_p; then | |
9936 | mkdir -p "$ac_dir" | |
9937 | else | |
9938 | as_dir="$ac_dir" | |
9939 | as_dirs= | |
9940 | while test ! -d "$as_dir"; do | |
9941 | as_dirs="$as_dir $as_dirs" | |
9942 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
9943 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
9944 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
9945 | X"$as_dir" : 'X\(//\)$' \| \ | |
9946 | X"$as_dir" : 'X\(/\)' \| \ | |
9947 | . : '\(.\)' 2>/dev/null || | |
9948 | echo X"$as_dir" | | |
9949 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
9950 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
9951 | /^X\(\/\/\)$/{ s//\1/; q; } | |
9952 | /^X\(\/\).*/{ s//\1/; q; } | |
9953 | s/.*/./; q'` | |
9954 | done | |
9955 | test ! -n "$as_dirs" || mkdir $as_dirs | |
9956 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
9957 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
9958 | { (exit 1); exit 1; }; }; } | |
9959 | ||
9960 | ac_builddir=. | |
9961 | ||
9962 | if test "$ac_dir" != .; then | |
9963 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
9964 | # A "../" for each directory in $ac_dir_suffix. | |
9965 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
9966 | else | |
9967 | ac_dir_suffix= ac_top_builddir= | |
9968 | fi | |
9969 | ||
9970 | case $srcdir in | |
9971 | .) # No --srcdir option. We are building in place. | |
9972 | ac_srcdir=. | |
9973 | if test -z "$ac_top_builddir"; then | |
9974 | ac_top_srcdir=. | |
9975 | else | |
9976 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
9977 | fi ;; | |
9978 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
9979 | ac_srcdir=$srcdir$ac_dir_suffix; | |
9980 | ac_top_srcdir=$srcdir ;; | |
9981 | *) # Relative path. | |
9982 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
9983 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
9984 | esac | |
9985 | ||
9986 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
9987 | # the directories may not exist. | |
9988 | case `pwd` in | |
9989 | .) ac_abs_builddir="$ac_dir";; | |
9990 | *) | |
9991 | case "$ac_dir" in | |
9992 | .) ac_abs_builddir=`pwd`;; | |
9993 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
9994 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
9995 | esac;; | |
9996 | esac | |
9997 | case $ac_abs_builddir in | |
9998 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
9999 | *) | |
10000 | case ${ac_top_builddir}. in | |
10001 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
10002 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
10003 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
10004 | esac;; | |
10005 | esac | |
10006 | case $ac_abs_builddir in | |
10007 | .) ac_abs_srcdir=$ac_srcdir;; | |
10008 | *) | |
10009 | case $ac_srcdir in | |
10010 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
10011 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
10012 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
10013 | esac;; | |
10014 | esac | |
10015 | case $ac_abs_builddir in | |
10016 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
10017 | *) | |
10018 | case $ac_top_srcdir in | |
10019 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
10020 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
10021 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
10022 | esac;; | |
10023 | esac | |
10024 | ||
c906108c | 10025 | |
b7026657 AC |
10026 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 |
10027 | echo "$as_me: executing $ac_dest commands" >&6;} | |
10028 | case $ac_dest in | |
10029 | default ) case x$CONFIG_HEADERS in xcconfig.h:config.in) echo > stamp-h ;; esac ;; | |
10030 | esac | |
10031 | done | |
10032 | _ACEOF | |
c906108c | 10033 | |
b7026657 AC |
10034 | cat >>$CONFIG_STATUS <<\_ACEOF |
10035 | ||
10036 | { (exit 0); exit 0; } | |
10037 | _ACEOF | |
c906108c | 10038 | chmod +x $CONFIG_STATUS |
b7026657 AC |
10039 | ac_clean_files=$ac_clean_files_save |
10040 | ||
10041 | ||
10042 | # configure is writing to config.log, and then calls config.status. | |
10043 | # config.status does its own redirection, appending to config.log. | |
10044 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
10045 | # by configure, so config.status won't be able to write to it; its | |
10046 | # output is simply discarded. So we exec the FD to /dev/null, | |
10047 | # effectively closing config.log, so it can be properly (re)opened and | |
10048 | # appended to by config.status. When coming back to configure, we | |
10049 | # need to make the FD available again. | |
10050 | if test "$no_create" != yes; then | |
10051 | ac_cs_success=: | |
10052 | ac_config_status_args= | |
10053 | test "$silent" = yes && | |
10054 | ac_config_status_args="$ac_config_status_args --quiet" | |
10055 | exec 5>/dev/null | |
10056 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
10057 | exec 5>>config.log | |
10058 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
10059 | # would make configure fail if this is the last instruction. | |
10060 | $ac_cs_success || { (exit 1); exit 1; } | |
10061 | fi | |
c906108c | 10062 |