]>
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 INSTALL_PROGRAM INSTALL_SCRIPT INSTALL_DATA CC CFLAGS LDFLAGS CPPFLAGS ac_ct_CC EXEEXT OBJEXT SET_MAKE RANLIB ac_ct_RANLIB 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 build build_cpu build_vendor build_os host host_cpu host_vendor host_os target target_cpu target_vendor target_os LIBOBJS CC_FOR_BUILD HDEFINES AR sim_cflags sim_warnings sim_line_nr sim_config sim_opcode sim_switch sim_dup sim_decode_mechanism sim_jump sim_filter sim_icache sim_hw_src sim_hw_obj sim_pk_src sim_pk_obj sim_bswap sim_igen_smp sim_hostbitsize sim_env sim_timebase sim_trace sim_reserved sim_monitor sim_model sim_model_issue sim_stdio sim_termio sim_devzero sim_callback sim_targ_vals sim_fpu_cflags sim_fpu 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 | 815 | For better control, use the options below. |
c906108c | 816 | |
b7026657 AC |
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 |
c906108c | 845 | |
b7026657 | 846 | if test -n "$ac_init_help"; then |
c906108c | 847 | |
b7026657 | 848 | cat <<\_ACEOF |
cd0fc7c3 | 849 | |
b7026657 AC |
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-sim-alignment=align Specify strict or nonstrict alignment. | |
855 | --enable-sim-assert Specify whether to perform random assertions. | |
856 | --enable-sim-bitsize=n Specify target bitsize (32 or 64). | |
857 | --enable-sim-bswap Use the BSWAP instruction on Intel 486s and Pentiums. | |
858 | --enable-sim-cflags=opts Extra CFLAGS for use in building simulator | |
859 | --enable-sim-config=file Override default config file | |
860 | --enable-sim-decode-mechanism=which Specify the instruction decode mechanism. | |
861 | --enable-sim-default-model=which Specify default PowerPC to model. | |
862 | --enable-sim-duplicate Expand (duplicate) semantic functions. | |
863 | --enable-sim-endian=endian Specify target byte endian orientation. | |
864 | --enable-sim-env=env Specify target environment (operating, virtual, user). | |
865 | --enable-sim-filter=rule Specify filter rules. | |
866 | --enable-sim-float Specify whether the target has hard, soft, altivec or e500 floating point. | |
867 | --enable-sim-hardware=list Specify the hardware to be included in the build. | |
868 | --enable-sim-hostbitsize=32|64 Specify host bitsize (32 or 64). | |
869 | --enable-sim-hostendian=end Specify host byte endian orientation. | |
870 | --enable-sim-icache=size Specify instruction-decode cache size and type. | |
871 | --enable-sim-inline=inlines Specify which functions should be inlined. | |
872 | --enable-sim-jump Jump between semantic code (instead of call/return). | |
873 | --enable-sim-line-nr=opts Generate extra CPP code that references source rather than generated code | |
874 | --enable-sim-model=which Specify PowerPC to model. | |
875 | --enable-sim-model-issue Specify whether to simulate model specific actions | |
876 | --enable-sim-monitor=mon Specify whether to enable monitoring events. | |
877 | --enable-sim-opcode=which Override default opcode lookup. | |
878 | --enable-sim-packages=list Specify the packages to be included in the build. | |
879 | --enable-sim-regparm=nr-parm Pass parameters in registers instead of on the stack - x86/GCC specific. | |
880 | --enable-sim-reserved-bits Specify whether to check reserved bits in instruction. | |
881 | --enable-sim-smp=n Specify number of processors to configure for. | |
882 | --enable-sim-stdcall=type Use an alternative function call/return mechanism - x86/GCC specific. | |
883 | --enable-sim-stdio Specify whether to use stdio for console input/output. | |
884 | --enable-sim-switch Use a switch instead of a table for instruction call. | |
885 | --enable-sim-timebase Specify whether the PPC timebase is supported. | |
886 | --enable-sim-trace Specify whether tracing is supported. | |
887 | --enable-sim-warnings=opts Extra CFLAGS for turning on compiler warnings except for idecode.o, semantics.o and psim.o | |
888 | --enable-sim-xor-endian=n Specify number bytes involved in PowerPC XOR bi-endian mode (default 8). | |
889 | ||
890 | Optional Packages: | |
891 | --with-PACKAGE[=ARG] use PACKAGE [ARG=yes] | |
892 | --without-PACKAGE do not use PACKAGE (same as --with-PACKAGE=no) | |
893 | --with-included-gettext use the GNU gettext library included here | |
c906108c | 894 | |
b7026657 AC |
895 | Some influential environment variables: |
896 | CC C compiler command | |
897 | CFLAGS C compiler flags | |
898 | LDFLAGS linker flags, e.g. -L<lib dir> if you have libraries in a | |
899 | nonstandard directory <lib dir> | |
900 | CPPFLAGS C/C++ preprocessor flags, e.g. -I<include dir> if you have | |
901 | headers in a nonstandard directory <include dir> | |
902 | CPP C preprocessor | |
903 | ||
904 | Use these variables to override the choices made by `configure' or to help | |
905 | it to find libraries and programs with nonstandard names/locations. | |
906 | ||
907 | _ACEOF | |
908 | fi | |
909 | ||
910 | if test "$ac_init_help" = "recursive"; then | |
911 | # If there are subdirs, report their specific --help. | |
912 | ac_popdir=`pwd` | |
913 | for ac_dir in : $ac_subdirs_all; do test "x$ac_dir" = x: && continue | |
914 | test -d $ac_dir || continue | |
915 | ac_builddir=. | |
916 | ||
917 | if test "$ac_dir" != .; then | |
918 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
919 | # A "../" for each directory in $ac_dir_suffix. | |
920 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
921 | else | |
922 | ac_dir_suffix= ac_top_builddir= | |
923 | fi | |
924 | ||
925 | case $srcdir in | |
926 | .) # No --srcdir option. We are building in place. | |
927 | ac_srcdir=. | |
928 | if test -z "$ac_top_builddir"; then | |
929 | ac_top_srcdir=. | |
930 | else | |
931 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
932 | fi ;; | |
933 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
934 | ac_srcdir=$srcdir$ac_dir_suffix; | |
935 | ac_top_srcdir=$srcdir ;; | |
936 | *) # Relative path. | |
937 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
938 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
939 | esac | |
940 | ||
941 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
942 | # the directories may not exist. | |
943 | case `pwd` in | |
944 | .) ac_abs_builddir="$ac_dir";; | |
945 | *) | |
946 | case "$ac_dir" in | |
947 | .) ac_abs_builddir=`pwd`;; | |
948 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
949 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
950 | esac;; | |
951 | esac | |
952 | case $ac_abs_builddir in | |
953 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
954 | *) | |
955 | case ${ac_top_builddir}. in | |
956 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
957 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
958 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
959 | esac;; | |
960 | esac | |
961 | case $ac_abs_builddir in | |
962 | .) ac_abs_srcdir=$ac_srcdir;; | |
963 | *) | |
964 | case $ac_srcdir in | |
965 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
966 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
967 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
968 | esac;; | |
969 | esac | |
970 | case $ac_abs_builddir in | |
971 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
972 | *) | |
973 | case $ac_top_srcdir in | |
974 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
975 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
976 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
977 | esac;; | |
978 | esac | |
979 | ||
980 | cd $ac_dir | |
981 | # Check for guested configure; otherwise get Cygnus style configure. | |
982 | if test -f $ac_srcdir/configure.gnu; then | |
983 | echo | |
984 | $SHELL $ac_srcdir/configure.gnu --help=recursive | |
985 | elif test -f $ac_srcdir/configure; then | |
986 | echo | |
987 | $SHELL $ac_srcdir/configure --help=recursive | |
988 | elif test -f $ac_srcdir/configure.ac || | |
989 | test -f $ac_srcdir/configure.in; then | |
990 | echo | |
991 | $ac_configure --help | |
992 | else | |
993 | echo "$as_me: WARNING: no configuration information is in $ac_dir" >&2 | |
994 | fi | |
995 | cd $ac_popdir | |
996 | done | |
997 | fi | |
998 | ||
999 | test -n "$ac_init_help" && exit 0 | |
1000 | if $ac_init_version; then | |
1001 | cat <<\_ACEOF | |
1002 | ||
1003 | Copyright (C) 2003 Free Software Foundation, Inc. | |
1004 | This configure script is free software; the Free Software Foundation | |
1005 | gives unlimited permission to copy, distribute and modify it. | |
1006 | _ACEOF | |
1007 | exit 0 | |
1008 | fi | |
1009 | exec 5>config.log | |
1010 | cat >&5 <<_ACEOF | |
1011 | This file contains any messages produced by compilers while | |
1012 | running configure, to aid debugging if configure makes a mistake. | |
1013 | ||
1014 | It was created by $as_me, which was | |
1015 | generated by GNU Autoconf 2.59. Invocation command line was | |
1016 | ||
1017 | $ $0 $@ | |
1018 | ||
1019 | _ACEOF | |
1020 | { | |
1021 | cat <<_ASUNAME | |
1022 | ## --------- ## | |
1023 | ## Platform. ## | |
1024 | ## --------- ## | |
1025 | ||
1026 | hostname = `(hostname || uname -n) 2>/dev/null | sed 1q` | |
1027 | uname -m = `(uname -m) 2>/dev/null || echo unknown` | |
1028 | uname -r = `(uname -r) 2>/dev/null || echo unknown` | |
1029 | uname -s = `(uname -s) 2>/dev/null || echo unknown` | |
1030 | uname -v = `(uname -v) 2>/dev/null || echo unknown` | |
1031 | ||
1032 | /usr/bin/uname -p = `(/usr/bin/uname -p) 2>/dev/null || echo unknown` | |
1033 | /bin/uname -X = `(/bin/uname -X) 2>/dev/null || echo unknown` | |
1034 | ||
1035 | /bin/arch = `(/bin/arch) 2>/dev/null || echo unknown` | |
1036 | /usr/bin/arch -k = `(/usr/bin/arch -k) 2>/dev/null || echo unknown` | |
1037 | /usr/convex/getsysinfo = `(/usr/convex/getsysinfo) 2>/dev/null || echo unknown` | |
1038 | hostinfo = `(hostinfo) 2>/dev/null || echo unknown` | |
1039 | /bin/machine = `(/bin/machine) 2>/dev/null || echo unknown` | |
1040 | /usr/bin/oslevel = `(/usr/bin/oslevel) 2>/dev/null || echo unknown` | |
1041 | /bin/universe = `(/bin/universe) 2>/dev/null || echo unknown` | |
1042 | ||
1043 | _ASUNAME | |
1044 | ||
1045 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1046 | for as_dir in $PATH | |
1047 | do | |
1048 | IFS=$as_save_IFS | |
1049 | test -z "$as_dir" && as_dir=. | |
1050 | echo "PATH: $as_dir" | |
1051 | done | |
1052 | ||
1053 | } >&5 | |
1054 | ||
1055 | cat >&5 <<_ACEOF | |
1056 | ||
1057 | ||
1058 | ## ----------- ## | |
1059 | ## Core tests. ## | |
1060 | ## ----------- ## | |
1061 | ||
1062 | _ACEOF | |
1063 | ||
1064 | ||
1065 | # Keep a trace of the command line. | |
1066 | # Strip out --no-create and --no-recursion so they do not pile up. | |
1067 | # Strip out --silent because we don't want to record it for future runs. | |
1068 | # Also quote any args containing shell meta-characters. | |
1069 | # Make two passes to allow for proper duplicate-argument suppression. | |
1070 | ac_configure_args= | |
1071 | ac_configure_args0= | |
1072 | ac_configure_args1= | |
1073 | ac_sep= | |
1074 | ac_must_keep_next=false | |
1075 | for ac_pass in 1 2 | |
1076 | do | |
1077 | for ac_arg | |
1078 | do | |
1079 | case $ac_arg in | |
1080 | -no-create | --no-c* | -n | -no-recursion | --no-r*) continue ;; | |
1081 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
1082 | | -silent | --silent | --silen | --sile | --sil) | |
1083 | continue ;; | |
1084 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1085 | ac_arg=`echo "$ac_arg" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1086 | esac | |
1087 | case $ac_pass in | |
1088 | 1) ac_configure_args0="$ac_configure_args0 '$ac_arg'" ;; | |
1089 | 2) | |
1090 | ac_configure_args1="$ac_configure_args1 '$ac_arg'" | |
1091 | if test $ac_must_keep_next = true; then | |
1092 | ac_must_keep_next=false # Got value, back to normal. | |
1093 | else | |
1094 | case $ac_arg in | |
1095 | *=* | --config-cache | -C | -disable-* | --disable-* \ | |
1096 | | -enable-* | --enable-* | -gas | --g* | -nfp | --nf* \ | |
1097 | | -q | -quiet | --q* | -silent | --sil* | -v | -verb* \ | |
1098 | | -with-* | --with-* | -without-* | --without-* | --x) | |
1099 | case "$ac_configure_args0 " in | |
1100 | "$ac_configure_args1"*" '$ac_arg' "* ) continue ;; | |
1101 | esac | |
1102 | ;; | |
1103 | -* ) ac_must_keep_next=true ;; | |
1104 | esac | |
1105 | fi | |
1106 | ac_configure_args="$ac_configure_args$ac_sep'$ac_arg'" | |
1107 | # Get rid of the leading space. | |
1108 | ac_sep=" " | |
1109 | ;; | |
1110 | esac | |
1111 | done | |
1112 | done | |
1113 | $as_unset ac_configure_args0 || test "${ac_configure_args0+set}" != set || { ac_configure_args0=; export ac_configure_args0; } | |
1114 | $as_unset ac_configure_args1 || test "${ac_configure_args1+set}" != set || { ac_configure_args1=; export ac_configure_args1; } | |
1115 | ||
1116 | # When interrupted or exit'd, cleanup temporary files, and complete | |
1117 | # config.log. We remove comments because anyway the quotes in there | |
1118 | # would cause problems or look ugly. | |
1119 | # WARNING: Be sure not to use single quotes in there, as some shells, | |
1120 | # such as our DU 5.0 friend, will then `close' the trap. | |
1121 | trap 'exit_status=$? | |
1122 | # Save into config.log some information that might help in debugging. | |
1123 | { | |
1124 | echo | |
1125 | ||
1126 | cat <<\_ASBOX | |
1127 | ## ---------------- ## | |
1128 | ## Cache variables. ## | |
1129 | ## ---------------- ## | |
1130 | _ASBOX | |
1131 | echo | |
1132 | # The following way of writing the cache mishandles newlines in values, | |
1133 | { | |
1134 | (set) 2>&1 | | |
1135 | case `(ac_space='"'"' '"'"'; set | grep ac_space) 2>&1` in | |
1136 | *ac_space=\ *) | |
1137 | sed -n \ | |
1138 | "s/'"'"'/'"'"'\\\\'"'"''"'"'/g; | |
1139 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='"'"'\\2'"'"'/p" | |
1140 | ;; | |
1141 | *) | |
1142 | sed -n \ | |
1143 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
1144 | ;; | |
1145 | esac; | |
1146 | } | |
1147 | echo | |
1148 | ||
1149 | cat <<\_ASBOX | |
1150 | ## ----------------- ## | |
1151 | ## Output variables. ## | |
1152 | ## ----------------- ## | |
1153 | _ASBOX | |
1154 | echo | |
1155 | for ac_var in $ac_subst_vars | |
1156 | do | |
1157 | eval ac_val=$`echo $ac_var` | |
1158 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1159 | done | sort | |
1160 | echo | |
1161 | ||
1162 | if test -n "$ac_subst_files"; then | |
1163 | cat <<\_ASBOX | |
1164 | ## ------------- ## | |
1165 | ## Output files. ## | |
1166 | ## ------------- ## | |
1167 | _ASBOX | |
1168 | echo | |
1169 | for ac_var in $ac_subst_files | |
1170 | do | |
1171 | eval ac_val=$`echo $ac_var` | |
1172 | echo "$ac_var='"'"'$ac_val'"'"'" | |
1173 | done | sort | |
1174 | echo | |
1175 | fi | |
1176 | ||
1177 | if test -s confdefs.h; then | |
1178 | cat <<\_ASBOX | |
1179 | ## ----------- ## | |
1180 | ## confdefs.h. ## | |
1181 | ## ----------- ## | |
1182 | _ASBOX | |
1183 | echo | |
1184 | sed "/^$/d" confdefs.h | sort | |
1185 | echo | |
1186 | fi | |
1187 | test "$ac_signal" != 0 && | |
1188 | echo "$as_me: caught signal $ac_signal" | |
1189 | echo "$as_me: exit $exit_status" | |
1190 | } >&5 | |
1191 | rm -f core *.core && | |
1192 | rm -rf conftest* confdefs* conf$$* $ac_clean_files && | |
1193 | exit $exit_status | |
1194 | ' 0 | |
1195 | for ac_signal in 1 2 13 15; do | |
1196 | trap 'ac_signal='$ac_signal'; { (exit 1); exit 1; }' $ac_signal | |
1197 | done | |
1198 | ac_signal=0 | |
1199 | ||
1200 | # confdefs.h avoids OS command line length limits that DEFS can exceed. | |
1201 | rm -rf conftest* confdefs.h | |
1202 | # AIX cpp loses on an empty file, so make sure it contains at least a newline. | |
1203 | echo >confdefs.h | |
1204 | ||
1205 | # Predefined preprocessor variables. | |
1206 | ||
1207 | cat >>confdefs.h <<_ACEOF | |
1208 | #define PACKAGE_NAME "$PACKAGE_NAME" | |
1209 | _ACEOF | |
1210 | ||
1211 | ||
1212 | cat >>confdefs.h <<_ACEOF | |
1213 | #define PACKAGE_TARNAME "$PACKAGE_TARNAME" | |
1214 | _ACEOF | |
1215 | ||
1216 | ||
1217 | cat >>confdefs.h <<_ACEOF | |
1218 | #define PACKAGE_VERSION "$PACKAGE_VERSION" | |
1219 | _ACEOF | |
1220 | ||
1221 | ||
1222 | cat >>confdefs.h <<_ACEOF | |
1223 | #define PACKAGE_STRING "$PACKAGE_STRING" | |
1224 | _ACEOF | |
1225 | ||
1226 | ||
1227 | cat >>confdefs.h <<_ACEOF | |
1228 | #define PACKAGE_BUGREPORT "$PACKAGE_BUGREPORT" | |
1229 | _ACEOF | |
1230 | ||
1231 | ||
1232 | # Let the site file select an alternate cache file if it wants to. | |
1233 | # Prefer explicitly selected file to automatically selected ones. | |
1234 | if test -z "$CONFIG_SITE"; then | |
1235 | if test "x$prefix" != xNONE; then | |
1236 | CONFIG_SITE="$prefix/share/config.site $prefix/etc/config.site" | |
1237 | else | |
1238 | CONFIG_SITE="$ac_default_prefix/share/config.site $ac_default_prefix/etc/config.site" | |
1239 | fi | |
1240 | fi | |
1241 | for ac_site_file in $CONFIG_SITE; do | |
1242 | if test -r "$ac_site_file"; then | |
1243 | { echo "$as_me:$LINENO: loading site script $ac_site_file" >&5 | |
1244 | echo "$as_me: loading site script $ac_site_file" >&6;} | |
1245 | sed 's/^/| /' "$ac_site_file" >&5 | |
1246 | . "$ac_site_file" | |
1247 | fi | |
1248 | done | |
1249 | ||
1250 | if test -r "$cache_file"; then | |
1251 | # Some versions of bash will fail to source /dev/null (special | |
1252 | # files actually), so we avoid doing that. | |
1253 | if test -f "$cache_file"; then | |
1254 | { echo "$as_me:$LINENO: loading cache $cache_file" >&5 | |
1255 | echo "$as_me: loading cache $cache_file" >&6;} | |
1256 | case $cache_file in | |
1257 | [\\/]* | ?:[\\/]* ) . $cache_file;; | |
1258 | *) . ./$cache_file;; | |
1259 | esac | |
1260 | fi | |
1261 | else | |
1262 | { echo "$as_me:$LINENO: creating cache $cache_file" >&5 | |
1263 | echo "$as_me: creating cache $cache_file" >&6;} | |
1264 | >$cache_file | |
1265 | fi | |
1266 | ||
1267 | # Check that the precious variables saved in the cache have kept the same | |
1268 | # value. | |
1269 | ac_cache_corrupted=false | |
1270 | for ac_var in `(set) 2>&1 | | |
1271 | sed -n 's/^ac_env_\([a-zA-Z_0-9]*\)_set=.*/\1/p'`; do | |
1272 | eval ac_old_set=\$ac_cv_env_${ac_var}_set | |
1273 | eval ac_new_set=\$ac_env_${ac_var}_set | |
1274 | eval ac_old_val="\$ac_cv_env_${ac_var}_value" | |
1275 | eval ac_new_val="\$ac_env_${ac_var}_value" | |
1276 | case $ac_old_set,$ac_new_set in | |
1277 | set,) | |
1278 | { echo "$as_me:$LINENO: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&5 | |
1279 | echo "$as_me: error: \`$ac_var' was set to \`$ac_old_val' in the previous run" >&2;} | |
1280 | ac_cache_corrupted=: ;; | |
1281 | ,set) | |
1282 | { echo "$as_me:$LINENO: error: \`$ac_var' was not set in the previous run" >&5 | |
1283 | echo "$as_me: error: \`$ac_var' was not set in the previous run" >&2;} | |
1284 | ac_cache_corrupted=: ;; | |
1285 | ,);; | |
1286 | *) | |
1287 | if test "x$ac_old_val" != "x$ac_new_val"; then | |
1288 | { echo "$as_me:$LINENO: error: \`$ac_var' has changed since the previous run:" >&5 | |
1289 | echo "$as_me: error: \`$ac_var' has changed since the previous run:" >&2;} | |
1290 | { echo "$as_me:$LINENO: former value: $ac_old_val" >&5 | |
1291 | echo "$as_me: former value: $ac_old_val" >&2;} | |
1292 | { echo "$as_me:$LINENO: current value: $ac_new_val" >&5 | |
1293 | echo "$as_me: current value: $ac_new_val" >&2;} | |
1294 | ac_cache_corrupted=: | |
1295 | fi;; | |
1296 | esac | |
1297 | # Pass precious variables to config.status. | |
1298 | if test "$ac_new_set" = set; then | |
1299 | case $ac_new_val in | |
1300 | *" "*|*" "*|*[\[\]\~\#\$\^\&\*\(\)\{\}\\\|\;\<\>\?\"\']*) | |
1301 | ac_arg=$ac_var=`echo "$ac_new_val" | sed "s/'/'\\\\\\\\''/g"` ;; | |
1302 | *) ac_arg=$ac_var=$ac_new_val ;; | |
1303 | esac | |
1304 | case " $ac_configure_args " in | |
1305 | *" '$ac_arg' "*) ;; # Avoid dups. Use of quotes ensures accuracy. | |
1306 | *) ac_configure_args="$ac_configure_args '$ac_arg'" ;; | |
1307 | esac | |
1308 | fi | |
1309 | done | |
1310 | if $ac_cache_corrupted; then | |
1311 | { echo "$as_me:$LINENO: error: changes in the environment can compromise the build" >&5 | |
1312 | echo "$as_me: error: changes in the environment can compromise the build" >&2;} | |
1313 | { { echo "$as_me:$LINENO: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&5 | |
1314 | echo "$as_me: error: run \`make distclean' and/or \`rm $cache_file' and start over" >&2;} | |
1315 | { (exit 1); exit 1; }; } | |
1316 | fi | |
1317 | ||
1318 | ac_ext=c | |
1319 | ac_cpp='$CPP $CPPFLAGS' | |
1320 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1321 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1322 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1323 | ||
1324 | ||
1325 | ||
1326 | ||
1327 | ||
1328 | ||
1329 | ||
1330 | ||
1331 | ||
1332 | ||
1333 | ||
1334 | ||
1335 | ||
1336 | ||
1337 | ||
1338 | ||
1339 | ||
1340 | ||
1341 | ||
1342 | ||
1343 | ac_aux_dir= | |
1344 | for ac_dir in $srcdir $srcdir/.. $srcdir/../..; do | |
1345 | if test -f $ac_dir/install-sh; then | |
1346 | ac_aux_dir=$ac_dir | |
1347 | ac_install_sh="$ac_aux_dir/install-sh -c" | |
1348 | break | |
1349 | elif test -f $ac_dir/install.sh; then | |
1350 | ac_aux_dir=$ac_dir | |
1351 | ac_install_sh="$ac_aux_dir/install.sh -c" | |
1352 | break | |
1353 | elif test -f $ac_dir/shtool; then | |
1354 | ac_aux_dir=$ac_dir | |
1355 | ac_install_sh="$ac_aux_dir/shtool install -c" | |
1356 | break | |
1357 | fi | |
1358 | done | |
1359 | if test -z "$ac_aux_dir"; then | |
1360 | { { echo "$as_me:$LINENO: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&5 | |
1361 | echo "$as_me: error: cannot find install-sh or install.sh in $srcdir $srcdir/.. $srcdir/../.." >&2;} | |
1362 | { (exit 1); exit 1; }; } | |
1363 | fi | |
1364 | ac_config_guess="$SHELL $ac_aux_dir/config.guess" | |
1365 | ac_config_sub="$SHELL $ac_aux_dir/config.sub" | |
1366 | ac_configure="$SHELL $ac_aux_dir/configure" # This should be Cygnus configure. | |
1367 | ||
1368 | # Find a good install program. We prefer a C program (faster), | |
1369 | # so one script is as good as another. But avoid the broken or | |
1370 | # incompatible versions: | |
1371 | # SysV /etc/install, /usr/sbin/install | |
1372 | # SunOS /usr/etc/install | |
1373 | # IRIX /sbin/install | |
1374 | # AIX /bin/install | |
1375 | # AmigaOS /C/install, which installs bootblocks on floppy discs | |
1376 | # AIX 4 /usr/bin/installbsd, which doesn't work without a -g flag | |
1377 | # AFS /usr/afsws/bin/install, which mishandles nonexistent args | |
1378 | # SVR4 /usr/ucb/install, which tries to use the nonexistent group "staff" | |
1379 | # OS/2's system install, which has a completely different semantic | |
1380 | # ./install, which can be erroneously created by make from ./install.sh. | |
1381 | echo "$as_me:$LINENO: checking for a BSD-compatible install" >&5 | |
1382 | echo $ECHO_N "checking for a BSD-compatible install... $ECHO_C" >&6 | |
1383 | if test -z "$INSTALL"; then | |
1384 | if test "${ac_cv_path_install+set}" = set; then | |
1385 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1386 | else | |
1387 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1388 | for as_dir in $PATH | |
1389 | do | |
1390 | IFS=$as_save_IFS | |
1391 | test -z "$as_dir" && as_dir=. | |
1392 | # Account for people who put trailing slashes in PATH elements. | |
1393 | case $as_dir/ in | |
1394 | ./ | .// | /cC/* | \ | |
1395 | /etc/* | /usr/sbin/* | /usr/etc/* | /sbin/* | /usr/afsws/bin/* | \ | |
1396 | ?:\\/os2\\/install\\/* | ?:\\/OS2\\/INSTALL\\/* | \ | |
1397 | /usr/ucb/* ) ;; | |
1398 | *) | |
1399 | # OSF1 and SCO ODT 3.0 have their own names for install. | |
1400 | # Don't use installbsd from OSF since it installs stuff as root | |
1401 | # by default. | |
1402 | for ac_prog in ginstall scoinst install; do | |
1403 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1404 | if $as_executable_p "$as_dir/$ac_prog$ac_exec_ext"; then | |
1405 | if test $ac_prog = install && | |
1406 | grep dspmsg "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
1407 | # AIX install. It has an incompatible calling convention. | |
1408 | : | |
1409 | elif test $ac_prog = install && | |
1410 | grep pwplus "$as_dir/$ac_prog$ac_exec_ext" >/dev/null 2>&1; then | |
1411 | # program-specific install script used by HP pwplus--don't use. | |
1412 | : | |
1413 | else | |
1414 | ac_cv_path_install="$as_dir/$ac_prog$ac_exec_ext -c" | |
1415 | break 3 | |
1416 | fi | |
1417 | fi | |
1418 | done | |
1419 | done | |
1420 | ;; | |
1421 | esac | |
1422 | done | |
1423 | ||
1424 | ||
1425 | fi | |
1426 | if test "${ac_cv_path_install+set}" = set; then | |
1427 | INSTALL=$ac_cv_path_install | |
1428 | else | |
1429 | # As a last resort, use the slow shell script. We don't cache a | |
1430 | # path for INSTALL within a source directory, because that will | |
1431 | # break other packages using the cache if that directory is | |
1432 | # removed, or if the path is relative. | |
1433 | INSTALL=$ac_install_sh | |
1434 | fi | |
1435 | fi | |
1436 | echo "$as_me:$LINENO: result: $INSTALL" >&5 | |
1437 | echo "${ECHO_T}$INSTALL" >&6 | |
1438 | ||
1439 | # Use test -z because SunOS4 sh mishandles braces in ${var-val}. | |
1440 | # It thinks the first close brace ends the variable substitution. | |
1441 | test -z "$INSTALL_PROGRAM" && INSTALL_PROGRAM='${INSTALL}' | |
1442 | ||
1443 | test -z "$INSTALL_SCRIPT" && INSTALL_SCRIPT='${INSTALL}' | |
1444 | ||
1445 | test -z "$INSTALL_DATA" && INSTALL_DATA='${INSTALL} -m 644' | |
1446 | ||
1447 | ac_ext=c | |
1448 | ac_cpp='$CPP $CPPFLAGS' | |
1449 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
1450 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
1451 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
1452 | if test -n "$ac_tool_prefix"; then | |
1453 | # Extract the first word of "${ac_tool_prefix}gcc", so it can be a program name with args. | |
1454 | set dummy ${ac_tool_prefix}gcc; ac_word=$2 | |
1455 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1456 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1457 | if test "${ac_cv_prog_CC+set}" = set; then | |
1458 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c SS |
1459 | else |
1460 | if test -n "$CC"; then | |
1461 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1462 | else | |
b7026657 AC |
1463 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1464 | for as_dir in $PATH | |
1465 | do | |
1466 | IFS=$as_save_IFS | |
1467 | test -z "$as_dir" && as_dir=. | |
1468 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1469 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1470 | ac_cv_prog_CC="${ac_tool_prefix}gcc" | |
1471 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1472 | break 2 | |
1473 | fi | |
1474 | done | |
1475 | done | |
1476 | ||
c906108c SS |
1477 | fi |
1478 | fi | |
b7026657 | 1479 | CC=$ac_cv_prog_CC |
c906108c | 1480 | if test -n "$CC"; then |
b7026657 AC |
1481 | echo "$as_me:$LINENO: result: $CC" >&5 |
1482 | echo "${ECHO_T}$CC" >&6 | |
1483 | else | |
1484 | echo "$as_me:$LINENO: result: no" >&5 | |
1485 | echo "${ECHO_T}no" >&6 | |
1486 | fi | |
1487 | ||
1488 | fi | |
1489 | if test -z "$ac_cv_prog_CC"; then | |
1490 | ac_ct_CC=$CC | |
1491 | # Extract the first word of "gcc", so it can be a program name with args. | |
1492 | set dummy gcc; ac_word=$2 | |
1493 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1494 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1495 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1496 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1497 | else | |
1498 | if test -n "$ac_ct_CC"; then | |
1499 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1500 | else | |
1501 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1502 | for as_dir in $PATH | |
1503 | do | |
1504 | IFS=$as_save_IFS | |
1505 | test -z "$as_dir" && as_dir=. | |
1506 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1507 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1508 | ac_cv_prog_ac_ct_CC="gcc" | |
1509 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1510 | break 2 | |
1511 | fi | |
1512 | done | |
1513 | done | |
1514 | ||
1515 | fi | |
1516 | fi | |
1517 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1518 | if test -n "$ac_ct_CC"; then | |
1519 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1520 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
c906108c | 1521 | else |
b7026657 AC |
1522 | echo "$as_me:$LINENO: result: no" >&5 |
1523 | echo "${ECHO_T}no" >&6 | |
1524 | fi | |
1525 | ||
1526 | CC=$ac_ct_CC | |
1527 | else | |
1528 | CC="$ac_cv_prog_CC" | |
c906108c SS |
1529 | fi |
1530 | ||
1531 | if test -z "$CC"; then | |
b7026657 AC |
1532 | if test -n "$ac_tool_prefix"; then |
1533 | # Extract the first word of "${ac_tool_prefix}cc", so it can be a program name with args. | |
1534 | set dummy ${ac_tool_prefix}cc; ac_word=$2 | |
1535 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1536 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1537 | if test "${ac_cv_prog_CC+set}" = set; then | |
1538 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1539 | else | |
1540 | if test -n "$CC"; then | |
1541 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1542 | else | |
1543 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1544 | for as_dir in $PATH | |
1545 | do | |
1546 | IFS=$as_save_IFS | |
1547 | test -z "$as_dir" && as_dir=. | |
1548 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1549 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1550 | ac_cv_prog_CC="${ac_tool_prefix}cc" | |
1551 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1552 | break 2 | |
1553 | fi | |
1554 | done | |
1555 | done | |
1556 | ||
1557 | fi | |
1558 | fi | |
1559 | CC=$ac_cv_prog_CC | |
1560 | if test -n "$CC"; then | |
1561 | echo "$as_me:$LINENO: result: $CC" >&5 | |
1562 | echo "${ECHO_T}$CC" >&6 | |
1563 | else | |
1564 | echo "$as_me:$LINENO: result: no" >&5 | |
1565 | echo "${ECHO_T}no" >&6 | |
1566 | fi | |
1567 | ||
1568 | fi | |
1569 | if test -z "$ac_cv_prog_CC"; then | |
1570 | ac_ct_CC=$CC | |
c906108c SS |
1571 | # Extract the first word of "cc", so it can be a program name with args. |
1572 | set dummy cc; ac_word=$2 | |
b7026657 AC |
1573 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
1574 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1575 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1576 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1577 | else | |
1578 | if test -n "$ac_ct_CC"; then | |
1579 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1580 | else | |
1581 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1582 | for as_dir in $PATH | |
1583 | do | |
1584 | IFS=$as_save_IFS | |
1585 | test -z "$as_dir" && as_dir=. | |
1586 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1587 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1588 | ac_cv_prog_ac_ct_CC="cc" | |
1589 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1590 | break 2 | |
1591 | fi | |
1592 | done | |
1593 | done | |
1594 | ||
1595 | fi | |
1596 | fi | |
1597 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1598 | if test -n "$ac_ct_CC"; then | |
1599 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1600 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1601 | else | |
1602 | echo "$as_me:$LINENO: result: no" >&5 | |
1603 | echo "${ECHO_T}no" >&6 | |
1604 | fi | |
1605 | ||
1606 | CC=$ac_ct_CC | |
1607 | else | |
1608 | CC="$ac_cv_prog_CC" | |
1609 | fi | |
1610 | ||
1611 | fi | |
1612 | if test -z "$CC"; then | |
1613 | # Extract the first word of "cc", so it can be a program name with args. | |
1614 | set dummy cc; ac_word=$2 | |
1615 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1616 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1617 | if test "${ac_cv_prog_CC+set}" = set; then | |
1618 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c SS |
1619 | else |
1620 | if test -n "$CC"; then | |
1621 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1622 | else | |
c906108c | 1623 | ac_prog_rejected=no |
b7026657 AC |
1624 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1625 | for as_dir in $PATH | |
1626 | do | |
1627 | IFS=$as_save_IFS | |
1628 | test -z "$as_dir" && as_dir=. | |
1629 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1630 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1631 | if test "$as_dir/$ac_word$ac_exec_ext" = "/usr/ucb/cc"; then | |
1632 | ac_prog_rejected=yes | |
1633 | continue | |
1634 | fi | |
1635 | ac_cv_prog_CC="cc" | |
1636 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1637 | break 2 | |
1638 | fi | |
1639 | done | |
1640 | done | |
1641 | ||
c906108c SS |
1642 | if test $ac_prog_rejected = yes; then |
1643 | # We found a bogon in the path, so make sure we never use it. | |
1644 | set dummy $ac_cv_prog_CC | |
1645 | shift | |
b7026657 | 1646 | if test $# != 0; then |
c906108c SS |
1647 | # We chose a different compiler from the bogus one. |
1648 | # However, it has the same basename, so the bogon will be chosen | |
1649 | # first if we set CC to just the basename; use the full file name. | |
1650 | shift | |
b7026657 | 1651 | ac_cv_prog_CC="$as_dir/$ac_word${1+' '}$@" |
c906108c SS |
1652 | fi |
1653 | fi | |
1654 | fi | |
1655 | fi | |
b7026657 | 1656 | CC=$ac_cv_prog_CC |
c906108c | 1657 | if test -n "$CC"; then |
b7026657 AC |
1658 | echo "$as_me:$LINENO: result: $CC" >&5 |
1659 | echo "${ECHO_T}$CC" >&6 | |
c906108c | 1660 | else |
b7026657 AC |
1661 | echo "$as_me:$LINENO: result: no" >&5 |
1662 | echo "${ECHO_T}no" >&6 | |
c906108c SS |
1663 | fi |
1664 | ||
b7026657 AC |
1665 | fi |
1666 | if test -z "$CC"; then | |
1667 | if test -n "$ac_tool_prefix"; then | |
1668 | for ac_prog in cl | |
1669 | do | |
1670 | # Extract the first word of "$ac_tool_prefix$ac_prog", so it can be a program name with args. | |
1671 | set dummy $ac_tool_prefix$ac_prog; ac_word=$2 | |
1672 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1673 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1674 | if test "${ac_cv_prog_CC+set}" = set; then | |
1675 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c SS |
1676 | else |
1677 | if test -n "$CC"; then | |
1678 | ac_cv_prog_CC="$CC" # Let the user override the test. | |
1679 | else | |
b7026657 AC |
1680 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
1681 | for as_dir in $PATH | |
1682 | do | |
1683 | IFS=$as_save_IFS | |
1684 | test -z "$as_dir" && as_dir=. | |
1685 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1686 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1687 | ac_cv_prog_CC="$ac_tool_prefix$ac_prog" | |
1688 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1689 | break 2 | |
1690 | fi | |
1691 | done | |
1692 | done | |
1693 | ||
1694 | fi | |
1695 | fi | |
1696 | CC=$ac_cv_prog_CC | |
1697 | if test -n "$CC"; then | |
1698 | echo "$as_me:$LINENO: result: $CC" >&5 | |
1699 | echo "${ECHO_T}$CC" >&6 | |
1700 | else | |
1701 | echo "$as_me:$LINENO: result: no" >&5 | |
1702 | echo "${ECHO_T}no" >&6 | |
1703 | fi | |
1704 | ||
1705 | test -n "$CC" && break | |
1706 | done | |
1707 | fi | |
1708 | if test -z "$CC"; then | |
1709 | ac_ct_CC=$CC | |
1710 | for ac_prog in cl | |
1711 | do | |
1712 | # Extract the first word of "$ac_prog", so it can be a program name with args. | |
1713 | set dummy $ac_prog; ac_word=$2 | |
1714 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
1715 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
1716 | if test "${ac_cv_prog_ac_ct_CC+set}" = set; then | |
1717 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1718 | else | |
1719 | if test -n "$ac_ct_CC"; then | |
1720 | ac_cv_prog_ac_ct_CC="$ac_ct_CC" # Let the user override the test. | |
1721 | else | |
1722 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
1723 | for as_dir in $PATH | |
1724 | do | |
1725 | IFS=$as_save_IFS | |
1726 | test -z "$as_dir" && as_dir=. | |
1727 | for ac_exec_ext in '' $ac_executable_extensions; do | |
1728 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
1729 | ac_cv_prog_ac_ct_CC="$ac_prog" | |
1730 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
1731 | break 2 | |
1732 | fi | |
1733 | done | |
1734 | done | |
1735 | ||
1736 | fi | |
1737 | fi | |
1738 | ac_ct_CC=$ac_cv_prog_ac_ct_CC | |
1739 | if test -n "$ac_ct_CC"; then | |
1740 | echo "$as_me:$LINENO: result: $ac_ct_CC" >&5 | |
1741 | echo "${ECHO_T}$ac_ct_CC" >&6 | |
1742 | else | |
1743 | echo "$as_me:$LINENO: result: no" >&5 | |
1744 | echo "${ECHO_T}no" >&6 | |
1745 | fi | |
1746 | ||
1747 | test -n "$ac_ct_CC" && break | |
1748 | done | |
1749 | ||
1750 | CC=$ac_ct_CC | |
1751 | fi | |
1752 | ||
1753 | fi | |
1754 | ||
1755 | ||
1756 | test -z "$CC" && { { echo "$as_me:$LINENO: error: no acceptable C compiler found in \$PATH | |
1757 | See \`config.log' for more details." >&5 | |
1758 | echo "$as_me: error: no acceptable C compiler found in \$PATH | |
1759 | See \`config.log' for more details." >&2;} | |
1760 | { (exit 1); exit 1; }; } | |
1761 | ||
1762 | # Provide some information about the compiler. | |
1763 | echo "$as_me:$LINENO:" \ | |
1764 | "checking for C compiler version" >&5 | |
1765 | ac_compiler=`set X $ac_compile; echo $2` | |
1766 | { (eval echo "$as_me:$LINENO: \"$ac_compiler --version </dev/null >&5\"") >&5 | |
1767 | (eval $ac_compiler --version </dev/null >&5) 2>&5 | |
1768 | ac_status=$? | |
1769 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1770 | (exit $ac_status); } | |
1771 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -v </dev/null >&5\"") >&5 | |
1772 | (eval $ac_compiler -v </dev/null >&5) 2>&5 | |
1773 | ac_status=$? | |
1774 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1775 | (exit $ac_status); } | |
1776 | { (eval echo "$as_me:$LINENO: \"$ac_compiler -V </dev/null >&5\"") >&5 | |
1777 | (eval $ac_compiler -V </dev/null >&5) 2>&5 | |
1778 | ac_status=$? | |
1779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1780 | (exit $ac_status); } | |
1781 | ||
1782 | cat >conftest.$ac_ext <<_ACEOF | |
1783 | /* confdefs.h. */ | |
1784 | _ACEOF | |
1785 | cat confdefs.h >>conftest.$ac_ext | |
1786 | cat >>conftest.$ac_ext <<_ACEOF | |
1787 | /* end confdefs.h. */ | |
1788 | ||
1789 | int | |
1790 | main () | |
1791 | { | |
1792 | ||
1793 | ; | |
1794 | return 0; | |
1795 | } | |
1796 | _ACEOF | |
1797 | ac_clean_files_save=$ac_clean_files | |
1798 | ac_clean_files="$ac_clean_files a.out a.exe b.out" | |
1799 | # Try to create an executable without -o first, disregard a.out. | |
1800 | # It will help us diagnose broken compilers, and finding out an intuition | |
1801 | # of exeext. | |
1802 | echo "$as_me:$LINENO: checking for C compiler default output file name" >&5 | |
1803 | echo $ECHO_N "checking for C compiler default output file name... $ECHO_C" >&6 | |
1804 | ac_link_default=`echo "$ac_link" | sed 's/ -o *conftest[^ ]*//'` | |
1805 | if { (eval echo "$as_me:$LINENO: \"$ac_link_default\"") >&5 | |
1806 | (eval $ac_link_default) 2>&5 | |
1807 | ac_status=$? | |
1808 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1809 | (exit $ac_status); }; then | |
1810 | # Find the output, starting from the most likely. This scheme is | |
1811 | # not robust to junk in `.', hence go to wildcards (a.*) only as a last | |
1812 | # resort. | |
1813 | ||
1814 | # Be careful to initialize this variable, since it used to be cached. | |
1815 | # Otherwise an old cache value of `no' led to `EXEEXT = no' in a Makefile. | |
1816 | ac_cv_exeext= | |
1817 | # b.out is created by i960 compilers. | |
1818 | for ac_file in a_out.exe a.exe conftest.exe a.out conftest a.* conftest.* b.out | |
1819 | do | |
1820 | test -f "$ac_file" || continue | |
1821 | case $ac_file in | |
1822 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) | |
1823 | ;; | |
1824 | conftest.$ac_ext ) | |
1825 | # This is the source file. | |
1826 | ;; | |
1827 | [ab].out ) | |
1828 | # We found the default executable, but exeext='' is most | |
1829 | # certainly right. | |
1830 | break;; | |
1831 | *.* ) | |
1832 | ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
1833 | # FIXME: I believe we export ac_cv_exeext for Libtool, | |
1834 | # but it would be cool to find out if it's true. Does anybody | |
1835 | # maintain Libtool? --akim. | |
1836 | export ac_cv_exeext | |
1837 | break;; | |
1838 | * ) | |
1839 | break;; | |
1840 | esac | |
1841 | done | |
1842 | else | |
1843 | echo "$as_me: failed program was:" >&5 | |
1844 | sed 's/^/| /' conftest.$ac_ext >&5 | |
1845 | ||
1846 | { { echo "$as_me:$LINENO: error: C compiler cannot create executables | |
1847 | See \`config.log' for more details." >&5 | |
1848 | echo "$as_me: error: C compiler cannot create executables | |
1849 | See \`config.log' for more details." >&2;} | |
1850 | { (exit 77); exit 77; }; } | |
1851 | fi | |
1852 | ||
1853 | ac_exeext=$ac_cv_exeext | |
1854 | echo "$as_me:$LINENO: result: $ac_file" >&5 | |
1855 | echo "${ECHO_T}$ac_file" >&6 | |
1856 | ||
1857 | # Check the compiler produces executables we can run. If not, either | |
1858 | # the compiler is broken, or we cross compile. | |
1859 | echo "$as_me:$LINENO: checking whether the C compiler works" >&5 | |
1860 | echo $ECHO_N "checking whether the C compiler works... $ECHO_C" >&6 | |
1861 | # FIXME: These cross compiler hacks should be removed for Autoconf 3.0 | |
1862 | # If not cross compiling, check that we can run a simple program. | |
1863 | if test "$cross_compiling" != yes; then | |
1864 | if { ac_try='./$ac_file' | |
1865 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
1866 | (eval $ac_try) 2>&5 | |
1867 | ac_status=$? | |
1868 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1869 | (exit $ac_status); }; }; then | |
1870 | cross_compiling=no | |
1871 | else | |
1872 | if test "$cross_compiling" = maybe; then | |
1873 | cross_compiling=yes | |
1874 | else | |
1875 | { { echo "$as_me:$LINENO: error: cannot run C compiled programs. | |
1876 | If you meant to cross compile, use \`--host'. | |
1877 | See \`config.log' for more details." >&5 | |
1878 | echo "$as_me: error: cannot run C compiled programs. | |
1879 | If you meant to cross compile, use \`--host'. | |
1880 | See \`config.log' for more details." >&2;} | |
1881 | { (exit 1); exit 1; }; } | |
c906108c | 1882 | fi |
b7026657 | 1883 | fi |
c906108c | 1884 | fi |
b7026657 AC |
1885 | echo "$as_me:$LINENO: result: yes" >&5 |
1886 | echo "${ECHO_T}yes" >&6 | |
1887 | ||
1888 | rm -f a.out a.exe conftest$ac_cv_exeext b.out | |
1889 | ac_clean_files=$ac_clean_files_save | |
1890 | # Check the compiler produces executables we can run. If not, either | |
1891 | # the compiler is broken, or we cross compile. | |
1892 | echo "$as_me:$LINENO: checking whether we are cross compiling" >&5 | |
1893 | echo $ECHO_N "checking whether we are cross compiling... $ECHO_C" >&6 | |
1894 | echo "$as_me:$LINENO: result: $cross_compiling" >&5 | |
1895 | echo "${ECHO_T}$cross_compiling" >&6 | |
1896 | ||
1897 | echo "$as_me:$LINENO: checking for suffix of executables" >&5 | |
1898 | echo $ECHO_N "checking for suffix of executables... $ECHO_C" >&6 | |
1899 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
1900 | (eval $ac_link) 2>&5 | |
1901 | ac_status=$? | |
1902 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1903 | (exit $ac_status); }; then | |
1904 | # If both `conftest.exe' and `conftest' are `present' (well, observable) | |
1905 | # catch `conftest.exe'. For instance with Cygwin, `ls conftest' will | |
1906 | # work properly (i.e., refer to `conftest.exe'), while it won't with | |
1907 | # `rm'. | |
1908 | for ac_file in conftest.exe conftest conftest.*; do | |
1909 | test -f "$ac_file" || continue | |
1910 | case $ac_file in | |
1911 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg | *.o | *.obj ) ;; | |
1912 | *.* ) ac_cv_exeext=`expr "$ac_file" : '[^.]*\(\..*\)'` | |
1913 | export ac_cv_exeext | |
1914 | break;; | |
1915 | * ) break;; | |
1916 | esac | |
1917 | done | |
c906108c | 1918 | else |
b7026657 AC |
1919 | { { echo "$as_me:$LINENO: error: cannot compute suffix of executables: cannot compile and link |
1920 | See \`config.log' for more details." >&5 | |
1921 | echo "$as_me: error: cannot compute suffix of executables: cannot compile and link | |
1922 | See \`config.log' for more details." >&2;} | |
1923 | { (exit 1); exit 1; }; } | |
c906108c SS |
1924 | fi |
1925 | ||
b7026657 AC |
1926 | rm -f conftest$ac_cv_exeext |
1927 | echo "$as_me:$LINENO: result: $ac_cv_exeext" >&5 | |
1928 | echo "${ECHO_T}$ac_cv_exeext" >&6 | |
c906108c | 1929 | |
b7026657 AC |
1930 | rm -f conftest.$ac_ext |
1931 | EXEEXT=$ac_cv_exeext | |
1932 | ac_exeext=$EXEEXT | |
1933 | echo "$as_me:$LINENO: checking for suffix of object files" >&5 | |
1934 | echo $ECHO_N "checking for suffix of object files... $ECHO_C" >&6 | |
1935 | if test "${ac_cv_objext+set}" = set; then | |
1936 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1937 | else | |
1938 | cat >conftest.$ac_ext <<_ACEOF | |
1939 | /* confdefs.h. */ | |
1940 | _ACEOF | |
1941 | cat confdefs.h >>conftest.$ac_ext | |
1942 | cat >>conftest.$ac_ext <<_ACEOF | |
1943 | /* end confdefs.h. */ | |
1944 | ||
1945 | int | |
1946 | main () | |
1947 | { | |
1948 | ||
1949 | ; | |
1950 | return 0; | |
1951 | } | |
1952 | _ACEOF | |
1953 | rm -f conftest.o conftest.obj | |
1954 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
1955 | (eval $ac_compile) 2>&5 | |
1956 | ac_status=$? | |
1957 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
1958 | (exit $ac_status); }; then | |
1959 | for ac_file in `(ls conftest.o conftest.obj; ls conftest.*) 2>/dev/null`; do | |
1960 | case $ac_file in | |
1961 | *.$ac_ext | *.xcoff | *.tds | *.d | *.pdb | *.xSYM | *.bb | *.bbg ) ;; | |
1962 | *) ac_cv_objext=`expr "$ac_file" : '.*\.\(.*\)'` | |
1963 | break;; | |
1964 | esac | |
1965 | done | |
c906108c | 1966 | else |
b7026657 AC |
1967 | echo "$as_me: failed program was:" >&5 |
1968 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c | 1969 | |
b7026657 AC |
1970 | { { echo "$as_me:$LINENO: error: cannot compute suffix of object files: cannot compile |
1971 | See \`config.log' for more details." >&5 | |
1972 | echo "$as_me: error: cannot compute suffix of object files: cannot compile | |
1973 | See \`config.log' for more details." >&2;} | |
1974 | { (exit 1); exit 1; }; } | |
c906108c | 1975 | fi |
c906108c | 1976 | |
b7026657 AC |
1977 | rm -f conftest.$ac_cv_objext conftest.$ac_ext |
1978 | fi | |
1979 | echo "$as_me:$LINENO: result: $ac_cv_objext" >&5 | |
1980 | echo "${ECHO_T}$ac_cv_objext" >&6 | |
1981 | OBJEXT=$ac_cv_objext | |
1982 | ac_objext=$OBJEXT | |
1983 | echo "$as_me:$LINENO: checking whether we are using the GNU C compiler" >&5 | |
1984 | echo $ECHO_N "checking whether we are using the GNU C compiler... $ECHO_C" >&6 | |
1985 | if test "${ac_cv_c_compiler_gnu+set}" = set; then | |
1986 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 1987 | else |
b7026657 AC |
1988 | cat >conftest.$ac_ext <<_ACEOF |
1989 | /* confdefs.h. */ | |
1990 | _ACEOF | |
1991 | cat confdefs.h >>conftest.$ac_ext | |
1992 | cat >>conftest.$ac_ext <<_ACEOF | |
1993 | /* end confdefs.h. */ | |
1994 | ||
1995 | int | |
1996 | main () | |
1997 | { | |
1998 | #ifndef __GNUC__ | |
1999 | choke me | |
c906108c | 2000 | #endif |
c906108c | 2001 | |
b7026657 AC |
2002 | ; |
2003 | return 0; | |
2004 | } | |
2005 | _ACEOF | |
2006 | rm -f conftest.$ac_objext | |
2007 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2008 | (eval $ac_compile) 2>conftest.er1 | |
2009 | ac_status=$? | |
2010 | grep -v '^ *+' conftest.er1 >conftest.err | |
2011 | rm -f conftest.er1 | |
2012 | cat conftest.err >&5 | |
2013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2014 | (exit $ac_status); } && | |
2015 | { ac_try='test -z "$ac_c_werror_flag" | |
2016 | || test ! -s conftest.err' | |
2017 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2018 | (eval $ac_try) 2>&5 | |
2019 | ac_status=$? | |
2020 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2021 | (exit $ac_status); }; } && | |
2022 | { ac_try='test -s conftest.$ac_objext' | |
2023 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2024 | (eval $ac_try) 2>&5 | |
2025 | ac_status=$? | |
2026 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2027 | (exit $ac_status); }; }; then | |
2028 | ac_compiler_gnu=yes | |
2029 | else | |
2030 | echo "$as_me: failed program was:" >&5 | |
2031 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2032 | ||
2033 | ac_compiler_gnu=no | |
2034 | fi | |
2035 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
2036 | ac_cv_c_compiler_gnu=$ac_compiler_gnu | |
2037 | ||
2038 | fi | |
2039 | echo "$as_me:$LINENO: result: $ac_cv_c_compiler_gnu" >&5 | |
2040 | echo "${ECHO_T}$ac_cv_c_compiler_gnu" >&6 | |
2041 | GCC=`test $ac_compiler_gnu = yes && echo yes` | |
2042 | ac_test_CFLAGS=${CFLAGS+set} | |
2043 | ac_save_CFLAGS=$CFLAGS | |
2044 | CFLAGS="-g" | |
2045 | echo "$as_me:$LINENO: checking whether $CC accepts -g" >&5 | |
2046 | echo $ECHO_N "checking whether $CC accepts -g... $ECHO_C" >&6 | |
2047 | if test "${ac_cv_prog_cc_g+set}" = set; then | |
2048 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2049 | else | |
2050 | cat >conftest.$ac_ext <<_ACEOF | |
2051 | /* confdefs.h. */ | |
2052 | _ACEOF | |
2053 | cat confdefs.h >>conftest.$ac_ext | |
2054 | cat >>conftest.$ac_ext <<_ACEOF | |
2055 | /* end confdefs.h. */ | |
c906108c | 2056 | |
b7026657 AC |
2057 | int |
2058 | main () | |
2059 | { | |
c906108c | 2060 | |
b7026657 AC |
2061 | ; |
2062 | return 0; | |
2063 | } | |
2064 | _ACEOF | |
2065 | rm -f conftest.$ac_objext | |
2066 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2067 | (eval $ac_compile) 2>conftest.er1 | |
2068 | ac_status=$? | |
2069 | grep -v '^ *+' conftest.er1 >conftest.err | |
2070 | rm -f conftest.er1 | |
2071 | cat conftest.err >&5 | |
2072 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2073 | (exit $ac_status); } && | |
2074 | { ac_try='test -z "$ac_c_werror_flag" | |
2075 | || test ! -s conftest.err' | |
2076 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2077 | (eval $ac_try) 2>&5 | |
2078 | ac_status=$? | |
2079 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2080 | (exit $ac_status); }; } && | |
2081 | { ac_try='test -s conftest.$ac_objext' | |
2082 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2083 | (eval $ac_try) 2>&5 | |
2084 | ac_status=$? | |
2085 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2086 | (exit $ac_status); }; }; then | |
c906108c SS |
2087 | ac_cv_prog_cc_g=yes |
2088 | else | |
b7026657 AC |
2089 | echo "$as_me: failed program was:" >&5 |
2090 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c | 2091 | |
b7026657 | 2092 | ac_cv_prog_cc_g=no |
c906108c | 2093 | fi |
b7026657 AC |
2094 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2095 | fi | |
2096 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_g" >&5 | |
2097 | echo "${ECHO_T}$ac_cv_prog_cc_g" >&6 | |
c906108c | 2098 | if test "$ac_test_CFLAGS" = set; then |
b7026657 | 2099 | CFLAGS=$ac_save_CFLAGS |
c906108c SS |
2100 | elif test $ac_cv_prog_cc_g = yes; then |
2101 | if test "$GCC" = yes; then | |
2102 | CFLAGS="-g -O2" | |
2103 | else | |
2104 | CFLAGS="-g" | |
2105 | fi | |
2106 | else | |
2107 | if test "$GCC" = yes; then | |
2108 | CFLAGS="-O2" | |
2109 | else | |
2110 | CFLAGS= | |
2111 | fi | |
2112 | fi | |
b7026657 AC |
2113 | echo "$as_me:$LINENO: checking for $CC option to accept ANSI C" >&5 |
2114 | echo $ECHO_N "checking for $CC option to accept ANSI C... $ECHO_C" >&6 | |
2115 | if test "${ac_cv_prog_cc_stdc+set}" = set; then | |
2116 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2117 | else | |
2118 | ac_cv_prog_cc_stdc=no | |
2119 | ac_save_CC=$CC | |
2120 | cat >conftest.$ac_ext <<_ACEOF | |
2121 | /* confdefs.h. */ | |
2122 | _ACEOF | |
2123 | cat confdefs.h >>conftest.$ac_ext | |
2124 | cat >>conftest.$ac_ext <<_ACEOF | |
2125 | /* end confdefs.h. */ | |
2126 | #include <stdarg.h> | |
2127 | #include <stdio.h> | |
2128 | #include <sys/types.h> | |
2129 | #include <sys/stat.h> | |
2130 | /* Most of the following tests are stolen from RCS 5.7's src/conf.sh. */ | |
2131 | struct buf { int x; }; | |
2132 | FILE * (*rcsopen) (struct buf *, struct stat *, int); | |
2133 | static char *e (p, i) | |
2134 | char **p; | |
2135 | int i; | |
2136 | { | |
2137 | return p[i]; | |
2138 | } | |
2139 | static char *f (char * (*g) (char **, int), char **p, ...) | |
2140 | { | |
2141 | char *s; | |
2142 | va_list v; | |
2143 | va_start (v,p); | |
2144 | s = g (p, va_arg (v,int)); | |
2145 | va_end (v); | |
2146 | return s; | |
2147 | } | |
c906108c | 2148 | |
b7026657 AC |
2149 | /* OSF 4.0 Compaq cc is some sort of almost-ANSI by default. It has |
2150 | function prototypes and stuff, but not '\xHH' hex character constants. | |
2151 | These don't provoke an error unfortunately, instead are silently treated | |
2152 | as 'x'. The following induces an error, until -std1 is added to get | |
2153 | proper ANSI mode. Curiously '\x00'!='x' always comes out true, for an | |
2154 | array size at least. It's necessary to write '\x00'==0 to get something | |
2155 | that's true only with -std1. */ | |
2156 | int osf4_cc_array ['\x00' == 0 ? 1 : -1]; | |
2157 | ||
2158 | int test (int i, double x); | |
2159 | struct s1 {int (*f) (int a);}; | |
2160 | struct s2 {int (*f) (double a);}; | |
2161 | int pairnames (int, char **, FILE *(*)(struct buf *, struct stat *, int), int, int); | |
2162 | int argc; | |
2163 | char **argv; | |
2164 | int | |
2165 | main () | |
2166 | { | |
2167 | return f (e, argv, 0) != argv[0] || f (e, argv, 1) != argv[1]; | |
2168 | ; | |
2169 | return 0; | |
2170 | } | |
2171 | _ACEOF | |
2172 | # Don't try gcc -ansi; that turns off useful extensions and | |
2173 | # breaks some systems' header files. | |
2174 | # AIX -qlanglvl=ansi | |
2175 | # Ultrix and OSF/1 -std1 | |
2176 | # HP-UX 10.20 and later -Ae | |
2177 | # HP-UX older versions -Aa -D_HPUX_SOURCE | |
2178 | # SVR4 -Xc -D__EXTENSIONS__ | |
2179 | for ac_arg in "" -qlanglvl=ansi -std1 -Ae "-Aa -D_HPUX_SOURCE" "-Xc -D__EXTENSIONS__" | |
2180 | do | |
2181 | CC="$ac_save_CC $ac_arg" | |
2182 | rm -f conftest.$ac_objext | |
2183 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2184 | (eval $ac_compile) 2>conftest.er1 | |
2185 | ac_status=$? | |
2186 | grep -v '^ *+' conftest.er1 >conftest.err | |
2187 | rm -f conftest.er1 | |
2188 | cat conftest.err >&5 | |
2189 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2190 | (exit $ac_status); } && | |
2191 | { ac_try='test -z "$ac_c_werror_flag" | |
2192 | || test ! -s conftest.err' | |
2193 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2194 | (eval $ac_try) 2>&5 | |
2195 | ac_status=$? | |
2196 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2197 | (exit $ac_status); }; } && | |
2198 | { ac_try='test -s conftest.$ac_objext' | |
2199 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2200 | (eval $ac_try) 2>&5 | |
2201 | ac_status=$? | |
2202 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2203 | (exit $ac_status); }; }; then | |
2204 | ac_cv_prog_cc_stdc=$ac_arg | |
2205 | break | |
2206 | else | |
2207 | echo "$as_me: failed program was:" >&5 | |
2208 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2209 | ||
2210 | fi | |
2211 | rm -f conftest.err conftest.$ac_objext | |
2212 | done | |
2213 | rm -f conftest.$ac_ext conftest.$ac_objext | |
2214 | CC=$ac_save_CC | |
c906108c | 2215 | |
c906108c SS |
2216 | fi |
2217 | ||
b7026657 AC |
2218 | case "x$ac_cv_prog_cc_stdc" in |
2219 | x|xno) | |
2220 | echo "$as_me:$LINENO: result: none needed" >&5 | |
2221 | echo "${ECHO_T}none needed" >&6 ;; | |
2222 | *) | |
2223 | echo "$as_me:$LINENO: result: $ac_cv_prog_cc_stdc" >&5 | |
2224 | echo "${ECHO_T}$ac_cv_prog_cc_stdc" >&6 | |
2225 | CC="$CC $ac_cv_prog_cc_stdc" ;; | |
2226 | esac | |
2227 | ||
2228 | # Some people use a C++ compiler to compile C. Since we use `exit', | |
2229 | # in C++ we need to declare it. In case someone uses the same compiler | |
2230 | # for both compiling C and C++ we need to have the C++ compiler decide | |
2231 | # the declaration of exit, since it's the most demanding environment. | |
2232 | cat >conftest.$ac_ext <<_ACEOF | |
2233 | #ifndef __cplusplus | |
2234 | choke me | |
2235 | #endif | |
2236 | _ACEOF | |
2237 | rm -f conftest.$ac_objext | |
2238 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2239 | (eval $ac_compile) 2>conftest.er1 | |
2240 | ac_status=$? | |
2241 | grep -v '^ *+' conftest.er1 >conftest.err | |
2242 | rm -f conftest.er1 | |
2243 | cat conftest.err >&5 | |
2244 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2245 | (exit $ac_status); } && | |
2246 | { ac_try='test -z "$ac_c_werror_flag" | |
2247 | || test ! -s conftest.err' | |
2248 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2249 | (eval $ac_try) 2>&5 | |
2250 | ac_status=$? | |
2251 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2252 | (exit $ac_status); }; } && | |
2253 | { ac_try='test -s conftest.$ac_objext' | |
2254 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2255 | (eval $ac_try) 2>&5 | |
2256 | ac_status=$? | |
2257 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2258 | (exit $ac_status); }; }; then | |
2259 | for ac_declaration in \ | |
2260 | '' \ | |
2261 | 'extern "C" void std::exit (int) throw (); using std::exit;' \ | |
2262 | 'extern "C" void std::exit (int); using std::exit;' \ | |
2263 | 'extern "C" void exit (int) throw ();' \ | |
2264 | 'extern "C" void exit (int);' \ | |
2265 | 'void exit (int);' | |
2266 | do | |
2267 | cat >conftest.$ac_ext <<_ACEOF | |
2268 | /* confdefs.h. */ | |
2269 | _ACEOF | |
2270 | cat confdefs.h >>conftest.$ac_ext | |
2271 | cat >>conftest.$ac_ext <<_ACEOF | |
2272 | /* end confdefs.h. */ | |
2273 | $ac_declaration | |
2274 | #include <stdlib.h> | |
2275 | int | |
2276 | main () | |
2277 | { | |
2278 | exit (42); | |
2279 | ; | |
2280 | return 0; | |
2281 | } | |
2282 | _ACEOF | |
2283 | rm -f conftest.$ac_objext | |
2284 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2285 | (eval $ac_compile) 2>conftest.er1 | |
2286 | ac_status=$? | |
2287 | grep -v '^ *+' conftest.er1 >conftest.err | |
2288 | rm -f conftest.er1 | |
2289 | cat conftest.err >&5 | |
2290 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2291 | (exit $ac_status); } && | |
2292 | { ac_try='test -z "$ac_c_werror_flag" | |
2293 | || test ! -s conftest.err' | |
2294 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2295 | (eval $ac_try) 2>&5 | |
2296 | ac_status=$? | |
2297 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2298 | (exit $ac_status); }; } && | |
2299 | { ac_try='test -s conftest.$ac_objext' | |
2300 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2301 | (eval $ac_try) 2>&5 | |
2302 | ac_status=$? | |
2303 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2304 | (exit $ac_status); }; }; then | |
c906108c SS |
2305 | : |
2306 | else | |
b7026657 AC |
2307 | echo "$as_me: failed program was:" >&5 |
2308 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2309 | ||
2310 | continue | |
c906108c | 2311 | fi |
b7026657 AC |
2312 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2313 | cat >conftest.$ac_ext <<_ACEOF | |
2314 | /* confdefs.h. */ | |
2315 | _ACEOF | |
2316 | cat confdefs.h >>conftest.$ac_ext | |
2317 | cat >>conftest.$ac_ext <<_ACEOF | |
2318 | /* end confdefs.h. */ | |
2319 | $ac_declaration | |
2320 | int | |
2321 | main () | |
2322 | { | |
2323 | exit (42); | |
2324 | ; | |
2325 | return 0; | |
2326 | } | |
2327 | _ACEOF | |
2328 | rm -f conftest.$ac_objext | |
2329 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2330 | (eval $ac_compile) 2>conftest.er1 | |
2331 | ac_status=$? | |
2332 | grep -v '^ *+' conftest.er1 >conftest.err | |
2333 | rm -f conftest.er1 | |
2334 | cat conftest.err >&5 | |
2335 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2336 | (exit $ac_status); } && | |
2337 | { ac_try='test -z "$ac_c_werror_flag" | |
2338 | || test ! -s conftest.err' | |
2339 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2340 | (eval $ac_try) 2>&5 | |
2341 | ac_status=$? | |
2342 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2343 | (exit $ac_status); }; } && | |
2344 | { ac_try='test -s conftest.$ac_objext' | |
2345 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2346 | (eval $ac_try) 2>&5 | |
2347 | ac_status=$? | |
2348 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2349 | (exit $ac_status); }; }; then | |
2350 | break | |
2351 | else | |
2352 | echo "$as_me: failed program was:" >&5 | |
2353 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2354 | ||
c906108c | 2355 | fi |
b7026657 AC |
2356 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2357 | done | |
c906108c | 2358 | rm -f conftest* |
b7026657 AC |
2359 | if test -n "$ac_declaration"; then |
2360 | echo '#ifdef __cplusplus' >>confdefs.h | |
2361 | echo $ac_declaration >>confdefs.h | |
2362 | echo '#endif' >>confdefs.h | |
c906108c | 2363 | fi |
b7026657 AC |
2364 | |
2365 | else | |
2366 | echo "$as_me: failed program was:" >&5 | |
2367 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2368 | ||
c906108c | 2369 | fi |
b7026657 AC |
2370 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
2371 | ac_ext=c | |
2372 | ac_cpp='$CPP $CPPFLAGS' | |
2373 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2374 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2375 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2376 | ||
2377 | ||
2378 | # Put a plausible default for CC_FOR_BUILD in Makefile. | |
2379 | if test "x$cross_compiling" = "xno"; then | |
2380 | CC_FOR_BUILD='$(CC)' | |
c906108c | 2381 | else |
b7026657 | 2382 | CC_FOR_BUILD=gcc |
c906108c | 2383 | fi |
c906108c | 2384 | |
b7026657 AC |
2385 | ALL_LINGUAS= |
2386 | echo "$as_me:$LINENO: checking whether ${MAKE-make} sets \$(MAKE)" >&5 | |
2387 | echo $ECHO_N "checking whether ${MAKE-make} sets \$(MAKE)... $ECHO_C" >&6 | |
2388 | set dummy ${MAKE-make}; ac_make=`echo "$2" | sed 'y,:./+-,___p_,'` | |
2389 | if eval "test \"\${ac_cv_prog_make_${ac_make}_set+set}\" = set"; then | |
2390 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 2391 | else |
b7026657 | 2392 | cat >conftest.make <<\_ACEOF |
c906108c | 2393 | all: |
b7026657 AC |
2394 | @echo 'ac_maketemp="$(MAKE)"' |
2395 | _ACEOF | |
c906108c | 2396 | # GNU make sometimes prints "make[1]: Entering...", which would confuse us. |
b7026657 | 2397 | eval `${MAKE-make} -f conftest.make 2>/dev/null | grep temp=` |
c906108c SS |
2398 | if test -n "$ac_maketemp"; then |
2399 | eval ac_cv_prog_make_${ac_make}_set=yes | |
2400 | else | |
2401 | eval ac_cv_prog_make_${ac_make}_set=no | |
2402 | fi | |
b7026657 | 2403 | rm -f conftest.make |
c906108c SS |
2404 | fi |
2405 | if eval "test \"`echo '$ac_cv_prog_make_'${ac_make}_set`\" = yes"; then | |
b7026657 AC |
2406 | echo "$as_me:$LINENO: result: yes" >&5 |
2407 | echo "${ECHO_T}yes" >&6 | |
c906108c SS |
2408 | SET_MAKE= |
2409 | else | |
b7026657 AC |
2410 | echo "$as_me:$LINENO: result: no" >&5 |
2411 | echo "${ECHO_T}no" >&6 | |
c906108c SS |
2412 | SET_MAKE="MAKE=${MAKE-make}" |
2413 | fi | |
2414 | ||
b7026657 AC |
2415 | if test -n "$ac_tool_prefix"; then |
2416 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
2417 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
2418 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2419 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2420 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
2421 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c SS |
2422 | else |
2423 | if test -n "$RANLIB"; then | |
2424 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
2425 | else | |
b7026657 AC |
2426 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
2427 | for as_dir in $PATH | |
2428 | do | |
2429 | IFS=$as_save_IFS | |
2430 | test -z "$as_dir" && as_dir=. | |
2431 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2432 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2433 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
2434 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2435 | break 2 | |
2436 | fi | |
2437 | done | |
2438 | done | |
2439 | ||
c906108c SS |
2440 | fi |
2441 | fi | |
b7026657 | 2442 | RANLIB=$ac_cv_prog_RANLIB |
c906108c | 2443 | if test -n "$RANLIB"; then |
b7026657 AC |
2444 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
2445 | echo "${ECHO_T}$RANLIB" >&6 | |
c906108c | 2446 | else |
b7026657 AC |
2447 | echo "$as_me:$LINENO: result: no" >&5 |
2448 | echo "${ECHO_T}no" >&6 | |
2449 | fi | |
2450 | ||
c906108c | 2451 | fi |
b7026657 AC |
2452 | if test -z "$ac_cv_prog_RANLIB"; then |
2453 | ac_ct_RANLIB=$RANLIB | |
2454 | # Extract the first word of "ranlib", so it can be a program name with args. | |
2455 | set dummy ranlib; ac_word=$2 | |
2456 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
2457 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
2458 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
2459 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2460 | else | |
2461 | if test -n "$ac_ct_RANLIB"; then | |
2462 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
2463 | else | |
2464 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
2465 | for as_dir in $PATH | |
2466 | do | |
2467 | IFS=$as_save_IFS | |
2468 | test -z "$as_dir" && as_dir=. | |
2469 | for ac_exec_ext in '' $ac_executable_extensions; do | |
2470 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
2471 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
2472 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
2473 | break 2 | |
2474 | fi | |
2475 | done | |
2476 | done | |
c906108c | 2477 | |
b7026657 AC |
2478 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" |
2479 | fi | |
2480 | fi | |
2481 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
2482 | if test -n "$ac_ct_RANLIB"; then | |
2483 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
2484 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
2485 | else | |
2486 | echo "$as_me:$LINENO: result: no" >&5 | |
2487 | echo "${ECHO_T}no" >&6 | |
2488 | fi | |
c906108c | 2489 | |
b7026657 AC |
2490 | RANLIB=$ac_ct_RANLIB |
2491 | else | |
2492 | RANLIB="$ac_cv_prog_RANLIB" | |
2493 | fi | |
2494 | ||
2495 | ||
2496 | echo "$as_me:$LINENO: checking for library containing strerror" >&5 | |
2497 | echo $ECHO_N "checking for library containing strerror... $ECHO_C" >&6 | |
2498 | if test "${ac_cv_search_strerror+set}" = set; then | |
2499 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2500 | else | |
2501 | ac_func_search_save_LIBS=$LIBS | |
2502 | ac_cv_search_strerror=no | |
2503 | cat >conftest.$ac_ext <<_ACEOF | |
2504 | /* confdefs.h. */ | |
2505 | _ACEOF | |
2506 | cat confdefs.h >>conftest.$ac_ext | |
2507 | cat >>conftest.$ac_ext <<_ACEOF | |
2508 | /* end confdefs.h. */ | |
2509 | ||
2510 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2511 | #ifdef __cplusplus | |
2512 | extern "C" | |
2513 | #endif | |
2514 | /* We use char because int might match the return type of a gcc2 | |
2515 | builtin and then its argument prototype would still apply. */ | |
2516 | char strerror (); | |
2517 | int | |
2518 | main () | |
2519 | { | |
2520 | strerror (); | |
2521 | ; | |
2522 | return 0; | |
2523 | } | |
2524 | _ACEOF | |
2525 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2526 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2527 | (eval $ac_link) 2>conftest.er1 | |
2528 | ac_status=$? | |
2529 | grep -v '^ *+' conftest.er1 >conftest.err | |
2530 | rm -f conftest.er1 | |
2531 | cat conftest.err >&5 | |
2532 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2533 | (exit $ac_status); } && | |
2534 | { ac_try='test -z "$ac_c_werror_flag" | |
2535 | || test ! -s conftest.err' | |
2536 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2537 | (eval $ac_try) 2>&5 | |
2538 | ac_status=$? | |
2539 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2540 | (exit $ac_status); }; } && | |
2541 | { ac_try='test -s conftest$ac_exeext' | |
2542 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2543 | (eval $ac_try) 2>&5 | |
2544 | ac_status=$? | |
2545 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2546 | (exit $ac_status); }; }; then | |
2547 | ac_cv_search_strerror="none required" | |
2548 | else | |
2549 | echo "$as_me: failed program was:" >&5 | |
2550 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2551 | ||
2552 | fi | |
2553 | rm -f conftest.err conftest.$ac_objext \ | |
2554 | conftest$ac_exeext conftest.$ac_ext | |
2555 | if test "$ac_cv_search_strerror" = no; then | |
2556 | for ac_lib in cposix; do | |
2557 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
2558 | cat >conftest.$ac_ext <<_ACEOF | |
2559 | /* confdefs.h. */ | |
2560 | _ACEOF | |
2561 | cat confdefs.h >>conftest.$ac_ext | |
2562 | cat >>conftest.$ac_ext <<_ACEOF | |
2563 | /* end confdefs.h. */ | |
2564 | ||
2565 | /* Override any gcc2 internal prototype to avoid an error. */ | |
2566 | #ifdef __cplusplus | |
2567 | extern "C" | |
2568 | #endif | |
2569 | /* We use char because int might match the return type of a gcc2 | |
2570 | builtin and then its argument prototype would still apply. */ | |
2571 | char strerror (); | |
2572 | int | |
2573 | main () | |
2574 | { | |
2575 | strerror (); | |
2576 | ; | |
2577 | return 0; | |
2578 | } | |
2579 | _ACEOF | |
2580 | rm -f conftest.$ac_objext conftest$ac_exeext | |
2581 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
2582 | (eval $ac_link) 2>conftest.er1 | |
2583 | ac_status=$? | |
2584 | grep -v '^ *+' conftest.er1 >conftest.err | |
2585 | rm -f conftest.er1 | |
2586 | cat conftest.err >&5 | |
2587 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2588 | (exit $ac_status); } && | |
2589 | { ac_try='test -z "$ac_c_werror_flag" | |
2590 | || test ! -s conftest.err' | |
2591 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2592 | (eval $ac_try) 2>&5 | |
2593 | ac_status=$? | |
2594 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2595 | (exit $ac_status); }; } && | |
2596 | { ac_try='test -s conftest$ac_exeext' | |
2597 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2598 | (eval $ac_try) 2>&5 | |
2599 | ac_status=$? | |
2600 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2601 | (exit $ac_status); }; }; then | |
2602 | ac_cv_search_strerror="-l$ac_lib" | |
2603 | break | |
2604 | else | |
2605 | echo "$as_me: failed program was:" >&5 | |
2606 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2607 | ||
2608 | fi | |
2609 | rm -f conftest.err conftest.$ac_objext \ | |
2610 | conftest$ac_exeext conftest.$ac_ext | |
2611 | done | |
2612 | fi | |
2613 | LIBS=$ac_func_search_save_LIBS | |
2614 | fi | |
2615 | echo "$as_me:$LINENO: result: $ac_cv_search_strerror" >&5 | |
2616 | echo "${ECHO_T}$ac_cv_search_strerror" >&6 | |
2617 | if test "$ac_cv_search_strerror" != no; then | |
2618 | test "$ac_cv_search_strerror" = "none required" || LIBS="$ac_cv_search_strerror $LIBS" | |
2619 | ||
2620 | fi | |
2621 | ||
2622 | ac_ext=c | |
2623 | ac_cpp='$CPP $CPPFLAGS' | |
2624 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2625 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2626 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2627 | echo "$as_me:$LINENO: checking how to run the C preprocessor" >&5 | |
2628 | echo $ECHO_N "checking how to run the C preprocessor... $ECHO_C" >&6 | |
2629 | # On Suns, sometimes $CPP names a directory. | |
2630 | if test -n "$CPP" && test -d "$CPP"; then | |
2631 | CPP= | |
2632 | fi | |
2633 | if test -z "$CPP"; then | |
2634 | if test "${ac_cv_prog_CPP+set}" = set; then | |
2635 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2636 | else | |
2637 | # Double quotes because CPP needs to be expanded | |
2638 | for CPP in "$CC -E" "$CC -E -traditional-cpp" "/lib/cpp" | |
2639 | do | |
2640 | ac_preproc_ok=false | |
2641 | for ac_c_preproc_warn_flag in '' yes | |
2642 | do | |
2643 | # Use a header file that comes with gcc, so configuring glibc | |
2644 | # with a fresh cross-compiler works. | |
2645 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
2646 | # <limits.h> exists even on freestanding compilers. | |
2647 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
2648 | # not just through cpp. "Syntax error" is here to catch this case. | |
2649 | cat >conftest.$ac_ext <<_ACEOF | |
2650 | /* confdefs.h. */ | |
2651 | _ACEOF | |
2652 | cat confdefs.h >>conftest.$ac_ext | |
2653 | cat >>conftest.$ac_ext <<_ACEOF | |
2654 | /* end confdefs.h. */ | |
2655 | #ifdef __STDC__ | |
2656 | # include <limits.h> | |
2657 | #else | |
2658 | # include <assert.h> | |
2659 | #endif | |
2660 | Syntax error | |
2661 | _ACEOF | |
2662 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
2663 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
2664 | ac_status=$? | |
2665 | grep -v '^ *+' conftest.er1 >conftest.err | |
2666 | rm -f conftest.er1 | |
2667 | cat conftest.err >&5 | |
2668 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2669 | (exit $ac_status); } >/dev/null; then | |
2670 | if test -s conftest.err; then | |
2671 | ac_cpp_err=$ac_c_preproc_warn_flag | |
2672 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
2673 | else | |
2674 | ac_cpp_err= | |
2675 | fi | |
2676 | else | |
2677 | ac_cpp_err=yes | |
2678 | fi | |
2679 | if test -z "$ac_cpp_err"; then | |
2680 | : | |
2681 | else | |
2682 | echo "$as_me: failed program was:" >&5 | |
2683 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2684 | ||
2685 | # Broken: fails on valid input. | |
2686 | continue | |
2687 | fi | |
2688 | rm -f conftest.err conftest.$ac_ext | |
2689 | ||
2690 | # OK, works on sane cases. Now check whether non-existent headers | |
2691 | # can be detected and how. | |
2692 | cat >conftest.$ac_ext <<_ACEOF | |
2693 | /* confdefs.h. */ | |
2694 | _ACEOF | |
2695 | cat confdefs.h >>conftest.$ac_ext | |
2696 | cat >>conftest.$ac_ext <<_ACEOF | |
2697 | /* end confdefs.h. */ | |
2698 | #include <ac_nonexistent.h> | |
2699 | _ACEOF | |
2700 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
2701 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
2702 | ac_status=$? | |
2703 | grep -v '^ *+' conftest.er1 >conftest.err | |
2704 | rm -f conftest.er1 | |
2705 | cat conftest.err >&5 | |
2706 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2707 | (exit $ac_status); } >/dev/null; then | |
2708 | if test -s conftest.err; then | |
2709 | ac_cpp_err=$ac_c_preproc_warn_flag | |
2710 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
2711 | else | |
2712 | ac_cpp_err= | |
2713 | fi | |
2714 | else | |
2715 | ac_cpp_err=yes | |
2716 | fi | |
2717 | if test -z "$ac_cpp_err"; then | |
2718 | # Broken: success on invalid input. | |
2719 | continue | |
2720 | else | |
2721 | echo "$as_me: failed program was:" >&5 | |
2722 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2723 | ||
2724 | # Passes both tests. | |
2725 | ac_preproc_ok=: | |
2726 | break | |
2727 | fi | |
2728 | rm -f conftest.err conftest.$ac_ext | |
2729 | ||
2730 | done | |
2731 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
2732 | rm -f conftest.err conftest.$ac_ext | |
2733 | if $ac_preproc_ok; then | |
2734 | break | |
2735 | fi | |
2736 | ||
2737 | done | |
2738 | ac_cv_prog_CPP=$CPP | |
2739 | ||
2740 | fi | |
2741 | CPP=$ac_cv_prog_CPP | |
2742 | else | |
2743 | ac_cv_prog_CPP=$CPP | |
2744 | fi | |
2745 | echo "$as_me:$LINENO: result: $CPP" >&5 | |
2746 | echo "${ECHO_T}$CPP" >&6 | |
2747 | ac_preproc_ok=false | |
2748 | for ac_c_preproc_warn_flag in '' yes | |
2749 | do | |
2750 | # Use a header file that comes with gcc, so configuring glibc | |
2751 | # with a fresh cross-compiler works. | |
2752 | # Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
2753 | # <limits.h> exists even on freestanding compilers. | |
2754 | # On the NeXT, cc -E runs the code through the compiler's parser, | |
2755 | # not just through cpp. "Syntax error" is here to catch this case. | |
2756 | cat >conftest.$ac_ext <<_ACEOF | |
2757 | /* confdefs.h. */ | |
2758 | _ACEOF | |
2759 | cat confdefs.h >>conftest.$ac_ext | |
2760 | cat >>conftest.$ac_ext <<_ACEOF | |
2761 | /* end confdefs.h. */ | |
2762 | #ifdef __STDC__ | |
2763 | # include <limits.h> | |
2764 | #else | |
2765 | # include <assert.h> | |
2766 | #endif | |
2767 | Syntax error | |
2768 | _ACEOF | |
2769 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
2770 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
2771 | ac_status=$? | |
2772 | grep -v '^ *+' conftest.er1 >conftest.err | |
2773 | rm -f conftest.er1 | |
2774 | cat conftest.err >&5 | |
2775 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2776 | (exit $ac_status); } >/dev/null; then | |
2777 | if test -s conftest.err; then | |
2778 | ac_cpp_err=$ac_c_preproc_warn_flag | |
2779 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
2780 | else | |
2781 | ac_cpp_err= | |
2782 | fi | |
2783 | else | |
2784 | ac_cpp_err=yes | |
2785 | fi | |
2786 | if test -z "$ac_cpp_err"; then | |
2787 | : | |
2788 | else | |
2789 | echo "$as_me: failed program was:" >&5 | |
2790 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2791 | ||
2792 | # Broken: fails on valid input. | |
2793 | continue | |
2794 | fi | |
2795 | rm -f conftest.err conftest.$ac_ext | |
2796 | ||
2797 | # OK, works on sane cases. Now check whether non-existent headers | |
2798 | # can be detected and how. | |
2799 | cat >conftest.$ac_ext <<_ACEOF | |
2800 | /* confdefs.h. */ | |
2801 | _ACEOF | |
2802 | cat confdefs.h >>conftest.$ac_ext | |
2803 | cat >>conftest.$ac_ext <<_ACEOF | |
2804 | /* end confdefs.h. */ | |
2805 | #include <ac_nonexistent.h> | |
2806 | _ACEOF | |
2807 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
2808 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
2809 | ac_status=$? | |
2810 | grep -v '^ *+' conftest.er1 >conftest.err | |
2811 | rm -f conftest.er1 | |
2812 | cat conftest.err >&5 | |
2813 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2814 | (exit $ac_status); } >/dev/null; then | |
2815 | if test -s conftest.err; then | |
2816 | ac_cpp_err=$ac_c_preproc_warn_flag | |
2817 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
c906108c | 2818 | else |
b7026657 | 2819 | ac_cpp_err= |
c906108c SS |
2820 | fi |
2821 | else | |
b7026657 AC |
2822 | ac_cpp_err=yes |
2823 | fi | |
2824 | if test -z "$ac_cpp_err"; then | |
2825 | # Broken: success on invalid input. | |
2826 | continue | |
2827 | else | |
2828 | echo "$as_me: failed program was:" >&5 | |
2829 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2830 | ||
2831 | # Passes both tests. | |
2832 | ac_preproc_ok=: | |
2833 | break | |
2834 | fi | |
2835 | rm -f conftest.err conftest.$ac_ext | |
2836 | ||
2837 | done | |
2838 | # Because of `break', _AC_PREPROC_IFELSE's cleaning code was skipped. | |
2839 | rm -f conftest.err conftest.$ac_ext | |
2840 | if $ac_preproc_ok; then | |
2841 | : | |
2842 | else | |
2843 | { { echo "$as_me:$LINENO: error: C preprocessor \"$CPP\" fails sanity check | |
2844 | See \`config.log' for more details." >&5 | |
2845 | echo "$as_me: error: C preprocessor \"$CPP\" fails sanity check | |
2846 | See \`config.log' for more details." >&2;} | |
2847 | { (exit 1); exit 1; }; } | |
2848 | fi | |
2849 | ||
2850 | ac_ext=c | |
2851 | ac_cpp='$CPP $CPPFLAGS' | |
2852 | ac_compile='$CC -c $CFLAGS $CPPFLAGS conftest.$ac_ext >&5' | |
2853 | ac_link='$CC -o conftest$ac_exeext $CFLAGS $CPPFLAGS $LDFLAGS conftest.$ac_ext $LIBS >&5' | |
2854 | ac_compiler_gnu=$ac_cv_c_compiler_gnu | |
2855 | ||
2856 | ||
2857 | echo "$as_me:$LINENO: checking for egrep" >&5 | |
2858 | echo $ECHO_N "checking for egrep... $ECHO_C" >&6 | |
2859 | if test "${ac_cv_prog_egrep+set}" = set; then | |
2860 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
2861 | else | |
2862 | if echo a | (grep -E '(a|b)') >/dev/null 2>&1 | |
2863 | then ac_cv_prog_egrep='grep -E' | |
2864 | else ac_cv_prog_egrep='egrep' | |
2865 | fi | |
c906108c | 2866 | fi |
b7026657 AC |
2867 | echo "$as_me:$LINENO: result: $ac_cv_prog_egrep" >&5 |
2868 | echo "${ECHO_T}$ac_cv_prog_egrep" >&6 | |
2869 | EGREP=$ac_cv_prog_egrep | |
c906108c | 2870 | |
b7026657 AC |
2871 | |
2872 | echo "$as_me:$LINENO: checking for ANSI C header files" >&5 | |
2873 | echo $ECHO_N "checking for ANSI C header files... $ECHO_C" >&6 | |
2874 | if test "${ac_cv_header_stdc+set}" = set; then | |
2875 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 2876 | else |
b7026657 AC |
2877 | cat >conftest.$ac_ext <<_ACEOF |
2878 | /* confdefs.h. */ | |
2879 | _ACEOF | |
2880 | cat confdefs.h >>conftest.$ac_ext | |
2881 | cat >>conftest.$ac_ext <<_ACEOF | |
2882 | /* end confdefs.h. */ | |
c906108c SS |
2883 | #include <stdlib.h> |
2884 | #include <stdarg.h> | |
2885 | #include <string.h> | |
2886 | #include <float.h> | |
b7026657 AC |
2887 | |
2888 | int | |
2889 | main () | |
2890 | { | |
2891 | ||
2892 | ; | |
2893 | return 0; | |
2894 | } | |
2895 | _ACEOF | |
2896 | rm -f conftest.$ac_objext | |
2897 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
2898 | (eval $ac_compile) 2>conftest.er1 | |
2899 | ac_status=$? | |
2900 | grep -v '^ *+' conftest.er1 >conftest.err | |
2901 | rm -f conftest.er1 | |
2902 | cat conftest.err >&5 | |
2903 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2904 | (exit $ac_status); } && | |
2905 | { ac_try='test -z "$ac_c_werror_flag" | |
2906 | || test ! -s conftest.err' | |
2907 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2908 | (eval $ac_try) 2>&5 | |
2909 | ac_status=$? | |
2910 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2911 | (exit $ac_status); }; } && | |
2912 | { ac_try='test -s conftest.$ac_objext' | |
2913 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
2914 | (eval $ac_try) 2>&5 | |
2915 | ac_status=$? | |
2916 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
2917 | (exit $ac_status); }; }; then | |
c906108c SS |
2918 | ac_cv_header_stdc=yes |
2919 | else | |
b7026657 AC |
2920 | echo "$as_me: failed program was:" >&5 |
2921 | sed 's/^/| /' conftest.$ac_ext >&5 | |
2922 | ||
2923 | ac_cv_header_stdc=no | |
c906108c | 2924 | fi |
b7026657 | 2925 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c SS |
2926 | |
2927 | if test $ac_cv_header_stdc = yes; then | |
2928 | # SunOS 4.x string.h does not declare mem*, contrary to ANSI. | |
b7026657 AC |
2929 | cat >conftest.$ac_ext <<_ACEOF |
2930 | /* confdefs.h. */ | |
2931 | _ACEOF | |
2932 | cat confdefs.h >>conftest.$ac_ext | |
2933 | cat >>conftest.$ac_ext <<_ACEOF | |
2934 | /* end confdefs.h. */ | |
c906108c | 2935 | #include <string.h> |
b7026657 AC |
2936 | |
2937 | _ACEOF | |
c906108c | 2938 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
b7026657 | 2939 | $EGREP "memchr" >/dev/null 2>&1; then |
c906108c SS |
2940 | : |
2941 | else | |
c906108c SS |
2942 | ac_cv_header_stdc=no |
2943 | fi | |
2944 | rm -f conftest* | |
2945 | ||
2946 | fi | |
2947 | ||
2948 | if test $ac_cv_header_stdc = yes; then | |
2949 | # ISC 2.0.2 stdlib.h does not declare free, contrary to ANSI. | |
b7026657 AC |
2950 | cat >conftest.$ac_ext <<_ACEOF |
2951 | /* confdefs.h. */ | |
2952 | _ACEOF | |
2953 | cat confdefs.h >>conftest.$ac_ext | |
2954 | cat >>conftest.$ac_ext <<_ACEOF | |
2955 | /* end confdefs.h. */ | |
c906108c | 2956 | #include <stdlib.h> |
b7026657 AC |
2957 | |
2958 | _ACEOF | |
c906108c | 2959 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
b7026657 | 2960 | $EGREP "free" >/dev/null 2>&1; then |
c906108c SS |
2961 | : |
2962 | else | |
c906108c SS |
2963 | ac_cv_header_stdc=no |
2964 | fi | |
2965 | rm -f conftest* | |
2966 | ||
2967 | fi | |
2968 | ||
2969 | if test $ac_cv_header_stdc = yes; then | |
2970 | # /bin/cc in Irix-4.0.5 gets non-ANSI ctype macros unless using -ansi. | |
b7026657 | 2971 | if test "$cross_compiling" = yes; then |
c906108c SS |
2972 | : |
2973 | else | |
b7026657 AC |
2974 | cat >conftest.$ac_ext <<_ACEOF |
2975 | /* confdefs.h. */ | |
2976 | _ACEOF | |
2977 | cat confdefs.h >>conftest.$ac_ext | |
2978 | cat >>conftest.$ac_ext <<_ACEOF | |
2979 | /* end confdefs.h. */ | |
c906108c | 2980 | #include <ctype.h> |
b7026657 AC |
2981 | #if ((' ' & 0x0FF) == 0x020) |
2982 | # define ISLOWER(c) ('a' <= (c) && (c) <= 'z') | |
2983 | # define TOUPPER(c) (ISLOWER(c) ? 'A' + ((c) - 'a') : (c)) | |
2984 | #else | |
2985 | # define ISLOWER(c) \ | |
2986 | (('a' <= (c) && (c) <= 'i') \ | |
2987 | || ('j' <= (c) && (c) <= 'r') \ | |
2988 | || ('s' <= (c) && (c) <= 'z')) | |
2989 | # define TOUPPER(c) (ISLOWER(c) ? ((c) | 0x40) : (c)) | |
2990 | #endif | |
c906108c | 2991 | |
b7026657 AC |
2992 | #define XOR(e, f) (((e) && !(f)) || (!(e) && (f))) |
2993 | int | |
2994 | main () | |
2995 | { | |
2996 | int i; | |
2997 | for (i = 0; i < 256; i++) | |
2998 | if (XOR (islower (i), ISLOWER (i)) | |
2999 | || toupper (i) != TOUPPER (i)) | |
3000 | exit(2); | |
3001 | exit (0); | |
3002 | } | |
3003 | _ACEOF | |
3004 | rm -f conftest$ac_exeext | |
3005 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
3006 | (eval $ac_link) 2>&5 | |
3007 | ac_status=$? | |
3008 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3009 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
3010 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3011 | (eval $ac_try) 2>&5 | |
3012 | ac_status=$? | |
3013 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3014 | (exit $ac_status); }; }; then | |
c906108c SS |
3015 | : |
3016 | else | |
b7026657 AC |
3017 | echo "$as_me: program exited with status $ac_status" >&5 |
3018 | echo "$as_me: failed program was:" >&5 | |
3019 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3020 | ||
3021 | ( exit $ac_status ) | |
3022 | ac_cv_header_stdc=no | |
c906108c | 3023 | fi |
b7026657 | 3024 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
c906108c | 3025 | fi |
c906108c SS |
3026 | fi |
3027 | fi | |
b7026657 AC |
3028 | echo "$as_me:$LINENO: result: $ac_cv_header_stdc" >&5 |
3029 | echo "${ECHO_T}$ac_cv_header_stdc" >&6 | |
c906108c | 3030 | if test $ac_cv_header_stdc = yes; then |
b7026657 AC |
3031 | |
3032 | cat >>confdefs.h <<\_ACEOF | |
c906108c | 3033 | #define STDC_HEADERS 1 |
b7026657 AC |
3034 | _ACEOF |
3035 | ||
3036 | fi | |
3037 | ||
3038 | echo "$as_me:$LINENO: checking for an ANSI C-conforming const" >&5 | |
3039 | echo $ECHO_N "checking for an ANSI C-conforming const... $ECHO_C" >&6 | |
3040 | if test "${ac_cv_c_const+set}" = set; then | |
3041 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3042 | else | |
3043 | cat >conftest.$ac_ext <<_ACEOF | |
3044 | /* confdefs.h. */ | |
3045 | _ACEOF | |
3046 | cat confdefs.h >>conftest.$ac_ext | |
3047 | cat >>conftest.$ac_ext <<_ACEOF | |
3048 | /* end confdefs.h. */ | |
c906108c | 3049 | |
b7026657 AC |
3050 | int |
3051 | main () | |
3052 | { | |
3053 | /* FIXME: Include the comments suggested by Paul. */ | |
3054 | #ifndef __cplusplus | |
3055 | /* Ultrix mips cc rejects this. */ | |
3056 | typedef int charset[2]; | |
3057 | const charset x; | |
3058 | /* SunOS 4.1.1 cc rejects this. */ | |
3059 | char const *const *ccp; | |
3060 | char **p; | |
3061 | /* NEC SVR4.0.2 mips cc rejects this. */ | |
3062 | struct point {int x, y;}; | |
3063 | static struct point const zero = {0,0}; | |
3064 | /* AIX XL C 1.02.0.0 rejects this. | |
3065 | It does not let you subtract one const X* pointer from another in | |
3066 | an arm of an if-expression whose if-part is not a constant | |
3067 | expression */ | |
3068 | const char *g = "string"; | |
3069 | ccp = &g + (g ? g-g : 0); | |
3070 | /* HPUX 7.0 cc rejects these. */ | |
3071 | ++ccp; | |
3072 | p = (char**) ccp; | |
3073 | ccp = (char const *const *) p; | |
3074 | { /* SCO 3.2v4 cc rejects this. */ | |
3075 | char *t; | |
3076 | char const *s = 0 ? (char *) 0 : (char const *) 0; | |
3077 | ||
3078 | *t++ = 0; | |
3079 | } | |
3080 | { /* Someone thinks the Sun supposedly-ANSI compiler will reject this. */ | |
3081 | int x[] = {25, 17}; | |
3082 | const int *foo = &x[0]; | |
3083 | ++foo; | |
3084 | } | |
3085 | { /* Sun SC1.0 ANSI compiler rejects this -- but not the above. */ | |
3086 | typedef const int *iptr; | |
3087 | iptr p = 0; | |
3088 | ++p; | |
3089 | } | |
3090 | { /* AIX XL C 1.02.0.0 rejects this saying | |
3091 | "k.c", line 2.27: 1506-025 (S) Operand must be a modifiable lvalue. */ | |
3092 | struct s { int j; const int *ap[3]; }; | |
3093 | struct s *b; b->j = 5; | |
3094 | } | |
3095 | { /* ULTRIX-32 V3.1 (Rev 9) vcc rejects this */ | |
3096 | const int foo = 10; | |
3097 | } | |
3098 | #endif | |
3099 | ||
3100 | ; | |
3101 | return 0; | |
3102 | } | |
3103 | _ACEOF | |
3104 | rm -f conftest.$ac_objext | |
3105 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3106 | (eval $ac_compile) 2>conftest.er1 | |
3107 | ac_status=$? | |
3108 | grep -v '^ *+' conftest.er1 >conftest.err | |
3109 | rm -f conftest.er1 | |
3110 | cat conftest.err >&5 | |
3111 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3112 | (exit $ac_status); } && | |
3113 | { ac_try='test -z "$ac_c_werror_flag" | |
3114 | || test ! -s conftest.err' | |
3115 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3116 | (eval $ac_try) 2>&5 | |
3117 | ac_status=$? | |
3118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3119 | (exit $ac_status); }; } && | |
3120 | { ac_try='test -s conftest.$ac_objext' | |
3121 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3122 | (eval $ac_try) 2>&5 | |
3123 | ac_status=$? | |
3124 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3125 | (exit $ac_status); }; }; then | |
c906108c SS |
3126 | ac_cv_c_const=yes |
3127 | else | |
b7026657 AC |
3128 | echo "$as_me: failed program was:" >&5 |
3129 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3130 | ||
3131 | ac_cv_c_const=no | |
c906108c | 3132 | fi |
b7026657 | 3133 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 3134 | fi |
b7026657 AC |
3135 | echo "$as_me:$LINENO: result: $ac_cv_c_const" >&5 |
3136 | echo "${ECHO_T}$ac_cv_c_const" >&6 | |
c906108c | 3137 | if test $ac_cv_c_const = no; then |
b7026657 AC |
3138 | |
3139 | cat >>confdefs.h <<\_ACEOF | |
3140 | #define const | |
3141 | _ACEOF | |
c906108c SS |
3142 | |
3143 | fi | |
3144 | ||
b7026657 AC |
3145 | echo "$as_me:$LINENO: checking for inline" >&5 |
3146 | echo $ECHO_N "checking for inline... $ECHO_C" >&6 | |
3147 | if test "${ac_cv_c_inline+set}" = set; then | |
3148 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c SS |
3149 | else |
3150 | ac_cv_c_inline=no | |
3151 | for ac_kw in inline __inline__ __inline; do | |
b7026657 AC |
3152 | cat >conftest.$ac_ext <<_ACEOF |
3153 | /* confdefs.h. */ | |
3154 | _ACEOF | |
3155 | cat confdefs.h >>conftest.$ac_ext | |
3156 | cat >>conftest.$ac_ext <<_ACEOF | |
3157 | /* end confdefs.h. */ | |
3158 | #ifndef __cplusplus | |
3159 | typedef int foo_t; | |
3160 | static $ac_kw foo_t static_foo () {return 0; } | |
3161 | $ac_kw foo_t foo () {return 0; } | |
3162 | #endif | |
3163 | ||
3164 | _ACEOF | |
3165 | rm -f conftest.$ac_objext | |
3166 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3167 | (eval $ac_compile) 2>conftest.er1 | |
3168 | ac_status=$? | |
3169 | grep -v '^ *+' conftest.er1 >conftest.err | |
3170 | rm -f conftest.er1 | |
3171 | cat conftest.err >&5 | |
3172 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3173 | (exit $ac_status); } && | |
3174 | { ac_try='test -z "$ac_c_werror_flag" | |
3175 | || test ! -s conftest.err' | |
3176 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3177 | (eval $ac_try) 2>&5 | |
3178 | ac_status=$? | |
3179 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3180 | (exit $ac_status); }; } && | |
3181 | { ac_try='test -s conftest.$ac_objext' | |
3182 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3183 | (eval $ac_try) 2>&5 | |
3184 | ac_status=$? | |
3185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3186 | (exit $ac_status); }; }; then | |
c906108c SS |
3187 | ac_cv_c_inline=$ac_kw; break |
3188 | else | |
b7026657 AC |
3189 | echo "$as_me: failed program was:" >&5 |
3190 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3191 | ||
c906108c | 3192 | fi |
b7026657 | 3193 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c SS |
3194 | done |
3195 | ||
3196 | fi | |
b7026657 AC |
3197 | echo "$as_me:$LINENO: result: $ac_cv_c_inline" >&5 |
3198 | echo "${ECHO_T}$ac_cv_c_inline" >&6 | |
3199 | ||
c906108c | 3200 | |
b7026657 | 3201 | case $ac_cv_c_inline in |
c906108c | 3202 | inline | yes) ;; |
b7026657 AC |
3203 | *) |
3204 | case $ac_cv_c_inline in | |
3205 | no) ac_val=;; | |
3206 | *) ac_val=$ac_cv_c_inline;; | |
3207 | esac | |
3208 | cat >>confdefs.h <<_ACEOF | |
3209 | #ifndef __cplusplus | |
3210 | #define inline $ac_val | |
3211 | #endif | |
3212 | _ACEOF | |
3213 | ;; | |
c906108c SS |
3214 | esac |
3215 | ||
b7026657 AC |
3216 | # On IRIX 5.3, sys/types and inttypes.h are conflicting. |
3217 | ||
3218 | ||
3219 | ||
3220 | ||
3221 | ||
3222 | ||
3223 | ||
3224 | ||
3225 | ||
3226 | for ac_header in sys/types.h sys/stat.h stdlib.h string.h memory.h strings.h \ | |
3227 | inttypes.h stdint.h unistd.h | |
3228 | do | |
3229 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` | |
3230 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
3231 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
3232 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
3233 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3234 | else | |
3235 | cat >conftest.$ac_ext <<_ACEOF | |
3236 | /* confdefs.h. */ | |
3237 | _ACEOF | |
3238 | cat confdefs.h >>conftest.$ac_ext | |
3239 | cat >>conftest.$ac_ext <<_ACEOF | |
3240 | /* end confdefs.h. */ | |
3241 | $ac_includes_default | |
3242 | ||
3243 | #include <$ac_header> | |
3244 | _ACEOF | |
3245 | rm -f conftest.$ac_objext | |
3246 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3247 | (eval $ac_compile) 2>conftest.er1 | |
3248 | ac_status=$? | |
3249 | grep -v '^ *+' conftest.er1 >conftest.err | |
3250 | rm -f conftest.er1 | |
3251 | cat conftest.err >&5 | |
3252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3253 | (exit $ac_status); } && | |
3254 | { ac_try='test -z "$ac_c_werror_flag" | |
3255 | || test ! -s conftest.err' | |
3256 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3257 | (eval $ac_try) 2>&5 | |
3258 | ac_status=$? | |
3259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3260 | (exit $ac_status); }; } && | |
3261 | { ac_try='test -s conftest.$ac_objext' | |
3262 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3263 | (eval $ac_try) 2>&5 | |
3264 | ac_status=$? | |
3265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3266 | (exit $ac_status); }; }; then | |
3267 | eval "$as_ac_Header=yes" | |
3268 | else | |
3269 | echo "$as_me: failed program was:" >&5 | |
3270 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3271 | ||
3272 | eval "$as_ac_Header=no" | |
3273 | fi | |
3274 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
3275 | fi | |
3276 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
3277 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
3278 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
3279 | cat >>confdefs.h <<_ACEOF | |
3280 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
3281 | _ACEOF | |
3282 | ||
3283 | fi | |
3284 | ||
3285 | done | |
3286 | ||
3287 | ||
3288 | echo "$as_me:$LINENO: checking for off_t" >&5 | |
3289 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 | |
3290 | if test "${ac_cv_type_off_t+set}" = set; then | |
3291 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 3292 | else |
b7026657 AC |
3293 | cat >conftest.$ac_ext <<_ACEOF |
3294 | /* confdefs.h. */ | |
3295 | _ACEOF | |
3296 | cat confdefs.h >>conftest.$ac_ext | |
3297 | cat >>conftest.$ac_ext <<_ACEOF | |
3298 | /* end confdefs.h. */ | |
3299 | $ac_includes_default | |
3300 | int | |
3301 | main () | |
3302 | { | |
3303 | if ((off_t *) 0) | |
3304 | return 0; | |
3305 | if (sizeof (off_t)) | |
3306 | return 0; | |
3307 | ; | |
3308 | return 0; | |
3309 | } | |
3310 | _ACEOF | |
3311 | rm -f conftest.$ac_objext | |
3312 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3313 | (eval $ac_compile) 2>conftest.er1 | |
3314 | ac_status=$? | |
3315 | grep -v '^ *+' conftest.er1 >conftest.err | |
3316 | rm -f conftest.er1 | |
3317 | cat conftest.err >&5 | |
3318 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3319 | (exit $ac_status); } && | |
3320 | { ac_try='test -z "$ac_c_werror_flag" | |
3321 | || test ! -s conftest.err' | |
3322 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3323 | (eval $ac_try) 2>&5 | |
3324 | ac_status=$? | |
3325 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3326 | (exit $ac_status); }; } && | |
3327 | { ac_try='test -s conftest.$ac_objext' | |
3328 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3329 | (eval $ac_try) 2>&5 | |
3330 | ac_status=$? | |
3331 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3332 | (exit $ac_status); }; }; then | |
c906108c SS |
3333 | ac_cv_type_off_t=yes |
3334 | else | |
b7026657 AC |
3335 | echo "$as_me: failed program was:" >&5 |
3336 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c | 3337 | |
b7026657 | 3338 | ac_cv_type_off_t=no |
c906108c | 3339 | fi |
b7026657 AC |
3340 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3341 | fi | |
3342 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 | |
3343 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 | |
3344 | if test $ac_cv_type_off_t = yes; then | |
3345 | : | |
3346 | else | |
3347 | ||
3348 | cat >>confdefs.h <<_ACEOF | |
c906108c | 3349 | #define off_t long |
b7026657 | 3350 | _ACEOF |
c906108c SS |
3351 | |
3352 | fi | |
3353 | ||
b7026657 AC |
3354 | echo "$as_me:$LINENO: checking for size_t" >&5 |
3355 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | |
3356 | if test "${ac_cv_type_size_t+set}" = set; then | |
3357 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 3358 | else |
b7026657 AC |
3359 | cat >conftest.$ac_ext <<_ACEOF |
3360 | /* confdefs.h. */ | |
3361 | _ACEOF | |
3362 | cat confdefs.h >>conftest.$ac_ext | |
3363 | cat >>conftest.$ac_ext <<_ACEOF | |
3364 | /* end confdefs.h. */ | |
3365 | $ac_includes_default | |
3366 | int | |
3367 | main () | |
3368 | { | |
3369 | if ((size_t *) 0) | |
3370 | return 0; | |
3371 | if (sizeof (size_t)) | |
3372 | return 0; | |
3373 | ; | |
3374 | return 0; | |
3375 | } | |
3376 | _ACEOF | |
3377 | rm -f conftest.$ac_objext | |
3378 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3379 | (eval $ac_compile) 2>conftest.er1 | |
3380 | ac_status=$? | |
3381 | grep -v '^ *+' conftest.er1 >conftest.err | |
3382 | rm -f conftest.er1 | |
3383 | cat conftest.err >&5 | |
3384 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3385 | (exit $ac_status); } && | |
3386 | { ac_try='test -z "$ac_c_werror_flag" | |
3387 | || test ! -s conftest.err' | |
3388 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3389 | (eval $ac_try) 2>&5 | |
3390 | ac_status=$? | |
3391 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3392 | (exit $ac_status); }; } && | |
3393 | { ac_try='test -s conftest.$ac_objext' | |
3394 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3395 | (eval $ac_try) 2>&5 | |
3396 | ac_status=$? | |
3397 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3398 | (exit $ac_status); }; }; then | |
c906108c SS |
3399 | ac_cv_type_size_t=yes |
3400 | else | |
b7026657 AC |
3401 | echo "$as_me: failed program was:" >&5 |
3402 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c | 3403 | |
b7026657 | 3404 | ac_cv_type_size_t=no |
c906108c | 3405 | fi |
b7026657 AC |
3406 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
3407 | fi | |
3408 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
3409 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 | |
3410 | if test $ac_cv_type_size_t = yes; then | |
3411 | : | |
3412 | else | |
3413 | ||
3414 | cat >>confdefs.h <<_ACEOF | |
c906108c | 3415 | #define size_t unsigned |
b7026657 | 3416 | _ACEOF |
c906108c SS |
3417 | |
3418 | fi | |
3419 | ||
3420 | # The Ultrix 4.2 mips builtin alloca declared by alloca.h only works | |
3421 | # for constant arguments. Useless! | |
b7026657 AC |
3422 | echo "$as_me:$LINENO: checking for working alloca.h" >&5 |
3423 | echo $ECHO_N "checking for working alloca.h... $ECHO_C" >&6 | |
3424 | if test "${ac_cv_working_alloca_h+set}" = set; then | |
3425 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3426 | else | |
3427 | cat >conftest.$ac_ext <<_ACEOF | |
3428 | /* confdefs.h. */ | |
3429 | _ACEOF | |
3430 | cat confdefs.h >>conftest.$ac_ext | |
3431 | cat >>conftest.$ac_ext <<_ACEOF | |
3432 | /* end confdefs.h. */ | |
c906108c | 3433 | #include <alloca.h> |
b7026657 AC |
3434 | int |
3435 | main () | |
3436 | { | |
3437 | char *p = (char *) alloca (2 * sizeof (int)); | |
3438 | ; | |
3439 | return 0; | |
3440 | } | |
3441 | _ACEOF | |
3442 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3443 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
3444 | (eval $ac_link) 2>conftest.er1 | |
3445 | ac_status=$? | |
3446 | grep -v '^ *+' conftest.er1 >conftest.err | |
3447 | rm -f conftest.er1 | |
3448 | cat conftest.err >&5 | |
3449 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3450 | (exit $ac_status); } && | |
3451 | { ac_try='test -z "$ac_c_werror_flag" | |
3452 | || test ! -s conftest.err' | |
3453 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3454 | (eval $ac_try) 2>&5 | |
3455 | ac_status=$? | |
3456 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3457 | (exit $ac_status); }; } && | |
3458 | { ac_try='test -s conftest$ac_exeext' | |
3459 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3460 | (eval $ac_try) 2>&5 | |
3461 | ac_status=$? | |
3462 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3463 | (exit $ac_status); }; }; then | |
3464 | ac_cv_working_alloca_h=yes | |
3465 | else | |
3466 | echo "$as_me: failed program was:" >&5 | |
3467 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3468 | ||
3469 | ac_cv_working_alloca_h=no | |
3470 | fi | |
3471 | rm -f conftest.err conftest.$ac_objext \ | |
3472 | conftest$ac_exeext conftest.$ac_ext | |
3473 | fi | |
3474 | echo "$as_me:$LINENO: result: $ac_cv_working_alloca_h" >&5 | |
3475 | echo "${ECHO_T}$ac_cv_working_alloca_h" >&6 | |
3476 | if test $ac_cv_working_alloca_h = yes; then | |
3477 | ||
3478 | cat >>confdefs.h <<\_ACEOF | |
c906108c | 3479 | #define HAVE_ALLOCA_H 1 |
b7026657 | 3480 | _ACEOF |
c906108c SS |
3481 | |
3482 | fi | |
3483 | ||
b7026657 AC |
3484 | echo "$as_me:$LINENO: checking for alloca" >&5 |
3485 | echo $ECHO_N "checking for alloca... $ECHO_C" >&6 | |
3486 | if test "${ac_cv_func_alloca_works+set}" = set; then | |
3487 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 3488 | else |
b7026657 AC |
3489 | cat >conftest.$ac_ext <<_ACEOF |
3490 | /* confdefs.h. */ | |
3491 | _ACEOF | |
3492 | cat confdefs.h >>conftest.$ac_ext | |
3493 | cat >>conftest.$ac_ext <<_ACEOF | |
3494 | /* end confdefs.h. */ | |
c906108c SS |
3495 | #ifdef __GNUC__ |
3496 | # define alloca __builtin_alloca | |
3497 | #else | |
3498 | # ifdef _MSC_VER | |
3499 | # include <malloc.h> | |
3500 | # define alloca _alloca | |
3501 | # else | |
3502 | # if HAVE_ALLOCA_H | |
3503 | # include <alloca.h> | |
3504 | # else | |
3505 | # ifdef _AIX | |
3506 | #pragma alloca | |
3507 | # else | |
3508 | # ifndef alloca /* predefined by HP cc +Olibcalls */ | |
3509 | char *alloca (); | |
3510 | # endif | |
3511 | # endif | |
3512 | # endif | |
3513 | # endif | |
3514 | #endif | |
3515 | ||
b7026657 AC |
3516 | int |
3517 | main () | |
3518 | { | |
3519 | char *p = (char *) alloca (1); | |
3520 | ; | |
3521 | return 0; | |
3522 | } | |
3523 | _ACEOF | |
3524 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3525 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
3526 | (eval $ac_link) 2>conftest.er1 | |
3527 | ac_status=$? | |
3528 | grep -v '^ *+' conftest.er1 >conftest.err | |
3529 | rm -f conftest.er1 | |
3530 | cat conftest.err >&5 | |
3531 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3532 | (exit $ac_status); } && | |
3533 | { ac_try='test -z "$ac_c_werror_flag" | |
3534 | || test ! -s conftest.err' | |
3535 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3536 | (eval $ac_try) 2>&5 | |
3537 | ac_status=$? | |
3538 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3539 | (exit $ac_status); }; } && | |
3540 | { ac_try='test -s conftest$ac_exeext' | |
3541 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3542 | (eval $ac_try) 2>&5 | |
3543 | ac_status=$? | |
3544 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3545 | (exit $ac_status); }; }; then | |
c906108c SS |
3546 | ac_cv_func_alloca_works=yes |
3547 | else | |
b7026657 AC |
3548 | echo "$as_me: failed program was:" >&5 |
3549 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3550 | ||
3551 | ac_cv_func_alloca_works=no | |
c906108c | 3552 | fi |
b7026657 AC |
3553 | rm -f conftest.err conftest.$ac_objext \ |
3554 | conftest$ac_exeext conftest.$ac_ext | |
c906108c | 3555 | fi |
b7026657 AC |
3556 | echo "$as_me:$LINENO: result: $ac_cv_func_alloca_works" >&5 |
3557 | echo "${ECHO_T}$ac_cv_func_alloca_works" >&6 | |
c906108c | 3558 | |
c906108c | 3559 | if test $ac_cv_func_alloca_works = yes; then |
c906108c | 3560 | |
b7026657 AC |
3561 | cat >>confdefs.h <<\_ACEOF |
3562 | #define HAVE_ALLOCA 1 | |
3563 | _ACEOF | |
c906108c | 3564 | |
b7026657 | 3565 | else |
c906108c | 3566 | # The SVR3 libPW and SVR4 libucb both contain incompatible functions |
b7026657 AC |
3567 | # that cause trouble. Some versions do not even contain alloca or |
3568 | # contain a buggy version. If you still want to use their alloca, | |
3569 | # use ar to extract alloca.o from them instead of compiling alloca.c. | |
3570 | ||
3571 | ALLOCA=alloca.$ac_objext | |
3572 | ||
3573 | cat >>confdefs.h <<\_ACEOF | |
c906108c | 3574 | #define C_ALLOCA 1 |
b7026657 | 3575 | _ACEOF |
c906108c SS |
3576 | |
3577 | ||
b7026657 AC |
3578 | echo "$as_me:$LINENO: checking whether \`alloca.c' needs Cray hooks" >&5 |
3579 | echo $ECHO_N "checking whether \`alloca.c' needs Cray hooks... $ECHO_C" >&6 | |
3580 | if test "${ac_cv_os_cray+set}" = set; then | |
3581 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 3582 | else |
b7026657 AC |
3583 | cat >conftest.$ac_ext <<_ACEOF |
3584 | /* confdefs.h. */ | |
3585 | _ACEOF | |
3586 | cat confdefs.h >>conftest.$ac_ext | |
3587 | cat >>conftest.$ac_ext <<_ACEOF | |
3588 | /* end confdefs.h. */ | |
c906108c SS |
3589 | #if defined(CRAY) && ! defined(CRAY2) |
3590 | webecray | |
3591 | #else | |
3592 | wenotbecray | |
3593 | #endif | |
3594 | ||
b7026657 | 3595 | _ACEOF |
c906108c | 3596 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
b7026657 | 3597 | $EGREP "webecray" >/dev/null 2>&1; then |
c906108c SS |
3598 | ac_cv_os_cray=yes |
3599 | else | |
c906108c SS |
3600 | ac_cv_os_cray=no |
3601 | fi | |
3602 | rm -f conftest* | |
3603 | ||
3604 | fi | |
b7026657 AC |
3605 | echo "$as_me:$LINENO: result: $ac_cv_os_cray" >&5 |
3606 | echo "${ECHO_T}$ac_cv_os_cray" >&6 | |
c906108c | 3607 | if test $ac_cv_os_cray = yes; then |
b7026657 AC |
3608 | for ac_func in _getb67 GETB67 getb67; do |
3609 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` | |
3610 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
3611 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
3612 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
3613 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3614 | else | |
3615 | cat >conftest.$ac_ext <<_ACEOF | |
3616 | /* confdefs.h. */ | |
3617 | _ACEOF | |
3618 | cat confdefs.h >>conftest.$ac_ext | |
3619 | cat >>conftest.$ac_ext <<_ACEOF | |
3620 | /* end confdefs.h. */ | |
3621 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
3622 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
3623 | #define $ac_func innocuous_$ac_func | |
3624 | ||
c906108c | 3625 | /* System header to define __stub macros and hopefully few prototypes, |
b7026657 AC |
3626 | which can conflict with char $ac_func (); below. |
3627 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3628 | <limits.h> exists even on freestanding compilers. */ | |
3629 | ||
3630 | #ifdef __STDC__ | |
3631 | # include <limits.h> | |
3632 | #else | |
3633 | # include <assert.h> | |
3634 | #endif | |
c906108c | 3635 | |
b7026657 | 3636 | #undef $ac_func |
c906108c | 3637 | |
b7026657 AC |
3638 | /* Override any gcc2 internal prototype to avoid an error. */ |
3639 | #ifdef __cplusplus | |
3640 | extern "C" | |
3641 | { | |
3642 | #endif | |
3643 | /* We use char because int might match the return type of a gcc2 | |
3644 | builtin and then its argument prototype would still apply. */ | |
3645 | char $ac_func (); | |
c906108c SS |
3646 | /* The GNU C library defines this for functions which it implements |
3647 | to always fail with ENOSYS. Some functions are actually named | |
3648 | something starting with __ and the normal name is an alias. */ | |
3649 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
3650 | choke me | |
3651 | #else | |
b7026657 AC |
3652 | char (*f) () = $ac_func; |
3653 | #endif | |
3654 | #ifdef __cplusplus | |
3655 | } | |
c906108c SS |
3656 | #endif |
3657 | ||
b7026657 AC |
3658 | int |
3659 | main () | |
3660 | { | |
3661 | return f != $ac_func; | |
3662 | ; | |
3663 | return 0; | |
3664 | } | |
3665 | _ACEOF | |
3666 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3667 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
3668 | (eval $ac_link) 2>conftest.er1 | |
3669 | ac_status=$? | |
3670 | grep -v '^ *+' conftest.er1 >conftest.err | |
3671 | rm -f conftest.er1 | |
3672 | cat conftest.err >&5 | |
3673 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3674 | (exit $ac_status); } && | |
3675 | { ac_try='test -z "$ac_c_werror_flag" | |
3676 | || test ! -s conftest.err' | |
3677 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3678 | (eval $ac_try) 2>&5 | |
3679 | ac_status=$? | |
3680 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3681 | (exit $ac_status); }; } && | |
3682 | { ac_try='test -s conftest$ac_exeext' | |
3683 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3684 | (eval $ac_try) 2>&5 | |
3685 | ac_status=$? | |
3686 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3687 | (exit $ac_status); }; }; then | |
3688 | eval "$as_ac_var=yes" | |
3689 | else | |
3690 | echo "$as_me: failed program was:" >&5 | |
3691 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3692 | ||
3693 | eval "$as_ac_var=no" | |
3694 | fi | |
3695 | rm -f conftest.err conftest.$ac_objext \ | |
3696 | conftest$ac_exeext conftest.$ac_ext | |
3697 | fi | |
3698 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
3699 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
3700 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
3701 | ||
3702 | cat >>confdefs.h <<_ACEOF | |
c906108c | 3703 | #define CRAY_STACKSEG_END $ac_func |
b7026657 | 3704 | _ACEOF |
c906108c | 3705 | |
b7026657 | 3706 | break |
c906108c SS |
3707 | fi |
3708 | ||
b7026657 | 3709 | done |
c906108c SS |
3710 | fi |
3711 | ||
b7026657 AC |
3712 | echo "$as_me:$LINENO: checking stack direction for C alloca" >&5 |
3713 | echo $ECHO_N "checking stack direction for C alloca... $ECHO_C" >&6 | |
3714 | if test "${ac_cv_c_stack_direction+set}" = set; then | |
3715 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c SS |
3716 | else |
3717 | if test "$cross_compiling" = yes; then | |
3718 | ac_cv_c_stack_direction=0 | |
3719 | else | |
b7026657 AC |
3720 | cat >conftest.$ac_ext <<_ACEOF |
3721 | /* confdefs.h. */ | |
3722 | _ACEOF | |
3723 | cat confdefs.h >>conftest.$ac_ext | |
3724 | cat >>conftest.$ac_ext <<_ACEOF | |
3725 | /* end confdefs.h. */ | |
3726 | int | |
c906108c SS |
3727 | find_stack_direction () |
3728 | { | |
3729 | static char *addr = 0; | |
3730 | auto char dummy; | |
3731 | if (addr == 0) | |
3732 | { | |
3733 | addr = &dummy; | |
3734 | return find_stack_direction (); | |
3735 | } | |
3736 | else | |
3737 | return (&dummy > addr) ? 1 : -1; | |
3738 | } | |
b7026657 AC |
3739 | |
3740 | int | |
c906108c SS |
3741 | main () |
3742 | { | |
b7026657 | 3743 | exit (find_stack_direction () < 0); |
c906108c | 3744 | } |
b7026657 AC |
3745 | _ACEOF |
3746 | rm -f conftest$ac_exeext | |
3747 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
3748 | (eval $ac_link) 2>&5 | |
3749 | ac_status=$? | |
3750 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3751 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
3752 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3753 | (eval $ac_try) 2>&5 | |
3754 | ac_status=$? | |
3755 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3756 | (exit $ac_status); }; }; then | |
c906108c SS |
3757 | ac_cv_c_stack_direction=1 |
3758 | else | |
b7026657 AC |
3759 | echo "$as_me: program exited with status $ac_status" >&5 |
3760 | echo "$as_me: failed program was:" >&5 | |
3761 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3762 | ||
3763 | ( exit $ac_status ) | |
3764 | ac_cv_c_stack_direction=-1 | |
c906108c | 3765 | fi |
b7026657 | 3766 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
c906108c | 3767 | fi |
c906108c | 3768 | fi |
b7026657 AC |
3769 | echo "$as_me:$LINENO: result: $ac_cv_c_stack_direction" >&5 |
3770 | echo "${ECHO_T}$ac_cv_c_stack_direction" >&6 | |
c906108c | 3771 | |
b7026657 | 3772 | cat >>confdefs.h <<_ACEOF |
c906108c | 3773 | #define STACK_DIRECTION $ac_cv_c_stack_direction |
b7026657 AC |
3774 | _ACEOF |
3775 | ||
c906108c SS |
3776 | |
3777 | fi | |
3778 | ||
b7026657 AC |
3779 | |
3780 | ||
3781 | for ac_header in stdlib.h unistd.h | |
c906108c | 3782 | do |
b7026657 AC |
3783 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
3784 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
3785 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
3786 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
3787 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
3788 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3789 | fi | |
3790 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
3791 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
3792 | else | |
3793 | # Is the header compilable? | |
3794 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
3795 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
3796 | cat >conftest.$ac_ext <<_ACEOF | |
3797 | /* confdefs.h. */ | |
3798 | _ACEOF | |
3799 | cat confdefs.h >>conftest.$ac_ext | |
3800 | cat >>conftest.$ac_ext <<_ACEOF | |
3801 | /* end confdefs.h. */ | |
3802 | $ac_includes_default | |
3803 | #include <$ac_header> | |
3804 | _ACEOF | |
3805 | rm -f conftest.$ac_objext | |
3806 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
3807 | (eval $ac_compile) 2>conftest.er1 | |
3808 | ac_status=$? | |
3809 | grep -v '^ *+' conftest.er1 >conftest.err | |
3810 | rm -f conftest.er1 | |
3811 | cat conftest.err >&5 | |
3812 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3813 | (exit $ac_status); } && | |
3814 | { ac_try='test -z "$ac_c_werror_flag" | |
3815 | || test ! -s conftest.err' | |
3816 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3817 | (eval $ac_try) 2>&5 | |
3818 | ac_status=$? | |
3819 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3820 | (exit $ac_status); }; } && | |
3821 | { ac_try='test -s conftest.$ac_objext' | |
3822 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
3823 | (eval $ac_try) 2>&5 | |
3824 | ac_status=$? | |
3825 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3826 | (exit $ac_status); }; }; then | |
3827 | ac_header_compiler=yes | |
3828 | else | |
3829 | echo "$as_me: failed program was:" >&5 | |
3830 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3831 | ||
3832 | ac_header_compiler=no | |
3833 | fi | |
3834 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
3835 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
3836 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
3837 | ||
3838 | # Is the header present? | |
3839 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
3840 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
3841 | cat >conftest.$ac_ext <<_ACEOF | |
3842 | /* confdefs.h. */ | |
3843 | _ACEOF | |
3844 | cat confdefs.h >>conftest.$ac_ext | |
3845 | cat >>conftest.$ac_ext <<_ACEOF | |
3846 | /* end confdefs.h. */ | |
3847 | #include <$ac_header> | |
3848 | _ACEOF | |
3849 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
3850 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
3851 | ac_status=$? | |
3852 | grep -v '^ *+' conftest.er1 >conftest.err | |
3853 | rm -f conftest.er1 | |
3854 | cat conftest.err >&5 | |
3855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3856 | (exit $ac_status); } >/dev/null; then | |
3857 | if test -s conftest.err; then | |
3858 | ac_cpp_err=$ac_c_preproc_warn_flag | |
3859 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
3860 | else | |
3861 | ac_cpp_err= | |
3862 | fi | |
3863 | else | |
3864 | ac_cpp_err=yes | |
c906108c | 3865 | fi |
b7026657 AC |
3866 | if test -z "$ac_cpp_err"; then |
3867 | ac_header_preproc=yes | |
3868 | else | |
3869 | echo "$as_me: failed program was:" >&5 | |
3870 | sed 's/^/| /' conftest.$ac_ext >&5 | |
3871 | ||
3872 | ac_header_preproc=no | |
c906108c | 3873 | fi |
b7026657 AC |
3874 | rm -f conftest.err conftest.$ac_ext |
3875 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
3876 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
3877 | ||
3878 | # So? What about this header? | |
3879 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
3880 | yes:no: ) | |
3881 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
3882 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
3883 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
3884 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
3885 | ac_header_preproc=yes | |
3886 | ;; | |
3887 | no:yes:* ) | |
3888 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
3889 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
3890 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
3891 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
3892 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
3893 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
3894 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
3895 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
3896 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
3897 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
3898 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
3899 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
3900 | ( | |
3901 | cat <<\_ASBOX | |
3902 | ## ------------------------------------------ ## | |
3903 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
3904 | ## ------------------------------------------ ## | |
3905 | _ASBOX | |
3906 | ) | | |
3907 | sed "s/^/$as_me: WARNING: /" >&2 | |
3908 | ;; | |
3909 | esac | |
3910 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
3911 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
3912 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
3913 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 3914 | else |
b7026657 AC |
3915 | eval "$as_ac_Header=\$ac_header_preproc" |
3916 | fi | |
3917 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
3918 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
3919 | ||
c906108c | 3920 | fi |
b7026657 AC |
3921 | if test `eval echo '${'$as_ac_Header'}'` = yes; then |
3922 | cat >>confdefs.h <<_ACEOF | |
3923 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
3924 | _ACEOF | |
3925 | ||
3926 | fi | |
3927 | ||
c906108c SS |
3928 | done |
3929 | ||
b7026657 | 3930 | |
c906108c SS |
3931 | for ac_func in getpagesize |
3932 | do | |
b7026657 AC |
3933 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
3934 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
3935 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
3936 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
3937 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
3938 | else | |
3939 | cat >conftest.$ac_ext <<_ACEOF | |
3940 | /* confdefs.h. */ | |
3941 | _ACEOF | |
3942 | cat confdefs.h >>conftest.$ac_ext | |
3943 | cat >>conftest.$ac_ext <<_ACEOF | |
3944 | /* end confdefs.h. */ | |
3945 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
3946 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
3947 | #define $ac_func innocuous_$ac_func | |
3948 | ||
c906108c | 3949 | /* System header to define __stub macros and hopefully few prototypes, |
b7026657 AC |
3950 | which can conflict with char $ac_func (); below. |
3951 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
3952 | <limits.h> exists even on freestanding compilers. */ | |
3953 | ||
3954 | #ifdef __STDC__ | |
3955 | # include <limits.h> | |
3956 | #else | |
3957 | # include <assert.h> | |
3958 | #endif | |
c906108c | 3959 | |
b7026657 | 3960 | #undef $ac_func |
c906108c | 3961 | |
b7026657 AC |
3962 | /* Override any gcc2 internal prototype to avoid an error. */ |
3963 | #ifdef __cplusplus | |
3964 | extern "C" | |
3965 | { | |
3966 | #endif | |
3967 | /* We use char because int might match the return type of a gcc2 | |
3968 | builtin and then its argument prototype would still apply. */ | |
3969 | char $ac_func (); | |
c906108c SS |
3970 | /* The GNU C library defines this for functions which it implements |
3971 | to always fail with ENOSYS. Some functions are actually named | |
3972 | something starting with __ and the normal name is an alias. */ | |
3973 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
3974 | choke me | |
3975 | #else | |
b7026657 AC |
3976 | char (*f) () = $ac_func; |
3977 | #endif | |
3978 | #ifdef __cplusplus | |
3979 | } | |
c906108c SS |
3980 | #endif |
3981 | ||
b7026657 AC |
3982 | int |
3983 | main () | |
3984 | { | |
3985 | return f != $ac_func; | |
3986 | ; | |
3987 | return 0; | |
3988 | } | |
3989 | _ACEOF | |
3990 | rm -f conftest.$ac_objext conftest$ac_exeext | |
3991 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
3992 | (eval $ac_link) 2>conftest.er1 | |
3993 | ac_status=$? | |
3994 | grep -v '^ *+' conftest.er1 >conftest.err | |
3995 | rm -f conftest.er1 | |
3996 | cat conftest.err >&5 | |
3997 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
3998 | (exit $ac_status); } && | |
3999 | { ac_try='test -z "$ac_c_werror_flag" | |
4000 | || test ! -s conftest.err' | |
4001 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4002 | (eval $ac_try) 2>&5 | |
4003 | ac_status=$? | |
4004 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4005 | (exit $ac_status); }; } && | |
4006 | { ac_try='test -s conftest$ac_exeext' | |
4007 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4008 | (eval $ac_try) 2>&5 | |
4009 | ac_status=$? | |
4010 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4011 | (exit $ac_status); }; }; then | |
4012 | eval "$as_ac_var=yes" | |
4013 | else | |
4014 | echo "$as_me: failed program was:" >&5 | |
4015 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4016 | ||
4017 | eval "$as_ac_var=no" | |
4018 | fi | |
4019 | rm -f conftest.err conftest.$ac_objext \ | |
4020 | conftest$ac_exeext conftest.$ac_ext | |
4021 | fi | |
4022 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
4023 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
4024 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
4025 | cat >>confdefs.h <<_ACEOF | |
4026 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
4027 | _ACEOF | |
c906108c | 4028 | |
c906108c SS |
4029 | fi |
4030 | done | |
4031 | ||
b7026657 AC |
4032 | echo "$as_me:$LINENO: checking for working mmap" >&5 |
4033 | echo $ECHO_N "checking for working mmap... $ECHO_C" >&6 | |
4034 | if test "${ac_cv_func_mmap_fixed_mapped+set}" = set; then | |
4035 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c SS |
4036 | else |
4037 | if test "$cross_compiling" = yes; then | |
4038 | ac_cv_func_mmap_fixed_mapped=no | |
4039 | else | |
b7026657 AC |
4040 | cat >conftest.$ac_ext <<_ACEOF |
4041 | /* confdefs.h. */ | |
4042 | _ACEOF | |
4043 | cat confdefs.h >>conftest.$ac_ext | |
4044 | cat >>conftest.$ac_ext <<_ACEOF | |
4045 | /* end confdefs.h. */ | |
4046 | $ac_includes_default | |
4047 | /* malloc might have been renamed as rpl_malloc. */ | |
4048 | #undef malloc | |
c906108c SS |
4049 | |
4050 | /* Thanks to Mike Haertel and Jim Avera for this test. | |
4051 | Here is a matrix of mmap possibilities: | |
4052 | mmap private not fixed | |
4053 | mmap private fixed at somewhere currently unmapped | |
4054 | mmap private fixed at somewhere already mapped | |
4055 | mmap shared not fixed | |
4056 | mmap shared fixed at somewhere currently unmapped | |
4057 | mmap shared fixed at somewhere already mapped | |
4058 | For private mappings, we should verify that changes cannot be read() | |
4059 | back from the file, nor mmap's back from the file at a different | |
4060 | address. (There have been systems where private was not correctly | |
4061 | implemented like the infamous i386 svr4.0, and systems where the | |
b7026657 | 4062 | VM page cache was not coherent with the file system buffer cache |
c906108c SS |
4063 | like early versions of FreeBSD and possibly contemporary NetBSD.) |
4064 | For shared mappings, we should conversely verify that changes get | |
b7026657 | 4065 | propagated back to all the places they're supposed to be. |
c906108c SS |
4066 | |
4067 | Grep wants private fixed already mapped. | |
4068 | The main things grep needs to know about mmap are: | |
4069 | * does it exist and is it safe to write into the mmap'd area | |
4070 | * how to use it (BSD variants) */ | |
b7026657 | 4071 | |
c906108c SS |
4072 | #include <fcntl.h> |
4073 | #include <sys/mman.h> | |
4074 | ||
b7026657 AC |
4075 | #if !STDC_HEADERS && !HAVE_STDLIB_H |
4076 | char *malloc (); | |
4077 | #endif | |
c906108c | 4078 | |
b7026657 AC |
4079 | /* This mess was copied from the GNU getpagesize.h. */ |
4080 | #if !HAVE_GETPAGESIZE | |
c906108c | 4081 | /* Assume that all systems that can run configure have sys/param.h. */ |
b7026657 | 4082 | # if !HAVE_SYS_PARAM_H |
c906108c SS |
4083 | # define HAVE_SYS_PARAM_H 1 |
4084 | # endif | |
4085 | ||
4086 | # ifdef _SC_PAGESIZE | |
4087 | # define getpagesize() sysconf(_SC_PAGESIZE) | |
4088 | # else /* no _SC_PAGESIZE */ | |
b7026657 | 4089 | # if HAVE_SYS_PARAM_H |
c906108c SS |
4090 | # include <sys/param.h> |
4091 | # ifdef EXEC_PAGESIZE | |
4092 | # define getpagesize() EXEC_PAGESIZE | |
4093 | # else /* no EXEC_PAGESIZE */ | |
4094 | # ifdef NBPG | |
4095 | # define getpagesize() NBPG * CLSIZE | |
4096 | # ifndef CLSIZE | |
4097 | # define CLSIZE 1 | |
4098 | # endif /* no CLSIZE */ | |
4099 | # else /* no NBPG */ | |
4100 | # ifdef NBPC | |
4101 | # define getpagesize() NBPC | |
4102 | # else /* no NBPC */ | |
4103 | # ifdef PAGESIZE | |
4104 | # define getpagesize() PAGESIZE | |
4105 | # endif /* PAGESIZE */ | |
4106 | # endif /* no NBPC */ | |
4107 | # endif /* no NBPG */ | |
4108 | # endif /* no EXEC_PAGESIZE */ | |
4109 | # else /* no HAVE_SYS_PARAM_H */ | |
4110 | # define getpagesize() 8192 /* punt totally */ | |
4111 | # endif /* no HAVE_SYS_PARAM_H */ | |
4112 | # endif /* no _SC_PAGESIZE */ | |
4113 | ||
4114 | #endif /* no HAVE_GETPAGESIZE */ | |
4115 | ||
c906108c | 4116 | int |
b7026657 | 4117 | main () |
c906108c | 4118 | { |
b7026657 AC |
4119 | char *data, *data2, *data3; |
4120 | int i, pagesize; | |
4121 | int fd; | |
4122 | ||
4123 | pagesize = getpagesize (); | |
4124 | ||
4125 | /* First, make a file with some known garbage in it. */ | |
4126 | data = (char *) malloc (pagesize); | |
4127 | if (!data) | |
4128 | exit (1); | |
4129 | for (i = 0; i < pagesize; ++i) | |
4130 | *(data + i) = rand (); | |
4131 | umask (0); | |
4132 | fd = creat ("conftest.mmap", 0600); | |
4133 | if (fd < 0) | |
4134 | exit (1); | |
4135 | if (write (fd, data, pagesize) != pagesize) | |
4136 | exit (1); | |
4137 | close (fd); | |
4138 | ||
4139 | /* Next, try to mmap the file at a fixed address which already has | |
4140 | something else allocated at it. If we can, also make sure that | |
4141 | we see the same garbage. */ | |
4142 | fd = open ("conftest.mmap", O_RDWR); | |
4143 | if (fd < 0) | |
4144 | exit (1); | |
4145 | data2 = (char *) malloc (2 * pagesize); | |
4146 | if (!data2) | |
4147 | exit (1); | |
4148 | data2 += (pagesize - ((long) data2 & (pagesize - 1))) & (pagesize - 1); | |
4149 | if (data2 != mmap (data2, pagesize, PROT_READ | PROT_WRITE, | |
4150 | MAP_PRIVATE | MAP_FIXED, fd, 0L)) | |
4151 | exit (1); | |
4152 | for (i = 0; i < pagesize; ++i) | |
4153 | if (*(data + i) != *(data2 + i)) | |
4154 | exit (1); | |
4155 | ||
4156 | /* Finally, make sure that changes to the mapped area do not | |
4157 | percolate back to the file as seen by read(). (This is a bug on | |
4158 | some variants of i386 svr4.0.) */ | |
4159 | for (i = 0; i < pagesize; ++i) | |
4160 | *(data2 + i) = *(data2 + i) + 1; | |
4161 | data3 = (char *) malloc (pagesize); | |
4162 | if (!data3) | |
4163 | exit (1); | |
4164 | if (read (fd, data3, pagesize) != pagesize) | |
4165 | exit (1); | |
4166 | for (i = 0; i < pagesize; ++i) | |
4167 | if (*(data + i) != *(data3 + i)) | |
4168 | exit (1); | |
4169 | close (fd); | |
4170 | exit (0); | |
c906108c | 4171 | } |
b7026657 AC |
4172 | _ACEOF |
4173 | rm -f conftest$ac_exeext | |
4174 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4175 | (eval $ac_link) 2>&5 | |
4176 | ac_status=$? | |
4177 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4178 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
4179 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4180 | (eval $ac_try) 2>&5 | |
4181 | ac_status=$? | |
4182 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4183 | (exit $ac_status); }; }; then | |
c906108c SS |
4184 | ac_cv_func_mmap_fixed_mapped=yes |
4185 | else | |
b7026657 AC |
4186 | echo "$as_me: program exited with status $ac_status" >&5 |
4187 | echo "$as_me: failed program was:" >&5 | |
4188 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4189 | ||
4190 | ( exit $ac_status ) | |
4191 | ac_cv_func_mmap_fixed_mapped=no | |
c906108c | 4192 | fi |
b7026657 | 4193 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
c906108c | 4194 | fi |
c906108c | 4195 | fi |
b7026657 AC |
4196 | echo "$as_me:$LINENO: result: $ac_cv_func_mmap_fixed_mapped" >&5 |
4197 | echo "${ECHO_T}$ac_cv_func_mmap_fixed_mapped" >&6 | |
c906108c | 4198 | if test $ac_cv_func_mmap_fixed_mapped = yes; then |
b7026657 AC |
4199 | |
4200 | cat >>confdefs.h <<\_ACEOF | |
c906108c | 4201 | #define HAVE_MMAP 1 |
b7026657 | 4202 | _ACEOF |
c906108c SS |
4203 | |
4204 | fi | |
b7026657 AC |
4205 | rm -f conftest.mmap |
4206 | ||
4207 | ||
4208 | ||
4209 | ||
4210 | ||
c906108c | 4211 | |
b7026657 AC |
4212 | |
4213 | ||
4214 | ||
4215 | ||
4216 | ||
4217 | for ac_header in argz.h limits.h locale.h nl_types.h malloc.h string.h \ | |
c906108c SS |
4218 | unistd.h values.h sys/param.h |
4219 | do | |
b7026657 AC |
4220 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
4221 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4222 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4223 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4224 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4225 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4226 | fi | |
4227 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
4228 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4229 | else | |
4230 | # Is the header compilable? | |
4231 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
4232 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
4233 | cat >conftest.$ac_ext <<_ACEOF | |
4234 | /* confdefs.h. */ | |
4235 | _ACEOF | |
4236 | cat confdefs.h >>conftest.$ac_ext | |
4237 | cat >>conftest.$ac_ext <<_ACEOF | |
4238 | /* end confdefs.h. */ | |
4239 | $ac_includes_default | |
4240 | #include <$ac_header> | |
4241 | _ACEOF | |
4242 | rm -f conftest.$ac_objext | |
4243 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4244 | (eval $ac_compile) 2>conftest.er1 | |
4245 | ac_status=$? | |
4246 | grep -v '^ *+' conftest.er1 >conftest.err | |
4247 | rm -f conftest.er1 | |
4248 | cat conftest.err >&5 | |
4249 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4250 | (exit $ac_status); } && | |
4251 | { ac_try='test -z "$ac_c_werror_flag" | |
4252 | || test ! -s conftest.err' | |
4253 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4254 | (eval $ac_try) 2>&5 | |
4255 | ac_status=$? | |
4256 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4257 | (exit $ac_status); }; } && | |
4258 | { ac_try='test -s conftest.$ac_objext' | |
4259 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4260 | (eval $ac_try) 2>&5 | |
4261 | ac_status=$? | |
4262 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4263 | (exit $ac_status); }; }; then | |
4264 | ac_header_compiler=yes | |
4265 | else | |
4266 | echo "$as_me: failed program was:" >&5 | |
4267 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4268 | ||
4269 | ac_header_compiler=no | |
4270 | fi | |
4271 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4272 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
4273 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
4274 | ||
4275 | # Is the header present? | |
4276 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
4277 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
4278 | cat >conftest.$ac_ext <<_ACEOF | |
4279 | /* confdefs.h. */ | |
4280 | _ACEOF | |
4281 | cat confdefs.h >>conftest.$ac_ext | |
4282 | cat >>conftest.$ac_ext <<_ACEOF | |
4283 | /* end confdefs.h. */ | |
4284 | #include <$ac_header> | |
4285 | _ACEOF | |
4286 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4287 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4288 | ac_status=$? | |
4289 | grep -v '^ *+' conftest.er1 >conftest.err | |
4290 | rm -f conftest.er1 | |
4291 | cat conftest.err >&5 | |
4292 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4293 | (exit $ac_status); } >/dev/null; then | |
4294 | if test -s conftest.err; then | |
4295 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4296 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
4297 | else | |
4298 | ac_cpp_err= | |
4299 | fi | |
4300 | else | |
4301 | ac_cpp_err=yes | |
c906108c | 4302 | fi |
b7026657 AC |
4303 | if test -z "$ac_cpp_err"; then |
4304 | ac_header_preproc=yes | |
4305 | else | |
4306 | echo "$as_me: failed program was:" >&5 | |
4307 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4308 | ||
4309 | ac_header_preproc=no | |
c906108c | 4310 | fi |
b7026657 AC |
4311 | rm -f conftest.err conftest.$ac_ext |
4312 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
4313 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
4314 | ||
4315 | # So? What about this header? | |
4316 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
4317 | yes:no: ) | |
4318 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
4319 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4320 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
4321 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
4322 | ac_header_preproc=yes | |
4323 | ;; | |
4324 | no:yes:* ) | |
4325 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
4326 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
4327 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
4328 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
4329 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
4330 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
4331 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
4332 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
4333 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
4334 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
4335 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
4336 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
4337 | ( | |
4338 | cat <<\_ASBOX | |
4339 | ## ------------------------------------------ ## | |
4340 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
4341 | ## ------------------------------------------ ## | |
4342 | _ASBOX | |
4343 | ) | | |
4344 | sed "s/^/$as_me: WARNING: /" >&2 | |
4345 | ;; | |
4346 | esac | |
4347 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
4348 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
4349 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
4350 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 4351 | else |
b7026657 | 4352 | eval "$as_ac_Header=\$ac_header_preproc" |
c906108c | 4353 | fi |
b7026657 AC |
4354 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 |
4355 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
4356 | ||
4357 | fi | |
4358 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
4359 | cat >>confdefs.h <<_ACEOF | |
4360 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
4361 | _ACEOF | |
4362 | ||
4363 | fi | |
4364 | ||
c906108c SS |
4365 | done |
4366 | ||
b7026657 AC |
4367 | |
4368 | ||
4369 | ||
4370 | ||
4371 | ||
4372 | ||
4373 | ||
4374 | ||
4375 | ||
4376 | ||
4377 | for ac_func in getcwd munmap putenv setenv setlocale strchr strcasecmp \ | |
c906108c SS |
4378 | __argz_count __argz_stringify __argz_next |
4379 | do | |
b7026657 AC |
4380 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
4381 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
4382 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
4383 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
4384 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4385 | else | |
4386 | cat >conftest.$ac_ext <<_ACEOF | |
4387 | /* confdefs.h. */ | |
4388 | _ACEOF | |
4389 | cat confdefs.h >>conftest.$ac_ext | |
4390 | cat >>conftest.$ac_ext <<_ACEOF | |
4391 | /* end confdefs.h. */ | |
4392 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
4393 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
4394 | #define $ac_func innocuous_$ac_func | |
4395 | ||
c906108c | 4396 | /* System header to define __stub macros and hopefully few prototypes, |
b7026657 AC |
4397 | which can conflict with char $ac_func (); below. |
4398 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4399 | <limits.h> exists even on freestanding compilers. */ | |
4400 | ||
4401 | #ifdef __STDC__ | |
4402 | # include <limits.h> | |
4403 | #else | |
4404 | # include <assert.h> | |
4405 | #endif | |
4406 | ||
4407 | #undef $ac_func | |
4408 | ||
c906108c | 4409 | /* Override any gcc2 internal prototype to avoid an error. */ |
b7026657 AC |
4410 | #ifdef __cplusplus |
4411 | extern "C" | |
4412 | { | |
4413 | #endif | |
c906108c | 4414 | /* We use char because int might match the return type of a gcc2 |
b7026657 AC |
4415 | builtin and then its argument prototype would still apply. */ |
4416 | char $ac_func (); | |
c906108c SS |
4417 | /* The GNU C library defines this for functions which it implements |
4418 | to always fail with ENOSYS. Some functions are actually named | |
4419 | something starting with __ and the normal name is an alias. */ | |
4420 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
4421 | choke me | |
4422 | #else | |
b7026657 AC |
4423 | char (*f) () = $ac_func; |
4424 | #endif | |
4425 | #ifdef __cplusplus | |
4426 | } | |
c906108c SS |
4427 | #endif |
4428 | ||
b7026657 AC |
4429 | int |
4430 | main () | |
4431 | { | |
4432 | return f != $ac_func; | |
4433 | ; | |
4434 | return 0; | |
4435 | } | |
4436 | _ACEOF | |
4437 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4438 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4439 | (eval $ac_link) 2>conftest.er1 | |
4440 | ac_status=$? | |
4441 | grep -v '^ *+' conftest.er1 >conftest.err | |
4442 | rm -f conftest.er1 | |
4443 | cat conftest.err >&5 | |
4444 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4445 | (exit $ac_status); } && | |
4446 | { ac_try='test -z "$ac_c_werror_flag" | |
4447 | || test ! -s conftest.err' | |
4448 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4449 | (eval $ac_try) 2>&5 | |
4450 | ac_status=$? | |
4451 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4452 | (exit $ac_status); }; } && | |
4453 | { ac_try='test -s conftest$ac_exeext' | |
4454 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4455 | (eval $ac_try) 2>&5 | |
4456 | ac_status=$? | |
4457 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4458 | (exit $ac_status); }; }; then | |
4459 | eval "$as_ac_var=yes" | |
4460 | else | |
4461 | echo "$as_me: failed program was:" >&5 | |
4462 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4463 | ||
4464 | eval "$as_ac_var=no" | |
4465 | fi | |
4466 | rm -f conftest.err conftest.$ac_objext \ | |
4467 | conftest$ac_exeext conftest.$ac_ext | |
4468 | fi | |
4469 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
4470 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
4471 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
4472 | cat >>confdefs.h <<_ACEOF | |
4473 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
4474 | _ACEOF | |
c906108c | 4475 | |
c906108c SS |
4476 | fi |
4477 | done | |
4478 | ||
4479 | ||
4480 | if test "${ac_cv_func_stpcpy+set}" != "set"; then | |
b7026657 AC |
4481 | |
4482 | for ac_func in stpcpy | |
c906108c | 4483 | do |
b7026657 AC |
4484 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
4485 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
4486 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
4487 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
4488 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4489 | else | |
4490 | cat >conftest.$ac_ext <<_ACEOF | |
4491 | /* confdefs.h. */ | |
4492 | _ACEOF | |
4493 | cat confdefs.h >>conftest.$ac_ext | |
4494 | cat >>conftest.$ac_ext <<_ACEOF | |
4495 | /* end confdefs.h. */ | |
4496 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
4497 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
4498 | #define $ac_func innocuous_$ac_func | |
4499 | ||
c906108c | 4500 | /* System header to define __stub macros and hopefully few prototypes, |
b7026657 AC |
4501 | which can conflict with char $ac_func (); below. |
4502 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
4503 | <limits.h> exists even on freestanding compilers. */ | |
4504 | ||
4505 | #ifdef __STDC__ | |
4506 | # include <limits.h> | |
4507 | #else | |
4508 | # include <assert.h> | |
4509 | #endif | |
c906108c | 4510 | |
b7026657 | 4511 | #undef $ac_func |
c906108c | 4512 | |
b7026657 AC |
4513 | /* Override any gcc2 internal prototype to avoid an error. */ |
4514 | #ifdef __cplusplus | |
4515 | extern "C" | |
4516 | { | |
4517 | #endif | |
4518 | /* We use char because int might match the return type of a gcc2 | |
4519 | builtin and then its argument prototype would still apply. */ | |
4520 | char $ac_func (); | |
c906108c SS |
4521 | /* The GNU C library defines this for functions which it implements |
4522 | to always fail with ENOSYS. Some functions are actually named | |
4523 | something starting with __ and the normal name is an alias. */ | |
4524 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
4525 | choke me | |
4526 | #else | |
b7026657 AC |
4527 | char (*f) () = $ac_func; |
4528 | #endif | |
4529 | #ifdef __cplusplus | |
4530 | } | |
c906108c SS |
4531 | #endif |
4532 | ||
b7026657 AC |
4533 | int |
4534 | main () | |
4535 | { | |
4536 | return f != $ac_func; | |
4537 | ; | |
4538 | return 0; | |
4539 | } | |
4540 | _ACEOF | |
4541 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4542 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4543 | (eval $ac_link) 2>conftest.er1 | |
4544 | ac_status=$? | |
4545 | grep -v '^ *+' conftest.er1 >conftest.err | |
4546 | rm -f conftest.er1 | |
4547 | cat conftest.err >&5 | |
4548 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4549 | (exit $ac_status); } && | |
4550 | { ac_try='test -z "$ac_c_werror_flag" | |
4551 | || test ! -s conftest.err' | |
4552 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4553 | (eval $ac_try) 2>&5 | |
4554 | ac_status=$? | |
4555 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4556 | (exit $ac_status); }; } && | |
4557 | { ac_try='test -s conftest$ac_exeext' | |
4558 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4559 | (eval $ac_try) 2>&5 | |
4560 | ac_status=$? | |
4561 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4562 | (exit $ac_status); }; }; then | |
4563 | eval "$as_ac_var=yes" | |
4564 | else | |
4565 | echo "$as_me: failed program was:" >&5 | |
4566 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4567 | ||
4568 | eval "$as_ac_var=no" | |
4569 | fi | |
4570 | rm -f conftest.err conftest.$ac_objext \ | |
4571 | conftest$ac_exeext conftest.$ac_ext | |
4572 | fi | |
4573 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
4574 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
4575 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
4576 | cat >>confdefs.h <<_ACEOF | |
4577 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
4578 | _ACEOF | |
c906108c | 4579 | |
c906108c SS |
4580 | fi |
4581 | done | |
4582 | ||
4583 | fi | |
4584 | if test "${ac_cv_func_stpcpy}" = "yes"; then | |
b7026657 | 4585 | cat >>confdefs.h <<\_ACEOF |
c906108c | 4586 | #define HAVE_STPCPY 1 |
b7026657 | 4587 | _ACEOF |
c906108c SS |
4588 | |
4589 | fi | |
4590 | ||
4591 | if test $ac_cv_header_locale_h = yes; then | |
b7026657 AC |
4592 | echo "$as_me:$LINENO: checking for LC_MESSAGES" >&5 |
4593 | echo $ECHO_N "checking for LC_MESSAGES... $ECHO_C" >&6 | |
4594 | if test "${am_cv_val_LC_MESSAGES+set}" = set; then | |
4595 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4596 | else | |
4597 | cat >conftest.$ac_ext <<_ACEOF | |
4598 | /* confdefs.h. */ | |
4599 | _ACEOF | |
4600 | cat confdefs.h >>conftest.$ac_ext | |
4601 | cat >>conftest.$ac_ext <<_ACEOF | |
4602 | /* end confdefs.h. */ | |
c906108c | 4603 | #include <locale.h> |
b7026657 AC |
4604 | int |
4605 | main () | |
4606 | { | |
c906108c | 4607 | return LC_MESSAGES |
b7026657 AC |
4608 | ; |
4609 | return 0; | |
4610 | } | |
4611 | _ACEOF | |
4612 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4613 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4614 | (eval $ac_link) 2>conftest.er1 | |
4615 | ac_status=$? | |
4616 | grep -v '^ *+' conftest.er1 >conftest.err | |
4617 | rm -f conftest.er1 | |
4618 | cat conftest.err >&5 | |
4619 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4620 | (exit $ac_status); } && | |
4621 | { ac_try='test -z "$ac_c_werror_flag" | |
4622 | || test ! -s conftest.err' | |
4623 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4624 | (eval $ac_try) 2>&5 | |
4625 | ac_status=$? | |
4626 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4627 | (exit $ac_status); }; } && | |
4628 | { ac_try='test -s conftest$ac_exeext' | |
4629 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4630 | (eval $ac_try) 2>&5 | |
4631 | ac_status=$? | |
4632 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4633 | (exit $ac_status); }; }; then | |
c906108c SS |
4634 | am_cv_val_LC_MESSAGES=yes |
4635 | else | |
b7026657 AC |
4636 | echo "$as_me: failed program was:" >&5 |
4637 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4638 | ||
4639 | am_cv_val_LC_MESSAGES=no | |
c906108c | 4640 | fi |
b7026657 AC |
4641 | rm -f conftest.err conftest.$ac_objext \ |
4642 | conftest$ac_exeext conftest.$ac_ext | |
c906108c | 4643 | fi |
b7026657 AC |
4644 | echo "$as_me:$LINENO: result: $am_cv_val_LC_MESSAGES" >&5 |
4645 | echo "${ECHO_T}$am_cv_val_LC_MESSAGES" >&6 | |
c906108c | 4646 | if test $am_cv_val_LC_MESSAGES = yes; then |
b7026657 | 4647 | cat >>confdefs.h <<\_ACEOF |
c906108c | 4648 | #define HAVE_LC_MESSAGES 1 |
b7026657 | 4649 | _ACEOF |
c906108c SS |
4650 | |
4651 | fi | |
4652 | fi | |
b7026657 AC |
4653 | echo "$as_me:$LINENO: checking whether NLS is requested" >&5 |
4654 | echo $ECHO_N "checking whether NLS is requested... $ECHO_C" >&6 | |
c906108c SS |
4655 | # Check whether --enable-nls or --disable-nls was given. |
4656 | if test "${enable_nls+set}" = set; then | |
4657 | enableval="$enable_nls" | |
4658 | USE_NLS=$enableval | |
4659 | else | |
4660 | USE_NLS=yes | |
b7026657 AC |
4661 | fi; |
4662 | echo "$as_me:$LINENO: result: $USE_NLS" >&5 | |
4663 | echo "${ECHO_T}$USE_NLS" >&6 | |
c906108c | 4664 | |
c906108c SS |
4665 | |
4666 | USE_INCLUDED_LIBINTL=no | |
4667 | ||
4668 | if test "$USE_NLS" = "yes"; then | |
b7026657 | 4669 | cat >>confdefs.h <<\_ACEOF |
c906108c | 4670 | #define ENABLE_NLS 1 |
b7026657 AC |
4671 | _ACEOF |
4672 | ||
4673 | echo "$as_me:$LINENO: checking whether included gettext is requested" >&5 | |
4674 | echo $ECHO_N "checking whether included gettext is requested... $ECHO_C" >&6 | |
c906108c | 4675 | |
b7026657 | 4676 | # Check whether --with-included-gettext or --without-included-gettext was given. |
c906108c SS |
4677 | if test "${with_included_gettext+set}" = set; then |
4678 | withval="$with_included_gettext" | |
4679 | nls_cv_force_use_gnu_gettext=$withval | |
4680 | else | |
4681 | nls_cv_force_use_gnu_gettext=no | |
b7026657 AC |
4682 | fi; |
4683 | echo "$as_me:$LINENO: result: $nls_cv_force_use_gnu_gettext" >&5 | |
4684 | echo "${ECHO_T}$nls_cv_force_use_gnu_gettext" >&6 | |
c906108c SS |
4685 | |
4686 | nls_cv_use_gnu_gettext="$nls_cv_force_use_gnu_gettext" | |
4687 | if test "$nls_cv_force_use_gnu_gettext" != "yes"; then | |
4688 | nls_cv_header_intl= | |
4689 | nls_cv_header_libgt= | |
4690 | CATOBJEXT=NONE | |
4691 | ||
b7026657 AC |
4692 | if test "${ac_cv_header_libintl_h+set}" = set; then |
4693 | echo "$as_me:$LINENO: checking for libintl.h" >&5 | |
4694 | echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6 | |
4695 | if test "${ac_cv_header_libintl_h+set}" = set; then | |
4696 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4697 | fi | |
4698 | echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5 | |
4699 | echo "${ECHO_T}$ac_cv_header_libintl_h" >&6 | |
4700 | else | |
4701 | # Is the header compilable? | |
4702 | echo "$as_me:$LINENO: checking libintl.h usability" >&5 | |
4703 | echo $ECHO_N "checking libintl.h usability... $ECHO_C" >&6 | |
4704 | cat >conftest.$ac_ext <<_ACEOF | |
4705 | /* confdefs.h. */ | |
4706 | _ACEOF | |
4707 | cat confdefs.h >>conftest.$ac_ext | |
4708 | cat >>conftest.$ac_ext <<_ACEOF | |
4709 | /* end confdefs.h. */ | |
4710 | $ac_includes_default | |
4711 | #include <libintl.h> | |
4712 | _ACEOF | |
4713 | rm -f conftest.$ac_objext | |
4714 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
4715 | (eval $ac_compile) 2>conftest.er1 | |
4716 | ac_status=$? | |
4717 | grep -v '^ *+' conftest.er1 >conftest.err | |
4718 | rm -f conftest.er1 | |
4719 | cat conftest.err >&5 | |
4720 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4721 | (exit $ac_status); } && | |
4722 | { ac_try='test -z "$ac_c_werror_flag" | |
4723 | || test ! -s conftest.err' | |
4724 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4725 | (eval $ac_try) 2>&5 | |
4726 | ac_status=$? | |
4727 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4728 | (exit $ac_status); }; } && | |
4729 | { ac_try='test -s conftest.$ac_objext' | |
4730 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4731 | (eval $ac_try) 2>&5 | |
4732 | ac_status=$? | |
4733 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4734 | (exit $ac_status); }; }; then | |
4735 | ac_header_compiler=yes | |
4736 | else | |
4737 | echo "$as_me: failed program was:" >&5 | |
4738 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4739 | ||
4740 | ac_header_compiler=no | |
4741 | fi | |
4742 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
4743 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
4744 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
4745 | ||
4746 | # Is the header present? | |
4747 | echo "$as_me:$LINENO: checking libintl.h presence" >&5 | |
4748 | echo $ECHO_N "checking libintl.h presence... $ECHO_C" >&6 | |
4749 | cat >conftest.$ac_ext <<_ACEOF | |
4750 | /* confdefs.h. */ | |
4751 | _ACEOF | |
4752 | cat confdefs.h >>conftest.$ac_ext | |
4753 | cat >>conftest.$ac_ext <<_ACEOF | |
4754 | /* end confdefs.h. */ | |
c906108c | 4755 | #include <libintl.h> |
b7026657 AC |
4756 | _ACEOF |
4757 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
4758 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
4759 | ac_status=$? | |
4760 | grep -v '^ *+' conftest.er1 >conftest.err | |
4761 | rm -f conftest.er1 | |
4762 | cat conftest.err >&5 | |
4763 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4764 | (exit $ac_status); } >/dev/null; then | |
4765 | if test -s conftest.err; then | |
4766 | ac_cpp_err=$ac_c_preproc_warn_flag | |
4767 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
4768 | else | |
4769 | ac_cpp_err= | |
4770 | fi | |
4771 | else | |
4772 | ac_cpp_err=yes | |
c906108c | 4773 | fi |
b7026657 AC |
4774 | if test -z "$ac_cpp_err"; then |
4775 | ac_header_preproc=yes | |
4776 | else | |
4777 | echo "$as_me: failed program was:" >&5 | |
4778 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4779 | ||
4780 | ac_header_preproc=no | |
4781 | fi | |
4782 | rm -f conftest.err conftest.$ac_ext | |
4783 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
4784 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
4785 | ||
4786 | # So? What about this header? | |
4787 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
4788 | yes:no: ) | |
4789 | { echo "$as_me:$LINENO: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
4790 | echo "$as_me: WARNING: libintl.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
4791 | { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the compiler's result" >&5 | |
4792 | echo "$as_me: WARNING: libintl.h: proceeding with the compiler's result" >&2;} | |
4793 | ac_header_preproc=yes | |
4794 | ;; | |
4795 | no:yes:* ) | |
4796 | { echo "$as_me:$LINENO: WARNING: libintl.h: present but cannot be compiled" >&5 | |
4797 | echo "$as_me: WARNING: libintl.h: present but cannot be compiled" >&2;} | |
4798 | { echo "$as_me:$LINENO: WARNING: libintl.h: check for missing prerequisite headers?" >&5 | |
4799 | echo "$as_me: WARNING: libintl.h: check for missing prerequisite headers?" >&2;} | |
4800 | { echo "$as_me:$LINENO: WARNING: libintl.h: see the Autoconf documentation" >&5 | |
4801 | echo "$as_me: WARNING: libintl.h: see the Autoconf documentation" >&2;} | |
4802 | { echo "$as_me:$LINENO: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&5 | |
4803 | echo "$as_me: WARNING: libintl.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
4804 | { echo "$as_me:$LINENO: WARNING: libintl.h: proceeding with the preprocessor's result" >&5 | |
4805 | echo "$as_me: WARNING: libintl.h: proceeding with the preprocessor's result" >&2;} | |
4806 | { echo "$as_me:$LINENO: WARNING: libintl.h: in the future, the compiler will take precedence" >&5 | |
4807 | echo "$as_me: WARNING: libintl.h: in the future, the compiler will take precedence" >&2;} | |
4808 | ( | |
4809 | cat <<\_ASBOX | |
4810 | ## ------------------------------------------ ## | |
4811 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
4812 | ## ------------------------------------------ ## | |
4813 | _ASBOX | |
4814 | ) | | |
4815 | sed "s/^/$as_me: WARNING: /" >&2 | |
4816 | ;; | |
4817 | esac | |
4818 | echo "$as_me:$LINENO: checking for libintl.h" >&5 | |
4819 | echo $ECHO_N "checking for libintl.h... $ECHO_C" >&6 | |
4820 | if test "${ac_cv_header_libintl_h+set}" = set; then | |
4821 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4822 | else | |
4823 | ac_cv_header_libintl_h=$ac_header_preproc | |
4824 | fi | |
4825 | echo "$as_me:$LINENO: result: $ac_cv_header_libintl_h" >&5 | |
4826 | echo "${ECHO_T}$ac_cv_header_libintl_h" >&6 | |
4827 | ||
c906108c | 4828 | fi |
b7026657 AC |
4829 | if test $ac_cv_header_libintl_h = yes; then |
4830 | echo "$as_me:$LINENO: checking for gettext in libc" >&5 | |
4831 | echo $ECHO_N "checking for gettext in libc... $ECHO_C" >&6 | |
4832 | if test "${gt_cv_func_gettext_libc+set}" = set; then | |
4833 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 4834 | else |
b7026657 AC |
4835 | cat >conftest.$ac_ext <<_ACEOF |
4836 | /* confdefs.h. */ | |
4837 | _ACEOF | |
4838 | cat confdefs.h >>conftest.$ac_ext | |
4839 | cat >>conftest.$ac_ext <<_ACEOF | |
4840 | /* end confdefs.h. */ | |
c906108c | 4841 | #include <libintl.h> |
b7026657 AC |
4842 | int |
4843 | main () | |
4844 | { | |
c906108c | 4845 | return (int) gettext ("") |
b7026657 AC |
4846 | ; |
4847 | return 0; | |
4848 | } | |
4849 | _ACEOF | |
4850 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4851 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4852 | (eval $ac_link) 2>conftest.er1 | |
4853 | ac_status=$? | |
4854 | grep -v '^ *+' conftest.er1 >conftest.err | |
4855 | rm -f conftest.er1 | |
4856 | cat conftest.err >&5 | |
4857 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4858 | (exit $ac_status); } && | |
4859 | { ac_try='test -z "$ac_c_werror_flag" | |
4860 | || test ! -s conftest.err' | |
4861 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4862 | (eval $ac_try) 2>&5 | |
4863 | ac_status=$? | |
4864 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4865 | (exit $ac_status); }; } && | |
4866 | { ac_try='test -s conftest$ac_exeext' | |
4867 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4868 | (eval $ac_try) 2>&5 | |
4869 | ac_status=$? | |
4870 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4871 | (exit $ac_status); }; }; then | |
c906108c SS |
4872 | gt_cv_func_gettext_libc=yes |
4873 | else | |
b7026657 AC |
4874 | echo "$as_me: failed program was:" >&5 |
4875 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4876 | ||
4877 | gt_cv_func_gettext_libc=no | |
c906108c | 4878 | fi |
b7026657 AC |
4879 | rm -f conftest.err conftest.$ac_objext \ |
4880 | conftest$ac_exeext conftest.$ac_ext | |
c906108c | 4881 | fi |
b7026657 AC |
4882 | echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libc" >&5 |
4883 | echo "${ECHO_T}$gt_cv_func_gettext_libc" >&6 | |
c906108c SS |
4884 | |
4885 | if test "$gt_cv_func_gettext_libc" != "yes"; then | |
b7026657 AC |
4886 | echo "$as_me:$LINENO: checking for bindtextdomain in -lintl" >&5 |
4887 | echo $ECHO_N "checking for bindtextdomain in -lintl... $ECHO_C" >&6 | |
4888 | if test "${ac_cv_lib_intl_bindtextdomain+set}" = set; then | |
4889 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 4890 | else |
b7026657 | 4891 | ac_check_lib_save_LIBS=$LIBS |
c906108c | 4892 | LIBS="-lintl $LIBS" |
b7026657 AC |
4893 | cat >conftest.$ac_ext <<_ACEOF |
4894 | /* confdefs.h. */ | |
4895 | _ACEOF | |
4896 | cat confdefs.h >>conftest.$ac_ext | |
4897 | cat >>conftest.$ac_ext <<_ACEOF | |
4898 | /* end confdefs.h. */ | |
4899 | ||
c906108c | 4900 | /* Override any gcc2 internal prototype to avoid an error. */ |
b7026657 AC |
4901 | #ifdef __cplusplus |
4902 | extern "C" | |
4903 | #endif | |
c906108c | 4904 | /* We use char because int might match the return type of a gcc2 |
b7026657 AC |
4905 | builtin and then its argument prototype would still apply. */ |
4906 | char bindtextdomain (); | |
4907 | int | |
4908 | main () | |
4909 | { | |
4910 | bindtextdomain (); | |
4911 | ; | |
4912 | return 0; | |
4913 | } | |
4914 | _ACEOF | |
4915 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4916 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4917 | (eval $ac_link) 2>conftest.er1 | |
4918 | ac_status=$? | |
4919 | grep -v '^ *+' conftest.er1 >conftest.err | |
4920 | rm -f conftest.er1 | |
4921 | cat conftest.err >&5 | |
4922 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4923 | (exit $ac_status); } && | |
4924 | { ac_try='test -z "$ac_c_werror_flag" | |
4925 | || test ! -s conftest.err' | |
4926 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4927 | (eval $ac_try) 2>&5 | |
4928 | ac_status=$? | |
4929 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4930 | (exit $ac_status); }; } && | |
4931 | { ac_try='test -s conftest$ac_exeext' | |
4932 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4933 | (eval $ac_try) 2>&5 | |
4934 | ac_status=$? | |
4935 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4936 | (exit $ac_status); }; }; then | |
4937 | ac_cv_lib_intl_bindtextdomain=yes | |
4938 | else | |
4939 | echo "$as_me: failed program was:" >&5 | |
4940 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4941 | ||
4942 | ac_cv_lib_intl_bindtextdomain=no | |
4943 | fi | |
4944 | rm -f conftest.err conftest.$ac_objext \ | |
4945 | conftest$ac_exeext conftest.$ac_ext | |
4946 | LIBS=$ac_check_lib_save_LIBS | |
4947 | fi | |
4948 | echo "$as_me:$LINENO: result: $ac_cv_lib_intl_bindtextdomain" >&5 | |
4949 | echo "${ECHO_T}$ac_cv_lib_intl_bindtextdomain" >&6 | |
4950 | if test $ac_cv_lib_intl_bindtextdomain = yes; then | |
4951 | echo "$as_me:$LINENO: checking for gettext in libintl" >&5 | |
4952 | echo $ECHO_N "checking for gettext in libintl... $ECHO_C" >&6 | |
4953 | if test "${gt_cv_func_gettext_libintl+set}" = set; then | |
4954 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
4955 | else | |
4956 | cat >conftest.$ac_ext <<_ACEOF | |
4957 | /* confdefs.h. */ | |
4958 | _ACEOF | |
4959 | cat confdefs.h >>conftest.$ac_ext | |
4960 | cat >>conftest.$ac_ext <<_ACEOF | |
4961 | /* end confdefs.h. */ | |
c906108c | 4962 | |
b7026657 AC |
4963 | int |
4964 | main () | |
4965 | { | |
c906108c | 4966 | return (int) gettext ("") |
b7026657 AC |
4967 | ; |
4968 | return 0; | |
4969 | } | |
4970 | _ACEOF | |
4971 | rm -f conftest.$ac_objext conftest$ac_exeext | |
4972 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
4973 | (eval $ac_link) 2>conftest.er1 | |
4974 | ac_status=$? | |
4975 | grep -v '^ *+' conftest.er1 >conftest.err | |
4976 | rm -f conftest.er1 | |
4977 | cat conftest.err >&5 | |
4978 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4979 | (exit $ac_status); } && | |
4980 | { ac_try='test -z "$ac_c_werror_flag" | |
4981 | || test ! -s conftest.err' | |
4982 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4983 | (eval $ac_try) 2>&5 | |
4984 | ac_status=$? | |
4985 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4986 | (exit $ac_status); }; } && | |
4987 | { ac_try='test -s conftest$ac_exeext' | |
4988 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
4989 | (eval $ac_try) 2>&5 | |
4990 | ac_status=$? | |
4991 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
4992 | (exit $ac_status); }; }; then | |
c906108c SS |
4993 | gt_cv_func_gettext_libintl=yes |
4994 | else | |
b7026657 AC |
4995 | echo "$as_me: failed program was:" >&5 |
4996 | sed 's/^/| /' conftest.$ac_ext >&5 | |
4997 | ||
4998 | gt_cv_func_gettext_libintl=no | |
c906108c | 4999 | fi |
b7026657 AC |
5000 | rm -f conftest.err conftest.$ac_objext \ |
5001 | conftest$ac_exeext conftest.$ac_ext | |
c906108c | 5002 | fi |
b7026657 AC |
5003 | echo "$as_me:$LINENO: result: $gt_cv_func_gettext_libintl" >&5 |
5004 | echo "${ECHO_T}$gt_cv_func_gettext_libintl" >&6 | |
c906108c SS |
5005 | fi |
5006 | ||
5007 | fi | |
5008 | ||
5009 | if test "$gt_cv_func_gettext_libc" = "yes" \ | |
5010 | || test "$gt_cv_func_gettext_libintl" = "yes"; then | |
b7026657 | 5011 | cat >>confdefs.h <<\_ACEOF |
c906108c | 5012 | #define HAVE_GETTEXT 1 |
b7026657 | 5013 | _ACEOF |
c906108c SS |
5014 | |
5015 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
5016 | set dummy msgfmt; ac_word=$2 | |
b7026657 AC |
5017 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5018 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5019 | if test "${ac_cv_path_MSGFMT+set}" = set; then | |
5020 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c SS |
5021 | else |
5022 | case "$MSGFMT" in | |
5023 | /*) | |
5024 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
5025 | ;; | |
5026 | *) | |
5027 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
5028 | for ac_dir in $PATH; do | |
5029 | test -z "$ac_dir" && ac_dir=. | |
5030 | if test -f $ac_dir/$ac_word; then | |
5031 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then | |
5032 | ac_cv_path_MSGFMT="$ac_dir/$ac_word" | |
5033 | break | |
5034 | fi | |
5035 | fi | |
5036 | done | |
5037 | IFS="$ac_save_ifs" | |
5038 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="no" | |
5039 | ;; | |
5040 | esac | |
5041 | fi | |
5042 | MSGFMT="$ac_cv_path_MSGFMT" | |
5043 | if test -n "$MSGFMT"; then | |
b7026657 AC |
5044 | echo "$as_me:$LINENO: result: $MSGFMT" >&5 |
5045 | echo "${ECHO_T}$MSGFMT" >&6 | |
c906108c | 5046 | else |
b7026657 AC |
5047 | echo "$as_me:$LINENO: result: no" >&5 |
5048 | echo "${ECHO_T}no" >&6 | |
c906108c SS |
5049 | fi |
5050 | if test "$MSGFMT" != "no"; then | |
b7026657 AC |
5051 | |
5052 | for ac_func in dcgettext | |
c906108c | 5053 | do |
b7026657 AC |
5054 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
5055 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
5056 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
5057 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
5058 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5059 | else | |
5060 | cat >conftest.$ac_ext <<_ACEOF | |
5061 | /* confdefs.h. */ | |
5062 | _ACEOF | |
5063 | cat confdefs.h >>conftest.$ac_ext | |
5064 | cat >>conftest.$ac_ext <<_ACEOF | |
5065 | /* end confdefs.h. */ | |
5066 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
5067 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
5068 | #define $ac_func innocuous_$ac_func | |
5069 | ||
c906108c | 5070 | /* System header to define __stub macros and hopefully few prototypes, |
b7026657 AC |
5071 | which can conflict with char $ac_func (); below. |
5072 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
5073 | <limits.h> exists even on freestanding compilers. */ | |
5074 | ||
5075 | #ifdef __STDC__ | |
5076 | # include <limits.h> | |
5077 | #else | |
5078 | # include <assert.h> | |
5079 | #endif | |
c906108c | 5080 | |
b7026657 | 5081 | #undef $ac_func |
c906108c | 5082 | |
b7026657 AC |
5083 | /* Override any gcc2 internal prototype to avoid an error. */ |
5084 | #ifdef __cplusplus | |
5085 | extern "C" | |
5086 | { | |
5087 | #endif | |
5088 | /* We use char because int might match the return type of a gcc2 | |
5089 | builtin and then its argument prototype would still apply. */ | |
5090 | char $ac_func (); | |
c906108c SS |
5091 | /* The GNU C library defines this for functions which it implements |
5092 | to always fail with ENOSYS. Some functions are actually named | |
5093 | something starting with __ and the normal name is an alias. */ | |
5094 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
5095 | choke me | |
5096 | #else | |
b7026657 AC |
5097 | char (*f) () = $ac_func; |
5098 | #endif | |
5099 | #ifdef __cplusplus | |
5100 | } | |
c906108c SS |
5101 | #endif |
5102 | ||
b7026657 AC |
5103 | int |
5104 | main () | |
5105 | { | |
5106 | return f != $ac_func; | |
5107 | ; | |
5108 | return 0; | |
5109 | } | |
5110 | _ACEOF | |
5111 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5112 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5113 | (eval $ac_link) 2>conftest.er1 | |
5114 | ac_status=$? | |
5115 | grep -v '^ *+' conftest.er1 >conftest.err | |
5116 | rm -f conftest.er1 | |
5117 | cat conftest.err >&5 | |
5118 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5119 | (exit $ac_status); } && | |
5120 | { ac_try='test -z "$ac_c_werror_flag" | |
5121 | || test ! -s conftest.err' | |
5122 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5123 | (eval $ac_try) 2>&5 | |
5124 | ac_status=$? | |
5125 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5126 | (exit $ac_status); }; } && | |
5127 | { ac_try='test -s conftest$ac_exeext' | |
5128 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5129 | (eval $ac_try) 2>&5 | |
5130 | ac_status=$? | |
5131 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5132 | (exit $ac_status); }; }; then | |
5133 | eval "$as_ac_var=yes" | |
5134 | else | |
5135 | echo "$as_me: failed program was:" >&5 | |
5136 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5137 | ||
5138 | eval "$as_ac_var=no" | |
5139 | fi | |
5140 | rm -f conftest.err conftest.$ac_objext \ | |
5141 | conftest$ac_exeext conftest.$ac_ext | |
5142 | fi | |
5143 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
5144 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
5145 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
5146 | cat >>confdefs.h <<_ACEOF | |
5147 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
5148 | _ACEOF | |
c906108c | 5149 | |
c906108c SS |
5150 | fi |
5151 | done | |
5152 | ||
5153 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | |
5154 | set dummy gmsgfmt; ac_word=$2 | |
b7026657 AC |
5155 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5156 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5157 | if test "${ac_cv_path_GMSGFMT+set}" = set; then | |
5158 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 5159 | else |
b7026657 AC |
5160 | case $GMSGFMT in |
5161 | [\\/]* | ?:[\\/]*) | |
c906108c SS |
5162 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. |
5163 | ;; | |
c906108c | 5164 | *) |
b7026657 AC |
5165 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5166 | for as_dir in $PATH | |
5167 | do | |
5168 | IFS=$as_save_IFS | |
5169 | test -z "$as_dir" && as_dir=. | |
5170 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5171 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5172 | ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" | |
5173 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5174 | break 2 | |
5175 | fi | |
5176 | done | |
5177 | done | |
5178 | ||
c906108c SS |
5179 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" |
5180 | ;; | |
5181 | esac | |
5182 | fi | |
b7026657 AC |
5183 | GMSGFMT=$ac_cv_path_GMSGFMT |
5184 | ||
c906108c | 5185 | if test -n "$GMSGFMT"; then |
b7026657 AC |
5186 | echo "$as_me:$LINENO: result: $GMSGFMT" >&5 |
5187 | echo "${ECHO_T}$GMSGFMT" >&6 | |
c906108c | 5188 | else |
b7026657 AC |
5189 | echo "$as_me:$LINENO: result: no" >&5 |
5190 | echo "${ECHO_T}no" >&6 | |
c906108c SS |
5191 | fi |
5192 | ||
5193 | # Extract the first word of "xgettext", so it can be a program name with args. | |
5194 | set dummy xgettext; ac_word=$2 | |
b7026657 AC |
5195 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5196 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5197 | if test "${ac_cv_path_XGETTEXT+set}" = set; then | |
5198 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c SS |
5199 | else |
5200 | case "$XGETTEXT" in | |
5201 | /*) | |
5202 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
5203 | ;; | |
5204 | *) | |
5205 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
5206 | for ac_dir in $PATH; do | |
5207 | test -z "$ac_dir" && ac_dir=. | |
5208 | if test -f $ac_dir/$ac_word; then | |
5209 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then | |
5210 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word" | |
5211 | break | |
5212 | fi | |
5213 | fi | |
5214 | done | |
5215 | IFS="$ac_save_ifs" | |
5216 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
5217 | ;; | |
5218 | esac | |
5219 | fi | |
5220 | XGETTEXT="$ac_cv_path_XGETTEXT" | |
5221 | if test -n "$XGETTEXT"; then | |
b7026657 AC |
5222 | echo "$as_me:$LINENO: result: $XGETTEXT" >&5 |
5223 | echo "${ECHO_T}$XGETTEXT" >&6 | |
c906108c | 5224 | else |
b7026657 AC |
5225 | echo "$as_me:$LINENO: result: no" >&5 |
5226 | echo "${ECHO_T}no" >&6 | |
c906108c SS |
5227 | fi |
5228 | ||
b7026657 AC |
5229 | cat >conftest.$ac_ext <<_ACEOF |
5230 | /* confdefs.h. */ | |
5231 | _ACEOF | |
5232 | cat confdefs.h >>conftest.$ac_ext | |
5233 | cat >>conftest.$ac_ext <<_ACEOF | |
5234 | /* end confdefs.h. */ | |
c906108c | 5235 | |
b7026657 AC |
5236 | int |
5237 | main () | |
5238 | { | |
c906108c SS |
5239 | extern int _nl_msg_cat_cntr; |
5240 | return _nl_msg_cat_cntr | |
b7026657 AC |
5241 | ; |
5242 | return 0; | |
5243 | } | |
5244 | _ACEOF | |
5245 | rm -f conftest.$ac_objext conftest$ac_exeext | |
5246 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
5247 | (eval $ac_link) 2>conftest.er1 | |
5248 | ac_status=$? | |
5249 | grep -v '^ *+' conftest.er1 >conftest.err | |
5250 | rm -f conftest.er1 | |
5251 | cat conftest.err >&5 | |
5252 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5253 | (exit $ac_status); } && | |
5254 | { ac_try='test -z "$ac_c_werror_flag" | |
5255 | || test ! -s conftest.err' | |
5256 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5257 | (eval $ac_try) 2>&5 | |
5258 | ac_status=$? | |
5259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5260 | (exit $ac_status); }; } && | |
5261 | { ac_try='test -s conftest$ac_exeext' | |
5262 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5263 | (eval $ac_try) 2>&5 | |
5264 | ac_status=$? | |
5265 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5266 | (exit $ac_status); }; }; then | |
c906108c SS |
5267 | CATOBJEXT=.gmo |
5268 | DATADIRNAME=share | |
5269 | else | |
b7026657 AC |
5270 | echo "$as_me: failed program was:" >&5 |
5271 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5272 | ||
5273 | CATOBJEXT=.mo | |
c906108c SS |
5274 | DATADIRNAME=lib |
5275 | fi | |
b7026657 AC |
5276 | rm -f conftest.err conftest.$ac_objext \ |
5277 | conftest$ac_exeext conftest.$ac_ext | |
c906108c SS |
5278 | INSTOBJEXT=.mo |
5279 | fi | |
5280 | fi | |
b7026657 | 5281 | |
c906108c SS |
5282 | fi |
5283 | ||
5284 | ||
b7026657 AC |
5285 | |
5286 | ||
c906108c SS |
5287 | if test "$CATOBJEXT" = "NONE"; then |
5288 | nls_cv_use_gnu_gettext=yes | |
5289 | fi | |
5290 | fi | |
5291 | ||
5292 | if test "$nls_cv_use_gnu_gettext" = "yes"; then | |
5293 | INTLOBJS="\$(GETTOBJS)" | |
5294 | # Extract the first word of "msgfmt", so it can be a program name with args. | |
5295 | set dummy msgfmt; ac_word=$2 | |
b7026657 AC |
5296 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5297 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5298 | if test "${ac_cv_path_MSGFMT+set}" = set; then | |
5299 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c SS |
5300 | else |
5301 | case "$MSGFMT" in | |
5302 | /*) | |
5303 | ac_cv_path_MSGFMT="$MSGFMT" # Let the user override the test with a path. | |
5304 | ;; | |
5305 | *) | |
5306 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
5307 | for ac_dir in $PATH; do | |
5308 | test -z "$ac_dir" && ac_dir=. | |
5309 | if test -f $ac_dir/$ac_word; then | |
5310 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep 'dv '`"; then | |
5311 | ac_cv_path_MSGFMT="$ac_dir/$ac_word" | |
5312 | break | |
5313 | fi | |
5314 | fi | |
5315 | done | |
5316 | IFS="$ac_save_ifs" | |
5317 | test -z "$ac_cv_path_MSGFMT" && ac_cv_path_MSGFMT="msgfmt" | |
5318 | ;; | |
5319 | esac | |
5320 | fi | |
5321 | MSGFMT="$ac_cv_path_MSGFMT" | |
5322 | if test -n "$MSGFMT"; then | |
b7026657 AC |
5323 | echo "$as_me:$LINENO: result: $MSGFMT" >&5 |
5324 | echo "${ECHO_T}$MSGFMT" >&6 | |
c906108c | 5325 | else |
b7026657 AC |
5326 | echo "$as_me:$LINENO: result: no" >&5 |
5327 | echo "${ECHO_T}no" >&6 | |
c906108c SS |
5328 | fi |
5329 | ||
5330 | # Extract the first word of "gmsgfmt", so it can be a program name with args. | |
5331 | set dummy gmsgfmt; ac_word=$2 | |
b7026657 AC |
5332 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5333 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5334 | if test "${ac_cv_path_GMSGFMT+set}" = set; then | |
5335 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 5336 | else |
b7026657 AC |
5337 | case $GMSGFMT in |
5338 | [\\/]* | ?:[\\/]*) | |
c906108c SS |
5339 | ac_cv_path_GMSGFMT="$GMSGFMT" # Let the user override the test with a path. |
5340 | ;; | |
c906108c | 5341 | *) |
b7026657 AC |
5342 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
5343 | for as_dir in $PATH | |
5344 | do | |
5345 | IFS=$as_save_IFS | |
5346 | test -z "$as_dir" && as_dir=. | |
5347 | for ac_exec_ext in '' $ac_executable_extensions; do | |
5348 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
5349 | ac_cv_path_GMSGFMT="$as_dir/$ac_word$ac_exec_ext" | |
5350 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
5351 | break 2 | |
5352 | fi | |
5353 | done | |
5354 | done | |
5355 | ||
c906108c SS |
5356 | test -z "$ac_cv_path_GMSGFMT" && ac_cv_path_GMSGFMT="$MSGFMT" |
5357 | ;; | |
5358 | esac | |
5359 | fi | |
b7026657 AC |
5360 | GMSGFMT=$ac_cv_path_GMSGFMT |
5361 | ||
c906108c | 5362 | if test -n "$GMSGFMT"; then |
b7026657 AC |
5363 | echo "$as_me:$LINENO: result: $GMSGFMT" >&5 |
5364 | echo "${ECHO_T}$GMSGFMT" >&6 | |
c906108c | 5365 | else |
b7026657 AC |
5366 | echo "$as_me:$LINENO: result: no" >&5 |
5367 | echo "${ECHO_T}no" >&6 | |
c906108c SS |
5368 | fi |
5369 | ||
5370 | # Extract the first word of "xgettext", so it can be a program name with args. | |
5371 | set dummy xgettext; ac_word=$2 | |
b7026657 AC |
5372 | echo "$as_me:$LINENO: checking for $ac_word" >&5 |
5373 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
5374 | if test "${ac_cv_path_XGETTEXT+set}" = set; then | |
5375 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c SS |
5376 | else |
5377 | case "$XGETTEXT" in | |
5378 | /*) | |
5379 | ac_cv_path_XGETTEXT="$XGETTEXT" # Let the user override the test with a path. | |
5380 | ;; | |
5381 | *) | |
5382 | IFS="${IFS= }"; ac_save_ifs="$IFS"; IFS="${IFS}:" | |
5383 | for ac_dir in $PATH; do | |
5384 | test -z "$ac_dir" && ac_dir=. | |
5385 | if test -f $ac_dir/$ac_word; then | |
5386 | if test -z "`$ac_dir/$ac_word -h 2>&1 | grep '(HELP)'`"; then | |
5387 | ac_cv_path_XGETTEXT="$ac_dir/$ac_word" | |
5388 | break | |
5389 | fi | |
5390 | fi | |
5391 | done | |
5392 | IFS="$ac_save_ifs" | |
5393 | test -z "$ac_cv_path_XGETTEXT" && ac_cv_path_XGETTEXT=":" | |
5394 | ;; | |
5395 | esac | |
5396 | fi | |
5397 | XGETTEXT="$ac_cv_path_XGETTEXT" | |
5398 | if test -n "$XGETTEXT"; then | |
b7026657 AC |
5399 | echo "$as_me:$LINENO: result: $XGETTEXT" >&5 |
5400 | echo "${ECHO_T}$XGETTEXT" >&6 | |
c906108c | 5401 | else |
b7026657 AC |
5402 | echo "$as_me:$LINENO: result: no" >&5 |
5403 | echo "${ECHO_T}no" >&6 | |
c906108c SS |
5404 | fi |
5405 | ||
b7026657 | 5406 | |
c906108c SS |
5407 | USE_INCLUDED_LIBINTL=yes |
5408 | CATOBJEXT=.gmo | |
5409 | INSTOBJEXT=.mo | |
5410 | DATADIRNAME=share | |
5411 | INTLDEPS='$(top_builddir)/../intl/libintl.a' | |
5412 | INTLLIBS=$INTLDEPS | |
5413 | LIBS=`echo $LIBS | sed -e 's/-lintl//'` | |
5414 | nls_cv_header_intl=libintl.h | |
5415 | nls_cv_header_libgt=libgettext.h | |
5416 | fi | |
5417 | ||
5418 | if test "$XGETTEXT" != ":"; then | |
5419 | if $XGETTEXT --omit-header /dev/null 2> /dev/null; then | |
5420 | : ; | |
5421 | else | |
b7026657 AC |
5422 | echo "$as_me:$LINENO: result: found xgettext programs is not GNU xgettext; ignore it" >&5 |
5423 | echo "${ECHO_T}found xgettext programs is not GNU xgettext; ignore it" >&6 | |
c906108c SS |
5424 | XGETTEXT=":" |
5425 | fi | |
5426 | fi | |
5427 | ||
5428 | # We need to process the po/ directory. | |
5429 | POSUB=po | |
5430 | else | |
5431 | DATADIRNAME=share | |
5432 | nls_cv_header_intl=libintl.h | |
5433 | nls_cv_header_libgt=libgettext.h | |
5434 | fi | |
5435 | ||
5436 | # If this is used in GNU gettext we have to set USE_NLS to `yes' | |
5437 | # because some of the sources are only built for this goal. | |
5438 | if test "$PACKAGE" = gettext; then | |
5439 | USE_NLS=yes | |
5440 | USE_INCLUDED_LIBINTL=yes | |
5441 | fi | |
5442 | ||
5443 | for lang in $ALL_LINGUAS; do | |
5444 | GMOFILES="$GMOFILES $lang.gmo" | |
5445 | POFILES="$POFILES $lang.po" | |
5446 | done | |
5447 | ||
b7026657 AC |
5448 | |
5449 | ||
5450 | ||
5451 | ||
5452 | ||
5453 | ||
5454 | ||
5455 | ||
5456 | ||
5457 | ||
5458 | ||
5459 | ||
c906108c SS |
5460 | |
5461 | if test "x$CATOBJEXT" != "x"; then | |
5462 | if test "x$ALL_LINGUAS" = "x"; then | |
5463 | LINGUAS= | |
5464 | else | |
b7026657 AC |
5465 | echo "$as_me:$LINENO: checking for catalogs to be installed" >&5 |
5466 | echo $ECHO_N "checking for catalogs to be installed... $ECHO_C" >&6 | |
c906108c SS |
5467 | NEW_LINGUAS= |
5468 | for lang in ${LINGUAS=$ALL_LINGUAS}; do | |
5469 | case "$ALL_LINGUAS" in | |
5470 | *$lang*) NEW_LINGUAS="$NEW_LINGUAS $lang" ;; | |
5471 | esac | |
5472 | done | |
5473 | LINGUAS=$NEW_LINGUAS | |
b7026657 AC |
5474 | echo "$as_me:$LINENO: result: $LINGUAS" >&5 |
5475 | echo "${ECHO_T}$LINGUAS" >&6 | |
c906108c SS |
5476 | fi |
5477 | ||
5478 | if test -n "$LINGUAS"; then | |
5479 | for lang in $LINGUAS; do CATALOGS="$CATALOGS $lang$CATOBJEXT"; done | |
5480 | fi | |
5481 | fi | |
5482 | ||
5483 | if test $ac_cv_header_locale_h = yes; then | |
5484 | INCLUDE_LOCALE_H="#include <locale.h>" | |
5485 | else | |
5486 | INCLUDE_LOCALE_H="\ | |
5487 | /* The system does not provide the header <locale.h>. Take care yourself. */" | |
5488 | fi | |
b7026657 | 5489 | |
c906108c SS |
5490 | |
5491 | if test -f $srcdir/po2tbl.sed.in; then | |
5492 | if test "$CATOBJEXT" = ".cat"; then | |
b7026657 AC |
5493 | if test "${ac_cv_header_linux_version_h+set}" = set; then |
5494 | echo "$as_me:$LINENO: checking for linux/version.h" >&5 | |
5495 | echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6 | |
5496 | if test "${ac_cv_header_linux_version_h+set}" = set; then | |
5497 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5498 | fi | |
5499 | echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5 | |
5500 | echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6 | |
5501 | else | |
5502 | # Is the header compilable? | |
5503 | echo "$as_me:$LINENO: checking linux/version.h usability" >&5 | |
5504 | echo $ECHO_N "checking linux/version.h usability... $ECHO_C" >&6 | |
5505 | cat >conftest.$ac_ext <<_ACEOF | |
5506 | /* confdefs.h. */ | |
5507 | _ACEOF | |
5508 | cat confdefs.h >>conftest.$ac_ext | |
5509 | cat >>conftest.$ac_ext <<_ACEOF | |
5510 | /* end confdefs.h. */ | |
5511 | $ac_includes_default | |
c906108c | 5512 | #include <linux/version.h> |
b7026657 AC |
5513 | _ACEOF |
5514 | rm -f conftest.$ac_objext | |
5515 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
5516 | (eval $ac_compile) 2>conftest.er1 | |
5517 | ac_status=$? | |
5518 | grep -v '^ *+' conftest.er1 >conftest.err | |
5519 | rm -f conftest.er1 | |
5520 | cat conftest.err >&5 | |
5521 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5522 | (exit $ac_status); } && | |
5523 | { ac_try='test -z "$ac_c_werror_flag" | |
5524 | || test ! -s conftest.err' | |
5525 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5526 | (eval $ac_try) 2>&5 | |
5527 | ac_status=$? | |
5528 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5529 | (exit $ac_status); }; } && | |
5530 | { ac_try='test -s conftest.$ac_objext' | |
5531 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
5532 | (eval $ac_try) 2>&5 | |
5533 | ac_status=$? | |
5534 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5535 | (exit $ac_status); }; }; then | |
5536 | ac_header_compiler=yes | |
5537 | else | |
5538 | echo "$as_me: failed program was:" >&5 | |
5539 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5540 | ||
5541 | ac_header_compiler=no | |
5542 | fi | |
5543 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
5544 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
5545 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
5546 | ||
5547 | # Is the header present? | |
5548 | echo "$as_me:$LINENO: checking linux/version.h presence" >&5 | |
5549 | echo $ECHO_N "checking linux/version.h presence... $ECHO_C" >&6 | |
5550 | cat >conftest.$ac_ext <<_ACEOF | |
5551 | /* confdefs.h. */ | |
5552 | _ACEOF | |
5553 | cat confdefs.h >>conftest.$ac_ext | |
5554 | cat >>conftest.$ac_ext <<_ACEOF | |
5555 | /* end confdefs.h. */ | |
5556 | #include <linux/version.h> | |
5557 | _ACEOF | |
5558 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
5559 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
5560 | ac_status=$? | |
5561 | grep -v '^ *+' conftest.er1 >conftest.err | |
5562 | rm -f conftest.er1 | |
5563 | cat conftest.err >&5 | |
5564 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
5565 | (exit $ac_status); } >/dev/null; then | |
5566 | if test -s conftest.err; then | |
5567 | ac_cpp_err=$ac_c_preproc_warn_flag | |
5568 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
5569 | else | |
5570 | ac_cpp_err= | |
5571 | fi | |
5572 | else | |
5573 | ac_cpp_err=yes | |
c906108c | 5574 | fi |
b7026657 AC |
5575 | if test -z "$ac_cpp_err"; then |
5576 | ac_header_preproc=yes | |
5577 | else | |
5578 | echo "$as_me: failed program was:" >&5 | |
5579 | sed 's/^/| /' conftest.$ac_ext >&5 | |
5580 | ||
5581 | ac_header_preproc=no | |
5582 | fi | |
5583 | rm -f conftest.err conftest.$ac_ext | |
5584 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
5585 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
5586 | ||
5587 | # So? What about this header? | |
5588 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
5589 | yes:no: ) | |
5590 | { echo "$as_me:$LINENO: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&5 | |
5591 | echo "$as_me: WARNING: linux/version.h: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
5592 | { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the compiler's result" >&5 | |
5593 | echo "$as_me: WARNING: linux/version.h: proceeding with the compiler's result" >&2;} | |
5594 | ac_header_preproc=yes | |
5595 | ;; | |
5596 | no:yes:* ) | |
5597 | { echo "$as_me:$LINENO: WARNING: linux/version.h: present but cannot be compiled" >&5 | |
5598 | echo "$as_me: WARNING: linux/version.h: present but cannot be compiled" >&2;} | |
5599 | { echo "$as_me:$LINENO: WARNING: linux/version.h: check for missing prerequisite headers?" >&5 | |
5600 | echo "$as_me: WARNING: linux/version.h: check for missing prerequisite headers?" >&2;} | |
5601 | { echo "$as_me:$LINENO: WARNING: linux/version.h: see the Autoconf documentation" >&5 | |
5602 | echo "$as_me: WARNING: linux/version.h: see the Autoconf documentation" >&2;} | |
5603 | { echo "$as_me:$LINENO: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&5 | |
5604 | echo "$as_me: WARNING: linux/version.h: section \"Present But Cannot Be Compiled\"" >&2;} | |
5605 | { echo "$as_me:$LINENO: WARNING: linux/version.h: proceeding with the preprocessor's result" >&5 | |
5606 | echo "$as_me: WARNING: linux/version.h: proceeding with the preprocessor's result" >&2;} | |
5607 | { echo "$as_me:$LINENO: WARNING: linux/version.h: in the future, the compiler will take precedence" >&5 | |
5608 | echo "$as_me: WARNING: linux/version.h: in the future, the compiler will take precedence" >&2;} | |
5609 | ( | |
5610 | cat <<\_ASBOX | |
5611 | ## ------------------------------------------ ## | |
5612 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
5613 | ## ------------------------------------------ ## | |
5614 | _ASBOX | |
5615 | ) | | |
5616 | sed "s/^/$as_me: WARNING: /" >&2 | |
5617 | ;; | |
5618 | esac | |
5619 | echo "$as_me:$LINENO: checking for linux/version.h" >&5 | |
5620 | echo $ECHO_N "checking for linux/version.h... $ECHO_C" >&6 | |
5621 | if test "${ac_cv_header_linux_version_h+set}" = set; then | |
5622 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5623 | else | |
5624 | ac_cv_header_linux_version_h=$ac_header_preproc | |
5625 | fi | |
5626 | echo "$as_me:$LINENO: result: $ac_cv_header_linux_version_h" >&5 | |
5627 | echo "${ECHO_T}$ac_cv_header_linux_version_h" >&6 | |
5628 | ||
c906108c | 5629 | fi |
b7026657 | 5630 | if test $ac_cv_header_linux_version_h = yes; then |
c906108c SS |
5631 | msgformat=linux |
5632 | else | |
b7026657 | 5633 | msgformat=xopen |
c906108c SS |
5634 | fi |
5635 | ||
5636 | ||
b7026657 | 5637 | |
c906108c SS |
5638 | sed -e '/^#/d' $srcdir/$msgformat-msg.sed > po2msg.sed |
5639 | fi | |
5640 | sed -e '/^#.*[^\\]$/d' -e '/^#$/d' \ | |
5641 | $srcdir/po2tbl.sed.in > po2tbl.sed | |
5642 | fi | |
5643 | ||
5644 | if test "$PACKAGE" = "gettext"; then | |
5645 | GT_NO="#NO#" | |
5646 | GT_YES= | |
5647 | else | |
5648 | GT_NO= | |
5649 | GT_YES="#YES#" | |
5650 | fi | |
b7026657 AC |
5651 | |
5652 | ||
c906108c SS |
5653 | |
5654 | MKINSTALLDIRS="\$(srcdir)/../../mkinstalldirs" | |
b7026657 | 5655 | |
c906108c SS |
5656 | |
5657 | l= | |
b7026657 | 5658 | |
c906108c SS |
5659 | |
5660 | if test -d $srcdir/po; then | |
5661 | test -d po || mkdir po | |
5662 | if test "x$srcdir" != "x."; then | |
5663 | if test "x`echo $srcdir | sed 's@/.*@@'`" = "x"; then | |
5664 | posrcprefix="$srcdir/" | |
5665 | else | |
5666 | posrcprefix="../$srcdir/" | |
5667 | fi | |
5668 | else | |
5669 | posrcprefix="../" | |
5670 | fi | |
5671 | rm -f po/POTFILES | |
5672 | sed -e "/^#/d" -e "/^\$/d" -e "s,.*, $posrcprefix& \\\\," -e "\$s/\(.*\) \\\\/\1/" \ | |
5673 | < $srcdir/po/POTFILES.in > po/POTFILES | |
5674 | fi | |
b7026657 | 5675 | |
c906108c SS |
5676 | |
5677 | ||
5678 | # Check whether --enable-sim-alignment or --disable-sim-alignment was given. | |
5679 | if test "${enable_sim_alignment+set}" = set; then | |
5680 | enableval="$enable_sim_alignment" | |
5681 | case "${enableval}" in | |
5682 | yes | strict | STRICT) sim_alignment="-DWITH_ALIGNMENT=STRICT_ALIGNMENT";; | |
5683 | no | nonstrict | NONSTRICT) sim_alignment="-DWITH_ALIGNMENT=NONSTRICT_ALIGNMENT";; | |
5684 | 0 | default | DEFAULT) sim_alignment="-DWITH_ALIGNMENT=0";; | |
b7026657 AC |
5685 | *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-alignment\"" >&5 |
5686 | echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-alignment\"" >&2;} | |
5687 | { (exit 1); exit 1; }; }; sim_alignment="";; | |
c906108c SS |
5688 | esac |
5689 | if test x"$silent" != x"yes" && test x"$sim_alignment" != x""; then | |
5690 | echo "Setting alignment flags = $sim_alignment" 6>&1 | |
5691 | fi | |
5692 | else | |
5693 | sim_alignment="" | |
b7026657 | 5694 | fi; |
c906108c SS |
5695 | |
5696 | # Check whether --enable-sim-assert or --disable-sim-assert was given. | |
5697 | if test "${enable_sim_assert+set}" = set; then | |
5698 | enableval="$enable_sim_assert" | |
5699 | case "${enableval}" in | |
5700 | yes) sim_assert="-DWITH_ASSERT=1";; | |
5701 | no) sim_assert="-DWITH_ASSERT=0";; | |
b7026657 AC |
5702 | *) { { echo "$as_me:$LINENO: error: \"--enable-sim-assert does not take a value\"" >&5 |
5703 | echo "$as_me: error: \"--enable-sim-assert does not take a value\"" >&2;} | |
5704 | { (exit 1); exit 1; }; }; sim_assert="";; | |
c906108c SS |
5705 | esac |
5706 | if test x"$silent" != x"yes" && test x"$sim_assert" != x""; then | |
5707 | echo "Setting assert flags = $sim_assert" 6>&1 | |
5708 | fi | |
5709 | else | |
5710 | sim_assert="" | |
b7026657 | 5711 | fi; |
c906108c SS |
5712 | |
5713 | # Check whether --enable-sim-bitsize or --disable-sim-bitsize was given. | |
5714 | if test "${enable_sim_bitsize+set}" = set; then | |
5715 | enableval="$enable_sim_bitsize" | |
5716 | case "${enableval}" in | |
5717 | 32|64) sim_bitsize="-DWITH_TARGET_WORD_BITSIZE=$enableval";; | |
b7026657 AC |
5718 | *) { { echo "$as_me:$LINENO: error: \"--enable-sim-bitsize was given $enableval. Expected 32 or 64\"" >&5 |
5719 | echo "$as_me: error: \"--enable-sim-bitsize was given $enableval. Expected 32 or 64\"" >&2;} | |
5720 | { (exit 1); exit 1; }; }; sim_bitsize="";; | |
c906108c SS |
5721 | esac |
5722 | if test x"$silent" != x"yes" && test x"$sim_bitsize" != x""; then | |
5723 | echo "Setting bitsize flags = $sim_bitsize" 6>&1 | |
5724 | fi | |
5725 | else | |
5726 | sim_bitsize="" | |
b7026657 | 5727 | fi; |
c906108c SS |
5728 | |
5729 | # Check whether --enable-sim-bswap or --disable-sim-bswap was given. | |
5730 | if test "${enable_sim_bswap+set}" = set; then | |
5731 | enableval="$enable_sim_bswap" | |
5732 | case "${enableval}" in | |
5733 | yes) sim_bswap="-DWITH_BSWAP=1";; | |
5734 | no) sim_bswap="-DWITH_BSWAP=0";; | |
b7026657 AC |
5735 | *) { { echo "$as_me:$LINENO: error: \"--enable-sim-bswap does not take a value\"" >&5 |
5736 | echo "$as_me: error: \"--enable-sim-bswap does not take a value\"" >&2;} | |
5737 | { (exit 1); exit 1; }; }; sim_bswap="";; | |
c906108c SS |
5738 | esac |
5739 | if test x"$silent" != x"yes" && test x"$sim_bswap" != x""; then | |
5740 | echo "Setting bswap flags = $sim_bswap" 6>&1 | |
5741 | fi | |
5742 | else | |
5743 | sim_bswap="" | |
b7026657 | 5744 | fi; |
c906108c SS |
5745 | |
5746 | # Check whether --enable-sim-cflags or --disable-sim-cflags was given. | |
5747 | if test "${enable_sim_cflags+set}" = set; then | |
5748 | enableval="$enable_sim_cflags" | |
5749 | case "${enableval}" in | |
5750 | yes) sim_cflags="-O2 -fomit-frame-pointer";; | |
5751 | no) sim_cflags="";; | |
5752 | *) sim_cflags=`echo "${enableval}" | sed -e "s/,/ /g"`;; | |
5753 | esac | |
5754 | if test x"$silent" != x"yes" && test x"$sim_cflags" != x""; then | |
5755 | echo "Setting sim cflags = $sim_cflags" 6>&1 | |
5756 | fi | |
5757 | else | |
5758 | sim_cflags="" | |
b7026657 | 5759 | fi; |
c906108c SS |
5760 | |
5761 | # Check whether --enable-sim-config or --disable-sim-config was given. | |
5762 | if test "${enable_sim_config+set}" = set; then | |
5763 | enableval="$enable_sim_config" | |
5764 | case "${enableval}" in | |
b7026657 AC |
5765 | yes|no) { { echo "$as_me:$LINENO: error: \"No value supplied for --enable-sim-config=file\"" >&5 |
5766 | echo "$as_me: error: \"No value supplied for --enable-sim-config=file\"" >&2;} | |
5767 | { (exit 1); exit 1; }; };; | |
c906108c SS |
5768 | *) if test -f "${srcdir}/${enableval}"; then |
5769 | sim_config="${enableval}"; | |
5770 | elif test -f "${srcdir}/${enableval}-config.h"; then | |
5771 | sim_config="${enableval}-config.h" | |
5772 | else | |
b7026657 AC |
5773 | { { echo "$as_me:$LINENO: error: \"Config file $enableval was not found\"" >&5 |
5774 | echo "$as_me: error: \"Config file $enableval was not found\"" >&2;} | |
5775 | { (exit 1); exit 1; }; }; | |
c906108c SS |
5776 | sim_config=std-config.h |
5777 | fi;; | |
5778 | esac | |
5779 | if test x"$silent" != x"yes" && test x"$sim_config" != x""; then | |
5780 | echo "Setting config flags = $sim_config" 6>&1 | |
5781 | fi | |
5782 | else | |
5783 | sim_config="std-config.h" | |
5784 | if test x"$silent" != x"yes"; then | |
5785 | echo "Setting config flags = $sim_config" 6>&1 | |
5786 | fi | |
b7026657 | 5787 | fi; |
c906108c SS |
5788 | |
5789 | # Check whether --enable-sim-decode-mechanism or --disable-sim-decode-mechanism was given. | |
5790 | if test "${enable_sim_decode_mechanism+set}" = set; then | |
5791 | enableval="$enable_sim_decode_mechanism" | |
5792 | case "${enableval}" in | |
b7026657 AC |
5793 | yes|no) { { echo "$as_me:$LINENO: error: \"No value supplied for --enable-sim-decode-mechanism=file\"" >&5 |
5794 | echo "$as_me: error: \"No value supplied for --enable-sim-decode-mechanism=file\"" >&2;} | |
5795 | { (exit 1); exit 1; }; };; | |
c906108c | 5796 | array|switch|padded-switch|goto-switch) sim_decode_mechanism="-T ${enableval}";; |
b7026657 AC |
5797 | *) { { echo "$as_me:$LINENO: error: \"File $enableval is not an opcode rules file\"" >&5 |
5798 | echo "$as_me: error: \"File $enableval is not an opcode rules file\"" >&2;} | |
5799 | { (exit 1); exit 1; }; }; | |
c906108c SS |
5800 | sim_decode_mechanism="switch";; |
5801 | esac | |
5802 | if test x"$silent" != x"yes" && test x"$sim_decode_mechanism" != x""; then | |
5803 | echo "Setting decode mechanism flags = $sim_decode_mechanism" 6>&1 | |
5804 | fi | |
5805 | else | |
5806 | sim_decode_mechanism="" | |
5807 | if test x"$silent" != x"yes"; then | |
5808 | echo "Setting decode mechanism flags = $sim_decode_mechanism" | |
5809 | fi | |
b7026657 | 5810 | fi; |
c906108c SS |
5811 | |
5812 | # Check whether --enable-sim-default-model or --disable-sim-default-model was given. | |
5813 | if test "${enable_sim_default_model+set}" = set; then | |
5814 | enableval="$enable_sim_default_model" | |
5815 | case "${enableval}" in | |
b7026657 AC |
5816 | yes|no) { { echo "$as_me:$LINENO: error: \"No value supplied for --enable-sim-default-model=model\"" >&5 |
5817 | echo "$as_me: error: \"No value supplied for --enable-sim-default-model=model\"" >&2;} | |
5818 | { (exit 1); exit 1; }; };; | |
c906108c SS |
5819 | *) sim_default_model="-DWITH_DEFAULT_MODEL=${enableval}";; |
5820 | esac | |
5821 | if test x"$silent" != x"yes" && test x"$sim_default_model" != x""; then | |
5822 | echo "Setting default-model flags = $sim_default_model" 6>&1 | |
5823 | fi | |
5824 | else | |
5825 | sim_default_model="" | |
b7026657 | 5826 | fi; |
c906108c SS |
5827 | |
5828 | # Check whether --enable-sim-duplicate or --disable-sim-duplicate was given. | |
5829 | if test "${enable_sim_duplicate+set}" = set; then | |
5830 | enableval="$enable_sim_duplicate" | |
5831 | case "${enableval}" in | |
5832 | yes) sim_dup="-E";; | |
5833 | no) sim_dup="";; | |
b7026657 AC |
5834 | *) { { echo "$as_me:$LINENO: error: \"--enable-sim-duplicate does not take a value\"" >&5 |
5835 | echo "$as_me: error: \"--enable-sim-duplicate does not take a value\"" >&2;} | |
5836 | { (exit 1); exit 1; }; }; sim_dup="";; | |
c906108c SS |
5837 | esac |
5838 | if test x"$silent" != x"yes" && test x"$sim_dup" != x""; then | |
5839 | echo "Setting duplicate flags = $sim_dup" 6>&1 | |
5840 | fi | |
5841 | else | |
5842 | sim_dup="-E" | |
5843 | if test x"$silent" != x"yes"; then | |
5844 | echo "Setting duplicate flags = $sim_dup" 6>&1 | |
5845 | fi | |
b7026657 | 5846 | fi; |
c906108c SS |
5847 | |
5848 | # Check whether --enable-sim-endian or --disable-sim-endian was given. | |
5849 | if test "${enable_sim_endian+set}" = set; then | |
5850 | enableval="$enable_sim_endian" | |
5851 | case "${enableval}" in | |
5852 | yes) case "$target" in | |
5853 | *powerpc-*) sim_endian="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN";; | |
5854 | *powerpcle-*) sim_endian="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";; | |
5855 | *) echo "Unknown target $target" 1>&6; sim_endian="-DWITH_TARGET_BYTE_ORDER=0";; | |
5856 | esac;; | |
5857 | no) sim_endian="-DWITH_TARGET_BYTE_ORDER=0";; | |
5858 | b*|B*) sim_endian="-DWITH_TARGET_BYTE_ORDER=BIG_ENDIAN";; | |
5859 | l*|L*) sim_endian="-DWITH_TARGET_BYTE_ORDER=LITTLE_ENDIAN";; | |
b7026657 AC |
5860 | *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval for --enable-sim-endian\"" >&5 |
5861 | echo "$as_me: error: \"Unknown value $enableval for --enable-sim-endian\"" >&2;} | |
5862 | { (exit 1); exit 1; }; }; sim_endian="";; | |
c906108c SS |
5863 | esac |
5864 | if test x"$silent" != x"yes" && test x"$sim_endian" != x""; then | |
5865 | echo "Setting endian flags = $sim_endian" 6>&1 | |
5866 | fi | |
5867 | else | |
5868 | sim_endian="" | |
b7026657 | 5869 | fi; |
c906108c SS |
5870 | |
5871 | # Check whether --enable-sim-env or --disable-sim-env was given. | |
5872 | if test "${enable_sim_env+set}" = set; then | |
5873 | enableval="$enable_sim_env" | |
5874 | case "${enableval}" in | |
5875 | operating | os | oea) sim_env="-DWITH_ENVIRONMENT=OPERATING_ENVIRONMENT";; | |
5876 | virtual | vea) sim_env="-DWITH_ENVIRONMENT=VIRTUAL_ENVIRONMENT";; | |
5877 | user | uea) sim_env="-DWITH_ENVIRONMENT=USER_ENVIRONMENT";; | |
5878 | no) sim_env="-DWITH_ENVIRONMENT=0";; | |
b7026657 AC |
5879 | *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-env\"" >&5 |
5880 | echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-env\"" >&2;} | |
5881 | { (exit 1); exit 1; }; }; sim_env="";; | |
c906108c SS |
5882 | esac |
5883 | if test x"$silent" != x"yes" && test x"$sim_env" != x""; then | |
5884 | echo "Setting env flags = $sim_env" 6>&1 | |
5885 | fi | |
5886 | else | |
5887 | sim_env="" | |
b7026657 | 5888 | fi; |
c906108c SS |
5889 | |
5890 | # Check whether --enable-sim-filter or --disable-sim-filter was given. | |
5891 | if test "${enable_sim_filter+set}" = set; then | |
5892 | enableval="$enable_sim_filter" | |
5893 | case "${enableval}" in | |
b7026657 AC |
5894 | yes) { { echo "$as_me:$LINENO: error: \"--enable-sim-filter must be specified with a rule to filter or no\"" >&5 |
5895 | echo "$as_me: error: \"--enable-sim-filter must be specified with a rule to filter or no\"" >&2;} | |
5896 | { (exit 1); exit 1; }; }; sim_filter="";; | |
c906108c SS |
5897 | no) sim_filter="";; |
5898 | *) sim_filter="-F $enableval";; | |
5899 | esac | |
5900 | if test x"$silent" != x"yes" && test x"$sim_filter" != x""; then | |
5901 | echo "Setting filter flags = $sim_filter" 6>&1 | |
5902 | fi | |
5903 | else | |
5904 | sim_filter="-F 32,f,o" | |
5905 | if test x"$silent" != x"yes"; then | |
5906 | echo "Setting filter flags = $sim_filter" 6>&1 | |
5907 | fi | |
b7026657 | 5908 | fi; |
c906108c SS |
5909 | |
5910 | # Check whether --enable-sim-float or --disable-sim-float was given. | |
5911 | if test "${enable_sim_float+set}" = set; then | |
5912 | enableval="$enable_sim_float" | |
5913 | case "${enableval}" in | |
5914 | yes | hard) sim_float="-DWITH_FLOATING_POINT=HARD_FLOATING_POINT";; | |
5915 | no | soft) sim_float="-DWITH_FLOATING_POINT=SOFT_FLOATING_POINT";; | |
345d88d9 AC |
5916 | altivec) sim_float="-DWITH_ALTIVEC" ; sim_filter="${sim_filter},av" ;; |
5917 | *spe*|*simd*) sim_float="-DWITH_E500" ; sim_filter="${sim_filter},e500" ;; | |
b7026657 AC |
5918 | *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-float\"" >&5 |
5919 | echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-float\"" >&2;} | |
5920 | { (exit 1); exit 1; }; }; sim_float="";; | |
c906108c SS |
5921 | esac |
5922 | if test x"$silent" != x"yes" && test x"$sim_float" != x""; then | |
5923 | echo "Setting float flags = $sim_float" 6>&1 | |
5924 | fi | |
5925 | else | |
b7026657 | 5926 | |
345d88d9 AC |
5927 | case "${target}" in |
5928 | *altivec*) sim_float="-DWITH_ALTIVEC" ; sim_filter="${sim_filter},av" ;; | |
5929 | *spe*|*simd*) sim_float="-DWITH_E500" ; sim_filter="${sim_filter},e500" ;; | |
5930 | *) sim_float="" | |
5931 | esac | |
5932 | ||
b7026657 | 5933 | fi; |
c906108c SS |
5934 | |
5935 | # Check whether --enable-sim-hardware or --disable-sim-hardware was given. | |
5936 | if test "${enable_sim_hardware+set}" = set; then | |
5937 | enableval="$enable_sim_hardware" | |
5938 | hardware="cpu,memory,nvram,iobus,htab,disk,trace,register,vm,init,core,pal,com,eeprom,opic,glue,phb,ide" | |
5939 | case "${enableval}" in | |
5940 | yes) ;; | |
b7026657 AC |
5941 | no) { { echo "$as_me:$LINENO: error: \"List of hardware must be specified for --enable-sim-hardware\"" >&5 |
5942 | echo "$as_me: error: \"List of hardware must be specified for --enable-sim-hardware\"" >&2;} | |
5943 | { (exit 1); exit 1; }; }; hardware="";; | |
c906108c SS |
5944 | ,*) hardware="${hardware}${enableval}";; |
5945 | *,) hardware="${enableval}${hardware}";; | |
5946 | *) hardware="${enableval}"'';; | |
5947 | esac | |
5948 | sim_hw_src=`echo $hardware | sed -e 's/,/.c hw_/g' -e 's/^/hw_/' -e s'/$/.c/'` | |
5949 | sim_hw_obj=`echo $sim_hw_src | sed -e 's/\.c/.o/g'` | |
5950 | if test x"$silent" != x"yes" && test x"$hardware" != x""; then | |
5951 | echo "Setting hardware to $sim_hw_src, $sim_hw_obj" | |
5952 | fi | |
5953 | else | |
5954 | hardware="cpu,memory,nvram,iobus,htab,disk,trace,register,vm,init,core,pal,com,eeprom,opic,glue,phb,ide" | |
5955 | sim_hw_src=`echo $hardware | sed -e 's/,/.c hw_/g' -e 's/^/hw_/' -e s'/$/.c/'` | |
5956 | sim_hw_obj=`echo $sim_hw_src | sed -e 's/\.c/.o/g'` | |
5957 | if test x"$silent" != x"yes"; then | |
5958 | echo "Setting hardware to $sim_hw_src, $sim_hw_obj" | |
5959 | fi | |
b7026657 | 5960 | fi; |
c906108c SS |
5961 | |
5962 | # Check whether --enable-sim-hostbitsize or --disable-sim-hostbitsize was given. | |
5963 | if test "${enable_sim_hostbitsize+set}" = set; then | |
5964 | enableval="$enable_sim_hostbitsize" | |
5965 | case "${enableval}" in | |
5966 | 32|64) sim_hostbitsize="-DWITH_HOST_WORD_BITSIZE=$enableval";; | |
b7026657 AC |
5967 | *) { { echo "$as_me:$LINENO: error: \"--enable-sim-hostbitsize was given $enableval. Expected 32 or 64\"" >&5 |
5968 | echo "$as_me: error: \"--enable-sim-hostbitsize was given $enableval. Expected 32 or 64\"" >&2;} | |
5969 | { (exit 1); exit 1; }; }; sim_hostbitsize="";; | |
c906108c SS |
5970 | esac |
5971 | if test x"$silent" != x"yes" && test x"$sim_hostbitsize" != x""; then | |
5972 | echo "Setting hostbitsize flags = $sim_hostbitsize" 6>&1 | |
5973 | fi | |
5974 | else | |
5975 | sim_hostbitsize="" | |
b7026657 | 5976 | fi; |
c906108c SS |
5977 | |
5978 | # Check whether --enable-sim-hostendian or --disable-sim-hostendian was given. | |
5979 | if test "${enable_sim_hostendian+set}" = set; then | |
5980 | enableval="$enable_sim_hostendian" | |
5981 | case "${enableval}" in | |
5982 | no) sim_hostendian="-DWITH_HOST_BYTE_ORDER=0";; | |
5983 | b*|B*) sim_hostendian="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN";; | |
5984 | l*|L*) sim_hostendian="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN";; | |
b7026657 AC |
5985 | *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval for --enable-sim-hostendian\"" >&5 |
5986 | echo "$as_me: error: \"Unknown value $enableval for --enable-sim-hostendian\"" >&2;} | |
5987 | { (exit 1); exit 1; }; }; sim_hostendian="";; | |
c906108c SS |
5988 | esac |
5989 | if test x"$silent" != x"yes" && test x"$sim_hostendian" != x""; then | |
5990 | echo "Setting hostendian flags = $sim_hostendian" 6>&1 | |
5991 | fi | |
5992 | else | |
b7026657 | 5993 | |
c906108c | 5994 | if test "x$cross_compiling" = "xno"; then |
b7026657 AC |
5995 | echo "$as_me:$LINENO: checking whether byte ordering is bigendian" >&5 |
5996 | echo $ECHO_N "checking whether byte ordering is bigendian... $ECHO_C" >&6 | |
5997 | if test "${ac_cv_c_bigendian+set}" = set; then | |
5998 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
5999 | else | |
6000 | # See if sys/param.h defines the BYTE_ORDER macro. | |
6001 | cat >conftest.$ac_ext <<_ACEOF | |
6002 | /* confdefs.h. */ | |
6003 | _ACEOF | |
6004 | cat confdefs.h >>conftest.$ac_ext | |
6005 | cat >>conftest.$ac_ext <<_ACEOF | |
6006 | /* end confdefs.h. */ | |
c906108c SS |
6007 | #include <sys/types.h> |
6008 | #include <sys/param.h> | |
c906108c | 6009 | |
b7026657 AC |
6010 | int |
6011 | main () | |
6012 | { | |
c906108c SS |
6013 | #if !BYTE_ORDER || !BIG_ENDIAN || !LITTLE_ENDIAN |
6014 | bogus endian macros | |
6015 | #endif | |
b7026657 AC |
6016 | |
6017 | ; | |
6018 | return 0; | |
6019 | } | |
6020 | _ACEOF | |
6021 | rm -f conftest.$ac_objext | |
6022 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6023 | (eval $ac_compile) 2>conftest.er1 | |
6024 | ac_status=$? | |
6025 | grep -v '^ *+' conftest.er1 >conftest.err | |
6026 | rm -f conftest.er1 | |
6027 | cat conftest.err >&5 | |
6028 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6029 | (exit $ac_status); } && | |
6030 | { ac_try='test -z "$ac_c_werror_flag" | |
6031 | || test ! -s conftest.err' | |
6032 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6033 | (eval $ac_try) 2>&5 | |
6034 | ac_status=$? | |
6035 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6036 | (exit $ac_status); }; } && | |
6037 | { ac_try='test -s conftest.$ac_objext' | |
6038 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6039 | (eval $ac_try) 2>&5 | |
6040 | ac_status=$? | |
6041 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6042 | (exit $ac_status); }; }; then | |
c906108c | 6043 | # It does; now see whether it defined to BIG_ENDIAN or not. |
b7026657 AC |
6044 | cat >conftest.$ac_ext <<_ACEOF |
6045 | /* confdefs.h. */ | |
6046 | _ACEOF | |
6047 | cat confdefs.h >>conftest.$ac_ext | |
6048 | cat >>conftest.$ac_ext <<_ACEOF | |
6049 | /* end confdefs.h. */ | |
c906108c SS |
6050 | #include <sys/types.h> |
6051 | #include <sys/param.h> | |
c906108c | 6052 | |
b7026657 AC |
6053 | int |
6054 | main () | |
6055 | { | |
c906108c SS |
6056 | #if BYTE_ORDER != BIG_ENDIAN |
6057 | not big endian | |
6058 | #endif | |
b7026657 AC |
6059 | |
6060 | ; | |
6061 | return 0; | |
6062 | } | |
6063 | _ACEOF | |
6064 | rm -f conftest.$ac_objext | |
6065 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6066 | (eval $ac_compile) 2>conftest.er1 | |
6067 | ac_status=$? | |
6068 | grep -v '^ *+' conftest.er1 >conftest.err | |
6069 | rm -f conftest.er1 | |
6070 | cat conftest.err >&5 | |
6071 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6072 | (exit $ac_status); } && | |
6073 | { ac_try='test -z "$ac_c_werror_flag" | |
6074 | || test ! -s conftest.err' | |
6075 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6076 | (eval $ac_try) 2>&5 | |
6077 | ac_status=$? | |
6078 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6079 | (exit $ac_status); }; } && | |
6080 | { ac_try='test -s conftest.$ac_objext' | |
6081 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6082 | (eval $ac_try) 2>&5 | |
6083 | ac_status=$? | |
6084 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6085 | (exit $ac_status); }; }; then | |
c906108c SS |
6086 | ac_cv_c_bigendian=yes |
6087 | else | |
b7026657 AC |
6088 | echo "$as_me: failed program was:" >&5 |
6089 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6090 | ||
6091 | ac_cv_c_bigendian=no | |
6092 | fi | |
6093 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6094 | else | |
6095 | echo "$as_me: failed program was:" >&5 | |
6096 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6097 | ||
6098 | # It does not; compile a test program. | |
6099 | if test "$cross_compiling" = yes; then | |
6100 | # try to guess the endianness by grepping values into an object file | |
6101 | ac_cv_c_bigendian=unknown | |
6102 | cat >conftest.$ac_ext <<_ACEOF | |
6103 | /* confdefs.h. */ | |
6104 | _ACEOF | |
6105 | cat confdefs.h >>conftest.$ac_ext | |
6106 | cat >>conftest.$ac_ext <<_ACEOF | |
6107 | /* end confdefs.h. */ | |
6108 | short ascii_mm[] = { 0x4249, 0x4765, 0x6E44, 0x6961, 0x6E53, 0x7953, 0 }; | |
6109 | short ascii_ii[] = { 0x694C, 0x5454, 0x656C, 0x6E45, 0x6944, 0x6E61, 0 }; | |
6110 | void _ascii () { char *s = (char *) ascii_mm; s = (char *) ascii_ii; } | |
6111 | short ebcdic_ii[] = { 0x89D3, 0xE3E3, 0x8593, 0x95C5, 0x89C4, 0x9581, 0 }; | |
6112 | short ebcdic_mm[] = { 0xC2C9, 0xC785, 0x95C4, 0x8981, 0x95E2, 0xA8E2, 0 }; | |
6113 | void _ebcdic () { char *s = (char *) ebcdic_mm; s = (char *) ebcdic_ii; } | |
6114 | int | |
6115 | main () | |
6116 | { | |
6117 | _ascii (); _ebcdic (); | |
6118 | ; | |
6119 | return 0; | |
6120 | } | |
6121 | _ACEOF | |
6122 | rm -f conftest.$ac_objext | |
6123 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6124 | (eval $ac_compile) 2>conftest.er1 | |
6125 | ac_status=$? | |
6126 | grep -v '^ *+' conftest.er1 >conftest.err | |
6127 | rm -f conftest.er1 | |
6128 | cat conftest.err >&5 | |
6129 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6130 | (exit $ac_status); } && | |
6131 | { ac_try='test -z "$ac_c_werror_flag" | |
6132 | || test ! -s conftest.err' | |
6133 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6134 | (eval $ac_try) 2>&5 | |
6135 | ac_status=$? | |
6136 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6137 | (exit $ac_status); }; } && | |
6138 | { ac_try='test -s conftest.$ac_objext' | |
6139 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6140 | (eval $ac_try) 2>&5 | |
6141 | ac_status=$? | |
6142 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6143 | (exit $ac_status); }; }; then | |
6144 | if grep BIGenDianSyS conftest.$ac_objext >/dev/null ; then | |
6145 | ac_cv_c_bigendian=yes | |
6146 | fi | |
6147 | if grep LiTTleEnDian conftest.$ac_objext >/dev/null ; then | |
6148 | if test "$ac_cv_c_bigendian" = unknown; then | |
6149 | ac_cv_c_bigendian=no | |
6150 | else | |
6151 | # finding both strings is unlikely to happen, but who knows? | |
6152 | ac_cv_c_bigendian=unknown | |
6153 | fi | |
c906108c | 6154 | fi |
c906108c | 6155 | else |
b7026657 AC |
6156 | echo "$as_me: failed program was:" >&5 |
6157 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6158 | ||
c906108c | 6159 | fi |
b7026657 | 6160 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 6161 | else |
b7026657 AC |
6162 | cat >conftest.$ac_ext <<_ACEOF |
6163 | /* confdefs.h. */ | |
6164 | _ACEOF | |
6165 | cat confdefs.h >>conftest.$ac_ext | |
6166 | cat >>conftest.$ac_ext <<_ACEOF | |
6167 | /* end confdefs.h. */ | |
6168 | int | |
6169 | main () | |
6170 | { | |
c906108c SS |
6171 | /* Are we little or big endian? From Harbison&Steele. */ |
6172 | union | |
6173 | { | |
6174 | long l; | |
6175 | char c[sizeof (long)]; | |
6176 | } u; | |
6177 | u.l = 1; | |
6178 | exit (u.c[sizeof (long) - 1] == 1); | |
6179 | } | |
b7026657 AC |
6180 | _ACEOF |
6181 | rm -f conftest$ac_exeext | |
6182 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
6183 | (eval $ac_link) 2>&5 | |
6184 | ac_status=$? | |
6185 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6186 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
6187 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6188 | (eval $ac_try) 2>&5 | |
6189 | ac_status=$? | |
6190 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6191 | (exit $ac_status); }; }; then | |
c906108c SS |
6192 | ac_cv_c_bigendian=no |
6193 | else | |
b7026657 AC |
6194 | echo "$as_me: program exited with status $ac_status" >&5 |
6195 | echo "$as_me: failed program was:" >&5 | |
6196 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6197 | ||
6198 | ( exit $ac_status ) | |
6199 | ac_cv_c_bigendian=yes | |
c906108c | 6200 | fi |
b7026657 | 6201 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
c906108c | 6202 | fi |
c906108c | 6203 | fi |
b7026657 | 6204 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 6205 | fi |
b7026657 AC |
6206 | echo "$as_me:$LINENO: result: $ac_cv_c_bigendian" >&5 |
6207 | echo "${ECHO_T}$ac_cv_c_bigendian" >&6 | |
6208 | case $ac_cv_c_bigendian in | |
6209 | yes) | |
c906108c | 6210 | |
b7026657 | 6211 | cat >>confdefs.h <<\_ACEOF |
c906108c | 6212 | #define WORDS_BIGENDIAN 1 |
b7026657 AC |
6213 | _ACEOF |
6214 | ;; | |
6215 | no) | |
6216 | ;; | |
6217 | *) | |
6218 | { { echo "$as_me:$LINENO: error: unknown endianness | |
6219 | presetting ac_cv_c_bigendian=no (or yes) will help" >&5 | |
6220 | echo "$as_me: error: unknown endianness | |
6221 | presetting ac_cv_c_bigendian=no (or yes) will help" >&2;} | |
6222 | { (exit 1); exit 1; }; } ;; | |
6223 | esac | |
c906108c SS |
6224 | |
6225 | if test $ac_cv_c_bigendian = yes; then | |
6226 | sim_hostendian="-DWITH_HOST_BYTE_ORDER=BIG_ENDIAN" | |
6227 | else | |
6228 | sim_hostendian="-DWITH_HOST_BYTE_ORDER=LITTLE_ENDIAN" | |
6229 | fi | |
6230 | else | |
6231 | sim_hostendian="-DWITH_HOST_BYTE_ORDER=0" | |
6232 | fi | |
b7026657 | 6233 | fi; |
c906108c SS |
6234 | |
6235 | # Check whether --enable-sim-icache or --disable-sim-icache was given. | |
6236 | if test "${enable_sim_icache+set}" = set; then | |
6237 | enableval="$enable_sim_icache" | |
6238 | icache="-R" | |
6239 | case "${enableval}" in | |
6240 | yes) icache="1024"; sim_icache="-I $icache";; | |
6241 | no) sim_icache="-R";; | |
6242 | *) icache=1024 | |
6243 | sim_icache="-" | |
6244 | for x in `echo "${enableval}" | sed -e "s/,/ /g"`; do | |
6245 | case "$x" in | |
6246 | define) sim_icache="${sim_icache}R";; | |
6247 | semantic) sim_icache="${sim_icache}C";; | |
6248 | insn) sim_icache="${sim_icache}S";; | |
6249 | 0*|1*|2*|3*|4*|5*|6*|7*|8*|9*) icache=$x;; | |
b7026657 AC |
6250 | *) { { echo "$as_me:$LINENO: error: \"Unknown value $x for --enable-sim-icache\"" >&5 |
6251 | echo "$as_me: error: \"Unknown value $x for --enable-sim-icache\"" >&2;} | |
6252 | { (exit 1); exit 1; }; }; sim_icache="";; | |
c906108c SS |
6253 | esac |
6254 | done | |
6255 | sim_icache="${sim_icache}I $icache";; | |
6256 | esac | |
6257 | if test x"$silent" != x"yes" && test x"$icache" != x""; then | |
6258 | echo "Setting instruction cache size to $icache ($sim_icache)" | |
6259 | fi | |
6260 | else | |
6261 | sim_icache="-CSRI 1024" | |
6262 | if test x"$silent" != x"yes"; then | |
6263 | echo "Setting instruction cache size to 1024 ($sim_icache)" | |
6264 | fi | |
b7026657 | 6265 | fi; |
c906108c SS |
6266 | |
6267 | # Check whether --enable-sim-inline or --disable-sim-inline was given. | |
6268 | if test "${enable_sim_inline+set}" = set; then | |
6269 | enableval="$enable_sim_inline" | |
6270 | sim_inline="" | |
6271 | case "$enableval" in | |
6272 | no) sim_inline="-DDEFAULT_INLINE=0";; | |
6273 | 0) sim_inline="-DDEFAULT_INLINE=0";; | |
6274 | yes | 2) sim_inline="-DDEFAULT_INLINE=ALL_INLINE";; | |
d29d5195 | 6275 | 1) sim_inline="-DDEFAULT_INLINE=PSIM_INLINE_LOCALS";; |
c906108c SS |
6276 | *) for x in `echo "$enableval" | sed -e "s/,/ /g"`; do |
6277 | new_flag="" | |
6278 | case "$x" in | |
6279 | *_INLINE=*) new_flag="-D$x";; | |
6280 | *=*) new_flag=`echo "$x" | sed -e "s/=/_INLINE=/" -e "s/^/-D/"`;; | |
6281 | *_INLINE) new_flag="-D$x=ALL_INLINE";; | |
6282 | *) new_flag="-D$x""_INLINE=ALL_INLINE";; | |
6283 | esac | |
6284 | if test x"$sim_inline" = x""; then | |
6285 | sim_inline="$new_flag" | |
6286 | else | |
6287 | sim_inline="$sim_inline $new_flag" | |
6288 | fi | |
6289 | done;; | |
6290 | esac | |
6291 | if test x"$silent" != x"yes" && test x"$sim_inline" != x""; then | |
6292 | echo "Setting inline flags = $sim_inline" 6>&1 | |
6293 | fi | |
6294 | else | |
6295 | if test x"$GCC" != ""; then | |
d29d5195 | 6296 | sim_inline="-DDEFAULT_INLINE=PSIM_INLINE_LOCALS" |
c906108c SS |
6297 | if test x"$silent" != x"yes"; then |
6298 | echo "Setting inline flags = $sim_inline" 6>&1 | |
6299 | fi | |
6300 | else | |
6301 | sim_inline="" | |
6302 | fi | |
b7026657 | 6303 | fi; |
c906108c SS |
6304 | |
6305 | # Check whether --enable-sim-jump or --disable-sim-jump was given. | |
6306 | if test "${enable_sim_jump+set}" = set; then | |
6307 | enableval="$enable_sim_jump" | |
6308 | case "${enableval}" in | |
6309 | yes) sim_jump="-J";; | |
6310 | no) sim_jump="";; | |
b7026657 AC |
6311 | *) { { echo "$as_me:$LINENO: error: \"--enable-sim-jump does not take a value\"" >&5 |
6312 | echo "$as_me: error: \"--enable-sim-jump does not take a value\"" >&2;} | |
6313 | { (exit 1); exit 1; }; }; sim_jump="";; | |
c906108c SS |
6314 | esac |
6315 | if test x"$silent" != x"yes" && test x"$sim_jump" != x""; then | |
6316 | echo "Setting jump flag = $sim_jump" 6>&1 | |
6317 | fi | |
6318 | else | |
6319 | sim_jump="" | |
6320 | if test x"$silent" != x"yes"; then | |
6321 | echo "Setting jump flag = $sim_jump" 6>&1 | |
6322 | fi | |
b7026657 | 6323 | fi; |
c906108c SS |
6324 | |
6325 | # Check whether --enable-sim-line-nr or --disable-sim-line-nr was given. | |
6326 | if test "${enable_sim_line_nr+set}" = set; then | |
6327 | enableval="$enable_sim_line_nr" | |
6328 | case "${enableval}" in | |
6329 | yes) sim_line_nr="";; | |
6330 | no) sim_line_nr="-L";; | |
b7026657 AC |
6331 | *) { { echo "$as_me:$LINENO: error: \"--enable-sim-line-nr does not take a value\"" >&5 |
6332 | echo "$as_me: error: \"--enable-sim-line-nr does not take a value\"" >&2;} | |
6333 | { (exit 1); exit 1; }; }; sim_line_nr="";; | |
c906108c SS |
6334 | esac |
6335 | if test x"$silent" != x"yes" && test x"$sim_line_nr" != x""; then | |
6336 | echo "Setting warning flags = $sim_line_nr" 6>&1 | |
6337 | fi | |
6338 | else | |
6339 | sim_line_nr="" | |
b7026657 | 6340 | fi; |
c906108c SS |
6341 | |
6342 | # Check whether --enable-sim-model or --disable-sim-model was given. | |
6343 | if test "${enable_sim_model+set}" = set; then | |
6344 | enableval="$enable_sim_model" | |
6345 | case "${enableval}" in | |
b7026657 AC |
6346 | yes|no) { { echo "$as_me:$LINENO: error: \"No value supplied for --enable-sim-model=model\"" >&5 |
6347 | echo "$as_me: error: \"No value supplied for --enable-sim-model=model\"" >&2;} | |
6348 | { (exit 1); exit 1; }; };; | |
c906108c SS |
6349 | *) sim_model="-DWITH_MODEL=${enableval}";; |
6350 | esac | |
6351 | if test x"$silent" != x"yes" && test x"$sim_model" != x""; then | |
6352 | echo "Setting model flags = $sim_model" 6>&1 | |
6353 | fi | |
6354 | else | |
6355 | sim_model="" | |
b7026657 | 6356 | fi; |
c906108c SS |
6357 | |
6358 | # Check whether --enable-sim-model-issue or --disable-sim-model-issue was given. | |
6359 | if test "${enable_sim_model_issue+set}" = set; then | |
6360 | enableval="$enable_sim_model_issue" | |
6361 | case "${enableval}" in | |
6362 | yes) sim_model_issue="-DWITH_MODEL_ISSUE=MODEL_ISSUE_PROCESS";; | |
6363 | no) sim_model_issue="-DWITH_MODEL_ISSUE=MODEL_ISSUE_IGNORE";; | |
b7026657 AC |
6364 | *) { { echo "$as_me:$LINENO: error: \"--enable-sim-model-issue does not take a value\"" >&5 |
6365 | echo "$as_me: error: \"--enable-sim-model-issue does not take a value\"" >&2;} | |
6366 | { (exit 1); exit 1; }; }; sim_model_issue="";; | |
c906108c SS |
6367 | esac |
6368 | if test x"$silent" != x"yes"; then | |
6369 | echo "Setting model-issue flags = $sim_model_issue" 6>&1 | |
6370 | fi | |
6371 | else | |
6372 | sim_model_issue="" | |
b7026657 | 6373 | fi; |
c906108c SS |
6374 | |
6375 | # Check whether --enable-sim-monitor or --disable-sim-monitor was given. | |
6376 | if test "${enable_sim_monitor+set}" = set; then | |
6377 | enableval="$enable_sim_monitor" | |
6378 | case "${enableval}" in | |
6379 | yes) sim_monitor="-DWITH_MON='MONITOR_INSTRUCTION_ISSUE | MONITOR_LOAD_STORE_UNIT'";; | |
6380 | no) sim_monitor="-DWITH_MON=0";; | |
6381 | instruction) sim_monitor="-DWITH_MON=MONITOR_INSTRUCTION_ISSUE";; | |
6382 | memory) sim_monitor="-DWITH_MON=MONITOR_LOAD_STORE_UNIT";; | |
b7026657 AC |
6383 | *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-mon\"" >&5 |
6384 | echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-mon\"" >&2;} | |
6385 | { (exit 1); exit 1; }; }; sim_env="";; | |
c906108c SS |
6386 | esac |
6387 | if test x"$silent" != x"yes" && test x"$sim_monitor" != x""; then | |
6388 | echo "Setting monitor flags = $sim_monitor" 6>&1 | |
6389 | fi | |
6390 | else | |
6391 | sim_monitor="" | |
b7026657 | 6392 | fi; |
c906108c SS |
6393 | |
6394 | # Check whether --enable-sim-opcode or --disable-sim-opcode was given. | |
6395 | if test "${enable_sim_opcode+set}" = set; then | |
6396 | enableval="$enable_sim_opcode" | |
6397 | case "${enableval}" in | |
b7026657 AC |
6398 | yes|no) { { echo "$as_me:$LINENO: error: \"No value supplied for --enable-sim-opcode=file\"" >&5 |
6399 | echo "$as_me: error: \"No value supplied for --enable-sim-opcode=file\"" >&2;} | |
6400 | { (exit 1); exit 1; }; };; | |
c906108c SS |
6401 | *) if test -f "${srcdir}/${enableval}"; then |
6402 | sim_opcode="${enableval}" | |
6403 | elif test -f "${srcdir}/dc-${enableval}"; then | |
6404 | sim_opcode="dc-${enableval}" | |
6405 | else | |
b7026657 AC |
6406 | { { echo "$as_me:$LINENO: error: \"File $enableval is not an opcode rules file\"" >&5 |
6407 | echo "$as_me: error: \"File $enableval is not an opcode rules file\"" >&2;} | |
6408 | { (exit 1); exit 1; }; }; | |
c906108c SS |
6409 | sim_opcode="dc-complex" |
6410 | fi;; | |
6411 | esac | |
6412 | if test x"$silent" != x"yes" && test x"$sim_opcode" != x""; then | |
6413 | echo "Setting opcode flags = $sim_opcode" 6>&1 | |
6414 | fi | |
6415 | else | |
6416 | sim_opcode="dc-complex" | |
6417 | if test x"$silent" != x"yes"; then | |
6418 | echo "Setting opcode flags = $sim_opcode" | |
6419 | fi | |
b7026657 | 6420 | fi; |
c906108c SS |
6421 | |
6422 | # Check whether --enable-sim-packages or --disable-sim-packages was given. | |
6423 | if test "${enable_sim_packages+set}" = set; then | |
6424 | enableval="$enable_sim_packages" | |
6425 | packages=disklabel | |
6426 | case "${enableval}" in | |
6427 | yes) ;; | |
b7026657 AC |
6428 | no) { { echo "$as_me:$LINENO: error: \"List of packages must be specified for --enable-sim-packages\"" >&5 |
6429 | echo "$as_me: error: \"List of packages must be specified for --enable-sim-packages\"" >&2;} | |
6430 | { (exit 1); exit 1; }; }; packages="";; | |
c906108c SS |
6431 | ,*) packages="${packages}${enableval}";; |
6432 | *,) packages="${enableval}${packages}";; | |
6433 | *) packages="${enableval}"'';; | |
6434 | esac | |
6435 | sim_pk_src=`echo $packages | sed -e 's/,/.c pk_/g' -e 's/^/pk_/' -e 's/$/.c/'` | |
6436 | sim_pk_obj=`echo $sim_pk_src | sed -e 's/\.c/.o/g'` | |
6437 | if test x"$silent" != x"yes" && test x"$packages" != x""; then | |
6438 | echo "Setting packages to $sim_pk_src, $sim_pk_obj" | |
6439 | fi | |
6440 | else | |
6441 | packages=disklabel | |
6442 | sim_pk_src=`echo $packages | sed -e 's/,/.c pk_/g' -e 's/^/pk_/' -e 's/$/.c/'` | |
6443 | sim_pk_obj=`echo $sim_pk_src | sed -e 's/\.c/.o/g'` | |
6444 | if test x"$silent" != x"yes"; then | |
6445 | echo "Setting packages to $sim_pk_src, $sim_pk_obj" | |
6446 | fi | |
b7026657 | 6447 | fi; |
c906108c SS |
6448 | |
6449 | # Check whether --enable-sim-regparm or --disable-sim-regparm was given. | |
6450 | if test "${enable_sim_regparm+set}" = set; then | |
6451 | enableval="$enable_sim_regparm" | |
6452 | case "${enableval}" in | |
6453 | 0*|1*|2*|3*|4*|5*|6*|7*|8*|9*) sim_regparm="-DWITH_REGPARM=${enableval}";; | |
6454 | no) sim_regparm="" ;; | |
6455 | yes) sim_regparm="-DWITH_REGPARM=3";; | |
b7026657 AC |
6456 | *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval for --enable-sim-regparm\"" >&5 |
6457 | echo "$as_me: error: \"Unknown value $enableval for --enable-sim-regparm\"" >&2;} | |
6458 | { (exit 1); exit 1; }; }; sim_regparm="";; | |
c906108c SS |
6459 | esac |
6460 | if test x"$silent" != x"yes" && test x"$sim_regparm" != x""; then | |
6461 | echo "Setting regparm flags = $sim_regparm" 6>&1 | |
6462 | fi | |
6463 | else | |
6464 | sim_regparm="" | |
b7026657 | 6465 | fi; |
c906108c SS |
6466 | |
6467 | # Check whether --enable-sim-reserved-bits or --disable-sim-reserved-bits was given. | |
6468 | if test "${enable_sim_reserved_bits+set}" = set; then | |
6469 | enableval="$enable_sim_reserved_bits" | |
6470 | case "${enableval}" in | |
6471 | yes) sim_reserved="-DWITH_RESERVED_BITS=1";; | |
6472 | no) sim_reserved="-DWITH_RESERVED_BITS=0";; | |
b7026657 AC |
6473 | *) { { echo "$as_me:$LINENO: error: \"--enable-sim-reserved-bits does not take a value\"" >&5 |
6474 | echo "$as_me: error: \"--enable-sim-reserved-bits does not take a value\"" >&2;} | |
6475 | { (exit 1); exit 1; }; }; sim_reserved="";; | |
c906108c SS |
6476 | esac |
6477 | if test x"$silent" != x"yes" && test x"$sim_reserved" != x""; then | |
6478 | echo "Setting reserved flags = $sim_reserved" 6>&1 | |
6479 | fi | |
6480 | else | |
6481 | sim_reserved="" | |
b7026657 | 6482 | fi; |
c906108c SS |
6483 | |
6484 | # Check whether --enable-sim-smp or --disable-sim-smp was given. | |
6485 | if test "${enable_sim_smp+set}" = set; then | |
6486 | enableval="$enable_sim_smp" | |
6487 | case "${enableval}" in | |
6488 | yes) sim_smp="-DWITH_SMP=5" ; sim_igen_smp="-N 5";; | |
6489 | no) sim_smp="-DWITH_SMP=0" ; sim_igen_smp="-N 0";; | |
6490 | *) sim_smp="-DWITH_SMP=$enableval" ; sim_igen_smp="-N $enableval";; | |
6491 | esac | |
6492 | if test x"$silent" != x"yes" && test x"$sim_smp" != x""; then | |
6493 | echo "Setting smp flags = $sim_smp" 6>&1 | |
6494 | fi | |
6495 | else | |
6496 | sim_smp="-DWITH_SMP=5" ; sim_igen_smp="-N 5" | |
6497 | if test x"$silent" != x"yes"; then | |
6498 | echo "Setting smp flags = $sim_smp" 6>&1 | |
6499 | fi | |
b7026657 | 6500 | fi; |
c906108c SS |
6501 | |
6502 | # Check whether --enable-sim-stdcall or --disable-sim-stdcall was given. | |
6503 | if test "${enable_sim_stdcall+set}" = set; then | |
6504 | enableval="$enable_sim_stdcall" | |
6505 | case "${enableval}" in | |
6506 | no) sim_stdcall="" ;; | |
6507 | std*) sim_stdcall="-DWITH_STDCALL=1";; | |
6508 | yes) sim_stdcall="-DWITH_STDCALL=1";; | |
b7026657 AC |
6509 | *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval for --enable-sim-stdcall\"" >&5 |
6510 | echo "$as_me: error: \"Unknown value $enableval for --enable-sim-stdcall\"" >&2;} | |
6511 | { (exit 1); exit 1; }; }; sim_stdcall="";; | |
c906108c SS |
6512 | esac |
6513 | if test x"$silent" != x"yes" && test x"$sim_stdcall" != x""; then | |
6514 | echo "Setting function call flags = $sim_stdcall" 6>&1 | |
6515 | fi | |
6516 | else | |
6517 | sim_stdcall="" | |
b7026657 | 6518 | fi; |
c906108c SS |
6519 | |
6520 | # Check whether --enable-sim-stdio or --disable-sim-stdio was given. | |
6521 | if test "${enable_sim_stdio+set}" = set; then | |
6522 | enableval="$enable_sim_stdio" | |
6523 | case "${enableval}" in | |
6524 | yes) sim_stdio="-DWITH_STDIO=DO_USE_STDIO";; | |
6525 | no) sim_stdio="-DWITH_STDIO=DONT_USE_STDIO";; | |
b7026657 AC |
6526 | *) { { echo "$as_me:$LINENO: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&5 |
6527 | echo "$as_me: error: \"Unknown value $enableval passed to --enable-sim-stdio\"" >&2;} | |
6528 | { (exit 1); exit 1; }; }; sim_stdio="";; | |
c906108c SS |
6529 | esac |
6530 | if test x"$silent" != x"yes" && test x"$sim_stdio" != x""; then | |
6531 | echo "Setting stdio flags = $sim_stdio" 6>&1 | |
6532 | fi | |
6533 | else | |
6534 | sim_stdio="" | |
b7026657 | 6535 | fi; |
c906108c SS |
6536 | |
6537 | # Check whether --enable-sim-switch or --disable-sim-switch was given. | |
6538 | if test "${enable_sim_switch+set}" = set; then | |
6539 | enableval="$enable_sim_switch" | |
6540 | case "${enableval}" in | |
6541 | yes) sim_switch="-s";; | |
6542 | no) sim_switch="";; | |
b7026657 AC |
6543 | *) { { echo "$as_me:$LINENO: error: \"--enable-sim-switch does not take a value\"" >&5 |
6544 | echo "$as_me: error: \"--enable-sim-switch does not take a value\"" >&2;} | |
6545 | { (exit 1); exit 1; }; }; sim_switch="";; | |
c906108c SS |
6546 | esac |
6547 | if test x"$silent" != x"yes" && test x"$sim_switch" != x""; then | |
6548 | echo "Setting switch flags = $sim_switch" 6>&1 | |
6549 | fi | |
6550 | else | |
6551 | sim_switch=""; | |
6552 | if test x"$silent" != x"yes"; then | |
6553 | echo "Setting switch flags = $sim_switch" 6>&1 | |
6554 | fi | |
b7026657 | 6555 | fi; |
c906108c SS |
6556 | |
6557 | # Check whether --enable-sim-timebase or --disable-sim-timebase was given. | |
6558 | if test "${enable_sim_timebase+set}" = set; then | |
6559 | enableval="$enable_sim_timebase" | |
6560 | case "${enableval}" in | |
6561 | yes) sim_timebase="-DWITH_TIME_BASE=1";; | |
6562 | no) sim_timebase="-DWITH_TIME_BASE=0";; | |
b7026657 AC |
6563 | *) { { echo "$as_me:$LINENO: error: \"--enable-sim-timebase does not take a value\"" >&5 |
6564 | echo "$as_me: error: \"--enable-sim-timebase does not take a value\"" >&2;} | |
6565 | { (exit 1); exit 1; }; }; sim_timebase="";; | |
c906108c SS |
6566 | esac |
6567 | if test x"$silent" != x"yes" && test x"$sim_timebase" != x""; then | |
6568 | echo "Setting timebase flags = $sim_timebase" 6>&1 | |
6569 | fi | |
6570 | else | |
6571 | sim_timebase="" | |
b7026657 | 6572 | fi; |
c906108c SS |
6573 | |
6574 | # Check whether --enable-sim-trace or --disable-sim-trace was given. | |
6575 | if test "${enable_sim_trace+set}" = set; then | |
6576 | enableval="$enable_sim_trace" | |
6577 | case "${enableval}" in | |
6578 | yes) sim_trace="-DWITH_TRACE=1";; | |
6579 | no) sim_trace="-DWITH_TRACE=0";; | |
b7026657 AC |
6580 | *) { { echo "$as_me:$LINENO: error: \"--enable-sim-trace does not take a value\"" >&5 |
6581 | echo "$as_me: error: \"--enable-sim-trace does not take a value\"" >&2;} | |
6582 | { (exit 1); exit 1; }; }; sim_trace="";; | |
c906108c SS |
6583 | esac |
6584 | if test x"$silent" != x"yes" && test x"$sim_trace" != x""; then | |
6585 | echo "Setting trace flags = $sim_trace" 6>&1 | |
6586 | fi | |
6587 | else | |
6588 | sim_trace="" | |
b7026657 | 6589 | fi; |
c906108c SS |
6590 | |
6591 | # Check whether --enable-sim-warnings or --disable-sim-warnings was given. | |
6592 | if test "${enable_sim_warnings+set}" = set; then | |
6593 | enableval="$enable_sim_warnings" | |
6594 | case "${enableval}" in | |
6595 | yes) sim_warnings="-Werror -Wall -Wpointer-arith -Wmissing-prototypes -Wmissing-declarations ";; | |
6596 | no) sim_warnings="-w";; | |
6597 | *) sim_warnings=`echo "${enableval}" | sed -e "s/,/ /g"`;; | |
6598 | esac | |
6599 | if test x"$silent" != x"yes" && test x"$sim_warnings" != x""; then | |
6600 | echo "Setting warning flags = $sim_warnings" 6>&1 | |
6601 | fi | |
6602 | else | |
6603 | sim_warnings="" | |
b7026657 | 6604 | fi; |
c906108c SS |
6605 | |
6606 | # Check whether --enable-sim-xor-endian or --disable-sim-xor-endian was given. | |
6607 | if test "${enable_sim_xor_endian+set}" = set; then | |
6608 | enableval="$enable_sim_xor_endian" | |
6609 | case "${enableval}" in | |
6610 | yes) sim_xor_endian="-DWITH_XOR_ENDIAN=8";; | |
6611 | no) sim_xor_endian="-DWITH_XOR_ENDIAN=0";; | |
6612 | *) sim_xor_endian="-DWITH_XOR_ENDIAN=$enableval";; | |
6613 | esac | |
6614 | if test x"$silent" != x"yes" && test x"$sim_xor_endian" != x""; then | |
6615 | echo "Setting xor-endian flag = $sim_xor_endian" 6>&1 | |
6616 | fi | |
6617 | else | |
6618 | sim_xor_endian="" | |
b7026657 | 6619 | fi; |
c906108c | 6620 | |
b7026657 AC |
6621 | # Make sure we can run config.sub. |
6622 | $ac_config_sub sun4 >/dev/null 2>&1 || | |
6623 | { { echo "$as_me:$LINENO: error: cannot run $ac_config_sub" >&5 | |
6624 | echo "$as_me: error: cannot run $ac_config_sub" >&2;} | |
6625 | { (exit 1); exit 1; }; } | |
6626 | ||
6627 | echo "$as_me:$LINENO: checking build system type" >&5 | |
6628 | echo $ECHO_N "checking build system type... $ECHO_C" >&6 | |
6629 | if test "${ac_cv_build+set}" = set; then | |
6630 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6631 | else | |
6632 | ac_cv_build_alias=$build_alias | |
6633 | test -z "$ac_cv_build_alias" && | |
6634 | ac_cv_build_alias=`$ac_config_guess` | |
6635 | test -z "$ac_cv_build_alias" && | |
6636 | { { echo "$as_me:$LINENO: error: cannot guess build type; you must specify one" >&5 | |
6637 | echo "$as_me: error: cannot guess build type; you must specify one" >&2;} | |
6638 | { (exit 1); exit 1; }; } | |
6639 | ac_cv_build=`$ac_config_sub $ac_cv_build_alias` || | |
6640 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_build_alias failed" >&5 | |
6641 | echo "$as_me: error: $ac_config_sub $ac_cv_build_alias failed" >&2;} | |
6642 | { (exit 1); exit 1; }; } | |
6643 | ||
6644 | fi | |
6645 | echo "$as_me:$LINENO: result: $ac_cv_build" >&5 | |
6646 | echo "${ECHO_T}$ac_cv_build" >&6 | |
6647 | build=$ac_cv_build | |
6648 | build_cpu=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
6649 | build_vendor=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
6650 | build_os=`echo $ac_cv_build | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
6651 | ||
6652 | ||
6653 | echo "$as_me:$LINENO: checking host system type" >&5 | |
6654 | echo $ECHO_N "checking host system type... $ECHO_C" >&6 | |
6655 | if test "${ac_cv_host+set}" = set; then | |
6656 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6657 | else | |
6658 | ac_cv_host_alias=$host_alias | |
6659 | test -z "$ac_cv_host_alias" && | |
6660 | ac_cv_host_alias=$ac_cv_build_alias | |
6661 | ac_cv_host=`$ac_config_sub $ac_cv_host_alias` || | |
6662 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_host_alias failed" >&5 | |
6663 | echo "$as_me: error: $ac_config_sub $ac_cv_host_alias failed" >&2;} | |
6664 | { (exit 1); exit 1; }; } | |
6665 | ||
6666 | fi | |
6667 | echo "$as_me:$LINENO: result: $ac_cv_host" >&5 | |
6668 | echo "${ECHO_T}$ac_cv_host" >&6 | |
6669 | host=$ac_cv_host | |
6670 | host_cpu=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
6671 | host_vendor=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
6672 | host_os=`echo $ac_cv_host | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
6673 | ||
6674 | ||
6675 | echo "$as_me:$LINENO: checking target system type" >&5 | |
6676 | echo $ECHO_N "checking target system type... $ECHO_C" >&6 | |
6677 | if test "${ac_cv_target+set}" = set; then | |
6678 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6679 | else | |
6680 | ac_cv_target_alias=$target_alias | |
6681 | test "x$ac_cv_target_alias" = "x" && | |
6682 | ac_cv_target_alias=$ac_cv_host_alias | |
6683 | ac_cv_target=`$ac_config_sub $ac_cv_target_alias` || | |
6684 | { { echo "$as_me:$LINENO: error: $ac_config_sub $ac_cv_target_alias failed" >&5 | |
6685 | echo "$as_me: error: $ac_config_sub $ac_cv_target_alias failed" >&2;} | |
6686 | { (exit 1); exit 1; }; } | |
6687 | ||
6688 | fi | |
6689 | echo "$as_me:$LINENO: result: $ac_cv_target" >&5 | |
6690 | echo "${ECHO_T}$ac_cv_target" >&6 | |
6691 | target=$ac_cv_target | |
6692 | target_cpu=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\1/'` | |
6693 | target_vendor=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\2/'` | |
6694 | target_os=`echo $ac_cv_target | sed 's/^\([^-]*\)-\([^-]*\)-\(.*\)$/\3/'` | |
c906108c | 6695 | |
c906108c SS |
6696 | |
6697 | # The aliases save the names the user supplied, while $host etc. | |
6698 | # will get canonicalized. | |
b7026657 | 6699 | test -n "$target_alias" && |
c906108c SS |
6700 | test "$program_prefix$program_suffix$program_transform_name" = \ |
6701 | NONENONEs,x,x, && | |
6702 | program_prefix=${target_alias}- | |
c906108c | 6703 | test "$program_prefix" != NONE && |
b7026657 | 6704 | program_transform_name="s,^,$program_prefix,;$program_transform_name" |
c906108c SS |
6705 | # Use a double $ so make ignores it. |
6706 | test "$program_suffix" != NONE && | |
b7026657 AC |
6707 | program_transform_name="s,\$,$program_suffix,;$program_transform_name" |
6708 | # Double any \ or $. echo might interpret backslashes. | |
6709 | # By default was `s,x,x', remove it if useless. | |
6710 | cat <<\_ACEOF >conftest.sed | |
6711 | s/[\\$]/&&/g;s/;s,x,x,$// | |
6712 | _ACEOF | |
6713 | program_transform_name=`echo $program_transform_name | sed -f conftest.sed` | |
6714 | rm conftest.sed | |
c906108c SS |
6715 | |
6716 | ||
6717 | . ${srcdir}/../../bfd/configure.host | |
6718 | ||
b7026657 | 6719 | ac_config_headers="$ac_config_headers config.h:config.in" |
c906108c SS |
6720 | |
6721 | ||
c906108c | 6722 | |
b7026657 AC |
6723 | echo "$as_me:$LINENO: checking for struct stat.st_blksize" >&5 |
6724 | echo $ECHO_N "checking for struct stat.st_blksize... $ECHO_C" >&6 | |
6725 | if test "${ac_cv_member_struct_stat_st_blksize+set}" = set; then | |
6726 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6727 | else | |
6728 | cat >conftest.$ac_ext <<_ACEOF | |
6729 | /* confdefs.h. */ | |
6730 | _ACEOF | |
6731 | cat confdefs.h >>conftest.$ac_ext | |
6732 | cat >>conftest.$ac_ext <<_ACEOF | |
6733 | /* end confdefs.h. */ | |
6734 | $ac_includes_default | |
6735 | int | |
6736 | main () | |
6737 | { | |
6738 | static struct stat ac_aggr; | |
6739 | if (ac_aggr.st_blksize) | |
6740 | return 0; | |
6741 | ; | |
6742 | return 0; | |
6743 | } | |
6744 | _ACEOF | |
6745 | rm -f conftest.$ac_objext | |
6746 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6747 | (eval $ac_compile) 2>conftest.er1 | |
6748 | ac_status=$? | |
6749 | grep -v '^ *+' conftest.er1 >conftest.err | |
6750 | rm -f conftest.er1 | |
6751 | cat conftest.err >&5 | |
6752 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6753 | (exit $ac_status); } && | |
6754 | { ac_try='test -z "$ac_c_werror_flag" | |
6755 | || test ! -s conftest.err' | |
6756 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6757 | (eval $ac_try) 2>&5 | |
6758 | ac_status=$? | |
6759 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6760 | (exit $ac_status); }; } && | |
6761 | { ac_try='test -s conftest.$ac_objext' | |
6762 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6763 | (eval $ac_try) 2>&5 | |
6764 | ac_status=$? | |
6765 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6766 | (exit $ac_status); }; }; then | |
6767 | ac_cv_member_struct_stat_st_blksize=yes | |
6768 | else | |
6769 | echo "$as_me: failed program was:" >&5 | |
6770 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6771 | ||
6772 | cat >conftest.$ac_ext <<_ACEOF | |
6773 | /* confdefs.h. */ | |
6774 | _ACEOF | |
6775 | cat confdefs.h >>conftest.$ac_ext | |
6776 | cat >>conftest.$ac_ext <<_ACEOF | |
6777 | /* end confdefs.h. */ | |
6778 | $ac_includes_default | |
6779 | int | |
6780 | main () | |
6781 | { | |
6782 | static struct stat ac_aggr; | |
6783 | if (sizeof ac_aggr.st_blksize) | |
6784 | return 0; | |
6785 | ; | |
6786 | return 0; | |
6787 | } | |
6788 | _ACEOF | |
6789 | rm -f conftest.$ac_objext | |
6790 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6791 | (eval $ac_compile) 2>conftest.er1 | |
6792 | ac_status=$? | |
6793 | grep -v '^ *+' conftest.er1 >conftest.err | |
6794 | rm -f conftest.er1 | |
6795 | cat conftest.err >&5 | |
6796 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6797 | (exit $ac_status); } && | |
6798 | { ac_try='test -z "$ac_c_werror_flag" | |
6799 | || test ! -s conftest.err' | |
6800 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6801 | (eval $ac_try) 2>&5 | |
6802 | ac_status=$? | |
6803 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6804 | (exit $ac_status); }; } && | |
6805 | { ac_try='test -s conftest.$ac_objext' | |
6806 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6807 | (eval $ac_try) 2>&5 | |
6808 | ac_status=$? | |
6809 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6810 | (exit $ac_status); }; }; then | |
6811 | ac_cv_member_struct_stat_st_blksize=yes | |
6812 | else | |
6813 | echo "$as_me: failed program was:" >&5 | |
6814 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6815 | ||
6816 | ac_cv_member_struct_stat_st_blksize=no | |
6817 | fi | |
6818 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6819 | fi | |
6820 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6821 | fi | |
6822 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blksize" >&5 | |
6823 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blksize" >&6 | |
6824 | if test $ac_cv_member_struct_stat_st_blksize = yes; then | |
6825 | ||
6826 | cat >>confdefs.h <<_ACEOF | |
6827 | #define HAVE_STRUCT_STAT_ST_BLKSIZE 1 | |
6828 | _ACEOF | |
6829 | ||
6830 | ||
6831 | cat >>confdefs.h <<\_ACEOF | |
c906108c | 6832 | #define HAVE_ST_BLKSIZE 1 |
b7026657 | 6833 | _ACEOF |
c906108c SS |
6834 | |
6835 | fi | |
6836 | ||
c906108c | 6837 | |
b7026657 AC |
6838 | echo "$as_me:$LINENO: checking for struct stat.st_blocks" >&5 |
6839 | echo $ECHO_N "checking for struct stat.st_blocks... $ECHO_C" >&6 | |
6840 | if test "${ac_cv_member_struct_stat_st_blocks+set}" = set; then | |
6841 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6842 | else | |
6843 | cat >conftest.$ac_ext <<_ACEOF | |
6844 | /* confdefs.h. */ | |
6845 | _ACEOF | |
6846 | cat confdefs.h >>conftest.$ac_ext | |
6847 | cat >>conftest.$ac_ext <<_ACEOF | |
6848 | /* end confdefs.h. */ | |
6849 | $ac_includes_default | |
6850 | int | |
6851 | main () | |
6852 | { | |
6853 | static struct stat ac_aggr; | |
6854 | if (ac_aggr.st_blocks) | |
6855 | return 0; | |
6856 | ; | |
6857 | return 0; | |
6858 | } | |
6859 | _ACEOF | |
6860 | rm -f conftest.$ac_objext | |
6861 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6862 | (eval $ac_compile) 2>conftest.er1 | |
6863 | ac_status=$? | |
6864 | grep -v '^ *+' conftest.er1 >conftest.err | |
6865 | rm -f conftest.er1 | |
6866 | cat conftest.err >&5 | |
6867 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6868 | (exit $ac_status); } && | |
6869 | { ac_try='test -z "$ac_c_werror_flag" | |
6870 | || test ! -s conftest.err' | |
6871 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6872 | (eval $ac_try) 2>&5 | |
6873 | ac_status=$? | |
6874 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6875 | (exit $ac_status); }; } && | |
6876 | { ac_try='test -s conftest.$ac_objext' | |
6877 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6878 | (eval $ac_try) 2>&5 | |
6879 | ac_status=$? | |
6880 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6881 | (exit $ac_status); }; }; then | |
6882 | ac_cv_member_struct_stat_st_blocks=yes | |
6883 | else | |
6884 | echo "$as_me: failed program was:" >&5 | |
6885 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6886 | ||
6887 | cat >conftest.$ac_ext <<_ACEOF | |
6888 | /* confdefs.h. */ | |
6889 | _ACEOF | |
6890 | cat confdefs.h >>conftest.$ac_ext | |
6891 | cat >>conftest.$ac_ext <<_ACEOF | |
6892 | /* end confdefs.h. */ | |
6893 | $ac_includes_default | |
6894 | int | |
6895 | main () | |
6896 | { | |
6897 | static struct stat ac_aggr; | |
6898 | if (sizeof ac_aggr.st_blocks) | |
6899 | return 0; | |
6900 | ; | |
6901 | return 0; | |
6902 | } | |
6903 | _ACEOF | |
6904 | rm -f conftest.$ac_objext | |
6905 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6906 | (eval $ac_compile) 2>conftest.er1 | |
6907 | ac_status=$? | |
6908 | grep -v '^ *+' conftest.er1 >conftest.err | |
6909 | rm -f conftest.er1 | |
6910 | cat conftest.err >&5 | |
6911 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6912 | (exit $ac_status); } && | |
6913 | { ac_try='test -z "$ac_c_werror_flag" | |
6914 | || test ! -s conftest.err' | |
6915 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6916 | (eval $ac_try) 2>&5 | |
6917 | ac_status=$? | |
6918 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6919 | (exit $ac_status); }; } && | |
6920 | { ac_try='test -s conftest.$ac_objext' | |
6921 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6922 | (eval $ac_try) 2>&5 | |
6923 | ac_status=$? | |
6924 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6925 | (exit $ac_status); }; }; then | |
6926 | ac_cv_member_struct_stat_st_blocks=yes | |
6927 | else | |
6928 | echo "$as_me: failed program was:" >&5 | |
6929 | sed 's/^/| /' conftest.$ac_ext >&5 | |
6930 | ||
6931 | ac_cv_member_struct_stat_st_blocks=no | |
6932 | fi | |
6933 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6934 | fi | |
6935 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
6936 | fi | |
6937 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_blocks" >&5 | |
6938 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_blocks" >&6 | |
6939 | if test $ac_cv_member_struct_stat_st_blocks = yes; then | |
6940 | ||
6941 | cat >>confdefs.h <<_ACEOF | |
6942 | #define HAVE_STRUCT_STAT_ST_BLOCKS 1 | |
6943 | _ACEOF | |
6944 | ||
6945 | ||
6946 | cat >>confdefs.h <<\_ACEOF | |
c906108c | 6947 | #define HAVE_ST_BLOCKS 1 |
b7026657 | 6948 | _ACEOF |
c906108c SS |
6949 | |
6950 | else | |
b7026657 AC |
6951 | case $LIBOBJS in |
6952 | "fileblocks.$ac_objext" | \ | |
6953 | *" fileblocks.$ac_objext" | \ | |
6954 | "fileblocks.$ac_objext "* | \ | |
6955 | *" fileblocks.$ac_objext "* ) ;; | |
6956 | *) LIBOBJS="$LIBOBJS fileblocks.$ac_objext" ;; | |
6957 | esac | |
c906108c | 6958 | |
c906108c SS |
6959 | fi |
6960 | ||
b7026657 AC |
6961 | |
6962 | ||
6963 | echo "$as_me:$LINENO: checking for struct stat.st_rdev" >&5 | |
6964 | echo $ECHO_N "checking for struct stat.st_rdev... $ECHO_C" >&6 | |
6965 | if test "${ac_cv_member_struct_stat_st_rdev+set}" = set; then | |
6966 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
6967 | else | |
6968 | cat >conftest.$ac_ext <<_ACEOF | |
6969 | /* confdefs.h. */ | |
6970 | _ACEOF | |
6971 | cat confdefs.h >>conftest.$ac_ext | |
6972 | cat >>conftest.$ac_ext <<_ACEOF | |
6973 | /* end confdefs.h. */ | |
6974 | $ac_includes_default | |
6975 | int | |
6976 | main () | |
6977 | { | |
6978 | static struct stat ac_aggr; | |
6979 | if (ac_aggr.st_rdev) | |
6980 | return 0; | |
6981 | ; | |
6982 | return 0; | |
6983 | } | |
6984 | _ACEOF | |
6985 | rm -f conftest.$ac_objext | |
6986 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
6987 | (eval $ac_compile) 2>conftest.er1 | |
6988 | ac_status=$? | |
6989 | grep -v '^ *+' conftest.er1 >conftest.err | |
6990 | rm -f conftest.er1 | |
6991 | cat conftest.err >&5 | |
6992 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
6993 | (exit $ac_status); } && | |
6994 | { ac_try='test -z "$ac_c_werror_flag" | |
6995 | || test ! -s conftest.err' | |
6996 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
6997 | (eval $ac_try) 2>&5 | |
6998 | ac_status=$? | |
6999 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7000 | (exit $ac_status); }; } && | |
7001 | { ac_try='test -s conftest.$ac_objext' | |
7002 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7003 | (eval $ac_try) 2>&5 | |
7004 | ac_status=$? | |
7005 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7006 | (exit $ac_status); }; }; then | |
7007 | ac_cv_member_struct_stat_st_rdev=yes | |
7008 | else | |
7009 | echo "$as_me: failed program was:" >&5 | |
7010 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7011 | ||
7012 | cat >conftest.$ac_ext <<_ACEOF | |
7013 | /* confdefs.h. */ | |
7014 | _ACEOF | |
7015 | cat confdefs.h >>conftest.$ac_ext | |
7016 | cat >>conftest.$ac_ext <<_ACEOF | |
7017 | /* end confdefs.h. */ | |
7018 | $ac_includes_default | |
7019 | int | |
7020 | main () | |
7021 | { | |
7022 | static struct stat ac_aggr; | |
7023 | if (sizeof ac_aggr.st_rdev) | |
7024 | return 0; | |
7025 | ; | |
7026 | return 0; | |
7027 | } | |
7028 | _ACEOF | |
7029 | rm -f conftest.$ac_objext | |
7030 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7031 | (eval $ac_compile) 2>conftest.er1 | |
7032 | ac_status=$? | |
7033 | grep -v '^ *+' conftest.er1 >conftest.err | |
7034 | rm -f conftest.er1 | |
7035 | cat conftest.err >&5 | |
7036 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7037 | (exit $ac_status); } && | |
7038 | { ac_try='test -z "$ac_c_werror_flag" | |
7039 | || test ! -s conftest.err' | |
7040 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7041 | (eval $ac_try) 2>&5 | |
7042 | ac_status=$? | |
7043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7044 | (exit $ac_status); }; } && | |
7045 | { ac_try='test -s conftest.$ac_objext' | |
7046 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7047 | (eval $ac_try) 2>&5 | |
7048 | ac_status=$? | |
7049 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7050 | (exit $ac_status); }; }; then | |
7051 | ac_cv_member_struct_stat_st_rdev=yes | |
7052 | else | |
7053 | echo "$as_me: failed program was:" >&5 | |
7054 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7055 | ||
7056 | ac_cv_member_struct_stat_st_rdev=no | |
7057 | fi | |
7058 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
7059 | fi | |
7060 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
7061 | fi | |
7062 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_stat_st_rdev" >&5 | |
7063 | echo "${ECHO_T}$ac_cv_member_struct_stat_st_rdev" >&6 | |
7064 | if test $ac_cv_member_struct_stat_st_rdev = yes; then | |
7065 | ||
7066 | cat >>confdefs.h <<_ACEOF | |
7067 | #define HAVE_STRUCT_STAT_ST_RDEV 1 | |
7068 | _ACEOF | |
7069 | ||
7070 | ||
7071 | cat >>confdefs.h <<\_ACEOF | |
c906108c | 7072 | #define HAVE_ST_RDEV 1 |
b7026657 | 7073 | _ACEOF |
c906108c SS |
7074 | |
7075 | fi | |
7076 | ||
b7026657 AC |
7077 | |
7078 | echo "$as_me:$LINENO: checking whether struct tm is in sys/time.h or time.h" >&5 | |
7079 | echo $ECHO_N "checking whether struct tm is in sys/time.h or time.h... $ECHO_C" >&6 | |
7080 | if test "${ac_cv_struct_tm+set}" = set; then | |
7081 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 7082 | else |
b7026657 AC |
7083 | cat >conftest.$ac_ext <<_ACEOF |
7084 | /* confdefs.h. */ | |
7085 | _ACEOF | |
7086 | cat confdefs.h >>conftest.$ac_ext | |
7087 | cat >>conftest.$ac_ext <<_ACEOF | |
7088 | /* end confdefs.h. */ | |
c906108c SS |
7089 | #include <sys/types.h> |
7090 | #include <time.h> | |
b7026657 AC |
7091 | |
7092 | int | |
7093 | main () | |
7094 | { | |
c906108c | 7095 | struct tm *tp; tp->tm_sec; |
b7026657 AC |
7096 | ; |
7097 | return 0; | |
7098 | } | |
7099 | _ACEOF | |
7100 | rm -f conftest.$ac_objext | |
7101 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7102 | (eval $ac_compile) 2>conftest.er1 | |
7103 | ac_status=$? | |
7104 | grep -v '^ *+' conftest.er1 >conftest.err | |
7105 | rm -f conftest.er1 | |
7106 | cat conftest.err >&5 | |
7107 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7108 | (exit $ac_status); } && | |
7109 | { ac_try='test -z "$ac_c_werror_flag" | |
7110 | || test ! -s conftest.err' | |
7111 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7112 | (eval $ac_try) 2>&5 | |
7113 | ac_status=$? | |
7114 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7115 | (exit $ac_status); }; } && | |
7116 | { ac_try='test -s conftest.$ac_objext' | |
7117 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7118 | (eval $ac_try) 2>&5 | |
7119 | ac_status=$? | |
7120 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7121 | (exit $ac_status); }; }; then | |
c906108c SS |
7122 | ac_cv_struct_tm=time.h |
7123 | else | |
b7026657 AC |
7124 | echo "$as_me: failed program was:" >&5 |
7125 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7126 | ||
7127 | ac_cv_struct_tm=sys/time.h | |
c906108c | 7128 | fi |
b7026657 | 7129 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 7130 | fi |
b7026657 AC |
7131 | echo "$as_me:$LINENO: result: $ac_cv_struct_tm" >&5 |
7132 | echo "${ECHO_T}$ac_cv_struct_tm" >&6 | |
c906108c | 7133 | if test $ac_cv_struct_tm = sys/time.h; then |
b7026657 AC |
7134 | |
7135 | cat >>confdefs.h <<\_ACEOF | |
c906108c | 7136 | #define TM_IN_SYS_TIME 1 |
b7026657 | 7137 | _ACEOF |
c906108c SS |
7138 | |
7139 | fi | |
7140 | ||
b7026657 AC |
7141 | echo "$as_me:$LINENO: checking for struct tm.tm_zone" >&5 |
7142 | echo $ECHO_N "checking for struct tm.tm_zone... $ECHO_C" >&6 | |
7143 | if test "${ac_cv_member_struct_tm_tm_zone+set}" = set; then | |
7144 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 7145 | else |
b7026657 AC |
7146 | cat >conftest.$ac_ext <<_ACEOF |
7147 | /* confdefs.h. */ | |
7148 | _ACEOF | |
7149 | cat confdefs.h >>conftest.$ac_ext | |
7150 | cat >>conftest.$ac_ext <<_ACEOF | |
7151 | /* end confdefs.h. */ | |
c906108c SS |
7152 | #include <sys/types.h> |
7153 | #include <$ac_cv_struct_tm> | |
c906108c | 7154 | |
b7026657 AC |
7155 | |
7156 | int | |
7157 | main () | |
7158 | { | |
7159 | static struct tm ac_aggr; | |
7160 | if (ac_aggr.tm_zone) | |
7161 | return 0; | |
7162 | ; | |
7163 | return 0; | |
7164 | } | |
7165 | _ACEOF | |
7166 | rm -f conftest.$ac_objext | |
7167 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7168 | (eval $ac_compile) 2>conftest.er1 | |
7169 | ac_status=$? | |
7170 | grep -v '^ *+' conftest.er1 >conftest.err | |
7171 | rm -f conftest.er1 | |
7172 | cat conftest.err >&5 | |
7173 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7174 | (exit $ac_status); } && | |
7175 | { ac_try='test -z "$ac_c_werror_flag" | |
7176 | || test ! -s conftest.err' | |
7177 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7178 | (eval $ac_try) 2>&5 | |
7179 | ac_status=$? | |
7180 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7181 | (exit $ac_status); }; } && | |
7182 | { ac_try='test -s conftest.$ac_objext' | |
7183 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7184 | (eval $ac_try) 2>&5 | |
7185 | ac_status=$? | |
7186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7187 | (exit $ac_status); }; }; then | |
7188 | ac_cv_member_struct_tm_tm_zone=yes | |
7189 | else | |
7190 | echo "$as_me: failed program was:" >&5 | |
7191 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7192 | ||
7193 | cat >conftest.$ac_ext <<_ACEOF | |
7194 | /* confdefs.h. */ | |
7195 | _ACEOF | |
7196 | cat confdefs.h >>conftest.$ac_ext | |
7197 | cat >>conftest.$ac_ext <<_ACEOF | |
7198 | /* end confdefs.h. */ | |
7199 | #include <sys/types.h> | |
7200 | #include <$ac_cv_struct_tm> | |
7201 | ||
7202 | ||
7203 | int | |
7204 | main () | |
7205 | { | |
7206 | static struct tm ac_aggr; | |
7207 | if (sizeof ac_aggr.tm_zone) | |
7208 | return 0; | |
7209 | ; | |
7210 | return 0; | |
7211 | } | |
7212 | _ACEOF | |
7213 | rm -f conftest.$ac_objext | |
7214 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7215 | (eval $ac_compile) 2>conftest.er1 | |
7216 | ac_status=$? | |
7217 | grep -v '^ *+' conftest.er1 >conftest.err | |
7218 | rm -f conftest.er1 | |
7219 | cat conftest.err >&5 | |
7220 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7221 | (exit $ac_status); } && | |
7222 | { ac_try='test -z "$ac_c_werror_flag" | |
7223 | || test ! -s conftest.err' | |
7224 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7225 | (eval $ac_try) 2>&5 | |
7226 | ac_status=$? | |
7227 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7228 | (exit $ac_status); }; } && | |
7229 | { ac_try='test -s conftest.$ac_objext' | |
7230 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7231 | (eval $ac_try) 2>&5 | |
7232 | ac_status=$? | |
7233 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7234 | (exit $ac_status); }; }; then | |
7235 | ac_cv_member_struct_tm_tm_zone=yes | |
7236 | else | |
7237 | echo "$as_me: failed program was:" >&5 | |
7238 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7239 | ||
7240 | ac_cv_member_struct_tm_tm_zone=no | |
7241 | fi | |
7242 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
7243 | fi | |
7244 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
7245 | fi | |
7246 | echo "$as_me:$LINENO: result: $ac_cv_member_struct_tm_tm_zone" >&5 | |
7247 | echo "${ECHO_T}$ac_cv_member_struct_tm_tm_zone" >&6 | |
7248 | if test $ac_cv_member_struct_tm_tm_zone = yes; then | |
7249 | ||
7250 | cat >>confdefs.h <<_ACEOF | |
7251 | #define HAVE_STRUCT_TM_TM_ZONE 1 | |
7252 | _ACEOF | |
7253 | ||
7254 | ||
7255 | fi | |
7256 | ||
7257 | if test "$ac_cv_member_struct_tm_tm_zone" = yes; then | |
7258 | ||
7259 | cat >>confdefs.h <<\_ACEOF | |
c906108c | 7260 | #define HAVE_TM_ZONE 1 |
b7026657 | 7261 | _ACEOF |
c906108c SS |
7262 | |
7263 | else | |
b7026657 AC |
7264 | echo "$as_me:$LINENO: checking for tzname" >&5 |
7265 | echo $ECHO_N "checking for tzname... $ECHO_C" >&6 | |
7266 | if test "${ac_cv_var_tzname+set}" = set; then | |
7267 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 7268 | else |
b7026657 AC |
7269 | cat >conftest.$ac_ext <<_ACEOF |
7270 | /* confdefs.h. */ | |
7271 | _ACEOF | |
7272 | cat confdefs.h >>conftest.$ac_ext | |
7273 | cat >>conftest.$ac_ext <<_ACEOF | |
7274 | /* end confdefs.h. */ | |
c906108c SS |
7275 | #include <time.h> |
7276 | #ifndef tzname /* For SGI. */ | |
7277 | extern char *tzname[]; /* RS6000 and others reject char **tzname. */ | |
7278 | #endif | |
b7026657 AC |
7279 | |
7280 | int | |
7281 | main () | |
7282 | { | |
c906108c | 7283 | atoi(*tzname); |
b7026657 AC |
7284 | ; |
7285 | return 0; | |
7286 | } | |
7287 | _ACEOF | |
7288 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7289 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7290 | (eval $ac_link) 2>conftest.er1 | |
7291 | ac_status=$? | |
7292 | grep -v '^ *+' conftest.er1 >conftest.err | |
7293 | rm -f conftest.er1 | |
7294 | cat conftest.err >&5 | |
7295 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7296 | (exit $ac_status); } && | |
7297 | { ac_try='test -z "$ac_c_werror_flag" | |
7298 | || test ! -s conftest.err' | |
7299 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7300 | (eval $ac_try) 2>&5 | |
7301 | ac_status=$? | |
7302 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7303 | (exit $ac_status); }; } && | |
7304 | { ac_try='test -s conftest$ac_exeext' | |
7305 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7306 | (eval $ac_try) 2>&5 | |
7307 | ac_status=$? | |
7308 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7309 | (exit $ac_status); }; }; then | |
c906108c SS |
7310 | ac_cv_var_tzname=yes |
7311 | else | |
b7026657 AC |
7312 | echo "$as_me: failed program was:" >&5 |
7313 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7314 | ||
7315 | ac_cv_var_tzname=no | |
c906108c | 7316 | fi |
b7026657 AC |
7317 | rm -f conftest.err conftest.$ac_objext \ |
7318 | conftest$ac_exeext conftest.$ac_ext | |
c906108c | 7319 | fi |
b7026657 AC |
7320 | echo "$as_me:$LINENO: result: $ac_cv_var_tzname" >&5 |
7321 | echo "${ECHO_T}$ac_cv_var_tzname" >&6 | |
c906108c | 7322 | if test $ac_cv_var_tzname = yes; then |
b7026657 AC |
7323 | |
7324 | cat >>confdefs.h <<\_ACEOF | |
c906108c | 7325 | #define HAVE_TZNAME 1 |
b7026657 | 7326 | _ACEOF |
c906108c SS |
7327 | |
7328 | fi | |
7329 | fi | |
7330 | ||
7331 | ||
b7026657 AC |
7332 | echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 |
7333 | echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 | |
7334 | if test "${ac_cv_type_uid_t+set}" = set; then | |
7335 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 7336 | else |
b7026657 AC |
7337 | cat >conftest.$ac_ext <<_ACEOF |
7338 | /* confdefs.h. */ | |
7339 | _ACEOF | |
7340 | cat confdefs.h >>conftest.$ac_ext | |
7341 | cat >>conftest.$ac_ext <<_ACEOF | |
7342 | /* end confdefs.h. */ | |
c906108c | 7343 | #include <sys/types.h> |
b7026657 AC |
7344 | |
7345 | _ACEOF | |
c906108c | 7346 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
b7026657 | 7347 | $EGREP "uid_t" >/dev/null 2>&1; then |
c906108c SS |
7348 | ac_cv_type_uid_t=yes |
7349 | else | |
c906108c SS |
7350 | ac_cv_type_uid_t=no |
7351 | fi | |
7352 | rm -f conftest* | |
7353 | ||
7354 | fi | |
b7026657 AC |
7355 | echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 |
7356 | echo "${ECHO_T}$ac_cv_type_uid_t" >&6 | |
c906108c | 7357 | if test $ac_cv_type_uid_t = no; then |
b7026657 AC |
7358 | |
7359 | cat >>confdefs.h <<\_ACEOF | |
c906108c | 7360 | #define uid_t int |
b7026657 | 7361 | _ACEOF |
c906108c | 7362 | |
b7026657 AC |
7363 | |
7364 | cat >>confdefs.h <<\_ACEOF | |
c906108c | 7365 | #define gid_t int |
b7026657 | 7366 | _ACEOF |
c906108c SS |
7367 | |
7368 | fi | |
7369 | ||
b7026657 AC |
7370 | echo "$as_me:$LINENO: checking type of array argument to getgroups" >&5 |
7371 | echo $ECHO_N "checking type of array argument to getgroups... $ECHO_C" >&6 | |
7372 | if test "${ac_cv_type_getgroups+set}" = set; then | |
7373 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c SS |
7374 | else |
7375 | if test "$cross_compiling" = yes; then | |
7376 | ac_cv_type_getgroups=cross | |
7377 | else | |
b7026657 AC |
7378 | cat >conftest.$ac_ext <<_ACEOF |
7379 | /* confdefs.h. */ | |
7380 | _ACEOF | |
7381 | cat confdefs.h >>conftest.$ac_ext | |
7382 | cat >>conftest.$ac_ext <<_ACEOF | |
7383 | /* end confdefs.h. */ | |
c906108c SS |
7384 | /* Thanks to Mike Rendell for this test. */ |
7385 | #include <sys/types.h> | |
7386 | #define NGID 256 | |
7387 | #undef MAX | |
7388 | #define MAX(x, y) ((x) > (y) ? (x) : (y)) | |
b7026657 AC |
7389 | |
7390 | int | |
7391 | main () | |
c906108c SS |
7392 | { |
7393 | gid_t gidset[NGID]; | |
7394 | int i, n; | |
7395 | union { gid_t gval; long lval; } val; | |
7396 | ||
7397 | val.lval = -1; | |
7398 | for (i = 0; i < NGID; i++) | |
7399 | gidset[i] = val.gval; | |
7400 | n = getgroups (sizeof (gidset) / MAX (sizeof (int), sizeof (gid_t)) - 1, | |
b7026657 | 7401 | gidset); |
c906108c SS |
7402 | /* Exit non-zero if getgroups seems to require an array of ints. This |
7403 | happens when gid_t is short but getgroups modifies an array of ints. */ | |
7404 | exit ((n > 0 && gidset[n] != val.gval) ? 1 : 0); | |
7405 | } | |
b7026657 AC |
7406 | _ACEOF |
7407 | rm -f conftest$ac_exeext | |
7408 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7409 | (eval $ac_link) 2>&5 | |
7410 | ac_status=$? | |
7411 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7412 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
7413 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7414 | (eval $ac_try) 2>&5 | |
7415 | ac_status=$? | |
7416 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7417 | (exit $ac_status); }; }; then | |
7418 | ac_cv_type_getgroups=gid_t | |
c906108c | 7419 | else |
b7026657 AC |
7420 | echo "$as_me: program exited with status $ac_status" >&5 |
7421 | echo "$as_me: failed program was:" >&5 | |
7422 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7423 | ||
7424 | ( exit $ac_status ) | |
7425 | ac_cv_type_getgroups=int | |
c906108c | 7426 | fi |
b7026657 | 7427 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
c906108c | 7428 | fi |
c906108c | 7429 | if test $ac_cv_type_getgroups = cross; then |
b7026657 AC |
7430 | cat >conftest.$ac_ext <<_ACEOF |
7431 | /* confdefs.h. */ | |
7432 | _ACEOF | |
7433 | cat confdefs.h >>conftest.$ac_ext | |
7434 | cat >>conftest.$ac_ext <<_ACEOF | |
7435 | /* end confdefs.h. */ | |
c906108c | 7436 | #include <unistd.h> |
b7026657 AC |
7437 | |
7438 | _ACEOF | |
c906108c | 7439 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
b7026657 | 7440 | $EGREP "getgroups.*int.*gid_t" >/dev/null 2>&1; then |
c906108c SS |
7441 | ac_cv_type_getgroups=gid_t |
7442 | else | |
c906108c SS |
7443 | ac_cv_type_getgroups=int |
7444 | fi | |
7445 | rm -f conftest* | |
7446 | ||
7447 | fi | |
7448 | fi | |
b7026657 AC |
7449 | echo "$as_me:$LINENO: result: $ac_cv_type_getgroups" >&5 |
7450 | echo "${ECHO_T}$ac_cv_type_getgroups" >&6 | |
c906108c | 7451 | |
b7026657 | 7452 | cat >>confdefs.h <<_ACEOF |
c906108c | 7453 | #define GETGROUPS_T $ac_cv_type_getgroups |
b7026657 | 7454 | _ACEOF |
c906108c SS |
7455 | |
7456 | ||
b7026657 AC |
7457 | echo "$as_me:$LINENO: checking for mode_t" >&5 |
7458 | echo $ECHO_N "checking for mode_t... $ECHO_C" >&6 | |
7459 | if test "${ac_cv_type_mode_t+set}" = set; then | |
7460 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 7461 | else |
b7026657 AC |
7462 | cat >conftest.$ac_ext <<_ACEOF |
7463 | /* confdefs.h. */ | |
7464 | _ACEOF | |
7465 | cat confdefs.h >>conftest.$ac_ext | |
7466 | cat >>conftest.$ac_ext <<_ACEOF | |
7467 | /* end confdefs.h. */ | |
7468 | $ac_includes_default | |
7469 | int | |
7470 | main () | |
7471 | { | |
7472 | if ((mode_t *) 0) | |
7473 | return 0; | |
7474 | if (sizeof (mode_t)) | |
7475 | return 0; | |
7476 | ; | |
7477 | return 0; | |
7478 | } | |
7479 | _ACEOF | |
7480 | rm -f conftest.$ac_objext | |
7481 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7482 | (eval $ac_compile) 2>conftest.er1 | |
7483 | ac_status=$? | |
7484 | grep -v '^ *+' conftest.er1 >conftest.err | |
7485 | rm -f conftest.er1 | |
7486 | cat conftest.err >&5 | |
7487 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7488 | (exit $ac_status); } && | |
7489 | { ac_try='test -z "$ac_c_werror_flag" | |
7490 | || test ! -s conftest.err' | |
7491 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7492 | (eval $ac_try) 2>&5 | |
7493 | ac_status=$? | |
7494 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7495 | (exit $ac_status); }; } && | |
7496 | { ac_try='test -s conftest.$ac_objext' | |
7497 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7498 | (eval $ac_try) 2>&5 | |
7499 | ac_status=$? | |
7500 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7501 | (exit $ac_status); }; }; then | |
c906108c SS |
7502 | ac_cv_type_mode_t=yes |
7503 | else | |
b7026657 AC |
7504 | echo "$as_me: failed program was:" >&5 |
7505 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c | 7506 | |
b7026657 AC |
7507 | ac_cv_type_mode_t=no |
7508 | fi | |
7509 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
c906108c | 7510 | fi |
b7026657 AC |
7511 | echo "$as_me:$LINENO: result: $ac_cv_type_mode_t" >&5 |
7512 | echo "${ECHO_T}$ac_cv_type_mode_t" >&6 | |
7513 | if test $ac_cv_type_mode_t = yes; then | |
7514 | : | |
7515 | else | |
7516 | ||
7517 | cat >>confdefs.h <<_ACEOF | |
c906108c | 7518 | #define mode_t int |
b7026657 | 7519 | _ACEOF |
c906108c SS |
7520 | |
7521 | fi | |
7522 | ||
b7026657 AC |
7523 | echo "$as_me:$LINENO: checking for off_t" >&5 |
7524 | echo $ECHO_N "checking for off_t... $ECHO_C" >&6 | |
7525 | if test "${ac_cv_type_off_t+set}" = set; then | |
7526 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 7527 | else |
b7026657 AC |
7528 | cat >conftest.$ac_ext <<_ACEOF |
7529 | /* confdefs.h. */ | |
7530 | _ACEOF | |
7531 | cat confdefs.h >>conftest.$ac_ext | |
7532 | cat >>conftest.$ac_ext <<_ACEOF | |
7533 | /* end confdefs.h. */ | |
7534 | $ac_includes_default | |
7535 | int | |
7536 | main () | |
7537 | { | |
7538 | if ((off_t *) 0) | |
7539 | return 0; | |
7540 | if (sizeof (off_t)) | |
7541 | return 0; | |
7542 | ; | |
7543 | return 0; | |
7544 | } | |
7545 | _ACEOF | |
7546 | rm -f conftest.$ac_objext | |
7547 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7548 | (eval $ac_compile) 2>conftest.er1 | |
7549 | ac_status=$? | |
7550 | grep -v '^ *+' conftest.er1 >conftest.err | |
7551 | rm -f conftest.er1 | |
7552 | cat conftest.err >&5 | |
7553 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7554 | (exit $ac_status); } && | |
7555 | { ac_try='test -z "$ac_c_werror_flag" | |
7556 | || test ! -s conftest.err' | |
7557 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7558 | (eval $ac_try) 2>&5 | |
7559 | ac_status=$? | |
7560 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7561 | (exit $ac_status); }; } && | |
7562 | { ac_try='test -s conftest.$ac_objext' | |
7563 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7564 | (eval $ac_try) 2>&5 | |
7565 | ac_status=$? | |
7566 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7567 | (exit $ac_status); }; }; then | |
c906108c SS |
7568 | ac_cv_type_off_t=yes |
7569 | else | |
b7026657 AC |
7570 | echo "$as_me: failed program was:" >&5 |
7571 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c | 7572 | |
b7026657 AC |
7573 | ac_cv_type_off_t=no |
7574 | fi | |
7575 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
c906108c | 7576 | fi |
b7026657 AC |
7577 | echo "$as_me:$LINENO: result: $ac_cv_type_off_t" >&5 |
7578 | echo "${ECHO_T}$ac_cv_type_off_t" >&6 | |
7579 | if test $ac_cv_type_off_t = yes; then | |
7580 | : | |
7581 | else | |
7582 | ||
7583 | cat >>confdefs.h <<_ACEOF | |
c906108c | 7584 | #define off_t long |
b7026657 | 7585 | _ACEOF |
c906108c SS |
7586 | |
7587 | fi | |
7588 | ||
b7026657 AC |
7589 | echo "$as_me:$LINENO: checking for pid_t" >&5 |
7590 | echo $ECHO_N "checking for pid_t... $ECHO_C" >&6 | |
7591 | if test "${ac_cv_type_pid_t+set}" = set; then | |
7592 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 7593 | else |
b7026657 AC |
7594 | cat >conftest.$ac_ext <<_ACEOF |
7595 | /* confdefs.h. */ | |
7596 | _ACEOF | |
7597 | cat confdefs.h >>conftest.$ac_ext | |
7598 | cat >>conftest.$ac_ext <<_ACEOF | |
7599 | /* end confdefs.h. */ | |
7600 | $ac_includes_default | |
7601 | int | |
7602 | main () | |
7603 | { | |
7604 | if ((pid_t *) 0) | |
7605 | return 0; | |
7606 | if (sizeof (pid_t)) | |
7607 | return 0; | |
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 | |
c906108c SS |
7634 | ac_cv_type_pid_t=yes |
7635 | else | |
b7026657 AC |
7636 | echo "$as_me: failed program was:" >&5 |
7637 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c | 7638 | |
b7026657 AC |
7639 | ac_cv_type_pid_t=no |
7640 | fi | |
7641 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
c906108c | 7642 | fi |
b7026657 AC |
7643 | echo "$as_me:$LINENO: result: $ac_cv_type_pid_t" >&5 |
7644 | echo "${ECHO_T}$ac_cv_type_pid_t" >&6 | |
7645 | if test $ac_cv_type_pid_t = yes; then | |
7646 | : | |
7647 | else | |
7648 | ||
7649 | cat >>confdefs.h <<_ACEOF | |
c906108c | 7650 | #define pid_t int |
b7026657 | 7651 | _ACEOF |
c906108c SS |
7652 | |
7653 | fi | |
7654 | ||
b7026657 AC |
7655 | echo "$as_me:$LINENO: checking return type of signal handlers" >&5 |
7656 | echo $ECHO_N "checking return type of signal handlers... $ECHO_C" >&6 | |
7657 | if test "${ac_cv_type_signal+set}" = set; then | |
7658 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 7659 | else |
b7026657 AC |
7660 | cat >conftest.$ac_ext <<_ACEOF |
7661 | /* confdefs.h. */ | |
7662 | _ACEOF | |
7663 | cat confdefs.h >>conftest.$ac_ext | |
7664 | cat >>conftest.$ac_ext <<_ACEOF | |
7665 | /* end confdefs.h. */ | |
c906108c SS |
7666 | #include <sys/types.h> |
7667 | #include <signal.h> | |
7668 | #ifdef signal | |
b7026657 | 7669 | # undef signal |
c906108c SS |
7670 | #endif |
7671 | #ifdef __cplusplus | |
7672 | extern "C" void (*signal (int, void (*)(int)))(int); | |
7673 | #else | |
7674 | void (*signal ()) (); | |
7675 | #endif | |
7676 | ||
b7026657 AC |
7677 | int |
7678 | main () | |
7679 | { | |
c906108c | 7680 | int i; |
b7026657 AC |
7681 | ; |
7682 | return 0; | |
7683 | } | |
7684 | _ACEOF | |
7685 | rm -f conftest.$ac_objext | |
7686 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7687 | (eval $ac_compile) 2>conftest.er1 | |
7688 | ac_status=$? | |
7689 | grep -v '^ *+' conftest.er1 >conftest.err | |
7690 | rm -f conftest.er1 | |
7691 | cat conftest.err >&5 | |
7692 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7693 | (exit $ac_status); } && | |
7694 | { ac_try='test -z "$ac_c_werror_flag" | |
7695 | || test ! -s conftest.err' | |
7696 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7697 | (eval $ac_try) 2>&5 | |
7698 | ac_status=$? | |
7699 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7700 | (exit $ac_status); }; } && | |
7701 | { ac_try='test -s conftest.$ac_objext' | |
7702 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7703 | (eval $ac_try) 2>&5 | |
7704 | ac_status=$? | |
7705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7706 | (exit $ac_status); }; }; then | |
c906108c SS |
7707 | ac_cv_type_signal=void |
7708 | else | |
b7026657 AC |
7709 | echo "$as_me: failed program was:" >&5 |
7710 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7711 | ||
7712 | ac_cv_type_signal=int | |
c906108c | 7713 | fi |
b7026657 | 7714 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c | 7715 | fi |
b7026657 AC |
7716 | echo "$as_me:$LINENO: result: $ac_cv_type_signal" >&5 |
7717 | echo "${ECHO_T}$ac_cv_type_signal" >&6 | |
c906108c | 7718 | |
b7026657 | 7719 | cat >>confdefs.h <<_ACEOF |
c906108c | 7720 | #define RETSIGTYPE $ac_cv_type_signal |
b7026657 | 7721 | _ACEOF |
c906108c SS |
7722 | |
7723 | ||
b7026657 AC |
7724 | echo "$as_me:$LINENO: checking for size_t" >&5 |
7725 | echo $ECHO_N "checking for size_t... $ECHO_C" >&6 | |
7726 | if test "${ac_cv_type_size_t+set}" = set; then | |
7727 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 7728 | else |
b7026657 AC |
7729 | cat >conftest.$ac_ext <<_ACEOF |
7730 | /* confdefs.h. */ | |
7731 | _ACEOF | |
7732 | cat confdefs.h >>conftest.$ac_ext | |
7733 | cat >>conftest.$ac_ext <<_ACEOF | |
7734 | /* end confdefs.h. */ | |
7735 | $ac_includes_default | |
7736 | int | |
7737 | main () | |
7738 | { | |
7739 | if ((size_t *) 0) | |
7740 | return 0; | |
7741 | if (sizeof (size_t)) | |
7742 | return 0; | |
7743 | ; | |
7744 | return 0; | |
7745 | } | |
7746 | _ACEOF | |
7747 | rm -f conftest.$ac_objext | |
7748 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
7749 | (eval $ac_compile) 2>conftest.er1 | |
7750 | ac_status=$? | |
7751 | grep -v '^ *+' conftest.er1 >conftest.err | |
7752 | rm -f conftest.er1 | |
7753 | cat conftest.err >&5 | |
7754 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7755 | (exit $ac_status); } && | |
7756 | { ac_try='test -z "$ac_c_werror_flag" | |
7757 | || test ! -s conftest.err' | |
7758 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7759 | (eval $ac_try) 2>&5 | |
7760 | ac_status=$? | |
7761 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7762 | (exit $ac_status); }; } && | |
7763 | { ac_try='test -s conftest.$ac_objext' | |
7764 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7765 | (eval $ac_try) 2>&5 | |
7766 | ac_status=$? | |
7767 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7768 | (exit $ac_status); }; }; then | |
c906108c SS |
7769 | ac_cv_type_size_t=yes |
7770 | else | |
b7026657 AC |
7771 | echo "$as_me: failed program was:" >&5 |
7772 | sed 's/^/| /' conftest.$ac_ext >&5 | |
c906108c | 7773 | |
b7026657 | 7774 | ac_cv_type_size_t=no |
c906108c | 7775 | fi |
b7026657 AC |
7776 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
7777 | fi | |
7778 | echo "$as_me:$LINENO: result: $ac_cv_type_size_t" >&5 | |
7779 | echo "${ECHO_T}$ac_cv_type_size_t" >&6 | |
7780 | if test $ac_cv_type_size_t = yes; then | |
7781 | : | |
7782 | else | |
7783 | ||
7784 | cat >>confdefs.h <<_ACEOF | |
c906108c | 7785 | #define size_t unsigned |
b7026657 | 7786 | _ACEOF |
c906108c SS |
7787 | |
7788 | fi | |
7789 | ||
b7026657 AC |
7790 | echo "$as_me:$LINENO: checking for uid_t in sys/types.h" >&5 |
7791 | echo $ECHO_N "checking for uid_t in sys/types.h... $ECHO_C" >&6 | |
7792 | if test "${ac_cv_type_uid_t+set}" = set; then | |
7793 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 7794 | else |
b7026657 AC |
7795 | cat >conftest.$ac_ext <<_ACEOF |
7796 | /* confdefs.h. */ | |
7797 | _ACEOF | |
7798 | cat confdefs.h >>conftest.$ac_ext | |
7799 | cat >>conftest.$ac_ext <<_ACEOF | |
7800 | /* end confdefs.h. */ | |
c906108c | 7801 | #include <sys/types.h> |
b7026657 AC |
7802 | |
7803 | _ACEOF | |
c906108c | 7804 | if (eval "$ac_cpp conftest.$ac_ext") 2>&5 | |
b7026657 | 7805 | $EGREP "uid_t" >/dev/null 2>&1; then |
c906108c SS |
7806 | ac_cv_type_uid_t=yes |
7807 | else | |
c906108c SS |
7808 | ac_cv_type_uid_t=no |
7809 | fi | |
7810 | rm -f conftest* | |
7811 | ||
7812 | fi | |
b7026657 AC |
7813 | echo "$as_me:$LINENO: result: $ac_cv_type_uid_t" >&5 |
7814 | echo "${ECHO_T}$ac_cv_type_uid_t" >&6 | |
c906108c | 7815 | if test $ac_cv_type_uid_t = no; then |
b7026657 AC |
7816 | |
7817 | cat >>confdefs.h <<\_ACEOF | |
c906108c | 7818 | #define uid_t int |
b7026657 AC |
7819 | _ACEOF |
7820 | ||
c906108c | 7821 | |
b7026657 | 7822 | cat >>confdefs.h <<\_ACEOF |
c906108c | 7823 | #define gid_t int |
b7026657 | 7824 | _ACEOF |
c906108c SS |
7825 | |
7826 | fi | |
7827 | ||
7828 | ||
b7026657 AC |
7829 | |
7830 | ||
7831 | ||
7832 | ||
7833 | ||
7834 | ||
7835 | ||
7836 | ||
7837 | ||
7838 | ||
7839 | ||
7840 | ||
7841 | ||
7842 | ||
7843 | ||
7844 | ||
7845 | ||
7846 | ||
7847 | ||
7848 | ||
7849 | ||
7850 | ||
7851 | ||
7852 | ||
7853 | ||
7854 | ||
7855 | ||
7856 | ||
7857 | ||
7858 | ||
7859 | ||
7860 | ||
7861 | ||
7862 | ||
7863 | ||
7864 | ||
7865 | ||
7866 | ||
7867 | ||
7868 | ||
7869 | ||
7870 | ||
7871 | ||
7872 | ||
7873 | ||
7874 | ||
7875 | ||
7876 | ||
7877 | ||
7878 | ||
c906108c SS |
7879 | for ac_func in access cfgetispeed cfgetospeed cfsetispeed cfsetospeed chdir chmod chown dup dup2 fchmod fchown fcntl fstat fstatfs getdirentries getegid geteuid getgid getpid getppid getrusage gettimeofday getuid ioctl kill link lseek lstat mkdir pipe readlink rmdir setreuid setregid stat sigprocmask stat symlink tcgetattr tcsetattr tcsendbreak tcdrain tcflush tcflow tcgetpgrp tcsetpgrp time umask unlink |
7880 | do | |
b7026657 AC |
7881 | as_ac_var=`echo "ac_cv_func_$ac_func" | $as_tr_sh` |
7882 | echo "$as_me:$LINENO: checking for $ac_func" >&5 | |
7883 | echo $ECHO_N "checking for $ac_func... $ECHO_C" >&6 | |
7884 | if eval "test \"\${$as_ac_var+set}\" = set"; then | |
7885 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
7886 | else | |
7887 | cat >conftest.$ac_ext <<_ACEOF | |
7888 | /* confdefs.h. */ | |
7889 | _ACEOF | |
7890 | cat confdefs.h >>conftest.$ac_ext | |
7891 | cat >>conftest.$ac_ext <<_ACEOF | |
7892 | /* end confdefs.h. */ | |
7893 | /* Define $ac_func to an innocuous variant, in case <limits.h> declares $ac_func. | |
7894 | For example, HP-UX 11i <limits.h> declares gettimeofday. */ | |
7895 | #define $ac_func innocuous_$ac_func | |
7896 | ||
c906108c | 7897 | /* System header to define __stub macros and hopefully few prototypes, |
b7026657 AC |
7898 | which can conflict with char $ac_func (); below. |
7899 | Prefer <limits.h> to <assert.h> if __STDC__ is defined, since | |
7900 | <limits.h> exists even on freestanding compilers. */ | |
7901 | ||
7902 | #ifdef __STDC__ | |
7903 | # include <limits.h> | |
7904 | #else | |
7905 | # include <assert.h> | |
7906 | #endif | |
c906108c | 7907 | |
b7026657 | 7908 | #undef $ac_func |
c906108c | 7909 | |
b7026657 AC |
7910 | /* Override any gcc2 internal prototype to avoid an error. */ |
7911 | #ifdef __cplusplus | |
7912 | extern "C" | |
7913 | { | |
7914 | #endif | |
7915 | /* We use char because int might match the return type of a gcc2 | |
7916 | builtin and then its argument prototype would still apply. */ | |
7917 | char $ac_func (); | |
c906108c SS |
7918 | /* The GNU C library defines this for functions which it implements |
7919 | to always fail with ENOSYS. Some functions are actually named | |
7920 | something starting with __ and the normal name is an alias. */ | |
7921 | #if defined (__stub_$ac_func) || defined (__stub___$ac_func) | |
7922 | choke me | |
7923 | #else | |
b7026657 AC |
7924 | char (*f) () = $ac_func; |
7925 | #endif | |
7926 | #ifdef __cplusplus | |
7927 | } | |
c906108c SS |
7928 | #endif |
7929 | ||
b7026657 AC |
7930 | int |
7931 | main () | |
7932 | { | |
7933 | return f != $ac_func; | |
7934 | ; | |
7935 | return 0; | |
7936 | } | |
7937 | _ACEOF | |
7938 | rm -f conftest.$ac_objext conftest$ac_exeext | |
7939 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
7940 | (eval $ac_link) 2>conftest.er1 | |
7941 | ac_status=$? | |
7942 | grep -v '^ *+' conftest.er1 >conftest.err | |
7943 | rm -f conftest.er1 | |
7944 | cat conftest.err >&5 | |
7945 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7946 | (exit $ac_status); } && | |
7947 | { ac_try='test -z "$ac_c_werror_flag" | |
7948 | || test ! -s conftest.err' | |
7949 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7950 | (eval $ac_try) 2>&5 | |
7951 | ac_status=$? | |
7952 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7953 | (exit $ac_status); }; } && | |
7954 | { ac_try='test -s conftest$ac_exeext' | |
7955 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
7956 | (eval $ac_try) 2>&5 | |
7957 | ac_status=$? | |
7958 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
7959 | (exit $ac_status); }; }; then | |
7960 | eval "$as_ac_var=yes" | |
7961 | else | |
7962 | echo "$as_me: failed program was:" >&5 | |
7963 | sed 's/^/| /' conftest.$ac_ext >&5 | |
7964 | ||
7965 | eval "$as_ac_var=no" | |
7966 | fi | |
7967 | rm -f conftest.err conftest.$ac_objext \ | |
7968 | conftest$ac_exeext conftest.$ac_ext | |
7969 | fi | |
7970 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_var'}'`" >&5 | |
7971 | echo "${ECHO_T}`eval echo '${'$as_ac_var'}'`" >&6 | |
7972 | if test `eval echo '${'$as_ac_var'}'` = yes; then | |
7973 | cat >>confdefs.h <<_ACEOF | |
7974 | #define `echo "HAVE_$ac_func" | $as_tr_cpp` 1 | |
7975 | _ACEOF | |
c906108c | 7976 | |
c906108c SS |
7977 | fi |
7978 | done | |
7979 | ||
7980 | ||
b7026657 AC |
7981 | |
7982 | ||
7983 | ||
7984 | ||
7985 | ||
7986 | ||
7987 | ||
7988 | ||
7989 | ||
7990 | ||
7991 | ||
7992 | ||
7993 | ||
7994 | ||
7995 | ||
7996 | ||
7997 | ||
7998 | ||
7999 | for ac_header in fcntl.h stdlib.h string.h strings.h sys/ioctl.h sys/mount.h sys/param.h sys/resource.h sys/stat.h sys/termio.h sys/termios.h sys/time.h sys/times.h sys/types.h time.h unistd.h sys/vfs.h sys/statfs.h | |
c906108c | 8000 | do |
b7026657 AC |
8001 | as_ac_Header=`echo "ac_cv_header_$ac_header" | $as_tr_sh` |
8002 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
8003 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8004 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8005 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
8006 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8007 | fi | |
8008 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
8009 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
8010 | else | |
8011 | # Is the header compilable? | |
8012 | echo "$as_me:$LINENO: checking $ac_header usability" >&5 | |
8013 | echo $ECHO_N "checking $ac_header usability... $ECHO_C" >&6 | |
8014 | cat >conftest.$ac_ext <<_ACEOF | |
8015 | /* confdefs.h. */ | |
8016 | _ACEOF | |
8017 | cat confdefs.h >>conftest.$ac_ext | |
8018 | cat >>conftest.$ac_ext <<_ACEOF | |
8019 | /* end confdefs.h. */ | |
8020 | $ac_includes_default | |
8021 | #include <$ac_header> | |
8022 | _ACEOF | |
8023 | rm -f conftest.$ac_objext | |
8024 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8025 | (eval $ac_compile) 2>conftest.er1 | |
8026 | ac_status=$? | |
8027 | grep -v '^ *+' conftest.er1 >conftest.err | |
8028 | rm -f conftest.er1 | |
8029 | cat conftest.err >&5 | |
8030 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8031 | (exit $ac_status); } && | |
8032 | { ac_try='test -z "$ac_c_werror_flag" | |
8033 | || test ! -s conftest.err' | |
8034 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8035 | (eval $ac_try) 2>&5 | |
8036 | ac_status=$? | |
8037 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8038 | (exit $ac_status); }; } && | |
8039 | { ac_try='test -s conftest.$ac_objext' | |
8040 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8041 | (eval $ac_try) 2>&5 | |
8042 | ac_status=$? | |
8043 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8044 | (exit $ac_status); }; }; then | |
8045 | ac_header_compiler=yes | |
8046 | else | |
8047 | echo "$as_me: failed program was:" >&5 | |
8048 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8049 | ||
8050 | ac_header_compiler=no | |
8051 | fi | |
8052 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
8053 | echo "$as_me:$LINENO: result: $ac_header_compiler" >&5 | |
8054 | echo "${ECHO_T}$ac_header_compiler" >&6 | |
8055 | ||
8056 | # Is the header present? | |
8057 | echo "$as_me:$LINENO: checking $ac_header presence" >&5 | |
8058 | echo $ECHO_N "checking $ac_header presence... $ECHO_C" >&6 | |
8059 | cat >conftest.$ac_ext <<_ACEOF | |
8060 | /* confdefs.h. */ | |
8061 | _ACEOF | |
8062 | cat confdefs.h >>conftest.$ac_ext | |
8063 | cat >>conftest.$ac_ext <<_ACEOF | |
8064 | /* end confdefs.h. */ | |
8065 | #include <$ac_header> | |
8066 | _ACEOF | |
8067 | if { (eval echo "$as_me:$LINENO: \"$ac_cpp conftest.$ac_ext\"") >&5 | |
8068 | (eval $ac_cpp conftest.$ac_ext) 2>conftest.er1 | |
8069 | ac_status=$? | |
8070 | grep -v '^ *+' conftest.er1 >conftest.err | |
8071 | rm -f conftest.er1 | |
8072 | cat conftest.err >&5 | |
8073 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8074 | (exit $ac_status); } >/dev/null; then | |
8075 | if test -s conftest.err; then | |
8076 | ac_cpp_err=$ac_c_preproc_warn_flag | |
8077 | ac_cpp_err=$ac_cpp_err$ac_c_werror_flag | |
8078 | else | |
8079 | ac_cpp_err= | |
8080 | fi | |
8081 | else | |
8082 | ac_cpp_err=yes | |
c906108c | 8083 | fi |
b7026657 AC |
8084 | if test -z "$ac_cpp_err"; then |
8085 | ac_header_preproc=yes | |
8086 | else | |
8087 | echo "$as_me: failed program was:" >&5 | |
8088 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8089 | ||
8090 | ac_header_preproc=no | |
c906108c | 8091 | fi |
b7026657 AC |
8092 | rm -f conftest.err conftest.$ac_ext |
8093 | echo "$as_me:$LINENO: result: $ac_header_preproc" >&5 | |
8094 | echo "${ECHO_T}$ac_header_preproc" >&6 | |
8095 | ||
8096 | # So? What about this header? | |
8097 | case $ac_header_compiler:$ac_header_preproc:$ac_c_preproc_warn_flag in | |
8098 | yes:no: ) | |
8099 | { echo "$as_me:$LINENO: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&5 | |
8100 | echo "$as_me: WARNING: $ac_header: accepted by the compiler, rejected by the preprocessor!" >&2;} | |
8101 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the compiler's result" >&5 | |
8102 | echo "$as_me: WARNING: $ac_header: proceeding with the compiler's result" >&2;} | |
8103 | ac_header_preproc=yes | |
8104 | ;; | |
8105 | no:yes:* ) | |
8106 | { echo "$as_me:$LINENO: WARNING: $ac_header: present but cannot be compiled" >&5 | |
8107 | echo "$as_me: WARNING: $ac_header: present but cannot be compiled" >&2;} | |
8108 | { echo "$as_me:$LINENO: WARNING: $ac_header: check for missing prerequisite headers?" >&5 | |
8109 | echo "$as_me: WARNING: $ac_header: check for missing prerequisite headers?" >&2;} | |
8110 | { echo "$as_me:$LINENO: WARNING: $ac_header: see the Autoconf documentation" >&5 | |
8111 | echo "$as_me: WARNING: $ac_header: see the Autoconf documentation" >&2;} | |
8112 | { echo "$as_me:$LINENO: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&5 | |
8113 | echo "$as_me: WARNING: $ac_header: section \"Present But Cannot Be Compiled\"" >&2;} | |
8114 | { echo "$as_me:$LINENO: WARNING: $ac_header: proceeding with the preprocessor's result" >&5 | |
8115 | echo "$as_me: WARNING: $ac_header: proceeding with the preprocessor's result" >&2;} | |
8116 | { echo "$as_me:$LINENO: WARNING: $ac_header: in the future, the compiler will take precedence" >&5 | |
8117 | echo "$as_me: WARNING: $ac_header: in the future, the compiler will take precedence" >&2;} | |
8118 | ( | |
8119 | cat <<\_ASBOX | |
8120 | ## ------------------------------------------ ## | |
8121 | ## Report this to the AC_PACKAGE_NAME lists. ## | |
8122 | ## ------------------------------------------ ## | |
8123 | _ASBOX | |
8124 | ) | | |
8125 | sed "s/^/$as_me: WARNING: /" >&2 | |
8126 | ;; | |
8127 | esac | |
8128 | echo "$as_me:$LINENO: checking for $ac_header" >&5 | |
8129 | echo $ECHO_N "checking for $ac_header... $ECHO_C" >&6 | |
8130 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
8131 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 8132 | else |
b7026657 AC |
8133 | eval "$as_ac_Header=\$ac_header_preproc" |
8134 | fi | |
8135 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
8136 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
8137 | ||
8138 | fi | |
8139 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
8140 | cat >>confdefs.h <<_ACEOF | |
8141 | #define `echo "HAVE_$ac_header" | $as_tr_cpp` 1 | |
8142 | _ACEOF | |
8143 | ||
c906108c | 8144 | fi |
b7026657 | 8145 | |
c906108c SS |
8146 | done |
8147 | ||
b7026657 AC |
8148 | |
8149 | ||
8150 | ||
8151 | ||
8152 | ||
c906108c | 8153 | ac_header_dirent=no |
b7026657 AC |
8154 | for ac_hdr in dirent.h sys/ndir.h sys/dir.h ndir.h; do |
8155 | as_ac_Header=`echo "ac_cv_header_dirent_$ac_hdr" | $as_tr_sh` | |
8156 | echo "$as_me:$LINENO: checking for $ac_hdr that defines DIR" >&5 | |
8157 | echo $ECHO_N "checking for $ac_hdr that defines DIR... $ECHO_C" >&6 | |
8158 | if eval "test \"\${$as_ac_Header+set}\" = set"; then | |
8159 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8160 | else | |
8161 | cat >conftest.$ac_ext <<_ACEOF | |
8162 | /* confdefs.h. */ | |
8163 | _ACEOF | |
8164 | cat confdefs.h >>conftest.$ac_ext | |
8165 | cat >>conftest.$ac_ext <<_ACEOF | |
8166 | /* end confdefs.h. */ | |
c906108c SS |
8167 | #include <sys/types.h> |
8168 | #include <$ac_hdr> | |
b7026657 AC |
8169 | |
8170 | int | |
8171 | main () | |
8172 | { | |
8173 | if ((DIR *) 0) | |
8174 | return 0; | |
8175 | ; | |
8176 | return 0; | |
8177 | } | |
8178 | _ACEOF | |
8179 | rm -f conftest.$ac_objext | |
8180 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8181 | (eval $ac_compile) 2>conftest.er1 | |
8182 | ac_status=$? | |
8183 | grep -v '^ *+' conftest.er1 >conftest.err | |
8184 | rm -f conftest.er1 | |
8185 | cat conftest.err >&5 | |
8186 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8187 | (exit $ac_status); } && | |
8188 | { ac_try='test -z "$ac_c_werror_flag" | |
8189 | || test ! -s conftest.err' | |
8190 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8191 | (eval $ac_try) 2>&5 | |
8192 | ac_status=$? | |
8193 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8194 | (exit $ac_status); }; } && | |
8195 | { ac_try='test -s conftest.$ac_objext' | |
8196 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8197 | (eval $ac_try) 2>&5 | |
8198 | ac_status=$? | |
8199 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8200 | (exit $ac_status); }; }; then | |
8201 | eval "$as_ac_Header=yes" | |
8202 | else | |
8203 | echo "$as_me: failed program was:" >&5 | |
8204 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8205 | ||
8206 | eval "$as_ac_Header=no" | |
8207 | fi | |
8208 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext | |
8209 | fi | |
8210 | echo "$as_me:$LINENO: result: `eval echo '${'$as_ac_Header'}'`" >&5 | |
8211 | echo "${ECHO_T}`eval echo '${'$as_ac_Header'}'`" >&6 | |
8212 | if test `eval echo '${'$as_ac_Header'}'` = yes; then | |
8213 | cat >>confdefs.h <<_ACEOF | |
8214 | #define `echo "HAVE_$ac_hdr" | $as_tr_cpp` 1 | |
8215 | _ACEOF | |
8216 | ||
8217 | ac_header_dirent=$ac_hdr; break | |
c906108c | 8218 | fi |
b7026657 | 8219 | |
c906108c SS |
8220 | done |
8221 | # Two versions of opendir et al. are in -ldir and -lx on SCO Xenix. | |
8222 | if test $ac_header_dirent = dirent.h; then | |
b7026657 AC |
8223 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
8224 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 | |
8225 | if test "${ac_cv_search_opendir+set}" = set; then | |
8226 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8227 | else | |
8228 | ac_func_search_save_LIBS=$LIBS | |
8229 | ac_cv_search_opendir=no | |
8230 | cat >conftest.$ac_ext <<_ACEOF | |
8231 | /* confdefs.h. */ | |
8232 | _ACEOF | |
8233 | cat confdefs.h >>conftest.$ac_ext | |
8234 | cat >>conftest.$ac_ext <<_ACEOF | |
8235 | /* end confdefs.h. */ | |
8236 | ||
c906108c | 8237 | /* Override any gcc2 internal prototype to avoid an error. */ |
b7026657 AC |
8238 | #ifdef __cplusplus |
8239 | extern "C" | |
8240 | #endif | |
c906108c | 8241 | /* We use char because int might match the return type of a gcc2 |
b7026657 AC |
8242 | builtin and then its argument prototype would still apply. */ |
8243 | char opendir (); | |
8244 | int | |
8245 | main () | |
8246 | { | |
8247 | opendir (); | |
8248 | ; | |
8249 | return 0; | |
8250 | } | |
8251 | _ACEOF | |
8252 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8253 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8254 | (eval $ac_link) 2>conftest.er1 | |
8255 | ac_status=$? | |
8256 | grep -v '^ *+' conftest.er1 >conftest.err | |
8257 | rm -f conftest.er1 | |
8258 | cat conftest.err >&5 | |
8259 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8260 | (exit $ac_status); } && | |
8261 | { ac_try='test -z "$ac_c_werror_flag" | |
8262 | || test ! -s conftest.err' | |
8263 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8264 | (eval $ac_try) 2>&5 | |
8265 | ac_status=$? | |
8266 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8267 | (exit $ac_status); }; } && | |
8268 | { ac_try='test -s conftest$ac_exeext' | |
8269 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8270 | (eval $ac_try) 2>&5 | |
8271 | ac_status=$? | |
8272 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8273 | (exit $ac_status); }; }; then | |
8274 | ac_cv_search_opendir="none required" | |
8275 | else | |
8276 | echo "$as_me: failed program was:" >&5 | |
8277 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8278 | ||
8279 | fi | |
8280 | rm -f conftest.err conftest.$ac_objext \ | |
8281 | conftest$ac_exeext conftest.$ac_ext | |
8282 | if test "$ac_cv_search_opendir" = no; then | |
8283 | for ac_lib in dir; do | |
8284 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
8285 | cat >conftest.$ac_ext <<_ACEOF | |
8286 | /* confdefs.h. */ | |
8287 | _ACEOF | |
8288 | cat confdefs.h >>conftest.$ac_ext | |
8289 | cat >>conftest.$ac_ext <<_ACEOF | |
8290 | /* end confdefs.h. */ | |
c906108c | 8291 | |
b7026657 AC |
8292 | /* Override any gcc2 internal prototype to avoid an error. */ |
8293 | #ifdef __cplusplus | |
8294 | extern "C" | |
8295 | #endif | |
8296 | /* We use char because int might match the return type of a gcc2 | |
8297 | builtin and then its argument prototype would still apply. */ | |
8298 | char opendir (); | |
8299 | int | |
8300 | main () | |
8301 | { | |
8302 | opendir (); | |
8303 | ; | |
8304 | return 0; | |
8305 | } | |
8306 | _ACEOF | |
8307 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8308 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8309 | (eval $ac_link) 2>conftest.er1 | |
8310 | ac_status=$? | |
8311 | grep -v '^ *+' conftest.er1 >conftest.err | |
8312 | rm -f conftest.er1 | |
8313 | cat conftest.err >&5 | |
8314 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8315 | (exit $ac_status); } && | |
8316 | { ac_try='test -z "$ac_c_werror_flag" | |
8317 | || test ! -s conftest.err' | |
8318 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8319 | (eval $ac_try) 2>&5 | |
8320 | ac_status=$? | |
8321 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8322 | (exit $ac_status); }; } && | |
8323 | { ac_try='test -s conftest$ac_exeext' | |
8324 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8325 | (eval $ac_try) 2>&5 | |
8326 | ac_status=$? | |
8327 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8328 | (exit $ac_status); }; }; then | |
8329 | ac_cv_search_opendir="-l$ac_lib" | |
8330 | break | |
8331 | else | |
8332 | echo "$as_me: failed program was:" >&5 | |
8333 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8334 | ||
8335 | fi | |
8336 | rm -f conftest.err conftest.$ac_objext \ | |
8337 | conftest$ac_exeext conftest.$ac_ext | |
8338 | done | |
c906108c | 8339 | fi |
b7026657 AC |
8340 | LIBS=$ac_func_search_save_LIBS |
8341 | fi | |
8342 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 | |
8343 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 | |
8344 | if test "$ac_cv_search_opendir" != no; then | |
8345 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" | |
8346 | ||
c906108c SS |
8347 | fi |
8348 | ||
8349 | else | |
b7026657 AC |
8350 | echo "$as_me:$LINENO: checking for library containing opendir" >&5 |
8351 | echo $ECHO_N "checking for library containing opendir... $ECHO_C" >&6 | |
8352 | if test "${ac_cv_search_opendir+set}" = set; then | |
8353 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c | 8354 | else |
b7026657 AC |
8355 | ac_func_search_save_LIBS=$LIBS |
8356 | ac_cv_search_opendir=no | |
8357 | cat >conftest.$ac_ext <<_ACEOF | |
8358 | /* confdefs.h. */ | |
8359 | _ACEOF | |
8360 | cat confdefs.h >>conftest.$ac_ext | |
8361 | cat >>conftest.$ac_ext <<_ACEOF | |
8362 | /* end confdefs.h. */ | |
8363 | ||
c906108c | 8364 | /* Override any gcc2 internal prototype to avoid an error. */ |
b7026657 AC |
8365 | #ifdef __cplusplus |
8366 | extern "C" | |
8367 | #endif | |
c906108c | 8368 | /* We use char because int might match the return type of a gcc2 |
b7026657 AC |
8369 | builtin and then its argument prototype would still apply. */ |
8370 | char opendir (); | |
8371 | int | |
8372 | main () | |
8373 | { | |
8374 | opendir (); | |
8375 | ; | |
8376 | return 0; | |
8377 | } | |
8378 | _ACEOF | |
8379 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8380 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8381 | (eval $ac_link) 2>conftest.er1 | |
8382 | ac_status=$? | |
8383 | grep -v '^ *+' conftest.er1 >conftest.err | |
8384 | rm -f conftest.er1 | |
8385 | cat conftest.err >&5 | |
8386 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8387 | (exit $ac_status); } && | |
8388 | { ac_try='test -z "$ac_c_werror_flag" | |
8389 | || test ! -s conftest.err' | |
8390 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8391 | (eval $ac_try) 2>&5 | |
8392 | ac_status=$? | |
8393 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8394 | (exit $ac_status); }; } && | |
8395 | { ac_try='test -s conftest$ac_exeext' | |
8396 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8397 | (eval $ac_try) 2>&5 | |
8398 | ac_status=$? | |
8399 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8400 | (exit $ac_status); }; }; then | |
8401 | ac_cv_search_opendir="none required" | |
8402 | else | |
8403 | echo "$as_me: failed program was:" >&5 | |
8404 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8405 | ||
8406 | fi | |
8407 | rm -f conftest.err conftest.$ac_objext \ | |
8408 | conftest$ac_exeext conftest.$ac_ext | |
8409 | if test "$ac_cv_search_opendir" = no; then | |
8410 | for ac_lib in x; do | |
8411 | LIBS="-l$ac_lib $ac_func_search_save_LIBS" | |
8412 | cat >conftest.$ac_ext <<_ACEOF | |
8413 | /* confdefs.h. */ | |
8414 | _ACEOF | |
8415 | cat confdefs.h >>conftest.$ac_ext | |
8416 | cat >>conftest.$ac_ext <<_ACEOF | |
8417 | /* end confdefs.h. */ | |
c906108c | 8418 | |
b7026657 AC |
8419 | /* Override any gcc2 internal prototype to avoid an error. */ |
8420 | #ifdef __cplusplus | |
8421 | extern "C" | |
8422 | #endif | |
8423 | /* We use char because int might match the return type of a gcc2 | |
8424 | builtin and then its argument prototype would still apply. */ | |
8425 | char opendir (); | |
8426 | int | |
8427 | main () | |
8428 | { | |
8429 | opendir (); | |
8430 | ; | |
8431 | return 0; | |
8432 | } | |
8433 | _ACEOF | |
8434 | rm -f conftest.$ac_objext conftest$ac_exeext | |
8435 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8436 | (eval $ac_link) 2>conftest.er1 | |
8437 | ac_status=$? | |
8438 | grep -v '^ *+' conftest.er1 >conftest.err | |
8439 | rm -f conftest.er1 | |
8440 | cat conftest.err >&5 | |
8441 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8442 | (exit $ac_status); } && | |
8443 | { ac_try='test -z "$ac_c_werror_flag" | |
8444 | || test ! -s conftest.err' | |
8445 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8446 | (eval $ac_try) 2>&5 | |
8447 | ac_status=$? | |
8448 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8449 | (exit $ac_status); }; } && | |
8450 | { ac_try='test -s conftest$ac_exeext' | |
8451 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8452 | (eval $ac_try) 2>&5 | |
8453 | ac_status=$? | |
8454 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8455 | (exit $ac_status); }; }; then | |
8456 | ac_cv_search_opendir="-l$ac_lib" | |
8457 | break | |
8458 | else | |
8459 | echo "$as_me: failed program was:" >&5 | |
8460 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8461 | ||
8462 | fi | |
8463 | rm -f conftest.err conftest.$ac_objext \ | |
8464 | conftest$ac_exeext conftest.$ac_ext | |
8465 | done | |
c906108c | 8466 | fi |
b7026657 AC |
8467 | LIBS=$ac_func_search_save_LIBS |
8468 | fi | |
8469 | echo "$as_me:$LINENO: result: $ac_cv_search_opendir" >&5 | |
8470 | echo "${ECHO_T}$ac_cv_search_opendir" >&6 | |
8471 | if test "$ac_cv_search_opendir" != no; then | |
8472 | test "$ac_cv_search_opendir" = "none required" || LIBS="$ac_cv_search_opendir $LIBS" | |
8473 | ||
c906108c SS |
8474 | fi |
8475 | ||
8476 | fi | |
8477 | ||
8478 | ||
8479 | sim_termio="" | |
b7026657 AC |
8480 | echo "$as_me:$LINENO: checking for struct termios" >&5 |
8481 | echo $ECHO_N "checking for struct termios... $ECHO_C" >&6 | |
8482 | if test "${ac_cv_termios_struct+set}" = set; then | |
8483 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8484 | else | |
8485 | cat >conftest.$ac_ext <<_ACEOF | |
8486 | /* confdefs.h. */ | |
8487 | _ACEOF | |
8488 | cat confdefs.h >>conftest.$ac_ext | |
8489 | cat >>conftest.$ac_ext <<_ACEOF | |
8490 | /* end confdefs.h. */ | |
c906108c SS |
8491 | #include <sys/types.h> |
8492 | #include <sys/termios.h> | |
b7026657 AC |
8493 | int |
8494 | main () | |
8495 | { | |
c906108c SS |
8496 | static struct termios x; |
8497 | x.c_iflag = 0; | |
8498 | x.c_oflag = 0; | |
8499 | x.c_cflag = 0; | |
8500 | x.c_lflag = 0; | |
8501 | x.c_cc[NCCS] = 0; | |
b7026657 AC |
8502 | ; |
8503 | return 0; | |
8504 | } | |
8505 | _ACEOF | |
8506 | rm -f conftest.$ac_objext | |
8507 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8508 | (eval $ac_compile) 2>conftest.er1 | |
8509 | ac_status=$? | |
8510 | grep -v '^ *+' conftest.er1 >conftest.err | |
8511 | rm -f conftest.er1 | |
8512 | cat conftest.err >&5 | |
8513 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8514 | (exit $ac_status); } && | |
8515 | { ac_try='test -z "$ac_c_werror_flag" | |
8516 | || test ! -s conftest.err' | |
8517 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8518 | (eval $ac_try) 2>&5 | |
8519 | ac_status=$? | |
8520 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8521 | (exit $ac_status); }; } && | |
8522 | { ac_try='test -s conftest.$ac_objext' | |
8523 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8524 | (eval $ac_try) 2>&5 | |
8525 | ac_status=$? | |
8526 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8527 | (exit $ac_status); }; }; then | |
c906108c SS |
8528 | ac_cv_termios_struct=yes |
8529 | else | |
b7026657 AC |
8530 | echo "$as_me: failed program was:" >&5 |
8531 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8532 | ||
8533 | ac_cv_termios_struct=no | |
c906108c | 8534 | fi |
b7026657 | 8535 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c SS |
8536 | fi |
8537 | ||
b7026657 AC |
8538 | echo "$as_me:$LINENO: result: $ac_cv_termios_struct" >&5 |
8539 | echo "${ECHO_T}$ac_cv_termios_struct" >&6 | |
c906108c SS |
8540 | if test $ac_cv_termios_struct = yes; then |
8541 | sim_termio="$sim_termio -DHAVE_TERMIOS_STRUCTURE" | |
8542 | fi | |
8543 | ||
8544 | if test "$ac_cv_termios_struct" = "yes"; then | |
b7026657 AC |
8545 | echo "$as_me:$LINENO: checking for c_line field in struct termios" >&5 |
8546 | echo $ECHO_N "checking for c_line field in struct termios... $ECHO_C" >&6 | |
8547 | if test "${ac_cv_termios_cline+set}" = set; then | |
8548 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8549 | else | |
8550 | cat >conftest.$ac_ext <<_ACEOF | |
8551 | /* confdefs.h. */ | |
8552 | _ACEOF | |
8553 | cat confdefs.h >>conftest.$ac_ext | |
8554 | cat >>conftest.$ac_ext <<_ACEOF | |
8555 | /* end confdefs.h. */ | |
c906108c SS |
8556 | #include <sys/types.h> |
8557 | #include <sys/termios.h> | |
b7026657 AC |
8558 | int |
8559 | main () | |
8560 | { | |
c906108c | 8561 | static struct termios x; x.c_line = 0; |
b7026657 AC |
8562 | ; |
8563 | return 0; | |
8564 | } | |
8565 | _ACEOF | |
8566 | rm -f conftest.$ac_objext | |
8567 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8568 | (eval $ac_compile) 2>conftest.er1 | |
8569 | ac_status=$? | |
8570 | grep -v '^ *+' conftest.er1 >conftest.err | |
8571 | rm -f conftest.er1 | |
8572 | cat conftest.err >&5 | |
8573 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8574 | (exit $ac_status); } && | |
8575 | { ac_try='test -z "$ac_c_werror_flag" | |
8576 | || test ! -s conftest.err' | |
8577 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8578 | (eval $ac_try) 2>&5 | |
8579 | ac_status=$? | |
8580 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8581 | (exit $ac_status); }; } && | |
8582 | { ac_try='test -s conftest.$ac_objext' | |
8583 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8584 | (eval $ac_try) 2>&5 | |
8585 | ac_status=$? | |
8586 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8587 | (exit $ac_status); }; }; then | |
c906108c SS |
8588 | ac_cv_termios_cline=yes |
8589 | else | |
b7026657 AC |
8590 | echo "$as_me: failed program was:" >&5 |
8591 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8592 | ||
8593 | ac_cv_termios_cline=no | |
c906108c | 8594 | fi |
b7026657 | 8595 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c SS |
8596 | fi |
8597 | ||
8598 | ||
b7026657 AC |
8599 | echo "$as_me:$LINENO: result: $ac_cv_termios_cline" >&5 |
8600 | echo "${ECHO_T}$ac_cv_termios_cline" >&6 | |
c906108c SS |
8601 | if test $ac_cv_termios_cline = yes; then |
8602 | sim_termio="$sim_termio -DHAVE_TERMIOS_CLINE" | |
8603 | fi | |
8604 | else | |
8605 | ac_cv_termios_cline=no | |
8606 | fi | |
8607 | ||
8608 | if test "$ac_cv_termios_struct" != "yes"; then | |
b7026657 AC |
8609 | echo "$as_me:$LINENO: checking for struct termio" >&5 |
8610 | echo $ECHO_N "checking for struct termio... $ECHO_C" >&6 | |
8611 | if test "${ac_cv_termio_struct+set}" = set; then | |
8612 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8613 | else | |
8614 | cat >conftest.$ac_ext <<_ACEOF | |
8615 | /* confdefs.h. */ | |
8616 | _ACEOF | |
8617 | cat confdefs.h >>conftest.$ac_ext | |
8618 | cat >>conftest.$ac_ext <<_ACEOF | |
8619 | /* end confdefs.h. */ | |
c906108c SS |
8620 | #include <sys/types.h> |
8621 | #include <sys/termio.h> | |
b7026657 AC |
8622 | int |
8623 | main () | |
8624 | { | |
c906108c SS |
8625 | static struct termio x; |
8626 | x.c_iflag = 0; | |
8627 | x.c_oflag = 0; | |
8628 | x.c_cflag = 0; | |
8629 | x.c_lflag = 0; | |
8630 | x.c_cc[NCC] = 0; | |
b7026657 AC |
8631 | ; |
8632 | return 0; | |
8633 | } | |
8634 | _ACEOF | |
8635 | rm -f conftest.$ac_objext | |
8636 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8637 | (eval $ac_compile) 2>conftest.er1 | |
8638 | ac_status=$? | |
8639 | grep -v '^ *+' conftest.er1 >conftest.err | |
8640 | rm -f conftest.er1 | |
8641 | cat conftest.err >&5 | |
8642 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8643 | (exit $ac_status); } && | |
8644 | { ac_try='test -z "$ac_c_werror_flag" | |
8645 | || test ! -s conftest.err' | |
8646 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8647 | (eval $ac_try) 2>&5 | |
8648 | ac_status=$? | |
8649 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8650 | (exit $ac_status); }; } && | |
8651 | { ac_try='test -s conftest.$ac_objext' | |
8652 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8653 | (eval $ac_try) 2>&5 | |
8654 | ac_status=$? | |
8655 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8656 | (exit $ac_status); }; }; then | |
c906108c SS |
8657 | ac_cv_termio_struct=yes |
8658 | else | |
b7026657 AC |
8659 | echo "$as_me: failed program was:" >&5 |
8660 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8661 | ||
8662 | ac_cv_termio_struct=no | |
c906108c | 8663 | fi |
b7026657 | 8664 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c SS |
8665 | fi |
8666 | ||
b7026657 AC |
8667 | echo "$as_me:$LINENO: result: $ac_cv_termio_struct" >&5 |
8668 | echo "${ECHO_T}$ac_cv_termio_struct" >&6 | |
c906108c SS |
8669 | if test $ac_cv_termio_struct = yes; then |
8670 | sim_termio="$sim_termio -DHAVE_TERMIO_STRUCTURE" | |
8671 | fi | |
8672 | else | |
8673 | ac_cv_termio_struct=no | |
8674 | fi | |
8675 | ||
8676 | if test "$ac_cv_termio_struct" = "yes"; then | |
b7026657 AC |
8677 | echo "$as_me:$LINENO: checking for c_line field in struct termio" >&5 |
8678 | echo $ECHO_N "checking for c_line field in struct termio... $ECHO_C" >&6 | |
8679 | if test "${ac_cv_termio_cline+set}" = set; then | |
8680 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8681 | else | |
8682 | cat >conftest.$ac_ext <<_ACEOF | |
8683 | /* confdefs.h. */ | |
8684 | _ACEOF | |
8685 | cat confdefs.h >>conftest.$ac_ext | |
8686 | cat >>conftest.$ac_ext <<_ACEOF | |
8687 | /* end confdefs.h. */ | |
c906108c SS |
8688 | #include <sys/types.h> |
8689 | #include <sys/termio.h> | |
b7026657 AC |
8690 | int |
8691 | main () | |
8692 | { | |
c906108c | 8693 | static struct termio x; x.c_line = 0; |
b7026657 AC |
8694 | ; |
8695 | return 0; | |
8696 | } | |
8697 | _ACEOF | |
8698 | rm -f conftest.$ac_objext | |
8699 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8700 | (eval $ac_compile) 2>conftest.er1 | |
8701 | ac_status=$? | |
8702 | grep -v '^ *+' conftest.er1 >conftest.err | |
8703 | rm -f conftest.er1 | |
8704 | cat conftest.err >&5 | |
8705 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8706 | (exit $ac_status); } && | |
8707 | { ac_try='test -z "$ac_c_werror_flag" | |
8708 | || test ! -s conftest.err' | |
8709 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8710 | (eval $ac_try) 2>&5 | |
8711 | ac_status=$? | |
8712 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8713 | (exit $ac_status); }; } && | |
8714 | { ac_try='test -s conftest.$ac_objext' | |
8715 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8716 | (eval $ac_try) 2>&5 | |
8717 | ac_status=$? | |
8718 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8719 | (exit $ac_status); }; }; then | |
c906108c SS |
8720 | ac_cv_termio_cline=yes |
8721 | else | |
b7026657 AC |
8722 | echo "$as_me: failed program was:" >&5 |
8723 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8724 | ||
8725 | ac_cv_termio_cline=no | |
c906108c | 8726 | fi |
b7026657 | 8727 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
c906108c SS |
8728 | fi |
8729 | ||
8730 | ||
b7026657 AC |
8731 | echo "$as_me:$LINENO: result: $ac_cv_termio_cline" >&5 |
8732 | echo "${ECHO_T}$ac_cv_termio_cline" >&6 | |
c906108c SS |
8733 | if test $ac_cv_termio_cline = yes; then |
8734 | sim_termio="$sim_termio -DHAVE_TERMIO_CLINE" | |
8735 | fi | |
8736 | else | |
8737 | ac_cv_termio_cline=no | |
8738 | fi | |
8739 | ||
b7026657 AC |
8740 | echo "$as_me:$LINENO: checking for struct statfs" >&5 |
8741 | echo $ECHO_N "checking for struct statfs... $ECHO_C" >&6 | |
8742 | if test "${ac_cv_struct_statfs+set}" = set; then | |
8743 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
1f362c96 | 8744 | else |
b7026657 AC |
8745 | cat >conftest.$ac_ext <<_ACEOF |
8746 | /* confdefs.h. */ | |
8747 | _ACEOF | |
8748 | cat confdefs.h >>conftest.$ac_ext | |
8749 | cat >>conftest.$ac_ext <<_ACEOF | |
8750 | /* end confdefs.h. */ | |
1f362c96 AC |
8751 | #include <sys/types.h> |
8752 | #ifdef HAVE_SYS_PARAM_H | |
8753 | #include <sys/param.h> | |
8754 | #endif | |
8755 | #ifdef HAVE_SYS_MOUNT_H | |
8756 | #include <sys/mount.h> | |
8757 | #endif | |
8758 | #ifdef HAVE_SYS_VFS_H | |
8759 | #include <sys/vfs.h> | |
8760 | #endif | |
8761 | #ifdef HAVE_SYS_STATFS_H | |
8762 | #include <sys/statfs.h> | |
8763 | #endif | |
b7026657 AC |
8764 | int |
8765 | main () | |
8766 | { | |
1f362c96 | 8767 | static struct statfs s; |
b7026657 AC |
8768 | ; |
8769 | return 0; | |
8770 | } | |
8771 | _ACEOF | |
8772 | rm -f conftest.$ac_objext | |
8773 | if { (eval echo "$as_me:$LINENO: \"$ac_compile\"") >&5 | |
8774 | (eval $ac_compile) 2>conftest.er1 | |
8775 | ac_status=$? | |
8776 | grep -v '^ *+' conftest.er1 >conftest.err | |
8777 | rm -f conftest.er1 | |
8778 | cat conftest.err >&5 | |
8779 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8780 | (exit $ac_status); } && | |
8781 | { ac_try='test -z "$ac_c_werror_flag" | |
8782 | || test ! -s conftest.err' | |
8783 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8784 | (eval $ac_try) 2>&5 | |
8785 | ac_status=$? | |
8786 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8787 | (exit $ac_status); }; } && | |
8788 | { ac_try='test -s conftest.$ac_objext' | |
8789 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8790 | (eval $ac_try) 2>&5 | |
8791 | ac_status=$? | |
8792 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8793 | (exit $ac_status); }; }; then | |
1f362c96 AC |
8794 | ac_cv_struct_statfs=yes |
8795 | else | |
b7026657 AC |
8796 | echo "$as_me: failed program was:" >&5 |
8797 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8798 | ||
8799 | ac_cv_struct_statfs=no | |
1f362c96 | 8800 | fi |
b7026657 | 8801 | rm -f conftest.err conftest.$ac_objext conftest.$ac_ext |
1f362c96 AC |
8802 | fi |
8803 | ||
b7026657 AC |
8804 | echo "$as_me:$LINENO: result: $ac_cv_struct_statfs" >&5 |
8805 | echo "${ECHO_T}$ac_cv_struct_statfs" >&6 | |
1f362c96 | 8806 | if test $ac_cv_struct_statfs = yes; then |
b7026657 AC |
8807 | |
8808 | cat >>confdefs.h <<\_ACEOF | |
1f362c96 | 8809 | #define HAVE_STRUCT_STATFS 1 |
b7026657 | 8810 | _ACEOF |
1f362c96 AC |
8811 | |
8812 | fi | |
8813 | ||
c906108c | 8814 | sim_devzero="" |
b7026657 AC |
8815 | echo "$as_me:$LINENO: checking for /dev/zero" >&5 |
8816 | echo $ECHO_N "checking for /dev/zero... $ECHO_C" >&6 | |
8817 | if test "${ac_cv_devzero+set}" = set; then | |
8818 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c SS |
8819 | else |
8820 | if test "$cross_compiling" = yes; then | |
8821 | ac_cv_devzero=no | |
8822 | else | |
b7026657 AC |
8823 | cat >conftest.$ac_ext <<_ACEOF |
8824 | /* confdefs.h. */ | |
8825 | _ACEOF | |
8826 | cat confdefs.h >>conftest.$ac_ext | |
8827 | cat >>conftest.$ac_ext <<_ACEOF | |
8828 | /* end confdefs.h. */ | |
c906108c SS |
8829 | #include <fcntl.h> |
8830 | main () { | |
8831 | char buf[2048]; | |
8832 | int i; | |
8833 | int fd = open ("/dev/zero", O_RDONLY); | |
8834 | if (fd < 0) | |
8835 | return 1; | |
8836 | for (i = 0; i < sizeof (buf); i++) | |
8837 | buf[i] = 1; | |
8838 | if (read (fd, buf, sizeof (buf)) != sizeof (buf)) | |
8839 | return 1; | |
8840 | for (i = 0; i < sizeof (buf); i++) | |
8841 | if (buf[i]) | |
8842 | return 1; | |
8843 | return 0; | |
8844 | } | |
b7026657 AC |
8845 | _ACEOF |
8846 | rm -f conftest$ac_exeext | |
8847 | if { (eval echo "$as_me:$LINENO: \"$ac_link\"") >&5 | |
8848 | (eval $ac_link) 2>&5 | |
8849 | ac_status=$? | |
8850 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8851 | (exit $ac_status); } && { ac_try='./conftest$ac_exeext' | |
8852 | { (eval echo "$as_me:$LINENO: \"$ac_try\"") >&5 | |
8853 | (eval $ac_try) 2>&5 | |
8854 | ac_status=$? | |
8855 | echo "$as_me:$LINENO: \$? = $ac_status" >&5 | |
8856 | (exit $ac_status); }; }; then | |
c906108c SS |
8857 | ac_cv_devzero=yes |
8858 | else | |
b7026657 AC |
8859 | echo "$as_me: program exited with status $ac_status" >&5 |
8860 | echo "$as_me: failed program was:" >&5 | |
8861 | sed 's/^/| /' conftest.$ac_ext >&5 | |
8862 | ||
8863 | ( exit $ac_status ) | |
8864 | ac_cv_devzero=no | |
c906108c | 8865 | fi |
b7026657 | 8866 | rm -f core *.core gmon.out bb.out conftest$ac_exeext conftest.$ac_objext conftest.$ac_ext |
c906108c | 8867 | fi |
c906108c SS |
8868 | fi |
8869 | ||
b7026657 AC |
8870 | echo "$as_me:$LINENO: result: $ac_cv_devzero" >&5 |
8871 | echo "${ECHO_T}$ac_cv_devzero" >&6 | |
c906108c SS |
8872 | if test $ac_cv_devzero = yes; then |
8873 | sim_devzero="-DHAVE_DEVZERO" | |
8874 | else | |
8875 | sim_devzero="" | |
8876 | fi | |
8877 | ||
b7026657 AC |
8878 | echo "$as_me:$LINENO: checking for common simulator directory" >&5 |
8879 | echo $ECHO_N "checking for common simulator directory... $ECHO_C" >&6 | |
c906108c | 8880 | if test -f "${srcdir}/../common/callback.c"; then |
b7026657 AC |
8881 | echo "$as_me:$LINENO: result: yes" >&5 |
8882 | echo "${ECHO_T}yes" >&6 | |
c906108c SS |
8883 | sim_callback="callback.o targ-map.o" |
8884 | sim_targ_vals="targ-vals.h targ-map.c targ-vals.def" | |
8885 | else | |
b7026657 AC |
8886 | echo "$as_me:$LINENO: result: no" >&5 |
8887 | echo "${ECHO_T}no" >&6 | |
c906108c SS |
8888 | sim_callback="" |
8889 | sim_targ_vals="" | |
8890 | fi | |
8891 | ||
b7026657 AC |
8892 | echo "$as_me:$LINENO: checking for common simulator directory fpu implementation" >&5 |
8893 | echo $ECHO_N "checking for common simulator directory fpu implementation... $ECHO_C" >&6 | |
d29d5195 | 8894 | if test -f "${srcdir}/../common/sim-fpu.c"; then |
b7026657 AC |
8895 | echo "$as_me:$LINENO: result: yes" >&5 |
8896 | echo "${ECHO_T}yes" >&6 | |
3e5e53f9 | 8897 | sim_fpu_cflags="-DHAVE_COMMON_FPU -I../common -I${srcdir}/../common" |
3a11ea24 | 8898 | sim_fpu="sim-fpu.o" |
d29d5195 | 8899 | else |
b7026657 AC |
8900 | echo "$as_me:$LINENO: result: no" >&5 |
8901 | echo "${ECHO_T}no" >&6 | |
d29d5195 | 8902 | sim_fpu_cflags= |
b7026657 | 8903 | sim_fpu= |
c906108c | 8904 | fi |
cd0fc7c3 | 8905 | |
c906108c SS |
8906 | |
8907 | ||
8908 | ||
8909 | ||
8910 | ||
8911 | AR=${AR-ar} | |
8912 | ||
b7026657 AC |
8913 | if test -n "$ac_tool_prefix"; then |
8914 | # Extract the first word of "${ac_tool_prefix}ranlib", so it can be a program name with args. | |
8915 | set dummy ${ac_tool_prefix}ranlib; ac_word=$2 | |
8916 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
8917 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
8918 | if test "${ac_cv_prog_RANLIB+set}" = set; then | |
8919 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
c906108c SS |
8920 | else |
8921 | if test -n "$RANLIB"; then | |
8922 | ac_cv_prog_RANLIB="$RANLIB" # Let the user override the test. | |
8923 | else | |
b7026657 AC |
8924 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR |
8925 | for as_dir in $PATH | |
8926 | do | |
8927 | IFS=$as_save_IFS | |
8928 | test -z "$as_dir" && as_dir=. | |
8929 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8930 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8931 | ac_cv_prog_RANLIB="${ac_tool_prefix}ranlib" | |
8932 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8933 | break 2 | |
8934 | fi | |
8935 | done | |
8936 | done | |
8937 | ||
c906108c SS |
8938 | fi |
8939 | fi | |
b7026657 | 8940 | RANLIB=$ac_cv_prog_RANLIB |
c906108c | 8941 | if test -n "$RANLIB"; then |
b7026657 AC |
8942 | echo "$as_me:$LINENO: result: $RANLIB" >&5 |
8943 | echo "${ECHO_T}$RANLIB" >&6 | |
8944 | else | |
8945 | echo "$as_me:$LINENO: result: no" >&5 | |
8946 | echo "${ECHO_T}no" >&6 | |
8947 | fi | |
8948 | ||
8949 | fi | |
8950 | if test -z "$ac_cv_prog_RANLIB"; then | |
8951 | ac_ct_RANLIB=$RANLIB | |
8952 | # Extract the first word of "ranlib", so it can be a program name with args. | |
8953 | set dummy ranlib; ac_word=$2 | |
8954 | echo "$as_me:$LINENO: checking for $ac_word" >&5 | |
8955 | echo $ECHO_N "checking for $ac_word... $ECHO_C" >&6 | |
8956 | if test "${ac_cv_prog_ac_ct_RANLIB+set}" = set; then | |
8957 | echo $ECHO_N "(cached) $ECHO_C" >&6 | |
8958 | else | |
8959 | if test -n "$ac_ct_RANLIB"; then | |
8960 | ac_cv_prog_ac_ct_RANLIB="$ac_ct_RANLIB" # Let the user override the test. | |
8961 | else | |
8962 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
8963 | for as_dir in $PATH | |
8964 | do | |
8965 | IFS=$as_save_IFS | |
8966 | test -z "$as_dir" && as_dir=. | |
8967 | for ac_exec_ext in '' $ac_executable_extensions; do | |
8968 | if $as_executable_p "$as_dir/$ac_word$ac_exec_ext"; then | |
8969 | ac_cv_prog_ac_ct_RANLIB="ranlib" | |
8970 | echo "$as_me:$LINENO: found $as_dir/$ac_word$ac_exec_ext" >&5 | |
8971 | break 2 | |
8972 | fi | |
8973 | done | |
8974 | done | |
8975 | ||
8976 | test -z "$ac_cv_prog_ac_ct_RANLIB" && ac_cv_prog_ac_ct_RANLIB=":" | |
8977 | fi | |
8978 | fi | |
8979 | ac_ct_RANLIB=$ac_cv_prog_ac_ct_RANLIB | |
8980 | if test -n "$ac_ct_RANLIB"; then | |
8981 | echo "$as_me:$LINENO: result: $ac_ct_RANLIB" >&5 | |
8982 | echo "${ECHO_T}$ac_ct_RANLIB" >&6 | |
8983 | else | |
8984 | echo "$as_me:$LINENO: result: no" >&5 | |
8985 | echo "${ECHO_T}no" >&6 | |
8986 | fi | |
8987 | ||
8988 | RANLIB=$ac_ct_RANLIB | |
c906108c | 8989 | else |
b7026657 | 8990 | RANLIB="$ac_cv_prog_RANLIB" |
c906108c SS |
8991 | fi |
8992 | ||
8993 | ||
8994 | ||
8995 | ||
8996 | ||
8997 | ||
8998 | ||
8999 | ||
9000 | ||
9001 | ||
9002 | ||
9003 | ||
9004 | ||
9005 | ||
9006 | ||
9007 | ||
9008 | ||
9009 | ||
9010 | ||
9011 | ||
9012 | ||
9013 | ||
9014 | ||
9015 | ||
9016 | ||
9017 | ||
9018 | ||
9019 | ||
9020 | ||
9021 | ||
9022 | ||
9023 | ||
9024 | ||
9025 | ||
9026 | ||
9027 | ||
9028 | ||
9029 | ||
9030 | ||
9031 | ||
9032 | ||
d29d5195 MG |
9033 | |
9034 | ||
c906108c SS |
9035 | |
9036 | ||
9037 | ||
b7026657 AC |
9038 | ac_config_files="$ac_config_files Makefile" |
9039 | ac_config_commands="$ac_config_commands default" | |
9040 | cat >confcache <<\_ACEOF | |
c906108c SS |
9041 | # This file is a shell script that caches the results of configure |
9042 | # tests run on this system so they can be shared between configure | |
b7026657 AC |
9043 | # scripts and configure runs, see configure's option --config-cache. |
9044 | # It is not useful on other systems. If it contains results you don't | |
9045 | # want to keep, you may remove or edit it. | |
c906108c | 9046 | # |
b7026657 AC |
9047 | # config.status only pays attention to the cache file if you give it |
9048 | # the --recheck option to rerun configure. | |
c906108c | 9049 | # |
b7026657 AC |
9050 | # `ac_cv_env_foo' variables (set or unset) will be overridden when |
9051 | # loading this file, other *unset* `ac_cv_foo' will be assigned the | |
9052 | # following values. | |
9053 | ||
9054 | _ACEOF | |
9055 | ||
c906108c SS |
9056 | # The following way of writing the cache mishandles newlines in values, |
9057 | # but we know of no workaround that is simple, portable, and efficient. | |
9058 | # So, don't put newlines in cache variables' values. | |
9059 | # Ultrix sh set writes to stderr and can't be redirected directly, | |
9060 | # and sets the high bit in the cache file unless we assign to the vars. | |
b7026657 AC |
9061 | { |
9062 | (set) 2>&1 | | |
9063 | case `(ac_space=' '; set | grep ac_space) 2>&1` in | |
9064 | *ac_space=\ *) | |
9065 | # `set' does not quote correctly, so add quotes (double-quote | |
9066 | # substitution turns \\\\ into \\, and sed turns \\ into \). | |
9067 | sed -n \ | |
9068 | "s/'/'\\\\''/g; | |
9069 | s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1='\\2'/p" | |
9070 | ;; | |
9071 | *) | |
9072 | # `set' quotes correctly as required by POSIX, so do not add quotes. | |
9073 | sed -n \ | |
9074 | "s/^\\([_$as_cr_alnum]*_cv_[_$as_cr_alnum]*\\)=\\(.*\\)/\\1=\\2/p" | |
9075 | ;; | |
9076 | esac; | |
9077 | } | | |
9078 | sed ' | |
9079 | t clear | |
9080 | : clear | |
9081 | s/^\([^=]*\)=\(.*[{}].*\)$/test "${\1+set}" = set || &/ | |
9082 | t end | |
9083 | /^ac_cv_env/!s/^\([^=]*\)=\(.*\)$/\1=${\1=\2}/ | |
9084 | : end' >>confcache | |
9085 | if diff $cache_file confcache >/dev/null 2>&1; then :; else | |
c906108c | 9086 | if test -w $cache_file; then |
b7026657 AC |
9087 | test "x$cache_file" != "x/dev/null" && echo "updating cache $cache_file" |
9088 | cat confcache >$cache_file | |
c906108c SS |
9089 | else |
9090 | echo "not updating unwritable cache $cache_file" | |
9091 | fi | |
9092 | fi | |
9093 | rm -f confcache | |
9094 | ||
c906108c SS |
9095 | test "x$prefix" = xNONE && prefix=$ac_default_prefix |
9096 | # Let make expand exec_prefix. | |
9097 | test "x$exec_prefix" = xNONE && exec_prefix='${prefix}' | |
9098 | ||
b7026657 AC |
9099 | # VPATH may cause trouble with some makes, so we remove $(srcdir), |
9100 | # ${srcdir} and @srcdir@ from VPATH if srcdir is ".", strip leading and | |
9101 | # trailing colons and then remove the whole line if VPATH becomes empty | |
9102 | # (actually we leave an empty line to preserve line numbers). | |
c906108c | 9103 | if test "x$srcdir" = x.; then |
b7026657 AC |
9104 | ac_vpsub='/^[ ]*VPATH[ ]*=/{ |
9105 | s/:*\$(srcdir):*/:/; | |
9106 | s/:*\${srcdir}:*/:/; | |
9107 | s/:*@srcdir@:*/:/; | |
9108 | s/^\([^=]*=[ ]*\):*/\1/; | |
9109 | s/:*$//; | |
9110 | s/^[^=]*=[ ]*$//; | |
9111 | }' | |
c906108c SS |
9112 | fi |
9113 | ||
c906108c SS |
9114 | DEFS=-DHAVE_CONFIG_H |
9115 | ||
b7026657 AC |
9116 | ac_libobjs= |
9117 | ac_ltlibobjs= | |
9118 | for ac_i in : $LIBOBJS; do test "x$ac_i" = x: && continue | |
9119 | # 1. Remove the extension, and $U if already installed. | |
9120 | ac_i=`echo "$ac_i" | | |
9121 | sed 's/\$U\././;s/\.o$//;s/\.obj$//'` | |
9122 | # 2. Add them. | |
9123 | ac_libobjs="$ac_libobjs $ac_i\$U.$ac_objext" | |
9124 | ac_ltlibobjs="$ac_ltlibobjs $ac_i"'$U.lo' | |
9125 | done | |
9126 | LIBOBJS=$ac_libobjs | |
c906108c | 9127 | |
b7026657 AC |
9128 | LTLIBOBJS=$ac_ltlibobjs |
9129 | ||
9130 | ||
9131 | ||
9132 | : ${CONFIG_STATUS=./config.status} | |
9133 | ac_clean_files_save=$ac_clean_files | |
9134 | ac_clean_files="$ac_clean_files $CONFIG_STATUS" | |
9135 | { echo "$as_me:$LINENO: creating $CONFIG_STATUS" >&5 | |
9136 | echo "$as_me: creating $CONFIG_STATUS" >&6;} | |
9137 | cat >$CONFIG_STATUS <<_ACEOF | |
9138 | #! $SHELL | |
9139 | # Generated by $as_me. | |
c906108c | 9140 | # Run this file to recreate the current configuration. |
c906108c | 9141 | # Compiler output produced by configure, useful for debugging |
b7026657 | 9142 | # configure, is in config.log if it exists. |
c906108c | 9143 | |
b7026657 AC |
9144 | debug=false |
9145 | ac_cs_recheck=false | |
9146 | ac_cs_silent=false | |
9147 | SHELL=\${CONFIG_SHELL-$SHELL} | |
9148 | _ACEOF | |
9149 | ||
9150 | cat >>$CONFIG_STATUS <<\_ACEOF | |
9151 | ## --------------------- ## | |
9152 | ## M4sh Initialization. ## | |
9153 | ## --------------------- ## | |
9154 | ||
9155 | # Be Bourne compatible | |
9156 | if test -n "${ZSH_VERSION+set}" && (emulate sh) >/dev/null 2>&1; then | |
9157 | emulate sh | |
9158 | NULLCMD=: | |
9159 | # Zsh 3.x and 4.x performs word splitting on ${1+"$@"}, which | |
9160 | # is contrary to our usage. Disable this feature. | |
9161 | alias -g '${1+"$@"}'='"$@"' | |
9162 | elif test -n "${BASH_VERSION+set}" && (set -o posix) >/dev/null 2>&1; then | |
9163 | set -o posix | |
9164 | fi | |
9165 | DUALCASE=1; export DUALCASE # for MKS sh | |
9166 | ||
9167 | # Support unset when possible. | |
9168 | if ( (MAIL=60; unset MAIL) || exit) >/dev/null 2>&1; then | |
9169 | as_unset=unset | |
9170 | else | |
9171 | as_unset=false | |
9172 | fi | |
9173 | ||
9174 | ||
9175 | # Work around bugs in pre-3.0 UWIN ksh. | |
9176 | $as_unset ENV MAIL MAILPATH | |
9177 | PS1='$ ' | |
9178 | PS2='> ' | |
9179 | PS4='+ ' | |
9180 | ||
9181 | # NLS nuisances. | |
9182 | for as_var in \ | |
9183 | LANG LANGUAGE LC_ADDRESS LC_ALL LC_COLLATE LC_CTYPE LC_IDENTIFICATION \ | |
9184 | LC_MEASUREMENT LC_MESSAGES LC_MONETARY LC_NAME LC_NUMERIC LC_PAPER \ | |
9185 | LC_TELEPHONE LC_TIME | |
c906108c | 9186 | do |
b7026657 AC |
9187 | if (set +x; test -z "`(eval $as_var=C; export $as_var) 2>&1`"); then |
9188 | eval $as_var=C; export $as_var | |
9189 | else | |
9190 | $as_unset $as_var | |
9191 | fi | |
c906108c SS |
9192 | done |
9193 | ||
b7026657 AC |
9194 | # Required to use basename. |
9195 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
9196 | as_expr=expr | |
9197 | else | |
9198 | as_expr=false | |
9199 | fi | |
c906108c | 9200 | |
b7026657 AC |
9201 | if (basename /) >/dev/null 2>&1 && test "X`basename / 2>&1`" = "X/"; then |
9202 | as_basename=basename | |
9203 | else | |
9204 | as_basename=false | |
9205 | fi | |
c906108c | 9206 | |
c906108c | 9207 | |
b7026657 AC |
9208 | # Name of the executable. |
9209 | as_me=`$as_basename "$0" || | |
9210 | $as_expr X/"$0" : '.*/\([^/][^/]*\)/*$' \| \ | |
9211 | X"$0" : 'X\(//\)$' \| \ | |
9212 | X"$0" : 'X\(/\)$' \| \ | |
9213 | . : '\(.\)' 2>/dev/null || | |
9214 | echo X/"$0" | | |
9215 | sed '/^.*\/\([^/][^/]*\)\/*$/{ s//\1/; q; } | |
9216 | /^X\/\(\/\/\)$/{ s//\1/; q; } | |
9217 | /^X\/\(\/\).*/{ s//\1/; q; } | |
9218 | s/.*/./; q'` | |
9219 | ||
9220 | ||
9221 | # PATH needs CR, and LINENO needs CR and PATH. | |
9222 | # Avoid depending upon Character Ranges. | |
9223 | as_cr_letters='abcdefghijklmnopqrstuvwxyz' | |
9224 | as_cr_LETTERS='ABCDEFGHIJKLMNOPQRSTUVWXYZ' | |
9225 | as_cr_Letters=$as_cr_letters$as_cr_LETTERS | |
9226 | as_cr_digits='0123456789' | |
9227 | as_cr_alnum=$as_cr_Letters$as_cr_digits | |
9228 | ||
9229 | # The user is always right. | |
9230 | if test "${PATH_SEPARATOR+set}" != set; then | |
9231 | echo "#! /bin/sh" >conf$$.sh | |
9232 | echo "exit 0" >>conf$$.sh | |
9233 | chmod +x conf$$.sh | |
9234 | if (PATH="/nonexistent;."; conf$$.sh) >/dev/null 2>&1; then | |
9235 | PATH_SEPARATOR=';' | |
c906108c | 9236 | else |
b7026657 AC |
9237 | PATH_SEPARATOR=: |
9238 | fi | |
9239 | rm -f conf$$.sh | |
9240 | fi | |
9241 | ||
9242 | ||
9243 | as_lineno_1=$LINENO | |
9244 | as_lineno_2=$LINENO | |
9245 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
9246 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
9247 | test "x$as_lineno_3" = "x$as_lineno_2" || { | |
9248 | # Find who we are. Look in the path if we contain no path at all | |
9249 | # relative or not. | |
9250 | case $0 in | |
9251 | *[\\/]* ) as_myself=$0 ;; | |
9252 | *) as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9253 | for as_dir in $PATH | |
9254 | do | |
9255 | IFS=$as_save_IFS | |
9256 | test -z "$as_dir" && as_dir=. | |
9257 | test -r "$as_dir/$0" && as_myself=$as_dir/$0 && break | |
9258 | done | |
9259 | ||
9260 | ;; | |
9261 | esac | |
9262 | # We did not find ourselves, most probably we were run as `sh COMMAND' | |
9263 | # in which case we are not to be found in the path. | |
9264 | if test "x$as_myself" = x; then | |
9265 | as_myself=$0 | |
c906108c | 9266 | fi |
b7026657 AC |
9267 | if test ! -f "$as_myself"; then |
9268 | { { echo "$as_me:$LINENO: error: cannot find myself; rerun with an absolute path" >&5 | |
9269 | echo "$as_me: error: cannot find myself; rerun with an absolute path" >&2;} | |
9270 | { (exit 1); exit 1; }; } | |
9271 | fi | |
9272 | case $CONFIG_SHELL in | |
9273 | '') | |
9274 | as_save_IFS=$IFS; IFS=$PATH_SEPARATOR | |
9275 | for as_dir in /bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR$PATH | |
9276 | do | |
9277 | IFS=$as_save_IFS | |
9278 | test -z "$as_dir" && as_dir=. | |
9279 | for as_base in sh bash ksh sh5; do | |
9280 | case $as_dir in | |
9281 | /*) | |
9282 | if ("$as_dir/$as_base" -c ' | |
9283 | as_lineno_1=$LINENO | |
9284 | as_lineno_2=$LINENO | |
9285 | as_lineno_3=`(expr $as_lineno_1 + 1) 2>/dev/null` | |
9286 | test "x$as_lineno_1" != "x$as_lineno_2" && | |
9287 | test "x$as_lineno_3" = "x$as_lineno_2" ') 2>/dev/null; then | |
9288 | $as_unset BASH_ENV || test "${BASH_ENV+set}" != set || { BASH_ENV=; export BASH_ENV; } | |
9289 | $as_unset ENV || test "${ENV+set}" != set || { ENV=; export ENV; } | |
9290 | CONFIG_SHELL=$as_dir/$as_base | |
9291 | export CONFIG_SHELL | |
9292 | exec "$CONFIG_SHELL" "$0" ${1+"$@"} | |
9293 | fi;; | |
9294 | esac | |
9295 | done | |
9296 | done | |
9297 | ;; | |
9298 | esac | |
9299 | ||
9300 | # Create $as_me.lineno as a copy of $as_myself, but with $LINENO | |
9301 | # uniformly replaced by the line number. The first 'sed' inserts a | |
9302 | # line-number line before each line; the second 'sed' does the real | |
9303 | # work. The second script uses 'N' to pair each line-number line | |
9304 | # with the numbered line, and appends trailing '-' during | |
9305 | # substitution so that $LINENO is not a special case at line end. | |
9306 | # (Raja R Harinath suggested sed '=', and Paul Eggert wrote the | |
9307 | # second 'sed' script. Blame Lee E. McMahon for sed's syntax. :-) | |
9308 | sed '=' <$as_myself | | |
9309 | sed ' | |
9310 | N | |
9311 | s,$,-, | |
9312 | : loop | |
9313 | s,^\(['$as_cr_digits']*\)\(.*\)[$]LINENO\([^'$as_cr_alnum'_]\),\1\2\1\3, | |
9314 | t loop | |
9315 | s,-$,, | |
9316 | s,^['$as_cr_digits']*\n,, | |
9317 | ' >$as_me.lineno && | |
9318 | chmod +x $as_me.lineno || | |
9319 | { { echo "$as_me:$LINENO: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&5 | |
9320 | echo "$as_me: error: cannot create $as_me.lineno; rerun with a POSIX shell" >&2;} | |
9321 | { (exit 1); exit 1; }; } | |
9322 | ||
9323 | # Don't try to exec as it changes $[0], causing all sort of problems | |
9324 | # (the dirname of $[0] is not the place where we might find the | |
9325 | # original and so on. Autoconf is especially sensible to this). | |
9326 | . ./$as_me.lineno | |
9327 | # Exit status is that of the last command. | |
9328 | exit | |
9329 | } | |
9330 | ||
9331 | ||
9332 | case `echo "testing\c"; echo 1,2,3`,`echo -n testing; echo 1,2,3` in | |
9333 | *c*,-n*) ECHO_N= ECHO_C=' | |
9334 | ' ECHO_T=' ' ;; | |
9335 | *c*,* ) ECHO_N=-n ECHO_C= ECHO_T= ;; | |
9336 | *) ECHO_N= ECHO_C='\c' ECHO_T= ;; | |
9337 | esac | |
9338 | ||
9339 | if expr a : '\(a\)' >/dev/null 2>&1; then | |
9340 | as_expr=expr | |
9341 | else | |
9342 | as_expr=false | |
9343 | fi | |
9344 | ||
9345 | rm -f conf$$ conf$$.exe conf$$.file | |
9346 | echo >conf$$.file | |
9347 | if ln -s conf$$.file conf$$ 2>/dev/null; then | |
9348 | # We could just check for DJGPP; but this test a) works b) is more generic | |
9349 | # and c) will remain valid once DJGPP supports symlinks (DJGPP 2.04). | |
9350 | if test -f conf$$.exe; then | |
9351 | # Don't use ln at all; we don't have any links | |
9352 | as_ln_s='cp -p' | |
c906108c | 9353 | else |
b7026657 | 9354 | as_ln_s='ln -s' |
c906108c | 9355 | fi |
b7026657 AC |
9356 | elif ln conf$$.file conf$$ 2>/dev/null; then |
9357 | as_ln_s=ln | |
9358 | else | |
9359 | as_ln_s='cp -p' | |
9360 | fi | |
9361 | rm -f conf$$ conf$$.exe conf$$.file | |
9362 | ||
9363 | if mkdir -p . 2>/dev/null; then | |
9364 | as_mkdir_p=: | |
9365 | else | |
9366 | test -d ./-p && rmdir ./-p | |
9367 | as_mkdir_p=false | |
9368 | fi | |
9369 | ||
9370 | as_executable_p="test -f" | |
9371 | ||
9372 | # Sed expression to map a string onto a valid CPP name. | |
9373 | as_tr_cpp="eval sed 'y%*$as_cr_letters%P$as_cr_LETTERS%;s%[^_$as_cr_alnum]%_%g'" | |
9374 | ||
9375 | # Sed expression to map a string onto a valid variable name. | |
9376 | as_tr_sh="eval sed 'y%*+%pp%;s%[^_$as_cr_alnum]%_%g'" | |
9377 | ||
9378 | ||
9379 | # IFS | |
9380 | # We need space, tab and new line, in precisely that order. | |
9381 | as_nl=' | |
9382 | ' | |
9383 | IFS=" $as_nl" | |
9384 | ||
9385 | # CDPATH. | |
9386 | $as_unset CDPATH | |
9387 | ||
9388 | exec 6>&1 | |
9389 | ||
9390 | # Open the log real soon, to keep \$[0] and so on meaningful, and to | |
9391 | # report actual input values of CONFIG_FILES etc. instead of their | |
9392 | # values after options handling. Logging --version etc. is OK. | |
9393 | exec 5>>config.log | |
9394 | { | |
9395 | echo | |
9396 | sed 'h;s/./-/g;s/^.../## /;s/...$/ ##/;p;x;p;x' <<_ASBOX | |
9397 | ## Running $as_me. ## | |
9398 | _ASBOX | |
9399 | } >&5 | |
9400 | cat >&5 <<_CSEOF | |
9401 | ||
9402 | This file was extended by $as_me, which was | |
9403 | generated by GNU Autoconf 2.59. Invocation command line was | |
9404 | ||
9405 | CONFIG_FILES = $CONFIG_FILES | |
9406 | CONFIG_HEADERS = $CONFIG_HEADERS | |
9407 | CONFIG_LINKS = $CONFIG_LINKS | |
9408 | CONFIG_COMMANDS = $CONFIG_COMMANDS | |
9409 | $ $0 $@ | |
9410 | ||
9411 | _CSEOF | |
9412 | echo "on `(hostname || uname -n) 2>/dev/null | sed 1q`" >&5 | |
9413 | echo >&5 | |
9414 | _ACEOF | |
9415 | ||
9416 | # Files that config.status was made for. | |
9417 | if test -n "$ac_config_files"; then | |
9418 | echo "config_files=\"$ac_config_files\"" >>$CONFIG_STATUS | |
9419 | fi | |
9420 | ||
9421 | if test -n "$ac_config_headers"; then | |
9422 | echo "config_headers=\"$ac_config_headers\"" >>$CONFIG_STATUS | |
9423 | fi | |
9424 | ||
9425 | if test -n "$ac_config_links"; then | |
9426 | echo "config_links=\"$ac_config_links\"" >>$CONFIG_STATUS | |
9427 | fi | |
9428 | ||
9429 | if test -n "$ac_config_commands"; then | |
9430 | echo "config_commands=\"$ac_config_commands\"" >>$CONFIG_STATUS | |
9431 | fi | |
9432 | ||
9433 | cat >>$CONFIG_STATUS <<\_ACEOF | |
9434 | ||
9435 | ac_cs_usage="\ | |
9436 | \`$as_me' instantiates files from templates according to the | |
9437 | current configuration. | |
9438 | ||
9439 | Usage: $0 [OPTIONS] [FILE]... | |
9440 | ||
9441 | -h, --help print this help, then exit | |
9442 | -V, --version print version number, then exit | |
9443 | -q, --quiet do not print progress messages | |
9444 | -d, --debug don't remove temporary files | |
9445 | --recheck update $as_me by reconfiguring in the same conditions | |
9446 | --file=FILE[:TEMPLATE] | |
9447 | instantiate the configuration file FILE | |
9448 | --header=FILE[:TEMPLATE] | |
9449 | instantiate the configuration header FILE | |
9450 | ||
9451 | Configuration files: | |
9452 | $config_files | |
9453 | ||
9454 | Configuration headers: | |
9455 | $config_headers | |
9456 | ||
9457 | Configuration commands: | |
9458 | $config_commands | |
9459 | ||
9460 | Report bugs to <[email protected]>." | |
9461 | _ACEOF | |
9462 | ||
9463 | cat >>$CONFIG_STATUS <<_ACEOF | |
9464 | ac_cs_version="\\ | |
9465 | config.status | |
9466 | configured by $0, generated by GNU Autoconf 2.59, | |
9467 | with options \\"`echo "$ac_configure_args" | sed 's/[\\""\`\$]/\\\\&/g'`\\" | |
9468 | ||
9469 | Copyright (C) 2003 Free Software Foundation, Inc. | |
9470 | This config.status script is free software; the Free Software Foundation | |
9471 | gives unlimited permission to copy, distribute and modify it." | |
9472 | srcdir=$srcdir | |
9473 | INSTALL="$INSTALL" | |
9474 | _ACEOF | |
9475 | ||
9476 | cat >>$CONFIG_STATUS <<\_ACEOF | |
9477 | # If no file are specified by the user, then we need to provide default | |
9478 | # value. By we need to know if files were specified by the user. | |
9479 | ac_need_defaults=: | |
9480 | while test $# != 0 | |
9481 | do | |
9482 | case $1 in | |
9483 | --*=*) | |
9484 | ac_option=`expr "x$1" : 'x\([^=]*\)='` | |
9485 | ac_optarg=`expr "x$1" : 'x[^=]*=\(.*\)'` | |
9486 | ac_shift=: | |
9487 | ;; | |
9488 | -*) | |
9489 | ac_option=$1 | |
9490 | ac_optarg=$2 | |
9491 | ac_shift=shift | |
9492 | ;; | |
9493 | *) # This is not an option, so the user has probably given explicit | |
9494 | # arguments. | |
9495 | ac_option=$1 | |
9496 | ac_need_defaults=false;; | |
9497 | esac | |
9498 | ||
9499 | case $ac_option in | |
9500 | # Handling of the options. | |
9501 | _ACEOF | |
9502 | cat >>$CONFIG_STATUS <<\_ACEOF | |
9503 | -recheck | --recheck | --rechec | --reche | --rech | --rec | --re | --r) | |
9504 | ac_cs_recheck=: ;; | |
9505 | --version | --vers* | -V ) | |
9506 | echo "$ac_cs_version"; exit 0 ;; | |
9507 | --he | --h) | |
9508 | # Conflict between --help and --header | |
9509 | { { echo "$as_me:$LINENO: error: ambiguous option: $1 | |
9510 | Try \`$0 --help' for more information." >&5 | |
9511 | echo "$as_me: error: ambiguous option: $1 | |
9512 | Try \`$0 --help' for more information." >&2;} | |
9513 | { (exit 1); exit 1; }; };; | |
9514 | --help | --hel | -h ) | |
9515 | echo "$ac_cs_usage"; exit 0 ;; | |
9516 | --debug | --d* | -d ) | |
9517 | debug=: ;; | |
9518 | --file | --fil | --fi | --f ) | |
9519 | $ac_shift | |
9520 | CONFIG_FILES="$CONFIG_FILES $ac_optarg" | |
9521 | ac_need_defaults=false;; | |
9522 | --header | --heade | --head | --hea ) | |
9523 | $ac_shift | |
9524 | CONFIG_HEADERS="$CONFIG_HEADERS $ac_optarg" | |
9525 | ac_need_defaults=false;; | |
9526 | -q | -quiet | --quiet | --quie | --qui | --qu | --q \ | |
9527 | | -silent | --silent | --silen | --sile | --sil | --si | --s) | |
9528 | ac_cs_silent=: ;; | |
9529 | ||
9530 | # This is an error. | |
9531 | -*) { { echo "$as_me:$LINENO: error: unrecognized option: $1 | |
9532 | Try \`$0 --help' for more information." >&5 | |
9533 | echo "$as_me: error: unrecognized option: $1 | |
9534 | Try \`$0 --help' for more information." >&2;} | |
9535 | { (exit 1); exit 1; }; } ;; | |
9536 | ||
9537 | *) ac_config_targets="$ac_config_targets $1" ;; | |
9538 | ||
9539 | esac | |
9540 | shift | |
c906108c | 9541 | done |
b7026657 AC |
9542 | |
9543 | ac_configure_extra_args= | |
9544 | ||
9545 | if $ac_cs_silent; then | |
9546 | exec 6>/dev/null | |
9547 | ac_configure_extra_args="$ac_configure_extra_args --silent" | |
9548 | fi | |
9549 | ||
9550 | _ACEOF | |
9551 | cat >>$CONFIG_STATUS <<_ACEOF | |
9552 | if \$ac_cs_recheck; then | |
9553 | echo "running $SHELL $0 " $ac_configure_args \$ac_configure_extra_args " --no-create --no-recursion" >&6 | |
9554 | exec $SHELL $0 $ac_configure_args \$ac_configure_extra_args --no-create --no-recursion | |
c906108c | 9555 | fi |
c906108c | 9556 | |
b7026657 | 9557 | _ACEOF |
c906108c | 9558 | |
b7026657 AC |
9559 | |
9560 | ||
9561 | ||
9562 | ||
9563 | cat >>$CONFIG_STATUS <<\_ACEOF | |
9564 | for ac_config_target in $ac_config_targets | |
9565 | do | |
9566 | case "$ac_config_target" in | |
9567 | # Handling of arguments. | |
9568 | "Makefile" ) CONFIG_FILES="$CONFIG_FILES Makefile" ;; | |
9569 | "default" ) CONFIG_COMMANDS="$CONFIG_COMMANDS default" ;; | |
9570 | "config.h" ) CONFIG_HEADERS="$CONFIG_HEADERS config.h:config.in" ;; | |
9571 | *) { { echo "$as_me:$LINENO: error: invalid argument: $ac_config_target" >&5 | |
9572 | echo "$as_me: error: invalid argument: $ac_config_target" >&2;} | |
9573 | { (exit 1); exit 1; }; };; | |
c906108c | 9574 | esac |
b7026657 | 9575 | done |
c906108c | 9576 | |
b7026657 AC |
9577 | # If the user did not use the arguments to specify the items to instantiate, |
9578 | # then the envvar interface is used. Set only those that are not. | |
9579 | # We use the long form for the default assignment because of an extremely | |
9580 | # bizarre bug on SunOS 4.1.3. | |
9581 | if $ac_need_defaults; then | |
9582 | test "${CONFIG_FILES+set}" = set || CONFIG_FILES=$config_files | |
9583 | test "${CONFIG_HEADERS+set}" = set || CONFIG_HEADERS=$config_headers | |
9584 | test "${CONFIG_COMMANDS+set}" = set || CONFIG_COMMANDS=$config_commands | |
9585 | fi | |
9586 | ||
9587 | # Have a temporary directory for convenience. Make it in the build tree | |
9588 | # simply because there is no reason to put it here, and in addition, | |
9589 | # creating and moving files from /tmp can sometimes cause problems. | |
9590 | # Create a temporary directory, and hook for its removal unless debugging. | |
9591 | $debug || | |
9592 | { | |
9593 | trap 'exit_status=$?; rm -rf $tmp && exit $exit_status' 0 | |
9594 | trap '{ (exit 1); exit 1; }' 1 2 13 15 | |
9595 | } | |
c906108c | 9596 | |
b7026657 AC |
9597 | # Create a (secure) tmp directory for tmp files. |
9598 | ||
9599 | { | |
9600 | tmp=`(umask 077 && mktemp -d -q "./confstatXXXXXX") 2>/dev/null` && | |
9601 | test -n "$tmp" && test -d "$tmp" | |
9602 | } || | |
9603 | { | |
9604 | tmp=./confstat$$-$RANDOM | |
9605 | (umask 077 && mkdir $tmp) | |
9606 | } || | |
9607 | { | |
9608 | echo "$me: cannot create a temporary directory in ." >&2 | |
9609 | { (exit 1); exit 1; } | |
9610 | } | |
9611 | ||
9612 | _ACEOF | |
9613 | ||
9614 | cat >>$CONFIG_STATUS <<_ACEOF | |
9615 | ||
9616 | # | |
9617 | # CONFIG_FILES section. | |
9618 | # | |
9619 | ||
9620 | # No need to generate the scripts if there are no CONFIG_FILES. | |
9621 | # This happens for instance when ./config.status config.h | |
9622 | if test -n "\$CONFIG_FILES"; then | |
9623 | # Protect against being on the right side of a sed subst in config.status. | |
9624 | sed 's/,@/@@/; s/@,/@@/; s/,;t t\$/@;t t/; /@;t t\$/s/[\\\\&,]/\\\\&/g; | |
9625 | s/@@/,@/; s/@@/@,/; s/@;t t\$/,;t t/' >\$tmp/subs.sed <<\\CEOF | |
9626 | s,@sim_environment@,$sim_environment,;t t | |
9627 | s,@sim_alignment@,$sim_alignment,;t t | |
9628 | s,@sim_assert@,$sim_assert,;t t | |
9629 | s,@sim_bitsize@,$sim_bitsize,;t t | |
9630 | s,@sim_endian@,$sim_endian,;t t | |
9631 | s,@sim_hostendian@,$sim_hostendian,;t t | |
9632 | s,@sim_float@,$sim_float,;t t | |
9633 | s,@sim_scache@,$sim_scache,;t t | |
9634 | s,@sim_default_model@,$sim_default_model,;t t | |
9635 | s,@sim_hw_cflags@,$sim_hw_cflags,;t t | |
9636 | s,@sim_hw_objs@,$sim_hw_objs,;t t | |
9637 | s,@sim_hw@,$sim_hw,;t t | |
9638 | s,@sim_inline@,$sim_inline,;t t | |
9639 | s,@sim_packages@,$sim_packages,;t t | |
9640 | s,@sim_regparm@,$sim_regparm,;t t | |
9641 | s,@sim_reserved_bits@,$sim_reserved_bits,;t t | |
9642 | s,@sim_smp@,$sim_smp,;t t | |
9643 | s,@sim_stdcall@,$sim_stdcall,;t t | |
9644 | s,@sim_xor_endian@,$sim_xor_endian,;t t | |
9645 | s,@WARN_CFLAGS@,$WARN_CFLAGS,;t t | |
9646 | s,@WERROR_CFLAGS@,$WERROR_CFLAGS,;t t | |
9647 | s,@SHELL@,$SHELL,;t t | |
9648 | s,@PATH_SEPARATOR@,$PATH_SEPARATOR,;t t | |
9649 | s,@PACKAGE_NAME@,$PACKAGE_NAME,;t t | |
9650 | s,@PACKAGE_TARNAME@,$PACKAGE_TARNAME,;t t | |
9651 | s,@PACKAGE_VERSION@,$PACKAGE_VERSION,;t t | |
9652 | s,@PACKAGE_STRING@,$PACKAGE_STRING,;t t | |
9653 | s,@PACKAGE_BUGREPORT@,$PACKAGE_BUGREPORT,;t t | |
9654 | s,@exec_prefix@,$exec_prefix,;t t | |
9655 | s,@prefix@,$prefix,;t t | |
9656 | s,@program_transform_name@,$program_transform_name,;t t | |
9657 | s,@bindir@,$bindir,;t t | |
9658 | s,@sbindir@,$sbindir,;t t | |
9659 | s,@libexecdir@,$libexecdir,;t t | |
9660 | s,@datadir@,$datadir,;t t | |
9661 | s,@sysconfdir@,$sysconfdir,;t t | |
9662 | s,@sharedstatedir@,$sharedstatedir,;t t | |
9663 | s,@localstatedir@,$localstatedir,;t t | |
9664 | s,@libdir@,$libdir,;t t | |
9665 | s,@includedir@,$includedir,;t t | |
9666 | s,@oldincludedir@,$oldincludedir,;t t | |
9667 | s,@infodir@,$infodir,;t t | |
9668 | s,@mandir@,$mandir,;t t | |
9669 | s,@build_alias@,$build_alias,;t t | |
9670 | s,@host_alias@,$host_alias,;t t | |
9671 | s,@target_alias@,$target_alias,;t t | |
9672 | s,@DEFS@,$DEFS,;t t | |
9673 | s,@ECHO_C@,$ECHO_C,;t t | |
9674 | s,@ECHO_N@,$ECHO_N,;t t | |
9675 | s,@ECHO_T@,$ECHO_T,;t t | |
9676 | s,@LIBS@,$LIBS,;t t | |
9677 | s,@INSTALL_PROGRAM@,$INSTALL_PROGRAM,;t t | |
9678 | s,@INSTALL_SCRIPT@,$INSTALL_SCRIPT,;t t | |
9679 | s,@INSTALL_DATA@,$INSTALL_DATA,;t t | |
9680 | s,@CC@,$CC,;t t | |
9681 | s,@CFLAGS@,$CFLAGS,;t t | |
9682 | s,@LDFLAGS@,$LDFLAGS,;t t | |
9683 | s,@CPPFLAGS@,$CPPFLAGS,;t t | |
9684 | s,@ac_ct_CC@,$ac_ct_CC,;t t | |
9685 | s,@EXEEXT@,$EXEEXT,;t t | |
9686 | s,@OBJEXT@,$OBJEXT,;t t | |
9687 | s,@SET_MAKE@,$SET_MAKE,;t t | |
9688 | s,@RANLIB@,$RANLIB,;t t | |
9689 | s,@ac_ct_RANLIB@,$ac_ct_RANLIB,;t t | |
9690 | s,@CPP@,$CPP,;t t | |
9691 | s,@EGREP@,$EGREP,;t t | |
9692 | s,@ALLOCA@,$ALLOCA,;t t | |
9693 | s,@USE_NLS@,$USE_NLS,;t t | |
9694 | s,@MSGFMT@,$MSGFMT,;t t | |
9695 | s,@GMSGFMT@,$GMSGFMT,;t t | |
9696 | s,@XGETTEXT@,$XGETTEXT,;t t | |
9697 | s,@USE_INCLUDED_LIBINTL@,$USE_INCLUDED_LIBINTL,;t t | |
9698 | s,@CATALOGS@,$CATALOGS,;t t | |
9699 | s,@CATOBJEXT@,$CATOBJEXT,;t t | |
9700 | s,@DATADIRNAME@,$DATADIRNAME,;t t | |
9701 | s,@GMOFILES@,$GMOFILES,;t t | |
9702 | s,@INSTOBJEXT@,$INSTOBJEXT,;t t | |
9703 | s,@INTLDEPS@,$INTLDEPS,;t t | |
9704 | s,@INTLLIBS@,$INTLLIBS,;t t | |
9705 | s,@INTLOBJS@,$INTLOBJS,;t t | |
9706 | s,@POFILES@,$POFILES,;t t | |
9707 | s,@POSUB@,$POSUB,;t t | |
9708 | s,@INCLUDE_LOCALE_H@,$INCLUDE_LOCALE_H,;t t | |
9709 | s,@GT_NO@,$GT_NO,;t t | |
9710 | s,@GT_YES@,$GT_YES,;t t | |
9711 | s,@MKINSTALLDIRS@,$MKINSTALLDIRS,;t t | |
9712 | s,@l@,$l,;t t | |
9713 | s,@build@,$build,;t t | |
9714 | s,@build_cpu@,$build_cpu,;t t | |
9715 | s,@build_vendor@,$build_vendor,;t t | |
9716 | s,@build_os@,$build_os,;t t | |
9717 | s,@host@,$host,;t t | |
9718 | s,@host_cpu@,$host_cpu,;t t | |
9719 | s,@host_vendor@,$host_vendor,;t t | |
9720 | s,@host_os@,$host_os,;t t | |
9721 | s,@target@,$target,;t t | |
9722 | s,@target_cpu@,$target_cpu,;t t | |
9723 | s,@target_vendor@,$target_vendor,;t t | |
9724 | s,@target_os@,$target_os,;t t | |
9725 | s,@LIBOBJS@,$LIBOBJS,;t t | |
9726 | s,@CC_FOR_BUILD@,$CC_FOR_BUILD,;t t | |
9727 | s,@HDEFINES@,$HDEFINES,;t t | |
9728 | s,@AR@,$AR,;t t | |
9729 | s,@sim_cflags@,$sim_cflags,;t t | |
9730 | s,@sim_warnings@,$sim_warnings,;t t | |
9731 | s,@sim_line_nr@,$sim_line_nr,;t t | |
9732 | s,@sim_config@,$sim_config,;t t | |
9733 | s,@sim_opcode@,$sim_opcode,;t t | |
9734 | s,@sim_switch@,$sim_switch,;t t | |
9735 | s,@sim_dup@,$sim_dup,;t t | |
9736 | s,@sim_decode_mechanism@,$sim_decode_mechanism,;t t | |
9737 | s,@sim_jump@,$sim_jump,;t t | |
9738 | s,@sim_filter@,$sim_filter,;t t | |
9739 | s,@sim_icache@,$sim_icache,;t t | |
9740 | s,@sim_hw_src@,$sim_hw_src,;t t | |
9741 | s,@sim_hw_obj@,$sim_hw_obj,;t t | |
9742 | s,@sim_pk_src@,$sim_pk_src,;t t | |
9743 | s,@sim_pk_obj@,$sim_pk_obj,;t t | |
9744 | s,@sim_bswap@,$sim_bswap,;t t | |
9745 | s,@sim_igen_smp@,$sim_igen_smp,;t t | |
9746 | s,@sim_hostbitsize@,$sim_hostbitsize,;t t | |
9747 | s,@sim_env@,$sim_env,;t t | |
9748 | s,@sim_timebase@,$sim_timebase,;t t | |
9749 | s,@sim_trace@,$sim_trace,;t t | |
9750 | s,@sim_reserved@,$sim_reserved,;t t | |
9751 | s,@sim_monitor@,$sim_monitor,;t t | |
9752 | s,@sim_model@,$sim_model,;t t | |
9753 | s,@sim_model_issue@,$sim_model_issue,;t t | |
9754 | s,@sim_stdio@,$sim_stdio,;t t | |
9755 | s,@sim_termio@,$sim_termio,;t t | |
9756 | s,@sim_devzero@,$sim_devzero,;t t | |
9757 | s,@sim_callback@,$sim_callback,;t t | |
9758 | s,@sim_targ_vals@,$sim_targ_vals,;t t | |
9759 | s,@sim_fpu_cflags@,$sim_fpu_cflags,;t t | |
9760 | s,@sim_fpu@,$sim_fpu,;t t | |
9761 | s,@LTLIBOBJS@,$LTLIBOBJS,;t t | |
9762 | CEOF | |
9763 | ||
9764 | _ACEOF | |
9765 | ||
9766 | cat >>$CONFIG_STATUS <<\_ACEOF | |
9767 | # Split the substitutions into bite-sized pieces for seds with | |
9768 | # small command number limits, like on Digital OSF/1 and HP-UX. | |
9769 | ac_max_sed_lines=48 | |
9770 | ac_sed_frag=1 # Number of current file. | |
9771 | ac_beg=1 # First line for current file. | |
9772 | ac_end=$ac_max_sed_lines # Line after last line for current file. | |
9773 | ac_more_lines=: | |
9774 | ac_sed_cmds= | |
9775 | while $ac_more_lines; do | |
9776 | if test $ac_beg -gt 1; then | |
9777 | sed "1,${ac_beg}d; ${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
9778 | else | |
9779 | sed "${ac_end}q" $tmp/subs.sed >$tmp/subs.frag | |
9780 | fi | |
9781 | if test ! -s $tmp/subs.frag; then | |
9782 | ac_more_lines=false | |
9783 | else | |
9784 | # The purpose of the label and of the branching condition is to | |
9785 | # speed up the sed processing (if there are no `@' at all, there | |
9786 | # is no need to browse any of the substitutions). | |
9787 | # These are the two extra sed commands mentioned above. | |
9788 | (echo ':t | |
9789 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b' && cat $tmp/subs.frag) >$tmp/subs-$ac_sed_frag.sed | |
9790 | if test -z "$ac_sed_cmds"; then | |
9791 | ac_sed_cmds="sed -f $tmp/subs-$ac_sed_frag.sed" | |
9792 | else | |
9793 | ac_sed_cmds="$ac_sed_cmds | sed -f $tmp/subs-$ac_sed_frag.sed" | |
9794 | fi | |
9795 | ac_sed_frag=`expr $ac_sed_frag + 1` | |
9796 | ac_beg=$ac_end | |
9797 | ac_end=`expr $ac_end + $ac_max_sed_lines` | |
9798 | fi | |
9799 | done | |
9800 | if test -z "$ac_sed_cmds"; then | |
9801 | ac_sed_cmds=cat | |
c906108c | 9802 | fi |
b7026657 | 9803 | fi # test -n "$CONFIG_FILES" |
c906108c | 9804 | |
b7026657 AC |
9805 | _ACEOF |
9806 | cat >>$CONFIG_STATUS <<\_ACEOF | |
9807 | for ac_file in : $CONFIG_FILES; do test "x$ac_file" = x: && continue | |
9808 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". | |
9809 | case $ac_file in | |
9810 | - | *:- | *:-:* ) # input from stdin | |
9811 | cat >$tmp/stdin | |
9812 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
9813 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
9814 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
9815 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
9816 | * ) ac_file_in=$ac_file.in ;; | |
c906108c SS |
9817 | esac |
9818 | ||
b7026657 AC |
9819 | # Compute @srcdir@, @top_srcdir@, and @INSTALL@ for subdirectories. |
9820 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
9821 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
9822 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
9823 | X"$ac_file" : 'X\(//\)$' \| \ | |
9824 | X"$ac_file" : 'X\(/\)' \| \ | |
9825 | . : '\(.\)' 2>/dev/null || | |
9826 | echo X"$ac_file" | | |
9827 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
9828 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
9829 | /^X\(\/\/\)$/{ s//\1/; q; } | |
9830 | /^X\(\/\).*/{ s//\1/; q; } | |
9831 | s/.*/./; q'` | |
9832 | { if $as_mkdir_p; then | |
9833 | mkdir -p "$ac_dir" | |
9834 | else | |
9835 | as_dir="$ac_dir" | |
9836 | as_dirs= | |
9837 | while test ! -d "$as_dir"; do | |
9838 | as_dirs="$as_dir $as_dirs" | |
9839 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
9840 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
9841 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
9842 | X"$as_dir" : 'X\(//\)$' \| \ | |
9843 | X"$as_dir" : 'X\(/\)' \| \ | |
9844 | . : '\(.\)' 2>/dev/null || | |
9845 | echo X"$as_dir" | | |
9846 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
9847 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
9848 | /^X\(\/\/\)$/{ s//\1/; q; } | |
9849 | /^X\(\/\).*/{ s//\1/; q; } | |
9850 | s/.*/./; q'` | |
9851 | done | |
9852 | test ! -n "$as_dirs" || mkdir $as_dirs | |
9853 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
9854 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
9855 | { (exit 1); exit 1; }; }; } | |
9856 | ||
9857 | ac_builddir=. | |
9858 | ||
9859 | if test "$ac_dir" != .; then | |
9860 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
9861 | # A "../" for each directory in $ac_dir_suffix. | |
9862 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
9863 | else | |
9864 | ac_dir_suffix= ac_top_builddir= | |
9865 | fi | |
c906108c | 9866 | |
b7026657 AC |
9867 | case $srcdir in |
9868 | .) # No --srcdir option. We are building in place. | |
9869 | ac_srcdir=. | |
9870 | if test -z "$ac_top_builddir"; then | |
9871 | ac_top_srcdir=. | |
9872 | else | |
9873 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
9874 | fi ;; | |
9875 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
9876 | ac_srcdir=$srcdir$ac_dir_suffix; | |
9877 | ac_top_srcdir=$srcdir ;; | |
9878 | *) # Relative path. | |
9879 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
9880 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
9881 | esac | |
9882 | ||
9883 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
9884 | # the directories may not exist. | |
9885 | case `pwd` in | |
9886 | .) ac_abs_builddir="$ac_dir";; | |
9887 | *) | |
9888 | case "$ac_dir" in | |
9889 | .) ac_abs_builddir=`pwd`;; | |
9890 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
9891 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
9892 | esac;; | |
9893 | esac | |
9894 | case $ac_abs_builddir in | |
9895 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
9896 | *) | |
9897 | case ${ac_top_builddir}. in | |
9898 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
9899 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
9900 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
9901 | esac;; | |
9902 | esac | |
9903 | case $ac_abs_builddir in | |
9904 | .) ac_abs_srcdir=$ac_srcdir;; | |
9905 | *) | |
9906 | case $ac_srcdir in | |
9907 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
9908 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
9909 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
9910 | esac;; | |
9911 | esac | |
9912 | case $ac_abs_builddir in | |
9913 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
9914 | *) | |
9915 | case $ac_top_srcdir in | |
9916 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
9917 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
9918 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
9919 | esac;; | |
9920 | esac | |
9921 | ||
9922 | ||
9923 | case $INSTALL in | |
9924 | [\\/$]* | ?:[\\/]* ) ac_INSTALL=$INSTALL ;; | |
9925 | *) ac_INSTALL=$ac_top_builddir$INSTALL ;; | |
c906108c SS |
9926 | esac |
9927 | ||
b7026657 AC |
9928 | if test x"$ac_file" != x-; then |
9929 | { echo "$as_me:$LINENO: creating $ac_file" >&5 | |
9930 | echo "$as_me: creating $ac_file" >&6;} | |
9931 | rm -f "$ac_file" | |
9932 | fi | |
9933 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
9934 | # use $as_me), people would be surprised to read: | |
9935 | # /* config.h. Generated by config.status. */ | |
9936 | if test x"$ac_file" = x-; then | |
9937 | configure_input= | |
9938 | else | |
9939 | configure_input="$ac_file. " | |
9940 | fi | |
9941 | configure_input=$configure_input"Generated from `echo $ac_file_in | | |
9942 | sed 's,.*/,,'` by configure." | |
9943 | ||
9944 | # First look for the input files in the build tree, otherwise in the | |
9945 | # src tree. | |
9946 | ac_file_inputs=`IFS=: | |
9947 | for f in $ac_file_in; do | |
9948 | case $f in | |
9949 | -) echo $tmp/stdin ;; | |
9950 | [\\/$]*) | |
9951 | # Absolute (can't be DOS-style, as IFS=:) | |
9952 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
9953 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
9954 | { (exit 1); exit 1; }; } | |
9955 | echo "$f";; | |
9956 | *) # Relative | |
9957 | if test -f "$f"; then | |
9958 | # Build tree | |
9959 | echo "$f" | |
9960 | elif test -f "$srcdir/$f"; then | |
9961 | # Source tree | |
9962 | echo "$srcdir/$f" | |
9963 | else | |
9964 | # /dev/null tree | |
9965 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
9966 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
9967 | { (exit 1); exit 1; }; } | |
9968 | fi;; | |
9969 | esac | |
9970 | done` || { (exit 1); exit 1; } | |
9971 | _ACEOF | |
9972 | cat >>$CONFIG_STATUS <<_ACEOF | |
9973 | sed "$ac_vpsub | |
9974 | $extrasub | |
9975 | _ACEOF | |
9976 | cat >>$CONFIG_STATUS <<\_ACEOF | |
9977 | :t | |
9978 | /@[a-zA-Z_][a-zA-Z_0-9]*@/!b | |
9979 | s,@configure_input@,$configure_input,;t t | |
9980 | s,@srcdir@,$ac_srcdir,;t t | |
9981 | s,@abs_srcdir@,$ac_abs_srcdir,;t t | |
9982 | s,@top_srcdir@,$ac_top_srcdir,;t t | |
9983 | s,@abs_top_srcdir@,$ac_abs_top_srcdir,;t t | |
9984 | s,@builddir@,$ac_builddir,;t t | |
9985 | s,@abs_builddir@,$ac_abs_builddir,;t t | |
9986 | s,@top_builddir@,$ac_top_builddir,;t t | |
9987 | s,@abs_top_builddir@,$ac_abs_top_builddir,;t t | |
9988 | s,@INSTALL@,$ac_INSTALL,;t t | |
9989 | " $ac_file_inputs | (eval "$ac_sed_cmds") >$tmp/out | |
9990 | rm -f $tmp/stdin | |
9991 | if test x"$ac_file" != x-; then | |
9992 | mv $tmp/out $ac_file | |
9993 | else | |
9994 | cat $tmp/out | |
9995 | rm -f $tmp/out | |
9996 | fi | |
9997 | ||
9998 | done | |
9999 | _ACEOF | |
10000 | cat >>$CONFIG_STATUS <<\_ACEOF | |
10001 | ||
10002 | # | |
10003 | # CONFIG_HEADER section. | |
10004 | # | |
c906108c SS |
10005 | |
10006 | # These sed commands are passed to sed as "A NAME B NAME C VALUE D", where | |
10007 | # NAME is the cpp macro being defined and VALUE is the value it is being given. | |
10008 | # | |
10009 | # ac_d sets the value in "#define NAME VALUE" lines. | |
b7026657 AC |
10010 | ac_dA='s,^\([ ]*\)#\([ ]*define[ ][ ]*\)' |
10011 | ac_dB='[ ].*$,\1#\2' | |
10012 | ac_dC=' ' | |
10013 | ac_dD=',;t' | |
10014 | # ac_u turns "#undef NAME" without trailing blanks into "#define NAME VALUE". | |
10015 | ac_uA='s,^\([ ]*\)#\([ ]*\)undef\([ ][ ]*\)' | |
10016 | ac_uB='$,\1#\2define\3' | |
c906108c | 10017 | ac_uC=' ' |
b7026657 AC |
10018 | ac_uD=',;t' |
10019 | ||
10020 | for ac_file in : $CONFIG_HEADERS; do test "x$ac_file" = x: && continue | |
c906108c | 10021 | # Support "outfile[:infile[:infile...]]", defaulting infile="outfile.in". |
b7026657 AC |
10022 | case $ac_file in |
10023 | - | *:- | *:-:* ) # input from stdin | |
10024 | cat >$tmp/stdin | |
10025 | ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
10026 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
10027 | *:* ) ac_file_in=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
10028 | ac_file=`echo "$ac_file" | sed 's,:.*,,'` ;; | |
10029 | * ) ac_file_in=$ac_file.in ;; | |
c906108c SS |
10030 | esac |
10031 | ||
b7026657 AC |
10032 | test x"$ac_file" != x- && { echo "$as_me:$LINENO: creating $ac_file" >&5 |
10033 | echo "$as_me: creating $ac_file" >&6;} | |
10034 | ||
10035 | # First look for the input files in the build tree, otherwise in the | |
10036 | # src tree. | |
10037 | ac_file_inputs=`IFS=: | |
10038 | for f in $ac_file_in; do | |
10039 | case $f in | |
10040 | -) echo $tmp/stdin ;; | |
10041 | [\\/$]*) | |
10042 | # Absolute (can't be DOS-style, as IFS=:) | |
10043 | test -f "$f" || { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
10044 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
10045 | { (exit 1); exit 1; }; } | |
10046 | # Do quote $f, to prevent DOS paths from being IFS'd. | |
10047 | echo "$f";; | |
10048 | *) # Relative | |
10049 | if test -f "$f"; then | |
10050 | # Build tree | |
10051 | echo "$f" | |
10052 | elif test -f "$srcdir/$f"; then | |
10053 | # Source tree | |
10054 | echo "$srcdir/$f" | |
10055 | else | |
10056 | # /dev/null tree | |
10057 | { { echo "$as_me:$LINENO: error: cannot find input file: $f" >&5 | |
10058 | echo "$as_me: error: cannot find input file: $f" >&2;} | |
10059 | { (exit 1); exit 1; }; } | |
10060 | fi;; | |
10061 | esac | |
10062 | done` || { (exit 1); exit 1; } | |
10063 | # Remove the trailing spaces. | |
10064 | sed 's/[ ]*$//' $ac_file_inputs >$tmp/in | |
10065 | ||
10066 | _ACEOF | |
10067 | ||
10068 | # Transform confdefs.h into two sed scripts, `conftest.defines' and | |
10069 | # `conftest.undefs', that substitutes the proper values into | |
10070 | # config.h.in to produce config.h. The first handles `#define' | |
10071 | # templates, and the second `#undef' templates. | |
10072 | # And first: Protect against being on the right side of a sed subst in | |
10073 | # config.status. Protect against being in an unquoted here document | |
10074 | # in config.status. | |
10075 | rm -f conftest.defines conftest.undefs | |
10076 | # Using a here document instead of a string reduces the quoting nightmare. | |
10077 | # Putting comments in sed scripts is not portable. | |
10078 | # | |
10079 | # `end' is used to avoid that the second main sed command (meant for | |
10080 | # 0-ary CPP macros) applies to n-ary macro definitions. | |
10081 | # See the Autoconf documentation for `clear'. | |
10082 | cat >confdef2sed.sed <<\_ACEOF | |
10083 | s/[\\&,]/\\&/g | |
10084 | s,[\\$`],\\&,g | |
10085 | t clear | |
10086 | : clear | |
10087 | s,^[ ]*#[ ]*define[ ][ ]*\([^ (][^ (]*\)\(([^)]*)\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1\2${ac_dC}\3${ac_dD},gp | |
10088 | t end | |
10089 | s,^[ ]*#[ ]*define[ ][ ]*\([^ ][^ ]*\)[ ]*\(.*\)$,${ac_dA}\1${ac_dB}\1${ac_dC}\2${ac_dD},gp | |
10090 | : end | |
10091 | _ACEOF | |
10092 | # If some macros were called several times there might be several times | |
10093 | # the same #defines, which is useless. Nevertheless, we may not want to | |
10094 | # sort them, since we want the *last* AC-DEFINE to be honored. | |
10095 | uniq confdefs.h | sed -n -f confdef2sed.sed >conftest.defines | |
10096 | sed 's/ac_d/ac_u/g' conftest.defines >conftest.undefs | |
10097 | rm -f confdef2sed.sed | |
c906108c SS |
10098 | |
10099 | # This sed command replaces #undef with comments. This is necessary, for | |
10100 | # example, in the case of _POSIX_SOURCE, which is predefined and required | |
10101 | # on some systems where configure will not decide to define it. | |
b7026657 AC |
10102 | cat >>conftest.undefs <<\_ACEOF |
10103 | s,^[ ]*#[ ]*undef[ ][ ]*[a-zA-Z_][a-zA-Z_0-9]*,/* & */, | |
10104 | _ACEOF | |
10105 | ||
10106 | # Break up conftest.defines because some shells have a limit on the size | |
10107 | # of here documents, and old seds have small limits too (100 cmds). | |
10108 | echo ' # Handle all the #define templates only if necessary.' >>$CONFIG_STATUS | |
10109 | echo ' if grep "^[ ]*#[ ]*define" $tmp/in >/dev/null; then' >>$CONFIG_STATUS | |
10110 | echo ' # If there are no defines, we may have an empty if/fi' >>$CONFIG_STATUS | |
10111 | echo ' :' >>$CONFIG_STATUS | |
10112 | rm -f conftest.tail | |
10113 | while grep . conftest.defines >/dev/null | |
10114 | do | |
10115 | # Write a limited-size here document to $tmp/defines.sed. | |
10116 | echo ' cat >$tmp/defines.sed <<CEOF' >>$CONFIG_STATUS | |
10117 | # Speed up: don't consider the non `#define' lines. | |
10118 | echo '/^[ ]*#[ ]*define/!b' >>$CONFIG_STATUS | |
10119 | # Work around the forget-to-reset-the-flag bug. | |
10120 | echo 't clr' >>$CONFIG_STATUS | |
10121 | echo ': clr' >>$CONFIG_STATUS | |
10122 | sed ${ac_max_here_lines}q conftest.defines >>$CONFIG_STATUS | |
10123 | echo 'CEOF | |
10124 | sed -f $tmp/defines.sed $tmp/in >$tmp/out | |
10125 | rm -f $tmp/in | |
10126 | mv $tmp/out $tmp/in | |
10127 | ' >>$CONFIG_STATUS | |
10128 | sed 1,${ac_max_here_lines}d conftest.defines >conftest.tail | |
10129 | rm -f conftest.defines | |
10130 | mv conftest.tail conftest.defines | |
10131 | done | |
10132 | rm -f conftest.defines | |
10133 | echo ' fi # grep' >>$CONFIG_STATUS | |
10134 | echo >>$CONFIG_STATUS | |
c906108c | 10135 | |
b7026657 AC |
10136 | # Break up conftest.undefs because some shells have a limit on the size |
10137 | # of here documents, and old seds have small limits too (100 cmds). | |
10138 | echo ' # Handle all the #undef templates' >>$CONFIG_STATUS | |
c906108c | 10139 | rm -f conftest.tail |
b7026657 | 10140 | while grep . conftest.undefs >/dev/null |
c906108c | 10141 | do |
b7026657 AC |
10142 | # Write a limited-size here document to $tmp/undefs.sed. |
10143 | echo ' cat >$tmp/undefs.sed <<CEOF' >>$CONFIG_STATUS | |
10144 | # Speed up: don't consider the non `#undef' | |
10145 | echo '/^[ ]*#[ ]*undef/!b' >>$CONFIG_STATUS | |
10146 | # Work around the forget-to-reset-the-flag bug. | |
10147 | echo 't clr' >>$CONFIG_STATUS | |
10148 | echo ': clr' >>$CONFIG_STATUS | |
10149 | sed ${ac_max_here_lines}q conftest.undefs >>$CONFIG_STATUS | |
c906108c | 10150 | echo 'CEOF |
b7026657 AC |
10151 | sed -f $tmp/undefs.sed $tmp/in >$tmp/out |
10152 | rm -f $tmp/in | |
10153 | mv $tmp/out $tmp/in | |
10154 | ' >>$CONFIG_STATUS | |
10155 | sed 1,${ac_max_here_lines}d conftest.undefs >conftest.tail | |
10156 | rm -f conftest.undefs | |
10157 | mv conftest.tail conftest.undefs | |
c906108c | 10158 | done |
b7026657 AC |
10159 | rm -f conftest.undefs |
10160 | ||
10161 | cat >>$CONFIG_STATUS <<\_ACEOF | |
10162 | # Let's still pretend it is `configure' which instantiates (i.e., don't | |
10163 | # use $as_me), people would be surprised to read: | |
10164 | # /* config.h. Generated by config.status. */ | |
10165 | if test x"$ac_file" = x-; then | |
10166 | echo "/* Generated by configure. */" >$tmp/config.h | |
10167 | else | |
10168 | echo "/* $ac_file. Generated by configure. */" >$tmp/config.h | |
10169 | fi | |
10170 | cat $tmp/in >>$tmp/config.h | |
10171 | rm -f $tmp/in | |
10172 | if test x"$ac_file" != x-; then | |
10173 | if diff $ac_file $tmp/config.h >/dev/null 2>&1; then | |
10174 | { echo "$as_me:$LINENO: $ac_file is unchanged" >&5 | |
10175 | echo "$as_me: $ac_file is unchanged" >&6;} | |
10176 | else | |
10177 | ac_dir=`(dirname "$ac_file") 2>/dev/null || | |
10178 | $as_expr X"$ac_file" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
10179 | X"$ac_file" : 'X\(//\)[^/]' \| \ | |
10180 | X"$ac_file" : 'X\(//\)$' \| \ | |
10181 | X"$ac_file" : 'X\(/\)' \| \ | |
10182 | . : '\(.\)' 2>/dev/null || | |
10183 | echo X"$ac_file" | | |
10184 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
10185 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
10186 | /^X\(\/\/\)$/{ s//\1/; q; } | |
10187 | /^X\(\/\).*/{ s//\1/; q; } | |
10188 | s/.*/./; q'` | |
10189 | { if $as_mkdir_p; then | |
10190 | mkdir -p "$ac_dir" | |
c906108c | 10191 | else |
b7026657 AC |
10192 | as_dir="$ac_dir" |
10193 | as_dirs= | |
10194 | while test ! -d "$as_dir"; do | |
10195 | as_dirs="$as_dir $as_dirs" | |
10196 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
10197 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
10198 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
10199 | X"$as_dir" : 'X\(//\)$' \| \ | |
10200 | X"$as_dir" : 'X\(/\)' \| \ | |
10201 | . : '\(.\)' 2>/dev/null || | |
10202 | echo X"$as_dir" | | |
10203 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
10204 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
10205 | /^X\(\/\/\)$/{ s//\1/; q; } | |
10206 | /^X\(\/\).*/{ s//\1/; q; } | |
10207 | s/.*/./; q'` | |
10208 | done | |
10209 | test ! -n "$as_dirs" || mkdir $as_dirs | |
10210 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
10211 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
10212 | { (exit 1); exit 1; }; }; } | |
10213 | ||
10214 | rm -f $ac_file | |
10215 | mv $tmp/config.h $ac_file | |
c906108c | 10216 | fi |
b7026657 AC |
10217 | else |
10218 | cat $tmp/config.h | |
10219 | rm -f $tmp/config.h | |
c906108c | 10220 | fi |
b7026657 AC |
10221 | done |
10222 | _ACEOF | |
10223 | cat >>$CONFIG_STATUS <<\_ACEOF | |
10224 | ||
10225 | # | |
10226 | # CONFIG_COMMANDS section. | |
10227 | # | |
10228 | for ac_file in : $CONFIG_COMMANDS; do test "x$ac_file" = x: && continue | |
10229 | ac_dest=`echo "$ac_file" | sed 's,:.*,,'` | |
10230 | ac_source=`echo "$ac_file" | sed 's,[^:]*:,,'` | |
10231 | ac_dir=`(dirname "$ac_dest") 2>/dev/null || | |
10232 | $as_expr X"$ac_dest" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
10233 | X"$ac_dest" : 'X\(//\)[^/]' \| \ | |
10234 | X"$ac_dest" : 'X\(//\)$' \| \ | |
10235 | X"$ac_dest" : 'X\(/\)' \| \ | |
10236 | . : '\(.\)' 2>/dev/null || | |
10237 | echo X"$ac_dest" | | |
10238 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
10239 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
10240 | /^X\(\/\/\)$/{ s//\1/; q; } | |
10241 | /^X\(\/\).*/{ s//\1/; q; } | |
10242 | s/.*/./; q'` | |
10243 | { if $as_mkdir_p; then | |
10244 | mkdir -p "$ac_dir" | |
10245 | else | |
10246 | as_dir="$ac_dir" | |
10247 | as_dirs= | |
10248 | while test ! -d "$as_dir"; do | |
10249 | as_dirs="$as_dir $as_dirs" | |
10250 | as_dir=`(dirname "$as_dir") 2>/dev/null || | |
10251 | $as_expr X"$as_dir" : 'X\(.*[^/]\)//*[^/][^/]*/*$' \| \ | |
10252 | X"$as_dir" : 'X\(//\)[^/]' \| \ | |
10253 | X"$as_dir" : 'X\(//\)$' \| \ | |
10254 | X"$as_dir" : 'X\(/\)' \| \ | |
10255 | . : '\(.\)' 2>/dev/null || | |
10256 | echo X"$as_dir" | | |
10257 | sed '/^X\(.*[^/]\)\/\/*[^/][^/]*\/*$/{ s//\1/; q; } | |
10258 | /^X\(\/\/\)[^/].*/{ s//\1/; q; } | |
10259 | /^X\(\/\/\)$/{ s//\1/; q; } | |
10260 | /^X\(\/\).*/{ s//\1/; q; } | |
10261 | s/.*/./; q'` | |
10262 | done | |
10263 | test ! -n "$as_dirs" || mkdir $as_dirs | |
10264 | fi || { { echo "$as_me:$LINENO: error: cannot create directory \"$ac_dir\"" >&5 | |
10265 | echo "$as_me: error: cannot create directory \"$ac_dir\"" >&2;} | |
10266 | { (exit 1); exit 1; }; }; } | |
10267 | ||
10268 | ac_builddir=. | |
10269 | ||
10270 | if test "$ac_dir" != .; then | |
10271 | ac_dir_suffix=/`echo "$ac_dir" | sed 's,^\.[\\/],,'` | |
10272 | # A "../" for each directory in $ac_dir_suffix. | |
10273 | ac_top_builddir=`echo "$ac_dir_suffix" | sed 's,/[^\\/]*,../,g'` | |
10274 | else | |
10275 | ac_dir_suffix= ac_top_builddir= | |
10276 | fi | |
10277 | ||
10278 | case $srcdir in | |
10279 | .) # No --srcdir option. We are building in place. | |
10280 | ac_srcdir=. | |
10281 | if test -z "$ac_top_builddir"; then | |
10282 | ac_top_srcdir=. | |
10283 | else | |
10284 | ac_top_srcdir=`echo $ac_top_builddir | sed 's,/$,,'` | |
10285 | fi ;; | |
10286 | [\\/]* | ?:[\\/]* ) # Absolute path. | |
10287 | ac_srcdir=$srcdir$ac_dir_suffix; | |
10288 | ac_top_srcdir=$srcdir ;; | |
10289 | *) # Relative path. | |
10290 | ac_srcdir=$ac_top_builddir$srcdir$ac_dir_suffix | |
10291 | ac_top_srcdir=$ac_top_builddir$srcdir ;; | |
10292 | esac | |
10293 | ||
10294 | # Do not use `cd foo && pwd` to compute absolute paths, because | |
10295 | # the directories may not exist. | |
10296 | case `pwd` in | |
10297 | .) ac_abs_builddir="$ac_dir";; | |
10298 | *) | |
10299 | case "$ac_dir" in | |
10300 | .) ac_abs_builddir=`pwd`;; | |
10301 | [\\/]* | ?:[\\/]* ) ac_abs_builddir="$ac_dir";; | |
10302 | *) ac_abs_builddir=`pwd`/"$ac_dir";; | |
10303 | esac;; | |
10304 | esac | |
10305 | case $ac_abs_builddir in | |
10306 | .) ac_abs_top_builddir=${ac_top_builddir}.;; | |
10307 | *) | |
10308 | case ${ac_top_builddir}. in | |
10309 | .) ac_abs_top_builddir=$ac_abs_builddir;; | |
10310 | [\\/]* | ?:[\\/]* ) ac_abs_top_builddir=${ac_top_builddir}.;; | |
10311 | *) ac_abs_top_builddir=$ac_abs_builddir/${ac_top_builddir}.;; | |
10312 | esac;; | |
10313 | esac | |
10314 | case $ac_abs_builddir in | |
10315 | .) ac_abs_srcdir=$ac_srcdir;; | |
10316 | *) | |
10317 | case $ac_srcdir in | |
10318 | .) ac_abs_srcdir=$ac_abs_builddir;; | |
10319 | [\\/]* | ?:[\\/]* ) ac_abs_srcdir=$ac_srcdir;; | |
10320 | *) ac_abs_srcdir=$ac_abs_builddir/$ac_srcdir;; | |
10321 | esac;; | |
10322 | esac | |
10323 | case $ac_abs_builddir in | |
10324 | .) ac_abs_top_srcdir=$ac_top_srcdir;; | |
10325 | *) | |
10326 | case $ac_top_srcdir in | |
10327 | .) ac_abs_top_srcdir=$ac_abs_builddir;; | |
10328 | [\\/]* | ?:[\\/]* ) ac_abs_top_srcdir=$ac_top_srcdir;; | |
10329 | *) ac_abs_top_srcdir=$ac_abs_builddir/$ac_top_srcdir;; | |
10330 | esac;; | |
10331 | esac | |
10332 | ||
c906108c | 10333 | |
b7026657 AC |
10334 | { echo "$as_me:$LINENO: executing $ac_dest commands" >&5 |
10335 | echo "$as_me: executing $ac_dest commands" >&6;} | |
10336 | case $ac_dest in | |
10337 | default ) case x$CONFIG_HEADERS in xconfig.h:config.in) echo > stamp-h ;; esac ;; | |
10338 | esac | |
10339 | done | |
10340 | _ACEOF | |
c906108c | 10341 | |
b7026657 AC |
10342 | cat >>$CONFIG_STATUS <<\_ACEOF |
10343 | ||
10344 | { (exit 0); exit 0; } | |
10345 | _ACEOF | |
c906108c | 10346 | chmod +x $CONFIG_STATUS |
b7026657 AC |
10347 | ac_clean_files=$ac_clean_files_save |
10348 | ||
10349 | ||
10350 | # configure is writing to config.log, and then calls config.status. | |
10351 | # config.status does its own redirection, appending to config.log. | |
10352 | # Unfortunately, on DOS this fails, as config.log is still kept open | |
10353 | # by configure, so config.status won't be able to write to it; its | |
10354 | # output is simply discarded. So we exec the FD to /dev/null, | |
10355 | # effectively closing config.log, so it can be properly (re)opened and | |
10356 | # appended to by config.status. When coming back to configure, we | |
10357 | # need to make the FD available again. | |
10358 | if test "$no_create" != yes; then | |
10359 | ac_cs_success=: | |
10360 | ac_config_status_args= | |
10361 | test "$silent" = yes && | |
10362 | ac_config_status_args="$ac_config_status_args --quiet" | |
10363 | exec 5>/dev/null | |
10364 | $SHELL $CONFIG_STATUS $ac_config_status_args || ac_cs_success=false | |
10365 | exec 5>>config.log | |
10366 | # Use ||, not &&, to avoid exiting from the if with $? = 1, which | |
10367 | # would make configure fail if this is the last instruction. | |
10368 | $ac_cs_success || { (exit 1); exit 1; } | |
10369 | fi | |
c906108c | 10370 |